Real Testimonials - Version 2.3.1

Version Description

  • Oct 12, 2021 =
  • Fix: JS error on single testimonial issue.
Download this release

Release Info

Developer shapedplugin
Plugin Icon 128x128 Real Testimonials
Version 2.3.1
Comparing to
See all releases

Code changes from version 2.3.0 to 2.3.1

public/assets/js/slick.js CHANGED
@@ -6,7 +6,7 @@
6
  |___/_|_|\___|_|\_(_)/ |___/
7
  |__/
8
 
9
- Version: 1.6.0
10
  Author: Ken Wheeler
11
  Website: http://kenwheeler.github.io
12
  Docs: http://kenwheeler.github.io/slick
@@ -15,2881 +15,2997 @@
15
 
16
  */
17
  /* global window, document, define, jQuery, setInterval, clearInterval */
18
- (function(factory) {
19
- 'use strict';
20
- if (typeof define === 'function' && define.amd) {
21
- define(['jquery'], factory);
22
- } else if (typeof exports !== 'undefined') {
23
- module.exports = factory(require('jquery'));
24
- } else {
25
- factory(jQuery);
26
- }
27
 
28
  }(function($) {
29
- 'use strict';
30
- var Slick = window.Slick || {};
31
-
32
- Slick = (function() {
33
-
34
- var instanceUid = 0;
35
-
36
- function Slick(element, settings) {
37
-
38
- var _ = this, dataSettings;
39
-
40
- _.defaults = {
41
- accessibility: true,
42
- adaptiveHeight: false,
43
- appendArrows: $(element),
44
- appendDots: $(element),
45
- arrows: true,
46
- asNavFor: null,
47
- prevArrow: '<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',
48
- nextArrow: '<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',
49
- autoplay: false,
50
- autoplaySpeed: 3000,
51
- centerMode: false,
52
- centerPadding: '50px',
53
- cssEase: 'ease',
54
- customPaging: function(slider, i) {
55
- return $('<button type="button" data-role="none" role="button" tabindex="0" />').text(i + 1);
56
- },
57
- dots: false,
58
- dotsClass: 'slick-dots',
59
- draggable: true,
60
- easing: 'linear',
61
- edgeFriction: 0.35,
62
- fade: false,
63
- focusOnSelect: false,
64
- infinite: true,
65
- initialSlide: 0,
66
- lazyLoad: 'ondemand',
67
- mobileFirst: false,
68
- pauseOnHover: true,
69
- pauseOnFocus: true,
70
- pauseOnDotsHover: false,
71
- respondTo: 'window',
72
- responsive: null,
73
- rows: 1,
74
- rtl: false,
75
- slide: '',
76
- slidesPerRow: 1,
77
- slidesToShow: 1,
78
- slidesToScroll: 1,
79
- speed: 500,
80
- swipe: true,
81
- swipeToSlide: false,
82
- touchMove: true,
83
- touchThreshold: 5,
84
- useCSS: true,
85
- useTransform: true,
86
- variableWidth: false,
87
- vertical: false,
88
- verticalSwiping: false,
89
- waitForAnimate: true,
90
- zIndex: 1000
91
- };
92
-
93
- _.initials = {
94
- animating: false,
95
- dragging: false,
96
- autoPlayTimer: null,
97
- currentDirection: 0,
98
- currentLeft: null,
99
- currentSlide: 0,
100
- direction: 1,
101
- $dots: null,
102
- listWidth: null,
103
- listHeight: null,
104
- loadIndex: 0,
105
- $nextArrow: null,
106
- $prevArrow: null,
107
- slideCount: null,
108
- slideWidth: null,
109
- $slideTrack: null,
110
- $slides: null,
111
- sliding: false,
112
- slideOffset: 0,
113
- swipeLeft: null,
114
- $list: null,
115
- touchObject: {},
116
- transformsEnabled: false,
117
- unslicked: false
118
- };
119
-
120
- $.extend(_, _.initials);
121
-
122
- _.activeBreakpoint = null;
123
- _.animType = null;
124
- _.animProp = null;
125
- _.breakpoints = [];
126
- _.breakpointSettings = [];
127
- _.cssTransitions = false;
128
- _.focussed = false;
129
- _.interrupted = false;
130
- _.hidden = 'hidden';
131
- _.paused = true;
132
- _.positionProp = null;
133
- _.respondTo = null;
134
- _.rowCount = 1;
135
- _.shouldClick = true;
136
- _.$slider = $(element);
137
- _.$slidesCache = null;
138
- _.transformType = null;
139
- _.transitionType = null;
140
- _.visibilityChange = 'visibilitychange';
141
- _.windowWidth = 0;
142
- _.windowTimer = null;
143
-
144
- dataSettings = $(element).data('slick') || {};
145
-
146
- _.options = $.extend({}, _.defaults, settings, dataSettings);
147
-
148
- _.currentSlide = _.options.initialSlide;
149
-
150
- _.originalSettings = _.options;
151
-
152
- if (typeof document.mozHidden !== 'undefined') {
153
- _.hidden = 'mozHidden';
154
- _.visibilityChange = 'mozvisibilitychange';
155
- } else if (typeof document.webkitHidden !== 'undefined') {
156
- _.hidden = 'webkitHidden';
157
- _.visibilityChange = 'webkitvisibilitychange';
158
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
 
160
- _.autoPlay = $.proxy(_.autoPlay, _);
161
- _.autoPlayClear = $.proxy(_.autoPlayClear, _);
162
- _.autoPlayIterator = $.proxy(_.autoPlayIterator, _);
163
- _.changeSlide = $.proxy(_.changeSlide, _);
164
- _.clickHandler = $.proxy(_.clickHandler, _);
165
- _.selectHandler = $.proxy(_.selectHandler, _);
166
- _.setPosition = $.proxy(_.setPosition, _);
167
- _.swipeHandler = $.proxy(_.swipeHandler, _);
168
- _.dragHandler = $.proxy(_.dragHandler, _);
169
- _.keyHandler = $.proxy(_.keyHandler, _);
170
 
171
- _.instanceUid = instanceUid++;
 
172
 
173
- // A simple way to check for HTML strings
174
- // Strict HTML recognition (must start with <)
175
- // Extracted from jQuery v1.11 source
176
- _.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/;
 
 
177
 
 
 
178
 
179
- _.registerBreakpoints();
180
- _.init(true);
181
 
182
- }
 
 
183
 
184
- return Slick;
185
 
186
- }());
187
 
188
- Slick.prototype.activateADA = function() {
189
- var _ = this;
190
 
191
- _.$slideTrack.find('.slick-active').attr({
192
- 'aria-hidden': 'false',
193
- // J.DAY - added tabindex for slide focus
194
- 'tabindex': '0'
195
- }).find('a, input, button, select').attr({
196
- 'tabindex': '0'
197
- });
198
 
199
- };
 
200
 
201
- Slick.prototype.addSlide = Slick.prototype.slickAdd = function(markup, index, addBefore) {
 
 
202
 
203
- var _ = this;
204
 
205
- if (typeof(index) === 'boolean') {
206
- addBefore = index;
207
- index = null;
208
- } else if (index < 0 || (index >= _.slideCount)) {
209
- return false;
210
- }
211
 
212
- _.unload();
213
 
214
- if (typeof(index) === 'number') {
215
- if (index === 0 && _.$slides.length === 0) {
216
- $(markup).appendTo(_.$slideTrack);
217
- } else if (addBefore) {
218
- $(markup).insertBefore(_.$slides.eq(index));
219
- } else {
220
- $(markup).insertAfter(_.$slides.eq(index));
221
- }
222
- } else {
223
- if (addBefore === true) {
224
- $(markup).prependTo(_.$slideTrack);
225
- } else {
226
- $(markup).appendTo(_.$slideTrack);
227
- }
228
- }
229
 
230
- _.$slides = _.$slideTrack.children(this.options.slide);
 
 
 
 
 
 
 
231
 
232
- _.$slideTrack.children(this.options.slide).detach();
233
 
234
- _.$slideTrack.append(_.$slides);
235
 
236
- _.$slides.each(function(index, element) {
237
- $(element).attr('data-slick-index', index);
238
- });
239
 
240
- _.$slidesCache = _.$slides;
 
 
 
 
241
 
242
- _.reinit();
 
 
 
 
243
 
244
- };
245
 
246
- Slick.prototype.animateHeight = function() {
247
- var _ = this;
248
- if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {
249
- var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);
250
- _.$list.animate({
251
- height: targetHeight
252
- }, _.options.speed);
253
- }
254
- };
255
 
256
- Slick.prototype.animateSlide = function(targetLeft, callback) {
257
 
258
- var animProps = {},
259
- _ = this;
260
 
261
- _.animateHeight();
 
 
262
 
263
- if (_.options.rtl === true && _.options.vertical === false) {
264
- targetLeft = -targetLeft;
265
- }
266
- if (_.transformsEnabled === false) {
267
- if (_.options.vertical === false) {
268
- _.$slideTrack.animate({
269
- left: targetLeft
270
- }, _.options.speed, _.options.easing, callback);
271
- } else {
272
- _.$slideTrack.animate({
273
- top: targetLeft
274
- }, _.options.speed, _.options.easing, callback);
275
- }
276
 
277
- } else {
278
-
279
- if (_.cssTransitions === false) {
280
- if (_.options.rtl === true) {
281
- _.currentLeft = -(_.currentLeft);
282
- }
283
- $({
284
- animStart: _.currentLeft
285
- }).animate({
286
- animStart: targetLeft
287
- }, {
288
- duration: _.options.speed,
289
- easing: _.options.easing,
290
- step: function(now) {
291
- now = Math.ceil(now);
292
- if (_.options.vertical === false) {
293
- animProps[_.animType] = 'translate(' +
294
- now + 'px, 0px)';
295
- _.$slideTrack.css(animProps);
296
- } else {
297
- animProps[_.animType] = 'translate(0px,' +
298
- now + 'px)';
299
- _.$slideTrack.css(animProps);
300
- }
301
- },
302
- complete: function() {
303
- if (callback) {
304
- callback.call();
305
- }
306
- }
307
- });
308
 
309
- } else {
310
 
311
- _.applyTransition();
312
- targetLeft = Math.ceil(targetLeft);
 
313
 
314
- if (_.options.vertical === false) {
315
- animProps[_.animType] = 'translate3d(' + targetLeft + 'px, 0px, 0px)';
316
- } else {
317
- animProps[_.animType] = 'translate3d(0px,' + targetLeft + 'px, 0px)';
318
- }
319
- _.$slideTrack.css(animProps);
320
 
321
- if (callback) {
322
- setTimeout(function() {
323
 
324
- _.disableTransition();
 
325
 
326
- callback.call();
327
- }, _.options.speed);
328
- }
329
 
330
- }
331
 
332
- }
 
 
333
 
334
- };
335
 
336
- Slick.prototype.getNavTarget = function() {
337
 
338
- var _ = this,
339
- asNavFor = _.options.asNavFor;
 
340
 
341
- if ( asNavFor && asNavFor !== null ) {
342
- asNavFor = $(asNavFor).not(_.$slider);
343
- }
344
 
345
- return asNavFor;
346
 
347
- };
348
 
349
- Slick.prototype.asNavFor = function(index) {
350
 
351
- var _ = this,
352
- asNavFor = _.getNavTarget();
353
 
354
- if ( asNavFor !== null && typeof asNavFor === 'object' ) {
355
- asNavFor.each(function() {
356
- var target = $(this).slick('getSlick');
357
- if(!target.unslicked) {
358
- target.slideHandler(index, true);
359
- }
360
- });
361
- }
362
 
363
- };
364
 
365
- Slick.prototype.applyTransition = function(slide) {
366
 
367
- var _ = this,
368
- transition = {};
369
 
370
- if (_.options.fade === false) {
371
- transition[_.transitionType] = _.transformType + ' ' + _.options.speed + 'ms ' + _.options.cssEase;
372
- } else {
373
- transition[_.transitionType] = 'opacity ' + _.options.speed + 'ms ' + _.options.cssEase;
374
- }
375
 
376
- if (_.options.fade === false) {
377
- _.$slideTrack.css(transition);
378
- } else {
379
- _.$slides.eq(slide).css(transition);
380
- }
381
 
382
- };
 
 
383
 
384
- Slick.prototype.autoPlay = function() {
 
 
385
 
386
- var _ = this;
 
 
 
 
387
 
388
- _.autoPlayClear();
389
 
390
- if ( _.slideCount > _.options.slidesToShow ) {
391
- _.autoPlayTimer = setInterval( _.autoPlayIterator, _.options.autoplaySpeed );
392
- }
393
 
394
- };
 
 
 
 
395
 
396
- Slick.prototype.autoPlayClear = function() {
397
 
398
- var _ = this;
399
 
400
- if (_.autoPlayTimer) {
401
- clearInterval(_.autoPlayTimer);
402
- }
403
 
404
- };
405
 
406
- Slick.prototype.autoPlayIterator = function() {
 
407
 
408
- var _ = this,
409
- slideTo = _.currentSlide + _.options.slidesToScroll;
410
 
411
- if ( !_.paused && !_.interrupted && !_.focussed ) {
412
 
413
- if ( _.options.infinite === false ) {
414
 
415
- if ( _.direction === 1 && ( _.currentSlide + 1 ) === ( _.slideCount - 1 )) {
416
- _.direction = 0;
417
- }
418
 
419
- else if ( _.direction === 0 ) {
420
 
421
- slideTo = _.currentSlide - _.options.slidesToScroll;
422
 
423
- if ( _.currentSlide - 1 === 0 ) {
424
- _.direction = 1;
425
- }
426
 
427
- }
428
 
429
- }
430
 
431
- _.slideHandler( slideTo );
432
 
433
- }
 
 
 
434
 
435
- };
436
 
437
- Slick.prototype.buildArrows = function() {
 
 
 
 
438
 
439
- var _ = this;
440
 
441
- if (_.options.arrows === true ) {
 
 
442
 
443
- _.$prevArrow = $(_.options.prevArrow).addClass('slick-arrow');
444
- _.$nextArrow = $(_.options.nextArrow).addClass('slick-arrow');
 
445
 
446
- if( _.slideCount > _.options.slidesToShow ) {
 
 
447
 
448
- _.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
449
- _.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
450
 
451
- if (_.htmlExpr.test(_.options.prevArrow)) {
452
- _.$prevArrow.prependTo(_.options.appendArrows);
453
- }
454
 
455
- if (_.htmlExpr.test(_.options.nextArrow)) {
456
- _.$nextArrow.appendTo(_.options.appendArrows);
457
- }
458
 
459
- if (_.options.infinite !== true) {
460
- _.$prevArrow
461
- .addClass('slick-disabled')
462
- .attr('aria-disabled', 'true')
463
- }
464
 
465
- } else {
466
 
467
- _.$prevArrow.add( _.$nextArrow )
468
 
469
- .addClass('slick-hidden')
470
- .attr({
471
- 'aria-disabled': 'true',
472
- 'tabindex': '-1'
473
- });
474
 
475
- }
 
 
476
 
477
- }
478
 
479
- };
480
 
481
- Slick.prototype.buildDots = function() {
482
 
483
- var _ = this,
484
- i, dot;
485
 
486
- if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
487
 
488
- _.$slider.addClass('slick-dotted');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
489
 
490
- dot = $('<ul />').addClass(_.options.dotsClass);
 
491
 
492
- for (i = 0; i <= _.getDotCount(); i += 1) {
493
- dot.append($('<li />').append(_.options.customPaging.call(this, _, i)));
494
- }
495
 
496
- _.$dots = dot.appendTo(_.options.appendDots);
497
 
498
- _.$dots.find('li').first().addClass('slick-active').attr('aria-hidden', 'false');
499
 
500
- }
 
 
 
501
 
502
- };
 
 
 
503
 
504
- Slick.prototype.buildOut = function() {
505
 
506
- var _ = this;
 
 
507
 
508
- _.$slides =
509
- _.$slider
510
- .children( _.options.slide + ':not(.slick-cloned)')
511
- .addClass('slick-slide');
 
512
 
513
- _.slideCount = _.$slides.length;
 
 
 
514
 
515
- _.$slides.each(function(index, element) {
516
- $(element)
517
- .attr('data-slick-index', index)
518
- .data('originalStyling', $(element).attr('style') || '');
519
- });
520
 
521
- _.$slider.addClass('slick-slider');
522
 
523
- _.$slideTrack = (_.slideCount === 0) ?
524
- $('<div class="slick-track"/>').appendTo(_.$slider) :
525
- _.$slides.wrapAll('<div class="slick-track"/>').parent();
526
 
527
- _.$list = _.$slideTrack.wrap(
528
- '<div aria-live="polite" class="slick-list"/>').parent();
529
- _.$slideTrack.css('opacity', 0);
530
 
531
- if (_.options.centerMode === true || _.options.swipeToSlide === true) {
532
- _.options.slidesToScroll = 1;
533
- }
534
 
535
- $('img[data-lazy]', _.$slider).not('[src]').addClass('slick-loading');
536
 
537
- _.setupInfinite();
538
 
539
- _.buildArrows();
540
 
541
- _.buildDots();
542
 
543
- _.updateDots();
544
 
 
545
 
546
- _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);
547
 
548
- if (_.options.draggable === true) {
549
- _.$list.addClass('draggable');
550
- }
551
 
552
- };
553
 
554
- Slick.prototype.buildRows = function() {
555
 
556
- var _ = this, a, b, c, newSlides, numOfSlides, originalSlides,slidesPerSection;
557
 
558
- newSlides = document.createDocumentFragment();
559
- originalSlides = _.$slider.children();
 
 
 
560
 
561
- if(_.options.rows > 1) {
562
 
563
- slidesPerSection = _.options.slidesPerRow * _.options.rows;
564
- numOfSlides = Math.ceil(
565
- originalSlides.length / slidesPerSection
566
- );
567
 
568
- for(a = 0; a < numOfSlides; a++){
569
- var slide = document.createElement('div');
570
- for(b = 0; b < _.options.rows; b++) {
571
- var row = document.createElement('div');
572
- for(c = 0; c < _.options.slidesPerRow; c++) {
573
- var target = (a * slidesPerSection + ((b * _.options.slidesPerRow) + c));
574
- if (originalSlides.get(target)) {
575
- row.appendChild(originalSlides.get(target));
576
- }
577
- }
578
- slide.appendChild(row);
579
- }
580
- newSlides.appendChild(slide);
581
- }
582
 
583
- _.$slider.empty().append(newSlides);
584
- _.$slider.children().children().children()
585
- .css({
586
- 'width':(100 / _.options.slidesPerRow) + '%',
587
- 'display': 'inline-block'
588
- });
589
-
590
- }
591
-
592
- };
593
-
594
- Slick.prototype.checkResponsive = function(initial, forceUpdate) {
595
-
596
- var _ = this,
597
- breakpoint, targetBreakpoint, respondToWidth, triggerBreakpoint = false;
598
- var sliderWidth = _.$slider.width();
599
- var windowWidth = window.innerWidth || $(window).width();
600
-
601
- if (_.respondTo === 'window') {
602
- respondToWidth = windowWidth;
603
- } else if (_.respondTo === 'slider') {
604
- respondToWidth = sliderWidth;
605
- } else if (_.respondTo === 'min') {
606
- respondToWidth = Math.min(windowWidth, sliderWidth);
607
- }
608
-
609
- if ( _.options.responsive &&
610
- _.options.responsive.length &&
611
- _.options.responsive !== null) {
612
-
613
- targetBreakpoint = null;
614
-
615
- for (breakpoint in _.breakpoints) {
616
- if (_.breakpoints.hasOwnProperty(breakpoint)) {
617
- if (_.originalSettings.mobileFirst === false) {
618
- if (respondToWidth < _.breakpoints[breakpoint]) {
619
- targetBreakpoint = _.breakpoints[breakpoint];
620
- }
621
- } else {
622
- if (respondToWidth > _.breakpoints[breakpoint]) {
623
- targetBreakpoint = _.breakpoints[breakpoint];
624
- }
625
- }
626
- }
627
- }
628
 
629
- if (targetBreakpoint !== null) {
630
- if (_.activeBreakpoint !== null) {
631
- if (targetBreakpoint !== _.activeBreakpoint || forceUpdate) {
632
- _.activeBreakpoint =
633
- targetBreakpoint;
634
- if (_.breakpointSettings[targetBreakpoint] === 'unslick') {
635
- _.unslick(targetBreakpoint);
636
- } else {
637
- _.options = $.extend({}, _.originalSettings,
638
- _.breakpointSettings[
639
- targetBreakpoint]);
640
- if (initial === true) {
641
- _.currentSlide = _.options.initialSlide;
642
- }
643
- _.refresh(initial);
644
- }
645
- triggerBreakpoint = targetBreakpoint;
646
- }
647
- } else {
648
- _.activeBreakpoint = targetBreakpoint;
649
- if (_.breakpointSettings[targetBreakpoint] === 'unslick') {
650
- _.unslick(targetBreakpoint);
651
- } else {
652
- _.options = $.extend({}, _.originalSettings,
653
- _.breakpointSettings[
654
- targetBreakpoint]);
655
- if (initial === true) {
656
- _.currentSlide = _.options.initialSlide;
657
- }
658
- _.refresh(initial);
659
- }
660
- triggerBreakpoint = targetBreakpoint;
661
- }
662
- } else {
663
- if (_.activeBreakpoint !== null) {
664
- _.activeBreakpoint = null;
665
- _.options = _.originalSettings;
666
- if (initial === true) {
667
- _.currentSlide = _.options.initialSlide;
668
- }
669
- _.refresh(initial);
670
- triggerBreakpoint = targetBreakpoint;
671
- }
672
- }
673
 
674
- // only trigger breakpoints during an actual break. not on initialize.
675
- if( !initial && triggerBreakpoint !== false ) {
676
- _.$slider.trigger('breakpoint', [_, triggerBreakpoint]);
677
- }
678
- }
679
-
680
- };
681
-
682
- Slick.prototype.changeSlide = function(event, dontAnimate) {
683
-
684
- var _ = this,
685
- $target = $(event.currentTarget),
686
- indexOffset, slideOffset, unevenOffset;
687
-
688
- // If target is a link, prevent default action.
689
- if($target.is('a')) {
690
- event.preventDefault();
691
- }
692
-
693
- // If target is not the <li> element (ie: a child), find the <li>.
694
- if(!$target.is('li')) {
695
- $target = $target.closest('li');
696
- }
697
-
698
- unevenOffset = (_.slideCount % _.options.slidesToScroll !== 0);
699
- indexOffset = unevenOffset ? 0 : (_.slideCount - _.currentSlide) % _.options.slidesToScroll;
700
-
701
- switch (event.data.message) {
702
-
703
- case 'previous':
704
- slideOffset = indexOffset === 0 ? _.options.slidesToScroll : _.options.slidesToShow - indexOffset;
705
- if (_.slideCount > _.options.slidesToShow) {
706
- _.slideHandler(_.currentSlide - slideOffset, false, dontAnimate);
707
- }
708
- break;
709
-
710
- case 'next':
711
- slideOffset = indexOffset === 0 ? _.options.slidesToScroll : indexOffset;
712
- if (_.slideCount > _.options.slidesToShow) {
713
- _.slideHandler(_.currentSlide + slideOffset, false, dontAnimate);
714
- }
715
- break;
716
-
717
- case 'index':
718
- var index = event.data.index === 0 ? 0 :
719
- event.data.index || $target.index() * _.options.slidesToScroll;
720
-
721
- _.slideHandler(_.checkNavigable(index), false, dontAnimate);
722
- $target.children().trigger('focus');
723
- break;
724
-
725
- default:
726
- return;
727
- }
728
-
729
- };
730
-
731
- Slick.prototype.checkNavigable = function(index) {
732
-
733
- var _ = this,
734
- navigables, prevNavigable;
735
-
736
- navigables = _.getNavigableIndexes();
737
- prevNavigable = 0;
738
- if (index > navigables[navigables.length - 1]) {
739
- index = navigables[navigables.length - 1];
740
- } else {
741
- for (var n in navigables) {
742
- if (index < navigables[n]) {
743
- index = prevNavigable;
744
- break;
745
- }
746
- prevNavigable = navigables[n];
747
- }
748
- }
749
-
750
- return index;
751
- };
752
-
753
- Slick.prototype.cleanUpEvents = function() {
754
 
755
- var _ = this;
756
 
757
- if (_.options.dots && _.$dots !== null) {
758
 
759
- $('li', _.$dots)
760
- .off('click.slick', _.changeSlide)
761
- .off('mouseenter.slick', $.proxy(_.interrupt, _, true))
762
- .off('mouseleave.slick', $.proxy(_.interrupt, _, false));
763
 
764
- }
765
 
766
- _.$slider.off('focus.slick blur.slick');
767
 
768
- if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
769
- _.$prevArrow && _.$prevArrow.off('click.slick', _.changeSlide);
770
- _.$nextArrow && _.$nextArrow.off('click.slick', _.changeSlide);
771
- }
772
 
773
- _.$list.off('touchstart.slick mousedown.slick', _.swipeHandler);
774
- _.$list.off('touchmove.slick mousemove.slick', _.swipeHandler);
775
- _.$list.off('touchend.slick mouseup.slick', _.swipeHandler);
776
- _.$list.off('touchcancel.slick mouseleave.slick', _.swipeHandler);
777
 
778
- _.$list.off('click.slick', _.clickHandler);
 
 
 
779
 
780
- $(document).off(_.visibilityChange, _.visibility);
 
 
 
781
 
782
- _.cleanUpSlideEvents();
783
 
784
- if (_.options.accessibility === true) {
785
- _.$list.off('keydown.slick', _.keyHandler);
786
- }
 
787
 
788
- if (_.options.focusOnSelect === true) {
789
- $(_.$slideTrack).children().off('click.slick', _.selectHandler);
790
- }
 
791
 
792
- $(window).off('orientationchange.slick.slick-' + _.instanceUid, _.orientationChange);
793
 
794
- $(window).off('resize.slick.slick-' + _.instanceUid, _.resize);
795
 
796
- $('[draggable!=true]', _.$slideTrack).off('dragstart', _.preventDefault);
 
 
 
 
 
 
797
 
798
- $(window).off('load.slick.slick-' + _.instanceUid, _.setPosition);
799
- $(document).off('ready.slick.slick-' + _.instanceUid, _.setPosition);
800
 
801
- };
802
 
803
- Slick.prototype.cleanUpSlideEvents = function() {
804
 
805
- var _ = this;
 
806
 
807
- _.$list.off('mouseenter.slick', $.proxy(_.interrupt, _, true));
808
- _.$list.off('mouseleave.slick', $.proxy(_.interrupt, _, false));
809
 
810
- };
 
 
811
 
812
- Slick.prototype.cleanUpRows = function() {
813
 
814
- var _ = this, originalSlides;
 
 
815
 
816
- if(_.options.rows > 1) {
817
- originalSlides = _.$slides.children().children();
818
- originalSlides.removeAttr('style');
819
- _.$slider.empty().append(originalSlides);
820
- }
821
 
822
- };
823
 
824
- Slick.prototype.clickHandler = function(event) {
 
825
 
826
- var _ = this;
827
 
828
- if (_.shouldClick === false) {
829
- event.stopImmediatePropagation();
830
- event.stopPropagation();
831
- event.preventDefault();
832
- }
833
 
834
- };
835
 
836
- Slick.prototype.destroy = function(refresh) {
837
 
838
- var _ = this;
839
 
840
- _.autoPlayClear();
841
 
842
- _.touchObject = {};
 
 
843
 
844
- _.cleanUpEvents();
 
 
845
 
846
- $('.slick-cloned', _.$slider).detach();
847
 
848
- if (_.$dots) {
849
- _.$dots.remove();
850
- }
851
 
 
 
 
 
852
 
853
- if ( _.$prevArrow && _.$prevArrow.length ) {
 
854
 
855
- _.$prevArrow
856
- .removeClass('slick-disabled slick-arrow slick-hidden')
857
- .removeAttr('aria-hidden aria-disabled tabindex')
858
- .css('display','');
859
-
860
- if ( _.htmlExpr.test( _.options.prevArrow )) {
861
- _.$prevArrow.remove();
862
- }
863
- }
864
 
865
- if ( _.$nextArrow && _.$nextArrow.length ) {
 
 
866
 
867
- _.$nextArrow
868
- .removeClass('slick-disabled slick-arrow slick-hidden')
869
- .removeAttr('aria-hidden aria-disabled tabindex')
870
- .css('display','');
871
 
872
- if ( _.htmlExpr.test( _.options.nextArrow )) {
873
- _.$nextArrow.remove();
874
- }
875
 
876
- }
877
 
 
878
 
879
- if (_.$slides) {
880
 
881
- _.$slides
882
- .removeClass('slick-slide slick-active slick-center slick-visible slick-current')
883
- .removeAttr('aria-hidden')
884
- .removeAttr('data-slick-index')
885
- .each(function(){
886
- $(this).attr('style', $(this).data('originalStyling'));
887
- });
888
 
889
- _.$slideTrack.children(this.options.slide).detach();
890
 
891
- _.$slideTrack.detach();
892
 
893
- _.$list.detach();
 
 
 
894
 
895
- _.$slider.append(_.$slides);
896
- }
897
 
898
- _.cleanUpRows();
899
 
900
- _.$slider.removeClass('slick-slider');
901
- _.$slider.removeClass('slick-initialized');
902
- _.$slider.removeClass('slick-dotted');
903
 
904
- _.unslicked = true;
905
 
906
- if(!refresh) {
907
- _.$slider.trigger('destroy', [_]);
908
- }
909
 
910
- };
911
 
912
- Slick.prototype.disableTransition = function(slide) {
913
 
914
- var _ = this,
915
- transition = {};
916
 
917
- transition[_.transitionType] = '';
918
 
919
- if (_.options.fade === false) {
920
- _.$slideTrack.css(transition);
921
- } else {
922
- _.$slides.eq(slide).css(transition);
923
- }
924
 
925
- };
926
 
927
- Slick.prototype.fadeSlide = function(slideIndex, callback) {
928
 
929
- var _ = this;
930
 
931
- if (_.cssTransitions === false) {
932
 
933
- _.$slides.eq(slideIndex).css({
934
- zIndex: _.options.zIndex
935
- });
936
 
937
- _.$slides.eq(slideIndex).animate({
938
- opacity: 1
939
- }, _.options.speed, _.options.easing, callback);
940
 
941
- } else {
942
 
943
- _.applyTransition(slideIndex);
 
 
 
944
 
945
- _.$slides.eq(slideIndex).css({
946
- opacity: 1,
947
- zIndex: _.options.zIndex
948
- });
949
 
950
- if (callback) {
951
- setTimeout(function() {
952
 
953
- _.disableTransition(slideIndex);
954
 
955
- callback.call();
956
- }, _.options.speed);
957
- }
958
 
959
- }
960
 
961
- };
962
 
963
- Slick.prototype.fadeSlideOut = function(slideIndex) {
964
 
965
- var _ = this;
 
 
966
 
967
- if (_.cssTransitions === false) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
968
 
969
- _.$slides.eq(slideIndex).animate({
970
- opacity: 0,
971
- zIndex: _.options.zIndex - 2
972
- }, _.options.speed, _.options.easing);
 
973
 
974
- } else {
975
 
976
- _.applyTransition(slideIndex);
977
 
978
- _.$slides.eq(slideIndex).css({
979
- opacity: 0,
980
- zIndex: _.options.zIndex - 2
981
- });
982
 
983
- }
984
 
985
- };
986
 
987
- Slick.prototype.filterSlides = Slick.prototype.slickFilter = function(filter) {
988
 
989
- var _ = this;
 
990
 
991
- if (filter !== null) {
992
 
993
- _.$slidesCache = _.$slides;
 
 
 
 
 
 
994
 
995
- _.unload();
996
 
997
- _.$slideTrack.children(this.options.slide).detach();
998
 
999
- _.$slidesCache.filter(filter).appendTo(_.$slideTrack);
 
 
1000
 
1001
- _.reinit();
1002
 
1003
- }
1004
 
1005
- };
1006
 
1007
- Slick.prototype.focusHandler = function() {
 
 
 
 
 
1008
 
1009
- var _ = this;
1010
 
1011
- _.$slider
1012
- .off('focus.slick blur.slick')
1013
- .on('focus.slick blur.slick',
1014
- '*:not(.slick-arrow)', function(event) {
1015
 
1016
- event.stopImmediatePropagation();
1017
- var $sf = $(this);
1018
 
1019
- setTimeout(function() {
1020
 
1021
- if( _.options.pauseOnFocus ) {
1022
- _.focussed = $sf.is(':focus');
1023
- _.autoPlay();
1024
- }
1025
 
1026
- }, 0);
 
 
 
 
 
 
 
 
 
1027
 
1028
- });
1029
- };
1030
 
1031
- Slick.prototype.getCurrent = Slick.prototype.slickCurrentSlide = function() {
 
 
1032
 
1033
- var _ = this;
1034
- return _.currentSlide;
 
1035
 
1036
- };
1037
 
1038
- Slick.prototype.getDotCount = function() {
 
1039
 
1040
- var _ = this;
1041
 
1042
- var breakPoint = 0;
1043
- var counter = 0;
1044
- var pagerQty = 0;
1045
 
1046
- if (_.options.infinite === true) {
1047
- while (breakPoint < _.slideCount) {
1048
- ++pagerQty;
1049
- breakPoint = counter + _.options.slidesToScroll;
1050
- counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1051
- }
1052
- } else if (_.options.centerMode === true) {
1053
- pagerQty = _.slideCount;
1054
- } else if(!_.options.asNavFor) {
1055
- pagerQty = 1 + Math.ceil((_.slideCount - _.options.slidesToShow) / _.options.slidesToScroll);
1056
- }else {
1057
- while (breakPoint < _.slideCount) {
1058
- ++pagerQty;
1059
- breakPoint = counter + _.options.slidesToScroll;
1060
- counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1061
- }
1062
- }
1063
 
1064
- return pagerQty - 1;
 
 
 
 
 
1065
 
1066
- };
 
 
1067
 
1068
- Slick.prototype.getLeft = function(slideIndex) {
 
 
 
 
1069
 
1070
- var _ = this,
1071
- targetLeft,
1072
- verticalHeight,
1073
- verticalOffset = 0,
1074
- targetSlide;
 
 
 
 
 
 
 
1075
 
1076
- _.slideOffset = 0;
1077
- verticalHeight = _.$slides.first().outerHeight(true);
 
1078
 
1079
- if (_.options.infinite === true) {
1080
- if (_.slideCount > _.options.slidesToShow) {
1081
- _.slideOffset = (_.slideWidth * _.options.slidesToShow) * -1;
1082
- verticalOffset = (verticalHeight * _.options.slidesToShow) * -1;
1083
- }
1084
- if (_.slideCount % _.options.slidesToScroll !== 0) {
1085
- if (slideIndex + _.options.slidesToScroll > _.slideCount && _.slideCount > _.options.slidesToShow) {
1086
- if (slideIndex > _.slideCount) {
1087
- _.slideOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * _.slideWidth) * -1;
1088
- verticalOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * verticalHeight) * -1;
1089
- } else {
1090
- _.slideOffset = ((_.slideCount % _.options.slidesToScroll) * _.slideWidth) * -1;
1091
- verticalOffset = ((_.slideCount % _.options.slidesToScroll) * verticalHeight) * -1;
1092
- }
1093
- }
1094
- }
1095
- } else {
1096
- if (slideIndex + _.options.slidesToShow > _.slideCount) {
1097
- _.slideOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * _.slideWidth;
1098
- verticalOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * verticalHeight;
1099
- }
1100
- }
1101
-
1102
- if (_.slideCount <= _.options.slidesToShow) {
1103
- _.slideOffset = 0;
1104
- verticalOffset = 0;
1105
- }
1106
-
1107
- if (_.options.centerMode === true && _.options.infinite === true) {
1108
- _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2) - _.slideWidth;
1109
- } else if (_.options.centerMode === true) {
1110
- _.slideOffset = 0;
1111
- _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2);
1112
- }
1113
-
1114
- if (_.options.vertical === false) {
1115
- targetLeft = ((slideIndex * _.slideWidth) * -1) + _.slideOffset;
1116
- } else {
1117
- targetLeft = ((slideIndex * verticalHeight) * -1) + verticalOffset;
1118
- }
1119
-
1120
- if (_.options.variableWidth === true) {
1121
-
1122
- if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {
1123
- targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);
1124
  } else {
1125
- targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow);
1126
  }
 
1127
 
1128
- if (_.options.rtl === true) {
1129
- if (targetSlide[0]) {
1130
- targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;
1131
- } else {
1132
- targetLeft = 0;
1133
- }
1134
- } else {
1135
- targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;
1136
- }
1137
 
1138
- if (_.options.centerMode === true) {
1139
- if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {
1140
- targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);
1141
- } else {
1142
- targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow + 1);
1143
- }
1144
-
1145
- if (_.options.rtl === true) {
1146
- if (targetSlide[0]) {
1147
- targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;
1148
- } else {
1149
- targetLeft = 0;
1150
- }
1151
- } else {
1152
- targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;
1153
- }
1154
-
1155
- targetLeft += (_.$list.width() - targetSlide.outerWidth()) / 2;
1156
- }
1157
- }
1158
 
1159
- return targetLeft;
1160
 
1161
- };
1162
 
1163
- Slick.prototype.getOption = Slick.prototype.slickGetOption = function(option) {
 
 
 
 
 
 
 
 
 
 
1164
 
1165
- var _ = this;
 
 
 
 
1166
 
1167
- return _.options[option];
1168
 
1169
- };
1170
 
1171
- Slick.prototype.getNavigableIndexes = function() {
1172
 
1173
- var _ = this,
1174
- breakPoint = 0,
1175
- counter = 0,
1176
- indexes = [],
1177
- max;
1178
 
1179
- if (_.options.infinite === false) {
1180
- max = _.slideCount;
1181
- } else {
1182
- breakPoint = _.options.slidesToScroll * -1;
1183
- counter = _.options.slidesToScroll * -1;
1184
- max = _.slideCount * 2;
1185
- }
1186
 
1187
- while (breakPoint < max) {
1188
- indexes.push(breakPoint);
1189
- breakPoint = counter + _.options.slidesToScroll;
1190
- counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1191
- }
1192
 
1193
- return indexes;
 
 
1194
 
1195
- };
1196
 
1197
- Slick.prototype.getSlick = function() {
1198
 
1199
- return this;
1200
 
1201
- };
1202
 
1203
- Slick.prototype.getSlideCount = function() {
1204
 
1205
- var _ = this,
1206
- slidesTraversed, swipedSlide, centerOffset;
1207
 
1208
- centerOffset = _.options.centerMode === true ? _.slideWidth * Math.floor(_.options.slidesToShow / 2) : 0;
1209
 
1210
- if (_.options.swipeToSlide === true) {
1211
- _.$slideTrack.find('.slick-slide').each(function(index, slide) {
1212
- if (slide.offsetLeft - centerOffset + ($(slide).outerWidth() / 2) > (_.swipeLeft * -1)) {
1213
- swipedSlide = slide;
1214
- return false;
1215
- }
1216
- });
1217
 
1218
- slidesTraversed = Math.abs($(swipedSlide).attr('data-slick-index') - _.currentSlide) || 1;
1219
 
1220
- return slidesTraversed;
1221
 
1222
- } else {
1223
- return _.options.slidesToScroll;
1224
- }
1225
 
1226
- };
 
1227
 
