uikit 3.19.5-dev.8210c3e08 → 3.19.5-dev.92ee0f0d9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (68) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/css/uikit-core-rtl.css +2 -2
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +2 -2
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +2 -2
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +2 -2
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +2 -2
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +55 -55
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +55 -55
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +36 -24
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +37 -25
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +37 -26
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +37 -25
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +37 -25
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +2 -2
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +101 -85
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +110 -92
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/api/boot.js +6 -7
  44. package/src/js/api/component.js +4 -4
  45. package/src/js/api/computed.js +20 -26
  46. package/src/js/api/observer.js +1 -1
  47. package/src/js/components/slider-parallax.js +2 -2
  48. package/src/js/components/slider.js +1 -1
  49. package/src/js/core/drop.js +1 -2
  50. package/src/js/core/height-placeholder.js +4 -1
  51. package/src/js/core/height-viewport.js +1 -1
  52. package/src/js/core/icon.js +2 -3
  53. package/src/js/core/img.js +1 -1
  54. package/src/js/core/inverse.js +13 -6
  55. package/src/js/core/modal.js +5 -6
  56. package/src/js/core/sticky.js +1 -1
  57. package/src/js/core/switcher.js +4 -1
  58. package/src/js/core/toggle.js +6 -3
  59. package/src/js/mixin/internal/animate-fade.js +1 -3
  60. package/src/js/mixin/parallax.js +7 -3
  61. package/src/js/mixin/slider.js +0 -3
  62. package/src/js/mixin/slideshow.js +3 -0
  63. package/src/js/util/filter.js +7 -14
  64. package/src/js/util/lang.js +1 -1
  65. package/src/js/util/selector.js +33 -20
  66. package/src/less/components/utility.less +1 -1
  67. package/src/scss/components/utility.scss +1 -1
  68. package/tests/js/index.js +12 -10
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.8210c3e08 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],I):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider=I(s.UIkit.util))})(this,function(s){"use strict";function I(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&ft(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function ft(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(a=>e.has(a)))continue;let r;i&&(r=i.call(t,t._data,e),r&&s.isPlainObject(r)&&s.assign(t._data,r)),n&&r!==!1&&s.fastdom.write(()=>{t._connected&&n.call(t,t._data,e)})}}function P(t){return D(s.observeResize,t,"resize")}function gt(t){return D(s.observeIntersection,t)}function ut(t={}){return gt({handler:function(e,i){const{targets:n=this.$el,preload:o=5}=t;for(const r of s.toNodes(s.isFunction(n)?n(this):n))s.$$('[loading="lazy"]',r).slice(0,o-1).forEach(a=>s.removeAttr(a,"loading"));for(const r of e.filter(({isIntersecting:a})=>a).map(({target:a})=>a))i.unobserve(r)},...t})}function mt(t){return D((e,i)=>({disconnect:s.on(pt(e),"scroll",i,{passive:!0})}),t,"scroll")}function D(t,e,i){return{observe:t,handler(){I(this,i)},...e}}function pt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var xt={connected(){s.addClass(this.$el,this.$options.id)}},vt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:o.replace(/%s/g,()=>e[r++]||""))||""}}},wt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")&&!s.matches(this.$el,":focus")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const b={passive:!1,capture:!0},V={passive:!0,capture:!0},It="touchstart mousedown",F="touchmove mousemove",q="touchend touchcancel mouseup click input scroll",G=t=>t.preventDefault();var bt={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i).x*(s.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:It,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&$t(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:F,el(){return this.list},handler:s.noop,...b}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,F,this.move,b),s.on(document,q,this.end,V),s.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||s.on(this.list,"click",G,b),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(e),r=this.getIndex(n+this.dir),a=X.call(this,n,r);for(;r!==n&&o>a;)this.drag-=a*this.dir,n=r,o-=a,r=this.getIndex(n+this.dir),a=X.call(this,n,r);this.percent=o/a;const h=i[n],d=i[r],l=this.index!==r,c=n===r;let f;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),c&&(f=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||f)&&s.trigger(i[this.index],"itemshown",[this]),l&&(this.prevIndex=n,this.index=r,c||(s.trigger(h,"beforeitemhide",[this]),s.trigger(h,"itemhide",[this])),s.trigger(d,"beforeitemshow",[this]),s.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!c&&d)},end(){if(s.off(document,F,this.move,b),s.off(document,q,this.end,V),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>s.off(this.list,"click",G,b)),s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function X(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function $t(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[s.hyphenate(o),`data-${s.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let yt=1;function Q(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${yt++}`}const $={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var St={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$(t,e),navChildren(){return s.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation")},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let o,r=null;if(s.isNumeric(i)){const a=s.toNumber(i),h=this.slides[a];h&&(h.id||(h.id=Q(this,h)),r=h.id),o=this.t("slideX",s.toFloat(i)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=Q(this,this.list)),r=this.list.id),o=this.t(i);s.attr(n,{"aria-controls":r,"aria-label":s.attr(n,"aria-label")||o})}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){s.empty(this.nav);for(let i=0;i<t;i++)s.append(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){s.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===$.SPACE)&&(t.preventDefault(),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let o=i===$.HOME?0:i===$.END?"last":i===$.LEFT?"previous":i===$.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;if(s.isNumeric(i)){const r=s.toNumber(i)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(n,"uk-disabled",this.parallax),s.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},kt={mixins:[wt,bt,St,vt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>J(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},observe:P(),events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=e?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const a=this.getIndex(this.index),h=s.hasClass(this.slides,this.clsActive)&&this.slides[a],d=this.getIndex(t,this.index),l=this.slides[d];if(h===l){r();return}if(this.dir=_t(t,a),this.prevIndex=a,this.index=d,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}const c=this._show(h,l,e).then(()=>{h&&s.trigger(h,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return h&&s.trigger(h,"itemhide",[this]),s.trigger(l,"itemshow",[this]),c},getIndex(t=this.index,e=this.index){return s.clamp(s.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,i*(s.isRtl?-1:1),n)}}};function _t(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function J(t){return .5*t+300}var At={props:{media:Boolean},data:{media:!1},connected(){const t=Ct(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function Ct(t,e){if(s.isString(t)){if(s.startsWith(t,"@"))t=s.toFloat(s.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&s.isNumeric(t)?`(min-width: ${t}px)`:""}function Mt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:me,from:Nt}=Array;function Et(t){return typeof t=="function"}function j(t){return t!==null&&typeof t=="object"}function Ot(t){return j(t)&&t===t.window}function Tt(t){return Y(t)===9}function K(t){return Y(t)>=1}function Y(t){return!Ot(t)&&j(t)&&t.nodeType}function R(t){return typeof t=="string"}function Pt(t){return t===void 0}function y(t){return p(t)[0]}function p(t){return K(t)?[t]:Array.from(t||[]).filter(K)}function Dt(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function W(t,e,i){var n;if(j(e)){for(const o in e)W(t,o,e[o]);return}if(Pt(i))return(n=y(t))==null?void 0:n.getAttribute(e);for(const o of p(t))Et(i)&&(i=i.call(o,W(o,e))),i===null?Ft(o,e):o.setAttribute(e,i)}function Ft(t,e){p(t).forEach(i=>i.removeAttribute(e))}function L(t){var e;return(e=y(t))==null?void 0:e.parentElement}function jt(t,e){return p(t).filter(i=>Z(i,e))}function Z(t,e){return p(t).some(i=>i.matches(e))}function Rt(t,e){t=y(t);const i=t?Nt(t.children):[];return e?jt(i,e):i}function tt(t,e){return e?p(t).indexOf(y(e)):Rt(L(t)).indexOf(t)}function Wt(t,e){return p(Ut(t,y(e),"querySelectorAll"))}const Lt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ht=/.*?[^\\](?![^(]*\))(?:,|$)/g,zt=/\s*,$/,Bt=Dt(t=>{t=t.replace(Lt,"$1 *");let e=!1;const i=[];for(let n of t.match(Ht))n=n.replace(zt,"").trim(),n[0]===">"&&(n=`:scope ${n}`),e||(e=["!","+","~","-"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}});function Ut(t,e=document,i){if(!t||!R(t))return t;const n=Bt(t);if(!n.isContextSelector)return H(e,i,n.selector);t="";const o=n.selectors.length===1;for(let r of n.selectors){let a=e;if(r[0]==="!"){const h=r.substr(1).trim().split(" ");if(a=L(e).closest(h[0]),r=h.slice(1).join(" ").trim(),!r.length&&o)return a}if(r[0]==="-"){const h=r.substr(1).trim().split(" "),d=(a||e).previousElementSibling;if(a=Z(d,r.substr(1))?d:null,r=h.slice(1).join(" "),!r.length&&o)return a}else if(r[0]==="~"||r[0]==="+"&&o)return H(L(a),i,`:scope :nth-child(${tt(a)+1}) ${r}`);a&&(t+=`${t?",":""}${Vt(a)} ${r}`)}return Tt(e)||(e=e.ownerDocument),H(e,i,t)}function H(t,e,i){try{return t[e](i)}catch{return null}}function Vt(t){const e=[];for(;t.parentNode;){const i=W(t,"id");if(i){e.unshift(`#${qt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${tt(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function qt(t){return R(t)?CSS.escape(t):""}const Gt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Xt(t){const e=Gt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Qt(i.content.childNodes)}function Qt(t){return t.length>1?t:t[0]}function Jt(t,e){return Kt(t)?p(Xt(t)):Wt(t,e)}function Kt(t){return R(t)&&Mt(t.trim(),"<")}function Yt(t){return Math.ceil(Math.max(0,...Jt("[stroke]",t).map(e=>{var i;return(i=e.getTotalLength)==null?void 0:i.call(e)})))}const C={x:M,y:M,rotate:M,scale:M,color:z,backgroundColor:z,borderColor:z,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:te,stroke:ee,bgx:st,bgy:st},{keys:et}=Object;ot(et(C),"list"),ot(et(C),void 0);function M(t,e,i){let n=E(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",o;return t==="x"||t==="y"?(t=`translate${s.ucfirst(t)}`,o=r=>s.toFloat(s.toFloat(r).toFixed(n==="px"?0:6))):t==="scale"&&(n="",o=r=>{var a;return E([r])?s.toPx(r,"width",e,!0)/e[`offset${(a=r.endsWith)!=null&&a.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=v(i,o),(r,a)=>{r.transform=`${r.transform||""} ${t}(${S(i,a)}${n})`}}function z(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i,n=>Zt(e,n)),(n,o)=>{const[r,a,h]=rt(i,o),d=r.map((l,c)=>(l+=h*(a[c]-l),c===3?s.toFloat(l):parseInt(l,10))).join(",");n[t]=`rgba(${d})`}}function Zt(t,e){return k(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function x(t,e,i){i.length===1&&i.unshift(0);const n=E(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const a=S(i,r);o.filter=`${o.filter||""} ${t}(${a+n})`}}function te(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i),(n,o)=>{n[t]=S(i,o)}}function ee(t,e,i){i.length===1&&i.unshift(0);const n=E(i),o=Yt(e);return i=v(i.reverse(),r=>(r=s.toFloat(r),n==="%"?r*o/100:r)),i.some(([r])=>r)?(s.css(e,"strokeDasharray",o),(r,a)=>{r.strokeDashoffset=S(i,a)}):s.noop}function st(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=v(i,h=>s.toPx(h,o,e));const r=["bgx","bgy"].filter(h=>h in n);if(r.length===2&&t==="bgx")return s.noop;if(k(e,"backgroundSize","")==="cover")return se(t,e,i,n);const a={};for(const h of r)a[h]=it(e,h);return nt(r,a,n)}function se(t,e,i,n){const o=ie(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(c=>c in n),h={};for(const c of a){const f=n[c].map(([T])=>T),g=Math.min(...f),u=Math.max(...f),m=f.indexOf(g)<f.indexOf(u),A=u-g;h[c]=`${(m?-A:0)-(m?g:u)}px`,r[c==="bgy"?"height":"width"]+=A}const d=s.Dimensions.cover(o,r);for(const c of a){const f=c==="bgy"?"height":"width",g=d[f]-r[f];h[c]=`max(${it(e,c)},-${g}px) + ${h[c]}`}const l=nt(a,h,n);return(c,f)=>{l(c,f),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function it(t,e){return k(t,`background-position-${e.substr(-1)}`,"")}function nt(t,e,i){return function(n,o){for(const r of t){const a=S(i[r],o);n[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${a}px)`}}}const N={};function ie(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(N[e])return N[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth)?(i.onload=()=>{N[e]=B(i),s.trigger(t,s.createEvent("load",!1))},B(i)):N[e]=B(i)}function B(t){return{width:t.naturalWidth,height:t.naturalHeight}}function v(t,e=s.toFloat){const i=[],{length:n}=t;let o=0;for(let r=0;r<n;r++){let[a,h]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(a=e(a),h=h?s.toFloat(h)/100:null,r===0?h===null?h=0:h&&i.push([a,0]):r===n-1&&(h===null?h=1:h!==1&&(i.push([a,h]),h=1)),i.push([a,h]),h===null)o++;else if(o){const d=i[r-o-1][1],l=(h-d)/(o+1);for(let c=o;c>0;c--)i[r-c][1]=d+l*(o-c+1);o=0}}return i}function rt(t,e){const i=s.findIndex(t.slice(1),([,n])=>e<=n)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function S(t,e){const[i,n,o]=rt(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const ne=/^-?\d+(?:\.\d+)?(\S+)?/;function E(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,ne);if(o)return o[1]}return e}function k(t,e,i){const n=t.style[e],o=s.css(s.css(t,e,i),e);return t.style[e]=n,o}function ot(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function re(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var oe={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[P({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),mt({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=re(s.scrolledOver(t,e,i),this.parallaxEasing),[o,r]=this.getIndexAt(n),a=this.getValidIndex(o+Math.ceil(r)),h=this.slides[o],d=this.slides[a],{triggerShow:l,triggerShown:c,triggerHide:f,triggerHidden:g}=ae(this);if(~this.prevIndex)for(const m of new Set([this.index,this.prevIndex]))s.includes([a,o],m)||(f(this.slides[m]),g(this.slides[m]));const u=this.prevIndex!==o||this.index!==a;this.dir=1,this.prevIndex=o,this.index=a,h!==d&&f(h),l(d),u&&c(h),this._translate(h===d?1:r,h,d)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function ae(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:o,triggerShown:r,triggerHide:a,triggerHidden:h};function o(d){s.hasClass(d,n)&&(a(d),h(d)),s.hasClass(d,e)||(s.trigger(d,"beforeitemshow",[t]),s.trigger(d,"itemshow",[t]))}function r(d){s.hasClass(d,i)&&s.trigger(d,"itemshown",[t])}function a(d){s.hasClass(d,e)||o(d),s.hasClass(d,i)&&r(d),s.hasClass(d,n)||(s.trigger(d,"beforeitemhide",[t]),s.trigger(d,"itemhide",[t]))}function h(d){s.hasClass(d,n)&&s.trigger(d,"itemhidden",[t])}}var he={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},de={observe:ut({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function at(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function ce(t,e,i,{center:n,easing:o,list:r}){const a=t?_(t,r,n):_(e,r,n)+s.dimensions(e).width*i,h=e?_(e,r,n):a+s.dimensions(t).width*i*(s.isRtl?-1:1);let d;return{dir:i,show(l,c=0,f){const g=f?"linear":o;return l-=Math.round(l*s.clamp(c,-1,1)),this.translate(c),c=t?c:s.clamp(c,0,1),U(this.getItemIn(),"itemin",{percent:c,duration:l,timing:g,dir:i}),t&&U(this.getItemIn(!0),"itemout",{percent:1-c,duration:l,timing:g,dir:i}),new Promise(u=>{d||(d=u),s.Transition.start(r,{transform:at(-h*(s.isRtl?-1:1),"px")},l,g).then(d,s.noop)})},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(l,c=this.percent()){return await this.cancel(),this.show(l,c,!0)},translate(l){const c=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",at(s.clamp(-h+(c-c*l),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const f=this.getActives(),g=this.getItemIn(),u=this.getItemIn(!0);l=t?s.clamp(l,-1,1):0;for(const m of s.children(r)){const A=s.includes(f,m),T=m===g,lt=m===u,ue=T||!lt&&(A||i*(s.isRtl?-1:1)===-1^O(m,r)>O(t||e));U(m,`itemtranslate${ue?"in":"out"}`,{dir:i,percent:lt?1-l:T?l:A?1:0})}},percent(){return Math.abs((s.css(r,"transform").split(",")[4]*(s.isRtl?-1:1)+a)/(h-a))},getDistance(){return Math.abs(h-a)},getItemIn(l=!1){let c=this.getActives(),f=dt(r,_(e||t,r,n));if(l){const g=c;c=f,f=g}return f[s.findIndex(f,g=>!s.includes(c,g))]},getActives(){return dt(r,_(t||e,r,n))}}}function _(t,e,i){const n=O(t,e);return i?n-le(t,e):Math.min(n,ht(e))}function ht(t){return Math.max(0,w(t)-s.dimensions(t).width)}function w(t,e){return s.sumBy(s.children(t).slice(0,e),i=>s.dimensions(i).width)}function le(t,e){return s.dimensions(e).width/2-s.dimensions(t).width/2}function O(t,e){return t&&(s.position(t).left+(s.isRtl?s.dimensions(t).width-s.dimensions(e).width:0))*(s.isRtl?-1:1)||0}function dt(t,e){e-=1;const i=s.dimensions(t).width,n=e+i+2;return s.children(t).filter(o=>{const r=O(o,t),a=r+Math.min(s.dimensions(o).width,i);return r>=e&&a<=n})}function U(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}var ct={mixins:[xt,kt,he,oe,de],props:{center:Boolean,sets:Boolean,active:String},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",active:"all",Transitioner:ce},computed:{finite({finite:t}){return t||fe(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return s.last(this.sets);let t=0;const e=ht(this.list),i=s.findIndex(this.slides,n=>{if(t>=e)return!0;t+=s.dimensions(n).width});return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],n=s.dimensions(this.list).width;for(let o=0;o<this.length;o++){const r=s.dimensions(this.slides[o]).width;e+r>n&&(e=0),this.center?e<n/2&&e+r+s.dimensions(this.slides[s.getIndex(+o+1,this.slides)]).width/2>n/2&&(i.push(+o),e=n/2-r/2):e===0&&i.push(Math.min(+o,this.maxIndex)),e+=r}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return s.children(this.list).filter(s.isVisible)}},connected(){s.toggleClass(this.$el,this.clsContainer,!s.$(`.${this.clsContainer}`,this.$el))},observe:P({target:({slides:t})=>t}),update:{write(){for(const t of this.navItems){const e=s.toNumber(s.data(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!s.includes(this.sets,e))}this.reorder(),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!s.includes(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let o=0;o<e;o++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,n=w(this.list)/this.length;this.duration=J(n/this.velocity)*(s.dimensions(this.slides[i]).width/n),this.reorder()},itemshow(){~this.prevIndex&&s.addClass(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){s.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((o,r)=>s.css(o,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=s.dimensions(this.list).width/2-s.dimensions(e).width/2,n=0;for(;i>0;){const o=this.getIndex(--n+t,t),r=this.slides[o];s.css(r,"order",o>t?-2:-1),i-=s.dimensions(r).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();this.active!=="all"&&(e=[this.slides[this.getValidIndex(t)]]);const i=[this.clsActive,!this.sets||s.includes(this.sets,s.toFloat(this.index))?this.clsActivated:""];for(const n of this.slides){const o=s.includes(e,n);s.toggleClass(n,i,o),s.attr(n,"aria-hidden",!o);for(const r of s.$$(s.selFocusable,n))s.hasOwn(r,"_tabindex")||(r._tabindex=s.attr(r,"tabindex")),s.attr(r,"tabindex",o?r._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(s.includes(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=s.dimensions(this.list),e=-t,i=t*2,n=s.dimensions(this.slides[this.index]).width,o=this.center?t/2-n/2:0,r=new Set;for(const a of[-1,1]){let h=o+(a>0?n:0),d=0;do{const l=this.slides[this.getIndex(this.index+a+d++*a)];h+=s.dimensions(l).width*a,r.add(l)}while(this.length>d&&h>e&&h<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=this.center?w(this.list)-(s.dimensions(this.slides[0]).width/2+s.dimensions(s.last(this.slides)).width/2):w(this.list,this.maxIndex);let n=t*i,o=0;do{const r=s.dimensions(this.slides[++e]).width,a=this.center?r/2+s.dimensions(this.slides[e+1]).width/2:r;o=n/a%1,n-=a}while(n>=0&&e<this.maxIndex);return[e,o]}}};function fe(t,e){if(!t||t.length<2)return!0;const{width:i}=s.dimensions(t);if(!e)return Math.ceil(w(t))<Math.trunc(i+ge(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const a=n[r],h=s.dimensions(a).width,d=new Set([a]);let l=0;for(const c of[-1,1]){let f=h/2,g=0;for(;f<o;){const u=n[s.getIndex(+r+c+g++*c,n)];if(d.has(u))return!0;f+=s.dimensions(u).width,d.add(u)}l=Math.max(l,h/2+s.dimensions(n[s.getIndex(+r+c,n)]).width/2-(f-o))}if(Math.trunc(l)>s.sumBy(n.filter(c=>!d.has(c)),c=>s.dimensions(c).width))return!0}return!1}function ge(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",ct),ct});
1
+ /*! UIkit 3.19.5-dev.92ee0f0d9 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],I):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider=I(s.UIkit.util))})(this,function(s){"use strict";function I(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&ut(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function ut(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(h=>e.has(h)))continue;let r;i&&(r=i.call(t,t._data,e),r&&s.isPlainObject(r)&&s.assign(t._data,r)),n&&r!==!1&&s.fastdom.write(()=>{t._connected&&n.call(t,t._data,e)})}}function B(t){return P(s.observeResize,t,"resize")}function mt(t){return P(s.observeIntersection,t)}function pt(t={}){return mt({handler:function(e,i){const{targets:n=this.$el,preload:o=5}=t;for(const r of s.toNodes(s.isFunction(n)?n(this):n))s.$$('[loading="lazy"]',r).slice(0,o-1).forEach(h=>s.removeAttr(h,"loading"));for(const r of e.filter(({isIntersecting:h})=>h).map(({target:h})=>h))i.unobserve(r)},...t})}function xt(t){return P((e,i)=>({disconnect:s.on(vt(e),"scroll",i,{passive:!0})}),t,"scroll")}function P(t,e,i){return{observe:t,handler(){I(this,i)},...e}}function vt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var wt={connected(){s.addClass(this.$el,this.$options.id)}},It={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:o.replace(/%s/g,()=>e[r++]||""))||""}}},bt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")&&!s.matches(this.$el,":focus")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const b={passive:!1,capture:!0},U={passive:!0,capture:!0},$t="touchstart mousedown",D="touchmove mousemove",V="touchend touchcancel mouseup click input scroll",q=t=>t.preventDefault();var yt={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i).x*(s.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:$t,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&St(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:D,el(){return this.list},handler:s.noop,...b}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,D,this.move,b),s.on(document,V,this.end,U),s.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||s.on(this.list,"click",q,b),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,o=Math.abs(e),r=this.getIndex(n+this.dir),h=G.call(this,n,r);for(;r!==n&&o>h;)this.drag-=h*this.dir,n=r,o-=h,r=this.getIndex(n+this.dir),h=G.call(this,n,r);this.percent=o/h;const a=i[n],c=i[r],l=this.index!==r,d=n===r;let f;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),d&&(f=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||f)&&s.trigger(i[this.index],"itemshown",[this]),l&&(this.prevIndex=n,this.index=r,d||(s.trigger(a,"beforeitemhide",[this]),s.trigger(a,"itemhide",[this])),s.trigger(c,"beforeitemshow",[this]),s.trigger(c,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!d&&c)},end(){if(s.off(document,D,this.move,b),s.off(document,V,this.end,U),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>s.off(this.list,"click",q,b)),s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function G(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function St(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[s.hyphenate(o),`data-${s.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let kt=1;function X(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${kt++}`}const $={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var _t={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$(t,e),navChildren(){return s.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation")},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let o,r=null;if(s.isNumeric(i)){const h=s.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=X(this,a)),r=a.id),o=this.t("slideX",s.toFloat(i)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=X(this,this.list)),r=this.list.id),o=this.t(i);s.attr(n,{"aria-controls":r,"aria-label":s.attr(n,"aria-label")||o})}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){s.empty(this.nav);for(let i=0;i<t;i++)s.append(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){s.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===$.SPACE)&&(t.preventDefault(),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let o=i===$.HOME?0:i===$.END?"last":i===$.LEFT?"previous":i===$.RIGHT?"next":-1;~o&&(t.preventDefault(),this.show(o))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;if(s.isNumeric(i)){const r=s.toNumber(i)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(n,"uk-disabled",this.parallax),s.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},At={mixins:[bt,yt,_t,It],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>Q(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=e?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),a=s.hasClass(this.slides,this.clsActive)&&this.slides[h],c=this.getIndex(t,this.index),l=this.slides[c];if(a===l){r();return}if(this.dir=Ct(t,h),this.prevIndex=h,this.index=c,a&&!s.trigger(a,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}const d=this._show(a,l,e).then(()=>{a&&s.trigger(a,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return a&&s.trigger(a,"itemhide",[this]),s.trigger(l,"itemshow",[this]),d},getIndex(t=this.index,e=this.index){return s.clamp(s.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,i*(s.isRtl?-1:1),n)}}};function Ct(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Q(t){return .5*t+300}var Mt={props:{media:Boolean},data:{media:!1},connected(){const t=Nt(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function Nt(t,e){if(s.isString(t)){if(s.startsWith(t,"@"))t=s.toFloat(s.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&s.isNumeric(t)?`(min-width: ${t}px)`:""}function Et(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:xe,from:Ot}=Array;function Tt(t){return typeof t=="function"}function F(t){return t!==null&&typeof t=="object"}function Pt(t){return F(t)&&t===t.window}function Dt(t){return K(t)===9}function J(t){return K(t)>=1}function K(t){return!Pt(t)&&F(t)&&t.nodeType}function R(t){return typeof t=="string"}function Ft(t){return t===void 0}function y(t){return t&&p(t)[0]}function p(t){return J(t)?[t]:Array.from(t||[]).filter(J)}function Y(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function j(t,e,i){var n;if(F(e)){for(const o in e)j(t,o,e[o]);return}if(Ft(i))return(n=y(t))==null?void 0:n.getAttribute(e);for(const o of p(t))Tt(i)&&(i=i.call(o,j(o,e))),i===null?Rt(o,e):o.setAttribute(e,i)}function Rt(t,e){p(t).forEach(i=>i.removeAttribute(e))}function jt(t){var e;return(e=y(t))==null?void 0:e.parentElement}function Wt(t,e){return p(t).filter(i=>Z(i,e))}function Z(t,e){return p(t).some(i=>i.matches(e))}function Lt(t,e){t=y(t);const i=t?Ot(t.children):[];return e?Wt(i,e):i}function tt(t,e){return e?p(t).indexOf(y(e)):Lt(jt(t)).indexOf(t)}function Ht(t,e){return p(qt(t,y(e),"querySelectorAll"))}const zt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Bt=/.*?[^\\](?![^(]*\))(?:,|$)/g,Ut=/\s*,$/,Vt=Y(t=>{var e;t=t.replace(zt,"$1 *");let i=!1;const n=[];for(let o of(e=t.match(Bt))!=null?e:[])o=o.replace(Ut,"").trim(),i||(i=["!","+","~","-",">"].includes(o[0])),n.push(o);return{selector:n.join(","),selectors:n,isContextSelector:i}}),et=Y(t=>{t=t.substr(1).trim();const e=t.indexOf(" ");return~e?[t.substring(0,e),t.substring(e+1)]:[t,""]});function qt(t,e=document,i){if(!t||!R(t))return t;const n=Vt(t);if(!n.isContextSelector)return W(e,i,n.selector);t="";const o=n.selectors.length===1;for(let r of n.selectors){let h,a=e;if(r[0]==="!"&&([h,r]=et(r),a=e.parentElement.closest(h),!r&&o)||a&&r[0]==="-"&&([h,r]=et(r),a=a.previousElementSibling,a=Z(a,h)?a:null,!r&&o))return a;if(a){if(o)return r[0]==="~"||r[0]==="+"?(r=`:scope :nth-child(${tt(a)+1}) ${r}`,a=a.parentElement):r[0]===">"&&(r=`:scope ${r}`),W(a,i,r);t+=`${t?",":""}${Gt(a)} ${r}`}}return Dt(e)||(e=e.ownerDocument),W(e,i,t)}function W(t,e,i){try{return t[e](i)}catch{return null}}function Gt(t){const e=[];for(;t.parentNode;){const i=j(t,"id");if(i){e.unshift(`#${Xt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${tt(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Xt(t){return R(t)?CSS.escape(t):""}const Qt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Jt(t){const e=Qt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Kt(i.content.childNodes)}function Kt(t){return t.length>1?t:t[0]}function Yt(t,e){return Zt(t)?p(Jt(t)):Ht(t,e)}function Zt(t){return R(t)&&Et(t.trim(),"<")}function te(t){return Math.ceil(Math.max(0,...Yt("[stroke]",t).map(e=>{var i;return(i=e.getTotalLength)==null?void 0:i.call(e)})))}const C={x:M,y:M,rotate:M,scale:M,color:L,backgroundColor:L,borderColor:L,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:se,stroke:ie,bgx:it,bgy:it},{keys:st}=Object;ht(st(C),"list"),ht(st(C),void 0);function M(t,e,i){let n=E(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",o;return t==="x"||t==="y"?(t=`translate${s.ucfirst(t)}`,o=r=>s.toFloat(s.toFloat(r).toFixed(n==="px"?0:6))):t==="scale"&&(n="",o=r=>{var h;return E([r])?s.toPx(r,"width",e,!0)/e[`offset${(h=r.endsWith)!=null&&h.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=v(i,o),(r,h)=>{r.transform=`${r.transform||""} ${t}(${S(i,h)}${n})`}}function L(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i,n=>ee(e,n)),(n,o)=>{const[r,h,a]=at(i,o),c=r.map((l,d)=>(l+=a*(h[d]-l),d===3?s.toFloat(l):parseInt(l,10))).join(",");n[t]=`rgba(${c})`}}function ee(t,e){return k(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function x(t,e,i){i.length===1&&i.unshift(0);const n=E(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const h=S(i,r);o.filter=`${o.filter||""} ${t}(${h+n})`}}function se(t,e,i){return i.length===1&&i.unshift(k(e,t,"")),i=v(i),(n,o)=>{n[t]=S(i,o)}}function ie(t,e,i){i.length===1&&i.unshift(0);const n=E(i),o=te(e);return i=v(i.reverse(),r=>(r=s.toFloat(r),n==="%"?r*o/100:r)),i.some(([r])=>r)?(s.css(e,"strokeDasharray",o),(r,h)=>{r.strokeDashoffset=S(i,h)}):s.noop}function it(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=v(i,a=>s.toPx(a,o,e));const r=["bgx","bgy"].filter(a=>a in n);if(r.length===2&&t==="bgx")return s.noop;if(k(e,"backgroundSize","")==="cover")return ne(t,e,i,n);const h={};for(const a of r)h[a]=nt(e,a);return rt(r,h,n)}function ne(t,e,i,n){const o=re(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(d=>d in n),a={};for(const d of h){const f=n[d].map(([T])=>T),g=Math.min(...f),u=Math.max(...f),m=f.indexOf(g)<f.indexOf(u),A=u-g;a[d]=`${(m?-A:0)-(m?g:u)}px`,r[d==="bgy"?"height":"width"]+=A}const c=s.Dimensions.cover(o,r);for(const d of h){const f=d==="bgy"?"height":"width",g=c[f]-r[f];a[d]=`max(${nt(e,d)},-${g}px) + ${a[d]}`}const l=rt(h,a,n);return(d,f)=>{l(d,f),d.backgroundSize=`${c.width}px ${c.height}px`,d.backgroundRepeat="no-repeat"}}function nt(t,e){return k(t,`background-position-${e.substr(-1)}`,"")}function rt(t,e,i){return function(n,o){for(const r of t){const h=S(i[r],o);n[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${h}px)`}}}const ot={},N={};function re(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(N[e])return N[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!ot[e])?(s.once(i,"error load",()=>{N[e]=H(i),s.trigger(t,s.createEvent("load",!1))}),ot[e]=!0,H(i)):N[e]=H(i)}function H(t){return{width:t.naturalWidth,height:t.naturalHeight}}function v(t,e=s.toFloat){const i=[],{length:n}=t;let o=0;for(let r=0;r<n;r++){let[h,a]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(h=e(h),a=a?s.toFloat(a)/100:null,r===0?a===null?a=0:a&&i.push([h,0]):r===n-1&&(a===null?a=1:a!==1&&(i.push([h,a]),a=1)),i.push([h,a]),a===null)o++;else if(o){const c=i[r-o-1][1],l=(a-c)/(o+1);for(let d=o;d>0;d--)i[r-d][1]=c+l*(o-d+1);o=0}}return i}function at(t,e){const i=s.findIndex(t.slice(1),([,n])=>e<=n)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function S(t,e){const[i,n,o]=at(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const oe=/^-?\d+(?:\.\d+)?(\S+)?/;function E(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,oe);if(o)return o[1]}return e}function k(t,e,i){const n=t.style[e],o=s.css(s.css(t,e,i),e);return t.style[e]=n,o}function ht(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function ae(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var he={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[B({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),xt({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=ae(s.scrolledOver(t,e,i),this.parallaxEasing),[o,r]=this.getIndexAt(n),h=this.getValidIndex(o+Math.ceil(r)),a=this.slides[o],c=this.slides[h],{triggerShow:l,triggerShown:d,triggerHide:f,triggerHidden:g}=de(this);if(~this.prevIndex)for(const m of new Set([this.index,this.prevIndex]))s.includes([h,o],m)||(f(this.slides[m]),g(this.slides[m]));const u=this.prevIndex!==o||this.index!==h;this.dir=1,this.prevIndex=o,this.index=h,a!==c&&f(a),l(c),u&&d(a),this._translate(a===c?1:r,a,c)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function de(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:o,triggerShown:r,triggerHide:h,triggerHidden:a};function o(c){s.hasClass(c,n)&&(h(c),a(c)),s.hasClass(c,e)||(s.trigger(c,"beforeitemshow",[t]),s.trigger(c,"itemshow",[t]))}function r(c){s.hasClass(c,i)&&s.trigger(c,"itemshown",[t])}function h(c){s.hasClass(c,e)||o(c),s.hasClass(c,i)&&r(c),s.hasClass(c,n)||(s.trigger(c,"beforeitemhide",[t]),s.trigger(c,"itemhide",[t]))}function a(c){s.hasClass(c,n)&&s.trigger(c,"itemhidden",[t])}}var ce={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},le={observe:pt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function dt(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function fe(t,e,i,{center:n,easing:o,list:r}){const h=t?_(t,r,n):_(e,r,n)+s.dimensions(e).width*i,a=e?_(e,r,n):h+s.dimensions(t).width*i*(s.isRtl?-1:1);let c;return{dir:i,show(l,d=0,f){const g=f?"linear":o;return l-=Math.round(l*s.clamp(d,-1,1)),this.translate(d),d=t?d:s.clamp(d,0,1),z(this.getItemIn(),"itemin",{percent:d,duration:l,timing:g,dir:i}),t&&z(this.getItemIn(!0),"itemout",{percent:1-d,duration:l,timing:g,dir:i}),new Promise(u=>{c||(c=u),s.Transition.start(r,{transform:dt(-a*(s.isRtl?-1:1),"px")},l,g).then(c,s.noop)})},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(l,d=this.percent()){return await this.cancel(),this.show(l,d,!0)},translate(l){const d=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",dt(s.clamp(-a+(d-d*l),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const f=this.getActives(),g=this.getItemIn(),u=this.getItemIn(!0);l=t?s.clamp(l,-1,1):0;for(const m of s.children(r)){const A=s.includes(f,m),T=m===g,gt=m===u,pe=T||!gt&&(A||i*(s.isRtl?-1:1)===-1^O(m,r)>O(t||e));z(m,`itemtranslate${pe?"in":"out"}`,{dir:i,percent:gt?1-l:T?l:A?1:0})}},percent(){return Math.abs((s.css(r,"transform").split(",")[4]*(s.isRtl?-1:1)+h)/(a-h))},getDistance(){return Math.abs(a-h)},getItemIn(l=!1){let d=this.getActives(),f=lt(r,_(e||t,r,n));if(l){const g=d;d=f,f=g}return f[s.findIndex(f,g=>!s.includes(d,g))]},getActives(){return lt(r,_(t||e,r,n))}}}function _(t,e,i){const n=O(t,e);return i?n-ge(t,e):Math.min(n,ct(e))}function ct(t){return Math.max(0,w(t)-s.dimensions(t).width)}function w(t,e){return s.sumBy(s.children(t).slice(0,e),i=>s.dimensions(i).width)}function ge(t,e){return s.dimensions(e).width/2-s.dimensions(t).width/2}function O(t,e){return t&&(s.position(t).left+(s.isRtl?s.dimensions(t).width-s.dimensions(e).width:0))*(s.isRtl?-1:1)||0}function lt(t,e){e-=1;const i=s.dimensions(t).width,n=e+i+2;return s.children(t).filter(o=>{const r=O(o,t),h=r+Math.min(s.dimensions(o).width,i);return r>=e&&h<=n})}function z(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}var ft={mixins:[wt,At,ce,he,le],props:{center:Boolean,sets:Boolean,active:String},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",active:"all",Transitioner:fe},computed:{finite({finite:t}){return t||ue(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return s.last(this.sets);let t=0;const e=ct(this.list),i=s.findIndex(this.slides,n=>{if(t>=e)return!0;t+=s.dimensions(n).width});return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],n=s.dimensions(this.list).width;for(let o=0;o<this.length;o++){const r=s.dimensions(this.slides[o]).width;e+r>n&&(e=0),this.center?e<n/2&&e+r+s.dimensions(this.slides[s.getIndex(+o+1,this.slides)]).width/2>n/2&&(i.push(+o),e=n/2-r/2):e===0&&i.push(Math.min(+o,this.maxIndex)),e+=r}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return s.children(this.list).filter(s.isVisible)}},connected(){s.toggleClass(this.$el,this.clsContainer,!s.$(`.${this.clsContainer}`,this.$el))},observe:B({target:({slides:t,$el:e})=>[e,...t]}),update:{write(){for(const t of this.navItems){const e=s.toNumber(s.data(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!s.includes(this.sets,e))}this.reorder(),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!s.includes(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let o=0;o<e;o++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,n=w(this.list)/this.length;this.duration=Q(n/this.velocity)*(s.dimensions(this.slides[i]).width/n),this.reorder()},itemshow(){~this.prevIndex&&s.addClass(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){s.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((o,r)=>s.css(o,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=s.dimensions(this.list).width/2-s.dimensions(e).width/2,n=0;for(;i>0;){const o=this.getIndex(--n+t,t),r=this.slides[o];s.css(r,"order",o>t?-2:-1),i-=s.dimensions(r).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();this.active!=="all"&&(e=[this.slides[this.getValidIndex(t)]]);const i=[this.clsActive,!this.sets||s.includes(this.sets,s.toFloat(this.index))?this.clsActivated:""];for(const n of this.slides){const o=s.includes(e,n);s.toggleClass(n,i,o),s.attr(n,"aria-hidden",!o);for(const r of s.$$(s.selFocusable,n))s.hasOwn(r,"_tabindex")||(r._tabindex=s.attr(r,"tabindex")),s.attr(r,"tabindex",o?r._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(s.includes(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=s.dimensions(this.list),e=-t,i=t*2,n=s.dimensions(this.slides[this.index]).width,o=this.center?t/2-n/2:0,r=new Set;for(const h of[-1,1]){let a=o+(h>0?n:0),c=0;do{const l=this.slides[this.getIndex(this.index+h+c++*h)];a+=s.dimensions(l).width*h,r.add(l)}while(this.length>c&&a>e&&a<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=this.center?w(this.list)-(s.dimensions(this.slides[0]).width/2+s.dimensions(s.last(this.slides)).width/2):w(this.list,this.maxIndex);let n=t*i,o=0;do{const r=s.dimensions(this.slides[++e]).width,h=this.center?r/2+s.dimensions(this.slides[e+1]).width/2:r;o=n/h%1,n-=h}while(n>=0&&e<this.maxIndex);return[e,o]}}};function ue(t,e){if(!t||t.length<2)return!0;const{width:i}=s.dimensions(t);if(!e)return Math.ceil(w(t))<Math.trunc(i+me(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const h=n[r],a=s.dimensions(h).width,c=new Set([h]);let l=0;for(const d of[-1,1]){let f=a/2,g=0;for(;f<o;){const u=n[s.getIndex(+r+d+g++*d,n)];if(c.has(u))return!0;f+=s.dimensions(u).width,c.add(u)}l=Math.max(l,a/2+s.dimensions(n[s.getIndex(+r+d,n)]).width/2-(f-o))}if(Math.trunc(l)>s.sumBy(n.filter(d=>!c.has(d)),d=>s.dimensions(d).width))return!0}return!1}function me(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",ft),ft});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.8210c3e08 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.92ee0f0d9 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -75,7 +75,7 @@
75
75
  return value === void 0;
76
76
  }
77
77
  function toNode(element) {
78
- return toNodes(element)[0];
78
+ return element && toNodes(element)[0];
79
79
  }
80
80
  function toNodes(element) {
81
81
  return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
@@ -138,15 +138,13 @@
138
138
  const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
139
139
  const trailingCommaRe = /\s*,$/;
140
140
  const parseSelector = memoize((selector) => {
141
+ var _a;
141
142
  selector = selector.replace(addStarRe, "$1 *");
142
143
  let isContextSelector = false;
143
144
  const selectors = [];
144
- for (let sel of selector.match(splitSelectorRe)) {
145
+ for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
145
146
  sel = sel.replace(trailingCommaRe, "").trim();
146
- if (sel[0] === ">") {
147
- sel = `:scope ${sel}`;
148
- }
149
- isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
147
+ isContextSelector || (isContextSelector = ["!", "+", "~", "-", ">"].includes(sel[0]));
150
148
  selectors.push(sel);
151
149
  }
152
150
  return {
@@ -155,6 +153,11 @@
155
153
  isContextSelector
156
154
  };
157
155
  });
156
+ const parsePositionSelector = memoize((selector) => {
157
+ selector = selector.substr(1).trim();
158
+ const index2 = selector.indexOf(" ");
159
+ return ~index2 ? [selector.substring(0, index2), selector.substring(index2 + 1)] : [selector, ""];
160
+ });
158
161
  function _query(selector, context = document, queryFn) {
159
162
  if (!selector || !isString(selector)) {
160
163
  return selector;
@@ -166,29 +169,36 @@
166
169
  selector = "";
167
170
  const isSingle = parsed.selectors.length === 1;
168
171
  for (let sel of parsed.selectors) {
172
+ let positionSel;
169
173
  let ctx = context;
170
174
  if (sel[0] === "!") {
171
- const selectors = sel.substr(1).trim().split(" ");
172
- ctx = parent(context).closest(selectors[0]);
173
- sel = selectors.slice(1).join(" ").trim();
174
- if (!sel.length && isSingle) {
175
+ [positionSel, sel] = parsePositionSelector(sel);
176
+ ctx = context.parentElement.closest(positionSel);
177
+ if (!sel && isSingle) {
175
178
  return ctx;
176
179
  }
177
180
  }
178
- if (sel[0] === "-") {
179
- const selectors = sel.substr(1).trim().split(" ");
180
- const prev = (ctx || context).previousElementSibling;
181
- ctx = matches(prev, sel.substr(1)) ? prev : null;
182
- sel = selectors.slice(1).join(" ");
183
- if (!sel.length && isSingle) {
181
+ if (ctx && sel[0] === "-") {
182
+ [positionSel, sel] = parsePositionSelector(sel);
183
+ ctx = ctx.previousElementSibling;
184
+ ctx = matches(ctx, positionSel) ? ctx : null;
185
+ if (!sel && isSingle) {
184
186
  return ctx;
185
187
  }
186
- } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
187
- return _doQuery(parent(ctx), queryFn, `:scope :nth-child(${index(ctx) + 1}) ${sel}`);
188
188
  }
189
- if (ctx) {
190
- selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
189
+ if (!ctx) {
190
+ continue;
191
191
  }
192
+ if (isSingle) {
193
+ if (sel[0] === "~" || sel[0] === "+") {
194
+ sel = `:scope :nth-child(${index(ctx) + 1}) ${sel}`;
195
+ ctx = ctx.parentElement;
196
+ } else if (sel[0] === ">") {
197
+ sel = `:scope ${sel}`;
198
+ }
199
+ return _doQuery(ctx, queryFn, sel);
200
+ }
201
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
192
202
  }
193
203
  if (!isDocument(context)) {
194
204
  context = context.ownerDocument;
@@ -452,6 +462,7 @@
452
462
  }
453
463
  };
454
464
  }
465
+ const loading = {};
455
466
  const dimensions = {};
456
467
  function getBackgroundImageDimensions(el) {
457
468
  const src = uikitUtil.css(el, "backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/, "$1");
@@ -461,11 +472,12 @@
461
472
  const image = new Image();
462
473
  if (src) {
463
474
  image.src = src;
464
- if (!image.naturalWidth) {
465
- image.onload = () => {
475
+ if (!image.naturalWidth && !loading[src]) {
476
+ uikitUtil.once(image, "error load", () => {
466
477
  dimensions[src] = toDimensions(image);
467
478
  uikitUtil.trigger(el, uikitUtil.createEvent("load", false));
468
- };
479
+ });
480
+ loading[src] = true;
469
481
  return toDimensions(image);
470
482
  }
471
483
  }
@@ -552,7 +564,7 @@
552
564
  var Component = {
553
565
  mixins: [Parallax],
554
566
  beforeConnect() {
555
- this.item = uikitUtil.closest(this.$el, `.${this.$options.id.replace("parallax", "items")} > *`);
567
+ this.item = this.$el.closest(`.${this.$options.id.replace("parallax", "items")} > *`);
556
568
  },
557
569
  disconnected() {
558
570
  this.item = null;
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.8210c3e08 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],$):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlideshow_parallax=$(s.UIkit.util))})(this,function(s){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=K(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function K(n,e){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(e,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function X(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:On,from:Y}=Array;function Z(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function k(n){return C(n)&&n===n.window}function U(n){return A(n)===9}function _(n){return A(n)>=1}function A(n){return!k(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function nn(n){return n===void 0}function b(n){return h(n)[0]}function h(n){return _(n)?[n]:Array.from(n||[]).filter(_)}function tn(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function j(n,e,t){var r;if(C(e)){for(const i in e)j(n,i,e[i]);return}if(nn(t))return(r=b(n))==null?void 0:r.getAttribute(e);for(const i of h(n))Z(t)&&(t=t.call(i,j(i,e))),t===null?en(i,e):i.setAttribute(e,t)}function en(n,e){h(n).forEach(t=>t.removeAttribute(e))}function O(n){var e;return(e=b(n))==null?void 0:e.parentElement}function rn(n,e){return h(n).filter(t=>W(t,e))}function W(n,e){return h(n).some(t=>t.matches(e))}function on(n,e){n=b(n);const t=n?Y(n.children):[];return e?rn(t,e):t}function E(n,e){return e?h(n).indexOf(b(e)):on(O(n)).indexOf(n)}function sn(n,e){return h(dn(n,b(e),"querySelectorAll"))}const cn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,an=/.*?[^\\](?![^(]*\))(?:,|$)/g,fn=/\s*,$/,un=tn(n=>{n=n.replace(cn,"$1 *");let e=!1;const t=[];for(let r of n.match(an))r=r.replace(fn,"").trim(),r[0]===">"&&(r=`:scope ${r}`),e||(e=["!","+","~","-"].includes(r[0])),t.push(r);return{selector:t.join(","),selectors:t,isContextSelector:e}});function dn(n,e=document,t){if(!n||!M(n))return n;const r=un(n);if(!r.isContextSelector)return P(e,t,r.selector);n="";const i=r.selectors.length===1;for(let o of r.selectors){let c=e;if(o[0]==="!"){const a=o.substr(1).trim().split(" ");if(c=O(e).closest(a[0]),o=a.slice(1).join(" ").trim(),!o.length&&i)return c}if(o[0]==="-"){const a=o.substr(1).trim().split(" "),u=(c||e).previousElementSibling;if(c=W(u,o.substr(1))?u:null,o=a.slice(1).join(" "),!o.length&&i)return c}else if(o[0]==="~"||o[0]==="+"&&i)return P(O(c),t,`:scope :nth-child(${E(c)+1}) ${o}`);c&&(n+=`${n?",":""}${hn(c)} ${o}`)}return U(e)||(e=e.ownerDocument),P(e,t,n)}function P(n,e,t){try{return n[e](t)}catch{return null}}function hn(n){const e=[];for(;n.parentNode;){const t=j(n,"id");if(t){e.unshift(`#${ln(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${E(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function ln(n){return M(n)?CSS.escape(n):""}const gn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function mn(n){const e=gn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),$n(t.content.childNodes)}function $n(n){return n.length>1?n:n[0]}function bn(n,e){return xn(n)?h(mn(n)):sn(n,e)}function xn(n){return M(n)&&X(n.trim(),"<")}function pn(n){return Math.ceil(Math.max(0,...bn("[stroke]",n).map(e=>{var t;return(t=e.getTotalLength)==null?void 0:t.call(e)})))}const y={x:v,y:v,rotate:v,scale:v,color:I,backgroundColor:I,borderColor:I,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:vn,stroke:Sn,bgx:H,bgy:H},{keys:D}=Object;var wn={mixins:[$],props:L(D(y),"list"),data:L(D(y),void 0),computed:{props(n,e){const t={};for(const i in n)i in y&&!s.isUndefined(n[i])&&(t[i]=n[i].slice());const r={};for(const i in t)r[i]=y[i](i,e,t[i],t);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,s.clamp(n));return e.willChange=Object.keys(e).map(s.propName).join(","),e}}};function v(n,e,t){let r=F(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",i;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,i=o=>s.toFloat(s.toFloat(o).toFixed(r==="px"?0:6))):n==="scale"&&(r="",i=o=>{var c;return F([o])?s.toPx(o,"width",e,!0)/e[`offset${(c=o.endsWith)!=null&&c.call(o,"vh")?"Height":"Width"}`]:s.toFloat(o)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,i),(o,c)=>{o.transform=`${o.transform||""} ${n}(${x(t,c)}${r})`}}function I(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,r=>yn(e,r)),(r,i)=>{const[o,c,a]=B(t,i),u=o.map((l,f)=>(l+=a*(c[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");r[n]=`rgba(${u})`}}function yn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const r=F(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(i,o)=>{const c=x(t,o);i.filter=`${i.filter||""} ${n}(${c+r})`}}function vn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(r,i)=>{r[n]=x(t,i)}}function Sn(n,e,t){t.length===1&&t.unshift(0);const r=F(t),i=pn(e);return t=m(t.reverse(),o=>(o=s.toFloat(o),r==="%"?o*i/100:o)),t.some(([o])=>o)?(s.css(e,"strokeDasharray",i),(o,c)=>{o.strokeDashoffset=x(t,c)}):s.noop}function H(n,e,t,r){t.length===1&&t.unshift(0);const i=n==="bgy"?"height":"width";r[n]=m(t,a=>s.toPx(a,i,e));const o=["bgx","bgy"].filter(a=>a in r);if(o.length===2&&n==="bgx")return s.noop;if(p(e,"backgroundSize","")==="cover")return Fn(n,e,t,r);const c={};for(const a of o)c[a]=R(e,a);return z(o,c,r)}function Fn(n,e,t,r){const i=Cn(e);if(!i.width)return s.noop;const o={width:e.offsetWidth,height:e.offsetHeight},c=["bgx","bgy"].filter(f=>f in r),a={};for(const f of c){const d=r[f].map(([jn])=>jn),w=Math.min(...d),T=Math.max(...d),G=d.indexOf(w)<d.indexOf(T),J=T-w;a[f]=`${(G?-J:0)-(G?w:T)}px`,o[f==="bgy"?"height":"width"]+=J}const u=s.Dimensions.cover(i,o);for(const f of c){const d=f==="bgy"?"height":"width",w=u[d]-o[d];a[f]=`max(${R(e,f)},-${w}px) + ${a[f]}`}const l=z(c,a,r);return(f,d)=>{l(f,d),f.backgroundSize=`${u.width}px ${u.height}px`,f.backgroundRepeat="no-repeat"}}function R(n,e){return p(n,`background-position-${e.substr(-1)}`,"")}function z(n,e,t){return function(r,i){for(const o of n){const c=x(t[o],i);r[`background-position-${o.substr(-1)}`]=`calc(${e[o]} + ${c}px)`}}}const S={};function Cn(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{S[e]=N(t),s.trigger(n,s.createEvent("load",!1))},N(t)):S[e]=N(t)}function N(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=s.toFloat){const t=[],{length:r}=n;let i=0;for(let o=0;o<r;o++){let[c,a]=s.isString(n[o])?n[o].trim().split(/ (?![^(]*\))/):[n[o]];if(c=e(c),a=a?s.toFloat(a)/100:null,o===0?a===null?a=0:a&&t.push([c,0]):o===r-1&&(a===null?a=1:a!==1&&(t.push([c,a]),a=1)),t.push([c,a]),a===null)i++;else if(i){const u=t[o-i-1][1],l=(a-u)/(i+1);for(let f=i;f>0;f--)t[o-f][1]=u+l*(i-f+1);i=0}}return t}function B(n,e){const t=s.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function x(n,e){const[t,r,i]=B(n,e);return t+Math.abs(t-r)*i*(t<r?1:-1)}const Mn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,e){var t;for(const r of n){const i=(t=r.match)==null?void 0:t.call(r,Mn);if(i)return i[1]}return e}function p(n,e,t){const r=n.style[e],i=s.css(s.css(n,e,t),e);return n.style[e]=r,i}function L(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}var V={mixins:[wn],beforeConnect(){this.item=s.closest(this.$el,`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:r,dir:i}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const o=this.getCss(Q(n,i,e)),c=this.getCss(q(n)?.5:i>0?1:0);s.fastdom.write(()=>{s.css(this.$el,o),s.Transition.start(this.$el,c,t,r).catch(s.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){s.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,dir:t}}){s.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(Q(n,t,e));s.fastdom.write(()=>s.css(this.$el,r))})}}]};function q(n){return s.endsWith(n,"in")}function Q(n,e,t){return t/=2,q(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",V),V});
1
+ /*! UIkit 3.19.5-dev.92ee0f0d9 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],$):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlideshow_parallax=$(s.UIkit.util))})(this,function(s){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=Y(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function Y(n,e){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(e,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function Z(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:In,from:k}=Array;function U(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function nn(n){return C(n)&&n===n.window}function tn(n){return T(n)===9}function N(n){return T(n)>=1}function T(n){return!nn(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function en(n){return n===void 0}function b(n){return n&&d(n)[0]}function d(n){return N(n)?[n]:Array.from(n||[]).filter(N)}function A(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function O(n,e,t){var r;if(C(e)){for(const o in e)O(n,o,e[o]);return}if(en(t))return(r=b(n))==null?void 0:r.getAttribute(e);for(const o of d(n))U(t)&&(t=t.call(o,O(o,e))),t===null?rn(o,e):o.setAttribute(e,t)}function rn(n,e){d(n).forEach(t=>t.removeAttribute(e))}function on(n){var e;return(e=b(n))==null?void 0:e.parentElement}function sn(n,e){return d(n).filter(t=>E(t,e))}function E(n,e){return d(n).some(t=>t.matches(e))}function cn(n,e){n=b(n);const t=n?k(n.children):[];return e?sn(t,e):t}function W(n,e){return e?d(n).indexOf(b(e)):cn(on(n)).indexOf(n)}function an(n,e){return d(ln(n,b(e),"querySelectorAll"))}const fn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,un=/.*?[^\\](?![^(]*\))(?:,|$)/g,dn=/\s*,$/,hn=A(n=>{var e;n=n.replace(fn,"$1 *");let t=!1;const r=[];for(let o of(e=n.match(un))!=null?e:[])o=o.replace(dn,"").trim(),t||(t=["!","+","~","-",">"].includes(o[0])),r.push(o);return{selector:r.join(","),selectors:r,isContextSelector:t}}),D=A(n=>{n=n.substr(1).trim();const e=n.indexOf(" ");return~e?[n.substring(0,e),n.substring(e+1)]:[n,""]});function ln(n,e=document,t){if(!n||!M(n))return n;const r=hn(n);if(!r.isContextSelector)return P(e,t,r.selector);n="";const o=r.selectors.length===1;for(let i of r.selectors){let a,c=e;if(i[0]==="!"&&([a,i]=D(i),c=e.parentElement.closest(a),!i&&o)||c&&i[0]==="-"&&([a,i]=D(i),c=c.previousElementSibling,c=E(c,a)?c:null,!i&&o))return c;if(c){if(o)return i[0]==="~"||i[0]==="+"?(i=`:scope :nth-child(${W(c)+1}) ${i}`,c=c.parentElement):i[0]===">"&&(i=`:scope ${i}`),P(c,t,i);n+=`${n?",":""}${gn(c)} ${i}`}}return tn(e)||(e=e.ownerDocument),P(e,t,n)}function P(n,e,t){try{return n[e](t)}catch{return null}}function gn(n){const e=[];for(;n.parentNode;){const t=O(n,"id");if(t){e.unshift(`#${mn(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${W(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function mn(n){return M(n)?CSS.escape(n):""}const $n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function bn(n){const e=$n.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),xn(t.content.childNodes)}function xn(n){return n.length>1?n:n[0]}function pn(n,e){return wn(n)?d(bn(n)):an(n,e)}function wn(n){return M(n)&&Z(n.trim(),"<")}function yn(n){return Math.ceil(Math.max(0,...pn("[stroke]",n).map(e=>{var t;return(t=e.getTotalLength)==null?void 0:t.call(e)})))}const y={x:v,y:v,rotate:v,scale:v,color:j,backgroundColor:j,borderColor:j,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Fn,stroke:Cn,bgx:R,bgy:R},{keys:H}=Object;var vn={mixins:[$],props:q(H(y),"list"),data:q(H(y),void 0),computed:{props(n,e){const t={};for(const o in n)o in y&&!s.isUndefined(n[o])&&(t[o]=n[o].slice());const r={};for(const o in t)r[o]=y[o](o,e,t[o],t);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,s.clamp(n));return e.willChange=Object.keys(e).map(s.propName).join(","),e}}};function v(n,e,t){let r=F(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",o;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,o=i=>s.toFloat(s.toFloat(i).toFixed(r==="px"?0:6))):n==="scale"&&(r="",o=i=>{var a;return F([i])?s.toPx(i,"width",e,!0)/e[`offset${(a=i.endsWith)!=null&&a.call(i,"vh")?"Height":"Width"}`]:s.toFloat(i)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,o),(i,a)=>{i.transform=`${i.transform||""} ${n}(${x(t,a)}${r})`}}function j(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,r=>Sn(e,r)),(r,o)=>{const[i,a,c]=V(t,o),h=i.map((l,f)=>(l+=c*(a[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");r[n]=`rgba(${h})`}}function Sn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const r=F(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(o,i)=>{const a=x(t,i);o.filter=`${o.filter||""} ${n}(${a+r})`}}function Fn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(r,o)=>{r[n]=x(t,o)}}function Cn(n,e,t){t.length===1&&t.unshift(0);const r=F(t),o=yn(e);return t=m(t.reverse(),i=>(i=s.toFloat(i),r==="%"?i*o/100:i)),t.some(([i])=>i)?(s.css(e,"strokeDasharray",o),(i,a)=>{i.strokeDashoffset=x(t,a)}):s.noop}function R(n,e,t,r){t.length===1&&t.unshift(0);const o=n==="bgy"?"height":"width";r[n]=m(t,c=>s.toPx(c,o,e));const i=["bgx","bgy"].filter(c=>c in r);if(i.length===2&&n==="bgx")return s.noop;if(p(e,"backgroundSize","")==="cover")return Mn(n,e,t,r);const a={};for(const c of i)a[c]=z(e,c);return B(i,a,r)}function Mn(n,e,t,r){const o=On(e);if(!o.width)return s.noop;const i={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in r),c={};for(const f of a){const u=r[f].map(([jn])=>jn),w=Math.min(...u),_=Math.max(...u),K=u.indexOf(w)<u.indexOf(_),X=_-w;c[f]=`${(K?-X:0)-(K?w:_)}px`,i[f==="bgy"?"height":"width"]+=X}const h=s.Dimensions.cover(o,i);for(const f of a){const u=f==="bgy"?"height":"width",w=h[u]-i[u];c[f]=`max(${z(e,f)},-${w}px) + ${c[f]}`}const l=B(a,c,r);return(f,u)=>{l(f,u),f.backgroundSize=`${h.width}px ${h.height}px`,f.backgroundRepeat="no-repeat"}}function z(n,e){return p(n,`background-position-${e.substr(-1)}`,"")}function B(n,e,t){return function(r,o){for(const i of n){const a=x(t[i],o);r[`background-position-${i.substr(-1)}`]=`calc(${e[i]} + ${a}px)`}}}const L={},S={};function On(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth&&!L[e])?(s.once(t,"error load",()=>{S[e]=I(t),s.trigger(n,s.createEvent("load",!1))}),L[e]=!0,I(t)):S[e]=I(t)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=s.toFloat){const t=[],{length:r}=n;let o=0;for(let i=0;i<r;i++){let[a,c]=s.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(a=e(a),c=c?s.toFloat(c)/100:null,i===0?c===null?c=0:c&&t.push([a,0]):i===r-1&&(c===null?c=1:c!==1&&(t.push([a,c]),c=1)),t.push([a,c]),c===null)o++;else if(o){const h=t[i-o-1][1],l=(c-h)/(o+1);for(let f=o;f>0;f--)t[i-f][1]=h+l*(o-f+1);o=0}}return t}function V(n,e){const t=s.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function x(n,e){const[t,r,o]=V(n,e);return t+Math.abs(t-r)*o*(t<r?1:-1)}const Pn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,e){var t;for(const r of n){const o=(t=r.match)==null?void 0:t.call(r,Pn);if(o)return o[1]}return e}function p(n,e,t){const r=n.style[e],o=s.css(s.css(n,e,t),e);return n.style[e]=r,o}function q(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}var Q={mixins:[vn],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:r,dir:o}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(J(n,o,e)),a=this.getCss(G(n)?.5:o>0?1:0);s.fastdom.write(()=>{s.css(this.$el,i),s.Transition.start(this.$el,a,t,r).catch(s.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){s.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,dir:t}}){s.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(J(n,t,e));s.fastdom.write(()=>s.css(this.$el,r))})}}]};function G(n){return s.endsWith(n,"in")}function J(n,e,t){return t/=2,G(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",Q),Q});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.8210c3e08 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.92ee0f0d9 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -167,7 +167,7 @@
167
167
  return value === void 0;
168
168
  }
169
169
  function toNode(element) {
170
- return toNodes(element)[0];
170
+ return element && toNodes(element)[0];
171
171
  }
172
172
  function toNodes(element) {
173
173
  return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
@@ -230,15 +230,13 @@
230
230
  const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
231
231
  const trailingCommaRe = /\s*,$/;
232
232
  const parseSelector = memoize((selector) => {
233
+ var _a;
233
234
  selector = selector.replace(addStarRe, "$1 *");
234
235
  let isContextSelector = false;
235
236
  const selectors = [];
236
- for (let sel of selector.match(splitSelectorRe)) {
237
+ for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
237
238
  sel = sel.replace(trailingCommaRe, "").trim();
238
- if (sel[0] === ">") {
239
- sel = `:scope ${sel}`;
240
- }
241
- isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
239
+ isContextSelector || (isContextSelector = ["!", "+", "~", "-", ">"].includes(sel[0]));
242
240
  selectors.push(sel);
243
241
  }
244
242
  return {
@@ -247,6 +245,11 @@
247
245
  isContextSelector
248
246
  };
249
247
  });
248
+ const parsePositionSelector = memoize((selector) => {
249
+ selector = selector.substr(1).trim();
250
+ const index2 = selector.indexOf(" ");
251
+ return ~index2 ? [selector.substring(0, index2), selector.substring(index2 + 1)] : [selector, ""];
252
+ });
250
253
  function _query(selector, context = document, queryFn) {
251
254
  if (!selector || !isString(selector)) {
252
255
  return selector;
@@ -258,29 +261,36 @@
258
261
  selector = "";
259
262
  const isSingle = parsed.selectors.length === 1;
260
263
  for (let sel of parsed.selectors) {
264
+ let positionSel;
261
265
  let ctx = context;
262
266
  if (sel[0] === "!") {
263
- const selectors = sel.substr(1).trim().split(" ");
264
- ctx = parent(context).closest(selectors[0]);
265
- sel = selectors.slice(1).join(" ").trim();
266
- if (!sel.length && isSingle) {
267
+ [positionSel, sel] = parsePositionSelector(sel);
268
+ ctx = context.parentElement.closest(positionSel);
269
+ if (!sel && isSingle) {
267
270
  return ctx;
268
271
  }
269
272
  }
270
- if (sel[0] === "-") {
271
- const selectors = sel.substr(1).trim().split(" ");
272
- const prev = (ctx || context).previousElementSibling;
273
- ctx = matches(prev, sel.substr(1)) ? prev : null;
274
- sel = selectors.slice(1).join(" ");
275
- if (!sel.length && isSingle) {
273
+ if (ctx && sel[0] === "-") {
274
+ [positionSel, sel] = parsePositionSelector(sel);
275
+ ctx = ctx.previousElementSibling;
276
+ ctx = matches(ctx, positionSel) ? ctx : null;
277
+ if (!sel && isSingle) {
276
278
  return ctx;
277
279
  }
278
- } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
279
- return _doQuery(parent(ctx), queryFn, `:scope :nth-child(${index(ctx) + 1}) ${sel}`);
280
280
  }
281
- if (ctx) {
282
- selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
281
+ if (!ctx) {
282
+ continue;
283
+ }
284
+ if (isSingle) {
285
+ if (sel[0] === "~" || sel[0] === "+") {
286
+ sel = `:scope :nth-child(${index(ctx) + 1}) ${sel}`;
287
+ ctx = ctx.parentElement;
288
+ } else if (sel[0] === ">") {
289
+ sel = `:scope ${sel}`;
290
+ }
291
+ return _doQuery(ctx, queryFn, sel);
283
292
  }
293
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
284
294
  }
285
295
  if (!isDocument(context)) {
286
296
  context = context.ownerDocument;
@@ -544,6 +554,7 @@
544
554
  }
545
555
  };
546
556
  }
557
+ const loading = {};
547
558
  const dimensions = {};
548
559
  function getBackgroundImageDimensions(el) {
549
560
  const src = util.css(el, "backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/, "$1");
@@ -553,11 +564,12 @@
553
564
  const image = new Image();
554
565
  if (src) {
555
566
  image.src = src;
556
- if (!image.naturalWidth) {
557
- image.onload = () => {
567
+ if (!image.naturalWidth && !loading[src]) {
568
+ util.once(image, "error load", () => {
558
569
  dimensions[src] = toDimensions(image);
559
570
  util.trigger(el, util.createEvent("load", false));
560
- };
571
+ });
572
+ loading[src] = true;
561
573
  return toDimensions(image);
562
574
  }
563
575
  }
@@ -1332,7 +1344,6 @@
1332
1344
  }
1333
1345
  }
1334
1346
  },
1335
- observe: resize(),
1336
1347
  events: {
1337
1348
  itemshow({ target }) {
1338
1349
  util.addClass(target, this.clsEnter, this.clsSlideActive);
@@ -1461,6 +1472,7 @@
1461
1472
  return { animation: this.animation };
1462
1473
  }
1463
1474
  },
1475
+ observe: resize(),
1464
1476
  events: {
1465
1477
  beforeitemshow({ target }) {
1466
1478
  util.addClass(target, this.clsActive);
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.8210c3e08 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],I):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlideshow=I(s.UIkit.util))})(this,function(s){"use strict";var I={connected(){s.addClass(this.$el,this.$options.id)}};function ot(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&ht(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function ht(t,e){for(const{read:n,write:i,events:a=[]}of t._updates){if(!e.has("update")&&!a.some(o=>e.has(o)))continue;let r;n&&(r=n.call(t,t._data,e),r&&s.isPlainObject(r)&&s.assign(t._data,r)),i&&r!==!1&&s.fastdom.write(()=>{t._connected&&i.call(t,t._data,e)})}}function L(t){return T(s.observeResize,t,"resize")}function dt(t){return T(s.observeIntersection,t)}function ct(t={}){return dt({handler:function(e,n){const{targets:i=this.$el,preload:a=5}=t;for(const r of s.toNodes(s.isFunction(i)?i(this):i))s.$$('[loading="lazy"]',r).slice(0,a-1).forEach(o=>s.removeAttr(o,"loading"));for(const r of e.filter(({isIntersecting:o})=>o).map(({target:o})=>o))n.unobserve(r)},...t})}function lt(t){return T((e,n)=>({disconnect:s.on(ft(e),"scroll",n,{passive:!0})}),t,"scroll")}function T(t,e,n){return{observe:t,handler(){ot(this,n)},...e}}function ft(t){return s.toNodes(t).map(e=>{const{ownerDocument:n}=e,i=s.scrollParent(e,!0);return i===n.scrollingElement?n:i})}var ut={props:{media:Boolean},data:{media:!1},connected(){const t=gt(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function gt(t,e){if(s.isString(t)){if(s.startsWith(t,"@"))t=s.toFloat(s.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&s.isNumeric(t)?`(min-width: ${t}px)`:""}function mt(t,e){var n;return(n=t==null?void 0:t.startsWith)==null?void 0:n.call(t,e)}const{isArray:ce,from:pt}=Array;function vt(t){return typeof t=="function"}function M(t){return t!==null&&typeof t=="object"}function xt(t){return M(t)&&t===t.window}function bt(t){return U(t)===9}function R(t){return U(t)>=1}function U(t){return!xt(t)&&M(t)&&t.nodeType}function O(t){return typeof t=="string"}function It(t){return t===void 0}function w(t){return p(t)[0]}function p(t){return R(t)?[t]:Array.from(t||[]).filter(R)}function wt(t){const e=Object.create(null);return(n,...i)=>e[n]||(e[n]=t(n,...i))}function P(t,e,n){var i;if(M(e)){for(const a in e)P(t,a,e[a]);return}if(It(n))return(i=w(t))==null?void 0:i.getAttribute(e);for(const a of p(t))vt(n)&&(n=n.call(a,P(a,e))),n===null?$t(a,e):a.setAttribute(e,n)}function $t(t,e){p(t).forEach(n=>n.removeAttribute(e))}function H(t){var e;return(e=w(t))==null?void 0:e.parentElement}function yt(t,e){return p(t).filter(n=>B(n,e))}function B(t,e){return p(t).some(n=>n.matches(e))}function St(t,e){t=w(t);const n=t?pt(t.children):[];return e?yt(n,e):n}function q(t,e){return e?p(t).indexOf(w(e)):St(H(t)).indexOf(t)}function kt(t,e){return p(Nt(t,w(e),"querySelectorAll"))}const _t=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,At=/.*?[^\\](?![^(]*\))(?:,|$)/g,Ct=/\s*,$/,zt=wt(t=>{t=t.replace(_t,"$1 *");let e=!1;const n=[];for(let i of t.match(At))i=i.replace(Ct,"").trim(),i[0]===">"&&(i=`:scope ${i}`),e||(e=["!","+","~","-"].includes(i[0])),n.push(i);return{selector:n.join(","),selectors:n,isContextSelector:e}});function Nt(t,e=document,n){if(!t||!O(t))return t;const i=zt(t);if(!i.isContextSelector)return D(e,n,i.selector);t="";const a=i.selectors.length===1;for(let r of i.selectors){let o=e;if(r[0]==="!"){const h=r.substr(1).trim().split(" ");if(o=H(e).closest(h[0]),r=h.slice(1).join(" ").trim(),!r.length&&a)return o}if(r[0]==="-"){const h=r.substr(1).trim().split(" "),d=(o||e).previousElementSibling;if(o=B(d,r.substr(1))?d:null,r=h.slice(1).join(" "),!r.length&&a)return o}else if(r[0]==="~"||r[0]==="+"&&a)return D(H(o),n,`:scope :nth-child(${q(o)+1}) ${r}`);o&&(t+=`${t?",":""}${Et(o)} ${r}`)}return bt(e)||(e=e.ownerDocument),D(e,n,t)}function D(t,e,n){try{return t[e](n)}catch{return null}}function Et(t){const e=[];for(;t.parentNode;){const n=P(t,"id");if(n){e.unshift(`#${Tt(n)}`);break}else{let{tagName:i}=t;i!=="HTML"&&(i+=`:nth-child(${q(t)+1})`),e.unshift(i),t=t.parentNode}}return e.join(" > ")}function Tt(t){return O(t)?CSS.escape(t):""}const Mt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Ot(t){const e=Mt.exec(t);if(e)return document.createElement(e[1]);const n=document.createElement("template");return n.innerHTML=t.trim(),Pt(n.content.childNodes)}function Pt(t){return t.length>1?t:t[0]}function Ht(t,e){return Dt(t)?p(Ot(t)):kt(t,e)}function Dt(t){return O(t)&&mt(t.trim(),"<")}function Ft(t){return Math.ceil(Math.max(0,...Ht("[stroke]",t).map(e=>{var n;return(n=e.getTotalLength)==null?void 0:n.call(e)})))}const A={x:C,y:C,rotate:C,scale:C,color:F,backgroundColor:F,borderColor:F,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:Wt,stroke:Lt,bgx:G,bgy:G},{keys:V}=Object;K(V(A),"list"),K(V(A),void 0);function C(t,e,n){let i=N(n)||{x:"px",y:"px",rotate:"deg"}[t]||"",a;return t==="x"||t==="y"?(t=`translate${s.ucfirst(t)}`,a=r=>s.toFloat(s.toFloat(r).toFixed(i==="px"?0:6))):t==="scale"&&(i="",a=r=>{var o;return N([r])?s.toPx(r,"width",e,!0)/e[`offset${(o=r.endsWith)!=null&&o.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),n.length===1&&n.unshift(t==="scale"?1:0),n=b(n,a),(r,o)=>{r.transform=`${r.transform||""} ${t}(${$(n,o)}${i})`}}function F(t,e,n){return n.length===1&&n.unshift(y(e,t,"")),n=b(n,i=>jt(e,i)),(i,a)=>{const[r,o,h]=J(n,a),d=r.map((f,c)=>(f+=h*(o[c]-f),c===3?s.toFloat(f):parseInt(f,10))).join(",");i[t]=`rgba(${d})`}}function jt(t,e){return y(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function x(t,e,n){n.length===1&&n.unshift(0);const i=N(n)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,n=b(n),(a,r)=>{const o=$(n,r);a.filter=`${a.filter||""} ${t}(${o+i})`}}function Wt(t,e,n){return n.length===1&&n.unshift(y(e,t,"")),n=b(n),(i,a)=>{i[t]=$(n,a)}}function Lt(t,e,n){n.length===1&&n.unshift(0);const i=N(n),a=Ft(e);return n=b(n.reverse(),r=>(r=s.toFloat(r),i==="%"?r*a/100:r)),n.some(([r])=>r)?(s.css(e,"strokeDasharray",a),(r,o)=>{r.strokeDashoffset=$(n,o)}):s.noop}function G(t,e,n,i){n.length===1&&n.unshift(0);const a=t==="bgy"?"height":"width";i[t]=b(n,h=>s.toPx(h,a,e));const r=["bgx","bgy"].filter(h=>h in i);if(r.length===2&&t==="bgx")return s.noop;if(y(e,"backgroundSize","")==="cover")return Rt(t,e,n,i);const o={};for(const h of r)o[h]=X(e,h);return Q(r,o,i)}function Rt(t,e,n,i){const a=Ut(e);if(!a.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},o=["bgx","bgy"].filter(c=>c in i),h={};for(const c of o){const l=i[c].map(([de])=>de),g=Math.min(...l),m=Math.max(...l),v=l.indexOf(g)<l.indexOf(m),at=m-g;h[c]=`${(v?-at:0)-(v?g:m)}px`,r[c==="bgy"?"height":"width"]+=at}const d=s.Dimensions.cover(a,r);for(const c of o){const l=c==="bgy"?"height":"width",g=d[l]-r[l];h[c]=`max(${X(e,c)},-${g}px) + ${h[c]}`}const f=Q(o,h,i);return(c,l)=>{f(c,l),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function X(t,e){return y(t,`background-position-${e.substr(-1)}`,"")}function Q(t,e,n){return function(i,a){for(const r of t){const o=$(n[r],a);i[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${o}px)`}}}const z={};function Ut(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(z[e])return z[e];const n=new Image;return e&&(n.src=e,!n.naturalWidth)?(n.onload=()=>{z[e]=j(n),s.trigger(t,s.createEvent("load",!1))},j(n)):z[e]=j(n)}function j(t){return{width:t.naturalWidth,height:t.naturalHeight}}function b(t,e=s.toFloat){const n=[],{length:i}=t;let a=0;for(let r=0;r<i;r++){let[o,h]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(o=e(o),h=h?s.toFloat(h)/100:null,r===0?h===null?h=0:h&&n.push([o,0]):r===i-1&&(h===null?h=1:h!==1&&(n.push([o,h]),h=1)),n.push([o,h]),h===null)a++;else if(a){const d=n[r-a-1][1],f=(h-d)/(a+1);for(let c=a;c>0;c--)n[r-c][1]=d+f*(a-c+1);a=0}}return n}function J(t,e){const n=s.findIndex(t.slice(1),([,i])=>e<=i)+1;return[t[n-1][0],t[n][0],(e-t[n-1][1])/(t[n][1]-t[n-1][1])]}function $(t,e){const[n,i,a]=J(t,e);return n+Math.abs(n-i)*a*(n<i?1:-1)}const Bt=/^-?\d+(?:\.\d+)?(\S+)?/;function N(t,e){var n;for(const i of t){const a=(n=i.match)==null?void 0:n.call(i,Bt);if(a)return a[1]}return e}function y(t,e,n){const i=t.style[e],a=s.css(s.css(t,e,n),e);return t.style[e]=i,a}function K(t,e){return t.reduce((n,i)=>(n[i]=e,n),{})}function qt(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var Vt={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[L({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),lt({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=s.toPx(this.parallaxStart,"height",t,!0),n=s.toPx(this.parallaxEnd,"height",t,!0),i=qt(s.scrolledOver(t,e,n),this.parallaxEasing),[a,r]=this.getIndexAt(i),o=this.getValidIndex(a+Math.ceil(r)),h=this.slides[a],d=this.slides[o],{triggerShow:f,triggerShown:c,triggerHide:l,triggerHidden:g}=Gt(this);if(~this.prevIndex)for(const v of new Set([this.index,this.prevIndex]))s.includes([o,a],v)||(l(this.slides[v]),g(this.slides[v]));const m=this.prevIndex!==a||this.index!==o;this.dir=1,this.prevIndex=a,this.index=o,h!==d&&l(h),f(d),m&&c(h),this._translate(h===d?1:r,h,d)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function Gt(t){const{clsSlideActive:e,clsEnter:n,clsLeave:i}=t;return{triggerShow:a,triggerShown:r,triggerHide:o,triggerHidden:h};function a(d){s.hasClass(d,i)&&(o(d),h(d)),s.hasClass(d,e)||(s.trigger(d,"beforeitemshow",[t]),s.trigger(d,"itemshow",[t]))}function r(d){s.hasClass(d,n)&&s.trigger(d,"itemshown",[t])}function o(d){s.hasClass(d,e)||a(d),s.hasClass(d,n)&&r(d),s.hasClass(d,i)||(s.trigger(d,"beforeitemhide",[t]),s.trigger(d,"itemhide",[t]))}function h(d){s.hasClass(d,i)&&s.trigger(d,"itemhidden",[t])}}var Xt={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},Y={slide:{show(t){return[{transform:u(t*-100)},{transform:u()}]},percent(t){return S(t)},translate(t,e){return[{transform:u(e*-100*t)},{transform:u(e*100*(1-t))}]}}};function S(t){return Math.abs(s.css(t,"transform").split(",")[4]/t.offsetWidth)}function u(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function Z(t){return`scale3d(${t}, ${t}, 1)`}function Qt(t,e,n,{animation:i,easing:a}){const{percent:r,translate:o,show:h=s.noop}=i,d=h(n);let f;return{dir:n,show(c,l=0,g){const m=g?"linear":a;return c-=Math.round(c*s.clamp(l,-1,1)),this.translate(l),E(e,"itemin",{percent:l,duration:c,timing:m,dir:n}),E(t,"itemout",{percent:1-l,duration:c,timing:m,dir:n}),new Promise(v=>{f||(f=v),Promise.all([s.Transition.start(e,d[1],c,m),s.Transition.start(t,d[0],c,m)]).then(()=>{this.reset(),f()},s.noop)})},cancel(){return s.Transition.cancel([e,t])},reset(){for(const c in d[0])s.css([e,t],c,"")},async forward(c,l=this.percent()){return await this.cancel(),this.show(c,l,!0)},translate(c){this.reset();const l=o(c,n);s.css(e,l[1]),s.css(t,l[0]),E(e,"itemtranslatein",{percent:c,dir:n}),E(t,"itemtranslateout",{percent:1-c,dir:n})},percent(){return r(t||e,e,n)},getDistance(){return t==null?void 0:t.offsetWidth}}}function E(t,e,n){s.trigger(t,s.createEvent(e,!1,!1,n))}var Jt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var n,i,a;let r=0;return((a=((n=this.i18n)==null?void 0:n[t])||((i=this.$options.i18n)==null?void 0:i[t]))==null?void 0:a.replace(/%s/g,()=>e[r++]||""))||""}}},Kt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")&&!s.matches(this.$el,":focus")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const k={passive:!1,capture:!0},tt={passive:!0,capture:!0},Yt="touchstart mousedown",W="touchmove mousemove",et="touchend touchcancel mouseup click input scroll",nt=t=>t.preventDefault();var Zt={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const i=s.getEventPos(n).x*(s.isRtl?-1:1);this.prevPos=i===this.pos?this.prevPos:this.pos,this.pos=i,e(n)}}},events:[{name:Yt,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&te(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:W,el(){return this.list},handler:s.noop,...k}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,W,this.move,k),s.on(document,et,this.end,tt),s.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||s.on(this.list,"click",nt,k),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:n,prevIndex:i}=this,a=Math.abs(e),r=this.getIndex(i+this.dir),o=st.call(this,i,r);for(;r!==i&&a>o;)this.drag-=o*this.dir,i=r,a-=o,r=this.getIndex(i+this.dir),o=st.call(this,i,r);this.percent=a/o;const h=n[i],d=n[r],f=this.index!==r,c=i===r;let l;for(const g of[this.index,this.prevIndex])s.includes([r,i],g)||(s.trigger(n[g],"itemhidden",[this]),c&&(l=!0,this.prevIndex=i));(this.index===i&&this.prevIndex!==i||l)&&s.trigger(n[this.index],"itemshown",[this]),f&&(this.prevIndex=i,this.index=r,c||(s.trigger(h,"beforeitemhide",[this]),s.trigger(h,"itemhide",[this])),s.trigger(d,"beforeitemshow",[this]),s.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!c&&d)},end(){if(s.off(document,W,this.move,k),s.off(document,et,this.end,tt),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>s.off(this.list,"click",nt,k)),s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function st(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function te(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const n=Object.keys(e),i=n.concat(t).map(a=>[s.hyphenate(a),`data-${s.hyphenate(a)}`]).flat();return{attributes:n,filter:i}});let ee=1;function it(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${ee++}`}const _={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var ne={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$(t,e),navChildren(){return s.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation")},navItems(t){for(const e of t){const n=s.data(e,this.attrItem),i=s.$("a,button",e)||e;let a,r=null;if(s.isNumeric(n)){const o=s.toNumber(n),h=this.slides[o];h&&(h.id||(h.id=it(this,h)),r=h.id),a=this.t("slideX",s.toFloat(n)+1),s.attr(i,"role","tab")}else this.list&&(this.list.id||(this.list.id=it(this,this.list)),r=this.list.id),a=this.t(n);s.attr(i,{"aria-controls":r,"aria-label":s.attr(i,"aria-label")||a})}},slides(t){t.forEach((e,n)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",n+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){s.empty(this.nav);for(let n=0;n<t;n++)s.append(this.nav,`<li ${this.attrItem}="${n}"><a href></a></li>`)}}},connected(){s.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===_.SPACE)&&(t.preventDefault(),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:n}=t,i=s.data(e,this.attrItem);if(!s.isNumeric(i))return;let a=n===_.HOME?0:n===_.END?"last":n===_.LEFT?"previous":n===_.RIGHT?"next":-1;~a&&(t.preventDefault(),this.show(a))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const n=s.data(e,this.attrItem),i=s.$("a,button",e)||e;if(s.isNumeric(n)){const r=s.toNumber(n)===t;s.toggleClass(e,this.clsActive,r),s.toggleClass(i,"uk-disabled",this.parallax),s.attr(i,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&i&&s.matches(s.parent(e),":focus-within")&&i.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(n==="previous"&&t===0||n==="next"&&t>=this.maxIndex))}}}},se={mixins:[Kt,Zt,ne,Jt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>re(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},observe:L(),events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var n;if(this.dragging||!this.length||this.parallax)return;const{stack:i}=this,a=e?0:i.length,r=()=>{i.splice(a,1),i.length&&this.show(i.shift(),!0)};if(i[e?"unshift":"push"](t),!e&&i.length>1){i.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const o=this.getIndex(this.index),h=s.hasClass(this.slides,this.clsActive)&&this.slides[o],d=this.getIndex(t,this.index),f=this.slides[d];if(h===f){r();return}if(this.dir=ie(t,o),this.prevIndex=o,this.index=d,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(f,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}const c=this._show(h,f,e).then(()=>{h&&s.trigger(h,"itemhidden",[this]),s.trigger(f,"itemshown",[this]),i.shift(),this._transitioner=null,requestAnimationFrame(()=>i.length&&this.show(i.shift(),!0))});return h&&s.trigger(h,"itemhide",[this]),s.trigger(f,"itemshow",[this]),c},getIndex(t=this.index,e=this.index){return s.clamp(s.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!n&&!t)return this._translate(1),Promise.resolve();const{length:i}=this.stack;return this._transitioner[i>1?"forward":"show"](i>1?Math.min(this.duration,75+75/(i-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,n=this.index){const i=this._getTransitioner(e===n?!1:e,n);return i.translate(t),i},_getTransitioner(t=this.prevIndex,e=this.index,n=this.dir||1,i=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,n*(s.isRtl?-1:1),i)}}};function ie(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function re(t){return .5*t+300}var ae={mixins:[se],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:Y,Transitioner:Qt},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:t}){s.addClass(t,this.clsActive)},itemshown({target:t}){s.addClass(t,this.clsActivated)},itemhidden({target:t}){s.removeClass(t,this.clsActive,this.clsActivated)}}},oe={observe:ct({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},he={...Y,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-s.css(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:Z(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-s.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:Z(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:u(30),zIndex:-1},{transform:u(),zIndex:0}]:[{transform:u(-100),zIndex:0},{transform:u(),zIndex:-1}]},percent(t,e,n){return n<0?1-S(e):S(t)},translate(t,e){return e<0?[{transform:u(30*t),zIndex:-1},{transform:u(-100*(1-t)),zIndex:0}]:[{transform:u(-t*100),zIndex:0},{transform:u(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:u(100),zIndex:0},{transform:u(),zIndex:-1}]:[{transform:u(-30),zIndex:-1},{transform:u(),zIndex:0}]},percent(t,e,n){return n>0?1-S(e):S(t)},translate(t,e){return e<0?[{transform:u(t*100),zIndex:0},{transform:u(-30*(1-t)),zIndex:-1}]:[{transform:u(-30*t),zIndex:-1},{transform:u(100*(1-t)),zIndex:0}]}}},rt={mixins:[I,ae,Xt,Vt,oe],props:{ratio:String,minHeight:String,maxHeight:String},data:{ratio:"16:9",minHeight:void 0,maxHeight:void 0,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:he},watch:{list(t){s.css(t,{aspectRatio:this.ratio?this.ratio.replace(":","/"):void 0,minHeight:this.minHeight,maxHeight:this.maxHeight,minWidth:"100%",maxWidth:"100%"})}},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",rt),rt});
1
+ /*! UIkit 3.19.5-dev.92ee0f0d9 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(i,I){typeof exports=="object"&&typeof module<"u"?module.exports=I(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],I):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlideshow=I(i.UIkit.util))})(this,function(i){"use strict";var I={connected(){i.addClass(this.$el,this.$options.id)}};function dt(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,i.fastdom.read(()=>{t._connected&&ct(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function ct(t,e){for(const{read:n,write:s,events:a=[]}of t._updates){if(!e.has("update")&&!a.some(h=>e.has(h)))continue;let r;n&&(r=n.call(t,t._data,e),r&&i.isPlainObject(r)&&i.assign(t._data,r)),s&&r!==!1&&i.fastdom.write(()=>{t._connected&&s.call(t,t._data,e)})}}function W(t){return T(i.observeResize,t,"resize")}function lt(t){return T(i.observeIntersection,t)}function ft(t={}){return lt({handler:function(e,n){const{targets:s=this.$el,preload:a=5}=t;for(const r of i.toNodes(i.isFunction(s)?s(this):s))i.$$('[loading="lazy"]',r).slice(0,a-1).forEach(h=>i.removeAttr(h,"loading"));for(const r of e.filter(({isIntersecting:h})=>h).map(({target:h})=>h))n.unobserve(r)},...t})}function ut(t){return T((e,n)=>({disconnect:i.on(gt(e),"scroll",n,{passive:!0})}),t,"scroll")}function T(t,e,n){return{observe:t,handler(){dt(this,n)},...e}}function gt(t){return i.toNodes(t).map(e=>{const{ownerDocument:n}=e,s=i.scrollParent(e,!0);return s===n.scrollingElement?n:s})}var mt={props:{media:Boolean},data:{media:!1},connected(){const t=pt(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function pt(t,e){if(i.isString(t)){if(i.startsWith(t,"@"))t=i.toFloat(i.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&i.isNumeric(t)?`(min-width: ${t}px)`:""}function xt(t,e){var n;return(n=t==null?void 0:t.startsWith)==null?void 0:n.call(t,e)}const{isArray:fe,from:vt}=Array;function bt(t){return typeof t=="function"}function O(t){return t!==null&&typeof t=="object"}function It(t){return O(t)&&t===t.window}function wt(t){return R(t)===9}function L(t){return R(t)>=1}function R(t){return!It(t)&&O(t)&&t.nodeType}function M(t){return typeof t=="string"}function $t(t){return t===void 0}function w(t){return t&&p(t)[0]}function p(t){return L(t)?[t]:Array.from(t||[]).filter(L)}function U(t){const e=Object.create(null);return(n,...s)=>e[n]||(e[n]=t(n,...s))}function P(t,e,n){var s;if(O(e)){for(const a in e)P(t,a,e[a]);return}if($t(n))return(s=w(t))==null?void 0:s.getAttribute(e);for(const a of p(t))bt(n)&&(n=n.call(a,P(a,e))),n===null?yt(a,e):a.setAttribute(e,n)}function yt(t,e){p(t).forEach(n=>n.removeAttribute(e))}function St(t){var e;return(e=w(t))==null?void 0:e.parentElement}function kt(t,e){return p(t).filter(n=>B(n,e))}function B(t,e){return p(t).some(n=>n.matches(e))}function _t(t,e){t=w(t);const n=t?vt(t.children):[];return e?kt(n,e):n}function q(t,e){return e?p(t).indexOf(w(e)):_t(St(t)).indexOf(t)}function At(t,e){return p(Tt(t,w(e),"querySelectorAll"))}const Ct=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,zt=/.*?[^\\](?![^(]*\))(?:,|$)/g,Nt=/\s*,$/,Et=U(t=>{var e;t=t.replace(Ct,"$1 *");let n=!1;const s=[];for(let a of(e=t.match(zt))!=null?e:[])a=a.replace(Nt,"").trim(),n||(n=["!","+","~","-",">"].includes(a[0])),s.push(a);return{selector:s.join(","),selectors:s,isContextSelector:n}}),V=U(t=>{t=t.substr(1).trim();const e=t.indexOf(" ");return~e?[t.substring(0,e),t.substring(e+1)]:[t,""]});function Tt(t,e=document,n){if(!t||!M(t))return t;const s=Et(t);if(!s.isContextSelector)return H(e,n,s.selector);t="";const a=s.selectors.length===1;for(let r of s.selectors){let h,o=e;if(r[0]==="!"&&([h,r]=V(r),o=e.parentElement.closest(h),!r&&a)||o&&r[0]==="-"&&([h,r]=V(r),o=o.previousElementSibling,o=B(o,h)?o:null,!r&&a))return o;if(o){if(a)return r[0]==="~"||r[0]==="+"?(r=`:scope :nth-child(${q(o)+1}) ${r}`,o=o.parentElement):r[0]===">"&&(r=`:scope ${r}`),H(o,n,r);t+=`${t?",":""}${Ot(o)} ${r}`}}return wt(e)||(e=e.ownerDocument),H(e,n,t)}function H(t,e,n){try{return t[e](n)}catch{return null}}function Ot(t){const e=[];for(;t.parentNode;){const n=P(t,"id");if(n){e.unshift(`#${Mt(n)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${q(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function Mt(t){return M(t)?CSS.escape(t):""}const Pt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Ht(t){const e=Pt.exec(t);if(e)return document.createElement(e[1]);const n=document.createElement("template");return n.innerHTML=t.trim(),Dt(n.content.childNodes)}function Dt(t){return t.length>1?t:t[0]}function Ft(t,e){return jt(t)?p(Ht(t)):At(t,e)}function jt(t){return M(t)&&xt(t.trim(),"<")}function Wt(t){return Math.ceil(Math.max(0,...Ft("[stroke]",t).map(e=>{var n;return(n=e.getTotalLength)==null?void 0:n.call(e)})))}const A={x:C,y:C,rotate:C,scale:C,color:D,backgroundColor:D,borderColor:D,blur:v,hue:v,fopacity:v,grayscale:v,invert:v,saturate:v,sepia:v,opacity:Rt,stroke:Ut,bgx:X,bgy:X},{keys:G}=Object;Z(G(A),"list"),Z(G(A),void 0);function C(t,e,n){let s=N(n)||{x:"px",y:"px",rotate:"deg"}[t]||"",a;return t==="x"||t==="y"?(t=`translate${i.ucfirst(t)}`,a=r=>i.toFloat(i.toFloat(r).toFixed(s==="px"?0:6))):t==="scale"&&(s="",a=r=>{var h;return N([r])?i.toPx(r,"width",e,!0)/e[`offset${(h=r.endsWith)!=null&&h.call(r,"vh")?"Height":"Width"}`]:i.toFloat(r)}),n.length===1&&n.unshift(t==="scale"?1:0),n=b(n,a),(r,h)=>{r.transform=`${r.transform||""} ${t}(${$(n,h)}${s})`}}function D(t,e,n){return n.length===1&&n.unshift(y(e,t,"")),n=b(n,s=>Lt(e,s)),(s,a)=>{const[r,h,o]=Y(n,a),d=r.map((f,c)=>(f+=o*(h[c]-f),c===3?i.toFloat(f):parseInt(f,10))).join(",");s[t]=`rgba(${d})`}}function Lt(t,e){return y(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function v(t,e,n){n.length===1&&n.unshift(0);const s=N(n)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,n=b(n),(a,r)=>{const h=$(n,r);a.filter=`${a.filter||""} ${t}(${h+s})`}}function Rt(t,e,n){return n.length===1&&n.unshift(y(e,t,"")),n=b(n),(s,a)=>{s[t]=$(n,a)}}function Ut(t,e,n){n.length===1&&n.unshift(0);const s=N(n),a=Wt(e);return n=b(n.reverse(),r=>(r=i.toFloat(r),s==="%"?r*a/100:r)),n.some(([r])=>r)?(i.css(e,"strokeDasharray",a),(r,h)=>{r.strokeDashoffset=$(n,h)}):i.noop}function X(t,e,n,s){n.length===1&&n.unshift(0);const a=t==="bgy"?"height":"width";s[t]=b(n,o=>i.toPx(o,a,e));const r=["bgx","bgy"].filter(o=>o in s);if(r.length===2&&t==="bgx")return i.noop;if(y(e,"backgroundSize","")==="cover")return Bt(t,e,n,s);const h={};for(const o of r)h[o]=Q(e,o);return J(r,h,s)}function Bt(t,e,n,s){const a=qt(e);if(!a.width)return i.noop;const r={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(c=>c in s),o={};for(const c of h){const l=s[c].map(([le])=>le),g=Math.min(...l),m=Math.max(...l),x=l.indexOf(g)<l.indexOf(m),ht=m-g;o[c]=`${(x?-ht:0)-(x?g:m)}px`,r[c==="bgy"?"height":"width"]+=ht}const d=i.Dimensions.cover(a,r);for(const c of h){const l=c==="bgy"?"height":"width",g=d[l]-r[l];o[c]=`max(${Q(e,c)},-${g}px) + ${o[c]}`}const f=J(h,o,s);return(c,l)=>{f(c,l),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function Q(t,e){return y(t,`background-position-${e.substr(-1)}`,"")}function J(t,e,n){return function(s,a){for(const r of t){const h=$(n[r],a);s[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${h}px)`}}}const K={},z={};function qt(t){const e=i.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(z[e])return z[e];const n=new Image;return e&&(n.src=e,!n.naturalWidth&&!K[e])?(i.once(n,"error load",()=>{z[e]=F(n),i.trigger(t,i.createEvent("load",!1))}),K[e]=!0,F(n)):z[e]=F(n)}function F(t){return{width:t.naturalWidth,height:t.naturalHeight}}function b(t,e=i.toFloat){const n=[],{length:s}=t;let a=0;for(let r=0;r<s;r++){let[h,o]=i.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(h=e(h),o=o?i.toFloat(o)/100:null,r===0?o===null?o=0:o&&n.push([h,0]):r===s-1&&(o===null?o=1:o!==1&&(n.push([h,o]),o=1)),n.push([h,o]),o===null)a++;else if(a){const d=n[r-a-1][1],f=(o-d)/(a+1);for(let c=a;c>0;c--)n[r-c][1]=d+f*(a-c+1);a=0}}return n}function Y(t,e){const n=i.findIndex(t.slice(1),([,s])=>e<=s)+1;return[t[n-1][0],t[n][0],(e-t[n-1][1])/(t[n][1]-t[n-1][1])]}function $(t,e){const[n,s,a]=Y(t,e);return n+Math.abs(n-s)*a*(n<s?1:-1)}const Vt=/^-?\d+(?:\.\d+)?(\S+)?/;function N(t,e){var n;for(const s of t){const a=(n=s.match)==null?void 0:n.call(s,Vt);if(a)return a[1]}return e}function y(t,e,n){const s=t.style[e],a=i.css(i.css(t,e,n),e);return t.style[e]=s,a}function Z(t,e){return t.reduce((n,s)=>(n[s]=e,n),{})}function Gt(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var Xt={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[W({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),ut({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&i.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=i.toPx(this.parallaxStart,"height",t,!0),n=i.toPx(this.parallaxEnd,"height",t,!0),s=Gt(i.scrolledOver(t,e,n),this.parallaxEasing),[a,r]=this.getIndexAt(s),h=this.getValidIndex(a+Math.ceil(r)),o=this.slides[a],d=this.slides[h],{triggerShow:f,triggerShown:c,triggerHide:l,triggerHidden:g}=Qt(this);if(~this.prevIndex)for(const x of new Set([this.index,this.prevIndex]))i.includes([h,a],x)||(l(this.slides[x]),g(this.slides[x]));const m=this.prevIndex!==a||this.index!==h;this.dir=1,this.prevIndex=a,this.index=h,o!==d&&l(o),f(d),m&&c(o),this._translate(o===d?1:r,o,d)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function Qt(t){const{clsSlideActive:e,clsEnter:n,clsLeave:s}=t;return{triggerShow:a,triggerShown:r,triggerHide:h,triggerHidden:o};function a(d){i.hasClass(d,s)&&(h(d),o(d)),i.hasClass(d,e)||(i.trigger(d,"beforeitemshow",[t]),i.trigger(d,"itemshow",[t]))}function r(d){i.hasClass(d,n)&&i.trigger(d,"itemshown",[t])}function h(d){i.hasClass(d,e)||a(d),i.hasClass(d,n)&&r(d),i.hasClass(d,s)||(i.trigger(d,"beforeitemhide",[t]),i.trigger(d,"itemhide",[t]))}function o(d){i.hasClass(d,s)&&i.trigger(d,"itemhidden",[t])}}var Jt={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},tt={slide:{show(t){return[{transform:u(t*-100)},{transform:u()}]},percent(t){return S(t)},translate(t,e){return[{transform:u(e*-100*t)},{transform:u(e*100*(1-t))}]}}};function S(t){return Math.abs(i.css(t,"transform").split(",")[4]/t.offsetWidth)}function u(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function et(t){return`scale3d(${t}, ${t}, 1)`}function Kt(t,e,n,{animation:s,easing:a}){const{percent:r,translate:h,show:o=i.noop}=s,d=o(n);let f;return{dir:n,show(c,l=0,g){const m=g?"linear":a;return c-=Math.round(c*i.clamp(l,-1,1)),this.translate(l),E(e,"itemin",{percent:l,duration:c,timing:m,dir:n}),E(t,"itemout",{percent:1-l,duration:c,timing:m,dir:n}),new Promise(x=>{f||(f=x),Promise.all([i.Transition.start(e,d[1],c,m),i.Transition.start(t,d[0],c,m)]).then(()=>{this.reset(),f()},i.noop)})},cancel(){return i.Transition.cancel([e,t])},reset(){for(const c in d[0])i.css([e,t],c,"")},async forward(c,l=this.percent()){return await this.cancel(),this.show(c,l,!0)},translate(c){this.reset();const l=h(c,n);i.css(e,l[1]),i.css(t,l[0]),E(e,"itemtranslatein",{percent:c,dir:n}),E(t,"itemtranslateout",{percent:1-c,dir:n})},percent(){return r(t||e,e,n)},getDistance(){return t==null?void 0:t.offsetWidth}}}function E(t,e,n){i.trigger(t,i.createEvent(e,!1,!1,n))}var Yt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var n,s,a;let r=0;return((a=((n=this.i18n)==null?void 0:n[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:a.replace(/%s/g,()=>e[r++]||""))||""}}},Zt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){i.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){i.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&i.matches(this.$el,":focus-within")&&!i.matches(this.$el,":focus")||this.pauseOnHover&&i.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const k={passive:!1,capture:!0},nt={passive:!0,capture:!0},te="touchstart mousedown",j="touchmove mousemove",it="touchend touchcancel mouseup click input scroll",st=t=>t.preventDefault();var ee={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const s=i.getEventPos(n).x*(i.isRtl?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(n)}}},events:[{name:te,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!i.isTouch(t)&&ne(t.target)||t.target.closest(i.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:j,el(){return this.list},handler:i.noop,...k}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,i.on(document,j,this.move,k),i.on(document,it,this.end,nt),i.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||i.on(this.list,"click",st,k),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:n,prevIndex:s}=this,a=Math.abs(e),r=this.getIndex(s+this.dir),h=rt.call(this,s,r);for(;r!==s&&a>h;)this.drag-=h*this.dir,s=r,a-=h,r=this.getIndex(s+this.dir),h=rt.call(this,s,r);this.percent=a/h;const o=n[s],d=n[r],f=this.index!==r,c=s===r;let l;for(const g of[this.index,this.prevIndex])i.includes([r,s],g)||(i.trigger(n[g],"itemhidden",[this]),c&&(l=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||l)&&i.trigger(n[this.index],"itemshown",[this]),f&&(this.prevIndex=s,this.index=r,c||(i.trigger(o,"beforeitemhide",[this]),i.trigger(o,"itemhide",[this])),i.trigger(d,"beforeitemshow",[this]),i.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),o,!c&&d)},end(){if(i.off(document,j,this.move,k),i.off(document,it,this.end,nt),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(i.isRtl?this.dir*(i.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>i.off(this.list,"click",st,k)),i.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function rt(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function ne(t){return i.css(t,"userSelect")!=="none"&&i.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}i.memoize((t,e)=>{const n=Object.keys(e),s=n.concat(t).map(a=>[i.hyphenate(a),`data-${i.hyphenate(a)}`]).flat();return{attributes:n,filter:s}});let ie=1;function at(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${ie++}`}const _={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var se={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>i.$(t,e),navChildren(){return i.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return i.$$(this.selNavItem,e)}},watch:{nav(t,e){i.attr(t,"role","tablist"),e&&this.$emit()},list(t){i.isTag(t,"ul")&&i.attr(t,"role","presentation")},navChildren(t){i.attr(t,"role","presentation")},navItems(t){for(const e of t){const n=i.data(e,this.attrItem),s=i.$("a,button",e)||e;let a,r=null;if(i.isNumeric(n)){const h=i.toNumber(n),o=this.slides[h];o&&(o.id||(o.id=at(this,o)),r=o.id),a=this.t("slideX",i.toFloat(n)+1),i.attr(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=at(this,this.list)),r=this.list.id),a=this.t(n);i.attr(s,{"aria-controls":r,"aria-label":i.attr(s,"aria-label")||a})}},slides(t){t.forEach((e,n)=>i.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",n+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){i.empty(this.nav);for(let n=0;n<t;n++)i.append(this.nav,`<li ${this.attrItem}="${n}"><a href></a></li>`)}}},connected(){i.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===_.SPACE)&&(t.preventDefault(),this.show(i.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:n}=t,s=i.data(e,this.attrItem);if(!i.isNumeric(s))return;let a=n===_.HOME?0:n===_.END?"last":n===_.LEFT?"previous":n===_.RIGHT?"next":-1;~a&&(t.preventDefault(),this.show(a))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const n=i.data(e,this.attrItem),s=i.$("a,button",e)||e;if(i.isNumeric(n)){const r=i.toNumber(n)===t;i.toggleClass(e,this.clsActive,r),i.toggleClass(s,"uk-disabled",this.parallax),i.attr(s,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&s&&i.matches(i.parent(e),":focus-within")&&s.focus()}else i.toggleClass(e,"uk-invisible",this.finite&&(n==="previous"&&t===0||n==="next"&&t>=this.maxIndex))}}}},re={mixins:[Zt,ee,se,Yt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){i.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>oe(e.offsetWidth/t),list:({selList:t},e)=>i.$(t,e),maxIndex(){return this.length-1},slides(){return i.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){i.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){i.removeClass(t,this.clsEnter)},itemhide({target:t}){i.addClass(t,this.clsLeave)},itemhidden({target:t}){i.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var n;if(this.dragging||!this.length||this.parallax)return;const{stack:s}=this,a=e?0:s.length,r=()=>{s.splice(a,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const h=this.getIndex(this.index),o=i.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(t,this.index),f=this.slides[d];if(o===f){r();return}if(this.dir=ae(t,h),this.prevIndex=h,this.index=d,o&&!i.trigger(o,"beforeitemhide",[this])||!i.trigger(f,"beforeitemshow",[this,o])){this.index=this.prevIndex,r();return}const c=this._show(o,f,e).then(()=>{o&&i.trigger(o,"itemhidden",[this]),i.trigger(f,"itemshown",[this]),s.shift(),this._transitioner=null,requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))});return o&&i.trigger(o,"itemhide",[this]),i.trigger(f,"itemshow",[this]),c},getIndex(t=this.index,e=this.index){return i.clamp(i.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!n&&!t)return this._translate(1),Promise.resolve();const{length:s}=this.stack;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,n=this.index){const s=this._getTransitioner(e===n?!1:e,n);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,n=this.dir||1,s=this.transitionOptions){return new this.Transitioner(i.isNumber(t)?this.slides[t]:t,i.isNumber(e)?this.slides[e]:e,n*(i.isRtl?-1:1),s)}}};function ae(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function oe(t){return .5*t+300}var he={mixins:[re],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:tt,Transitioner:Kt},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},observe:W(),events:{beforeitemshow({target:t}){i.addClass(t,this.clsActive)},itemshown({target:t}){i.addClass(t,this.clsActivated)},itemhidden({target:t}){i.removeClass(t,this.clsActive,this.clsActivated)}}},de={observe:ft({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},ce={...tt,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:et(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:et(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:u(30),zIndex:-1},{transform:u(),zIndex:0}]:[{transform:u(-100),zIndex:0},{transform:u(),zIndex:-1}]},percent(t,e,n){return n<0?1-S(e):S(t)},translate(t,e){return e<0?[{transform:u(30*t),zIndex:-1},{transform:u(-100*(1-t)),zIndex:0}]:[{transform:u(-t*100),zIndex:0},{transform:u(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:u(100),zIndex:0},{transform:u(),zIndex:-1}]:[{transform:u(-30),zIndex:-1},{transform:u(),zIndex:0}]},percent(t,e,n){return n>0?1-S(e):S(t)},translate(t,e){return e<0?[{transform:u(t*100),zIndex:0},{transform:u(-30*(1-t)),zIndex:-1}]:[{transform:u(-30*t),zIndex:-1},{transform:u(100*(1-t)),zIndex:0}]}}},ot={mixins:[I,he,Jt,Xt,de],props:{ratio:String,minHeight:String,maxHeight:String},data:{ratio:"16:9",minHeight:void 0,maxHeight:void 0,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:ce},watch:{list(t){i.css(t,{aspectRatio:this.ratio?this.ratio.replace(":","/"):void 0,minHeight:this.minHeight,maxHeight:this.maxHeight,minWidth:"100%",maxWidth:"100%"})}},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",ot),ot});