uikit 3.16.6 → 3.16.7-dev.fcb5a4616

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 (64) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/README.md +2 -0
  3. package/dist/css/uikit-core-rtl.css +1 -1
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +1 -1
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +2 -2
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +2 -2
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +1 -1
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +5 -414
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +194 -1996
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +205 -1993
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +1 -1
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +3 -248
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +1 -1
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +143 -2429
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +1 -1
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +97 -2383
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +3 -408
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +81 -2367
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +1 -1
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +85 -78
  38. package/dist/js/uikit-core.min.js +1 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +85 -78
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +9 -8
  44. package/src/js/api/app.js +1 -1
  45. package/src/js/api/boot.js +1 -1
  46. package/src/js/api/component.js +1 -1
  47. package/src/js/api/computed.js +1 -1
  48. package/src/js/api/events.js +1 -1
  49. package/src/js/api/global.js +43 -43
  50. package/src/js/api/index.js +5 -5
  51. package/src/js/api/instance.js +42 -41
  52. package/src/js/api/observables.js +1 -1
  53. package/src/js/api/observer.js +9 -1
  54. package/src/js/api/options.js +1 -1
  55. package/src/js/api/props.js +1 -1
  56. package/src/js/api/state.js +1 -1
  57. package/src/js/api/update.js +1 -1
  58. package/src/js/api/watch.js +1 -1
  59. package/src/less/components/dropdown.less +1 -1
  60. package/src/less/theme/dropdown.less +2 -0
  61. package/src/scss/components/dropdown.scss +1 -1
  62. package/src/scss/theme/dropdown.scss +2 -0
  63. package/src/scss/variables-theme.scss +2 -2
  64. package/src/scss/variables.scss +1 -1