1228
- Slick.prototype.goTo = Slick.prototype.slickGoTo = function(slide, dontAnimate) {
 
 
 
 
 
 
 
 
 
 
 
1229
 
1230
- var _ = this;
1231
 
1232
- _.changeSlide({
1233
- data: {
1234
- message: 'index',
1235
- index: parseInt(slide)
1236
- }
1237
- }, dontAnimate);
1238
 
1239
- };
1240
-
1241
- Slick.prototype.init = function(creation) {
1242
 
1243
- var _ = this;
 
 
1244
 
1245
- if (!$(_.$slider).hasClass('slick-initialized')) {
1246
 
1247
- $(_.$slider).addClass('slick-initialized');
1248
 
1249
- _.buildRows();
1250
- _.buildOut();
1251
- _.setProps();
1252
- _.startLoad();
1253
- _.loadSlider();
1254
- _.initializeEvents();
1255
- _.updateArrows();
1256
- _.updateDots();
1257
- _.checkResponsive(true);
1258
- _.focusHandler();
1259
 
1260
- }
 
1261
 
1262
- if (creation) {
1263
- _.$slider.trigger('init', [_]);
1264
- }
1265
 
1266
- if (_.options.accessibility === true) {
1267
- _.initADA();
1268
- }
1269
 
1270
- if ( _.options.autoplay ) {
1271
 
1272
- _.paused = false;
1273
- _.autoPlay();
1274
 
1275
- }
 
1276
 
1277
- };
1278
 
1279
- Slick.prototype.initADA = function() {
1280
- var _ = this;
1281
- _.$slides.add(_.$slideTrack.find('.slick-cloned')).attr({
1282
- 'aria-hidden': 'true',
1283
- 'tabindex': '-1'
1284
- }).find('a, input, button, select').attr({
1285
- 'tabindex': '-1'
1286
- });
1287
 
1288
- _.$slideTrack.attr('role', 'listbox');
1289
 
1290
- _.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function(i) {
1291
- $(this).attr({
1292
- 'role': 'option',
1293
- 'aria-describedby': 'slick-slide' + _.instanceUid + i + ''
1294
- });
1295
- });
1296
 
1297
- if (_.$dots !== null) {
1298
- _.$dots.attr('role', 'tablist').find('li').each(function(i) {
1299
- $(this).attr({
1300
- 'role': 'tab',
1301
- 'aria-selected': 'false',
1302
- 'aria-controls': 'navigation' + _.instanceUid + i + '',
1303
- 'id': 'slick-slide' + _.instanceUid + i + ''
1304
- });
1305
- })
1306
- //.first().attr('aria-selected', 'true').end()
1307
- //.find('button').attr('role', 'button').end()
1308
- .closest('div').attr('role', 'toolbar');
1309
- }
1310
- _.activateADA();
1311
 
1312
- };
1313
 
1314
- Slick.prototype.initArrowEvents = function() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1315
 
1316
- var _ = this;
1317
 
1318
- if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
1319
- _.$prevArrow
1320
- .off('click.slick')
1321
- .on('click.slick', {
1322
- message: 'previous'
1323
- }, _.changeSlide);
1324
- _.$nextArrow
1325
- .off('click.slick')
1326
- .on('click.slick', {
1327
- message: 'next'
1328
- }, _.changeSlide);
1329
- }
1330
 
1331
- };
 
1332
 
1333
- Slick.prototype.initDotEvents = function() {
1334
 
1335
- var _ = this;
1336
 
1337
- if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
1338
- $('li', _.$dots).on('click.slick', {
1339
- message: 'index'
1340
- }, _.changeSlide);
1341
- }
1342
 
1343
- if ( _.options.dots === true && _.options.pauseOnDotsHover === true ) {
1344
 
1345
- $('li', _.$dots)
1346
- .on('mouseenter.slick', $.proxy(_.interrupt, _, true))
1347
- .on('mouseleave.slick', $.proxy(_.interrupt, _, false));
1348
 
1349
- }
 
 
1350
 
1351
- };
 
 
 
 
1352
 
1353
- Slick.prototype.initSlideEvents = function() {
 
 
 
 
 
 
 
 
1354
 
1355
- var _ = this;
1356
 
1357
- if ( _.options.pauseOnHover ) {
1358
 
1359
- _.$list.on('mouseenter.slick', $.proxy(_.interrupt, _, true));
1360
- _.$list.on('mouseleave.slick', $.proxy(_.interrupt, _, false));
 
 
1361
 
1362
- }
1363
 
1364
- };
1365
 
1366
- Slick.prototype.initializeEvents = function() {
1367
 
1368
- var _ = this;
1369
 
1370
- _.initArrowEvents();
1371
 
1372
- _.initDotEvents();
1373
- _.initSlideEvents();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1374
 
1375
- _.$list.on('touchstart.slick mousedown.slick', {
1376
- action: 'start'
1377
- }, _.swipeHandler);
1378
- _.$list.on('touchmove.slick mousemove.slick', {
1379
- action: 'move'
1380
- }, _.swipeHandler);
1381
- _.$list.on('touchend.slick mouseup.slick', {
1382
- action: 'end'
1383
- }, _.swipeHandler);
1384
- _.$list.on('touchcancel.slick mouseleave.slick', {
1385
- action: 'end'
1386
- }, _.swipeHandler);
1387
 
1388
- _.$list.on('click.slick', _.clickHandler);
 
 
 
1389
 
1390
- $(document).on(_.visibilityChange, $.proxy(_.visibility, _));
 
 
 
 
 
 
 
1391
 
1392
- if (_.options.accessibility === true) {
1393
- _.$list.on('keydown.slick', _.keyHandler);
1394
- }
1395
 
1396
- if (_.options.focusOnSelect === true) {
1397
- $(_.$slideTrack).children().on('click.slick', _.selectHandler);
1398
- }
 
 
 
 
 
 
 
 
1399
 
1400
- $(window).on('orientationchange.slick.slick-' + _.instanceUid, $.proxy(_.orientationChange, _));
1401
 
1402
- $(window).on('resize.slick.slick-' + _.instanceUid, $.proxy(_.resize, _));
1403
 
1404
- $('[draggable!=true]', _.$slideTrack).on('dragstart', _.preventDefault);
1405
 
1406
- $(window).on('load.slick.slick-' + _.instanceUid, _.setPosition);
1407
- $(document).on('ready.slick.slick-' + _.instanceUid, _.setPosition);
1408
 
1409
- };
 
 
1410
 
1411
- Slick.prototype.initUI = function() {
1412
 
1413
- var _ = this;
1414
 
1415
- if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
 
 
1416
 
1417
- _.$prevArrow.show();
1418
- _.$nextArrow.show();
1419
 
1420
- }
1421
 
1422
- if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
1423
 
1424
- _.$dots.show();
 
 
 
 
1425
 
1426
- }
1427
 
1428
- };
1429
 
1430
- Slick.prototype.keyHandler = function(event) {
1431
 
1432
- var _ = this;
1433
- //Dont slide if the cursor is inside the form fields and arrow keys are pressed
1434
- if(!event.target.tagName.match('TEXTAREA|INPUT|SELECT')) {
1435
- if (event.keyCode === 37 && _.options.accessibility === true) {
1436
- _.changeSlide({
1437
- data: {
1438
- message: _.options.rtl === true ? 'next' : 'previous'
1439
- }
1440
- });
1441
- } else if (event.keyCode === 39 && _.options.accessibility === true) {
1442
- _.changeSlide({
1443
- data: {
1444
- message: _.options.rtl === true ? 'previous' : 'next'
1445
- }
1446
- });
1447
- }
1448
- }
1449
 
1450
- };
1451
 
1452
- Slick.prototype.lazyLoad = function() {
1453
 
1454
- var _ = this,
1455
- loadRange, cloneRange, rangeStart, rangeEnd;
1456
 
1457
- function loadImages(imagesScope) {
 
1458
 
1459
- $('img[data-lazy]', imagesScope).each(function() {
1460
 
1461
- var image = $(this),
1462
- imageSource = $(this).attr('data-lazy'),
1463
- imageToLoad = document.createElement('img');
1464
 
1465
- imageToLoad.onload = function() {
1466
 
1467
- image
1468
- .animate({ opacity: 0 }, 100, function() {
1469
- image
1470
- .attr('src', imageSource)
1471
- .animate({ opacity: 1 }, 200, function() {
1472
- image
1473
- .removeAttr('data-lazy')
1474
- .removeClass('slick-loading');
1475
- });
1476
- _.$slider.trigger('lazyLoaded', [_, image, imageSource]);
1477
- });
1478
 
1479
- };
1480
 
1481
- imageToLoad.onerror = function() {
1482
 
1483
- image
1484
- .removeAttr( 'data-lazy' )
1485
- .removeClass( 'slick-loading' )
1486
- .addClass( 'slick-lazyload-error' );
1487
 
1488
- _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);
1489
 
1490
- };
1491
 
1492
- imageToLoad.src = imageSource;
1493
 
1494
- });
 
 
1495
 
1496
- }
1497
 
1498
- if (_.options.centerMode === true) {
1499
- if (_.options.infinite === true) {
1500
- rangeStart = _.currentSlide + (_.options.slidesToShow / 2 + 1);
1501
- rangeEnd = rangeStart + _.options.slidesToShow + 2;
1502
- } else {
1503
- rangeStart = Math.max(0, _.currentSlide - (_.options.slidesToShow / 2 + 1));
1504
- rangeEnd = 2 + (_.options.slidesToShow / 2 + 1) + _.currentSlide;
1505
- }
1506
- } else {
1507
- rangeStart = _.options.infinite ? _.options.slidesToShow + _.currentSlide : _.currentSlide;
1508
- rangeEnd = Math.ceil(rangeStart + _.options.slidesToShow);
1509
- if (_.options.fade === true) {
1510
- if (rangeStart > 0) rangeStart--;
1511
- if (rangeEnd <= _.slideCount) rangeEnd++;
1512
- }
1513
- }
1514
 
1515
- loadRange = _.$slider.find('.slick-slide').slice(rangeStart, rangeEnd);
1516
- loadImages(loadRange);
1517
 
1518
- if (_.slideCount <= _.options.slidesToShow) {
1519
- cloneRange = _.$slider.find('.slick-slide');
1520
- loadImages(cloneRange);
1521
- } else
1522
- if (_.currentSlide >= _.slideCount - _.options.slidesToShow) {
1523
- cloneRange = _.$slider.find('.slick-cloned').slice(0, _.options.slidesToShow);
1524
- loadImages(cloneRange);
1525
- } else if (_.currentSlide === 0) {
1526
- cloneRange = _.$slider.find('.slick-cloned').slice(_.options.slidesToShow * -1);
1527
- loadImages(cloneRange);
1528
- }
1529
 
1530
- };
1531
 
1532
- Slick.prototype.loadSlider = function() {
1533
 
1534
- var _ = this;
1535
 
1536
- _.setPosition();
1537
 
1538
- _.$slideTrack.css({
1539
- opacity: 1
1540
- });
 
 
1541
 
1542
- _.$slider.removeClass('slick-loading');
1543
 
1544
- _.initUI();
1545
 
1546
- if (_.options.lazyLoad === 'progressive') {
1547
- _.progressiveLazyLoad();
1548
- }
1549
 
1550
- };
1551
 
1552
- Slick.prototype.next = Slick.prototype.slickNext = function() {
1553
 
1554
- var _ = this;
1555
 
1556
- _.changeSlide({
1557
- data: {
1558
- message: 'next'
1559
- }
1560
- });
 
 
1561
 
1562
- };
1563
 
1564
- Slick.prototype.orientationChange = function() {
 
 
 
 
1565
 
1566
- var _ = this;
1567
 
1568
- _.checkResponsive();
1569
- _.setPosition();
 
1570
 
1571
- };
 
 
 
 
1572
 
1573
- Slick.prototype.pause = Slick.prototype.slickPause = function() {
 
 
 
1574
 
1575
- var _ = this;
 
 
1576
 
1577
- _.autoPlayClear();
1578
- _.paused = true;
1579
 
1580
- };
1581
 
1582
- Slick.prototype.play = Slick.prototype.slickPlay = function() {
1583
 
1584
- var _ = this;
1585
 
1586
- _.autoPlay();
1587
- _.options.autoplay = true;
1588
- _.paused = false;
1589
- _.focussed = false;
1590
- _.interrupted = false;
 
 
 
1591
 
1592
- };
1593
 
1594
- Slick.prototype.postSlide = function(index) {
 
 
 
1595
 
1596
- var _ = this;
1597
 
1598
- if( !_.unslicked ) {
1599
 
1600
- _.$slider.trigger('afterChange', [_, index]);
1601
 
1602
- _.animating = false;
1603
 
1604
- _.setPosition();
1605
 
1606
- _.swipeLeft = null;
1607
 
1608
- if ( _.options.autoplay ) {
1609
- _.autoPlay();
1610
- }
1611
 
1612
- if (_.options.accessibility === true) {
1613
- _.initADA();
1614
- }
1615
 
1616
- }
1617
 
1618
- };
1619
 
1620
- Slick.prototype.prev = Slick.prototype.slickPrev = function() {
1621
 
1622
- var _ = this;
1623
 
1624
- _.changeSlide({
1625
- data: {
1626
- message: 'previous'
1627
- }
1628
- });
1629
 
1630
- };
 
 
1631
 
1632
- Slick.prototype.preventDefault = function(event) {
1633
 
1634
- event.preventDefault();
1635
 
1636
- };
1637
 
1638
- Slick.prototype.progressiveLazyLoad = function( tryCount ) {
1639
 
1640
- tryCount = tryCount || 1;
1641
 
1642
- var _ = this,
1643
- $imgsToLoad = $( 'img[data-lazy]', _.$slider ),
1644
- image,
1645
- imageSource,
1646
- imageToLoad;
1647
 
1648
- if ( $imgsToLoad.length ) {
 
 
 
 
 
1649
 
1650
- image = $imgsToLoad.first();
1651
- imageSource = image.attr('data-lazy');
1652
- imageToLoad = document.createElement('img');
1653
 
1654
- imageToLoad.onload = function() {
1655
 
1656
- image
1657
- .attr( 'src', imageSource )
1658
- .removeAttr('data-lazy')
1659
- .removeClass('slick-loading');
1660
 
1661
- if ( _.options.adaptiveHeight === true ) {
1662
- _.setPosition();
1663
- }
1664
 
1665
- _.$slider.trigger('lazyLoaded', [ _, image, imageSource ]);
1666
- _.progressiveLazyLoad();
1667
 
1668
- };
1669
 
1670
- imageToLoad.onerror = function() {
1671
 
1672
- if ( tryCount < 3 ) {
1673
 
1674
- /**
1675
- * try to load the image 3 times,
1676
- * leave a slight delay so we don't get
1677
- * servers blocking the request.
1678
- */
1679
- setTimeout( function() {
1680
- _.progressiveLazyLoad( tryCount + 1 );
1681
- }, 500 );
1682
 
1683
- } else {
 
 
 
 
 
 
 
1684
 
1685
- image
1686
- .removeAttr( 'data-lazy' )
1687
- .removeClass( 'slick-loading' )
1688
- .addClass( 'slick-lazyload-error' );
1689
 
1690
- _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);
1691
 
1692
- _.progressiveLazyLoad();
1693
 
1694
- }
 
 
1695
 
1696
- };
1697
 
1698
- imageToLoad.src = imageSource;
1699
 
1700
- } else {
1701
 
1702
- _.$slider.trigger('allImagesLoaded', [ _ ]);
1703
 
1704
- }
 
 
 
1705
 
1706
- };
1707
 
1708
- Slick.prototype.refresh = function( initializing ) {
 
 
1709
 
1710
- var _ = this, currentSlide, lastVisibleIndex;
 
 
1711
 
1712
- lastVisibleIndex = _.slideCount - _.options.slidesToShow;
1713
 
1714
- // in non-infinite sliders, we don't want to go past the
1715
- // last visible index.
1716
- if( !_.options.infinite && ( _.currentSlide > lastVisibleIndex )) {
1717
- _.currentSlide = lastVisibleIndex;
1718
- }
 
 
 
 
 
1719
 
1720
- // if less slides than to show, go to start.
1721
- if ( _.slideCount <= _.options.slidesToShow ) {
1722
- _.currentSlide = 0;
1723
 
1724
- }
 
 
1725
 
1726
- currentSlide = _.currentSlide;
1727
 
1728
- _.destroy(true);
 
1729
 
1730
- $.extend(_, _.initials, { currentSlide: currentSlide });
 
1731
 
1732
- _.init();
1733
 
1734
- if( !initializing ) {
1735
 
1736
- _.changeSlide({
1737
- data: {
1738
- message: 'index',
1739
- index: currentSlide
1740
- }
1741
- }, false);
1742
 
1743
- }
1744
 
1745
- };
 
 
 
 
 
 
 
 
1746
 
1747
- Slick.prototype.registerBreakpoints = function() {
1748
 
1749
- var _ = this, breakpoint, currentBreakpoint, l,
1750
- responsiveSettings = _.options.responsive || null;
1751
 
1752
- if ( $.type(responsiveSettings) === 'array' && responsiveSettings.length ) {
 
 
 
 
 
1753
 
1754
- _.respondTo = _.options.respondTo || 'window';
 
 
1755
 
1756
- for ( breakpoint in responsiveSettings ) {
1757
 
1758
- l = _.breakpoints.length-1;
1759
- currentBreakpoint = responsiveSettings[breakpoint].breakpoint;
 
 
 
1760
 
1761
- if (responsiveSettings.hasOwnProperty(breakpoint)) {
1762
 
1763
- // loop through the breakpoints and cut out any existing
1764
- // ones with the same breakpoint number, we don't want dupes.
1765
- while( l >= 0 ) {
1766
- if( _.breakpoints[l] && _.breakpoints[l] === currentBreakpoint ) {
1767
- _.breakpoints.splice(l,1);
1768
- }
1769
- l--;
1770
- }
1771
 
1772
- _.breakpoints.push(currentBreakpoint);
1773
- _.breakpointSettings[currentBreakpoint] = responsiveSettings[breakpoint].settings;
1774
 
1775
- }
1776
 
1777
- }
1778
 
1779
- _.breakpoints.sort(function(a, b) {
1780
- return ( _.options.mobileFirst ) ? a-b : b-a;
1781
- });
1782
 
1783
- }
1784
 
1785
- };
 
 
1786
 
1787
- Slick.prototype.reinit = function() {
 
 
 
 
1788
 
1789
- var _ = this;
1790
 
1791
- _.$slides =
1792
- _.$slideTrack
1793
- .children(_.options.slide)
1794
- .addClass('slick-slide');
 
 
 
 
 
 
 
 
 
 
 
 
1795
 
1796
- _.slideCount = _.$slides.length;
1797
 
1798
- if (_.currentSlide >= _.slideCount && _.currentSlide !== 0) {
1799
- _.currentSlide = _.currentSlide - _.options.slidesToScroll;
1800
- }
 
 
 
 
 
 
 
 
 
 
 
1801
 
1802
- if (_.slideCount <= _.options.slidesToShow) {
1803
- _.currentSlide = 0;
1804
- }
1805
 
1806
- _.registerBreakpoints();
1807
 
1808
- _.setProps();
1809
- _.setupInfinite();
1810
- _.buildArrows();
1811
- _.updateArrows();
1812
- _.initArrowEvents();
1813
- _.buildDots();
1814
- _.updateDots();
1815
- _.initDotEvents();
1816
- _.cleanUpSlideEvents();
1817
- _.initSlideEvents();
1818
 
1819
- _.checkResponsive(false, true);
 
 
 
 
 
1820
 
1821
- if (_.options.focusOnSelect === true) {
1822
- $(_.$slideTrack).children().on('click.slick', _.selectHandler);
1823
- }
1824
 
1825
- _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);
1826
 
1827
- _.setPosition();
1828
- _.focusHandler();
1829
 
1830
- _.paused = !_.options.autoplay;
1831
- _.autoPlay();
1832
 
1833
- _.$slider.trigger('reInit', [_]);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1834
 
1835
- };
 
 
 
1836
 
1837
- Slick.prototype.resize = function() {
1838
 
1839
- var _ = this;
1840
 
1841
- if ($(window).width() !== _.windowWidth) {
1842
- clearTimeout(_.windowDelay);
1843
- _.windowDelay = window.setTimeout(function() {
1844
- _.windowWidth = $(window).width();
1845
- _.checkResponsive();
1846
- if( !_.unslicked ) { _.setPosition(); }
1847
- }, 50);
1848
- }
1849
- };
1850
 
1851
- Slick.prototype.removeSlide = Slick.prototype.slickRemove = function(index, removeBefore, removeAll) {
 
 
 
1852
 
1853
- var _ = this;
1854
 
1855
- if (typeof(index) === 'boolean') {
1856
- removeBefore = index;
1857
- index = removeBefore === true ? 0 : _.slideCount - 1;
1858
- } else {
1859
- index = removeBefore === true ? --index : index;
1860
- }
1861
 
1862
- if (_.slideCount < 1 || index < 0 || index > _.slideCount - 1) {
1863
- return false;
1864
- }
 
 
 
 
 
 
 
 
 
1865
 
1866
- _.unload();
1867
 
1868
- if (removeAll === true) {
1869
- _.$slideTrack.children().remove();
1870
- } else {
1871
- _.$slideTrack.children(this.options.slide).eq(index).remove();
1872
- }
1873
 
1874
- _.$slides = _.$slideTrack.children(this.options.slide);
 
 
1875
 
1876
- _.$slideTrack.children(this.options.slide).detach();
1877
 
1878
- _.$slideTrack.append(_.$slides);
 
 
1879
 
1880
- _.$slidesCache = _.$slides;
1881
 
1882
- _.reinit();
1883
 
1884
- };
1885
 
1886
- Slick.prototype.setCSS = function(position) {
1887
 
1888
- var _ = this,
1889
- positionProps = {},
1890
- x, y;
1891
 
1892
- if (_.options.rtl === true) {
1893
- position = -position;
1894
- }
1895
- x = _.positionProp == 'left' ? Math.ceil(position) + 'px' : '0px';
1896
- y = _.positionProp == 'top' ? Math.ceil(position) + 'px' : '0px';
1897
 
1898
- positionProps[_.positionProp] = position;
1899
 
1900
- if (_.transformsEnabled === false) {
1901
- _.$slideTrack.css(positionProps);
1902
- } else {
1903
- positionProps = {};
1904
- if (_.cssTransitions === false) {
1905
- positionProps[_.animType] = 'translate(' + x + ', ' + y + ')';
1906
- _.$slideTrack.css(positionProps);
1907
- } else {
1908
- positionProps[_.animType] = 'translate3d(' + x + ', ' + y + ', 0px)';
1909
- _.$slideTrack.css(positionProps);
1910
- }
1911
- }
1912
 
1913
- };
1914
 
1915
- Slick.prototype.setDimensions = function() {
1916
 
1917
- var _ = this;
1918
 
1919
- if (_.options.vertical === false) {
1920
- if (_.options.centerMode === true) {
1921
- _.$list.css({
1922
- padding: ('0px ' + _.options.centerPadding)
1923
- });
1924
- }
1925
- } else {
1926
- _.$list.height(_.$slides.first().outerHeight(true) * _.options.slidesToShow);
1927
- if (_.options.centerMode === true) {
1928
- _.$list.css({
1929
- padding: (_.options.centerPadding + ' 0px')
1930
- });
1931
- }
1932
- }
1933
 
1934
- _.listWidth = _.$list.width();
1935
- _.listHeight = _.$list.height();
1936
 
1937
 
1938
- if (_.options.vertical === false && _.options.variableWidth === false) {
1939
- _.slideWidth = Math.ceil(_.listWidth / _.options.slidesToShow);
1940
- _.$slideTrack.width(Math.ceil((_.slideWidth * _.$slideTrack.children('.slick-slide').length)));
1941
 
1942
- } else if (_.options.variableWidth === true) {
1943
- _.$slideTrack.width(5000 * _.slideCount);
1944
- } else {
1945
- _.slideWidth = Math.ceil(_.listWidth);
1946
- _.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true) * _.$slideTrack.children('.slick-slide').length)));
1947
- }
1948
 
1949
- var offset = _.$slides.first().outerWidth(true) - _.$slides.first().width();
1950
- if (_.options.variableWidth === false) _.$slideTrack.children('.slick-slide').width(_.slideWidth - offset);
1951
 
1952
- };
1953
 
1954
- Slick.prototype.setFade = function() {
1955
 
1956
- var _ = this,
1957
- targetLeft;
1958
 
1959
- _.$slides.each(function(index, element) {
1960
- targetLeft = (_.slideWidth * index) * -1;
1961
- if (_.options.rtl === true) {
1962
- $(element).css({
1963
- position: 'relative',
1964
- right: targetLeft,
1965
- top: 0,
1966
- zIndex: _.options.zIndex - 2,
1967
- opacity: 0
1968
- });
1969
- } else {
1970
- $(element).css({
1971
- position: 'relative',
1972
- left: targetLeft,
1973
- top: 0,
1974
- zIndex: _.options.zIndex - 2,
1975
- opacity: 0
1976
- });
1977
- }
1978
- });
1979
 
1980
- _.$slides.eq(_.currentSlide).css({
1981
- zIndex: _.options.zIndex - 1,
1982
- opacity: 1
1983
- });
1984
 
1985
- };
1986
 
1987
- Slick.prototype.setHeight = function() {
1988
 
1989
- var _ = this;
1990
 
1991
- if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {
1992
- var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);
1993
- _.$list.css('height', targetHeight);
1994
- }
1995
 
1996
- };
1997
 
1998
- Slick.prototype.setOption =
1999
- Slick.prototype.slickSetOption = function() {
2000
 
2001
- /**
2002
- * accepts arguments in format of:
2003
- *
2004
- * - for changing a single option's value:
2005
- * .slick("setOption", option, value, refresh )
2006
- *
2007
- * - for changing a set of responsive options:
2008
- * .slick("setOption", 'responsive', [{}, ...], refresh )
2009
- *
2010
- * - for updating multiple values at once (not responsive)
2011
- * .slick("setOption", { 'option': value, ... }, refresh )
2012
- */
2013
 
2014
- var _ = this, l, item, option, value, refresh = false, type;
2015
 
2016
- if( $.type( arguments[0] ) === 'object' ) {
2017
 
2018
- option = arguments[0];
2019
- refresh = arguments[1];
2020
- type = 'multiple';
2021
 
2022
- } else if ( $.type( arguments[0] ) === 'string' ) {
2023
 
2024
- option = arguments[0];
2025
- value = arguments[1];
2026
- refresh = arguments[2];
2027
 
2028
- if ( arguments[0] === 'responsive' && $.type( arguments[1] ) === 'array' ) {
2029
 
2030
- type = 'responsive';
2031
 
2032
- } else if ( typeof arguments[1] !== 'undefined' ) {
2033
 
2034
- type = 'single';
2035
 
2036
- }
 
 
 
 
2037
 
2038
- }
2039
 
2040
- if ( type === 'single' ) {
2041
 
2042
- _.options[option] = value;
2043
 
 
 
2044
 
2045
- } else if ( type === 'multiple' ) {
2046
 
2047
- $.each( option , function( opt, val ) {
 
 
 
 
2048
 
2049
- _.options[opt] = val;
 
 
 
 
 
 
2050
 
2051
- });
 
 
 
 
 
 
 
 
2052
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2053
 
2054
- } else if ( type === 'responsive' ) {
2055
 
2056
- for ( item in value ) {
2057
 
2058
- if( $.type( _.options.responsive ) !== 'array' ) {
 
2059
 
2060
- _.options.responsive = [ value[item] ];
 
 
 
2061
 
2062
- } else {
 
 
2063
 
2064
- l = _.options.responsive.length-1;
2065
 
2066
- // loop through the responsive object and splice out duplicates.
2067
- while( l >= 0 ) {
2068
 
2069
- if( _.options.responsive[l].breakpoint === value[item].breakpoint ) {
2070
 
2071
- _.options.responsive.splice(l,1);
2072
 
2073
- }
 
 
 
 
2074
 
2075
- l--;
2076
 
2077
- }
 
 
 
 
2078
 
2079
- _.options.responsive.push( value[item] );
 
 
 
 
 
 
 
 
 
 
 
 
2080
 
2081
- }
2082
 
2083
- }
2084
 
2085
- }
 
 
2086
 
2087
- if ( refresh ) {
2088
 
2089
- _.unload();
2090
- _.reinit();
2091
 
2092
- }
 
 
 
2093
 
2094
- };
2095
 
2096
- Slick.prototype.setPosition = function() {
 
 
2097
 
2098
- var _ = this;
2099
 
2100
- _.setDimensions();
 
2101
 
2102
- _.setHeight();
2103
 
2104
- if (_.options.fade === false) {
2105
- _.setCSS(_.getLeft(_.currentSlide));
2106
- } else {
2107
- _.setFade();
2108
- }
2109
 
2110
- _.$slider.trigger('setPosition', [_]);
2111
 
2112
- };
 
 
 
2113
 
2114
- Slick.prototype.setProps = function() {
2115
 
2116
- var _ = this,
2117
- bodyStyle = document.body.style;
2118
 
2119
- _.positionProp = _.options.vertical === true ? 'top' : 'left';
2120
 
2121
- if (_.positionProp === 'top') {
2122
- _.$slider.addClass('slick-vertical');
2123
- } else {
2124
- _.$slider.removeClass('slick-vertical');
2125
- }
2126
 
2127
- if (bodyStyle.WebkitTransition !== undefined ||
2128
- bodyStyle.MozTransition !== undefined ||
2129
- bodyStyle.msTransition !== undefined) {
2130
- if (_.options.useCSS === true) {
2131
- _.cssTransitions = true;
2132
- }
2133
- }
2134
 
2135
- if ( _.options.fade ) {
2136
- if ( typeof _.options.zIndex === 'number' ) {
2137
- if( _.options.zIndex < 3 ) {
2138
- _.options.zIndex = 3;
2139
- }
2140
- } else {
2141
- _.options.zIndex = _.defaults.zIndex;
2142
- }
2143
- }
2144
-
2145
- if (bodyStyle.OTransform !== undefined) {
2146
- _.animType = 'OTransform';
2147
- _.transformType = '-o-transform';
2148
- _.transitionType = 'OTransition';
2149
- if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;
2150
- }
2151
- if (bodyStyle.MozTransform !== undefined) {
2152
- _.animType = 'MozTransform';
2153
- _.transformType = '-moz-transform';
2154
- _.transitionType = 'MozTransition';
2155
- if (bodyStyle.perspectiveProperty === undefined && bodyStyle.MozPerspective === undefined) _.animType = false;
2156
- }
2157
- if (bodyStyle.webkitTransform !== undefined) {
2158
- _.animType = 'webkitTransform';
2159
- _.transformType = '-webkit-transform';
2160
- _.transitionType = 'webkitTransition';
2161
- if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;
2162
- }
2163
- if (bodyStyle.msTransform !== undefined) {
2164
- _.animType = 'msTransform';
2165
- _.transformType = '-ms-transform';
2166
- _.transitionType = 'msTransition';
2167
- if (bodyStyle.msTransform === undefined) _.animType = false;
2168
- }
2169
- if (bodyStyle.transform !== undefined && _.animType !== false) {
2170
- _.animType = 'transform';
2171
- _.transformType = 'transform';
2172
- _.transitionType = 'transition';
2173
- }
2174
- _.transformsEnabled = _.options.useTransform && (_.animType !== null && _.animType !== false);
2175
- };
2176
-
2177
-
2178
- Slick.prototype.setSlideClasses = function(index) {
2179
-
2180
- var _ = this,
2181
- centerOffset, allSlides, indexOffset, remainder;
2182
-
2183
- allSlides = _.$slider
2184
- .find('.slick-slide')
2185
- .removeClass('slick-active slick-center slick-current')
2186
- .attr('aria-hidden', 'true');
2187
-
2188
- _.$slides
2189
- .eq(index)
2190
- .addClass('slick-current');
2191
-
2192
- if (_.options.centerMode === true) {
2193
-
2194
- centerOffset = Math.floor(_.options.slidesToShow / 2);
2195
-
2196
- if (_.options.infinite === true) {
2197
-
2198
- if (index >= centerOffset && index <= (_.slideCount - 1) - centerOffset) {
2199
-
2200
- _.$slides
2201
- .slice(index - centerOffset, index + centerOffset + 1)
2202
- .addClass('slick-active')
2203
- .attr('aria-hidden', 'false');
2204
-
2205
- } else {
2206
-
2207
- indexOffset = _.options.slidesToShow + index;
2208
- allSlides
2209
- .slice(indexOffset - centerOffset + 1, indexOffset + centerOffset + 2)
2210
- .addClass('slick-active')
2211
- .attr('aria-hidden', 'false');
2212
-
2213
- }
2214
-
2215
- if (index === 0) {
2216
-
2217
- allSlides
2218
- .eq(allSlides.length - 1 - _.options.slidesToShow)
2219
- .addClass('slick-center');
2220
-
2221
- } else if (index === _.slideCount - 1) {
2222
-
2223
- allSlides
2224
- .eq(_.options.slidesToShow)
2225
- .addClass('slick-center');
2226
-
2227
- }
2228
 
2229
- }
 
 
2230
 
2231
- _.$slides
2232
- .eq(index)
2233
- .addClass('slick-center');
2234
 
2235
- } else {
2236
 
2237
- if (index >= 0 && index <= (_.slideCount - _.options.slidesToShow)) {
2238
 
2239
- _.$slides
2240
- .slice(index, index + _.options.slidesToShow)
2241
- .addClass('slick-active')
2242
- .attr('aria-hidden', 'false');
 
2243
 
2244
- } else if (allSlides.length <= _.options.slidesToShow) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2245
 
2246
- allSlides
2247
- .addClass('slick-active')
2248
- .attr('aria-hidden', 'false');
2249
 
2250
- } else {
2251
 
2252
- remainder = _.slideCount % _.options.slidesToShow;
2253
- indexOffset = _.options.infinite === true ? _.options.slidesToShow + index : index;
2254
 
2255
- if (_.options.slidesToShow == _.options.slidesToScroll && (_.slideCount - index) < _.options.slidesToShow) {
2256
 
2257
- allSlides
2258
- .slice(indexOffset - (_.options.slidesToShow - remainder), indexOffset + remainder)
2259
- .addClass('slick-active')
2260
- .attr('aria-hidden', 'false');
2261
 
2262
- } else {
 
 
 
2263
 
2264
- allSlides
2265
- .slice(indexOffset, indexOffset + _.options.slidesToShow)
2266
- .addClass('slick-active')
2267
- .attr('aria-hidden', 'false');
2268
 
2269
- }
2270
 
2271
- }
2272
 
2273
- }
 
 
 
2274
 
2275
- if (_.options.lazyLoad === 'ondemand') {
2276
- _.lazyLoad();
2277
- }
2278
 
2279
- };
2280
 
2281
- Slick.prototype.setupInfinite = function() {
2282
 
2283
- var _ = this,
2284
- i, slideIndex, infiniteCount;
2285
 
2286
- if (_.options.fade === true) {
2287
- _.options.centerMode = false;
2288
- }
2289
 
2290
- if (_.options.infinite === true && _.options.fade === false) {
2291
 
2292
- slideIndex = null;
2293
 
2294
- if (_.slideCount > _.options.slidesToShow) {
2295
 
2296
- if (_.options.centerMode === true) {
2297
- infiniteCount = _.options.slidesToShow + 1;
2298
- } else {
2299
- infiniteCount = _.options.slidesToShow;
2300
- }
2301
 
2302
- for (i = _.slideCount; i > (_.slideCount -
2303
- infiniteCount); i -= 1) {
2304
- slideIndex = i - 1;
2305
- $(_.$slides[slideIndex]).clone(true).attr('id', '')
2306
- .attr('data-slick-index', slideIndex - _.slideCount)
2307
- .prependTo(_.$slideTrack).addClass('slick-cloned');
2308
- }
2309
- for (i = 0; i < infiniteCount; i += 1) {
2310
- slideIndex = i;
2311
- $(_.$slides[slideIndex]).clone(true).attr('id', '')
2312
- .attr('data-slick-index', slideIndex + _.slideCount)
2313
- .appendTo(_.$slideTrack).addClass('slick-cloned');
2314
- }
2315
- _.$slideTrack.find('.slick-cloned').find('[id]').each(function() {
2316
- $(this).attr('id', '');
2317
- });
2318
 
2319
- }
 
 
2320
 
2321
- }
 
 
2322
 
2323
- };
 
 
2324
 
2325
- Slick.prototype.interrupt = function( toggle ) {
 
 
2326
 
2327
- var _ = this;
2328
 
2329
- if( !toggle ) {
2330
- _.autoPlay();
2331
- }
2332
- _.interrupted = toggle;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2333
 
2334
- };
 
 
2335
 
2336
- Slick.prototype.selectHandler = function(event) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2337
 
2338
- var _ = this;
2339
 
2340
- var targetElement =
2341
- $(event.target).is('.slick-slide') ?
2342
- $(event.target) :
2343
- $(event.target).parents('.slick-slide');
2344
 
2345
- var index = parseInt(targetElement.attr('data-slick-index'));
 
2346
 
2347
- if (!index) index = 0;
2348
 
2349
- if (_.slideCount <= _.options.slidesToShow) {
2350
 
2351
- _.setSlideClasses(index);
2352
- _.asNavFor(index);
2353
- return;
2354
 
2355
- }
 
 
2356
 
2357
- _.slideHandler(index);
2358
 
2359
- };
 
2360
 
