Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@splidejs/splide

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@splidejs/splide - npm Package Compare versions

Comparing version 2.2.3 to 2.2.4

build/complete/config-min.js

5

build/complete/config.js

@@ -1,2 +0,1 @@

const uglify = require( 'uglifyjs-webpack-plugin' );
const webpack = require( 'webpack' );

@@ -7,3 +6,3 @@

output: {
filename: 'splide.min.js',
filename: 'splide.js',
},

@@ -26,5 +25,5 @@ module: {

optimization: {
minimizer: [ new uglify() ],
minimize: false,
},
mode: 'production',
};

23

build/module/config.js

@@ -1,29 +0,12 @@

const webpack = require( 'webpack' );
const config = require( '../complete/config' );
module.exports = {
...config,
entry: './build/module/module.js',
output: {
filename : 'splide.js',
filename : 'splide.esm.js',
library : 'Splide',
libraryTarget: 'umd',
},
module: {
rules: [
{
test : /.js$/,
loader : 'babel-loader',
exclude: /node_modules/,
},
],
},
plugins: [
new webpack.BannerPlugin( {
banner: require( '../banner' ),
raw : true,
} ),
],
optimization: {
minimize: false,
},
mode: 'production',
};
/*!
* Splide.js
* Version : 2.2.3
* Version : 2.2.4
* License : MIT
* Copyright: 2020 Naotoshi Fujita
*/!function(e){var i={};function o(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=i,o.d=function(t,n,e){o.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(n,t){if(1&t&&(n=o(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)o.d(e,i,function(t){return n[t]}.bind(null,i));return e},o.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(n,"a",n),n},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.p="",o(o.s=0)}([function(t,n,e){"use strict";e.r(n),e.d(n,"Splide",function(){return Ot});var s={};e.r(s),e.d(s,"CREATED",function(){return B}),e.d(s,"MOUNTED",function(){return X}),e.d(s,"IDLE",function(){return G}),e.d(s,"MOVING",function(){return F}),e.d(s,"DESTROYED",function(){return U});var i="splide",h={active:"is-active",visible:"is-visible",loading:"is-loading"},a={type:"slide",rewind:!1,speed:400,rewindSpeed:0,width:0,height:0,fixedWidth:0,fixedHeight:0,heightRatio:0,autoWidth:!1,perPage:1,perMove:0,start:0,focus:!1,gap:0,padding:0,arrows:!0,arrowPath:"",pagination:!0,autoplay:!1,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,lazyLoad:!1,preloadPages:1,easing:"cubic-bezier(.42,.65,.27,.99)",keyboard:!0,drag:!0,flickThreshold:.6,flickPower:600,flickMaxPages:1,direction:"ltr",cover:!1,accessibility:!0,isNavigation:!1,trimSpace:!0,updateOnMove:!1,breakpoints:!1,classes:{root:i,slider:i+"__slider",track:i+"__track",list:i+"__list",slide:i+"__slide",container:i+"__slide__container",arrows:i+"__arrows",arrow:i+"__arrow",prev:i+"__arrow--prev",next:i+"__arrow--next",pagination:i+"__pagination",page:i+"__pagination__page",clone:i+"__slide--clone",progress:i+"__progress",bar:i+"__progress__bar",autoplay:i+"__autoplay",play:i+"__play",pause:i+"__pause",spinner:i+"__spinner",sr:i+"__sr"},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 o(){return(o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}).apply(this,arguments)}function v(e,i){Object.keys(e).some(function(t,n){return i(e[t],t,n)})}function g(n){return Object.keys(n).map(function(t){return n[t]})}function r(t){return"object"==typeof t}function u(t,n){var e=o({},t);return v(n,function(t,n){r(t)?(r(e[n])||(e[n]={}),e[n]=u(e[n],t)):e[n]=t}),e}function m(n,e){return n._s=e,Object.keys(e).forEach(function(t){n[t]||Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}),n}function c(t){return Array.isArray(t)?t:[t]}function y(t,n,e){return Math.min(Math.max(t,e<n?e:n),e<n?n:e)}function l(t,n){var e=0;return t.replace(/%s/g,function(){return c(n)[e++]})}function b(t){var n=typeof t;return"number"==n&&0<t?parseFloat(t)+"px":"string"==n?t:""}function w(t){return t<10?"0"+t:t}function x(t,n){if("string"==typeof n){var e=p("div",{});C(e,{position:"absolute",width:n}),S(t,e),n=e.clientWidth,k(e)}return n}function E(t,n){return t?t.querySelector(n.split(" ")[0]):null}function d(t,n){return t&&g(t.children).filter(function(t){return M(t,n.split(" ")[0])||t.tagName.toLowerCase()===n})[0]||null}function p(t,n){var e=document.createElement(t);return v(n,function(t,n){return W(e,n,t)}),e}function _(t){var n=p("div",{});return n.innerHTML=t,n.firstChild}function k(t){c(t).forEach(function(t){t&&t.parentElement&&t.parentElement.removeChild(t)})}function S(t,n){t&&t.appendChild(n)}function P(t,n){t&&n&&n.parentElement&&n.parentElement.insertBefore(t,n)}function C(e,t){e&&v(t,function(t,n){null!==t&&(e.style[n]=t)})}function f(n,t,e){n&&c(t).forEach(function(t){t&&n.classList[e?"remove":"add"](t)})}function O(t,n){f(t,n,!1)}function I(t,n){f(t,n,!0)}function M(t,n){return!!t&&t.classList.contains(n)}function W(t,n,e){t&&t.setAttribute(n,e)}function L(t,n){return t?t.getAttribute(n):""}function A(t,n){c(n).forEach(function(n){c(t).forEach(function(t){return t&&t.removeAttribute(n)})})}function j(u,c){var d,f;return{mount:function(){d=c.Elements.list,u.on("transitionend",function(t){t.target===d&&f&&f()},d)},start:function(t,n,e,i,o){var r=u.options,s=c.Controller.edgeIndex,a=r.speed;f=o,u.is(H)&&(0===e&&s<=n||s<=e&&0===n)&&(a=r.rewindSpeed||a),C(d,{transition:"transform "+a+"ms "+r.easing,transform:"translate("+i.x+"px,"+i.y+"px)"})}}}function q(e,s){function a(t){var n=e.options;C(s.Elements.slides[t],{transition:"opacity "+n.speed+"ms "+n.easing})}return s.Drag&&(s.Drag.required=!1),{mount:function(){a(e.index)},start:function(t,n,e,i,o){var r=s.Elements.track;C(r,{height:b(r.clientHeight)}),a(n),o(),C(r,{height:""})}}}var H="slide",R="loop",T="fade";var D="[SPLIDE]";function z(t){console.error(D+" "+t)}function N(t,n){if(!t)throw new Error(n)}var B=1,X=2,G=3,F=4,U=5;function V(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Y(t){var n=L(t.root,"data-splide");if(n)try{t.options=JSON.parse(n)}catch(t){z(t.message)}return{mount:function(){t.State.is(B)&&(t.index=t.options.start)}}}function J(l,o){var e=l.root,i=l.classes,p=[];if(!e.id){window.splide=window.splide||{};var t=window.splide.uid||0;window.splide.uid=++t,e.id="splide"+w(t)}var r={mount:function(){var t=this;!function(){r.slider=d(e,i.slider),r.track=E(e,"."+i.track),r.list=d(r.track,i.list),N(r.track&&r.list,"Track or list was not found."),r.slides=g(r.list.children);var t=s(i.arrows);r.arrows={prev:E(t,"."+i.prev),next:E(t,"."+i.next)};var n=s(i.autoplay);r.bar=E(s(i.progress),"."+i.bar),r.play=E(n,"."+i.play),r.pause=E(n,"."+i.pause),r.track.id=r.track.id||e.id+"-track",r.list.id=r.list.id||e.id+"-list"}(),this.init(),l.on("refresh",function(){t.destroy(),t.init()}),l.on("updated",function(){I(e,n()),O(e,n())})},destroy:function(){p.forEach(function(t){t.destroy()}),p=[],I(e,n())},init:function(){O(e,n()),r.slides.forEach(function(t,n){r.register(t,n,-1)})},register:function(t,n,e){var u,c,i,d,o,r,s=(c=n,i=e,d=t,o="ready.slide updated.slide resize.slide "+((u=l).options.updateOnMove?"move.slide":"moved.slide"),r={slide:d,index:c,realIndex:i,container:E(d,"."+u.classes.container),isClone:-1<i,styles:L(d,"style")||"",mount:function(){var t=this;this.isClone||(d.id=u.root.id+"-slide"+w(c+1)),u.on(o,function(){return t.update()}).on(nt,f)},destroy:function(){u.off(o).off(nt),I(d,g(h)),f()},update:function(){a(this.isActive(),!1),a(this.isVisible(),!0)},isActive:function(){return u.index===c},isVisible:function(){var t=this.isActive();if(u.is(T)||t)return t;var n=Math.floor,e=u.Components,i=e.Track,o=u.options.direction===tt?"clientHeight":"clientWidth",r=n((i.toPosition(c)+i.offset(c)-i.position)*i.sign),s=n(r+d[o]),a=e.Elements.track[o];return 0<=r&&r<=a&&0<=s&&s<=a},isWithin:function(t,n){var e=Math.abs(t-c);return u.is(H)||this.isClone||(e=Math.min(e,u.length-e)),e<n}});function a(t,n){var e=n?"visible":"active",i=h[e];t?(O(d,i),u.emit(e,r)):M(d,i)&&(I(d,i),u.emit(n?"hidden":"inactive",r))}function f(){W(d,"style",r.styles)}s.mount(),p.push(s)},getSlide:function(n){return p.filter(function(t){return t.index===n})[0]},getSlides:function(t){return t?p:p.filter(function(t){return!t.isClone})},getSlidesByPage:function(t){var e=o.Controller.toIndex(t),n=l.options,i=!1!==n.focus?1:n.perPage;return p.filter(function(t){var n=t.index;return e<=n&&n<e+i})},add:function(t,n,e){if("string"==typeof t&&(t=_(t)),t instanceof Element){var i=this.slides[n];C(t,{display:"none"}),i?(P(t,i),this.slides.splice(n,0,t)):(S(this.list,t),this.slides.push(t)),function(t,n){var e=t.querySelectorAll("img"),i=e.length;if(i){var o=0;v(e,function(t){t.onload=t.onerror=function(){++o===i&&n()}})}else n()}(t,function(){C(t,{display:""}),e&&e(t)})}},remove:function(t){k(this.slides.splice(t,1)[0])},each:function(t){p.forEach(t)},get length(){return this.slides.length},get total(){return p.length}};function n(){var t=i.root,n=l.options;return[t+"--"+n.type,t+"--"+n.direction,n.drag?t+"--draggable":"",n.isNavigation?t+"--nav":""]}function s(t){return d(e,t)||d(r.slider,t)}return r}function K(r,i){var o,e,n={mount:function(){o=r.options,e=r.is(R),r.on("move",function(t){r.index=t}).on("updated refresh",function(t){o=t||o,r.index=y(r.index,0,n.edgeIndex)})},go:function(t,n){var e=this.trim(this.parse(t));i.Track.go(e,this.rewind(e),n)},parse:function(t){var n=r.index,e=String(t).match(/([+\-<>])(\d+)?/),i=e?e[1]:"",o=e?parseInt(e[2]):0;switch(i){case"+":n+=o||1;break;case"-":n-=o||1;break;case">":n=this.toIndex(-1<o?o:this.toPage(n)+1);break;case"<":n=this.toIndex(-1<o?o:this.toPage(n)-1);break;default:n=parseInt(t)}return n},toIndex:function(t){if(s())return t;var n=r.length,e=o.perPage,i=t*e;return n-e<=(i-=(this.pageLength*e-n)*et(i/n))&&i<n&&(i=n-e),i},toPage:function(t){if(s())return t;var n=r.length,e=o.perPage;return et(n-e<=t&&t<n?(n-1)/e:t/e)},trim:function(t){return e||(t=o.rewind?this.rewind(t):y(t,0,this.edgeIndex)),t},rewind:function(t){var n=this.edgeIndex;if(e){for(;n<t;)t-=n+1;for(;t<0;)t+=n+1}else n<t?t=0:t<0&&(t=n);return t},isRtl:function(){return"rtl"===o.direction},get pageLength(){var t=r.length;return s()?t:Math.ceil(t/o.perPage)},get edgeIndex(){var t=r.length;return t?s()||o.isNavigation||e?t-1:t-o.perPage:0},get prevIndex(){var t=r.index-1;return(e||o.rewind)&&(t=this.rewind(t)),-1<t?t:-1},get nextIndex(){var t=r.index+1;return(e||o.rewind)&&(t=this.rewind(t)),r.index<t&&t<=this.edgeIndex||0===t?t:-1}};function s(){return!1!==o.focus}return n}function Q(s,a){var o,r,t,u,c,e,i,d,f=0,n=s.options.direction===tt,l=s.is(T),p=m({mount:function(){o=a.Elements.list,this.init()},mounted:function(){var t=this;l||s.on("mounted resize updated",function(){t.jump(s.index)})},go:function(t,n,e){var i=this,o=h(t),r=s.index;e||s.emit("move",n,r,t),1<=Math.abs(o-f)||l?a.Transition.start(t,n,r,this.toCoord(o),function(){i.end(t,n,r,e)}):t!==r&&"move"===s.options.trimSpace?a.Controller.go(t+t-r,e):this.end(t,n,r,e)},end:function(t,n,e,i){C(o,{transition:""}),l||this.jump(n),i||s.emit("moved",n,e,t)},jump:function(t){this.translate(h(t))},translate:function(t){f=t,C(o,{transform:"translate"+this.axis+"("+t+"px)"})},trim:function(t){return!s.options.trimSpace||s.is(R)?t:this._s.trim(t)},toCoord:function(t){return{x:n?0:t,y:n?t:0}},get position(){return f}},n?(e=s,i=a,{axis:"Y",sign:-1,init:function(){d=i.Layout},toPosition:function(t){return-((t+i.Clones.length/2)*(d.slideHeight()+d.gap)+this.offset())},toIndex:function(t){var n=d.slideHeight(),e=(n+d.gap)*i.Clones.length/2;return Math.round(-(t+e+this.offset())/(n+d.gap))},trim:function(t){return y(t,-(d.listHeight-(d.height+d.gap)),0)},offset:function(){var t=e.options.focus,n=d.slideHeight();return"center"===t?-(d.height-n)/2:-(parseInt(t)||0)*(n+d.gap)}}):(t=a,{axis:"X",sign:"rtl"===(r=s).options.direction?1:-1,init:function(){u=t.Layout,c=t.Elements},toPosition:function(t){return this.sign*(u.totalWidth(t-1)+this.offset(t))},toIndex:function(t){t*=this.sign,r.is(H)&&(t=y(t,u.totalWidth(c.total),0));var n=c.getSlides(!0);for(var e in n){var i=n[e].index,o=this.sign*this.toPosition(i);if(o<t&&t<=o+u.slideWidth(i)+u.gap)return i}return 0},trim:function(t){return y(t,this.sign*(u.totalWidth(c.total)-(u.width+u.gap)),0)},offset:function(t){var n=r.options.focus,e=u.slideWidth(t);return"center"===n?-(u.width-e)/2:-(parseInt(n)||0)*(e+u.gap)}}));function h(t){return p.trim(p.toPosition(t))}return p}function Z(e,t){var s=[],a=t.Elements;function n(){var i=a.length;if(i){for(var o=function(){var t=e.options;if(t.autoWidth)return a.length;return t.perPage*(t.drag?t.flickMaxPages+1:1)}(),r=a.slides;r.length<o;)r=r.concat(r);r.slice(0,o).forEach(function(t,n){var e=u(t);S(a.list,e),s.push(e),a.register(e,n+i,n)}),r.slice(-o).forEach(function(t,n){var e=u(t);P(e,r[0]),s.push(e),a.register(e,n-o,n)})}}function u(t){var n=t.cloneNode(!0);return O(n,e.classes.clone),A(n,"id"),n}return{mount:function(){var t=this;e.is(R)&&(n(),e.on("refresh",function(){t.destroy(),n()}))},destroy:function(){k(s),s=[]},get clones(){return s},get length(){return s.length}}}var $=function(){function t(t,n,e){function i(t){t.elm&&t.elm.removeEventListener(t.event,t.handler,t.options)}var o,r;void 0===n&&(n={}),void 0===e&&(e={}),this.root=t instanceof Element?t:E(document,t),N(this.root,"An invalid element/selector was given."),this.Components=null,this.Event=(o=[],{on:function(t,n,e,i){void 0===e&&(e=null),void 0===i&&(i={}),t.split(" ").forEach(function(t){e&&e.addEventListener(t,n,i),o.push({event:t,handler:n,elm:e,options:i})})},off:function(t,e){void 0===e&&(e=null),t.split(" ").forEach(function(n){o=o.filter(function(t){return!t||t.event!==n||t.elm!==e||(i(t),!1)})})},emit:function(n){for(var t=arguments.length,e=new Array(1<t?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];o.forEach(function(t){t.elm||t.event.split(".")[0]!==n||t.handler.apply(t,e)})},destroy:function(){o.forEach(i),o=[]}}),this.State=(r=B,{set:function(t){r=t},is:function(t){return t===r}}),this.STATES=s,this._o=u(a,n),this._i=0,this._c=e}var n,e,i,o=t.prototype;return o.mount=function(t,n){var e,i,o,r,s=this;void 0===t&&(t={}),void 0===n&&(n=null),this.Components=this.Components||(i=u((e=this)._c,t),o=n,r={},v(i,function(t,n){r[n]=t(e,r,n.toLowerCase())}),o=o||(e.is(T)?q:j),r.Transition=o(e,r),r);try{v(this.Components,function(t,n){var e=t.required;void 0===e||e?t.mount&&t.mount():delete s.Components[n]})}catch(t){return z(t.message),null}return this.State.set(X),v(this.Components,function(t){t.mounted&&t.mounted()}),this.emit("mounted"),this.State.set(G),this.emit("ready"),C(this.root,{visibility:"visible"}),this.on("move drag",function(){return s.State.set(F)}).on("moved dragged",function(){return s.State.set(G)}),this},o.sync=function(t){return this.sibling=t,this},o.on=function(t,n,e,i){return void 0===e&&(e=null),void 0===i&&(i={}),this.Event.on(t,n,e,i),this},o.off=function(t,n){return void 0===n&&(n=null),this.Event.off(t,n),this},o.emit=function(t){for(var n,e=arguments.length,i=new Array(1<e?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return(n=this.Event).emit.apply(n,[t].concat(i)),this},o.go=function(t,n){return void 0===n&&(n=!0),(this.State.is(G)||this.State.is(F)&&!n)&&this.Components.Controller.go(t,!1),this},o.is=function(t){return t===this._o.type},o.add=function(t,n){return void 0===n&&(n=-1),this.Components.Elements.add(t,n,this.refresh.bind(this)),this},o.remove=function(t){return this.Components.Elements.remove(t),this.refresh(),this},o.refresh=function(){return this.emit("refresh").emit("resize"),this},o.destroy=function(n){var t=this;if(void 0===n&&(n=!0),!this.State.is(B))return g(this.Components).reverse().forEach(function(t){t.destroy&&t.destroy(n)}),this.emit("destroy",n),this.Event.destroy(),this.State.set(U),this;this.on("ready",function(){return t.destroy(n)})},n=t,(e=[{key:"index",get:function(){return this._i},set:function(t){this._i=parseInt(t)}},{key:"length",get:function(){return this.Components.Elements.length}},{key:"options",get:function(){return this._o},set:function(t){var n=this.State.is(B);n||this.emit("update"),this._o=u(this._o,t),n||this.emit("updated",this._o)}},{key:"classes",get:function(){return this._o.classes}},{key:"i18n",get:function(){return this._o.i18n}}])&&V(n.prototype,e),i&&V(n,i),t}(),tt="ttb",nt="update.slide",et=Math.floor;function it(t,n){var e;return function(){e=e||setTimeout(function(){t(),e=null},n)}}function ot(n,e,i){function o(t){c||(a=(s=t-(r=r||t))/e,e<=s&&(r=0,a=1,n()),i&&i(a),u(o))}var r,s,a,u=window.requestAnimationFrame,c=!0;return{pause:function(){c=!0,r=0},play:function(){r=0,c&&(c=!1,u(o))}}}function rt(e,t){var r,s,a,u,c,d,f,l,p,h,i=t.Elements,o=m({mount:function(){e.on("resize load",it(function(){e.emit("resize")},100),window).on("resize",g).on("updated refresh",n),n()},destroy:function(){A([i.list,i.track],"style")}},e.options.direction===tt?(d=e,p=t.Elements,h=d.root,{margin:"marginBottom",init:function(){l=d.options,f=p.track,this.gap=x(h,l.gap);var t=l.padding,n=t.top,e=void 0===n?t:n,i=t.bottom,o=void 0===i?t:i;this.padding={top:x(h,e),bottom:x(h,o)},C(f,{paddingTop:b(e),paddingBottom:b(o)})},slideWidth:function(){return x(h,l.fixedWidth||this.width)},slideHeight:function(){var t=l.fixedHeight||(this.height+this.gap)/l.perPage-this.gap;return x(h,t)},get width(){return f.clientWidth},get height(){var t=l.height||this.width*l.heightRatio;return N(t,'"height" or "heightRatio" is missing.'),x(h,t)-this.padding.top-this.padding.bottom},get listWidth(){return this.width},get listHeight(){return(this.slideHeight()+this.gap)*p.total}}):(r=e,a=t.Elements,u=r.root,{margin:"margin"+("rtl"===(c=r.options).direction?"Left":"Right"),height:0,listHeight:0,init:function(){c=r.options,s=a.track,this.gap=x(u,c.gap);var t=c.padding,n=t.left,e=void 0===n?t:n,i=t.right,o=void 0===i?t:i;this.padding={left:x(u,e),right:x(u,o)},C(s,{paddingLeft:b(e),paddingRight:b(o)})},totalWidth:function(n){var e=this;return a.getSlides(!0).filter(function(t){return t.index<=n}).reduce(function(t,n){return t+e.slideWidth(n.index)+e.gap},0)},slideWidth:function(t){if(c.autoWidth){var n=a.getSlide(t);return n?n.slide.offsetWidth:0}var e=c.fixedWidth||(this.width+this.gap)/c.perPage-this.gap;return x(u,e)},slideHeight:function(){var t=c.height||c.fixedHeight||this.width*c.heightRatio;return x(u,t)},get width(){return s.clientWidth-this.padding.left-this.padding.right},get listWidth(){var t=a.total;return c.autoWidth?5e3*t:this.totalWidth(t)}}));function n(){o.init(),C(e.root,{maxWidth:b(e.options.width)}),i.each(function(t){t.slide.style[o.margin]=b(o.gap)}),g()}function g(){C(i.list,{width:b(o.listWidth),height:b(o.listHeight)}),C(i.track,{height:b(o.height)});var n=b(o.slideHeight());i.each(function(t){C(t.container,{height:n}),C(t.slide,{width:e.options.autoWidth?null:b(o.slideWidth(t.index)),height:t.container?null:n})})}return o}function st(u,c){var e,i,o,r,d=c.Track,f=c.Controller,s=u.options.direction===tt,l=s?"y":"x",n={required:u.options.drag,disabled:!1,mount:function(){var t=c.Elements.list;u.on("touchstart mousedown",a,t).on("touchmove mousemove",p,t,{passive:!1}).on("touchend touchcancel mouseleave mouseup dragend",h,t).on("mounted refresh",function(){v(t.querySelectorAll("img, a"),function(t){u.off("dragstart",t).on("dragstart",function(t){t.preventDefault()},t,{passive:!1})})})}};function a(t){n.disabled||r||!u.State.is(G)||(e=d.toCoord(d.position),i=g(t,{}),o=i)}function p(t){if(i)if(o=g(t,i),r){t.cancelable&&t.preventDefault();var n=e[l]+o.offset[l];d.translate(function(t){if(!u.is(R)){var n=d.sign,e=n*d.trim(d.toPosition(0)),i=n*d.trim(d.toPosition(f.edgeIndex));(t*=n)<e?t=e-7*Math.log(e-t):i<t&&(t=i+7*Math.log(t-i)),t*=n}return t}(n))}else!function(t){var n=t.offset;if(u.State.is(G)){var e=180*Math.atan(dt(n.y)/dt(n.x))/Math.PI;return s&&(e=90-e),e<30}return}(o)||(u.emit("drag",i),r=!0)}function h(){i=null,r&&(u.emit("dragged",o),function(t){var n=t.velocity[l],e=dt(n);if(0<e){var i=c.Layout,o=u.options,r=n<0?-1:1,s=d.position;e>o.flickThreshold&&dt(t.offset[l])<150&&(s+=r*Math.min(e*o.flickPower,i.width*(o.flickMaxPages||1)));var a=d.toIndex(s);a===u.index&&(a+=r*d.sign),u.is(R)||(a=y(a,0,f.edgeIndex)),f.go(a,o.isNavigation)}}(o),r=!1)}function g(t,n){var e=t.timeStamp,i=t.touches,o=i?i[0]:t,r=o.clientX,s=o.clientY,a=n.to||{},u=a.x,c=a.y,d={x:r-(void 0===u?r:u),y:s-(void 0===c?s:c)},f=e-(n.time||0);return{to:{x:r,y:s},offset:d,time:e,velocity:{x:d.x/f,y:d.y/f}}}return n}function at(o,r,s){var a,u,t,i=o.classes,c=o.root,d=r.Elements;function n(t){var n=o.options.perMove;o.go(n?(t?"-":"+")+n:t?"<":">")}function e(){var t=r.Controller,n=t.prevIndex,e=t.nextIndex,i=o.length>o.options.perPage||o.is(R);a.disabled=n<0||!i,u.disabled=e<0||!i,o.emit(s+":updated",a,u,n,e)}function f(t){return _('<button class="'+i.arrow+" "+(t?i.prev:i.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg"\tviewBox="0 0 40 40"\twidth="40"\theight="40"><path d="'+(o.options.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")+'" />')}return{required:o.options.arrows,mount:function(){a=d.arrows.prev,u=d.arrows.next,a&&u||!o.options.arrows||(a=f(!0),u=f(!1),t=!0,function(){var t=p("div",{class:i.arrows});S(t,a),S(t,u);var n=d.slider,e="slider"===o.options.arrows&&n?n:c;P(t,e.firstElementChild)}()),a&&u&&o.on("click",function(){return n(!0)},a).on("click",function(){return n(!1)},u).on("mounted move updated refresh",e),this.arrows={prev:a,next:u}},mounted:function(){o.emit(s+":mounted",a,u)},destroy:function(){A([a,u],"disabled"),t&&k(a.parentElement)}}}function ut(s,n,r){var a={},u=n.Elements,c={required:s.options.pagination,mount:function(){var n,o,r,t;n=s.options,o=s.classes,r=p("ul",{class:o.pagination}),t=u.getSlides(!1).filter(function(t){return!1!==n.focus||t.index%n.perPage==0}).map(function(t,n){var e=p("li",{}),i=p("button",{class:o.page,type:"button"});return S(e,i),S(r,e),s.on("click",function(){s.go(">"+n)},i),{li:e,button:i,page:n,Slides:u.getSlidesByPage(n)}}),a={list:r,items:t};var e=u.slider;S("slider"===s.options.pagination&&e?e:s.root,a.list),s.on(ht,i).on(gt,function(){c.destroy(),s.options.pagination&&(c.mount(),c.mounted())})},mounted:function(){var t=s.index;s.emit(r+":mounted",a,this.getItem(t)),i(t,-1)},destroy:function(){k(a.list),a.items&&a.items.forEach(function(t){s.off("click",t.button)}),s.off(ht).off(gt),a={}},getItem:function(t){return a.items[n.Controller.toPage(t)]},get data(){return a}};function i(t,n){var e=c.getItem(n),i=c.getItem(t),o=h.active;e&&I(e.button,o),i&&O(i.button,o),s.emit(r+":updated",a,e,i)}return c}function ct(a,n){var u=a.i18n,i=n.Elements;function e(t,n){W(t,xt,!n),W(t,Et,n?0:-1)}function t(t,n){var e=i.track.id;W(t,bt,e),W(n,bt,e)}function o(t,n,e,i){var o=a.index,r=-1<e&&o<e?u.last:u.prev,s=-1<i&&i<o?u.first:u.next;W(t,wt,r),W(n,wt,s)}function r(t,n){n&&W(n.button,yt,!0),t.items.forEach(function(t){var n=a.options,e=l(!1===n.focus&&1<n.perPage?u.pageX:u.slideX,t.page+1),i=t.button,o=t.Slides.map(function(t){return t.slide.id});W(i,bt,o.join(" ")),W(i,wt,e)})}function s(t,n,e){n&&A(n.button,yt),e&&W(e.button,yt,!0)}function c(a){i.each(function(t){var n=t.slide,e=t.realIndex,i=t.index;f(n)||W(n,"role","button");var o=-1<e?e:i,r=l(u.slideX,o+1),s=a.Components.Elements.getSlide(o);W(n,wt,r),s&&W(n,bt,s.slide.id)})}function d(t,n){var e=t.slide;n?W(e,yt,!0):A(e,yt)}function f(t){return"button"===t.tagName.toLowerCase()}return{required:a.options.accessibility,mount:function(){a.on("visible",function(t){e(t.slide,!0)}).on("hidden",function(t){e(t.slide,!1)}).on("arrows:mounted",t).on("arrows:updated",o).on("pagination:mounted",r).on("pagination:updated",s),a.options.isNavigation&&a.on("navigation:mounted",c).on("active",function(t){d(t,!0)}).on("inactive",function(t){d(t,!1)}),["play","pause"].forEach(function(t){var n=i[t];n&&(f(n)||W(n,"role","button"),W(n,bt,i.track.id),W(n,wt,u[t]))})},destroy:function(){var t=n.Arrows.arrows;A(i.slides.concat([t.prev,t.next,i.play,i.pause]),[xt,Et,bt,wt,yt,"role"])}}}var dt=Math.abs,ft=1,lt=2,pt=3,ht="move.page",gt="updated.page refresh.page",vt="data-splide-lazy",mt={ltr:{ArrowLeft:"<",ArrowRight:">",Left:"<",Right:">"},rtl:{ArrowLeft:">",ArrowRight:"<",Left:">",Right:"<"},ttb:{ArrowUp:"<",ArrowDown:">",Up:"<",Down:">"}},yt="aria-current",bt="aria-controls",wt="aria-label",xt="aria-hidden",Et="tabindex",_t="move.sync",kt=[" ","Enter","Spacebar"],St={Options:Y,Breakpoints:function(r){var s,a,u=r.options.breakpoints,n=it(t,50),c=[];function t(){var t,n=(t=c.filter(function(t){return t.mql.matches})[0])?t.point:-1;if(n!==a){a=n;var e=r.State,i=u[n]||s,o=i.destroy;o?(r.options=s,r.destroy("completely"===o)):e.is(U)?(e.set(B),r.mount()):r.options=i}}return{required:u&&matchMedia,mount:function(){c=Object.keys(u).sort(function(t,n){return parseInt(t)-parseInt(n)}).map(function(t){return{point:t,mql:matchMedia("(max-width:"+t+"px)")}}),this.destroy(!0),addEventListener("resize",n),s=r.options,t()},destroy:function(t){t&&removeEventListener("resize",n)}}},Elements:J,Controller:K,Track:Q,Clones:Z,Layout:rt,Drag:st,Click:function(t,n){var e=!1;function i(t){e&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}return{required:t.options.drag&&!t.is(T),mount:function(){t.on("click",i,n.Elements.track,{capture:!0}).on("drag",function(){e=!0}).on("moved",function(){e=!1})}}},Autoplay:function(r,t,e){var i,o=[],s=t.Elements,a={required:r.options.autoplay,mount:function(){var t=r.options;s.slides.length>t.perPage&&(i=ot(function(){r.go(">")},t.interval,function(t){r.emit(e+":playing",t),s.bar&&C(s.bar,{width:100*t+"%"})}),function(){var t=r.options,n=r.sibling,e=[r.root,n?n.root:null];t.pauseOnHover&&(u(e,"mouseleave",ft,!0),u(e,"mouseenter",ft,!1));t.pauseOnFocus&&(u(e,"focusout",lt,!0),u(e,"focusin",lt,!1));r.on("click",function(){a.play(lt),a.play(pt)},s.play).on("move refresh",function(){a.play()}).on("destroy",function(){a.pause()}),u([s.pause],"click",pt,!1)}(),this.play())},play:function(n){void 0===n&&(n=0),(o=o.filter(function(t){return t!==n})).length||(r.emit(e+":play"),i.play())},pause:function(t){void 0===t&&(t=0),i.pause(),-1===o.indexOf(t)&&o.push(t),1===o.length&&r.emit(e+":pause")}};function u(t,n,e,i){for(var o in t)r.on(n,function(){a[i?"play":"pause"](e)},t[o])}return a},Cover:function(t,n){function e(e){n.Elements.each(function(t){var n=d(t.slide,"img")||d(t.container,"img");n&&n.src&&i(n,e)})}function i(t,n){C(t.parentElement,{background:n?"":'center/cover no-repeat url("'+t.src+'")'}),C(t,{display:n?"":"none"})}return{required:t.options.cover,mount:function(){t.on("lazyload:loaded",function(t){i(t,!1)}),t.on("mounted updated refresh",function(){return e(!1)})},destroy:function(){e(!0)}}},Arrows:at,Pagination:ut,LazyLoad:function(o,t,r){var n,e,i=o.options,s="sequential"===i.lazyLoad;function a(){e=[],n=0}function u(n){n=isNaN(n)?o.index:n,(e=e.filter(function(t){return!t.Slide.isWithin(n,i.perPage*(i.preloadPages+1))||(c(t.img,t.Slide),!1)}))[0]||o.off("moved."+r)}function c(t,n){O(n.slide,h.loading);var e=p("span",{class:o.classes.spinner});S(t.parentElement,e),t.onload=function(){f(t,e,n,!1)},t.onerror=function(){f(t,e,n,!0)},W(t,"src",L(t,vt))}function d(){if(n<e.length){var t=e[n];c(t.img,t.Slide)}n++}function f(t,n,e,i){I(e.slide,h.loading),i||(k(n),C(t,{display:""}),o.emit(r+":loaded",t).emit("resize")),s&&d()}return{required:i.lazyLoad,mount:function(){o.on("mounted refresh",function(){a(),t.Elements.each(function(n){v(n.slide.querySelectorAll("["+vt+"]"),function(t){t.src||(e.push({img:t,Slide:n}),C(t,{display:"none"}))})}),s&&d()}),s||o.on("mounted refresh moved."+r,u)},destroy:a}},Keyboard:function(e){var t=e.root;return{mount:function(){var n=mt[e.options.direction];e.on("mounted updated",function(){e.off("keydown",t),e.options.keyboard&&e.on("keydown",function(t){n[t.key]&&e.go(n[t.key])},t)})}}},Sync:function(i){var o=i.sibling,t=o&&o.options.isNavigation;function r(){i.on(_t,function(t,n,e){o.off(_t).go(o.is(R)?e:t,!1),s()})}function s(){o.on(_t,function(t,n,e){i.off(_t).go(i.is(R)?e:t,!1),r()})}function a(t){i.State.is(G)&&o.go(t)}return{required:!!o,mount:function(){r(),s(),t&&o.Components.Elements.each(function(t){var n=t.slide,e=t.index;i.on("mouseup touchend",function(t){t.button&&0!==t.button||a(e)},n),i.on("keyup",function(t){-1<kt.indexOf(t.key)&&(t.preventDefault(),a(e))},n,{passive:!1})})},mounted:function(){t&&o.emit("navigation:mounted",i)}}},A11y:ct};function Pt(r){return function(){var t,n,e,i=Ct(r);if(function(){if("undefined"==typeof Reflect||!Reflect.construct)return;if(Reflect.construct.sham)return;if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}()){var o=Ct(this).constructor;t=Reflect.construct(i,arguments,o)}else t=i.apply(this,arguments);return n=this,!(e=t)||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0!==t)return t;throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}(n):e}}function Ct(t){return(Ct=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Ot=function(e){var t,n;n=e,(t=i).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;Pt(i);function i(t,n){return e.call(this,t,n,St)||this}return i}($);window.Splide=Ot}]);
*/!function(e){var i={};function o(t){if(i[t])return i[t].exports;var n=i[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,o),n.l=!0,n.exports}o.m=e,o.c=i,o.d=function(t,n,e){o.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:e})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(n,t){if(1&t&&(n=o(n)),8&t)return n;if(4&t&&"object"==typeof n&&n&&n.__esModule)return n;var e=Object.create(null);if(o.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:n}),2&t&&"string"!=typeof n)for(var i in n)o.d(e,i,function(t){return n[t]}.bind(null,i));return e},o.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(n,"a",n),n},o.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},o.p="",o(o.s=0)}([function(t,n,e){"use strict";e.r(n),e.d(n,"Splide",function(){return Pt});var s={};e.r(s),e.d(s,"CREATED",function(){return B}),e.d(s,"MOUNTED",function(){return X}),e.d(s,"IDLE",function(){return G}),e.d(s,"MOVING",function(){return V}),e.d(s,"DESTROYED",function(){return F});var i="splide",p={active:"is-active",visible:"is-visible",loading:"is-loading"},a={type:"slide",rewind:!1,speed:400,rewindSpeed:0,width:0,height:0,fixedWidth:0,fixedHeight:0,heightRatio:0,autoWidth:!1,perPage:1,perMove:0,start:0,focus:!1,gap:0,padding:0,arrows:!0,arrowPath:"",pagination:!0,autoplay:!1,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,lazyLoad:!1,preloadPages:1,easing:"cubic-bezier(.42,.65,.27,.99)",keyboard:!0,drag:!0,dragAngleThreshold:30,swipeDistanceThreshold:150,flickVelocityThreshold:.6,flickPower:600,flickMaxPages:1,direction:"ltr",cover:!1,accessibility:!0,isNavigation:!1,trimSpace:!0,updateOnMove:!1,breakpoints:!1,classes:{root:i,slider:i+"__slider",track:i+"__track",list:i+"__list",slide:i+"__slide",container:i+"__slide__container",arrows:i+"__arrows",arrow:i+"__arrow",prev:i+"__arrow--prev",next:i+"__arrow--next",pagination:i+"__pagination",page:i+"__pagination__page",clone:i+"__slide--clone",progress:i+"__progress",bar:i+"__progress__bar",autoplay:i+"__autoplay",play:i+"__play",pause:i+"__pause",spinner:i+"__spinner",sr:i+"__sr"},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 o(){return(o=Object.assign||function(t){for(var n=1;n<arguments.length;n++){var e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}).apply(this,arguments)}function v(e,i){Object.keys(e).some(function(t,n){return i(e[t],t,n)})}function g(n){return Object.keys(n).map(function(t){return n[t]})}function r(t){return"object"==typeof t}function u(t,n){var e=o({},t);return v(n,function(t,n){r(t)?(r(e[n])||(e[n]={}),e[n]=u(e[n],t)):e[n]=t}),e}function m(n,e){return n._s=e,Object.keys(e).forEach(function(t){n[t]||Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}),n}function c(t){return Array.isArray(t)?t:[t]}function y(t,n,e){return Math.min(Math.max(t,e<n?e:n),e<n?n:e)}function l(t,n){var e=0;return t.replace(/%s/g,function(){return c(n)[e++]})}function w(t){var n=typeof t;return"number"==n&&0<t?parseFloat(t)+"px":"string"==n?t:""}function b(t){return t<10?"0"+t:t}function x(t,n){if("string"==typeof n){var e=h("div",{});C(e,{position:"absolute",width:n}),S(t,e),n=e.clientWidth,k(e)}return n}function E(t,n){return t?t.querySelector(n.split(" ")[0]):null}function d(t,n){return t&&g(t.children).filter(function(t){return M(t,n.split(" ")[0])||t.tagName.toLowerCase()===n})[0]||null}function h(t,n){var e=document.createElement(t);return v(n,function(t,n){return W(e,n,t)}),e}function _(t){var n=h("div",{});return n.innerHTML=t,n.firstChild}function k(t){c(t).forEach(function(t){t&&t.parentElement&&t.parentElement.removeChild(t)})}function S(t,n){t&&t.appendChild(n)}function P(t,n){t&&n&&n.parentElement&&n.parentElement.insertBefore(t,n)}function C(e,t){e&&v(t,function(t,n){null!==t&&(e.style[n]=t)})}function f(n,t,e){n&&c(t).forEach(function(t){t&&n.classList[e?"remove":"add"](t)})}function I(t,n){f(t,n,!1)}function O(t,n){f(t,n,!0)}function M(t,n){return!!t&&t.classList.contains(n)}function W(t,n,e){t&&t.setAttribute(n,e)}function A(t,n){return t?t.getAttribute(n):""}function L(t,n){c(n).forEach(function(n){c(t).forEach(function(t){return t&&t.removeAttribute(n)})})}function T(u,c){var d,f;return{mount:function(){d=c.Elements.list,u.on("transitionend",function(t){t.target===d&&f&&f()},d)},start:function(t,n,e,i,o){var r=u.options,s=c.Controller.edgeIndex,a=r.speed;f=o,u.is(q)&&(0===e&&s<=n||s<=e&&0===n)&&(a=r.rewindSpeed||a),C(d,{transition:"transform "+a+"ms "+r.easing,transform:"translate("+i.x+"px,"+i.y+"px)"})}}}function j(e,s){function a(t){var n=e.options;C(s.Elements.slides[t],{transition:"opacity "+n.speed+"ms "+n.easing})}return s.Drag&&(s.Drag.required=!1),{mount:function(){a(e.index)},start:function(t,n,e,i,o){var r=s.Elements.track;C(r,{height:w(r.clientHeight)}),a(n),o(),C(r,{height:""})}}}var q="slide",H="loop",D="fade";var z="[SPLIDE]";function N(t){console.error(z+" "+t)}function R(t,n){if(!t)throw new Error(n)}var B=1,X=2,G=3,V=4,F=5;function U(t,n){for(var e=0;e<n.length;e++){var i=n[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Y(t){var n=A(t.root,"data-splide");if(n)try{t.options=JSON.parse(n)}catch(t){N(t.message)}return{mount:function(){t.State.is(B)&&(t.index=t.options.start)}}}function J(l,o){var e=l.root,i=l.classes,h=[];if(!e.id){window.splide=window.splide||{};var t=window.splide.uid||0;window.splide.uid=++t,e.id="splide"+b(t)}var r={mount:function(){var t=this;!function(){r.slider=d(e,i.slider),r.track=E(e,"."+i.track),r.list=d(r.track,i.list),R(r.track&&r.list,"Track or list was not found."),r.slides=g(r.list.children);var t=s(i.arrows);r.arrows={prev:E(t,"."+i.prev),next:E(t,"."+i.next)};var n=s(i.autoplay);r.bar=E(s(i.progress),"."+i.bar),r.play=E(n,"."+i.play),r.pause=E(n,"."+i.pause),r.track.id=r.track.id||e.id+"-track",r.list.id=r.list.id||e.id+"-list"}(),this.init(),l.on("refresh",function(){t.destroy(),t.init()}),l.on("updated",function(){O(e,n()),I(e,n())})},destroy:function(){h.forEach(function(t){t.destroy()}),h=[],O(e,n())},init:function(){I(e,n()),r.slides.forEach(function(t,n){r.register(t,n,-1)})},register:function(t,n,e){var u,c,i,d,o,r,s=(c=n,i=e,d=t,o="ready.slide updated.slide resize.slide "+((u=l).options.updateOnMove?"move.slide":"moved.slide"),r={slide:d,index:c,realIndex:i,container:E(d,"."+u.classes.container),isClone:-1<i,styles:A(d,"style")||"",mount:function(){var t=this;this.isClone||(d.id=u.root.id+"-slide"+b(c+1)),u.on(o,function(){return t.update()}).on(nt,f)},destroy:function(){u.off(o).off(nt),O(d,g(p)),f()},update:function(){a(this.isActive(),!1),a(this.isVisible(),!0)},isActive:function(){return u.index===c},isVisible:function(){var t=this.isActive();if(u.is(D)||t)return t;var n=Math.floor,e=u.Components,i=e.Track,o=u.options.direction===tt?"clientHeight":"clientWidth",r=n((i.toPosition(c)+i.offset(c)-i.position)*i.sign),s=n(r+d[o]),a=e.Elements.track[o];return 0<=r&&r<=a&&0<=s&&s<=a},isWithin:function(t,n){var e=Math.abs(t-c);return u.is(q)||this.isClone||(e=Math.min(e,u.length-e)),e<n}});function a(t,n){var e=n?"visible":"active",i=p[e];t?(I(d,i),u.emit(e,r)):M(d,i)&&(O(d,i),u.emit(n?"hidden":"inactive",r))}function f(){W(d,"style",r.styles)}s.mount(),h.push(s)},getSlide:function(n){return h.filter(function(t){return t.index===n})[0]},getSlides:function(t){return t?h:h.filter(function(t){return!t.isClone})},getSlidesByPage:function(t){var e=o.Controller.toIndex(t),n=l.options,i=!1!==n.focus?1:n.perPage;return h.filter(function(t){var n=t.index;return e<=n&&n<e+i})},add:function(t,n,e){if("string"==typeof t&&(t=_(t)),t instanceof Element){var i=this.slides[n];C(t,{display:"none"}),i?(P(t,i),this.slides.splice(n,0,t)):(S(this.list,t),this.slides.push(t)),function(t,n){var e=t.querySelectorAll("img"),i=e.length;if(i){var o=0;v(e,function(t){t.onload=t.onerror=function(){++o===i&&n()}})}else n()}(t,function(){C(t,{display:""}),e&&e(t)})}},remove:function(t){k(this.slides.splice(t,1)[0])},each:function(t){h.forEach(t)},get length(){return this.slides.length},get total(){return h.length}};function n(){var t=i.root,n=l.options;return[t+"--"+n.type,t+"--"+n.direction,n.drag?t+"--draggable":"",n.isNavigation?t+"--nav":""]}function s(t){return d(e,t)||d(r.slider,t)}return r}function K(r,i){var o,e,n={mount:function(){o=r.options,e=r.is(H),r.on("move",function(t){r.index=t}).on("updated refresh",function(t){o=t||o,r.index=y(r.index,0,n.edgeIndex)})},go:function(t,n){var e=this.trim(this.parse(t));i.Track.go(e,this.rewind(e),n)},parse:function(t){var n=r.index,e=String(t).match(/([+\-<>])(\d+)?/),i=e?e[1]:"",o=e?parseInt(e[2]):0;switch(i){case"+":n+=o||1;break;case"-":n-=o||1;break;case">":n=this.toIndex(-1<o?o:this.toPage(n)+1);break;case"<":n=this.toIndex(-1<o?o:this.toPage(n)-1);break;default:n=parseInt(t)}return n},toIndex:function(t){if(s())return t;var n=r.length,e=o.perPage,i=t*e;return n-e<=(i-=(this.pageLength*e-n)*et(i/n))&&i<n&&(i=n-e),i},toPage:function(t){if(s())return t;var n=r.length,e=o.perPage;return et(n-e<=t&&t<n?(n-1)/e:t/e)},trim:function(t){return e||(t=o.rewind?this.rewind(t):y(t,0,this.edgeIndex)),t},rewind:function(t){var n=this.edgeIndex;if(e){for(;n<t;)t-=n+1;for(;t<0;)t+=n+1}else n<t?t=0:t<0&&(t=n);return t},isRtl:function(){return"rtl"===o.direction},get pageLength(){var t=r.length;return s()?t:Math.ceil(t/o.perPage)},get edgeIndex(){var t=r.length;return t?s()||o.isNavigation||e?t-1:t-o.perPage:0},get prevIndex(){var t=r.index-1;return(e||o.rewind)&&(t=this.rewind(t)),-1<t?t:-1},get nextIndex(){var t=r.index+1;return(e||o.rewind)&&(t=this.rewind(t)),r.index<t&&t<=this.edgeIndex||0===t?t:-1}};function s(){return!1!==o.focus}return n}function Q(s,a){var o,r,t,u,c,e,i,d,f=0,n=s.options.direction===tt,l=s.is(D),h=m({mount:function(){o=a.Elements.list,this.init()},mounted:function(){var t=this;l||s.on("mounted resize updated",function(){t.jump(s.index)})},go:function(t,n,e){var i=this,o=p(t),r=s.index;e||s.emit("move",n,r,t),1<=Math.abs(o-f)||l?a.Transition.start(t,n,r,this.toCoord(o),function(){i.end(t,n,r,e)}):t!==r&&"move"===s.options.trimSpace?a.Controller.go(t+t-r,e):this.end(t,n,r,e)},end:function(t,n,e,i){C(o,{transition:""}),l||this.jump(n),i||s.emit("moved",n,e,t)},jump:function(t){this.translate(p(t))},translate:function(t){f=t,C(o,{transform:"translate"+this.axis+"("+t+"px)"})},trim:function(t){return!s.options.trimSpace||s.is(H)?t:this._s.trim(t)},toCoord:function(t){return{x:n?0:t,y:n?t:0}},get position(){return f}},n?(e=s,i=a,{axis:"Y",sign:-1,init:function(){d=i.Layout},toPosition:function(t){return-((t+i.Clones.length/2)*(d.slideHeight()+d.gap)+this.offset())},toIndex:function(t){var n=d.slideHeight(),e=(n+d.gap)*i.Clones.length/2;return Math.round(-(t+e+this.offset())/(n+d.gap))},trim:function(t){return y(t,-(d.listHeight-(d.height+d.gap)),0)},offset:function(){var t=e.options.focus,n=d.slideHeight();return"center"===t?-(d.height-n)/2:-(parseInt(t)||0)*(n+d.gap)}}):(t=a,{axis:"X",sign:"rtl"===(r=s).options.direction?1:-1,init:function(){u=t.Layout,c=t.Elements},toPosition:function(t){return this.sign*(u.totalWidth(t-1)+this.offset(t))},toIndex:function(t){t*=this.sign,r.is(q)&&(t=y(t,u.totalWidth(c.total),0));var n=c.getSlides(!0);for(var e in n){var i=n[e].index,o=this.sign*this.toPosition(i);if(o<t&&t<=o+u.slideWidth(i)+u.gap)return i}return 0},trim:function(t){return y(t,this.sign*(u.totalWidth(c.total)-(u.width+u.gap)),0)},offset:function(t){var n=r.options.focus,e=u.slideWidth(t);return"center"===n?-(u.width-e)/2:-(parseInt(n)||0)*(e+u.gap)}}));function p(t){return h.trim(h.toPosition(t))}return h}function Z(e,t){var s=[],a=t.Elements;function n(){var i=a.length;if(i){for(var o=function(){var t=e.options;if(t.autoWidth)return a.length;return t.perPage*(t.drag?t.flickMaxPages+1:1)}(),r=a.slides;r.length<o;)r=r.concat(r);r.slice(0,o).forEach(function(t,n){var e=u(t);S(a.list,e),s.push(e),a.register(e,n+i,n)}),r.slice(-o).forEach(function(t,n){var e=u(t);P(e,r[0]),s.push(e),a.register(e,n-o,n)})}}function u(t){var n=t.cloneNode(!0);return I(n,e.classes.clone),L(n,"id"),n}return{mount:function(){var t=this;e.is(H)&&(n(),e.on("refresh",function(){t.destroy(),n()}))},destroy:function(){k(s),s=[]},get clones(){return s},get length(){return s.length}}}var $=function(){function t(t,n,e){function i(t){t.elm&&t.elm.removeEventListener(t.event,t.handler,t.options)}var o,r;void 0===n&&(n={}),void 0===e&&(e={}),this.root=t instanceof Element?t:E(document,t),R(this.root,"An invalid element/selector was given."),this.Components=null,this.Event=(o=[],{on:function(t,n,e,i){void 0===e&&(e=null),void 0===i&&(i={}),t.split(" ").forEach(function(t){e&&e.addEventListener(t,n,i),o.push({event:t,handler:n,elm:e,options:i})})},off:function(t,e){void 0===e&&(e=null),t.split(" ").forEach(function(n){o=o.filter(function(t){return!t||t.event!==n||t.elm!==e||(i(t),!1)})})},emit:function(n){for(var t=arguments.length,e=new Array(1<t?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];o.forEach(function(t){t.elm||t.event.split(".")[0]!==n||t.handler.apply(t,e)})},destroy:function(){o.forEach(i),o=[]}}),this.State=(r=B,{set:function(t){r=t},is:function(t){return t===r}}),this.STATES=s,this._o=u(a,n),this._i=0,this._c=e}var n,e,i,o=t.prototype;return o.mount=function(t,n){var e,i,o,r,s=this;void 0===t&&(t={}),void 0===n&&(n=null),this.Components=this.Components||(i=u((e=this)._c,t),o=n,r={},v(i,function(t,n){r[n]=t(e,r,n.toLowerCase())}),o=o||(e.is(D)?j:T),r.Transition=o(e,r),r);try{v(this.Components,function(t,n){var e=t.required;void 0===e||e?t.mount&&t.mount():delete s.Components[n]})}catch(t){return N(t.message),null}return this.State.set(X),v(this.Components,function(t){t.mounted&&t.mounted()}),this.emit("mounted"),this.State.set(G),this.emit("ready"),C(this.root,{visibility:"visible"}),this.on("move drag",function(){return s.State.set(V)}).on("moved dragged",function(){return s.State.set(G)}),this},o.sync=function(t){return this.sibling=t,this},o.on=function(t,n,e,i){return void 0===e&&(e=null),void 0===i&&(i={}),this.Event.on(t,n,e,i),this},o.off=function(t,n){return void 0===n&&(n=null),this.Event.off(t,n),this},o.emit=function(t){for(var n,e=arguments.length,i=new Array(1<e?e-1:0),o=1;o<e;o++)i[o-1]=arguments[o];return(n=this.Event).emit.apply(n,[t].concat(i)),this},o.go=function(t,n){return void 0===n&&(n=!0),(this.State.is(G)||this.State.is(V)&&!n)&&this.Components.Controller.go(t,!1),this},o.is=function(t){return t===this._o.type},o.add=function(t,n){return void 0===n&&(n=-1),this.Components.Elements.add(t,n,this.refresh.bind(this)),this},o.remove=function(t){return this.Components.Elements.remove(t),this.refresh(),this},o.refresh=function(){return this.emit("refresh").emit("resize"),this},o.destroy=function(n){var t=this;if(void 0===n&&(n=!0),!this.State.is(B))return g(this.Components).reverse().forEach(function(t){t.destroy&&t.destroy(n)}),this.emit("destroy",n),this.Event.destroy(),this.State.set(F),this;this.on("ready",function(){return t.destroy(n)})},n=t,(e=[{key:"index",get:function(){return this._i},set:function(t){this._i=parseInt(t)}},{key:"length",get:function(){return this.Components.Elements.length}},{key:"options",get:function(){return this._o},set:function(t){var n=this.State.is(B);n||this.emit("update"),this._o=u(this._o,t),n||this.emit("updated",this._o)}},{key:"classes",get:function(){return this._o.classes}},{key:"i18n",get:function(){return this._o.i18n}}])&&U(n.prototype,e),i&&U(n,i),t}(),tt="ttb",nt="update.slide",et=Math.floor;function it(t,n){var e;return function(){e=e||setTimeout(function(){t(),e=null},n)}}function ot(n,e,i){function o(t){c||(a=(s=t-(r=r||t))/e,e<=s&&(r=0,a=1,n()),i&&i(a),u(o))}var r,s,a,u=window.requestAnimationFrame,c=!0;return{pause:function(){c=!0,r=0},play:function(){r=0,c&&(c=!1,u(o))}}}function rt(e,t){var r,s,a,u,c,d,f,l,h,p,i=t.Elements,o=m({mount:function(){e.on("resize load",it(function(){e.emit("resize")},100),window).on("resize",g).on("updated refresh",n),n()},destroy:function(){L([i.list,i.track],"style")}},e.options.direction===tt?(d=e,h=t.Elements,p=d.root,{margin:"marginBottom",init:function(){l=d.options,f=h.track,this.gap=x(p,l.gap);var t=l.padding,n=t.top,e=void 0===n?t:n,i=t.bottom,o=void 0===i?t:i;this.padding={top:x(p,e),bottom:x(p,o)},C(f,{paddingTop:w(e),paddingBottom:w(o)})},slideWidth:function(){return x(p,l.fixedWidth||this.width)},slideHeight:function(){var t=l.fixedHeight||(this.height+this.gap)/l.perPage-this.gap;return x(p,t)},get width(){return f.clientWidth},get height(){var t=l.height||this.width*l.heightRatio;return R(t,'"height" or "heightRatio" is missing.'),x(p,t)-this.padding.top-this.padding.bottom},get listWidth(){return this.width},get listHeight(){return(this.slideHeight()+this.gap)*h.total}}):(r=e,a=t.Elements,u=r.root,{margin:"margin"+("rtl"===(c=r.options).direction?"Left":"Right"),height:0,listHeight:0,init:function(){c=r.options,s=a.track,this.gap=x(u,c.gap);var t=c.padding,n=t.left,e=void 0===n?t:n,i=t.right,o=void 0===i?t:i;this.padding={left:x(u,e),right:x(u,o)},C(s,{paddingLeft:w(e),paddingRight:w(o)})},totalWidth:function(n){var e=this;return a.getSlides(!0).filter(function(t){return t.index<=n}).reduce(function(t,n){return t+e.slideWidth(n.index)+e.gap},0)},slideWidth:function(t){if(c.autoWidth){var n=a.getSlide(t);return n?n.slide.offsetWidth:0}var e=c.fixedWidth||(this.width+this.gap)/c.perPage-this.gap;return x(u,e)},slideHeight:function(){var t=c.height||c.fixedHeight||this.width*c.heightRatio;return x(u,t)},get width(){return s.clientWidth-this.padding.left-this.padding.right},get listWidth(){var t=a.total;return c.autoWidth?5e3*t:this.totalWidth(t)}}));function n(){o.init(),C(e.root,{maxWidth:w(e.options.width)}),i.each(function(t){t.slide.style[o.margin]=w(o.gap)}),g()}function g(){C(i.list,{width:w(o.listWidth),height:w(o.listHeight)}),C(i.track,{height:w(o.height)});var n=w(o.slideHeight());i.each(function(t){C(t.container,{height:n}),C(t.slide,{width:e.options.autoWidth?null:w(o.slideWidth(t.index)),height:t.container?null:n})})}return o}function st(u,c){var e,i,o,r,d=c.Track,f=c.Controller,s=u.options.direction===tt,l=s?"y":"x",n={required:u.options.drag,disabled:!1,mount:function(){var t=c.Elements.list;u.on("touchstart mousedown",a,t).on("touchmove mousemove",h,t,{passive:!1}).on("touchend touchcancel mouseleave mouseup dragend",p,t).on("mounted refresh",function(){v(t.querySelectorAll("img, a"),function(t){u.off("dragstart",t).on("dragstart",function(t){t.preventDefault()},t,{passive:!1})})})}};function a(t){n.disabled||r||!u.State.is(G)||(e=d.toCoord(d.position),i=g(t,{}),o=i)}function h(t){if(i)if(o=g(t,i),r){t.cancelable&&t.preventDefault();var n=e[l]+o.offset[l];d.translate(function(t){if(!u.is(H)){var n=d.sign,e=n*d.trim(d.toPosition(0)),i=n*d.trim(d.toPosition(f.edgeIndex));(t*=n)<e?t=e-7*Math.log(e-t):i<t&&(t=i+7*Math.log(t-i)),t*=n}return t}(n))}else!function(t){var n=t.offset;if(u.State.is(G)){var e=180*Math.atan(dt(n.y)/dt(n.x))/Math.PI;return s&&(e=90-e),e<u.options.dragAngleThreshold}return}(o)||(u.emit("drag",i),r=!0)}function p(){i=null,r&&(u.emit("dragged",o),function(t){var n=t.velocity[l],e=dt(n);if(0<e){var i=c.Layout,o=u.options,r=n<0?-1:1,s=d.position;e>o.flickVelocityThreshold&&dt(t.offset[l])<o.swipeDistanceThreshold&&(s+=r*Math.min(e*o.flickPower,i.width*(o.flickMaxPages||1)));var a=d.toIndex(s);a===u.index&&(a+=r*d.sign),u.is(H)||(a=y(a,0,f.edgeIndex)),f.go(a,o.isNavigation)}}(o),r=!1)}function g(t,n){var e=t.timeStamp,i=t.touches,o=i?i[0]:t,r=o.clientX,s=o.clientY,a=n.to||{},u=a.x,c=a.y,d={x:r-(void 0===u?r:u),y:s-(void 0===c?s:c)},f=e-(n.time||0);return{to:{x:r,y:s},offset:d,time:e,velocity:{x:d.x/f,y:d.y/f}}}return n}function at(o,r,s){var a,u,t,i=o.classes,c=o.root,d=r.Elements;function n(t){var n=o.options.perMove;o.go(n?(t?"-":"+")+n:t?"<":">")}function e(){var t=r.Controller,n=t.prevIndex,e=t.nextIndex,i=o.length>o.options.perPage||o.is(H);a.disabled=n<0||!i,u.disabled=e<0||!i,o.emit(s+":updated",a,u,n,e)}function f(t){return _('<button class="'+i.arrow+" "+(t?i.prev:i.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg"\tviewBox="0 0 40 40"\twidth="40"\theight="40"><path d="'+(o.options.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")+'" />')}return{required:o.options.arrows,mount:function(){a=d.arrows.prev,u=d.arrows.next,a&&u||!o.options.arrows||(a=f(!0),u=f(!1),t=!0,function(){var t=h("div",{class:i.arrows});S(t,a),S(t,u);var n=d.slider,e="slider"===o.options.arrows&&n?n:c;P(t,e.firstElementChild)}()),a&&u&&o.on("click",function(){return n(!0)},a).on("click",function(){return n(!1)},u).on("mounted move updated refresh",e),this.arrows={prev:a,next:u}},mounted:function(){o.emit(s+":mounted",a,u)},destroy:function(){L([a,u],"disabled"),t&&k(a.parentElement)}}}function ut(s,n,r){var a={},u=n.Elements,c={required:s.options.pagination,mount:function(){var n,o,r,t;n=s.options,o=s.classes,r=h("ul",{class:o.pagination}),t=u.getSlides(!1).filter(function(t){return!1!==n.focus||t.index%n.perPage==0}).map(function(t,n){var e=h("li",{}),i=h("button",{class:o.page,type:"button"});return S(e,i),S(r,e),s.on("click",function(){s.go(">"+n)},i),{li:e,button:i,page:n,Slides:u.getSlidesByPage(n)}}),a={list:r,items:t};var e=u.slider;S("slider"===s.options.pagination&&e?e:s.root,a.list),s.on(pt,i).on(gt,function(){c.destroy(),s.options.pagination&&(c.mount(),c.mounted())})},mounted:function(){var t=s.index;s.emit(r+":mounted",a,this.getItem(t)),i(t,-1)},destroy:function(){k(a.list),a.items&&a.items.forEach(function(t){s.off("click",t.button)}),s.off(pt).off(gt),a={}},getItem:function(t){return a.items[n.Controller.toPage(t)]},get data(){return a}};function i(t,n){var e=c.getItem(n),i=c.getItem(t),o=p.active;e&&O(e.button,o),i&&I(i.button,o),s.emit(r+":updated",a,e,i)}return c}function ct(a,n){var u=a.i18n,i=n.Elements;function e(t,n){W(t,xt,!n),W(t,Et,n?0:-1)}function t(t,n){var e=i.track.id;W(t,wt,e),W(n,wt,e)}function o(t,n,e,i){var o=a.index,r=-1<e&&o<e?u.last:u.prev,s=-1<i&&i<o?u.first:u.next;W(t,bt,r),W(n,bt,s)}function r(t,n){n&&W(n.button,yt,!0),t.items.forEach(function(t){var n=a.options,e=l(!1===n.focus&&1<n.perPage?u.pageX:u.slideX,t.page+1),i=t.button,o=t.Slides.map(function(t){return t.slide.id});W(i,wt,o.join(" ")),W(i,bt,e)})}function s(t,n,e){n&&L(n.button,yt),e&&W(e.button,yt,!0)}function c(a){i.each(function(t){var n=t.slide,e=t.realIndex,i=t.index;f(n)||W(n,"role","button");var o=-1<e?e:i,r=l(u.slideX,o+1),s=a.Components.Elements.getSlide(o);W(n,bt,r),s&&W(n,wt,s.slide.id)})}function d(t,n){var e=t.slide;n?W(e,yt,!0):L(e,yt)}function f(t){return"button"===t.tagName.toLowerCase()}return{required:a.options.accessibility,mount:function(){a.on("visible",function(t){e(t.slide,!0)}).on("hidden",function(t){e(t.slide,!1)}).on("arrows:mounted",t).on("arrows:updated",o).on("pagination:mounted",r).on("pagination:updated",s),a.options.isNavigation&&a.on("navigation:mounted",c).on("active",function(t){d(t,!0)}).on("inactive",function(t){d(t,!1)}),["play","pause"].forEach(function(t){var n=i[t];n&&(f(n)||W(n,"role","button"),W(n,wt,i.track.id),W(n,bt,u[t]))})},destroy:function(){var t=n.Arrows.arrows;L(i.slides.concat([t.prev,t.next,i.play,i.pause]),[xt,Et,wt,bt,yt,"role"])}}}var dt=Math.abs,ft=1,lt=2,ht=3,pt="move.page",gt="updated.page refresh.page",vt="data-splide-lazy",mt={ltr:{ArrowLeft:"<",ArrowRight:">",Left:"<",Right:">"},rtl:{ArrowLeft:">",ArrowRight:"<",Left:">",Right:"<"},ttb:{ArrowUp:"<",ArrowDown:">",Up:"<",Down:">"}},yt="aria-current",wt="aria-controls",bt="aria-label",xt="aria-hidden",Et="tabindex",_t="move.sync",kt=[" ","Enter","Spacebar"],St={Options:Y,Breakpoints:function(r){var s,a,u=r.options.breakpoints,n=it(t,50),c=[];function t(){var t,n=(t=c.filter(function(t){return t.mql.matches})[0])?t.point:-1;if(n!==a){a=n;var e=r.State,i=u[n]||s,o=i.destroy;o?(r.options=s,r.destroy("completely"===o)):e.is(F)?(e.set(B),r.mount()):r.options=i}}return{required:u&&matchMedia,mount:function(){c=Object.keys(u).sort(function(t,n){return parseInt(t)-parseInt(n)}).map(function(t){return{point:t,mql:matchMedia("(max-width:"+t+"px)")}}),this.destroy(!0),addEventListener("resize",n),s=r.options,t()},destroy:function(t){t&&removeEventListener("resize",n)}}},Elements:J,Controller:K,Track:Q,Clones:Z,Layout:rt,Drag:st,Click:function(t,n){var e=!1;function i(t){e&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}return{required:t.options.drag&&!t.is(D),mount:function(){t.on("click",i,n.Elements.track,{capture:!0}).on("drag",function(){e=!0}).on("moved",function(){e=!1})}}},Autoplay:function(r,t,e){var i,o=[],s=t.Elements,a={required:r.options.autoplay,mount:function(){var t=r.options;s.slides.length>t.perPage&&(i=ot(function(){r.go(">")},t.interval,function(t){r.emit(e+":playing",t),s.bar&&C(s.bar,{width:100*t+"%"})}),function(){var t=r.options,n=r.sibling,e=[r.root,n?n.root:null];t.pauseOnHover&&(u(e,"mouseleave",ft,!0),u(e,"mouseenter",ft,!1));t.pauseOnFocus&&(u(e,"focusout",lt,!0),u(e,"focusin",lt,!1));r.on("click",function(){a.play(lt),a.play(ht)},s.play).on("move refresh",function(){a.play()}).on("destroy",function(){a.pause()}),u([s.pause],"click",ht,!1)}(),this.play())},play:function(n){void 0===n&&(n=0),(o=o.filter(function(t){return t!==n})).length||(r.emit(e+":play"),i.play())},pause:function(t){void 0===t&&(t=0),i.pause(),-1===o.indexOf(t)&&o.push(t),1===o.length&&r.emit(e+":pause")}};function u(t,n,e,i){for(var o in t)r.on(n,function(){a[i?"play":"pause"](e)},t[o])}return a},Cover:function(t,n){function e(e){n.Elements.each(function(t){var n=d(t.slide,"img")||d(t.container,"img");n&&n.src&&i(n,e)})}function i(t,n){C(t.parentElement,{background:n?"":'center/cover no-repeat url("'+t.src+'")'}),C(t,{display:n?"":"none"})}return{required:t.options.cover,mount:function(){t.on("lazyload:loaded",function(t){i(t,!1)}),t.on("mounted updated refresh",function(){return e(!1)})},destroy:function(){e(!0)}}},Arrows:at,Pagination:ut,LazyLoad:function(o,t,r){var n,e,i=o.options,s="sequential"===i.lazyLoad;function a(){e=[],n=0}function u(n){n=isNaN(n)?o.index:n,(e=e.filter(function(t){return!t.Slide.isWithin(n,i.perPage*(i.preloadPages+1))||(c(t.img,t.Slide),!1)}))[0]||o.off("moved."+r)}function c(t,n){I(n.slide,p.loading);var e=h("span",{class:o.classes.spinner});S(t.parentElement,e),t.onload=function(){f(t,e,n,!1)},t.onerror=function(){f(t,e,n,!0)},W(t,"src",A(t,vt))}function d(){if(n<e.length){var t=e[n];c(t.img,t.Slide)}n++}function f(t,n,e,i){O(e.slide,p.loading),i||(k(n),C(t,{display:""}),o.emit(r+":loaded",t).emit("resize")),s&&d()}return{required:i.lazyLoad,mount:function(){o.on("mounted refresh",function(){a(),t.Elements.each(function(n){v(n.slide.querySelectorAll("["+vt+"]"),function(t){t.src||(e.push({img:t,Slide:n}),C(t,{display:"none"}))})}),s&&d()}),s||o.on("mounted refresh moved."+r,u)},destroy:a}},Keyboard:function(e){var t=e.root;return{mount:function(){var n=mt[e.options.direction];e.on("mounted updated",function(){e.off("keydown",t),e.options.keyboard&&e.on("keydown",function(t){n[t.key]&&e.go(n[t.key])},t)})}}},Sync:function(i){var o=i.sibling,t=o&&o.options.isNavigation;function r(){i.on(_t,function(t,n,e){o.off(_t).go(o.is(H)?e:t,!1),s()})}function s(){o.on(_t,function(t,n,e){i.off(_t).go(i.is(H)?e:t,!1),r()})}function a(t){i.State.is(G)&&o.go(t)}return{required:!!o,mount:function(){r(),s(),t&&o.Components.Elements.each(function(t){var n=t.slide,e=t.index;i.on("mouseup touchend",function(t){t.button&&0!==t.button||a(e)},n),i.on("keyup",function(t){-1<kt.indexOf(t.key)&&(t.preventDefault(),a(e))},n,{passive:!1})})},mounted:function(){t&&o.emit("navigation:mounted",i)}}},A11y:ct};var Pt=function(e){var t,n;function i(t,n){return e.call(this,t,n,St)||this}return n=e,(t=i).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,i}($);window.Splide=Pt}]);

@@ -26,5 +26,9 @@ 'use strict';

dest: './dist/js',
},
minified: {
path: './build/complete/config-min',
dest: './dist/js',
gzip: true,
},
module: {
modular: {
path: './build/module/config',

@@ -35,3 +39,2 @@ dest: './dist/js',

/*

@@ -38,0 +41,0 @@ * Path definitions.

{
"name": "@splidejs/splide",
"version": "2.2.3",
"version": "2.2.4",
"description": "Splide is a lightweight and powerful slider without any dependencies.",

@@ -8,2 +8,3 @@ "author": "Naotoshi Fujita",

"main": "dist/js/splide.js",
"module": "dist/js/splide.esm.js",
"keywords": [

@@ -27,5 +28,5 @@ "splide",

"@babel/core": "^7.9.0",
"@babel/preset-env": "^7.9.0",
"autoprefixer": "^9.7.5",
"babel-jest": "^25.1.0",
"@babel/preset-env": "^7.9.5",
"autoprefixer": "^9.7.6",
"babel-jest": "^25.3.0",
"babel-loader": "^8.1.0",

@@ -43,3 +44,3 @@ "cssnano": "^4.1.10",

"gulp-uglify": "^3.0.2",
"jest": "^25.1.0",
"jest": "^25.3.0",
"merge-stream": "^2.0.0",

@@ -46,0 +47,0 @@ "serialize-javascript": "^3.0.0",

@@ -84,3 +84,3 @@ [![Splide](images/splide.png)](https://splidejs.com/)

```html
<div id="splide" class="splide" data-splide="{"type":"loop","perPage":3}">
<div id="splide" class="splide" data-splide='{"type":"loop","perPage":3}'>
</div>

@@ -87,0 +87,0 @@ ```

@@ -10,4 +10,4 @@ /**

import { TTB } from '../../constants/directions';
import { IDLE } from '../../constants/states';
import { between } from '../../utils/utils';
import { IDLE } from '../../constants/states';
import { each } from "../../utils/object";

@@ -27,18 +27,4 @@

/**
* To start dragging the track, the drag angle must be less than this threshold.
*
* @type {number}
*/
const ANGLE_THRESHOLD = 30;
/**
* When a drag distance is over this value, the action will be treated as "swipe", not "flick".
*
* @type {number}
*/
const SWIPE_THRESHOLD = 150;
/**
* The component supporting mouse drag and swipe.

@@ -202,3 +188,3 @@ *

return angle < ANGLE_THRESHOLD;
return angle < Splide.options.dragAngleThreshold;
}

@@ -265,3 +251,3 @@

if ( absV > options.flickThreshold && abs( info.offset[ axis ] ) < SWIPE_THRESHOLD ) {
if ( absV > options.flickVelocityThreshold && abs( info.offset[ axis ] ) < options.swipeDistanceThreshold ) {
destination += sign * Math.min( absV * options.flickPower, Layout.width * ( options.flickMaxPages || 1 ) );

@@ -268,0 +254,0 @@ }

@@ -236,3 +236,19 @@ /**

/**
* Threshold for determining if the action is "flick" or "swipe".
* The angle threshold for drag.
* The slider starts moving only when the drag angle is less than this threshold.
*
* @type {number}
*/
dragAngleThreshold: 30,
/**
* Distance threshold for determining if the action is "flick" or "swipe".
* When a drag distance is over this value, the action will be treated as "swipe", not "flick".
*
* @type {number}
*/
swipeDistanceThreshold: 150,
/**
* Velocity threshold for determining if the action is "flick" or "swipe".
* Around 0.5 is recommended.

@@ -242,3 +258,3 @@ *

*/
flickThreshold: .6,
flickVelocityThreshold: .6,

@@ -245,0 +261,0 @@ /**

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc