uikit 3.17.12-dev.f1425d280 → 3.18.1-dev.0856bd8a6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/css/uikit-core-rtl.css +577 -504
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +577 -504
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +600 -527
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +600 -527
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +2 -4
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +96 -60
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +96 -60
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +11 -6
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +8 -3
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +735 -37
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +8 -3
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +792 -129
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +7 -7
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +2 -8
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +299 -273
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +9 -4
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +505 -365
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +3 -3
  43. package/src/images/components/navbar-toggle-icon.svg +1 -1
  44. package/src/images/icons/arrow-up-right.svg +4 -0
  45. package/src/images/icons/git-branch.svg +4 -4
  46. package/src/images/icons/git-fork.svg +4 -4
  47. package/src/images/icons/link-external.svg +5 -0
  48. package/src/images/icons/signal.svg +3 -0
  49. package/src/images/icons/telegram.svg +3 -0
  50. package/src/images/icons/threads.svg +3 -0
  51. package/src/images/icons/x.svg +3 -0
  52. package/src/js/components/countdown.js +1 -3
  53. package/src/js/components/internal/slider-preload.js +6 -0
  54. package/src/js/components/lightbox-panel.js +2 -6
  55. package/src/js/components/parallax.js +1 -20
  56. package/src/js/components/slider.js +38 -18
  57. package/src/js/components/slideshow.js +14 -46
  58. package/src/js/components/sortable.js +7 -6
  59. package/src/js/components/tooltip.js +1 -7
  60. package/src/js/core/accordion.js +1 -1
  61. package/src/js/core/drop.js +3 -5
  62. package/src/js/core/dropnav.js +24 -20
  63. package/src/js/core/height-match.js +7 -3
  64. package/src/js/core/height-placeholder.js +32 -0
  65. package/src/js/core/icon.js +12 -5
  66. package/src/js/core/index.js +2 -0
  67. package/src/js/core/inverse.js +103 -0
  68. package/src/js/core/modal.js +13 -0
  69. package/src/js/core/navbar.js +32 -172
  70. package/src/js/core/responsive.js +2 -29
  71. package/src/js/core/sticky.js +45 -29
  72. package/src/js/core/video.js +5 -1
  73. package/src/js/mixin/modal.js +1 -1
  74. package/src/js/mixin/parallax.js +19 -0
  75. package/src/js/mixin/slider-autoplay.js +1 -3
  76. package/src/js/mixin/slider-drag.js +22 -19
  77. package/src/js/mixin/slider-nav.js +10 -1
  78. package/src/js/mixin/slider-parallax.js +138 -0
  79. package/src/js/mixin/slider-reactive.js +1 -1
  80. package/src/js/mixin/slider.js +25 -3
  81. package/src/js/util/animation.js +14 -14
  82. package/src/js/util/dom.js +2 -2
  83. package/src/js/util/mouse.js +8 -11
  84. package/src/js/util/scroll.js +58 -0
  85. package/src/js/util/selector.js +4 -2
  86. package/src/js/util/style.js +3 -3
  87. package/src/js/util/viewport.js +8 -4
  88. package/src/less/components/align.less +2 -2
  89. package/src/less/components/animation.less +2 -2
  90. package/src/less/components/article.less +2 -2
  91. package/src/less/components/base.less +3 -3
  92. package/src/less/components/card.less +13 -6
  93. package/src/less/components/column.less +3 -3
  94. package/src/less/components/container.less +3 -3
  95. package/src/less/components/divider.less +2 -2
  96. package/src/less/components/dropbar.less +1 -1
  97. package/src/less/components/dropdown.less +1 -1
  98. package/src/less/components/dropnav.less +1 -1
  99. package/src/less/components/form.less +1 -1
  100. package/src/less/components/grid.less +3 -3
  101. package/src/less/components/height.less +1 -1
  102. package/src/less/components/icon.less +3 -3
  103. package/src/less/components/inverse.less +12 -0
  104. package/src/less/components/link.less +1 -1
  105. package/src/less/components/modal.less +3 -3
  106. package/src/less/components/nav.less +66 -0
  107. package/src/less/components/navbar.less +7 -11
  108. package/src/less/components/overlay.less +5 -0
  109. package/src/less/components/position.less +7 -7
  110. package/src/less/components/section.less +6 -5
  111. package/src/less/components/sticky.less +1 -1
  112. package/src/less/components/svg.less +3 -3
  113. package/src/less/components/tile.less +10 -0
  114. package/src/less/components/transition.less +9 -9
  115. package/src/less/components/utility.less +4 -4
  116. package/src/less/components/width.less +7 -7
  117. package/src/less/theme/alert.less +1 -1
  118. package/src/less/theme/align.less +1 -1
  119. package/src/less/theme/animation.less +1 -1
  120. package/src/less/theme/article.less +1 -1
  121. package/src/less/theme/background.less +1 -1
  122. package/src/less/theme/badge.less +1 -1
  123. package/src/less/theme/base.less +1 -1
  124. package/src/less/theme/breadcrumb.less +1 -1
  125. package/src/less/theme/button.less +1 -1
  126. package/src/less/theme/card.less +1 -1
  127. package/src/less/theme/close.less +1 -1
  128. package/src/less/theme/column.less +1 -1
  129. package/src/less/theme/comment.less +1 -1
  130. package/src/less/theme/container.less +1 -1
  131. package/src/less/theme/description-list.less +1 -1
  132. package/src/less/theme/divider.less +1 -1
  133. package/src/less/theme/dotnav.less +1 -1
  134. package/src/less/theme/drop.less +1 -1
  135. package/src/less/theme/dropbar.less +1 -1
  136. package/src/less/theme/dropdown.less +1 -1
  137. package/src/less/theme/form-range.less +1 -1
  138. package/src/less/theme/height.less +1 -1
  139. package/src/less/theme/icon.less +1 -1
  140. package/src/less/theme/iconnav.less +1 -1
  141. package/src/less/theme/inverse.less +1 -1
  142. package/src/less/theme/label.less +1 -1
  143. package/src/less/theme/leader.less +1 -1
  144. package/src/less/theme/lightbox.less +1 -1
  145. package/src/less/theme/margin.less +1 -1
  146. package/src/less/theme/modal.less +1 -1
  147. package/src/less/theme/nav.less +1 -1
  148. package/src/less/theme/navbar.less +3 -3
  149. package/src/less/theme/notification.less +1 -1
  150. package/src/less/theme/offcanvas.less +1 -1
  151. package/src/less/theme/overlay.less +1 -1
  152. package/src/less/theme/padding.less +1 -1
  153. package/src/less/theme/pagination.less +1 -1
  154. package/src/less/theme/position.less +1 -1
  155. package/src/less/theme/search.less +1 -1
  156. package/src/less/theme/spinner.less +1 -1
  157. package/src/less/theme/sticky.less +1 -1
  158. package/src/less/theme/tab.less +2 -2
  159. package/src/less/theme/table.less +1 -1
  160. package/src/less/theme/thumbnav.less +1 -1
  161. package/src/less/theme/tile.less +1 -1
  162. package/src/less/theme/tooltip.less +1 -1
  163. package/src/less/theme/totop.less +1 -1
  164. package/src/less/theme/transition.less +1 -1
  165. package/src/less/theme/utility.less +1 -1
  166. package/src/less/theme/variables.less +1 -1
  167. package/src/less/theme/width.less +1 -1
  168. package/src/less/uikit.less +1 -1
  169. package/src/scss/components/align.scss +2 -2
  170. package/src/scss/components/animation.scss +2 -2
  171. package/src/scss/components/base.scss +2 -2
  172. package/src/scss/components/card.scss +12 -6
  173. package/src/scss/components/column.scss +3 -3
  174. package/src/scss/components/container.scss +3 -3
  175. package/src/scss/components/divider.scss +2 -2
  176. package/src/scss/components/dropnav.scss +1 -1
  177. package/src/scss/components/form.scss +1 -1
  178. package/src/scss/components/grid.scss +3 -3
  179. package/src/scss/components/height.scss +1 -1
  180. package/src/scss/components/icon.scss +3 -3
  181. package/src/scss/components/inverse.scss +12 -0
  182. package/src/scss/components/modal.scss +3 -3
  183. package/src/scss/components/nav.scss +63 -0
  184. package/src/scss/components/navbar.scss +5 -8
  185. package/src/scss/components/overlay.scss +4 -0
  186. package/src/scss/components/position.scss +7 -7
  187. package/src/scss/components/section.scss +6 -5
  188. package/src/scss/components/sticky.scss +1 -1
  189. package/src/scss/components/svg.scss +3 -3
  190. package/src/scss/components/tile.scss +8 -0
  191. package/src/scss/components/transition.scss +9 -9
  192. package/src/scss/components/utility.scss +4 -4
  193. package/src/scss/components/width.scss +7 -7
  194. package/src/scss/mixins-theme.scss +10 -7
  195. package/src/scss/mixins.scss +7 -4
  196. package/src/scss/theme/alert.scss +1 -0
  197. package/src/scss/theme/align.scss +1 -1
  198. package/src/scss/theme/animation.scss +1 -1
  199. package/src/scss/theme/article.scss +1 -1
  200. package/src/scss/theme/background.scss +1 -1
  201. package/src/scss/theme/badge.scss +1 -1
  202. package/src/scss/theme/base.scss +1 -1
  203. package/src/scss/theme/breadcrumb.scss +1 -1
  204. package/src/scss/theme/button.scss +1 -1
  205. package/src/scss/theme/card.scss +1 -0
  206. package/src/scss/theme/close.scss +1 -1
  207. package/src/scss/theme/column.scss +1 -1
  208. package/src/scss/theme/comment.scss +1 -1
  209. package/src/scss/theme/container.scss +1 -1
  210. package/src/scss/theme/description-list.scss +1 -1
  211. package/src/scss/theme/divider.scss +1 -1
  212. package/src/scss/theme/dotnav.scss +1 -0
  213. package/src/scss/theme/drop.scss +1 -1
  214. package/src/scss/theme/dropbar.scss +1 -1
  215. package/src/scss/theme/dropdown.scss +1 -1
  216. package/src/scss/theme/form-range.scss +1 -1
  217. package/src/scss/theme/height.scss +1 -1
  218. package/src/scss/theme/icon.scss +1 -1
  219. package/src/scss/theme/iconnav.scss +1 -1
  220. package/src/scss/theme/inverse.scss +1 -1
  221. package/src/scss/theme/label.scss +1 -1
  222. package/src/scss/theme/leader.scss +1 -1
  223. package/src/scss/theme/lightbox.scss +1 -1
  224. package/src/scss/theme/margin.scss +1 -1
  225. package/src/scss/theme/modal.scss +1 -0
  226. package/src/scss/theme/nav.scss +1 -1
  227. package/src/scss/theme/navbar.scss +1 -1
  228. package/src/scss/theme/notification.scss +1 -1
  229. package/src/scss/theme/offcanvas.scss +1 -1
  230. package/src/scss/theme/overlay.scss +1 -1
  231. package/src/scss/theme/padding.scss +1 -1
  232. package/src/scss/theme/pagination.scss +1 -1
  233. package/src/scss/theme/position.scss +1 -1
  234. package/src/scss/theme/search.scss +1 -1
  235. package/src/scss/theme/spinner.scss +1 -1
  236. package/src/scss/theme/sticky.scss +1 -1
  237. package/src/scss/theme/tab.scss +1 -1
  238. package/src/scss/theme/table.scss +1 -0
  239. package/src/scss/theme/thumbnav.scss +1 -1
  240. package/src/scss/theme/tile.scss +1 -1
  241. package/src/scss/theme/tooltip.scss +1 -1
  242. package/src/scss/theme/totop.scss +1 -1
  243. package/src/scss/theme/transition.scss +1 -1
  244. package/src/scss/theme/utility.scss +1 -1
  245. package/src/scss/theme/variables.scss +1 -1
  246. package/src/scss/theme/width.scss +1 -1
  247. package/src/scss/uikit.scss +1 -1
  248. package/src/scss/variables-theme.scss +20 -5
  249. package/src/scss/variables.scss +20 -5
  250. package/tests/height.html +58 -1
  251. package/tests/icon.html +38 -10
  252. package/tests/nav.html +42 -0
  253. package/tests/navbar.html +1 -1
  254. package/tests/offcanvas.html +8 -8
  255. package/tests/search.html +300 -202
  256. package/tests/slider.html +58 -0
  257. package/tests/slideshow.html +66 -0
  258. package/tests/sticky-navbar.html +381 -23
  259. package/src/images/icons/pagekit.svg +0 -3
  260. package/src/js/mixin/internal/scroll.js +0 -39
