uikit 3.23.7 → 3.23.8-dev.97ee4c1bb
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.
- package/CHANGELOG.md +6 -0
- package/build/release.js +1 -1
- package/build/scss.js +49 -12
- package/build/util.js +2 -0
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +7 -2
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +7 -2
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +3 -2
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +3 -2
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +3 -2
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +3 -2
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +3 -2
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +10 -5
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +10 -5
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/mixin/modal.js +7 -1
- package/src/js/mixin/svg.js +0 -2
- package/src/js/util/selector.js +1 -1
- package/src/scss/components/accordion.scss +8 -6
- package/src/scss/components/alert.scss +10 -8
- package/src/scss/components/align.scss +3 -1
- package/src/scss/components/animation.scss +3 -1
- package/src/scss/components/article.scss +7 -5
- package/src/scss/components/background.scss +3 -1
- package/src/scss/components/badge.scss +5 -3
- package/src/scss/components/base.scss +20 -17
- package/src/scss/components/breadcrumb.scss +9 -7
- package/src/scss/components/button.scss +25 -23
- package/src/scss/components/card.scss +26 -24
- package/src/scss/components/close.scss +5 -3
- package/src/scss/components/column.scss +3 -1
- package/src/scss/components/comment.scss +13 -11
- package/src/scss/components/container.scss +14 -11
- package/src/scss/components/countdown.scss +8 -6
- package/src/scss/components/cover.scss +3 -1
- package/src/scss/components/description-list.scss +6 -4
- package/src/scss/components/divider.scss +13 -10
- package/src/scss/components/dotnav.scss +8 -6
- package/src/scss/components/drop.scss +3 -1
- package/src/scss/components/dropbar.scss +8 -6
- package/src/scss/components/dropdown.scss +12 -10
- package/src/scss/components/dropnav.scss +3 -1
- package/src/scss/components/flex.scss +3 -1
- package/src/scss/components/form-range.scss +13 -10
- package/src/scss/components/form.scss +23 -21
- package/src/scss/components/grid.scss +5 -3
- package/src/scss/components/heading.scss +16 -13
- package/src/scss/components/height.scss +3 -1
- package/src/scss/components/icon.scss +9 -7
- package/src/scss/components/iconnav.scss +7 -5
- package/src/scss/components/inverse.scss +4 -2
- package/src/scss/components/label.scss +7 -5
- package/src/scss/components/leader.scss +4 -2
- package/src/scss/components/lightbox.scss +6 -4
- package/src/scss/components/link.scss +10 -8
- package/src/scss/components/list.scss +5 -3
- package/src/scss/components/margin.scss +3 -1
- package/src/scss/components/marker.scss +5 -3
- package/src/scss/components/mixin.scss +6 -4
- package/src/scss/components/modal.scss +18 -16
- package/src/scss/components/nav.scss +33 -31
- package/src/scss/components/navbar.scss +33 -30
- package/src/scss/components/notification.scss +10 -8
- package/src/scss/components/offcanvas.scss +6 -4
- package/src/scss/components/overlay.scss +7 -5
- package/src/scss/components/padding.scss +3 -1
- package/src/scss/components/pagination.scss +8 -6
- package/src/scss/components/placeholder.scss +4 -2
- package/src/scss/components/position.scss +9 -6
- package/src/scss/components/print.scss +3 -1
- package/src/scss/components/progress.scss +6 -4
- package/src/scss/components/search.scss +15 -13
- package/src/scss/components/section.scss +9 -7
- package/src/scss/components/slidenav.scss +10 -8
- package/src/scss/components/slider.scss +4 -2
- package/src/scss/components/slideshow.scss +4 -2
- package/src/scss/components/sortable.scss +7 -5
- package/src/scss/components/spinner.scss +6 -3
- package/src/scss/components/sticky.scss +3 -1
- package/src/scss/components/subnav.scss +13 -11
- package/src/scss/components/svg.scss +3 -1
- package/src/scss/components/switcher.scss +3 -1
- package/src/scss/components/tab.scss +14 -12
- package/src/scss/components/table.scss +17 -14
- package/src/scss/components/text.scss +8 -6
- package/src/scss/components/thumbnav.scss +7 -5
- package/src/scss/components/tile.scss +12 -10
- package/src/scss/components/tooltip.scss +4 -2
- package/src/scss/components/totop.scss +6 -4
- package/src/scss/components/transition.scss +3 -1
- package/src/scss/components/utility.scss +8 -6
- package/src/scss/components/visibility.scss +3 -1
- package/src/scss/components/width.scss +34 -31
- package/src/scss/mixins-theme.scss +169 -168
- package/src/scss/mixins.scss +175 -175
- package/src/scss/uikit-theme.scss +0 -1
- package/src/scss/variables-theme.scss +70 -66
- package/src/scss/variables.scss +74 -70
- package/src/scss/theme/_import.scss +0 -82
- package/src/scss/theme/accordion.scss +0 -55
- package/src/scss/theme/alert.scss +0 -45
- package/src/scss/theme/align.scss +0 -14
- package/src/scss/theme/animation.scss +0 -14
- package/src/scss/theme/article.scss +0 -49
- package/src/scss/theme/background.scss +0 -14
- package/src/scss/theme/badge.scss +0 -29
- package/src/scss/theme/base.scss +0 -104
- package/src/scss/theme/breadcrumb.scss +0 -45
- package/src/scss/theme/button.scss +0 -132
- package/src/scss/theme/card.scss +0 -111
- package/src/scss/theme/close.scss +0 -29
- package/src/scss/theme/column.scss +0 -14
- package/src/scss/theme/comment.scss +0 -67
- package/src/scss/theme/container.scss +0 -14
- package/src/scss/theme/countdown.scss +0 -53
- package/src/scss/theme/description-list.scss +0 -29
- package/src/scss/theme/divider.scss +0 -49
- package/src/scss/theme/dotnav.scss +0 -46
- package/src/scss/theme/drop.scss +0 -14
- package/src/scss/theme/dropbar.scss +0 -38
- package/src/scss/theme/dropdown.scss +0 -53
- package/src/scss/theme/form-range.scss +0 -51
- package/src/scss/theme/form.scss +0 -117
- package/src/scss/theme/grid.scss +0 -28
- package/src/scss/theme/heading.scss +0 -71
- package/src/scss/theme/height.scss +0 -14
- package/src/scss/theme/icon.scss +0 -50
- package/src/scss/theme/iconnav.scss +0 -39
- package/src/scss/theme/inverse.scss +0 -14
- package/src/scss/theme/label.scss +0 -41
- package/src/scss/theme/leader.scss +0 -26
- package/src/scss/theme/lightbox.scss +0 -32
- package/src/scss/theme/link.scss +0 -55
- package/src/scss/theme/list.scss +0 -34
- package/src/scss/theme/margin.scss +0 -14
- package/src/scss/theme/marker.scss +0 -29
- package/src/scss/theme/modal.scss +0 -77
- package/src/scss/theme/nav.scss +0 -131
- package/src/scss/theme/navbar.scss +0 -135
- package/src/scss/theme/notification.scss +0 -44
- package/src/scss/theme/offcanvas.scss +0 -32
- package/src/scss/theme/overlay.scss +0 -33
- package/src/scss/theme/padding.scss +0 -14
- package/src/scss/theme/pagination.scss +0 -41
- package/src/scss/theme/placeholder.scss +0 -26
- package/src/scss/theme/position.scss +0 -14
- package/src/scss/theme/progress.scss +0 -23
- package/src/scss/theme/search.scss +0 -101
- package/src/scss/theme/section.scss +0 -32
- package/src/scss/theme/slidenav.scss +0 -52
- package/src/scss/theme/slider.scss +0 -14
- package/src/scss/theme/sortable.scss +0 -38
- package/src/scss/theme/spinner.scss +0 -14
- package/src/scss/theme/sticky.scss +0 -14
- package/src/scss/theme/subnav.scss +0 -72
- package/src/scss/theme/tab.scss +0 -67
- package/src/scss/theme/table.scss +0 -65
- package/src/scss/theme/text.scss +0 -49
- package/src/scss/theme/thumbnav.scss +0 -40
- package/src/scss/theme/tile.scss +0 -52
- package/src/scss/theme/tooltip.scss +0 -20
- package/src/scss/theme/totop.scss +0 -32
- package/src/scss/theme/transition.scss +0 -14
- package/src/scss/theme/utility.scss +0 -49
- package/src/scss/theme/variables.scss +0 -36
- package/src/scss/theme/width.scss +0 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.23.
|
|
1
|
+
/*! UIkit 3.23.8-dev.97ee4c1bb | 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("uikitslider_parallax",["uikit-util"],$):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlider_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 cn(n){return l(n).some(e=>on.call(e))}function sn(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(sn(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 c=o.selectors.length===1;for(let s of o.selectors){let a,f=e;if(s[0]==="!"&&([a,s]=D(s),f=(r=e.parentElement)==null?void 0:r.closest(a),!s&&c)||f&&s[0]==="-"&&([a,s]=D(s),f=f.previousElementSibling,f=W(f,a)?f:null,!s&&c))return f;if(f){if(c)return s[0]==="~"||s[0]==="+"?(s=`:scope > :nth-child(${A(f)+1}) ${s}`,f=f.parentElement):s[0]===">"&&(s=`:scope ${s}`),O(f,t,s);n+=`${n?",":""}${$n(f)} ${s}`}}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 cn(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=c=>i.toFloat(i.toFloat(c).toFixed(r==="px"?0:6))):n==="scale"&&(r="",o=c=>{var s;return F([c])?i.toPx(c,"width",e,!0)/e[`offset${(s=c.endsWith)!=null&&s.call(c,"vh")?"Height":"Width"}`]:i.toFloat(c)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,o),(c,s)=>{c.transform=`${c.transform||""} ${n}(${b(t,s)}${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[c,s,a]=L(t,o),f=c.map((h,u)=>(h+=a*(s[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,c)=>{const s=b(t,c);o.filter=`${o.filter||""} ${n}(${s+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(),c=>(c=i.toFloat(c),r==="%"?c*o/100:c)),t.some(([c])=>c)?(i.css(e,"strokeDasharray",o),(c,s)=>{c.strokeDashoffset=b(t,s)}):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 c=["bgx","bgy"].filter(a=>a in r);if(c.length===2&&n==="bgx")return i.noop;if(p(e,"backgroundSize","")==="cover")return On(n,e,t,r);const s={};for(const a of c)s[a]=B(e,a);return V(c,s,r)}function On(n,e,t,r){const o=jn(e);if(!o.width)return i.noop;const c={width:e.offsetWidth,height:e.offsetHeight},s=["bgx","bgy"].filter(u=>u in r),a={};for(const u of s){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`,c[u==="bgy"?"height":"width"]+=X}const f=i.Dimensions.cover(o,c);for(const u of s){const d=u==="bgy"?"height":"width",x=f[d]-c[d];a[u]=`max(${B(e,u)},-${x}px) + ${a[u]}`}const h=V(s,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 c of n){const s=b(t[c],o);r[`background-position-${c.slice(-1)}`]=`calc(${e[c]} + ${s}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 c=0;c<r;c++){let[s,a]=i.isString(n[c])?n[c].trim().split(/ (?![^(]*\))/):[n[c]];if(s=e(s),a=a?i.toFloat(a)/100:null,c===0?a===null?a=0:a&&t.push([s,0]):c===r-1&&(a===null?a=1:a!==1&&(t.push([s,a]),a=1)),t.push([s,a]),a===null)o++;else if(o){const f=t[c-o-1][1],h=(a-f)/(o+1);for(let u=o;u>0;u--)t[c-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 c=this.getCss(J(n,o,e)),s=this.getCss(G(n)?.5:o>0?1:0);i.fastdom.write(()=>{i.css(this.$el,c),i.Transition.start(this.$el,s,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("sliderParallax",Q),Q});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.23.
|
|
1
|
+
/*! UIkit 3.23.8-dev.97ee4c1bb | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -802,6 +802,7 @@
|
|
|
802
802
|
return [position, selector.slice(position.length + 1)];
|
|
803
803
|
});
|
|
804
804
|
function _query(selector, context = document, queryFn) {
|
|
805
|
+
var _a;
|
|
805
806
|
const parsed = parseSelector(selector);
|
|
806
807
|
if (!parsed.isContextSelector) {
|
|
807
808
|
return parsed.selector ? _doQuery(context, queryFn, parsed.selector) : selector;
|
|
@@ -813,7 +814,7 @@
|
|
|
813
814
|
let ctx = context;
|
|
814
815
|
if (sel[0] === "!") {
|
|
815
816
|
[positionSel, sel] = parsePositionSelector(sel);
|
|
816
|
-
ctx = context.parentElement.closest(positionSel);
|
|
817
|
+
ctx = (_a = context.parentElement) == null ? void 0 : _a.closest(positionSel);
|
|
817
818
|
if (!sel && isSingle) {
|
|
818
819
|
return ctx;
|
|
819
820
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.23.7 | 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._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&ut(t,t._queued),t._queued=null})),t._queued.add(e.type||e))}function ut(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(h=>e.has(h)))continue;let r;i&&(r=i.call(t,t._data,e),r&&s.isPlainObject(r)&&s.assign(t._data,r)),n&&r!==!1&&s.fastdom.write(()=>{t._connected&&n.call(t,t._data,e)})}}function 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(h=>s.removeAttr(h,"loading"));for(const r of e.filter(({isIntersecting:h})=>h).map(({target:h})=>h))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)}},It={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:o.replace(/%s/g,()=>e[r++]||""))||""}}},bt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")&&!s.matches(this.$el,":focus")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const _={passive:!1,capture:!0},B={passive:!0,capture:!0},$t="touchstart mousedown",D="touchmove mousemove",j="touchend touchcancel mouseup click input scroll";var yt={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i).x*(s.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:$t,passive:!0,delegate:({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+=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),h=U.call(this,n,r);for(;r!==n&&o>h;)this.drag-=h*this.dir,n=r,o-=h,r=this.getIndex(n+this.dir),h=U.call(this,n,r);this.percent=o/h;const a=i[n],c=i[r],f=this.index!==r,d=n===r;let l;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),d&&(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,d||(s.trigger(a,"beforeitemhide",[this]),s.trigger(a,"itemhide",[this])),s.trigger(c,"beforeitemshow",[this]),s.trigger(c,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!d&&c)},end(){if(s.off(document,D,this.move,_),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 St(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[s.hyphenate(o),`data-${s.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let _t=1;function q(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${_t++}`}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 h=s.toNumber(i),a=this.slides[h];a&&(a.id||(a.id=q(this,a)),r=a.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 Ct="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Mt="cubic-bezier(0.165, 0.84, 0.44, 1)";var Et={mixins:[bt,yt,At,It],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>Q(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{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 h=this.getIndex(this.index),a=s.hasClass(this.slides,this.clsActive)&&this.slides[h],c=this.getIndex(t,this.index),f=this.slides[c];if(a===f){r();return}if(this.dir=Nt(t,h),this.prevIndex=h,this.index=c,a&&!s.trigger(a,"beforeitemhide",[this])||!s.trigger(f,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}a&&s.trigger(a,"itemhide",[this]),s.trigger(f,"itemshow",[this]),await this._show(a,f,e),a&&s.trigger(a,"itemhidden",[this]),s.trigger(f,"itemshown",[this]),n.shift(),this._transitioner=null,n.length&&requestAnimationFrame(()=>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?Ct:Mt: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 Nt(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Q(t){return .5*t+300}function Tt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{from:Pt}=Array;function Dt(t){return typeof t=="function"}function O(t){return t!==null&&typeof t=="object"}function Ot(t){return O(t)&&t===t.window}function Rt(t){return X(t)===9}function G(t){return X(t)>=1}function X(t){return!Ot(t)&&O(t)&&t.nodeType}function R(t){return typeof t=="string"}function Ft(t){return t===void 0}function k(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 F(t,e,i){var n;if(O(e)){for(const o in e)F(t,o,e[o]);return}if(Ft(i))return(n=k(t))==null?void 0:n.getAttribute(e);for(const o of m(t))Dt(i)&&(i=i.call(o,F(o,e))),i===null?Wt(o,e):o.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=k(t))==null?void 0:e.parentElement}function zt(t,e){return m(t).filter(i=>K(i,e))}function K(t,e){return m(t).some(i=>i.matches(e))}function Bt(t,e){t=k(t);const i=t?Pt(t.children):[];return e?zt(i,e):i}function Y(t,e){return Bt(Vt(t)).indexOf(t)}function jt(t,e){return m(Xt(t,k(e),"querySelectorAll"))}const Ut=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,qt=/(\([^)]*\)|[^,])+/g,Qt=J(t=>{let e=!1;if(!t||!R(t))return{};const i=[];for(let n of t.match(qt))n=n.trim().replace(Ut,"$1 *"),e||(e=["!","+","~","-",">"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}}),Gt=/(\([^)]*\)|\S)*/,Z=J(t=>{t=t.slice(1).trim();const[e]=t.match(Gt);return[e,t.slice(e.length+1)]});function Xt(t,e=document,i){const n=Qt(t);if(!n.isContextSelector)return n.selector?W(e,i,n.selector):t;t="";const o=n.selectors.length===1;for(let r of n.selectors){let h,a=e;if(r[0]==="!"&&([h,r]=Z(r),a=e.parentElement.closest(h),!r&&o)||a&&r[0]==="-"&&([h,r]=Z(r),a=a.previousElementSibling,a=K(a,h)?a:null,!r&&o))return a;if(a){if(o)return r[0]==="~"||r[0]==="+"?(r=`:scope > :nth-child(${Y(a)+1}) ${r}`,a=a.parentElement):r[0]===">"&&(r=`:scope ${r}`),W(a,i,r);t+=`${t?",":""}${Jt(a)} ${r}`}}return Rt(e)||(e=e.ownerDocument),W(e,i,t)}function W(t,e,i){try{return t[e](i)}catch{return null}}function Jt(t){const e=[];for(;t.parentNode;){const i=F(t,"id");if(i){e.unshift(`#${Kt(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 Kt(t){return R(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 R(t)&&Tt(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 tt={x:A,y:A,rotate:A,scale:A,color:H,backgroundColor:H,borderColor:H,blur:v,hue:v,fopacity:v,grayscale:v,invert:v,saturate:v,sepia:v,opacity:re,stroke:oe,bgx:st,bgy:st},{keys:et}=Object;at(et(tt),"list"),at(et(tt),void 0);function A(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 h;return M([r])?s.toPx(r,"width",e,!0)/e[`offset${(h=r.endsWith)!=null&&h.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=x(i,o),(r,h)=>{r.transform=`${r.transform||""} ${t}(${$(i,h)}${n})`}}function H(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=x(i,n=>ne(e,n)),(n,o)=>{const[r,h,a]=ot(i,o),c=r.map((f,d)=>(f+=a*(h[d]-f),d===3?s.toFloat(f):parseInt(f,10))).join(",");n[t]=`rgba(${c})`}}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=x(i),(o,r)=>{const h=$(i,r);o.filter=`${o.filter||""} ${t}(${h+n})`}}function re(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=x(i),(n,o)=>{n[t]=$(i,o)}}function oe(t,e,i){i.length===1&&i.unshift(0);const n=M(i),o=ie(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,h)=>{r.strokeDashoffset=$(i,h)}):s.noop}function st(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=x(i,a=>s.toPx(a,o,e));const r=["bgx","bgy"].filter(a=>a in n);if(r.length===2&&t==="bgx")return s.noop;if(y(e,"backgroundSize","")==="cover")return ae(t,e,i,n);const h={};for(const a of r)h[a]=it(e,a);return nt(r,h,n)}function ae(t,e,i,n){const o=he(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(d=>d in n),a={};for(const d of h){const l=n[d].map(([T])=>T),g=Math.min(...l),u=Math.max(...l),N=l.indexOf(g)<l.indexOf(u),p=u-g;a[d]=`${(N?-p:0)-(N?g:u)}px`,r[d==="bgy"?"height":"width"]+=p}const c=s.Dimensions.cover(o,r);for(const d of h){const l=d==="bgy"?"height":"width",g=c[l]-r[l];a[d]=`max(${it(e,d)},-${g}px) + ${a[d]}`}const f=nt(h,a,n);return(d,l)=>{f(d,l),d.backgroundSize=`${c.width}px ${c.height}px`,d.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 h=$(i[r],o);n[`background-position-${r.slice(-1)}`]=`calc(${e[r]} + ${h}px)`}}}const rt={},C={};function he(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(C[e])return C[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!rt[e])?(s.once(i,"error load",()=>{C[e]=L(i),s.trigger(t,s.createEvent("load",!1))}),rt[e]=!0,L(i)):C[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[h,a]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(h=e(h),a=a?s.toFloat(a)/100:null,r===0?a===null?a=0:a&&i.push([h,0]):r===n-1&&(a===null?a=1:a!==1&&(i.push([h,a]),a=1)),i.push([h,a]),a===null)o++;else if(o){const c=i[r-o-1][1],f=(a-c)/(o+1);for(let d=o;d>0;d--)i[r-d][1]=c+f*(o-d+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 de=/^-?\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,de);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 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:[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=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)),o=this.slides[e],r=this.slides[n],{triggerShow:h,triggerShown:a,triggerHide:c,triggerHidden:f}=fe(this);if(~this.prevIndex)for(const l of new Set([this.index,this.prevIndex]))s.includes([n,e],l)||(c(this.slides[l]),f(this.slides[l]));const d=this.prevIndex!==e||this.index!==n;this.dir=1,this.prevIndex=e,this.index=n,o!==r&&c(o),h(r),d&&a(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 fe(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:o,triggerShown:r,triggerHide:h,triggerHidden:a};function o(c){s.hasClass(c,n)&&(h(c),a(c)),s.hasClass(c,e)||(s.trigger(c,"beforeitemshow",[t]),s.trigger(c,"itemshow",[t]))}function r(c){s.hasClass(c,i)&&s.trigger(c,"itemshown",[t])}function h(c){s.hasClass(c,e)||o(c),s.hasClass(c,i)&&r(c),s.hasClass(c,n)||(s.trigger(c,"beforeitemhide",[t]),s.trigger(c,"itemhide",[t]))}function a(c){s.hasClass(c,n)&&s.trigger(c,"itemhidden",[t])}}var 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: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 me(){let t;return{promise:new Promise(e=>t=e),resolve:t}}function pe(t,e,i,{center:n,easing:o,list:r}){const h=t?S(t,r,n):S(e,r,n)+s.dimensions(e).width*i,a=e?S(e,r,n):h+s.dimensions(t).width*i*(s.isRtl?-1:1),{promise:c,resolve:f}=me();return{dir:i,show(d,l=0,g){const u=g?"linear":o;return d-=Math.round(d*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:d,timing:u,dir:i}),t&&V(this.getItemIn(!0),"itemout",{percent:1-l,duration:d,timing:u,dir:i}),s.Transition.start(r,{transform:ht(-a*(s.isRtl?-1:1),"px")},d,u).then(f,s.noop),c},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(d,l=this.percent()){return await this.cancel(),this.show(d,l,!0)},translate(d){if(d===this.percent())return;const l=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",ht(s.clamp(-a+(l-l*d),-w(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const g=this.getActives(),u=this.getItemIn(),N=this.getItemIn(!0);d=t?s.clamp(d,-1,1):0;for(const p of s.children(r)){const T=s.includes(g,p),ft=p===u,gt=p===N,Ie=ft||!gt&&(T||i*(s.isRtl?-1:1)===-1^E(p,r)>E(t||e));V(p,`itemtranslate${Ie?"in":"out"}`,{dir:i,percent:gt?1-d:ft?d:T?1:0})}},percent(){return Math.abs((new DOMMatrix(s.css(r,"transform")).m41*(s.isRtl?-1:1)+h)/(a-h))},getDistance(){return Math.abs(a-h)},getItemIn(d=!1){let l=this.getActives(),g=ct(r,S(e||t,r,n));if(d){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-ve(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 ve(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),h=r+Math.min(s.dimensions(o).width,i);return r>=e&&h<=n})}var lt={mixins:[wt,Et,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:pe},computed:{finite({finite:t}){return t||xe(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 h of[-1,1]){let a=o+(h>0?n:0),c=0;do{const f=this.slides[this.getIndex(this.index+h+c++*h)];a+=s.dimensions(f).width*h,r.add(f)}while(this.length>c&&a>e&&a<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=this.center?w(this.list)-(s.dimensions(this.slides[0]).width/2+s.dimensions(s.last(this.slides)).width/2):w(this.list,this.maxIndex);let n=t*i,o=0;do{const r=s.dimensions(this.slides[++e]).width,h=this.center?r/2+s.dimensions(this.slides[e+1]).width/2:r;o=n/h%1,n-=h}while(n>=0&&e<this.maxIndex);return[e,o]}}};function xe(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),o=Math.trunc(i/2);for(const r in n){const h=n[r],a=s.dimensions(h).width,c=new Set([h]);let f=0;for(const d of[-1,1]){let l=a/2,g=0;for(;l<o;){const u=n[s.getIndex(+r+d+g++*d,n)];if(c.has(u))return!0;l+=s.dimensions(u).width,c.add(u)}f=Math.max(f,a/2+s.dimensions(n[s.getIndex(+r+d,n)]).width/2-(l-o))}if(Math.trunc(f)>s.sumBy(n.filter(d=>!c.has(d)),d=>s.dimensions(d).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",lt),lt});
|
|
1
|
+
/*! UIkit 3.23.8-dev.97ee4c1bb | 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._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&ut(t,t._queued),t._queued=null})),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)}},It={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,o;let r=0;return((o=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:o.replace(/%s/g,()=>e[r++]||""))||""}}},bt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")&&!s.matches(this.$el,":focus")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const _={passive:!1,capture:!0},B={passive:!0,capture:!0},$t="touchstart mousedown",D="touchmove mousemove",j="touchend touchcancel mouseup click input scroll";var yt={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=s.getEventPos(i).x*(s.isRtl?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:$t,passive:!0,delegate:({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+=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 St(t){return s.css(t,"userSelect")!=="none"&&s.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}s.memoize((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(o=>[s.hyphenate(o),`data-${s.hyphenate(o)}`]).flat();return{attributes:i,filter:n}});let _t=1;function q(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${_t++}`}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 Ct="cubic-bezier(0.25, 0.46, 0.45, 0.94)",Mt="cubic-bezier(0.165, 0.84, 0.44, 1)";var Et={mixins:[bt,yt,At,It],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>Q(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{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=Nt(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,n.length&&requestAnimationFrame(()=>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?Ct:Mt: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 Nt(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Q(t){return .5*t+300}function Tt(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{from:Pt}=Array;function Dt(t){return typeof t=="function"}function O(t){return t!==null&&typeof t=="object"}function Ot(t){return O(t)&&t===t.window}function Rt(t){return X(t)===9}function G(t){return X(t)>=1}function X(t){return!Ot(t)&&O(t)&&t.nodeType}function R(t){return typeof t=="string"}function Ft(t){return t===void 0}function k(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 F(t,e,i){var n;if(O(e)){for(const o in e)F(t,o,e[o]);return}if(Ft(i))return(n=k(t))==null?void 0:n.getAttribute(e);for(const o of m(t))Dt(i)&&(i=i.call(o,F(o,e))),i===null?Wt(o,e):o.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=k(t))==null?void 0:e.parentElement}function zt(t,e){return m(t).filter(i=>K(i,e))}function K(t,e){return m(t).some(i=>i.matches(e))}function Bt(t,e){t=k(t);const i=t?Pt(t.children):[];return e?zt(i,e):i}function Y(t,e){return Bt(Vt(t)).indexOf(t)}function jt(t,e){return m(Xt(t,k(e),"querySelectorAll"))}const Ut=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,qt=/(\([^)]*\)|[^,])+/g,Qt=J(t=>{let e=!1;if(!t||!R(t))return{};const i=[];for(let n of t.match(qt))n=n.trim().replace(Ut,"$1 *"),e||(e=["!","+","~","-",">"].includes(n[0])),i.push(n);return{selector:i.join(","),selectors:i,isContextSelector:e}}),Gt=/(\([^)]*\)|\S)*/,Z=J(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 o=Qt(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?",":""}${Jt(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 Jt(t){const e=[];for(;t.parentNode;){const i=F(t,"id");if(i){e.unshift(`#${Kt(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 Kt(t){return R(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 R(t)&&Tt(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 tt={x:A,y:A,rotate:A,scale:A,color:H,backgroundColor:H,borderColor:H,blur:v,hue:v,fopacity:v,grayscale:v,invert:v,saturate:v,sepia:v,opacity:re,stroke:oe,bgx:st,bgy:st},{keys:et}=Object;at(et(tt),"list"),at(et(tt),void 0);function A(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=>ne(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 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=x(i),(o,r)=>{const a=$(i,r);o.filter=`${o.filter||""} ${t}(${a+n})`}}function re(t,e,i){return i.length===1&&i.unshift(y(e,t,"")),i=x(i),(n,o)=>{n[t]=$(i,o)}}function oe(t,e,i){i.length===1&&i.unshift(0);const n=M(i),o=ie(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 ae(t,e,i,n);const a={};for(const h of r)a[h]=it(e,h);return nt(r,a,n)}function ae(t,e,i,n){const o=he(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={},C={};function he(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(C[e])return C[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!rt[e])?(s.once(i,"error load",()=>{C[e]=L(i),s.trigger(t,s.createEvent("load",!1))}),rt[e]=!0,L(i)):C[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 de=/^-?\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,de);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 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:[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=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)),o=this.slides[e],r=this.slides[n],{triggerShow:a,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,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 fe(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 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: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 me(){let t;return{promise:new Promise(e=>t=e),resolve:t}}function pe(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}=me();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,Ie=ft||!gt&&(T||i*(s.isRtl?-1:1)===-1^E(p,r)>E(t||e));V(p,`itemtranslate${Ie?"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-ve(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 ve(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,Et,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:pe},computed:{finite({finite:t}){return t||xe(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 xe(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),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 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",lt),lt});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.23.
|
|
1
|
+
/*! UIkit 3.23.8-dev.97ee4c1bb | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -168,6 +168,7 @@
|
|
|
168
168
|
return [position, selector.slice(position.length + 1)];
|
|
169
169
|
});
|
|
170
170
|
function _query(selector, context = document, queryFn) {
|
|
171
|
+
var _a;
|
|
171
172
|
const parsed = parseSelector(selector);
|
|
172
173
|
if (!parsed.isContextSelector) {
|
|
173
174
|
return parsed.selector ? _doQuery(context, queryFn, parsed.selector) : selector;
|
|
@@ -179,7 +180,7 @@
|
|
|
179
180
|
let ctx = context;
|
|
180
181
|
if (sel[0] === "!") {
|
|
181
182
|
[positionSel, sel] = parsePositionSelector(sel);
|
|
182
|
-
ctx = context.parentElement.closest(positionSel);
|
|
183
|
+
ctx = (_a = context.parentElement) == null ? void 0 : _a.closest(positionSel);
|
|
183
184
|
if (!sel && isSingle) {
|
|
184
185
|
return ctx;
|
|
185
186
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.23.
|
|
1
|
+
/*! UIkit 3.23.8-dev.97ee4c1bb | 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,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.23.
|
|
1
|
+
/*! UIkit 3.23.8-dev.97ee4c1bb | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -221,6 +221,7 @@
|
|
|
221
221
|
return [position, selector.slice(position.length + 1)];
|
|
222
222
|
});
|
|
223
223
|
function _query(selector, context = document, queryFn) {
|
|
224
|
+
var _a;
|
|
224
225
|
const parsed = parseSelector(selector);
|
|
225
226
|
if (!parsed.isContextSelector) {
|
|
226
227
|
return parsed.selector ? _doQuery(context, queryFn, parsed.selector) : selector;
|
|
@@ -232,7 +233,7 @@
|
|
|
232
233
|
let ctx = context;
|
|
233
234
|
if (sel[0] === "!") {
|
|
234
235
|
[positionSel, sel] = parsePositionSelector(sel);
|
|
235
|
-
ctx = context.parentElement.closest(positionSel);
|
|
236
|
+
ctx = (_a = context.parentElement) == null ? void 0 : _a.closest(positionSel);
|
|
236
237
|
if (!sel && isSingle) {
|
|
237
238
|
return ctx;
|
|
238
239
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.23.7 | 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._queued||(t._queued=new Set,i.fastdom.read(()=>{t._connected&&dt(t,t._queued),t._queued=null})),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(h=>e.has(h)))continue;let r;n&&(r=n.call(t,t._data,e),r&&i.isPlainObject(r)&&i.assign(t._data,r)),s&&r!==!1&&i.fastdom.write(()=>{t._connected&&s.call(t,t._data,e)})}}function 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(h=>i.removeAttr(h,"loading"));for(const r of e.filter(({isIntersecting:h})=>h).map(({target:h})=>h))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 k(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=k(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=k(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 kt(t,e){t=k(t);const n=t?mt(t.children):[];return e?St(n,e):n}function B(t,e){return kt($t(t)).indexOf(t)}function _t(t,e){return m(Et(t,k(e),"querySelectorAll"))}const At=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ct=/(\([^)]*\)|[^,])+/g,zt=U(t=>{let e=!1;if(!t||!P(t))return{};const n=[];for(let s of t.match(Ct))s=s.trim().replace(At,"$1 *"),e||(e=["!","+","~","-",">"].includes(s[0])),n.push(s);return{selector:n.join(","),selectors:n,isContextSelector:e}}),Nt=/(\([^)]*\)|\S)*/,q=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){const s=zt(t);if(!s.isContextSelector)return s.selector?M(e,n,s.selector):t;t="";const a=s.selectors.length===1;for(let r of s.selectors){let h,o=e;if(r[0]==="!"&&([h,r]=q(r),o=e.parentElement.closest(h),!r&&a)||o&&r[0]==="-"&&([h,r]=q(r),o=o.previousElementSibling,o=j(o,h)?o:null,!r&&a))return o;if(o){if(a)return r[0]==="~"||r[0]==="+"?(r=`:scope > :nth-child(${B(o)+1}) ${r}`,o=o.parentElement):r[0]===">"&&(r=`:scope ${r}`),M(o,n,r);t+=`${t?",":""}${Tt(o)} ${r}`}}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(${B(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 Ot(t,e){return Ft(t)?m(Mt(t)):_t(t,e)}function Ft(t){return P(t)&>(t.trim(),"<")}function Rt(t){return yt(t)?Math.ceil(Math.max(0,...Ot("[stroke]",t).map(e=>{var n;return((n=e.getTotalLength)==null?void 0:n.call(e))||0}))):0}const V={x:_,y:_,rotate:_,scale:_,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 _(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 h;return C([r])?i.toPx(r,"width",e,!0)/e[`offset${(h=r.endsWith)!=null&&h.call(r,"vh")?"Height":"Width"}`]:i.toFloat(r)}),n.length===1&&n.unshift(t==="scale"?1:0),n=x(n,a),(r,h)=>{r.transform=`${r.transform||""} ${t}(${I(n,h)}${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,h,o]=Y(n,a),d=r.map((u,c)=>(u+=o*(h[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=C(n)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,n=x(n),(a,r)=>{const h=I(n,r);a.filter=`${a.filter||""} ${t}(${h+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=C(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,h)=>{r.strokeDashoffset=I(n,h)}):i.noop}function G(t,e,n,s){n.length===1&&n.unshift(0);const a=t==="bgy"?"height":"width";s[t]=x(n,o=>i.toPx(o,a,e));const r=["bgx","bgy"].filter(o=>o in s);if(r.length===2&&t==="bgx")return i.noop;if(b(e,"backgroundSize","")==="cover")return jt(t,e,n,s);const h={};for(const o of r)h[o]=X(e,o);return J(r,h,s)}function jt(t,e,n,s){const a=Bt(e);if(!a.width)return i.noop;const r={width:e.offsetWidth,height:e.offsetHeight},h=["bgx","bgy"].filter(c=>c in s),o={};for(const c of h){const l=s[c].map(([ge])=>ge),g=Math.min(...l),S=Math.max(...l),v=l.indexOf(g)<l.indexOf(S),ot=S-g;o[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 h){const l=c==="bgy"?"height":"width",g=d[l]-r[l];o[c]=`max(${X(e,c)},-${g}px) + ${o[c]}`}const u=J(h,o,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 h=I(n[r],a);s[`background-position-${r.slice(-1)}`]=`calc(${e[r]} + ${h}px)`}}}const K={},A={};function Bt(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]=O(n),i.trigger(t,i.createEvent("load",!1))}),K[e]=!0,O(n)):A[e]=O(n)}function O(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[h,o]=i.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(h=e(h),o=o?i.toFloat(o)/100:null,r===0?o===null?o=0:o&&n.push([h,0]):r===s-1&&(o===null?o=1:o!==1&&(n.push([h,o]),o=1)),n.push([h,o]),o===null)a++;else if(a){const d=n[r-a-1][1],u=(o-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 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:h,triggerShown:o,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),h(r),c&&o(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:h,triggerHidden:o};function a(d){i.hasClass(d,s)&&(h(d),o(d)),i.hasClass(d,e)||(i.trigger(d,"beforeitemshow",[t]),i.trigger(d,"itemshow",[t]))}function r(d){i.hasClass(d,n)&&i.trigger(d,"itemshown",[t])}function h(d){i.hasClass(d,e)||a(d),i.hasClass(d,n)&&r(d),i.hasClass(d,s)||(i.trigger(d,"beforeitemhide",[t]),i.trigger(d,"itemhide",[t]))}function o(d){i.hasClass(d,s)&&i.trigger(d,"itemhidden",[t])}}var 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:h,show:o=i.noop}=s,d=o(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=h(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}}var Yt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var n,s,a;let r=0;return((a=((n=this.i18n)==null?void 0:n[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:a.replace(/%s/g,()=>e[r++]||""))||""}}},Zt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){i.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){i.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&i.matches(this.$el,":focus-within")&&!i.matches(this.$el,":focus")||this.pauseOnHover&&i.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const N={passive:!1,capture:!0},et={passive:!0,capture:!0},te="touchstart mousedown",F="touchmove mousemove",nt="touchend touchcancel mouseup click input scroll";var ee={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const s=i.getEventPos(n).x*(i.isRtl?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(n)}}},events:[{name:te,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!i.isTouch(t)&&ne(t.target)||t.target.closest(i.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:F,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,F,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),h=it.call(this,s,r);for(;r!==s&&a>h;)this.drag-=h*this.dir,s=r,a-=h,r=this.getIndex(s+this.dir),h=it.call(this,s,r);this.percent=a/h;const o=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(o,"beforeitemhide",[this]),i.trigger(o,"itemhide",[this])),i.trigger(d,"beforeitemshow",[this]),i.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),o,!c&&d)},end(){if(i.off(document,F,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 ne(t){return i.css(t,"userSelect")!=="none"&&i.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}i.memoize((t,e)=>{const n=Object.keys(e),s=n.concat(t).map(a=>[i.hyphenate(a),`data-${i.hyphenate(a)}`]).flat();return{attributes:n,filter:s}});let ie=1;function st(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",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 h=i.toNumber(n),o=this.slides[h];o&&(o.id||(o.id=st(this,o)),r=o.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)&&(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(){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 ae="cubic-bezier(0.25, 0.46, 0.45, 0.94)",oe="cubic-bezier(0.165, 0.84, 0.44, 1)";var he={mixins:[Zt,ee,re,Yt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){i.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>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 h=this.getIndex(this.index),o=i.hasClass(this.slides,this.clsActive)&&this.slides[h],d=this.getIndex(t,this.index),u=this.slides[d];if(o===u){r();return}if(this.dir=de(t,h),this.prevIndex=h,this.index=d,o&&!i.trigger(o,"beforeitemhide",[this])||!i.trigger(u,"beforeitemshow",[this,o])){this.index=this.prevIndex,r();return}o&&i.trigger(o,"itemhide",[this]),i.trigger(u,"itemshow",[this]),await this._show(o,u,e),o&&i.trigger(o,"itemhidden",[this]),i.trigger(u,"itemshown",[this]),s.shift(),this._transitioner=null,s.length&&requestAnimationFrame(()=>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: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)}}},fe={observe:lt({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: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,le,Xt,Qt,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",at),at});
|
|
1
|
+
/*! UIkit 3.23.8-dev.97ee4c1bb | 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._queued||(t._queued=new Set,i.fastdom.read(()=>{t._connected&&dt(t,t._queued),t._queued=null})),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 k(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=k(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=k(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 kt(t,e){t=k(t);const n=t?mt(t.children):[];return e?St(n,e):n}function B(t,e){return kt($t(t)).indexOf(t)}function _t(t,e){return m(Et(t,k(e),"querySelectorAll"))}const At=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ct=/(\([^)]*\)|[^,])+/g,zt=U(t=>{let e=!1;if(!t||!P(t))return{};const n=[];for(let s of t.match(Ct))s=s.trim().replace(At,"$1 *"),e||(e=["!","+","~","-",">"].includes(s[0])),n.push(s);return{selector:n.join(","),selectors:n,isContextSelector:e}}),Nt=/(\([^)]*\)|\S)*/,q=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]=q(o),d=(s=e.parentElement)==null?void 0:s.closest(h),!o&&r)||d&&o[0]==="-"&&([h,o]=q(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?",":""}${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(${B(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 Ot(t,e){return Ft(t)?m(Mt(t)):_t(t,e)}function Ft(t){return P(t)&>(t.trim(),"<")}function Rt(t){return yt(t)?Math.ceil(Math.max(0,...Ot("[stroke]",t).map(e=>{var n;return((n=e.getTotalLength)==null?void 0:n.call(e))||0}))):0}const V={x:_,y:_,rotate:_,scale:_,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 _(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 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=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 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=C(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=Bt(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),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={},A={};function Bt(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]=O(n),i.trigger(t,i.createEvent("load",!1))}),K[e]=!0,O(n)):A[e]=O(n)}function O(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 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}}var Yt={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var n,s,a;let r=0;return((a=((n=this.i18n)==null?void 0:n[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:a.replace(/%s/g,()=>e[r++]||""))||""}}},Zt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){i.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){i.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter:({autoplay:t})=>t,handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&i.matches(this.$el,":focus-within")&&!i.matches(this.$el,":focus")||this.pauseOnHover&&i.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const N={passive:!1,capture:!0},et={passive:!0,capture:!0},te="touchstart mousedown",F="touchmove mousemove",nt="touchend touchcancel mouseup click input scroll";var ee={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const s=i.getEventPos(n).x*(i.isRtl?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(n)}}},events:[{name:te,passive:!0,delegate:({selList:t})=>`${t} > *`,handler(t){!this.draggable||this.parallax||!i.isTouch(t)&&ne(t.target)||t.target.closest(i.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:F,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,F,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,F,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 ne(t){return i.css(t,"userSelect")!=="none"&&i.toArray(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}i.memoize((t,e)=>{const n=Object.keys(e),s=n.concat(t).map(a=>[i.hyphenate(a),`data-${i.hyphenate(a)}`]).flat();return{attributes:n,filter:s}});let ie=1;function st(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",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)&&(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(){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 ae="cubic-bezier(0.25, 0.46, 0.45, 0.94)",oe="cubic-bezier(0.165, 0.84, 0.44, 1)";var he={mixins:[Zt,ee,re,Yt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){i.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>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,s.length&&requestAnimationFrame(()=>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: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)}}},fe={observe:lt({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: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,le,Xt,Qt,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",at),at});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.23.
|
|
1
|
+
/*! UIkit 3.23.8-dev.97ee4c1bb | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! UIkit 3.23.7 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(e,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitsortable",["uikit-util"],b):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSortable=b(e.UIkit.util))})(this,function(e){"use strict";function b(o,s="update"){o._connected&&o._updates.length&&(o._queued||(o._queued=new Set,e.fastdom.read(()=>{o._connected&&H(o,o._queued),o._queued=null})),o._queued.add(s.type||s))}function H(o,s){for(const{read:n,write:t,events:c=[]}of o._updates){if(!s.has("update")&&!c.some(r=>s.has(r)))continue;let a;n&&(a=n.call(o,o._data,s),a&&e.isPlainObject(a)&&e.assign(o._data,a)),t&&a!==!1&&e.fastdom.write(()=>{o._connected&&t.call(o,o._data,s)})}}function A(o){return C(e.observeResize,o,"resize")}function T(o){return C(e.observeMutation,o)}function C(o,s,n){return{observe:o,handler(){b(this,n)},...s}}T({options:{childList:!0}}),T({options:{attributes:!0,attributeFilter:["style"]}}),A({handler(o){for(const{borderBoxSize:[{inlineSize:s,blockSize:n}]}of o)if(s||n){this.$emit("resize");return}},target:({$el:o})=>[o,...e.children(o)]});function L(o){const s=[[]],n=o.some((t,c)=>c&&o[c-1].offsetParent!==t.offsetParent);for(const t of o){if(!e.isVisible(t))continue;const c=v(t,n);for(let a=s.length-1;a>=0;a--){const r=s[a];if(!r[0]){r.push(t);break}const h=v(r[0],n);if(c.top>=h.bottom-1&&c.top!==h.top){s.push([t]);break}if(c.bottom-1>h.top||c.top===h.top){let d=r.length-1;for(;d>=0;d--){const p=v(r[d],n);if(c.left>=p.left)break}r.splice(d+1,0,t);break}if(a===0){s.unshift([t]);break}}}return s}function v(o,s=!1){let{offsetTop:n,offsetLeft:t,offsetHeight:c,offsetWidth:a}=o;return s&&([n,t]=e.offsetPosition(o)),{top:n,left:t,bottom:n+c,right:t+a}}const w="uk-transition-leave",y="uk-transition-enter";function x(o,s,n,t=0){const c=P(s,!0),a={opacity:1},r={opacity:0},h=()=>c===P(s),d=m=>()=>h()?m():Promise.reject(),p=d(async()=>{e.addClass(s,w),await(t?Promise.all(E(s).map(async(m,g)=>(await S(g*t),e.Transition.start(m,r,n/2,"ease")))):e.Transition.start(s,r,n/2,"ease")),e.removeClass(s,w)}),l=d(async()=>{const m=e.height(s);e.addClass(s,y),o(),e.css(t?e.children(s):s,r),e.height(s,m),await S(),e.height(s,"");const g=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,m);let f=[],i=n/2;if(t){const u=E(s);e.css(e.children(s),r),f=u.map(async(q,X)=>{await S(X*t),await e.Transition.start(q,a,n/2,"ease"),h()&&e.resetProps(q,a)}),i+=u.length*t}if(!t||m!==g){const u={height:g,...t?{}:a};f.push(e.Transition.start(s,u,i,"ease"))}await Promise.all(f),e.removeClass(s,y),h()&&(e.resetProps(s,{height:"",alignContent:"",...a}),delete s.dataset.transition)});return e.hasClass(s,w)?I(s).then(l):e.hasClass(s,y)?I(s).then(p).then(l):p().then(l)}function P(o,s){return s&&(o.dataset.transition=1+P(o)),e.toNumber(o.dataset.transition)||0}function I(o){return Promise.all(e.children(o).filter(e.Transition.inProgress).map(s=>new Promise(n=>e.once(s,"transitionend transitioncanceled",n))))}function E(o){return L(e.children(o)).flat().filter(e.isVisible)}function S(o){return new Promise(s=>setTimeout(s,o))}async function M(o,s,n){await $();let t=e.children(s);const c=t.map(f=>D(f,!0)),a={...e.css(s,["height","padding"]),display:"block"},r=t.concat(s);await Promise.all(r.map(e.Transition.cancel)),e.css(r,"transitionProperty","none"),await o(),t=t.concat(e.children(s).filter(f=>!e.includes(t,f))),await Promise.resolve(),e.css(r,"transitionProperty","");const h=e.attr(s,"style"),d=e.css(s,["height","padding"]),[p,l]=V(s,t,c),m=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,i)=>l[i]&&e.css(f,l[i])),e.css(s,a),e.trigger(s,"scroll"),await $();const g=t.map((f,i)=>e.parent(f)===s&&e.Transition.start(f,p[i],n,"ease")).concat(e.Transition.start(s,d,n,"ease"));try{await Promise.all(g),t.forEach((f,i)=>{e.attr(f,m[i]),e.parent(f)===s&&e.css(f,"display",p[i].opacity===0?"none":"")}),e.attr(s,"style",h)}catch{e.attr(t,"style",""),e.resetProps(s,a)}}function D(o,s){const n=e.css(o,"zIndex");return e.isVisible(o)?{display:"",opacity:s?e.css(o,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:n==="auto"?e.index(o):n,..._(o)}:!1}function V(o,s,n){const t=s.map((a,r)=>e.parent(a)&&r in n?n[r]?e.isVisible(a)?_(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1),c=t.map((a,r)=>{const h=e.parent(s[r])===o&&(n[r]||D(s[r]));if(!h)return!1;if(!a)delete h.opacity;else if(!("opacity"in a)){const{opacity:d}=h;d%1?a.opacity=1:delete h.opacity}return h});return[t,c]}function _(o){const{height:s,width:n}=e.dimensions(o);return{height:s,width:n,transform:"",...e.position(o),...e.css(o,["marginTop","marginLeft"])}}function $(){return new Promise(o=>requestAnimationFrame(o))}var B={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(o,s=this.$el){const n=this.animation;return(n==="fade"?x:n==="delayed-fade"?(...c)=>x(...c,40):n?M:()=>(o(),Promise.resolve()))(o,s,this.duration).catch(e.noop)}}},R={connected(){e.addClass(this.$el,this.$options.id)}},z={mixins:[R,B],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},events:{name:e.pointerDown,passive:!1,handler(o){this.init(o)}},computed:{target:(o,s)=>(s.tBodies||[s])[0],items(){return e.children(this.target)},isEmpty(){return!this.items.length},handles({handle:o},s){return o?e.$$(o,s):this.items}},watch:{isEmpty(o){e.toggleClass(this.target,this.clsEmpty,o)},handles(o,s){const n={touchAction:"none",userSelect:"none"};e.resetProps(s,n),e.css(o,n)}},update:{write(o){if(!this.drag||!e.parent(this.placeholder))return;const{pos:{x:s,y:n},origin:{offsetTop:t,offsetLeft:c},placeholder:a}=this;e.css(this.drag,{top:n-t,left:s-c});const r=this.getSortable(document.elementFromPoint(s,n));if(!r)return;const{items:h}=r;if(h.some(e.Transition.inProgress))return;const d=G(h,{x:s,y:n});if(h.length&&(!d||d===a))return;const p=this.getSortable(a),l=J(r.target,d,a,s,n,r===p&&o.moved!==d);l!==!1&&(l&&a===l||(r!==p?(p.remove(a),o.moved=d):delete o.moved,r.insert(a,l),this.touched.add(r)))},events:["move"]},methods:{init(o){const{target:s,button:n,defaultPrevented:t}=o,[c]=this.items.filter(a=>a.contains(s));!c||t||n>0||e.isInput(s)||s.closest(`.${this.clsNoDrag}`)||this.handle&&!s.closest(this.handle)||(o.preventDefault(),this.pos=e.getEventPos(o),this.touched=new Set([this]),this.placeholder=c,this.origin={target:s,index:e.index(c),...this.pos},e.on(document,e.pointerMove,this.move),e.on(document,e.pointerUp,this.end),this.threshold||this.start(o))},start(o){this.drag=W(this.$container,this.placeholder);const{left:s,top:n}=e.dimensions(this.placeholder);e.assign(this.origin,{offsetLeft:this.pos.x-s,offsetTop:this.pos.y-n}),e.addClass(this.drag,this.clsDrag,this.clsCustom),e.addClass(this.placeholder,this.clsPlaceholder),e.addClass(this.items,this.clsItem),e.addClass(document.documentElement,this.clsDragState),e.trigger(this.$el,"start",[this,this.placeholder]),j(this.pos),this.move(o)},move:Q(function(o){e.assign(this.pos,e.getEventPos(o)),!this.drag&&(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(o),this.$emit("move")}),end(){if(e.off(document,e.pointerMove,this.move),e.off(document,e.pointerUp,this.end),!this.drag)return;O();const o=this.getSortable(this.placeholder);this===o?this.origin.index!==e.index(this.placeholder)&&e.trigger(this.$el,"moved",[this,this.placeholder]):(e.trigger(o.$el,"added",[o,this.placeholder]),e.trigger(this.$el,"removed",[this,this.placeholder])),e.trigger(this.$el,"stop",[this,this.placeholder]),e.remove(this.drag),this.drag=null;for(const{clsPlaceholder:s,clsItem:n}of this.touched)for(const t of this.touched)e.removeClass(t.items,s,n);this.touched=null,e.removeClass(document.documentElement,this.clsDragState)},insert(o,s){e.addClass(this.items,this.clsItem),s&&s.previousElementSibling!==o?this.animate(()=>e.before(s,o)):!s&&this.target.lastElementChild!==o&&this.animate(()=>e.append(this.target,o))},remove(o){this.target.contains(o)&&this.animate(()=>e.remove(o))},getSortable(o){do{const s=this.$getComponent(o,"sortable");if(s&&(s===this||this.group!==!1&&s.group===this.group))return s}while(o=e.parent(o))}}};let F;function j(o){let s=Date.now();F=setInterval(()=>{let{x:n,y:t}=o;t+=document.scrollingElement.scrollTop;const c=(Date.now()-s)*.3;s=Date.now(),e.scrollParents(document.elementFromPoint(n,o.y)).reverse().some(a=>{let{scrollTop:r,scrollHeight:h}=a;const{top:d,bottom:p,height:l}=e.offsetViewport(a);if(d<t&&d+35>t)r-=c;else if(p>t&&p-35<t)r+=c;else return;if(r>0&&r<h-l)return a.scrollTop=r,!0})},15)}function O(){clearInterval(F)}function W(o,s){let n;if(e.isTag(s,"li","tr")){n=e.$("<div>"),e.append(n,s.cloneNode(!0).children);for(const t of s.getAttributeNames())e.attr(n,t,s.getAttribute(t))}else n=s.cloneNode(!0);return e.append(o,n),e.css(n,"margin","0","important"),e.css(n,{boxSizing:"border-box",width:s.offsetWidth,height:s.offsetHeight,padding:e.css(s,"padding")}),e.height(n.firstElementChild,e.height(s.firstElementChild)),n}function G(o,s){return o[e.findIndex(o,n=>e.pointInRect(s,e.dimensions(n)))]}function J(o,s,n,t,c,a){if(!e.children(o).length)return;const r=e.dimensions(s);if(!a)return K(o,n)||c<r.top+r.height/2?s:s.nextElementSibling;const h=e.dimensions(n),d=N([r.top,r.bottom],[h.top,h.bottom]),[p,l,m,g]=d?[t,"width","left","right"]:[c,"height","top","bottom"],f=h[l]<r[l]?r[l]-h[l]:0;return h[m]<r[m]?f&&p<r[m]+f?!1:s.nextElementSibling:f&&p>r[g]-f?!1:s}function K(o,s){const n=e.children(o).length===1;n&&e.append(o,s);const t=e.children(o),c=t.some((a,r)=>{const h=e.dimensions(a);return t.slice(r+1).some(d=>{const p=e.dimensions(d);return!N([h.left,h.right],[p.left,p.right])})});return n&&e.remove(s),c}function N(o,s){return o[1]>s[0]&&s[1]>o[0]}function Q(o){let s;return function(...n){s||(s=!0,o.call(this,...n),requestAnimationFrame(()=>s=!1))}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",z),z});
|
|
1
|
+
/*! UIkit 3.23.8-dev.97ee4c1bb | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */(function(e,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitsortable",["uikit-util"],b):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSortable=b(e.UIkit.util))})(this,function(e){"use strict";function b(o,s="update"){o._connected&&o._updates.length&&(o._queued||(o._queued=new Set,e.fastdom.read(()=>{o._connected&&H(o,o._queued),o._queued=null})),o._queued.add(s.type||s))}function H(o,s){for(const{read:n,write:t,events:c=[]}of o._updates){if(!s.has("update")&&!c.some(r=>s.has(r)))continue;let a;n&&(a=n.call(o,o._data,s),a&&e.isPlainObject(a)&&e.assign(o._data,a)),t&&a!==!1&&e.fastdom.write(()=>{o._connected&&t.call(o,o._data,s)})}}function A(o){return C(e.observeResize,o,"resize")}function T(o){return C(e.observeMutation,o)}function C(o,s,n){return{observe:o,handler(){b(this,n)},...s}}T({options:{childList:!0}}),T({options:{attributes:!0,attributeFilter:["style"]}}),A({handler(o){for(const{borderBoxSize:[{inlineSize:s,blockSize:n}]}of o)if(s||n){this.$emit("resize");return}},target:({$el:o})=>[o,...e.children(o)]});function L(o){const s=[[]],n=o.some((t,c)=>c&&o[c-1].offsetParent!==t.offsetParent);for(const t of o){if(!e.isVisible(t))continue;const c=v(t,n);for(let a=s.length-1;a>=0;a--){const r=s[a];if(!r[0]){r.push(t);break}const h=v(r[0],n);if(c.top>=h.bottom-1&&c.top!==h.top){s.push([t]);break}if(c.bottom-1>h.top||c.top===h.top){let d=r.length-1;for(;d>=0;d--){const p=v(r[d],n);if(c.left>=p.left)break}r.splice(d+1,0,t);break}if(a===0){s.unshift([t]);break}}}return s}function v(o,s=!1){let{offsetTop:n,offsetLeft:t,offsetHeight:c,offsetWidth:a}=o;return s&&([n,t]=e.offsetPosition(o)),{top:n,left:t,bottom:n+c,right:t+a}}const w="uk-transition-leave",y="uk-transition-enter";function x(o,s,n,t=0){const c=P(s,!0),a={opacity:1},r={opacity:0},h=()=>c===P(s),d=m=>()=>h()?m():Promise.reject(),p=d(async()=>{e.addClass(s,w),await(t?Promise.all(E(s).map(async(m,g)=>(await S(g*t),e.Transition.start(m,r,n/2,"ease")))):e.Transition.start(s,r,n/2,"ease")),e.removeClass(s,w)}),l=d(async()=>{const m=e.height(s);e.addClass(s,y),o(),e.css(t?e.children(s):s,r),e.height(s,m),await S(),e.height(s,"");const g=e.height(s);e.css(s,"alignContent","flex-start"),e.height(s,m);let f=[],i=n/2;if(t){const u=E(s);e.css(e.children(s),r),f=u.map(async(q,X)=>{await S(X*t),await e.Transition.start(q,a,n/2,"ease"),h()&&e.resetProps(q,a)}),i+=u.length*t}if(!t||m!==g){const u={height:g,...t?{}:a};f.push(e.Transition.start(s,u,i,"ease"))}await Promise.all(f),e.removeClass(s,y),h()&&(e.resetProps(s,{height:"",alignContent:"",...a}),delete s.dataset.transition)});return e.hasClass(s,w)?I(s).then(l):e.hasClass(s,y)?I(s).then(p).then(l):p().then(l)}function P(o,s){return s&&(o.dataset.transition=1+P(o)),e.toNumber(o.dataset.transition)||0}function I(o){return Promise.all(e.children(o).filter(e.Transition.inProgress).map(s=>new Promise(n=>e.once(s,"transitionend transitioncanceled",n))))}function E(o){return L(e.children(o)).flat().filter(e.isVisible)}function S(o){return new Promise(s=>setTimeout(s,o))}async function M(o,s,n){await $();let t=e.children(s);const c=t.map(f=>D(f,!0)),a={...e.css(s,["height","padding"]),display:"block"},r=t.concat(s);await Promise.all(r.map(e.Transition.cancel)),e.css(r,"transitionProperty","none"),await o(),t=t.concat(e.children(s).filter(f=>!e.includes(t,f))),await Promise.resolve(),e.css(r,"transitionProperty","");const h=e.attr(s,"style"),d=e.css(s,["height","padding"]),[p,l]=V(s,t,c),m=t.map(f=>({style:e.attr(f,"style")}));t.forEach((f,i)=>l[i]&&e.css(f,l[i])),e.css(s,a),e.trigger(s,"scroll"),await $();const g=t.map((f,i)=>e.parent(f)===s&&e.Transition.start(f,p[i],n,"ease")).concat(e.Transition.start(s,d,n,"ease"));try{await Promise.all(g),t.forEach((f,i)=>{e.attr(f,m[i]),e.parent(f)===s&&e.css(f,"display",p[i].opacity===0?"none":"")}),e.attr(s,"style",h)}catch{e.attr(t,"style",""),e.resetProps(s,a)}}function D(o,s){const n=e.css(o,"zIndex");return e.isVisible(o)?{display:"",opacity:s?e.css(o,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:n==="auto"?e.index(o):n,..._(o)}:!1}function V(o,s,n){const t=s.map((a,r)=>e.parent(a)&&r in n?n[r]?e.isVisible(a)?_(a):{opacity:0}:{opacity:e.isVisible(a)?1:0}:!1),c=t.map((a,r)=>{const h=e.parent(s[r])===o&&(n[r]||D(s[r]));if(!h)return!1;if(!a)delete h.opacity;else if(!("opacity"in a)){const{opacity:d}=h;d%1?a.opacity=1:delete h.opacity}return h});return[t,c]}function _(o){const{height:s,width:n}=e.dimensions(o);return{height:s,width:n,transform:"",...e.position(o),...e.css(o,["marginTop","marginLeft"])}}function $(){return new Promise(o=>requestAnimationFrame(o))}var B={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(o,s=this.$el){const n=this.animation;return(n==="fade"?x:n==="delayed-fade"?(...c)=>x(...c,40):n?M:()=>(o(),Promise.resolve()))(o,s,this.duration).catch(e.noop)}}},R={connected(){e.addClass(this.$el,this.$options.id)}},z={mixins:[R,B],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},events:{name:e.pointerDown,passive:!1,handler(o){this.init(o)}},computed:{target:(o,s)=>(s.tBodies||[s])[0],items(){return e.children(this.target)},isEmpty(){return!this.items.length},handles({handle:o},s){return o?e.$$(o,s):this.items}},watch:{isEmpty(o){e.toggleClass(this.target,this.clsEmpty,o)},handles(o,s){const n={touchAction:"none",userSelect:"none"};e.resetProps(s,n),e.css(o,n)}},update:{write(o){if(!this.drag||!e.parent(this.placeholder))return;const{pos:{x:s,y:n},origin:{offsetTop:t,offsetLeft:c},placeholder:a}=this;e.css(this.drag,{top:n-t,left:s-c});const r=this.getSortable(document.elementFromPoint(s,n));if(!r)return;const{items:h}=r;if(h.some(e.Transition.inProgress))return;const d=G(h,{x:s,y:n});if(h.length&&(!d||d===a))return;const p=this.getSortable(a),l=J(r.target,d,a,s,n,r===p&&o.moved!==d);l!==!1&&(l&&a===l||(r!==p?(p.remove(a),o.moved=d):delete o.moved,r.insert(a,l),this.touched.add(r)))},events:["move"]},methods:{init(o){const{target:s,button:n,defaultPrevented:t}=o,[c]=this.items.filter(a=>a.contains(s));!c||t||n>0||e.isInput(s)||s.closest(`.${this.clsNoDrag}`)||this.handle&&!s.closest(this.handle)||(o.preventDefault(),this.pos=e.getEventPos(o),this.touched=new Set([this]),this.placeholder=c,this.origin={target:s,index:e.index(c),...this.pos},e.on(document,e.pointerMove,this.move),e.on(document,e.pointerUp,this.end),this.threshold||this.start(o))},start(o){this.drag=W(this.$container,this.placeholder);const{left:s,top:n}=e.dimensions(this.placeholder);e.assign(this.origin,{offsetLeft:this.pos.x-s,offsetTop:this.pos.y-n}),e.addClass(this.drag,this.clsDrag,this.clsCustom),e.addClass(this.placeholder,this.clsPlaceholder),e.addClass(this.items,this.clsItem),e.addClass(document.documentElement,this.clsDragState),e.trigger(this.$el,"start",[this,this.placeholder]),j(this.pos),this.move(o)},move:Q(function(o){e.assign(this.pos,e.getEventPos(o)),!this.drag&&(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(o),this.$emit("move")}),end(){if(e.off(document,e.pointerMove,this.move),e.off(document,e.pointerUp,this.end),!this.drag)return;O();const o=this.getSortable(this.placeholder);this===o?this.origin.index!==e.index(this.placeholder)&&e.trigger(this.$el,"moved",[this,this.placeholder]):(e.trigger(o.$el,"added",[o,this.placeholder]),e.trigger(this.$el,"removed",[this,this.placeholder])),e.trigger(this.$el,"stop",[this,this.placeholder]),e.remove(this.drag),this.drag=null;for(const{clsPlaceholder:s,clsItem:n}of this.touched)for(const t of this.touched)e.removeClass(t.items,s,n);this.touched=null,e.removeClass(document.documentElement,this.clsDragState)},insert(o,s){e.addClass(this.items,this.clsItem),s&&s.previousElementSibling!==o?this.animate(()=>e.before(s,o)):!s&&this.target.lastElementChild!==o&&this.animate(()=>e.append(this.target,o))},remove(o){this.target.contains(o)&&this.animate(()=>e.remove(o))},getSortable(o){do{const s=this.$getComponent(o,"sortable");if(s&&(s===this||this.group!==!1&&s.group===this.group))return s}while(o=e.parent(o))}}};let F;function j(o){let s=Date.now();F=setInterval(()=>{let{x:n,y:t}=o;t+=document.scrollingElement.scrollTop;const c=(Date.now()-s)*.3;s=Date.now(),e.scrollParents(document.elementFromPoint(n,o.y)).reverse().some(a=>{let{scrollTop:r,scrollHeight:h}=a;const{top:d,bottom:p,height:l}=e.offsetViewport(a);if(d<t&&d+35>t)r-=c;else if(p>t&&p-35<t)r+=c;else return;if(r>0&&r<h-l)return a.scrollTop=r,!0})},15)}function O(){clearInterval(F)}function W(o,s){let n;if(e.isTag(s,"li","tr")){n=e.$("<div>"),e.append(n,s.cloneNode(!0).children);for(const t of s.getAttributeNames())e.attr(n,t,s.getAttribute(t))}else n=s.cloneNode(!0);return e.append(o,n),e.css(n,"margin","0","important"),e.css(n,{boxSizing:"border-box",width:s.offsetWidth,height:s.offsetHeight,padding:e.css(s,"padding")}),e.height(n.firstElementChild,e.height(s.firstElementChild)),n}function G(o,s){return o[e.findIndex(o,n=>e.pointInRect(s,e.dimensions(n)))]}function J(o,s,n,t,c,a){if(!e.children(o).length)return;const r=e.dimensions(s);if(!a)return K(o,n)||c<r.top+r.height/2?s:s.nextElementSibling;const h=e.dimensions(n),d=N([r.top,r.bottom],[h.top,h.bottom]),[p,l,m,g]=d?[t,"width","left","right"]:[c,"height","top","bottom"],f=h[l]<r[l]?r[l]-h[l]:0;return h[m]<r[m]?f&&p<r[m]+f?!1:s.nextElementSibling:f&&p>r[g]-f?!1:s}function K(o,s){const n=e.children(o).length===1;n&&e.append(o,s);const t=e.children(o),c=t.some((a,r)=>{const h=e.dimensions(a);return t.slice(r+1).some(d=>{const p=e.dimensions(d);return!N([h.left,h.right],[p.left,p.right])})});return n&&e.remove(s),c}function N(o,s){return o[1]>s[0]&&s[1]>o[0]}function Q(o){let s;return function(...n){s||(s=!0,o.call(this,...n),requestAnimationFrame(()=>s=!1))}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",z),z});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.23.
|
|
1
|
+
/*! UIkit 3.23.8-dev.97ee4c1bb | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
|
|
2
2
|
|
|
3
3
|
(function (global, factory) {
|
|
4
4
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
|