2361
- Slick.prototype.slideHandler = function(index, sync, dontAnimate) {
 
2362
 
2363
- var targetSlide, animSlide, oldSlide, slideLeft, targetLeft = null,
2364
- _ = this, navTarget;
2365
 
2366
- sync = sync || false;
 
 
2367
 
2368
- if (_.animating === true && _.options.waitForAnimate === true) {
2369
- return;
2370
- }
 
 
 
2371
 
2372
- if (_.options.fade === true && _.currentSlide === index) {
2373
- return;
2374
- }
 
 
 
 
2375
 
2376
- if (_.slideCount <= _.options.slidesToShow) {
2377
- return;
2378
- }
2379
 
2380
- if (sync === false) {
2381
- _.asNavFor(index);
2382
- }
2383
 
2384
- targetSlide = index;
2385
- targetLeft = _.getLeft(targetSlide);
2386
- slideLeft = _.getLeft(_.currentSlide);
2387
 
2388
- _.currentLeft = _.swipeLeft === null ? slideLeft : _.swipeLeft;
2389
 
2390
- if (_.options.infinite === false && _.options.centerMode === false && (index < 0 || index > _.getDotCount() * _.options.slidesToScroll)) {
2391
- if (_.options.fade === false) {
2392
- targetSlide = _.currentSlide;
2393
- if (dontAnimate !== true) {
2394
- _.animateSlide(slideLeft, function() {
2395
- _.postSlide(targetSlide);
2396
- });
2397
- } else {
2398
- _.postSlide(targetSlide);
2399
- }
2400
- }
2401
- return;
2402
- } else if (_.options.infinite === false && _.options.centerMode === true && (index < 0 || index > (_.slideCount - _.options.slidesToScroll))) {
2403
- if (_.options.fade === false) {
2404
- targetSlide = _.currentSlide;
2405
- if (dontAnimate !== true) {
2406
- _.animateSlide(slideLeft, function() {
2407
- _.postSlide(targetSlide);
2408
- });
2409
- } else {
2410
- _.postSlide(targetSlide);
2411
- }
2412
- }
2413
- return;
2414
- }
2415
 
2416
- if ( _.options.autoplay ) {
2417
- clearInterval(_.autoPlayTimer);
2418
- }
2419
 
2420
- if (targetSlide < 0) {
2421
- if (_.slideCount % _.options.slidesToScroll !== 0) {
2422
- animSlide = _.slideCount - (_.slideCount % _.options.slidesToScroll);
2423
- } else {
2424
- animSlide = _.slideCount + targetSlide;
2425
- }
2426
- } else if (targetSlide >= _.slideCount) {
2427
- if (_.slideCount % _.options.slidesToScroll !== 0) {
2428
- animSlide = 0;
2429
- } else {
2430
- animSlide = targetSlide - _.slideCount;
2431
- }
2432
- } else {
2433
- animSlide = targetSlide;
2434
- }
2435
 
2436
- _.animating = true;
2437
 
2438
- _.$slider.trigger('beforeChange', [_, _.currentSlide, animSlide]);
2439
 
2440
- oldSlide = _.currentSlide;
2441
- _.currentSlide = animSlide;
2442
 
2443
- _.setSlideClasses(_.currentSlide);
2444
 
2445
- if ( _.options.asNavFor ) {
2446
 
2447
- navTarget = _.getNavTarget();
2448
- navTarget = navTarget.slick('getSlick');
2449
 
2450
- if ( navTarget.slideCount <= navTarget.options.slidesToShow ) {
2451
- navTarget.setSlideClasses(_.currentSlide);
2452
- }
2453
 
2454
- }
 
 
 
2455
 
2456
- _.updateDots();
2457
- _.updateArrows();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2458
 
2459
- if (_.options.fade === true) {
2460
- if (dontAnimate !== true) {
2461
 
2462
- _.fadeSlideOut(oldSlide);
2463
 
2464
- _.fadeSlide(animSlide, function() {
2465
- _.postSlide(animSlide);
2466
- });
2467
 
2468
- } else {
2469
- _.postSlide(animSlide);
2470
- }
2471
- _.animateHeight();
2472
- return;
2473
- }
2474
 
2475
- if (dontAnimate !== true) {
2476
- _.animateSlide(targetLeft, function() {
2477
- _.postSlide(animSlide);
2478
- });
2479
- } else {
2480
- _.postSlide(animSlide);
2481
- }
2482
 
2483
- };
 
 
 
2484
 
2485
- Slick.prototype.startLoad = function() {
 
2486
 
2487
- var _ = this;
 
 
2488
 
2489
- if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
 
 
2490
 
2491
- _.$prevArrow.hide();
2492
- _.$nextArrow.hide();
2493
 
2494
- }
2495
 
2496
- if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
2497
 
2498
- _.$dots.hide();
 
2499
 
2500
- }
 
 
 
2501
 
2502
- _.$slider.addClass('slick-loading');
2503
 
2504
- };
2505
 
2506
- Slick.prototype.swipeDirection = function() {
 
2507
 
2508
- var xDist, yDist, r, swipeAngle, _ = this;
 
 
 
2509
 
2510
- xDist = _.touchObject.startX - _.touchObject.curX;
2511
- yDist = _.touchObject.startY - _.touchObject.curY;
2512
- r = Math.atan2(yDist, xDist);
2513
 
2514
- swipeAngle = Math.round(r * 180 / Math.PI);
2515
- if (swipeAngle < 0) {
2516
- swipeAngle = 360 - Math.abs(swipeAngle);
2517
- }
2518
 
2519
- if ((swipeAngle <= 45) && (swipeAngle >= 0)) {
2520
- return (_.options.rtl === false ? 'left' : 'right');
2521
- }
2522
- if ((swipeAngle <= 360) && (swipeAngle >= 315)) {
2523
- return (_.options.rtl === false ? 'left' : 'right');
2524
- }
2525
- if ((swipeAngle >= 135) && (swipeAngle <= 225)) {
2526
- return (_.options.rtl === false ? 'right' : 'left');
2527
- }
2528
- if (_.options.verticalSwiping === true) {
2529
- if ((swipeAngle >= 35) && (swipeAngle <= 135)) {
2530
- return 'down';
2531
- } else {
2532
- return 'up';
2533
- }
2534
- }
2535
 
2536
- return 'vertical';
2537
 
2538
- };
2539
 
2540
- Slick.prototype.swipeEnd = function(event) {
2541
 
2542
- var _ = this,
2543
- slideCount,
2544
- direction;
2545
 
2546
- _.dragging = false;
2547
- _.interrupted = false;
2548
- _.shouldClick = ( _.touchObject.swipeLength > 10 ) ? false : true;
2549
 
2550
- if ( _.touchObject.curX === undefined ) {
2551
- return false;
2552
- }
2553
 
2554
- if ( _.touchObject.edgeHit === true ) {
2555
- _.$slider.trigger('edge', [_, _.swipeDirection() ]);
2556
- }
2557
 
2558
- if ( _.touchObject.swipeLength >= _.touchObject.minSwipe ) {
 
2559
 
2560
- direction = _.swipeDirection();
2561
 
2562
- switch ( direction ) {
2563
 
2564
- case 'left':
2565
- case 'down':
2566
 
2567
- slideCount =
2568
- _.options.swipeToSlide ?
2569
- _.checkNavigable( _.currentSlide + _.getSlideCount() ) :
2570
- _.currentSlide + _.getSlideCount();
2571
 
2572
- _.currentDirection = 0;
2573
 
2574
- break;
 
 
 
 
2575
 
2576
- case 'right':
2577
- case 'up':
2578
 
2579
- slideCount =
2580
- _.options.swipeToSlide ?
2581
- _.checkNavigable( _.currentSlide - _.getSlideCount() ) :
2582
- _.currentSlide - _.getSlideCount();
2583
 
2584
- _.currentDirection = 1;
 
 
 
2585
 
2586
- break;
2587
 
2588
- default:
 
 
2589
 
 
 
 
2590
 
2591
- }
2592
-
2593
- if( direction != 'vertical' ) {
2594
-
2595
- _.slideHandler( slideCount );
2596
- _.touchObject = {};
2597
- _.$slider.trigger('swipe', [_, direction ]);
2598
-
2599
- }
2600
-
2601
- } else {
2602
-
2603
- if ( _.touchObject.startX !== _.touchObject.curX ) {
2604
-
2605
- _.slideHandler( _.currentSlide );
2606
- _.touchObject = {};
2607
-
2608
- }
2609
-
2610
- }
2611
 
2612
- };
2613
 
2614
- Slick.prototype.swipeHandler = function(event) {
2615
 
2616
- var _ = this;
2617
 
2618
- if ((_.options.swipe === false) || ('ontouchend' in document && _.options.swipe === false)) {
2619
- return;
2620
- } else if (_.options.draggable === false && event.type.indexOf('mouse') !== -1) {
2621
- return;
2622
- }
2623
 
2624
- _.touchObject.fingerCount = event.originalEvent && event.originalEvent.touches !== undefined ?
2625
- event.originalEvent.touches.length : 1;
2626
 
2627
- _.touchObject.minSwipe = _.listWidth / _.options
2628
- .touchThreshold;
 
2629
 
2630
- if (_.options.verticalSwiping === true) {
2631
- _.touchObject.minSwipe = _.listHeight / _.options
2632
- .touchThreshold;
2633
- }
2634
 
2635
- switch (event.data.action) {
 
2636
 
2637
- case 'start':
2638
- _.swipeStart(event);
2639
- break;
2640
 
2641
- case 'move':
2642
- _.swipeMove(event);
2643
- break;
2644
 
2645
- case 'end':
2646
- _.swipeEnd(event);
2647
- break;
 
2648
 
2649
- }
 
 
2650
 
2651
- };
2652
 
2653
- Slick.prototype.swipeMove = function(event) {
 
 
 
2654
 
2655
- var _ = this,
2656
- edgeWasHit = false,
2657
- curLeft, swipeDirection, swipeLength, positionOffset, touches;
 
2658
 
2659
- touches = event.originalEvent !== undefined ? event.originalEvent.touches : null;
2660
 
2661
- if (!_.dragging || touches && touches.length !== 1) {
2662
- return false;
2663
- }
2664
 
2665
- curLeft = _.getLeft(_.currentSlide);
2666
 
2667
- _.touchObject.curX = touches !== undefined ? touches[0].pageX : event.clientX;
2668
- _.touchObject.curY = touches !== undefined ? touches[0].pageY : event.clientY;
 
 
 
 
2669
 
2670
- _.touchObject.swipeLength = Math.round(Math.sqrt(
2671
- Math.pow(_.touchObject.curX - _.touchObject.startX, 2)));
 
 
 
 
 
 
2672
 
2673
- if (_.options.verticalSwiping === true) {
2674
- _.touchObject.swipeLength = Math.round(Math.sqrt(
2675
- Math.pow(_.touchObject.curY - _.touchObject.startY, 2)));
2676
- }
2677
 
2678
- swipeDirection = _.swipeDirection();
 
 
 
2679
 
2680
- if (swipeDirection === 'vertical') {
2681
- return;
2682
- }
2683
 
2684
- if (event.originalEvent !== undefined && _.touchObject.swipeLength > 4) {
2685
- event.preventDefault();
2686
- }
2687
 
2688
- positionOffset = (_.options.rtl === false ? 1 : -1) * (_.touchObject.curX > _.touchObject.startX ? 1 : -1);
2689
- if (_.options.verticalSwiping === true) {
2690
- positionOffset = _.touchObject.curY > _.touchObject.startY ? 1 : -1;
2691
- }
2692
 
 
 
2693
 
2694
- swipeLength = _.touchObject.swipeLength;
2695
 
2696
- _.touchObject.edgeHit = false;
 
 
 
2697
 
2698
- if (_.options.infinite === false) {
2699
- if ((_.currentSlide === 0 && swipeDirection === 'right') || (_.currentSlide >= _.getDotCount() && swipeDirection === 'left')) {
2700
- swipeLength = _.touchObject.swipeLength * _.options.edgeFriction;
2701
- _.touchObject.edgeHit = true;
2702
- }
2703
- }
2704
-
2705
- if (_.options.vertical === false) {
2706
- _.swipeLeft = curLeft + swipeLength * positionOffset;
2707
- } else {
2708
- _.swipeLeft = curLeft + (swipeLength * (_.$list.height() / _.listWidth)) * positionOffset;
2709
- }
2710
- if (_.options.verticalSwiping === true) {
2711
- _.swipeLeft = curLeft + swipeLength * positionOffset;
2712
- }
2713
-
2714
- if (_.options.fade === true || _.options.touchMove === false) {
2715
- return false;
2716
- }
2717
 
2718
- if (_.animating === true) {
2719
- _.swipeLeft = null;
2720
- return false;
2721
- }
2722
 
2723
- _.setCSS(_.swipeLeft);
2724
 
2725
- };
2726
 
2727
- Slick.prototype.swipeStart = function(event) {
2728
 
2729
- var _ = this,
2730
- touches;
2731
 
2732
- _.interrupted = true;
2733
 
2734
- if (_.touchObject.fingerCount !== 1 || _.slideCount <= _.options.slidesToShow) {
2735
- _.touchObject = {};
2736
- return false;
2737
- }
2738
 
2739
- if (event.originalEvent !== undefined && event.originalEvent.touches !== undefined) {
2740
- touches = event.originalEvent.touches[0];
2741
- }
2742
 
2743
- _.touchObject.startX = _.touchObject.curX = touches !== undefined ? touches.pageX : event.clientX;
2744
- _.touchObject.startY = _.touchObject.curY = touches !== undefined ? touches.pageY : event.clientY;
2745
 
2746
- _.dragging = true;
2747
 
2748
- };
2749
 
2750
- Slick.prototype.unfilterSlides = Slick.prototype.slickUnfilter = function() {
2751
 
2752
- var _ = this;
2753
 
2754
- if (_.$slidesCache !== null) {
2755
 
2756
- _.unload();
2757
 
2758
- _.$slideTrack.children(this.options.slide).detach();
 
 
2759
 
2760
- _.$slidesCache.appendTo(_.$slideTrack);
 
 
2761
 
2762
- _.reinit();
 
 
2763
 
2764
- }
 
 
 
2765
 
2766
- };
2767
 
2768
- Slick.prototype.unload = function() {
2769
 
2770
- var _ = this;
 
 
2771
 
2772
- $('.slick-cloned', _.$slider).remove();
2773
 
2774
- if (_.$dots) {
2775
- _.$dots.remove();
2776
- }
2777
 
2778
- if (_.$prevArrow && _.htmlExpr.test(_.options.prevArrow)) {
2779
- _.$prevArrow.remove();
2780
- }
2781
 
2782
- if (_.$nextArrow && _.htmlExpr.test(_.options.nextArrow)) {
2783
- _.$nextArrow.remove();
2784
- }
2785
 
2786
- _.$slides
2787
- .removeClass('slick-slide slick-active slick-visible slick-current')
2788
- .attr('aria-hidden', 'true')
2789
- .css('width', '');
2790
 
2791
- };
 
2792
 
2793
- Slick.prototype.unslick = function(fromBreakpoint) {
2794
 
2795
- var _ = this;
2796
- _.$slider.trigger('unslick', [_, fromBreakpoint]);
2797
- _.destroy();
2798
 
2799
- };
2800
 
2801
- Slick.prototype.updateArrows = function() {
 
2802
 
2803
- var _ = this,
2804
- centerOffset;
2805
 
2806
- centerOffset = Math.floor(_.options.slidesToShow / 2);
 
2807
 
2808
- if ( _.options.arrows === true &&
2809
- _.slideCount > _.options.slidesToShow &&
2810
- !_.options.infinite ) {
2811
 
2812
- _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2813
- _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2814
 
2815
- if (_.currentSlide === 0) {
2816
 
2817
- _.$prevArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2818
- _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2819
 
2820
- } else if (_.currentSlide >= _.slideCount - _.options.slidesToShow && _.options.centerMode === false) {
2821
 
2822
- _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2823
- _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2824
 
2825
- } else if (_.currentSlide >= _.slideCount - 1 && _.options.centerMode === true) {
2826
-
2827
- _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2828
- _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2829
-
2830
- }
2831
 
2832
- }
 
 
 
2833
 
2834
- };
2835
 
2836
- Slick.prototype.updateDots = function() {
2837
 
2838
- var _ = this;
2839
- console.log("update dots");
2840
- //if (_.$dots !== null) {
2841
 
2842
- _.$dots
2843
- .find('li')
2844
- .removeClass('slick-active')
2845
- .attr('aria-hidden','true')
2846
- .attr('aria-selected', 'false');
2847
 
2848
- _.$dots
2849
- .find('li')
2850
- .eq(Math.floor(_.currentSlide / _.options.slidesToScroll))
2851
- .addClass('slick-active')
2852
- .attr('aria-hidden','false')
2853
- .attr('aria-selected', 'true');
2854
 
2855
- //}
2856
 
2857
- };
2858
 
2859
- Slick.prototype.visibility = function() {
2860
 
2861
- var _ = this;
2862
 
2863
- if ( _.options.autoplay ) {
2864
 
2865
- if ( document[_.hidden] ) {
2866
 
2867
- _.interrupted = true;
2868
-
2869
- } else {
2870
-
2871
- _.interrupted = false;
2872
-
2873
- }
2874
 
2875
- }
2876
-
2877
- };
2878
- $.fn.slick = function() {
2879
- var _ = this,
2880
- opt = arguments[0],
2881
- args = Array.prototype.slice.call(arguments, 1),
2882
- l = _.length,
2883
- i,
2884
- ret;
2885
- for (i = 0; i < l; i++) {
2886
- if (typeof opt == 'object' || typeof opt == 'undefined')
2887
- _[i].slick = new Slick(_[i], opt);
2888
- else
2889
- ret = _[i].slick[opt].apply(_[i].slick, args);
2890
- if (typeof ret != 'undefined') return ret;
2891
- }
2892
- return _;
2893
- };
2894
 
2895
  }));
6
  |___/_|_|\___|_|\_(_)/ |___/
7
  |__/
8
 
9
+ Version: 1.8.1
10
  Author: Ken Wheeler
11
  Website: http://kenwheeler.github.io
12
  Docs: http://kenwheeler.github.io/slick
15
 
16
  */
17
  /* global window, document, define, jQuery, setInterval, clearInterval */
18
+ ;(function(factory) {
19
+ 'use strict';
20
+ if (typeof define === 'function' && define.amd) {
21
+ define(['jquery'], factory);
22
+ } else if (typeof exports !== 'undefined') {
23
+ module.exports = factory(require('jquery'));
24
+ } else {
25
+ factory(jQuery);
26
+ }
27
 
28
  }(function($) {
29
+ 'use strict';
30
+ var Slick = window.Slick || {};
31
+
32
+ Slick = (function() {
33
+
34
+ var instanceUid = 0;
35
+
36
+ function Slick(element, settings) {
37
+
38
+ var _ = this, dataSettings;
39
+
40
+ _.defaults = {
41
+ accessibility: true,
42
+ adaptiveHeight: false,
43
+ appendArrows: $(element),
44
+ appendDots: $(element),
45
+ arrows: true,
46
+ asNavFor: null,
47
+ prevArrow: '<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',
48
+ nextArrow: '<button class="slick-next" aria-label="Next" type="button">Next</button>',
49
+ autoplay: false,
50
+ autoplaySpeed: 3000,
51
+ centerMode: false,
52
+ centerPadding: '50px',
53
+ cssEase: 'ease',
54
+ customPaging: function(slider, i) {
55
+ return $('<button type="button" />').text(i + 1);
56
+ },
57
+ dots: false,
58
+ dotsClass: 'slick-dots',
59
+ draggable: true,
60
+ easing: 'linear',
61
+ edgeFriction: 0.35,
62
+ fade: false,
63
+ focusOnSelect: false,
64
+ focusOnChange: false,
65
+ infinite: true,
66
+ initialSlide: 0,
67
+ lazyLoad: 'ondemand',
68
+ mobileFirst: false,
69
+ pauseOnHover: true,
70
+ pauseOnFocus: true,
71
+ pauseOnDotsHover: false,
72
+ respondTo: 'window',
73
+ responsive: null,
74
+ rows: 1,
75
+ rtl: false,
76
+ slide: '',
77
+ slidesPerRow: 1,
78
+ slidesToShow: 1,
79
+ slidesToScroll: 1,
80
+ speed: 500,
81
+ swipe: true,
82
+ swipeToSlide: false,
83
+ touchMove: true,
84
+ touchThreshold: 5,
85
+ useCSS: true,
86
+ useTransform: true,
87
+ variableWidth: false,
88
+ vertical: false,
89
+ verticalSwiping: false,
90
+ waitForAnimate: true,
91
+ zIndex: 1000
92
+ };
93
+
94
+ _.initials = {
95
+ animating: false,
96
+ dragging: false,
97
+ autoPlayTimer: null,
98
+ currentDirection: 0,
99
+ currentLeft: null,
100
+ currentSlide: 0,
101
+ direction: 1,
102
+ $dots: null,
103
+ listWidth: null,
104
+ listHeight: null,
105
+ loadIndex: 0,
106
+ $nextArrow: null,
107
+ $prevArrow: null,
108
+ scrolling: false,
109
+ slideCount: null,
110
+ slideWidth: null,
111
+ $slideTrack: null,
112
+ $slides: null,
113
+ sliding: false,
114
+ slideOffset: 0,
115
+ swipeLeft: null,
116
+ swiping: false,
117
+ $list: null,
118
+ touchObject: {},
119
+ transformsEnabled: false,
120
+ unslicked: false
121
+ };
122
+
123
+ $.extend(_, _.initials);
124
+
125
+ _.activeBreakpoint = null;
126
+ _.animType = null;
127
+ _.animProp = null;
128
+ _.breakpoints = [];
129
+ _.breakpointSettings = [];
130
+ _.cssTransitions = false;
131
+ _.focussed = false;
132
+ _.interrupted = false;
133
+ _.hidden = 'hidden';
134
+ _.paused = true;
135
+ _.positionProp = null;
136
+ _.respondTo = null;
137
+ _.rowCount = 1;
138
+ _.shouldClick = true;
139
+ _.$slider = $(element);
140
+ _.$slidesCache = null;
141
+ _.transformType = null;
142
+ _.transitionType = null;
143
+ _.visibilityChange = 'visibilitychange';
144
+ _.windowWidth = 0;
145
+ _.windowTimer = null;
146
+
147
+ dataSettings = $(element).data('slick') || {};
148
+
149
+ _.options = $.extend({}, _.defaults, settings, dataSettings);
150
+
151
+ _.currentSlide = _.options.initialSlide;
152
+
153
+ _.originalSettings = _.options;
154
+
155
+ if (typeof document.mozHidden !== 'undefined') {
156
+ _.hidden = 'mozHidden';
157
+ _.visibilityChange = 'mozvisibilitychange';
158
+ } else if (typeof document.webkitHidden !== 'undefined') {
159
+ _.hidden = 'webkitHidden';
160
+ _.visibilityChange = 'webkitvisibilitychange';
161
+ }
162
+
163
+ _.autoPlay = $.proxy(_.autoPlay, _);
164
+ _.autoPlayClear = $.proxy(_.autoPlayClear, _);
165
+ _.autoPlayIterator = $.proxy(_.autoPlayIterator, _);
166
+ _.changeSlide = $.proxy(_.changeSlide, _);
167
+ _.clickHandler = $.proxy(_.clickHandler, _);
168
+ _.selectHandler = $.proxy(_.selectHandler, _);
169
+ _.setPosition = $.proxy(_.setPosition, _);
170
+ _.swipeHandler = $.proxy(_.swipeHandler, _);
171
+ _.dragHandler = $.proxy(_.dragHandler, _);
172
+ _.keyHandler = $.proxy(_.keyHandler, _);
173
+
174
+ _.instanceUid = instanceUid++;
175
+
176
+ // A simple way to check for HTML strings
177
+ // Strict HTML recognition (must start with <)
178
+ // Extracted from jQuery v1.11 source
179
+ _.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/;
180
+
181
+
182
+ _.registerBreakpoints();
183
+ _.init(true);
184
+
185
+ }
186
+
187
+ return Slick;
188
+
189
+ }());
190
+
191
+ Slick.prototype.activateADA = function() {
192
+ var _ = this;
193
+
194
+ _.$slideTrack.find('.slick-active').attr({
195
+ 'aria-hidden': 'false'
196
+ }).find('a, input, button, select').attr({
197
+ 'tabindex': '0'
198
+ });
199
+
200
+ };
201
+
202
+ Slick.prototype.addSlide = Slick.prototype.slickAdd = function(markup, index, addBefore) {
203
+
204
+ var _ = this;
205
+
206
+ if (typeof(index) === 'boolean') {
207
+ addBefore = index;
208
+ index = null;
209
+ } else if (index < 0 || (index >= _.slideCount)) {
210
+ return false;
211
+ }
212
+
213
+ _.unload();
214
+
215
+ if (typeof(index) === 'number') {
216
+ if (index === 0 && _.$slides.length === 0) {
217
+ $(markup).appendTo(_.$slideTrack);
218
+ } else if (addBefore) {
219
+ $(markup).insertBefore(_.$slides.eq(index));
220
+ } else {
221
+ $(markup).insertAfter(_.$slides.eq(index));
222
+ }
223
+ } else {
224
+ if (addBefore === true) {
225
+ $(markup).prependTo(_.$slideTrack);
226
+ } else {
227
+ $(markup).appendTo(_.$slideTrack);
228
+ }
229
+ }
230
+
231
+ _.$slides = _.$slideTrack.children(this.options.slide);
232
+
233
+ _.$slideTrack.children(this.options.slide).detach();
234
+
235
+ _.$slideTrack.append(_.$slides);
236
+
237
+ _.$slides.each(function(index, element) {
238
+ $(element).attr('data-slick-index', index);
239
+ });
240
+
241
+ _.$slidesCache = _.$slides;
242
+
243
+ _.reinit();
244
+
245
+ };
246
+
247
+ Slick.prototype.animateHeight = function() {
248
+ var _ = this;
249
+ if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {
250
+ var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);
251
+ _.$list.animate({
252
+ height: targetHeight
253
+ }, _.options.speed);
254
+ }
255
+ };
256
+
257
+ Slick.prototype.animateSlide = function(targetLeft, callback) {
258
+
259
+ var animProps = {},
260
+ _ = this;
261
+
262
+ _.animateHeight();
263
+
264
+ if (_.options.rtl === true && _.options.vertical === false) {
265
+ targetLeft = -targetLeft;
266
+ }
267
+ if (_.transformsEnabled === false) {
268
+ if (_.options.vertical === false) {
269
+ _.$slideTrack.animate({
270
+ left: targetLeft
271
+ }, _.options.speed, _.options.easing, callback);
272
+ } else {
273
+ _.$slideTrack.animate({
274
+ top: targetLeft
275
+ }, _.options.speed, _.options.easing, callback);
276
+ }
277
+
278
+ } else {
279
+
280
+ if (_.cssTransitions === false) {
281
+ if (_.options.rtl === true) {
282
+ _.currentLeft = -(_.currentLeft);
283
+ }
284
+ $({
285
+ animStart: _.currentLeft
286
+ }).animate({
287
+ animStart: targetLeft
288
+ }, {
289
+ duration: _.options.speed,
290
+ easing: _.options.easing,
291
+ step: function(now) {
292
+ now = Math.ceil(now);
293
+ if (_.options.vertical === false) {
294
+ animProps[_.animType] = 'translate(' +
295
+ now + 'px, 0px)';
296
+ _.$slideTrack.css(animProps);
297
+ } else {
298
+ animProps[_.animType] = 'translate(0px,' +
299
+ now + 'px)';
300
+ _.$slideTrack.css(animProps);
301
+ }
302
+ },
303
+ complete: function() {
304
+ if (callback) {
305
+ callback.call();
306
+ }
307
+ }
308
+ });
309
 
310
+ } else {
 
 
 
 
 
 
 
 
 
311
 
312
+ _.applyTransition();
313
+ targetLeft = Math.ceil(targetLeft);
314
 
315
+ if (_.options.vertical === false) {
316
+ animProps[_.animType] = 'translate3d(' + targetLeft + 'px, 0px, 0px)';
317
+ } else {
318
+ animProps[_.animType] = 'translate3d(0px,' + targetLeft + 'px, 0px)';
319
+ }
320
+ _.$slideTrack.css(animProps);
321
 
322
+ if (callback) {
323
+ setTimeout(function() {
324
 
325
+ _.disableTransition();
 
326
 
327
+ callback.call();
328
+ }, _.options.speed);
329
+ }
330
 
331
+ }
332
 
333
+ }
334
 
335
+ };
 
336
 
337
+ Slick.prototype.getNavTarget = function() {
 
 
 
 
 
 
338
 
339
+ var _ = this,
340
+ asNavFor = _.options.asNavFor;
341
 
342
+ if ( asNavFor && asNavFor !== null ) {
343
+ asNavFor = $(asNavFor).not(_.$slider);
344
+ }
345
 
346
+ return asNavFor;
347
 
348
+ };
 
 
 
 
 
349
 
350
+ Slick.prototype.asNavFor = function(index) {
351
 
352
+ var _ = this,
353
+ asNavFor = _.getNavTarget();
 
 
 
 
 
 
 
 
 
 
 
 
 
354
 
355
+ if ( asNavFor !== null && typeof asNavFor === 'object' ) {
356
+ asNavFor.each(function() {
357
+ var target = $(this).slick('getSlick');
358
+ if(!target.unslicked) {
359
+ target.slideHandler(index, true);
360
+ }
361
+ });
362
+ }
363
 
364
+ };
365
 
366
+ Slick.prototype.applyTransition = function(slide) {
367
 
368
+ var _ = this,
369
+ transition = {};
 
370
 
371
+ if (_.options.fade === false) {
372
+ transition[_.transitionType] = _.transformType + ' ' + _.options.speed + 'ms ' + _.options.cssEase;
373
+ } else {
374
+ transition[_.transitionType] = 'opacity ' + _.options.speed + 'ms ' + _.options.cssEase;
375
+ }
376
 
377
+ if (_.options.fade === false) {
378
+ _.$slideTrack.css(transition);
379
+ } else {
380
+ _.$slides.eq(slide).css(transition);
381
+ }
382
 
383
+ };
384
 
385
+ Slick.prototype.autoPlay = function() {
 
 
 
 
 
 
 
 
386
 
387
+ var _ = this;
388
 
389
+ _.autoPlayClear();
 
390
 
391
+ if ( _.slideCount > _.options.slidesToShow ) {
392
+ _.autoPlayTimer = setInterval( _.autoPlayIterator, _.options.autoplaySpeed );
393
+ }
394
 
395
+ };
 
 
 
 
 
 
 
 
 
 
 
 
396
 
397
+ Slick.prototype.autoPlayClear = function() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
398
 
399
+ var _ = this;
400
 
401
+ if (_.autoPlayTimer) {
402
+ clearInterval(_.autoPlayTimer);
403
+ }
404
 
405
+ };
 
 
 
 
 
406
 
407
+ Slick.prototype.autoPlayIterator = function() {
 
408
 
409
+ var _ = this,
410
+ slideTo = _.currentSlide + _.options.slidesToScroll;
411
 
412
+ if ( !_.paused && !_.interrupted && !_.focussed ) {
 
 
413
 
414
+ if ( _.options.infinite === false ) {
415
 
416
+ if ( _.direction === 1 && ( _.currentSlide + 1 ) === ( _.slideCount - 1 )) {
417
+ _.direction = 0;
418
+ }
419
 
420
+ else if ( _.direction === 0 ) {
421
 
422
+ slideTo = _.currentSlide - _.options.slidesToScroll;
423
 
424
+ if ( _.currentSlide - 1 === 0 ) {
425
+ _.direction = 1;
426
+ }
427
 
428
+ }
 
 
429
 
430
+ }
431
 
432
+ _.slideHandler( slideTo );
433
 
434
+ }
435
 
436
+ };
 
437
 
438
+ Slick.prototype.buildArrows = function() {
 
 
 
 
 
 
 
439
 
440
+ var _ = this;
441
 
442
+ if (_.options.arrows === true ) {
443
 
444
+ _.$prevArrow = $(_.options.prevArrow).addClass('slick-arrow');
445
+ _.$nextArrow = $(_.options.nextArrow).addClass('slick-arrow');
446
 
447
+ if( _.slideCount > _.options.slidesToShow ) {
 
 
 
 
448
 
449
+ _.$prevArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
450
+ _.$nextArrow.removeClass('slick-hidden').removeAttr('aria-hidden tabindex');
 
 
 
451
 
452
+ if (_.htmlExpr.test(_.options.prevArrow)) {
453
+ _.$prevArrow.prependTo(_.options.appendArrows);
454
+ }
455
 
456
+ if (_.htmlExpr.test(_.options.nextArrow)) {
457
+ _.$nextArrow.appendTo(_.options.appendArrows);
458
+ }
459
 
460
+ if (_.options.infinite !== true) {
461
+ _.$prevArrow
462
+ .addClass('slick-disabled')
463
+ .attr('aria-disabled', 'true');
464
+ }
465
 
466
+ } else {
467
 
468
+ _.$prevArrow.add( _.$nextArrow )
 
 
469
 
470
+ .addClass('slick-hidden')
471
+ .attr({
472
+ 'aria-disabled': 'true',
473
+ 'tabindex': '-1'
474
+ });
475
 
476
+ }
477
 
478
+ }
479
 
480
+ };
 
 
481
 
482
+ Slick.prototype.buildDots = function() {
483
 
484
+ var _ = this,
485
+ i, dot;
486
 
487
+ if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
 
488
 
489
+ _.$slider.addClass('slick-dotted');
490
 
491
+ dot = $('<ul />').addClass(_.options.dotsClass);
492
 
493
+ for (i = 0; i <= _.getDotCount(); i += 1) {
494
+ dot.append($('<li />').append(_.options.customPaging.call(this, _, i)));
495
+ }
496
 
497
+ _.$dots = dot.appendTo(_.options.appendDots);
498
 
499
+ _.$dots.find('li').first().addClass('slick-active');
500
 
501
+ }
 
 
502
 
503
+ };
504
 
505
+ Slick.prototype.buildOut = function() {
506
 
507
+ var _ = this;
508
 
509
+ _.$slides =
510
+ _.$slider
511
+ .children( _.options.slide + ':not(.slick-cloned)')
512
+ .addClass('slick-slide');
513
 
514
+ _.slideCount = _.$slides.length;
515
 
516
+ _.$slides.each(function(index, element) {
517
+ $(element)
518
+ .attr('data-slick-index', index)
519
+ .data('originalStyling', $(element).attr('style') || '');
520
+ });
521
 
522
+ _.$slider.addClass('slick-slider');
523
 
524
+ _.$slideTrack = (_.slideCount === 0) ?
525
+ $('<div class="slick-track"/>').appendTo(_.$slider) :
526
+ _.$slides.wrapAll('<div class="slick-track"/>').parent();
527
 
528
+ _.$list = _.$slideTrack.wrap(
529
+ '<div class="slick-list"/>').parent();
530
+ _.$slideTrack.css('opacity', 0);
531
 
532
+ if (_.options.centerMode === true || _.options.swipeToSlide === true) {
533
+ _.options.slidesToScroll = 1;
534
+ }
535
 
536
+ $('img[data-lazy]', _.$slider).not('[src]').addClass('slick-loading');
 
537
 
538
+ _.setupInfinite();
 
 
539
 
540
+ _.buildArrows();
 
 
541
 
542
+ _.buildDots();
 
 
 
 
543
 
544
+ _.updateDots();
545
 
 
546
 
547
+ _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);
 
 
 
 
548
 
549
+ if (_.options.draggable === true) {
550
+ _.$list.addClass('draggable');
551
+ }
552
 
553
+ };
554
 
555
+ Slick.prototype.buildRows = function() {
556
 
557
+ var _ = this, a, b, c, newSlides, numOfSlides, originalSlides,slidesPerSection;
558
 
559
+ newSlides = document.createDocumentFragment();
560
+ originalSlides = _.$slider.children();
561
 
562
+ if(_.options.rows > 0) {
563
 
564
+ slidesPerSection = _.options.slidesPerRow * _.options.rows;
565
+ numOfSlides = Math.ceil(
566
+ originalSlides.length / slidesPerSection
567
+ );
568
+
569
+ for(a = 0; a < numOfSlides; a++){
570
+ var slide = document.createElement('div');
571
+ for(b = 0; b < _.options.rows; b++) {
572
+ var row = document.createElement('div');
573
+ for(c = 0; c < _.options.slidesPerRow; c++) {
574
+ var target = (a * slidesPerSection + ((b * _.options.slidesPerRow) + c));
575
+ if (originalSlides.get(target)) {
576
+ row.appendChild(originalSlides.get(target));
577
+ }
578
+ }
579
+ slide.appendChild(row);
580
+ }
581
+ newSlides.appendChild(slide);
582
+ }
583
+
584
+ _.$slider.empty().append(newSlides);
585
+ _.$slider.children().children().children()
586
+ .css({
587
+ 'width':(100 / _.options.slidesPerRow) + '%',
588
+ 'display': 'inline-block'
589
+ });
590
+
591
+ }
592
+
593
+ };
594
+
595
+ Slick.prototype.checkResponsive = function(initial, forceUpdate) {
596
+
597
+ var _ = this,
598
+ breakpoint, targetBreakpoint, respondToWidth, triggerBreakpoint = false;
599
+ var sliderWidth = _.$slider.width();
600
+ var windowWidth = window.innerWidth || $(window).width();
601
+
602
+ if (_.respondTo === 'window') {
603
+ respondToWidth = windowWidth;
604
+ } else if (_.respondTo === 'slider') {
605
+ respondToWidth = sliderWidth;
606
+ } else if (_.respondTo === 'min') {
607
+ respondToWidth = Math.min(windowWidth, sliderWidth);
608
+ }
609
+
610
+ if ( _.options.responsive &&
611
+ _.options.responsive.length &&
612
+ _.options.responsive !== null) {
613
+
614
+ targetBreakpoint = null;
615
+
616
+ for (breakpoint in _.breakpoints) {
617
+ if (_.breakpoints.hasOwnProperty(breakpoint)) {
618
+ if (_.originalSettings.mobileFirst === false) {
619
+ if (respondToWidth < _.breakpoints[breakpoint]) {
620
+ targetBreakpoint = _.breakpoints[breakpoint];
621
+ }
622
+ } else {
623
+ if (respondToWidth > _.breakpoints[breakpoint]) {
624
+ targetBreakpoint = _.breakpoints[breakpoint];
625
+ }
626
+ }
627
+ }
628
+ }
629
+
630
+ if (targetBreakpoint !== null) {
631
+ if (_.activeBreakpoint !== null) {
632
+ if (targetBreakpoint !== _.activeBreakpoint || forceUpdate) {
633
+ _.activeBreakpoint =
634
+ targetBreakpoint;
635
+ if (_.breakpointSettings[targetBreakpoint] === 'unslick') {
636
+ _.unslick(targetBreakpoint);
637
+ } else {
638
+ _.options = $.extend({}, _.originalSettings,
639
+ _.breakpointSettings[
640
+ targetBreakpoint]);
641
+ if (initial === true) {
642
+ _.currentSlide = _.options.initialSlide;
643
+ }
644
+ _.refresh(initial);
645
+ }
646
+ triggerBreakpoint = targetBreakpoint;
647
+ }
648
+ } else {
649
+ _.activeBreakpoint = targetBreakpoint;
650
+ if (_.breakpointSettings[targetBreakpoint] === 'unslick') {
651
+ _.unslick(targetBreakpoint);
652
+ } else {
653
+ _.options = $.extend({}, _.originalSettings,
654
+ _.breakpointSettings[
655
+ targetBreakpoint]);
656
+ if (initial === true) {
657
+ _.currentSlide = _.options.initialSlide;
658
+ }
659
+ _.refresh(initial);
660
+ }
661
+ triggerBreakpoint = targetBreakpoint;
662
+ }
663
+ } else {
664
+ if (_.activeBreakpoint !== null) {
665
+ _.activeBreakpoint = null;
666
+ _.options = _.originalSettings;
667
+ if (initial === true) {
668
+ _.currentSlide = _.options.initialSlide;
669
+ }
670
+ _.refresh(initial);
671
+ triggerBreakpoint = targetBreakpoint;
672
+ }
673
+ }
674
+
675
+ // only trigger breakpoints during an actual break. not on initialize.
676
+ if( !initial && triggerBreakpoint !== false ) {
677
+ _.$slider.trigger('breakpoint', [_, triggerBreakpoint]);
678
+ }
679
+ }
680
+
681
+ };
682
+
683
+ Slick.prototype.changeSlide = function(event, dontAnimate) {
684
+
685
+ var _ = this,
686
+ $target = $(event.currentTarget),
687
+ indexOffset, slideOffset, unevenOffset;
688
+
689
+ // If target is a link, prevent default action.
690
+ if($target.is('a')) {
691
+ event.preventDefault();
692
+ }
693
+
694
+ // If target is not the <li> element (ie: a child), find the <li>.
695
+ if(!$target.is('li')) {
696
+ $target = $target.closest('li');
697
+ }
698
+
699
+ unevenOffset = (_.slideCount % _.options.slidesToScroll !== 0);
700
+ indexOffset = unevenOffset ? 0 : (_.slideCount - _.currentSlide) % _.options.slidesToScroll;
701
+
702
+ switch (event.data.message) {
703
+
704
+ case 'previous':
705
+ slideOffset = indexOffset === 0 ? _.options.slidesToScroll : _.options.slidesToShow - indexOffset;
706
+ if (_.slideCount > _.options.slidesToShow) {
707
+ _.slideHandler(_.currentSlide - slideOffset, false, dontAnimate);
708
+ }
709
+ break;
710
+
711
+ case 'next':
712
+ slideOffset = indexOffset === 0 ? _.options.slidesToScroll : indexOffset;
713
+ if (_.slideCount > _.options.slidesToShow) {
714
+ _.slideHandler(_.currentSlide + slideOffset, false, dontAnimate);
715
+ }
716
+ break;
717
+
718
+ case 'index':
719
+ var index = event.data.index === 0 ? 0 :
720
+ event.data.index || $target.index() * _.options.slidesToScroll;
721
+
722
+ _.slideHandler(_.checkNavigable(index), false, dontAnimate);
723
+ $target.children().trigger('focus');
724
+ break;
725
+
726
+ default:
727
+ return;
728
+ }
729
+
730
+ };
731
+
732
+ Slick.prototype.checkNavigable = function(index) {
733
+
734
+ var _ = this,
735
+ navigables, prevNavigable;
736
+
737
+ navigables = _.getNavigableIndexes();
738
+ prevNavigable = 0;
739
+ if (index > navigables[navigables.length - 1]) {
740
+ index = navigables[navigables.length - 1];
741
+ } else {
742
+ for (var n in navigables) {
743
+ if (index < navigables[n]) {
744
+ index = prevNavigable;
745
+ break;
746
+ }
747
+ prevNavigable = navigables[n];
748
+ }
749
+ }
750
 
751
+ return index;
752
+ };
753
 
