/*! bespoke-jumpy v1.0.1 © 2021 Joel Purra, MIT License */ !function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n;"undefined"!=typeof window?n=window:"undefined"!=typeof global?n=global:"undefined"!=typeof self&&(n=self);var t=n;t=t.bespoke||(t.bespoke={}),t=t.plugins||(t.plugins={}),t.jumpy=e()}}(function(){return function e(n,t,r){function i(o,u){if(!t[o]){if(!n[o]){var s="function"==typeof require&&require;if(!u&&s)return s(o,!0);if(f)return f(o,!0);throw new Error("Cannot find module '"+o+"'")}var l=t[o]={exports:{}};n[o][0].call(l.exports,function(e){var t=n[o][1][e];return i(t?t:e)},l,l.exports,e,n,t,r)}return t[o].exports}for(var f="function"==typeof require&&require,o=0;o9;)n-=48;return n},s=function(e){var n=e>=48&&57>=e||e>=96&&105>=e;return n},l={firstIndex:function(){var e=0;return e},lastIndex:function(){var e=Math.max(0,this.slides.length-1);return e},first:function(e){var n=this.firstIndex(),t=f.fire(this,"first",null,n,e)&&this.slide(n,e);return t},last:function(e){var n=this.lastIndex(),t=f.fire(this,"last",null,n,e)&&this.slide(n,e);return t}},c=function(){var e=function(e){var n=["firstIndex","lastIndex","first","last"],t={},r=function(){n.forEach(function(n){t[n]=e[n],e[n]=l[n].bind(e)})},i=function(n){var t,r,i=!1;return n.altKey||n.ctrlKey||n.metaKey||n.shiftKey?!1:(i=i||n.which===o.END&&f.fire(e,"end",n)&&!e.last(),i=i||n.which===o.HOME&&f.fire(e,"home",n)&&!e.first(),s(n.which)&&(t=u(n.which),r=(t-1+10)%10,i=i||f.fire(e,"jump",n,r)&&!e.slide(r)),i&&n.preventDefault(),!i)},c=function(){document.addEventListener("keydown",i,!1)},a=function(){r(),c()};a()};return e};n.exports=c},{}]},{},[1])(1)});