@@ -1 +1 @@
1
- /*! UIkit 3.16.6 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(r,G){typeof exports=="object"&&typeof module<"u"?module.exports=G(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox_panel",["uikit-util"],G):(r=typeof globalThis<"u"?globalThis:r||self,r.UIkitLightbox_panel=G(r.UIkit.util))})(this,function(r){"use strict";var G={slide:{show(t){return[{transform:It(t*-100)},{transform:It()}]},percent(t){return Gn(t)},translate(t,e){return[{transform:It(e*-100*t)},{transform:It(e*100*(1-t))}]}}};function Gn(t){return Math.abs(r.css(t,"transform").split(",")[4]/t.offsetWidth)||0}function It(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function Ct(t){return`scale3d(${t}, ${t}, 1)`}var Ae={...G,fade:{show(){return[{opacity:0},{opacity:1}]},percent(t){return 1-r.css(t,"opacity")},translate(t){return[{opacity:1-t},{opacity:t}]}},scale:{show(){return[{opacity:0,transform:Ct(1-.2)},{opacity:1,transform:Ct(1)}]},percent(t){return 1-r.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:Ct(1-.2*t)},{opacity:t,transform:Ct(1-.2+.2*t)}]}}},Kn={connected(){r.addClass(this.$el,this.$options.id)}},Zn={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&r.$(t)}}},Qn={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglabe-enter",clsLeave:"uk-togglabe-leave"},computed:{hasAnimation({animation:t}){return!!t[0]},hasTransition({animation:t}){return["slide","reveal"].some(e=>r.startsWith(t[0],e))}},methods:{toggleElement(t,e,n){return new Promise(o=>Promise.all(r.toNodes(t).map(s=>{const i=r.isBoolean(e)?e:!this.isToggled(s);if(!r.trigger(s,`before${i?"show":"hide"}`,[this]))return Promise.reject();const c=(r.isFunction(n)?n:n===!1||!this.hasAnimation?Vn:this.hasTransition?kn:Un)(s,i,this),a=i?this.clsEnter:this.clsLeave;r.addClass(s,a),r.trigger(s,i?"show":"hide",[this]);const u=()=>{r.removeClass(s,a),r.trigger(s,i?"shown":"hidden",[this])};return c?c.then(u,()=>(r.removeClass(s,a),Promise.reject())):u()})).then(o,r.noop))},isToggled(t=this.$el){return[t]=r.toNodes(t),r.hasClass(t,this.clsEnter)?!0:r.hasClass(t,this.clsLeave)?!1:this.cls?r.hasClass(t,this.cls.split(" ")[0]):r.isVisible(t)},_toggle(t,e){if(!t)return;e=Boolean(e);let n;this.cls?(n=r.includes(this.cls," ")||e!==r.hasClass(t,this.cls),n&&r.toggleClass(t,this.cls,r.includes(this.cls," ")?void 0:e)):(n=e===t.hidden,n&&(t.hidden=!e)),r.$$("[autofocus]",t).some(o=>r.isVisible(o)?o.focus()||!0:o.blur()),n&&r.trigger(t,"toggled",[e,this])}}};function Vn(t,e,{_toggle:n}){return r.Animation.cancel(t),r.Transition.cancel(t),n(t,e)}async function kn(t,e,{animation:n,duration:o,velocity:s,transition:i,_toggle:c}){var a;const[u="reveal",f="top"]=((a=n[0])==null?void 0:a.split("-"))||[],h=[["left","right"],["top","bottom"]],l=h[r.includes(h[0],f)?0:1],v=l[1]===f,x=["width","height"][h.indexOf(l)],_=`margin-${l[0]}`,y=`margin-${f}`;let yt=r.dimensions(t)[x];const wr=r.Transition.inProgress(t);await r.Transition.cancel(t),e&&c(t,!0);const $r=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",_,y].map(Jn=>[Jn,t.style[Jn]])),xt=r.dimensions(t),Te=r.toFloat(r.css(t,_)),qn=r.toFloat(r.css(t,y)),J=xt[x]+qn;!wr&&!e&&(yt+=qn);const[jt]=r.wrapInner(t,"<div>");r.css(jt,{boxSizing:"border-box",height:xt.height,width:xt.width,...r.css(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",y])}),r.css(t,{padding:0,border:0,minWidth:0,minHeight:0,[y]:0,width:xt.width,height:xt.height,overflow:"hidden",[x]:yt});const Xn=yt/J;o=(s*J+o)*(e?1-Xn:Xn);const Yn={[x]:e?J:0};v&&(r.css(t,_,J-yt+Te),Yn[_]=e?Te:J+Te),!v^u==="reveal"&&(r.css(jt,_,-J+yt),r.Transition.start(jt,{[_]:e?0:-J},o,i));try{await r.Transition.start(t,Yn,o,i)}finally{r.css(t,$r),r.unwrap(jt.firstChild),e||c(t,!1)}}function Un(t,e,n){r.Animation.cancel(t);const{animation:o,duration:s,_toggle:i}=n;return e?(i(t,!0),r.Animation.in(t,o[0],s,n.origin)):r.Animation.out(t,o[1]||o[0],s,n.origin).then(()=>i(t,!1))}const{hasOwnProperty:to,toString:eo}=Object.prototype;function L(t,e){return to.call(t,e)}const no=/\B([A-Z])/g,rt=N(t=>t.replace(no,"-$1").toLowerCase()),oo=/-(\w)/g,it=N(t=>(t.charAt(0).toLowerCase()+t.slice(1)).replace(oo,(e,n)=>n.toUpperCase())),z=N(t=>t.charAt(0).toUpperCase()+t.slice(1));function B(t,e){var n;return(n=t==null?void 0:t.startsWith)==null?void 0:n.call(t,e)}function so(t,e){var n;return(n=t==null?void 0:t.endsWith)==null?void 0:n.call(t,e)}function K(t,e){var n;return(n=t==null?void 0:t.includes)==null?void 0:n.call(t,e)}function Pe(t,e){var n;return(n=t==null?void 0:t.findIndex)==null?void 0:n.call(t,e)}const{isArray:I,from:ro}=Array,{assign:zt}=Object;function A(t){return typeof t=="function"}function R(t){return t!==null&&typeof t=="object"}function F(t){return eo.call(t)==="[object Object]"}function Z(t){return R(t)&&t===t.window}function _t(t){return Ht(t)===9}function Bt(t){return Ht(t)>=1}function ct(t){return Ht(t)===1}function Ht(t){return!Z(t)&&R(t)&&t.nodeType}function Oe(t){return typeof t=="boolean"}function w(t){return typeof t=="string"}function Wt(t){return typeof t=="number"}function Et(t){return Wt(t)||w(t)&&!isNaN(t-parseFloat(t))}function Se(t){return!(I(t)?t.length:R(t)&&Object.keys(t).length)}function E(t){return t===void 0}function qt(t){return Oe(t)?t:t==="true"||t==="1"||t===""?!0:t==="false"||t==="0"?!1:t}function at(t){const e=Number(t);return isNaN(e)?!1:e}function C(t){return parseFloat(t)||0}function g(t){return p(t)[0]}function p(t){return Bt(t)?[t]:Array.from(t||[]).filter(Bt)}function Q(t){if(Z(t))return t;t=g(t);const e=_t(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function Xt(t,e){return t===e||R(t)&&R(e)&&Object.keys(t).length===Object.keys(e).length&&Tt(t,(n,o)=>n===e[o])}function io(t,e,n){return t.replace(new RegExp(`${e}|${n}`,"g"),o=>o===e?n:e)}function Ne(t){return t[t.length-1]}function Tt(t,e){for(const n in t)if(e(t[n],n)===!1)return!1;return!0}function Me(t,e){return t.slice().sort(({[e]:n=0},{[e]:o=0})=>n>o?1:o>n?-1:0)}function Yt(t,e){return t.reduce((n,o)=>n+C(A(e)?e(o):o[e]),0)}function co(t,e){const n=new Set;return t.filter(({[e]:o})=>n.has(o)?!1:n.add(o))}function ao(t,e){return e.reduce((n,o)=>({...n,[o]:t[o]}),{})}function V(t,e=0,n=1){return Math.min(Math.max(at(t)||0,e),n)}function At(){}function De(...t){return[["bottom","top"],["right","left"]].every(([e,n])=>Math.min(...t.map(({[e]:o})=>o))-Math.max(...t.map(({[n]:o})=>o))>0)}function Jt(t,e){return t.x<=e.right&&t.x>=e.left&&t.y<=e.bottom&&t.y>=e.top}function Gt(t,e,n){const o=e==="width"?"height":"width";return{[o]:t[e]?Math.round(n*t[o]/t[e]):t[o],[e]:n}}function Le(t,e){t={...t};for(const n in t)t=t[n]>e[n]?Gt(t,n,e[n]):t;return t}function uo(t,e){t=Le(t,e);for(const n in t)t=t[n]<e[n]?Gt(t,n,e[n]):t;return t}const fo={ratio:Gt,contain:Le,cover:uo};function ho(t,e,n=0,o=!1){e=p(e);const{length:s}=e;return s?(t=Et(t)?at(t):t==="next"?n+1:t==="previous"?n-1:t==="last"?s-1:e.indexOf(g(t)),o?V(t,0,s-1):(t%=s,t<0?t+s:t)):-1}function N(t){const e=Object.create(null);return n=>e[n]||(e[n]=t(n))}class lo{constructor(){this.promise=new Promise((e,n)=>{this.reject=n,this.resolve=e})}}function H(t,e,n){var o;if(R(e)){for(const s in e)H(t,s,e[s]);return}if(E(n))return(o=g(t))==null?void 0:o.getAttribute(e);for(const s of p(t))A(n)&&(n=n.call(s,H(s,e))),n===null?Fe(s,e):s.setAttribute(e,n)}function Re(t,e){return p(t).some(n=>n.hasAttribute(e))}function Fe(t,e){p(t).forEach(n=>n.removeAttribute(e))}function Kt(t,e){for(const n of[e,`data-${e}`])if(Re(t,n))return H(t,n)}const po={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function mo(t){return p(t).some(e=>po[e.tagName.toLowerCase()])}function Pt(t){return p(t).some(e=>e.offsetWidth||e.offsetHeight||e.getClientRects().length)}const Zt="input,select,textarea,button";function go(t){return p(t).some(e=>k(e,Zt))}const je=`${Zt},a[href],[tabindex]`;function vo(t){return k(t,je)}function ut(t){var e;return(e=g(t))==null?void 0:e.parentElement}function ze(t,e){return p(t).filter(n=>k(n,e))}function k(t,e){return p(t).some(n=>n.matches(e))}function ft(t,e){return ct(t)?t.closest(B(e,">")?e.slice(1):e):p(t).map(n=>ft(n,e)).filter(Boolean)}function Ot(t,e){return w(e)?!!ft(t,e):g(e).contains(g(t))}function Qt(t,e){const n=[];for(;t=ut(t);)(!e||k(t,e))&&n.push(t);return n}function Be(t,e){t=g(t);const n=t?p(t.children):[];return e?ze(n,e):n}function He(t,e){return e?p(t).indexOf(g(e)):Be(ut(t)).indexOf(t)}function We(t){return t=g(t),t&&["origin","pathname","search"].every(e=>t[e]===location[e])}function bo(t){if(We(t)){t=g(t);const e=decodeURIComponent(t.hash).substring(1);return document.getElementById(e)||document.getElementsByName(e)[0]}}function wo(t,e){return Vt(t,Xe(t,e))}function $o(t,e){return ht(t,Xe(t,e))}function Vt(t,e){return g(Ye(t,g(e),"querySelector"))}function ht(t,e){return p(Ye(t,g(e),"querySelectorAll"))}const yo=/(^|[^\\],)\s*[!>+~-]/,qe=N(t=>t.match(yo));function Xe(t,e=document){return w(t)&&qe(t)||_t(e)?e:e.ownerDocument}const xo=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Io=N(t=>t.replace(xo,"$1 *"));function Ye(t,e=document,n){if(!t||!w(t))return t;if(t=Io(t),qe(t)){const o=_o(t);t="";for(let s of o){let i=e;if(s[0]==="!"){const c=s.substr(1).trim().split(" ");if(i=ft(ut(e),c[0]),s=c.slice(1).join(" ").trim(),!s.length&&o.length===1)return i}if(s[0]==="-"){const c=s.substr(1).trim().split(" "),a=(i||e).previousElementSibling;i=k(a,s.substr(1))?a:null,s=c.slice(1).join(" ")}i&&(t+=`${t?",":""}${Eo(i)} ${s}`)}e=document}try{return e[n](t)}catch{return null}}const Co=/.*?[^\\](?:,|$)/g,_o=N(t=>t.match(Co).map(e=>e.replace(/,$/,"").trim()));function Eo(t){const e=[];for(;t.parentNode;){const n=H(t,"id");if(n){e.unshift(`#${Je(n)}`);break}else{let{tagName:o}=t;o!=="HTML"&&(o+=`:nth-child(${He(t)+1})`),e.unshift(o),t=t.parentNode}}return e.join(" > ")}function Je(t){return w(t)?CSS.escape(t):""}function j(...t){let[e,n,o,s,i=!1]=kt(t);s.length>1&&(s=Ao(s)),i!=null&&i.self&&(s=Po(s)),o&&(s=To(o,s));for(const c of n)for(const a of e)a.addEventListener(c,s,i);return()=>Ge(e,n,s,i)}function Ge(...t){let[e,n,,o,s=!1]=kt(t);for(const i of n)for(const c of e)c.removeEventListener(i,o,s)}function U(...t){const[e,n,o,s,i=!1,c]=kt(t),a=j(e,n,o,u=>{const f=!c||c(u);f&&(a(),s(u,f))},i);return a}function W(t,e,n){return Ut(t).every(o=>o.dispatchEvent(Ke(e,!0,!0,n)))}function Ke(t,e=!0,n=!1,o){return w(t)&&(t=new CustomEvent(t,{bubbles:e,cancelable:n,detail:o})),t}function kt(t){return t[0]=Ut(t[0]),w(t[1])&&(t[1]=t[1].split(" ")),A(t[2])&&t.splice(2,0,!1),t}function To(t,e){return n=>{const o=t[0]===">"?ht(t,n.currentTarget).reverse().filter(s=>Ot(n.target,s))[0]:ft(n.target,t);o&&(n.current=o,e.call(this,n),delete n.current)}}function Ao(t){return e=>I(e.detail)?t(e,...e.detail):t(e)}function Po(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function Ze(t){return t&&"addEventListener"in t}function Oo(t){return Ze(t)?t:g(t)}function Ut(t){return I(t)?t.map(Oo).filter(Boolean):w(t)?ht(t):Ze(t)?[t]:p(t)}function So(t){return t.pointerType==="touch"||!!t.touches}function Qe(t){var e,n;const{clientX:o,clientY:s}=((e=t.touches)==null?void 0:e[0])||((n=t.changedTouches)==null?void 0:n[0])||t;return{x:o,y:s}}const No={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function d(t,e,n,o){const s=p(t);for(const i of s)if(w(e)){if(e=te(e),E(n))return getComputedStyle(i).getPropertyValue(e);i.style.setProperty(e,Et(n)&&!No[e]?`${n}px`:n||Wt(n)?n:"",o)}else if(I(e)){const c={};for(const a of e)c[a]=d(i,a);return c}else R(e)&&(o=n,Tt(e,(c,a)=>d(i,a,c,o)));return s[0]}const te=N(t=>Mo(t));function Mo(t){if(B(t,"--"))return t;t=rt(t);const{style:e}=document.documentElement;if(t in e)return t;for(const n of["webkit","moz"]){const o=`-${n}-${t}`;if(o in e)return o}}function Do(t){if(document.readyState!=="loading"){t();return}U(document,"DOMContentLoaded",t)}function ee(t,...e){return e.some(n=>{var o;return((o=t==null?void 0:t.tagName)==null?void 0:o.toLowerCase())===n.toLowerCase()})}function Ve(t){return t=q(t),t.innerHTML="",t}function Lo(t,e){return E(e)?q(t).innerHTML:lt(Ve(t),e)}const Ro=St("prepend"),lt=St("append"),ke=St("before"),Fo=St("after");function St(t){return function(e,n){var o;const s=p(w(n)?Nt(n):n);return(o=q(e))==null||o[t](...s),tn(s)}}function ne(t){p(t).forEach(e=>e.remove())}function Ue(t,e){for(e=g(ke(t,e));e.firstChild;)e=e.firstChild;return lt(e,t),e}function jo(t,e){return p(p(t).map(n=>n.hasChildNodes()?Ue(p(n.childNodes),e):lt(n,e)))}function zo(t){p(t).map(ut).filter((e,n,o)=>o.indexOf(e)===n).forEach(e=>e.replaceWith(...e.childNodes))}const Bo=/^\s*<(\w+|!)[^>]*>/,Ho=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Nt(t){const e=Ho.exec(t);if(e)return document.createElement(e[1]);const n=document.createElement("div");return Bo.test(t)?n.insertAdjacentHTML("beforeend",t.trim()):n.textContent=t,tn(n.childNodes)}function tn(t){return t.length>1?t:t[0]}function oe(t,e){if(ct(t))for(e(t),t=t.firstElementChild;t;){const n=t.nextElementSibling;oe(t,e),t=n}}function q(t,e){return nn(t)?g(Nt(t)):Vt(t,e)}function en(t,e){return nn(t)?p(Nt(t)):ht(t,e)}function nn(t){return w(t)&&B(t.trim(),"<")}const X={width:["left","right"],height:["top","bottom"]};function se(t){const e=ct(t)?g(t).getBoundingClientRect():{height:sn(t),width:Mt(t),top:0,left:0};return{height:e.height,width:e.width,top:e.top,left:e.left,bottom:e.top+e.height,right:e.left+e.width}}function O(t,e){const n=se(t);if(t){const{scrollY:s,scrollX:i}=Q(t),c={height:s,width:i};for(const a in X)for(const u of X[a])n[u]+=c[a]}if(!e)return n;const o=d(t,"position");Tt(d(t,["left","top"]),(s,i)=>d(t,i,e[i]-n[i]+C(o==="absolute"&&s==="auto"?on(t)[i]:s)))}function on(t){let{top:e,left:n}=O(t);const{ownerDocument:{body:o,documentElement:s},offsetParent:i}=g(t);let c=i||s;for(;c&&(c===o||c===s)&&d(c,"position")==="static";)c=c.parentNode;if(ct(c)){const a=O(c);e-=a.top+C(d(c,"borderTopWidth")),n-=a.left+C(d(c,"borderLeftWidth"))}return{top:e-C(d(t,"marginTop")),left:n-C(d(t,"marginLeft"))}}function re(t){t=g(t);const e=[t.offsetTop,t.offsetLeft];for(;t=t.offsetParent;)if(e[0]+=t.offsetTop+C(d(t,"borderTopWidth")),e[1]+=t.offsetLeft+C(d(t,"borderLeftWidth")),d(t,"position")==="fixed"){const n=Q(t);return e[0]+=n.scrollY,e[1]+=n.scrollX,e}return e}const sn=rn("height"),Mt=rn("width");function rn(t){const e=z(t);return(n,o)=>{if(E(o)){if(Z(n))return n[`inner${e}`];if(_t(n)){const s=n.documentElement;return Math.max(s[`offset${e}`],s[`scroll${e}`])}return n=g(n),o=d(n,t),o=o==="auto"?n[`offset${e}`]:C(o)||0,o-ie(n,t)}else return d(n,t,!o&&o!==0?"":+o+ie(n,t)+"px")}}function ie(t,e,n="border-box"){return d(t,"boxSizing")===n?Yt(X[e].map(z),o=>C(d(t,`padding${o}`))+C(d(t,`border${o}Width`))):0}function Wo(t){for(const e in X)for(const n in X[e])if(X[e][n]===t)return X[e][1-n];return t}function qo(t,e="width",n=window,o=!1){return w(t)?Yt(Yo(t),s=>{const i=Go(s);return i?Ko(i==="vh"?Zo():i==="vw"?Mt(Q(n)):o?n[`offset${z(e)}`]:se(n)[e],s):s}):C(t)}const Xo=/-?\d+(?:\.\d+)?(?:v[wh]|%|px)?/g,Yo=N(t=>t.toString().replace(/\s/g,"").match(Xo)||[]),Jo=/(?:v[hw]|%)$/,Go=N(t=>(t.match(Jo)||[])[0]);function Ko(t,e){return t*C(e)/100}let dt,tt;function Zo(){return dt||(tt||(tt=q("<div>"),d(tt,{height:"100vh",position:"fixed"}),j(window,"resize",()=>dt=null)),lt(document.body,tt),dt=tt.clientHeight,ne(tt),dt)}function Qo(t,e=0,n=0){return Pt(t)?De(...ce(t).map(o=>{const{top:s,left:i,bottom:c,right:a}=M(o);return{top:s-e,left:i-n,bottom:c+e,right:a+n}}).concat(O(t))):!1}function Vo(t,{offset:e=0}={}){const n=Pt(t)?pt(t,!1,["hidden"]):[];return n.reduce((c,a,u)=>{const{scrollTop:f,scrollHeight:h,offsetHeight:l}=a,v=M(a),b=h-v.height,{height:x,top:_}=n[u-1]?M(n[u-1]):O(t);let y=Math.ceil(_-v.top-e+f);return e>0&&l<x+e?y+=e:e=0,y>b?(e-=y-b,y=b):y<0&&(e-=y,y=0),()=>o(a,y-f).then(c)},()=>Promise.resolve())();function o(c,a){return new Promise(u=>{const f=c.scrollTop,h=s(Math.abs(a)),l=Date.now();(function v(){const b=i(V((Date.now()-l)/h));c.scrollTop=f+a*b,b===1?u():requestAnimationFrame(v)})()})}function s(c){return 40*Math.pow(c,.375)}function i(c){return .5*(1-Math.cos(Math.PI*c))}}function ko(t,e=0,n=0){if(!Pt(t))return 0;const[o]=pt(t,!0),{scrollHeight:s,scrollTop:i}=o,{height:c}=M(o),a=s-c,u=re(t)[0]-re(o)[0],f=Math.max(0,u-c+e),h=Math.min(a,u+t.offsetHeight-n);return V((i-f)/(h-f))}function pt(t,e=!1,n=[]){const o=cn(t);let s=Qt(t).reverse();s=s.slice(s.indexOf(o)+1);const i=Pe(s,c=>d(c,"position")==="fixed");return~i&&(s=s.slice(i)),[o].concat(s.filter(c=>d(c,"overflow").split(" ").some(a=>K(["auto","scroll",...n],a))&&(!e||c.scrollHeight>M(c).height))).reverse()}function ce(t){return pt(t,!1,["hidden","clip"])}function M(t){const e=Q(t),{visualViewport:n,document:{documentElement:o}}=e;let s=t===cn(t)?e:t;if(Z(s)&&n){let{height:c,width:a,scale:u,pageTop:f,pageLeft:h}=n;return c=Math.round(c*u),a=Math.round(a*u),{height:c,width:a,top:f,left:h,bottom:f+c,right:h+a}}let i=O(s);if(d(s,"display")==="inline")return i;for(let[c,a,u,f]of[["width","x","left","right"],["height","y","top","bottom"]])Z(s)?s=o:i[u]+=C(d(s,`border-${u}-width`)),i[c]=i[a]=s[`client${z(c)}`],i[f]=i[c]+i[u];return i}function cn(t){return Q(t).document.scrollingElement}let ae;function Uo(t){const e=j(t,"touchmove",o=>{if(o.targetTouches.length!==1)return;let[{scrollHeight:s,clientHeight:i}]=pt(o.target);i>=s&&o.cancelable&&o.preventDefault()},{passive:!1});if(ae)return e;ae=!0;const{scrollingElement:n}=document;return d(n,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:Mt(window)-n.clientWidth||""}),()=>{ae=!1,e(),d(n,{overflowY:"",touchAction:"",paddingRight:""})}}const T=[];var ts={mixins:[Kn,Zn,Qn],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel({selPanel:t},e){return r.$(t,e)},transitionElement(){return this.panel},bgClose({bgClose:t}){return t&&this.panel}},connected(){r.attr(this.panel||this.$el,"role",this.role),this.overlay&&r.attr(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){r.includes(T,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return`${this.selClose},a[href*="#"]`},handler(t){const{current:e,defaultPrevented:n}=t,{hash:o}=e;!n&&o&&r.isSameSiteAnchor(e)&&!r.within(o,this.$el)&&r.$(o,document.body)?this.hide():r.matches(e,this.selClose)&&(t.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(t){t.defaultPrevented||(t.preventDefault(),this.isToggled()===r.includes(T,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(r.includes(T,this))return!1;!this.stack&&T.length?(Promise.all(T.map(e=>e.hide())).then(this.show),t.preventDefault()):T.push(this)}},{name:"show",self:!0,handler(){this.stack&&r.css(this.$el,"zIndex",r.toFloat(r.css(this.$el,"zIndex"))+T.length);const t=[this.overlay&&ns(this),this.overlay&&Uo(this.$el),this.bgClose&&os(this),this.escClose&&ss(this)];r.once(this.$el,"hidden",()=>t.forEach(e=>e&&e()),{self:!0}),r.addClass(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){r.isFocusable(this.$el)||r.attr(this.$el,"tabindex","-1"),r.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){r.includes(T,this)&&T.splice(T.indexOf(this),1),r.css(this.$el,"zIndex",""),T.some(t=>t.clsPage===this.clsPage)||r.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&r.parent(this.$el)!==this.container?(r.append(this.container,this.$el),new Promise(t=>requestAnimationFrame(()=>this.show().then(t)))):this.toggleElement(this.$el,!0,an)},hide(){return this.toggleElement(this.$el,!1,an)}}};function an(t,e,{transitionElement:n,_toggle:o}){return new Promise((s,i)=>r.once(t,"show hide",()=>{var c;(c=t._reject)==null||c.call(t),t._reject=i,o(t,e);const a=r.once(n,"transitionstart",()=>{r.once(n,"transitionend transitioncancel",s,{self:!0}),clearTimeout(u)},{self:!0}),u=setTimeout(()=>{a(),s()},es(r.css(n,"transitionDuration")))})).then(()=>delete t._reject)}function es(t){return t?r.endsWith(t,"ms")?r.toFloat(t):r.toFloat(t)*1e3:0}function ns(t){return r.on(document,"focusin",e=>{r.last(T)===t&&!r.within(e.target,t.$el)&&t.$el.focus()})}function os(t){return r.on(document,r.pointerDown,({target:e})=>{r.last(T)!==t||t.overlay&&!r.within(e,t.$el)||r.within(e,t.panel)||r.once(document,`${r.pointerUp} ${r.pointerCancel} scroll`,({defaultPrevented:n,type:o,target:s})=>{!n&&o===r.pointerUp&&e===s&&t.hide()},!0)})}function ss(t){return r.on(document,"keydown",e=>{e.keyCode===27&&r.last(T)===t&&t.hide()})}function rs(t,e,n,{animation:o,easing:s}){const{percent:i,translate:c,show:a=r.noop}=o,u=a(n),f=new r.Deferred;return{dir:n,show(h,l=0,v){const b=v?"linear":s;return h-=Math.round(h*r.clamp(l,-1,1)),this.translate(l),Dt(e,"itemin",{percent:l,duration:h,timing:b,dir:n}),Dt(t,"itemout",{percent:1-l,duration:h,timing:b,dir:n}),Promise.all([r.Transition.start(e,u[1],h,b),r.Transition.start(t,u[0],h,b)]).then(()=>{this.reset(),f.resolve()},r.noop),f.promise},cancel(){r.Transition.cancel([e,t])},reset(){for(const h in u[0])r.css([e,t],h,"")},forward(h,l=this.percent()){return r.Transition.cancel([e,t]),this.show(h,l,!0)},translate(h){this.reset();const l=c(h,n);r.css(e,l[1]),r.css(t,l[0]),Dt(e,"itemtranslatein",{percent:h,dir:n}),Dt(t,"itemtranslateout",{percent:1-h,dir:n})},percent(){return i(t||e,e,n)},getDistance(){return t==null?void 0:t.offsetWidth}}}function Dt(t,e,n){r.trigger(t,r.createEvent(e,!1,!1,n))}var is={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var n,o,s;let i=0;return((s=((n=this.i18n)==null?void 0:n[t])||((o=this.$options.i18n)==null?void 0:o[t]))==null?void 0:s.replace(/%s/g,()=>e[i++]||""))||""}}};const D={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};function et(t,...e){hn(t,e,"add")}function ue(t,...e){hn(t,e,"remove")}function un(t,e){H(t,"class",n=>(n||"").replace(new RegExp(`\\b${e}\\b\\s?`,"g"),""))}function cs(t,...e){e[0]&&ue(t,e[0]),e[1]&&et(t,e[1])}function fn(t,e){return[e]=fe(e),!!e&&p(t).some(n=>n.classList.contains(e))}function as(t,e,n){const o=fe(e);E(n)||(n=!!n);for(const s of p(t))for(const i of o)s.classList.toggle(i,n)}function hn(t,e,n){e=e.reduce((o,s)=>o.concat(fe(s)),[]);for(const o of p(t))o.classList[n](...e)}function fe(t){return String(t).split(/[ ,]/).filter(Boolean)}function us(t,e,n=400,o="linear"){return n=Math.round(n),Promise.all(p(t).map(s=>new Promise((i,c)=>{for(const u in e){const f=d(s,u);f===""&&d(s,u,f)}const a=setTimeout(()=>W(s,"transitionend"),n);U(s,"transitionend transitioncanceled",({type:u})=>{clearTimeout(a),ue(s,"uk-transition"),d(s,{transitionProperty:"",transitionDuration:"",transitionTimingFunction:""}),u==="transitioncanceled"?c():i(s)},{self:!0}),et(s,"uk-transition"),d(s,{transitionProperty:Object.keys(e).map(te).join(","),transitionDuration:`${n}ms`,transitionTimingFunction:o,...e})})))}const fs={start:us,async stop(t){W(t,"transitionend"),await Promise.resolve()},async cancel(t){W(t,"transitioncanceled"),await Promise.resolve()},inProgress(t){return fn(t,"uk-transition")}},mt="uk-animation-";function ln(t,e,n=200,o,s){return Promise.all(p(t).map(i=>new Promise((c,a)=>{W(i,"animationcanceled");const u=setTimeout(()=>W(i,"animationend"),n);U(i,"animationend animationcanceled",({type:f})=>{clearTimeout(u),f==="animationcanceled"?a():c(i),d(i,"animationDuration",""),un(i,`${mt}\\S*`)},{self:!0}),d(i,"animationDuration",`${n}ms`),et(i,e,mt+(s?"leave":"enter")),B(e,mt)&&(o&&et(i,`uk-transform-origin-${o}`),s&&et(i,`${mt}reverse`))})))}const hs=new RegExp(`${mt}(enter|leave)`),ls={in:ln,out(t,e,n,o){return ln(t,e,n,o,!0)},inProgress(t){return hs.test(H(t,"class"))},cancel(t){W(t,"animationcanceled")}},gt=typeof window<"u",ds=gt&&document.dir==="rtl",nt=gt&&"ontouchstart"in window,ot=gt&&window.PointerEvent,ps=ot?"pointerdown":nt?"touchstart":"mousedown",ms=ot?"pointermove":nt?"touchmove":"mousemove",gs=ot?"pointerup":nt?"touchend":"mouseup",vs=ot?"pointerenter":nt?"":"mouseenter",bs=ot?"pointerleave":nt?"":"mouseleave",ws=ot?"pointercancel":"touchcancel",S={reads:[],writes:[],read(t){return this.reads.push(t),le(),t},write(t){return this.writes.push(t),le(),t},clear(t){pn(this.reads,t),pn(this.writes,t)},flush:he};function he(t){dn(S.reads),dn(S.writes.splice(0)),S.scheduled=!1,(S.reads.length||S.writes.length)&&le(t+1)}const $s=4;function le(t){S.scheduled||(S.scheduled=!0,t&&t<$s?Promise.resolve().then(()=>he(t)):requestAnimationFrame(()=>he(1)))}function dn(t){let e;for(;e=t.shift();)try{e()}catch(n){console.error(n)}}function pn(t,e){const n=t.indexOf(e);return~n&&t.splice(n,1)}function mn(){}mn.prototype={positions:[],init(){this.positions=[];let t;this.unbind=j(document,"mousemove",e=>t=Qe(e)),this.interval=setInterval(()=>{t&&(this.positions.push(t),this.positions.length>5&&this.positions.shift())},50)},cancel(){var t;(t=this.unbind)==null||t.call(this),clearInterval(this.interval)},movesTo(t){if(this.positions.length<2)return!1;const e=t.getBoundingClientRect(),{left:n,right:o,top:s,bottom:i}=e,[c]=this.positions,a=Ne(this.positions),u=[c,a];return Jt(a,e)?!1:[[{x:n,y:s},{x:o,y:i}],[{x:n,y:i},{x:o,y:s}]].some(h=>{const l=ys(u,h);return l&&Jt(l,e)})}};function ys([{x:t,y:e},{x:n,y:o}],[{x:s,y:i},{x:c,y:a}]){const u=(a-i)*(n-t)-(c-s)*(o-e);if(u===0)return!1;const f=((c-s)*(e-i)-(a-i)*(t-s))/u;return f<0?!1:{x:t+f*(n-t),y:e+f*(o-e)}}function xs(t,e,n={},o=!0){const s=new IntersectionObserver(o?(i,c)=>{i.some(a=>a.isIntersecting)&&e(i,c)}:e,n);for(const i of p(t))s.observe(i);return s}const Is=gt&&window.ResizeObserver;function gn(t,e,n={box:"border-box"}){return Is?vn(ResizeObserver,t,e,n):(Cs(),vt.add(e),{observe:At,unobserve:At,disconnect(){vt.delete(e)}})}let vt;function Cs(){if(vt)return;vt=new Set;let t;const e=()=>{if(!t){t=!0,requestAnimationFrame(()=>t=!1);for(const n of vt)n()}};j(window,"load resize",e),j(document,"loadedmetadata load",e,!0)}function _s(t,e,n){return vn(MutationObserver,t,e,n)}function vn(t,e,n,o){const s=new t(n);for(const i of p(e))s.observe(i,o);return s}function Es(t){if(Rt(t)&&de(t,{func:"playVideo",method:"play"}),Lt(t))try{t.play().catch(At)}catch{}}function Ts(t){Rt(t)&&de(t,{func:"pauseVideo",method:"pause"}),Lt(t)&&t.pause()}function As(t){Rt(t)&&de(t,{func:"mute",method:"setVolume",value:0}),Lt(t)&&(t.muted=!0)}function Ps(t){return Lt(t)||Rt(t)}function Lt(t){return ee(t,"video")}function Rt(t){return ee(t,"iframe")&&(bn(t)||wn(t))}function bn(t){return!!t.src.match(/\/\/.*?youtube(-nocookie)?\.[a-z]+\/(watch\?v=[^&\s]+|embed)|youtu\.be\/.*/)}function wn(t){return!!t.src.match(/vimeo\.com\/video\/.*/)}async function de(t,e){await Ss(t),$n(t,e)}function $n(t,e){try{t.contentWindow.postMessage(JSON.stringify({event:"command",...e}),"*")}catch{}}const pe="_ukPlayer";let Os=0;function Ss(t){if(t[pe])return t[pe];const e=bn(t),n=wn(t),o=++Os;let s;return t[pe]=new Promise(i=>{e&&U(t,"load",()=>{const c=()=>$n(t,{event:"listening",id:o});s=setInterval(c,100),c()}),U(window,"message",i,!1,({data:c})=>{try{return c=JSON.parse(c),e&&(c==null?void 0:c.id)===o&&c.event==="onReady"||n&&Number(c==null?void 0:c.player_id)===o}catch{}}),t.src=`${t.src}${K(t.src,"?")?"&":"?"}${e?"enablejsapi=1":`api=1&player_id=${o}`}`}).then(()=>clearInterval(s))}const P=[["width","x","left","right"],["height","y","top","bottom"]];function Ns(t,e,n){n={attach:{element:["left","top"],target:["left","top"],...n.attach},offset:[0,0],placement:[],...n},I(e)||(e=[e,e]),O(t,yn(t,e,n))}function yn(t,e,n){const o=xn(t,e,n),{boundary:s,viewportOffset:i=0,placement:c}=n;let a=o;for(const[u,[f,,h,l]]of Object.entries(P)){const v=Ms(t,e[u],i,s,u);if(Ft(o,v,u))continue;let b=0;if(c[u]==="flip"){const x=n.attach.target[u];if(x===l&&o[l]<=v[l]||x===h&&o[h]>=v[h])continue;b=Ls(t,e,n,u)[h]-o[h];const _=Ds(t,e[u],i,u);if(!Ft(me(o,b,u),_,u)){if(Ft(o,_,u))continue;if(n.recursion)return!1;const y=Rs(t,e,n);if(y&&Ft(y,_,1-u))return y;continue}}else if(c[u]==="shift"){const x=O(e[u]),{offset:_}=n;b=V(V(o[h],v[h],v[l]-o[f]),x[h]-o[f]+_[u],x[l]-_[u])-o[h]}a=me(a,b,u)}return a}function xn(t,e,n){let{attach:o,offset:s}={attach:{element:["left","top"],target:["left","top"],...n.attach},offset:[0,0],...n},i=O(t);for(const[c,[a,,u,f]]of Object.entries(P)){const h=o.target[c]===o.element[c]?M(e[c]):O(e[c]);i=me(i,h[u]-i[u]+In(o.target[c],f,h[a])-In(o.element[c],f,i[a])+ +s[c],c)}return i}function me(t,e,n){const[,o,s,i]=P[n],c={...t};return c[s]=t[o]=t[s]+e,c[i]+=e,c}function In(t,e,n){return t==="center"?n/2:t===e?n:0}function Ms(t,e,n,o,s){let i=_n(...Cn(t,e).map(M));return n&&(i[P[s][2]]+=n,i[P[s][3]]-=n),o&&(i=_n(i,O(I(o)?o[s]:o))),i}function Ds(t,e,n,o){const[s,i,c,a]=P[o],[u]=Cn(t,e),f=M(u);return["auto","scroll"].includes(d(u,`overflow-${i}`))&&(f[c]-=u[`scroll${z(c)}`],f[a]=f[c]+u[`scroll${z(s)}`]),f[c]+=n,f[a]-=n,f}function Cn(t,e){return ce(e).filter(n=>Ot(t,n))}function _n(...t){let e={};for(const n of t)for(const[,,o,s]of P)e[o]=Math.max(e[o]||0,n[o]),e[s]=Math.min(...[e[s],n[s]].filter(Boolean));return e}function Ft(t,e,n){const[,,o,s]=P[n];return t[o]>=e[o]&&t[s]<=e[s]}function Ls(t,e,{offset:n,attach:o},s){return xn(t,e,{attach:{element:En(o.element,s),target:En(o.target,s)},offset:Fs(n,s)})}function Rs(t,e,n){return yn(t,e,{...n,attach:{element:n.attach.element.map(Tn).reverse(),target:n.attach.target.map(Tn).reverse()},offset:n.offset.reverse(),placement:n.placement.reverse(),recursion:!0})}function En(t,e){const n=[...t],o=P[e].indexOf(t[e]);return~o&&(n[e]=P[e][1-o%2+2]),n}function Tn(t){for(let e=0;e<P.length;e++){const n=P[e].indexOf(t);if(~n)return P[1-e][n%2+2]}}function Fs(t,e){return t=[...t],t[e]*=-1,t}var js=Object.freeze({__proto__:null,$:q,$$:en,Animation:ls,Deferred:lo,Dimensions:fo,MouseTracker:mn,Transition:fs,addClass:et,after:Fo,append:lt,apply:oe,assign:zt,attr:H,before:ke,boxModelAdjust:ie,camelize:it,children:Be,clamp:V,closest:ft,createEvent:Ke,css:d,data:Kt,dimensions:se,each:Tt,empty:Ve,endsWith:so,escape:Je,fastdom:S,filter:ze,find:Vt,findAll:ht,findIndex:Pe,flipPosition:Wo,fragment:Nt,getEventPos:Qe,getIndex:ho,getTargetedElement:bo,hasAttr:Re,hasClass:fn,hasOwn:L,hasTouch:nt,height:sn,html:Lo,hyphenate:rt,inBrowser:gt,includes:K,index:He,intersectRect:De,isArray:I,isBoolean:Oe,isDocument:_t,isElement:ct,isEmpty:Se,isEqual:Xt,isFocusable:vo,isFunction:A,isInView:Qo,isInput:go,isNode:Bt,isNumber:Wt,isNumeric:Et,isObject:R,isPlainObject:F,isRtl:ds,isSameSiteAnchor:We,isString:w,isTag:ee,isTouch:So,isUndefined:E,isVideo:Ps,isVisible:Pt,isVoidElement:mo,isWindow:Z,last:Ne,matches:k,memoize:N,mute:As,noop:At,observeIntersection:xs,observeMutation:_s,observeResize:gn,off:Ge,offset:O,offsetPosition:re,offsetViewport:M,on:j,once:U,overflowParents:ce,parent:ut,parents:Qt,pause:Ts,pick:ao,play:Es,pointInRect:Jt,pointerCancel:ws,pointerDown:ps,pointerEnter:vs,pointerLeave:bs,pointerMove:ms,pointerUp:gs,position:on,positionAt:Ns,prepend:Ro,propName:te,query:wo,queryAll:$o,ready:Do,remove:ne,removeAttr:Fe,removeClass:ue,removeClasses:un,replaceClass:cs,scrollIntoView:Vo,scrollParents:pt,scrolledOver:ko,selFocusable:je,selInput:Zt,sortBy:Me,startsWith:B,sumBy:Yt,swap:io,toArray:ro,toBoolean:qt,toEventTargets:Ut,toFloat:C,toNode:g,toNodes:p,toNumber:at,toPx:qo,toWindow:Q,toggleClass:as,trigger:W,ucfirst:z,uniqueBy:co,unwrap:zo,width:Mt,within:Ot,wrapAll:Ue,wrapInner:jo});function zs(t){t._observers=[],t._observerUpdates=new Map;for(const e of t.$options.observe||[])if(L(e,"handler"))An(t,e);else for(const n in e)An(t,e[n],n)}function ge(t,...e){t._observers.push(...e)}function Bs(t){for(const e of t._observers)e==null||e.disconnect(),t._observerUpdates.delete(e)}function Hs(t){for(const[e,n]of t._observerUpdates)n(e)}function An(t,e,n){let{observe:o,target:s=t.$el,handler:i,options:c,filter:a,args:u}=F(e)?e:{type:n,handler:e};if(a&&!a.call(t,t))return;const f=A(s)?s.call(t,t):s;i=w(i)?t[i]:i.bind(t),A(c)&&(c=c.call(t,t));const h=o(f,i,c,u);A(s)&&I(f)&&h.unobserve&&t._observerUpdates.set(h,Ws(t,s,f)),ge(t,h)}function Ws(t,e,n){return o=>{const s=e.call(t,t);Xt(n,s)||(n.forEach(i=>!K(s,i)&&o.unobserve(i)),s.forEach(i=>!K(n,i)&&o.observe(i)),n.splice(0,n.length,...s))}}function Pn(t){if(t._watch)return;const e=!L(t,"_watch");t._watch=S.read(()=>{t._connected&&qs(t,e),t._watch=null})}function qs(t,e){const n={...t._computed};t._computed={};for(const[o,{watch:s,immediate:i}]of Object.entries(t.$options.computed||{}))s&&(e&&i||L(n,o)&&!Xt(n[o],t[o]))&&s.call(t,t[o],e?void 0:n[o]);Hs(t)}function ve(t,e="update"){t._connected&&((e==="update"||e==="resize")&&Pn(t),t.$options.update&&(t._updates||(t._updates=new Set,S.read(()=>{t._connected&&Xs(t,t._updates),delete t._updates})),t._updates.add(e.type||e)))}function Xs(t,e){for(const{read:n,write:o,events:s=[]}of t.$options.update){if(!e.has("update")&&!s.some(c=>e.has(c)))continue;let i;n&&(i=n.call(t,t._data,e),i&&F(i)&&zt(t._data,i)),o&&i!==!1&&S.write(()=>{t._connected&&o.call(t,t._data,e)})}}function Ys(t){let{el:e,computed:n,observe:o}=t.$options;if(!n&&!(o!=null&&o.some(i=>A(i.target))))return;for(const i in n||{})if(n[i].document){e=e.ownerDocument;break}const s=new MutationObserver(()=>Pn(t));s.observe(e,{childList:!0,subtree:!0}),ge(t,s)}function Js(t){t._events=[];for(const e of t.$options.events||[])if(L(e,"handler"))be(t,e);else for(const n in e)be(t,e[n],n)}function Gs(t){t._events.forEach(e=>e()),delete t._events}function be(t,e,n){let{name:o,el:s,handler:i,capture:c,passive:a,delegate:u,filter:f,self:h}=F(e)?e:{name:n,handler:e};if(s=A(s)?s.call(t,t):s||t.$el,I(s)){s.forEach(l=>be(t,{...e,el:l},n));return}!s||f&&!f.call(t)||t._events.push(j(s,o,u?w(u)?u:u.call(t,t):null,w(i)?t[i]:i.bind(t),{passive:a,capture:c,self:h}))}const $={};$.events=$.observe=$.created=$.beforeConnect=$.connected=$.beforeDisconnect=$.disconnected=$.destroy=we,$.args=function(t,e){return e!==!1&&we(e||t)},$.update=function(t,e){return Me(we(t,A(e)?{read:e}:e),"order")},$.props=function(t,e){if(I(e)){const n={};for(const o of e)n[o]=String;e=n}return $.methods(t,e)},$.computed=$.methods=function(t,e){return e?t?{...t,...e}:e:t},$.i18n=$.data=function(t,e,n){return n?On(t,e,n):e?t?function(o){return On(t,e,o)}:e:t};function On(t,e,n){return $.computed(A(t)?t.call(n,n):t,A(e)?e.call(n,n):e)}function we(t,e){return t=t&&!I(t)?[t]:t,e?t?t.concat(e):I(e)?e:[e]:t}function Ks(t,e){return E(e)?t:e}function bt(t,e,n){const o={};if(A(e)&&(e=e.options),e.extends&&(t=bt(t,e.extends,n)),e.mixins)for(const i of e.mixins)t=bt(t,i,n);for(const i in t)s(i);for(const i in e)L(t,i)||s(i);function s(i){o[i]=($[i]||Ks)(t[i],e[i],n)}return o}function Sn(t,e=[]){try{return t?B(t,"{")?JSON.parse(t):e.length&&!K(t,":")?{[e[0]]:t}:t.split(";").reduce((n,o)=>{const[s,i]=o.split(/:(.*)/);return s&&!E(i)&&(n[s.trim()]=i.trim()),n},{}):{}}catch{return{}}}function $e(t,e){return t===Boolean?qt(e):t===Number?at(e):t==="list"?Zs(e):t===Object&&w(e)?Sn(e):t?t(e):e}function Zs(t){return I(t)?t:w(t)?t.split(/,(?![^(]*\))/).map(e=>Et(e)?at(e):qt(e.trim())):[t]}function Qs(t){const e=Nn(t.$options);for(let o in e)E(e[o])||(t.$props[o]=e[o]);const n=[t.$options.computed,t.$options.methods];for(let o in t.$props)o in e&&Vs(n,o)&&(t[o]=t.$props[o])}function Nn(t){const e={},{args:n=[],props:o={},el:s,id:i}=t;if(!o)return e;for(const a in o){const u=rt(a);let f=Kt(s,u);E(f)||(f=o[a]===Boolean&&f===""?!0:$e(o[a],f),!(u==="target"&&B(f,"_"))&&(e[a]=f))}const c=Sn(Kt(s,i),n);for(const a in c){const u=it(a);E(o[u])||(e[u]=$e(o[u],c[a]))}return e}function Vs(t,e){return t.every(n=>!n||!L(n,e))}function ks(t){const{$options:e,$props:n}=t,{id:o,attrs:s,props:i,el:c}=e;if(!i||s===!1)return;const a=I(s)?s:Object.keys(i),u=a.map(h=>rt(h)).concat(o),f=new MutationObserver(h=>{const l=Nn(e);h.some(({attributeName:v})=>{const b=v.replace("data-","");return(b===o?a:[it(b),it(v)]).some(x=>!E(l[x])&&l[x]!==n[x])})&&t.$reset()});f.observe(c,{attributes:!0,attributeFilter:u.concat(u.map(h=>`data-${h}`))}),ge(t,f)}function st(t,e){var n;(n=t.$options[e])==null||n.forEach(o=>o.call(t))}function Mn(t){t._connected||(t._data={},t._computed={},Qs(t),st(t,"beforeConnect"),t._connected=!0,Js(t),zs(t),ks(t),Ys(t),st(t,"connected"),ve(t))}function Dn(t){t._connected&&(st(t,"beforeDisconnect"),Bs(t),Gs(t),st(t,"disconnected"),t._connected=!1,delete t._watch)}function Us(t){const{computed:e}=t.$options;if(t._computed={},e)for(const n in e)tr(t,n,e[n])}function tr(t,e,n){Object.defineProperty(t,e,{enumerable:!0,get(){const{_computed:o,$props:s,$el:i}=t;return L(o,e)||(o[e]=(n.get||n).call(t,s,i)),o[e]},set(o){const{_computed:s}=t;s[e]=n.set?n.set.call(t,o):o,E(s[e])&&delete s[e]}})}let er=0;function Ln(t,e={}){e.data=sr(e,t.constructor.options),t.$options=bt(t.constructor.options,e,t),t.$props={},t._uid=er++,nr(t),or(t),Us(t),st(t,"created"),e.el&&t.$mount(e.el)}function nr(t){const{data:e={}}=t.$options;for(const n in e)t.$props[n]=t[n]=e[n]}function or(t){const{methods:e}=t.$options;if(e)for(const n in e)t[n]=e[n].bind(t)}function sr({data:t={}},{args:e=[],props:n={}}){I(t)&&(t=t.slice(0,e.length).reduce((o,s,i)=>(F(s)?zt(o,s):o[e[i]]=s,o),{}));for(const o in t)E(t[o])?delete t[o]:n[o]&&(t[o]=$e(n[o],t[o]));return t}const m=function(t){Ln(this,t)};m.util=js,m.options={},m.version="3.16.6";const rr="uk-",Y="__uikit__",wt={};function Rn(t,e){var n;const o=rr+rt(t);if(!e)return F(wt[o])&&(wt[o]=m.extend(wt[o])),wt[o];t=it(t),m[t]=(i,c)=>ye(t,i,c);const s=F(e)?{...e}:e.options;return s.id=o,s.name=t,(n=s.install)==null||n.call(s,m,s,t),m._initialized&&!s.functional&&requestAnimationFrame(()=>ye(t,`[${o}],[data-${o}]`)),wt[o]=s}function ye(t,e,n,...o){const s=Rn(t);return s.options.functional?new s({data:F(e)?e:[e,n,...o]}):e?en(e).map(i)[0]:i();function i(c){const a=Ie(c,t);if(a)if(n)a.$destroy();else return a;return new s({el:c,data:n})}}function xe(t){return(t==null?void 0:t[Y])||{}}function Ie(t,e){return xe(t)[e]}function ir(t,e){t[Y]||(t[Y]={}),t[Y][e.$options.name]=e}function cr(t,e){var n;(n=t[Y])==null||delete n[e.$options.name],Se(t[Y])||delete t[Y]}m.component=Rn,m.getComponents=xe,m.getComponent=Ie,m.use=function(t){if(!t.installed)return t.call(null,this),t.installed=!0,this},m.mixin=function(t,e){e=(w(e)?this.component(e):e)||this,e.options=bt(e.options,t)},m.extend=function(t){t=t||{};const e=this,n=function(s){Ln(this,s)};return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.options=bt(e.options,t),n.super=e,n.extend=e.extend,n};function Fn(t,e){t=t?g(t):document.body;for(const n of Qt(t).reverse())jn(n,e);oe(t,n=>jn(n,e))}m.update=Fn;function jn(t,e){const n=xe(t);for(const o in n)ve(n[o],e)}let zn;Object.defineProperty(m,"container",{get(){return zn||document.body},set(t){zn=q(t)}}),m.prototype.$mount=function(t){const e=this;ir(t,e),e.$options.el=t,Ot(t,document)&&Mn(e)},m.prototype.$destroy=function(t=!1){const e=this,{el:n}=e.$options;n&&Dn(e),st(e,"destroy"),cr(n,e),t&&ne(e.$el)},m.prototype.$create=ye,m.prototype.$emit=function(t){ve(this,t)},m.prototype.$update=function(t=this.$el,e){Fn(t,e)},m.prototype.$reset=function(){Dn(this),Mn(this)},m.prototype.$getComponent=Ie,Object.defineProperties(m.prototype,{$el:{get(){return this.$options.el}},$container:Object.getOwnPropertyDescriptor(m,"container")});function Ce(t,e=t.$el,n=""){if(e.id)return e.id;let o=`${t.$options.id}-${t._uid}${n}`;return q(`#${o}`)&&(o=Ce(t,e,`${n}-2`)),o}var ar={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1},computed:{nav:{get({selNav:t},e){return r.$(t,e)},watch(t,e){r.attr(t,"role","tablist"),e&&this.$emit()},immediate:!0},selNavItem({attrItem:t}){return`[${t}],[data-${t}]`},navItems:{get(t,e){return r.$$(this.selNavItem,e)},watch(){this.$emit()}}},connected(){r.attr(this.$el,"aria-roledescription","carousel")},update:[{write(){this.slides.forEach((t,e)=>r.attr(t,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",e+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.nav&&this.length!==this.nav.children.length&&r.html(this.nav,this.slides.map((t,e)=>`<li ${this.attrItem}="${e}"><a href></a></li>`).join("")),r.attr(r.children(this.nav).concat(this.list),"role","presentation");for(const t of this.navItems){const e=r.data(t,this.attrItem),n=r.$("a,button",t)||t;let o,s=null;if(r.isNumeric(e)){const i=r.toNumber(e),c=this.slides[i];c&&(c.id||(c.id=Ce(this,c,`-item-${e}`)),s=c.id),o=this.t("slideX",r.toFloat(e)+1),r.attr(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=Ce(this,this.list,"-items")),s=this.list.id),o=this.t(e);r.attr(n,{"aria-controls":s,"aria-label":r.attr(n,"aria-label")||o})}}},{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){r.closest(t.target,"a,button")&&(t.type==="click"||t.keyCode===D.SPACE)&&(t.preventDefault(),this.show(r.data(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},handler(t){const{current:e,keyCode:n}=t,o=r.data(e,this.attrItem);if(!r.isNumeric(o))return;let s=n===D.HOME?0:n===D.END?"last":n===D.LEFT?"previous":n===D.RIGHT?"next":-1;~s&&(t.preventDefault(),this.show(s))}}],methods:{updateNav(){const t=this.getValidIndex();let e,n;for(const o of this.navItems){const s=r.data(o,this.attrItem),i=r.$("a,button",o)||o;if(r.isNumeric(s)){const a=r.toNumber(s)===t;r.toggleClass(o,this.clsActive,a),r.attr(i,{"aria-selected":a,tabindex:a?null:-1}),a&&(n=i),e=e||r.matches(i,":focus")}else r.toggleClass(o,"uk-invisible",this.finite&&(s==="previous"&&t===0||s==="next"&&t>=this.maxIndex));e&&n&&n.focus()}}}};const _e={passive:!1,capture:!0},Bn={passive:!0,capture:!0},ur="touchstart mousedown",Ee="touchmove mousemove",Hn="touchend touchcancel mouseup click input scroll";var fr={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=n=>{const o=r.getEventPos(n).x*(r.isRtl?-1:1);this.prevPos=o===this.pos?this.prevPos:this.pos,this.pos=o,e(n)}}},events:[{name:ur,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!r.isTouch(t)&&hr(t.target)||r.closest(t.target,r.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:Ee,el(){return this.list},handler:r.noop,..._e}],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,r.on(document,Ee,this.move,_e),r.on(document,Hn,this.end,Bn),r.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;r.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;const{slides:n}=this;let{prevIndex:o}=this,s=Math.abs(e),i=this.getIndex(o+this.dir,o),c=this._getDistance(o,i)||n[o].offsetWidth;for(;i!==o&&s>c;)this.drag-=c*this.dir,o=i,s-=c,i=this.getIndex(o+this.dir,o),c=this._getDistance(o,i)||n[o].offsetWidth;this.percent=s/c;const a=n[o],u=n[i],f=this.index!==i,h=o===i;let l;[this.index,this.prevIndex].filter(v=>!r.includes([i,o],v)).forEach(v=>{r.trigger(n[v],"itemhidden",[this]),h&&(l=!0,this.prevIndex=o)}),(this.index===o&&this.prevIndex!==o||l)&&r.trigger(n[this.index],"itemshown",[this]),f&&(this.prevIndex=o,this.index=i,!h&&r.trigger(a,"beforeitemhide",[this]),r.trigger(u,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!h&&u),f&&(!h&&r.trigger(a,"itemhide",[this]),r.trigger(u,"itemshow",[this]))},end(){if(r.off(document,Ee,this.move,_e),r.off(document,Hn,this.end,Bn),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=(r.isRtl?this.dir*(r.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)}r.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function hr(t){return r.css(t,"userSelect")!=="none"&&r.toNodes(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}var lr={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){r.attr(this.list,"aria-live","polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){r.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}},{name:`${r.pointerEnter} focusin`,filter(){return this.autoplay},handler(t){(t.type!==r.pointerEnter||this.pauseOnHover)&&this.stopAutoplay()}},{name:`${r.pointerLeave} focusout`,filter(){return this.autoplay},handler(t){(t.type!==r.pointerLeave||this.pauseOnHover)&&this.startAutoplay()}}],methods:{startAutoplay(){this.draggable&&r.matches(this.$el,":focus-within")||this.pauseOnHover&&r.matches(this.$el,":hover")||(this.stopAutoplay(),this.interval=setInterval(()=>!this.stack.length&&this.show("next"),this.autoplayInterval),r.attr(this.list,"aria-live","off"))},stopAutoplay(){clearInterval(this.interval),r.attr(this.list,"aria-live","polite")}}};function dr(t){return pr(gn,t,"resize")}function pr(t,e,n){return{observe:t,handler(){this.$emit(n)},...e}}var mr={mixins:[lr,fr,ar,is],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(){r.removeClass(this.slides,this.clsActive)},computed:{duration({velocity:t},e){return vr(e.offsetWidth/t)},list({selList:t},e){return r.$(t,e)},maxIndex(){return this.length-1},slides:{get(){return r.children(this.list)},watch(){this.$emit()}},length(){return this.slides.length}},observe:dr(),methods:{show(t,e=!1){var n;if(this.dragging||!this.length)return;const{stack:o}=this,s=e?0:o.length,i=()=>{o.splice(s,1),o.length&&this.show(o.shift(),!0)};if(o[e?"unshift":"push"](t),!e&&o.length>1){o.length===2&&((n=this._transitioner)==null||n.forward(Math.min(this.duration,200)));return}const c=this.getIndex(this.index),a=r.hasClass(this.slides,this.clsActive)&&this.slides[c],u=this.getIndex(t,this.index),f=this.slides[u];if(a===f){i();return}if(this.dir=gr(t,c),this.prevIndex=c,this.index=u,a&&!r.trigger(a,"beforeitemhide",[this])||!r.trigger(f,"beforeitemshow",[this,a])){this.index=this.prevIndex,i();return}const h=this._show(a,f,e).then(()=>{a&&r.trigger(a,"itemhidden",[this]),r.trigger(f,"itemshown",[this]),o.shift(),this._transitioner=null,requestAnimationFrame(()=>o.length&&this.show(o.shift(),!0))});return a&&r.trigger(a,"itemhide",[this]),r.trigger(f,"itemshow",[this]),h},getIndex(t=this.index,e=this.index){return r.clamp(r.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,n){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:n?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!n&&!t)return this._translate(1),Promise.resolve();const{length:o}=this.stack;return this._transitioner[o>1?"forward":"show"](o>1?Math.min(this.duration,75+75/(o-1)):this.duration,this.percent)},_getDistance(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()},_translate(t,e=this.prevIndex,n=this.index){const o=this._getTransitioner(e===n?!1:e,n);return o.translate(t),o},_getTransitioner(t=this.prevIndex,e=this.index,n=this.dir||1,o=this.transitionOptions){return new this.Transitioner(r.isNumber(t)?this.slides[t]:t,r.isNumber(e)?this.slides[e]:e,n*(r.isRtl?-1:1),o)}}};function gr(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function vr(t){return .5*t+300}var br={mixins:[mr],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:G,Transitioner:rs},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:t}){r.addClass(t,this.clsActive)},itemshown({target:t}){r.addClass(t,this.clsActivated)},itemhidden({target:t}){r.removeClass(t,this.clsActive,this.clsActivated)}}},Wn={mixins:[ts,br],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:()=>({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:Ae,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const t=r.$(this.template),e=r.$(this.selList,t);this.items.forEach(()=>r.append(e,"<li>"));const n=r.$("[uk-close]",t),o=this.t("close");n&&o&&(n.dataset.i18n=JSON.stringify({label:o})),this.$mount(r.append(this.container,t))},computed:{caption({selCaption:t},e){return r.$(t,e)}},events:[{name:`${r.pointerMove} ${r.pointerDown} keydown`,handler:"showControls"},{name:"click",self:!0,delegate(){return`${this.selList} > *`},handler(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),r.removeClass(this.slides,this.clsActive),r.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler({keyCode:t}){if(!this.isToggled(this.$el)||!this.draggable)return;let e=-1;t===D.LEFT?e="previous":t===D.RIGHT?e="next":t===D.HOME?e=0:t===D.END&&(e="last"),~e&&this.show(e)}},{name:"beforeitemshow",handler(t){this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=Ae.scale,r.removeClass(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){r.html(this.caption,this.getItem().caption||"");for(let t=-this.preload;t<=this.preload;t++)this.loadItem(this.index+t)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(t,e){const{source:n,type:o,alt:s="",poster:i,attrs:c={}}=e;if(this.setItem(e,"<span uk-spinner></span>"),!n)return;let a;const u={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${this.videoAutoplay}`};if(o==="image"||n.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const f=$t("img",{src:n,alt:s,...c});r.on(f,"load",()=>this.setItem(e,f)),r.on(f,"error",()=>this.setError(e))}else if(o==="video"||n.match(/\.(mp4|webm|ogv)($|\?)/i)){const f=$t("video",{src:n,poster:i,controls:"",playsinline:"","uk-video":`${this.videoAutoplay}`,...c});r.on(f,"loadedmetadata",()=>this.setItem(e,f)),r.on(f,"error",()=>this.setError(e))}else if(o==="iframe"||n.match(/\.(html|php)($|\?)/i))this.setItem(e,$t("iframe",{src:n,allowfullscreen:"",class:"uk-lightbox-iframe",...c}));else if(a=n.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(e,$t("iframe",{src:`https://www.youtube${a[1]||""}.com/embed/${a[2]}${a[3]?`?${a[3]}`:""}`,width:1920,height:1080,...u,...c}));else if(a=n.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:f,width:h}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(n)}`,{credentials:"omit"})).json();this.setItem(e,$t("iframe",{src:`https://player.vimeo.com/video/${a[1]}${a[2]?`?${a[2]}`:""}`,width:h,height:f,...u,...c}))}catch{this.setError(e)}}}],methods:{loadItem(t=this.index){const e=this.getItem(t);this.getSlide(e).childElementCount||r.trigger(this.$el,"itemload",[e])},getItem(t=this.index){return this.items[r.getIndex(t,this.slides)]},setItem(t,e){r.trigger(this.$el,"itemloaded",[this,r.html(this.getSlide(t),e)])},getSlide(t){return this.slides[this.items.indexOf(t)]},setError(t){this.setItem(t,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),r.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){r.removeClass(this.$el,"uk-active","uk-transition-active")}}};function $t(t,e){const n=r.fragment(`<${t}>`);return r.attr(n,e),n}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightboxPanel",Wn),Wn});
1
+ /*! UIkit 3.16.7-dev.fcb5a4616 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(s,y){typeof exports=="object"&&typeof module<"u"?module.exports=y(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitlightbox_panel",["uikit-util"],y):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitLightbox_panel=y(s.UIkit.util))})(this,function(s){"use strict";var y={slide:{show(t){return[{transform:_(t*-100)},{transform:_()}]},percent(t){return yt(t)},translate(t,e){return[{transform:_(e*-100*t)},{transform:_(e*100*(1-t))}]}}};function yt(t){return Math.abs(s.css(t,"transform").split(",")[4]/t.offsetWidth)||0}function _(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function S(t){return`scale3d(${t}, ${t}, 1)`}var et={...y,fade:{show(){return[{opacity:0},{opacity:1}]},percent(t){return 1-s.css(t,"opacity")},translate(t){return[{opacity:1-t},{opacity:t}]}},scale:{show(){return[{opacity:0,transform:S(1-.2)},{opacity:1,transform:S(1)}]},percent(t){return 1-s.css(t,"opacity")},translate(t){return[{opacity:1-t,transform:S(1-.2*t)},{opacity:t,transform:S(1-.2+.2*t)}]}}},kt={connected(){s.addClass(this.$el,this.$options.id)}},It={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&s.$(t)}}},Ct={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglabe-enter",clsLeave:"uk-togglabe-leave"},computed:{hasAnimation({animation:t}){return!!t[0]},hasTransition({animation:t}){return["slide","reveal"].some(e=>s.startsWith(t[0],e))}},methods:{toggleElement(t,e,i){return new Promise(n=>Promise.all(s.toNodes(t).map(r=>{const o=s.isBoolean(e)?e:!this.isToggled(r);if(!s.trigger(r,`before${o?"show":"hide"}`,[this]))return Promise.reject();const a=(s.isFunction(i)?i:i===!1||!this.hasAnimation?At:this.hasTransition?Tt:Et)(r,o,this),h=o?this.clsEnter:this.clsLeave;s.addClass(r,h),s.trigger(r,o?"show":"hide",[this]);const l=()=>{s.removeClass(r,h),s.trigger(r,o?"shown":"hidden",[this])};return a?a.then(l,()=>(s.removeClass(r,h),Promise.reject())):l()})).then(n,s.noop))},isToggled(t=this.$el){return[t]=s.toNodes(t),s.hasClass(t,this.clsEnter)?!0:s.hasClass(t,this.clsLeave)?!1:this.cls?s.hasClass(t,this.cls.split(" ")[0]):s.isVisible(t)},_toggle(t,e){if(!t)return;e=!!e;let i;this.cls?(i=s.includes(this.cls," ")||e!==s.hasClass(t,this.cls),i&&s.toggleClass(t,this.cls,s.includes(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),s.$$("[autofocus]",t).some(n=>s.isVisible(n)?n.focus()||!0:n.blur()),i&&s.trigger(t,"toggled",[e,this])}}};function At(t,e,{_toggle:i}){return s.Animation.cancel(t),s.Transition.cancel(t),i(t,e)}async function Tt(t,e,{animation:i,duration:n,velocity:r,transition:o,_toggle:a}){var h;const[l="reveal",c="top"]=((h=i[0])==null?void 0:h.split("-"))||[],d=[["left","right"],["top","bottom"]],u=d[s.includes(d[0],c)?0:1],w=u[1]===c,L=["width","height"][d.indexOf(u)],I=`margin-${u[0]}`,B=`margin-${c}`;let E=s.dimensions(t)[L];const _e=s.Transition.inProgress(t);await s.Transition.cancel(t),e&&a(t,!0);const Se=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",I,B].map($t=>[$t,t.style[$t]])),N=s.dimensions(t),tt=s.toFloat(s.css(t,I)),bt=s.toFloat(s.css(t,B)),$=N[L]+bt;!_e&&!e&&(E+=bt);const[M]=s.wrapInner(t,"<div>");s.css(M,{boxSizing:"border-box",height:N.height,width:N.width,...s.css(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",B])}),s.css(t,{padding:0,border:0,minWidth:0,minHeight:0,[B]:0,width:N.width,height:N.height,overflow:"hidden",[L]:E});const wt=E/$;n=(r*$+n)*(e?1-wt:wt);const xt={[L]:e?$:0};w&&(s.css(t,I,$-E+tt),xt[I]=e?tt:$+tt),!w^l==="reveal"&&(s.css(M,I,-$+E),s.Transition.start(M,{[I]:e?0:-$},n,o));try{await s.Transition.start(t,xt,n,o)}finally{s.css(t,Se),s.unwrap(M.firstChild),e||a(t,!1)}}function Et(t,e,i){s.Animation.cancel(t);const{animation:n,duration:r,_toggle:o}=i;return e?(o(t,!0),s.Animation.in(t,n[0],r,i.origin)):s.Animation.out(t,n[1]||n[0],r,i.origin).then(()=>o(t,!1))}const Nt=/\B([A-Z])/g,_t=k(t=>t.replace(Nt,"-$1").toLowerCase()),F=k(t=>t.charAt(0).toUpperCase()+t.slice(1));function st(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}function St(t,e){var i;return(i=t==null?void 0:t.includes)==null?void 0:i.call(t,e)}function Pt(t,e){var i;return(i=t==null?void 0:t.findIndex)==null?void 0:i.call(t,e)}const{isArray:z,from:Pe}=Array;function W(t){return typeof t=="function"}function P(t){return t!==null&&typeof t=="object"}function C(t){return P(t)&&t===t.window}function it(t){return R(t)===9}function nt(t){return R(t)>=1}function H(t){return R(t)===1}function R(t){return!C(t)&&P(t)&&t.nodeType}function x(t){return typeof t=="string"}function rt(t){return typeof t=="number"}function Dt(t){return rt(t)||x(t)&&!isNaN(t-parseFloat(t))}function U(t){return t===void 0}function v(t){return parseFloat(t)||0}function g(t){return m(t)[0]}function m(t){return nt(t)?[t]:Array.from(t||[]).filter(nt)}function j(t){if(C(t))return t;t=g(t);const e=it(t)?t:t==null?void 0:t.ownerDocument;return(e==null?void 0:e.defaultView)||window}function ot(t,e){for(const i in t)if(e(t[i],i)===!1)return!1;return!0}function Ot(t,e){return t.reduce((i,n)=>i+v(W(e)?e(n):n[e]),0)}function k(t){const e=Object.create(null);return i=>e[i]||(e[i]=t(i))}function V(t,e,i){var n;if(P(e)){for(const r in e)V(t,r,e[r]);return}if(U(i))return(n=g(t))==null?void 0:n.getAttribute(e);for(const r of m(t))W(i)&&(i=i.call(r,V(r,e))),i===null?Lt(r,e):r.setAttribute(e,i)}function Lt(t,e){m(t).forEach(i=>i.removeAttribute(e))}function q(t){var e;return(e=g(t))==null?void 0:e.parentElement}function Bt(t,e){return m(t).filter(i=>X(i,e))}function X(t,e){return m(t).some(i=>i.matches(e))}function D(t,e){return H(t)?t.closest(st(e,">")?e.slice(1):e):m(t).map(i=>D(i,e)).filter(Boolean)}function Mt(t,e){return x(e)?!!D(t,e):g(e).contains(g(t))}function Ft(t,e){const i=[];for(;t=q(t);)(!e||X(t,e))&&i.push(t);return i}function zt(t,e){t=g(t);const i=t?m(t.children):[];return e?Bt(i,e):i}function Wt(t,e){return e?m(t).indexOf(g(e)):zt(q(t)).indexOf(t)}function at(t,e){return m(Vt(t,g(e),"querySelectorAll"))}const Ht=/(^|[^\\],)\s*[!>+~-]/,Rt=k(t=>t.match(Ht)),Ut=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,jt=k(t=>t.replace(Ut,"$1 *"));function Vt(t,e=document,i){if(!t||!x(t))return t;if(t=jt(t),Rt(t)){const n=Xt(t);t="";for(let r of n){let o=e;if(r[0]==="!"){const a=r.substr(1).trim().split(" ");if(o=D(q(e),a[0]),r=a.slice(1).join(" ").trim(),!r.length&&n.length===1)return o}if(r[0]==="-"){const a=r.substr(1).trim().split(" "),h=(o||e).previousElementSibling;o=X(h,r.substr(1))?h:null,r=a.slice(1).join(" ")}o&&(t+=`${t?",":""}${Yt(o)} ${r}`)}e=document}try{return e[i](t)}catch{return null}}const qt=/.*?[^\\](?:,|$)/g,Xt=k(t=>t.match(qt).map(e=>e.replace(/,$/,"").trim()));function Yt(t){const e=[];for(;t.parentNode;){const i=V(t,"id");if(i){e.unshift(`#${Gt(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${Wt(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function Gt(t){return x(t)?CSS.escape(t):""}function Jt(...t){let[e,i,n,r,o=!1]=ht(t);r.length>1&&(r=Qt(r)),o!=null&&o.self&&(r=te(r)),n&&(r=Kt(n,r));for(const a of i)for(const h of e)h.addEventListener(a,r,o);return()=>Zt(e,i,r,o)}function Zt(...t){let[e,i,,n,r=!1]=ht(t);for(const o of i)for(const a of e)a.removeEventListener(o,n,r)}function ht(t){return t[0]=se(t[0]),x(t[1])&&(t[1]=t[1].split(" ")),W(t[2])&&t.splice(2,0,!1),t}function Kt(t,e){return i=>{const n=t[0]===">"?at(t,i.currentTarget).reverse().filter(r=>Mt(i.target,r))[0]:D(i.target,t);n&&(i.current=n,e.call(this,i),delete i.current)}}function Qt(t){return e=>z(e.detail)?t(e,...e.detail):t(e)}function te(t){return function(e){if(e.target===e.currentTarget||e.target===e.current)return t.call(null,e)}}function ct(t){return t&&"addEventListener"in t}function ee(t){return ct(t)?t:g(t)}function se(t){return z(t)?t.map(ee).filter(Boolean):x(t)?at(t):ct(t)?[t]:m(t)}const ie={"animation-iteration-count":!0,"column-count":!0,"fill-opacity":!0,"flex-grow":!0,"flex-shrink":!0,"font-weight":!0,"line-height":!0,opacity:!0,order:!0,orphans:!0,"stroke-dasharray":!0,"stroke-dashoffset":!0,widows:!0,"z-index":!0,zoom:!0};function f(t,e,i,n){const r=m(t);for(const o of r)if(x(e)){if(e=ne(e),U(i))return getComputedStyle(o).getPropertyValue(e);o.style.setProperty(e,Dt(i)&&!ie[e]?`${i}px`:i||rt(i)?i:"",n)}else if(z(e)){const a={};for(const h of e)a[h]=f(o,h);return a}else P(e)&&(n=i,ot(e,(a,h)=>f(o,h,a,n)));return r[0]}const ne=k(t=>re(t));function re(t){if(st(t,"--"))return t;t=_t(t);const{style:e}=document.documentElement;if(t in e)return t;for(const i of["webkit","moz"]){const n=`-${i}-${t}`;if(n in e)return n}}const Y={width:["left","right"],height:["top","bottom"]};function oe(t){const e=H(t)?g(t).getBoundingClientRect():{height:he(t),width:dt(t),top:0,left:0};return{height:e.height,width:e.width,top:e.top,left:e.left,bottom:e.top+e.height,right:e.left+e.width}}function G(t,e){const i=oe(t);if(t){const{scrollY:r,scrollX:o}=j(t),a={height:r,width:o};for(const h in Y)for(const l of Y[h])i[l]+=a[h]}if(!e)return i;const n=f(t,"position");ot(f(t,["left","top"]),(r,o)=>f(t,o,e[o]-i[o]+v(n==="absolute"&&r==="auto"?ae(t)[o]:r)))}function ae(t){let{top:e,left:i}=G(t);const{ownerDocument:{body:n,documentElement:r},offsetParent:o}=g(t);let a=o||r;for(;a&&(a===n||a===r)&&f(a,"position")==="static";)a=a.parentNode;if(H(a)){const h=G(a);e-=h.top+v(f(a,"borderTopWidth")),i-=h.left+v(f(a,"borderLeftWidth"))}return{top:e-v(f(t,"marginTop")),left:i-v(f(t,"marginLeft"))}}const he=lt("height"),dt=lt("width");function lt(t){const e=F(t);return(i,n)=>{if(U(n)){if(C(i))return i[`inner${e}`];if(it(i)){const r=i.documentElement;return Math.max(r[`offset${e}`],r[`scroll${e}`])}return i=g(i),n=f(i,t),n=n==="auto"?i[`offset${e}`]:v(n)||0,n-ft(i,t)}else return f(i,t,!n&&n!==0?"":+n+ft(i,t)+"px")}}function ft(t,e,i="border-box"){return f(t,"boxSizing")===i?Ot(Y[e].map(F),n=>v(f(t,`padding${n}`))+v(f(t,`border${n}Width`))):0}function ce(t,e=!1,i=[]){const n=ut(t);let r=Ft(t).reverse();r=r.slice(r.indexOf(n)+1);const o=Pt(r,a=>f(a,"position")==="fixed");return~o&&(r=r.slice(o)),[n].concat(r.filter(a=>f(a,"overflow").split(" ").some(h=>St(["auto","scroll",...i],h))&&(!e||a.scrollHeight>de(a).height))).reverse()}function de(t){const e=j(t),{visualViewport:i,document:{documentElement:n}}=e;let r=t===ut(t)?e:t;if(C(r)&&i){let{height:a,width:h,scale:l,pageTop:c,pageLeft:d}=i;return a=Math.round(a*l),h=Math.round(h*l),{height:a,width:h,top:c,left:d,bottom:c+a,right:d+h}}let o=G(r);if(f(r,"display")==="inline")return o;for(let[a,h,l,c]of[["width","x","left","right"],["height","y","top","bottom"]])C(r)?r=n:o[l]+=v(f(r,`border-${l}-width`)),o[a]=o[h]=r[`client${F(a)}`],o[c]=o[a]+o[l];return o}function ut(t){return j(t).document.scrollingElement}let J;function le(t){const e=Jt(t,"touchmove",n=>{if(n.targetTouches.length!==1)return;let[{scrollHeight:r,clientHeight:o}]=ce(n.target);o>=r&&n.cancelable&&n.preventDefault()},{passive:!1});if(J)return e;J=!0;const{scrollingElement:i}=document;return f(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:dt(window)-i.clientWidth||""}),()=>{J=!1,e(),f(i,{overflowY:"",touchAction:"",paddingRight:""})}}const p=[];var fe={mixins:[kt,It,Ct],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel({selPanel:t},e){return s.$(t,e)},transitionElement(){return this.panel},bgClose({bgClose:t}){return t&&this.panel}},connected(){s.attr(this.panel||this.$el,"role",this.role),this.overlay&&s.attr(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){s.includes(p,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return`${this.selClose},a[href*="#"]`},handler(t){const{current:e,defaultPrevented:i}=t,{hash:n}=e;!i&&n&&s.isSameSiteAnchor(e)&&!s.within(n,this.$el)&&s.$(n,document.body)?this.hide():s.matches(e,this.selClose)&&(t.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(t){t.defaultPrevented||(t.preventDefault(),this.isToggled()===s.includes(p,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(s.includes(p,this))return!1;!this.stack&&p.length?(Promise.all(p.map(e=>e.hide())).then(this.show),t.preventDefault()):p.push(this)}},{name:"show",self:!0,handler(){this.stack&&s.css(this.$el,"zIndex",s.toFloat(s.css(this.$el,"zIndex"))+p.length);const t=[this.overlay&&pe(this),this.overlay&&le(this.$el),this.bgClose&&ge(this),this.escClose&&me(this)];s.once(this.$el,"hidden",()=>t.forEach(e=>e&&e()),{self:!0}),s.addClass(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){s.isFocusable(this.$el)||s.attr(this.$el,"tabindex","-1"),s.matches(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){s.includes(p,this)&&p.splice(p.indexOf(this),1),s.css(this.$el,"zIndex",""),p.some(t=>t.clsPage===this.clsPage)||s.removeClass(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&s.parent(this.$el)!==this.container?(s.append(this.container,this.$el),new Promise(t=>requestAnimationFrame(()=>this.show().then(t)))):this.toggleElement(this.$el,!0,pt)},hide(){return this.toggleElement(this.$el,!1,pt)}}};function pt(t,e,{transitionElement:i,_toggle:n}){return new Promise((r,o)=>s.once(t,"show hide",()=>{var a;(a=t._reject)==null||a.call(t),t._reject=o,n(t,e);const h=s.once(i,"transitionstart",()=>{s.once(i,"transitionend transitioncancel",r,{self:!0}),clearTimeout(l)},{self:!0}),l=setTimeout(()=>{h(),r()},ue(s.css(i,"transitionDuration")))})).then(()=>delete t._reject)}function ue(t){return t?s.endsWith(t,"ms")?s.toFloat(t):s.toFloat(t)*1e3:0}function pe(t){return s.on(document,"focusin",e=>{s.last(p)===t&&!s.within(e.target,t.$el)&&t.$el.focus()})}function ge(t){return s.on(document,s.pointerDown,({target:e})=>{s.last(p)!==t||t.overlay&&!s.within(e,t.$el)||s.within(e,t.panel)||s.once(document,`${s.pointerUp} ${s.pointerCancel} scroll`,({defaultPrevented:i,type:n,target:r})=>{!i&&n===s.pointerUp&&e===r&&t.hide()},!0)})}function me(t){return s.on(document,"keydown",e=>{e.keyCode===27&&s.last(p)===t&&t.hide()})}function ve(t,e,i,{animation:n,easing:r}){const{percent:o,translate:a,show:h=s.noop}=n,l=h(i),c=new s.Deferred;return{dir:i,show(d,u=0,w){const T=w?"linear":r;return d-=Math.round(d*s.clamp(u,-1,1)),this.translate(u),O(e,"itemin",{percent:u,duration:d,timing:T,dir:i}),O(t,"itemout",{percent:1-u,duration:d,timing:T,dir:i}),Promise.all([s.Transition.start(e,l[1],d,T),s.Transition.start(t,l[0],d,T)]).then(()=>{this.reset(),c.resolve()},s.noop),c.promise},cancel(){s.Transition.cancel([e,t])},reset(){for(const d in l[0])s.css([e,t],d,"")},forward(d,u=this.percent()){return s.Transition.cancel([e,t]),this.show(d,u,!0)},translate(d){this.reset();const u=a(d,i);s.css(e,u[1]),s.css(t,u[0]),O(e,"itemtranslatein",{percent:d,dir:i}),O(t,"itemtranslateout",{percent:1-d,dir:i})},percent(){return o(t||e,e,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function O(t,e,i){s.trigger(t,s.createEvent(e,!1,!1,i))}var be={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,r;let o=0;return((r=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:r.replace(/%s/g,()=>e[o++]||""))||""}}};const b={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};function Z(t,e=t.$el,i=""){if(e.id)return e.id;let n=`${t.$options.id}-${t._uid}${i}`;return s.$(`#${n}`)&&(n=Z(t,e,`${i}-2`)),n}var we={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s"},data:{selNav:!1},computed:{nav:{get({selNav:t},e){return s.$(t,e)},watch(t,e){s.attr(t,"role","tablist"),e&&this.$emit()},immediate:!0},selNavItem({attrItem:t}){return`[${t}],[data-${t}]`},navItems:{get(t,e){return s.$$(this.selNavItem,e)},watch(){this.$emit()}}},connected(){s.attr(this.$el,"aria-roledescription","carousel")},update:[{write(){this.slides.forEach((t,e)=>s.attr(t,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",e+1,this.length),"aria-roledescription":this.nav?null:"slide"})),this.nav&&this.length!==this.nav.children.length&&s.html(this.nav,this.slides.map((t,e)=>`<li ${this.attrItem}="${e}"><a href></a></li>`).join("")),s.attr(s.children(this.nav).concat(this.list),"role","presentation");for(const t of this.navItems){const e=s.data(t,this.attrItem),i=s.$("a,button",t)||t;let n,r=null;if(s.isNumeric(e)){const o=s.toNumber(e),a=this.slides[o];a&&(a.id||(a.id=Z(this,a,`-item-${e}`)),r=a.id),n=this.t("slideX",s.toFloat(e)+1),s.attr(i,"role","tab")}else this.list&&(this.list.id||(this.list.id=Z(this,this.list,"-items")),r=this.list.id),n=this.t(e);s.attr(i,{"aria-controls":r,"aria-label":s.attr(i,"aria-label")||n})}}},{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){s.closest(t.target,"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},handler(t){const{current:e,keyCode:i}=t,n=s.data(e,this.attrItem);if(!s.isNumeric(n))return;let r=i===b.HOME?0:i===b.END?"last":i===b.LEFT?"previous":i===b.RIGHT?"next":-1;~r&&(t.preventDefault(),this.show(r))}}],methods:{updateNav(){const t=this.getValidIndex();let e,i;for(const n of this.navItems){const r=s.data(n,this.attrItem),o=s.$("a,button",n)||n;if(s.isNumeric(r)){const h=s.toNumber(r)===t;s.toggleClass(n,this.clsActive,h),s.attr(o,{"aria-selected":h,tabindex:h?null:-1}),h&&(i=o),e=e||s.matches(o,":focus")}else s.toggleClass(n,"uk-invisible",this.finite&&(r==="previous"&&t===0||r==="next"&&t>=this.maxIndex));e&&i&&i.focus()}}}};const K={passive:!1,capture:!0},gt={passive:!0,capture:!0},xe="touchstart mousedown",Q="touchmove mousemove",mt="touchend touchcancel mouseup click input scroll";var $e={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:xe,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||!s.isTouch(t)&&ye(t.target)||s.closest(t.target,s.selInput)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:Q,el(){return this.list},handler:s.noop,...K}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,s.on(document,Q,this.move,K),s.on(document,mt,this.end,gt),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;s.css(this.list,"pointerEvents","none"),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;const{slides:i}=this;let{prevIndex:n}=this,r=Math.abs(e),o=this.getIndex(n+this.dir,n),a=this._getDistance(n,o)||i[n].offsetWidth;for(;o!==n&&r>a;)this.drag-=a*this.dir,n=o,r-=a,o=this.getIndex(n+this.dir,n),a=this._getDistance(n,o)||i[n].offsetWidth;this.percent=r/a;const h=i[n],l=i[o],c=this.index!==o,d=n===o;let u;[this.index,this.prevIndex].filter(w=>!s.includes([o,n],w)).forEach(w=>{s.trigger(i[w],"itemhidden",[this]),d&&(u=!0,this.prevIndex=n)}),(this.index===n&&this.prevIndex!==n||u)&&s.trigger(i[this.index],"itemshown",[this]),c&&(this.prevIndex=n,this.index=o,!d&&s.trigger(h,"beforeitemhide",[this]),s.trigger(l,"beforeitemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),h,!d&&l),c&&(!d&&s.trigger(h,"itemhide",[this]),s.trigger(l,"itemshow",[this]))},end(){if(s.off(document,Q,this.move,K),s.off(document,mt,this.end,gt),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)}s.css(this.list,{userSelect:"",pointerEvents:""}),this.drag=this.percent=null}}};function ye(t){return s.css(t,"userSelect")!=="none"&&s.toNodes(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}var ke={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){s.attr(this.list,"aria-live","polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){s.attr(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el(){return document},filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}},{name:`${s.pointerEnter} focusin`,filter(){return this.autoplay},handler(t){(t.type!==s.pointerEnter||this.pauseOnHover)&&this.stopAutoplay()}},{name:`${s.pointerLeave} focusout`,filter(){return this.autoplay},handler(t){(t.type!==s.pointerLeave||this.pauseOnHover)&&this.startAutoplay()}}],methods:{startAutoplay(){this.draggable&&s.matches(this.$el,":focus-within")||this.pauseOnHover&&s.matches(this.$el,":hover")||(this.stopAutoplay(),this.interval=setInterval(()=>!this.stack.length&&this.show("next"),this.autoplayInterval),s.attr(this.list,"aria-live","off"))},stopAutoplay(){clearInterval(this.interval),s.attr(this.list,"aria-live","polite")}}};function Ie(t){return Ce(s.observeResize,t,"resize")}function Ce(t,e,i){return{observe:t,handler(){this.$emit(i)},...e}}var Ae={mixins:[ke,$e,we,be],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(){s.removeClass(this.slides,this.clsActive)},computed:{duration({velocity:t},e){return Ee(e.offsetWidth/t)},list({selList:t},e){return s.$(t,e)},maxIndex(){return this.length-1},slides:{get(){return s.children(this.list)},watch(){this.$emit()}},length(){return this.slides.length}},observe:Ie(),methods:{show(t,e=!1){var i;if(this.dragging||!this.length)return;const{stack:n}=this,r=e?0:n.length,o=()=>{n.splice(r,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],l=this.getIndex(t,this.index),c=this.slides[l];if(h===c){o();return}if(this.dir=Te(t,a),this.prevIndex=a,this.index=l,h&&!s.trigger(h,"beforeitemhide",[this])||!s.trigger(c,"beforeitemshow",[this,h])){this.index=this.prevIndex,o();return}const d=this._show(h,c,e).then(()=>{h&&s.trigger(h,"itemhidden",[this]),s.trigger(c,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return h&&s.trigger(h,"itemhide",[this]),s.trigger(c,"itemshow",[this]),d},getIndex(t=this.index,e=this.index){return s.clamp(s.getIndex(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_getDistance(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()},_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 Te(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Ee(t){return .5*t+300}var Ne={mixins:[Ae],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:y,Transitioner:ve},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},events:{beforeitemshow({target:t}){s.addClass(t,this.clsActive)},itemshown({target:t}){s.addClass(t,this.clsActivated)},itemhidden({target:t}){s.removeClass(t,this.clsActive,this.clsActivated)}}},vt={mixins:[fe,Ne],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:()=>({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:et,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const t=s.$(this.template),e=s.$(this.selList,t);this.items.forEach(()=>s.append(e,"<li>"));const i=s.$("[uk-close]",t),n=this.t("close");i&&n&&(i.dataset.i18n=JSON.stringify({label:n})),this.$mount(s.append(this.container,t))},computed:{caption({selCaption:t},e){return s.$(t,e)}},events:[{name:`${s.pointerMove} ${s.pointerDown} keydown`,handler:"showControls"},{name:"click",self:!0,delegate(){return`${this.selList} > *`},handler(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler(){this.showControls()}},{name:"hide",self:!0,handler(){this.hideControls(),s.removeClass(this.slides,this.clsActive),s.Transition.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el(){return document},handler({keyCode:t}){if(!this.isToggled(this.$el)||!this.draggable)return;let e=-1;t===b.LEFT?e="previous":t===b.RIGHT?e="next":t===b.HOME?e=0:t===b.END&&(e="last"),~e&&this.show(e)}},{name:"beforeitemshow",handler(t){this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=et.scale,s.removeClass(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){s.html(this.caption,this.getItem().caption||"");for(let t=-this.preload;t<=this.preload;t++)this.loadItem(this.index+t)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(t,e){const{source:i,type:n,alt:r="",poster:o,attrs:a={}}=e;if(this.setItem(e,"<span uk-spinner></span>"),!i)return;let h;const l={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${this.videoAutoplay}`};if(n==="image"||i.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const c=A("img",{src:i,alt:r,...a});s.on(c,"load",()=>this.setItem(e,c)),s.on(c,"error",()=>this.setError(e))}else if(n==="video"||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const c=A("video",{src:i,poster:o,controls:"",playsinline:"","uk-video":`${this.videoAutoplay}`,...a});s.on(c,"loadedmetadata",()=>this.setItem(e,c)),s.on(c,"error",()=>this.setError(e))}else if(n==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(e,A("iframe",{src:i,allowfullscreen:"",class:"uk-lightbox-iframe",...a}));else if(h=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(e,A("iframe",{src:`https://www.youtube${h[1]||""}.com/embed/${h[2]}${h[3]?`?${h[3]}`:""}`,width:1920,height:1080,...l,...a}));else if(h=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:c,width:d}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(e,A("iframe",{src:`https://player.vimeo.com/video/${h[1]}${h[2]?`?${h[2]}`:""}`,width:d,height:c,...l,...a}))}catch{this.setError(e)}}}],methods:{loadItem(t=this.index){const e=this.getItem(t);this.getSlide(e).childElementCount||s.trigger(this.$el,"itemload",[e])},getItem(t=this.index){return this.items[s.getIndex(t,this.slides)]},setItem(t,e){s.trigger(this.$el,"itemloaded",[this,s.html(this.getSlide(t),e)])},getSlide(t){return this.slides[this.items.indexOf(t)]},setError(t){this.setItem(t,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),s.addClass(this.$el,"uk-active","uk-transition-active")},hideControls(){s.removeClass(this.$el,"uk-active","uk-transition-active")}}};function A(t,e){const i=s.fragment(`<${t}>`);return s.attr(i,e),i}return typeof window<"u"&&window.UIkit&&window.UIkit.component("lightboxPanel",vt),vt});