@frankenstyle/uikit 0.0.2 → 0.0.3

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 (89) hide show
  1. package/.prettierignore +0 -1
  2. package/CHANGELOG.md +62 -0
  3. package/README.md +0 -1
  4. package/build/publishDev.js +2 -3
  5. package/build/release.js +12 -7
  6. package/build/util.js +6 -6
  7. package/dist/css/uikit-rtl.css +105 -92
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +105 -92
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +1 -1
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +1 -1
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +35 -30
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +35 -30
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +2 -2
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +1 -7
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +1 -7
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +41 -42
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +1 -7
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +34 -35
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +5 -6
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +2 -2
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +1 -1
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +123 -70
  38. package/dist/js/uikit-core.min.js +1 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +131 -74
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +23 -24
  44. package/src/images/components/accordion-icon.svg +20 -0
  45. package/src/js/components/internal/slider-transitioner.js +1 -1
  46. package/src/js/components/slider.js +6 -7
  47. package/src/js/components/sortable.js +5 -6
  48. package/src/js/core/accordion.js +14 -10
  49. package/src/js/core/drop.js +8 -1
  50. package/src/js/core/height-viewport.js +12 -1
  51. package/src/js/core/icon.js +4 -2
  52. package/src/js/core/index.js +1 -0
  53. package/src/js/core/overflow-fade.js +83 -8
  54. package/src/js/mixin/slider-drag.js +21 -14
  55. package/src/js/mixin/slider-nav.js +16 -18
  56. package/src/js/util/attr.js +1 -5
  57. package/src/less/components/accordion.less +110 -46
  58. package/src/less/components/card.less +1 -1
  59. package/src/less/components/form.less +10 -7
  60. package/src/less/components/lightbox.less +0 -5
  61. package/src/less/components/nav.less +1 -1
  62. package/src/less/components/overlay.less +2 -2
  63. package/src/less/components/utility.less +7 -4
  64. package/src/less/theme/accordion.less +31 -38
  65. package/src/scss/components/accordion.scss +77 -30
  66. package/src/scss/components/form.scss +4 -4
  67. package/src/scss/components/lightbox.scss +0 -5
  68. package/src/scss/components/nav.scss +1 -1
  69. package/src/scss/components/utility.scss +7 -4
  70. package/src/scss/mixins-theme.scss +39 -23
  71. package/src/scss/mixins.scss +38 -15
  72. package/src/scss/variables-theme.scss +20 -18
  73. package/src/scss/variables.scss +18 -14
  74. package/tests/accordion.html +76 -17
  75. package/tests/card.html +87 -1
  76. package/tests/height-viewport.html +12 -3
  77. package/tests/index.html +7 -7
  78. package/tests/navbar.html +1 -1
  79. package/tests/overlay.html +181 -13
  80. package/tests/parallax.html +1 -1
  81. package/tests/position.html +16 -16
  82. package/tests/sticky.html +2 -2
  83. package/tests/tab.html +1 -1
  84. package/tests/thumbnav.html +2 -2
  85. package/tests/toggle.html +2 -2
  86. package/tests/transition.html +19 -19
  87. package/tests/upload.html +2 -2
  88. package/src/images/backgrounds/accordion-close.svg +0 -4
  89. package/src/images/backgrounds/accordion-open.svg +0 -3
