1/*! 2 * @splidejs/splide-extension-auto-scroll 3 * Version : 0.3.3 4 * License : MIT 5 * Copyright: 2021 Naotoshi Fujita 6*/(function(S){typeof define=="function"&&define.amd?define(S):S()})(function(){"use strict";function S(n){return Array.isArray(n)}function z(n){return S(n)?n:[n]}function J(n,e){z(n).forEach(e)}function I(n){return requestAnimationFrame(n)}var L="move",P="moved",K="updated",b="drag",M="scroll",V="scrolled",Q="destroy";function U(n){var e=n.event,o={},t=[];function u(i,E,f){e.on(i,E,o,f)}function d(i){e.off(i,o)}function a(i,E,f,c){s(i,E,function(p,l){t.push([p,l,f,c]),p.addEventListener(l,f,c)})}function h(i,E,f){s(i,E,function(c,p){t=t.filter(function(l){return l[0]===c&&l[1]===p&&(!f||l[2]===f)?(c.removeEventListener(p,l[2],l[3]),!1):!0})})}function s(i,E,f){J(i,function(c){c&&E.split(" ").forEach(f.bind(null,c))})}function g(){t=t.filter(function(i){return h(i[0],i[1])}),e.offBy(o)}return e.on(Q,g,o),{on:u,off:d,emit:e.emit,bind:a,unbind:h,destroy:g}}function W(n,e,o,t){var u=Date.now,d,a=0,h,s=!0,g=0;function i(){if(!s){var m=u()-d;if(m>=n?(a=1,d=u()):a=m/n,o&&o(a),a===1&&(e(),t&&++g>=t))return f();I(i)}}function E(m){!m&&p(),d=u()-(m?a*n:0),s=!1,I(i)}function f(){s=!0}function c(){d=u(),a=0,o&&o(a)}function p(){cancelAnimationFrame(h),a=0,h=0,s=!0}function l(m){n=m}function A(){return s}return{start:E,rewind:c,pause:f,cancel:p,set:l,isPaused:A}}var X="slide";function N(n){return!j(n)&&typeof n=="object"}function Z(n){return typeof n=="undefined"}function j(n){return n===null}var k=Array.prototype;function nn(n,e,o){return k.slice.call(n,e,o)}function en(n,e,o){if(n){var t=Object.keys(n);t=o?t.reverse():t;for(var u=0;u<t.length;u++){var d=t[u];if(d!=="__proto__"&&e(n[d],d)===!1)break}}return n}function F(n){return nn(arguments,1).forEach(function(e){en(e,function(o,t){n[t]=e[t]})}),n}var R=Math.min,q=Math.max,vn=Math.floor,En=Math.ceil,mn=Math.abs;function tn(n,e,o){var t=R(e,o),u=q(e,o);return R(q(t,n),u)}var rn={speed:1,autoStart:!0,pauseOnHover:!0,pauseOnFocus:!0};function on(n,e,o){var t=U(n),u=t.on,d=t.off,a=t.bind,h=t.unbind,s=e.Move,g=s.translate,i=s.getPosition,E=s.toIndex,f=s.getLimit,c=e.Controller,p=c.setIndex,l=c.getIndex,A=e.Direction.orient,m=n.root,y={},v,C,H,$,T,_;function un(){var r=o.autoScroll;y=F({},rn,N(r)?r:{})}function B(){!v&&o.autoScroll!==!1&&(v=W(0,cn),fn(),sn())}function G(){v&&(v.cancel(),v=null,_=void 0,d([L,b,M,P,V]),h(m,"mouseenter mouseleave focusin focusout"))}function fn(){y.pauseOnHover&&a(m,"mouseenter mouseleave",function(r){H=r.type==="mouseenter",D(),console.log("enter")}),y.pauseOnFocus&&a(m,"focusin focusout",function(r){$=r.type==="focusin",D()}),u(K,an),u([L,b,M],function(){T=!0,O(!1)}),u([P,V],function(){T=!1,D()})}function an(){var r=o.autoScroll;r!==!1?(y=F(y,N(r)?r:{}),B()):G(),v&&!Z(_)&&g(_)}function sn(){y.autoStart&&(document.readyState==="complete"?x():a(window,"load",x))}function x(){v&&v.isPaused()&&v.start(!0)}function O(r){r===void 0&&(r=!0),v&&!v.isPaused()&&v.pause(),C=r}function D(){C||(!H&&!$&&!T?x():O(!1))}function cn(){var r=i(),w=dn(r);r!==w?(g(w),ln(w),_=w):(O(!1),y.rewind&&n.go(0))}function dn(r){var w=y.speed||1;return r+=A(w),n.is(X)&&(r=tn(r,f(!1),f(!0))),r}function ln(r){var w=n.length,Y=(E(r)+w)%w;Y!==l()&&(p(Y),e.Slides.update(),e.Pagination.update())}return{setup:un,mount:B,destroy:G,play:x,pause:O}}typeof window!="undefined"&&(window.splide=window.splide||{},window.splide.Extensions=window.splide.Extensions||{},window.splide.Extensions.AutoScroll=on);/*! 7* Splide.js 8* Version : 3.6.9 9* License : MIT 10* Copyright: 2021 Naotoshi Fujita 11*/});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.