754
+ Slick.prototype.cleanUpEvents = function() {
 
 
755
 
756
+ var _ = this;
757
 
758
+ if (_.options.dots && _.$dots !== null) {
759
 
760
+ $('li', _.$dots)
761
+ .off('click.slick', _.changeSlide)
762
+ .off('mouseenter.slick', $.proxy(_.interrupt, _, true))
763
+ .off('mouseleave.slick', $.proxy(_.interrupt, _, false));
764
 
765
+ if (_.options.accessibility === true) {
766
+ _.$dots.off('keydown.slick', _.keyHandler);
767
+ }
768
+ }
769
 
770
+ _.$slider.off('focus.slick blur.slick');
771
 
772
+ if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
773
+ _.$prevArrow && _.$prevArrow.off('click.slick', _.changeSlide);
774
+ _.$nextArrow && _.$nextArrow.off('click.slick', _.changeSlide);
775
 
776
+ if (_.options.accessibility === true) {
777
+ _.$prevArrow && _.$prevArrow.off('keydown.slick', _.keyHandler);
778
+ _.$nextArrow && _.$nextArrow.off('keydown.slick', _.keyHandler);
779
+ }
780
+ }
781
 
782
+ _.$list.off('touchstart.slick mousedown.slick', _.swipeHandler);
783
+ _.$list.off('touchmove.slick mousemove.slick', _.swipeHandler);
784
+ _.$list.off('touchend.slick mouseup.slick', _.swipeHandler);
785
+ _.$list.off('touchcancel.slick mouseleave.slick', _.swipeHandler);
786
 
787
+ _.$list.off('click.slick', _.clickHandler);
 
 
 
 
788
 
789
+ $(document).off(_.visibilityChange, _.visibility);
790
 
791
+ _.cleanUpSlideEvents();
 
 
792
 
793
+ if (_.options.accessibility === true) {
794
+ _.$list.off('keydown.slick', _.keyHandler);
795
+ }
796
 
797
+ if (_.options.focusOnSelect === true) {
798
+ $(_.$slideTrack).children().off('click.slick', _.selectHandler);
799
+ }
800
 
801
+ $(window).off('orientationchange.slick.slick-' + _.instanceUid, _.orientationChange);
802
 
803
+ $(window).off('resize.slick.slick-' + _.instanceUid, _.resize);
804
 
805
+ $('[draggable!=true]', _.$slideTrack).off('dragstart', _.preventDefault);
806
 
807
+ $(window).off('load.slick.slick-' + _.instanceUid, _.setPosition);
808
 
809
+ };
810
 
811
+ Slick.prototype.cleanUpSlideEvents = function() {
812
 
813
+ var _ = this;
814
 
815
+ _.$list.off('mouseenter.slick', $.proxy(_.interrupt, _, true));
816
+ _.$list.off('mouseleave.slick', $.proxy(_.interrupt, _, false));
 
817
 
818
+ };
819
 
820
+ Slick.prototype.cleanUpRows = function() {
821
 
822
+ var _ = this, originalSlides;
823
 
824
+ if(_.options.rows > 0) {
825
+ originalSlides = _.$slides.children().children();
826
+ originalSlides.removeAttr('style');
827
+ _.$slider.empty().append(originalSlides);
828
+ }
829
 
830
+ };
831
 
832
+ Slick.prototype.clickHandler = function(event) {
 
 
 
833
 
834
+ var _ = this;
 
 
 
 
 
 
 
 
 
 
 
 
 
835
 
836
+ if (_.shouldClick === false) {
837
+ event.stopImmediatePropagation();
838
+ event.stopPropagation();
839
+ event.preventDefault();
840
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
841
 
842
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
843
 
844
+ Slick.prototype.destroy = function(refresh) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
845
 
846
+ var _ = this;
847
 
848
+ _.autoPlayClear();
849
 
850
+ _.touchObject = {};
 
 
 
851
 
852
+ _.cleanUpEvents();
853
 
854
+ $('.slick-cloned', _.$slider).detach();
855
 
856
+ if (_.$dots) {
857
+ _.$dots.remove();
858
+ }
 
859
 
860
+ if ( _.$prevArrow && _.$prevArrow.length ) {
 
 
 
861
 
862
+ _.$prevArrow
863
+ .removeClass('slick-disabled slick-arrow slick-hidden')
864
+ .removeAttr('aria-hidden aria-disabled tabindex')
865
+ .css('display','');
866
 
867
+ if ( _.htmlExpr.test( _.options.prevArrow )) {
868
+ _.$prevArrow.remove();
869
+ }
870
+ }
871
 
872
+ if ( _.$nextArrow && _.$nextArrow.length ) {
873
 
874
+ _.$nextArrow
875
+ .removeClass('slick-disabled slick-arrow slick-hidden')
876
+ .removeAttr('aria-hidden aria-disabled tabindex')
877
+ .css('display','');
878
 
879
+ if ( _.htmlExpr.test( _.options.nextArrow )) {
880
+ _.$nextArrow.remove();
881
+ }
882
+ }
883
 
 
884
 
885
+ if (_.$slides) {
886
 
887
+ _.$slides
888
+ .removeClass('slick-slide slick-active slick-center slick-visible slick-current')
889
+ .removeAttr('aria-hidden')
890
+ .removeAttr('data-slick-index')
891
+ .each(function(){
892
+ $(this).attr('style', $(this).data('originalStyling'));
893
+ });
894
 
895
+ _.$slideTrack.children(this.options.slide).detach();
 
896
 
897
+ _.$slideTrack.detach();
898
 
899
+ _.$list.detach();
900
 
901
+ _.$slider.append(_.$slides);
902
+ }
903
 
904
+ _.cleanUpRows();
 
905
 
906
+ _.$slider.removeClass('slick-slider');
907
+ _.$slider.removeClass('slick-initialized');
908
+ _.$slider.removeClass('slick-dotted');
909
 
910
+ _.unslicked = true;
911
 
912
+ if(!refresh) {
913
+ _.$slider.trigger('destroy', [_]);
914
+ }
915
 
916
+ };
 
 
 
 
917
 
918
+ Slick.prototype.disableTransition = function(slide) {
919
 
920
+ var _ = this,
921
+ transition = {};
922
 
923
+ transition[_.transitionType] = '';
924
 
925
+ if (_.options.fade === false) {
926
+ _.$slideTrack.css(transition);
927
+ } else {
928
+ _.$slides.eq(slide).css(transition);
929
+ }
930
 
931
+ };
932
 
933
+ Slick.prototype.fadeSlide = function(slideIndex, callback) {
934
 
935
+ var _ = this;
936
 
937
+ if (_.cssTransitions === false) {
938
 
939
+ _.$slides.eq(slideIndex).css({
940
+ zIndex: _.options.zIndex
941
+ });
942
 
943
+ _.$slides.eq(slideIndex).animate({
944
+ opacity: 1
945
+ }, _.options.speed, _.options.easing, callback);
946
 
947
+ } else {
948
 
949
+ _.applyTransition(slideIndex);
 
 
950
 
951
+ _.$slides.eq(slideIndex).css({
952
+ opacity: 1,
953
+ zIndex: _.options.zIndex
954
+ });
955
 
956
+ if (callback) {
957
+ setTimeout(function() {
958
 
959
+ _.disableTransition(slideIndex);
 
 
 
 
 
 
 
 
960
 
961
+ callback.call();
962
+ }, _.options.speed);
963
+ }
964
 
965
+ }
 
 
 
966
 
967
+ };
 
 
968
 
969
+ Slick.prototype.fadeSlideOut = function(slideIndex) {
970
 
971
+ var _ = this;
972
 
973
+ if (_.cssTransitions === false) {
974
 
975
+ _.$slides.eq(slideIndex).animate({
976
+ opacity: 0,
977
+ zIndex: _.options.zIndex - 2
978
+ }, _.options.speed, _.options.easing);
 
 
 
979
 
980
+ } else {
981
 
982
+ _.applyTransition(slideIndex);
983
 
984
+ _.$slides.eq(slideIndex).css({
985
+ opacity: 0,
986
+ zIndex: _.options.zIndex - 2
987
+ });
988
 
989
+ }
 
990
 
991
+ };
992
 
993
+ Slick.prototype.filterSlides = Slick.prototype.slickFilter = function(filter) {
 
 
994
 
995
+ var _ = this;
996
 
997
+ if (filter !== null) {
 
 
998
 
999
+ _.$slidesCache = _.$slides;
1000
 
1001
+ _.unload();
1002
 
1003
+ _.$slideTrack.children(this.options.slide).detach();
 
1004
 
1005
+ _.$slidesCache.filter(filter).appendTo(_.$slideTrack);
1006
 
1007
+ _.reinit();
 
 
 
 
1008
 
1009
+ }
1010
 
1011
+ };
1012
 
1013
+ Slick.prototype.focusHandler = function() {
1014
 
1015
+ var _ = this;
1016
 
1017
+ _.$slider
1018
+ .off('focus.slick blur.slick')
1019
+ .on('focus.slick blur.slick', '*', function(event) {
1020
 
1021
+ event.stopImmediatePropagation();
1022
+ var $sf = $(this);
 
1023
 
1024
+ setTimeout(function() {
1025
 
1026
+ if( _.options.pauseOnFocus ) {
1027
+ _.focussed = $sf.is(':focus');
1028
+ _.autoPlay();
1029
+ }
1030
 
1031
+ }, 0);
 
 
 
1032
 
1033
+ });
1034
+ };
1035
 
1036
+ Slick.prototype.getCurrent = Slick.prototype.slickCurrentSlide = function() {
1037
 
1038
+ var _ = this;
1039
+ return _.currentSlide;
 
1040
 
1041
+ };
1042
 
1043
+ Slick.prototype.getDotCount = function() {
1044
 
1045
+ var _ = this;
1046
 
1047
+ var breakPoint = 0;
1048
+ var counter = 0;
1049
+ var pagerQty = 0;
1050
 
1051
+ if (_.options.infinite === true) {
1052
+ if (_.slideCount <= _.options.slidesToShow) {
1053
+ ++pagerQty;
1054
+ } else {
1055
+ while (breakPoint < _.slideCount) {
1056
+ ++pagerQty;
1057
+ breakPoint = counter + _.options.slidesToScroll;
1058
+ counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1059
+ }
1060
+ }
1061
+ } else if (_.options.centerMode === true) {
1062
+ pagerQty = _.slideCount;
1063
+ } else if(!_.options.asNavFor) {
1064
+ pagerQty = 1 + Math.ceil((_.slideCount - _.options.slidesToShow) / _.options.slidesToScroll);
1065
+ }else {
1066
+ while (breakPoint < _.slideCount) {
1067
+ ++pagerQty;
1068
+ breakPoint = counter + _.options.slidesToScroll;
1069
+ counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1070
+ }
1071
+ }
1072
+
1073
+ return pagerQty - 1;
1074
+
1075
+ };
1076
+
1077
+ Slick.prototype.getLeft = function(slideIndex) {
1078
+
1079
+ var _ = this,
1080
+ targetLeft,
1081
+ verticalHeight,
1082
+ verticalOffset = 0,
1083
+ targetSlide,
1084
+ coef;
1085
+
1086
+ _.slideOffset = 0;
1087
+ verticalHeight = _.$slides.first().outerHeight(true);
1088
+
1089
+ if (_.options.infinite === true) {
1090
+ if (_.slideCount > _.options.slidesToShow) {
1091
+ _.slideOffset = (_.slideWidth * _.options.slidesToShow) * -1;
1092
+ coef = -1
1093
+
1094
+ if (_.options.vertical === true && _.options.centerMode === true) {
1095
+ if (_.options.slidesToShow === 2) {
1096
+ coef = -1.5;
1097
+ } else if (_.options.slidesToShow === 1) {
1098
+ coef = -2
1099
+ }
1100
+ }
1101
+ verticalOffset = (verticalHeight * _.options.slidesToShow) * coef;
1102
+ }
1103
+ if (_.slideCount % _.options.slidesToScroll !== 0) {
1104
+ if (slideIndex + _.options.slidesToScroll > _.slideCount && _.slideCount > _.options.slidesToShow) {
1105
+ if (slideIndex > _.slideCount) {
1106
+ _.slideOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * _.slideWidth) * -1;
1107
+ verticalOffset = ((_.options.slidesToShow - (slideIndex - _.slideCount)) * verticalHeight) * -1;
1108
+ } else {
1109
+ _.slideOffset = ((_.slideCount % _.options.slidesToScroll) * _.slideWidth) * -1;
1110
+ verticalOffset = ((_.slideCount % _.options.slidesToScroll) * verticalHeight) * -1;
1111
+ }
1112
+ }
1113
+ }
1114
+ } else {
1115
+ if (slideIndex + _.options.slidesToShow > _.slideCount) {
1116
+ _.slideOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * _.slideWidth;
1117
+ verticalOffset = ((slideIndex + _.options.slidesToShow) - _.slideCount) * verticalHeight;
1118
+ }
1119
+ }
1120
+
1121
+ if (_.slideCount <= _.options.slidesToShow) {
1122
+ _.slideOffset = 0;
1123
+ verticalOffset = 0;
1124
+ }
1125
+
1126
+ if (_.options.centerMode === true && _.slideCount <= _.options.slidesToShow) {
1127
+ _.slideOffset = ((_.slideWidth * Math.floor(_.options.slidesToShow)) / 2) - ((_.slideWidth * _.slideCount) / 2);
1128
+ } else if (_.options.centerMode === true && _.options.infinite === true) {
1129
+ _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2) - _.slideWidth;
1130
+ } else if (_.options.centerMode === true) {
1131
+ _.slideOffset = 0;
1132
+ _.slideOffset += _.slideWidth * Math.floor(_.options.slidesToShow / 2);
1133
+ }
1134
+
1135
+ if (_.options.vertical === false) {
1136
+ targetLeft = ((slideIndex * _.slideWidth) * -1) + _.slideOffset;
1137
+ } else {
1138
+ targetLeft = ((slideIndex * verticalHeight) * -1) + verticalOffset;
1139
+ }
1140
+
1141
+ if (_.options.variableWidth === true) {
1142
+
1143
+ if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {
1144
+ targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);
1145
+ } else {
1146
+ targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow);
1147
+ }
1148
+
1149
+ if (_.options.rtl === true) {
1150
+ if (targetSlide[0]) {
1151
+ targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;
1152
+ } else {
1153
+ targetLeft = 0;
1154
+ }
1155
+ } else {
1156
+ targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;
1157
+ }
1158
+
1159
+ if (_.options.centerMode === true) {
1160
+ if (_.slideCount <= _.options.slidesToShow || _.options.infinite === false) {
1161
+ targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex);
1162
+ } else {
1163
+ targetSlide = _.$slideTrack.children('.slick-slide').eq(slideIndex + _.options.slidesToShow + 1);
1164
+ }
1165
+
1166
+ if (_.options.rtl === true) {
1167
+ if (targetSlide[0]) {
1168
+ targetLeft = (_.$slideTrack.width() - targetSlide[0].offsetLeft - targetSlide.width()) * -1;
1169
+ } else {
1170
+ targetLeft = 0;
1171
+ }
1172
+ } else {
1173
+ targetLeft = targetSlide[0] ? targetSlide[0].offsetLeft * -1 : 0;
1174
+ }
1175
+
1176
+ targetLeft += (_.$list.width() - targetSlide.outerWidth()) / 2;
1177
+ }
1178
+ }
1179
+
1180
+ return targetLeft;
1181
+
1182
+ };
1183
+
1184
+ Slick.prototype.getOption = Slick.prototype.slickGetOption = function(option) {
1185
+
1186
+ var _ = this;
1187
+
1188
+ return _.options[option];
1189
+
1190
+ };
1191
+
1192
+ Slick.prototype.getNavigableIndexes = function() {
1193
+
1194
+ var _ = this,
1195
+ breakPoint = 0,
1196
+ counter = 0,
1197
+ indexes = [],
1198
+ max;
1199
+
1200
+ if (_.options.infinite === false) {
1201
+ max = _.slideCount;
1202
+ } else {
1203
+ breakPoint = _.options.slidesToScroll * -1;
1204
+ counter = _.options.slidesToScroll * -1;
1205
+ max = _.slideCount * 2;
1206
+ }
1207
 
1208
+ while (breakPoint < max) {
1209
+ indexes.push(breakPoint);
1210
+ breakPoint = counter + _.options.slidesToScroll;
1211
+ counter += _.options.slidesToScroll <= _.options.slidesToShow ? _.options.slidesToScroll : _.options.slidesToShow;
1212
+ }
1213
 
1214
+ return indexes;
1215
 
1216
+ };
1217
 
1218
+ Slick.prototype.getSlick = function() {
 
 
 
1219
 
1220
+ return this;
1221
 
1222
+ };
1223
 
1224
+ Slick.prototype.getSlideCount = function() {
1225
 
1226
+ var _ = this,
1227
+ slidesTraversed, swipedSlide, centerOffset;
1228
 
1229
+ centerOffset = _.options.centerMode === true ? _.slideWidth * Math.floor(_.options.slidesToShow / 2) : 0;
1230
 
1231
+ if (_.options.swipeToSlide === true) {
1232
+ _.$slideTrack.find('.slick-slide').each(function(index, slide) {
1233
+ if (slide.offsetLeft - centerOffset + ($(slide).outerWidth() / 2) > (_.swipeLeft * -1)) {
1234
+ swipedSlide = slide;
1235
+ return false;
1236
+ }
1237
+ });
1238
 
1239
+ slidesTraversed = Math.abs($(swipedSlide).attr('data-slick-index') - _.currentSlide) || 1;
1240
 
1241
+ return slidesTraversed;
1242
 
1243
+ } else {
1244
+ return _.options.slidesToScroll;
1245
+ }
1246
 
1247
+ };
1248
 
1249
+ Slick.prototype.goTo = Slick.prototype.slickGoTo = function(slide, dontAnimate) {
1250
 
1251
+ var _ = this;
1252
 
1253
+ _.changeSlide({
1254
+ data: {
1255
+ message: 'index',
1256
+ index: parseInt(slide)
1257
+ }
1258
+ }, dontAnimate);
1259
 
1260
+ };
1261
 
1262
+ Slick.prototype.init = function(creation) {
 
 
 
1263
 
1264
+ var _ = this;
 
1265
 
1266
+ if (!$(_.$slider).hasClass('slick-initialized')) {
1267
 
1268
+ $(_.$slider).addClass('slick-initialized');
 
 
 
1269
 
1270
+ _.buildRows();
1271
+ _.buildOut();
1272
+ _.setProps();
1273
+ _.startLoad();
1274
+ _.loadSlider();
1275
+ _.initializeEvents();
1276
+ _.updateArrows();
1277
+ _.updateDots();
1278
+ _.checkResponsive(true);
1279
+ _.focusHandler();
1280
 
1281
+ }
 
1282
 
1283
+ if (creation) {
1284
+ _.$slider.trigger('init', [_]);
1285
+ }
1286
 
1287
+ if (_.options.accessibility === true) {
1288
+ _.initADA();
1289
+ }
1290
 
1291
+ if ( _.options.autoplay ) {
1292
 
1293
+ _.paused = false;
1294
+ _.autoPlay();
1295
 
1296
+ }
1297
 
1298
+ };
 
 
1299
 
1300
+ Slick.prototype.initADA = function() {
1301
+ var _ = this,
1302
+ numDotGroups = Math.ceil(_.slideCount / _.options.slidesToShow),
1303
+ tabControlIndexes = _.getNavigableIndexes().filter(function(val) {
1304
+ return (val >= 0) && (val < _.slideCount);
1305
+ });
 
 
 
 
 
 
 
 
 
 
 
1306
 
1307
+ _.$slides.add(_.$slideTrack.find('.slick-cloned')).attr({
1308
+ 'aria-hidden': 'true',
1309
+ 'tabindex': '-1'
1310
+ }).find('a, input, button, select').attr({
1311
+ 'tabindex': '-1'
1312
+ });
1313
 
1314
+ if (_.$dots !== null) {
1315
+ _.$slides.not(_.$slideTrack.find('.slick-cloned')).each(function(i) {
1316
+ var slideControlIndex = tabControlIndexes.indexOf(i);
1317
 
1318
+ $(this).attr({
1319
+ 'role': 'tabpanel',
1320
+ 'id': 'slick-slide' + _.instanceUid + i,
1321
+ 'tabindex': -1
1322
+ });
1323
 
1324
+ if (slideControlIndex !== -1) {
1325
+ var ariaButtonControl = 'slick-slide-control' + _.instanceUid + slideControlIndex
1326
+ if ($('#' + ariaButtonControl).length) {
1327
+ $(this).attr({
1328
+ 'aria-describedby': ariaButtonControl
1329
+ });
1330
+ }
1331
+ }
1332
+ });
1333
+
1334
+ _.$dots.attr('role', 'tablist').find('li').each(function(i) {
1335
+ var mappedSlideIndex = tabControlIndexes[i];
1336
 
1337
+ $(this).attr({
1338
+ 'role': 'presentation'
1339
+ });
1340
 
1341
+ $(this).find('button').first().attr({
1342
+ 'role': 'tab',
1343
+ 'id': 'slick-slide-control' + _.instanceUid + i,
1344
+ 'aria-controls': 'slick-slide' + _.instanceUid + mappedSlideIndex,
1345
+ 'aria-label': (i + 1) + ' of ' + numDotGroups,
1346
+ 'aria-selected': null,
1347
+ 'tabindex': '-1'
1348
+ });
1349
+
1350
+ }).eq(_.currentSlide).find('button').attr({
1351
+ 'aria-selected': 'true',
1352
+ 'tabindex': '0'
1353
+ }).end();
1354
+ }
1355
+
1356
+ for (var i=_.currentSlide, max=i+_.options.slidesToShow; i < max; i++) {
1357
+ if (_.options.focusOnChange) {
1358
+ _.$slides.eq(i).attr({'tabindex': '0'});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1359
  } else {
1360
+ _.$slides.eq(i).removeAttr('tabindex');
1361
  }
1362
+ }
1363
 
1364
+ _.activateADA();
 
 
 
 
 
 
 
 
1365
 
1366
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1367
 
1368
+ Slick.prototype.initArrowEvents = function() {
1369
 
1370
+ var _ = this;
1371
 
1372
+ if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
1373
+ _.$prevArrow
1374
+ .off('click.slick')
1375
+ .on('click.slick', {
1376
+ message: 'previous'
1377
+ }, _.changeSlide);
1378
+ _.$nextArrow
1379
+ .off('click.slick')
1380
+ .on('click.slick', {
1381
+ message: 'next'
1382
+ }, _.changeSlide);
1383
 
1384
+ if (_.options.accessibility === true) {
1385
+ _.$prevArrow.on('keydown.slick', _.keyHandler);
1386
+ _.$nextArrow.on('keydown.slick', _.keyHandler);
1387
+ }
1388
+ }
1389
 
1390
+ };
1391
 
1392
+ Slick.prototype.initDotEvents = function() {
1393
 
1394
+ var _ = this;
1395
 
1396
+ if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
1397
+ $('li', _.$dots).on('click.slick', {
1398
+ message: 'index'
1399
+ }, _.changeSlide);
 
1400
 
1401
+ if (_.options.accessibility === true) {
1402
+ _.$dots.on('keydown.slick', _.keyHandler);
1403
+ }
1404
+ }
 
 
 
1405
 
1406
+ if (_.options.dots === true && _.options.pauseOnDotsHover === true && _.slideCount > _.options.slidesToShow) {
 
 
 
 
1407
 
1408
+ $('li', _.$dots)
1409
+ .on('mouseenter.slick', $.proxy(_.interrupt, _, true))
1410
+ .on('mouseleave.slick', $.proxy(_.interrupt, _, false));
1411
 
1412
+ }
1413
 
1414
+ };
1415
 
1416
+ Slick.prototype.initSlideEvents = function() {
1417
 
1418
+ var _ = this;
1419
 
1420
+ if ( _.options.pauseOnHover ) {
1421
 
1422
+ _.$list.on('mouseenter.slick', $.proxy(_.interrupt, _, true));
1423
+ _.$list.on('mouseleave.slick', $.proxy(_.interrupt, _, false));
1424
 
1425
+ }
1426
 
1427
+ };
 
 
 
 
 
 
1428
 
1429
+ Slick.prototype.initializeEvents = function() {
1430
 
1431
+ var _ = this;
1432
 
1433
+ _.initArrowEvents();
 
 
1434
 
1435
+ _.initDotEvents();
1436
+ _.initSlideEvents();
1437
 
1438
+ _.$list.on('touchstart.slick mousedown.slick', {
1439
+ action: 'start'
1440
+ }, _.swipeHandler);
1441
+ _.$list.on('touchmove.slick mousemove.slick', {
1442
+ action: 'move'
1443
+ }, _.swipeHandler);
1444
+ _.$list.on('touchend.slick mouseup.slick', {
1445
+ action: 'end'
1446
+ }, _.swipeHandler);
1447
+ _.$list.on('touchcancel.slick mouseleave.slick', {
1448
+ action: 'end'
1449
+ }, _.swipeHandler);
1450
 
1451
+ _.$list.on('click.slick', _.clickHandler);
1452
 
1453
+ $(document).on(_.visibilityChange, $.proxy(_.visibility, _));
 
 
 
 
 
1454
 
1455
+ if (_.options.accessibility === true) {
1456
+ _.$list.on('keydown.slick', _.keyHandler);
1457
+ }
1458
 
1459
+ if (_.options.focusOnSelect === true) {
1460
+ $(_.$slideTrack).children().on('click.slick', _.selectHandler);
1461
+ }
1462
 
1463
+ $(window).on('orientationchange.slick.slick-' + _.instanceUid, $.proxy(_.orientationChange, _));
1464
 
1465
+ $(window).on('resize.slick.slick-' + _.instanceUid, $.proxy(_.resize, _));
1466
 
1467
+ $('[draggable!=true]', _.$slideTrack).on('dragstart', _.preventDefault);
 
 
 
 
 
 
 
 
 
1468
 
1469
+ $(window).on('load.slick.slick-' + _.instanceUid, _.setPosition);
1470
+ $(_.setPosition);
1471
 
1472
+ };
 
 
1473
 
1474
+ Slick.prototype.initUI = function() {
 
 
1475
 
1476
+ var _ = this;
1477
 
1478
+ if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
 
1479
 
1480
+ _.$prevArrow.show();
1481
+ _.$nextArrow.show();
1482
 
1483
+ }
1484
 
1485
+ if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
 
 
 
 
 
 
 
1486
 
1487
+ _.$dots.show();
1488
 
1489
+ }
 
 
 
 
 
1490
 
1491
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
1492
 
1493
+ Slick.prototype.keyHandler = function(event) {
1494
 
1495
+ var _ = this;
1496
+ //Dont slide if the cursor is inside the form fields and arrow keys are pressed
1497
+ if(!event.target.tagName.match('TEXTAREA|INPUT|SELECT')) {
1498
+ if (event.keyCode === 37 && _.options.accessibility === true) {
1499
+ _.changeSlide({
1500
+ data: {
1501
+ message: _.options.rtl === true ? 'next' : 'previous'
1502
+ }
1503
+ });
1504
+ } else if (event.keyCode === 39 && _.options.accessibility === true) {
1505
+ _.changeSlide({
1506
+ data: {
1507
+ message: _.options.rtl === true ? 'previous' : 'next'
1508
+ }
1509
+ });
1510
+ }
1511
+ }
1512
 
1513
+ };
1514
 
1515
+ Slick.prototype.lazyLoad = function() {
 
 
 
 
 
 
 
 
 
 
 
1516
 
1517
+ var _ = this,
1518
+ loadRange, cloneRange, rangeStart, rangeEnd;
1519
 
1520
+ function loadImages(imagesScope) {
1521
 
1522
+ $('img[data-lazy]', imagesScope).each(function() {
1523
 
1524
+ var image = $(this),
1525
+ imageSource = $(this).attr('data-lazy'),
1526
+ imageSrcSet = $(this).attr('data-srcset'),
1527
+ imageSizes = $(this).attr('data-sizes') || _.$slider.attr('data-sizes'),
1528
+ imageToLoad = document.createElement('img');
1529
 
1530
+ imageToLoad.onload = function() {
1531
 
1532
+ image
1533
+ .animate({ opacity: 0 }, 100, function() {
 
1534
 
1535
+ if (imageSrcSet) {
1536
+ image
1537
+ .attr('srcset', imageSrcSet );
1538
 
1539
+ if (imageSizes) {
1540
+ image
1541
+ .attr('sizes', imageSizes );
1542
+ }
1543
+ }
1544
 
1545
+ image
1546
+ .attr('src', imageSource)
1547
+ .animate({ opacity: 1 }, 200, function() {
1548
+ image
1549
+ .removeAttr('data-lazy data-srcset data-sizes')
1550
+ .removeClass('slick-loading');
1551
+ });
1552
+ _.$slider.trigger('lazyLoaded', [_, image, imageSource]);
1553
+ });
1554
 
1555
+ };
1556
 
1557
+ imageToLoad.onerror = function() {
1558
 
1559
+ image
1560
+ .removeAttr( 'data-lazy' )
1561
+ .removeClass( 'slick-loading' )
1562
+ .addClass( 'slick-lazyload-error' );
1563
 
1564
+ _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);
1565
 
1566
+ };
1567
 
1568
+ imageToLoad.src = imageSource;
1569
 
1570
+ });
1571
 
1572
+ }
1573
 
1574
+ if (_.options.centerMode === true) {
1575
+ if (_.options.infinite === true) {
1576
+ rangeStart = _.currentSlide + (_.options.slidesToShow / 2 + 1);
1577
+ rangeEnd = rangeStart + _.options.slidesToShow + 2;
1578
+ } else {
1579
+ rangeStart = Math.max(0, _.currentSlide - (_.options.slidesToShow / 2 + 1));
1580
+ rangeEnd = 2 + (_.options.slidesToShow / 2 + 1) + _.currentSlide;
1581
+ }
1582
+ } else {
1583
+ rangeStart = _.options.infinite ? _.options.slidesToShow + _.currentSlide : _.currentSlide;
1584
+ rangeEnd = Math.ceil(rangeStart + _.options.slidesToShow);
1585
+ if (_.options.fade === true) {
1586
+ if (rangeStart > 0) rangeStart--;
1587
+ if (rangeEnd <= _.slideCount) rangeEnd++;
1588
+ }
1589
+ }
1590
 
1591
+ loadRange = _.$slider.find('.slick-slide').slice(rangeStart, rangeEnd);
 
 
 
 
 
 
 
 
 
 
 
1592
 
1593
+ if (_.options.lazyLoad === 'anticipated') {
1594
+ var prevSlide = rangeStart - 1,
1595
+ nextSlide = rangeEnd,
1596
+ $slides = _.$slider.find('.slick-slide');
1597
 
1598
+ for (var i = 0; i < _.options.slidesToScroll; i++) {
1599
+ if (prevSlide < 0) prevSlide = _.slideCount - 1;
1600
+ loadRange = loadRange.add($slides.eq(prevSlide));
1601
+ loadRange = loadRange.add($slides.eq(nextSlide));
1602
+ prevSlide--;
1603
+ nextSlide++;
1604
+ }
1605
+ }
1606
 
1607
+ loadImages(loadRange);
 
 
1608
 
1609
+ if (_.slideCount <= _.options.slidesToShow) {
1610
+ cloneRange = _.$slider.find('.slick-slide');
1611
+ loadImages(cloneRange);
1612
+ } else
1613
+ if (_.currentSlide >= _.slideCount - _.options.slidesToShow) {
1614
+ cloneRange = _.$slider.find('.slick-cloned').slice(0, _.options.slidesToShow);
1615
+ loadImages(cloneRange);
1616
+ } else if (_.currentSlide === 0) {
1617
+ cloneRange = _.$slider.find('.slick-cloned').slice(_.options.slidesToShow * -1);
1618
+ loadImages(cloneRange);
1619
+ }
1620
 
1621
+ };
1622
 
1623
+ Slick.prototype.loadSlider = function() {
1624
 
1625
+ var _ = this;
1626
 
1627
+ _.setPosition();
 
1628
 
1629
+ _.$slideTrack.css({
1630
+ opacity: 1
1631
+ });
1632
 
1633
+ _.$slider.removeClass('slick-loading');
1634
 
1635
+ _.initUI();
1636
 
1637
+ if (_.options.lazyLoad === 'progressive') {
1638
+ _.progressiveLazyLoad();
1639
+ }
1640
 
1641
+ };
 
1642
 
1643
+ Slick.prototype.next = Slick.prototype.slickNext = function() {
1644
 
1645
+ var _ = this;
1646
 
1647
+ _.changeSlide({
1648
+ data: {
1649
+ message: 'next'
1650
+ }
1651
+ });
1652
 
1653
+ };
1654
 
1655
+ Slick.prototype.orientationChange = function() {
1656
 
1657
+ var _ = this;
1658
 
1659
+ _.checkResponsive();
1660
+ _.setPosition();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1661
 
1662
+ };
1663
 
1664
+ Slick.prototype.pause = Slick.prototype.slickPause = function() {
1665
 
1666
+ var _ = this;
 
1667
 
1668
+ _.autoPlayClear();
1669
+ _.paused = true;
1670
 
1671
+ };
1672
 
1673
+ Slick.prototype.play = Slick.prototype.slickPlay = function() {
 
 
1674
 
1675
+ var _ = this;
1676
 
1677
+ _.autoPlay();
1678
+ _.options.autoplay = true;
1679
+ _.paused = false;
1680
+ _.focussed = false;
1681
+ _.interrupted = false;
 
 
 
 
 
 
1682
 
1683
+ };
1684
 
