uikit 3.19.5-dev.8317c4705 → 3.19.5-dev.92ee0f0d9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/css/uikit-core-rtl.css +2 -2
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +2 -2
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +2 -2
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +2 -2
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +2 -2
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +55 -55
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +55 -55
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +40 -40
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +41 -41
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +41 -42
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +41 -41
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +41 -41
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +2 -2
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +128 -103
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +137 -110
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/api/boot.js +6 -7
  44. package/src/js/api/component.js +4 -4
  45. package/src/js/api/computed.js +20 -26
  46. package/src/js/api/observer.js +17 -5
  47. package/src/js/components/slider-parallax.js +2 -2
  48. package/src/js/components/slider.js +1 -1
  49. package/src/js/core/drop.js +1 -2
  50. package/src/js/core/height-placeholder.js +4 -1
  51. package/src/js/core/height-viewport.js +1 -1
  52. package/src/js/core/icon.js +2 -3
  53. package/src/js/core/img.js +1 -1
  54. package/src/js/core/inverse.js +22 -5
  55. package/src/js/core/modal.js +5 -6
  56. package/src/js/core/sticky.js +1 -1
  57. package/src/js/core/switcher.js +4 -1
  58. package/src/js/core/toggle.js +6 -3
  59. package/src/js/mixin/internal/animate-fade.js +1 -3
  60. package/src/js/mixin/parallax.js +7 -3
  61. package/src/js/mixin/slider.js +0 -3
  62. package/src/js/mixin/slideshow.js +3 -0
  63. package/src/js/util/filter.js +7 -14
  64. package/src/js/util/lang.js +1 -1
  65. package/src/js/util/selector.js +33 -24
  66. package/src/js/util/svg.js +1 -12
  67. package/src/less/components/utility.less +1 -1
  68. package/src/scss/components/utility.scss +1 -1
  69. package/tests/js/index.js +12 -10
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.92ee0f0d9 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitnotification",["uikit-util"],o):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitNotification=o(t.UIkit.util))})(this,function(t){"use strict";var o={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},r={mixins:[o],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:"",pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:c,computed:{marginProp:({pos:s})=>`margin-${s.match(/[a-z]+(?=-)/)[0]}`,startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const s=`${this.clsContainer}-${this.pos}`,e=`data-${this.clsContainer}-container`,i=t.$(`.${s}[${e}]`,this.container)||t.append(this.container,`<div class="${this.clsContainer} ${s}" ${e}></div>`);this.$mount(t.append(i,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-uk-close></a> <div>${this.message}</div> </div>`))},async connected(){const s=t.toFloat(t.css(this.$el,this.marginProp));await t.Transition.start(t.css(this.$el,this.startProps),{opacity:1,[this.marginProp]:s}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(s){s.target.closest('a[href="#"],a[href=""]')&&s.preventDefault(),this.close()},[t.pointerEnter](){this.timer&&clearTimeout(this.timer)},[t.pointerLeave](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(s){const e=i=>{const n=t.parent(i);t.trigger(i,"close",[this]),t.remove(i),n!=null&&n.hasChildNodes()||t.remove(n)};this.timer&&clearTimeout(this.timer),s||await t.Transition.start(this.$el,this.startProps),e(this.$el)}}};function c(s){s.notification.closeAll=function(e,i){t.apply(document.body,n=>{const a=s.getComponent(n,"notification");a&&(!e||e===a.group)&&a.close(i)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r});
1
+ /*! UIkit 3.19.5-dev.92ee0f0d9 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(t,o){typeof exports=="object"&&typeof module<"u"?module.exports=o(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitnotification",["uikit-util"],o):(t=typeof globalThis<"u"?globalThis:t||self,t.UIkitNotification=o(t.UIkit.util))})(this,function(t){"use strict";var o={props:{container:Boolean},data:{container:!0},computed:{container({container:s}){return s===!0&&this.$container||s&&t.$(s)}}},r={mixins:[o],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:"",pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:c,computed:{marginProp:({pos:s})=>`margin-${s.match(/[a-z]+(?=-)/)[0]}`,startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const s=`${this.clsContainer}-${this.pos}`,e=`data-${this.clsContainer}-container`,i=t.$(`.${s}[${e}]`,this.container)||t.append(this.container,`<div class="${this.clsContainer} ${s}" ${e}></div>`);this.$mount(t.append(i,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-uk-close></a> <div>${this.message}</div> </div>`))},async connected(){const s=t.toFloat(t.css(this.$el,this.marginProp));await t.Transition.start(t.css(this.$el,this.startProps),{opacity:1,[this.marginProp]:s}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(s){s.target.closest('a[href="#"],a[href=""]')&&s.preventDefault(),this.close()},[t.pointerEnter](){this.timer&&clearTimeout(this.timer)},[t.pointerLeave](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(s){const e=i=>{const n=t.parent(i);t.trigger(i,"close",[this]),t.remove(i),n!=null&&n.hasChildNodes()||t.remove(n)};this.timer&&clearTimeout(this.timer),s||await t.Transition.start(this.$el,this.startProps),e(this.$el)}}};function c(s){s.notification.closeAll=function(e,i){t.apply(document.body,n=>{const a=s.getComponent(n,"notification");a&&(!e||e===a.group)&&a.close(i)})}}return typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",r),r});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.92ee0f0d9 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -147,7 +147,7 @@
147
147
  return value === void 0;
148
148
  }
149
149
  function toNode(element) {
150
- return toNodes(element)[0];
150
+ return element && toNodes(element)[0];
151
151
  }
152
152
  function toNodes(element) {
153
153
  return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
@@ -210,15 +210,13 @@
210
210
  const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
211
211
  const trailingCommaRe = /\s*,$/;
212
212
  const parseSelector = memoize((selector) => {
213
+ var _a;
213
214
  selector = selector.replace(addStarRe, "$1 *");
214
215
  let isContextSelector = false;
215
216
  const selectors = [];
216
- for (let sel of selector.match(splitSelectorRe)) {
217
+ for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
217
218
  sel = sel.replace(trailingCommaRe, "").trim();
218
- if (sel[0] === ">") {
219
- sel = `:scope ${sel}`;
220
- }
221
- isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
219
+ isContextSelector || (isContextSelector = ["!", "+", "~", "-", ">"].includes(sel[0]));
222
220
  selectors.push(sel);
223
221
  }
224
222
  return {
@@ -227,6 +225,11 @@
227
225
  isContextSelector
228
226
  };
229
227
  });
228
+ const parsePositionSelector = memoize((selector) => {
229
+ selector = selector.substr(1).trim();
230
+ const index2 = selector.indexOf(" ");
231
+ return ~index2 ? [selector.substring(0, index2), selector.substring(index2 + 1)] : [selector, ""];
232
+ });
230
233
  function _query(selector, context = document, queryFn) {
231
234
  if (!selector || !isString(selector)) {
232
235
  return selector;
@@ -238,33 +241,36 @@
238
241
  selector = "";
239
242
  const isSingle = parsed.selectors.length === 1;
240
243
  for (let sel of parsed.selectors) {
244
+ let positionSel;
241
245
  let ctx = context;
242
246
  if (sel[0] === "!") {
243
- const selectors = sel.substr(1).trim().split(" ");
244
- ctx = parent(context).closest(selectors[0]);
245
- sel = selectors.slice(1).join(" ").trim();
246
- if (!sel.length && isSingle) {
247
+ [positionSel, sel] = parsePositionSelector(sel);
248
+ ctx = context.parentElement.closest(positionSel);
249
+ if (!sel && isSingle) {
247
250
  return ctx;
248
251
  }
249
252
  }
250
- if (sel[0] === "-") {
251
- const selectors = sel.substr(1).trim().split(" ");
252
- const prev = (ctx || context).previousElementSibling;
253
- ctx = matches(prev, sel.substr(1)) ? prev : null;
254
- sel = selectors.slice(1).join(" ");
255
- if (!sel.length && isSingle) {
253
+ if (ctx && sel[0] === "-") {
254
+ [positionSel, sel] = parsePositionSelector(sel);
255
+ ctx = ctx.previousElementSibling;
256
+ ctx = matches(ctx, positionSel) ? ctx : null;
257
+ if (!sel && isSingle) {
256
258
  return ctx;
257
259
  }
258
- } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
259
- return _doQuery(
260
- parent(context),
261
- queryFn,
262
- `:scope :nth-child(${index(context) + 1}) ${sel}`
263
- );
264
260
  }
265
- if (ctx) {
266
- selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
261
+ if (!ctx) {
262
+ continue;
263
+ }
264
+ if (isSingle) {
265
+ if (sel[0] === "~" || sel[0] === "+") {
266
+ sel = `:scope :nth-child(${index(ctx) + 1}) ${sel}`;
267
+ ctx = ctx.parentElement;
268
+ } else if (sel[0] === ">") {
269
+ sel = `:scope ${sel}`;
270
+ }
271
+ return _doQuery(ctx, queryFn, sel);
267
272
  }
273
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
268
274
  }
269
275
  if (!isDocument(context)) {
270
276
  context = context.ownerDocument;
@@ -321,18 +327,10 @@
321
327
  }
322
328
 
323
329
  function getMaxPathLength(el) {
324
- return Math.ceil(
325
- Math.max(
326
- 0,
327
- ...$$("[stroke]", el).map((stroke) => {
328
- try {
329
- return stroke.getTotalLength();
330
- } catch (e) {
331
- return 0;
332
- }
333
- })
334
- )
335
- );
330
+ return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
331
+ var _a;
332
+ return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
333
+ })));
336
334
  }
337
335
 
338
336
  const props = {
@@ -536,6 +534,7 @@
536
534
  }
537
535
  };
538
536
  }
537
+ const loading = {};
539
538
  const dimensions = {};
540
539
  function getBackgroundImageDimensions(el) {
541
540
  const src = uikitUtil.css(el, "backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/, "$1");
@@ -545,11 +544,12 @@
545
544
  const image = new Image();
546
545
  if (src) {
547
546
  image.src = src;
548
- if (!image.naturalWidth) {
549
- image.onload = () => {
547
+ if (!image.naturalWidth && !loading[src]) {
548
+ uikitUtil.once(image, "error load", () => {
550
549
  dimensions[src] = toDimensions(image);
551
550
  uikitUtil.trigger(el, uikitUtil.createEvent("load", false));
552
- };
551
+ });
552
+ loading[src] = true;
553
553
  return toDimensions(image);
554
554
  }
555
555
  }
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(i,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitparallax",["uikit-util"],b):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitParallax=b(i.UIkit.util))})(this,function(i){"use strict";function b(n,t="update"){n._connected&&n._updates.length&&(n._queued||(n._queued=new Set,i.fastdom.read(()=>{n._connected&&K(n,n._queued),delete n._queued})),n._queued.add(t.type||t))}function K(n,t){for(const{read:e,write:r,events:s=[]}of n._updates){if(!t.has("update")&&!s.some(c=>t.has(c)))continue;let o;e&&(o=e.call(n,n._data,t),o&&i.isPlainObject(o)&&i.assign(n._data,o)),r&&o!==!1&&i.fastdom.write(()=>{n._connected&&r.call(n,n._data,t)})}}function X(n){return M(i.observeResize,n,"resize")}function Y(n){return M((t,e)=>i.observeViewportResize(e),n,"resize")}function Z(n){return M((t,e)=>({disconnect:i.on(k(t),"scroll",e,{passive:!0})}),n,"scroll")}function M(n,t,e){return{observe:n,handler(){b(this,e)},...t}}function k(n){return i.toNodes(n).map(t=>{const{ownerDocument:e}=t,r=i.scrollParent(t,!0);return r===e.scrollingElement?e:r})}var U={props:{media:Boolean},data:{media:!1},connected(){const n=nn(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const t=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function nn(n,t){if(i.isString(n)){if(i.startsWith(n,"@"))n=i.toFloat(i.css(t,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&i.isNumeric(n)?`(min-width: ${n}px)`:""}function tn(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{isArray:An,from:en}=Array;function rn(n){return typeof n=="function"}function F(n){return n!==null&&typeof n=="object"}function on(n){return F(n)&&n===n.window}function sn(n){return A(n)===9}function z(n){return A(n)>=1}function A(n){return!on(n)&&F(n)&&n.nodeType}function O(n){return typeof n=="string"}function cn(n){return n===void 0}function $(n){return h(n)[0]}function h(n){return z(n)?[n]:Array.from(n||[]).filter(z)}function an(n){const t=Object.create(null);return(e,...r)=>t[e]||(t[e]=n(e,...r))}function P(n,t,e){var r;if(F(t)){for(const s in t)P(n,s,t[s]);return}if(cn(e))return(r=$(n))==null?void 0:r.getAttribute(t);for(const s of h(n))rn(e)&&(e=e.call(s,P(s,t))),e===null?fn(s,t):s.setAttribute(t,e)}function fn(n,t){h(n).forEach(e=>e.removeAttribute(t))}function j(n){var t;return(t=$(n))==null?void 0:t.parentElement}function un(n,t){return h(n).filter(e=>T(e,t))}function T(n,t){return h(n).some(e=>e.matches(t))}function dn(n,t){n=$(n);const e=n?en(n.children):[];return t?un(e,t):e}function W(n,t){return t?h(n).indexOf($(t)):dn(j(n)).indexOf(n)}function hn(n,t){return h($n(n,$(t),"querySelectorAll"))}const ln=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,gn=/.*?[^\\](?![^(]*\))(?:,|$)/g,mn=/\s*,$/,bn=an(n=>{n=n.replace(ln,"$1 *");let t=!1;const e=[];for(let r of n.match(gn))r=r.replace(mn,"").trim(),r[0]===">"&&(r=`:scope ${r}`),t||(t=["!","+","~","-"].includes(r[0])),e.push(r);return{selector:e.join(","),selectors:e,isContextSelector:t}});function $n(n,t=document,e){if(!n||!O(n))return n;const r=bn(n);if(!r.isContextSelector)return C(t,e,r.selector);n="";const s=r.selectors.length===1;for(let o of r.selectors){let c=t;if(o[0]==="!"){const a=o.substr(1).trim().split(" ");if(c=j(t).closest(a[0]),o=a.slice(1).join(" ").trim(),!o.length&&s)return c}if(o[0]==="-"){const a=o.substr(1).trim().split(" "),u=(c||t).previousElementSibling;if(c=T(u,o.substr(1))?u:null,o=a.slice(1).join(" "),!o.length&&s)return c}else if(o[0]==="~"||o[0]==="+"&&s)return C(j(t),e,`:scope :nth-child(${W(t)+1}) ${o}`);c&&(n+=`${n?",":""}${pn(c)} ${o}`)}return sn(t)||(t=t.ownerDocument),C(t,e,n)}function C(n,t,e){try{return n[t](e)}catch{return null}}function pn(n){const t=[];for(;n.parentNode;){const e=P(n,"id");if(e){t.unshift(`#${xn(e)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${W(n)+1})`),t.unshift(r),n=n.parentNode}}return t.join(" > ")}function xn(n){return O(n)?CSS.escape(n):""}const wn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function vn(n){const t=wn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),yn(e.content.childNodes)}function yn(n){return n.length>1?n:n[0]}function Sn(n,t){return _n(n)?h(vn(n)):hn(n,t)}function _n(n){return O(n)&&tn(n.trim(),"<")}function Mn(n){return Math.ceil(Math.max(0,...Sn("[stroke]",n).map(t=>{try{return t.getTotalLength()}catch{return 0}})))}const v={x:y,y,rotate:y,scale:y,color:N,backgroundColor:N,borderColor:N,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Pn,stroke:jn,bgx:R,bgy:R},{keys:D}=Object;var Fn={mixins:[U],props:L(D(v),"list"),data:L(D(v),void 0),computed:{props(n,t){const e={};for(const s in n)s in v&&!i.isUndefined(n[s])&&(e[s]=n[s].slice());const r={};for(const s in e)r[s]=v[s](s,t,e[s],e);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))i.css(this.$el,n,"")},getCss(n){const t={};for(const e in this.props)this.props[e](t,i.clamp(n));return t.willChange=Object.keys(t).map(i.propName).join(","),t}}};function y(n,t,e){let r=_(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",s;return n==="x"||n==="y"?(n=`translate${i.ucfirst(n)}`,s=o=>i.toFloat(i.toFloat(o).toFixed(r==="px"?0:6))):n==="scale"&&(r="",s=o=>{var c;return _([o])?i.toPx(o,"width",t,!0)/t[`offset${(c=o.endsWith)!=null&&c.call(o,"vh")?"Height":"Width"}`]:i.toFloat(o)}),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,s),(o,c)=>{o.transform=`${o.transform||""} ${n}(${p(e,c)}${r})`}}function N(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e,r=>On(t,r)),(r,s)=>{const[o,c,a]=B(e,s),u=o.map((l,f)=>(l+=a*(c[f]-l),f===3?i.toFloat(l):parseInt(l,10))).join(",");r[n]=`rgba(${u})`}}function On(n,t){return x(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function g(n,t,e){e.length===1&&e.unshift(0);const r=_(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(s,o)=>{const c=p(e,o);s.filter=`${s.filter||""} ${n}(${c+r})`}}function Pn(n,t,e){return e.length===1&&e.unshift(x(t,n,"")),e=m(e),(r,s)=>{r[n]=p(e,s)}}function jn(n,t,e){e.length===1&&e.unshift(0);const r=_(e),s=Mn(t);return e=m(e.reverse(),o=>(o=i.toFloat(o),r==="%"?o*s/100:o)),e.some(([o])=>o)?(i.css(t,"strokeDasharray",s),(o,c)=>{o.strokeDashoffset=p(e,c)}):i.noop}function R(n,t,e,r){e.length===1&&e.unshift(0);const s=n==="bgy"?"height":"width";r[n]=m(e,a=>i.toPx(a,s,t));const o=["bgx","bgy"].filter(a=>a in r);if(o.length===2&&n==="bgx")return i.noop;if(x(t,"backgroundSize","")==="cover")return Cn(n,t,e,r);const c={};for(const a of o)c[a]=q(t,a);return H(o,c,r)}function Cn(n,t,e,r){const s=Nn(t);if(!s.width)return i.noop;const o={width:t.offsetWidth,height:t.offsetHeight},c=["bgx","bgy"].filter(f=>f in r),a={};for(const f of c){const d=r[f].map(([zn])=>zn),w=Math.min(...d),I=Math.max(...d),G=d.indexOf(w)<d.indexOf(I),J=I-w;a[f]=`${(G?-J:0)-(G?w:I)}px`,o[f==="bgy"?"height":"width"]+=J}const u=i.Dimensions.cover(s,o);for(const f of c){const d=f==="bgy"?"height":"width",w=u[d]-o[d];a[f]=`max(${q(t,f)},-${w}px) + ${a[f]}`}const l=H(c,a,r);return(f,d)=>{l(f,d),f.backgroundSize=`${u.width}px ${u.height}px`,f.backgroundRepeat="no-repeat"}}function q(n,t){return x(n,`background-position-${t.substr(-1)}`,"")}function H(n,t,e){return function(r,s){for(const o of n){const c=p(e[o],s);r[`background-position-${o.substr(-1)}`]=`calc(${t[o]} + ${c}px)`}}}const S={};function Nn(n){const t=i.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[t])return S[t];const e=new Image;return t&&(e.src=t,!e.naturalWidth)?(e.onload=()=>{S[t]=E(e),i.trigger(n,i.createEvent("load",!1))},E(e)):S[t]=E(e)}function E(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=i.toFloat){const e=[],{length:r}=n;let s=0;for(let o=0;o<r;o++){let[c,a]=i.isString(n[o])?n[o].trim().split(/ (?![^(]*\))/):[n[o]];if(c=t(c),a=a?i.toFloat(a)/100:null,o===0?a===null?a=0:a&&e.push([c,0]):o===r-1&&(a===null?a=1:a!==1&&(e.push([c,a]),a=1)),e.push([c,a]),a===null)s++;else if(s){const u=e[o-s-1][1],l=(a-u)/(s+1);for(let f=s;f>0;f--)e[o-f][1]=u+l*(s-f+1);s=0}}return e}function B(n,t){const e=i.findIndex(n.slice(1),([,r])=>t<=r)+1;return[n[e-1][0],n[e][0],(t-n[e-1][1])/(n[e][1]-n[e-1][1])]}function p(n,t){const[e,r,s]=B(n,t);return e+Math.abs(e-r)*s*(e<r?1:-1)}const En=/^-?\d+(?:\.\d+)?(\S+)?/;function _(n,t){var e;for(const r of n){const s=(e=r.match)==null?void 0:e.call(r,En);if(s)return s[1]}return t}function x(n,t,e){const r=n.style[t],s=i.css(i.css(n,t,e),t);return n.style[t]=r,s}function L(n,t){return n.reduce((e,r)=>(e[r]=t,e),{})}function In(n,t){return t>=0?Math.pow(n,t+1):1-Math.pow(1-n,1-t)}var V={mixins:[Fn],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:n},t)=>Q(n&&i.query(n,t)||t),start({start:n}){return i.toPx(n,"height",this.target,!0)},end({end:n,viewport:t}){return i.toPx(n||(t=(1-t)*100)&&`${t}vh+${t}%`,"height",this.target,!0)}},observe:[Y(),Z({target:({target:n})=>n}),X({target:({$el:n,target:t})=>[n,t,i.scrollParent(t,!0)]})],update:{read({percent:n},t){if(t.has("scroll")||(n=!1),!i.isVisible(this.$el))return!1;if(!this.matchMedia)return;const e=n;return n=In(i.scrolledOver(this.target,this.start,this.end),this.easing),{percent:n,style:e===n?!1:this.getCss(n)}},write({style:n}){if(!this.matchMedia){this.reset();return}n&&i.css(this.$el,n)},events:["scroll","resize"]}};function Q(n){return n?"offsetTop"in n?n:Q(i.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",V),V});
1
+ /*! UIkit 3.19.5-dev.92ee0f0d9 | 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("uikitparallax",["uikit-util"],b):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitParallax=b(s.UIkit.util))})(this,function(s){"use strict";function b(n,t="update"){n._connected&&n._updates.length&&(n._queued||(n._queued=new Set,s.fastdom.read(()=>{n._connected&&Y(n,n._queued),delete n._queued})),n._queued.add(t.type||t))}function Y(n,t){for(const{read:e,write:o,events:i=[]}of n._updates){if(!t.has("update")&&!i.some(a=>t.has(a)))continue;let r;e&&(r=e.call(n,n._data,t),r&&s.isPlainObject(r)&&s.assign(n._data,r)),o&&r!==!1&&s.fastdom.write(()=>{n._connected&&o.call(n,n._data,t)})}}function Z(n){return M(s.observeResize,n,"resize")}function k(n){return M((t,e)=>s.observeViewportResize(e),n,"resize")}function U(n){return M((t,e)=>({disconnect:s.on(nn(t),"scroll",e,{passive:!0})}),n,"scroll")}function M(n,t,e){return{observe:n,handler(){b(this,e)},...t}}function nn(n){return s.toNodes(n).map(t=>{const{ownerDocument:e}=t,o=s.scrollParent(t,!0);return o===e.scrollingElement?e:o})}var tn={props:{media:Boolean},data:{media:!1},connected(){const n=en(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const t=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{t(),this.$emit("resize")}),t()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function en(n,t){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(t,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function rn(n,t){var e;return(e=n==null?void 0:n.startsWith)==null?void 0:e.call(n,t)}const{isArray:Wn,from:on}=Array;function sn(n){return typeof n=="function"}function O(n){return n!==null&&typeof n=="object"}function cn(n){return O(n)&&n===n.window}function an(n){return z(n)===9}function I(n){return z(n)>=1}function z(n){return!cn(n)&&O(n)&&n.nodeType}function F(n){return typeof n=="string"}function fn(n){return n===void 0}function $(n){return n&&d(n)[0]}function d(n){return I(n)?[n]:Array.from(n||[]).filter(I)}function A(n){const t=Object.create(null);return(e,...o)=>t[e]||(t[e]=n(e,...o))}function P(n,t,e){var o;if(O(t)){for(const i in t)P(n,i,t[i]);return}if(fn(e))return(o=$(n))==null?void 0:o.getAttribute(t);for(const i of d(n))sn(e)&&(e=e.call(i,P(i,t))),e===null?un(i,t):i.setAttribute(t,e)}function un(n,t){d(n).forEach(e=>e.removeAttribute(t))}function dn(n){var t;return(t=$(n))==null?void 0:t.parentElement}function hn(n,t){return d(n).filter(e=>T(e,t))}function T(n,t){return d(n).some(e=>e.matches(t))}function ln(n,t){n=$(n);const e=n?on(n.children):[];return t?hn(e,t):e}function W(n,t){return t?d(n).indexOf($(t)):ln(dn(n)).indexOf(n)}function gn(n,t){return d(pn(n,$(t),"querySelectorAll"))}const mn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,bn=/.*?[^\\](?![^(]*\))(?:,|$)/g,$n=/\s*,$/,xn=A(n=>{var t;n=n.replace(mn,"$1 *");let e=!1;const o=[];for(let i of(t=n.match(bn))!=null?t:[])i=i.replace($n,"").trim(),e||(e=["!","+","~","-",">"].includes(i[0])),o.push(i);return{selector:o.join(","),selectors:o,isContextSelector:e}}),D=A(n=>{n=n.substr(1).trim();const t=n.indexOf(" ");return~t?[n.substring(0,t),n.substring(t+1)]:[n,""]});function pn(n,t=document,e){if(!n||!F(n))return n;const o=xn(n);if(!o.isContextSelector)return j(t,e,o.selector);n="";const i=o.selectors.length===1;for(let r of o.selectors){let a,c=t;if(r[0]==="!"&&([a,r]=D(r),c=t.parentElement.closest(a),!r&&i)||c&&r[0]==="-"&&([a,r]=D(r),c=c.previousElementSibling,c=T(c,a)?c:null,!r&&i))return c;if(c){if(i)return r[0]==="~"||r[0]==="+"?(r=`:scope :nth-child(${W(c)+1}) ${r}`,c=c.parentElement):r[0]===">"&&(r=`:scope ${r}`),j(c,e,r);n+=`${n?",":""}${vn(c)} ${r}`}}return an(t)||(t=t.ownerDocument),j(t,e,n)}function j(n,t,e){try{return n[t](e)}catch{return null}}function vn(n){const t=[];for(;n.parentNode;){const e=P(n,"id");if(e){t.unshift(`#${wn(e)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${W(n)+1})`),t.unshift(o),n=n.parentNode}}return t.join(" > ")}function wn(n){return F(n)?CSS.escape(n):""}const yn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Sn(n){const t=yn.exec(n);if(t)return document.createElement(t[1]);const e=document.createElement("template");return e.innerHTML=n.trim(),_n(e.content.childNodes)}function _n(n){return n.length>1?n:n[0]}function Mn(n,t){return On(n)?d(Sn(n)):gn(n,t)}function On(n){return F(n)&&rn(n.trim(),"<")}function Fn(n){return Math.ceil(Math.max(0,...Mn("[stroke]",n).map(t=>{var e;return(e=t.getTotalLength)==null?void 0:e.call(t)})))}const w={x:y,y,rotate:y,scale:y,color:C,backgroundColor:C,borderColor:C,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Cn,stroke:Nn,bgx:q,bgy:q},{keys:R}=Object;var Pn={mixins:[tn],props:Q(R(w),"list"),data:Q(R(w),void 0),computed:{props(n,t){const e={};for(const i in n)i in w&&!s.isUndefined(n[i])&&(e[i]=n[i].slice());const o={};for(const i in e)o[i]=w[i](i,t,e[i],e);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const t={};for(const e in this.props)this.props[e](t,s.clamp(n));return t.willChange=Object.keys(t).map(s.propName).join(","),t}}};function y(n,t,e){let o=_(e)||{x:"px",y:"px",rotate:"deg"}[n]||"",i;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,i=r=>s.toFloat(s.toFloat(r).toFixed(o==="px"?0:6))):n==="scale"&&(o="",i=r=>{var a;return _([r])?s.toPx(r,"width",t,!0)/t[`offset${(a=r.endsWith)!=null&&a.call(r,"vh")?"Height":"Width"}`]:s.toFloat(r)}),e.length===1&&e.unshift(n==="scale"?1:0),e=m(e,i),(r,a)=>{r.transform=`${r.transform||""} ${n}(${x(e,a)}${o})`}}function C(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e,o=>jn(t,o)),(o,i)=>{const[r,a,c]=V(e,i),h=r.map((l,f)=>(l+=c*(a[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");o[n]=`rgba(${h})`}}function jn(n,t){return p(n,"color",t).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function g(n,t,e){e.length===1&&e.unshift(0);const o=_(e)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,e=m(e),(i,r)=>{const a=x(e,r);i.filter=`${i.filter||""} ${n}(${a+o})`}}function Cn(n,t,e){return e.length===1&&e.unshift(p(t,n,"")),e=m(e),(o,i)=>{o[n]=x(e,i)}}function Nn(n,t,e){e.length===1&&e.unshift(0);const o=_(e),i=Fn(t);return e=m(e.reverse(),r=>(r=s.toFloat(r),o==="%"?r*i/100:r)),e.some(([r])=>r)?(s.css(t,"strokeDasharray",i),(r,a)=>{r.strokeDashoffset=x(e,a)}):s.noop}function q(n,t,e,o){e.length===1&&e.unshift(0);const i=n==="bgy"?"height":"width";o[n]=m(e,c=>s.toPx(c,i,t));const r=["bgx","bgy"].filter(c=>c in o);if(r.length===2&&n==="bgx")return s.noop;if(p(t,"backgroundSize","")==="cover")return En(n,t,e,o);const a={};for(const c of r)a[c]=H(t,c);return B(r,a,o)}function En(n,t,e,o){const i=In(t);if(!i.width)return s.noop;const r={width:t.offsetWidth,height:t.offsetHeight},a=["bgx","bgy"].filter(f=>f in o),c={};for(const f of a){const u=o[f].map(([Tn])=>Tn),v=Math.min(...u),E=Math.max(...u),K=u.indexOf(v)<u.indexOf(E),X=E-v;c[f]=`${(K?-X:0)-(K?v:E)}px`,r[f==="bgy"?"height":"width"]+=X}const h=s.Dimensions.cover(i,r);for(const f of a){const u=f==="bgy"?"height":"width",v=h[u]-r[u];c[f]=`max(${H(t,f)},-${v}px) + ${c[f]}`}const l=B(a,c,o);return(f,u)=>{l(f,u),f.backgroundSize=`${h.width}px ${h.height}px`,f.backgroundRepeat="no-repeat"}}function H(n,t){return p(n,`background-position-${t.substr(-1)}`,"")}function B(n,t,e){return function(o,i){for(const r of n){const a=x(e[r],i);o[`background-position-${r.substr(-1)}`]=`calc(${t[r]} + ${a}px)`}}}const L={},S={};function In(n){const t=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[t])return S[t];const e=new Image;return t&&(e.src=t,!e.naturalWidth&&!L[t])?(s.once(e,"error load",()=>{S[t]=N(e),s.trigger(n,s.createEvent("load",!1))}),L[t]=!0,N(e)):S[t]=N(e)}function N(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,t=s.toFloat){const e=[],{length:o}=n;let i=0;for(let r=0;r<o;r++){let[a,c]=s.isString(n[r])?n[r].trim().split(/ (?![^(]*\))/):[n[r]];if(a=t(a),c=c?s.toFloat(c)/100:null,r===0?c===null?c=0:c&&e.push([a,0]):r===o-1&&(c===null?c=1:c!==1&&(e.push([a,c]),c=1)),e.push([a,c]),c===null)i++;else if(i){const h=e[r-i-1][1],l=(c-h)/(i+1);for(let f=i;f>0;f--)e[r-f][1]=h+l*(i-f+1);i=0}}return e}function V(n,t){const e=s.findIndex(n.slice(1),([,o])=>t<=o)+1;return[n[e-1][0],n[e][0],(t-n[e-1][1])/(n[e][1]-n[e-1][1])]}function x(n,t){const[e,o,i]=V(n,t);return e+Math.abs(e-o)*i*(e<o?1:-1)}const zn=/^-?\d+(?:\.\d+)?(\S+)?/;function _(n,t){var e;for(const o of n){const i=(e=o.match)==null?void 0:e.call(o,zn);if(i)return i[1]}return t}function p(n,t,e){const o=n.style[t],i=s.css(s.css(n,t,e),t);return n.style[t]=o,i}function Q(n,t){return n.reduce((e,o)=>(e[o]=t,e),{})}function An(n,t){return t>=0?Math.pow(n,t+1):1-Math.pow(1-n,1-t)}var G={mixins:[Pn],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:n},t)=>J(n&&s.query(n,t)||t),start({start:n}){return s.toPx(n,"height",this.target,!0)},end({end:n,viewport:t}){return s.toPx(n||(t=(1-t)*100)&&`${t}vh+${t}%`,"height",this.target,!0)}},observe:[k(),U({target:({target:n})=>n}),Z({target:({$el:n,target:t})=>[n,t,s.scrollParent(t,!0)]})],update:{read({percent:n},t){if(t.has("scroll")||(n=!1),!s.isVisible(this.$el))return!1;if(!this.matchMedia)return;const e=n;return n=An(s.scrolledOver(this.target,this.start,this.end),this.easing),{percent:n,style:e===n?!1:this.getCss(n)}},write({style:n}){if(!this.matchMedia){this.reset();return}n&&s.css(this.$el,n)},events:["scroll","resize"]}};function J(n){return n?"offsetTop"in n?n:J(s.parent(n)):document.documentElement}return typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",G),G});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.92ee0f0d9 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -75,7 +75,7 @@
75
75
  return value === void 0;
76
76
  }
77
77
  function toNode(element) {
78
- return toNodes(element)[0];
78
+ return element && toNodes(element)[0];
79
79
  }
80
80
  function toNodes(element) {
81
81
  return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
@@ -138,15 +138,13 @@
138
138
  const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
139
139
  const trailingCommaRe = /\s*,$/;
140
140
  const parseSelector = memoize((selector) => {
141
+ var _a;
141
142
  selector = selector.replace(addStarRe, "$1 *");
142
143
  let isContextSelector = false;
143
144
  const selectors = [];
144
- for (let sel of selector.match(splitSelectorRe)) {
145
+ for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
145
146
  sel = sel.replace(trailingCommaRe, "").trim();
146
- if (sel[0] === ">") {
147
- sel = `:scope ${sel}`;
148
- }
149
- isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
147
+ isContextSelector || (isContextSelector = ["!", "+", "~", "-", ">"].includes(sel[0]));
150
148
  selectors.push(sel);
151
149
  }
152
150
  return {
@@ -155,6 +153,11 @@
155
153
  isContextSelector
156
154
  };
157
155
  });
156
+ const parsePositionSelector = memoize((selector) => {
157
+ selector = selector.substr(1).trim();
158
+ const index2 = selector.indexOf(" ");
159
+ return ~index2 ? [selector.substring(0, index2), selector.substring(index2 + 1)] : [selector, ""];
160
+ });
158
161
  function _query(selector, context = document, queryFn) {
159
162
  if (!selector || !isString(selector)) {
160
163
  return selector;
@@ -166,33 +169,36 @@
166
169
  selector = "";
167
170
  const isSingle = parsed.selectors.length === 1;
168
171
  for (let sel of parsed.selectors) {
172
+ let positionSel;
169
173
  let ctx = context;
170
174
  if (sel[0] === "!") {
171
- const selectors = sel.substr(1).trim().split(" ");
172
- ctx = parent(context).closest(selectors[0]);
173
- sel = selectors.slice(1).join(" ").trim();
174
- if (!sel.length && isSingle) {
175
+ [positionSel, sel] = parsePositionSelector(sel);
176
+ ctx = context.parentElement.closest(positionSel);
177
+ if (!sel && isSingle) {
175
178
  return ctx;
176
179
  }
177
180
  }
178
- if (sel[0] === "-") {
179
- const selectors = sel.substr(1).trim().split(" ");
180
- const prev = (ctx || context).previousElementSibling;
181
- ctx = matches(prev, sel.substr(1)) ? prev : null;
182
- sel = selectors.slice(1).join(" ");
183
- if (!sel.length && isSingle) {
181
+ if (ctx && sel[0] === "-") {
182
+ [positionSel, sel] = parsePositionSelector(sel);
183
+ ctx = ctx.previousElementSibling;
184
+ ctx = matches(ctx, positionSel) ? ctx : null;
185
+ if (!sel && isSingle) {
184
186
  return ctx;
185
187
  }
186
- } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
187
- return _doQuery(
188
- parent(context),
189
- queryFn,
190
- `:scope :nth-child(${index(context) + 1}) ${sel}`
191
- );
192
188
  }
193
- if (ctx) {
194
- selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
189
+ if (!ctx) {
190
+ continue;
191
+ }
192
+ if (isSingle) {
193
+ if (sel[0] === "~" || sel[0] === "+") {
194
+ sel = `:scope :nth-child(${index(ctx) + 1}) ${sel}`;
195
+ ctx = ctx.parentElement;
196
+ } else if (sel[0] === ">") {
197
+ sel = `:scope ${sel}`;
198
+ }
199
+ return _doQuery(ctx, queryFn, sel);
195
200
  }
201
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
196
202
  }
197
203
  if (!isDocument(context)) {
198
204
  context = context.ownerDocument;
@@ -249,18 +255,10 @@
249
255
  }
250
256
 
251
257
  function getMaxPathLength(el) {
252
- return Math.ceil(
253
- Math.max(
254
- 0,
255
- ...$$("[stroke]", el).map((stroke) => {
256
- try {
257
- return stroke.getTotalLength();
258
- } catch (e) {
259
- return 0;
260
- }
261
- })
262
- )
263
- );
258
+ return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
259
+ var _a;
260
+ return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
261
+ })));
264
262
  }
265
263
 
266
264
  const props = {
@@ -464,6 +462,7 @@
464
462
  }
465
463
  };
466
464
  }
465
+ const loading = {};
467
466
  const dimensions = {};
468
467
  function getBackgroundImageDimensions(el) {
469
468
  const src = uikitUtil.css(el, "backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/, "$1");
@@ -473,11 +472,12 @@
473
472
  const image = new Image();
474
473
  if (src) {
475
474
  image.src = src;
476
- if (!image.naturalWidth) {
477
- image.onload = () => {
475
+ if (!image.naturalWidth && !loading[src]) {
476
+ uikitUtil.once(image, "error load", () => {
478
477
  dimensions[src] = toDimensions(image);
479
478
  uikitUtil.trigger(el, uikitUtil.createEvent("load", false));
480
- };
479
+ });
480
+ loading[src] = true;
481
481
  return toDimensions(image);
482
482
  }
483
483
  }
@@ -564,7 +564,7 @@
564
564
  var Component = {
565
565
  mixins: [Parallax],
566
566
  beforeConnect() {
567
- this.item = uikitUtil.closest(this.$el, `.${this.$options.id.replace("parallax", "items")} > *`);
567
+ this.item = this.$el.closest(`.${this.$options.id.replace("parallax", "items")} > *`);
568
568
  },
569
569
  disconnected() {
570
570
  this.item = null;
@@ -1 +1 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider_parallax",["uikit-util"],$):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider_parallax=$(s.UIkit.util))})(this,function(s){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=K(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function K(n,e){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(e,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function X(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:On,from:Y}=Array;function Z(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function k(n){return C(n)&&n===n.window}function U(n){return W(n)===9}function A(n){return W(n)>=1}function W(n){return!k(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function nn(n){return n===void 0}function b(n){return h(n)[0]}function h(n){return A(n)?[n]:Array.from(n||[]).filter(A)}function tn(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function j(n,e,t){var r;if(C(e)){for(const i in e)j(n,i,e[i]);return}if(nn(t))return(r=b(n))==null?void 0:r.getAttribute(e);for(const i of h(n))Z(t)&&(t=t.call(i,j(i,e))),t===null?en(i,e):i.setAttribute(e,t)}function en(n,e){h(n).forEach(t=>t.removeAttribute(e))}function O(n){var e;return(e=b(n))==null?void 0:e.parentElement}function rn(n,e){return h(n).filter(t=>_(t,e))}function _(n,e){return h(n).some(t=>t.matches(e))}function on(n,e){n=b(n);const t=n?Y(n.children):[];return e?rn(t,e):t}function E(n,e){return e?h(n).indexOf(b(e)):on(O(n)).indexOf(n)}function sn(n,e){return h(dn(n,b(e),"querySelectorAll"))}const cn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,an=/.*?[^\\](?![^(]*\))(?:,|$)/g,fn=/\s*,$/,un=tn(n=>{n=n.replace(cn,"$1 *");let e=!1;const t=[];for(let r of n.match(an))r=r.replace(fn,"").trim(),r[0]===">"&&(r=`:scope ${r}`),e||(e=["!","+","~","-"].includes(r[0])),t.push(r);return{selector:t.join(","),selectors:t,isContextSelector:e}});function dn(n,e=document,t){if(!n||!M(n))return n;const r=un(n);if(!r.isContextSelector)return P(e,t,r.selector);n="";const i=r.selectors.length===1;for(let o of r.selectors){let c=e;if(o[0]==="!"){const a=o.substr(1).trim().split(" ");if(c=O(e).closest(a[0]),o=a.slice(1).join(" ").trim(),!o.length&&i)return c}if(o[0]==="-"){const a=o.substr(1).trim().split(" "),u=(c||e).previousElementSibling;if(c=_(u,o.substr(1))?u:null,o=a.slice(1).join(" "),!o.length&&i)return c}else if(o[0]==="~"||o[0]==="+"&&i)return P(O(e),t,`:scope :nth-child(${E(e)+1}) ${o}`);c&&(n+=`${n?",":""}${hn(c)} ${o}`)}return U(e)||(e=e.ownerDocument),P(e,t,n)}function P(n,e,t){try{return n[e](t)}catch{return null}}function hn(n){const e=[];for(;n.parentNode;){const t=j(n,"id");if(t){e.unshift(`#${ln(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${E(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function ln(n){return M(n)?CSS.escape(n):""}const gn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function mn(n){const e=gn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),$n(t.content.childNodes)}function $n(n){return n.length>1?n:n[0]}function bn(n,e){return xn(n)?h(mn(n)):sn(n,e)}function xn(n){return M(n)&&X(n.trim(),"<")}function pn(n){return Math.ceil(Math.max(0,...bn("[stroke]",n).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const w={x:v,y:v,rotate:v,scale:v,color:I,backgroundColor:I,borderColor:I,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:vn,stroke:Sn,bgx:H,bgy:H},{keys:D}=Object;var yn={mixins:[$],props:L(D(w),"list"),data:L(D(w),void 0),computed:{props(n,e){const t={};for(const i in n)i in w&&!s.isUndefined(n[i])&&(t[i]=n[i].slice());const r={};for(const i in t)r[i]=w[i](i,e,t[i],t);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,s.clamp(n));return e.willChange=Object.keys(e).map(s.propName).join(","),e}}};function v(n,e,t){let r=F(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",i;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,i=o=>s.toFloat(s.toFloat(o).toFixed(r==="px"?0:6))):n==="scale"&&(r="",i=o=>{var c;return F([o])?s.toPx(o,"width",e,!0)/e[`offset${(c=o.endsWith)!=null&&c.call(o,"vh")?"Height":"Width"}`]:s.toFloat(o)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,i),(o,c)=>{o.transform=`${o.transform||""} ${n}(${x(t,c)}${r})`}}function I(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,r=>wn(e,r)),(r,i)=>{const[o,c,a]=B(t,i),u=o.map((l,f)=>(l+=a*(c[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");r[n]=`rgba(${u})`}}function wn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const r=F(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(i,o)=>{const c=x(t,o);i.filter=`${i.filter||""} ${n}(${c+r})`}}function vn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(r,i)=>{r[n]=x(t,i)}}function Sn(n,e,t){t.length===1&&t.unshift(0);const r=F(t),i=pn(e);return t=m(t.reverse(),o=>(o=s.toFloat(o),r==="%"?o*i/100:o)),t.some(([o])=>o)?(s.css(e,"strokeDasharray",i),(o,c)=>{o.strokeDashoffset=x(t,c)}):s.noop}function H(n,e,t,r){t.length===1&&t.unshift(0);const i=n==="bgy"?"height":"width";r[n]=m(t,a=>s.toPx(a,i,e));const o=["bgx","bgy"].filter(a=>a in r);if(o.length===2&&n==="bgx")return s.noop;if(p(e,"backgroundSize","")==="cover")return Fn(n,e,t,r);const c={};for(const a of o)c[a]=R(e,a);return z(o,c,r)}function Fn(n,e,t,r){const i=Cn(e);if(!i.width)return s.noop;const o={width:e.offsetWidth,height:e.offsetHeight},c=["bgx","bgy"].filter(f=>f in r),a={};for(const f of c){const d=r[f].map(([jn])=>jn),y=Math.min(...d),T=Math.max(...d),G=d.indexOf(y)<d.indexOf(T),J=T-y;a[f]=`${(G?-J:0)-(G?y:T)}px`,o[f==="bgy"?"height":"width"]+=J}const u=s.Dimensions.cover(i,o);for(const f of c){const d=f==="bgy"?"height":"width",y=u[d]-o[d];a[f]=`max(${R(e,f)},-${y}px) + ${a[f]}`}const l=z(c,a,r);return(f,d)=>{l(f,d),f.backgroundSize=`${u.width}px ${u.height}px`,f.backgroundRepeat="no-repeat"}}function R(n,e){return p(n,`background-position-${e.substr(-1)}`,"")}function z(n,e,t){return function(r,i){for(const o of n){const c=x(t[o],i);r[`background-position-${o.substr(-1)}`]=`calc(${e[o]} + ${c}px)`}}}const S={};function Cn(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{S[e]=N(t),s.trigger(n,s.createEvent("load",!1))},N(t)):S[e]=N(t)}function N(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=s.toFloat){const t=[],{length:r}=n;let i=0;for(let o=0;o<r;o++){let[c,a]=s.isString(n[o])?n[o].trim().split(/ (?![^(]*\))/):[n[o]];if(c=e(c),a=a?s.toFloat(a)/100:null,o===0?a===null?a=0:a&&t.push([c,0]):o===r-1&&(a===null?a=1:a!==1&&(t.push([c,a]),a=1)),t.push([c,a]),a===null)i++;else if(i){const u=t[o-i-1][1],l=(a-u)/(i+1);for(let f=i;f>0;f--)t[o-f][1]=u+l*(i-f+1);i=0}}return t}function B(n,e){const t=s.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function x(n,e){const[t,r,i]=B(n,e);return t+Math.abs(t-r)*i*(t<r?1:-1)}const Mn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,e){var t;for(const r of n){const i=(t=r.match)==null?void 0:t.call(r,Mn);if(i)return i[1]}return e}function p(n,e,t){const r=n.style[e],i=s.css(s.css(n,e,t),e);return n.style[e]=r,i}function L(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}var V={mixins:[yn],beforeConnect(){this.item=s.closest(this.$el,`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:r,dir:i}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const o=this.getCss(Q(n,i,e)),c=this.getCss(q(n)?.5:i>0?1:0);s.fastdom.write(()=>{s.css(this.$el,o),s.Transition.start(this.$el,c,t,r).catch(s.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){s.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,dir:t}}){s.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(Q(n,t,e));s.fastdom.write(()=>s.css(this.$el,r))})}}]};function q(n){return s.endsWith(n,"in")}function Q(n,e,t){return t/=2,q(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",V),V});
1
+ /*! UIkit 3.19.5-dev.92ee0f0d9 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */(function(s,$){typeof exports=="object"&&typeof module<"u"?module.exports=$(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslider_parallax",["uikit-util"],$):(s=typeof globalThis<"u"?globalThis:s||self,s.UIkitSlider_parallax=$(s.UIkit.util))})(this,function(s){"use strict";var $={props:{media:Boolean},data:{media:!1},connected(){const n=Y(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,s.trigger(this.$el,s.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=s.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function Y(n,e){if(s.isString(n)){if(s.startsWith(n,"@"))n=s.toFloat(s.css(e,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&s.isNumeric(n)?`(min-width: ${n}px)`:""}function Z(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:In,from:k}=Array;function U(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function nn(n){return C(n)&&n===n.window}function tn(n){return T(n)===9}function N(n){return T(n)>=1}function T(n){return!nn(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function en(n){return n===void 0}function b(n){return n&&d(n)[0]}function d(n){return N(n)?[n]:Array.from(n||[]).filter(N)}function A(n){const e=Object.create(null);return(t,...r)=>e[t]||(e[t]=n(t,...r))}function O(n,e,t){var r;if(C(e)){for(const o in e)O(n,o,e[o]);return}if(en(t))return(r=b(n))==null?void 0:r.getAttribute(e);for(const o of d(n))U(t)&&(t=t.call(o,O(o,e))),t===null?rn(o,e):o.setAttribute(e,t)}function rn(n,e){d(n).forEach(t=>t.removeAttribute(e))}function on(n){var e;return(e=b(n))==null?void 0:e.parentElement}function sn(n,e){return d(n).filter(t=>E(t,e))}function E(n,e){return d(n).some(t=>t.matches(e))}function cn(n,e){n=b(n);const t=n?k(n.children):[];return e?sn(t,e):t}function W(n,e){return e?d(n).indexOf(b(e)):cn(on(n)).indexOf(n)}function an(n,e){return d(ln(n,b(e),"querySelectorAll"))}const fn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,un=/.*?[^\\](?![^(]*\))(?:,|$)/g,dn=/\s*,$/,hn=A(n=>{var e;n=n.replace(fn,"$1 *");let t=!1;const r=[];for(let o of(e=n.match(un))!=null?e:[])o=o.replace(dn,"").trim(),t||(t=["!","+","~","-",">"].includes(o[0])),r.push(o);return{selector:r.join(","),selectors:r,isContextSelector:t}}),D=A(n=>{n=n.substr(1).trim();const e=n.indexOf(" ");return~e?[n.substring(0,e),n.substring(e+1)]:[n,""]});function ln(n,e=document,t){if(!n||!M(n))return n;const r=hn(n);if(!r.isContextSelector)return P(e,t,r.selector);n="";const o=r.selectors.length===1;for(let i of r.selectors){let a,c=e;if(i[0]==="!"&&([a,i]=D(i),c=e.parentElement.closest(a),!i&&o)||c&&i[0]==="-"&&([a,i]=D(i),c=c.previousElementSibling,c=E(c,a)?c:null,!i&&o))return c;if(c){if(o)return i[0]==="~"||i[0]==="+"?(i=`:scope :nth-child(${W(c)+1}) ${i}`,c=c.parentElement):i[0]===">"&&(i=`:scope ${i}`),P(c,t,i);n+=`${n?",":""}${gn(c)} ${i}`}}return tn(e)||(e=e.ownerDocument),P(e,t,n)}function P(n,e,t){try{return n[e](t)}catch{return null}}function gn(n){const e=[];for(;n.parentNode;){const t=O(n,"id");if(t){e.unshift(`#${mn(t)}`);break}else{let{tagName:r}=n;r!=="HTML"&&(r+=`:nth-child(${W(n)+1})`),e.unshift(r),n=n.parentNode}}return e.join(" > ")}function mn(n){return M(n)?CSS.escape(n):""}const $n=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function bn(n){const e=$n.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("template");return t.innerHTML=n.trim(),xn(t.content.childNodes)}function xn(n){return n.length>1?n:n[0]}function pn(n,e){return yn(n)?d(bn(n)):an(n,e)}function yn(n){return M(n)&&Z(n.trim(),"<")}function wn(n){return Math.ceil(Math.max(0,...pn("[stroke]",n).map(e=>{var t;return(t=e.getTotalLength)==null?void 0:t.call(e)})))}const w={x:v,y:v,rotate:v,scale:v,color:j,backgroundColor:j,borderColor:j,blur:g,hue:g,fopacity:g,grayscale:g,invert:g,saturate:g,sepia:g,opacity:Fn,stroke:Cn,bgx:R,bgy:R},{keys:H}=Object;var vn={mixins:[$],props:q(H(w),"list"),data:q(H(w),void 0),computed:{props(n,e){const t={};for(const o in n)o in w&&!s.isUndefined(n[o])&&(t[o]=n[o].slice());const r={};for(const o in t)r[o]=w[o](o,e,t[o],t);return r}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))s.css(this.$el,n,"")},getCss(n){const e={};for(const t in this.props)this.props[t](e,s.clamp(n));return e.willChange=Object.keys(e).map(s.propName).join(","),e}}};function v(n,e,t){let r=F(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",o;return n==="x"||n==="y"?(n=`translate${s.ucfirst(n)}`,o=i=>s.toFloat(s.toFloat(i).toFixed(r==="px"?0:6))):n==="scale"&&(r="",o=i=>{var a;return F([i])?s.toPx(i,"width",e,!0)/e[`offset${(a=i.endsWith)!=null&&a.call(i,"vh")?"Height":"Width"}`]:s.toFloat(i)}),t.length===1&&t.unshift(n==="scale"?1:0),t=m(t,o),(i,a)=>{i.transform=`${i.transform||""} ${n}(${x(t,a)}${r})`}}function j(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t,r=>Sn(e,r)),(r,o)=>{const[i,a,c]=V(t,o),h=i.map((l,f)=>(l+=c*(a[f]-l),f===3?s.toFloat(l):parseInt(l,10))).join(",");r[n]=`rgba(${h})`}}function Sn(n,e){return p(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(s.toFloat)}function g(n,e,t){t.length===1&&t.unshift(0);const r=F(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=m(t),(o,i)=>{const a=x(t,i);o.filter=`${o.filter||""} ${n}(${a+r})`}}function Fn(n,e,t){return t.length===1&&t.unshift(p(e,n,"")),t=m(t),(r,o)=>{r[n]=x(t,o)}}function Cn(n,e,t){t.length===1&&t.unshift(0);const r=F(t),o=wn(e);return t=m(t.reverse(),i=>(i=s.toFloat(i),r==="%"?i*o/100:i)),t.some(([i])=>i)?(s.css(e,"strokeDasharray",o),(i,a)=>{i.strokeDashoffset=x(t,a)}):s.noop}function R(n,e,t,r){t.length===1&&t.unshift(0);const o=n==="bgy"?"height":"width";r[n]=m(t,c=>s.toPx(c,o,e));const i=["bgx","bgy"].filter(c=>c in r);if(i.length===2&&n==="bgx")return s.noop;if(p(e,"backgroundSize","")==="cover")return Mn(n,e,t,r);const a={};for(const c of i)a[c]=z(e,c);return B(i,a,r)}function Mn(n,e,t,r){const o=On(e);if(!o.width)return s.noop;const i={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in r),c={};for(const f of a){const u=r[f].map(([jn])=>jn),y=Math.min(...u),_=Math.max(...u),K=u.indexOf(y)<u.indexOf(_),X=_-y;c[f]=`${(K?-X:0)-(K?y:_)}px`,i[f==="bgy"?"height":"width"]+=X}const h=s.Dimensions.cover(o,i);for(const f of a){const u=f==="bgy"?"height":"width",y=h[u]-i[u];c[f]=`max(${z(e,f)},-${y}px) + ${c[f]}`}const l=B(a,c,r);return(f,u)=>{l(f,u),f.backgroundSize=`${h.width}px ${h.height}px`,f.backgroundRepeat="no-repeat"}}function z(n,e){return p(n,`background-position-${e.substr(-1)}`,"")}function B(n,e,t){return function(r,o){for(const i of n){const a=x(t[i],o);r[`background-position-${i.substr(-1)}`]=`calc(${e[i]} + ${a}px)`}}}const L={},S={};function On(n){const e=s.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(S[e])return S[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth&&!L[e])?(s.once(t,"error load",()=>{S[e]=I(t),s.trigger(n,s.createEvent("load",!1))}),L[e]=!0,I(t)):S[e]=I(t)}function I(n){return{width:n.naturalWidth,height:n.naturalHeight}}function m(n,e=s.toFloat){const t=[],{length:r}=n;let o=0;for(let i=0;i<r;i++){let[a,c]=s.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(a=e(a),c=c?s.toFloat(c)/100:null,i===0?c===null?c=0:c&&t.push([a,0]):i===r-1&&(c===null?c=1:c!==1&&(t.push([a,c]),c=1)),t.push([a,c]),c===null)o++;else if(o){const h=t[i-o-1][1],l=(c-h)/(o+1);for(let f=o;f>0;f--)t[i-f][1]=h+l*(o-f+1);o=0}}return t}function V(n,e){const t=s.findIndex(n.slice(1),([,r])=>e<=r)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function x(n,e){const[t,r,o]=V(n,e);return t+Math.abs(t-r)*o*(t<r?1:-1)}const Pn=/^-?\d+(?:\.\d+)?(\S+)?/;function F(n,e){var t;for(const r of n){const o=(t=r.match)==null?void 0:t.call(r,Pn);if(o)return o[1]}return e}function p(n,e,t){const r=n.style[e],o=s.css(s.css(n,e,t),e);return n.style[e]=r,o}function q(n,e){return n.reduce((t,r)=>(t[r]=e,t),{})}var Q={mixins:[vn],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:r,dir:o}}){s.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(J(n,o,e)),a=this.getCss(G(n)?.5:o>0?1:0);s.fastdom.write(()=>{s.css(this.$el,i),s.Transition.start(this.$el,a,t,r).catch(s.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){s.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,dir:t}}){s.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const r=this.getCss(J(n,t,e));s.fastdom.write(()=>s.css(this.$el,r))})}}]};function G(n){return s.endsWith(n,"in")}function J(n,e,t){return t/=2,G(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",Q),Q});
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.19.5-dev.8317c4705 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.19.5-dev.92ee0f0d9 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -579,7 +579,6 @@
579
579
  }
580
580
  }
