/**
 * Observe how the user enters content into the comment form in order to determine whether it's a bot or not.
 *
 * Note that no actual input is being saved here, only counts and timings between events.
 */

( function() {
	// Passive event listeners are guaranteed to never call e.preventDefault(),
	// but they're not supported in all browsers.  Use this feature detection
	// to determine whether they're available for use.
	var supportsPassive = false;

	try {
		var opts = Object.defineProperty( {}, 'passive', {
			get : function() {
				supportsPassive = true;
			}
		} );

		window.addEventListener( 'testPassive', null, opts );
		window.removeEventListener( 'testPassive', null, opts );
	} catch ( e ) {}

	function init() {
		var input_begin = '';

		var keydowns = {};
		var lastKeyup = null;
		var lastKeydown = null;
		var keypresses = [];

		var modifierKeys = [];
		var correctionKeys = [];

		var lastMouseup = null;
		var lastMousedown = null;
		var mouseclicks = [];

		var mousemoveTimer = null;
		var lastMousemoveX = null;
		var lastMousemoveY = null;
		var mousemoveStart = null;
		var mousemoves = [];

		var touchmoveCountTimer = null;
		var touchmoveCount = 0;

		var lastTouchEnd = null;
		var lastTouchStart = null;
		var touchEvents = [];

		var scrollCountTimer = null;
		var scrollCount = 0;

		var correctionKeyCodes = [ 'Backspace', 'Delete', 'ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', 'Home', 'End', 'PageUp', 'PageDown' ];
		var modifierKeyCodes = [ 'Shift', 'CapsLock' ];

		var forms = document.querySelectorAll( 'form[method=post]' );

		for ( var i = 0; i < forms.length; i++ ) {
			var form = forms[i];

			var formAction = form.getAttribute( 'action' );

			// Ignore forms that POST directly to other domains; these could be things like payment forms.
			if ( formAction ) {
				// Check that the form is posting to an external URL, not a path.
				if ( formAction.indexOf( 'http://' ) == 0 || formAction.indexOf( 'https://' ) == 0 ) {
					if ( formAction.indexOf( 'http://' + window.location.hostname + '/' ) != 0 && formAction.indexOf( 'https://' + window.location.hostname + '/' ) != 0 ) {
						continue;
					}
				}
			}

			form.addEventListener( 'submit', function () {
				var ak_bkp = prepare_timestamp_array_for_request( keypresses );
				var ak_bmc = prepare_timestamp_array_for_request( mouseclicks );
				var ak_bte = prepare_timestamp_array_for_request( touchEvents );
				var ak_bmm = prepare_timestamp_array_for_request( mousemoves );

				var input_fields = {
					// When did the user begin entering any input?
					'bib': input_begin,

					// When was the form submitted?
					'bfs': Date.now(),

					// How many keypresses did they make?
					'bkpc': keypresses.length,

					// How quickly did they press a sample of keys, and how long between them?
					'bkp': ak_bkp,

					// How quickly did they click the mouse, and how long between clicks?
					'bmc': ak_bmc,

					// How many mouseclicks did they make?
					'bmcc': mouseclicks.length,

					// When did they press modifier keys (like Shift or Capslock)?
					'bmk': modifierKeys.join( ';' ),

					// When did they correct themselves? e.g., press Backspace, or use the arrow keys to move the cursor back
					'bck': correctionKeys.join( ';' ),

					// How many times did they move the mouse?
					'bmmc': mousemoves.length,

					// How many times did they move around using a touchscreen?
					'btmc': touchmoveCount,

					// How many times did they scroll?
					'bsc': scrollCount,

					// How quickly did they perform touch events, and how long between them?
					'bte': ak_bte,

					// How many touch events were there?
					'btec' : touchEvents.length,

					// How quickly did they move the mouse, and how long between moves?
					'bmm' : ak_bmm
				};

				var akismet_field_prefix = 'ak_';

				if ( this.getElementsByClassName ) {
					// Check to see if we've used an alternate field name prefix. We store this as an attribute of the container around some of the Akismet fields.
					var possible_akismet_containers = this.getElementsByClassName( 'akismet-fields-container' );

					for ( var containerIndex = 0; containerIndex < possible_akismet_containers.length; containerIndex++ ) {
						var container = possible_akismet_containers.item( containerIndex );

						if ( container.getAttribute( 'data-prefix' ) ) {
							akismet_field_prefix = container.getAttribute( 'data-prefix' );
							break;
						}
					}
				}

				for ( var field_name in input_fields ) {
					var field = document.createElement( 'input' );
					field.setAttribute( 'type', 'hidden' );
					field.setAttribute( 'name', akismet_field_prefix + field_name );
					field.setAttribute( 'value', input_fields[ field_name ] );
					this.appendChild( field );
				}
			}, supportsPassive ? { passive: true } : false  );

			form.addEventListener( 'keydown', function ( e ) {
				// If you hold a key down, some browsers send multiple keydown events in a row.
				// Ignore any keydown events for a key that hasn't come back up yet.
				if ( e.key in keydowns ) {
					return;
				}

				var keydownTime = ( new Date() ).getTime();
				keydowns[ e.key ] = [ keydownTime ];

				if ( ! input_begin ) {
					input_begin = keydownTime;
				}

				// In some situations, we don't want to record an interval since the last keypress -- for example,
				// on the first keypress, or on a keypress after focus has changed to another element. Normally,
				// we want to record the time between the last keyup and this keydown. But if they press a
				// key while already pressing a key, we want to record the time between the two keydowns.

				var lastKeyEvent = Math.max( lastKeydown, lastKeyup );

				if ( lastKeyEvent ) {
					keydowns[ e.key ].push( keydownTime - lastKeyEvent );
				}

				lastKeydown = keydownTime;
			}, supportsPassive ? { passive: true } : false  );

			form.addEventListener( 'keyup', function ( e ) {
				if ( ! ( e.key in keydowns ) ) {
					// This key was pressed before this script was loaded, or a mouseclick happened during the keypress, or...
					return;
				}

				var keyupTime = ( new Date() ).getTime();

				if ( 'TEXTAREA' === e.target.nodeName || 'INPUT' === e.target.nodeName ) {
					if ( -1 !== modifierKeyCodes.indexOf( e.key ) ) {
						modifierKeys.push( keypresses.length - 1 );
					} else if ( -1 !== correctionKeyCodes.indexOf( e.key ) ) {
						correctionKeys.push( keypresses.length - 1 );
					} else {
						// ^ Don't record timings for keys like Shift or backspace, since they
						// typically get held down for longer than regular typing.

						var keydownTime = keydowns[ e.key ][0];

						var keypress = [];

						// Keypress duration.
						keypress.push( keyupTime - keydownTime );

						// Amount of time between this keypress and the previous keypress.
						if ( keydowns[ e.key ].length > 1 ) {
							keypress.push( keydowns[ e.key ][1] );
						}

						keypresses.push( keypress );
					}
				}

				delete keydowns[ e.key ];

				lastKeyup = keyupTime;
			}, supportsPassive ? { passive: true } : false  );

			form.addEventListener( "focusin", function ( e ) {
				lastKeydown = null;
				lastKeyup = null;
				keydowns = {};
			}, supportsPassive ? { passive: true } : false  );

			form.addEventListener( "focusout", function ( e ) {
				lastKeydown = null;
				lastKeyup = null;
				keydowns = {};
			}, supportsPassive ? { passive: true } : false  );
		}

		document.addEventListener( 'mousedown', function ( e ) {
			lastMousedown = ( new Date() ).getTime();
		}, supportsPassive ? { passive: true } : false  );

		document.addEventListener( 'mouseup', function ( e ) {
			if ( ! lastMousedown ) {
				// If the mousedown happened before this script was loaded, but the mouseup happened after...
				return;
			}

			var now = ( new Date() ).getTime();

			var mouseclick = [];
			mouseclick.push( now - lastMousedown );

			if ( lastMouseup ) {
				mouseclick.push( lastMousedown - lastMouseup );
			}

			mouseclicks.push( mouseclick );

			lastMouseup = now;

			// If the mouse has been clicked, don't record this time as an interval between keypresses.
			lastKeydown = null;
			lastKeyup = null;
			keydowns = {};
		}, supportsPassive ? { passive: true } : false  );

		document.addEventListener( 'mousemove', function ( e ) {
			if ( mousemoveTimer ) {
				clearTimeout( mousemoveTimer );
				mousemoveTimer = null;
			}
			else {
				mousemoveStart = ( new Date() ).getTime();
				lastMousemoveX = e.offsetX;
				lastMousemoveY = e.offsetY;
			}

			mousemoveTimer = setTimeout( function ( theEvent, originalMousemoveStart ) {
				var now = ( new Date() ).getTime() - 500; // To account for the timer delay.

				var mousemove = [];
				mousemove.push( now - originalMousemoveStart );
				mousemove.push(
					Math.round(
						Math.sqrt(
							Math.pow( theEvent.offsetX - lastMousemoveX, 2 ) +
							Math.pow( theEvent.offsetY - lastMousemoveY, 2 )
						)
					)
				);

				if ( mousemove[1] > 0 ) {
					// If there was no measurable distance, then it wasn't really a move.
					mousemoves.push( mousemove );
				}

				mousemoveStart = null;
				mousemoveTimer = null;
			}, 500, e, mousemoveStart );
		}, supportsPassive ? { passive: true } : false  );

		document.addEventListener( 'touchmove', function ( e ) {
			if ( touchmoveCountTimer ) {
				clearTimeout( touchmoveCountTimer );
			}

			touchmoveCountTimer = setTimeout( function () {
				touchmoveCount++;
			}, 500 );
		}, supportsPassive ? { passive: true } : false );

		document.addEventListener( 'touchstart', function ( e ) {
			lastTouchStart = ( new Date() ).getTime();
		}, supportsPassive ? { passive: true } : false );

		document.addEventListener( 'touchend', function ( e ) {
			if ( ! lastTouchStart ) {
				// If the touchstart happened before this script was loaded, but the touchend happened after...
				return;
			}

			var now = ( new Date() ).getTime();

			var touchEvent = [];
			touchEvent.push( now - lastTouchStart );

			if ( lastTouchEnd ) {
				touchEvent.push( lastTouchStart - lastTouchEnd );
			}

			touchEvents.push( touchEvent );

			lastTouchEnd = now;

			// Don't record this time as an interval between keypresses.
			lastKeydown = null;
			lastKeyup = null;
			keydowns = {};
		}, supportsPassive ? { passive: true } : false );

		document.addEventListener( 'scroll', function ( e ) {
			if ( scrollCountTimer ) {
				clearTimeout( scrollCountTimer );
			}

			scrollCountTimer = setTimeout( function () {
				scrollCount++;
			}, 500 );
		}, supportsPassive ? { passive: true } : false );
	}

	/**
	 * For the timestamp data that is collected, don't send more than `limit` data points in the request.
	 * Choose a random slice and send those.
	 */
	function prepare_timestamp_array_for_request( a, limit ) {
		if ( ! limit ) {
			limit = 100;
		}

		var rv = '';

		if ( a.length > 0 ) {
			var random_starting_point = Math.max( 0, Math.floor( Math.random() * a.length - limit ) );

			for ( var i = 0; i < limit && i < a.length; i++ ) {
				rv += a[ random_starting_point + i ][0];

				if ( a[ random_starting_point + i ].length >= 2 ) {
					rv += "," + a[ random_starting_point + i ][1];
				}

				rv += ";";
			}
		}

		return rv;
	}

	if ( document.readyState !== 'loading' ) {
		init();
	} else {
		document.addEventListener( 'DOMContentLoaded', init );
	}
})();;
/*! For license information please see view.js.LICENSE.txt */
!function(){"use strict";function t(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)}}var n="(prefers-reduced-motion: reduce)",e=4,i=5,r={CREATED:1,MOUNTED:2,IDLE:3,MOVING:e,SCROLLING:i,DRAGGING:6,DESTROYED:7};function o(t){t.length=0}function u(t,n,e){return Array.prototype.slice.call(t,n,e)}function a(t){return t.bind.apply(t,[null].concat(u(arguments,1)))}var c=setTimeout,s=function(){};function f(t){return requestAnimationFrame(t)}function l(t,n){return typeof n===t}function d(t){return!m(t)&&l("object",t)}var v=Array.isArray,p=a(l,"function"),h=a(l,"string"),g=a(l,"undefined");function m(t){return null===t}function y(t){try{return t instanceof(t.ownerDocument.defaultView||window).HTMLElement}catch(t){return!1}}function b(t){return v(t)?t:[t]}function w(t,n){b(t).forEach(n)}function E(t,n){return t.indexOf(n)>-1}function S(t,n){return t.push.apply(t,b(n)),t}function x(t,n,e){t&&w(n,(function(n){n&&t.classList[e?"add":"remove"](n)}))}function P(t,n){x(t,h(n)?n.split(" "):n,!0)}function C(t,n){w(n,t.appendChild.bind(t))}function k(t,n){w(t,(function(t){var e=(n||t).parentNode;e&&e.insertBefore(t,n)}))}function L(t,n){return y(t)&&(t.msMatchesSelector||t.matches).call(t,n)}function _(t,n){var e=t?u(t.children):[];return n?e.filter((function(t){return L(t,n)})):e}function A(t,n){return n?_(t,n)[0]:t.firstElementChild}var M=Object.keys;function D(t,n,e){return t&&(e?M(t).reverse():M(t)).forEach((function(e){"__proto__"!==e&&n(t[e],e)})),t}function z(t){return u(arguments,1).forEach((function(n){D(n,(function(e,i){t[i]=n[i]}))})),t}function O(t){return u(arguments,1).forEach((function(n){D(n,(function(n,e){v(n)?t[e]=n.slice():d(n)?t[e]=O({},d(t[e])?t[e]:{},n):t[e]=n}))})),t}function N(t,n){w(n||M(t),(function(n){delete t[n]}))}function I(t,n){w(t,(function(t){w(n,(function(n){t&&t.removeAttribute(n)}))}))}function T(t,n,e){d(n)?D(n,(function(n,e){T(t,e,n)})):w(t,(function(t){m(e)||""===e?I(t,n):t.setAttribute(n,String(e))}))}function F(t,n,e){var i=document.createElement(t);return n&&(h(n)?P(i,n):T(i,n)),e&&C(e,i),i}function j(t,n,e){if(g(e))return getComputedStyle(t)[n];m(e)||(t.style[n]=""+e)}function R(t,n){j(t,"display",n)}function W(t){t.setActive&&t.setActive()||t.focus({preventScroll:!0})}function X(t,n){return t.getAttribute(n)}function G(t,n){return t&&t.classList.contains(n)}function B(t){return t.getBoundingClientRect()}function H(t){w(t,(function(t){t&&t.parentNode&&t.parentNode.removeChild(t)}))}function q(t){return A((new DOMParser).parseFromString(t,"text/html").body)}function Y(t,n){t.preventDefault(),n&&(t.stopPropagation(),t.stopImmediatePropagation())}function U(t,n){return t&&t.querySelector(n)}function K(t,n){return n?u(t.querySelectorAll(n)):[]}function J(t,n){x(t,n,!1)}function V(t){return t.timeStamp}function Q(t){return h(t)?t:t?t+"px":""}var Z="splide",$="data-"+Z;function tt(t,n){if(!t)throw new Error("["+Z+"] "+(n||""))}var nt=Math.min,et=Math.max,it=Math.floor,rt=Math.ceil,ot=Math.abs;function ut(t,n,e){return ot(t-n)<e}function at(t,n,e,i){var r=nt(n,e),o=et(n,e);return i?r<t&&t<o:r<=t&&t<=o}function ct(t,n,e){var i=nt(n,e),r=et(n,e);return nt(et(i,t),r)}function st(t){return+(t>0)-+(t<0)}function ft(t,n){return w(n,(function(n){t=t.replace("%s",""+n)})),t}function lt(t){return t<10?"0"+t:""+t}var dt={};function vt(t){return""+t+lt(dt[t]=(dt[t]||0)+1)}function pt(){var t=[];function n(t,n,e){w(t,(function(t){t&&w(n,(function(n){n.split(" ").forEach((function(n){var i=n.split(".");e(t,i[0],i[1])}))}))}))}return{bind:function(e,i,r,o){n(e,i,(function(n,e,i){var u="addEventListener"in n,a=u?n.removeEventListener.bind(n,e,r,o):n.removeListener.bind(n,r);u?n.addEventListener(e,r,o):n.addListener(r),t.push([n,e,i,r,a])}))},unbind:function(e,i,r){n(e,i,(function(n,e,i){t=t.filter((function(t){return!!(t[0]!==n||t[1]!==e||t[2]!==i||r&&t[3]!==r)||(t[4](),!1)}))}))},dispatch:function(t,n,e){var i;return"function"===typeof CustomEvent?i=new CustomEvent(n,{bubbles:true,detail:e}):(i=document.createEvent("CustomEvent")).initCustomEvent(n,true,!1,e),t.dispatchEvent(i),i},destroy:function(){t.forEach((function(t){t[4]()})),o(t)}}}var ht="mounted",gt="ready",mt="move",yt="moved",bt="click",wt="active",Et="inactive",St="visible",xt="hidden",Pt="refresh",Ct="updated",kt="resize",Lt="resized",_t="scroll",At="scrolled",Mt="destroy",Dt="arrows:mounted",zt="navigation:mounted",Ot="autoplay:play",Nt="autoplay:pause",It="lazyload:loaded",Tt="sk",Ft="sh",jt="ei";function Rt(t){var n=t?t.event.bus:document.createDocumentFragment(),e=pt();return t&&t.event.on(Mt,e.destroy),z(e,{bus:n,on:function(t,i){e.bind(n,b(t).join(" "),(function(t){i.apply(i,v(t.detail)?t.detail:[])}))},off:a(e.unbind,n),emit:function(t){e.dispatch(n,t,u(arguments,1))}})}function Wt(t,n,e,i){var r,o,u=Date.now,a=0,c=!0,s=0;function l(){if(!c){if(a=t?nt((u()-r)/t,1):1,e&&e(a),a>=1&&(n(),r=u(),i&&++s>=i))return d();o=f(l)}}function d(){c=!0}function v(){o&&cancelAnimationFrame(o),a=0,o=0,c=!0}return{start:function(n){n||v(),r=u()-(n?a*t:0),c=!1,o=f(l)},rewind:function(){r=u(),a=0,e&&e(a)},pause:d,cancel:v,set:function(n){t=n},isPaused:function(){return c}}}var Xt="Arrow",Gt=Xt+"Left",Bt=Xt+"Right",Ht=Xt+"Up",qt=Xt+"Down",Yt="ttb",Ut={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Ht,Bt],ArrowRight:[qt,Gt]};function Kt(t,n,e){return{resolve:function(t,n,i){var r="rtl"!==(i=i||e.direction)||n?i===Yt?0:-1:1;return Ut[t]&&Ut[t][r]||t.replace(/width|left|right/i,(function(t,n){var e=Ut[t.toLowerCase()][r]||t;return n>0?e.charAt(0).toUpperCase()+e.slice(1):e}))},orient:function(t){return t*("rtl"===e.direction?1:-1)}}}var Jt="role",Vt="tabindex",Qt="aria-",Zt=Qt+"controls",$t=Qt+"current",tn=Qt+"selected",nn=Qt+"label",en=Qt+"labelledby",rn=Qt+"hidden",on=Qt+"orientation",un=Qt+"roledescription",an=Qt+"live",cn=Qt+"busy",sn=Qt+"atomic",fn=[Jt,Vt,"disabled",Zt,$t,nn,en,rn,on,un],ln=Z+"__",dn="is-",vn=Z,pn=ln+"track",hn=ln+"list",gn=ln+"slide",mn=gn+"--clone",yn=gn+"__container",bn=ln+"arrows",wn=ln+"arrow",En=wn+"--prev",Sn=wn+"--next",xn=ln+"pagination",Pn=xn+"__page",Cn=ln+"progress"+"__bar",kn=ln+"toggle",Ln=ln+"sr",_n=dn+"initialized",An=dn+"active",Mn=dn+"prev",Dn=dn+"next",zn=dn+"visible",On=dn+"loading",Nn=dn+"focus-in",In=dn+"overflow",Tn=[An,zn,Mn,Dn,On,Nn,In],Fn={slide:gn,clone:mn,arrows:bn,arrow:wn,prev:En,next:Sn,pagination:xn,page:Pn,spinner:ln+"spinner"};var jn="touchstart mousedown",Rn="touchmove mousemove",Wn="touchend touchcancel mouseup click";var Xn="slide",Gn="loop",Bn="fade";function Hn(t,n,r,o){var u,c=Rt(t),s=c.on,f=c.emit,l=c.bind,d=t.Components,v=t.root,p=t.options,h=p.isNavigation,g=p.updateOnMove,m=p.i18n,y=p.pagination,b=p.slideFocus,w=d.Direction.resolve,E=X(o,"style"),S=X(o,nn),P=r>-1,C=A(o,"."+yn);function k(){var e=t.splides.map((function(t){var e=t.splide.Components.Slides.getAt(n);return e?e.slide.id:""})).join(" ");T(o,nn,ft(m.slideX,(P?r:n)+1)),T(o,Zt,e),T(o,Jt,b?"button":""),b&&I(o,un)}function L(){u||_()}function _(){if(!u){var r=t.index;!function(){var t=M();t!==G(o,An)&&(x(o,An,t),T(o,$t,h&&t||""),f(t?wt:Et,D))}(),function(){var n=function(){if(t.is(Bn))return M();var n=B(d.Elements.track),e=B(o),i=w("left",!0),r=w("right",!0);return it(n[i])<=rt(e[i])&&it(e[r])<=rt(n[r])}(),r=!n&&(!M()||P);t.state.is([e,i])||T(o,rn,r||"");T(K(o,p.focusableNodes||""),Vt,r?-1:""),b&&T(o,Vt,r?-1:0);n!==G(o,zn)&&(x(o,zn,n),f(n?St:xt,D));if(!n&&document.activeElement===o){var u=d.Slides.getAt(t.index);u&&W(u.slide)}}(),x(o,Mn,n===r-1),x(o,Dn,n===r+1)}}function M(){var e=t.index;return e===n||p.cloneStatus&&e===r}var D={index:n,slideIndex:r,slide:o,container:C,isClone:P,mount:function(){P||(o.id=v.id+"-slide"+lt(n+1),T(o,Jt,y?"tabpanel":"group"),T(o,un,m.slide),T(o,nn,S||ft(m.slideLabel,[n+1,t.length]))),l(o,"click",a(f,bt,D)),l(o,"keydown",a(f,Tt,D)),s([yt,Ft,At],_),s(zt,k),g&&s(mt,L)},destroy:function(){u=!0,c.destroy(),J(o,Tn),I(o,fn),T(o,"style",E),T(o,nn,S||"")},update:_,style:function(t,n,e){j(e&&C||o,t,n)},isWithin:function(e,i){var r=ot(e-n);return P||!p.rewind&&!t.is(Gn)||(r=nt(r,t.length-r)),r<=i}};return D}var qn="http://www.w3.org/2000/svg",Yn="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";var Un=$+"-interval";var Kn={passive:!1,capture:!0};var Jn={Spacebar:" ",Right:Bt,Left:Gt,Up:Ht,Down:qt};function Vn(t){return t=h(t)?t:t.key,Jn[t]||t}var Qn="keydown";var Zn=$+"-lazy",$n=Zn+"-srcset",te="["+Zn+"], ["+$n+"]";var ne=[" ","Enter"];var ee=Object.freeze({__proto__:null,Media:function(t,e,i){var r=t.state,o=i.breakpoints||{},u=i.reducedMotion||{},a=pt(),c=[];function s(t){t&&a.destroy()}function f(t,n){var e=matchMedia(n);a.bind(e,"change",l),c.push([t,e])}function l(){var n=r.is(7),e=i.direction,o=c.reduce((function(t,n){return O(t,n[1].matches?n[0]:{})}),{});N(i),d(o),i.destroy?t.destroy("completely"===i.destroy):n?(s(!0),t.mount()):e!==i.direction&&t.refresh()}function d(n,e,o){O(i,n),e&&O(Object.getPrototypeOf(i),n),!o&&r.is(1)||t.emit(Ct,i)}return{setup:function(){var t="min"===i.mediaQuery;M(o).sort((function(n,e){return t?+n-+e:+e-+n})).forEach((function(n){f(o[n],"("+(t?"min":"max")+"-width:"+n+"px)")})),f(u,n),l()},destroy:s,reduce:function(t){matchMedia(n).matches&&(t?O(i,u):N(i,M(u)))},set:d}},Direction:Kt,Elements:function(t,n,e){var i,r,u,a=Rt(t),c=a.on,s=a.bind,f=t.root,l=e.i18n,d={},v=[],h=[],g=[];function m(){i=w("."+pn),r=A(i,"."+hn),tt(i&&r,"A track/list element is missing."),S(v,_(r,"."+gn+":not(."+mn+")")),D({arrows:bn,pagination:xn,prev:En,next:Sn,bar:Cn,toggle:kn},(function(t,n){d[n]=w("."+t)})),z(d,{root:f,track:i,list:r,slides:v}),function(){var t=f.id||vt(Z),n=e.role;f.id=t,i.id=i.id||t+"-track",r.id=r.id||t+"-list",!X(f,Jt)&&"SECTION"!==f.tagName&&n&&T(f,Jt,n);T(f,un,l.carousel),T(r,Jt,"presentation")}(),b()}function y(t){var n=fn.concat("style");o(v),J(f,h),J(i,g),I([i,r],n),I(f,t?n:["style",un])}function b(){J(f,h),J(i,g),h=E(vn),g=E(pn),P(f,h),P(i,g),T(f,nn,e.label),T(f,en,e.labelledby)}function w(t){var n=U(f,t);return n&&function(t,n){if(p(t.closest))return t.closest(n);for(var e=t;e&&1===e.nodeType&&!L(e,n);)e=e.parentElement;return e}(n,"."+vn)===f?n:void 0}function E(t){return[t+"--"+e.type,t+"--"+e.direction,e.drag&&t+"--draggable",e.isNavigation&&t+"--nav",t===vn&&An]}return z(d,{setup:m,mount:function(){c(Pt,y),c(Pt,m),c(Ct,b),s(document,jn+" keydown",(function(t){u="keydown"===t.type}),{capture:!0}),s(f,"focusin",(function(){x(f,Nn,!!u)}))},destroy:y})},Slides:function(t,n,e){var i=Rt(t),r=i.on,u=i.emit,c=i.bind,s=n.Elements,f=s.slides,l=s.list,d=[];function v(){f.forEach((function(t,n){m(t,n,-1)}))}function g(){x((function(t){t.destroy()})),o(d)}function m(n,e,i){var r=Hn(t,e,i,n);r.mount(),d.push(r),d.sort((function(t,n){return t.index-n.index}))}function S(t){return t?_((function(t){return!t.isClone})):d}function x(t,n){S(n).forEach(t)}function _(t){return d.filter(p(t)?t:function(n){return h(t)?L(n.slide,t):E(b(t),n.index)})}return{mount:function(){v(),r(Pt,g),r(Pt,v)},destroy:g,update:function(){x((function(t){t.update()}))},register:m,get:S,getIn:function(t){var i=n.Controller,r=i.toIndex(t),o=i.hasFocus()?1:e.perPage;return _((function(t){return at(t.index,r,r+o-1)}))},getAt:function(t){return _(t)[0]},add:function(t,n){w(t,(function(t){if(h(t)&&(t=q(t)),y(t)){var i=f[n];i?k(t,i):C(l,t),P(t,e.classes.slide),function(t,n){var e=K(t,"img"),i=e.length;i?e.forEach((function(t){c(t,"load error",(function(){--i||n()}))})):n()}(t,a(u,kt))}})),u(Pt)},remove:function(t){H(_(t).map((function(t){return t.slide}))),u(Pt)},forEach:x,filter:_,style:function(t,n,e){x((function(i){i.style(t,n,e)}))},getLength:function(t){return t?f.length:d.length},isEnough:function(){return d.length>e.perPage}}},Layout:function(t,n,e){var i,r,o,u=Rt(t),c=u.on,s=u.bind,f=u.emit,l=n.Slides,v=n.Direction.resolve,p=n.Elements,h=p.root,g=p.track,m=p.list,y=l.getAt,b=l.style;function w(){i=e.direction===Yt,j(h,"maxWidth",Q(e.width)),j(g,v("paddingLeft"),S(!1)),j(g,v("paddingRight"),S(!0)),E(!0)}function E(t){var n=B(h);(t||r.width!==n.width||r.height!==n.height)&&(j(g,"height",function(){var t="";i&&(tt(t=P(),"height or heightRatio is missing."),t="calc("+t+" - "+S(!1)+" - "+S(!0)+")");return t}()),b(v("marginRight"),Q(e.gap)),b("width",e.autoWidth?null:Q(e.fixedWidth)||(i?"":C())),b("height",Q(e.fixedHeight)||(i?e.autoHeight?null:C():P()),!0),r=n,f(Lt),o!==(o=D())&&(x(h,In,o),f("overflow",o)))}function S(t){var n=e.padding,i=v(t?"right":"left");return n&&Q(n[i]||(d(n)?0:n))||"0px"}function P(){return Q(e.height||B(m).width*e.heightRatio)}function C(){var t=Q(e.gap);return"calc((100%"+(t&&" + "+t)+")/"+(e.perPage||1)+(t&&" - "+t)+")"}function k(){return B(m)[v("width")]}function L(t,n){var e=y(t||0);return e?B(e.slide)[v("width")]+(n?0:M()):0}function _(t,n){var e=y(t);if(e){var i=B(e.slide)[v("right")],r=B(m)[v("left")];return ot(i-r)+(n?0:M())}return 0}function A(n){return _(t.length-1)-_(0)+L(0,n)}function M(){var t=y(0);return t&&parseFloat(j(t.slide,v("marginRight")))||0}function D(){return t.is(Bn)||A(!0)>k()}return{mount:function(){w(),s(window,"resize load",function(t,n){var e=Wt(n||0,t,null,1);return function(){e.isPaused()&&e.start()}}(a(f,kt))),c([Ct,Pt],w),c(kt,E)},resize:E,listSize:k,slideSize:L,sliderSize:A,totalSize:_,getPadding:function(t){return parseFloat(j(g,v("padding"+(t?"Right":"Left"))))||0},isOverflow:D}},Clones:function(t,n,e){var i,r=Rt(t),u=r.on,a=n.Elements,c=n.Slides,s=n.Direction.resolve,f=[];function l(){u(Pt,d),u([Ct,kt],p),(i=h())&&(!function(n){var i=c.get().slice(),r=i.length;if(r){for(;i.length<n;)S(i,i);S(i.slice(-n),i.slice(0,n)).forEach((function(o,u){var s=u<n,l=function(n,i){var r=n.cloneNode(!0);return P(r,e.classes.clone),r.id=t.root.id+"-clone"+lt(i+1),r}(o.slide,u);s?k(l,i[0].slide):C(a.list,l),S(f,l),c.register(l,u-n+(s?0:r),o.index)}))}}(i),n.Layout.resize(!0))}function d(){v(),l()}function v(){H(f),o(f),r.destroy()}function p(){var t=h();i!==t&&(i<t||!t)&&r.emit(Pt)}function h(){var i=e.clones;if(t.is(Gn)){if(g(i)){var r=e[s("fixedWidth")]&&n.Layout.slideSize(0);i=r&&rt(B(a.track)[s("width")]/r)||e[s("autoWidth")]&&t.length||2*e.perPage}}else i=0;return i}return{mount:l,destroy:v}},Move:function(t,n,i){var r,o=Rt(t),u=o.on,a=o.emit,c=t.state.set,s=n.Layout,f=s.slideSize,l=s.getPadding,d=s.totalSize,v=s.listSize,p=s.sliderSize,h=n.Direction,m=h.resolve,y=h.orient,b=n.Elements,w=b.list,E=b.track;function S(){n.Controller.isBusy()||(n.Scroll.cancel(),x(t.index),n.Slides.update())}function x(t){P(_(t,!0))}function P(e,i){if(!t.is(Bn)){var r=i?e:function(e){if(t.is(Gn)){var i=L(e),r=i>n.Controller.getEnd();(i<0||r)&&(e=C(e,r))}return e}(e);j(w,"transform","translate"+m("X")+"("+r+"px)"),e!==r&&a(Ft)}}function C(t,n){var e=t-M(n),i=p();return t-=y(i*(rt(ot(e)/i)||1))*(n?1:-1)}function k(){P(A(),!0),r.cancel()}function L(t){for(var e=n.Slides.get(),i=0,r=1/0,o=0;o<e.length;o++){var u=e[o].index,a=ot(_(u,!0)-t);if(!(a<=r))break;r=a,i=u}return i}function _(n,e){var r=y(d(n-1)-function(t){var n=i.focus;return"center"===n?(v()-f(t,!0))/2:+n*f(t)||0}(n));return e?function(n){i.trimSpace&&t.is(Xn)&&(n=ct(n,0,y(p(!0)-v())));return n}(r):r}function A(){var t=m("left");return B(w)[t]-B(E)[t]+y(l(!1))}function M(t){return _(t?n.Controller.getEnd():0,!!i.trimSpace)}return{mount:function(){r=n.Transition,u([ht,Lt,Ct,Pt],S)},move:function(t,n,i,o){t!==n&&function(t){var n=y(C(A(),t));return t?n>=0:n<=w[m("scrollWidth")]-B(E)[m("width")]}(t>i)&&(k(),P(C(A(),t>i),!0)),c(e),a(mt,n,i,t),r.start(n,(function(){c(3),a(yt,n,i,t),o&&o()}))},jump:x,translate:P,shift:C,cancel:k,toIndex:L,toPosition:_,getPosition:A,getLimit:M,exceededLimit:function(t,n){n=g(n)?A():n;var e=!0!==t&&y(n)<y(M(!1)),i=!1!==t&&y(n)>y(M(!0));return e||i},reposition:S}},Controller:function(t,n,r){var o,u,c,s,f=Rt(t),l=f.on,d=f.emit,v=n.Move,p=v.getPosition,m=v.getLimit,y=v.toPosition,b=n.Slides,w=b.isEnough,E=b.getLength,S=r.omitEnd,x=t.is(Gn),P=t.is(Xn),C=a(D,!1),k=a(D,!0),L=r.start||0,_=L;function A(){u=E(!0),c=r.perMove,s=r.perPage,o=N();var t=ct(L,0,S?o:u-1);t!==L&&(L=t,v.reposition())}function M(){o!==N()&&d(jt)}function D(t,n){var e=c||(j()?1:s),i=z(L+e*(t?-1:1),L,!(c||j()));return-1===i&&P&&!ut(p(),m(!t),1)?t?0:o:n?i:O(i)}function z(n,e,i){if(w()||j()){var a=function(n){if(P&&"move"===r.trimSpace&&n!==L)for(var e=p();e===y(n,!0)&&at(n,0,t.length-1,!r.rewind);)n<L?--n:++n;return n}(n);a!==n&&(e=n,n=a,i=!1),n<0||n>o?n=c||!at(0,n,e,!0)&&!at(o,e,n,!0)?x?i?n<0?-(u%s||s):u:n:r.rewind?n<0?o:0:-1:I(T(n)):i&&n!==e&&(n=I(T(e)+(n<e?-1:1)))}else n=-1;return n}function O(t){return x?(t+u)%u||0:t}function N(){for(var t=u-(j()||x&&c?1:s);S&&t-- >0;)if(y(u-1,!0)!==y(t,!0)){t++;break}return ct(t,0,u-1)}function I(t){return ct(j()?t:s*t,0,o)}function T(t){return j()?nt(t,o):it((t>=o?u-1:t)/s)}function F(t){t!==L&&(_=L,L=t)}function j(){return!g(r.focus)||r.isNavigation}function R(){return t.state.is([e,i])&&!!r.waitForTransition}return{mount:function(){A(),l([Ct,Pt,jt],A),l(Lt,M)},go:function(t,n,e){if(!R()){var i=function(t){var n=L;if(h(t)){var e=t.match(/([+\-<>])(\d+)?/)||[],i=e[1],r=e[2];"+"===i||"-"===i?n=z(L+ +(""+i+(+r||1)),L):">"===i?n=r?I(+r):C(!0):"<"===i&&(n=k(!0))}else n=x?t:ct(t,0,o);return n}(t),r=O(i);r>-1&&(n||r!==L)&&(F(r),v.move(i,r,_,e))}},scroll:function(t,e,i,r){n.Scroll.scroll(t,e,i,(function(){var t=O(v.toIndex(p()));F(S?nt(t,o):t),r&&r()}))},getNext:C,getPrev:k,getAdjacent:D,getEnd:N,setIndex:F,getIndex:function(t){return t?_:L},toIndex:I,toPage:T,toDest:function(t){var n=v.toIndex(t);return P?ct(n,0,o):n},hasFocus:j,isBusy:R}},Arrows:function(t,n,e){var i,r,o=Rt(t),u=o.on,c=o.bind,s=o.emit,f=e.classes,l=e.i18n,d=n.Elements,v=n.Controller,p=d.arrows,h=d.track,g=p,m=d.prev,y=d.next,b={};function w(){!function(){var t=e.arrows;!t||m&&y||(g=p||F("div",f.arrows),m=L(!0),y=L(!1),i=!0,C(g,[m,y]),!p&&k(g,h));m&&y&&(z(b,{prev:m,next:y}),R(g,t?"":"none"),P(g,r=bn+"--"+e.direction),t&&(u([ht,yt,Pt,At,jt],_),c(y,"click",a(x,">")),c(m,"click",a(x,"<")),_(),T([m,y],Zt,h.id),s(Dt,m,y)))}(),u(Ct,E)}function E(){S(),w()}function S(){o.destroy(),J(g,r),i?(H(p?[m,y]:g),m=y=null):I([m,y],fn)}function x(t){v.go(t,!0)}function L(t){return q('<button class="'+f.arrow+" "+(t?f.prev:f.next)+'" type="button"><svg xmlns="'+qn+'" viewBox="0 0 '+"40 "+'40" width="'+'40" height="'+'40" focusable="false"><path d="'+(e.arrowPath||Yn)+'" />')}function _(){if(m&&y){var n=t.index,e=v.getPrev(),i=v.getNext(),r=e>-1&&n<e?l.last:l.prev,o=i>-1&&n>i?l.first:l.next;m.disabled=e<0,y.disabled=i<0,T(m,nn,r),T(y,nn,o),s("arrows:updated",m,y,e,i)}}return{arrows:b,mount:w,destroy:S,update:_}},Autoplay:function(t,n,e){var i,r,o=Rt(t),u=o.on,a=o.bind,c=o.emit,s=Wt(e.interval,t.go.bind(t,">"),(function(t){var n=l.bar;n&&j(n,"width",100*t+"%"),c("autoplay:playing",t)})),f=s.isPaused,l=n.Elements,d=n.Elements,v=d.root,p=d.toggle,h=e.autoplay,g="pause"===h;function m(){f()&&n.Slides.isEnough()&&(s.start(!e.resetProgress),r=i=g=!1,w(),c(Ot))}function y(t){void 0===t&&(t=!0),g=!!t,w(),f()||(s.pause(),c(Nt))}function b(){g||(i||r?y(!1):m())}function w(){p&&(x(p,An,!g),T(p,nn,e.i18n[g?"play":"pause"]))}function E(t){var i=n.Slides.getAt(t);s.set(i&&+X(i.slide,Un)||e.interval)}return{mount:function(){h&&(!function(){e.pauseOnHover&&a(v,"mouseenter mouseleave",(function(t){i="mouseenter"===t.type,b()}));e.pauseOnFocus&&a(v,"focusin focusout",(function(t){r="focusin"===t.type,b()}));p&&a(p,"click",(function(){g?m():y(!0)}));u([mt,_t,Pt],s.rewind),u(mt,E)}(),p&&T(p,Zt,l.track.id),g||m(),w())},destroy:s.cancel,play:m,pause:y,isPaused:f}},Cover:function(t,n,e){var i=Rt(t).on;function r(t){n.Slides.forEach((function(n){var e=A(n.container||n.slide,"img");e&&e.src&&o(t,e,n)}))}function o(t,n,e){e.style("background",t?'center/cover no-repeat url("'+n.src+'")':"",!0),R(n,t?"none":"")}return{mount:function(){e.cover&&(i(It,a(o,!0)),i([ht,Ct,Pt],a(r,!0)))},destroy:a(r,!1)}},Scroll:function(t,n,e){var r,o,u=Rt(t),c=u.on,s=u.emit,f=t.state.set,l=n.Move,d=l.getPosition,v=l.getLimit,p=l.exceededLimit,h=l.translate,g=t.is(Xn),m=1;function y(t,e,u,c,v){var h=d();if(E(),u&&(!g||!p())){var y=n.Layout.sliderSize(),S=st(t)*y*it(ot(t)/y)||0;t=l.toPosition(n.Controller.toDest(t%y))+S}var x=ut(h,t,1);m=1,e=x?0:e||et(ot(t-h)/1.5,800),o=c,r=Wt(e,b,a(w,h,t,v),1),f(i),s(_t),r.start()}function b(){f(3),o&&o(),s(At)}function w(t,n,i,r){var u=d(),a=(t+(n-t)*function(t){var n=e.easingFunc;return n?n(t):1-Math.pow(1-t,4)}(r)-u)*m;h(u+a),g&&!i&&p()&&(m*=.6,ot(a)<10&&y(v(p(!0)),600,!1,o,!0))}function E(){r&&r.cancel()}function S(){r&&!r.isPaused()&&(E(),b())}return{mount:function(){c(mt,E),c([Ct,Pt],S)},destroy:E,scroll:y,cancel:S}},Drag:function(t,n,r){var o,u,a,c,f,l,v,p,h=Rt(t),g=h.on,m=h.emit,y=h.bind,b=h.unbind,w=t.state,E=n.Move,S=n.Scroll,x=n.Controller,P=n.Elements.track,C=n.Media.reduce,k=n.Direction,_=k.resolve,A=k.orient,M=E.getPosition,D=E.exceededLimit,z=!1;function O(){var t=r.drag;H(!t),c="free"===t}function N(t){if(l=!1,!v){var n=B(t);!function(t){var n=r.noDrag;return!L(t,"."+Pn+", ."+wn)&&(!n||!L(t,n))}(t.target)||!n&&t.button||(x.isBusy()?Y(t,!0):(p=n?P:window,f=w.is([e,i]),a=null,y(p,Rn,I,Kn),y(p,Wn,T,Kn),E.cancel(),S.cancel(),j(t)))}}function I(n){if(w.is(6)||(w.set(6),m("drag")),n.cancelable)if(f){E.translate(o+R(n)/(z&&t.is(Xn)?5:1));var e=W(n)>200,i=z!==(z=D());(e||i)&&j(n),l=!0,m("dragging"),Y(n)}else(function(t){return ot(R(t))>ot(R(t,!0))})(n)&&(f=function(t){var n=r.dragMinThreshold,e=d(n),i=e&&n.mouse||0,o=(e?n.touch:+n)||10;return ot(R(t))>(B(t)?o:i)}(n),Y(n))}function T(e){w.is(6)&&(w.set(3),m("dragged")),f&&(!function(e){var i=function(n){if(t.is(Gn)||!z){var e=W(n);if(e&&e<200)return R(n)/e}return 0}(e),o=function(t){return M()+st(t)*nt(ot(t)*(r.flickPower||600),c?1/0:n.Layout.listSize()*(r.flickMaxPages||1))}(i),u=r.rewind&&r.rewindByDrag;C(!1),c?x.scroll(o,0,r.snap):t.is(Bn)?x.go(A(st(i))<0?u?"<":"-":u?">":"+"):t.is(Xn)&&z&&u?x.go(D(!0)?">":"<"):x.go(x.toDest(o),!0);C(!0)}(e),Y(e)),b(p,Rn,I),b(p,Wn,T),f=!1}function F(t){!v&&l&&Y(t,!0)}function j(t){a=u,u=t,o=M()}function R(t,n){return G(t,n)-G(X(t),n)}function W(t){return V(t)-V(X(t))}function X(t){return u===t&&a||u}function G(t,n){return(B(t)?t.changedTouches[0]:t)["page"+_(n?"Y":"X")]}function B(t){return"undefined"!==typeof TouchEvent&&t instanceof TouchEvent}function H(t){v=t}return{mount:function(){y(P,Rn,s,Kn),y(P,Wn,s,Kn),y(P,jn,N,Kn),y(P,"click",F,{capture:!0}),y(P,"dragstart",Y),g([ht,Ct],O)},disable:H,isDragging:function(){return f}}},Keyboard:function(t,n,e){var i,r,o=Rt(t),u=o.on,a=o.bind,s=o.unbind,f=t.root,l=n.Direction.resolve;function d(){var t=e.keyboard;t&&(i="global"===t?window:f,a(i,Qn,h))}function v(){s(i,Qn)}function p(){var t=r;r=!0,c((function(){r=t}))}function h(n){if(!r){var e=Vn(n);e===l(Gt)?t.go("<"):e===l(Bt)&&t.go(">")}}return{mount:function(){d(),u(Ct,v),u(Ct,d),u(mt,p)},destroy:v,disable:function(t){r=t}}},LazyLoad:function(t,n,e){var i=Rt(t),r=i.on,u=i.off,c=i.bind,s=i.emit,f="sequential"===e.lazyLoad,l=[yt,At],d=[];function v(){o(d),n.Slides.forEach((function(t){K(t.slide,te).forEach((function(n){var i=X(n,Zn),r=X(n,$n);if(i!==n.src||r!==n.srcset){var o=e.classes.spinner,u=n.parentElement,a=A(u,"."+o)||F("span",o,u);d.push([n,t,a]),n.src||R(n,"none")}}))})),f?m():(u(l),r(l,p),p())}function p(){(d=d.filter((function(n){var i=e.perPage*((e.preloadPages||1)+1)-1;return!n[1].isWithin(t.index,i)||h(n)}))).length||u(l)}function h(t){var n=t[0];P(t[1].slide,On),c(n,"load error",a(g,t)),T(n,"src",X(n,Zn)),T(n,"srcset",X(n,$n)),I(n,Zn),I(n,$n)}function g(t,n){var e=t[0],i=t[1];J(i.slide,On),"error"!==n.type&&(H(t[2]),R(e,""),s(It,e,i),s(kt)),f&&m()}function m(){d.length&&h(d.shift())}return{mount:function(){e.lazyLoad&&(v(),r(Pt,v))},destroy:a(o,d),check:p}},Pagination:function(t,n,e){var i,r,c=Rt(t),s=c.on,f=c.emit,l=c.bind,d=n.Slides,v=n.Elements,p=n.Controller,h=p.hasFocus,g=p.getIndex,m=p.go,y=n.Direction.resolve,b=v.pagination,w=[];function E(){i&&(H(b?u(i.children):i),J(i,r),o(w),i=null),c.destroy()}function S(t){m(">"+t,!0)}function x(t,n){var e=w.length,i=Vn(n),r=C(),o=-1;i===y(Bt,!1,r)?o=++t%e:i===y(Gt,!1,r)?o=(--t+e)%e:"Home"===i?o=0:"End"===i&&(o=e-1);var u=w[o];u&&(W(u.button),m(">"+o),Y(n,!0))}function C(){return e.paginationDirection||e.direction}function k(t){return w[p.toPage(t)]}function L(){var t=k(g(!0)),n=k(g());if(t){var e=t.button;J(e,An),I(e,tn),T(e,Vt,-1)}if(n){var r=n.button;P(r,An),T(r,tn,!0),T(r,Vt,"")}f("pagination:updated",{list:i,items:w},t,n)}return{items:w,mount:function n(){E(),s([Ct,Pt,jt],n);var o=e.pagination;b&&R(b,o?"":"none"),o&&(s([mt,_t,At],L),function(){var n=t.length,o=e.classes,u=e.i18n,c=e.perPage,s=h()?p.getEnd()+1:rt(n/c);P(i=b||F("ul",o.pagination,v.track.parentElement),r=xn+"--"+C()),T(i,Jt,"tablist"),T(i,nn,u.select),T(i,on,C()===Yt?"vertical":"");for(var f=0;f<s;f++){var g=F("li",null,i),m=F("button",{class:o.page,type:"button"},g),y=d.getIn(f).map((function(t){return t.slide.id})),E=!h()&&c>1?u.pageX:u.slideX;l(m,"click",a(S,f)),e.paginationKeyboard&&l(m,"keydown",a(x,f)),T(g,Jt,"presentation"),T(m,Jt,"tab"),T(m,Zt,y.join(" ")),T(m,nn,ft(E,f+1)),T(m,Vt,-1),w.push({li:g,button:m,page:f})}}(),L(),f("pagination:mounted",{list:i,items:w},k(t.index)))},destroy:E,getAt:k,update:L}},Sync:function(t,n,e){var i=e.isNavigation,r=e.slideFocus,u=[];function c(){t.splides.forEach((function(n){n.isParent||(f(t,n.splide),f(n.splide,t))})),i&&function(){var n=Rt(t),e=n.on;e(bt,d),e(Tt,v),e([ht,Ct],l),u.push(n),n.emit(zt,t.splides)}()}function s(){u.forEach((function(t){t.destroy()})),o(u)}function f(t,n){var e=Rt(t);e.on(mt,(function(t,e,i){n.go(n.is(Gn)?i:t)})),u.push(e)}function l(){T(n.Elements.list,on,e.direction===Yt?"vertical":"")}function d(n){t.go(n.index)}function v(t,n){E(ne,Vn(n))&&(d(t),Y(n))}return{setup:a(n.Media.set,{slideFocus:g(r)?i:r},!0),mount:c,destroy:s,remount:function(){s(),c()}}},Wheel:function(t,n,i){var r=Rt(t).bind,o=0;function u(r){if(r.cancelable){var u=r.deltaY,a=u<0,c=V(r),s=i.wheelMinThreshold||0,f=i.wheelSleep||0;ot(u)>s&&c-o>f&&(t.go(a?"<":">"),o=c),function(r){return!i.releaseWheel||t.state.is(e)||-1!==n.Controller.getAdjacent(r)}(a)&&Y(r)}}return{mount:function(){i.wheel&&r(n.Elements.track,"wheel",u,Kn)}}},Live:function(t,n,e){var i=Rt(t).on,r=n.Elements.track,o=e.live&&!e.isNavigation,u=F("span",Ln),c=Wt(90,a(s,!1));function s(t){T(r,cn,t),t?(C(r,u),c.start()):(H(u),c.cancel())}function f(t){o&&T(r,an,t?"off":"polite")}return{mount:function(){o&&(f(!n.Autoplay.isPaused()),T(r,sn,!0),u.textContent="…",i(Ot,a(f,!0)),i(Nt,a(f,!1)),i([yt,At],a(s,!0)))},disable:f,destroy:function(){I(r,[an,sn,cn]),H(u)}}}}),ie={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:Fn,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",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function re(t,n,e){var i=n.Slides;function r(){i.forEach((function(t){t.style("transform","translateX(-"+100*t.index+"%)")}))}return{mount:function(){Rt(t).on([ht,Pt],r)},start:function(t,n){i.style("transition","opacity "+e.speed+"ms "+e.easing),c(n)},cancel:s}}function oe(t,n,e){var i,r=n.Move,o=n.Controller,u=n.Scroll,c=n.Elements.list,s=a(j,c,"transition");function f(){s(""),u.cancel()}return{mount:function(){Rt(t).bind(c,"transitionend",(function(t){t.target===c&&i&&(f(),i())}))},start:function(n,a){var c=r.toPosition(n,!0),f=r.getPosition(),l=function(n){var i=e.rewindSpeed;if(t.is(Xn)&&i){var r=o.getIndex(!0),u=o.getEnd();if(0===r&&n>=u||r>=u&&0===n)return i}return e.speed}(n);ot(c-f)>=1&&l>=1?e.useScroll?u.scroll(c,l,!1,a):(s("transform "+l+"ms "+e.easing),r.translate(c,!0),i=a):(r.jump(n),a())},cancel:f}}var ue=function(){function n(t,e){this.event=Rt(),this.Components={},this.state=function(t){var n=t;return{set:function(t){n=t},is:function(t){return E(b(t),n)}}}(1),this.splides=[],this._o={},this._E={};var i=h(t)?U(document,t):t;tt(i,i+" is invalid."),this.root=i,e=O({label:X(i,nn)||"",labelledby:X(i,en)||""},ie,n.defaults,e||{});try{O(e,JSON.parse(X(i,$)))}catch(t){tt(!1,"Invalid JSON")}this._o=Object.create(O({},e))}var e,i,r,a=n.prototype;return a.mount=function(t,n){var e=this,i=this.state,r=this.Components;return tt(i.is([1,7]),"Already mounted!"),i.set(1),this._C=r,this._T=n||this._T||(this.is(Bn)?re:oe),this._E=t||this._E,D(z({},ee,this._E,{Transition:this._T}),(function(t,n){var i=t(e,r,e._o);r[n]=i,i.setup&&i.setup()})),D(r,(function(t){t.mount&&t.mount()})),this.emit(ht),P(this.root,_n),i.set(3),this.emit(gt),this},a.sync=function(t){return this.splides.push({splide:t}),t.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),t.Components.Sync.remount()),this},a.go=function(t){return this._C.Controller.go(t),this},a.on=function(t,n){return this.event.on(t,n),this},a.off=function(t){return this.event.off(t),this},a.emit=function(t){var n;return(n=this.event).emit.apply(n,[t].concat(u(arguments,1))),this},a.add=function(t,n){return this._C.Slides.add(t,n),this},a.remove=function(t){return this._C.Slides.remove(t),this},a.is=function(t){return this._o.type===t},a.refresh=function(){return this.emit(Pt),this},a.destroy=function(t){void 0===t&&(t=!0);var n=this.event,e=this.state;return e.is(1)?Rt(this).on(gt,this.destroy.bind(this,t)):(D(this._C,(function(n){n.destroy&&n.destroy(t)}),!0),n.emit(Mt),n.destroy(),t&&o(this.splides),e.set(7)),this},e=n,(i=[{key:"options",get:function(){return this._o},set:function(t){this._C.Media.set(t,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&t(e.prototype,i),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),n}(),ae=ue;ae.defaults={},ae.STATES=r;const ce=window.matchMedia("(pointer: coarse)").matches;document.addEventListener("DOMContentLoaded",(()=>{document.querySelectorAll(".wp-block-tenup-carousel").forEach((t=>{const n=t.getAttribute("data-items-per-page"),e=t.getAttribute("data-slide-type"),i=t.getAttribute("data-show-arrows"),r=t.getAttribute("data-show-dots");(function(t,n={}){return new ae(t,{type:"loop",perPage:1,perMove:1,pagination:!0,arrows:!0,drag:ce,autoplay:!1,autoHeight:!0,clones:0,speed:500,easing:"ease",...n})})(t,{perPage:n,type:e,arrows:i,pagination:r}).mount()}))}))}();;