1685
+ Slick.prototype.postSlide = function(index) {
1686
 
1687
+ var _ = this;
 
 
 
1688
 
1689
+ if( !_.unslicked ) {
1690
 
1691
+ _.$slider.trigger('afterChange', [_, index]);
1692
 
1693
+ _.animating = false;
1694
 
1695
+ if (_.slideCount > _.options.slidesToShow) {
1696
+ _.setPosition();
1697
+ }
1698
 
1699
+ _.swipeLeft = null;
1700
 
1701
+ if ( _.options.autoplay ) {
1702
+ _.autoPlay();
1703
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
1704
 
1705
+ if (_.options.accessibility === true) {
1706
+ _.initADA();
1707
 
1708
+ if (_.options.focusOnChange) {
1709
+ var $currentSlide = $(_.$slides.get(_.currentSlide));
1710
+ $currentSlide.attr('tabindex', 0).focus();
1711
+ }
1712
+ }
 
 
 
 
 
 
1713
 
1714
+ }
1715
 
1716
+ };
1717
 
1718
+ Slick.prototype.prev = Slick.prototype.slickPrev = function() {
1719
 
1720
+ var _ = this;
1721
 
1722
+ _.changeSlide({
1723
+ data: {
1724
+ message: 'previous'
1725
+ }
1726
+ });
1727
 
1728
+ };
1729
 
1730
+ Slick.prototype.preventDefault = function(event) {
1731
 
1732
+ event.preventDefault();
 
 
1733
 
1734
+ };
1735
 
1736
+ Slick.prototype.progressiveLazyLoad = function( tryCount ) {
1737
 
1738
+ tryCount = tryCount || 1;
1739
 
1740
+ var _ = this,
1741
+ $imgsToLoad = $( 'img[data-lazy]', _.$slider ),
1742
+ image,
1743
+ imageSource,
1744
+ imageSrcSet,
1745
+ imageSizes,
1746
+ imageToLoad;
1747
 
1748
+ if ( $imgsToLoad.length ) {
1749
 
1750
+ image = $imgsToLoad.first();
1751
+ imageSource = image.attr('data-lazy');
1752
+ imageSrcSet = image.attr('data-srcset');
1753
+ imageSizes = image.attr('data-sizes') || _.$slider.attr('data-sizes');
1754
+ imageToLoad = document.createElement('img');
1755
 
1756
+ imageToLoad.onload = function() {
1757
 
1758
+ if (imageSrcSet) {
1759
+ image
1760
+ .attr('srcset', imageSrcSet );
1761
 
1762
+ if (imageSizes) {
1763
+ image
1764
+ .attr('sizes', imageSizes );
1765
+ }
1766
+ }
1767
 
1768
+ image
1769
+ .attr( 'src', imageSource )
1770
+ .removeAttr('data-lazy data-srcset data-sizes')
1771
+ .removeClass('slick-loading');
1772
 
1773
+ if ( _.options.adaptiveHeight === true ) {
1774
+ _.setPosition();
1775
+ }
1776
 
1777
+ _.$slider.trigger('lazyLoaded', [ _, image, imageSource ]);
1778
+ _.progressiveLazyLoad();
1779
 
1780
+ };
1781
 
1782
+ imageToLoad.onerror = function() {
1783
 
1784
+ if ( tryCount < 3 ) {
1785
 
1786
+ /**
1787
+ * try to load the image 3 times,
1788
+ * leave a slight delay so we don't get
1789
+ * servers blocking the request.
1790
+ */
1791
+ setTimeout( function() {
1792
+ _.progressiveLazyLoad( tryCount + 1 );
1793
+ }, 500 );
1794
 
1795
+ } else {
1796
 
1797
+ image
1798
+ .removeAttr( 'data-lazy' )
1799
+ .removeClass( 'slick-loading' )
1800
+ .addClass( 'slick-lazyload-error' );
1801
 
1802
+ _.$slider.trigger('lazyLoadError', [ _, image, imageSource ]);
1803
 
1804
+ _.progressiveLazyLoad();
1805
 
1806
+ }
1807
 
1808
+ };
1809
 
1810
+ imageToLoad.src = imageSource;
1811
 
1812
+ } else {
1813
 
1814
+ _.$slider.trigger('allImagesLoaded', [ _ ]);
 
 
1815
 
1816
+ }
 
 
1817
 
1818
+ };
1819
 
1820
+ Slick.prototype.refresh = function( initializing ) {
1821
 
1822
+ var _ = this, currentSlide, lastVisibleIndex;
1823
 
1824
+ lastVisibleIndex = _.slideCount - _.options.slidesToShow;
1825
 
1826
+ // in non-infinite sliders, we don't want to go past the
1827
+ // last visible index.
1828
+ if( !_.options.infinite && ( _.currentSlide > lastVisibleIndex )) {
1829
+ _.currentSlide = lastVisibleIndex;
1830
+ }
1831
 
1832
+ // if less slides than to show, go to start.
1833
+ if ( _.slideCount <= _.options.slidesToShow ) {
1834
+ _.currentSlide = 0;
1835
 
1836
+ }
1837
 
1838
+ currentSlide = _.currentSlide;
1839
 
1840
+ _.destroy(true);
1841
 
1842
+ $.extend(_, _.initials, { currentSlide: currentSlide });
1843
 
1844
+ _.init();
1845
 
1846
+ if( !initializing ) {
 
 
 
 
1847
 
1848
+ _.changeSlide({
1849
+ data: {
1850
+ message: 'index',
1851
+ index: currentSlide
1852
+ }
1853
+ }, false);
1854
 
1855
+ }
 
 
1856
 
1857
+ };
1858
 
1859
+ Slick.prototype.registerBreakpoints = function() {
 
 
 
1860
 
1861
+ var _ = this, breakpoint, currentBreakpoint, l,
1862
+ responsiveSettings = _.options.responsive || null;
 
1863
 
1864
+ if ( $.type(responsiveSettings) === 'array' && responsiveSettings.length ) {
 
1865
 
1866
+ _.respondTo = _.options.respondTo || 'window';
1867
 
1868
+ for ( breakpoint in responsiveSettings ) {
1869
 
1870
+ l = _.breakpoints.length-1;
1871
 
1872
+ if (responsiveSettings.hasOwnProperty(breakpoint)) {
1873
+ currentBreakpoint = responsiveSettings[breakpoint].breakpoint;
 
 
 
 
 
 
1874
 
1875
+ // loop through the breakpoints and cut out any existing
1876
+ // ones with the same breakpoint number, we don't want dupes.
1877
+ while( l >= 0 ) {
1878
+ if( _.breakpoints[l] && _.breakpoints[l] === currentBreakpoint ) {
1879
+ _.breakpoints.splice(l,1);
1880
+ }
1881
+ l--;
1882
+ }
1883
 
1884
+ _.breakpoints.push(currentBreakpoint);
1885
+ _.breakpointSettings[currentBreakpoint] = responsiveSettings[breakpoint].settings;
 
 
1886
 
1887
+ }
1888
 
1889
+ }
1890
 
1891
+ _.breakpoints.sort(function(a, b) {
1892
+ return ( _.options.mobileFirst ) ? a-b : b-a;
1893
+ });
1894
 
1895
+ }
1896
 
1897
+ };
1898
 
1899
+ Slick.prototype.reinit = function() {
1900
 
1901
+ var _ = this;
1902
 
1903
+ _.$slides =
1904
+ _.$slideTrack
1905
+ .children(_.options.slide)
1906
+ .addClass('slick-slide');
1907
 
1908
+ _.slideCount = _.$slides.length;
1909
 
1910
+ if (_.currentSlide >= _.slideCount && _.currentSlide !== 0) {
1911
+ _.currentSlide = _.currentSlide - _.options.slidesToScroll;
1912
+ }
1913
 
1914
+ if (_.slideCount <= _.options.slidesToShow) {
1915
+ _.currentSlide = 0;
1916
+ }
1917
 
1918
+ _.registerBreakpoints();
1919
 
1920
+ _.setProps();
1921
+ _.setupInfinite();
1922
+ _.buildArrows();
1923
+ _.updateArrows();
1924
+ _.initArrowEvents();
1925
+ _.buildDots();
1926
+ _.updateDots();
1927
+ _.initDotEvents();
1928
+ _.cleanUpSlideEvents();
1929
+ _.initSlideEvents();
1930
 
1931
+ _.checkResponsive(false, true);
 
 
1932
 
1933
+ if (_.options.focusOnSelect === true) {
1934
+ $(_.$slideTrack).children().on('click.slick', _.selectHandler);
1935
+ }
1936
 
1937
+ _.setSlideClasses(typeof _.currentSlide === 'number' ? _.currentSlide : 0);
1938
 
1939
+ _.setPosition();
1940
+ _.focusHandler();
1941
 
1942
+ _.paused = !_.options.autoplay;
1943
+ _.autoPlay();
1944
 
1945
+ _.$slider.trigger('reInit', [_]);
1946
 
1947
+ };
1948
 
1949
+ Slick.prototype.resize = function() {
 
 
 
 
 
1950
 
1951
+ var _ = this;
1952
 
1953
+ if ($(window).width() !== _.windowWidth) {
1954
+ clearTimeout(_.windowDelay);
1955
+ _.windowDelay = window.setTimeout(function() {
1956
+ _.windowWidth = $(window).width();
1957
+ _.checkResponsive();
1958
+ if( !_.unslicked ) { _.setPosition(); }
1959
+ }, 50);
1960
+ }
1961
+ };
1962
 
1963
+ Slick.prototype.removeSlide = Slick.prototype.slickRemove = function(index, removeBefore, removeAll) {
1964
 
1965
+ var _ = this;
 
1966
 
1967
+ if (typeof(index) === 'boolean') {
1968
+ removeBefore = index;
1969
+ index = removeBefore === true ? 0 : _.slideCount - 1;
1970
+ } else {
1971
+ index = removeBefore === true ? --index : index;
1972
+ }
1973
 
1974
+ if (_.slideCount < 1 || index < 0 || index > _.slideCount - 1) {
1975
+ return false;
1976
+ }
1977
 
1978
+ _.unload();
1979
 
1980
+ if (removeAll === true) {
1981
+ _.$slideTrack.children().remove();
1982
+ } else {
1983
+ _.$slideTrack.children(this.options.slide).eq(index).remove();
1984
+ }
1985
 
1986
+ _.$slides = _.$slideTrack.children(this.options.slide);
1987
 
1988
+ _.$slideTrack.children(this.options.slide).detach();
 
 
 
 
 
 
 
1989
 
1990
+ _.$slideTrack.append(_.$slides);
 
1991
 
1992
+ _.$slidesCache = _.$slides;
1993
 
1994
+ _.reinit();
1995
 
1996
+ };
 
 
1997
 
1998
+ Slick.prototype.setCSS = function(position) {
1999
 
2000
+ var _ = this,
2001
+ positionProps = {},
2002
+ x, y;
2003
 
2004
+ if (_.options.rtl === true) {
2005
+ position = -position;
2006
+ }
2007
+ x = _.positionProp == 'left' ? Math.ceil(position) + 'px' : '0px';
2008
+ y = _.positionProp == 'top' ? Math.ceil(position) + 'px' : '0px';
2009
 
2010
+ positionProps[_.positionProp] = position;
2011
 
2012
+ if (_.transformsEnabled === false) {
2013
+ _.$slideTrack.css(positionProps);
2014
+ } else {
2015
+ positionProps = {};
2016
+ if (_.cssTransitions === false) {
2017
+ positionProps[_.animType] = 'translate(' + x + ', ' + y + ')';
2018
+ _.$slideTrack.css(positionProps);
2019
+ } else {
2020
+ positionProps[_.animType] = 'translate3d(' + x + ', ' + y + ', 0px)';
2021
+ _.$slideTrack.css(positionProps);
2022
+ }
2023
+ }
2024
+
2025
+ };
2026
+
2027
+ Slick.prototype.setDimensions = function() {
2028
 
2029
+ var _ = this;
2030
 
2031
+ if (_.options.vertical === false) {
2032
+ if (_.options.centerMode === true) {
2033
+ _.$list.css({
2034
+ padding: ('0px ' + _.options.centerPadding)
2035
+ });
2036
+ }
2037
+ } else {
2038
+ _.$list.height(_.$slides.first().outerHeight(true) * _.options.slidesToShow);
2039
+ if (_.options.centerMode === true) {
2040
+ _.$list.css({
2041
+ padding: (_.options.centerPadding + ' 0px')
2042
+ });
2043
+ }
2044
+ }
2045
 
2046
+ _.listWidth = _.$list.width();
2047
+ _.listHeight = _.$list.height();
 
2048
 
 
2049
 
2050
+ if (_.options.vertical === false && _.options.variableWidth === false) {
2051
+ _.slideWidth = Math.ceil(_.listWidth / _.options.slidesToShow);
2052
+ _.$slideTrack.width(Math.ceil((_.slideWidth * _.$slideTrack.children('.slick-slide').length)));
 
 
 
 
 
 
 
2053
 
2054
+ } else if (_.options.variableWidth === true) {
2055
+ _.$slideTrack.width(5000 * _.slideCount);
2056
+ } else {
2057
+ _.slideWidth = Math.ceil(_.listWidth);
2058
+ _.$slideTrack.height(Math.ceil((_.$slides.first().outerHeight(true) * _.$slideTrack.children('.slick-slide').length)));
2059
+ }
2060
 
2061
+ var offset = _.$slides.first().outerWidth(true) - _.$slides.first().width();
2062
+ if (_.options.variableWidth === false) _.$slideTrack.children('.slick-slide').width(_.slideWidth - offset);
 
2063
 
2064
+ };
2065
 
2066
+ Slick.prototype.setFade = function() {
 
2067
 
2068
+ var _ = this,
2069
+ targetLeft;
2070
 
2071
+ _.$slides.each(function(index, element) {
2072
+ targetLeft = (_.slideWidth * index) * -1;
2073
+ if (_.options.rtl === true) {
2074
+ $(element).css({
2075
+ position: 'relative',
2076
+ right: targetLeft,
2077
+ top: 0,
2078
+ zIndex: _.options.zIndex - 2,
2079
+ opacity: 0
2080
+ });
2081
+ } else {
2082
+ $(element).css({
2083
+ position: 'relative',
2084
+ left: targetLeft,
2085
+ top: 0,
2086
+ zIndex: _.options.zIndex - 2,
2087
+ opacity: 0
2088
+ });
2089
+ }
2090
+ });
2091
 
2092
+ _.$slides.eq(_.currentSlide).css({
2093
+ zIndex: _.options.zIndex - 1,
2094
+ opacity: 1
2095
+ });
2096
 
2097
+ };
2098
 
2099
+ Slick.prototype.setHeight = function() {
2100
 
2101
+ var _ = this;
 
 
 
 
 
 
 
 
2102
 
2103
+ if (_.options.slidesToShow === 1 && _.options.adaptiveHeight === true && _.options.vertical === false) {
2104
+ var targetHeight = _.$slides.eq(_.currentSlide).outerHeight(true);
2105
+ _.$list.css('height', targetHeight);
2106
+ }
2107
 
2108
+ };
2109
 
2110
+ Slick.prototype.setOption =
2111
+ Slick.prototype.slickSetOption = function() {
 
 
 
 
2112
 
2113
+ /**
2114
+ * accepts arguments in format of:
2115
+ *
2116
+ * - for changing a single option's value:
2117
+ * .slick("setOption", option, value, refresh )
2118
+ *
2119
+ * - for changing a set of responsive options:
2120
+ * .slick("setOption", 'responsive', [{}, ...], refresh )
2121
+ *
2122
+ * - for updating multiple values at once (not responsive)
2123
+ * .slick("setOption", { 'option': value, ... }, refresh )
2124
+ */
2125
 
2126
+ var _ = this, l, item, option, value, refresh = false, type;
2127
 
2128
+ if( $.type( arguments[0] ) === 'object' ) {
 
 
 
 
2129
 
2130
+ option = arguments[0];
2131
+ refresh = arguments[1];
2132
+ type = 'multiple';
2133
 
2134
+ } else if ( $.type( arguments[0] ) === 'string' ) {
2135
 
2136
+ option = arguments[0];
2137
+ value = arguments[1];
2138
+ refresh = arguments[2];
2139
 
2140
+ if ( arguments[0] === 'responsive' && $.type( arguments[1] ) === 'array' ) {
2141
 
2142
+ type = 'responsive';
2143
 
2144
+ } else if ( typeof arguments[1] !== 'undefined' ) {
2145
 
2146
+ type = 'single';
2147
 
2148
+ }
 
 
2149
 
2150
+ }
 
 
 
 
2151
 
2152
+ if ( type === 'single' ) {
2153
 
2154
+ _.options[option] = value;
 
 
 
 
 
 
 
 
 
 
 
2155
 
 
2156
 
2157
+ } else if ( type === 'multiple' ) {
2158
 
2159
+ $.each( option , function( opt, val ) {
2160
 
2161
+ _.options[opt] = val;
 
 
 
 
 
 
 
 
 
 
 
 
 
2162
 
2163
+ });
 
2164
 
2165
 
2166
+ } else if ( type === 'responsive' ) {
 
 
2167
 
2168
+ for ( item in value ) {
 
 
 
 
 
2169
 
2170
+ if( $.type( _.options.responsive ) !== 'array' ) {
 
2171
 
2172
+ _.options.responsive = [ value[item] ];
2173
 
2174
+ } else {
2175
 
2176
+ l = _.options.responsive.length-1;
 
2177
 
2178
+ // loop through the responsive object and splice out duplicates.
2179
+ while( l >= 0 ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2180
 
2181
+ if( _.options.responsive[l].breakpoint === value[item].breakpoint ) {
 
 
 
2182
 
2183
+ _.options.responsive.splice(l,1);
2184
 
2185
+ }
2186
 
2187
+ l--;
2188
 
2189
+ }
 
 
 
2190
 
2191
+ _.options.responsive.push( value[item] );
2192
 
2193
+ }
 
2194
 
2195
+ }
 
 
 
 
 
 
 
 
 
 
 
2196
 
2197
+ }
2198
 
2199
+ if ( refresh ) {
2200
 
2201
+ _.unload();
2202
+ _.reinit();
 
2203
 
2204
+ }
2205
 
2206
+ };
 
 
2207
 
2208
+ Slick.prototype.setPosition = function() {
2209
 
2210
+ var _ = this;
2211
 
2212
+ _.setDimensions();
2213
 
2214
+ _.setHeight();
2215
 
2216
+ if (_.options.fade === false) {
2217
+ _.setCSS(_.getLeft(_.currentSlide));
2218
+ } else {
2219
+ _.setFade();
2220
+ }
2221
 
2222
+ _.$slider.trigger('setPosition', [_]);
2223
 
2224
+ };
2225
 
2226
+ Slick.prototype.setProps = function() {
2227
 
2228
+ var _ = this,
2229
+ bodyStyle = document.body.style;
2230
 
2231
+ _.positionProp = _.options.vertical === true ? 'top' : 'left';
2232
 
2233
+ if (_.positionProp === 'top') {
2234
+ _.$slider.addClass('slick-vertical');
2235
+ } else {
2236
+ _.$slider.removeClass('slick-vertical');
2237
+ }
2238
 
2239
+ if (bodyStyle.WebkitTransition !== undefined ||
2240
+ bodyStyle.MozTransition !== undefined ||
2241
+ bodyStyle.msTransition !== undefined) {
2242
+ if (_.options.useCSS === true) {
2243
+ _.cssTransitions = true;
2244
+ }
2245
+ }
2246
 
2247
+ if ( _.options.fade ) {
2248
+ if ( typeof _.options.zIndex === 'number' ) {
2249
+ if( _.options.zIndex < 3 ) {
2250
+ _.options.zIndex = 3;
2251
+ }
2252
+ } else {
2253
+ _.options.zIndex = _.defaults.zIndex;
2254
+ }
2255
+ }
2256
 
2257
+ if (bodyStyle.OTransform !== undefined) {
2258
+ _.animType = 'OTransform';
2259
+ _.transformType = '-o-transform';
2260
+ _.transitionType = 'OTransition';
2261
+ if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;
2262
+ }
2263
+ if (bodyStyle.MozTransform !== undefined) {
2264
+ _.animType = 'MozTransform';
2265
+ _.transformType = '-moz-transform';
2266
+ _.transitionType = 'MozTransition';
2267
+ if (bodyStyle.perspectiveProperty === undefined && bodyStyle.MozPerspective === undefined) _.animType = false;
2268
+ }
2269
+ if (bodyStyle.webkitTransform !== undefined) {
2270
+ _.animType = 'webkitTransform';
2271
+ _.transformType = '-webkit-transform';
2272
+ _.transitionType = 'webkitTransition';
2273
+ if (bodyStyle.perspectiveProperty === undefined && bodyStyle.webkitPerspective === undefined) _.animType = false;
2274
+ }
2275
+ if (bodyStyle.msTransform !== undefined) {
2276
+ _.animType = 'msTransform';
2277
+ _.transformType = '-ms-transform';
2278
+ _.transitionType = 'msTransition';
2279
+ if (bodyStyle.msTransform === undefined) _.animType = false;
2280
+ }
2281
+ if (bodyStyle.transform !== undefined && _.animType !== false) {
2282
+ _.animType = 'transform';
2283
+ _.transformType = 'transform';
2284
+ _.transitionType = 'transition';
2285
+ }
2286
+ _.transformsEnabled = _.options.useTransform && (_.animType !== null && _.animType !== false);
2287
+ };
2288
 
 
2289
 
2290
+ Slick.prototype.setSlideClasses = function(index) {
2291
 
2292
+ var _ = this,
2293
+ centerOffset, allSlides, indexOffset, remainder;
2294
 
2295
+ allSlides = _.$slider
2296
+ .find('.slick-slide')
2297
+ .removeClass('slick-active slick-center slick-current')
2298
+ .attr('aria-hidden', 'true');
2299
 
2300
+ _.$slides
2301
+ .eq(index)
2302
+ .addClass('slick-current');
2303
 
2304
+ if (_.options.centerMode === true) {
2305
 
2306
+ var evenCoef = _.options.slidesToShow % 2 === 0 ? 1 : 0;
 
2307
 
2308
+ centerOffset = Math.floor(_.options.slidesToShow / 2);
2309
 
2310
+ if (_.options.infinite === true) {
2311
 
2312
+ if (index >= centerOffset && index <= (_.slideCount - 1) - centerOffset) {
2313
+ _.$slides
2314
+ .slice(index - centerOffset + evenCoef, index + centerOffset + 1)
2315
+ .addClass('slick-active')
2316
+ .attr('aria-hidden', 'false');
2317
 
2318
+ } else {
2319
 
2320
+ indexOffset = _.options.slidesToShow + index;
2321
+ allSlides
2322
+ .slice(indexOffset - centerOffset + 1 + evenCoef, indexOffset + centerOffset + 2)
2323
+ .addClass('slick-active')
2324
+ .attr('aria-hidden', 'false');
2325
 
2326
+ }
2327
+
2328
+ if (index === 0) {
2329
+
2330
+ allSlides
2331
+ .eq(allSlides.length - 1 - _.options.slidesToShow)
2332
+ .addClass('slick-center');
2333
+
2334
+ } else if (index === _.slideCount - 1) {
2335
+
2336
+ allSlides
2337
+ .eq(_.options.slidesToShow)
2338
+ .addClass('slick-center');
2339
 
2340
+ }
2341
 
2342
+ }
2343
 
2344
+ _.$slides
2345
+ .eq(index)
2346
+ .addClass('slick-center');
2347
 
2348
+ } else {
2349
 
2350
+ if (index >= 0 && index <= (_.slideCount - _.options.slidesToShow)) {
 
2351
 
2352
+ _.$slides
2353
+ .slice(index, index + _.options.slidesToShow)
2354
+ .addClass('slick-active')
2355
+ .attr('aria-hidden', 'false');
2356
 
2357
+ } else if (allSlides.length <= _.options.slidesToShow) {
2358
 
2359
+ allSlides
2360
+ .addClass('slick-active')
2361
+ .attr('aria-hidden', 'false');
2362
 
2363
+ } else {
2364
 
2365
+ remainder = _.slideCount % _.options.slidesToShow;
2366
+ indexOffset = _.options.infinite === true ? _.options.slidesToShow + index : index;
2367
 
2368
+ if (_.options.slidesToShow == _.options.slidesToScroll && (_.slideCount - index) < _.options.slidesToShow) {
2369
 
2370
+ allSlides
2371
+ .slice(indexOffset - (_.options.slidesToShow - remainder), indexOffset + remainder)
2372
+ .addClass('slick-active')
2373
+ .attr('aria-hidden', 'false');
 
2374
 
2375
+ } else {
2376
 
2377
+ allSlides
2378
+ .slice(indexOffset, indexOffset + _.options.slidesToShow)
2379
+ .addClass('slick-active')
2380
+ .attr('aria-hidden', 'false');
2381
 
2382
+ }
2383
 
2384
+ }
 
2385
 
2386
+ }
2387
 
2388
+ if (_.options.lazyLoad === 'ondemand' || _.options.lazyLoad === 'anticipated') {
2389
+ _.lazyLoad();
2390
+ }
2391
+ };
 
2392
 
2393
+ Slick.prototype.setupInfinite = function() {
 
 
 
 
 
 
2394
 
2395
+ var _ = this,
2396
+ i, slideIndex, infiniteCount;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2397
 
2398
+ if (_.options.fade === true) {
2399
+ _.options.centerMode = false;
2400
+ }
2401
 
2402
+ if (_.options.infinite === true && _.options.fade === false) {
 
 
2403
 
2404
+ slideIndex = null;
2405
 
2406
+ if (_.slideCount > _.options.slidesToShow) {
2407
 
2408
+ if (_.options.centerMode === true) {
2409
+ infiniteCount = _.options.slidesToShow + 1;
2410
+ } else {
2411
+ infiniteCount = _.options.slidesToShow;
2412
+ }
2413
 
2414
+ for (i = _.slideCount; i > (_.slideCount -
2415
+ infiniteCount); i -= 1) {
2416
+ slideIndex = i - 1;
2417
+ $(_.$slides[slideIndex]).clone(true).attr('id', '')
2418
+ .attr('data-slick-index', slideIndex - _.slideCount)
2419
+ .prependTo(_.$slideTrack).addClass('slick-cloned');
2420
+ }
2421
+ for (i = 0; i < infiniteCount + _.slideCount; i += 1) {
2422
+ slideIndex = i;
2423
+ $(_.$slides[slideIndex]).clone(true).attr('id', '')
2424
+ .attr('data-slick-index', slideIndex + _.slideCount)
2425
+ .appendTo(_.$slideTrack).addClass('slick-cloned');
2426
+ }
2427
+ _.$slideTrack.find('.slick-cloned').find('[id]').each(function() {
2428
+ $(this).attr('id', '');
2429
+ });
2430
 
2431
+ }
 
 
2432
 
2433
+ }
2434
 
2435
+ };
 
2436
 
2437
+ Slick.prototype.interrupt = function( toggle ) {
2438
 
2439
+ var _ = this;
 
 
 
2440
 
2441
+ if( !toggle ) {
2442
+ _.autoPlay();
2443
+ }
2444
+ _.interrupted = toggle;
2445
 
2446
+ };
 
 
 
2447
 
2448
+ Slick.prototype.selectHandler = function(event) {
2449
 
2450
+ var _ = this;
2451
 
2452
+ var targetElement =
2453
+ $(event.target).is('.slick-slide') ?
2454
+ $(event.target) :
2455
+ $(event.target).parents('.slick-slide');
2456
 
2457
+ var index = parseInt(targetElement.attr('data-slick-index'));
 
 
2458
 
2459
+ if (!index) index = 0;
2460
 
2461
+ if (_.slideCount <= _.options.slidesToShow) {
2462
 
2463
+ _.slideHandler(index, false, true);
2464
+ return;
2465
 
2466
+ }
 
 
2467
 
2468
+ _.slideHandler(index);
2469
 
2470
+ };
2471
 
2472
+ Slick.prototype.slideHandler = function(index, sync, dontAnimate) {
2473
 
2474
+ var targetSlide, animSlide, oldSlide, slideLeft, targetLeft = null,
2475
+ _ = this, navTarget;
 
 
 
2476
 
2477
+ sync = sync || false;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2478
 
2479
+ if (_.animating === true && _.options.waitForAnimate === true) {
2480
+ return;
2481
+ }
2482
 
2483
+ if (_.options.fade === true && _.currentSlide === index) {
2484
+ return;
2485
+ }
2486
 
2487
+ if (sync === false) {
2488
+ _.asNavFor(index);
2489
+ }
2490
 
2491
+ targetSlide = index;
2492
+ targetLeft = _.getLeft(targetSlide);
2493
+ slideLeft = _.getLeft(_.currentSlide);
2494
 
2495
+ _.currentLeft = _.swipeLeft === null ? slideLeft : _.swipeLeft;
2496
 
2497
+ if (_.options.infinite === false && _.options.centerMode === false && (index < 0 || index > _.getDotCount() * _.options.slidesToScroll)) {
2498
+ if (_.options.fade === false) {
2499
+ targetSlide = _.currentSlide;
2500
+ if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) {
2501
+ _.animateSlide(slideLeft, function() {
2502
+ _.postSlide(targetSlide);
2503
+ });
2504
+ } else {
2505
+ _.postSlide(targetSlide);
2506
+ }
2507
+ }
2508
+ return;
2509
+ } else if (_.options.infinite === false && _.options.centerMode === true && (index < 0 || index > (_.slideCount - _.options.slidesToScroll))) {
2510
+ if (_.options.fade === false) {
2511
+ targetSlide = _.currentSlide;
2512
+ if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) {
2513
+ _.animateSlide(slideLeft, function() {
2514
+ _.postSlide(targetSlide);
2515
+ });
2516
+ } else {
2517
+ _.postSlide(targetSlide);
2518
+ }
2519
+ }
2520
+ return;
2521
+ }
2522
 
2523
+ if ( _.options.autoplay ) {
2524
+ clearInterval(_.autoPlayTimer);
2525
+ }
2526
 
2527
+ if (targetSlide < 0) {
2528
+ if (_.slideCount % _.options.slidesToScroll !== 0) {
2529
+ animSlide = _.slideCount - (_.slideCount % _.options.slidesToScroll);
2530
+ } else {
2531
+ animSlide = _.slideCount + targetSlide;
2532
+ }
2533
+ } else if (targetSlide >= _.slideCount) {
2534
+ if (_.slideCount % _.options.slidesToScroll !== 0) {
2535
+ animSlide = 0;
2536
+ } else {
2537
+ animSlide = targetSlide - _.slideCount;
2538
+ }
2539
+ } else {
2540
+ animSlide = targetSlide;
2541
+ }
2542
 
2543
+ _.animating = true;
2544
 
2545
+ _.$slider.trigger('beforeChange', [_, _.currentSlide, animSlide]);
 
 
 
2546
 
2547
+ oldSlide = _.currentSlide;
2548
+ _.currentSlide = animSlide;
2549
 
2550
+ _.setSlideClasses(_.currentSlide);
2551
 
2552
+ if ( _.options.asNavFor ) {
2553
 
2554
+ navTarget = _.getNavTarget();
2555
+ navTarget = navTarget.slick('getSlick');
 
2556
 
2557
+ if ( navTarget.slideCount <= navTarget.options.slidesToShow ) {
2558
+ navTarget.setSlideClasses(_.currentSlide);
2559
+ }
2560
 
2561
+ }
2562
 
2563
+ _.updateDots();
2564
+ _.updateArrows();
2565
 
2566
+ if (_.options.fade === true) {
2567
+ if (dontAnimate !== true) {
2568
 
2569
+ _.fadeSlideOut(oldSlide);
 
2570
 
2571
+ _.fadeSlide(animSlide, function() {
2572
+ _.postSlide(animSlide);
2573
+ });
2574
 
2575
+ } else {
2576
+ _.postSlide(animSlide);
2577
+ }
2578
+ _.animateHeight();
2579
+ return;
2580
+ }
2581
 
2582
+ if (dontAnimate !== true && _.slideCount > _.options.slidesToShow) {
2583
+ _.animateSlide(targetLeft, function() {
2584
+ _.postSlide(animSlide);
2585
+ });
2586
+ } else {
2587
+ _.postSlide(animSlide);
2588
+ }
2589
 
2590
+ };
 
 
2591
 
2592
+ Slick.prototype.startLoad = function() {
 
 
2593
 
2594
+ var _ = this;
 
 
2595
 
2596
+ if (_.options.arrows === true && _.slideCount > _.options.slidesToShow) {
2597
 
2598
+ _.$prevArrow.hide();
2599
+ _.$nextArrow.hide();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2600
 
2601
+ }
 
 
2602
 
2603
+ if (_.options.dots === true && _.slideCount > _.options.slidesToShow) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2604
 
2605
+ _.$dots.hide();
2606
 
2607
+ }
2608
 
2609
+ _.$slider.addClass('slick-loading');
 
2610
 
2611
+ };
2612
 
2613
+ Slick.prototype.swipeDirection = function() {
2614
 
2615
+ var xDist, yDist, r, swipeAngle, _ = this;
 
2616
 
2617
+ xDist = _.touchObject.startX - _.touchObject.curX;
2618
+ yDist = _.touchObject.startY - _.touchObject.curY;
2619
+ r = Math.atan2(yDist, xDist);
2620
 
2621
+ swipeAngle = Math.round(r * 180 / Math.PI);
2622
+ if (swipeAngle < 0) {
2623
+ swipeAngle = 360 - Math.abs(swipeAngle);
2624
+ }
2625
 
2626
+ if ((swipeAngle <= 45) && (swipeAngle >= 0)) {
2627
+ return (_.options.rtl === false ? 'left' : 'right');
2628
+ }
2629
+ if ((swipeAngle <= 360) && (swipeAngle >= 315)) {
2630
+ return (_.options.rtl === false ? 'left' : 'right');
2631
+ }
2632
+ if ((swipeAngle >= 135) && (swipeAngle <= 225)) {
2633
+ return (_.options.rtl === false ? 'right' : 'left');
2634
+ }
2635
+ if (_.options.verticalSwiping === true) {
2636
+ if ((swipeAngle >= 35) && (swipeAngle <= 135)) {
2637
+ return 'down';
2638
+ } else {
2639
+ return 'up';
2640
+ }
2641
+ }
2642
 
2643
+ return 'vertical';
 
2644
 
2645
+ };
2646
 
2647
+ Slick.prototype.swipeEnd = function(event) {
 
 
2648
 
2649
+ var _ = this,
2650
+ slideCount,
2651
+ direction;
 
 
 
2652
 
2653
+ _.dragging = false;
2654
+ _.swiping = false;
 
 
 
 
 
2655
 
2656
+ if (_.scrolling) {
2657
+ _.scrolling = false;
2658
+ return false;
2659
+ }
2660
 
2661
+ _.interrupted = false;
2662
+ _.shouldClick = ( _.touchObject.swipeLength > 10 ) ? false : true;
2663
 
2664
+ if ( _.touchObject.curX === undefined ) {
2665
+ return false;
2666
+ }
2667
 
2668
+ if ( _.touchObject.edgeHit === true ) {
2669
+ _.$slider.trigger('edge', [_, _.swipeDirection() ]);
2670
+ }
2671
 
2672
+ if ( _.touchObject.swipeLength >= _.touchObject.minSwipe ) {
 
2673
 
2674
+ direction = _.swipeDirection();
2675
 
2676
+ switch ( direction ) {
2677
 
2678
+ case 'left':
2679
+ case 'down':
2680
 
2681
+ slideCount =
2682
+ _.options.swipeToSlide ?
2683
+ _.checkNavigable( _.currentSlide + _.getSlideCount() ) :
2684
+ _.currentSlide + _.getSlideCount();
2685
 
2686
+ _.currentDirection = 0;
2687
 
2688
+ break;
2689
 
2690
+ case 'right':
2691
+ case 'up':
2692
 
2693
+ slideCount =
2694
+ _.options.swipeToSlide ?
2695
+ _.checkNavigable( _.currentSlide - _.getSlideCount() ) :
2696
+ _.currentSlide - _.getSlideCount();
2697
 
2698
+ _.currentDirection = 1;
 
 
2699
 
2700
+ break;
 
 
 
2701
 
2702
+ default:
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2703
 
 
2704
 
2705
+ }
2706
 
2707
+ if( direction != 'vertical' ) {
2708
 
2709
+ _.slideHandler( slideCount );
2710
+ _.touchObject = {};
2711
+ _.$slider.trigger('swipe', [_, direction ]);
2712
 
2713
+ }
 
 
2714
 
2715
+ } else {
 
 
2716
 
2717
+ if ( _.touchObject.startX !== _.touchObject.curX ) {
 
 
2718
 
2719
+ _.slideHandler( _.currentSlide );
2720
+ _.touchObject = {};
2721
 
2722
+ }
2723
 
2724
+ }
2725
 
2726
+ };
 
2727
 
2728
+ Slick.prototype.swipeHandler = function(event) {
 
 
 
2729
 
2730
+ var _ = this;
2731
 
2732
+ if ((_.options.swipe === false) || ('ontouchend' in document && _.options.swipe === false)) {
2733
+ return;
2734
+ } else if (_.options.draggable === false && event.type.indexOf('mouse') !== -1) {
2735
+ return;
2736
+ }
2737
 
2738
+ _.touchObject.fingerCount = event.originalEvent && event.originalEvent.touches !== undefined ?
2739
+ event.originalEvent.touches.length : 1;
2740
 
2741
+ _.touchObject.minSwipe = _.listWidth / _.options
2742
+ .touchThreshold;
 
 
2743
 
2744
+ if (_.options.verticalSwiping === true) {
2745
+ _.touchObject.minSwipe = _.listHeight / _.options
2746
+ .touchThreshold;
2747
+ }
2748
 
2749
+ switch (event.data.action) {
2750
 
2751
+ case 'start':
2752
+ _.swipeStart(event);
2753
+ break;
2754
 
2755
+ case 'move':
2756
+ _.swipeMove(event);
2757
+ break;
2758
 
2759
+ case 'end':
2760
+ _.swipeEnd(event);
2761
+ break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2762
 
2763
+ }
2764
 
2765
+ };
2766
 
2767
+ Slick.prototype.swipeMove = function(event) {
2768
 
2769
+ var _ = this,
2770
+ edgeWasHit = false,
2771
+ curLeft, swipeDirection, swipeLength, positionOffset, touches, verticalSwipeLength;
 
 
2772
 
2773
+ touches = event.originalEvent !== undefined ? event.originalEvent.touches : null;
 
2774
 
2775
+ if (!_.dragging || _.scrolling || touches && touches.length !== 1) {
2776
+ return false;
2777
+ }
2778
 
2779
+ curLeft = _.getLeft(_.currentSlide);
 
 
 
2780
 
2781
+ _.touchObject.curX = touches !== undefined ? touches[0].pageX : event.clientX;
2782
+ _.touchObject.curY = touches !== undefined ? touches[0].pageY : event.clientY;
2783
 
2784
+ _.touchObject.swipeLength = Math.round(Math.sqrt(
2785
+ Math.pow(_.touchObject.curX - _.touchObject.startX, 2)));
 
2786
 
2787
+ verticalSwipeLength = Math.round(Math.sqrt(
2788
+ Math.pow(_.touchObject.curY - _.touchObject.startY, 2)));
 
2789
 
2790
+ if (!_.options.verticalSwiping && !_.swiping && verticalSwipeLength > 4) {
2791
+ _.scrolling = true;
2792
+ return false;
2793
+ }
2794
 
2795
+ if (_.options.verticalSwiping === true) {
2796
+ _.touchObject.swipeLength = verticalSwipeLength;
2797
+ }
2798
 
2799
+ swipeDirection = _.swipeDirection();
2800
 
2801
+ if (event.originalEvent !== undefined && _.touchObject.swipeLength > 4) {
2802
+ _.swiping = true;
2803
+ event.preventDefault();
2804
+ }
2805
 
2806
+ positionOffset = (_.options.rtl === false ? 1 : -1) * (_.touchObject.curX > _.touchObject.startX ? 1 : -1);
2807
+ if (_.options.verticalSwiping === true) {
2808
+ positionOffset = _.touchObject.curY > _.touchObject.startY ? 1 : -1;
2809
+ }
2810
 
 
2811
 
2812
+ swipeLength = _.touchObject.swipeLength;
 
 
2813
 
2814
+ _.touchObject.edgeHit = false;
2815
 
2816
+ if (_.options.infinite === false) {
2817
+ if ((_.currentSlide === 0 && swipeDirection === 'right') || (_.currentSlide >= _.getDotCount() && swipeDirection === 'left')) {
2818
+ swipeLength = _.touchObject.swipeLength * _.options.edgeFriction;
2819
+ _.touchObject.edgeHit = true;
2820
+ }
2821
+ }
2822
 
2823
+ if (_.options.vertical === false) {
2824
+ _.swipeLeft = curLeft + swipeLength * positionOffset;
2825
+ } else {
2826
+ _.swipeLeft = curLeft + (swipeLength * (_.$list.height() / _.listWidth)) * positionOffset;
2827
+ }
2828
+ if (_.options.verticalSwiping === true) {
2829
+ _.swipeLeft = curLeft + swipeLength * positionOffset;
2830
+ }
2831
 
2832
+ if (_.options.fade === true || _.options.touchMove === false) {
2833
+ return false;
2834
+ }
 
2835
 
2836
+ if (_.animating === true) {
2837
+ _.swipeLeft = null;
2838
+ return false;
2839
+ }
2840
 
2841
+ _.setCSS(_.swipeLeft);
 
 
2842
 
2843
+ };
 
 
2844
 