@@ -1 +1 @@
1
- /*! UIkit 0.0.2 | https://www.getuikit.com | (c) 2014 - 2025 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._updateCount||(t._updateCount=0,requestAnimationFrame(()=>t._updateCount=0)),t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&ut(t,t._queued),t._queued=null})),t._updateCount++<20&&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(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 z(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(a=>s.removeAttr(a,"loading"));for(const r of e.filter(({isIntersecting:a})=>a).map(({target:a})=>a))i.unobserve(r)},...t})}function vt(t){return P((e,i)=>({disconnect:s.on(xt(e),"scroll",i,{passive:!0})}),t,"scroll")}function P(t,e,i){return{observe:t,handler(){I(this,i)},...e}}function xt(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)}};function It(){return new Promise(t=>requestAnimationFrame(t))}var bt={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++]||""))||""}}},$t={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:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||!s.isVisible(this.$el)||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 _={passive:!1,capture:!0},B={passive:!0,capture:!0},yt="touchstart mousedown",D="touchmove mousemove",j="touchend touchcancel mouseup click input scroll";var St={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:yt,passive:!0,delegate:({selList:t})=>`${t} > *`,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:D,el:({list:t})=>t,handler:s.noop,..._}],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,_),s.on(document,j,this.end,B),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;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=U.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=U.call(this,n,r);this.percent=o/a;const h=i[n],d=i[r],f=this.index!==r,c=n===r;let l;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),c&&(l=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||l)&&s.trigger(i[this.index],"itemshown",[this]),f&&(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,D,this.move,_),s.off(document,j,this.end,B),this.dragging)if(setTimeout(s.on(this.list,"click",t=>t.preventDefault(),_)),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&&(s.trigger(this.slides[this.prevIndex],"itemhidden",[this]),s.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function U(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 Ct=1;function q(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${Ct++}`}const b={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};function kt(t){t.target.closest('a[href="#"],a[href=""]')&&t.preventDefault()}var At={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"),this.padNavitems(),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation"),this.padNavitems(),this.updateNav()},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),n.role="tab"}else this.list&&(this.list.id||(this.list.id=q(this,this.list)),r=this.list.id),o=this.t(i);n.ariaControls=r,n.ariaLabel=n.ariaLabel||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"})),this.padNavitems()}},connected(){this.$el.role=this.role,this.$el.ariaRoleDescription="carousel"},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===b.SPACE)&&(kt(t),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let o=i===b.HOME?0:i===b.END?"last":i===b.LEFT?"previous":i===b.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),n.ariaSelected=r,n.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))}},padNavitems(){if(!this.nav)return;const t=[];for(let e=0;e<this.length;e++){const i=`${this.attrItem}="${e}"`;t[e]=this.navChildren.findLast(n=>n.matches(`[${i}]`))||s.$(`<li ${i}><a href></a></li>`)}s.isEqual(t,this.navChildren)||s.html(this.nav,t)}}};const Mt="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Et="cubic-bezier(0.165, 0.84, 0.44, 1)";var Nt={mixins:[$t,St,At,bt],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:{async 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),f=this.slides[d];if(h===f){r();return}if(this.dir=Tt(t,a),this.prevIndex=a,this.index=d,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(f,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}h&&s.trigger(h,"itemhide",[this]),s.trigger(f,"itemshow",[this]),await this._show(h,f,e),h&&s.trigger(h,"itemhidden",[this]),s.trigger(f,"itemshown",[this]),n.shift(),this._transitioner=null,await It(),n.length&&this.show(n.shift(),!0)},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)},async _show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?Mt:Et:this.easing,...this.transitionOptions}),!i&&!t){this._translate(1);return}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 Tt(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Q(t){return .5*t+300}function Pt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{from:Dt}=Array;function Ft(t){return typeof t=="function"}function F(t){return t!==null&&typeof t=="object"}function Ot(t){return F(t)&&t===t.window}function Rt(t){return X(t)===9}function G(t){return X(t)>=1}function X(t){return!Ot(t)&&F(t)&&t.nodeType}function O(t){return typeof t=="string"}function Wt(t){return t===void 0}function C(t){return t&&m(t)[0]}function m(t){return G(t)?[t]:Array.from(t||[]).filter(G)}function J(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function R(t,e,i){var n;if(F(e)){for(const o in e)R(t,o,e[o]);return}if(Wt(i))return(n=C(t))==null?void 0:n.getAttribute(e);for(const o of m(t))Ft(i)&&(i=i.call(o,R(o,e))),i===null?Ht(o,e):o.setAttribute(e,i)}function Ht(t,e){m(t).forEach(i=>i.removeAttribute(e))}const Lt=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Vt(t){return m(t).some(e=>Lt.call(e))}function zt(t){var e;return(e=C(t))==null?void 0:e.parentElement}function Bt(t,e){return m(t).filter(i=>K(i,e))}function K(t,e){return m(t).some(i=>i.matches(e))}function jt(t,e){t=C(t);const i=t?Dt(t.children):[];return e?Bt(i,e):i}function Y(t,e){return jt(zt(t)).indexOf(t)}function Ut(t,e){return m(Jt(t,C(e),"querySelectorAll"))}const qt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Qt=/(\([^)]*\)|[^,])+/g,Gt=J(t=>{let e=!1;if(!t||!O(t))return{};const i=[];for(let n of t.match(Qt))n=n.trim().replace(qt,"$1 *"),e||(e=["!","+","~","-",">"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}}),Xt=/(\([^)]*\)|\S)*/,Z=J(t=>{t=t.slice(1).trim();const[e]=t.match(Xt);return[e,t.slice(e.length+1)]});function Jt(t,e=document,i){var n;const o=Gt(t);if(!o.isContextSelector)return o.selector?W(e,i,o.selector):t;t="";const r=o.selectors.length===1;for(let a of o.selectors){let h,d=e;if(a[0]==="!"&&([h,a]=Z(a),d=(n=e.parentElement)==null?void 0:n.closest(h),!a&&r)||d&&a[0]==="-"&&([h,a]=Z(a),d=d.previousElementSibling,d=K(d,h)?d:null,!a&&r))return d;if(d){if(r)return a[0]==="~"||a[0]==="+"?(a=`:scope > :nth-child(${Y(d)+1}) ${a}`,d=d.parentElement):a[0]===">"&&(a=`:scope ${a}`),W(d,i,a);t+=`${t?",":""}${Kt(d)} ${a}`}}return Rt(e)||(e=e.ownerDocument),W(e,i,t)}function W(t,e,i){try{return t[e](i)}catch{return null}}function Kt(t){const e=[];for(;t.parentNode;){const i=R(t,"id");if(i){e.unshift(`#${Yt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${Y(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Yt(t){return O(t)?CSS.escape(t):""}const Zt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function te(t){const e=Zt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),ee(i.content.childNodes)}function ee(t){return t.length>1?t:t[0]}function se(t,e){return ie(t)?m(te(t)):Ut(t,e)}function ie(t){return O(t)&&Pt(t.trim(),"<")}function ne(t){return Vt(t)?Math.ceil(Math.max(0,...se("[stroke]",t).map(e=>{var i;return((i=e.getTotalLength)==null?void 0:i.call(e))||0}))):0}const tt={x:k,y:k,rotate:k,scale:k,color:H,backgroundColor:H,borderColor:H,blur:v,hue:v,fopacity:v,grayscale:v,invert:v,saturate:v,sepia:v,opacity:oe,stroke:ae,bgx:st,bgy:st},{keys:et}=Object;at(et(tt),"list"),at(et(tt),void 0);function k(t,e,i){let n=M(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 M([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=x(i,o),(r,a)=>{r.transform=`${r.transform||""} ${t}(${$(i,a)}${n})`}}function H(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=x(i,n=>re(e,n)),(n,o)=>{const[r,a,h]=ot(i,o),d=r.map((f,c)=>(f+=h*(a[c]-f),c===3?s.toFloat(f):parseInt(f,10))).join(",");n[t]=`rgba(${d})`}}function re(t,e){return y(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function v(t,e,i){i.length===1&&i.unshift(0);const n=M(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=x(i),(o,r)=>{const a=$(i,r);o.filter=`${o.filter||""} ${t}(${a+n})`}}function oe(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=x(i),(n,o)=>{n[t]=$(i,o)}}function ae(t,e,i){i.length===1&&i.unshift(0);const n=M(i),o=ne(e);return i=x(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=$(i,a)}):s.noop}function st(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=x(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(y(e,"backgroundSize","")==="cover")return he(t,e,i,n);const a={};for(const h of r)a[h]=it(e,h);return nt(r,a,n)}function he(t,e,i,n){const o=de(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 l=n[c].map(([T])=>T),g=Math.min(...l),u=Math.max(...l),N=l.indexOf(g)<l.indexOf(u),p=u-g;h[c]=`${(N?-p:0)-(N?g:u)}px`,r[c==="bgy"?"height":"width"]+=p}const d=s.Dimensions.cover(o,r);for(const c of a){const l=c==="bgy"?"height":"width",g=d[l]-r[l];h[c]=`max(${it(e,c)},-${g}px) + ${h[c]}`}const f=nt(a,h,n);return(c,l)=>{f(c,l),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function it(t,e){return y(t,`background-position-${e.slice(-1)}`,"")}function nt(t,e,i){return function(n,o){for(const r of t){const a=$(i[r],o);n[`background-position-${r.slice(-1)}`]=`calc(${e[r]} + ${a}px)`}}}const rt={},A={};function de(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(A[e])return A[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!rt[e])?(s.once(i,"error load",()=>{A[e]=L(i),s.trigger(t,s.createEvent("load",!1))}),rt[e]=!0,L(i)):A[e]=L(i)}function L(t){return{width:t.naturalWidth,height:t.naturalHeight}}function x(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],f=(h-d)/(o+1);for(let c=o;c>0;c--)i[r-c][1]=d+f*(o-c+1);o=0}}return i}function ot(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 $(t,e){const[i,n,o]=ot(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const ce=/^-?\d+(?:\.\d+)?(\S+)?/;function M(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,ce);if(o)return o[1]}return e}function y(t,e,i){const n=t.style[e],o=s.css(s.css(t,e,i),e);return t.style[e]=n,o}function at(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function le(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var fe={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[z({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),vt({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.list}},update:{read(){if(!this.parallax)return!1;const t=this.parallaxTarget;if(!t)return!1;const e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=le(s.scrolledOver(t,e,i),this.parallaxEasing);return{parallax:this.getIndexAt(n)}},write({parallax:t}){const[e,i]=t,n=this.getValidIndex(e+Math.ceil(i)),o=this.slides[e],r=this.slides[n],{triggerShow:a,triggerShown:h,triggerHide:d,triggerHidden:f}=ge(this);if(~this.prevIndex)for(const l of new Set([this.index,this.prevIndex]))s.includes([n,e],l)||(d(this.slides[l]),f(this.slides[l]));const c=this.prevIndex!==e||this.index!==n;this.dir=1,this.prevIndex=e,this.index=n,o!==r&&d(o),a(r),c&&h(o),this._translate(o===r?1:i,o,r)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function ge(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 ue={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)},events:["resize"]}},me={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 ht(t=0,e="%"){return t?`translate3d(${t+e}, 0, 0)`:""}function V(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}function pe(){let t;return{promise:new Promise(e=>t=e),resolve:t}}function ve(t,e,i,{center:n,easing:o,list:r}){const a=t?S(t,r,n):S(e,r,n)+s.dimensions(e).width*i,h=e?S(e,r,n):a+s.dimensions(t).width*i*(s.isRtl?-1:1),{promise:d,resolve:f}=pe();return{dir:i,show(c,l=0,g){const u=g?"linear":o;return c-=Math.round(c*s.clamp(l,-1,1)),s.css(r,"transitionProperty","none"),this.translate(l),s.css(r,"transitionProperty",""),l=t?l:s.clamp(l,0,1),V(this.getItemIn(),"itemin",{percent:l,duration:c,timing:u,dir:i}),t&&V(this.getItemIn(!0),"itemout",{percent:1-l,duration:c,timing:u,dir:i}),s.Transition.start(r,{transform:ht(-h*(s.isRtl?-1:1),"px")},c,u).then(f,s.noop),d},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(c,l=this.percent()){return await this.cancel(),this.show(c,l,!0)},translate(c){if(c===this.percent())return;const l=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",ht(s.clamp(-h+(l-l*c),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const g=this.getActives(),u=this.getItemIn(),N=this.getItemIn(!0);c=t?s.clamp(c,-1,1):0;for(const p of s.children(r)){const T=s.includes(g,p),ft=p===u,gt=p===N,be=ft||!gt&&(T||i*(s.isRtl?-1:1)===-1^E(p,r)>E(t||e));V(p,`itemtranslate${be?"in":"out"}`,{dir:i,percent:gt?1-c:ft?c:T?1:0})}},percent(){return Math.abs((new DOMMatrix(s.css(r,"transform")).m41*(s.isRtl?-1:1)+a)/(h-a))},getDistance(){return Math.abs(h-a)},getItemIn(c=!1){let l=this.getActives(),g=ct(r,S(e||t,r,n));if(c){const u=l;l=g,g=u}return g[s.findIndex(g,u=>!s.includes(l,u))]},getActives(){return ct(r,S(t||e,r,n))}}}function S(t,e,i){const n=E(t,e);return i?n-xe(t,e):Math.min(n,dt(e))}function dt(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 xe(t,e){return s.dimensions(e).width/2-s.dimensions(t).width/2}function E(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 ct(t,e){e-=1;const i=s.dimensions(t).width,n=e+i+2;return s.children(t).filter(o=>{const r=E(o,t),a=r+Math.min(s.dimensions(o).width,i);return r>=e&&a<=n})}var lt={mixins:[wt,Nt,ue,fe,me],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:ve},computed:{finite({finite:t}){return t||we(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=dt(this.list),i=s.findIndex(this.slides,n=>{if(t>=e-.005)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:z({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.parallax||this._translate(1),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||!this.length)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),n.ariaHidden=!o;for(const r of s.$$(s.selFocusable,n))s.hasOwn(r,"_tabindex")||(r._tabindex=r.tabIndex),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 f=this.slides[this.getIndex(this.index+a+d++*a)];h+=s.dimensions(f).width*a,r.add(f)}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 we(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+Ie(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 f=0;for(const c of[-1,1]){let l=h/2,g=0;for(;l<o;){const u=n[s.getIndex(+r+c+g++*c,n)];if(d.has(u))return!0;l+=s.dimensions(u).width,d.add(u)}f=Math.max(f,h/2+s.dimensions(n[s.getIndex(+r+c,n)]).width/2-(l-o))}if(Math.trunc(f)>s.sumBy(n.filter(c=>!d.has(c)),c=>s.dimensions(c).width))return!0}return!1}function Ie(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",lt),lt});
1
+ /*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 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._updateCount||(t._updateCount=0,requestAnimationFrame(()=>t._updateCount=0)),t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&ft(t,t._queued),t._queued=null})),t._updateCount++<20&&t._queued.add(e.type||e))}function ft(t,e){for(const{read:i,write:n,events:a=[]}of t._updates){if(!e.has("update")&&!a.some(o=>e.has(o)))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 V(t){return P(s.observeResize,t,"resize")}function gt(t){return P(s.observeIntersection,t)}function ut(t={}){return gt({handler:function(e,i){const{targets:n=this.$el,preload:a=5}=t;for(const r of s.toNodes(s.isFunction(n)?n(this):n))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))i.unobserve(r)},...t})}function mt(t){return P((e,i)=>({disconnect:s.on(xt(e),"scroll",i,{passive:!0})}),t,"scroll")}function P(t,e,i){return{observe:t,handler(){I(this,i)},...e}}function xt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var vt={connected(){s.addClass(this.$el,this.$options.id)}};function pt(){return new Promise(t=>requestAnimationFrame(t))}var wt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,a;let r=0;return((a=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:a.replace(/%s/g,()=>e[r++]||""))||""}}},It={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:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||!s.isVisible(this.$el)||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 _={passive:!1,capture:!0},bt="touchstart mousedown",D="touchmove mousemove",$t="touchend touchcancel mouseup click input scroll";var yt={props:{draggable:Boolean},data:{draggable:!0,threshold:10,angleThreshold:45},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i);s.isRtl&&(n.x=-n.x),this.prevPos=s.isEqual(n,this.pos)?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:bt,passive:!0,delegate:({selList:t})=>`${t} > *`,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:({list:t})=>t,handler:s.noop,..._}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag.x+=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,_),s.on(document,$t,this.end,{passive:!0,capture:!0,once:!0}),s.css(this.list,"userSelect","none")},move(t){const e=this.pos.x-this.drag.x;if(e===0||!this.dragging&&_t(this.pos,this.drag)>this.angleThreshold||this.prevPos.x===this.pos.x||!this.dragging&&Math.abs(e)<this.threshold)return;t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,a=Math.abs(e),r=this.getIndex(n+this.dir),o=z.call(this,n,r);for(;r!==n&&a>o;)this.drag.x-=o*this.dir,n=r,a-=o,r=this.getIndex(n+this.dir),o=z.call(this,n,r);this.percent=a/o;const h=i[n],d=i[r],f=this.index!==r,c=n===r;let l;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),c&&(l=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||l)&&s.trigger(i[this.index],"itemshown",[this]),f&&(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,D,this.move,_),this.dragging)if(setTimeout(s.on(this.list,"click",t=>t.preventDefault(),_)),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=this.dir<0==this.prevPos.x>this.pos.x;t?(s.trigger(this.slides[this.prevIndex],"itemhidden",[this]),s.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent):this.index=this.prevIndex,this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function z(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())}function _t(t,e){return Math.atan2(Math.abs(e.y-t.y),Math.abs(e.x-t.x))*180/Math.PI}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(a=>[s.hyphenate(a),`data-${s.hyphenate(a)}`]).flat();return{attributes:i,filter:n}});let Ct=1;function B(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${Ct++}`}const b={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};function kt(t){t.target.closest('a[href="#"],a[href=""]')&&t.preventDefault()}var At={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$$(t,e),navChildren(){return this.nav.map(t=>s.children(t)).flat()},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),this.padNavitems(),e&&this.$emit()},list(t){s.isTag(t,"ul")&&s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation"),this.padNavitems(),this.updateNav()},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let a,r=null;if(s.isNumeric(i)){const o=s.toNumber(i),h=this.slides[o];h&&(h.id||(h.id=B(this,h)),r=h.id),a=this.t("slideX",s.toFloat(i)+1),n.role="tab"}else this.list&&(this.list.id||(this.list.id=B(this,this.list)),r=this.list.id),a=this.t(i);n.ariaControls=r,n.ariaLabel=n.ariaLabel||a}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav.length?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav.length?null:"slide"})),this.padNavitems()}},connected(){this.$el.role=this.role,this.$el.ariaRoleDescription="carousel"},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===b.SPACE)&&(kt(t),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let a=i===b.HOME?0:i===b.END?"last":i===b.LEFT?"previous":i===b.RIGHT?"next":-1;~a&&(t.preventDefault(),this.show(a))}}],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),n.ariaSelected=r,n.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))}},padNavitems(){for(const t of this.nav){const e=s.children(t),i=[];for(let n=0;n<this.length;n++){const a=`${this.attrItem}="${n}"`;i[n]=e.findLast(r=>r.matches(`[${a}]`))||s.$(`<li ${a}><a href></a></li>`)}s.isEqual(i,e)||s.html(this.nav,i)}}}};const Mt="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Et="cubic-bezier(0.165, 0.84, 0.44, 1)";var Nt={mixins:[It,yt,At,wt],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()}},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:{async show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,a=e?0:n.length,r=()=>{n.splice(a,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 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=Tt(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}h&&s.trigger(h,"itemhide",[this]),s.trigger(f,"itemshow",[this]),await this._show(h,f,e),h&&s.trigger(h,"itemhidden",[this]),s.trigger(f,"itemshown",[this]),n.shift(),this._transitioner=null,await pt(),n.length&&this.show(n.shift(),!0)},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)},async _show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?Mt:Et:this.easing,...this.transitionOptions}),!i&&!t){this._translate(1);return}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 Tt(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function j(t){return .5*t+300}function Pt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{from:Dt}=Array;function F(t){return t!==null&&typeof t=="object"}function Ft(t){return F(t)&&t===t.window}function Ot(t){return U(t)===9}function q(t){return U(t)>=1}function U(t){return!Ft(t)&&F(t)&&t.nodeType}function O(t){return typeof t=="string"}function Rt(t){return t===void 0}function C(t){return t&&m(t)[0]}function m(t){return q(t)?[t]:Array.from(t||[]).filter(q)}function Q(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function G(t,e,i){var n;if(F(e)){for(const a in e)G(t,a,e[a]);return}if(Rt(i))return(n=C(t))==null?void 0:n.getAttribute(e);for(const a of m(t))i===null?Wt(a,e):a.setAttribute(e,i)}function Wt(t,e){m(t).forEach(i=>i.removeAttribute(e))}const Ht=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Lt(t){return m(t).some(e=>Ht.call(e))}function Vt(t){var e;return(e=C(t))==null?void 0:e.parentElement}function zt(t,e){return m(t).filter(i=>X(i,e))}function X(t,e){return m(t).some(i=>i.matches(e))}function Bt(t,e){t=C(t);const i=t?Dt(t.children):[];return e?zt(i,e):i}function J(t,e){return Bt(Vt(t)).indexOf(t)}function jt(t,e){return m(Xt(t,C(e),"querySelectorAll"))}const qt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ut=/(\([^)]*\)|[^,])+/g,Qt=Q(t=>{let e=!1;if(!t||!O(t))return{};const i=[];for(let n of t.match(Ut))n=n.trim().replace(qt,"$1 *"),e||(e=["!","+","~","-",">"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}}),Gt=/(\([^)]*\)|\S)*/,K=Q(t=>{t=t.slice(1).trim();const[e]=t.match(Gt);return[e,t.slice(e.length+1)]});function Xt(t,e=document,i){var n;const a=Qt(t);if(!a.isContextSelector)return a.selector?R(e,i,a.selector):t;t="";const r=a.selectors.length===1;for(let o of a.selectors){let h,d=e;if(o[0]==="!"&&([h,o]=K(o),d=(n=e.parentElement)==null?void 0:n.closest(h),!o&&r)||d&&o[0]==="-"&&([h,o]=K(o),d=d.previousElementSibling,d=X(d,h)?d:null,!o&&r))return d;if(d){if(r)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${J(d)+1}) ${o}`,d=d.parentElement):o[0]===">"&&(o=`:scope ${o}`),R(d,i,o);t+=`${t?",":""}${Jt(d)} ${o}`}}return Ot(e)||(e=e.ownerDocument),R(e,i,t)}function R(t,e,i){try{return t[e](i)}catch{return null}}function Jt(t){const e=[];for(;t.parentNode;){const i=G(t,"id");if(i){e.unshift(`#${Kt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${J(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Kt(t){return O(t)?CSS.escape(t):""}const Yt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Zt(t){const e=Yt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),te(i.content.childNodes)}function te(t){return t.length>1?t:t[0]}function ee(t,e){return se(t)?m(Zt(t)):jt(t,e)}function se(t){return O(t)&&Pt(t.trim(),"<")}function ie(t){return Lt(t)?Math.ceil(Math.max(0,...ee("[stroke]",t).map(e=>{var i;return((i=e.getTotalLength)==null?void 0:i.call(e))||0}))):0}const Y={x:k,y:k,rotate:k,scale:k,color:W,backgroundColor:W,borderColor:W,blur:v,hue:v,fopacity:v,grayscale:v,invert:v,saturate:v,sepia:v,opacity:re,stroke:ae,bgx:tt,bgy:tt},{keys:Z}=Object;rt(Z(Y),"list"),rt(Z(Y),void 0);function k(t,e,i){let n=M(i)||{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(n==="px"?0:6))):t==="scale"&&(n="",a=r=>{var o;return M([r])?s.toPx(r,"width",e,!0)/e[`offset${(o=r.endsWith)!=null&&o.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=p(i,a),(r,o)=>{r.transform=`${r.transform||""} ${t}(${$(i,o)}${n})`}}function W(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=p(i,n=>ne(e,n)),(n,a)=>{const[r,o,h]=nt(i,a),d=r.map((f,c)=>(f+=h*(o[c]-f),c===3?s.toFloat(f):parseInt(f,10))).join(",");n[t]=`rgba(${d})`}}function ne(t,e){return y(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function v(t,e,i){i.length===1&&i.unshift(0);const n=M(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=p(i),(a,r)=>{const o=$(i,r);a.filter=`${a.filter||""} ${t}(${o+n})`}}function re(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=p(i),(n,a)=>{n[t]=$(i,a)}}function ae(t,e,i){i.length===1&&i.unshift(0);const n=M(i),a=ie(e);return i=p(i.reverse(),r=>(r=s.toFloat(r),n==="%"?r*a/100:r)),i.some(([r])=>r)?(s.css(e,"strokeDasharray",a),(r,o)=>{r.strokeDashoffset=$(i,o)}):s.noop}function tt(t,e,i,n){i.length===1&&i.unshift(0);const a=t==="bgy"?"height":"width";n[t]=p(i,h=>s.toPx(h,a,e));const r=["bgx","bgy"].filter(h=>h in n);if(r.length===2&&t==="bgx")return s.noop;if(y(e,"backgroundSize","")==="cover")return oe(t,e,i,n);const o={};for(const h of r)o[h]=et(e,h);return st(r,o,n)}function oe(t,e,i,n){const a=he(e);if(!a.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},o=["bgx","bgy"].filter(c=>c in n),h={};for(const c of o){const l=n[c].map(([T])=>T),g=Math.min(...l),u=Math.max(...l),N=l.indexOf(g)<l.indexOf(u),x=u-g;h[c]=`${(N?-x:0)-(N?g:u)}px`,r[c==="bgy"?"height":"width"]+=x}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(${et(e,c)},-${g}px) + ${h[c]}`}const f=st(o,h,n);return(c,l)=>{f(c,l),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function et(t,e){return y(t,`background-position-${e.slice(-1)}`,"")}function st(t,e,i){return function(n,a){for(const r of t){const o=$(i[r],a);n[`background-position-${r.slice(-1)}`]=`calc(${e[r]} + ${o}px)`}}}const it={},A={};function he(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(A[e])return A[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!it[e])?(s.once(i,"error load",()=>{A[e]=H(i),s.trigger(t,s.createEvent("load",!1))}),it[e]=!0,H(i)):A[e]=H(i)}function H(t){return{width:t.naturalWidth,height:t.naturalHeight}}function p(t,e=s.toFloat){const i=[],{length:n}=t;let a=0;for(let r=0;r<n;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&&i.push([o,0]):r===n-1&&(h===null?h=1:h!==1&&(i.push([o,h]),h=1)),i.push([o,h]),h===null)a++;else if(a){const d=i[r-a-1][1],f=(h-d)/(a+1);for(let c=a;c>0;c--)i[r-c][1]=d+f*(a-c+1);a=0}}return i}function nt(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 $(t,e){const[i,n,a]=nt(t,e);return i+Math.abs(i-n)*a*(i<n?1:-1)}const de=/^-?\d+(?:\.\d+)?(\S+)?/;function M(t,e){var i;for(const n of t){const a=(i=n.match)==null?void 0:i.call(n,de);if(a)return a[1]}return e}function y(t,e,i){const n=t.style[e],a=s.css(s.css(t,e,i),e);return t.style[e]=n,a}function rt(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function ce(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var le={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[V({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:{read(){if(!this.parallax)return!1;const t=this.parallaxTarget;if(!t)return!1;const e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=ce(s.scrolledOver(t,e,i),this.parallaxEasing);return{parallax:this.getIndexAt(n)}},write({parallax:t}){const[e,i]=t,n=this.getValidIndex(e+Math.ceil(i)),a=this.slides[e],r=this.slides[n],{triggerShow:o,triggerShown:h,triggerHide:d,triggerHidden:f}=fe(this);if(~this.prevIndex)for(const l of new Set([this.index,this.prevIndex]))s.includes([n,e],l)||(d(this.slides[l]),f(this.slides[l]));const c=this.prevIndex!==e||this.index!==n;this.dir=1,this.prevIndex=e,this.index=n,a!==r&&d(a),o(r),c&&h(a),this._translate(a===r?1:i,a,r)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function fe(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:a,triggerShown:r,triggerHide:o,triggerHidden:h};function a(d){s.hasClass(d,n)&&(o(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 o(d){s.hasClass(d,e)||a(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 ge={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)},events:["resize"]}},ue={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?`translate3d(${t+e}, 0, 0)`:""}function L(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}function me(){let t;return{promise:new Promise(e=>t=e),resolve:t}}function xe(t,e,i,{center:n,easing:a,list:r}){const o=t?S(t,r,n):S(e,r,n)+s.dimensions(e).width*i,h=e?S(e,r,n):o+s.dimensions(t).width*i*(s.isRtl?-1:1),{promise:d,resolve:f}=me();return{dir:i,show(c,l=0,g){const u=g?"linear":a;return c-=Math.round(c*s.clamp(l,-1,1)),s.css(r,"transitionProperty","none"),this.translate(l),s.css(r,"transitionProperty",""),l=t?l:s.clamp(l,0,1),L(this.getItemIn(),"itemin",{percent:l,duration:c,timing:u,dir:i}),t&&L(this.getItemIn(!0),"itemout",{percent:1-l,duration:c,timing:u,dir:i}),s.Transition.start(r,{transform:at(-h*(s.isRtl?-1:1),"px")},c,u).then(f,s.noop),d},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(c,l=this.percent()){return await this.cancel(),this.show(c,l,!0)},translate(c){if(c===this.percent())return;const l=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",at(s.clamp(-h+(l-l*c),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const g=this.getActives(),u=this.getItemIn(),N=this.getItemIn(!0);c=t?s.clamp(c,-1,1):0;for(const x of s.children(r)){const T=s.includes(g,x),ct=x===u,lt=x===N,Ie=ct||!lt&&(T||i*(s.isRtl?-1:1)===-1^E(x,r)>E(t||e));L(x,`itemtranslate${Ie?"in":"out"}`,{dir:i,percent:lt?1-c:ct?c:T?1:0})}},percent(){return Math.abs((new DOMMatrix(s.css(r,"transform")).m41*(s.isRtl?-1:1)+o)/(h-o))},getDistance(){return Math.abs(h-o)},getItemIn(c=!1){let l=this.getActives(),g=ht(r,S(e||t,r,n));if(c){const u=l;l=g,g=u}return g[s.findIndex(g,u=>!s.includes(l,u))]},getActives(){return ht(r,S(t||e,r,n))}}}function S(t,e,i){const n=E(t,e);return i?n-ve(t,e):Math.min(n,ot(e))}function ot(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 ve(t,e){return(s.dimensions(e).width-s.dimensions(t).width)/2}function E(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 ht(t,e){e-=1;const i=s.dimensions(t).width,n=e+i+2;return s.children(t).filter(a=>{const r=E(a,t),o=r+Math.min(s.dimensions(a).width,i);return r>=e&&o<=n})}var dt={mixins:[vt,Nt,ge,le,ue],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:xe},computed:{finite({finite:t}){return t||pe(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=ot(this.list),i=s.findIndex(this.slides,n=>{if(t>=e-.005)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 a=0;a<this.length;a++){const r=s.dimensions(this.slides[a]).width;e+r>n&&(e=0),this.center?e<n/2&&e+r+s.dimensions(this.slides[s.getIndex(a+1,this.slides)]).width/2>n/2&&(i.push(a),e=(n-r)/2):e===0&&i.push(Math.min(a,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:V({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.parallax||this._translate(1),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 a=0;a<e;a++)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((a,r)=>s.css(a,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center||!this.length)return;const e=this.slides[t];let i=(s.dimensions(this.list).width-s.dimensions(e).width)/2,n=0;for(;i>0;){const a=this.getIndex(--n+t,t),r=this.slides[a];s.css(r,"order",a>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 a=s.includes(e,n);s.toggleClass(n,i,a),n.ariaHidden=!a;for(const r of s.$$(s.selFocusable,n))s.hasOwn(r,"_tabindex")||(r._tabindex=r.tabIndex),r.tabIndex=a?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,a=this.center?(t-n)/2:0,r=new Set;for(const o of[-1,1]){let h=a+(o>0?n:0),d=0;do{const f=this.slides[this.getIndex(this.index+o+d++*o)];h+=s.dimensions(f).width*o,r.add(f)}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+s.dimensions(s.last(this.slides)).width)/2:w(this.list,this.maxIndex);let n=t*i,a=0;do{const r=s.dimensions(this.slides[++e]).width,o=this.center?(r+s.dimensions(this.slides[e+1]).width)/2:r;a=n/o%1,n-=o}while(n>=0&&e<this.maxIndex);return[e,a]}}};function pe(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+we(t));const n=s.children(t),a=Math.trunc(i/2);for(const r in n){const o=n[r],h=s.dimensions(o).width,d=new Set([o]);let f=0;for(const c of[-1,1]){let l=h/2,g=0;for(;l<a;){const u=n[s.getIndex(+r+c+g++*c,n)];if(d.has(u))return!0;l+=s.dimensions(u).width,d.add(u)}f=Math.max(f,(h+s.dimensions(n[s.getIndex(+r+c,n)]).width)/2-(l-a))}if(Math.trunc(f)>s.sumBy(n.filter(c=>!d.has(c)),c=>s.dimensions(c).width))return!0}return!1}function we(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",dt),dt});
@@ -1,4 +1,4 @@
1
- /*! UIkit 0.0.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
1
+ /*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -50,9 +50,6 @@
50
50
  return (_a = str == null ? void 0 : str.startsWith) == null ? void 0 : _a.call(str, search);
51
51
  }
52
52
  const { from: toArray } = Array;
53
- function isFunction(obj) {
54
- return typeof obj === "function";
55
- }
56
53
  function isObject(obj) {
57
54
  return obj !== null && typeof obj === "object";
58
55
  }
@@ -97,9 +94,6 @@
97
94
  return (_a = toNode(element)) == null ? void 0 : _a.getAttribute(name);
98
95
  } else {
99
96
  for (const el of toNodes(element)) {
100
- if (isFunction(value)) {
101
- value = value.call(el, attr(el, name));
102
- }
103
97
  if (value === null) {
104
98
  removeAttr(el, name);
105
99
  } else {
@@ -1 +1 @@
1
- /*! UIkit 0.0.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(i,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],$):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlideshow_parallax=$(i.UIkit.util))})(this,function(i){"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,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 n;(n=this.offMediaObj)==null||n.call(this)}};function Y(n,e){if(i.isString(n)){if(i.startsWith(n,"@"))n=i.toFloat(i.css(e,`--uk-breakpoint-${n.slice(1)}`));else if(isNaN(n))return n}return n&&i.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{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 N(n)===9}function E(n){return N(n)>=1}function N(n){return!nn(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function en(n){return n===void 0}function w(n){return n&&l(n)[0]}function l(n){return E(n)?[n]:Array.from(n||[]).filter(E)}function T(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function P(n,e,t){var r;if(C(e)){for(const o in e)P(n,o,e[o]);return}if(en(t))return(r=w(n))==null?void 0:r.getAttribute(e);for(const o of l(n))U(t)&&(t=t.call(o,P(o,e))),t===null?rn(o,e):o.setAttribute(e,t)}function rn(n,e){l(n).forEach(t=>t.removeAttribute(e))}const on=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function sn(n){return l(n).some(e=>on.call(e))}function cn(n){var e;return(e=w(n))==null?void 0:e.parentElement}function an(n,e){return l(n).filter(t=>W(t,e))}function W(n,e){return l(n).some(t=>t.matches(e))}function fn(n,e){n=w(n);const t=n?k(n.children):[];return e?an(t,e):t}function A(n,e){return fn(cn(n)).indexOf(n)}function un(n,e){return l(mn(n,w(e),"querySelectorAll"))}const dn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,ln=/(\([^)]*\)|[^,])+/g,hn=T(n=>{let e=!1;if(!n||!M(n))return{};const t=[];for(let r of n.match(ln))r=r.trim().replace(dn,"$1 *"),e||(e=["!","+","~","-",">"].includes(r[0])),t.push(r);return{selector:t.join(","),selectors:t,isContextSelector:e}}),gn=/(\([^)]*\)|\S)*/,D=T(n=>{n=n.slice(1).trim();const[e]=n.match(gn);return[e,n.slice(e.length+1)]});function mn(n,e=document,t){var r;const o=hn(n);if(!o.isContextSelector)return o.selector?O(e,t,o.selector):n;n="";const s=o.selectors.length===1;for(let c of o.selectors){let a,f=e;if(c[0]==="!"&&([a,c]=D(c),f=(r=e.parentElement)==null?void 0:r.closest(a),!c&&s)||f&&c[0]==="-"&&([a,c]=D(c),f=f.previousElementSibling,f=W(f,a)?f:null,!c&&s))return f;if(f){if(s)return c[0]==="~"||c[0]==="+"?(c=`:scope > :nth-child(${A(f)+1}) ${c}`,f=f.parentElement):c[0]===">"&&(c=`:scope ${c}`),O(f,t,c);n+=`${n?",":""}${$n(f)} ${c}`}}return tn(e)||(e=e.ownerDocument),O(e,t,n)}function O(n,e,t){try{return n[e](t)}catch{return null}}function $n(n){const e=[];for(;n.parentNode;){const t=P(n,"id");if(t){e.unshift(`#${bn(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${A(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function bn(n){return M(n)?CSS.escape(n):""}const pn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function xn(n){const e=pn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),wn(t.content.childNodes)}function wn(n){return n.length>1?n:n[0]}function yn(n,e){return vn(n)?l(xn(n)):un(n,e)}function vn(n){return M(n)&&Z(n.trim(),"<")}function Sn(n){return sn(n)?Math.ceil(Math.max(0,...yn("[stroke]",n).map(e=>{var t;return((t=e.getTotalLength)==null?void 0:t.call(e))||0}))):0}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:Mn,stroke:Pn,bgx:R,bgy:R},{keys:H}=Object;var Fn={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&&!i.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(){i.resetProps(this.$el,this.getCss(0))},getCss(n){const e={};for(const t in this.props)this.props[t](e,i.clamp(n));return e.willChange=Object.keys(e).map(i.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${i.ucfirst(n)}`,o=s=>i.toFloat(i.toFloat(s).toFixed(r==="px"?0:6))):n==="scale"&&(r="",o=s=>{var c;return F([s])?i.toPx(s,"width",e,!0)/e[`offset${(c=s.endsWith)!=null&&c.call(s,"vh")?"Height":"Width"}`]:i.toFloat(s)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,o),(s,c)=>{s.transform=`${s.transform||""} ${n}(${b(t,c)}${r})`}}function j(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,r=>Cn(e,r)),(r,o)=>{const[s,c,a]=L(t,o),f=s.map((h,u)=>(h+=a*(c[u]-h),u===3?i.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${f})`}}function Cn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.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,s)=>{const c=b(t,s);o.filter=`${o.filter||""} ${n}(${c+r})`}}function Mn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(r,o)=>{r[n]=b(t,o)}}function Pn(n,e,t){t.length===1&&t.unshift(0);const r=F(t),o=Sn(e);return t=m(t.reverse(),s=>(s=i.toFloat(s),r==="%"?s*o/100:s)),t.some(([s])=>s)?(i.css(e,"strokeDasharray",o),(s,c)=>{s.strokeDashoffset=b(t,c)}):i.noop}function R(n,e,t,r){t.length===1&&t.unshift(0);const o=n==="bgy"?"height":"width";r[n]=m(t,a=>i.toPx(a,o,e));const s=["bgx","bgy"].filter(a=>a in r);if(s.length===2&&n==="bgx")return i.noop;if(p(e,"backgroundSize","")==="cover")return On(n,e,t,r);const c={};for(const a of s)c[a]=B(e,a);return V(s,c,r)}function On(n,e,t,r){const o=jn(e);if(!o.width)return i.noop;const s={width:e.offsetWidth,height:e.offsetHeight},c=["bgx","bgy"].filter(u=>u in r),a={};for(const u of c){const d=r[u].map(([_n])=>_n),x=Math.min(...d),_=Math.max(...d),K=d.indexOf(x)<d.indexOf(_),X=_-x;a[u]=`${(K?-X:0)-(K?x:_)}px`,s[u==="bgy"?"height":"width"]+=X}const f=i.Dimensions.cover(o,s);for(const u of c){const d=u==="bgy"?"height":"width",x=f[d]-s[d];a[u]=`max(${B(e,u)},-${x}px) + ${a[u]}`}const h=V(c,a,r);return(u,d)=>{h(u,d),u.backgroundSize=`${f.width}px ${f.height}px`,u.backgroundRepeat="no-repeat"}}function B(n,e){return p(n,`background-position-${e.slice(-1)}`,"")}function V(n,e,t){return function(r,o){for(const s of n){const c=b(t[s],o);r[`background-position-${s.slice(-1)}`]=`calc(${e[s]} + ${c}px)`}}}const z={},S={};function jn(n){const e=i.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth&&!z[e])?(i.once(t,"error load",()=>{S[e]=I(t),i.trigger(n,i.createEvent("load",!1))}),z[e]=!0,I(t)):S[e]=I(t)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=i.toFloat){const t=[],{length:r}=n;let o=0;for(let s=0;s<r;s++){let[c,a]=i.isString(n[s])?n[s].trim().split(/ (?![^(]*\))/):[n[s]];if(c=e(c),a=a?i.toFloat(a)/100:null,s===0?a===null?a=0:a&&t.push([c,0]):s===r-1&&(a===null?a=1:a!==1&&(t.push([c,a]),a=1)),t.push([c,a]),a===null)o++;else if(o){const f=t[s-o-1][1],h=(a-f)/(o+1);for(let u=o;u>0;u--)t[s-u][1]=f+h*(o-u+1);o=0}}return t}function L(n,e){const t=i.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 b(n,e){const[t,r,o]=L(n,e);return t+Math.abs(t-r)*o*(t<r?1:-1)}const In=/^-?\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,In);if(o)return o[1]}return e}function p(n,e,t){const r=n.style[e],o=i.css(i.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:[Fn],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:e,duration:t,timing:r,dir:o}}){i.fastdom.read(()=>{if(!this.matchMedia)return;const s=this.getCss(J(n,o,e)),c=this.getCss(G(n)?.5:o>0?1:0);i.fastdom.write(()=>{i.css(this.$el,s),i.Transition.start(this.$el,c,t,r).catch(i.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el:({item:n})=>n,handler(){i.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:e,dir:t}}){i.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(J(n,t,e));i.fastdom.write(()=>i.css(this.$el,r))})}}]};function G(n){return i.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
+ /*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */(function(i,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],$):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlideshow_parallax=$(i.UIkit.util))})(this,function(i){"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 t=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function Y(n,t){if(i.isString(n)){if(i.startsWith(n,"@"))n=i.toFloat(i.css(t,`--uk-breakpoint-${n.slice(1)}`));else if(isNaN(n))return n}return n&&i.isNumeric(n)?`(min-width: ${n}px)`:""}function Z(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{from:k}=Array;function C(n){return n!==null&&typeof n=="object"}function U(n){return C(n)&&n===n.window}function nn(n){return E(n)===9}function _(n){return E(n)>=1}function E(n){return!U(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function tn(n){return n===void 0}function w(n){return n&&d(n)[0]}function d(n){return _(n)?[n]:Array.from(n||[]).filter(_)}function N(n){const t=Object.create(null);return(e,...r)=>t[e]||(t[e]=n(e,...r))}function T(n,t,e){var r;if(C(t)){for(const o in t)T(n,o,t[o]);return}if(tn(e))return(r=w(n))==null?void 0:r.getAttribute(t);for(const o of d(n))e===null?en(o,t):o.setAttribute(t,e)}function en(n,t){d(n).forEach(e=>e.removeAttribute(t))}const rn=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function on(n){return d(n).some(t=>rn.call(t))}function sn(n){var t;return(t=w(n))==null?void 0:t.parentElement}function cn(n,t){return d(n).filter(e=>W(e,t))}function W(n,t){return d(n).some(e=>e.matches(t))}function an(n,t){n=w(n);const e=n?k(n.children):[];return t?cn(e,t):e}function A(n,t){return an(sn(n)).indexOf(n)}function fn(n,t){return d(gn(n,w(t),"querySelectorAll"))}const un=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,ln=/(\([^)]*\)|[^,])+/g,dn=N(n=>{let t=!1;if(!n||!M(n))return{};const e=[];for(let r of n.match(ln))r=r.trim().replace(un,"$1 *"),t||(t=["!","+","~","-",">"].includes(r[0])),e.push(r);return{selector:e.join(","),selectors:e,isContextSelector:t}}),hn=/(\([^)]*\)|\S)*/,D=N(n=>{n=n.slice(1).trim();const[t]=n.match(hn);return[t,n.slice(t.length+1)]});function gn(n,t=document,e){var r;const o=dn(n);if(!o.isContextSelector)return o.selector?P(t,e,o.selector):n;n="";const s=o.selectors.length===1;for(let c of o.selectors){let a,f=t;if(c[0]==="!"&&([a,c]=D(c),f=(r=t.parentElement)==null?void 0:r.closest(a),!c&&s)||f&&c[0]==="-"&&([a,c]=D(c),f=f.previousElementSibling,f=W(f,a)?f:null,!c&&s))return f;if(f){if(s)return c[0]==="~"||c[0]==="+"?(c=`:scope > :nth-child(${A(f)+1}) ${c}`,f=f.parentElement):c[0]===">"&&(c=`:scope ${c}`),P(f,e,c);n+=`${n?",":""}${mn(f)} ${c}`}}return nn(t)||(t=t.ownerDocument),P(t,e,n)}function P(n,t,e){try{return n[t](e)}catch{return null}}function mn(n){const t=[];for(;n.parentNode;){const e=T(n,"id");if(e){t.unshift(`#${$n(e)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${A(n)+1})`),t.unshift(r),n=n.parentNode}}return t.join(" > ")}function $n(n){return M(n)?CSS.escape(n):""}const bn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function pn(n){const t=bn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),xn(e.content.childNodes)}function xn(n){return n.length>1?n:n[0]}function wn(n,t){return yn(n)?d(pn(n)):fn(n,t)}function yn(n){return M(n)&&Z(n.trim(),"<")}function vn(n){return on(n)?Math.ceil(Math.max(0,...wn("[stroke]",n).map(t=>{var e;return((e=t.getTotalLength)==null?void 0:e.call(t))||0}))):0}const y={x:v,y:v,rotate:v,scale:v,color:O,backgroundColor:O,borderColor:O,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Cn,stroke:Mn,bgx:R,bgy:R},{keys:H}=Object;var Sn={mixins:[$],props:q(H(y),"list"),data:q(H(y),void 0),computed:{props(n,t){const e={};for(const o in n)o in y&&!i.isUndefined(n[o])&&(e[o]=n[o].slice());const r={};for(const o in e)r[o]=y[o](o,t,e[o],e);return r}},events:{load(){this.$emit()}},methods:{reset(){i.resetProps(this.$el,this.getCss(0))},getCss(n){const t={};for(const e in this.props)this.props[e](t,i.clamp(n));return t.willChange=Object.keys(t).map(i.propName).join(","),t}}};function v(n,t,e){let r=F(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",o;return n==="x"||n==="y"?(n=`translate${i.ucfirst(n)}`,o=s=>i.toFloat(i.toFloat(s).toFixed(r==="px"?0:6))):n==="scale"&&(r="",o=s=>{var c;return F([s])?i.toPx(s,"width",t,!0)/t[`offset${(c=s.endsWith)!=null&&c.call(s,"vh")?"Height":"Width"}`]:i.toFloat(s)}),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,o),(s,c)=>{s.transform=`${s.transform||""} ${n}(${b(e,c)}${r})`}}function O(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e,r=>Fn(t,r)),(r,o)=>{const[s,c,a]=L(e,o),f=s.map((h,u)=>(h+=a*(c[u]-h),u===3?i.toFloat(h):parseInt(h,10))).join(",");r[n]=`rgba(${f})`}}function Fn(n,t){return p(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function g(n,t,e){e.length===1&&e.unshift(0);const r=F(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(o,s)=>{const c=b(e,s);o.filter=`${o.filter||""} ${n}(${c+r})`}}function Cn(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e),(r,o)=>{r[n]=b(e,o)}}function Mn(n,t,e){e.length===1&&e.unshift(0);const r=F(e),o=vn(t);return e=m(e.reverse(),s=>(s=i.toFloat(s),r==="%"?s*o/100:s)),e.some(([s])=>s)?(i.css(t,"strokeDasharray",o),(s,c)=>{s.strokeDashoffset=b(e,c)}):i.noop}function R(n,t,e,r){e.length===1&&e.unshift(0);const o=n==="bgy"?"height":"width";r[n]=m(e,a=>i.toPx(a,o,t));const s=["bgx","bgy"].filter(a=>a in r);if(s.length===2&&n==="bgx")return i.noop;if(p(t,"backgroundSize","")==="cover")return Pn(n,t,e,r);const c={};for(const a of s)c[a]=B(t,a);return V(s,c,r)}function Pn(n,t,e,r){const o=On(t);if(!o.width)return i.noop;const s={width:t.offsetWidth,height:t.offsetHeight},c=["bgx","bgy"].filter(u=>u in r),a={};for(const u of c){const l=r[u].map(([In])=>In),x=Math.min(...l),I=Math.max(...l),K=l.indexOf(x)<l.indexOf(I),X=I-x;a[u]=`${(K?-X:0)-(K?x:I)}px`,s[u==="bgy"?"height":"width"]+=X}const f=i.Dimensions.cover(o,s);for(const u of c){const l=u==="bgy"?"height":"width",x=f[l]-s[l];a[u]=`max(${B(t,u)},-${x}px) + ${a[u]}`}const h=V(c,a,r);return(u,l)=>{h(u,l),u.backgroundSize=`${f.width}px ${f.height}px`,u.backgroundRepeat="no-repeat"}}function B(n,t){return p(n,`background-position-${t.slice(-1)}`,"")}function V(n,t,e){return function(r,o){for(const s of n){const c=b(e[s],o);r[`background-position-${s.slice(-1)}`]=`calc(${t[s]} + ${c}px)`}}}const z={},S={};function On(n){const t=i.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[t])return S[t];const e=new Image;return t&&(e.src=t,!e.naturalWidth&&!z[t])?(i.once(e,"error load",()=>{S[t]=j(e),i.trigger(n,i.createEvent("load",!1))}),z[t]=!0,j(e)):S[t]=j(e)}function j(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=i.toFloat){const e=[],{length:r}=n;let o=0;for(let s=0;s<r;s++){let[c,a]=i.isString(n[s])?n[s].trim().split(/ (?![^(]*\))/):[n[s]];if(c=t(c),a=a?i.toFloat(a)/100:null,s===0?a===null?a=0:a&&e.push([c,0]):s===r-1&&(a===null?a=1:a!==1&&(e.push([c,a]),a=1)),e.push([c,a]),a===null)o++;else if(o){const f=e[s-o-1][1],h=(a-f)/(o+1);for(let u=o;u>0;u--)e[s-u][1]=f+h*(o-u+1);o=0}}return e}function L(n,t){const e=i.findIndex(n.slice(1),([,r])=>t<=r)+1;return[n[e-1][0],n[e][0],(t-n[e-1][1])/(n[e][1]-n[e-1][1])]}function b(n,t){const[e,r,o]=L(n,t);return e+Math.abs(e-r)*o*(e<r?1:-1)}const jn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,t){var e;for(const r of n){const o=(e=r.match)==null?void 0:e.call(r,jn);if(o)return o[1]}return t}function p(n,t,e){const r=n.style[t],o=i.css(i.css(n,t,e),t);return n.style[t]=r,o}function q(n,t){return n.reduce((e,r)=>(e[r]=t,e),{})}var Q={mixins:[Sn],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:t,duration:e,timing:r,dir:o}}){i.fastdom.read(()=>{if(!this.matchMedia)return;const s=this.getCss(J(n,o,t)),c=this.getCss(G(n)?.5:o>0?1:0);i.fastdom.write(()=>{i.css(this.$el,s),i.Transition.start(this.$el,c,e,r).catch(i.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el:({item:n})=>n,handler(){i.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el:({item:n})=>n,handler({type:n,detail:{percent:t,dir:e}}){i.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(J(n,e,t));i.fastdom.write(()=>i.css(this.$el,r))})}}]};function G(n){return i.endsWith(n,"in")}function J(n,t,e){return e/=2,G(n)^t<0?e:1-e}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",Q),Q});
@@ -1,4 +1,4 @@
1
- /*! UIkit 0.0.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
1
+ /*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -109,9 +109,6 @@
109
109
  return (_a = str == null ? void 0 : str.startsWith) == null ? void 0 : _a.call(str, search);
110
110
  }
111
111
  const { from: toArray } = Array;
112
- function isFunction(obj) {
113
- return typeof obj === "function";
114
- }
115
112
  function isObject(obj) {
116
113
  return obj !== null && typeof obj === "object";
117
114
  }
@@ -156,9 +153,6 @@
156
153
  return (_a = toNode(element)) == null ? void 0 : _a.getAttribute(name);
157
154
  } else {
158
155
  for (const el of toNodes(element)) {
159
- if (isFunction(value)) {
160
- value = value.call(el, attr(el, name));
161
- }
162
156
  if (value === null) {
163
157
  removeAttr(el, name);
164
158
  } else {
@@ -878,7 +872,6 @@
878
872
  };
879
873
 
880
874
  const pointerOptions = { passive: false, capture: true };
881
- const pointerUpOptions = { passive: true, capture: true };
882
875
  const pointerDown = "touchstart mousedown";
883
876
  const pointerMove = "touchmove mousemove";
884
877
  const pointerUp = "touchend touchcancel mouseup click input scroll";
@@ -888,14 +881,18 @@
888
881
  },
889
882
  data: {
890
883
  draggable: true,
891
- threshold: 10
884
+ threshold: 10,
885
+ angleThreshold: 45
892
886
  },
893
887
  created() {
894
888
  for (const key of ["start", "move", "end"]) {
895
889
  const fn = this[key];
896
890
  this[key] = (e) => {
897
- const pos = util.getEventPos(e).x * (util.isRtl ? -1 : 1);
898
- this.prevPos = pos === this.pos ? this.prevPos : this.pos;
891
+ const pos = util.getEventPos(e);
892
+ if (util.isRtl) {
893
+ pos.x = -pos.x;
894
+ }
895
+ this.prevPos = util.isEqual(pos, this.pos) ? this.prevPos : this.pos;
899
896
  this.pos = pos;
900
897
  fn(e);
901
898
  };
@@ -932,7 +929,7 @@
932
929
  this.drag = this.pos;
933
930
  if (this._transitioner) {
934
931
  this.percent = this._transitioner.percent();
935
- this.drag += this._transitioner.getDistance() * this.percent * this.dir;
932
+ this.drag.x += this._transitioner.getDistance() * this.percent * this.dir;
936
933
  this._transitioner.cancel();
937
934
  this._transitioner.translate(this.percent);
938
935
  this.dragging = true;
@@ -941,12 +938,12 @@
941
938
  this.prevIndex = this.index;
942
939
  }
943
940
  util.on(document, pointerMove, this.move, pointerOptions);
944
- util.on(document, pointerUp, this.end, pointerUpOptions);
941
+ util.on(document, pointerUp, this.end, { passive: true, capture: true, once: true });
945
942
  util.css(this.list, "userSelect", "none");
946
943
  },
947
944
  move(e) {
948
- const distance = this.pos - this.drag;
949
- if (distance === 0 || this.prevPos === this.pos || !this.dragging && Math.abs(distance) < this.threshold) {
945
+ const distance = this.pos.x - this.drag.x;
946
+ if (distance === 0 || !this.dragging && getAngle(this.pos, this.drag) > this.angleThreshold || this.prevPos.x === this.pos.x || !this.dragging && Math.abs(distance) < this.threshold) {
950
947
  return;
951
948
  }
952
949
  e.cancelable && e.preventDefault();
@@ -957,7 +954,7 @@
957
954
  let nextIndex = this.getIndex(prevIndex + this.dir);
958
955
  let width = getDistance.call(this, prevIndex, nextIndex);
959
956
  while (nextIndex !== prevIndex && dis > width) {
960
- this.drag -= width * this.dir;
957
+ this.drag.x -= width * this.dir;
961
958
  prevIndex = nextIndex;
962
959
  dis -= width;
963
960
  nextIndex = this.getIndex(prevIndex + this.dir);
@@ -995,7 +992,6 @@
995
992
  },
996
993
  end() {
997
994
  util.off(document, pointerMove, this.move, pointerOptions);
998
- util.off(document, pointerUp, this.end, pointerUpOptions);
999
995
  if (this.dragging) {
1000
996
  setTimeout(util.on(this.list, "click", (e) => e.preventDefault(), pointerOptions));
1001
997
  this.dragging = null;
@@ -1005,12 +1001,13 @@
1005
1001
  this._show(false, this.index, true);
1006
1002
  this._transitioner = null;
1007
1003
  } else {
1008
- const dirChange = (util.isRtl ? this.dir * (util.isRtl ? 1 : -1) : this.dir) < 0 === this.prevPos > this.pos;
1009
- this.index = dirChange ? this.index : this.prevIndex;
1004
+ const dirChange = this.dir < 0 === this.prevPos.x > this.pos.x;
1010
1005
  if (dirChange) {
1011
1006
  util.trigger(this.slides[this.prevIndex], "itemhidden", [this]);
1012
1007
  util.trigger(this.slides[this.index], "itemshown", [this]);
1013
1008
  this.percent = 1 - this.percent;
1009
+ } else {
1010
+ this.index = this.prevIndex;
1014
1011
  }
1015
1012
  this.show(
1016
1013
  this.dir > 0 && !dirChange || this.dir < 0 && dirChange ? "next" : "previous",
@@ -1029,6 +1026,9 @@
1029
1026
  function hasSelectableText(el) {
1030
1027
  return util.css(el, "userSelect") !== "none" && util.toArray(el.childNodes).some((el2) => el2.nodeType === 3 && el2.textContent.trim());
1031
1028
  }
1029
+ function getAngle(pos1, pos2) {
1030
+ return Math.atan2(Math.abs(pos2.y - pos1.y), Math.abs(pos2.x - pos1.x)) * 180 / Math.PI;
1031
+ }
1032
1032
 
1033
1033
  util.memoize((id, props) => {
1034
1034
  const attributes = Object.keys(props);
@@ -1059,17 +1059,16 @@
1059
1059
  next: "Next slide",
1060
1060
  previous: "Previous slide",
1061
1061
  slideX: "Slide %s",
1062
- slideLabel: "%s of %s",
1063
- role: "String"
1062
+ slideLabel: "%s of %s"
1064
1063
  },
1065
1064
  data: {
1066
1065
  selNav: false,
1067
1066
  role: "region"
1068
1067
  },
1069
1068
  computed: {
1070
- nav: ({ selNav }, $el) => util.$(selNav, $el),
1069
+ nav: ({ selNav }, $el) => util.$$(selNav, $el),
1071
1070
  navChildren() {
1072
- return util.children(this.nav);
1071
+ return this.nav.map((nav) => util.children(nav)).flat();
1073
1072
  },
1074
1073
  selNavItem: ({ attrItem }) => `[${attrItem}],[data-${attrItem}]`,
1075
1074
  navItems(_, $el) {
@@ -1127,9 +1126,9 @@
1127
1126
  slides(slides) {
1128
1127
  slides.forEach(
1129
1128
  (slide, i) => util.attr(slide, {
1130
- role: this.nav ? "tabpanel" : "group",
1129
+ role: this.nav.length ? "tabpanel" : "group",
1131
1130
  "aria-label": this.t("slideLabel", i + 1, this.length),
1132
- "aria-roledescription": this.nav ? null : "slide"
1131
+ "aria-roledescription": this.nav.length ? null : "slide"
1133
1132
  })
1134
1133
  );
1135
1134
  this.padNavitems();
@@ -1210,16 +1209,16 @@
1210
1209
  }
1211
1210
  },
1212
1211
  padNavitems() {
1213
- if (!this.nav) {
1214
- return;
1215
- }
1216
- const children2 = [];
1217
- for (let i = 0; i < this.length; i++) {
1218
- const attr2 = `${this.attrItem}="${i}"`;
1219
- children2[i] = this.navChildren.findLast((el) => el.matches(`[${attr2}]`)) || util.$(`<li ${attr2}><a href></a></li>`);
1220
- }
1221
- if (!util.isEqual(children2, this.navChildren)) {
1222
- util.html(this.nav, children2);
1212
+ for (const nav of this.nav) {
1213
+ const navChildren = util.children(nav);
1214
+ const navItems = [];
1215
+ for (let i = 0; i < this.length; i++) {
1216
+ const attr2 = `${this.attrItem}="${i}"`;
1217
+ navItems[i] = navChildren.findLast((el) => el.matches(`[${attr2}]`)) || util.$(`<li ${attr2}><a href></a></li>`);
1218
+ }
1219
+ if (!util.isEqual(navItems, navChildren)) {
1220
+ util.html(this.nav, navItems);
1221
+ }
1223
1222
  }
1224
1223
  }
1225
1224
  }
@@ -1 +1 @@
1
- /*! UIkit 0.0.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(i,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],w):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlideshow=w(i.UIkit.util))})(this,function(i){"use strict";var w={connected(){i.addClass(this.$el,this.$options.id)}};function ht(t,e="update"){t._connected&&t._updates.length&&(t._updateCount||(t._updateCount=0,requestAnimationFrame(()=>t._updateCount=0)),t._queued||(t._queued=new Set,i.fastdom.read(()=>{t._connected&&dt(t,t._queued),t._queued=null})),t._updateCount++<20&&t._queued.add(e.type||e))}function dt(t,e){for(const{read:n,write:s,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&&i.isPlainObject(r)&&i.assign(t._data,r)),s&&r!==!1&&i.fastdom.write(()=>{t._connected&&s.call(t,t._data,e)})}}function R(t){return E(i.observeResize,t,"resize")}function ct(t){return E(i.observeIntersection,t)}function lt(t={}){return ct({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(o=>i.removeAttr(o,"loading"));for(const r of e.filter(({isIntersecting:o})=>o).map(({target:o})=>o))n.unobserve(r)},...t})}function ft(t){return E((e,n)=>({disconnect:i.on(ut(e),"scroll",n,{passive:!0})}),t,"scroll")}function E(t,e,n){return{observe:t,handler(){ht(this,n)},...e}}function ut(t){return i.toNodes(t).map(e=>{const{ownerDocument:n}=e,s=i.scrollParent(e,!0);return s===n.scrollingElement?n:s})}function gt(t,e){var n;return(n=t==null?void 0:t.startsWith)==null?void 0:n.call(t,e)}const{from:mt}=Array;function pt(t){return typeof t=="function"}function T(t){return t!==null&&typeof t=="object"}function vt(t){return T(t)&&t===t.window}function xt(t){return W(t)===9}function L(t){return W(t)>=1}function W(t){return!vt(t)&&T(t)&&t.nodeType}function P(t){return typeof t=="string"}function wt(t){return t===void 0}function _(t){return t&&m(t)[0]}function m(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 H(t,e,n){var s;if(T(e)){for(const a in e)H(t,a,e[a]);return}if(wt(n))return(s=_(t))==null?void 0:s.getAttribute(e);for(const a of m(t))pt(n)&&(n=n.call(a,H(a,e))),n===null?It(a,e):a.setAttribute(e,n)}function It(t,e){m(t).forEach(n=>n.removeAttribute(e))}const bt=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function yt(t){return m(t).some(e=>bt.call(e))}function $t(t){var e;return(e=_(t))==null?void 0:e.parentElement}function St(t,e){return m(t).filter(n=>j(n,e))}function j(t,e){return m(t).some(n=>n.matches(e))}function _t(t,e){t=_(t);const n=t?mt(t.children):[];return e?St(n,e):n}function q(t,e){return _t($t(t)).indexOf(t)}function kt(t,e){return m(Et(t,_(e),"querySelectorAll"))}const Ct=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,At=/(\([^)]*\)|[^,])+/g,zt=U(t=>{let e=!1;if(!t||!P(t))return{};const n=[];for(let s of t.match(At))s=s.trim().replace(Ct,"$1 *"),e||(e=["!","+","~","-",">"].includes(s[0])),n.push(s);return{selector:n.join(","),selectors:n,isContextSelector:e}}),Nt=/(\([^)]*\)|\S)*/,B=U(t=>{t=t.slice(1).trim();const[e]=t.match(Nt);return[e,t.slice(e.length+1)]});function Et(t,e=document,n){var s;const a=zt(t);if(!a.isContextSelector)return a.selector?M(e,n,a.selector):t;t="";const r=a.selectors.length===1;for(let o of a.selectors){let h,d=e;if(o[0]==="!"&&([h,o]=B(o),d=(s=e.parentElement)==null?void 0:s.closest(h),!o&&r)||d&&o[0]==="-"&&([h,o]=B(o),d=d.previousElementSibling,d=j(d,h)?d:null,!o&&r))return d;if(d){if(r)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${q(d)+1}) ${o}`,d=d.parentElement):o[0]===">"&&(o=`:scope ${o}`),M(d,n,o);t+=`${t?",":""}${Tt(d)} ${o}`}}return xt(e)||(e=e.ownerDocument),M(e,n,t)}function M(t,e,n){try{return t[e](n)}catch{return null}}function Tt(t){const e=[];for(;t.parentNode;){const n=H(t,"id");if(n){e.unshift(`#${Pt(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 Pt(t){return P(t)?CSS.escape(t):""}const Ht=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Mt(t){const e=Ht.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 Ot(t)?m(Mt(t)):kt(t,e)}function Ot(t){return P(t)&&gt(t.trim(),"<")}function Rt(t){return yt(t)?Math.ceil(Math.max(0,...Ft("[stroke]",t).map(e=>{var n;return((n=e.getTotalLength)==null?void 0:n.call(e))||0}))):0}const V={x:k,y:k,rotate:k,scale:k,color:D,backgroundColor:D,borderColor:D,blur:p,hue:p,fopacity:p,grayscale:p,invert:p,saturate:p,sepia:p,opacity:Wt,stroke:Ut,bgx:G,bgy:G},{keys:Q}=Object;Z(Q(V),"list"),Z(Q(V),void 0);function k(t,e,n){let s=A(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 o;return A([r])?i.toPx(r,"width",e,!0)/e[`offset${(o=r.endsWith)!=null&&o.call(r,"vh")?"Height":"Width"}`]:i.toFloat(r)}),n.length===1&&n.unshift(t==="scale"?1:0),n=x(n,a),(r,o)=>{r.transform=`${r.transform||""} ${t}(${I(n,o)}${s})`}}function D(t,e,n){return n.length===1&&n.unshift(b(e,t,"")),n=x(n,s=>Lt(e,s)),(s,a)=>{const[r,o,h]=Y(n,a),d=r.map((u,c)=>(u+=h*(o[c]-u),c===3?i.toFloat(u):parseInt(u,10))).join(",");s[t]=`rgba(${d})`}}function Lt(t,e){return b(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function p(t,e,n){n.length===1&&n.unshift(0);const s=A(n)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,n=x(n),(a,r)=>{const o=I(n,r);a.filter=`${a.filter||""} ${t}(${o+s})`}}function Wt(t,e,n){return n.length===1&&n.unshift(b(e,t,"")),n=x(n),(s,a)=>{s[t]=I(n,a)}}function Ut(t,e,n){n.length===1&&n.unshift(0);const s=A(n),a=Rt(e);return n=x(n.reverse(),r=>(r=i.toFloat(r),s==="%"?r*a/100:r)),n.some(([r])=>r)?(i.css(e,"strokeDasharray",a),(r,o)=>{r.strokeDashoffset=I(n,o)}):i.noop}function G(t,e,n,s){n.length===1&&n.unshift(0);const a=t==="bgy"?"height":"width";s[t]=x(n,h=>i.toPx(h,a,e));const r=["bgx","bgy"].filter(h=>h in s);if(r.length===2&&t==="bgx")return i.noop;if(b(e,"backgroundSize","")==="cover")return jt(t,e,n,s);const o={};for(const h of r)o[h]=X(e,h);return J(r,o,s)}function jt(t,e,n,s){const a=qt(e);if(!a.width)return i.noop;const r={width:e.offsetWidth,height:e.offsetHeight},o=["bgx","bgy"].filter(c=>c in s),h={};for(const c of o){const l=s[c].map(([me])=>me),g=Math.min(...l),S=Math.max(...l),v=l.indexOf(g)<l.indexOf(S),ot=S-g;h[c]=`${(v?-ot:0)-(v?g:S)}px`,r[c==="bgy"?"height":"width"]+=ot}const d=i.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 u=J(o,h,s);return(c,l)=>{u(c,l),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function X(t,e){return b(t,`background-position-${e.slice(-1)}`,"")}function J(t,e,n){return function(s,a){for(const r of t){const o=I(n[r],a);s[`background-position-${r.slice(-1)}`]=`calc(${e[r]} + ${o}px)`}}}const K={},C={};function qt(t){const e=i.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(C[e])return C[e];const n=new Image;return e&&(n.src=e,!n.naturalWidth&&!K[e])?(i.once(n,"error load",()=>{C[e]=F(n),i.trigger(t,i.createEvent("load",!1))}),K[e]=!0,F(n)):C[e]=F(n)}function F(t){return{width:t.naturalWidth,height:t.naturalHeight}}function x(t,e=i.toFloat){const n=[],{length:s}=t;let a=0;for(let r=0;r<s;r++){let[o,h]=i.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(o=e(o),h=h?i.toFloat(h)/100:null,r===0?h===null?h=0:h&&n.push([o,0]):r===s-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],u=(h-d)/(a+1);for(let c=a;c>0;c--)n[r-c][1]=d+u*(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 I(t,e){const[n,s,a]=Y(t,e);return n+Math.abs(n-s)*a*(n<s?1:-1)}const Bt=/^-?\d+(?:\.\d+)?(\S+)?/;function A(t,e){var n;for(const s of t){const a=(n=s.match)==null?void 0:n.call(s,Bt);if(a)return a[1]}return e}function b(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 Vt(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var Qt={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[R({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),ft({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&i.query(t,e)||this.list}},update:{read(){if(!this.parallax)return!1;const t=this.parallaxTarget;if(!t)return!1;const e=i.toPx(this.parallaxStart,"height",t,!0),n=i.toPx(this.parallaxEnd,"height",t,!0),s=Vt(i.scrolledOver(t,e,n),this.parallaxEasing);return{parallax:this.getIndexAt(s)}},write({parallax:t}){const[e,n]=t,s=this.getValidIndex(e+Math.ceil(n)),a=this.slides[e],r=this.slides[s],{triggerShow:o,triggerShown:h,triggerHide:d,triggerHidden:u}=Gt(this);if(~this.prevIndex)for(const l of new Set([this.index,this.prevIndex]))i.includes([s,e],l)||(d(this.slides[l]),u(this.slides[l]));const c=this.prevIndex!==e||this.index!==s;this.dir=1,this.prevIndex=e,this.index=s,a!==r&&d(a),o(r),c&&h(a),this._translate(a===r?1:n,a,r)},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:s}=t;return{triggerShow:a,triggerShown:r,triggerHide:o,triggerHidden:h};function a(d){i.hasClass(d,s)&&(o(d),h(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 o(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 h(d){i.hasClass(d,s)&&i.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)},events:["resize"]}},tt={slide:{show(t){return[{transform:f(t*-100)},{transform:f()}]},percent(t){return y(t)},translate(t,e){return[{transform:f(e*-100*t)},{transform:f(e*100*(1-t))}]}}};function y(t){return Math.abs(new DOMMatrix(i.css(t,"transform")).m41/t.offsetWidth)}function f(t=0,e="%"){return t?`translate3d(${t+e}, 0, 0)`:""}function Jt(t,e,n,{animation:s,easing:a}){const{percent:r,translate:o,show:h=i.noop}=s,d=h(n),{promise:u,resolve:c}=Kt();return{dir:n,show(l,g=0,S){const v=S?"linear":a;return l-=Math.round(l*i.clamp(g,-1,1)),this.translate(g),z(e,"itemin",{percent:g,duration:l,timing:v,dir:n}),z(t,"itemout",{percent:1-g,duration:l,timing:v,dir:n}),Promise.all([i.Transition.start(e,d[1],l,v),i.Transition.start(t,d[0],l,v)]).then(()=>{this.reset(),c()},i.noop),u},cancel(){return i.Transition.cancel([e,t])},reset(){i.resetProps([e,t],d[0])},async forward(l,g=this.percent()){return await this.cancel(),this.show(l,g,!0)},translate(l){this.reset();const g=o(l,n);i.css(e,g[1]),i.css(t,g[0]),z(e,"itemtranslatein",{percent:l,dir:n}),z(t,"itemtranslateout",{percent:1-l,dir:n})},percent(){return r(t||e,e,n)},getDistance(){return t==null?void 0:t.offsetWidth}}}function z(t,e,n){i.trigger(t,i.createEvent(e,!1,!1,n))}function Kt(){let t;return{promise:new Promise(e=>t=e),resolve:t}}function Yt(){return new Promise(t=>requestAnimationFrame(t))}var Zt={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++]||""))||""}}},te={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:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||!i.isVisible(this.$el)||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 N={passive:!1,capture:!0},et={passive:!0,capture:!0},ee="touchstart mousedown",O="touchmove mousemove",nt="touchend touchcancel mouseup click input scroll";var ne={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:ee,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!i.isTouch(t)&&ie(t.target)||t.target.closest(i.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:O,el:({list:t})=>t,handler:i.noop,...N}],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,O,this.move,N),i.on(document,nt,this.end,et),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;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),o=it.call(this,s,r);for(;r!==s&&a>o;)this.drag-=o*this.dir,s=r,a-=o,r=this.getIndex(s+this.dir),o=it.call(this,s,r);this.percent=a/o;const h=n[s],d=n[r],u=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]),u&&(this.prevIndex=s,this.index=r,c||(i.trigger(h,"beforeitemhide",[this]),i.trigger(h,"itemhide",[this])),i.trigger(d,"beforeitemshow",[this]),i.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!c&&d)},end(){if(i.off(document,O,this.move,N),i.off(document,nt,this.end,et),this.dragging)if(setTimeout(i.on(this.list,"click",t=>t.preventDefault(),N)),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&&(i.trigger(this.slides[this.prevIndex],"itemhidden",[this]),i.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}i.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function it(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function ie(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 se=1;function st(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${se++}`}const $={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};function re(t){t.target.closest('a[href="#"],a[href=""]')&&t.preventDefault()}var ae={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"),this.padNavitems(),e&&this.$emit()},list(t){i.isTag(t,"ul")&&i.attr(t,"role","presentation")},navChildren(t){i.attr(t,"role","presentation"),this.padNavitems(),this.updateNav()},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 o=i.toNumber(n),h=this.slides[o];h&&(h.id||(h.id=st(this,h)),r=h.id),a=this.t("slideX",i.toFloat(n)+1),s.role="tab"}else this.list&&(this.list.id||(this.list.id=st(this,this.list)),r=this.list.id),a=this.t(n);s.ariaControls=r,s.ariaLabel=s.ariaLabel||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"})),this.padNavitems()}},connected(){this.$el.role=this.role,this.$el.ariaRoleDescription="carousel"},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===$.SPACE)&&(re(t),this.show(i.data(t.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,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),s.ariaSelected=r,s.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))}},padNavitems(){if(!this.nav)return;const t=[];for(let e=0;e<this.length;e++){const n=`${this.attrItem}="${e}"`;t[e]=this.navChildren.findLast(s=>s.matches(`[${n}]`))||i.$(`<li ${n}><a href></a></li>`)}i.isEqual(t,this.navChildren)||i.html(this.nav,t)}}};const oe="cubic-bezier(0.25, 0.46, 0.45, 0.94)",he="cubic-bezier(0.165, 0.84, 0.44, 1)";var de={mixins:[te,ne,ae,Zt],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)=>le(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:{async 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 o=this.getIndex(this.index),h=i.hasClass(this.slides,this.clsActive)&&this.slides[o],d=this.getIndex(t,this.index),u=this.slides[d];if(h===u){r();return}if(this.dir=ce(t,o),this.prevIndex=o,this.index=d,h&&!i.trigger(h,"beforeitemhide",[this])||!i.trigger(u,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}h&&i.trigger(h,"itemhide",[this]),i.trigger(u,"itemshow",[this]),await this._show(h,u,e),h&&i.trigger(h,"itemhidden",[this]),i.trigger(u,"itemshown",[this]),s.shift(),this._transitioner=null,await Yt(),s.length&&this.show(s.shift(),!0)},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)},async _show(t,e,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?e.offsetWidth<600?oe:he:this.easing,...this.transitionOptions}),!n&&!t){this._translate(1);return}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 ce(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function le(t){return .5*t+300}var fe={mixins:[de],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:tt,Transitioner:Jt},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},observe:R(),events:{itemshow({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)}}},ue={observe:lt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},ge={...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:rt(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:rt(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:f(30),zIndex:-1},{transform:f(),zIndex:0}]:[{transform:f(-100),zIndex:0},{transform:f(),zIndex:-1}]},percent(t,e,n){return n<0?1-y(e):y(t)},translate(t,e){return e<0?[{transform:f(30*t),zIndex:-1},{transform:f(-100*(1-t)),zIndex:0}]:[{transform:f(-t*100),zIndex:0},{transform:f(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:f(100),zIndex:0},{transform:f(),zIndex:-1}]:[{transform:f(-30),zIndex:-1},{transform:f(),zIndex:0}]},percent(t,e,n){return n>0?1-y(e):y(t)},translate(t,e){return e<0?[{transform:f(t*100),zIndex:0},{transform:f(-30*(1-t)),zIndex:-1}]:[{transform:f(-30*t),zIndex:-1},{transform:f(100*(1-t)),zIndex:0}]}}};function rt(t){return`scale3d(${t}, ${t}, 1)`}var at={mixins:[w,fe,Xt,Qt,ue],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:ge},watch:{list(t){i.css(t,{aspectRatio:this.ratio?this.ratio.replace(":","/"):void 0,minHeight:this.minHeight,maxHeight:this.maxHeight,width:"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",at),at});
1
+ /*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */(function(i,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow",["uikit-util"],w):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlideshow=w(i.UIkit.util))})(this,function(i){"use strict";var w={connected(){i.addClass(this.$el,this.$options.id)}};function at(t,e="update"){t._connected&&t._updates.length&&(t._updateCount||(t._updateCount=0,requestAnimationFrame(()=>t._updateCount=0)),t._queued||(t._queued=new Set,i.fastdom.read(()=>{t._connected&&ot(t,t._queued),t._queued=null})),t._updateCount++<20&&t._queued.add(e.type||e))}function ot(t,e){for(const{read:n,write:s,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&&i.isPlainObject(r)&&i.assign(t._data,r)),s&&r!==!1&&i.fastdom.write(()=>{t._connected&&s.call(t,t._data,e)})}}function O(t){return E(i.observeResize,t,"resize")}function ht(t){return E(i.observeIntersection,t)}function dt(t={}){return ht({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(o=>i.removeAttr(o,"loading"));for(const r of e.filter(({isIntersecting:o})=>o).map(({target:o})=>o))n.unobserve(r)},...t})}function ct(t){return E((e,n)=>({disconnect:i.on(lt(e),"scroll",n,{passive:!0})}),t,"scroll")}function E(t,e,n){return{observe:t,handler(){at(this,n)},...e}}function lt(t){return i.toNodes(t).map(e=>{const{ownerDocument:n}=e,s=i.scrollParent(e,!0);return s===n.scrollingElement?n:s})}function ft(t,e){var n;return(n=t==null?void 0:t.startsWith)==null?void 0:n.call(t,e)}const{from:ut}=Array;function T(t){return t!==null&&typeof t=="object"}function gt(t){return T(t)&&t===t.window}function mt(t){return R(t)===9}function L(t){return R(t)>=1}function R(t){return!gt(t)&&T(t)&&t.nodeType}function P(t){return typeof t=="string"}function pt(t){return t===void 0}function _(t){return t&&m(t)[0]}function m(t){return L(t)?[t]:Array.from(t||[]).filter(L)}function W(t){const e=Object.create(null);return(n,...s)=>e[n]||(e[n]=t(n,...s))}function q(t,e,n){var s;if(T(e)){for(const a in e)q(t,a,e[a]);return}if(pt(n))return(s=_(t))==null?void 0:s.getAttribute(e);for(const a of m(t))n===null?vt(a,e):a.setAttribute(e,n)}function vt(t,e){m(t).forEach(n=>n.removeAttribute(e))}const xt=typeof window<"u"&&Element.prototype.checkVisibility||function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function wt(t){return m(t).some(e=>xt.call(e))}function It(t){var e;return(e=_(t))==null?void 0:e.parentElement}function bt(t,e){return m(t).filter(n=>j(n,e))}function j(t,e){return m(t).some(n=>n.matches(e))}function yt(t,e){t=_(t);const n=t?ut(t.children):[];return e?bt(n,e):n}function B(t,e){return yt(It(t)).indexOf(t)}function $t(t,e){return m(Ct(t,_(e),"querySelectorAll"))}const St=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,_t=/(\([^)]*\)|[^,])+/g,kt=W(t=>{let e=!1;if(!t||!P(t))return{};const n=[];for(let s of t.match(_t))s=s.trim().replace(St,"$1 *"),e||(e=["!","+","~","-",">"].includes(s[0])),n.push(s);return{selector:n.join(","),selectors:n,isContextSelector:e}}),At=/(\([^)]*\)|\S)*/,U=W(t=>{t=t.slice(1).trim();const[e]=t.match(At);return[e,t.slice(e.length+1)]});function Ct(t,e=document,n){var s;const a=kt(t);if(!a.isContextSelector)return a.selector?M(e,n,a.selector):t;t="";const r=a.selectors.length===1;for(let o of a.selectors){let h,d=e;if(o[0]==="!"&&([h,o]=U(o),d=(s=e.parentElement)==null?void 0:s.closest(h),!o&&r)||d&&o[0]==="-"&&([h,o]=U(o),d=d.previousElementSibling,d=j(d,h)?d:null,!o&&r))return d;if(d){if(r)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${B(d)+1}) ${o}`,d=d.parentElement):o[0]===">"&&(o=`:scope ${o}`),M(d,n,o);t+=`${t?",":""}${zt(d)} ${o}`}}return mt(e)||(e=e.ownerDocument),M(e,n,t)}function M(t,e,n){try{return t[e](n)}catch{return null}}function zt(t){const e=[];for(;t.parentNode;){const n=q(t,"id");if(n){e.unshift(`#${Nt(n)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${B(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function Nt(t){return P(t)?CSS.escape(t):""}const Et=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Tt(t){const e=Et.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 Mt(t,e){return Ht(t)?m(Tt(t)):$t(t,e)}function Ht(t){return P(t)&&ft(t.trim(),"<")}function Dt(t){return wt(t)?Math.ceil(Math.max(0,...Mt("[stroke]",t).map(e=>{var n;return((n=e.getTotalLength)==null?void 0:n.call(e))||0}))):0}const V={x:k,y:k,rotate:k,scale:k,color:H,backgroundColor:H,borderColor:H,blur:p,hue:p,fopacity:p,grayscale:p,invert:p,saturate:p,sepia:p,opacity:Ot,stroke:Lt,bgx:G,bgy:G},{keys:Q}=Object;Z(Q(V),"list"),Z(Q(V),void 0);function k(t,e,n){let s=C(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 o;return C([r])?i.toPx(r,"width",e,!0)/e[`offset${(o=r.endsWith)!=null&&o.call(r,"vh")?"Height":"Width"}`]:i.toFloat(r)}),n.length===1&&n.unshift(t==="scale"?1:0),n=x(n,a),(r,o)=>{r.transform=`${r.transform||""} ${t}(${I(n,o)}${s})`}}function H(t,e,n){return n.length===1&&n.unshift(b(e,t,"")),n=x(n,s=>Ft(e,s)),(s,a)=>{const[r,o,h]=Y(n,a),d=r.map((u,c)=>(u+=h*(o[c]-u),c===3?i.toFloat(u):parseInt(u,10))).join(",");s[t]=`rgba(${d})`}}function Ft(t,e){return b(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function p(t,e,n){n.length===1&&n.unshift(0);const s=C(n)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,n=x(n),(a,r)=>{const o=I(n,r);a.filter=`${a.filter||""} ${t}(${o+s})`}}function Ot(t,e,n){return n.length===1&&n.unshift(b(e,t,"")),n=x(n),(s,a)=>{s[t]=I(n,a)}}function Lt(t,e,n){n.length===1&&n.unshift(0);const s=C(n),a=Dt(e);return n=x(n.reverse(),r=>(r=i.toFloat(r),s==="%"?r*a/100:r)),n.some(([r])=>r)?(i.css(e,"strokeDasharray",a),(r,o)=>{r.strokeDashoffset=I(n,o)}):i.noop}function G(t,e,n,s){n.length===1&&n.unshift(0);const a=t==="bgy"?"height":"width";s[t]=x(n,h=>i.toPx(h,a,e));const r=["bgx","bgy"].filter(h=>h in s);if(r.length===2&&t==="bgx")return i.noop;if(b(e,"backgroundSize","")==="cover")return Rt(t,e,n,s);const o={};for(const h of r)o[h]=X(e,h);return J(r,o,s)}function Rt(t,e,n,s){const a=Wt(e);if(!a.width)return i.noop;const r={width:e.offsetWidth,height:e.offsetHeight},o=["bgx","bgy"].filter(c=>c in s),h={};for(const c of o){const l=s[c].map(([ge])=>ge),g=Math.min(...l),S=Math.max(...l),v=l.indexOf(g)<l.indexOf(S),rt=S-g;h[c]=`${(v?-rt:0)-(v?g:S)}px`,r[c==="bgy"?"height":"width"]+=rt}const d=i.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 u=J(o,h,s);return(c,l)=>{u(c,l),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function X(t,e){return b(t,`background-position-${e.slice(-1)}`,"")}function J(t,e,n){return function(s,a){for(const r of t){const o=I(n[r],a);s[`background-position-${r.slice(-1)}`]=`calc(${e[r]} + ${o}px)`}}}const K={},A={};function Wt(t){const e=i.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(A[e])return A[e];const n=new Image;return e&&(n.src=e,!n.naturalWidth&&!K[e])?(i.once(n,"error load",()=>{A[e]=D(n),i.trigger(t,i.createEvent("load",!1))}),K[e]=!0,D(n)):A[e]=D(n)}function D(t){return{width:t.naturalWidth,height:t.naturalHeight}}function x(t,e=i.toFloat){const n=[],{length:s}=t;let a=0;for(let r=0;r<s;r++){let[o,h]=i.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(o=e(o),h=h?i.toFloat(h)/100:null,r===0?h===null?h=0:h&&n.push([o,0]):r===s-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],u=(h-d)/(a+1);for(let c=a;c>0;c--)n[r-c][1]=d+u*(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 I(t,e){const[n,s,a]=Y(t,e);return n+Math.abs(n-s)*a*(n<s?1:-1)}const qt=/^-?\d+(?:\.\d+)?(\S+)?/;function C(t,e){var n;for(const s of t){const a=(n=s.match)==null?void 0:n.call(s,qt);if(a)return a[1]}return e}function b(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 jt(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var Bt={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[O({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),ct({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&i.query(t,e)||this.list}},update:{read(){if(!this.parallax)return!1;const t=this.parallaxTarget;if(!t)return!1;const e=i.toPx(this.parallaxStart,"height",t,!0),n=i.toPx(this.parallaxEnd,"height",t,!0),s=jt(i.scrolledOver(t,e,n),this.parallaxEasing);return{parallax:this.getIndexAt(s)}},write({parallax:t}){const[e,n]=t,s=this.getValidIndex(e+Math.ceil(n)),a=this.slides[e],r=this.slides[s],{triggerShow:o,triggerShown:h,triggerHide:d,triggerHidden:u}=Ut(this);if(~this.prevIndex)for(const l of new Set([this.index,this.prevIndex]))i.includes([s,e],l)||(d(this.slides[l]),u(this.slides[l]));const c=this.prevIndex!==e||this.index!==s;this.dir=1,this.prevIndex=e,this.index=s,a!==r&&d(a),o(r),c&&h(a),this._translate(a===r?1:n,a,r)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function Ut(t){const{clsSlideActive:e,clsEnter:n,clsLeave:s}=t;return{triggerShow:a,triggerShown:r,triggerHide:o,triggerHidden:h};function a(d){i.hasClass(d,s)&&(o(d),h(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 o(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 h(d){i.hasClass(d,s)&&i.trigger(d,"itemhidden",[t])}}var Vt={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)},events:["resize"]}},tt={slide:{show(t){return[{transform:f(t*-100)},{transform:f()}]},percent(t){return y(t)},translate(t,e){return[{transform:f(e*-100*t)},{transform:f(e*100*(1-t))}]}}};function y(t){return Math.abs(new DOMMatrix(i.css(t,"transform")).m41/t.offsetWidth)}function f(t=0,e="%"){return t?`translate3d(${t+e}, 0, 0)`:""}function Qt(t,e,n,{animation:s,easing:a}){const{percent:r,translate:o,show:h=i.noop}=s,d=h(n),{promise:u,resolve:c}=Gt();return{dir:n,show(l,g=0,S){const v=S?"linear":a;return l-=Math.round(l*i.clamp(g,-1,1)),this.translate(g),z(e,"itemin",{percent:g,duration:l,timing:v,dir:n}),z(t,"itemout",{percent:1-g,duration:l,timing:v,dir:n}),Promise.all([i.Transition.start(e,d[1],l,v),i.Transition.start(t,d[0],l,v)]).then(()=>{this.reset(),c()},i.noop),u},cancel(){return i.Transition.cancel([e,t])},reset(){i.resetProps([e,t],d[0])},async forward(l,g=this.percent()){return await this.cancel(),this.show(l,g,!0)},translate(l){this.reset();const g=o(l,n);i.css(e,g[1]),i.css(t,g[0]),z(e,"itemtranslatein",{percent:l,dir:n}),z(t,"itemtranslateout",{percent:1-l,dir:n})},percent(){return r(t||e,e,n)},getDistance(){return t==null?void 0:t.offsetWidth}}}function z(t,e,n){i.trigger(t,i.createEvent(e,!1,!1,n))}function Gt(){let t;return{promise:new Promise(e=>t=e),resolve:t}}function Xt(){return new Promise(t=>requestAnimationFrame(t))}var Jt={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++]||""))||""}}},Kt={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:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||!i.isVisible(this.$el)||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 N={passive:!1,capture:!0},Yt="touchstart mousedown",F="touchmove mousemove",Zt="touchend touchcancel mouseup click input scroll";var te={props:{draggable:Boolean},data:{draggable:!0,threshold:10,angleThreshold:45},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const s=i.getEventPos(n);i.isRtl&&(s.x=-s.x),this.prevPos=i.isEqual(s,this.pos)?this.prevPos:this.pos,this.pos=s,e(n)}}},events:[{name:Yt,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!i.isTouch(t)&&ee(t.target)||t.target.closest(i.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:F,el:({list:t})=>t,handler:i.noop,...N}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag.x+=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,F,this.move,N),i.on(document,Zt,this.end,{passive:!0,capture:!0,once:!0}),i.css(this.list,"userSelect","none")},move(t){const e=this.pos.x-this.drag.x;if(e===0||!this.dragging&&ne(this.pos,this.drag)>this.angleThreshold||this.prevPos.x===this.pos.x||!this.dragging&&Math.abs(e)<this.threshold)return;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),o=et.call(this,s,r);for(;r!==s&&a>o;)this.drag.x-=o*this.dir,s=r,a-=o,r=this.getIndex(s+this.dir),o=et.call(this,s,r);this.percent=a/o;const h=n[s],d=n[r],u=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]),u&&(this.prevIndex=s,this.index=r,c||(i.trigger(h,"beforeitemhide",[this]),i.trigger(h,"itemhide",[this])),i.trigger(d,"beforeitemshow",[this]),i.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!c&&d)},end(){if(i.off(document,F,this.move,N),this.dragging)if(setTimeout(i.on(this.list,"click",t=>t.preventDefault(),N)),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=this.dir<0==this.prevPos.x>this.pos.x;t?(i.trigger(this.slides[this.prevIndex],"itemhidden",[this]),i.trigger(this.slides[this.index],"itemshown",[this]),this.percent=1-this.percent):this.index=this.prevIndex,this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}i.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function et(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function ee(t){return i.css(t,"userSelect")!=="none"&&i.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}function ne(t,e){return Math.atan2(Math.abs(e.y-t.y),Math.abs(e.x-t.x))*180/Math.PI}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 nt(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${ie++}`}const $={SPACE:32,END:35,HOME:36,LEFT:37,RIGHT:39};function se(t){t.target.closest('a[href="#"],a[href=""]')&&t.preventDefault()}var re={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>i.$$(t,e),navChildren(){return this.nav.map(t=>i.children(t)).flat()},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return i.$$(this.selNavItem,e)}},watch:{nav(t,e){i.attr(t,"role","tablist"),this.padNavitems(),e&&this.$emit()},list(t){i.isTag(t,"ul")&&i.attr(t,"role","presentation")},navChildren(t){i.attr(t,"role","presentation"),this.padNavitems(),this.updateNav()},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 o=i.toNumber(n),h=this.slides[o];h&&(h.id||(h.id=nt(this,h)),r=h.id),a=this.t("slideX",i.toFloat(n)+1),s.role="tab"}else this.list&&(this.list.id||(this.list.id=nt(this,this.list)),r=this.list.id),a=this.t(n);s.ariaControls=r,s.ariaLabel=s.ariaLabel||a}},slides(t){t.forEach((e,n)=>i.attr(e,{role:this.nav.length?"tabpanel":"group","aria-label":this.t("slideLabel",n+1,this.length),"aria-roledescription":this.nav.length?null:"slide"})),this.padNavitems()}},connected(){this.$el.role=this.role,this.$el.ariaRoleDescription="carousel"},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===$.SPACE)&&(se(t),this.show(i.data(t.current,this.attrItem)))}},{name:"itemshow",handler(){this.updateNav()}},{name:"keydown",delegate:({selNavItem:t})=>t,filter:({parallax:t})=>!t,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),s.ariaSelected=r,s.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))}},padNavitems(){for(const t of this.nav){const e=i.children(t),n=[];for(let s=0;s<this.length;s++){const a=`${this.attrItem}="${s}"`;n[s]=e.findLast(r=>r.matches(`[${a}]`))||i.$(`<li ${a}><a href></a></li>`)}i.isEqual(n,e)||i.html(this.nav,n)}}}};const ae="cubic-bezier(0.25, 0.46, 0.45, 0.94)",oe="cubic-bezier(0.165, 0.84, 0.44, 1)";var he={mixins:[Kt,te,re,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(){i.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>ce(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:{async 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 o=this.getIndex(this.index),h=i.hasClass(this.slides,this.clsActive)&&this.slides[o],d=this.getIndex(t,this.index),u=this.slides[d];if(h===u){r();return}if(this.dir=de(t,o),this.prevIndex=o,this.index=d,h&&!i.trigger(h,"beforeitemhide",[this])||!i.trigger(u,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}h&&i.trigger(h,"itemhide",[this]),i.trigger(u,"itemshow",[this]),await this._show(h,u,e),h&&i.trigger(h,"itemhidden",[this]),i.trigger(u,"itemshown",[this]),s.shift(),this._transitioner=null,await Xt(),s.length&&this.show(s.shift(),!0)},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)},async _show(t,e,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?e.offsetWidth<600?ae:oe:this.easing,...this.transitionOptions}),!n&&!t){this._translate(1);return}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 de(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function ce(t){return .5*t+300}var le={mixins:[he],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:tt,Transitioner:Qt},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},observe:O(),events:{itemshow({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)}}},fe={observe:dt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},ue={...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:it(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-i.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:it(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:f(30),zIndex:-1},{transform:f(),zIndex:0}]:[{transform:f(-100),zIndex:0},{transform:f(),zIndex:-1}]},percent(t,e,n){return n<0?1-y(e):y(t)},translate(t,e){return e<0?[{transform:f(30*t),zIndex:-1},{transform:f(-100*(1-t)),zIndex:0}]:[{transform:f(-t*100),zIndex:0},{transform:f(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:f(100),zIndex:0},{transform:f(),zIndex:-1}]:[{transform:f(-30),zIndex:-1},{transform:f(),zIndex:0}]},percent(t,e,n){return n>0?1-y(e):y(t)},translate(t,e){return e<0?[{transform:f(t*100),zIndex:0},{transform:f(-30*(1-t)),zIndex:-1}]:[{transform:f(-30*t),zIndex:-1},{transform:f(100*(1-t)),zIndex:0}]}}};function it(t){return`scale3d(${t}, ${t}, 1)`}var st={mixins:[w,le,Vt,Bt,fe],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:ue},watch:{list(t){i.css(t,{aspectRatio:this.ratio?this.ratio.replace(":","/"):void 0,minHeight:this.minHeight,maxHeight:this.maxHeight,width:"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",st),st});
@@ -1,4 +1,4 @@
1
- /*! UIkit 0.0.2 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
1
+ /*! UIkit 0.0.3 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -449,8 +449,7 @@
449
449
  sortable.target,
450
450
  target,
451
451
  placeholder,
452
- x,
453
- y,
452
+ { x, y },
454
453
  sortable === previous && data.moved !== target
455
454
  );
456
455
  if (insertTarget === false) {
@@ -610,14 +609,14 @@
610
609
  function findTarget(items, point) {
611
610
  return items[uikitUtil.findIndex(items, (item) => uikitUtil.pointInRect(point, uikitUtil.dimensions(item)))];
612
611
  }
613
- function findInsertTarget(list, target, placeholder, x, y, sameList) {
612
+ function findInsertTarget(list, target, placeholder, point, sameList) {
614
613
  if (!uikitUtil.children(list).length) {
615
614
  return;
616
615
  }
617
616
  const rect = uikitUtil.dimensions(target);
618
617
  if (!sameList) {
619
618
  if (!isHorizontal(list, placeholder)) {
620
- return y < rect.top + rect.height / 2 ? target : target.nextElementSibling;
619
+ return point.y < rect.top + rect.height / 2 ? target : target.nextElementSibling;
621
620
  }
622
621
  return target;
623
622
  }
@@ -626,7 +625,7 @@
626
625
  [rect.top, rect.bottom],
627
626
  [placeholderRect.top, placeholderRect.bottom]
628
627
  );
629
- const [pointerPos, lengthProp, startProp, endProp] = sameRow ? [x, "width", "left", "right"] : [y, "height", "top", "bottom"];
628
+ const [pointerPos, lengthProp, startProp, endProp] = sameRow ? [point.x, "width", "left", "right"] : [point.y, "height", "top", "bottom"];
630
629
  const diff = placeholderRect[lengthProp] < rect[lengthProp] ? rect[lengthProp] - placeholderRect[lengthProp] : 0;
631
630
  if (placeholderRect[startProp] < rect[startProp]) {
632
631
  if (diff && pointerPos < rect[startProp] + diff) {