@@ -1 +1 @@
1
- /*! UIkit 3.17.12-dev.f1425d280 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(e,p){typeof exports=="object"&&typeof module<"u"?module.exports=p(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],p):(e=typeof globalThis<"u"?globalThis:e||self,e.UIkitSlider=p(e.UIkit.util))})(this,function(e){"use strict";function p(t,s="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,e.fastdom.read(()=>{t._connected&&P(t,t._queued),delete t._queued})),t._queued.add(s.type||s))}function P(t,s){for(const{read:n,write:i,events:h=[]}of t._updates){if(!s.has("update")&&!h.some(o=>s.has(o)))continue;let r;n&&(r=n.call(t,t._data,s),r&&e.isPlainObject(r)&&e.assign(t._data,r)),i&&r!==!1&&e.fastdom.write(()=>{t._connected&&i.call(t,t._data,s)})}}function A(t){return $(e.observeResize,t,"resize")}function z(t){return $(e.observeIntersection,t)}function L(t={}){return z({handler:function(s,n){const{targets:i=this.$el,preload:h=5}=t;for(const r of e.toNodes(e.isFunction(i)?i(this):i))e.$$('[loading="lazy"]',r).slice(0,h-1).forEach(o=>e.removeAttr(o,"loading"));for(const r of s.filter(({isIntersecting:o})=>o).map(({target:o})=>o))n.unobserve(r)},...t})}function $(t,s,n){return{observe:t,handler(){p(this,n)},...s}}var U={connected(){e.addClass(this.$el,this.$options.id)}},B={props:{i18n:Object},data:{i18n:null},methods:{t(t,...s){var n,i,h;let r=0;return((h=((n=this.i18n)==null?void 0:n[t])||((i=this.$options.i18n)==null?void 0:i[t]))==null?void 0:h.replace(/%s/g,()=>s[r++]||""))||""}}},j={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){e.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){e.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&e.matches(this.$el,":focus-within")||this.pauseOnHover&&e.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const b={passive:!1,capture:!0},k={passive:!0,capture:!0},V="touchstart mousedown",_="touchmove mousemove",C="touchend touchcancel mouseup click input scroll";var q={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const s=this[t];this[t]=n=>{const i=e.getEventPos(n).x*(e.isRtl?-1:1);this.prevPos=i===this.pos?this.prevPos:this.pos,this.pos=i,s(n)}}},events:[{name:V,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!e.isTouch(t)&&F(t.target)||t.target.closest(e.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:_,el(){return this.list},handler:e.noop,...b}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,e.on(document,_,this.move,b),e.on(document,C,this.end,k),e.css(this.list,"userSelect","none")},move(t){const s=this.pos-this.drag;if(s===0||this.prevPos===this.pos||!this.dragging&&Math.abs(s)<this.threshold)return;e.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=s<0?1:-1;let{slides:n,prevIndex:i}=this,h=Math.abs(s),r=this.getIndex(i+this.dir),o=this._getDistance(i,r);for(;r!==i&&h>o;)this.drag-=o*this.dir,i=r,h-=o,r=this.getIndex(i+this.dir),o=this._getDistance(i,r);this.percent=h/o;const a=n[i],l=n[r],d=this.index!==r,c=i===r;let f;for(const g of[this.index,this.prevIndex])e.includes([r,i],g)||(e.trigger(n[g],"itemhidden",[this]),c&&(f=!0,this.prevIndex=i));(this.index===i&&this.prevIndex!==i||f)&&e.trigger(n[this.index],"itemshown",[this]),d&&(this.prevIndex=i,this.index=r,!c&&e.trigger(a,"beforeitemhide",[this]),e.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!c&&l),d&&(!c&&e.trigger(a,"itemhide",[this]),e.trigger(l,"itemshow",[this]))},end(){if(e.off(document,_,this.move,b),e.off(document,C,this.end,k),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(e.isRtl?this.dir*(e.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}e.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null},_getDistance(t,s){return this._getTransitioner(t,t!==s&&s).getDistance()||this.slides[t].offsetWidth}}};function F(t){return e.css(t,"userSelect")!=="none"&&e.toArray(t.childNodes).some(s=>s.nodeType===3&&s.textContent.trim())}e.memoize((t,s)=>{const n=Object.keys(s),i=n.concat(t).map(h=>[e.hyphenate(h),`data-${e.hyphenate(h)}`]).flat();return{attributes:n,filter:i}});let H=1;function N(t,s=null){return(s==null?void 0:s.id)||`${t.$options.id}-${H++}`}const v={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var G={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},s)=>e.$(t,s),navChildren(){return e.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,s){return e.$$(this.selNavItem,s)}},watch:{nav(t,s){e.attr(t,"role","tablist"),s&&this.$emit()},list(t){e.attr(t,"role","presentation")},navChildren(t){e.attr(t,"role","presentation")},navItems(t){for(const s of t){const n=e.data(s,this.attrItem),i=e.$("a,button",s)||s;let h,r=null;if(e.isNumeric(n)){const o=e.toNumber(n),a=this.slides[o];a&&(a.id||(a.id=N(this,a)),r=a.id),h=this.t("slideX",e.toFloat(n)+1),e.attr(i,"role","tab")}else this.list&&(this.list.id||(this.list.id=N(this,this.list)),r=this.list.id),h=this.t(n);e.attr(i,{"aria-controls":r,"aria-label":e.attr(i,"aria-label")||h})}},slides(t){t.forEach((s,n)=>e.attr(s,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",n+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const s=this.navChildren.length;if(this.nav&&t!==s){e.empty(this.nav);for(let n=0;n<t;n++)e.append(this.nav,`<li ${this.attrItem}="${n}"><a href></a></li>`)}}},connected(){e.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===v.SPACE)&&(t.preventDefault(),this.show(e.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(t){const{current:s,keyCode:n}=t,i=e.data(s,this.attrItem);if(!e.isNumeric(i))return;let h=n===v.HOME?0:n===v.END?"last":n===v.LEFT?"previous":n===v.RIGHT?"next":-1;~h&&(t.preventDefault(),this.show(h))}}],methods:{updateNav(){const t=this.getValidIndex();for(const s of this.navItems){const n=e.data(s,this.attrItem),i=e.$("a,button",s)||s;if(e.isNumeric(n)){const r=e.toNumber(n)===t;e.toggleClass(s,this.clsActive,r),e.attr(i,{"aria-selected":r,tabindex:r?null:-1}),r&&i&&e.matches(e.parent(s),":focus-within")&&i.focus()}else e.toggleClass(s,"uk-invisible",this.finite&&(n==="previous"&&t===0||n==="next"&&t>=this.maxIndex))}}}},X={mixins:[j,q,G,B],props:{clsActivated:Boolean,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:!1,Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){e.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},s)=>M(s.offsetWidth/t),list:({selList:t},s)=>e.$(t,s),maxIndex(){return this.length-1},slides(){return e.children(this.list)},length(){return this.slides.length}},watch:{slides(t,s){s&&this.$emit()}},observe:A(),methods:{show(t,s=!1){var n;if(this.dragging||!this.length)return;const{stack:i}=this,h=s?0:i.length,r=()=>{i.splice(h,1),i.length&&this.show(i.shift(),!0)};if(i[s?"unshift":"push"](t),!s&&i.length>1){i.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const o=this.getIndex(this.index),a=e.hasClass(this.slides,this.clsActive)&&this.slides[o],l=this.getIndex(t,this.index),d=this.slides[l];if(a===d){r();return}if(this.dir=J(t,o),this.prevIndex=o,this.index=l,a&&!e.trigger(a,"beforeitemhide",[this])||!e.trigger(d,"beforeitemshow",[this,a])){this.index=this.prevIndex,r();return}const c=this._show(a,d,s).then(()=>{a&&e.trigger(a,"itemhidden",[this]),e.trigger(d,"itemshown",[this]),i.shift(),this._transitioner=null,requestAnimationFrame(()=>i.length&&this.show(i.shift(),!0))});return a&&e.trigger(a,"itemhide",[this]),e.trigger(d,"itemshow",[this]),c},getIndex(t=this.index,s=this.index){return e.clamp(e.getIndex(t,this.slides,s,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,s=this.prevIndex){return this.getIndex(t,s)},_show(t,s,n){if(this._transitioner=this._getTransitioner(t,s,this.dir,{easing:n?s.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!n&&!t)return this._translate(1),Promise.resolve();const{length:i}=this.stack;return this._transitioner[i>1?"forward":"show"](i>1?Math.min(this.duration,75+75/(i-1)):this.duration,this.percent)},_translate(t,s=this.prevIndex,n=this.index){const i=this._getTransitioner(s===n?!1:s,n);return i.translate(t),i},_getTransitioner(t=this.prevIndex,s=this.index,n=this.dir||1,i=this.transitionOptions){return new this.Transitioner(e.isNumber(t)?this.slides[t]:t,e.isNumber(s)?this.slides[s]:s,n*(e.isRtl?-1:1),i)}}};function J(t,s){return t==="next"?1:t==="previous"||t<s?-1:1}function M(t){return .5*t+300}var K={update:{write(){if(this.stack.length||this.dragging)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},Q={observe:L({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()})};function S(t=0,s="%"){return t+=t?s:"",`translate3d(${t}, 0, 0)`}function Y(t,s,n,{center:i,easing:h,list:r}){const o=t?x(t,r,i):x(s,r,i)+e.dimensions(s).width*n,a=s?x(s,r,i):o+e.dimensions(t).width*n*(e.isRtl?-1:1);let l;return{dir:n,show(d,c=0,f){const g=f?"linear":h;return d-=Math.round(d*e.clamp(c,-1,1)),this.translate(c),c=t?c:e.clamp(c,0,1),y(this.getItemIn(),"itemin",{percent:c,duration:d,timing:g,dir:n}),t&&y(this.getItemIn(!0),"itemout",{percent:1-c,duration:d,timing:g,dir:n}),new Promise(m=>{l||(l=m),e.Transition.start(r,{transform:S(-a*(e.isRtl?-1:1),"px")},d,g).then(l,e.noop)})},cancel(){return e.Transition.cancel(r)},reset(){e.css(r,"transform","")},async forward(d,c=this.percent()){return await this.cancel(),this.show(d,c,!0)},translate(d){const c=this.getDistance()*n*(e.isRtl?-1:1);e.css(r,"transform",S(e.clamp(-a+(c-c*d),-I(r),e.dimensions(r).width)*(e.isRtl?-1:1),"px"));const f=this.getActives(),g=this.getItemIn(),m=this.getItemIn(!0);d=t?e.clamp(d,-1,1):0;for(const u of e.children(r)){const O=e.includes(f,u),R=u===g,W=u===m,st=R||!W&&(O||n*(e.isRtl?-1:1)===-1^w(u,r)>w(t||s));y(u,`itemtranslate${st?"in":"out"}`,{dir:n,percent:W?1-d:R?d:O?1:0})}},percent(){return Math.abs((e.css(r,"transform").split(",")[4]*(e.isRtl?-1:1)+o)/(a-o))},getDistance(){return Math.abs(a-o)},getItemIn(d=!1){let c=this.getActives(),f=E(r,x(s||t,r,i));if(d){const g=c;c=f,f=g}return f[e.findIndex(f,g=>!e.includes(c,g))]},getActives(){return E(r,x(t||s,r,i))}}}function x(t,s,n){const i=w(t,s);return n?i-Z(t,s):Math.min(i,T(s))}function T(t){return Math.max(0,I(t)-e.dimensions(t).width)}function I(t){return e.sumBy(e.children(t),s=>e.dimensions(s).width)}function Z(t,s){return e.dimensions(s).width/2-e.dimensions(t).width/2}function w(t,s){return t&&(e.position(t).left+(e.isRtl?e.dimensions(t).width-e.dimensions(s).width:0))*(e.isRtl?-1:1)||0}function E(t,s){s-=1;const n=e.dimensions(t).width,i=s+n+2;return e.children(t).filter(h=>{const r=w(h,t),o=r+Math.min(e.dimensions(h).width,n);return r>=s&&o<=i})}function y(t,s,n){e.trigger(t,e.createEvent(s,!1,!1,n))}var D={mixins:[U,X,K,Q],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",Transitioner:Y},computed:{avgWidth(){return I(this.list)/this.length},finite({finite:t}){return t||tt(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return e.last(this.sets);let t=0;const s=T(this.list),n=e.findIndex(this.slides,i=>{if(t>=s)return!0;t+=e.dimensions(i).width});return~n?n:this.length-1},sets({sets:t}){if(!t)return;let s=0;const n=[],i=e.dimensions(this.list).width;for(let h=0;h<this.length;h++){const r=e.dimensions(this.slides[h]).width;s+r>i&&(s=0),this.center?s<i/2&&s+r+e.dimensions(e.getIndex(+h+1,this.slides)).width/2>i/2&&(n.push(+h),s=i/2-r/2):s===0&&n.push(Math.min(+h,this.maxIndex)),s+=r}if(n.length)return n},transitionOptions(){return{center:this.center,list:this.list}},slides(){return e.children(this.list).filter(e.isVisible)}},connected(){e.toggleClass(this.$el,this.clsContainer,!e.$(`.${this.clsContainer}`,this.$el))},observe:A({target:({slides:t})=>t}),update:{write(){for(const t of this.navItems){const s=e.toNumber(e.data(t,this.attrItem));s!==!1&&(t.hidden=!this.maxIndex||s>this.maxIndex||this.sets&&!e.includes(this.sets,s))}this.length&&!this.dragging&&!this.stack.length&&(this.reorder(),this._translate(1)),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!e.includes(this.sets,this.index)&&(this.index=this.getValidIndex());const s=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&&s>1){for(let i=0;i<s;i++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const n=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex;this.duration=M(this.avgWidth/this.velocity)*(e.dimensions(this.slides[n]).width/this.avgWidth),this.reorder()},itemshow(){~this.prevIndex&&e.addClass(this._getTransitioner().getItemIn(),this.clsActive)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){e.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((h,r)=>e.css(h,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center)return;const s=this.slides[t];let n=e.dimensions(this.list).width/2-e.dimensions(s).width/2,i=0;for(;n>0;){const h=this.getIndex(--i+t,t),r=this.slides[h];e.css(r,"order",h>t?-2:-1),n-=e.dimensions(r).width}},updateActiveClasses(){const t=this._getTransitioner(this.index).getActives(),s=[this.clsActive,(!this.sets||e.includes(this.sets,e.toFloat(this.index)))&&this.clsActivated||""];for(const n of this.slides){const i=e.includes(t,n);e.toggleClass(n,s,i),e.attr(n,"aria-hidden",!i);for(const h of e.$$(e.selFocusable,n))e.hasOwn(h,"_tabindex")||(h._tabindex=e.attr(h,"tabindex")),e.attr(h,"tabindex",i?h._tabindex:-1)}},getValidIndex(t=this.index,s=this.prevIndex){if(t=this.getIndex(t,s),!this.sets)return t;let n;do{if(e.includes(this.sets,t))return t;n=t,t=this.getIndex(t+this.dir,s)}while(t!==n);return t},getAdjacentSlides(){const{width:t}=e.dimensions(this.list),s=-t,n=t*2,i=e.dimensions(this.slides[this.index]).width,h=this.center?t/2-i/2:0,r=new Set;for(const o of[-1,1]){let a=h+(o>0?i:0),l=0;do{const d=this.slides[this.getIndex(this.index+o+l++*o)];a+=e.dimensions(d).width*o,r.add(d)}while(this.length>l&&a>s&&a<n)}return Array.from(r)}}};function tt(t,s){if(!t||t.length<2)return!0;const{width:n}=e.dimensions(t);if(!s)return Math.ceil(I(t))<Math.trunc(n+et(t));const i=e.children(t),h=Math.trunc(n/2);for(const r in i){const o=i[r],a=e.dimensions(o).width,l=new Set([o]);let d=0;for(const c of[-1,1]){let f=a/2,g=0;for(;f<h;){const m=i[e.getIndex(+r+c+g++*c,i)];if(l.has(m))return!0;f+=e.dimensions(m).width,l.add(m)}d=Math.max(d,a/2+e.dimensions(i[e.getIndex(+r+c,i)]).width/2-(f-h))}if(d>e.sumBy(i.filter(c=>!l.has(c)),c=>e.dimensions(c).width))return!0}return!1}function et(t){return Math.max(0,...e.children(t).map(s=>e.dimensions(s).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",D),D});
1
+ /*! UIkit 3.18.1-dev.0856bd8a6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,w){typeof exports=="object"&&typeof module<"u"?module.exports=w(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider",["uikit-util"],w):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider=w(s.UIkit.util))})(this,function(s){"use strict";function w(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,s.fastdom.read(()=>{t._connected&&lt(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function lt(t,e){for(const{read:i,write:n,events:o=[]}of t._updates){if(!e.has("update")&&!o.some(a=>e.has(a)))continue;let r;i&&(r=i.call(t,t._data,e),r&&s.isPlainObject(r)&&s.assign(t._data,r)),n&&r!==!1&&s.fastdom.write(()=>{t._connected&&n.call(t,t._data,e)})}}function P(t){return F(s.observeResize,t,"resize")}function ft(t){return F(s.observeIntersection,t)}function gt(t={}){return ft({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 ut(t){return F((e,i)=>({disconnect:s.on(mt(e),"scroll",i,{passive:!0})}),t,"scroll")}function F(t,e,i){return{observe:t,handler(){w(this,i)},...e}}function mt(t){return s.toNodes(t).map(e=>{const{ownerDocument:i}=e,n=s.scrollParent(e,!0);return n===i.scrollingElement?i:n})}var pt={connected(){s.addClass(this.$el,this.$options.id)}},xt={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++]||""))||""}}},vt={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&s.matches(this.$el,":focus-within")||this.pauseOnHover&&s.matches(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const I={passive:!1,capture:!0},U={passive:!0,capture:!0},wt="touchstart mousedown",D="touchmove mousemove",V="touchend touchcancel mouseup click input scroll",q=t=>t.preventDefault();var It={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:wt,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!s.isTouch(t)&&bt(t.target)||t.target.closest(s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:D,el(){return this.list},handler:s.noop,...I}],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,I),s.on(document,V,this.end,U),s.css(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||s.on(this.list,"click",q,I),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=G.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=G.call(this,n,r);this.percent=o/a;const h=i[n],d=i[r],l=this.index!==r,c=n===r;let f;for(const g of[this.index,this.prevIndex])s.includes([r,n],g)||(s.trigger(i[g],"itemhidden",[this]),c&&(f=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||f)&&s.trigger(i[this.index],"itemshown",[this]),l&&(this.prevIndex=n,this.index=r,c||(s.trigger(h,"beforeitemhide",[this]),s.trigger(h,"itemhide",[this])),s.trigger(d,"beforeitemshow",[this]),s.trigger(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!c&&d)},end(){if(s.off(document,D,this.move,I),s.off(document,V,this.end,U),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(s.isRtl?this.dir*(s.isRtl?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>s.off(this.list,"click",q,I)),s.css(this.list,{userSelect:""}),this.drag=this.percent=null}}};function G(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function bt(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 X(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${$t++}`}const b={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var yt={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>s.$(t,e),navChildren(){return s.children(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return s.$$(this.selNavItem,e)}},watch:{nav(t,e){s.attr(t,"role","tablist"),e&&this.$emit()},list(t){s.attr(t,"role","presentation")},navChildren(t){s.attr(t,"role","presentation")},navItems(t){for(const e of t){const i=s.data(e,this.attrItem),n=s.$("a,button",e)||e;let o,r=null;if(s.isNumeric(i)){const a=s.toNumber(i),h=this.slides[a];h&&(h.id||(h.id=X(this,h)),r=h.id),o=this.t("slideX",s.toFloat(i)+1),s.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=X(this,this.list)),r=this.list.id),o=this.t(i);s.attr(n,{"aria-controls":r,"aria-label":s.attr(n,"aria-label")||o})}},slides(t){t.forEach((e,i)=>s.attr(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){s.empty(this.nav);for(let i=0;i<t;i++)s.append(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){s.attr(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===b.SPACE)&&(t.preventDefault(),this.show(s.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let o=i===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),s.attr(n,{"aria-selected":r,tabindex:r&&!this.parallax?null:-1}),r&&n&&s.matches(s.parent(e),":focus-within")&&n.focus()}else s.toggleClass(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},St={mixins:[vt,It,yt,xt],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){s.removeClass(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>J(e.offsetWidth/t),list:({selList:t},e)=>s.$(t,e),maxIndex(){return this.length-1},slides(){return s.children(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},observe:P(),events:{itemshow({target:t}){s.addClass(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){s.removeClass(t,this.clsEnter)},itemhide({target:t}){s.addClass(t,this.clsLeave)},itemhidden({target:t}){s.removeClass(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,o=e?0:n.length,r=()=>{n.splice(o,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const a=this.getIndex(this.index),h=s.hasClass(this.slides,this.clsActive)&&this.slides[a],d=this.getIndex(t,this.index),l=this.slides[d];if(h===l){r();return}if(this.dir=kt(t,a),this.prevIndex=a,this.index=d,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(l,"beforeitemshow",[this,h])){this.index=this.prevIndex,r();return}const c=this._show(h,l,e).then(()=>{h&&s.trigger(h,"itemhidden",[this]),s.trigger(l,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return h&&s.trigger(h,"itemhide",[this]),s.trigger(l,"itemshow",[this]),c},getIndex(t=this.index,e=this.index){return s.clamp(s.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(s.isNumber(t)?this.slides[t]:t,s.isNumber(e)?this.slides[e]:e,i*(s.isRtl?-1:1),n)}}};function kt(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function J(t){return .5*t+300}var At={props:{media:Boolean},data:{media:!1},connected(){const t=_t(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function _t(t,e){if(s.isString(t)){if(s.startsWith(t,"@"))t=s.toFloat(s.css(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&s.isNumeric(t)?`(min-width: ${t}px)`:""}function Ct(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:pe,from:Mt}=Array;function Nt(t){return typeof t=="function"}function R(t){return t!==null&&typeof t=="object"}function Et(t){return R(t)&&t===t.window}function Ot(t){return Q(t)===9}function K(t){return Q(t)>=1}function Q(t){return!Et(t)&&R(t)&&t.nodeType}function W(t){return typeof t=="string"}function Tt(t){return t===void 0}function $(t){return p(t)[0]}function p(t){return K(t)?[t]:Array.from(t||[]).filter(K)}function j(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function L(t,e,i){var n;if(R(e)){for(const o in e)L(t,o,e[o]);return}if(Tt(i))return(n=$(t))==null?void 0:n.getAttribute(e);for(const o of p(t))Nt(i)&&(i=i.call(o,L(o,e))),i===null?Pt(o,e):o.setAttribute(e,i)}function Pt(t,e){p(t).forEach(i=>i.removeAttribute(e))}function Y(t){var e;return(e=$(t))==null?void 0:e.parentElement}function Ft(t,e){return p(t).filter(i=>Z(i,e))}function Z(t,e){return p(t).some(i=>i.matches(e))}function Dt(t,e){t=$(t);const i=t?Mt(t.children):[];return e?Ft(i,e):i}function Rt(t,e){return e?p(t).indexOf($(e)):Dt(Y(t)).indexOf(t)}function Wt(t,e){return p(Bt(t,$(e),"querySelectorAll"))}const jt=/(^|[^\\],)\s*[!>+~-]/,Lt=j(t=>t.match(jt)),zt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ht=j(t=>t.replace(zt,"$1 *"));function Bt(t,e=document,i){if(!t||!W(t))return t;if(t=Ht(t),Lt(t)){const n=Vt(t);t="";for(let o of n){let r=e;if(o[0]==="!"){const a=o.substr(1).trim().split(" ");if(r=Y(e).closest(a[0]),o=a.slice(1).join(" ").trim(),!o.length&&n.length===1)return r}if(o[0]==="-"){const a=o.substr(1).trim().split(" "),h=(r||e).previousElementSibling;r=Z(h,o.substr(1))?h:null,o=a.slice(1).join(" ")}r&&(t+=`${t?",":""}${qt(r)} ${o}`)}Ot(e)||(e=e.ownerDocument)}try{return e[i](t)}catch{return null}}const Ut=/.*?[^\\](?![^(]*\))(?:,|$)/g,Vt=j(t=>t.match(Ut).map(e=>e.replace(/,$/,"").trim()));function qt(t){const e=[];for(;t.parentNode;){const i=L(t,"id");if(i){e.unshift(`#${Gt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${Rt(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Gt(t){return W(t)?CSS.escape(t):""}const Xt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Jt(t){const e=Xt.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Kt(i.content.childNodes)}function Kt(t){return t.length>1?t:t[0]}function Qt(t,e){return Yt(t)?p(Jt(t)):Wt(t,e)}function Yt(t){return W(t)&&Ct(t.trim(),"<")}function Zt(t){return Math.ceil(Math.max(0,...Qt("[stroke]",t).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const C={x:M,y:M,rotate:M,scale:M,color:z,backgroundColor:z,borderColor:z,blur:x,hue:x,fopacity:x,grayscale:x,invert:x,saturate:x,sepia:x,opacity:ee,stroke:se,bgx:et,bgy:et},{keys:tt}=Object;rt(tt(C),"list"),rt(tt(C),void 0);function M(t,e,i){let n=E(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",o;return t==="x"||t==="y"?(t=`translate${s.ucfirst(t)}`,o=r=>s.toFloat(s.toFloat(r).toFixed(n==="px"?0:6))):t==="scale"&&(n="",o=r=>{var a;return E([r])?s.toPx(r,"width",e,!0)/e[`offset${(a=r.endsWith)!=null&&a.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),i.length===1&&i.unshift(t==="scale"?1:0),i=v(i,o),(r,a)=>{r.transform=`${r.transform||""} ${t}(${y(i,a)}${n})`}}function z(t,e,i){return i.length===1&&i.unshift(S(e,t,"")),i=v(i,n=>te(e,n)),(n,o)=>{const[r,a,h]=nt(i,o),d=r.map((l,c)=>(l+=h*(a[c]-l),c===3?s.toFloat(l):parseInt(l,10))).join(",");n[t]=`rgba(${d})`}}function te(t,e){return S(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function x(t,e,i){i.length===1&&i.unshift(0);const n=E(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=v(i),(o,r)=>{const a=y(i,r);o.filter=`${o.filter||""} ${t}(${a+n})`}}function ee(t,e,i){return i.length===1&&i.unshift(S(e,t,"")),i=v(i),(n,o)=>{n[t]=y(i,o)}}function se(t,e,i){i.length===1&&i.unshift(0);const n=E(i),o=Zt(e);return i=v(i.reverse(),r=>(r=s.toFloat(r),n==="%"?r*o/100:r)),i.some(([r])=>r)?(s.css(e,"strokeDasharray",o),(r,a)=>{r.strokeDashoffset=y(i,a)}):s.noop}function et(t,e,i,n){i.length===1&&i.unshift(0);const o=t==="bgy"?"height":"width";n[t]=v(i,h=>s.toPx(h,o,e));const r=["bgx","bgy"].filter(h=>h in n);if(r.length===2&&t==="bgx")return s.noop;if(S(e,"backgroundSize","")==="cover")return ie(t,e,i,n);const a={};for(const h of r)a[h]=st(e,h);return it(r,a,n)}function ie(t,e,i,n){const o=ne(e);if(!o.width)return s.noop;const r={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(c=>c in n),h={};for(const c of a){const f=n[c].map(([T])=>T),g=Math.min(...f),u=Math.max(...f),m=f.indexOf(g)<f.indexOf(u),_=u-g;h[c]=`${(m?-_:0)-(m?g:u)}px`,r[c==="bgy"?"height":"width"]+=_}const d=s.Dimensions.cover(o,r);for(const c of a){const f=c==="bgy"?"height":"width",g=d[f]-r[f];h[c]=`max(${st(e,c)},-${g}px) + ${h[c]}`}const l=it(a,h,n);return(c,f)=>{l(c,f),c.backgroundSize=`${d.width}px ${d.height}px`,c.backgroundRepeat="no-repeat"}}function st(t,e){return S(t,`background-position-${e.substr(-1)}`,"")}function it(t,e,i){return function(n,o){for(const r of t){const a=y(i[r],o);n[`background-position-${r.substr(-1)}`]=`calc(${e[r]} + ${a}px)`}}}const N={};function ne(t){const e=s.css(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(N[e])return N[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth)?(i.onload=()=>{N[e]=H(i),s.trigger(t,s.createEvent("load",!1))},H(i)):N[e]=H(i)}function H(t){return{width:t.naturalWidth,height:t.naturalHeight}}function v(t,e=s.toFloat){const i=[],{length:n}=t;let o=0;for(let r=0;r<n;r++){let[a,h]=s.isString(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(a=e(a),h=h?s.toFloat(h)/100:null,r===0?h===null?h=0:h&&i.push([a,0]):r===n-1&&(h===null?h=1:h!==1&&(i.push([a,h]),h=1)),i.push([a,h]),h===null)o++;else if(o){const d=i[r-o-1][1],l=(h-d)/(o+1);for(let c=o;c>0;c--)i[r-c][1]=d+l*(o-c+1);o=0}}return i}function nt(t,e){const i=s.findIndex(t.slice(1),([,n])=>e<=n)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function y(t,e){const[i,n,o]=nt(t,e);return i+Math.abs(i-n)*o*(i<n?1:-1)}const re=/^-?\d+(?:\.\d+)?(\S+)?/;function E(t,e){var i;for(const n of t){const o=(i=n.match)==null?void 0:i.call(n,re);if(o)return o[1]}return e}function S(t,e,i){const n=t.style[e],o=s.css(s.css(t,e,i),e);return t.style[e]=n,o}function rt(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function oe(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var ae={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[P({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),ut({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&s.query(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=s.toPx(this.parallaxStart,"height",t,!0),i=s.toPx(this.parallaxEnd,"height",t,!0),n=oe(s.scrolledOver(t,e,i),this.parallaxEasing),[o,r]=this.getIndexAt(n),a=this.getValidIndex(o+Math.ceil(r)),h=this.slides[o],d=this.slides[a],{triggerShow:l,triggerShown:c,triggerHide:f,triggerHidden:g}=he(this);if(~this.prevIndex)for(const m of new Set([this.index,this.prevIndex]))s.includes([a,o],m)||(f(this.slides[m]),g(this.slides[m]));const u=this.prevIndex!==o||this.index!==a;this.dir=1,this.prevIndex=o,this.index=a,h!==d&&f(h),l(d),u&&c(h),this._translate(h===d?1:r,h,d)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function he(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 de={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},ce={observe:gt({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function ot(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function le(t,e,i,{center:n,easing:o,list:r}){const a=t?k(t,r,n):k(e,r,n)+s.dimensions(e).width*i,h=e?k(e,r,n):a+s.dimensions(t).width*i*(s.isRtl?-1:1);let d;return{dir:i,show(l,c=0,f){const g=f?"linear":o;return l-=Math.round(l*s.clamp(c,-1,1)),this.translate(c),c=t?c:s.clamp(c,0,1),B(this.getItemIn(),"itemin",{percent:c,duration:l,timing:g,dir:i}),t&&B(this.getItemIn(!0),"itemout",{percent:1-c,duration:l,timing:g,dir:i}),new Promise(u=>{d||(d=u),s.Transition.start(r,{transform:ot(-h*(s.isRtl?-1:1),"px")},l,g).then(d,s.noop)})},cancel(){return s.Transition.cancel(r)},reset(){s.css(r,"transform","")},async forward(l,c=this.percent()){return await this.cancel(),this.show(l,c,!0)},translate(l){const c=this.getDistance()*i*(s.isRtl?-1:1);s.css(r,"transform",ot(s.clamp(-h+(c-c*l),-A(r),s.dimensions(r).width)*(s.isRtl?-1:1),"px"));const f=this.getActives(),g=this.getItemIn(),u=this.getItemIn(!0);l=t?s.clamp(l,-1,1):0;for(const m of s.children(r)){const _=s.includes(f,m),T=m===g,ct=m===u,me=T||!ct&&(_||i*(s.isRtl?-1:1)===-1^O(m,r)>O(t||e));B(m,`itemtranslate${me?"in":"out"}`,{dir:i,percent:ct?1-l:T?l:_?1:0})}},percent(){return Math.abs((s.css(r,"transform").split(",")[4]*(s.isRtl?-1:1)+a)/(h-a))},getDistance(){return Math.abs(h-a)},getItemIn(l=!1){let c=this.getActives(),f=ht(r,k(e||t,r,n));if(l){const g=c;c=f,f=g}return f[s.findIndex(f,g=>!s.includes(c,g))]},getActives(){return ht(r,k(t||e,r,n))}}}function k(t,e,i){const n=O(t,e);return i?n-fe(t,e):Math.min(n,at(e))}function at(t){return Math.max(0,A(t)-s.dimensions(t).width)}function A(t){return s.sumBy(s.children(t),e=>s.dimensions(e).width)}function fe(t,e){return s.dimensions(e).width/2-s.dimensions(t).width/2}function O(t,e){return t&&(s.position(t).left+(s.isRtl?s.dimensions(t).width-s.dimensions(e).width:0))*(s.isRtl?-1:1)||0}function ht(t,e){e-=1;const i=s.dimensions(t).width,n=e+i+2;return s.children(t).filter(o=>{const r=O(o,t),a=r+Math.min(s.dimensions(o).width,i);return r>=e&&a<=n})}function B(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}var dt={mixins:[pt,St,de,ae,ce],props:{center:Boolean,sets:Boolean},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",Transitioner:le},computed:{finite({finite:t}){return t||ge(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=at(this.list),i=s.findIndex(this.slides,n=>{if(t>=e)return!0;t+=s.dimensions(n).width});return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],n=s.dimensions(this.list).width;for(let o=0;o<this.length;o++){const r=s.dimensions(this.slides[o]).width;e+r>n&&(e=0),this.center?e<n/2&&e+r+s.dimensions(this.slides[s.getIndex(+o+1,this.slides)]).width/2>n/2&&(i.push(+o),e=n/2-r/2):e===0&&i.push(Math.min(+o,this.maxIndex)),e+=r}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return s.children(this.list).filter(s.isVisible)}},connected(){s.toggleClass(this.$el,this.clsContainer,!s.$(`.${this.clsContainer}`,this.$el))},observe:P({target:({slides:t})=>t}),update:{write(){for(const t of this.navItems){const e=s.toNumber(s.data(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!s.includes(this.sets,e))}this.reorder(),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!s.includes(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let o=0;o<e;o++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,n=A(this.list)/this.length;this.duration=J(n/this.velocity)*(s.dimensions(this.slides[i]).width/n),this.reorder()},itemshow(){~this.prevIndex&&s.addClass(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){s.css(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((o,r)=>s.css(o,"order",this.dir>0&&r<t?1:this.dir<0&&r>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=s.dimensions(this.list).width/2-s.dimensions(e).width/2,n=0;for(;i>0;){const o=this.getIndex(--n+t,t),r=this.slides[o];s.css(r,"order",o>t?-2:-1),i-=s.dimensions(r).width}},updateActiveClasses(t=this.index){const e=this._getTransitioner(t).getActives(),i=[this.clsActive,!this.sets||s.includes(this.sets,s.toFloat(this.index))?this.clsActivated:""];for(const n of this.slides){const o=s.includes(e,n);s.toggleClass(n,i,o),s.attr(n,"aria-hidden",!o);for(const r of s.$$(s.selFocusable,n))s.hasOwn(r,"_tabindex")||(r._tabindex=s.attr(r,"tabindex")),s.attr(r,"tabindex",o?r._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(s.includes(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=s.dimensions(this.list),e=-t,i=t*2,n=s.dimensions(this.slides[this.index]).width,o=this.center?t/2-n/2:0,r=new Set;for(const a of[-1,1]){let h=o+(a>0?n:0),d=0;do{const l=this.slides[this.getIndex(this.index+a+d++*a)];h+=s.dimensions(l).width*a,r.add(l)}while(this.length>d&&h>e&&h<i)}return Array.from(r)},getIndexAt(t){let e=-1;const i=s.dimensions(this.slides[0]).width,n=s.dimensions(s.last(this.slides)).width,o=A(this.list)-(this.center?i/2+n/2:n);let r=t*o,a=0;do{const h=s.dimensions(this.slides[++e]).width,d=this.center?h/2+s.dimensions(this.slides[e+1]).width/2:h;a=r/d%1,r-=d}while(r>=0&&e<this.maxIndex);return[e,a]}}};function ge(t,e){if(!t||t.length<2)return!0;const{width:i}=s.dimensions(t);if(!e)return Math.ceil(A(t))<Math.trunc(i+ue(t));const n=s.children(t),o=Math.trunc(i/2);for(const r in n){const a=n[r],h=s.dimensions(a).width,d=new Set([a]);let l=0;for(const c of[-1,1]){let f=h/2,g=0;for(;f<o;){const u=n[s.getIndex(+r+c+g++*c,n)];if(d.has(u))return!0;f+=s.dimensions(u).width,d.add(u)}l=Math.max(l,h/2+s.dimensions(n[s.getIndex(+r+c,n)]).width/2-(f-o))}if(l>s.sumBy(n.filter(c=>!d.has(c)),c=>s.dimensions(c).width))return!0}return!1}function ue(t){return Math.max(0,...s.children(t).map(e=>s.dimensions(e).width))}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",dt),dt});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.17.12-dev.f1425d280 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.18.1-dev.0856bd8a6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -59,6 +59,9 @@
59
59
  function isWindow(obj) {
60
60
  return isObject(obj) && obj === obj.window;
61
61
  }
62
+ function isDocument(obj) {
63
+ return nodeType(obj) === 9;
64
+ }
62
65
  function isNode(obj) {
63
66
  return nodeType(obj) >= 1;
64
67
  }
@@ -163,7 +166,9 @@
163
166
  selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
164
167
  }
165
168
  }
166
- context = document;
169
+ if (!isDocument(context)) {
170
+ context = context.ownerDocument;
171
+ }
167
172
  }
168
173
  try {
169
174
  return context[queryFn](selector);
@@ -171,7 +176,7 @@
171
176
  return null;
172
177
  }
173
178
  }
174
- const selectorRe = /.*?[^\\](?:,|$)/g;
179
+ const selectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
175
180
  const splitSelector = memoize(
176
181
  (selector) => selector.match(selectorRe).map((selector2) => selector2.replace(/,$/, "").trim())
177
182
  );
@@ -1 +1 @@
1
- /*! UIkit 3.17.12-dev.f1425d280 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],b):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlideshow_parallax=b(s.UIkit.util))})(this,function(s){"use strict";var b={props:{media:Boolean},data:{media:!1},connected(){const n=J(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function J(n,e){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(e,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function K(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:jn,from:Q}=Array;function X(n){return typeof n=="function"}function M(n){return n!==null&&typeof n=="object"}function Y(n){return M(n)&&n===n.window}function T(n){return Z(n)>=1}function Z(n){return!Y(n)&&M(n)&&n.nodeType}function C(n){return typeof n=="string"}function k(n){return n===void 0}function $(n){return d(n)[0]}function d(n){return T(n)?[n]:Array.from(n||[]).filter(T)}function O(n){const e=Object.create(null);return(t,...o)=>e[t]||(e[t]=n(t,...o))}function j(n,e,t){var o;if(M(e)){for(const r in e)j(n,r,e[r]);return}if(k(t))return(o=$(n))==null?void 0:o.getAttribute(e);for(const r of d(n))X(t)&&(t=t.call(r,j(r,e))),t===null?U(r,e):r.setAttribute(e,t)}function U(n,e){d(n).forEach(t=>t.removeAttribute(e))}function A(n){var e;return(e=$(n))==null?void 0:e.parentElement}function nn(n,e){return d(n).filter(t=>W(t,e))}function W(n,e){return d(n).some(t=>t.matches(e))}function tn(n,e){n=$(n);const t=n?Q(n.children):[];return e?nn(t,e):t}function en(n,e){return e?d(n).indexOf($(e)):tn(A(n)).indexOf(n)}function rn(n,e){return d(fn(n,$(e),"querySelectorAll"))}const on=/(^|[^\\],)\s*[!>+~-]/,sn=O(n=>n.match(on)),cn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,an=O(n=>n.replace(cn,"$1 *"));function fn(n,e=document,t){if(!n||!C(n))return n;if(n=an(n),sn(n)){const o=dn(n);n="";for(let r of o){let i=e;if(r[0]==="!"){const c=r.substr(1).trim().split(" ");if(i=A(e).closest(c[0]),r=c.slice(1).join(" ").trim(),!r.length&&o.length===1)return i}if(r[0]==="-"){const c=r.substr(1).trim().split(" "),a=(i||e).previousElementSibling;i=W(a,r.substr(1))?a:null,r=c.slice(1).join(" ")}i&&(n+=`${n?",":""}${hn(i)} ${r}`)}e=document}try{return e[t](n)}catch{return null}}const un=/.*?[^\\](?:,|$)/g,dn=O(n=>n.match(un).map(e=>e.replace(/,$/,"").trim()));function hn(n){const e=[];for(;n.parentNode;){const t=j(n,"id");if(t){e.unshift(`#${ln(t)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${en(n)+1})`),e.unshift(o),n=n.parentNode}}return e.join(" > ")}function ln(n){return C(n)?CSS.escape(n):""}const mn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function gn(n){const e=mn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),bn(t.content.childNodes)}function bn(n){return n.length>1?n:n[0]}function $n(n,e){return xn(n)?d(gn(n)):rn(n,e)}function xn(n){return C(n)&&K(n.trim(),"<")}function yn(n){return Math.ceil(Math.max(0,...$n("[stroke]",n).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const p={x:v,y:v,rotate:v,scale:v,color:I,backgroundColor:I,borderColor:I,blur:m,hue:m,fopacity:m,grayscale:m,invert:m,saturate:m,sepia:m,opacity:vn,stroke:Fn,bgx:E,bgy:E},{keys:_}=Object;var wn={mixins:[b],props:D(_(p),"list"),data:D(_(p),void 0),computed:{props(n,e){const t={};for(const r in n)r in p&&!s.isUndefined(n[r])&&(t[r]=n[r].slice());const o={};for(const r in t)o[r]=p[r](r,e,t[r],t);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,s.clamp(n));return e.willChange=Object.keys(e).map(s.propName).join(","),e}}};function v(n,e,t){let o=S(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,r=i=>s.toFloat(s.toFloat(i).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=i=>{var c;return S([i])?s.toPx(i,"width",e,!0)/e[`offset${(c=i.endsWith)!=null&&c.call(i,"vh")?"Height":"Width"}`]:s.toFloat(i)}),t.length===1&&t.unshift(n==="scale"?1:0),t=g(t,r),(i,c)=>{i.transform=`${i.transform||""} ${n}(${x(t,c)}${o})`}}function I(n,e,t){return t.length===1&&t.unshift(y(e,n,"")),t=g(t,o=>pn(e,o)),(o,r)=>{const[i,c,a]=R(t,r),h=i.map((l,f)=>(l+=a*(c[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");o[n]=`rgba(${h})`}}function pn(n,e){return y(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function m(n,e,t){t.length===1&&t.unshift(0);const o=S(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=g(t),(r,i)=>{const c=x(t,i);r.filter=`${r.filter||""} ${n}(${c+o})`}}function vn(n,e,t){return t.length===1&&t.unshift(y(e,n,"")),t=g(t),(o,r)=>{o[n]=x(t,r)}}function Fn(n,e,t){t.length===1&&t.unshift(0);const o=S(t),r=yn(e);return t=g(t.reverse(),i=>(i=s.toFloat(i),o==="%"?i*r/100:i)),t.some(([i])=>i)?(s.css(e,"strokeDasharray",r),(i,c)=>{i.strokeDashoffset=x(t,c)}):s.noop}function E(n,e,t,o){t.length===1&&t.unshift(0);const r=n==="bgy"?"height":"width";o[n]=g(t,a=>s.toPx(a,r,e));const i=["bgx","bgy"].filter(a=>a in o);if(i.length===2&&n==="bgx")return s.noop;if(y(e,"backgroundSize","")==="cover")return Sn(n,e,t,o);const c={};for(const a of i)c[a]=z(e,a);return H(i,c,o)}function Sn(n,e,t,o){const r=Mn(e);if(!r.width)return s.noop;const i={width:e.offsetWidth,height:e.offsetHeight},c=["bgx","bgy"].filter(f=>f in o),a={};for(const f of c){const u=o[f].map(([On])=>On),w=Math.min(...u),N=Math.max(...u),V=u.indexOf(w)<u.indexOf(N),G=N-w;a[f]=`${(V?-G:0)-(V?w:N)}px`,i[f==="bgy"?"height":"width"]+=G}const h=s.Dimensions.cover(r,i);for(const f of c){const u=f==="bgy"?"height":"width",w=h[u]-i[u];a[f]=`max(${z(e,f)},-${w}px) + ${a[f]}`}const l=H(c,a,o);return(f,u)=>{l(f,u),f.backgroundSize=`${h.width}px ${h.height}px`,f.backgroundRepeat="no-repeat"}}function z(n,e){return y(n,`background-position-${e.substr(-1)}`,"")}function H(n,e,t){return function(o,r){for(const i of n){const c=x(t[i],r);o[`background-position-${i.substr(-1)}`]=`calc(${e[i]} + ${c}px)`}}}const F={};function Mn(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(F[e])return F[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{F[e]=P(t),s.trigger(n,s.createEvent("load",!1))},P(t)):F[e]=P(t)}function P(n){return{width:n.naturalWidth,height:n.naturalHeight}}function g(n,e=s.toFloat){const t=[],{length:o}=n;let r=0;for(let i=0;i<o;i++){let[c,a]=s.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(c=e(c),a=a?s.toFloat(a)/100:null,i===0?a===null?a=0:a&&t.push([c,0]):i===o-1&&(a===null?a=1:a!==1&&(t.push([c,a]),a=1)),t.push([c,a]),a===null)r++;else if(r){const h=t[i-r-1][1],l=(a-h)/(r+1);for(let f=r;f>0;f--)t[i-f][1]=h+l*(r-f+1);r=0}}return t}function R(n,e){const t=s.findIndex(n.slice(1),([,o])=>e<=o)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function x(n,e){const[t,o,r]=R(n,e);return t+Math.abs(t-o)*r*(t<o?1:-1)}const Cn=/^-?\d+(?:\.\d+)?(\S+)?/;function S(n,e){var t;for(const o of n){const r=(t=o.match)==null?void 0:t.call(o,Cn);if(r)return r[1]}return e}function y(n,e,t){const o=n.style[e],r=s.css(s.css(n,e,t),e);return n.style[e]=o,r}function D(n,e){return n.reduce((t,o)=>(t[o]=e,t),{})}var q={mixins:[wn],data:{selItem:"!li"},beforeConnect(){this.item=s.query(this.selItem,this.$el)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:o,dir:r}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(L(n,r,e)),c=this.getCss(B(n)?.5:r>0?1:0);s.fastdom.write(()=>{s.css(this.$el,i),s.Transition.start(this.$el,c,t,o).catch(s.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){s.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,dir:t}}){s.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const o=this.getCss(L(n,t,e));s.fastdom.write(()=>s.css(this.$el,o))})}}]};function B(n){return s.endsWith(n,"in")}function L(n,e,t){return t/=2,B(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",q),q});
1
+ /*! UIkit 3.18.1-dev.0856bd8a6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],b):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlideshow_parallax=b(s.UIkit.util))})(this,function(s){"use strict";var b={props:{media:Boolean},data:{media:!1},connected(){const n=K(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function K(n,e){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(e,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function Q(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:In,from:X}=Array;function Y(n){return typeof n=="function"}function M(n){return n!==null&&typeof n=="object"}function Z(n){return M(n)&&n===n.window}function k(n){return A(n)===9}function T(n){return A(n)>=1}function A(n){return!Z(n)&&M(n)&&n.nodeType}function C(n){return typeof n=="string"}function U(n){return n===void 0}function $(n){return d(n)[0]}function d(n){return T(n)?[n]:Array.from(n||[]).filter(T)}function O(n){const e=Object.create(null);return(t,...o)=>e[t]||(e[t]=n(t,...o))}function j(n,e,t){var o;if(M(e)){for(const r in e)j(n,r,e[r]);return}if(U(t))return(o=$(n))==null?void 0:o.getAttribute(e);for(const r of d(n))Y(t)&&(t=t.call(r,j(r,e))),t===null?nn(r,e):r.setAttribute(e,t)}function nn(n,e){d(n).forEach(t=>t.removeAttribute(e))}function W(n){var e;return(e=$(n))==null?void 0:e.parentElement}function tn(n,e){return d(n).filter(t=>_(t,e))}function _(n,e){return d(n).some(t=>t.matches(e))}function en(n,e){n=$(n);const t=n?X(n.children):[];return e?tn(t,e):t}function rn(n,e){return e?d(n).indexOf($(e)):en(W(n)).indexOf(n)}function on(n,e){return d(un(n,$(e),"querySelectorAll"))}const sn=/(^|[^\\],)\s*[!>+~-]/,cn=O(n=>n.match(sn)),an=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,fn=O(n=>n.replace(an,"$1 *"));function un(n,e=document,t){if(!n||!C(n))return n;if(n=fn(n),cn(n)){const o=hn(n);n="";for(let r of o){let i=e;if(r[0]==="!"){const c=r.substr(1).trim().split(" ");if(i=W(e).closest(c[0]),r=c.slice(1).join(" ").trim(),!r.length&&o.length===1)return i}if(r[0]==="-"){const c=r.substr(1).trim().split(" "),a=(i||e).previousElementSibling;i=_(a,r.substr(1))?a:null,r=c.slice(1).join(" ")}i&&(n+=`${n?",":""}${ln(i)} ${r}`)}k(e)||(e=e.ownerDocument)}try{return e[t](n)}catch{return null}}const dn=/.*?[^\\](?![^(]*\))(?:,|$)/g,hn=O(n=>n.match(dn).map(e=>e.replace(/,$/,"").trim()));function ln(n){const e=[];for(;n.parentNode;){const t=j(n,"id");if(t){e.unshift(`#${mn(t)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${rn(n)+1})`),e.unshift(o),n=n.parentNode}}return e.join(" > ")}function mn(n){return C(n)?CSS.escape(n):""}const gn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function bn(n){const e=gn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),$n(t.content.childNodes)}function $n(n){return n.length>1?n:n[0]}function xn(n,e){return yn(n)?d(bn(n)):on(n,e)}function yn(n){return C(n)&&Q(n.trim(),"<")}function wn(n){return Math.ceil(Math.max(0,...xn("[stroke]",n).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const p={x:v,y:v,rotate:v,scale:v,color:I,backgroundColor:I,borderColor:I,blur:m,hue:m,fopacity:m,grayscale:m,invert:m,saturate:m,sepia:m,opacity:Fn,stroke:Sn,bgx:D,bgy:D},{keys:E}=Object;var pn={mixins:[b],props:q(E(p),"list"),data:q(E(p),void 0),computed:{props(n,e){const t={};for(const r in n)r in p&&!s.isUndefined(n[r])&&(t[r]=n[r].slice());const o={};for(const r in t)o[r]=p[r](r,e,t[r],t);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,s.clamp(n));return e.willChange=Object.keys(e).map(s.propName).join(","),e}}};function v(n,e,t){let o=S(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,r=i=>s.toFloat(s.toFloat(i).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=i=>{var c;return S([i])?s.toPx(i,"width",e,!0)/e[`offset${(c=i.endsWith)!=null&&c.call(i,"vh")?"Height":"Width"}`]:s.toFloat(i)}),t.length===1&&t.unshift(n==="scale"?1:0),t=g(t,r),(i,c)=>{i.transform=`${i.transform||""} ${n}(${x(t,c)}${o})`}}function I(n,e,t){return t.length===1&&t.unshift(y(e,n,"")),t=g(t,o=>vn(e,o)),(o,r)=>{const[i,c,a]=R(t,r),h=i.map((l,f)=>(l+=a*(c[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");o[n]=`rgba(${h})`}}function vn(n,e){return y(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function m(n,e,t){t.length===1&&t.unshift(0);const o=S(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=g(t),(r,i)=>{const c=x(t,i);r.filter=`${r.filter||""} ${n}(${c+o})`}}function Fn(n,e,t){return t.length===1&&t.unshift(y(e,n,"")),t=g(t),(o,r)=>{o[n]=x(t,r)}}function Sn(n,e,t){t.length===1&&t.unshift(0);const o=S(t),r=wn(e);return t=g(t.reverse(),i=>(i=s.toFloat(i),o==="%"?i*r/100:i)),t.some(([i])=>i)?(s.css(e,"strokeDasharray",r),(i,c)=>{i.strokeDashoffset=x(t,c)}):s.noop}function D(n,e,t,o){t.length===1&&t.unshift(0);const r=n==="bgy"?"height":"width";o[n]=g(t,a=>s.toPx(a,r,e));const i=["bgx","bgy"].filter(a=>a in o);if(i.length===2&&n==="bgx")return s.noop;if(y(e,"backgroundSize","")==="cover")return Mn(n,e,t,o);const c={};for(const a of i)c[a]=z(e,a);return H(i,c,o)}function Mn(n,e,t,o){const r=Cn(e);if(!r.width)return s.noop;const i={width:e.offsetWidth,height:e.offsetHeight},c=["bgx","bgy"].filter(f=>f in o),a={};for(const f of c){const u=o[f].map(([jn])=>jn),w=Math.min(...u),N=Math.max(...u),G=u.indexOf(w)<u.indexOf(N),J=N-w;a[f]=`${(G?-J:0)-(G?w:N)}px`,i[f==="bgy"?"height":"width"]+=J}const h=s.Dimensions.cover(r,i);for(const f of c){const u=f==="bgy"?"height":"width",w=h[u]-i[u];a[f]=`max(${z(e,f)},-${w}px) + ${a[f]}`}const l=H(c,a,o);return(f,u)=>{l(f,u),f.backgroundSize=`${h.width}px ${h.height}px`,f.backgroundRepeat="no-repeat"}}function z(n,e){return y(n,`background-position-${e.substr(-1)}`,"")}function H(n,e,t){return function(o,r){for(const i of n){const c=x(t[i],r);o[`background-position-${i.substr(-1)}`]=`calc(${e[i]} + ${c}px)`}}}const F={};function Cn(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(F[e])return F[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{F[e]=P(t),s.trigger(n,s.createEvent("load",!1))},P(t)):F[e]=P(t)}function P(n){return{width:n.naturalWidth,height:n.naturalHeight}}function g(n,e=s.toFloat){const t=[],{length:o}=n;let r=0;for(let i=0;i<o;i++){let[c,a]=s.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(c=e(c),a=a?s.toFloat(a)/100:null,i===0?a===null?a=0:a&&t.push([c,0]):i===o-1&&(a===null?a=1:a!==1&&(t.push([c,a]),a=1)),t.push([c,a]),a===null)r++;else if(r){const h=t[i-r-1][1],l=(a-h)/(r+1);for(let f=r;f>0;f--)t[i-f][1]=h+l*(r-f+1);r=0}}return t}function R(n,e){const t=s.findIndex(n.slice(1),([,o])=>e<=o)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function x(n,e){const[t,o,r]=R(n,e);return t+Math.abs(t-o)*r*(t<o?1:-1)}const On=/^-?\d+(?:\.\d+)?(\S+)?/;function S(n,e){var t;for(const o of n){const r=(t=o.match)==null?void 0:t.call(o,On);if(r)return r[1]}return e}function y(n,e,t){const o=n.style[e],r=s.css(s.css(n,e,t),e);return n.style[e]=o,r}function q(n,e){return n.reduce((t,o)=>(t[o]=e,t),{})}var B={mixins:[pn],data:{selItem:"!li"},beforeConnect(){this.item=s.query(this.selItem,this.$el)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:o,dir:r}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(V(n,r,e)),c=this.getCss(L(n)?.5:r>0?1:0);s.fastdom.write(()=>{s.css(this.$el,i),s.Transition.start(this.$el,c,t,o).catch(s.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){s.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,dir:t}}){s.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const o=this.getCss(V(n,t,e));s.fastdom.write(()=>s.css(this.$el,o))})}}]};function L(n){return s.endsWith(n,"in")}function V(n,e,t){return t/=2,L(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",B),B});