2845
+ Slick.prototype.swipeStart = function(event) {
 
 
 
2846
 
2847
+ var _ = this,
2848
+ touches;
2849
 
2850
+ _.interrupted = true;
2851
 
2852
+ if (_.touchObject.fingerCount !== 1 || _.slideCount <= _.options.slidesToShow) {
2853
+ _.touchObject = {};
2854
+ return false;
2855
+ }
2856
 
2857
+ if (event.originalEvent !== undefined && event.originalEvent.touches !== undefined) {
2858
+ touches = event.originalEvent.touches[0];
2859
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2860
 
2861
+ _.touchObject.startX = _.touchObject.curX = touches !== undefined ? touches.pageX : event.clientX;
2862
+ _.touchObject.startY = _.touchObject.curY = touches !== undefined ? touches.pageY : event.clientY;
 
 
2863
 
2864
+ _.dragging = true;
2865
 
2866
+ };
2867
 
2868
+ Slick.prototype.unfilterSlides = Slick.prototype.slickUnfilter = function() {
2869
 
2870
+ var _ = this;
 
2871
 
2872
+ if (_.$slidesCache !== null) {
2873
 
2874
+ _.unload();
 
 
 
2875
 
2876
+ _.$slideTrack.children(this.options.slide).detach();
 
 
2877
 
2878
+ _.$slidesCache.appendTo(_.$slideTrack);
 
2879
 
2880
+ _.reinit();
2881
 
2882
+ }
2883
 
2884
+ };
2885
 
2886
+ Slick.prototype.unload = function() {
2887
 
2888
+ var _ = this;
2889
 
2890
+ $('.slick-cloned', _.$slider).remove();
2891
 
2892
+ if (_.$dots) {
2893
+ _.$dots.remove();
2894
+ }
2895
 
2896
+ if (_.$prevArrow && _.htmlExpr.test(_.options.prevArrow)) {
2897
+ _.$prevArrow.remove();
2898
+ }
2899
 
2900
+ if (_.$nextArrow && _.htmlExpr.test(_.options.nextArrow)) {
2901
+ _.$nextArrow.remove();
2902
+ }
2903
 
2904
+ _.$slides
2905
+ .removeClass('slick-slide slick-active slick-visible slick-current')
2906
+ .attr('aria-hidden', 'true')
2907
+ .css('width', '');
2908
 
2909
+ };
2910
 
2911
+ Slick.prototype.unslick = function(fromBreakpoint) {
2912
 
2913
+ var _ = this;
2914
+ _.$slider.trigger('unslick', [_, fromBreakpoint]);
2915
+ _.destroy();
2916
 
2917
+ };
2918
 
2919
+ Slick.prototype.updateArrows = function() {
 
 
2920
 
2921
+ var _ = this,
2922
+ centerOffset;
 
2923
 
2924
+ centerOffset = Math.floor(_.options.slidesToShow / 2);
 
 
2925
 
2926
+ if ( _.options.arrows === true &&
2927
+ _.slideCount > _.options.slidesToShow &&
2928
+ !_.options.infinite ) {
 
2929
 
2930
+ _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2931
+ _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2932
 
2933
+ if (_.currentSlide === 0) {
2934
 
2935
+ _.$prevArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2936
+ _.$nextArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
 
2937
 
2938
+ } else if (_.currentSlide >= _.slideCount - _.options.slidesToShow && _.options.centerMode === false) {
2939
 
2940
+ _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2941
+ _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2942
 
2943
+ } else if (_.currentSlide >= _.slideCount - 1 && _.options.centerMode === true) {
 
2944
 
2945
+ _.$nextArrow.addClass('slick-disabled').attr('aria-disabled', 'true');
2946
+ _.$prevArrow.removeClass('slick-disabled').attr('aria-disabled', 'false');
2947
 
2948
+ }
 
 
2949
 
2950
+ }
 
2951
 
2952
+ };
2953
 
2954
+ Slick.prototype.updateDots = function() {
 
2955
 
2956
+ var _ = this;
2957
 
2958
+ if (_.$dots !== null) {
 
2959
 
2960
+ _.$dots
2961
+ .find('li')
2962
+ .removeClass('slick-active')
2963
+ .end();
 
 
2964
 
2965
+ _.$dots
2966
+ .find('li')
2967
+ .eq(Math.floor(_.currentSlide / _.options.slidesToScroll))
2968
+ .addClass('slick-active');
2969
 
2970
+ }
2971
 
2972
+ };
2973
 
2974
+ Slick.prototype.visibility = function() {
 
 
2975
 
2976
+ var _ = this;
 
 
 
 
2977
 
2978
+ if ( _.options.autoplay ) {
 
 
 
 
 
2979
 
2980
+ if ( document[_.hidden] ) {
2981
 
2982
+ _.interrupted = true;
2983
 
2984
+ } else {
2985
 
2986
+ _.interrupted = false;
2987
 
2988
+ }
2989
 
2990
+ }
2991
 
2992
+ };
 
 
 
 
 
 
2993
 
2994
+ $.fn.slick = function() {
2995
+ var _ = this,
2996
+ opt = arguments[0],
2997
+ args = Array.prototype.slice.call(arguments, 1),
2998
+ l = _.length,
2999
+ i,
3000
+ ret;
3001
+ for (i = 0; i < l; i++) {
3002
+ if (typeof opt == 'object' || typeof opt == 'undefined')
3003
+ _[i].slick = new Slick(_[i], opt);
3004
+ else
3005
+ ret = _[i].slick[opt].apply(_[i].slick, args);
3006
+ if (typeof ret != 'undefined') return ret;
3007
+ }
3008
+ return _;
3009
+ };
 
 
 
3010
 
3011
  }));
