Changeset 3271049
- Timestamp:
- 04/11/2025 12:46:16 PM (11 months ago)
- Location:
- bps-splide-slider-block
- Files:
-
- 16 added
- 4 edited
-
tags/1.1.4 (added)
-
tags/1.1.4/README.txt (added)
-
tags/1.1.4/build (added)
-
tags/1.1.4/build/block.asset.php (added)
-
tags/1.1.4/build/block.css (added)
-
tags/1.1.4/build/block.js (added)
-
tags/1.1.4/build/frontend.asset.php (added)
-
tags/1.1.4/build/frontend.css (added)
-
tags/1.1.4/build/frontend.js (added)
-
tags/1.1.4/index.php (added)
-
tags/1.1.4/languages (added)
-
tags/1.1.4/languages/bps-slider-block-nl_NL-0dac34955ba0deac9433f52e2c081abf.json (added)
-
tags/1.1.4/languages/bps-slider-block-nl_NL-113d26d7c8edd0c437add3c8f4de6208.json (added)
-
tags/1.1.4/languages/bps-slider-block-nl_NL.mo (added)
-
tags/1.1.4/languages/bps-slider-block-nl_NL.po (added)
-
tags/1.1.4/languages/bps-slider-block.pot (added)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/build/frontend.asset.php (modified) (1 diff)
-
trunk/build/frontend.js (modified) (1 diff)
-
trunk/index.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
bps-splide-slider-block/trunk/README.txt
r3271035 r3271049 4 4 Requires at least: 5.7 5 5 Tested up to: 6.7.0 6 Stable tag: 1.1. 36 Stable tag: 1.1.4 7 7 License: GPLv3+ 8 8 License URI: https://www.gnu.org/licenses/gpl-3.0.html … … 43 43 = 1.1.3 = 44 44 * Splide keyboard shortcuts enabled when focused 45 46 = 1.1.4 = 47 * Remove Splide keyboard shortcuts enabled when focused property as it didn't work 48 * Initialize one last forgotten class property explicitly before construct -
bps-splide-slider-block/trunk/build/frontend.asset.php
r3271035 r3271049 1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-element'), 'version' => ' dff1ee5d9462a5caac5c796aac93b8d3');1 <?php return array('dependencies' => array('react', 'react-dom', 'wp-element'), 'version' => '2f15df712e4b0e5a5e39e33cc9ba145a'); -
bps-splide-slider-block/trunk/build/frontend.js
r3271035 r3271049 1 (()=>{"use strict";var t={n:n=>{var e=n&&n.__esModule?()=>n.default:()=>n;return t.d(e,{a:e}),e},d:(n,e)=>{for(var i in e)t.o(e,i)&&!t.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:e[i]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n)};const n=window.wp.element,e=window.React;var i=t.n(e);const o=window.ReactDOM;var s=t.n(o);function r(t){t.length=0}function c(t){return!d(t)&&"object"==typeof t}function u(t){return Array.isArray(t)}function l(t){return"string"==typeof t}function a(t){return void 0===t}function d(t){return null===t}function f(t){return t instanceof HTMLElement}function p(t){return u(t)?t:[t]}function h(t,n){p(t).forEach(n)}function g(t,n){return t.indexOf(n)>-1}function m(t,n){return t.push(...p(n)),t}var y=Array.prototype;function _(t,n,e){return y.slice.call(t,n,e)}function v(t,n,e){t&&h(n,(n=>{n&&t.classList[e?"add":"remove"](n)}))}function b(t,n){v(t,l(n)?n.split(" "):n,!0)}function w(t,n){h(n,t.appendChild.bind(t))}function E(t,n){h(t,(t=>{const e=n.parentNode;e&&e.insertBefore(t,n)}))}function x(t,n){return f(t)&&(t.msMatchesSelector||t.matches).call(t,n)}function S(t,n){return t?_(t.children).filter((t=>x(t,n))):[]}function k(t,n){return n?S(t,n)[0]:t.firstElementChild}function P(t,n,e){if(t){let i=Object.keys(t);i=e?i.reverse():i;for(let e=0;e<i.length;e++){const o=i[e];if("__proto__"!==o&&!1===n(t[o],o))break}}return t}function A(t){return _(arguments,1).forEach((n=>{P(n,((e,i)=>{t[i]=n[i]}))})),t}function $(t,n){return P(n,((n,e)=>{u(n)?t[e]=n.slice():c(n)?t[e]=$(c(t[e])?t[e]:{},n):t[e]=n})),t}function L(t,n){t&&h(n,(n=>{t.removeAttribute(n)}))}function C(t,n,e){c(n)?P(n,((n,e)=>{C(t,e,n)})):d(e)?L(t,n):t.setAttribute(n,String(e))}function N(t,n,e){const i=document.createElement(t);return n&&(l(n)?b(i,n):C(i,n)),e&&w(e,i),i}function z(t,n,e){if(a(e))return getComputedStyle(t)[n];if(!d(e)){const{style:i}=t;e=`${e}`,i[n]!==e&&(i[n]=e)}}function D(t,n){z(t,"display",n)}function M(t,n){return t.getAttribute(n)}function R(t,n){return t&&t.classList.contains(n)}function O(t){return t.getBoundingClientRect()}function T(t){h(t,(t=>{t&&t.parentNode&&t.parentNode.removeChild(t)}))}function I(t){return k((new DOMParser).parseFromString(t,"text/html").body)}function j(t,n){t.preventDefault(),n&&(t.stopPropagation(),t.stopImmediatePropagation())}function F(t,n){return t&&t.querySelector(n)}function B(t,n){return _(t.querySelectorAll(n))}function W(t,n){v(t,n,!1)}function H(t){return l(t)?t:t?`${t}px`:""}function X(t,n=""){if(!t)throw new Error(`[splide] ${n}`)}function U(t){setTimeout(t)}var q=()=>{};function G(t){return requestAnimationFrame(t)}var{min:Y,max:J,floor:V,ceil:K,abs:Q}=Math;function Z(t,n,e,i){const o=Y(n,e),s=J(n,e);return i?o<t&&t<s:o<=t&&t<=s}function tt(t,n,e){const i=Y(n,e),o=J(n,e);return Y(J(i,t),o)}function nt(t){return+(t>0)-+(t<0)}function et(t,n){return h(n,(n=>{t=t.replace("%s",`${n}`)})),t}function it(t){return t<10?`0${t}`:`${t}`}var ot={},st="mounted",rt="ready",ct="move",ut="moved",lt="shifted",at="click",dt="active",ft="inactive",pt="visible",ht="hidden",gt="slide:keydown",mt="refresh",yt="updated",_t="resize",vt="resized",bt="repositioned",wt="drag",Et="dragging",xt="dragged",St="scroll",kt="scrolled",Pt="destroy",At="arrows:mounted",$t="arrows:updated",Lt="pagination:mounted",Ct="pagination:updated",Nt="navigation:mounted",zt="autoplay:play",Dt="autoplay:playing",Mt="autoplay:pause",Rt="lazyload:loaded";function Ot(t){const{event:n}=t,e={};let i=[];function o(t,n,e){s(t,n,((t,n)=>{i=i.filter((i=>!!(i[0]!==t||i[1]!==n||e&&i[2]!==e)||(t.removeEventListener(n,i[2],i[3]),!1)))}))}function s(t,n,e){h(t,(t=>{t&&n.split(" ").forEach(e.bind(null,t))}))}function r(){i=i.filter((t=>o(t[0],t[1]))),n.offBy(e)}return n.on(Pt,r,e),{on:function(t,i,o){n.on(t,i,e,o)},off:function(t){n.off(t,e)},emit:n.emit,bind:function(t,n,e,o){s(t,n,((t,n)=>{i.push([t,n,e,o]),t.addEventListener(n,e,o)}))},unbind:o,destroy:r}}function Tt(t,n,e,i){const{now:o}=Date;let s,r,c=0,u=!0,l=0;function a(){if(!u){const r=o()-s;if(r>=t?(c=1,s=o()):c=r/t,e&&e(c),1===c&&(n(),i&&++l>=i))return d();G(a)}}function d(){u=!0}function f(){cancelAnimationFrame(r),c=0,r=0,u=!0}return{start:function(n){!n&&f(),s=o()-(n?c*t:0),u=!1,G(a)},rewind:function(){s=o(),c=0,e&&e(c)},pause:d,cancel:f,set:function(n){t=n},isPaused:function(){return u}}}function It(t,n){let e;return function(){e||(e=Tt(n||0,(()=>{t.apply(this,arguments),e=null}),null,1),e.start())}}var jt="ttb",Ft={marginRight:["marginBottom","marginLeft"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]},Bt="splide__slide--clone",Wt="is-active",Ht="is-prev",Xt="is-next",Ut="is-visible",qt="is-loading",Gt=[Wt,Ut,Ht,Xt,qt],Yt={slide:"splide__slide",clone:Bt,arrows:"splide__arrows",arrow:"splide__arrow",prev:"splide__arrow--prev",next:"splide__arrow--next",pagination:"splide__pagination",page:"splide__pagination__page",spinner:"splide__spinner"},Jt="role",Vt="aria-controls",Kt="aria-current",Qt="aria-label",Zt="aria-hidden",tn="tabindex",nn="aria-orientation",en=[Jt,Vt,Kt,Qt,Zt,nn,tn,"disabled"],on="slide",sn="loop",rn="fade";var cn={passive:!1,capture:!0},un="touchmove mousemove",ln="touchend touchcancel mouseup",an=["Left","Right","Up","Down"],dn="keydown",fn="data-splide-lazy",pn="data-splide-lazy-srcset",hn=[" ","Enter","Spacebar"],gn=Object.freeze({__proto__:null,Options:function(t,n,e){const i=It(u);let o,s,r;function c(t){t&&removeEventListener("resize",i)}function u(){const n=(i=t=>t[1].matches,_(s).filter(i)[0]||[]);var i;n[0]!==r&&function(n){const i=e.breakpoints[n]||o;i.destroy?(t.options=o,t.destroy("completely"===i.destroy)):(t.state.is(5)&&(c(!0),t.mount()),t.options=i)}(r=n[0])}return{setup:function(){try{$(e,JSON.parse(M(t.root,"data-splide")))}catch(t){X(!1,t.message)}o=$({},e);const{breakpoints:n}=e;if(n){const t="min"===e.mediaQuery;s=Object.keys(n).sort(((n,e)=>t?+e-+n:+n-+e)).map((n=>[n,matchMedia(`(${t?"min":"max"}-width:${n}px)`)])),u()}},mount:function(){s&&addEventListener("resize",i)},destroy:c}},Direction:function(t,n,e){return{resolve:function(t,n){const{direction:i}=e;return Ft[t]["rtl"!==i||n?i===jt?0:-1:1]||t},orient:function(t){return t*("rtl"===e.direction?1:-1)}}},Elements:function(t,n,e){const{on:i}=Ot(t),{root:o}=t,s={},c=[];let u,l,a,d;function f(){!function(){l=k(o,".splide__slider"),a=F(o,".splide__track"),d=k(a,".splide__list"),X(a&&d,"A track/list element is missing."),m(c,S(d,`.splide__slide:not(.${Bt})`));const t=y(".splide__autoplay"),n=y(".splide__arrows");A(s,{root:o,slider:l,track:a,list:d,slides:c,arrows:n,autoplay:t,prev:F(n,".splide__arrow--prev"),next:F(n,".splide__arrow--next"),bar:F(y(".splide__progress"),".splide__progress__bar"),play:F(t,".splide__play"),pause:F(t,".splide__pause")})}(),function(){const t=o.id||("splide",`splide${it(ot.splide=(ot.splide||0)+1)}`);o.id=t,a.id=a.id||`${t}-track`,d.id=d.id||`${t}-list`}(),b(o,u=_())}function p(){[o,a,d].forEach((t=>{L(t,"style")})),r(c),W(o,u)}function h(){p(),f()}function g(){W(o,u),b(o,u=_())}function y(t){return k(o,t)||k(l,t)}function _(){return[`splide--${e.type}`,`splide--${e.direction}`,e.drag&&"splide--draggable",e.isNavigation&&"splide--nav",Wt]}return A(s,{setup:f,mount:function(){i(mt,h,8),i(yt,g)},destroy:p})},Slides:function(t,n,e){const{on:i,emit:o,bind:s}=Ot(t),{slides:c,list:u}=n.Elements,a=[];function d(){c.forEach(((t,n)=>{_(t,n,-1)}))}function m(){P((t=>{t.destroy()})),r(a)}function y(){m(),d()}function _(n,e,i){const o=function(t,n,e,i){const{on:o,emit:s,bind:r,destroy:c}=Ot(t),{Components:u,root:l,options:a}=t,{isNavigation:d,updateOnMove:f}=a,{resolve:p}=u.Direction,h=M(i,"style"),g=e>-1,m=k(i,".splide__slide__container"),y=a.focusableNodes&&B(i,a.focusableNodes);let _;function b(){const o=g?e:n,s=et(a.i18n.slideX,o+1),r=t.splides.map((t=>t.splide.root.id)).join(" ");C(i,Qt,s),C(i,Vt,r),C(i,Jt,"menuitem"),x(S())}function w(){_||E()}function E(){if(!_){const{index:e}=t;x(S()),function(t){const n=!t&&(!S()||g);C(i,Zt,n||null),C(i,tn,!n&&a.slideFocus?0:null),y&&y.forEach((t=>{C(t,tn,n?-1:null)})),t!==R(i,Ut)&&(v(i,Ut,t),s(t?pt:ht,P))}(function(){if(t.is(rn))return S();const n=O(u.Elements.track),e=O(i),o=p("left"),s=p("right");return V(n[o])<=K(e[o])&&V(e[s])<=K(n[s])}()),v(i,Ht,n===e-1),v(i,Xt,n===e+1)}}function x(t){t!==R(i,Wt)&&(v(i,Wt,t),d&&C(i,Kt,t||null),s(t?dt:ft,P))}function S(){const{index:i}=t;return i===n||a.cloneStatus&&i===e}const P={index:n,slideIndex:e,slide:i,container:m,isClone:g,mount:function(){g||(i.id=`${l.id}-slide${it(n+1)}`),r(i,"click keydown",(t=>{s("click"===t.type?at:gt,P,t)})),o([mt,bt,lt,ut,kt],E),o(Nt,b),f&&o(ct,w)},destroy:function(){_=!0,c(),W(i,Gt),L(i,en),C(i,"style",h)},update:E,style:function(t,n,e){z(e&&m||i,t,n)},isWithin:function(e,i){let o=Q(e-n);return g||!a.rewind&&!t.is(sn)||(o=Y(o,t.length-o)),o<=i}};return P}(t,e,i,n);o.mount(),a.push(o)}function S(t){return t?A((t=>!t.isClone)):a}function P(t,n){S(n).forEach(t)}function A(t){return a.filter("function"==typeof t?t:n=>l(t)?x(n.slide,t):g(p(t),n.index))}return{mount:function(){d(),i(mt,y),i([st,mt],(()=>{a.sort(((t,n)=>t.index-n.index))}))},destroy:m,update:function(){P((t=>{t.update()}))},register:_,get:S,getIn:function(t){const{Controller:i}=n,o=i.toIndex(t),s=i.hasFocus()?1:e.perPage;return A((t=>Z(t.index,o,o+s-1)))},getAt:function(t){return A(t)[0]},add:function(t,n){h(t,(t=>{if(l(t)&&(t=I(t)),f(t)){const i=c[n];i?E(t,i):w(u,t),b(t,e.classes.slide),function(t,n){const e=B(t,"img");let{length:i}=e;i?e.forEach((t=>{s(t,"load error",(()=>{--i||n()}))})):n()}(t,o.bind(null,_t))}})),o(mt)},remove:function(t){T(A(t).map((t=>t.slide))),o(mt)},forEach:P,filter:A,style:function(t,n,e){P((i=>{i.style(t,n,e)}))},getLength:function(t){return t?c.length:a.length},isEnough:function(){return a.length>e.perPage}}},Layout:function(t,n,e){const{on:i,bind:o,emit:s}=Ot(t),{Slides:r}=n,{resolve:u}=n.Direction,{root:l,track:a,list:d}=n.Elements,{getAt:f}=r;let p,h;function g(){h=null,p=e.direction===jt,z(l,"maxWidth",H(e.width)),z(a,u("paddingLeft"),y(!1)),z(a,u("paddingRight"),y(!0)),m()}function m(){const t=O(l);h&&h.width===t.width&&h.height===t.height||(z(a,"height",function(){let t="";return p&&(t=_(),X(t,"height or heightRatio is missing."),t=`calc(${t} - ${y(!1)} - ${y(!0)})`),t}()),r.style(u("marginRight"),H(e.gap)),r.style("width",(e.autoWidth?"":H(e.fixedWidth)||(p?"":v()))||null),r.style("height",H(e.fixedHeight)||(p?e.autoHeight?"":v():_())||null,!0),h=t,s(vt))}function y(t){const{padding:n}=e,i=u(t?"right":"left");return n&&H(n[i]||(c(n)?0:n))||"0px"}function _(){return H(e.height||O(d).width*e.heightRatio)}function v(){const t=H(e.gap);return`calc((100%${t&&` + ${t}`})/${e.perPage||1}${t&&` - ${t}`})`}function b(t,n){const e=f(t);if(e){const t=O(e.slide)[u("right")],i=O(d)[u("left")];return Q(t-i)+(n?0:w())}return 0}function w(){const t=f(0);return t&&parseFloat(z(t.slide,u("marginRight")))||0}return{mount:function(){g(),o(window,"resize load",It(s.bind(this,_t))),i([yt,mt],g),i(_t,m)},listSize:function(){return O(d)[u("width")]},slideSize:function(t,n){const e=f(t||0);return e?O(e.slide)[u("width")]+(n?0:w()):0},sliderSize:function(){return b(t.length-1,!0)-b(-1,!0)},totalSize:b,getPadding:function(t){return parseFloat(z(a,u("padding"+(t?"Right":"Left"))))||0}}},Clones:function(t,n,e){const{on:i,emit:o}=Ot(t),{Elements:s,Slides:c}=n,{resolve:u}=n.Direction,a=[];let d;function f(){(d=y())&&(function(n){const i=c.get().slice(),{length:o}=i;if(o){for(;i.length<n;)m(i,i);m(i.slice(-n),i.slice(0,n)).forEach(((r,u)=>{const l=u<n,d=function(n,i){const o=n.cloneNode(!0);return b(o,e.classes.clone),o.id=`${t.root.id}-clone${it(i+1)}`,o}(r.slide,u);l?E(d,i[0].slide):w(s.list,d),m(a,d),c.register(d,u-n+(l?0:o),r.index)}))}}(d),o(_t))}function p(){T(a),r(a)}function h(){p(),f()}function g(){d<y()&&o(mt)}function y(){let{clones:n}=e;if(t.is(sn)){if(!n){const i=function(t,n){if(l(n)){const e=N("div",{style:`width: ${n}; position: absolute;`},t);n=O(e).width,T(e)}return n}(s.list,e[u("fixedWidth")]);n=(i&&K(O(s.track)[u("width")]/i)||e[u("autoWidth")]&&t.length||e.perPage)*(e.drag?(e.flickMaxPages||1)+1:2)}}else n=0;return n}return{mount:function(){f(),i(mt,h),i([yt,_t],g)},destroy:p}},Move:function(t,n,e){const{on:i,emit:o}=Ot(t),{slideSize:s,getPadding:r,totalSize:c,listSize:u,sliderSize:l}=n.Layout,{resolve:d,orient:f}=n.Direction,{list:p,track:h}=n.Elements;let g;function m(){x()||(n.Scroll.cancel(),y(t.index),o(bt))}function y(t){_(b(t,!0))}function _(n,e){if(!t.is(rn)){const i=e?n:function(n){if(t.is(sn)){const t=f(n-w()),e=S(!1,n)&&t<0,i=S(!0,n)&&t>0;(e||i)&&(n=v(n,i))}return n}(n);p.style.transform=`translate${d("X")}(${i}px)`,n!==i&&o(lt)}}function v(t,n){const e=t-E(n),i=l();return t-f(i*(K(Q(e)/i)||1))*(n?1:-1)}function b(n,i){const o=f(c(n-1)-function(t){const{focus:n}=e;return"center"===n?(u()-s(t,!0))/2:+n*s(t)||0}(n));return i?function(n){return e.trimSpace&&t.is(on)&&(n=tt(n,0,f(l()-u()))),n}(o):o}function w(){const t=d("left");return O(p)[t]-O(h)[t]+f(r(!1))}function E(t){return b(t?n.Controller.getEnd():0,!!e.trimSpace)}function x(){return t.state.is(4)&&e.waitForTransition}function S(t,n){n=a(n)?w():n;const e=!0!==t&&f(n)<f(E(!1)),i=!1!==t&&f(n)>f(E(!0));return e||i}return{mount:function(){g=n.Transition,i([st,vt,yt,mt],m)},destroy:function(){L(p,"style")},move:function(i,s,r,c){if(!x()){const{set:u}=t.state,l=w();i!==s&&(g.cancel(),_(v(l,i>s),!0)),u(4),o(ct,s,r,i),g.start(s,(()=>{u(3),o(ut,s,r,i),"move"===e.trimSpace&&i!==r&&l===w()?n.Controller.go(i>r?">":"<",!1,c):c&&c()}))}},jump:y,translate:_,shift:v,cancel:function(){_(w()),g.cancel()},toIndex:function(t){const e=n.Slides.get();let i=0,o=1/0;for(let n=0;n<e.length;n++){const s=e[n].index,r=Q(b(s,!0)-t);if(!(r<=o))break;o=r,i=s}return i},toPosition:b,getPosition:w,getLimit:E,isBusy:x,exceededLimit:S}},Controller:function(t,n,e){const{on:i}=Ot(t),{Move:o}=n,{getPosition:s,getLimit:r}=o,{isEnough:c,getLength:u}=n.Slides,d=t.is(sn),f=t.is(on);let p,h,g,m=e.start||0,y=m;function _(){p=u(!0),h=e.perMove,g=e.perPage,m=tt(m,0,p-1)}function v(t,e,i,s,r){const c=e?t:$(t);n.Scroll.scroll(e||i?o.toPosition(c,!0):t,s,(()=>{L(o.toIndex(o.getPosition())),r&&r()}))}function b(t){return E(!1,t)}function w(t){return E(!0,t)}function E(t,n){const e=h||(C()?1:g),i=x(m+e*(t?-1:1),m);return-1!==i||!f||(o=s(),c=r(!t),1,Q(o-c)<1)?n?i:k(i):t?0:S();var o,c}function x(t,n,i){if(c()){const o=S();t<0||t>o?t=Z(0,t,n,!0)||Z(o,n,t,!0)?P(A(t)):d?h||C()?t:t<0?-(p%g||g):p:e.rewind?t<0?o:0:-1:i||t===n||(t=h?t:P(A(n)+(t<n?-1:1)))}else t=-1;return t}function S(){let t=p-g;return(C()||d&&h)&&(t=p-1),J(t,0)}function k(t){return d?c()?t%p+(t<0?p:0):-1:t}function P(t){return tt(C()?t:g*t,0,S())}function A(t){return C()||(t=Z(t,p-g,p-1)?p-1:t,t=V(t/g)),t}function $(t){const n=o.toIndex(t);return f?tt(n,0,S()):n}function L(t){t!==m&&(y=m,m=t)}function C(){return!a(e.focus)||e.isNavigation}return{mount:function(){_(),i([yt,mt],_,9)},go:function(t,n,i){const s=function(t){let n=m;if(l(t)){const[,e,i]=t.match(/([+\-<>])(\d+)?/)||[];"+"===e||"-"===e?n=x(m+ +`${e}${+i||1}`,m,!0):">"===e?n=i?P(+i):b(!0):"<"===e&&(n=w(!0))}else n=d?t:tt(t,0,S());return n}(t);if(e.useScroll)v(s,!0,!0,e.speed,i);else{const t=k(s);t>-1&&!o.isBusy()&&(n||t!==m)&&(L(t),o.move(s,t,y,i))}},scroll:v,getNext:b,getPrev:w,getAdjacent:E,getEnd:S,setIndex:L,getIndex:function(t){return t?y:m},toIndex:P,toPage:A,toDest:$,hasFocus:C}},Arrows:function(t,n,e){const{on:i,bind:o,emit:s}=Ot(t),{classes:r,i18n:c}=e,{Elements:u,Controller:l}=n;let a,d=u.arrows,f=u.prev,p=u.next;const h={};function g(){if(e.arrows&&(f&&p||(d=N("div",r.arrows),f=m(!0),p=m(!1),a=!0,w(d,[f,p]),E(d,k("slider"===e.arrows&&u.slider||t.root)))),f&&p)if(h.prev)D(d,!1===e.arrows?"none":"");else{const{id:t}=u.track;C(f,Vt,t),C(p,Vt,t),h.prev=f,h.next=p,function(){const{go:t}=l;i([st,ut,yt,mt,kt],y),o(p,"click",(()=>{t(">",!0)})),o(f,"click",(()=>{t("<",!0)}))}(),s(At,f,p)}}function m(t){return I(`<button class="${r.arrow} ${t?r.prev:r.next}" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40"><path d="${e.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z"}" />`)}function y(){const n=t.index,e=l.getPrev(),i=l.getNext(),o=e>-1&&n<e?c.last:c.prev,r=i>-1&&n>i?c.first:c.next;f.disabled=e<0,p.disabled=i<0,C(f,Qt,o),C(p,Qt,r),s($t,f,p,e,i)}return{arrows:h,mount:function(){g(),i(yt,g)},destroy:function(){a?T(d):(L(f,en),L(p,en))}}},Autoplay:function(t,n,e){const{on:i,bind:o,emit:s}=Ot(t),r=Tt(e.interval,t.go.bind(t,">"),(function(t){const{bar:n}=u;n&&z(n,"width",100*t+"%"),s(Dt,t)})),{isPaused:c}=r,{Elements:u}=n;let l,a,d;function f(t){const n=t?"pause":"play",i=u[n];i&&(C(i,Vt,u.track.id),C(i,Qt,e.i18n[n]),o(i,"click",t?h:p))}function p(){c()&&n.Slides.isEnough()&&(r.start(!e.resetProgress),a=l=d=!1,s(zt))}function h(t=!0){c()||(r.pause(),s(Mt)),d=t}function g(){d||(l||a?h(!1):p())}function m(){const i=n.Slides.getAt(t.index);r.set(i&&+M(i.slide,"data-splide-interval")||e.interval)}return{mount:function(){const{autoplay:t}=e;t&&(f(!0),f(!1),function(){const{root:t}=u;e.pauseOnHover&&o(t,"mouseenter mouseleave",(t=>{l="mouseenter"===t.type,g()})),e.pauseOnFocus&&o(t,"focusin focusout",(t=>{a="focusin"===t.type,g()})),i([ct,St,mt],r.rewind),i(ct,m)}(),"pause"!==t&&p())},destroy:r.cancel,play:p,pause:h,isPaused:c}},Cover:function(t,n,e){const{on:i}=Ot(t);function o(t){n.Slides.forEach((n=>{const e=k(n.container||n.slide,"img");e&&e.src&&s(t,e,n)}))}function s(t,n,e){e.style("background",t?`center/cover no-repeat url("${n.src}")`:"",!0),D(n,t?"none":"")}return{mount:function(){e.cover&&(i(Rt,((t,n)=>{s(!0,t,n)})),i([st,yt,mt],o.bind(null,!0)))},destroy:function(){o(!1)}}},Scroll:function(t,n,e){const{on:i,emit:o}=Ot(t),{Move:s}=n,{getPosition:r,getLimit:c,exceededLimit:u}=s;let l,a;function d(){const n=r(),e=s.toIndex(n);Z(e,0,t.length-1)||s.translate(s.shift(n,e>0),!0),a&&a(),o(kt)}function f(){l&&l.cancel()}function p(){l&&!l.isPaused()&&(f(),d())}return{mount:function(){i(ct,f),i([yt,mt],p)},destroy:f,scroll:function n(i,p,h,g){const m=r();let y=1;var _;p=p||(_=Q(i-m),J(_/1.5,800)),a=h,f(),l=Tt(p,d,(o=>{const l=r(),a=(m+(i-m)*function(t){const{easingFunc:n}=e;return n?n(t):1-Math.pow(1-t,4)}(o)-r())*y;var d;s.translate(l+a),t.is(on)&&!g&&u()&&(y*=.6,Q(a)<10&&(d=u(!1),n(c(!d),600,null,!0)))}),1),o(St),l.start()},cancel:p}},Drag:function(t,n,e){const{on:i,emit:o,bind:s,unbind:r}=Ot(t),{Move:u,Scroll:l,Controller:a}=n,{track:d}=n.Elements,{resolve:f,orient:p}=n.Direction,{getPosition:h,exceededLimit:g}=u;let m,y,_,v,b,w,E,S,k,P=!1;function A(){const{drag:t}=e;T(!t),b="free"===t}function $(t){if(!S){const{noDrag:n}=e,i=O(t),o=!n||!x(t.target,n);E=!1,!o||!i&&t.button||(u.isBusy()?j(t,!0):(k=i?d:window,_=null,v=null,s(k,un,L,cn),s(k,ln,C,cn),u.cancel(),l.cancel(),N(t)))}}function L(n){if(v||o(wt),v=n,n.cancelable){const i=M(n)-M(y);if(w){u.translate(m+function(n){return n/(P&&t.is(on)?5:1)}(i));const e=R(n)-R(y)>200,s=P!==(P=g());(e||s)&&N(n),o(Et),E=!0,j(n)}else{let{dragMinThreshold:t}=e;t=c(t)?t:{mouse:0,touch:+t||10},w=Q(i)>(O(n)?t.touch:t.mouse),D()&&j(n)}}}function C(i){r(k,un,L),r(k,ln,C);const{index:s}=t;if(v){if(w||i.cancelable&&D()){const o=function(n){if(t.is(sn)||!P){const t=y===v&&_||y,e=M(v)-M(t),i=R(n)-R(t),o=R(n)-R(v)<200;if(i&&o)return e/i}return 0}(i),r=function(t){return h()+nt(t)*Y(Q(t)*(e.flickPower||600),b?1/0:n.Layout.listSize()*(e.flickMaxPages||1))}(o);b?a.scroll(r):t.is(rn)?a.go(s+p(nt(o))):a.go(a.toDest(r),!0),j(i)}o(xt)}else b||h()===u.toPosition(s)||a.go(s,!0);w=!1}function N(t){_=y,y=t,m=h()}function z(t){!S&&E&&j(t,!0)}function D(){return Q(M(v)-M(y))>Q(M(v,!0)-M(y,!0))}function M(t,n){return(O(t)?t.touches[0]:t)[`page${f(n?"Y":"X")}`]}function R(t){return t.timeStamp}function O(t){return"undefined"!=typeof TouchEvent&&t instanceof TouchEvent}function T(t){S=t}return{mount:function(){s(d,un,q,cn),s(d,ln,q,cn),s(d,"touchstart mousedown",$,cn),s(d,"click",z,{capture:!0}),s(d,"dragstart",j),i([st,yt],A)},disable:T,isDragging:function(){return w}}},Keyboard:function(t,n,e){const{on:i,bind:o,unbind:s}=Ot(t),{root:r}=t,{resolve:c}=n.Direction;let u,l;function a(){const{keyboard:t}=e;t&&("focused"===t?(u=r,C(r,tn,0)):u=window,o(u,dn,m))}function d(){s(u,dn),f(u)&&L(u,tn)}function p(){const t=l;l=!0,U((()=>{l=t}))}function h(){d(),a()}function m(n){if(!l){const{key:e}=n,i=g(an,e)?`Arrow${e}`:e;i===c("ArrowLeft")?t.go("<"):i===c("ArrowRight")&&t.go(">")}}return{mount:function(){a(),i(yt,h),i(ct,p)},destroy:d,disable:function(t){l=t}}},LazyLoad:function(t,n,e){const{on:i,off:o,bind:s,emit:r}=Ot(t),c="sequential"===e.lazyLoad;let u=[],l=0;function a(){f(),d()}function d(){n.Slides.forEach((t=>{B(t.slide,"[data-splide-lazy], [data-splide-lazy-srcset]").forEach((n=>{const i=M(n,fn),o=M(n,pn);if(i!==n.src||o!==n.srcset){const s=e.classes.spinner,r=n.parentElement,c=k(r,`.${s}`)||N("span",s,r);C(c,Jt,"presentation"),u.push({_img:n,_Slide:t,src:i,srcset:o,_spinner:c}),!n.src&&D(n,"none")}}))})),c&&g()}function f(){l=0,u=[]}function p(){u=u.filter((n=>{const i=e.perPage*((e.preloadPages||1)+1)-1;return!n._Slide.isWithin(t.index,i)||h(n)})),u.length||o(ut)}function h(t){const{_img:n}=t;b(t._Slide.slide,qt),s(n,"load error",(n=>{!function(t,n){const{_Slide:e}=t;W(e.slide,qt),n||(T(t._spinner),D(t._img,""),r(Rt,t._img,e),r(_t)),c&&g()}(t,"error"===n.type)})),["srcset","src"].forEach((e=>{t[e]&&(C(n,e,t[e]),L(n,"src"===e?fn:pn))}))}function g(){l<u.length&&h(u[l++])}return{mount:function(){e.lazyLoad&&(d(),i(mt,a),c||i([st,mt,ut,kt],p))},destroy:f}},Pagination:function(t,n,e){const{on:i,emit:o,bind:s,unbind:c}=Ot(t),{Slides:u,Elements:l,Controller:a}=n,{hasFocus:d,getIndex:f}=a,p=[];let h;function g(){m(),e.pagination&&u.isEnough()&&(function(){const{length:n}=t,{classes:i,i18n:o,perPage:r}=e,c="slider"===e.pagination&&l.slider||l.root,a=d()?n:K(n/r);h=N("ul",i.pagination,c);for(let t=0;t<a;t++){const n=N("li",null,h),e=N("button",{class:i.page,type:"button"},n),c=u.getIn(t).map((t=>t.slide.id)),l=!d()&&r>1?o.pageX:o.slideX;s(e,"click",y.bind(null,t)),C(e,Vt,c.join(" ")),C(e,Qt,et(l,t+1)),p.push({li:n,button:e,page:t})}}(),o(Lt,{list:h,items:p},_(t.index)),v())}function m(){h&&(T(h),p.forEach((t=>{c(t.button,"click")})),r(p),h=null)}function y(t){a.go(`>${t}`,!0,(()=>{const n=u.getAt(a.toIndex(t));var e;n&&((e=n.slide).setActive&&e.setActive()||e.focus({preventScroll:!0}))}))}function _(t){return p[a.toPage(t)]}function v(){const t=_(f(!0)),n=_(f());t&&(W(t.button,Wt),L(t.button,Kt)),n&&(b(n.button,Wt),C(n.button,Kt,!0)),o(Ct,{list:h,items:p},t,n)}return{items:p,mount:function(){g(),i([yt,mt],g),i([ct,kt],v)},destroy:m,getAt:_,update:v}},Sync:function(t,n,e){const{list:i}=n.Elements,o=[];function s(){t.splides.forEach((n=>{var e;!n.isParent&&(e=n.splide,[t,e].forEach((n=>{const i=Ot(n),s=n===t?e:t;i.on(ct,((t,n,e)=>{s.go(s.is(sn)?e:t)})),o.push(i)})))})),e.isNavigation&&function(){const n=Ot(t),{on:e}=n;e(at,l),e(gt,a),e([st,yt],u),C(i,Jt,"menu"),o.push(n),n.emit(Nt,t.splides)}()}function c(){L(i,en),o.forEach((t=>{t.destroy()})),r(o)}function u(){C(i,nn,e.direction!==jt?"horizontal":null)}function l(n){t.go(n.index)}function a(t,n){g(hn,n.key)&&(l(t),j(n))}return{mount:s,destroy:c,remount:function(){c(),s()}}},Wheel:function(t,n,e){const{bind:i}=Ot(t);function o(i){if(i.cancelable){const{deltaY:o}=i;if(o){const s=o<0;t.go(s?"<":">"),function(i){return!e.releaseWheel||t.state.is(4)||-1!==n.Controller.getAdjacent(i)}(s)&&j(i)}}}return{mount:function(){e.wheel&&i(n.Elements.track,"wheel",o,cn)}}}}),mn={type:"slide",speed:400,waitForTransition:!0,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,keyboard:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",classes:Yt,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function yn(t,n,e){const{on:i}=Ot(t);return{mount:function(){i([st,mt],(()=>{U((()=>{n.Slides.style("transition",`opacity ${e.speed}ms ${e.easing}`)}))}))},start:function(t,e){const{track:i}=n.Elements;z(i,"height",H(O(i).height)),U((()=>{e(),z(i,"height","")}))},cancel:q}}function vn(t,n,e){const{bind:i}=Ot(t),{Move:o,Controller:s}=n,{list:r}=n.Elements;let c;function u(){l("")}function l(t){z(r,"transition",t)}return{mount:function(){i(r,"transitionend",(t=>{t.target===r&&c&&(u(),c())}))},start:function(n,i){const r=o.toPosition(n,!0),u=o.getPosition(),a=function(n){const{rewindSpeed:i}=e;if(t.is(on)&&i){const t=s.getIndex(!0),e=s.getEnd();if(0===t&&n>=e||t>=e&&0===n)return i}return e.speed}(n);Q(r-u)>=1&&a>=1?(l(`transform ${a}ms ${e.easing}`),o.translate(r,!0),c=i):(o.jump(n),i())},cancel:u}}var bn=class{constructor(t,n){this.event=function(){let t={};function n(n,i){e(n,((n,e)=>{const o=t[n];t[n]=o&&o.filter((t=>t._key?t._key!==i:i||t._namespace!==e))}))}function e(t,n){p(t).join(" ").split(" ").forEach((t=>{const e=t.split(".");n(e[0],e[1])}))}return{on:function(n,i,o,s=10){e(n,((n,e)=>{t[n]=t[n]||[],m(t[n],{_event:n,_callback:i,_namespace:e,_priority:s,_key:o}).sort(((t,n)=>t._priority-n._priority))}))},off:n,offBy:function(e){P(t,((t,i)=>{n(i,e)}))},emit:function(n){(t[n]||[]).forEach((t=>{t._callback.apply(t,_(arguments,1))}))},destroy:function(){t={}}}}(),this.Components={},this.state=function(t){let n=1;return{set:function(t){n=t},is:function(t){return g(p(t),n)}}}(),this.splides=[],this._options={},this._Extensions={};const e=l(t)?F(document,t):t;X(e,`${e} is invalid.`),this.root=e,$(mn,bn.defaults),$($(this._options,mn),n||{})}mount(t,n){const{state:e,Components:i}=this;return X(e.is([1,5]),"Already mounted!"),e.set(1),this._Components=i,this._Transition=n||this._Transition||(this.is(rn)?yn:vn),this._Extensions=t||this._Extensions,P(A({},gn,this._Extensions,{Transition:this._Transition}),((t,n)=>{const e=t(this,i,this._options);i[n]=e,e.setup&&e.setup()})),P(i,(t=>{t.mount&&t.mount()})),this.emit(st),b(this.root,"is-initialized"),e.set(3),this.emit(rt),this}sync(t){return this.splides.push({splide:t}),t.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._Components.Sync.remount(),t.Components.Sync.remount()),this}go(t){return this._Components.Controller.go(t),this}on(t,n){return this.event.on(t,n,null,20),this}off(t){return this.event.off(t),this}emit(t){return this.event.emit(t,..._(arguments,1)),this}add(t,n){return this._Components.Slides.add(t,n),this}remove(t){return this._Components.Slides.remove(t),this}is(t){return this._options.type===t}refresh(){return this.emit(mt),this}destroy(t=!0){const{event:n,state:e}=this;return e.is(1)?n.on(rt,this.destroy.bind(this,t),this):(P(this._Components,(n=>{n.destroy&&n.destroy(t)}),!0),n.emit(Pt),n.destroy(),t&&r(this.splides),e.set(5)),this}get options(){return this._options}set options(t){const{_options:n}=this;$(n,t),this.state.is(1)||this.emit(yt,n)}get length(){return this._Components.Slides.getLength(!0)}get index(){return this._Components.Controller.getIndex()}},wn=bn;wn.defaults={},wn.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5};var En=[[st,"onMounted"],[rt,"onReady"],[ct,"onMove"],[ut,"onMoved"],[at,"onClick"],[dt,"onActive"],[ft,"onInactive"],[pt,"onVisible"],[ht,"onHidden"],[mt,"onRefresh"],[yt,"onUpdated"],[_t,"onResize"],[vt,"onResized"],[wt,"onDrag"],[Et,"onDragging"],[xt,"onDragged"],[St,"onScroll"],[kt,"onScrolled"],[Pt,"onDestroy"],[At,"onArrowsMounted"],[$t,"onArrowsUpdated"],[Lt,"onPaginationMounted"],[Ct,"onPaginationUpdated"],[Nt,"onNavigationMounted"],[zt,"onAutoplayPlay"],[Dt,"onAutoplayPlaying"],[Mt,"onAutoplayPause"],[Rt,"onLazyLoadLoaded"]];function xn(...t){return t.filter(Boolean).join(" ")}function Sn(t){return null!==t&&"object"==typeof t}function kn(t,n){if(Array.isArray(t)&&Array.isArray(n))return t.length===n.length&&!t.some(((t,e)=>!kn(t,n[e])));if(Sn(t)&&Sn(n)){const e=Object.keys(t),i=Object.keys(n);return e.length===i.length&&!e.some((e=>!Object.prototype.hasOwnProperty.call(n,e)||!kn(t[e],n[e])))}return t===n}function Pn(t,n){const e=t;return function(t,n){if(t){const e=Object.keys(t);for(let i=0;i<e.length;i++){const o=e[i];if("__proto__"!==o&&!1===n(t[o],o))break}}}(n,((t,n)=>{Array.isArray(t)?e[n]=t.slice():Sn(t)?e[n]=Pn(Sn(e[n])?e[n]:{},t):e[n]=t})),e}var An=class extends i().Component{constructor(){super(...arguments),this.splideRef=i().createRef(),this.slides=[]}componentDidMount(){const{options:t,Extensions:n,Transition:e}=this.props,{current:i}=this.splideRef;i&&(this.splide=new wn(i,t),this.bind(this.splide),this.splide.mount(n,e),this.options=Pn({},t||{}),this.slides=this.getSlides())}componentWillUnmount(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}componentDidUpdate(){if(!this.splide)return;const{options:t}=this.props;t&&!kn(this.options,t)&&(this.splide.options=t,this.options=Pn({},t));const n=this.getSlides();var e,i;e=this.slides,i=n,(e.length!==i.length||e.some(((t,n)=>t!==i[n])))&&(this.splide.refresh(),this.slides=n)}sync(t){var n;null==(n=this.splide)||n.sync(t)}go(t){var n;null==(n=this.splide)||n.go(t)}getSlides(){var t;if(this.splide){const n=null==(t=this.splide.Components.Elements)?void 0:t.list.children;return n&&Array.prototype.slice.call(n)||[]}return[]}bind(t){En.forEach((([n,e])=>{const i=this.props[e];"function"==typeof i&&t.on(n,((...n)=>{i(t,...n)}))}))}renderTrack(){return i().createElement("div",{className:"splide__track"},i().createElement("ul",{className:"splide__list"},this.props.children))}render(){const{id:t,className:n,hasSliderWrapper:e,hasAutoplayProgress:o,hasAutoplayControls:s,playButtonLabel:r="Play",pauseButtonLabel:c="Pause",renderControls:u}=this.props;return i().createElement("div",{id:t,className:xn("splide",n),ref:this.splideRef},e?i().createElement("div",{className:"splide__slider"},this.renderTrack()):this.renderTrack(),o&&i().createElement("div",{className:"splide__progress"},i().createElement("div",{className:"splide__progress__bar"})),s&&i().createElement("div",{className:"splide__autoplay"},i().createElement("button",{className:"splide__play"},r),i().createElement("button",{className:"splide__pause"},c)),u&&u())}},$n=({children:t,className:n,...e})=>i().createElement("li",{className:xn("splide__slide",n),...e},t);function Ln(t){return console.log(t),t.images=t.images.filter((function(t){return t.id>0})),t.images.length>0?(0,n.createElement)(An,{options:{ keyboard:"focused",type:t.type,rewind:parseInt(t.rewind),heightRatio:t.height_ratio,gap:t.gap+"px",padding:t.padding+"%",breakpoints:""==t.breakpoint?"":{[t.breakpoint]:{type:t.type,rewind:parseInt(t.rewind),heightRatio:t.breakpoint_height_ratio,gap:t.breakpoint_gap+"px",padding:t.breakpoint_padding+"%"}}}},t.images.map((t=>(0,n.createElement)($n,null,(0,n.createElement)("a",{className:"foobox",rel:"gallery",href:t.front_url},(0,n.createElement)("img",{src:t.front_url,alt:""})))))):null}document.querySelectorAll(".splide_element").forEach((function(t){const e=JSON.parse(t.querySelector("pre").innerHTML);s().render((0,n.createElement)(Ln,e),t),t.classList.remove("splide_element")}))})();1 (()=>{"use strict";var t={n:n=>{var e=n&&n.__esModule?()=>n.default:()=>n;return t.d(e,{a:e}),e},d:(n,e)=>{for(var i in e)t.o(e,i)&&!t.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:e[i]})},o:(t,n)=>Object.prototype.hasOwnProperty.call(t,n)};const n=window.wp.element,e=window.React;var i=t.n(e);const o=window.ReactDOM;var s=t.n(o);function r(t){t.length=0}function c(t){return!d(t)&&"object"==typeof t}function u(t){return Array.isArray(t)}function l(t){return"string"==typeof t}function a(t){return void 0===t}function d(t){return null===t}function f(t){return t instanceof HTMLElement}function p(t){return u(t)?t:[t]}function h(t,n){p(t).forEach(n)}function g(t,n){return t.indexOf(n)>-1}function m(t,n){return t.push(...p(n)),t}var y=Array.prototype;function _(t,n,e){return y.slice.call(t,n,e)}function v(t,n,e){t&&h(n,(n=>{n&&t.classList[e?"add":"remove"](n)}))}function b(t,n){v(t,l(n)?n.split(" "):n,!0)}function w(t,n){h(n,t.appendChild.bind(t))}function E(t,n){h(t,(t=>{const e=n.parentNode;e&&e.insertBefore(t,n)}))}function x(t,n){return f(t)&&(t.msMatchesSelector||t.matches).call(t,n)}function S(t,n){return t?_(t.children).filter((t=>x(t,n))):[]}function k(t,n){return n?S(t,n)[0]:t.firstElementChild}function P(t,n,e){if(t){let i=Object.keys(t);i=e?i.reverse():i;for(let e=0;e<i.length;e++){const o=i[e];if("__proto__"!==o&&!1===n(t[o],o))break}}return t}function A(t){return _(arguments,1).forEach((n=>{P(n,((e,i)=>{t[i]=n[i]}))})),t}function $(t,n){return P(n,((n,e)=>{u(n)?t[e]=n.slice():c(n)?t[e]=$(c(t[e])?t[e]:{},n):t[e]=n})),t}function L(t,n){t&&h(n,(n=>{t.removeAttribute(n)}))}function C(t,n,e){c(n)?P(n,((n,e)=>{C(t,e,n)})):d(e)?L(t,n):t.setAttribute(n,String(e))}function N(t,n,e){const i=document.createElement(t);return n&&(l(n)?b(i,n):C(i,n)),e&&w(e,i),i}function z(t,n,e){if(a(e))return getComputedStyle(t)[n];if(!d(e)){const{style:i}=t;e=`${e}`,i[n]!==e&&(i[n]=e)}}function D(t,n){z(t,"display",n)}function M(t,n){return t.getAttribute(n)}function R(t,n){return t&&t.classList.contains(n)}function O(t){return t.getBoundingClientRect()}function T(t){h(t,(t=>{t&&t.parentNode&&t.parentNode.removeChild(t)}))}function I(t){return k((new DOMParser).parseFromString(t,"text/html").body)}function j(t,n){t.preventDefault(),n&&(t.stopPropagation(),t.stopImmediatePropagation())}function F(t,n){return t&&t.querySelector(n)}function B(t,n){return _(t.querySelectorAll(n))}function W(t,n){v(t,n,!1)}function H(t){return l(t)?t:t?`${t}px`:""}function X(t,n=""){if(!t)throw new Error(`[splide] ${n}`)}function U(t){setTimeout(t)}var q=()=>{};function G(t){return requestAnimationFrame(t)}var{min:Y,max:J,floor:V,ceil:K,abs:Q}=Math;function Z(t,n,e,i){const o=Y(n,e),s=J(n,e);return i?o<t&&t<s:o<=t&&t<=s}function tt(t,n,e){const i=Y(n,e),o=J(n,e);return Y(J(i,t),o)}function nt(t){return+(t>0)-+(t<0)}function et(t,n){return h(n,(n=>{t=t.replace("%s",`${n}`)})),t}function it(t){return t<10?`0${t}`:`${t}`}var ot={},st="mounted",rt="ready",ct="move",ut="moved",lt="shifted",at="click",dt="active",ft="inactive",pt="visible",ht="hidden",gt="slide:keydown",mt="refresh",yt="updated",_t="resize",vt="resized",bt="repositioned",wt="drag",Et="dragging",xt="dragged",St="scroll",kt="scrolled",Pt="destroy",At="arrows:mounted",$t="arrows:updated",Lt="pagination:mounted",Ct="pagination:updated",Nt="navigation:mounted",zt="autoplay:play",Dt="autoplay:playing",Mt="autoplay:pause",Rt="lazyload:loaded";function Ot(t){const{event:n}=t,e={};let i=[];function o(t,n,e){s(t,n,((t,n)=>{i=i.filter((i=>!!(i[0]!==t||i[1]!==n||e&&i[2]!==e)||(t.removeEventListener(n,i[2],i[3]),!1)))}))}function s(t,n,e){h(t,(t=>{t&&n.split(" ").forEach(e.bind(null,t))}))}function r(){i=i.filter((t=>o(t[0],t[1]))),n.offBy(e)}return n.on(Pt,r,e),{on:function(t,i,o){n.on(t,i,e,o)},off:function(t){n.off(t,e)},emit:n.emit,bind:function(t,n,e,o){s(t,n,((t,n)=>{i.push([t,n,e,o]),t.addEventListener(n,e,o)}))},unbind:o,destroy:r}}function Tt(t,n,e,i){const{now:o}=Date;let s,r,c=0,u=!0,l=0;function a(){if(!u){const r=o()-s;if(r>=t?(c=1,s=o()):c=r/t,e&&e(c),1===c&&(n(),i&&++l>=i))return d();G(a)}}function d(){u=!0}function f(){cancelAnimationFrame(r),c=0,r=0,u=!0}return{start:function(n){!n&&f(),s=o()-(n?c*t:0),u=!1,G(a)},rewind:function(){s=o(),c=0,e&&e(c)},pause:d,cancel:f,set:function(n){t=n},isPaused:function(){return u}}}function It(t,n){let e;return function(){e||(e=Tt(n||0,(()=>{t.apply(this,arguments),e=null}),null,1),e.start())}}var jt="ttb",Ft={marginRight:["marginBottom","marginLeft"],autoWidth:["autoHeight"],fixedWidth:["fixedHeight"],paddingLeft:["paddingTop","paddingRight"],paddingRight:["paddingBottom","paddingLeft"],width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:["ArrowUp","ArrowRight"],ArrowRight:["ArrowDown","ArrowLeft"]},Bt="splide__slide--clone",Wt="is-active",Ht="is-prev",Xt="is-next",Ut="is-visible",qt="is-loading",Gt=[Wt,Ut,Ht,Xt,qt],Yt={slide:"splide__slide",clone:Bt,arrows:"splide__arrows",arrow:"splide__arrow",prev:"splide__arrow--prev",next:"splide__arrow--next",pagination:"splide__pagination",page:"splide__pagination__page",spinner:"splide__spinner"},Jt="role",Vt="aria-controls",Kt="aria-current",Qt="aria-label",Zt="aria-hidden",tn="tabindex",nn="aria-orientation",en=[Jt,Vt,Kt,Qt,Zt,nn,tn,"disabled"],on="slide",sn="loop",rn="fade";var cn={passive:!1,capture:!0},un="touchmove mousemove",ln="touchend touchcancel mouseup",an=["Left","Right","Up","Down"],dn="keydown",fn="data-splide-lazy",pn="data-splide-lazy-srcset",hn=[" ","Enter","Spacebar"],gn=Object.freeze({__proto__:null,Options:function(t,n,e){const i=It(u);let o,s,r;function c(t){t&&removeEventListener("resize",i)}function u(){const n=(i=t=>t[1].matches,_(s).filter(i)[0]||[]);var i;n[0]!==r&&function(n){const i=e.breakpoints[n]||o;i.destroy?(t.options=o,t.destroy("completely"===i.destroy)):(t.state.is(5)&&(c(!0),t.mount()),t.options=i)}(r=n[0])}return{setup:function(){try{$(e,JSON.parse(M(t.root,"data-splide")))}catch(t){X(!1,t.message)}o=$({},e);const{breakpoints:n}=e;if(n){const t="min"===e.mediaQuery;s=Object.keys(n).sort(((n,e)=>t?+e-+n:+n-+e)).map((n=>[n,matchMedia(`(${t?"min":"max"}-width:${n}px)`)])),u()}},mount:function(){s&&addEventListener("resize",i)},destroy:c}},Direction:function(t,n,e){return{resolve:function(t,n){const{direction:i}=e;return Ft[t]["rtl"!==i||n?i===jt?0:-1:1]||t},orient:function(t){return t*("rtl"===e.direction?1:-1)}}},Elements:function(t,n,e){const{on:i}=Ot(t),{root:o}=t,s={},c=[];let u,l,a,d;function f(){!function(){l=k(o,".splide__slider"),a=F(o,".splide__track"),d=k(a,".splide__list"),X(a&&d,"A track/list element is missing."),m(c,S(d,`.splide__slide:not(.${Bt})`));const t=y(".splide__autoplay"),n=y(".splide__arrows");A(s,{root:o,slider:l,track:a,list:d,slides:c,arrows:n,autoplay:t,prev:F(n,".splide__arrow--prev"),next:F(n,".splide__arrow--next"),bar:F(y(".splide__progress"),".splide__progress__bar"),play:F(t,".splide__play"),pause:F(t,".splide__pause")})}(),function(){const t=o.id||("splide",`splide${it(ot.splide=(ot.splide||0)+1)}`);o.id=t,a.id=a.id||`${t}-track`,d.id=d.id||`${t}-list`}(),b(o,u=_())}function p(){[o,a,d].forEach((t=>{L(t,"style")})),r(c),W(o,u)}function h(){p(),f()}function g(){W(o,u),b(o,u=_())}function y(t){return k(o,t)||k(l,t)}function _(){return[`splide--${e.type}`,`splide--${e.direction}`,e.drag&&"splide--draggable",e.isNavigation&&"splide--nav",Wt]}return A(s,{setup:f,mount:function(){i(mt,h,8),i(yt,g)},destroy:p})},Slides:function(t,n,e){const{on:i,emit:o,bind:s}=Ot(t),{slides:c,list:u}=n.Elements,a=[];function d(){c.forEach(((t,n)=>{_(t,n,-1)}))}function m(){P((t=>{t.destroy()})),r(a)}function y(){m(),d()}function _(n,e,i){const o=function(t,n,e,i){const{on:o,emit:s,bind:r,destroy:c}=Ot(t),{Components:u,root:l,options:a}=t,{isNavigation:d,updateOnMove:f}=a,{resolve:p}=u.Direction,h=M(i,"style"),g=e>-1,m=k(i,".splide__slide__container"),y=a.focusableNodes&&B(i,a.focusableNodes);let _;function b(){const o=g?e:n,s=et(a.i18n.slideX,o+1),r=t.splides.map((t=>t.splide.root.id)).join(" ");C(i,Qt,s),C(i,Vt,r),C(i,Jt,"menuitem"),x(S())}function w(){_||E()}function E(){if(!_){const{index:e}=t;x(S()),function(t){const n=!t&&(!S()||g);C(i,Zt,n||null),C(i,tn,!n&&a.slideFocus?0:null),y&&y.forEach((t=>{C(t,tn,n?-1:null)})),t!==R(i,Ut)&&(v(i,Ut,t),s(t?pt:ht,P))}(function(){if(t.is(rn))return S();const n=O(u.Elements.track),e=O(i),o=p("left"),s=p("right");return V(n[o])<=K(e[o])&&V(e[s])<=K(n[s])}()),v(i,Ht,n===e-1),v(i,Xt,n===e+1)}}function x(t){t!==R(i,Wt)&&(v(i,Wt,t),d&&C(i,Kt,t||null),s(t?dt:ft,P))}function S(){const{index:i}=t;return i===n||a.cloneStatus&&i===e}const P={index:n,slideIndex:e,slide:i,container:m,isClone:g,mount:function(){g||(i.id=`${l.id}-slide${it(n+1)}`),r(i,"click keydown",(t=>{s("click"===t.type?at:gt,P,t)})),o([mt,bt,lt,ut,kt],E),o(Nt,b),f&&o(ct,w)},destroy:function(){_=!0,c(),W(i,Gt),L(i,en),C(i,"style",h)},update:E,style:function(t,n,e){z(e&&m||i,t,n)},isWithin:function(e,i){let o=Q(e-n);return g||!a.rewind&&!t.is(sn)||(o=Y(o,t.length-o)),o<=i}};return P}(t,e,i,n);o.mount(),a.push(o)}function S(t){return t?A((t=>!t.isClone)):a}function P(t,n){S(n).forEach(t)}function A(t){return a.filter("function"==typeof t?t:n=>l(t)?x(n.slide,t):g(p(t),n.index))}return{mount:function(){d(),i(mt,y),i([st,mt],(()=>{a.sort(((t,n)=>t.index-n.index))}))},destroy:m,update:function(){P((t=>{t.update()}))},register:_,get:S,getIn:function(t){const{Controller:i}=n,o=i.toIndex(t),s=i.hasFocus()?1:e.perPage;return A((t=>Z(t.index,o,o+s-1)))},getAt:function(t){return A(t)[0]},add:function(t,n){h(t,(t=>{if(l(t)&&(t=I(t)),f(t)){const i=c[n];i?E(t,i):w(u,t),b(t,e.classes.slide),function(t,n){const e=B(t,"img");let{length:i}=e;i?e.forEach((t=>{s(t,"load error",(()=>{--i||n()}))})):n()}(t,o.bind(null,_t))}})),o(mt)},remove:function(t){T(A(t).map((t=>t.slide))),o(mt)},forEach:P,filter:A,style:function(t,n,e){P((i=>{i.style(t,n,e)}))},getLength:function(t){return t?c.length:a.length},isEnough:function(){return a.length>e.perPage}}},Layout:function(t,n,e){const{on:i,bind:o,emit:s}=Ot(t),{Slides:r}=n,{resolve:u}=n.Direction,{root:l,track:a,list:d}=n.Elements,{getAt:f}=r;let p,h;function g(){h=null,p=e.direction===jt,z(l,"maxWidth",H(e.width)),z(a,u("paddingLeft"),y(!1)),z(a,u("paddingRight"),y(!0)),m()}function m(){const t=O(l);h&&h.width===t.width&&h.height===t.height||(z(a,"height",function(){let t="";return p&&(t=_(),X(t,"height or heightRatio is missing."),t=`calc(${t} - ${y(!1)} - ${y(!0)})`),t}()),r.style(u("marginRight"),H(e.gap)),r.style("width",(e.autoWidth?"":H(e.fixedWidth)||(p?"":v()))||null),r.style("height",H(e.fixedHeight)||(p?e.autoHeight?"":v():_())||null,!0),h=t,s(vt))}function y(t){const{padding:n}=e,i=u(t?"right":"left");return n&&H(n[i]||(c(n)?0:n))||"0px"}function _(){return H(e.height||O(d).width*e.heightRatio)}function v(){const t=H(e.gap);return`calc((100%${t&&` + ${t}`})/${e.perPage||1}${t&&` - ${t}`})`}function b(t,n){const e=f(t);if(e){const t=O(e.slide)[u("right")],i=O(d)[u("left")];return Q(t-i)+(n?0:w())}return 0}function w(){const t=f(0);return t&&parseFloat(z(t.slide,u("marginRight")))||0}return{mount:function(){g(),o(window,"resize load",It(s.bind(this,_t))),i([yt,mt],g),i(_t,m)},listSize:function(){return O(d)[u("width")]},slideSize:function(t,n){const e=f(t||0);return e?O(e.slide)[u("width")]+(n?0:w()):0},sliderSize:function(){return b(t.length-1,!0)-b(-1,!0)},totalSize:b,getPadding:function(t){return parseFloat(z(a,u("padding"+(t?"Right":"Left"))))||0}}},Clones:function(t,n,e){const{on:i,emit:o}=Ot(t),{Elements:s,Slides:c}=n,{resolve:u}=n.Direction,a=[];let d;function f(){(d=y())&&(function(n){const i=c.get().slice(),{length:o}=i;if(o){for(;i.length<n;)m(i,i);m(i.slice(-n),i.slice(0,n)).forEach(((r,u)=>{const l=u<n,d=function(n,i){const o=n.cloneNode(!0);return b(o,e.classes.clone),o.id=`${t.root.id}-clone${it(i+1)}`,o}(r.slide,u);l?E(d,i[0].slide):w(s.list,d),m(a,d),c.register(d,u-n+(l?0:o),r.index)}))}}(d),o(_t))}function p(){T(a),r(a)}function h(){p(),f()}function g(){d<y()&&o(mt)}function y(){let{clones:n}=e;if(t.is(sn)){if(!n){const i=function(t,n){if(l(n)){const e=N("div",{style:`width: ${n}; position: absolute;`},t);n=O(e).width,T(e)}return n}(s.list,e[u("fixedWidth")]);n=(i&&K(O(s.track)[u("width")]/i)||e[u("autoWidth")]&&t.length||e.perPage)*(e.drag?(e.flickMaxPages||1)+1:2)}}else n=0;return n}return{mount:function(){f(),i(mt,h),i([yt,_t],g)},destroy:p}},Move:function(t,n,e){const{on:i,emit:o}=Ot(t),{slideSize:s,getPadding:r,totalSize:c,listSize:u,sliderSize:l}=n.Layout,{resolve:d,orient:f}=n.Direction,{list:p,track:h}=n.Elements;let g;function m(){x()||(n.Scroll.cancel(),y(t.index),o(bt))}function y(t){_(b(t,!0))}function _(n,e){if(!t.is(rn)){const i=e?n:function(n){if(t.is(sn)){const t=f(n-w()),e=S(!1,n)&&t<0,i=S(!0,n)&&t>0;(e||i)&&(n=v(n,i))}return n}(n);p.style.transform=`translate${d("X")}(${i}px)`,n!==i&&o(lt)}}function v(t,n){const e=t-E(n),i=l();return t-f(i*(K(Q(e)/i)||1))*(n?1:-1)}function b(n,i){const o=f(c(n-1)-function(t){const{focus:n}=e;return"center"===n?(u()-s(t,!0))/2:+n*s(t)||0}(n));return i?function(n){return e.trimSpace&&t.is(on)&&(n=tt(n,0,f(l()-u()))),n}(o):o}function w(){const t=d("left");return O(p)[t]-O(h)[t]+f(r(!1))}function E(t){return b(t?n.Controller.getEnd():0,!!e.trimSpace)}function x(){return t.state.is(4)&&e.waitForTransition}function S(t,n){n=a(n)?w():n;const e=!0!==t&&f(n)<f(E(!1)),i=!1!==t&&f(n)>f(E(!0));return e||i}return{mount:function(){g=n.Transition,i([st,vt,yt,mt],m)},destroy:function(){L(p,"style")},move:function(i,s,r,c){if(!x()){const{set:u}=t.state,l=w();i!==s&&(g.cancel(),_(v(l,i>s),!0)),u(4),o(ct,s,r,i),g.start(s,(()=>{u(3),o(ut,s,r,i),"move"===e.trimSpace&&i!==r&&l===w()?n.Controller.go(i>r?">":"<",!1,c):c&&c()}))}},jump:y,translate:_,shift:v,cancel:function(){_(w()),g.cancel()},toIndex:function(t){const e=n.Slides.get();let i=0,o=1/0;for(let n=0;n<e.length;n++){const s=e[n].index,r=Q(b(s,!0)-t);if(!(r<=o))break;o=r,i=s}return i},toPosition:b,getPosition:w,getLimit:E,isBusy:x,exceededLimit:S}},Controller:function(t,n,e){const{on:i}=Ot(t),{Move:o}=n,{getPosition:s,getLimit:r}=o,{isEnough:c,getLength:u}=n.Slides,d=t.is(sn),f=t.is(on);let p,h,g,m=e.start||0,y=m;function _(){p=u(!0),h=e.perMove,g=e.perPage,m=tt(m,0,p-1)}function v(t,e,i,s,r){const c=e?t:$(t);n.Scroll.scroll(e||i?o.toPosition(c,!0):t,s,(()=>{L(o.toIndex(o.getPosition())),r&&r()}))}function b(t){return E(!1,t)}function w(t){return E(!0,t)}function E(t,n){const e=h||(C()?1:g),i=x(m+e*(t?-1:1),m);return-1!==i||!f||(o=s(),c=r(!t),1,Q(o-c)<1)?n?i:k(i):t?0:S();var o,c}function x(t,n,i){if(c()){const o=S();t<0||t>o?t=Z(0,t,n,!0)||Z(o,n,t,!0)?P(A(t)):d?h||C()?t:t<0?-(p%g||g):p:e.rewind?t<0?o:0:-1:i||t===n||(t=h?t:P(A(n)+(t<n?-1:1)))}else t=-1;return t}function S(){let t=p-g;return(C()||d&&h)&&(t=p-1),J(t,0)}function k(t){return d?c()?t%p+(t<0?p:0):-1:t}function P(t){return tt(C()?t:g*t,0,S())}function A(t){return C()||(t=Z(t,p-g,p-1)?p-1:t,t=V(t/g)),t}function $(t){const n=o.toIndex(t);return f?tt(n,0,S()):n}function L(t){t!==m&&(y=m,m=t)}function C(){return!a(e.focus)||e.isNavigation}return{mount:function(){_(),i([yt,mt],_,9)},go:function(t,n,i){const s=function(t){let n=m;if(l(t)){const[,e,i]=t.match(/([+\-<>])(\d+)?/)||[];"+"===e||"-"===e?n=x(m+ +`${e}${+i||1}`,m,!0):">"===e?n=i?P(+i):b(!0):"<"===e&&(n=w(!0))}else n=d?t:tt(t,0,S());return n}(t);if(e.useScroll)v(s,!0,!0,e.speed,i);else{const t=k(s);t>-1&&!o.isBusy()&&(n||t!==m)&&(L(t),o.move(s,t,y,i))}},scroll:v,getNext:b,getPrev:w,getAdjacent:E,getEnd:S,setIndex:L,getIndex:function(t){return t?y:m},toIndex:P,toPage:A,toDest:$,hasFocus:C}},Arrows:function(t,n,e){const{on:i,bind:o,emit:s}=Ot(t),{classes:r,i18n:c}=e,{Elements:u,Controller:l}=n;let a,d=u.arrows,f=u.prev,p=u.next;const h={};function g(){if(e.arrows&&(f&&p||(d=N("div",r.arrows),f=m(!0),p=m(!1),a=!0,w(d,[f,p]),E(d,k("slider"===e.arrows&&u.slider||t.root)))),f&&p)if(h.prev)D(d,!1===e.arrows?"none":"");else{const{id:t}=u.track;C(f,Vt,t),C(p,Vt,t),h.prev=f,h.next=p,function(){const{go:t}=l;i([st,ut,yt,mt,kt],y),o(p,"click",(()=>{t(">",!0)})),o(f,"click",(()=>{t("<",!0)}))}(),s(At,f,p)}}function m(t){return I(`<button class="${r.arrow} ${t?r.prev:r.next}" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40"><path d="${e.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z"}" />`)}function y(){const n=t.index,e=l.getPrev(),i=l.getNext(),o=e>-1&&n<e?c.last:c.prev,r=i>-1&&n>i?c.first:c.next;f.disabled=e<0,p.disabled=i<0,C(f,Qt,o),C(p,Qt,r),s($t,f,p,e,i)}return{arrows:h,mount:function(){g(),i(yt,g)},destroy:function(){a?T(d):(L(f,en),L(p,en))}}},Autoplay:function(t,n,e){const{on:i,bind:o,emit:s}=Ot(t),r=Tt(e.interval,t.go.bind(t,">"),(function(t){const{bar:n}=u;n&&z(n,"width",100*t+"%"),s(Dt,t)})),{isPaused:c}=r,{Elements:u}=n;let l,a,d;function f(t){const n=t?"pause":"play",i=u[n];i&&(C(i,Vt,u.track.id),C(i,Qt,e.i18n[n]),o(i,"click",t?h:p))}function p(){c()&&n.Slides.isEnough()&&(r.start(!e.resetProgress),a=l=d=!1,s(zt))}function h(t=!0){c()||(r.pause(),s(Mt)),d=t}function g(){d||(l||a?h(!1):p())}function m(){const i=n.Slides.getAt(t.index);r.set(i&&+M(i.slide,"data-splide-interval")||e.interval)}return{mount:function(){const{autoplay:t}=e;t&&(f(!0),f(!1),function(){const{root:t}=u;e.pauseOnHover&&o(t,"mouseenter mouseleave",(t=>{l="mouseenter"===t.type,g()})),e.pauseOnFocus&&o(t,"focusin focusout",(t=>{a="focusin"===t.type,g()})),i([ct,St,mt],r.rewind),i(ct,m)}(),"pause"!==t&&p())},destroy:r.cancel,play:p,pause:h,isPaused:c}},Cover:function(t,n,e){const{on:i}=Ot(t);function o(t){n.Slides.forEach((n=>{const e=k(n.container||n.slide,"img");e&&e.src&&s(t,e,n)}))}function s(t,n,e){e.style("background",t?`center/cover no-repeat url("${n.src}")`:"",!0),D(n,t?"none":"")}return{mount:function(){e.cover&&(i(Rt,((t,n)=>{s(!0,t,n)})),i([st,yt,mt],o.bind(null,!0)))},destroy:function(){o(!1)}}},Scroll:function(t,n,e){const{on:i,emit:o}=Ot(t),{Move:s}=n,{getPosition:r,getLimit:c,exceededLimit:u}=s;let l,a;function d(){const n=r(),e=s.toIndex(n);Z(e,0,t.length-1)||s.translate(s.shift(n,e>0),!0),a&&a(),o(kt)}function f(){l&&l.cancel()}function p(){l&&!l.isPaused()&&(f(),d())}return{mount:function(){i(ct,f),i([yt,mt],p)},destroy:f,scroll:function n(i,p,h,g){const m=r();let y=1;var _;p=p||(_=Q(i-m),J(_/1.5,800)),a=h,f(),l=Tt(p,d,(o=>{const l=r(),a=(m+(i-m)*function(t){const{easingFunc:n}=e;return n?n(t):1-Math.pow(1-t,4)}(o)-r())*y;var d;s.translate(l+a),t.is(on)&&!g&&u()&&(y*=.6,Q(a)<10&&(d=u(!1),n(c(!d),600,null,!0)))}),1),o(St),l.start()},cancel:p}},Drag:function(t,n,e){const{on:i,emit:o,bind:s,unbind:r}=Ot(t),{Move:u,Scroll:l,Controller:a}=n,{track:d}=n.Elements,{resolve:f,orient:p}=n.Direction,{getPosition:h,exceededLimit:g}=u;let m,y,_,v,b,w,E,S,k,P=!1;function A(){const{drag:t}=e;T(!t),b="free"===t}function $(t){if(!S){const{noDrag:n}=e,i=O(t),o=!n||!x(t.target,n);E=!1,!o||!i&&t.button||(u.isBusy()?j(t,!0):(k=i?d:window,_=null,v=null,s(k,un,L,cn),s(k,ln,C,cn),u.cancel(),l.cancel(),N(t)))}}function L(n){if(v||o(wt),v=n,n.cancelable){const i=M(n)-M(y);if(w){u.translate(m+function(n){return n/(P&&t.is(on)?5:1)}(i));const e=R(n)-R(y)>200,s=P!==(P=g());(e||s)&&N(n),o(Et),E=!0,j(n)}else{let{dragMinThreshold:t}=e;t=c(t)?t:{mouse:0,touch:+t||10},w=Q(i)>(O(n)?t.touch:t.mouse),D()&&j(n)}}}function C(i){r(k,un,L),r(k,ln,C);const{index:s}=t;if(v){if(w||i.cancelable&&D()){const o=function(n){if(t.is(sn)||!P){const t=y===v&&_||y,e=M(v)-M(t),i=R(n)-R(t),o=R(n)-R(v)<200;if(i&&o)return e/i}return 0}(i),r=function(t){return h()+nt(t)*Y(Q(t)*(e.flickPower||600),b?1/0:n.Layout.listSize()*(e.flickMaxPages||1))}(o);b?a.scroll(r):t.is(rn)?a.go(s+p(nt(o))):a.go(a.toDest(r),!0),j(i)}o(xt)}else b||h()===u.toPosition(s)||a.go(s,!0);w=!1}function N(t){_=y,y=t,m=h()}function z(t){!S&&E&&j(t,!0)}function D(){return Q(M(v)-M(y))>Q(M(v,!0)-M(y,!0))}function M(t,n){return(O(t)?t.touches[0]:t)[`page${f(n?"Y":"X")}`]}function R(t){return t.timeStamp}function O(t){return"undefined"!=typeof TouchEvent&&t instanceof TouchEvent}function T(t){S=t}return{mount:function(){s(d,un,q,cn),s(d,ln,q,cn),s(d,"touchstart mousedown",$,cn),s(d,"click",z,{capture:!0}),s(d,"dragstart",j),i([st,yt],A)},disable:T,isDragging:function(){return w}}},Keyboard:function(t,n,e){const{on:i,bind:o,unbind:s}=Ot(t),{root:r}=t,{resolve:c}=n.Direction;let u,l;function a(){const{keyboard:t}=e;t&&("focused"===t?(u=r,C(r,tn,0)):u=window,o(u,dn,m))}function d(){s(u,dn),f(u)&&L(u,tn)}function p(){const t=l;l=!0,U((()=>{l=t}))}function h(){d(),a()}function m(n){if(!l){const{key:e}=n,i=g(an,e)?`Arrow${e}`:e;i===c("ArrowLeft")?t.go("<"):i===c("ArrowRight")&&t.go(">")}}return{mount:function(){a(),i(yt,h),i(ct,p)},destroy:d,disable:function(t){l=t}}},LazyLoad:function(t,n,e){const{on:i,off:o,bind:s,emit:r}=Ot(t),c="sequential"===e.lazyLoad;let u=[],l=0;function a(){f(),d()}function d(){n.Slides.forEach((t=>{B(t.slide,"[data-splide-lazy], [data-splide-lazy-srcset]").forEach((n=>{const i=M(n,fn),o=M(n,pn);if(i!==n.src||o!==n.srcset){const s=e.classes.spinner,r=n.parentElement,c=k(r,`.${s}`)||N("span",s,r);C(c,Jt,"presentation"),u.push({_img:n,_Slide:t,src:i,srcset:o,_spinner:c}),!n.src&&D(n,"none")}}))})),c&&g()}function f(){l=0,u=[]}function p(){u=u.filter((n=>{const i=e.perPage*((e.preloadPages||1)+1)-1;return!n._Slide.isWithin(t.index,i)||h(n)})),u.length||o(ut)}function h(t){const{_img:n}=t;b(t._Slide.slide,qt),s(n,"load error",(n=>{!function(t,n){const{_Slide:e}=t;W(e.slide,qt),n||(T(t._spinner),D(t._img,""),r(Rt,t._img,e),r(_t)),c&&g()}(t,"error"===n.type)})),["srcset","src"].forEach((e=>{t[e]&&(C(n,e,t[e]),L(n,"src"===e?fn:pn))}))}function g(){l<u.length&&h(u[l++])}return{mount:function(){e.lazyLoad&&(d(),i(mt,a),c||i([st,mt,ut,kt],p))},destroy:f}},Pagination:function(t,n,e){const{on:i,emit:o,bind:s,unbind:c}=Ot(t),{Slides:u,Elements:l,Controller:a}=n,{hasFocus:d,getIndex:f}=a,p=[];let h;function g(){m(),e.pagination&&u.isEnough()&&(function(){const{length:n}=t,{classes:i,i18n:o,perPage:r}=e,c="slider"===e.pagination&&l.slider||l.root,a=d()?n:K(n/r);h=N("ul",i.pagination,c);for(let t=0;t<a;t++){const n=N("li",null,h),e=N("button",{class:i.page,type:"button"},n),c=u.getIn(t).map((t=>t.slide.id)),l=!d()&&r>1?o.pageX:o.slideX;s(e,"click",y.bind(null,t)),C(e,Vt,c.join(" ")),C(e,Qt,et(l,t+1)),p.push({li:n,button:e,page:t})}}(),o(Lt,{list:h,items:p},_(t.index)),v())}function m(){h&&(T(h),p.forEach((t=>{c(t.button,"click")})),r(p),h=null)}function y(t){a.go(`>${t}`,!0,(()=>{const n=u.getAt(a.toIndex(t));var e;n&&((e=n.slide).setActive&&e.setActive()||e.focus({preventScroll:!0}))}))}function _(t){return p[a.toPage(t)]}function v(){const t=_(f(!0)),n=_(f());t&&(W(t.button,Wt),L(t.button,Kt)),n&&(b(n.button,Wt),C(n.button,Kt,!0)),o(Ct,{list:h,items:p},t,n)}return{items:p,mount:function(){g(),i([yt,mt],g),i([ct,kt],v)},destroy:m,getAt:_,update:v}},Sync:function(t,n,e){const{list:i}=n.Elements,o=[];function s(){t.splides.forEach((n=>{var e;!n.isParent&&(e=n.splide,[t,e].forEach((n=>{const i=Ot(n),s=n===t?e:t;i.on(ct,((t,n,e)=>{s.go(s.is(sn)?e:t)})),o.push(i)})))})),e.isNavigation&&function(){const n=Ot(t),{on:e}=n;e(at,l),e(gt,a),e([st,yt],u),C(i,Jt,"menu"),o.push(n),n.emit(Nt,t.splides)}()}function c(){L(i,en),o.forEach((t=>{t.destroy()})),r(o)}function u(){C(i,nn,e.direction!==jt?"horizontal":null)}function l(n){t.go(n.index)}function a(t,n){g(hn,n.key)&&(l(t),j(n))}return{mount:s,destroy:c,remount:function(){c(),s()}}},Wheel:function(t,n,e){const{bind:i}=Ot(t);function o(i){if(i.cancelable){const{deltaY:o}=i;if(o){const s=o<0;t.go(s?"<":">"),function(i){return!e.releaseWheel||t.state.is(4)||-1!==n.Controller.getAdjacent(i)}(s)&&j(i)}}}return{mount:function(){e.wheel&&i(n.Elements.track,"wheel",o,cn)}}}}),mn={type:"slide",speed:400,waitForTransition:!0,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,keyboard:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",slideFocus:!0,trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",classes:Yt,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay"}};function yn(t,n,e){const{on:i}=Ot(t);return{mount:function(){i([st,mt],(()=>{U((()=>{n.Slides.style("transition",`opacity ${e.speed}ms ${e.easing}`)}))}))},start:function(t,e){const{track:i}=n.Elements;z(i,"height",H(O(i).height)),U((()=>{e(),z(i,"height","")}))},cancel:q}}function vn(t,n,e){const{bind:i}=Ot(t),{Move:o,Controller:s}=n,{list:r}=n.Elements;let c;function u(){l("")}function l(t){z(r,"transition",t)}return{mount:function(){i(r,"transitionend",(t=>{t.target===r&&c&&(u(),c())}))},start:function(n,i){const r=o.toPosition(n,!0),u=o.getPosition(),a=function(n){const{rewindSpeed:i}=e;if(t.is(on)&&i){const t=s.getIndex(!0),e=s.getEnd();if(0===t&&n>=e||t>=e&&0===n)return i}return e.speed}(n);Q(r-u)>=1&&a>=1?(l(`transform ${a}ms ${e.easing}`),o.translate(r,!0),c=i):(o.jump(n),i())},cancel:u}}var bn=class{constructor(t,n){this.event=function(){let t={};function n(n,i){e(n,((n,e)=>{const o=t[n];t[n]=o&&o.filter((t=>t._key?t._key!==i:i||t._namespace!==e))}))}function e(t,n){p(t).join(" ").split(" ").forEach((t=>{const e=t.split(".");n(e[0],e[1])}))}return{on:function(n,i,o,s=10){e(n,((n,e)=>{t[n]=t[n]||[],m(t[n],{_event:n,_callback:i,_namespace:e,_priority:s,_key:o}).sort(((t,n)=>t._priority-n._priority))}))},off:n,offBy:function(e){P(t,((t,i)=>{n(i,e)}))},emit:function(n){(t[n]||[]).forEach((t=>{t._callback.apply(t,_(arguments,1))}))},destroy:function(){t={}}}}(),this.Components={},this.state=function(t){let n=1;return{set:function(t){n=t},is:function(t){return g(p(t),n)}}}(),this.splides=[],this._options={},this._Extensions={};const e=l(t)?F(document,t):t;X(e,`${e} is invalid.`),this.root=e,$(mn,bn.defaults),$($(this._options,mn),n||{})}mount(t,n){const{state:e,Components:i}=this;return X(e.is([1,5]),"Already mounted!"),e.set(1),this._Components=i,this._Transition=n||this._Transition||(this.is(rn)?yn:vn),this._Extensions=t||this._Extensions,P(A({},gn,this._Extensions,{Transition:this._Transition}),((t,n)=>{const e=t(this,i,this._options);i[n]=e,e.setup&&e.setup()})),P(i,(t=>{t.mount&&t.mount()})),this.emit(st),b(this.root,"is-initialized"),e.set(3),this.emit(rt),this}sync(t){return this.splides.push({splide:t}),t.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._Components.Sync.remount(),t.Components.Sync.remount()),this}go(t){return this._Components.Controller.go(t),this}on(t,n){return this.event.on(t,n,null,20),this}off(t){return this.event.off(t),this}emit(t){return this.event.emit(t,..._(arguments,1)),this}add(t,n){return this._Components.Slides.add(t,n),this}remove(t){return this._Components.Slides.remove(t),this}is(t){return this._options.type===t}refresh(){return this.emit(mt),this}destroy(t=!0){const{event:n,state:e}=this;return e.is(1)?n.on(rt,this.destroy.bind(this,t),this):(P(this._Components,(n=>{n.destroy&&n.destroy(t)}),!0),n.emit(Pt),n.destroy(),t&&r(this.splides),e.set(5)),this}get options(){return this._options}set options(t){const{_options:n}=this;$(n,t),this.state.is(1)||this.emit(yt,n)}get length(){return this._Components.Slides.getLength(!0)}get index(){return this._Components.Controller.getIndex()}},wn=bn;wn.defaults={},wn.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,DESTROYED:5};var En=[[st,"onMounted"],[rt,"onReady"],[ct,"onMove"],[ut,"onMoved"],[at,"onClick"],[dt,"onActive"],[ft,"onInactive"],[pt,"onVisible"],[ht,"onHidden"],[mt,"onRefresh"],[yt,"onUpdated"],[_t,"onResize"],[vt,"onResized"],[wt,"onDrag"],[Et,"onDragging"],[xt,"onDragged"],[St,"onScroll"],[kt,"onScrolled"],[Pt,"onDestroy"],[At,"onArrowsMounted"],[$t,"onArrowsUpdated"],[Lt,"onPaginationMounted"],[Ct,"onPaginationUpdated"],[Nt,"onNavigationMounted"],[zt,"onAutoplayPlay"],[Dt,"onAutoplayPlaying"],[Mt,"onAutoplayPause"],[Rt,"onLazyLoadLoaded"]];function xn(...t){return t.filter(Boolean).join(" ")}function Sn(t){return null!==t&&"object"==typeof t}function kn(t,n){if(Array.isArray(t)&&Array.isArray(n))return t.length===n.length&&!t.some(((t,e)=>!kn(t,n[e])));if(Sn(t)&&Sn(n)){const e=Object.keys(t),i=Object.keys(n);return e.length===i.length&&!e.some((e=>!Object.prototype.hasOwnProperty.call(n,e)||!kn(t[e],n[e])))}return t===n}function Pn(t,n){const e=t;return function(t,n){if(t){const e=Object.keys(t);for(let i=0;i<e.length;i++){const o=e[i];if("__proto__"!==o&&!1===n(t[o],o))break}}}(n,((t,n)=>{Array.isArray(t)?e[n]=t.slice():Sn(t)?e[n]=Pn(Sn(e[n])?e[n]:{},t):e[n]=t})),e}var An=class extends i().Component{constructor(){super(...arguments),this.splideRef=i().createRef(),this.slides=[]}componentDidMount(){const{options:t,Extensions:n,Transition:e}=this.props,{current:i}=this.splideRef;i&&(this.splide=new wn(i,t),this.bind(this.splide),this.splide.mount(n,e),this.options=Pn({},t||{}),this.slides=this.getSlides())}componentWillUnmount(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}componentDidUpdate(){if(!this.splide)return;const{options:t}=this.props;t&&!kn(this.options,t)&&(this.splide.options=t,this.options=Pn({},t));const n=this.getSlides();var e,i;e=this.slides,i=n,(e.length!==i.length||e.some(((t,n)=>t!==i[n])))&&(this.splide.refresh(),this.slides=n)}sync(t){var n;null==(n=this.splide)||n.sync(t)}go(t){var n;null==(n=this.splide)||n.go(t)}getSlides(){var t;if(this.splide){const n=null==(t=this.splide.Components.Elements)?void 0:t.list.children;return n&&Array.prototype.slice.call(n)||[]}return[]}bind(t){En.forEach((([n,e])=>{const i=this.props[e];"function"==typeof i&&t.on(n,((...n)=>{i(t,...n)}))}))}renderTrack(){return i().createElement("div",{className:"splide__track"},i().createElement("ul",{className:"splide__list"},this.props.children))}render(){const{id:t,className:n,hasSliderWrapper:e,hasAutoplayProgress:o,hasAutoplayControls:s,playButtonLabel:r="Play",pauseButtonLabel:c="Pause",renderControls:u}=this.props;return i().createElement("div",{id:t,className:xn("splide",n),ref:this.splideRef},e?i().createElement("div",{className:"splide__slider"},this.renderTrack()):this.renderTrack(),o&&i().createElement("div",{className:"splide__progress"},i().createElement("div",{className:"splide__progress__bar"})),s&&i().createElement("div",{className:"splide__autoplay"},i().createElement("button",{className:"splide__play"},r),i().createElement("button",{className:"splide__pause"},c)),u&&u())}},$n=({children:t,className:n,...e})=>i().createElement("li",{className:xn("splide__slide",n),...e},t);function Ln(t){return console.log(t),t.images=t.images.filter((function(t){return t.id>0})),t.images.length>0?(0,n.createElement)(An,{options:{type:t.type,rewind:parseInt(t.rewind),heightRatio:t.height_ratio,gap:t.gap+"px",padding:t.padding+"%",breakpoints:""==t.breakpoint?"":{[t.breakpoint]:{type:t.type,rewind:parseInt(t.rewind),heightRatio:t.breakpoint_height_ratio,gap:t.breakpoint_gap+"px",padding:t.breakpoint_padding+"%"}}}},t.images.map((t=>(0,n.createElement)($n,null,(0,n.createElement)("a",{className:"foobox",rel:"gallery",href:t.front_url},(0,n.createElement)("img",{src:t.front_url,alt:""})))))):null}document.querySelectorAll(".splide_element").forEach((function(t){const e=JSON.parse(t.querySelector("pre").innerHTML);s().render((0,n.createElement)(Ln,e),t),t.classList.remove("splide_element")}))})(); -
bps-splide-slider-block/trunk/index.php
r3271035 r3271049 4 4 Plugin Name: BPS Slider Block Using Splide 5 5 Description: Custom block for Splide slider with customizable parameters 6 Version: 1.1. 36 Version: 1.1.4 7 7 Author: BPS 8 8 Text Domain: bps-slider-block … … 28 28 public $sbp_breakpoint_gap; 29 29 public $sbp_breakpoint_padding; 30 31 public $splide_slider_type_options; 30 32 31 33 public function __construct() {
Note: See TracChangeset
for help on using the changeset viewer.