581
581
  },
582
- observe: resize(),
583
582
  events: {
584
583
  itemshow({ target }) {
585
584
  util.addClass(target, this.clsEnter, this.clsSlideActive);
@@ -758,7 +757,7 @@
758
757
  return value === void 0;
759
758
  }
760
759
  function toNode(element) {
761
- return toNodes(element)[0];
760
+ return element && toNodes(element)[0];
762
761
  }
763
762
  function toNodes(element) {
764
763
  return isNode(element) ? [element] : Array.from(element || []).filter(isNode);
@@ -821,15 +820,13 @@
821
820
  const splitSelectorRe = /.*?[^\\](?![^(]*\))(?:,|$)/g;
822
821
  const trailingCommaRe = /\s*,$/;
823
822
  const parseSelector = memoize((selector) => {
823
+ var _a;
824
824
  selector = selector.replace(addStarRe, "$1 *");
825
825
  let isContextSelector = false;
826
826
  const selectors = [];
827
- for (let sel of selector.match(splitSelectorRe)) {
827
+ for (let sel of (_a = selector.match(splitSelectorRe)) != null ? _a : []) {
828
828
  sel = sel.replace(trailingCommaRe, "").trim();
829
- if (sel[0] === ">") {
830
- sel = `:scope ${sel}`;
831
- }
832
- isContextSelector || (isContextSelector = ["!", "+", "~", "-"].includes(sel[0]));
829
+ isContextSelector || (isContextSelector = ["!", "+", "~", "-", ">"].includes(sel[0]));
833
830
  selectors.push(sel);
834
831
  }
835
832
  return {
@@ -838,6 +835,11 @@
838
835
  isContextSelector
839
836
  };
840
837
  });
838
+ const parsePositionSelector = memoize((selector) => {
839
+ selector = selector.substr(1).trim();
840
+ const index2 = selector.indexOf(" ");
841
+ return ~index2 ? [selector.substring(0, index2), selector.substring(index2 + 1)] : [selector, ""];
842
+ });
841
843
  function _query(selector, context = document, queryFn) {
842
844
  if (!selector || !isString(selector)) {
843
845
  return selector;
@@ -849,33 +851,36 @@
849
851
  selector = "";
850
852
  const isSingle = parsed.selectors.length === 1;
851
853
  for (let sel of parsed.selectors) {
854
+ let positionSel;
852
855
  let ctx = context;
853
856
  if (sel[0] === "!") {
854
- const selectors = sel.substr(1).trim().split(" ");
855
- ctx = parent(context).closest(selectors[0]);
856
- sel = selectors.slice(1).join(" ").trim();
857
- if (!sel.length && isSingle) {
857
+ [positionSel, sel] = parsePositionSelector(sel);
858
+ ctx = context.parentElement.closest(positionSel);
859
+ if (!sel && isSingle) {
858
860
  return ctx;
859
861
  }
860
862
  }
861
- if (sel[0] === "-") {
862
- const selectors = sel.substr(1).trim().split(" ");
863
- const prev = (ctx || context).previousElementSibling;
864
- ctx = matches(prev, sel.substr(1)) ? prev : null;
865
- sel = selectors.slice(1).join(" ");
866
- if (!sel.length && isSingle) {
863
+ if (ctx && sel[0] === "-") {
864
+ [positionSel, sel] = parsePositionSelector(sel);
865
+ ctx = ctx.previousElementSibling;
866
+ ctx = matches(ctx, positionSel) ? ctx : null;
867
+ if (!sel && isSingle) {
867
868
  return ctx;
868
869
  }
869
- } else if (sel[0] === "~" || sel[0] === "+" && isSingle) {
870
- return _doQuery(
871
- parent(context),
872
- queryFn,
873
- `:scope :nth-child(${index(context) + 1}) ${sel}`
874
- );
875
870
  }
876
- if (ctx) {
877
- selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
871
+ if (!ctx) {
872
+ continue;
873
+ }
874
+ if (isSingle) {
875
+ if (sel[0] === "~" || sel[0] === "+") {
876
+ sel = `:scope :nth-child(${index(ctx) + 1}) ${sel}`;
877
+ ctx = ctx.parentElement;
878
+ } else if (sel[0] === ">") {
879
+ sel = `:scope ${sel}`;
880
+ }
881
+ return _doQuery(ctx, queryFn, sel);
878
882
  }
883
+ selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
879
884
  }
880
885
  if (!isDocument(context)) {
881
886
  context = context.ownerDocument;
@@ -932,18 +937,10 @@
932
937
  }
933
938
 
934
939
  function getMaxPathLength(el) {
935
- return Math.ceil(
936
- Math.max(
937
- 0,
938
- ...$$("[stroke]", el).map((stroke) => {
939
- try {
940
- return stroke.getTotalLength();
941
- } catch (e) {
942
- return 0;
943
- }
944
- })
945
- )
946
- );
940
+ return Math.ceil(Math.max(0, ...$$("[stroke]", el).map((stroke) => {
941
+ var _a;
942
+ return (_a = stroke.getTotalLength) == null ? void 0 : _a.call(stroke);
943
+ })));
947
944
  }
948
945
 
949
946
  const props = {
@@ -1147,6 +1144,7 @@
1147
1144
  }
1148
1145
  };
1149
1146
  }
1147
+ const loading = {};
1150
1148
  const dimensions = {};
1151
1149
  function getBackgroundImageDimensions(el) {
1152
1150
  const src = util.css(el, "backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/, "$1");
@@ -1156,11 +1154,12 @@
1156
1154
  const image = new Image();
1157
1155
  if (src) {
1158
1156
  image.src = src;
1159
- if (!image.naturalWidth) {
1160
- image.onload = () => {
1157
+ if (!image.naturalWidth && !loading[src]) {
1158
+ util.once(image, "error load", () => {
1161
1159
  dimensions[src] = toDimensions(image);
1162
1160
  util.trigger(el, util.createEvent("load", false));
1163
- };
1161
+ });
1162
+ loading[src] = true;
1164
1163
  return toDimensions(image);
1165
1164
  }
1166
1165
  }
@@ -1587,7 +1586,7 @@
1587
1586
  util.toggleClass(this.$el, this.clsContainer, !util.$(`.${this.clsContainer}`, this.$el));
1588
1587
  },
1589
1588
  observe: resize({
1590
- target: ({ slides }) => slides
1589
+ target: ({ slides, $el }) => [$el, ...slides]
1591
1590
  }),
1592
1591
  update: {
1593
1592
  write() {