public/assets/js/slick.min.js CHANGED
@@ -1 +1 @@
1
- !function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):"undefined"!=typeof exports?module.exports=factory(require("jquery")):factory(jQuery)}((function($){"use strict";var Slick=window.Slick||{};(Slick=function(){var instanceUid=0;function Slick(element,settings){var _=this,dataSettings;_.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:$(element),appendDots:$(element),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev" aria-label="Previous" tabindex="0" role="button">Previous</button>',nextArrow:'<button type="button" data-role="none" class="slick-next" aria-label="Next" tabindex="0" role="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(slider,i){return $('<button type="button" data-role="none" role="button" tabindex="0" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},_.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},$.extend(_,_.initials),_.activeBreakpoint=null,_.animType=null,_.animProp=null,_.breakpoints=[],_.breakpointSettings=[],_.cssTransitions=!1,_.focussed=!1,_.interrupted=!1,_.hidden="hidden",_.paused=!0,_.positionProp=null,_.respondTo=null,_.rowCount=1,_.shouldClick=!0,_.$slider=$(element),_.$slidesCache=null,_.transformType=null,_.transitionType=null,_.visibilityChange="visibilitychange",_.windowWidth=0,_.windowTimer=null,dataSettings=$(element).data("slick")||{},_.options=$.extend({},_.defaults,settings,dataSettings),_.currentSlide=_.options.initialSlide,_.originalSettings=_.options,void 0!==document.mozHidden?(_.hidden="mozHidden",_.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(_.hidden="webkitHidden",_.visibilityChange="webkitvisibilitychange"),_.autoPlay=$.proxy(_.autoPlay,_),_.autoPlayClear=$.proxy(_.autoPlayClear,_),_.autoPlayIterator=$.proxy(_.autoPlayIterator,_),_.changeSlide=$.proxy(_.changeSlide,_),_.clickHandler=$.proxy(_.clickHandler,_),_.selectHandler=$.proxy(_.selectHandler,_),_.setPosition=$.proxy(_.setPosition,_),_.swipeHandler=$.proxy(_.swipeHandler,_),_.dragHandler=$.proxy(_.dragHandler,_),_.keyHandler=$.proxy(_.keyHandler,_),_.instanceUid=instanceUid++,_.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,_.registerBreakpoints(),_.init(!0)}return Slick}()).prototype.activateADA=function(){var _;this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false",tabindex:"0"}).find("a, input, button, select").attr({tabindex:"0"})},Slick.prototype.addSlide=Slick.prototype.slickAdd=function(markup,index,addBefore){var _=this;if("boolean"==typeof index)addBefore=index,index=null;else if(index<0||index>=_.slideCount)return!1;_.unload(),"number"==typeof index?0===index&&0===_.$slides.length?$(markup).appendTo(_.$slideTrack):addBefore?$(markup).insertBefore(_.$slides.eq(index)):$(markup).insertAfter(_.$slides.eq(index)):!0===addBefore?$(markup).prependTo(_.$slideTrack):$(markup).appendTo(_.$slideTrack),_.$slides=_.$slideTrack.children(this.options.slide),_.$slideTrack.children(this.options.slide).detach(),_.$slideTrack.append(_.$slides),_.$slides.each((function(index,element){$(element).attr("data-slick-index",index)})),_.$slidesCache=_.$slides,_.reinit()},Slick.prototype.animateHeight=function(){var _=this;if(1===_.options.slidesToShow&&!0===_.options.adaptiveHeight&&!1===_.options.vertical){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(!0);_.$list.animate({height:targetHeight},_.options.speed)}},Slick.prototype.animateSlide=function(targetLeft,callback){var animProps={},_=this;_.animateHeight(),!0===_.options.rtl&&!1===_.options.vertical&&(targetLeft=-targetLeft),!1===_.transformsEnabled?!1===_.options.vertical?_.$slideTrack.animate({left:targetLeft},_.options.speed,_.options.easing,callback):_.$slideTrack.animate({top:targetLeft},_.options.speed,_.options.easing,callback):!1===_.cssTransitions?(!0===_.options.rtl&&(_.currentLeft=-_.currentLeft),$({animStart:_.currentLeft}).animate({animStart:targetLeft},{duration:_.options.speed,easing:_.options.easing,step:function(now){now=Math.ceil(now),!1===_.options.vertical?(animProps[_.animType]="translate("+now+"px, 0px)",_.$slideTrack.css(animProps)):(animProps[_.animType]="translate(0px,"+now+"px)",_.$slideTrack.css(animProps))},complete:function(){callback&&callback.call()}})):(_.applyTransition(),targetLeft=Math.ceil(targetLeft),!1===_.options.vertical?animProps[_.animType]="translate3d("+targetLeft+"px, 0px, 0px)":animProps[_.animType]="translate3d(0px,"+targetLeft+"px, 0px)",_.$slideTrack.css(animProps),callback&&setTimeout((function(){_.disableTransition(),callback.call()}),_.options.speed))},Slick.prototype.getNavTarget=function(){var _=this,asNavFor=_.options.asNavFor;return asNavFor&&null!==asNavFor&&(asNavFor=$(asNavFor).not(_.$slider)),asNavFor},Slick.prototype.asNavFor=function(index){var _,asNavFor=this.getNavTarget();null!==asNavFor&&"object"==typeof asNavFor&&asNavFor.each((function(){var target=$(this).slick("getSlick");target.unslicked||target.slideHandler(index,!0)}))},Slick.prototype.applyTransition=function(slide){var _=this,transition={};!1===_.options.fade?transition[_.transitionType]=_.transformType+" "+_.options.speed+"ms "+_.options.cssEase:transition[_.transitionType]="opacity "+_.options.speed+"ms "+_.options.cssEase,!1===_.options.fade?_.$slideTrack.css(transition):_.$slides.eq(slide).css(transition)},Slick.prototype.autoPlay=function(){var _=this;_.autoPlayClear(),_.slideCount>_.options.slidesToShow&&(_.autoPlayTimer=setInterval(_.autoPlayIterator,_.options.autoplaySpeed))},Slick.prototype.autoPlayClear=function(){var _=this;_.autoPlayTimer&&clearInterval(_.autoPlayTimer)},Slick.prototype.autoPlayIterator=function(){var _=this,slideTo=_.currentSlide+_.options.slidesToScroll;_.paused||_.interrupted||_.focussed||(!1===_.options.infinite&&(1===_.direction&&_.currentSlide+1===_.slideCount-1?_.direction=0:0===_.direction&&(slideTo=_.currentSlide-_.options.slidesToScroll,_.currentSlide-1==0&&(_.direction=1))),_.slideHandler(slideTo))},Slick.prototype.buildArrows=function(){var _=this;!0===_.options.arrows&&(_.$prevArrow=$(_.options.prevArrow).addClass("slick-arrow"),_.$nextArrow=$(_.options.nextArrow).addClass("slick-arrow"),_.slideCount>_.options.slidesToShow?(_.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),_.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),_.htmlExpr.test(_.options.prevArrow)&&_.$prevArrow.prependTo(_.options.appendArrows),_.htmlExpr.test(_.options.nextArrow)&&_.$nextArrow.appendTo(_.options.appendArrows),!0!==_.options.infinite&&_.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):_.$prevArrow.add(_.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},Slick.prototype.buildDots=function(){var _=this,i,dot;if(!0===_.options.dots&&_.slideCount>_.options.slidesToShow){for(_.$slider.addClass("slick-dotted"),dot=$("<ul />").addClass(_.options.dotsClass),i=0;i<=_.getDotCount();i+=1)dot.append($("<li />").append(_.options.customPaging.call(this,_,i)));_.$dots=dot.appendTo(_.options.appendDots),_.$dots.find("li").first().addClass("slick-active").attr("aria-hidden","false")}},Slick.prototype.buildOut=function(){var _=this;_.$slides=_.$slider.children(_.options.slide+":not(.slick-cloned)").addClass("slick-slide"),_.slideCount=_.$slides.length,_.$slides.each((function(index,element){$(element).attr("data-slick-index",index).data("originalStyling",$(element).attr("style")||"")})),_.$slider.addClass("slick-slider"),_.$slideTrack=0===_.slideCount?$('<div class="slick-track"/>').appendTo(_.$slider):_.$slides.wrapAll('<div class="slick-track"/>').parent(),_.$list=_.$slideTrack.wrap('<div aria-live="polite" class="slick-list"/>').parent(),_.$slideTrack.css("opacity",0),!0!==_.options.centerMode&&!0!==_.options.swipeToSlide||(_.options.slidesToScroll=1),$("img[data-lazy]",_.$slider).not("[src]").addClass("slick-loading"),_.setupInfinite(),_.buildArrows(),_.buildDots(),_.updateDots(),_.setSlideClasses("number"==typeof _.currentSlide?_.currentSlide:0),!0===_.options.draggable&&_.$list.addClass("draggable")},Slick.prototype.buildRows=function(){var _=this,a,b,c,newSlides,numOfSlides,originalSlides,slidesPerSection;if(newSlides=document.createDocumentFragment(),originalSlides=_.$slider.children(),_.options.rows>1){for(slidesPerSection=_.options.slidesPerRow*_.options.rows,numOfSlides=Math.ceil(originalSlides.length/slidesPerSection),a=0;a<numOfSlides;a++){var slide=document.createElement("div");for(b=0;b<_.options.rows;b++){var row=document.createElement("div");for(c=0;c<_.options.slidesPerRow;c++){var target=a*slidesPerSection+(b*_.options.slidesPerRow+c);originalSlides.get(target)&&row.appendChild(originalSlides.get(target))}slide.appendChild(row)}newSlides.appendChild(slide)}_.$slider.empty().append(newSlides),_.$slider.children().children().children().css({width:100/_.options.slidesPerRow+"%",display:"inline-block"})}},Slick.prototype.checkResponsive=function(initial,forceUpdate){var _=this,breakpoint,targetBreakpoint,respondToWidth,triggerBreakpoint=!1,sliderWidth=_.$slider.width(),windowWidth=window.innerWidth||$(window).width();if("window"===_.respondTo?respondToWidth=windowWidth:"slider"===_.respondTo?respondToWidth=sliderWidth:"min"===_.respondTo&&(respondToWidth=Math.min(windowWidth,sliderWidth)),_.options.responsive&&_.options.responsive.length&&null!==_.options.responsive){for(breakpoint in targetBreakpoint=null,_.breakpoints)_.breakpoints.hasOwnProperty(breakpoint)&&(!1===_.originalSettings.mobileFirst?respondToWidth<_.breakpoints[breakpoint]&&(targetBreakpoint=_.breakpoints[breakpoint]):respondToWidth>_.breakpoints[breakpoint]&&(targetBreakpoint=_.breakpoints[breakpoint]));null!==targetBreakpoint?null!==_.activeBreakpoint?(targetBreakpoint!==_.activeBreakpoint||forceUpdate)&&(_.activeBreakpoint=targetBreakpoint,"unslick"===_.breakpointSettings[targetBreakpoint]?_.unslick(targetBreakpoint):(_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]),!0===initial&&(_.currentSlide=_.options.initialSlide),_.refresh(initial)),triggerBreakpoint=targetBreakpoint):(_.activeBreakpoint=targetBreakpoint,"unslick"===_.breakpointSettings[targetBreakpoint]?_.unslick(targetBreakpoint):(_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]),!0===initial&&(_.currentSlide=_.options.initialSlide),_.refresh(initial)),triggerBreakpoint=targetBreakpoint):null!==_.activeBreakpoint&&(_.activeBreakpoint=null,_.options=_.originalSettings,!0===initial&&(_.currentSlide=_.options.initialSlide),_.refresh(initial),triggerBreakpoint=targetBreakpoint),initial||!1===triggerBreakpoint||_.$slider.trigger("breakpoint",[_,triggerBreakpoint])}},Slick.prototype.changeSlide=function(event,dontAnimate){var _=this,$target=$(event.currentTarget),indexOffset,slideOffset,unevenOffset;switch($target.is("a")&&event.preventDefault(),$target.is("li")||($target=$target.closest("li")),indexOffset=(unevenOffset=_.slideCount%_.options.slidesToScroll!=0)?0:(_.slideCount-_.currentSlide)%_.options.slidesToScroll,event.data.message){case"previous":slideOffset=0===indexOffset?_.options.slidesToScroll:_.options.slidesToShow-indexOffset,_.slideCount>_.options.slidesToShow&&_.slideHandler(_.currentSlide-slideOffset,!1,dontAnimate);break;case"next":slideOffset=0===indexOffset?_.options.slidesToScroll:indexOffset,_.slideCount>_.options.slidesToShow&&_.slideHandler(_.currentSlide+slideOffset,!1,dontAnimate);break;case"index":var index=0===event.data.index?0:event.data.index||$target.index()*_.options.slidesToScroll;_.slideHandler(_.checkNavigable(index),!1,dontAnimate),$target.children().trigger("focus");break;default:return}},Slick.prototype.checkNavigable=function(index){var _,navigables,prevNavigable;if(prevNavigable=0,index>(navigables=this.getNavigableIndexes())[navigables.length-1])index=navigables[navigables.length-1];else for(var n in navigables){if(index<navigables[n]){index=prevNavigable;break}prevNavigable=navigables[n]}return index},Slick.prototype.cleanUpEvents=function(){var _=this;_.options.dots&&null!==_.$dots&&$("li",_.$dots).off("click.slick",_.changeSlide).off("mouseenter.slick",$.proxy(_.interrupt,_,!0)).off("mouseleave.slick",$.proxy(_.interrupt,_,!1)),_.$slider.off("focus.slick blur.slick"),!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&(_.$prevArrow&&_.$prevArrow.off("click.slick",_.changeSlide),_.$nextArrow&&_.$nextArrow.off("click.slick",_.changeSlide)),_.$list.off("touchstart.slick mousedown.slick",_.swipeHandler),_.$list.off("touchmove.slick mousemove.slick",_.swipeHandler),_.$list.off("touchend.slick mouseup.slick",_.swipeHandler),_.$list.off("touchcancel.slick mouseleave.slick",_.swipeHandler),_.$list.off("click.slick",_.clickHandler),$(document).off(_.visibilityChange,_.visibility),_.cleanUpSlideEvents(),!0===_.options.accessibility&&_.$list.off("keydown.slick",_.keyHandler),!0===_.options.focusOnSelect&&$(_.$slideTrack).children().off("click.slick",_.selectHandler),$(window).off("orientationchange.slick.slick-"+_.instanceUid,_.orientationChange),$(window).off("resize.slick.slick-"+_.instanceUid,_.resize),$("[draggable!=true]",_.$slideTrack).off("dragstart",_.preventDefault),$(window).off("load.slick.slick-"+_.instanceUid,_.setPosition),$(document).off("ready.slick.slick-"+_.instanceUid,_.setPosition)},Slick.prototype.cleanUpSlideEvents=function(){var _=this;_.$list.off("mouseenter.slick",$.proxy(_.interrupt,_,!0)),_.$list.off("mouseleave.slick",$.proxy(_.interrupt,_,!1))},Slick.prototype.cleanUpRows=function(){var _=this,originalSlides;_.options.rows>1&&((originalSlides=_.$slides.children().children()).removeAttr("style"),_.$slider.empty().append(originalSlides))},Slick.prototype.clickHandler=function(event){var _;!1===this.shouldClick&&(event.stopImmediatePropagation(),event.stopPropagation(),event.preventDefault())},Slick.prototype.destroy=function(refresh){var _=this;_.autoPlayClear(),_.touchObject={},_.cleanUpEvents(),$(".slick-cloned",_.$slider).detach(),_.$dots&&_.$dots.remove(),_.$prevArrow&&_.$prevArrow.length&&(_.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),_.htmlExpr.test(_.options.prevArrow)&&_.$prevArrow.remove()),_.$nextArrow&&_.$nextArrow.length&&(_.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),_.htmlExpr.test(_.options.nextArrow)&&_.$nextArrow.remove()),_.$slides&&(_.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){$(this).attr("style",$(this).data("originalStyling"))})),_.$slideTrack.children(this.options.slide).detach(),_.$slideTrack.detach(),_.$list.detach(),_.$slider.append(_.$slides)),_.cleanUpRows(),_.$slider.removeClass("slick-slider"),_.$slider.removeClass("slick-initialized"),_.$slider.removeClass("slick-dotted"),_.unslicked=!0,refresh||_.$slider.trigger("destroy",[_])},Slick.prototype.disableTransition=function(slide){var _=this,transition={};transition[_.transitionType]="",!1===_.options.fade?_.$slideTrack.css(transition):_.$slides.eq(slide).css(transition)},Slick.prototype.fadeSlide=function(slideIndex,callback){var _=this;!1===_.cssTransitions?(_.$slides.eq(slideIndex).css({zIndex:_.options.zIndex}),_.$slides.eq(slideIndex).animate({opacity:1},_.options.speed,_.options.easing,callback)):(_.applyTransition(slideIndex),_.$slides.eq(slideIndex).css({opacity:1,zIndex:_.options.zIndex}),callback&&setTimeout((function(){_.disableTransition(slideIndex),callback.call()}),_.options.speed))},Slick.prototype.fadeSlideOut=function(slideIndex){var _=this;!1===_.cssTransitions?_.$slides.eq(slideIndex).animate({opacity:0,zIndex:_.options.zIndex-2},_.options.speed,_.options.easing):(_.applyTransition(slideIndex),_.$slides.eq(slideIndex).css({opacity:0,zIndex:_.options.zIndex-2}))},Slick.prototype.filterSlides=Slick.prototype.slickFilter=function(filter){var _=this;null!==filter&&(_.$slidesCache=_.$slides,_.unload(),_.$slideTrack.children(this.options.slide).detach(),_.$slidesCache.filter(filter).appendTo(_.$slideTrack),_.reinit())},Slick.prototype.focusHandler=function(){var _=this;_.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*:not(.slick-arrow)",(function(event){event.stopImmediatePropagation();var $sf=$(this);setTimeout((function(){_.options.pauseOnFocus&&(_.focussed=$sf.is(":focus"),_.autoPlay())}),0)}))},Slick.prototype.getCurrent=Slick.prototype.slickCurrentSlide=function(){var _;return this.currentSlide},Slick.prototype.getDotCount=function(){var _=this,breakPoint=0,counter=0,pagerQty=0;if(!0===_.options.infinite)for(;breakPoint<_.slideCount;)++pagerQty,breakPoint=counter+_.options.slidesToScroll,counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;else if(!0===_.options.centerMode)pagerQty=_.slideCount;else if(_.options.asNavFor)for(;breakPoint<_.slideCount;)++pagerQty,breakPoint=counter+_.options.slidesToScroll,counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;else pagerQty=1+Math.ceil((_.slideCount-_.options.slidesToShow)/_.options.slidesToScroll);return pagerQty-1},Slick.prototype.getLeft=function(slideIndex){var _=this,targetLeft,verticalHeight,verticalOffset=0,targetSlide;return _.slideOffset=0,verticalHeight=_.$slides.first().outerHeight(!0),!0===_.options.infinite?(_.slideCount>_.options.slidesToShow&&(_.slideOffset=_.slideWidth*_.options.slidesToShow*-1,verticalOffset=verticalHeight*_.options.slidesToShow*-1),_.slideCount%_.options.slidesToScroll!=0&&slideIndex+_.options.slidesToScroll>_.slideCount&&_.slideCount>_.options.slidesToShow&&(slideIndex>_.slideCount?(_.slideOffset=(_.options.slidesToShow-(slideIndex-_.slideCount))*_.slideWidth*-1,verticalOffset=(_.options.slidesToShow-(slideIndex-_.slideCount))*verticalHeight*-1):(_.slideOffset=_.slideCount%_.options.slidesToScroll*_.slideWidth*-1,verticalOffset=_.slideCount%_.options.slidesToScroll*verticalHeight*-1))):slideIndex+_.options.slidesToShow>_.slideCount&&(_.slideOffset=(slideIndex+_.options.slidesToShow-_.slideCount)*_.slideWidth,verticalOffset=(slideIndex+_.options.slidesToShow-_.slideCount)*verticalHeight),_.slideCount<=_.options.slidesToShow&&(_.slideOffset=0,verticalOffset=0),!0===_.options.centerMode&&!0===_.options.infinite?_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)-_.slideWidth:!0===_.options.centerMode&&(_.slideOffset=0,_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)),targetLeft=!1===_.options.vertical?slideIndex*_.slideWidth*-1+_.slideOffset:slideIndex*verticalHeight*-1+verticalOffset,!0===_.options.variableWidth&&(targetSlide=_.slideCount<=_.options.slidesToShow||!1===_.options.infinite?_.$slideTrack.children(".slick-slide").eq(slideIndex):_.$slideTrack.children(".slick-slide").eq(slideIndex+_.options.slidesToShow),targetLeft=!0===_.options.rtl?targetSlide[0]?-1*(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width()):0:targetSlide[0]?-1*targetSlide[0].offsetLeft:0,!0===_.options.centerMode&&(targetSlide=_.slideCount<=_.options.slidesToShow||!1===_.options.infinite?_.$slideTrack.children(".slick-slide").eq(slideIndex):_.$slideTrack.children(".slick-slide").eq(slideIndex+_.options.slidesToShow+1),targetLeft=!0===_.options.rtl?targetSlide[0]?-1*(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width()):0:targetSlide[0]?-1*targetSlide[0].offsetLeft:0,targetLeft+=(_.$list.width()-targetSlide.outerWidth())/2)),targetLeft},Slick.prototype.getOption=Slick.prototype.slickGetOption=function(option){var _;return this.options[option]},Slick.prototype.getNavigableIndexes=function(){var _=this,breakPoint=0,counter=0,indexes=[],max;for(!1===_.options.infinite?max=_.slideCount:(breakPoint=-1*_.options.slidesToScroll,counter=-1*_.options.slidesToScroll,max=2*_.slideCount);breakPoint<max;)indexes.push(breakPoint),breakPoint=counter+_.options.slidesToScroll,counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;return indexes},Slick.prototype.getSlick=function(){return this},Slick.prototype.getSlideCount=function(){var _=this,slidesTraversed,swipedSlide,centerOffset;return centerOffset=!0===_.options.centerMode?_.slideWidth*Math.floor(_.options.slidesToShow/2):0,!0===_.options.swipeToSlide?(_.$slideTrack.find(".slick-slide").each((function(index,slide){if(slide.offsetLeft-centerOffset+$(slide).outerWidth()/2>-1*_.swipeLeft)return swipedSlide=slide,!1})),slidesTraversed=Math.abs($(swipedSlide).attr("data-slick-index")-_.currentSlide)||1):_.options.slidesToScroll},Slick.prototype.goTo=Slick.prototype.slickGoTo=function(slide,dontAnimate){var _;this.changeSlide({data:{message:"index",index:parseInt(slide)}},dontAnimate)},Slick.prototype.init=function(creation){var _=this;$(_.$slider).hasClass("slick-initialized")||($(_.$slider).addClass("slick-initialized"),_.buildRows(),_.buildOut(),_.setProps(),_.startLoad(),_.loadSlider(),_.initializeEvents(),_.updateArrows(),_.updateDots(),_.checkResponsive(!0),_.focusHandler()),creation&&_.$slider.trigger("init",[_]),!0===_.options.accessibility&&_.initADA(),_.options.autoplay&&(_.paused=!1,_.autoPlay())},Slick.prototype.initADA=function(){var _=this;_.$slides.add(_.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),_.$slideTrack.attr("role","listbox"),_.$slides.not(_.$slideTrack.find(".slick-cloned")).each((function(i){$(this).attr({role:"option","aria-describedby":"slick-slide"+_.instanceUid+i})})),null!==_.$dots&&_.$dots.attr("role","tablist").find("li").each((function(i){$(this).attr({role:"tab","aria-selected":"false","aria-controls":"navigation"+_.instanceUid+i,id:"slick-slide"+_.instanceUid+i})})).closest("div").attr("role","toolbar"),_.activateADA()},Slick.prototype.initArrowEvents=function(){var _=this;!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&(_.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},_.changeSlide),_.$nextArrow.off("click.slick").on("click.slick",{message:"next"},_.changeSlide))},Slick.prototype.initDotEvents=function(){var _=this;!0===_.options.dots&&_.slideCount>_.options.slidesToShow&&$("li",_.$dots).on("click.slick",{message:"index"},_.changeSlide),!0===_.options.dots&&!0===_.options.pauseOnDotsHover&&$("li",_.$dots).on("mouseenter.slick",$.proxy(_.interrupt,_,!0)).on("mouseleave.slick",$.proxy(_.interrupt,_,!1))},Slick.prototype.initSlideEvents=function(){var _=this;_.options.pauseOnHover&&(_.$list.on("mouseenter.slick",$.proxy(_.interrupt,_,!0)),_.$list.on("mouseleave.slick",$.proxy(_.interrupt,_,!1)))},Slick.prototype.initializeEvents=function(){var _=this;_.initArrowEvents(),_.initDotEvents(),_.initSlideEvents(),_.$list.on("touchstart.slick mousedown.slick",{action:"start"},_.swipeHandler),_.$list.on("touchmove.slick mousemove.slick",{action:"move"},_.swipeHandler),_.$list.on("touchend.slick mouseup.slick",{action:"end"},_.swipeHandler),_.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},_.swipeHandler),_.$list.on("click.slick",_.clickHandler),$(document).on(_.visibilityChange,$.proxy(_.visibility,_)),!0===_.options.accessibility&&_.$list.on("keydown.slick",_.keyHandler),!0===_.options.focusOnSelect&&$(_.$slideTrack).children().on("click.slick",_.selectHandler),$(window).on("orientationchange.slick.slick-"+_.instanceUid,$.proxy(_.orientationChange,_)),$(window).on("resize.slick.slick-"+_.instanceUid,$.proxy(_.resize,_)),$("[draggable!=true]",_.$slideTrack).on("dragstart",_.preventDefault),$(window).on("load.slick.slick-"+_.instanceUid,_.setPosition),$(document).on("ready.slick.slick-"+_.instanceUid,_.setPosition)},Slick.prototype.initUI=function(){var _=this;!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&(_.$prevArrow.show(),_.$nextArrow.show()),!0===_.options.dots&&_.slideCount>_.options.slidesToShow&&_.$dots.show()},Slick.prototype.keyHandler=function(event){var _=this;event.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===event.keyCode&&!0===_.options.accessibility?_.changeSlide({data:{message:!0===_.options.rtl?"next":"previous"}}):39===event.keyCode&&!0===_.options.accessibility&&_.changeSlide({data:{message:!0===_.options.rtl?"previous":"next"}}))},Slick.prototype.lazyLoad=function(){var _=this,loadRange,cloneRange,rangeStart,rangeEnd;function loadImages(imagesScope){$("img[data-lazy]",imagesScope).each((function(){var image=$(this),imageSource=$(this).attr("data-lazy"),imageToLoad=document.createElement("img");imageToLoad.onload=function(){image.animate({opacity:0},100,(function(){image.attr("src",imageSource).animate({opacity:1},200,(function(){image.removeAttr("data-lazy").removeClass("slick-loading")})),_.$slider.trigger("lazyLoaded",[_,image,imageSource])}))},imageToLoad.onerror=function(){image.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),_.$slider.trigger("lazyLoadError",[_,image,imageSource])},imageToLoad.src=imageSource}))}!0===_.options.centerMode?!0===_.options.infinite?rangeEnd=(rangeStart=_.currentSlide+(_.options.slidesToShow/2+1))+_.options.slidesToShow+2:(rangeStart=Math.max(0,_.currentSlide-(_.options.slidesToShow/2+1)),rangeEnd=_.options.slidesToShow/2+1+2+_.currentSlide):(rangeStart=_.options.infinite?_.options.slidesToShow+_.currentSlide:_.currentSlide,rangeEnd=Math.ceil(rangeStart+_.options.slidesToShow),!0===_.options.fade&&(rangeStart>0&&rangeStart--,rangeEnd<=_.slideCount&&rangeEnd++)),loadImages(loadRange=_.$slider.find(".slick-slide").slice(rangeStart,rangeEnd)),_.slideCount<=_.options.slidesToShow?loadImages(cloneRange=_.$slider.find(".slick-slide")):_.currentSlide>=_.slideCount-_.options.slidesToShow?loadImages(cloneRange=_.$slider.find(".slick-cloned").slice(0,_.options.slidesToShow)):0===_.currentSlide&&loadImages(cloneRange=_.$slider.find(".slick-cloned").slice(-1*_.options.slidesToShow))},Slick.prototype.loadSlider=function(){var _=this;_.setPosition(),_.$slideTrack.css({opacity:1}),_.$slider.removeClass("slick-loading"),_.initUI(),"progressive"===_.options.lazyLoad&&_.progressiveLazyLoad()},Slick.prototype.next=Slick.prototype.slickNext=function(){var _;this.changeSlide({data:{message:"next"}})},Slick.prototype.orientationChange=function(){var _=this;_.checkResponsive(),_.setPosition()},Slick.prototype.pause=Slick.prototype.slickPause=function(){var _=this;_.autoPlayClear(),_.paused=!0},Slick.prototype.play=Slick.prototype.slickPlay=function(){var _=this;_.autoPlay(),_.options.autoplay=!0,_.paused=!1,_.focussed=!1,_.interrupted=!1},Slick.prototype.postSlide=function(index){var _=this;_.unslicked||(_.$slider.trigger("afterChange",[_,index]),_.animating=!1,_.setPosition(),_.swipeLeft=null,_.options.autoplay&&_.autoPlay(),!0===_.options.accessibility&&_.initADA())},Slick.prototype.prev=Slick.prototype.slickPrev=function(){var _;this.changeSlide({data:{message:"previous"}})},Slick.prototype.preventDefault=function(event){event.preventDefault()},Slick.prototype.progressiveLazyLoad=function(tryCount){tryCount=tryCount||1;var _=this,$imgsToLoad=$("img[data-lazy]",_.$slider),image,imageSource,imageToLoad;$imgsToLoad.length?(image=$imgsToLoad.first(),imageSource=image.attr("data-lazy"),(imageToLoad=document.createElement("img")).onload=function(){image.attr("src",imageSource).removeAttr("data-lazy").removeClass("slick-loading"),!0===_.options.adaptiveHeight&&_.setPosition(),_.$slider.trigger("lazyLoaded",[_,image,imageSource]),_.progressiveLazyLoad()},imageToLoad.onerror=function(){tryCount<3?setTimeout((function(){_.progressiveLazyLoad(tryCount+1)}),500):(image.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),_.$slider.trigger("lazyLoadError",[_,image,imageSource]),_.progressiveLazyLoad())},imageToLoad.src=imageSource):_.$slider.trigger("allImagesLoaded",[_])},Slick.prototype.refresh=function(initializing){var _=this,currentSlide,lastVisibleIndex;lastVisibleIndex=_.slideCount-_.options.slidesToShow,!_.options.infinite&&_.currentSlide>lastVisibleIndex&&(_.currentSlide=lastVisibleIndex),_.slideCount<=_.options.slidesToShow&&(_.currentSlide=0),currentSlide=_.currentSlide,_.destroy(!0),$.extend(_,_.initials,{currentSlide:currentSlide}),_.init(),initializing||_.changeSlide({data:{message:"index",index:currentSlide}},!1)},Slick.prototype.registerBreakpoints=function(){var _=this,breakpoint,currentBreakpoint,l,responsiveSettings=_.options.responsive||null;if("array"===$.type(responsiveSettings)&&responsiveSettings.length){for(breakpoint in _.respondTo=_.options.respondTo||"window",responsiveSettings)if(l=_.breakpoints.length-1,currentBreakpoint=responsiveSettings[breakpoint].breakpoint,responsiveSettings.hasOwnProperty(breakpoint)){for(;l>=0;)_.breakpoints[l]&&_.breakpoints[l]===currentBreakpoint&&_.breakpoints.splice(l,1),l--;_.breakpoints.push(currentBreakpoint),_.breakpointSettings[currentBreakpoint]=responsiveSettings[breakpoint].settings}_.breakpoints.sort((function(a,b){return _.options.mobileFirst?a-b:b-a}))}},Slick.prototype.reinit=function(){var _=this;_.$slides=_.$slideTrack.children(_.options.slide).addClass("slick-slide"),_.slideCount=_.$slides.length,_.currentSlide>=_.slideCount&&0!==_.currentSlide&&(_.currentSlide=_.currentSlide-_.options.slidesToScroll),_.slideCount<=_.options.slidesToShow&&(_.currentSlide=0),_.registerBreakpoints(),_.setProps(),_.setupInfinite(),_.buildArrows(),_.updateArrows(),_.initArrowEvents(),_.buildDots(),_.updateDots(),_.initDotEvents(),_.cleanUpSlideEvents(),_.initSlideEvents(),_.checkResponsive(!1,!0),!0===_.options.focusOnSelect&&$(_.$slideTrack).children().on("click.slick",_.selectHandler),_.setSlideClasses("number"==typeof _.currentSlide?_.currentSlide:0),_.setPosition(),_.focusHandler(),_.paused=!_.options.autoplay,_.autoPlay(),_.$slider.trigger("reInit",[_])},Slick.prototype.resize=function(){var _=this;$(window).width()!==_.windowWidth&&(clearTimeout(_.windowDelay),_.windowDelay=window.setTimeout((function(){_.windowWidth=$(window).width(),_.checkResponsive(),_.unslicked||_.setPosition()}),50))},Slick.prototype.removeSlide=Slick.prototype.slickRemove=function(index,removeBefore,removeAll){var _=this;if(index="boolean"==typeof index?!0===(removeBefore=index)?0:_.slideCount-1:!0===removeBefore?--index:index,_.slideCount<1||index<0||index>_.slideCount-1)return!1;_.unload(),!0===removeAll?_.$slideTrack.children().remove():_.$slideTrack.children(this.options.slide).eq(index).remove(),_.$slides=_.$slideTrack.children(this.options.slide),_.$slideTrack.children(this.options.slide).detach(),_.$slideTrack.append(_.$slides),_.$slidesCache=_.$slides,_.reinit()},Slick.prototype.setCSS=function(position){var _=this,positionProps={},x,y;!0===_.options.rtl&&(position=-position),x="left"==_.positionProp?Math.ceil(position)+"px":"0px",y="top"==_.positionProp?Math.ceil(position)+"px":"0px",positionProps[_.positionProp]=position,!1===_.transformsEnabled?_.$slideTrack.css(positionProps):(positionProps={},!1===_.cssTransitions?(positionProps[_.animType]="translate("+x+", "+y+")",_.$slideTrack.css(positionProps)):(positionProps[_.animType]="translate3d("+x+", "+y+", 0px)",_.$slideTrack.css(positionProps)))},Slick.prototype.setDimensions=function(){var _=this;!1===_.options.vertical?!0===_.options.centerMode&&_.$list.css({padding:"0px "+_.options.centerPadding}):(_.$list.height(_.$slides.first().outerHeight(!0)*_.options.slidesToShow),!0===_.options.centerMode&&_.$list.css({padding:_.options.centerPadding+" 0px"})),_.listWidth=_.$list.width(),_.listHeight=_.$list.height(),!1===_.options.vertical&&!1===_.options.variableWidth?(_.slideWidth=Math.ceil(_.listWidth/_.options.slidesToShow),_.$slideTrack.width(Math.ceil(_.slideWidth*_.$slideTrack.children(".slick-slide").length))):!0===_.options.variableWidth?_.$slideTrack.width(5e3*_.slideCount):(_.slideWidth=Math.ceil(_.listWidth),_.$slideTrack.height(Math.ceil(_.$slides.first().outerHeight(!0)*_.$slideTrack.children(".slick-slide").length)));var offset=_.$slides.first().outerWidth(!0)-_.$slides.first().width();!1===_.options.variableWidth&&_.$slideTrack.children(".slick-slide").width(_.slideWidth-offset)},Slick.prototype.setFade=function(){var _=this,targetLeft;_.$slides.each((function(index,element){targetLeft=_.slideWidth*index*-1,!0===_.options.rtl?$(element).css({position:"relative",right:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0}):$(element).css({position:"relative",left:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0})})),_.$slides.eq(_.currentSlide).css({zIndex:_.options.zIndex-1,opacity:1})},Slick.prototype.setHeight=function(){var _=this;if(1===_.options.slidesToShow&&!0===_.options.adaptiveHeight&&!1===_.options.vertical){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(!0);_.$list.css("height",targetHeight)}},Slick.prototype.setOption=Slick.prototype.slickSetOption=function(){var _=this,l,item,option,value,refresh=!1,type;if("object"===$.type(arguments[0])?(option=arguments[0],refresh=arguments[1],type="multiple"):"string"===$.type(arguments[0])&&(option=arguments[0],value=arguments[1],refresh=arguments[2],"responsive"===arguments[0]&&"array"===$.type(arguments[1])?type="responsive":void 0!==arguments[1]&&(type="single")),"single"===type)_.options[option]=value;else if("multiple"===type)$.each(option,(function(opt,val){_.options[opt]=val}));else if("responsive"===type)for(item in value)if("array"!==$.type(_.options.responsive))_.options.responsive=[value[item]];else{for(l=_.options.responsive.length-1;l>=0;)_.options.responsive[l].breakpoint===value[item].breakpoint&&_.options.responsive.splice(l,1),l--;_.options.responsive.push(value[item])}refresh&&(_.unload(),_.reinit())},Slick.prototype.setPosition=function(){var _=this;_.setDimensions(),_.setHeight(),!1===_.options.fade?_.setCSS(_.getLeft(_.currentSlide)):_.setFade(),_.$slider.trigger("setPosition",[_])},Slick.prototype.setProps=function(){var _=this,bodyStyle=document.body.style;_.positionProp=!0===_.options.vertical?"top":"left","top"===_.positionProp?_.$slider.addClass("slick-vertical"):_.$slider.removeClass("slick-vertical"),void 0===bodyStyle.WebkitTransition&&void 0===bodyStyle.MozTransition&&void 0===bodyStyle.msTransition||!0===_.options.useCSS&&(_.cssTransitions=!0),_.options.fade&&("number"==typeof _.options.zIndex?_.options.zIndex<3&&(_.options.zIndex=3):_.options.zIndex=_.defaults.zIndex),void 0!==bodyStyle.OTransform&&(_.animType="OTransform",_.transformType="-o-transform",_.transitionType="OTransition",void 0===bodyStyle.perspectiveProperty&&void 0===bodyStyle.webkitPerspective&&(_.animType=!1)),void 0!==bodyStyle.MozTransform&&(_.animType="MozTransform",_.transformType="-moz-transform",_.transitionType="MozTransition",void 0===bodyStyle.perspectiveProperty&&void 0===bodyStyle.MozPerspective&&(_.animType=!1)),void 0!==bodyStyle.webkitTransform&&(_.animType="webkitTransform",_.transformType="-webkit-transform",_.transitionType="webkitTransition",void 0===bodyStyle.perspectiveProperty&&void 0===bodyStyle.webkitPerspective&&(_.animType=!1)),void 0!==bodyStyle.msTransform&&(_.animType="msTransform",_.transformType="-ms-transform",_.transitionType="msTransition",void 0===bodyStyle.msTransform&&(_.animType=!1)),void 0!==bodyStyle.transform&&!1!==_.animType&&(_.animType="transform",_.transformType="transform",_.transitionType="transition"),_.transformsEnabled=_.options.useTransform&&null!==_.animType&&!1!==_.animType},Slick.prototype.setSlideClasses=function(index){var _=this,centerOffset,allSlides,indexOffset,remainder;allSlides=_.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),_.$slides.eq(index).addClass("slick-current"),!0===_.options.centerMode?(centerOffset=Math.floor(_.options.slidesToShow/2),!0===_.options.infinite&&(index>=centerOffset&&index<=_.slideCount-1-centerOffset?_.$slides.slice(index-centerOffset,index+centerOffset+1).addClass("slick-active").attr("aria-hidden","false"):(indexOffset=_.options.slidesToShow+index,allSlides.slice(indexOffset-centerOffset+1,indexOffset+centerOffset+2).addClass("slick-active").attr("aria-hidden","false")),0===index?allSlides.eq(allSlides.length-1-_.options.slidesToShow).addClass("slick-center"):index===_.slideCount-1&&allSlides.eq(_.options.slidesToShow).addClass("slick-center")),_.$slides.eq(index).addClass("slick-center")):index>=0&&index<=_.slideCount-_.options.slidesToShow?_.$slides.slice(index,index+_.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):allSlides.length<=_.options.slidesToShow?allSlides.addClass("slick-active").attr("aria-hidden","false"):(remainder=_.slideCount%_.options.slidesToShow,indexOffset=!0===_.options.infinite?_.options.slidesToShow+index:index,_.options.slidesToShow==_.options.slidesToScroll&&_.slideCount-index<_.options.slidesToShow?allSlides.slice(indexOffset-(_.options.slidesToShow-remainder),indexOffset+remainder).addClass("slick-active").attr("aria-hidden","false"):allSlides.slice(indexOffset,indexOffset+_.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false")),"ondemand"===_.options.lazyLoad&&_.lazyLoad()},Slick.prototype.setupInfinite=function(){var _=this,i,slideIndex,infiniteCount;if(!0===_.options.fade&&(_.options.centerMode=!1),!0===_.options.infinite&&!1===_.options.fade&&(slideIndex=null,_.slideCount>_.options.slidesToShow)){for(infiniteCount=!0===_.options.centerMode?_.options.slidesToShow+1:_.options.slidesToShow,i=_.slideCount;i>_.slideCount-infiniteCount;i-=1)slideIndex=i-1,$(_.$slides[slideIndex]).clone(!0).attr("id","").attr("data-slick-index",slideIndex-_.slideCount).prependTo(_.$slideTrack).addClass("slick-cloned");for(i=0;i<infiniteCount;i+=1)slideIndex=i,$(_.$slides[slideIndex]).clone(!0).attr("id","").attr("data-slick-index",slideIndex+_.slideCount).appendTo(_.$slideTrack).addClass("slick-cloned");_.$slideTrack.find(".slick-cloned").find("[id]").each((function(){$(this).attr("id","")}))}},Slick.prototype.interrupt=function(toggle){var _=this;toggle||_.autoPlay(),_.interrupted=toggle},Slick.prototype.selectHandler=function(event){var _=this,targetElement=$(event.target).is(".slick-slide")?$(event.target):$(event.target).parents(".slick-slide"),index=parseInt(targetElement.attr("data-slick-index"));if(index||(index=0),_.slideCount<=_.options.slidesToShow)return _.setSlideClasses(index),void _.asNavFor(index);_.slideHandler(index)},Slick.prototype.slideHandler=function(index,sync,dontAnimate){var targetSlide,animSlide,oldSlide,slideLeft,targetLeft=null,_=this,navTarget;if(sync=sync||!1,(!0!==_.animating||!0!==_.options.waitForAnimate)&&!(!0===_.options.fade&&_.currentSlide===index||_.slideCount<=_.options.slidesToShow))if(!1===sync&&_.asNavFor(index),targetSlide=index,targetLeft=_.getLeft(targetSlide),slideLeft=_.getLeft(_.currentSlide),_.currentLeft=null===_.swipeLeft?slideLeft:_.swipeLeft,!1===_.options.infinite&&!1===_.options.centerMode&&(index<0||index>_.getDotCount()*_.options.slidesToScroll))!1===_.options.fade&&(targetSlide=_.currentSlide,!0!==dontAnimate?_.animateSlide(slideLeft,(function(){_.postSlide(targetSlide)})):_.postSlide(targetSlide));else if(!1===_.options.infinite&&!0===_.options.centerMode&&(index<0||index>_.slideCount-_.options.slidesToScroll))!1===_.options.fade&&(targetSlide=_.currentSlide,!0!==dontAnimate?_.animateSlide(slideLeft,(function(){_.postSlide(targetSlide)})):_.postSlide(targetSlide));else{if(_.options.autoplay&&clearInterval(_.autoPlayTimer),animSlide=targetSlide<0?_.slideCount%_.options.slidesToScroll!=0?_.slideCount-_.slideCount%_.options.slidesToScroll:_.slideCount+targetSlide:targetSlide>=_.slideCount?_.slideCount%_.options.slidesToScroll!=0?0:targetSlide-_.slideCount:targetSlide,_.animating=!0,_.$slider.trigger("beforeChange",[_,_.currentSlide,animSlide]),oldSlide=_.currentSlide,_.currentSlide=animSlide,_.setSlideClasses(_.currentSlide),_.options.asNavFor&&(navTarget=(navTarget=_.getNavTarget()).slick("getSlick")).slideCount<=navTarget.options.slidesToShow&&navTarget.setSlideClasses(_.currentSlide),_.updateDots(),_.updateArrows(),!0===_.options.fade)return!0!==dontAnimate?(_.fadeSlideOut(oldSlide),_.fadeSlide(animSlide,(function(){_.postSlide(animSlide)}))):_.postSlide(animSlide),void _.animateHeight();!0!==dontAnimate?_.animateSlide(targetLeft,(function(){_.postSlide(animSlide)})):_.postSlide(animSlide)}},Slick.prototype.startLoad=function(){var _=this;!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&(_.$prevArrow.hide(),_.$nextArrow.hide()),!0===_.options.dots&&_.slideCount>_.options.slidesToShow&&_.$dots.hide(),_.$slider.addClass("slick-loading")},Slick.prototype.swipeDirection=function(){var xDist,yDist,r,swipeAngle,_=this;return xDist=_.touchObject.startX-_.touchObject.curX,yDist=_.touchObject.startY-_.touchObject.curY,r=Math.atan2(yDist,xDist),(swipeAngle=Math.round(180*r/Math.PI))<0&&(swipeAngle=360-Math.abs(swipeAngle)),swipeAngle<=45&&swipeAngle>=0?!1===_.options.rtl?"left":"right":swipeAngle<=360&&swipeAngle>=315?!1===_.options.rtl?"left":"right":swipeAngle>=135&&swipeAngle<=225?!1===_.options.rtl?"right":"left":!0===_.options.verticalSwiping?swipeAngle>=35&&swipeAngle<=135?"down":"up":"vertical"},Slick.prototype.swipeEnd=function(event){var _=this,slideCount,direction;if(_.dragging=!1,_.interrupted=!1,_.shouldClick=!(_.touchObject.swipeLength>10),void 0===_.touchObject.curX)return!1;if(!0===_.touchObject.edgeHit&&_.$slider.trigger("edge",[_,_.swipeDirection()]),_.touchObject.swipeLength>=_.touchObject.minSwipe){switch(direction=_.swipeDirection()){case"left":case"down":slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide+_.getSlideCount()):_.currentSlide+_.getSlideCount(),_.currentDirection=0;break;case"right":case"up":slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide-_.getSlideCount()):_.currentSlide-_.getSlideCount(),_.currentDirection=1}"vertical"!=direction&&(_.slideHandler(slideCount),_.touchObject={},_.$slider.trigger("swipe",[_,direction]))}else _.touchObject.startX!==_.touchObject.curX&&(_.slideHandler(_.currentSlide),_.touchObject={})},Slick.prototype.swipeHandler=function(event){var _=this;if(!(!1===_.options.swipe||"ontouchend"in document&&!1===_.options.swipe||!1===_.options.draggable&&-1!==event.type.indexOf("mouse")))switch(_.touchObject.fingerCount=event.originalEvent&&void 0!==event.originalEvent.touches?event.originalEvent.touches.length:1,_.touchObject.minSwipe=_.listWidth/_.options.touchThreshold,!0===_.options.verticalSwiping&&(_.touchObject.minSwipe=_.listHeight/_.options.touchThreshold),event.data.action){case"start":_.swipeStart(event);break;case"move":_.swipeMove(event);break;case"end":_.swipeEnd(event)}},Slick.prototype.swipeMove=function(event){var _=this,edgeWasHit=!1,curLeft,swipeDirection,swipeLength,positionOffset,touches;return touches=void 0!==event.originalEvent?event.originalEvent.touches:null,!(!_.dragging||touches&&1!==touches.length)&&(curLeft=_.getLeft(_.currentSlide),_.touchObject.curX=void 0!==touches?touches[0].pageX:event.clientX,_.touchObject.curY=void 0!==touches?touches[0].pageY:event.clientY,_.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curX-_.touchObject.startX,2))),!0===_.options.verticalSwiping&&(_.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curY-_.touchObject.startY,2)))),"vertical"!==(swipeDirection=_.swipeDirection())?(void 0!==event.originalEvent&&_.touchObject.swipeLength>4&&event.preventDefault(),positionOffset=(!1===_.options.rtl?1:-1)*(_.touchObject.curX>_.touchObject.startX?1:-1),!0===_.options.verticalSwiping&&(positionOffset=_.touchObject.curY>_.touchObject.startY?1:-1),swipeLength=_.touchObject.swipeLength,_.touchObject.edgeHit=!1,!1===_.options.infinite&&(0===_.currentSlide&&"right"===swipeDirection||_.currentSlide>=_.getDotCount()&&"left"===swipeDirection)&&(swipeLength=_.touchObject.swipeLength*_.options.edgeFriction,_.touchObject.edgeHit=!0),!1===_.options.vertical?_.swipeLeft=curLeft+swipeLength*positionOffset:_.swipeLeft=curLeft+swipeLength*(_.$list.height()/_.listWidth)*positionOffset,!0===_.options.verticalSwiping&&(_.swipeLeft=curLeft+swipeLength*positionOffset),!0!==_.options.fade&&!1!==_.options.touchMove&&(!0===_.animating?(_.swipeLeft=null,!1):void _.setCSS(_.swipeLeft))):void 0)},Slick.prototype.swipeStart=function(event){var _=this,touches;if(_.interrupted=!0,1!==_.touchObject.fingerCount||_.slideCount<=_.options.slidesToShow)return _.touchObject={},!1;void 0!==event.originalEvent&&void 0!==event.originalEvent.touches&&(touches=event.originalEvent.touches[0]),_.touchObject.startX=_.touchObject.curX=void 0!==touches?touches.pageX:event.clientX,_.touchObject.startY=_.touchObject.curY=void 0!==touches?touches.pageY:event.clientY,_.dragging=!0},Slick.prototype.unfilterSlides=Slick.prototype.slickUnfilter=function(){var _=this;null!==_.$slidesCache&&(_.unload(),_.$slideTrack.children(this.options.slide).detach(),_.$slidesCache.appendTo(_.$slideTrack),_.reinit())},Slick.prototype.unload=function(){var _=this;$(".slick-cloned",_.$slider).remove(),_.$dots&&_.$dots.remove(),_.$prevArrow&&_.htmlExpr.test(_.options.prevArrow)&&_.$prevArrow.remove(),_.$nextArrow&&_.htmlExpr.test(_.options.nextArrow)&&_.$nextArrow.remove(),_.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},Slick.prototype.unslick=function(fromBreakpoint){var _=this;_.$slider.trigger("unslick",[_,fromBreakpoint]),_.destroy()},Slick.prototype.updateArrows=function(){var _=this,centerOffset;centerOffset=Math.floor(_.options.slidesToShow/2),!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&!_.options.infinite&&(_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),_.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===_.currentSlide?(_.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),_.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):_.currentSlide>=_.slideCount-_.options.slidesToShow&&!1===_.options.centerMode?(_.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):_.currentSlide>=_.slideCount-1&&!0===_.options.centerMode&&(_.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},Slick.prototype.updateDots=function(){var _=this;console.log("update dots"),_.$dots.find("li").removeClass("slick-active").attr("aria-hidden","true").attr("aria-selected","false"),_.$dots.find("li").eq(Math.floor(_.currentSlide/_.options.slidesToScroll)).addClass("slick-active").attr("aria-hidden","false").attr("aria-selected","true")},Slick.prototype.visibility=function(){var _=this;_.options.autoplay&&(document[_.hidden]?_.interrupted=!0:_.interrupted=!1)},$.fn.slick=function(){var _=this,opt=arguments[0],args=Array.prototype.slice.call(arguments,1),l=_.length,i,ret;for(i=0;i<l;i++)if("object"==typeof opt||void 0===opt?_[i].slick=new Slick(_[i],opt):ret=_[i].slick[opt].apply(_[i].slick,args),void 0!==ret)return ret;return _}}));
1
+ !function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):"undefined"!=typeof exports?module.exports=factory(require("jquery")):factory(jQuery)}((function($){"use strict";var Slick=window.Slick||{};(Slick=function(){var instanceUid=0;function Slick(element,settings){var _=this,dataSettings;_.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:$(element),appendDots:$(element),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(slider,i){return $('<button type="button" />').text(i+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},_.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},$.extend(_,_.initials),_.activeBreakpoint=null,_.animType=null,_.animProp=null,_.breakpoints=[],_.breakpointSettings=[],_.cssTransitions=!1,_.focussed=!1,_.interrupted=!1,_.hidden="hidden",_.paused=!0,_.positionProp=null,_.respondTo=null,_.rowCount=1,_.shouldClick=!0,_.$slider=$(element),_.$slidesCache=null,_.transformType=null,_.transitionType=null,_.visibilityChange="visibilitychange",_.windowWidth=0,_.windowTimer=null,dataSettings=$(element).data("slick")||{},_.options=$.extend({},_.defaults,settings,dataSettings),_.currentSlide=_.options.initialSlide,_.originalSettings=_.options,void 0!==document.mozHidden?(_.hidden="mozHidden",_.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(_.hidden="webkitHidden",_.visibilityChange="webkitvisibilitychange"),_.autoPlay=$.proxy(_.autoPlay,_),_.autoPlayClear=$.proxy(_.autoPlayClear,_),_.autoPlayIterator=$.proxy(_.autoPlayIterator,_),_.changeSlide=$.proxy(_.changeSlide,_),_.clickHandler=$.proxy(_.clickHandler,_),_.selectHandler=$.proxy(_.selectHandler,_),_.setPosition=$.proxy(_.setPosition,_),_.swipeHandler=$.proxy(_.swipeHandler,_),_.dragHandler=$.proxy(_.dragHandler,_),_.keyHandler=$.proxy(_.keyHandler,_),_.instanceUid=instanceUid++,_.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,_.registerBreakpoints(),_.init(!0)}return Slick}()).prototype.activateADA=function(){var _;this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},Slick.prototype.addSlide=Slick.prototype.slickAdd=function(markup,index,addBefore){var _=this;if("boolean"==typeof index)addBefore=index,index=null;else if(index<0||index>=_.slideCount)return!1;_.unload(),"number"==typeof index?0===index&&0===_.$slides.length?$(markup).appendTo(_.$slideTrack):addBefore?$(markup).insertBefore(_.$slides.eq(index)):$(markup).insertAfter(_.$slides.eq(index)):!0===addBefore?$(markup).prependTo(_.$slideTrack):$(markup).appendTo(_.$slideTrack),_.$slides=_.$slideTrack.children(this.options.slide),_.$slideTrack.children(this.options.slide).detach(),_.$slideTrack.append(_.$slides),_.$slides.each((function(index,element){$(element).attr("data-slick-index",index)})),_.$slidesCache=_.$slides,_.reinit()},Slick.prototype.animateHeight=function(){var _=this;if(1===_.options.slidesToShow&&!0===_.options.adaptiveHeight&&!1===_.options.vertical){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(!0);_.$list.animate({height:targetHeight},_.options.speed)}},Slick.prototype.animateSlide=function(targetLeft,callback){var animProps={},_=this;_.animateHeight(),!0===_.options.rtl&&!1===_.options.vertical&&(targetLeft=-targetLeft),!1===_.transformsEnabled?!1===_.options.vertical?_.$slideTrack.animate({left:targetLeft},_.options.speed,_.options.easing,callback):_.$slideTrack.animate({top:targetLeft},_.options.speed,_.options.easing,callback):!1===_.cssTransitions?(!0===_.options.rtl&&(_.currentLeft=-_.currentLeft),$({animStart:_.currentLeft}).animate({animStart:targetLeft},{duration:_.options.speed,easing:_.options.easing,step:function(now){now=Math.ceil(now),!1===_.options.vertical?(animProps[_.animType]="translate("+now+"px, 0px)",_.$slideTrack.css(animProps)):(animProps[_.animType]="translate(0px,"+now+"px)",_.$slideTrack.css(animProps))},complete:function(){callback&&callback.call()}})):(_.applyTransition(),targetLeft=Math.ceil(targetLeft),!1===_.options.vertical?animProps[_.animType]="translate3d("+targetLeft+"px, 0px, 0px)":animProps[_.animType]="translate3d(0px,"+targetLeft+"px, 0px)",_.$slideTrack.css(animProps),callback&&setTimeout((function(){_.disableTransition(),callback.call()}),_.options.speed))},Slick.prototype.getNavTarget=function(){var _=this,asNavFor=_.options.asNavFor;return asNavFor&&null!==asNavFor&&(asNavFor=$(asNavFor).not(_.$slider)),asNavFor},Slick.prototype.asNavFor=function(index){var _,asNavFor=this.getNavTarget();null!==asNavFor&&"object"==typeof asNavFor&&asNavFor.each((function(){var target=$(this).slick("getSlick");target.unslicked||target.slideHandler(index,!0)}))},Slick.prototype.applyTransition=function(slide){var _=this,transition={};!1===_.options.fade?transition[_.transitionType]=_.transformType+" "+_.options.speed+"ms "+_.options.cssEase:transition[_.transitionType]="opacity "+_.options.speed+"ms "+_.options.cssEase,!1===_.options.fade?_.$slideTrack.css(transition):_.$slides.eq(slide).css(transition)},Slick.prototype.autoPlay=function(){var _=this;_.autoPlayClear(),_.slideCount>_.options.slidesToShow&&(_.autoPlayTimer=setInterval(_.autoPlayIterator,_.options.autoplaySpeed))},Slick.prototype.autoPlayClear=function(){var _=this;_.autoPlayTimer&&clearInterval(_.autoPlayTimer)},Slick.prototype.autoPlayIterator=function(){var _=this,slideTo=_.currentSlide+_.options.slidesToScroll;_.paused||_.interrupted||_.focussed||(!1===_.options.infinite&&(1===_.direction&&_.currentSlide+1===_.slideCount-1?_.direction=0:0===_.direction&&(slideTo=_.currentSlide-_.options.slidesToScroll,_.currentSlide-1==0&&(_.direction=1))),_.slideHandler(slideTo))},Slick.prototype.buildArrows=function(){var _=this;!0===_.options.arrows&&(_.$prevArrow=$(_.options.prevArrow).addClass("slick-arrow"),_.$nextArrow=$(_.options.nextArrow).addClass("slick-arrow"),_.slideCount>_.options.slidesToShow?(_.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),_.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),_.htmlExpr.test(_.options.prevArrow)&&_.$prevArrow.prependTo(_.options.appendArrows),_.htmlExpr.test(_.options.nextArrow)&&_.$nextArrow.appendTo(_.options.appendArrows),!0!==_.options.infinite&&_.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):_.$prevArrow.add(_.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},Slick.prototype.buildDots=function(){var _=this,i,dot;if(!0===_.options.dots&&_.slideCount>_.options.slidesToShow){for(_.$slider.addClass("slick-dotted"),dot=$("<ul />").addClass(_.options.dotsClass),i=0;i<=_.getDotCount();i+=1)dot.append($("<li />").append(_.options.customPaging.call(this,_,i)));_.$dots=dot.appendTo(_.options.appendDots),_.$dots.find("li").first().addClass("slick-active")}},Slick.prototype.buildOut=function(){var _=this;_.$slides=_.$slider.children(_.options.slide+":not(.slick-cloned)").addClass("slick-slide"),_.slideCount=_.$slides.length,_.$slides.each((function(index,element){$(element).attr("data-slick-index",index).data("originalStyling",$(element).attr("style")||"")})),_.$slider.addClass("slick-slider"),_.$slideTrack=0===_.slideCount?$('<div class="slick-track"/>').appendTo(_.$slider):_.$slides.wrapAll('<div class="slick-track"/>').parent(),_.$list=_.$slideTrack.wrap('<div class="slick-list"/>').parent(),_.$slideTrack.css("opacity",0),!0!==_.options.centerMode&&!0!==_.options.swipeToSlide||(_.options.slidesToScroll=1),$("img[data-lazy]",_.$slider).not("[src]").addClass("slick-loading"),_.setupInfinite(),_.buildArrows(),_.buildDots(),_.updateDots(),_.setSlideClasses("number"==typeof _.currentSlide?_.currentSlide:0),!0===_.options.draggable&&_.$list.addClass("draggable")},Slick.prototype.buildRows=function(){var _=this,a,b,c,newSlides,numOfSlides,originalSlides,slidesPerSection;if(newSlides=document.createDocumentFragment(),originalSlides=_.$slider.children(),_.options.rows>0){for(slidesPerSection=_.options.slidesPerRow*_.options.rows,numOfSlides=Math.ceil(originalSlides.length/slidesPerSection),a=0;a<numOfSlides;a++){var slide=document.createElement("div");for(b=0;b<_.options.rows;b++){var row=document.createElement("div");for(c=0;c<_.options.slidesPerRow;c++){var target=a*slidesPerSection+(b*_.options.slidesPerRow+c);originalSlides.get(target)&&row.appendChild(originalSlides.get(target))}slide.appendChild(row)}newSlides.appendChild(slide)}_.$slider.empty().append(newSlides),_.$slider.children().children().children().css({width:100/_.options.slidesPerRow+"%",display:"inline-block"})}},Slick.prototype.checkResponsive=function(initial,forceUpdate){var _=this,breakpoint,targetBreakpoint,respondToWidth,triggerBreakpoint=!1,sliderWidth=_.$slider.width(),windowWidth=window.innerWidth||$(window).width();if("window"===_.respondTo?respondToWidth=windowWidth:"slider"===_.respondTo?respondToWidth=sliderWidth:"min"===_.respondTo&&(respondToWidth=Math.min(windowWidth,sliderWidth)),_.options.responsive&&_.options.responsive.length&&null!==_.options.responsive){for(breakpoint in targetBreakpoint=null,_.breakpoints)_.breakpoints.hasOwnProperty(breakpoint)&&(!1===_.originalSettings.mobileFirst?respondToWidth<_.breakpoints[breakpoint]&&(targetBreakpoint=_.breakpoints[breakpoint]):respondToWidth>_.breakpoints[breakpoint]&&(targetBreakpoint=_.breakpoints[breakpoint]));null!==targetBreakpoint?null!==_.activeBreakpoint?(targetBreakpoint!==_.activeBreakpoint||forceUpdate)&&(_.activeBreakpoint=targetBreakpoint,"unslick"===_.breakpointSettings[targetBreakpoint]?_.unslick(targetBreakpoint):(_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]),!0===initial&&(_.currentSlide=_.options.initialSlide),_.refresh(initial)),triggerBreakpoint=targetBreakpoint):(_.activeBreakpoint=targetBreakpoint,"unslick"===_.breakpointSettings[targetBreakpoint]?_.unslick(targetBreakpoint):(_.options=$.extend({},_.originalSettings,_.breakpointSettings[targetBreakpoint]),!0===initial&&(_.currentSlide=_.options.initialSlide),_.refresh(initial)),triggerBreakpoint=targetBreakpoint):null!==_.activeBreakpoint&&(_.activeBreakpoint=null,_.options=_.originalSettings,!0===initial&&(_.currentSlide=_.options.initialSlide),_.refresh(initial),triggerBreakpoint=targetBreakpoint),initial||!1===triggerBreakpoint||_.$slider.trigger("breakpoint",[_,triggerBreakpoint])}},Slick.prototype.changeSlide=function(event,dontAnimate){var _=this,$target=$(event.currentTarget),indexOffset,slideOffset,unevenOffset;switch($target.is("a")&&event.preventDefault(),$target.is("li")||($target=$target.closest("li")),indexOffset=(unevenOffset=_.slideCount%_.options.slidesToScroll!=0)?0:(_.slideCount-_.currentSlide)%_.options.slidesToScroll,event.data.message){case"previous":slideOffset=0===indexOffset?_.options.slidesToScroll:_.options.slidesToShow-indexOffset,_.slideCount>_.options.slidesToShow&&_.slideHandler(_.currentSlide-slideOffset,!1,dontAnimate);break;case"next":slideOffset=0===indexOffset?_.options.slidesToScroll:indexOffset,_.slideCount>_.options.slidesToShow&&_.slideHandler(_.currentSlide+slideOffset,!1,dontAnimate);break;case"index":var index=0===event.data.index?0:event.data.index||$target.index()*_.options.slidesToScroll;_.slideHandler(_.checkNavigable(index),!1,dontAnimate),$target.children().trigger("focus");break;default:return}},Slick.prototype.checkNavigable=function(index){var _,navigables,prevNavigable;if(prevNavigable=0,index>(navigables=this.getNavigableIndexes())[navigables.length-1])index=navigables[navigables.length-1];else for(var n in navigables){if(index<navigables[n]){index=prevNavigable;break}prevNavigable=navigables[n]}return index},Slick.prototype.cleanUpEvents=function(){var _=this;_.options.dots&&null!==_.$dots&&($("li",_.$dots).off("click.slick",_.changeSlide).off("mouseenter.slick",$.proxy(_.interrupt,_,!0)).off("mouseleave.slick",$.proxy(_.interrupt,_,!1)),!0===_.options.accessibility&&_.$dots.off("keydown.slick",_.keyHandler)),_.$slider.off("focus.slick blur.slick"),!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&(_.$prevArrow&&_.$prevArrow.off("click.slick",_.changeSlide),_.$nextArrow&&_.$nextArrow.off("click.slick",_.changeSlide),!0===_.options.accessibility&&(_.$prevArrow&&_.$prevArrow.off("keydown.slick",_.keyHandler),_.$nextArrow&&_.$nextArrow.off("keydown.slick",_.keyHandler))),_.$list.off("touchstart.slick mousedown.slick",_.swipeHandler),_.$list.off("touchmove.slick mousemove.slick",_.swipeHandler),_.$list.off("touchend.slick mouseup.slick",_.swipeHandler),_.$list.off("touchcancel.slick mouseleave.slick",_.swipeHandler),_.$list.off("click.slick",_.clickHandler),$(document).off(_.visibilityChange,_.visibility),_.cleanUpSlideEvents(),!0===_.options.accessibility&&_.$list.off("keydown.slick",_.keyHandler),!0===_.options.focusOnSelect&&$(_.$slideTrack).children().off("click.slick",_.selectHandler),$(window).off("orientationchange.slick.slick-"+_.instanceUid,_.orientationChange),$(window).off("resize.slick.slick-"+_.instanceUid,_.resize),$("[draggable!=true]",_.$slideTrack).off("dragstart",_.preventDefault),$(window).off("load.slick.slick-"+_.instanceUid,_.setPosition)},Slick.prototype.cleanUpSlideEvents=function(){var _=this;_.$list.off("mouseenter.slick",$.proxy(_.interrupt,_,!0)),_.$list.off("mouseleave.slick",$.proxy(_.interrupt,_,!1))},Slick.prototype.cleanUpRows=function(){var _=this,originalSlides;_.options.rows>0&&((originalSlides=_.$slides.children().children()).removeAttr("style"),_.$slider.empty().append(originalSlides))},Slick.prototype.clickHandler=function(event){var _;!1===this.shouldClick&&(event.stopImmediatePropagation(),event.stopPropagation(),event.preventDefault())},Slick.prototype.destroy=function(refresh){var _=this;_.autoPlayClear(),_.touchObject={},_.cleanUpEvents(),$(".slick-cloned",_.$slider).detach(),_.$dots&&_.$dots.remove(),_.$prevArrow&&_.$prevArrow.length&&(_.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),_.htmlExpr.test(_.options.prevArrow)&&_.$prevArrow.remove()),_.$nextArrow&&_.$nextArrow.length&&(_.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),_.htmlExpr.test(_.options.nextArrow)&&_.$nextArrow.remove()),_.$slides&&(_.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){$(this).attr("style",$(this).data("originalStyling"))})),_.$slideTrack.children(this.options.slide).detach(),_.$slideTrack.detach(),_.$list.detach(),_.$slider.append(_.$slides)),_.cleanUpRows(),_.$slider.removeClass("slick-slider"),_.$slider.removeClass("slick-initialized"),_.$slider.removeClass("slick-dotted"),_.unslicked=!0,refresh||_.$slider.trigger("destroy",[_])},Slick.prototype.disableTransition=function(slide){var _=this,transition={};transition[_.transitionType]="",!1===_.options.fade?_.$slideTrack.css(transition):_.$slides.eq(slide).css(transition)},Slick.prototype.fadeSlide=function(slideIndex,callback){var _=this;!1===_.cssTransitions?(_.$slides.eq(slideIndex).css({zIndex:_.options.zIndex}),_.$slides.eq(slideIndex).animate({opacity:1},_.options.speed,_.options.easing,callback)):(_.applyTransition(slideIndex),_.$slides.eq(slideIndex).css({opacity:1,zIndex:_.options.zIndex}),callback&&setTimeout((function(){_.disableTransition(slideIndex),callback.call()}),_.options.speed))},Slick.prototype.fadeSlideOut=function(slideIndex){var _=this;!1===_.cssTransitions?_.$slides.eq(slideIndex).animate({opacity:0,zIndex:_.options.zIndex-2},_.options.speed,_.options.easing):(_.applyTransition(slideIndex),_.$slides.eq(slideIndex).css({opacity:0,zIndex:_.options.zIndex-2}))},Slick.prototype.filterSlides=Slick.prototype.slickFilter=function(filter){var _=this;null!==filter&&(_.$slidesCache=_.$slides,_.unload(),_.$slideTrack.children(this.options.slide).detach(),_.$slidesCache.filter(filter).appendTo(_.$slideTrack),_.reinit())},Slick.prototype.focusHandler=function(){var _=this;_.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(event){event.stopImmediatePropagation();var $sf=$(this);setTimeout((function(){_.options.pauseOnFocus&&(_.focussed=$sf.is(":focus"),_.autoPlay())}),0)}))},Slick.prototype.getCurrent=Slick.prototype.slickCurrentSlide=function(){var _;return this.currentSlide},Slick.prototype.getDotCount=function(){var _=this,breakPoint=0,counter=0,pagerQty=0;if(!0===_.options.infinite)if(_.slideCount<=_.options.slidesToShow)++pagerQty;else for(;breakPoint<_.slideCount;)++pagerQty,breakPoint=counter+_.options.slidesToScroll,counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;else if(!0===_.options.centerMode)pagerQty=_.slideCount;else if(_.options.asNavFor)for(;breakPoint<_.slideCount;)++pagerQty,breakPoint=counter+_.options.slidesToScroll,counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;else pagerQty=1+Math.ceil((_.slideCount-_.options.slidesToShow)/_.options.slidesToScroll);return pagerQty-1},Slick.prototype.getLeft=function(slideIndex){var _=this,targetLeft,verticalHeight,verticalOffset=0,targetSlide,coef;return _.slideOffset=0,verticalHeight=_.$slides.first().outerHeight(!0),!0===_.options.infinite?(_.slideCount>_.options.slidesToShow&&(_.slideOffset=_.slideWidth*_.options.slidesToShow*-1,coef=-1,!0===_.options.vertical&&!0===_.options.centerMode&&(2===_.options.slidesToShow?coef=-1.5:1===_.options.slidesToShow&&(coef=-2)),verticalOffset=verticalHeight*_.options.slidesToShow*coef),_.slideCount%_.options.slidesToScroll!=0&&slideIndex+_.options.slidesToScroll>_.slideCount&&_.slideCount>_.options.slidesToShow&&(slideIndex>_.slideCount?(_.slideOffset=(_.options.slidesToShow-(slideIndex-_.slideCount))*_.slideWidth*-1,verticalOffset=(_.options.slidesToShow-(slideIndex-_.slideCount))*verticalHeight*-1):(_.slideOffset=_.slideCount%_.options.slidesToScroll*_.slideWidth*-1,verticalOffset=_.slideCount%_.options.slidesToScroll*verticalHeight*-1))):slideIndex+_.options.slidesToShow>_.slideCount&&(_.slideOffset=(slideIndex+_.options.slidesToShow-_.slideCount)*_.slideWidth,verticalOffset=(slideIndex+_.options.slidesToShow-_.slideCount)*verticalHeight),_.slideCount<=_.options.slidesToShow&&(_.slideOffset=0,verticalOffset=0),!0===_.options.centerMode&&_.slideCount<=_.options.slidesToShow?_.slideOffset=_.slideWidth*Math.floor(_.options.slidesToShow)/2-_.slideWidth*_.slideCount/2:!0===_.options.centerMode&&!0===_.options.infinite?_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)-_.slideWidth:!0===_.options.centerMode&&(_.slideOffset=0,_.slideOffset+=_.slideWidth*Math.floor(_.options.slidesToShow/2)),targetLeft=!1===_.options.vertical?slideIndex*_.slideWidth*-1+_.slideOffset:slideIndex*verticalHeight*-1+verticalOffset,!0===_.options.variableWidth&&(targetSlide=_.slideCount<=_.options.slidesToShow||!1===_.options.infinite?_.$slideTrack.children(".slick-slide").eq(slideIndex):_.$slideTrack.children(".slick-slide").eq(slideIndex+_.options.slidesToShow),targetLeft=!0===_.options.rtl?targetSlide[0]?-1*(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width()):0:targetSlide[0]?-1*targetSlide[0].offsetLeft:0,!0===_.options.centerMode&&(targetSlide=_.slideCount<=_.options.slidesToShow||!1===_.options.infinite?_.$slideTrack.children(".slick-slide").eq(slideIndex):_.$slideTrack.children(".slick-slide").eq(slideIndex+_.options.slidesToShow+1),targetLeft=!0===_.options.rtl?targetSlide[0]?-1*(_.$slideTrack.width()-targetSlide[0].offsetLeft-targetSlide.width()):0:targetSlide[0]?-1*targetSlide[0].offsetLeft:0,targetLeft+=(_.$list.width()-targetSlide.outerWidth())/2)),targetLeft},Slick.prototype.getOption=Slick.prototype.slickGetOption=function(option){var _;return this.options[option]},Slick.prototype.getNavigableIndexes=function(){var _=this,breakPoint=0,counter=0,indexes=[],max;for(!1===_.options.infinite?max=_.slideCount:(breakPoint=-1*_.options.slidesToScroll,counter=-1*_.options.slidesToScroll,max=2*_.slideCount);breakPoint<max;)indexes.push(breakPoint),breakPoint=counter+_.options.slidesToScroll,counter+=_.options.slidesToScroll<=_.options.slidesToShow?_.options.slidesToScroll:_.options.slidesToShow;return indexes},Slick.prototype.getSlick=function(){return this},Slick.prototype.getSlideCount=function(){var _=this,slidesTraversed,swipedSlide,centerOffset;return centerOffset=!0===_.options.centerMode?_.slideWidth*Math.floor(_.options.slidesToShow/2):0,!0===_.options.swipeToSlide?(_.$slideTrack.find(".slick-slide").each((function(index,slide){if(slide.offsetLeft-centerOffset+$(slide).outerWidth()/2>-1*_.swipeLeft)return swipedSlide=slide,!1})),slidesTraversed=Math.abs($(swipedSlide).attr("data-slick-index")-_.currentSlide)||1):_.options.slidesToScroll},Slick.prototype.goTo=Slick.prototype.slickGoTo=function(slide,dontAnimate){var _;this.changeSlide({data:{message:"index",index:parseInt(slide)}},dontAnimate)},Slick.prototype.init=function(creation){var _=this;$(_.$slider).hasClass("slick-initialized")||($(_.$slider).addClass("slick-initialized"),_.buildRows(),_.buildOut(),_.setProps(),_.startLoad(),_.loadSlider(),_.initializeEvents(),_.updateArrows(),_.updateDots(),_.checkResponsive(!0),_.focusHandler()),creation&&_.$slider.trigger("init",[_]),!0===_.options.accessibility&&_.initADA(),_.options.autoplay&&(_.paused=!1,_.autoPlay())},Slick.prototype.initADA=function(){var _=this,numDotGroups=Math.ceil(_.slideCount/_.options.slidesToShow),tabControlIndexes=_.getNavigableIndexes().filter((function(val){return val>=0&&val<_.slideCount}));_.$slides.add(_.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==_.$dots&&(_.$slides.not(_.$slideTrack.find(".slick-cloned")).each((function(i){var slideControlIndex=tabControlIndexes.indexOf(i);if($(this).attr({role:"tabpanel",id:"slick-slide"+_.instanceUid+i,tabindex:-1}),-1!==slideControlIndex){var ariaButtonControl="slick-slide-control"+_.instanceUid+slideControlIndex;$("#"+ariaButtonControl).length&&$(this).attr({"aria-describedby":ariaButtonControl})}})),_.$dots.attr("role","tablist").find("li").each((function(i){var mappedSlideIndex=tabControlIndexes[i];$(this).attr({role:"presentation"}),$(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+_.instanceUid+i,"aria-controls":"slick-slide"+_.instanceUid+mappedSlideIndex,"aria-label":i+1+" of "+numDotGroups,"aria-selected":null,tabindex:"-1"})})).eq(_.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var i=_.currentSlide,max=i+_.options.slidesToShow;i<max;i++)_.options.focusOnChange?_.$slides.eq(i).attr({tabindex:"0"}):_.$slides.eq(i).removeAttr("tabindex");_.activateADA()},Slick.prototype.initArrowEvents=function(){var _=this;!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&(_.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},_.changeSlide),_.$nextArrow.off("click.slick").on("click.slick",{message:"next"},_.changeSlide),!0===_.options.accessibility&&(_.$prevArrow.on("keydown.slick",_.keyHandler),_.$nextArrow.on("keydown.slick",_.keyHandler)))},Slick.prototype.initDotEvents=function(){var _=this;!0===_.options.dots&&_.slideCount>_.options.slidesToShow&&($("li",_.$dots).on("click.slick",{message:"index"},_.changeSlide),!0===_.options.accessibility&&_.$dots.on("keydown.slick",_.keyHandler)),!0===_.options.dots&&!0===_.options.pauseOnDotsHover&&_.slideCount>_.options.slidesToShow&&$("li",_.$dots).on("mouseenter.slick",$.proxy(_.interrupt,_,!0)).on("mouseleave.slick",$.proxy(_.interrupt,_,!1))},Slick.prototype.initSlideEvents=function(){var _=this;_.options.pauseOnHover&&(_.$list.on("mouseenter.slick",$.proxy(_.interrupt,_,!0)),_.$list.on("mouseleave.slick",$.proxy(_.interrupt,_,!1)))},Slick.prototype.initializeEvents=function(){var _=this;_.initArrowEvents(),_.initDotEvents(),_.initSlideEvents(),_.$list.on("touchstart.slick mousedown.slick",{action:"start"},_.swipeHandler),_.$list.on("touchmove.slick mousemove.slick",{action:"move"},_.swipeHandler),_.$list.on("touchend.slick mouseup.slick",{action:"end"},_.swipeHandler),_.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},_.swipeHandler),_.$list.on("click.slick",_.clickHandler),$(document).on(_.visibilityChange,$.proxy(_.visibility,_)),!0===_.options.accessibility&&_.$list.on("keydown.slick",_.keyHandler),!0===_.options.focusOnSelect&&$(_.$slideTrack).children().on("click.slick",_.selectHandler),$(window).on("orientationchange.slick.slick-"+_.instanceUid,$.proxy(_.orientationChange,_)),$(window).on("resize.slick.slick-"+_.instanceUid,$.proxy(_.resize,_)),$("[draggable!=true]",_.$slideTrack).on("dragstart",_.preventDefault),$(window).on("load.slick.slick-"+_.instanceUid,_.setPosition),$(_.setPosition)},Slick.prototype.initUI=function(){var _=this;!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&(_.$prevArrow.show(),_.$nextArrow.show()),!0===_.options.dots&&_.slideCount>_.options.slidesToShow&&_.$dots.show()},Slick.prototype.keyHandler=function(event){var _=this;event.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===event.keyCode&&!0===_.options.accessibility?_.changeSlide({data:{message:!0===_.options.rtl?"next":"previous"}}):39===event.keyCode&&!0===_.options.accessibility&&_.changeSlide({data:{message:!0===_.options.rtl?"previous":"next"}}))},Slick.prototype.lazyLoad=function(){var _=this,loadRange,cloneRange,rangeStart,rangeEnd;function loadImages(imagesScope){$("img[data-lazy]",imagesScope).each((function(){var image=$(this),imageSource=$(this).attr("data-lazy"),imageSrcSet=$(this).attr("data-srcset"),imageSizes=$(this).attr("data-sizes")||_.$slider.attr("data-sizes"),imageToLoad=document.createElement("img");imageToLoad.onload=function(){image.animate({opacity:0},100,(function(){imageSrcSet&&(image.attr("srcset",imageSrcSet),imageSizes&&image.attr("sizes",imageSizes)),image.attr("src",imageSource).animate({opacity:1},200,(function(){image.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),_.$slider.trigger("lazyLoaded",[_,image,imageSource])}))},imageToLoad.onerror=function(){image.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),_.$slider.trigger("lazyLoadError",[_,image,imageSource])},imageToLoad.src=imageSource}))}if(!0===_.options.centerMode?!0===_.options.infinite?rangeEnd=(rangeStart=_.currentSlide+(_.options.slidesToShow/2+1))+_.options.slidesToShow+2:(rangeStart=Math.max(0,_.currentSlide-(_.options.slidesToShow/2+1)),rangeEnd=_.options.slidesToShow/2+1+2+_.currentSlide):(rangeStart=_.options.infinite?_.options.slidesToShow+_.currentSlide:_.currentSlide,rangeEnd=Math.ceil(rangeStart+_.options.slidesToShow),!0===_.options.fade&&(rangeStart>0&&rangeStart--,rangeEnd<=_.slideCount&&rangeEnd++)),loadRange=_.$slider.find(".slick-slide").slice(rangeStart,rangeEnd),"anticipated"===_.options.lazyLoad)for(var prevSlide=rangeStart-1,nextSlide=rangeEnd,$slides=_.$slider.find(".slick-slide"),i=0;i<_.options.slidesToScroll;i++)prevSlide<0&&(prevSlide=_.slideCount-1),loadRange=(loadRange=loadRange.add($slides.eq(prevSlide))).add($slides.eq(nextSlide)),prevSlide--,nextSlide++;loadImages(loadRange),_.slideCount<=_.options.slidesToShow?loadImages(cloneRange=_.$slider.find(".slick-slide")):_.currentSlide>=_.slideCount-_.options.slidesToShow?loadImages(cloneRange=_.$slider.find(".slick-cloned").slice(0,_.options.slidesToShow)):0===_.currentSlide&&loadImages(cloneRange=_.$slider.find(".slick-cloned").slice(-1*_.options.slidesToShow))},Slick.prototype.loadSlider=function(){var _=this;_.setPosition(),_.$slideTrack.css({opacity:1}),_.$slider.removeClass("slick-loading"),_.initUI(),"progressive"===_.options.lazyLoad&&_.progressiveLazyLoad()},Slick.prototype.next=Slick.prototype.slickNext=function(){var _;this.changeSlide({data:{message:"next"}})},Slick.prototype.orientationChange=function(){var _=this;_.checkResponsive(),_.setPosition()},Slick.prototype.pause=Slick.prototype.slickPause=function(){var _=this;_.autoPlayClear(),_.paused=!0},Slick.prototype.play=Slick.prototype.slickPlay=function(){var _=this;_.autoPlay(),_.options.autoplay=!0,_.paused=!1,_.focussed=!1,_.interrupted=!1},Slick.prototype.postSlide=function(index){var _=this,$currentSlide;_.unslicked||(_.$slider.trigger("afterChange",[_,index]),_.animating=!1,_.slideCount>_.options.slidesToShow&&_.setPosition(),_.swipeLeft=null,_.options.autoplay&&_.autoPlay(),!0===_.options.accessibility&&(_.initADA(),_.options.focusOnChange&&$(_.$slides.get(_.currentSlide)).attr("tabindex",0).focus()))},Slick.prototype.prev=Slick.prototype.slickPrev=function(){var _;this.changeSlide({data:{message:"previous"}})},Slick.prototype.preventDefault=function(event){event.preventDefault()},Slick.prototype.progressiveLazyLoad=function(tryCount){tryCount=tryCount||1;var _=this,$imgsToLoad=$("img[data-lazy]",_.$slider),image,imageSource,imageSrcSet,imageSizes,imageToLoad;$imgsToLoad.length?(image=$imgsToLoad.first(),imageSource=image.attr("data-lazy"),imageSrcSet=image.attr("data-srcset"),imageSizes=image.attr("data-sizes")||_.$slider.attr("data-sizes"),(imageToLoad=document.createElement("img")).onload=function(){imageSrcSet&&(image.attr("srcset",imageSrcSet),imageSizes&&image.attr("sizes",imageSizes)),image.attr("src",imageSource).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===_.options.adaptiveHeight&&_.setPosition(),_.$slider.trigger("lazyLoaded",[_,image,imageSource]),_.progressiveLazyLoad()},imageToLoad.onerror=function(){tryCount<3?setTimeout((function(){_.progressiveLazyLoad(tryCount+1)}),500):(image.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),_.$slider.trigger("lazyLoadError",[_,image,imageSource]),_.progressiveLazyLoad())},imageToLoad.src=imageSource):_.$slider.trigger("allImagesLoaded",[_])},Slick.prototype.refresh=function(initializing){var _=this,currentSlide,lastVisibleIndex;lastVisibleIndex=_.slideCount-_.options.slidesToShow,!_.options.infinite&&_.currentSlide>lastVisibleIndex&&(_.currentSlide=lastVisibleIndex),_.slideCount<=_.options.slidesToShow&&(_.currentSlide=0),currentSlide=_.currentSlide,_.destroy(!0),$.extend(_,_.initials,{currentSlide:currentSlide}),_.init(),initializing||_.changeSlide({data:{message:"index",index:currentSlide}},!1)},Slick.prototype.registerBreakpoints=function(){var _=this,breakpoint,currentBreakpoint,l,responsiveSettings=_.options.responsive||null;if("array"===$.type(responsiveSettings)&&responsiveSettings.length){for(breakpoint in _.respondTo=_.options.respondTo||"window",responsiveSettings)if(l=_.breakpoints.length-1,responsiveSettings.hasOwnProperty(breakpoint)){for(currentBreakpoint=responsiveSettings[breakpoint].breakpoint;l>=0;)_.breakpoints[l]&&_.breakpoints[l]===currentBreakpoint&&_.breakpoints.splice(l,1),l--;_.breakpoints.push(currentBreakpoint),_.breakpointSettings[currentBreakpoint]=responsiveSettings[breakpoint].settings}_.breakpoints.sort((function(a,b){return _.options.mobileFirst?a-b:b-a}))}},Slick.prototype.reinit=function(){var _=this;_.$slides=_.$slideTrack.children(_.options.slide).addClass("slick-slide"),_.slideCount=_.$slides.length,_.currentSlide>=_.slideCount&&0!==_.currentSlide&&(_.currentSlide=_.currentSlide-_.options.slidesToScroll),_.slideCount<=_.options.slidesToShow&&(_.currentSlide=0),_.registerBreakpoints(),_.setProps(),_.setupInfinite(),_.buildArrows(),_.updateArrows(),_.initArrowEvents(),_.buildDots(),_.updateDots(),_.initDotEvents(),_.cleanUpSlideEvents(),_.initSlideEvents(),_.checkResponsive(!1,!0),!0===_.options.focusOnSelect&&$(_.$slideTrack).children().on("click.slick",_.selectHandler),_.setSlideClasses("number"==typeof _.currentSlide?_.currentSlide:0),_.setPosition(),_.focusHandler(),_.paused=!_.options.autoplay,_.autoPlay(),_.$slider.trigger("reInit",[_])},Slick.prototype.resize=function(){var _=this;$(window).width()!==_.windowWidth&&(clearTimeout(_.windowDelay),_.windowDelay=window.setTimeout((function(){_.windowWidth=$(window).width(),_.checkResponsive(),_.unslicked||_.setPosition()}),50))},Slick.prototype.removeSlide=Slick.prototype.slickRemove=function(index,removeBefore,removeAll){var _=this;if(index="boolean"==typeof index?!0===(removeBefore=index)?0:_.slideCount-1:!0===removeBefore?--index:index,_.slideCount<1||index<0||index>_.slideCount-1)return!1;_.unload(),!0===removeAll?_.$slideTrack.children().remove():_.$slideTrack.children(this.options.slide).eq(index).remove(),_.$slides=_.$slideTrack.children(this.options.slide),_.$slideTrack.children(this.options.slide).detach(),_.$slideTrack.append(_.$slides),_.$slidesCache=_.$slides,_.reinit()},Slick.prototype.setCSS=function(position){var _=this,positionProps={},x,y;!0===_.options.rtl&&(position=-position),x="left"==_.positionProp?Math.ceil(position)+"px":"0px",y="top"==_.positionProp?Math.ceil(position)+"px":"0px",positionProps[_.positionProp]=position,!1===_.transformsEnabled?_.$slideTrack.css(positionProps):(positionProps={},!1===_.cssTransitions?(positionProps[_.animType]="translate("+x+", "+y+")",_.$slideTrack.css(positionProps)):(positionProps[_.animType]="translate3d("+x+", "+y+", 0px)",_.$slideTrack.css(positionProps)))},Slick.prototype.setDimensions=function(){var _=this;!1===_.options.vertical?!0===_.options.centerMode&&_.$list.css({padding:"0px "+_.options.centerPadding}):(_.$list.height(_.$slides.first().outerHeight(!0)*_.options.slidesToShow),!0===_.options.centerMode&&_.$list.css({padding:_.options.centerPadding+" 0px"})),_.listWidth=_.$list.width(),_.listHeight=_.$list.height(),!1===_.options.vertical&&!1===_.options.variableWidth?(_.slideWidth=Math.ceil(_.listWidth/_.options.slidesToShow),_.$slideTrack.width(Math.ceil(_.slideWidth*_.$slideTrack.children(".slick-slide").length))):!0===_.options.variableWidth?_.$slideTrack.width(5e3*_.slideCount):(_.slideWidth=Math.ceil(_.listWidth),_.$slideTrack.height(Math.ceil(_.$slides.first().outerHeight(!0)*_.$slideTrack.children(".slick-slide").length)));var offset=_.$slides.first().outerWidth(!0)-_.$slides.first().width();!1===_.options.variableWidth&&_.$slideTrack.children(".slick-slide").width(_.slideWidth-offset)},Slick.prototype.setFade=function(){var _=this,targetLeft;_.$slides.each((function(index,element){targetLeft=_.slideWidth*index*-1,!0===_.options.rtl?$(element).css({position:"relative",right:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0}):$(element).css({position:"relative",left:targetLeft,top:0,zIndex:_.options.zIndex-2,opacity:0})})),_.$slides.eq(_.currentSlide).css({zIndex:_.options.zIndex-1,opacity:1})},Slick.prototype.setHeight=function(){var _=this;if(1===_.options.slidesToShow&&!0===_.options.adaptiveHeight&&!1===_.options.vertical){var targetHeight=_.$slides.eq(_.currentSlide).outerHeight(!0);_.$list.css("height",targetHeight)}},Slick.prototype.setOption=Slick.prototype.slickSetOption=function(){var _=this,l,item,option,value,refresh=!1,type;if("object"===$.type(arguments[0])?(option=arguments[0],refresh=arguments[1],type="multiple"):"string"===$.type(arguments[0])&&(option=arguments[0],value=arguments[1],refresh=arguments[2],"responsive"===arguments[0]&&"array"===$.type(arguments[1])?type="responsive":void 0!==arguments[1]&&(type="single")),"single"===type)_.options[option]=value;else if("multiple"===type)$.each(option,(function(opt,val){_.options[opt]=val}));else if("responsive"===type)for(item in value)if("array"!==$.type(_.options.responsive))_.options.responsive=[value[item]];else{for(l=_.options.responsive.length-1;l>=0;)_.options.responsive[l].breakpoint===value[item].breakpoint&&_.options.responsive.splice(l,1),l--;_.options.responsive.push(value[item])}refresh&&(_.unload(),_.reinit())},Slick.prototype.setPosition=function(){var _=this;_.setDimensions(),_.setHeight(),!1===_.options.fade?_.setCSS(_.getLeft(_.currentSlide)):_.setFade(),_.$slider.trigger("setPosition",[_])},Slick.prototype.setProps=function(){var _=this,bodyStyle=document.body.style;_.positionProp=!0===_.options.vertical?"top":"left","top"===_.positionProp?_.$slider.addClass("slick-vertical"):_.$slider.removeClass("slick-vertical"),void 0===bodyStyle.WebkitTransition&&void 0===bodyStyle.MozTransition&&void 0===bodyStyle.msTransition||!0===_.options.useCSS&&(_.cssTransitions=!0),_.options.fade&&("number"==typeof _.options.zIndex?_.options.zIndex<3&&(_.options.zIndex=3):_.options.zIndex=_.defaults.zIndex),void 0!==bodyStyle.OTransform&&(_.animType="OTransform",_.transformType="-o-transform",_.transitionType="OTransition",void 0===bodyStyle.perspectiveProperty&&void 0===bodyStyle.webkitPerspective&&(_.animType=!1)),void 0!==bodyStyle.MozTransform&&(_.animType="MozTransform",_.transformType="-moz-transform",_.transitionType="MozTransition",void 0===bodyStyle.perspectiveProperty&&void 0===bodyStyle.MozPerspective&&(_.animType=!1)),void 0!==bodyStyle.webkitTransform&&(_.animType="webkitTransform",_.transformType="-webkit-transform",_.transitionType="webkitTransition",void 0===bodyStyle.perspectiveProperty&&void 0===bodyStyle.webkitPerspective&&(_.animType=!1)),void 0!==bodyStyle.msTransform&&(_.animType="msTransform",_.transformType="-ms-transform",_.transitionType="msTransition",void 0===bodyStyle.msTransform&&(_.animType=!1)),void 0!==bodyStyle.transform&&!1!==_.animType&&(_.animType="transform",_.transformType="transform",_.transitionType="transition"),_.transformsEnabled=_.options.useTransform&&null!==_.animType&&!1!==_.animType},Slick.prototype.setSlideClasses=function(index){var _=this,centerOffset,allSlides,indexOffset,remainder;if(allSlides=_.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),_.$slides.eq(index).addClass("slick-current"),!0===_.options.centerMode){var evenCoef=_.options.slidesToShow%2==0?1:0;centerOffset=Math.floor(_.options.slidesToShow/2),!0===_.options.infinite&&(index>=centerOffset&&index<=_.slideCount-1-centerOffset?_.$slides.slice(index-centerOffset+evenCoef,index+centerOffset+1).addClass("slick-active").attr("aria-hidden","false"):(indexOffset=_.options.slidesToShow+index,allSlides.slice(indexOffset-centerOffset+1+evenCoef,indexOffset+centerOffset+2).addClass("slick-active").attr("aria-hidden","false")),0===index?allSlides.eq(allSlides.length-1-_.options.slidesToShow).addClass("slick-center"):index===_.slideCount-1&&allSlides.eq(_.options.slidesToShow).addClass("slick-center")),_.$slides.eq(index).addClass("slick-center")}else index>=0&&index<=_.slideCount-_.options.slidesToShow?_.$slides.slice(index,index+_.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):allSlides.length<=_.options.slidesToShow?allSlides.addClass("slick-active").attr("aria-hidden","false"):(remainder=_.slideCount%_.options.slidesToShow,indexOffset=!0===_.options.infinite?_.options.slidesToShow+index:index,_.options.slidesToShow==_.options.slidesToScroll&&_.slideCount-index<_.options.slidesToShow?allSlides.slice(indexOffset-(_.options.slidesToShow-remainder),indexOffset+remainder).addClass("slick-active").attr("aria-hidden","false"):allSlides.slice(indexOffset,indexOffset+_.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==_.options.lazyLoad&&"anticipated"!==_.options.lazyLoad||_.lazyLoad()},Slick.prototype.setupInfinite=function(){var _=this,i,slideIndex,infiniteCount;if(!0===_.options.fade&&(_.options.centerMode=!1),!0===_.options.infinite&&!1===_.options.fade&&(slideIndex=null,_.slideCount>_.options.slidesToShow)){for(infiniteCount=!0===_.options.centerMode?_.options.slidesToShow+1:_.options.slidesToShow,i=_.slideCount;i>_.slideCount-infiniteCount;i-=1)slideIndex=i-1,$(_.$slides[slideIndex]).clone(!0).attr("id","").attr("data-slick-index",slideIndex-_.slideCount).prependTo(_.$slideTrack).addClass("slick-cloned");for(i=0;i<infiniteCount+_.slideCount;i+=1)slideIndex=i,$(_.$slides[slideIndex]).clone(!0).attr("id","").attr("data-slick-index",slideIndex+_.slideCount).appendTo(_.$slideTrack).addClass("slick-cloned");_.$slideTrack.find(".slick-cloned").find("[id]").each((function(){$(this).attr("id","")}))}},Slick.prototype.interrupt=function(toggle){var _=this;toggle||_.autoPlay(),_.interrupted=toggle},Slick.prototype.selectHandler=function(event){var _=this,targetElement=$(event.target).is(".slick-slide")?$(event.target):$(event.target).parents(".slick-slide"),index=parseInt(targetElement.attr("data-slick-index"));index||(index=0),_.slideCount<=_.options.slidesToShow?_.slideHandler(index,!1,!0):_.slideHandler(index)},Slick.prototype.slideHandler=function(index,sync,dontAnimate){var targetSlide,animSlide,oldSlide,slideLeft,targetLeft=null,_=this,navTarget;if(sync=sync||!1,!(!0===_.animating&&!0===_.options.waitForAnimate||!0===_.options.fade&&_.currentSlide===index))if(!1===sync&&_.asNavFor(index),targetSlide=index,targetLeft=_.getLeft(targetSlide),slideLeft=_.getLeft(_.currentSlide),_.currentLeft=null===_.swipeLeft?slideLeft:_.swipeLeft,!1===_.options.infinite&&!1===_.options.centerMode&&(index<0||index>_.getDotCount()*_.options.slidesToScroll))!1===_.options.fade&&(targetSlide=_.currentSlide,!0!==dontAnimate&&_.slideCount>_.options.slidesToShow?_.animateSlide(slideLeft,(function(){_.postSlide(targetSlide)})):_.postSlide(targetSlide));else if(!1===_.options.infinite&&!0===_.options.centerMode&&(index<0||index>_.slideCount-_.options.slidesToScroll))!1===_.options.fade&&(targetSlide=_.currentSlide,!0!==dontAnimate&&_.slideCount>_.options.slidesToShow?_.animateSlide(slideLeft,(function(){_.postSlide(targetSlide)})):_.postSlide(targetSlide));else{if(_.options.autoplay&&clearInterval(_.autoPlayTimer),animSlide=targetSlide<0?_.slideCount%_.options.slidesToScroll!=0?_.slideCount-_.slideCount%_.options.slidesToScroll:_.slideCount+targetSlide:targetSlide>=_.slideCount?_.slideCount%_.options.slidesToScroll!=0?0:targetSlide-_.slideCount:targetSlide,_.animating=!0,_.$slider.trigger("beforeChange",[_,_.currentSlide,animSlide]),oldSlide=_.currentSlide,_.currentSlide=animSlide,_.setSlideClasses(_.currentSlide),_.options.asNavFor&&(navTarget=(navTarget=_.getNavTarget()).slick("getSlick")).slideCount<=navTarget.options.slidesToShow&&navTarget.setSlideClasses(_.currentSlide),_.updateDots(),_.updateArrows(),!0===_.options.fade)return!0!==dontAnimate?(_.fadeSlideOut(oldSlide),_.fadeSlide(animSlide,(function(){_.postSlide(animSlide)}))):_.postSlide(animSlide),void _.animateHeight();!0!==dontAnimate&&_.slideCount>_.options.slidesToShow?_.animateSlide(targetLeft,(function(){_.postSlide(animSlide)})):_.postSlide(animSlide)}},Slick.prototype.startLoad=function(){var _=this;!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&(_.$prevArrow.hide(),_.$nextArrow.hide()),!0===_.options.dots&&_.slideCount>_.options.slidesToShow&&_.$dots.hide(),_.$slider.addClass("slick-loading")},Slick.prototype.swipeDirection=function(){var xDist,yDist,r,swipeAngle,_=this;return xDist=_.touchObject.startX-_.touchObject.curX,yDist=_.touchObject.startY-_.touchObject.curY,r=Math.atan2(yDist,xDist),(swipeAngle=Math.round(180*r/Math.PI))<0&&(swipeAngle=360-Math.abs(swipeAngle)),swipeAngle<=45&&swipeAngle>=0?!1===_.options.rtl?"left":"right":swipeAngle<=360&&swipeAngle>=315?!1===_.options.rtl?"left":"right":swipeAngle>=135&&swipeAngle<=225?!1===_.options.rtl?"right":"left":!0===_.options.verticalSwiping?swipeAngle>=35&&swipeAngle<=135?"down":"up":"vertical"},Slick.prototype.swipeEnd=function(event){var _=this,slideCount,direction;if(_.dragging=!1,_.swiping=!1,_.scrolling)return _.scrolling=!1,!1;if(_.interrupted=!1,_.shouldClick=!(_.touchObject.swipeLength>10),void 0===_.touchObject.curX)return!1;if(!0===_.touchObject.edgeHit&&_.$slider.trigger("edge",[_,_.swipeDirection()]),_.touchObject.swipeLength>=_.touchObject.minSwipe){switch(direction=_.swipeDirection()){case"left":case"down":slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide+_.getSlideCount()):_.currentSlide+_.getSlideCount(),_.currentDirection=0;break;case"right":case"up":slideCount=_.options.swipeToSlide?_.checkNavigable(_.currentSlide-_.getSlideCount()):_.currentSlide-_.getSlideCount(),_.currentDirection=1}"vertical"!=direction&&(_.slideHandler(slideCount),_.touchObject={},_.$slider.trigger("swipe",[_,direction]))}else _.touchObject.startX!==_.touchObject.curX&&(_.slideHandler(_.currentSlide),_.touchObject={})},Slick.prototype.swipeHandler=function(event){var _=this;if(!(!1===_.options.swipe||"ontouchend"in document&&!1===_.options.swipe||!1===_.options.draggable&&-1!==event.type.indexOf("mouse")))switch(_.touchObject.fingerCount=event.originalEvent&&void 0!==event.originalEvent.touches?event.originalEvent.touches.length:1,_.touchObject.minSwipe=_.listWidth/_.options.touchThreshold,!0===_.options.verticalSwiping&&(_.touchObject.minSwipe=_.listHeight/_.options.touchThreshold),event.data.action){case"start":_.swipeStart(event);break;case"move":_.swipeMove(event);break;case"end":_.swipeEnd(event)}},Slick.prototype.swipeMove=function(event){var _=this,edgeWasHit=!1,curLeft,swipeDirection,swipeLength,positionOffset,touches,verticalSwipeLength;return touches=void 0!==event.originalEvent?event.originalEvent.touches:null,!(!_.dragging||_.scrolling||touches&&1!==touches.length)&&(curLeft=_.getLeft(_.currentSlide),_.touchObject.curX=void 0!==touches?touches[0].pageX:event.clientX,_.touchObject.curY=void 0!==touches?touches[0].pageY:event.clientY,_.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curX-_.touchObject.startX,2))),verticalSwipeLength=Math.round(Math.sqrt(Math.pow(_.touchObject.curY-_.touchObject.startY,2))),!_.options.verticalSwiping&&!_.swiping&&verticalSwipeLength>4?(_.scrolling=!0,!1):(!0===_.options.verticalSwiping&&(_.touchObject.swipeLength=verticalSwipeLength),swipeDirection=_.swipeDirection(),void 0!==event.originalEvent&&_.touchObject.swipeLength>4&&(_.swiping=!0,event.preventDefault()),positionOffset=(!1===_.options.rtl?1:-1)*(_.touchObject.curX>_.touchObject.startX?1:-1),!0===_.options.verticalSwiping&&(positionOffset=_.touchObject.curY>_.touchObject.startY?1:-1),swipeLength=_.touchObject.swipeLength,_.touchObject.edgeHit=!1,!1===_.options.infinite&&(0===_.currentSlide&&"right"===swipeDirection||_.currentSlide>=_.getDotCount()&&"left"===swipeDirection)&&(swipeLength=_.touchObject.swipeLength*_.options.edgeFriction,_.touchObject.edgeHit=!0),!1===_.options.vertical?_.swipeLeft=curLeft+swipeLength*positionOffset:_.swipeLeft=curLeft+swipeLength*(_.$list.height()/_.listWidth)*positionOffset,!0===_.options.verticalSwiping&&(_.swipeLeft=curLeft+swipeLength*positionOffset),!0!==_.options.fade&&!1!==_.options.touchMove&&(!0===_.animating?(_.swipeLeft=null,!1):void _.setCSS(_.swipeLeft))))},Slick.prototype.swipeStart=function(event){var _=this,touches;if(_.interrupted=!0,1!==_.touchObject.fingerCount||_.slideCount<=_.options.slidesToShow)return _.touchObject={},!1;void 0!==event.originalEvent&&void 0!==event.originalEvent.touches&&(touches=event.originalEvent.touches[0]),_.touchObject.startX=_.touchObject.curX=void 0!==touches?touches.pageX:event.clientX,_.touchObject.startY=_.touchObject.curY=void 0!==touches?touches.pageY:event.clientY,_.dragging=!0},Slick.prototype.unfilterSlides=Slick.prototype.slickUnfilter=function(){var _=this;null!==_.$slidesCache&&(_.unload(),_.$slideTrack.children(this.options.slide).detach(),_.$slidesCache.appendTo(_.$slideTrack),_.reinit())},Slick.prototype.unload=function(){var _=this;$(".slick-cloned",_.$slider).remove(),_.$dots&&_.$dots.remove(),_.$prevArrow&&_.htmlExpr.test(_.options.prevArrow)&&_.$prevArrow.remove(),_.$nextArrow&&_.htmlExpr.test(_.options.nextArrow)&&_.$nextArrow.remove(),_.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},Slick.prototype.unslick=function(fromBreakpoint){var _=this;_.$slider.trigger("unslick",[_,fromBreakpoint]),_.destroy()},Slick.prototype.updateArrows=function(){var _=this,centerOffset;centerOffset=Math.floor(_.options.slidesToShow/2),!0===_.options.arrows&&_.slideCount>_.options.slidesToShow&&!_.options.infinite&&(_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),_.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===_.currentSlide?(_.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),_.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):_.currentSlide>=_.slideCount-_.options.slidesToShow&&!1===_.options.centerMode?(_.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")):_.currentSlide>=_.slideCount-1&&!0===_.options.centerMode&&(_.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),_.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},Slick.prototype.updateDots=function(){var _=this;null!==_.$dots&&(_.$dots.find("li").removeClass("slick-active").end(),_.$dots.find("li").eq(Math.floor(_.currentSlide/_.options.slidesToScroll)).addClass("slick-active"))},Slick.prototype.visibility=function(){var _=this;_.options.autoplay&&(document[_.hidden]?_.interrupted=!0:_.interrupted=!1)},$.fn.slick=function(){var _=this,opt=arguments[0],args=Array.prototype.slice.call(arguments,1),l=_.length,i,ret;for(i=0;i<l;i++)if("object"==typeof opt||void 0===opt?_[i].slick=new Slick(_[i],opt):ret=_[i].slick[opt].apply(_[i].slick,args),void 0!==ret)return ret;return _}}));
public/assets/js/sp-slick-active.js CHANGED
@@ -17,9 +17,9 @@ jQuery(document).ready(function ($) {
17
  var tfree_custom_slider_id = $(this).attr('id');
18
  var tpCarouselData = $(this).data('slick');
19
 
20
- if (tfree_custom_slider_id != '') {
21
  // my slick slider as constant object
22
- const mySlider = $('#' + tfree_custom_slider_id).on('init', function (slick) {
23
  if (tpCarouselData.adaptiveHeight == true) {
24
  // on init run our multi slide adaptive height function
25
  multiSlideAdaptiveHeight(this);
17
  var tfree_custom_slider_id = $(this).attr('id');
18
  var tpCarouselData = $(this).data('slick');
19
 
20
+ if (tfree_custom_slider_id.length != 0) {
21
  // my slick slider as constant object
22
+ var mySlider = $('#' + tfree_custom_slider_id).on('init', function (slick) {
23
  if (tpCarouselData.adaptiveHeight == true) {
24
  // on init run our multi slide adaptive height function
25
  multiSlideAdaptiveHeight(this);
public/assets/js/sp-slick-active.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready((function($){$(".sp-testimonial-free-section").each((function(index){var _this=$(this),custom_id=$(this).attr("id"),preloader;if("1"==_this.data("preloader")){var parents_class,parents_siblings_id=$("#"+custom_id).parent(".sp-testimonial-free-wrapper").find(".tfree-preloader").attr("id");$(window).load((function(){$("#"+parents_siblings_id).animate({opacity:1},600).hide(),$("#"+custom_id).animate({opacity:1},600)}))}var tfree_custom_slider_id=$(this).attr("id"),tpCarouselData=$(this).data("slick");if(""!=tfree_custom_slider_id){const mySlider=$("#"+tfree_custom_slider_id).on("init",(function(slick){1==tpCarouselData.adaptiveHeight&&multiSlideAdaptiveHeight(this)})).on("beforeChange",(function(slick,currentSlide,nextSlide){1==tpCarouselData.adaptiveHeight&&multiSlideAdaptiveHeight(this)})).slick({pauseOnFocus:!1,slidesToScroll:1,prevArrow:"<div class='slick-prev'><i class='fa fa-angle-left'></i></div>",nextArrow:"<div class='slick-next'><i class='fa fa-angle-right'></i></div>"});function multiSlideAdaptiveHeight(slider){let activeSlides=[],tallestSlide=0;setTimeout((function(){$(".slick-track .slick-active",slider).each((function(i){activeSlides[i]=$(this).outerHeight()})),activeSlides.forEach((function(item){item>tallestSlide&&(tallestSlide=item)})),$(".slick-list",slider).height(tallestSlide).css({transition:"all .5s ease"})}),10)}$(window).on("resize",(function(){1==tpCarouselData.adaptiveHeight&&multiSlideAdaptiveHeight(mySlider)}))}}))}));
1
+ jQuery(document).ready((function($){$(".sp-testimonial-free-section").each((function(index){var _this=$(this),custom_id=$(this).attr("id"),preloader;if("1"==_this.data("preloader")){var parents_class,parents_siblings_id=$("#"+custom_id).parent(".sp-testimonial-free-wrapper").find(".tfree-preloader").attr("id");$(window).load((function(){$("#"+parents_siblings_id).animate({opacity:1},600).hide(),$("#"+custom_id).animate({opacity:1},600)}))}var tfree_custom_slider_id=$(this).attr("id"),tpCarouselData=$(this).data("slick");if(0!=tfree_custom_slider_id.length){var mySlider=$("#"+tfree_custom_slider_id).on("init",(function(slick){1==tpCarouselData.adaptiveHeight&&multiSlideAdaptiveHeight(this)})).on("beforeChange",(function(slick,currentSlide,nextSlide){1==tpCarouselData.adaptiveHeight&&multiSlideAdaptiveHeight(this)})).slick({pauseOnFocus:!1,slidesToScroll:1,prevArrow:"<div class='slick-prev'><i class='fa fa-angle-left'></i></div>",nextArrow:"<div class='slick-next'><i class='fa fa-angle-right'></i></div>"});function multiSlideAdaptiveHeight(slider){let activeSlides=[],tallestSlide=0;setTimeout((function(){$(".slick-track .slick-active",slider).each((function(i){activeSlides[i]=$(this).outerHeight()})),activeSlides.forEach((function(item){item>tallestSlide&&(tallestSlide=item)})),$(".slick-list",slider).height(tallestSlide).css({transition:"all .5s ease"})}),10)}$(window).on("resize",(function(){1==tpCarouselData.adaptiveHeight&&multiSlideAdaptiveHeight(mySlider)}))}}))}));
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://shapedplugin.com/donate
4
  Tags: testimonial, testimonials, testimonial showcase, testimonials showcase, testimonial slider, testimonials slider, testimonial carousel, testimonial front-end submission form, testimonials widget, easy testimonial, testimonial rotator, random testimonials, custom testimonial, collect testimonials, social proof, simple testimonial plugin, best testimonials showcase plugin, free testimonial, customers reviews
5
  Requires at least: 4.0
6
  Tested up to: 5.8.1
7
- Stable tag: 2.3.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -194,6 +194,9 @@ Thank you!
194
 
195
  == Changelog ==
196
 
 
 
 
197
  = 2.3.0 - Oct 09, 2021 =
198
  * New: Live Preview option.
199
  * Fix: Few sites case, different plugin_dir issues.
4
  Tags: testimonial, testimonials, testimonial showcase, testimonials showcase, testimonial slider, testimonials slider, testimonial carousel, testimonial front-end submission form, testimonials widget, easy testimonial, testimonial rotator, random testimonials, custom testimonial, collect testimonials, social proof, simple testimonial plugin, best testimonials showcase plugin, free testimonial, customers reviews
5
  Requires at least: 4.0
6
  Tested up to: 5.8.1
7
+ Stable tag: 2.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
194
 
195
  == Changelog ==
196
 
197
+ = 2.3.1 - Oct 12, 2021 =
198
+ * Fix: JS error on single testimonial issue.
199
+
200
  = 2.3.0 - Oct 09, 2021 =
201
  * New: Live Preview option.
202
  * Fix: Few sites case, different plugin_dir issues.
testimonial-free.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Testimonial
13
  * Plugin URI: https://shapedplugin.com/plugin/testimonial-pro/?ref=1
14
  * Description: Most Customizable and Powerful Testimonials Showcase Plugin for WordPress that allows you to manage and display Testimonials or Reviews on any page or widget.
15
- * Version: 2.3.0
16
  * Author: ShapedPlugin
17
  * Author URI: https://shapedplugin.com/
18
  * Text Domain: testimonial-free
@@ -59,7 +59,7 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
59
  *
60
  * @var string
61
  */
62
- public $version = '2.3.0';
63
 
64
  /**
65
  * Plugin testimonial.
12
  * Plugin Name: Testimonial
13
  * Plugin URI: https://shapedplugin.com/plugin/testimonial-pro/?ref=1
14
  * Description: Most Customizable and Powerful Testimonials Showcase Plugin for WordPress that allows you to manage and display Testimonials or Reviews on any page or widget.
15
+ * Version: 2.3.1
16
  * Author: ShapedPlugin
17
  * Author URI: https://shapedplugin.com/
18
  * Text Domain: testimonial-free
59
  *
60
  * @var string
61
  */
62
+ public $version = '2.3.1';
63
 
64
  /**
65
  * Plugin testimonial.