window.Modernizr = (function(t, e, i) {
var z = '2.7.1',
n = {},
b = !0,
l = e.documentElement,
a = 'modernizr',
I = e.createElement(a),
c = I.style,
r = e.createElement('input'),
w = ':)',
O = {}.toString,
y = ' -webkit- -moz- -o- -ms- '.split(' '),
P = 'Webkit Moz O ms',
M = P.split(' '),
D = P.toLowerCase().split(' '),
m = {
'svg': 'https://www.w3.org/2000/svg'
},
o = {},
k = {},
v = {},
x = [],
S = x.slice,
h, u = function(t, i, o, n) {
var p, u, c, f, r = e.createElement('div'),
d = e.body,
s = d || e.createElement('body');
if (parseInt(o, 10)) {
while (o--) {
c = e.createElement('div');
c.id = n ? n[o] : a + (o + 1);
r.appendChild(c)
}
};
p = ['', ''].join('');
r.id = a;
(d ? r : s).innerHTML += p;
s.appendChild(r);
if (!d) {
s.style.background = '';
s.style.overflow = 'hidden';
f = l.style.overflow;
l.style.overflow = 'hidden';
l.appendChild(s)
};
u = i(r, t);
if (!d) {
s.parentNode.removeChild(s);
l.style.overflow = f
} else {
r.parentNode.removeChild(r)
};
return !!u
},
H = function(e) {
var i = t.matchMedia || t.msMatchMedia;
if (i) {
return i(e).matches
};
var o;
u('@media ' + e + ' { #' + a + ' { position: absolute; } }', function(e) {
o = (t.getComputedStyle ? getComputedStyle(e, null) : e.currentStyle)['position'] == 'absolute'
});
return o
},
A = (function() {
var o = {
'select': 'input',
'change': 'input',
'submit': 'form',
'reset': 'form',
'error': 'img',
'load': 'img',
'abort': 'img'
};
function t(t, n) {
n = n || e.createElement(o[t] || 'div');
t = 'on' + t;
var s = t in n;
if (!s) {
if (!n.setAttribute) {
n = e.createElement('div')
};
if (n.setAttribute && n.removeAttribute) {
n.setAttribute(t, '');
s = d(n[t], 'function');
if (!d(n[t], 'undefined')) {
n[t] = i
};
n.removeAttribute(t)
}
};
n = null;
return s
};
return t
})(),
C = ({}).hasOwnProperty,
g;
if (!d(C, 'undefined') && !d(C.call, 'undefined')) {
g = function(t, e) {
return C.call(t, e)
}
} else {
g = function(t, e) {
return ((e in t) && d(t.constructor.prototype[e], 'undefined'))
}
};
if (!Function.prototype.bind) {
Function.prototype.bind = function(t) {
var e = this;
if (typeof e != 'function') {
throw new TypeError()
};
var o = S.call(arguments, 1),
i = function() {
if (this instanceof i) {
var s = function() {};
s.prototype = e.prototype;
var r = new s(),
n = e.apply(r, o.concat(S.call(arguments)));
if (Object(n) === n) {
return n
};
return r
} else {
return e.apply(t, o.concat(S.call(arguments)))
}
};
return i
}
};
function p(t) {
c.cssText = t
};
function W(t, e) {
return p(y.join(t + ';') + (e || ''))
};
function d(t, e) {
return typeof t === e
};
function f(t, e) {
return !!~('' + t).indexOf(e)
};
function E(t, e) {
for (var n in t) {
var o = t[n];
if (!f(o, '-') && c[o] !== i) {
return e == 'pfx' ? o : !0
}
};
return !1
};
function L(t, e, o) {
for (var s in t) {
var n = e[t[s]];
if (n !== i) {
if (o === !1) return t[s];
if (d(n, 'function')) {
return n.bind(o || e)
};
return n
}
};
return !1
};
function s(t, e, i) {
var o = t.charAt(0).toUpperCase() + t.slice(1),
n = (t + ' ' + M.join(o + ' ') + o).split(' ');
if (d(e, 'string') || d(e, 'undefined')) {
return E(n, e)
} else {
n = (t + ' ' + (D).join(o + ' ') + o).split(' ');
return L(n, e, i)
}
};
o.flexbox = function() {
return s('flexWrap')
};
o.flexboxlegacy = function() {
return s('boxDirection')
};
o.canvas = function() {
var t = e.createElement('canvas');
return !!(t.getContext && t.getContext('2d'))
};
o.canvastext = function() {
return !!(n.canvas && d(e.createElement('canvas').getContext('2d').fillText, 'function'))
};
o.webgl = function() {
return !!t.WebGLRenderingContext
};
o.touch = function() {
var i;
if (('ontouchstart' in t) || t.DocumentTouch && e instanceof DocumentTouch) {
i = !0
} else {
u(['@media (', y.join('touch-enabled),('), a, ')', '{#modernizr{top:9px;position:absolute}}'].join(''), function(t) {
i = t.offsetTop === 9
})
};
return i
};
o.geolocation = function() {
return 'geolocation' in navigator
};
o.postmessage = function() {
return !!t.postMessage
};
o.websqldatabase = function() {
return !!t.openDatabase
};
o.indexedDB = function() {
return !!s('indexedDB', t)
};
o.hashchange = function() {
return A('hashchange', t) && (e.documentMode === i || e.documentMode > 7)
};
o.history = function() {
return !!(t.history && history.pushState)
};
o.draganddrop = function() {
var t = e.createElement('div');
return ('draggable' in t) || ('ondragstart' in t && 'ondrop' in t)
};
o.websockets = function() {
return 'WebSocket' in t || 'MozWebSocket' in t
};
o.rgba = function() {
p('background-color:rgba(150,255,150,.5)');
return f(c.backgroundColor, 'rgba')
};
o.hsla = function() {
p('background-color:hsla(120,40%,100%,.5)');
return f(c.backgroundColor, 'rgba') || f(c.backgroundColor, 'hsla')
};
o.multiplebgs = function() {
p('background:url(https://),url(https://),red url(https://)');
return (/(url\s*\(.*?){3}/).test(c.background)
};
o.backgroundsize = function() {
return s('backgroundSize')
};
o.borderimage = function() {
return s('borderImage')
};
o.borderradius = function() {
return s('borderRadius')
};
o.boxshadow = function() {
return s('boxShadow')
};
o.textshadow = function() {
return e.createElement('div').style.textShadow === ''
};
o.opacity = function() {
W('opacity:.55');
return (/^0.55$/).test(c.opacity)
};
o.cssanimations = function() {
return s('animationName')
};
o.csscolumns = function() {
return s('columnCount')
};
o.cssgradients = function() {
var t = 'background-image:',
i = 'gradient(linear,left top,right bottom,from(#9f9),to(white));',
e = 'linear-gradient(left top,#9f9, white);';
p((t + '-webkit- '.split(' ').join(i + t) + y.join(e + t)).slice(0, -t.length));
return f(c.backgroundImage, 'gradient')
};
o.cssreflections = function() {
return s('boxReflect')
};
o.csstransforms = function() {
return !!s('transform')
};
o.csstransforms3d = function() {
var t = !!s('perspective');
if (t && 'webkitPerspective' in l.style) {
u('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}', function(e, i) {
t = e.offsetLeft === 9 && e.offsetHeight === 3
})
};
return t
};
o.csstransitions = function() {
return s('transition')
};
o.fontface = function() {
var t;
u('@font-face {font-family:"font";src:url("https://")}', function(i, o) {
var r = e.getElementById('smodernizr'),
n = r.sheet || r.styleSheet,
s = n ? (n.cssRules && n.cssRules[0] ? n.cssRules[0].cssText : n.cssText || '') : '';
t = /src/i.test(s) && s.indexOf(o.split(' ')[0]) === 0
});
return t
};
o.generatedcontent = function() {
var t;
u(['#', a, '{font:0/0 a}#', a, ':after{content:"', w, '";visibility:hidden;font:3px/1 a}'].join(''), function(e) {
t = e.offsetHeight >= 3
});
return t
};
o.video = function() {
var o = e.createElement('video'),
i = !1;
try {
if (i = !!o.canPlayType) {
i = new Boolean(i);
i.ogg = o.canPlayType('video/ogg; codecs="theora"').replace(/^no$/, '');
i.h264 = o.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(/^no$/, '');
i.webm = o.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/, '')
}
} catch (t) {};
return i
};
o.audio = function() {
var o = e.createElement('audio'),
i = !1;
try {
if (i = !!o.canPlayType) {
i = new Boolean(i);
i.ogg = o.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/, '');
i.mp3 = o.canPlayType('audio/mpeg;').replace(/^no$/, '');
i.wav = o.canPlayType('audio/wav; codecs="1"').replace(/^no$/, '');
i.m4a = (o.canPlayType('audio/x-m4a;') || o.canPlayType('audio/aac;')).replace(/^no$/, '')
}
} catch (t) {};
return i
};
o.localstorage = function() {
try {
localStorage.setItem(a, a);
localStorage.removeItem(a);
return !0
} catch (t) {
return !1
}
};
o.sessionstorage = function() {
try {
sessionStorage.setItem(a, a);
sessionStorage.removeItem(a);
return !0
} catch (t) {
return !1
}
};
o.webworkers = function() {
return !!t.Worker
};
o.applicationcache = function() {
return !!t.applicationCache
};
o.svg = function() {
return !!e.createElementNS && !!e.createElementNS(m.svg, 'svg').createSVGRect
};
o.inlinesvg = function() {
var t = e.createElement('div');
t.innerHTML = '';
return (t.firstChild && t.firstChild.namespaceURI) == m.svg
};
o.smil = function() {
return !!e.createElementNS && /SVGAnimate/.test(O.call(e.createElementNS(m.svg, 'animate')))
};
o.svgclippaths = function() {
return !!e.createElementNS && /SVGClipPath/.test(O.call(e.createElementNS(m.svg, 'clipPath')))
};
function B() {
n.input = (function(i) {
for (var o = 0, n = i.length; o < n; o++) {
v[i[o]] = !!(i[o] in r)
};
if (v.list) {
v.list = !!(e.createElement('datalist') && t.HTMLDataListElement)
};
return v
})('autocomplete autofocus list placeholder max min multiple pattern required step'.split(' '));
n.inputtypes = (function(t) {
for (var n = 0, o, s, a, d = t.length; n < d; n++) {
r.setAttribute('type', s = t[n]);
o = r.type !== 'text';
if (o) {
r.value = w;
r.style.cssText = 'position:absolute;visibility:hidden;';
if (/^range$/.test(s) && r.style.WebkitAppearance !== i) {
l.appendChild(r);
a = e.defaultView;
o = a.getComputedStyle && a.getComputedStyle(r, null).WebkitAppearance !== 'textfield' && (r.offsetHeight !== 0);
l.removeChild(r)
} else if (/^(search|tel)$/.test(s)) {} else if (/^(url|email)$/.test(s)) {
o = r.checkValidity && r.checkValidity() === !1
} else {
o = r.value != w
}
};
k[t[n]] = !!o
};
return k
})('search tel url email datetime date month week time datetime-local number range color'.split(' '))
};
for (var T in o) {
if (g(o, T)) {
h = T.toLowerCase();
n[h] = o[T]();
x.push((n[h] ? '' : 'no-') + h)
}
};
n.input || B();
n.addTest = function(t, e) {
if (typeof t == 'object') {
for (var o in t) {
if (g(t, o)) {
n.addTest(o, t[o])
}
}
} else {
t = t.toLowerCase();
if (n[t] !== i) {
return n
};
e = typeof e == 'function' ? e() : e;
if (typeof b !== 'undefined' && b) {
l.className += ' ' + (e ? '' : 'no-') + t
};
n[t] = e
};
return n
};
p('');
I = r = null;
(function(t, e) {
var v = '3.7.0',
r = t.html5 || {};
var h = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,
m = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,
s, p = '_html5shiv',
a = 0,
u = {};
var i;
(function() {
try {
var o = e.createElement('a');
o.innerHTML = '';
s = ('hidden' in o);
i = o.childNodes.length == 1 || (function() {
(e.createElement)('a');
var t = e.createDocumentFragment();
return (typeof t.cloneNode == 'undefined' || typeof t.createDocumentFragment == 'undefined' || typeof t.createElement == 'undefined')
}())
} catch (t) {
s = !0;
i = !0
}
}());
function y(t, e) {
var o = t.createElement('p'),
i = t.getElementsByTagName('head')[0] || t.documentElement;
o.innerHTML = 'x';
return i.insertBefore(o.lastChild, i.firstChild)
};
function l() {
var t = o.elements;
return typeof t == 'string' ? t.split(' ') : t
};
function n(t) {
var e = u[t[p]];
if (!e) {
e = {};
a++;
t[p] = a;
u[a] = e
};
return e
};
function d(t, o, s) {
if (!o) {
o = e
};
if (i) {
return o.createElement(t)
};
if (!s) {
s = n(o)
};
var r;
if (s.cache[t]) {
r = s.cache[t].cloneNode()
} else if (m.test(t)) {
r = (s.cache[t] = s.createElem(t)).cloneNode()
} else {
r = s.createElem(t)
};
return r.canHaveChildren && !h.test(t) && !r.tagUrn ? s.frag.appendChild(r) : r
};
function g(t, o) {
if (!t) {
t = e
};
if (i) {
return t.createDocumentFragment()
};
o = o || n(t);
var a = o.frag.cloneNode(),
s = 0,
r = l(),
d = r.length;
for (; s < d; s++) {
a.createElement(r[s])
};
return a
};
function f(t, e) {
if (!e.cache) {
e.cache = {};
e.createElem = t.createElement;
e.createFrag = t.createDocumentFragment;
e.frag = e.createFrag()
};
t.createElement = function(i) {
if (!o.shivMethods) {
return e.createElem(i)
};
return d(i, t, e)
};
t.createDocumentFragment = Function('h,f', 'return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&(' + l().join().replace(/[\w\-]+/g, function(t) {
e.createElem(t);
e.frag.createElement(t);
return 'c("' + t + '")'
}) + ');return n}')(o, e.frag)
};
function c(t) {
if (!t) {
t = e
};
var r = n(t);
if (o.shivCSS && !s && !r.hasCSS) {
r.hasCSS = !!y(t, 'article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}')
};
if (!i) {
f(t, r)
};
return t
};
var o = {
'elements': r.elements || 'abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output progress section summary template time video',
'version': v,
'shivCSS': (r.shivCSS !== !1),
'supportsUnknownElements': i,
'shivMethods': (r.shivMethods !== !1),
'type': 'default',
'shivDocument': c,
createElement: d,
createDocumentFragment: g
};
t.html5 = o;
c(e)
}(this, e));
n.wt$ = z;
n.mt$ = y;
n.vt$ = D;
n.yt$ = M;
n.mq = H;
n.hasEvent = A;
n.testProp = function(t) {
return E([t])
};
n.testAllProps = s;
n.testStyles = u;
n.prefixed = function(t, e, i) {
if (!e) {
return s(t, 'pfx')
} else {
return s(t, e, i)
}
};
l.className = l.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') + (b ? ' js ' + x.join(' ') : '');
return n
})(this, this.document);
if ('undefined' == typeof jQuery) throw new Error('Bootstrap\'s JavaScript requires jQuery'); + function(t) {
'use strict';
var e = t.fn.jquery.split(' ')[0].split('.');
if (e[0] < 2 && e[1] < 9 || 1 == e[0] && 9 == e[1] && e[2] < 1 || e[0] > 3) throw new Error('Bootstrap\'s JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4')
}(jQuery), + function(t) {
'use strict';
function e() {
var i = document.createElement('bootstrap'),
e = {
WebkitTransition: 'webkitTransitionEnd',
MozTransition: 'transitionend',
OTransition: 'oTransitionEnd otransitionend',
transition: 'transitionend'
};
for (var t in e)
if (void 0 !== i.style[t]) return {
end: e[t]
};
return !1
};
t.fn.emulateTransitionEnd = function(e) {
var i = !1,
o = this;
t(this).one('bsTransitionEnd', function() {
i = !0
});
var n = function() {
i || t(o).trigger(t.support.transition.end)
};
return setTimeout(n, e), this
}, t(function() {
t.support.transition = e(), t.support.transition && (t.event.special.bsTransitionEnd = {
bindType: t.support.transition.end,
delegateType: t.support.transition.end,
handle: function(e) {
if (t(e.target).is(this)) return e.handleObj.handler.apply(this, arguments)
}
})
})
}(jQuery), + function(t) {
'use strict';
function o(i) {
return this.each(function() {
var n = t(this),
o = n.data('bs.alert');
o || n.data('bs.alert', o = new e(this)), 'string' == typeof i && o[i].call(n)
})
};
var i = '[data-dismiss="alert"]',
e = function(e) {
t(e).on('click', i, this.close)
};
e.VERSION = '3.3.7', e.TRANSITION_DURATION = 150, e.prototype.close = function(i) {
function r() {
o.detach().trigger('closed.bs.alert').remove()
};
var s = t(this),
n = s.attr('data-target');
n || (n = s.attr('href'), n = n && n.replace(/.*(?=#[^\s]*$)/, ''));
var o = t('#' === n ? [] : n);
i && i.preventDefault(), o.length || (o = s.closest('.alert')), o.trigger(i = t.Event('close.bs.alert')), i.isDefaultPrevented() || (o.removeClass('in'), t.support.transition && o.hasClass('fade') ? o.one('bsTransitionEnd', r).emulateTransitionEnd(e.TRANSITION_DURATION) : r())
};
var n = t.fn.alert;
t.fn.alert = o, t.fn.alert.Constructor = e, t.fn.alert.noConflict = function() {
return t.fn.alert = n, this
}, t(document).on('click.bs.alert.data-api', i, e.prototype.close)
}(jQuery), + function(t) {
'use strict';
function i(i) {
return this.each(function() {
var n = t(this),
o = n.data('bs.button'),
s = 'object' == typeof i && i;
o || n.data('bs.button', o = new e(this, s)), 'toggle' == i ? o.toggle() : i && o.setState(i)
})
};
var e = function(i, o) {
this.t$ = t(i), this.options = t.extend({}, e.DEFAULTS, o), this.isLoading = !1
};
e.VERSION = '3.3.7', e.DEFAULTS = {
loadingText: 'loading...'
}, e.prototype.setState = function(e) {
var o = 'disabled',
i = this.t$,
s = i.is('input') ? 'val' : 'html',
n = i.data();
e += 'Text', null == n.resetText && i.data('resetText', i[s]()), setTimeout(t.proxy(function() {
i[s](null == n[e] ? this.options[e] : n[e]), 'loadingText' == e ? (this.isLoading = !0, i.addClass(o).attr(o, o).prop(o, !0)) : this.isLoading && (this.isLoading = !1, i.removeClass(o).removeAttr(o).prop(o, !1))
}, this), 0)
}, e.prototype.toggle = function() {
var e = !0,
i = this.t$.closest('[data-toggle="buttons"]');
if (i.length) {
var t = this.t$.find('input');
'radio' == t.prop('type') ? (t.prop('checked') && (e = !1), i.find('.active').removeClass('active'), this.t$.addClass('active')) : 'checkbox' == t.prop('type') && (t.prop('checked') !== this.t$.hasClass('active') && (e = !1), this.t$.toggleClass('active')), t.prop('checked', this.t$.hasClass('active')), e && t.trigger('change')
} else this.t$.attr('aria-pressed', !this.t$.hasClass('active')), this.t$.toggleClass('active')
};
var o = t.fn.button;
t.fn.button = i, t.fn.button.Constructor = e, t.fn.button.noConflict = function() {
return t.fn.button = o, this
}, t(document).on('click.bs.button.data-api', '[data-toggle^="button"]', function(e) {
var o = t(e.target).closest('.btn');
i.call(o, 'toggle'), t(e.target).is('input[type="radio"], input[type="checkbox"]') || (e.preventDefault(), o.is('input,button') ? o.trigger('focus') : o.find('input:visible,button:visible').first().trigger('focus'))
}).on('focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function(e) {
t(e.target).closest('.btn').toggleClass('focus', /^focus(in)?$/.test(e.type))
})
}(jQuery), + function(t) {
'use strict';
function i(i) {
return this.each(function() {
var n = t(this),
o = n.data('bs.carousel'),
s = t.extend({}, e.DEFAULTS, n.data(), 'object' == typeof i && i),
r = 'string' == typeof i ? i : s.slide;
o || n.data('bs.carousel', o = new e(this, s)), 'number' == typeof i ? o.to(i) : r ? o[r]() : s.interval && o.pause().cycle()
})
};
var e = function(e, i) {
this.t$ = t(e), this.I$ = this.t$.find('.carousel-indicators'), this.options = i, this.paused = null, this.sliding = null, this.interval = null, this.X$ = null, this.h$ = null, this.options.keyboard && this.t$.on('keydown.bs.carousel', t.proxy(this.keydown, this)), 'hover' == this.options.pause && !('ontouchstart' in document.documentElement) && this.t$.on('mouseenter.bs.carousel', t.proxy(this.pause, this)).on('mouseleave.bs.carousel', t.proxy(this.cycle, this))
};
e.VERSION = '3.3.7', e.TRANSITION_DURATION = 600, e.DEFAULTS = {
interval: 5e3,
pause: 'hover',
wrap: !0,
keyboard: !0
}, e.prototype.keydown = function(t) {
if (!/input|textarea/i.test(t.target.tagName)) {
switch (t.which) {
case 37:
this.prev();
break;
case 39:
this.next();
break;
default:
return
};
t.preventDefault()
}
}, e.prototype.cycle = function(e) {
return e || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval(t.proxy(this.next, this), this.options.interval)), this
}, e.prototype.getItemIndex = function(t) {
return this.h$ = t.parent().children('.item'), this.h$.index(t || this.X$)
}, e.prototype.getItemForDirection = function(t, e) {
var i = this.getItemIndex(e),
o = 'prev' == t && 0 === i || 'next' == t && i == this.h$.length - 1;
if (o && !this.options.wrap) return e;
var n = 'prev' == t ? -1 : 1,
s = (i + n) % this.h$.length;
return this.h$.eq(s)
}, e.prototype.to = function(t) {
var i = this,
e = this.getItemIndex(this.X$ = this.t$.find('.item.active'));
if (!(t > this.h$.length - 1 || t < 0)) return this.sliding ? this.t$.one('slid.bs.carousel', function() {
i.to(t)
}) : e == t ? this.pause().cycle() : this.slide(t > e ? 'next' : 'prev', this.h$.eq(t))
}, e.prototype.pause = function(e) {
return e || (this.paused = !0), this.t$.find('.next, .prev').length && t.support.transition && (this.t$.trigger(t.support.transition.end), this.cycle(!0)), this.interval = clearInterval(this.interval), this
}, e.prototype.next = function() {
if (!this.sliding) return this.slide('next')
}, e.prototype.prev = function() {
if (!this.sliding) return this.slide('prev')
}, e.prototype.slide = function(i, o) {
var r = this.t$.find('.item.active'),
n = o || this.getItemForDirection(i, r),
l = this.interval,
s = 'next' == i ? 'left' : 'right',
a = this;
if (n.hasClass('active')) return this.sliding = !1;
var p = n[0],
d = t.Event('slide.bs.carousel', {
relatedTarget: p,
direction: s
});
if (this.t$.trigger(d), !d.isDefaultPrevented()) {
if (this.sliding = !0, l && this.pause(), this.I$.length) {
this.I$.find('.active').removeClass('active');
var u = t(this.I$.children()[this.getItemIndex(n)]);
u && u.addClass('active')
};
var c = t.Event('slid.bs.carousel', {
relatedTarget: p,
direction: s
});
return t.support.transition && this.t$.hasClass('slide') ? (n.addClass(i), n[0].offsetWidth, r.addClass(s), n.addClass(s), r.one('bsTransitionEnd', function() {
n.removeClass([i, s].join(' ')).addClass('active'), r.removeClass(['active', s].join(' ')), a.sliding = !1, setTimeout(function() {
a.t$.trigger(c)
}, 0)
}).emulateTransitionEnd(e.TRANSITION_DURATION)) : (r.removeClass('active'), n.addClass('active'), this.sliding = !1, this.t$.trigger(c)), l && this.cycle(), this
}
};
var n = t.fn.carousel;
t.fn.carousel = i, t.fn.carousel.Constructor = e, t.fn.carousel.noConflict = function() {
return t.fn.carousel = n, this
};
var o = function(e) {
var a, n = t(this),
o = t(n.attr('data-target') || (a = n.attr('href')) && a.replace(/.*(?=#[^\s]+$)/, ''));
if (o.hasClass('carousel')) {
var r = t.extend({}, o.data(), n.data()),
s = n.attr('data-slide-to');
s && (r.interval = !1), i.call(o, r), s && o.data('bs.carousel').to(s), e.preventDefault()
}
};
t(document).on('click.bs.carousel.data-api', '[data-slide]', o).on('click.bs.carousel.data-api', '[data-slide-to]', o), t(window).on('load', function() {
t('[data-ride="carousel"]').each(function() {
var e = t(this);
i.call(e, e.data())
})
})
}(jQuery), + function(t) {
'use strict';
function o(e) {
var i, o = e.attr('data-target') || (i = e.attr('href')) && i.replace(/.*(?=#[^\s]+$)/, '');
return t(o)
};
function i(i) {
return this.each(function() {
var s = t(this),
o = s.data('bs.collapse'),
n = t.extend({}, e.DEFAULTS, s.data(), 'object' == typeof i && i);
!o && n.toggle && /show|hide/.test(i) && (n.toggle = !1), o || s.data('bs.collapse', o = new e(this, n)), 'string' == typeof i && o[i]()
})
};
var e = function(i, o) {
this.t$ = t(i), this.options = t.extend({}, e.DEFAULTS, o), this.E$ = t('[data-toggle="collapse"][href="#' + i.id + '"],[data-toggle="collapse"][data-target="#' + i.id + '"]'), this.transitioning = null, this.options.parent ? this.V$ = this.getParent() : this.addAriaAndCollapsedClass(this.t$, this.E$), this.options.toggle && this.toggle()
};
e.VERSION = '3.3.7', e.TRANSITION_DURATION = 350, e.DEFAULTS = {
toggle: !0
}, e.prototype.dimension = function() {
var t = this.t$.hasClass('width');
return t ? 'width' : 'height'
}, e.prototype.show = function() {
if (!this.transitioning && !this.t$.hasClass('in')) {
var n, o = this.V$ && this.V$.children('.panel').children('.in, .collapsing');
if (!(o && o.length && (n = o.data('bs.collapse'), n && n.transitioning))) {
var r = t.Event('show.bs.collapse');
if (this.t$.trigger(r), !r.isDefaultPrevented()) {
o && o.length && (i.call(o, 'hide'), n || o.data('bs.collapse', null));
var s = this.dimension();
this.t$.removeClass('collapse').addClass('collapsing')[s](0).attr('aria-expanded', !0), this.E$.removeClass('collapsed').attr('aria-expanded', !0), this.transitioning = 1;
var a = function() {
this.t$.removeClass('collapsing').addClass('collapse in')[s](''), this.transitioning = 0, this.t$.trigger('shown.bs.collapse')
};
if (!t.support.transition) return a.call(this);
var l = t.camelCase(['scroll', s].join('-'));
this.t$.one('bsTransitionEnd', t.proxy(a, this)).emulateTransitionEnd(e.TRANSITION_DURATION)[s](this.t$[0][l])
}
}
}
}, e.prototype.hide = function() {
if (!this.transitioning && this.t$.hasClass('in')) {
var o = t.Event('hide.bs.collapse');
if (this.t$.trigger(o), !o.isDefaultPrevented()) {
var i = this.dimension();
this.t$[i](this.t$[i]())[0].offsetHeight, this.t$.addClass('collapsing').removeClass('collapse in').attr('aria-expanded', !1), this.E$.addClass('collapsed').attr('aria-expanded', !1), this.transitioning = 1;
var n = function() {
this.transitioning = 0, this.t$.removeClass('collapsing').addClass('collapse').trigger('hidden.bs.collapse')
};
return t.support.transition ? void this.t$[i](0).one('bsTransitionEnd', t.proxy(n, this)).emulateTransitionEnd(e.TRANSITION_DURATION) : n.call(this)
}
}
}, e.prototype.toggle = function() {
this[this.t$.hasClass('in') ? 'hide' : 'show']()
}, e.prototype.getParent = function() {
return t(this.options.parent).find('[data-toggle="collapse"][data-parent="' + this.options.parent + '"]').each(t.proxy(function(e, i) {
var n = t(i);
this.addAriaAndCollapsedClass(o(n), n)
}, this)).end()
}, e.prototype.addAriaAndCollapsedClass = function(t, e) {
var i = t.hasClass('in');
t.attr('aria-expanded', i), e.toggleClass('collapsed', !i).attr('aria-expanded', i)
};
var n = t.fn.collapse;
t.fn.collapse = i, t.fn.collapse.Constructor = e, t.fn.collapse.noConflict = function() {
return t.fn.collapse = n, this
}, t(document).on('click.bs.collapse.data-api', '[data-toggle="collapse"]', function(e) {
var n = t(this);
n.attr('data-target') || e.preventDefault();
var s = o(n),
r = s.data('bs.collapse'),
a = r ? 'toggle' : n.data();
i.call(s, a)
})
}(jQuery), + function(t) {
'use strict';
function n(e) {
var i = e.attr('data-target');
i || (i = e.attr('href'), i = i && /#[A-Za-z]/.test(i) && i.replace(/.*(?=#[^\s]*$)/, ''));
var o = i && t(i);
return o && o.length ? o : e.parent()
};
function o(e) {
e && 3 === e.which || (t(a).remove(), t(i).each(function() {
var s = t(this),
i = n(s),
o = {
relatedTarget: this
};
i.hasClass('open') && (e && 'click' == e.type && /input|textarea/i.test(e.target.tagName) && t.contains(i[0], e.target) || (i.trigger(e = t.Event('hide.bs.dropdown', o)), e.isDefaultPrevented() || (s.attr('aria-expanded', 'false'), i.removeClass('open').trigger(t.Event('hidden.bs.dropdown', o)))))
}))
};
function s(i) {
return this.each(function() {
var n = t(this),
o = n.data('bs.dropdown');
o || n.data('bs.dropdown', o = new e(this)), 'string' == typeof i && o[i].call(n)
})
};
var a = '.dropdown-backdrop',
i = '[data-toggle="dropdown"]',
e = function(e) {
t(e).on('click.bs.dropdown', this.toggle)
};
e.VERSION = '3.3.7', e.prototype.toggle = function(e) {
var s = t(this);
if (!s.is('.disabled, :disabled')) {
var i = n(s),
a = i.hasClass('open');
if (o(), !a) {
'ontouchstart' in document.documentElement && !i.closest('.navbar-nav').length && t(document.createElement('div')).addClass('dropdown-backdrop').insertAfter(t(this)).on('click', o);
var r = {
relatedTarget: this
};
if (i.trigger(e = t.Event('show.bs.dropdown', r)), e.isDefaultPrevented()) return;
s.trigger('focus').attr('aria-expanded', 'true'), i.toggleClass('open').trigger(t.Event('shown.bs.dropdown', r))
};
return !1
}
}, e.prototype.keydown = function(e) {
if (/(38|40|27|32)/.test(e.which) && !/input|textarea/i.test(e.target.tagName)) {
var r = t(this);
if (e.preventDefault(), e.stopPropagation(), !r.is('.disabled, :disabled')) {
var a = n(r),
l = a.hasClass('open');
if (!l && 27 != e.which || l && 27 == e.which) return 27 == e.which && a.find(i).trigger('focus'), r.trigger('click');
var d = ' li:not(.disabled):visible a',
s = a.find('.dropdown-menu' + d);
if (s.length) {
var o = s.index(e.target);
38 == e.which && o > 0 && o--, 40 == e.which && o < s.length - 1 && o++, ~o || (o = 0), s.eq(o).trigger('focus')
}
}
}
};
var r = t.fn.dropdown;
t.fn.dropdown = s, t.fn.dropdown.Constructor = e, t.fn.dropdown.noConflict = function() {
return t.fn.dropdown = r, this
}, t(document).on('click.bs.dropdown.data-api', o).on('click.bs.dropdown.data-api', '.dropdown form', function(t) {
t.stopPropagation()
}).on('click.bs.dropdown.data-api', i, e.prototype.toggle).on('keydown.bs.dropdown.data-api', i, e.prototype.keydown).on('keydown.bs.dropdown.data-api', '.dropdown-menu', e.prototype.keydown)
}(jQuery), + function(t) {
'use strict';
function i(i, o) {
return this.each(function() {
var s = t(this),
n = s.data('bs.modal'),
r = t.extend({}, e.DEFAULTS, s.data(), 'object' == typeof i && i);
n || s.data('bs.modal', n = new e(this, r)), 'string' == typeof i ? n[i](o) : r.show && n.show(o)
})
};
var e = function(e, i) {
this.options = i, this.l$ = t(document.body), this.t$ = t(e), this.O$ = this.t$.find('.modal-dialog'), this.d$ = null, this.isShown = null, this.originalBodyPad = null, this.scrollbarWidth = 0, this.ignoreBackdropClick = !1, this.options.remote && this.t$.find('.modal-content').load(this.options.remote, t.proxy(function() {
this.t$.trigger('loaded.bs.modal')
}, this))
};
e.VERSION = '3.3.7', e.TRANSITION_DURATION = 300, e.BACKDROP_TRANSITION_DURATION = 150, e.DEFAULTS = {
backdrop: !0,
keyboard: !0,
show: !0
}, e.prototype.toggle = function(t) {
return this.isShown ? this.hide() : this.show(t)
}, e.prototype.show = function(i) {
var o = this,
n = t.Event('show.bs.modal', {
relatedTarget: i
});
this.t$.trigger(n), this.isShown || n.isDefaultPrevented() || (this.isShown = !0, this.checkScrollbar(), this.setScrollbar(), this.l$.addClass('modal-open'), this.escape(), this.resize(), this.t$.on('click.dismiss.bs.modal', '[data-dismiss="modal"]', t.proxy(this.hide, this)), this.O$.on('mousedown.dismiss.bs.modal', function() {
o.t$.one('mouseup.dismiss.bs.modal', function(e) {
t(e.target).is(o.t$) && (o.ignoreBackdropClick = !0)
})
}), this.backdrop(function() {
var n = t.support.transition && o.t$.hasClass('fade');
o.t$.parent().length || o.t$.appendTo(o.l$), o.t$.show().scrollTop(0), o.adjustDialog(), n && o.t$[0].offsetWidth, o.t$.addClass('in'), o.enforceFocus();
var s = t.Event('shown.bs.modal', {
relatedTarget: i
});
n ? o.O$.one('bsTransitionEnd', function() {
o.t$.trigger('focus').trigger(s)
}).emulateTransitionEnd(e.TRANSITION_DURATION) : o.t$.trigger('focus').trigger(s)
}))
}, e.prototype.hide = function(i) {
i && i.preventDefault(), i = t.Event('hide.bs.modal'), this.t$.trigger(i), this.isShown && !i.isDefaultPrevented() && (this.isShown = !1, this.escape(), this.resize(), t(document).off('focusin.bs.modal'), this.t$.removeClass('in').off('click.dismiss.bs.modal').off('mouseup.dismiss.bs.modal'), this.O$.off('mousedown.dismiss.bs.modal'), t.support.transition && this.t$.hasClass('fade') ? this.t$.one('bsTransitionEnd', t.proxy(this.hideModal, this)).emulateTransitionEnd(e.TRANSITION_DURATION) : this.hideModal())
}, e.prototype.enforceFocus = function() {
t(document).off('focusin.bs.modal').on('focusin.bs.modal', t.proxy(function(t) {
document === t.target || this.t$[0] === t.target || this.t$.has(t.target).length || this.t$.trigger('focus')
}, this))
}, e.prototype.escape = function() {
this.isShown && this.options.keyboard ? this.t$.on('keydown.dismiss.bs.modal', t.proxy(function(t) {
27 == t.which && this.hide()
}, this)) : this.isShown || this.t$.off('keydown.dismiss.bs.modal')
}, e.prototype.resize = function() {
this.isShown ? t(window).on('resize.bs.modal', t.proxy(this.handleUpdate, this)) : t(window).off('resize.bs.modal')
}, e.prototype.hideModal = function() {
var t = this;
this.t$.hide(), this.backdrop(function() {
t.l$.removeClass('modal-open'), t.resetAdjustments(), t.resetScrollbar(), t.t$.trigger('hidden.bs.modal')
})
}, e.prototype.removeBackdrop = function() {
this.d$ && this.d$.remove(), this.d$ = null
}, e.prototype.backdrop = function(i) {
var r = this,
o = this.t$.hasClass('fade') ? 'fade' : '';
if (this.isShown && this.options.backdrop) {
var n = t.support.transition && o;
if (this.d$ = t(document.createElement('div')).addClass('modal-backdrop ' + o).appendTo(this.l$), this.t$.on('click.dismiss.bs.modal', t.proxy(function(t) {
return this.ignoreBackdropClick ? void(this.ignoreBackdropClick = !1) : void(t.target === t.currentTarget && ('static' == this.options.backdrop ? this.t$[0].focus() : this.hide()))
}, this)), n && this.d$[0].offsetWidth, this.d$.addClass('in'), !i) return;
n ? this.d$.one('bsTransitionEnd', i).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION) : i()
} else if (!this.isShown && this.d$) {
this.d$.removeClass('in');
var s = function() {
r.removeBackdrop(), i && i()
};
t.support.transition && this.t$.hasClass('fade') ? this.d$.one('bsTransitionEnd', s).emulateTransitionEnd(e.BACKDROP_TRANSITION_DURATION) : s()
} else i && i()
}, e.prototype.handleUpdate = function() {
this.adjustDialog()
}, e.prototype.adjustDialog = function() {
var t = this.t$[0].scrollHeight > document.documentElement.clientHeight;
this.t$.css({
paddingLeft: !this.bodyIsOverflowing && t ? this.scrollbarWidth : '',
paddingRight: this.bodyIsOverflowing && !t ? this.scrollbarWidth : ''
})
}, e.prototype.resetAdjustments = function() {
this.t$.css({
paddingLeft: '',
paddingRight: ''
})
}, e.prototype.checkScrollbar = function() {
var t = window.innerWidth;
if (!t) {
var e = document.documentElement.getBoundingClientRect();
t = e.right - Math.abs(e.left)
};
this.bodyIsOverflowing = document.body.clientWidth < t, this.scrollbarWidth = this.measureScrollbar()
}, e.prototype.setScrollbar = function() {
var t = parseInt(this.l$.css('padding-right') || 0, 10);
this.originalBodyPad = document.body.style.paddingRight || '', this.bodyIsOverflowing && this.l$.css('padding-right', t + this.scrollbarWidth)
}, e.prototype.resetScrollbar = function() {
this.l$.css('padding-right', this.originalBodyPad)
}, e.prototype.measureScrollbar = function() {
var t = document.createElement('div');
t.className = 'modal-scrollbar-measure', this.l$.append(t);
var e = t.offsetWidth - t.clientWidth;
return this.l$[0].removeChild(t), e
};
var o = t.fn.modal;
t.fn.modal = i, t.fn.modal.Constructor = e, t.fn.modal.noConflict = function() {
return t.fn.modal = o, this
}, t(document).on('click.bs.modal.data-api', '[data-toggle="modal"]', function(e) {
var o = t(this),
s = o.attr('href'),
n = t(o.attr('data-target') || s && s.replace(/.*(?=#[^\s]+$)/, '')),
r = n.data('bs.modal') ? 'toggle' : t.extend({
remote: !/#/.test(s) && s
}, n.data(), o.data());
o.is('a') && e.preventDefault(), n.one('show.bs.modal', function(t) {
t.isDefaultPrevented() || n.one('hidden.bs.modal', function() {
o.is(':visible') && o.trigger('focus')
})
}), i.call(n, r, this)
})
}(jQuery), + function(t) {
'use strict';
function i(i) {
return this.each(function() {
var n = t(this),
o = n.data('bs.tooltip'),
s = 'object' == typeof i && i;
!o && /destroy|hide/.test(i) || (o || n.data('bs.tooltip', o = new e(this, s)), 'string' == typeof i && o[i]())
})
};
var e = function(t, e) {
this.type = null, this.options = null, this.enabled = null, this.timeout = null, this.hoverState = null, this.t$ = null, this.inState = null, this.init('tooltip', t, e)
};
e.VERSION = '3.3.7', e.TRANSITION_DURATION = 150, e.DEFAULTS = {
animation: !0,
placement: 'top',
selector: !1,
template: '
',
trigger: 'hover focus',
title: '',
delay: 0,
html: !1,
container: !1,
viewport: {
selector: 'body',
padding: 0
}
}, e.prototype.init = function(e, i, o) {
if (this.enabled = !0, this.type = e, this.t$ = t(i), this.options = this.getOptions(o), this.y$ = this.options.viewport && t(t.isFunction(this.options.viewport) ? this.options.viewport.call(this, this.t$) : this.options.viewport.selector || this.options.viewport), this.inState = {
click: !1,
hover: !1,
focus: !1
}, this.t$[0] instanceof document.constructor && !this.options.selector) throw new Error('`selector` option must be specified when initializing ' + this.type + ' on the window.document object!');
for (var r = this.options.trigger.split(' '), s = r.length; s--;) {
var n = r[s];
if ('click' == n) this.t$.on('click.' + this.type, this.options.selector, t.proxy(this.toggle, this));
else if ('manual' != n) {
var a = 'hover' == n ? 'mouseenter' : 'focusin',
l = 'hover' == n ? 'mouseleave' : 'focusout';
this.t$.on(a + '.' + this.type, this.options.selector, t.proxy(this.enter, this)), this.t$.on(l + '.' + this.type, this.options.selector, t.proxy(this.leave, this))
}
};
this.options.selector ? this.Y$ = t.extend({}, this.options, {
trigger: 'manual',
selector: ''
}) : this.fixTitle()
}, e.prototype.getDefaults = function() {
return e.DEFAULTS
}, e.prototype.getOptions = function(e) {
return e = t.extend({}, this.getDefaults(), this.t$.data(), e), e.delay && 'number' == typeof e.delay && (e.delay = {
show: e.delay,
hide: e.delay
}), e
}, e.prototype.getDelegateOptions = function() {
var e = {},
i = this.getDefaults();
return this.Y$ && t.each(this.Y$, function(t, o) {
i[t] != o && (e[t] = o)
}), e
}, e.prototype.enter = function(e) {
var i = e instanceof this.constructor ? e : t(e.currentTarget).data('bs.' + this.type);
return i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data('bs.' + this.type, i)), e instanceof t.Event && (i.inState['focusin' == e.type ? 'focus' : 'hover'] = !0), i.tip().hasClass('in') || 'in' == i.hoverState ? void(i.hoverState = 'in') : (clearTimeout(i.timeout), i.hoverState = 'in', i.options.delay && i.options.delay.show ? void(i.timeout = setTimeout(function() {
'in' == i.hoverState && i.show()
}, i.options.delay.show)) : i.show())
}, e.prototype.isInStateTrue = function() {
for (var t in this.inState)
if (this.inState[t]) return !0;
return !1
}, e.prototype.leave = function(e) {
var i = e instanceof this.constructor ? e : t(e.currentTarget).data('bs.' + this.type);
if (i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data('bs.' + this.type, i)), e instanceof t.Event && (i.inState['focusout' == e.type ? 'focus' : 'hover'] = !1), !i.isInStateTrue()) return clearTimeout(i.timeout), i.hoverState = 'out', i.options.delay && i.options.delay.hide ? void(i.timeout = setTimeout(function() {
'out' == i.hoverState && i.hide()
}, i.options.delay.hide)) : i.hide()
}, e.prototype.show = function() {
var d = t.Event('show.bs.' + this.type);
if (this.hasContent() && this.enabled) {
this.t$.trigger(d);
var m = t.contains(this.t$[0].ownerDocument.documentElement, this.t$[0]);
if (d.isDefaultPrevented() || !m) return;
var n = this,
o = this.tip(),
c = this.getUID(this.type);
this.setContent(), o.attr('id', c), this.t$.attr('aria-describedby', c), this.options.animation && o.addClass('fade');
var i = 'function' == typeof this.options.placement ? this.options.placement.call(this, o[0], this.t$[0]) : this.options.placement,
f = /\s?auto?\s?/i,
p = f.test(i);
p && (i = i.replace(f, '') || 'top'), o.detach().css({
top: 0,
left: 0,
display: 'block'
}).addClass(i).data('bs.' + this.type, this), this.options.container ? o.appendTo(this.options.container) : o.insertAfter(this.t$), this.t$.trigger('inserted.bs.' + this.type);
var s = this.getPosition(),
l = o[0].offsetWidth,
a = o[0].offsetHeight;
if (p) {
var h = i,
r = this.getPosition(this.y$);
i = 'bottom' == i && s.bottom + a > r.bottom ? 'top' : 'top' == i && s.top - a < r.top ? 'bottom' : 'right' == i && s.right + l > r.width ? 'left' : 'left' == i && s.left - l < r.left ? 'right' : i, o.removeClass(h).addClass(i)
};
var g = this.getCalculatedOffset(i, s, l, a);
this.applyPlacement(g, i);
var u = function() {
var t = n.hoverState;
n.t$.trigger('shown.bs.' + n.type), n.hoverState = null, 'out' == t && n.leave(n)
};
t.support.transition && this.f$.hasClass('fade') ? o.one('bsTransitionEnd', u).emulateTransitionEnd(e.TRANSITION_DURATION) : u()
}
}, e.prototype.applyPlacement = function(e, i) {
var o = this.tip(),
f = o[0].offsetWidth,
d = o[0].offsetHeight,
r = parseInt(o.css('margin-top'), 10),
l = parseInt(o.css('margin-left'), 10);
isNaN(r) && (r = 0), isNaN(l) && (l = 0), e.top += r, e.left += l, t.offset.setOffset(o[0], t.extend({
using: function(t) {
o.css({
top: Math.round(t.top),
left: Math.round(t.left)
})
}
}, e), 0), o.addClass('in');
var c = o[0].offsetWidth,
s = o[0].offsetHeight;
'top' == i && s != d && (e.top = e.top + d - s);
var n = this.getViewportAdjustedDelta(i, e, c, s);
n.left ? e.left += n.left : e.top += n.top;
var a = /top|bottom/.test(i),
u = a ? 2 * n.left - f + c : 2 * n.top - d + s,
p = a ? 'offsetWidth' : 'offsetHeight';
o.offset(e), this.replaceArrow(u, o[0][p], a)
}, e.prototype.replaceArrow = function(t, e, i) {
this.arrow().css(i ? 'left' : 'top', 50 * (1 - t / e) + '%').css(i ? 'top' : 'left', '')
}, e.prototype.setContent = function() {
var t = this.tip(),
e = this.getTitle();
t.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](e), t.removeClass('fade in top bottom left right')
}, e.prototype.hide = function(i) {
function s() {
'in' != n.hoverState && o.detach(), n.t$ && n.t$.removeAttr('aria-describedby').trigger('hidden.bs.' + n.type), i && i()
};
var n = this,
o = t(this.f$),
r = t.Event('hide.bs.' + this.type);
if (this.t$.trigger(r), !r.isDefaultPrevented()) return o.removeClass('in'), t.support.transition && o.hasClass('fade') ? o.one('bsTransitionEnd', s).emulateTransitionEnd(e.TRANSITION_DURATION) : s(), this.hoverState = null, this
}, e.prototype.fixTitle = function() {
var t = this.t$;
(t.attr('title') || 'string' != typeof t.attr('data-original-title')) && t.attr('data-original-title', t.attr('title') || '').attr('title', '')
}, e.prototype.hasContent = function() {
return this.getTitle()
}, e.prototype.getPosition = function(e) {
e = e || this.t$;
var o = e[0],
n = 'BODY' == o.tagName,
i = o.getBoundingClientRect();
null == i.width && (i = t.extend({}, i, {
width: i.right - i.left,
height: i.bottom - i.top
}));
var r = window.SVGElement && o instanceof window.SVGElement,
a = n ? {
top: 0,
left: 0
} : r ? null : e.offset(),
s = {
scroll: n ? document.documentElement.scrollTop || document.body.scrollTop : e.scrollTop()
},
l = n ? {
width: t(window).width(),
height: t(window).height()
} : null;
return t.extend({}, i, s, l, a)
}, e.prototype.getCalculatedOffset = function(t, e, i, o) {
return 'bottom' == t ? {
top: e.top + e.height,
left: e.left + e.width / 2 - i / 2
} : 'top' == t ? {
top: e.top - o,
left: e.left + e.width / 2 - i / 2
} : 'left' == t ? {
top: e.top + e.height / 2 - o / 2,
left: e.left - i
} : {
top: e.top + e.height / 2 - o / 2,
left: e.left + e.width
}
}, e.prototype.getViewportAdjustedDelta = function(t, e, i, o) {
var s = {
top: 0,
left: 0
};
if (!this.y$) return s;
var r = this.options.viewport && this.options.viewport.padding || 0,
n = this.getPosition(this.y$);
if (/right|left/.test(t)) {
var d = e.top - r - n.scroll,
c = e.top + r - n.scroll + o;
d < n.top ? s.top = n.top - d : c > n.top + n.height && (s.top = n.top + n.height - c)
} else {
var l = e.left - r,
a = e.left + r + i;
l < n.left ? s.left = n.left - l : a > n.right && (s.left = n.left + n.width - a)
};
return s
}, e.prototype.getTitle = function() {
var i, e = this.t$,
t = this.options;
return i = e.attr('data-original-title') || ('function' == typeof t.title ? t.title.call(e[0]) : t.title)
}, e.prototype.getUID = function(t) {
do t += ~~(1e6 * Math.random()); while (document.getElementById(t));
return t
}, e.prototype.tip = function() {
if (!this.f$ && (this.f$ = t(this.options.template), 1 != this.f$.length)) throw new Error(this.type + ' `template` option must consist of exactly 1 top-level element!');
return this.f$
}, e.prototype.arrow = function() {
return this.w$ = this.w$ || this.tip().find('.tooltip-arrow')
}, e.prototype.enable = function() {
this.enabled = !0
}, e.prototype.disable = function() {
this.enabled = !1
}, e.prototype.toggleEnabled = function() {
this.enabled = !this.enabled
}, e.prototype.toggle = function(e) {
var i = this;
e && (i = t(e.currentTarget).data('bs.' + this.type), i || (i = new this.constructor(e.currentTarget, this.getDelegateOptions()), t(e.currentTarget).data('bs.' + this.type, i))), e ? (i.inState.click = !i.inState.click, i.isInStateTrue() ? i.enter(i) : i.leave(i)) : i.tip().hasClass('in') ? i.leave(i) : i.enter(i)
}, e.prototype.destroy = function() {
var t = this;
clearTimeout(this.timeout), this.hide(function() {
t.t$.off('.' + t.type).removeData('bs.' + t.type), t.f$ && t.f$.detach(), t.f$ = null, t.w$ = null, t.y$ = null, t.t$ = null
})
};
var o = t.fn.tooltip;
t.fn.tooltip = i, t.fn.tooltip.Constructor = e, t.fn.tooltip.noConflict = function() {
return t.fn.tooltip = o, this
}
}(jQuery), + function(t) {
'use strict';
function i(i) {
return this.each(function() {
var n = t(this),
o = n.data('bs.popover'),
s = 'object' == typeof i && i;
!o && /destroy|hide/.test(i) || (o || n.data('bs.popover', o = new e(this, s)), 'string' == typeof i && o[i]())
})
};
var e = function(t, e) {
this.init('popover', t, e)
};
if (!t.fn.tooltip) throw new Error('Popover requires tooltip.js');
e.VERSION = '3.3.7', e.DEFAULTS = t.extend({}, t.fn.tooltip.Constructor.DEFAULTS, {
placement: 'right',
trigger: 'click',
content: '',
template: ''
}), e.prototype = t.extend({}, t.fn.tooltip.Constructor.prototype), e.prototype.constructor = e, e.prototype.getDefaults = function() {
return e.DEFAULTS
}, e.prototype.setContent = function() {
var t = this.tip(),
i = this.getTitle(),
e = this.getContent();
t.find('.popover-title')[this.options.html ? 'html' : 'text'](i), t.find('.popover-content').children().detach().end()[this.options.html ? 'string' == typeof e ? 'html' : 'append' : 'text'](e), t.removeClass('fade top bottom left right in'), t.find('.popover-title').html() || t.find('.popover-title').hide()
}, e.prototype.hasContent = function() {
return this.getTitle() || this.getContent()
}, e.prototype.getContent = function() {
var e = this.t$,
t = this.options;
return e.attr('data-content') || ('function' == typeof t.content ? t.content.call(e[0]) : t.content)
}, e.prototype.arrow = function() {
return this.w$ = this.w$ || this.tip().find('.arrow')
};
var o = t.fn.popover;
t.fn.popover = i, t.fn.popover.Constructor = e, t.fn.popover.noConflict = function() {
return t.fn.popover = o, this
}
}(jQuery), + function(t) {
'use strict';
function e(i, o) {
this.l$ = t(document.body), this.m$ = t(t(i).is(document.body) ? window : i), this.options = t.extend({}, e.DEFAULTS, o), this.selector = (this.options.target || '') + ' .nav li > a', this.offsets = [], this.targets = [], this.activeTarget = null, this.scrollHeight = 0, this.m$.on('scroll.bs.scrollspy', t.proxy(this.process, this)), this.refresh(), this.process()
};
function i(i) {
return this.each(function() {
var n = t(this),
o = n.data('bs.scrollspy'),
s = 'object' == typeof i && i;
o || n.data('bs.scrollspy', o = new e(this, s)), 'string' == typeof i && o[i]()
})
};
e.VERSION = '3.3.7', e.DEFAULTS = {
offset: 10
}, e.prototype.getScrollHeight = function() {
return this.m$[0].scrollHeight || Math.max(this.l$[0].scrollHeight, document.documentElement.scrollHeight)
}, e.prototype.refresh = function() {
var o = this,
i = 'offset',
e = 0;
this.offsets = [], this.targets = [], this.scrollHeight = this.getScrollHeight(), t.isWindow(this.m$[0]) || (i = 'position', e = this.m$.scrollTop()), this.l$.find(this.selector).map(function() {
var s = t(this),
n = s.data('target') || s.attr('href'),
o = /^#./.test(n) && t(n);
return o && o.length && o.is(':visible') && [
[o[i]().top + e, n]
] || null
}).sort(function(t, e) {
return t[0] - e[0]
}).each(function() {
o.offsets.push(this[0]), o.targets.push(this[1])
})
}, e.prototype.process = function() {
var t, i = this.m$.scrollTop() + this.options.offset,
s = this.getScrollHeight(),
r = this.options.offset + s - this.m$.height(),
e = this.offsets,
o = this.targets,
n = this.activeTarget;
if (this.scrollHeight != s && this.refresh(), i >= r) return n != (t = o[o.length - 1]) && this.activate(t);
if (n && i < e[0]) return this.activeTarget = null, this.clear();
for (t = e.length; t--;) n != o[t] && i >= e[t] && (void 0 === e[t + 1] || i < e[t + 1]) && this.activate(o[t])
}, e.prototype.activate = function(e) {
this.activeTarget = e, this.clear();
var o = this.selector + '[data-target="' + e + '"],' + this.selector + '[href="' + e + '"]',
i = t(o).parents('li').addClass('active');
i.parent('.dropdown-menu').length && (i = i.closest('li.dropdown').addClass('active')), i.trigger('activate.bs.scrollspy')
}, e.prototype.clear = function() {
t(this.selector).parentsUntil(this.options.target, '.active').removeClass('active')
};
var o = t.fn.scrollspy;
t.fn.scrollspy = i, t.fn.scrollspy.Constructor = e, t.fn.scrollspy.noConflict = function() {
return t.fn.scrollspy = o, this
}, t(window).on('load.bs.scrollspy.data-api', function() {
t('[data-spy="scroll"]').each(function() {
var e = t(this);
i.call(e, e.data())
})
})
}(jQuery), + function(t) {
'use strict';
function o(i) {
return this.each(function() {
var n = t(this),
o = n.data('bs.tab');
o || n.data('bs.tab', o = new e(this)), 'string' == typeof i && o[i]()
})
};
var e = function(e) {
this.element = t(e)
};
e.VERSION = '3.3.7', e.TRANSITION_DURATION = 150, e.prototype.show = function() {
var e = this.element,
n = e.closest('ul:not(.dropdown-menu)'),
i = e.data('target');
if (i || (i = e.attr('href'), i = i && i.replace(/.*(?=#[^\s]*$)/, '')), !e.parent('li').hasClass('active')) {
var o = n.find('.active:last a'),
r = t.Event('hide.bs.tab', {
relatedTarget: e[0]
}),
s = t.Event('show.bs.tab', {
relatedTarget: o[0]
});
if (o.trigger(r), e.trigger(s), !s.isDefaultPrevented() && !r.isDefaultPrevented()) {
var a = t(i);
this.activate(e.closest('li'), n), this.activate(a, a.parent(), function() {
o.trigger({
type: 'hidden.bs.tab',
relatedTarget: e[0]
}), e.trigger({
type: 'shown.bs.tab',
relatedTarget: o[0]
})
})
}
}
}, e.prototype.activate = function(i, o, n) {
function r() {
s.removeClass('active').find('> .dropdown-menu > .active').removeClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded', !1), i.addClass('active').find('[data-toggle="tab"]').attr('aria-expanded', !0), a ? (i[0].offsetWidth, i.addClass('in')) : i.removeClass('fade'), i.parent('.dropdown-menu').length && i.closest('li.dropdown').addClass('active').end().find('[data-toggle="tab"]').attr('aria-expanded', !0), n && n()
};
var s = o.find('> .active'),
a = n && t.support.transition && (s.length && s.hasClass('fade') || !!o.find('> .fade').length);
s.length && a ? s.one('bsTransitionEnd', r).emulateTransitionEnd(e.TRANSITION_DURATION) : r(), s.removeClass('in')
};
var n = t.fn.tab;
t.fn.tab = o, t.fn.tab.Constructor = e, t.fn.tab.noConflict = function() {
return t.fn.tab = n, this
};
var i = function(e) {
e.preventDefault(), o.call(t(this), 'show')
};
t(document).on('click.bs.tab.data-api', '[data-toggle="tab"]', i).on('click.bs.tab.data-api', '[data-toggle="pill"]', i)
}(jQuery), + function(t) {
'use strict';
function i(i) {
return this.each(function() {
var n = t(this),
o = n.data('bs.affix'),
s = 'object' == typeof i && i;
o || n.data('bs.affix', o = new e(this, s)), 'string' == typeof i && o[i]()
})
};
var e = function(i, o) {
this.options = t.extend({}, e.DEFAULTS, o), this.k$ = t(this.options.target).on('scroll.bs.affix.data-api', t.proxy(this.checkPosition, this)).on('click.bs.affix.data-api', t.proxy(this.checkPositionWithEventLoop, this)), this.t$ = t(i), this.affixed = null, this.unpin = null, this.pinnedOffset = null, this.checkPosition()
};
e.VERSION = '3.3.7', e.RESET = 'affix affix-top affix-bottom', e.DEFAULTS = {
offset: 0,
target: window
}, e.prototype.getState = function(t, e, i, o) {
var n = this.k$.scrollTop(),
s = this.t$.offset(),
r = this.k$.height();
if (null != i && 'top' == this.affixed) return n < i && 'top';
if ('bottom' == this.affixed) return null != i ? !(n + this.unpin <= s.top) && 'bottom' : !(n + r <= t - o) && 'bottom';
var a = null == this.affixed,
l = a ? n : s.top,
d = a ? r : e;
return null != i && n <= i ? 'top' : null != o && l + d >= t - o && 'bottom'
}, e.prototype.getPinnedOffset = function() {
if (this.pinnedOffset) return this.pinnedOffset;
this.t$.removeClass(e.RESET).addClass('affix');
var i = this.k$.scrollTop(),
t = this.t$.offset();
return this.pinnedOffset = t.top - i
}, e.prototype.checkPositionWithEventLoop = function() {
setTimeout(t.proxy(this.checkPosition, this), 1)
}, e.prototype.checkPosition = function() {
if (this.t$.is(':visible')) {
var l = this.t$.height(),
i = this.options.offset,
s = i.top,
n = i.bottom,
a = Math.max(t(document).height(), t(document.body).height());
'object' != typeof i && (n = s = i), 'function' == typeof s && (s = i.top(this.t$)), 'function' == typeof n && (n = i.bottom(this.t$));
var o = this.getState(a, l, s, n);
if (this.affixed != o) {
null != this.unpin && this.t$.css('top', '');
var r = 'affix' + (o ? '-' + o : ''),
d = t.Event(r + '.bs.affix');
if (this.t$.trigger(d), d.isDefaultPrevented()) return;
this.affixed = o, this.unpin = 'bottom' == o ? this.getPinnedOffset() : null, this.t$.removeClass(e.RESET).addClass(r).trigger(r.replace('affix', 'affixed') + '.bs.affix')
};
'bottom' == o && this.t$.offset({
top: a - l - n
})
}
};
var o = t.fn.affix;
t.fn.affix = i, t.fn.affix.Constructor = e, t.fn.affix.noConflict = function() {
return t.fn.affix = o, this
}, t(window).on('load', function() {
t('[data-spy="affix"]').each(function() {
var o = t(this),
e = o.data();
e.offset = e.offset || {}, null != e.offsetBottom && (e.offset.bottom = e.offsetBottom), null != e.offsetTop && (e.offset.top = e.offsetTop), i.call(o, e)
})
})
}(jQuery);
! function(t, e) {
"use strict";
function r(r, a, i, l, u) {
function f() {
L = t.devicePixelRatio > 1, c(i), a.delay >= 0 && setTimeout(function() {
s(!0)
}, a.delay), (a.delay < 0 || a.combined) && (l.e = v(a.throttle, function(t) {
"resize" === t.type && (w = B = -1), s(t.all)
}), l.a = function(t) {
c(t), i.push.apply(i, t)
}, l.g = function() {
return i = n(i).filter(function() {
return !n(this).data(a.loadedName)
})
}, l.f = function(t) {
for (var e = 0; e < t.length; e++) {
var r = i.filter(function() {
return this === t[e]
});
r.length && s(!1, r)
}
}, s(), n(a.appendScroll).on("scroll." + u + " resize." + u, l.e))
}
function c(t) {
var i = a.defaultImage,
o = a.placeholder,
l = a.imageBase,
u = a.srcsetAttribute,
f = a.loaderAttribute,
c = a._f || {};
t = n(t).filter(function() {
var t = n(this),
r = m(this);
return !t.data(a.handledName) && (t.attr(a.attribute) || t.attr(u) || t.attr(f) || c[r] !== e)
}).data("plugin_" + a.name, r);
for (var s = 0, d = t.length; s < d; s++) {
var A = n(t[s]),
g = m(t[s]),
h = A.attr(a.imageBaseAttribute) || l;
g === N && h && A.attr(u) && A.attr(u, b(A.attr(u), h)), c[g] === e || A.attr(f) || A.attr(f, c[g]), g === N && i && !A.attr(E) ? A.attr(E, i) : g === N || !o || A.css(O) && "none" !== A.css(O) || A.css(O, "url('" + o + "')")
}
}
function s(t, e) {
if (!i.length) return void(a.autoDestroy && r.destroy());
for (var o = e || i, l = !1, u = a.imageBase || "", f = a.srcsetAttribute, c = a.handledName, s = 0; s < o.length; s++)
if (t || e || A(o[s])) {
var g = n(o[s]),
h = m(o[s]),
b = g.attr(a.attribute),
v = g.attr(a.imageBaseAttribute) || u,
p = g.attr(a.loaderAttribute);
g.data(c) || a.visibleOnly && !g.is(":visible") || !((b || g.attr(f)) && (h === N && (v + b !== g.attr(E) || g.attr(f) !== g.attr(F)) || h !== N && v + b !== g.css(O)) || p) || (l = !0, g.data(c, !0), d(g, h, v, p))
}
l && (i = n(i).filter(function() {
return !n(this).data(c)
}))
}
function d(t, e, r, i) {
++z;
var o = function() {
y("onError", t), p(), o = n.noop
};
y("beforeLoad", t);
var l = a.attribute,
u = a.srcsetAttribute,
f = a.sizesAttribute,
c = a.retinaAttribute,
s = a.removeAttribute,
d = a.loadedName,
A = t.attr(c);
if (i) {
var g = function() {
s && t.removeAttr(a.loaderAttribute), t.data(d, !0), y(T, t), setTimeout(p, 1), g = n.noop
};
t.off(I).one(I, o).one(D, g), y(i, t, function(e) {
e ? (t.off(D), g()) : (t.off(I), o())
}) || t.trigger(I)
} else {
var h = n(new Image);
h.one(I, o).one(D, function() {
t.hide(), e === N ? t.attr(C, h.attr(C)).attr(F, h.attr(F)).attr(E, h.attr(E)) : t.css(O, "url('" + h.attr(E) + "')"), t[a.effect](a.effectTime), s && (t.removeAttr(l + " " + u + " " + c + " " + a.imageBaseAttribute), f !== C && t.removeAttr(f)), t.data(d, !0), y(T, t), h.remove(), p()
});
var m = (L && A ? A : t.attr(l)) || "";
h.attr(C, t.attr(f)).attr(F, t.attr(u)).attr(E, m ? r + m : null), h.complete && h.trigger(D)
}
}
function A(t) {
var e = t.getBoundingClientRect(),
r = a.scrollDirection,
n = a.threshold,
i = h() + n > e.top && -n < e.bottom,
o = g() + n > e.left && -n < e.right;
return "vertical" === r ? i : "horizontal" === r ? o : i && o
}
function g() {
return w >= 0 ? w : w = n(t).width()
}
function h() {
return B >= 0 ? B : B = n(t).height()
}
function m(t) {
return t.tagName.toLowerCase()
}
function b(t, e) {
if (e) {
var r = t.split(",");
t = "";
for (var a = 0, n = r.length; a < n; a++) t += e + r[a].trim() + (a !== n - 1 ? "," : "")
}
return t
}
function v(t, e) {
var n, i = 0;
return function(o, l) {
function u() {
i = +new Date, e.call(r, o)
}
var f = +new Date - i;
n && clearTimeout(n), f > t || !a.enableThrottle || l ? u() : n = setTimeout(u, t - f)
}
}
function p() {
--z, i.length || z || y("onFinishedAll")
}
function y(t, e, n) {
return !!(t = a[t]) && (t.apply(r, [].slice.call(arguments, 1)), !0)
}
var z = 0,
w = -1,
B = -1,
L = !1,
T = "afterLoad",
D = "load",
I = "error",
N = "img",
E = "src",
F = "srcset",
C = "sizes",
O = "background-image";
"event" === a.bind || o ? f() : n(t).on(D + "." + u, f)
}
function a(a, o) {
var l = this,
u = n.extend({}, l.config, o),
f = {},
c = u.name + "-" + ++i;
return l.config = function(t, r) {
return r === e ? u[t] : (u[t] = r, l)
}, l.addItems = function(t) {
return f.a && f.a("string" === n.type(t) ? n(t) : t), l
}, l.getItems = function() {
return f.g ? f.g() : {}
}, l.update = function(t) {
return f.e && f.e({}, !t), l
}, l.force = function(t) {
return f.f && f.f("string" === n.type(t) ? n(t) : t), l
}, l.loadAll = function() {
return f.e && f.e({
all: !0
}, !0), l
}, l.destroy = function() {
return n(u.appendScroll).off("." + c, f.e), n(t).off("." + c), f = {}, e
}, r(l, u, a, f, c), u.chainable ? a : l
}
var n = t.jQuery || t.Zepto,
i = 0,
o = !1;
n.fn.Lazy = n.fn.lazy = function(t) {
return new a(this, t)
}, n.Lazy = n.lazy = function(t, r, i) {
if (n.isFunction(r) && (i = r, r = []), n.isFunction(i)) {
t = n.isArray(t) ? t : [t], r = n.isArray(r) ? r : [r];
for (var o = a.prototype.config, l = o._f || (o._f = {}), u = 0, f = t.length; u < f; u++)(o[t[u]] === e || n.isFunction(o[t[u]])) && (o[t[u]] = i);
for (var c = 0, s = r.length; c < s; c++) l[r[c]] = t[0]
}
}, a.prototype.config = {
name: "lazy",
chainable: !0,
autoDestroy: !0,
bind: "load",
threshold: 500,
visibleOnly: !1,
appendScroll: t,
scrollDirection: "both",
imageBase: null,
defaultImage: "data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==",
placeholder: null,
delay: -1,
combined: !1,
attribute: "data-src",
srcsetAttribute: "data-srcset",
sizesAttribute: "data-sizes",
retinaAttribute: "data-retina",
loaderAttribute: "data-loader",
imageBaseAttribute: "data-imagebase",
removeAttribute: !0,
handledName: "handled",
loadedName: "loaded",
effect: "show",
effectTime: 0,
enableThrottle: !0,
throttle: 250,
beforeLoad: e,
afterLoad: e,
onError: e,
onFinishedAll: e
}, n(t).on("load", function() {
o = !0
})
}(window);
! function(t) {
t.lazy(["frame", "iframe"], "iframe", function(r, e) {
var a = this;
if ("iframe" === r[0].tagName.toLowerCase()) {
var i = "data-src",
o = "data-error-detect",
n = r.attr(o);
"true" !== n && "1" !== n ? (r.attr("src", r.attr(i)), a.config("removeAttribute") && r.removeAttr(i + " " + o)) : t.ajax({
url: r.attr(i),
dataType: "html",
crossDomain: !0,
xhrFields: {
withCredentials: !0
},
success: function(t) {
r.html(t).attr("src", r.attr(i)), a.config("removeAttribute") && r.removeAttr(i + " " + o)
},
error: function() {
e(!1)
}
})
} else e(!1)
})
}(window.jQuery || window.Zepto);
! function(i) {
"use strict";
"function" == typeof define && define.amd ? define(["jquery"], i) : "undefined" != typeof exports ? module.exports = i(require("jquery")) : i(jQuery)
}(function(i) {
"use strict";
var e = window.Slick || {};
(e = function() {
var e = 0;
return function(t, o) {
var s, n = this;
n.defaults = {
accessibility: !0,
adaptiveHeight: !1,
appendArrows: i(t),
appendDots: i(t),
arrows: !0,
asNavFor: null,
prevArrow: '',
nextArrow: '',
autoplay: !1,
autoplaySpeed: 3e3,
centerMode: !1,
centerPadding: "50px",
cssEase: "ease",
customPaging: function(e, t) {
return i('').text(t + 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
}, n.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
}, i.extend(n, n.initials), n.activeBreakpoint = null, n.animType = null, n.animProp = null, n.breakpoints = [], n.breakpointSettings = [], n.cssTransitions = !1, n.focussed = !1, n.interrupted = !1, n.hidden = "hidden", n.paused = !0, n.positionProp = null, n.respondTo = null, n.rowCount = 1, n.shouldClick = !0, n.$slider = i(t), n.$slidesCache = null, n.transformType = null, n.transitionType = null, n.visibilityChange = "visibilitychange", n.windowWidth = 0, n.windowTimer = null, s = i(t).data("slick") || {}, n.options = i.extend({}, n.defaults, o, s), n.currentSlide = n.options.initialSlide, n.originalSettings = n.options, void 0 !== document.mozHidden ? (n.hidden = "mozHidden", n.visibilityChange = "mozvisibilitychange") : void 0 !== document.webkitHidden && (n.hidden = "webkitHidden", n.visibilityChange = "webkitvisibilitychange"), n.autoPlay = i.proxy(n.autoPlay, n), n.autoPlayClear = i.proxy(n.autoPlayClear, n), n.autoPlayIterator = i.proxy(n.autoPlayIterator, n), n.changeSlide = i.proxy(n.changeSlide, n), n.clickHandler = i.proxy(n.clickHandler, n), n.selectHandler = i.proxy(n.selectHandler, n), n.setPosition = i.proxy(n.setPosition, n), n.swipeHandler = i.proxy(n.swipeHandler, n), n.dragHandler = i.proxy(n.dragHandler, n), n.keyHandler = i.proxy(n.keyHandler, n), n.instanceUid = e++, n.htmlExpr = /^(?:\s*(<[\w\W]+>)[^>]*)$/, n.registerBreakpoints(), n.init(!0)
}
}()).prototype.activateADA = function() {
this.$slideTrack.find(".slick-active").attr({
"aria-hidden": "false"
}).find("a, input, button, select").attr({
tabindex: "0"
})
}, e.prototype.addSlide = e.prototype.slickAdd = function(e, t, o) {
var s = this;
if ("boolean" == typeof t) o = t, t = null;
else if (t < 0 || t >= s.slideCount) return !1;
s.unload(), "number" == typeof t ? 0 === t && 0 === s.$slides.length ? i(e).appendTo(s.$slideTrack) : o ? i(e).insertBefore(s.$slides.eq(t)) : i(e).insertAfter(s.$slides.eq(t)) : !0 === o ? i(e).prependTo(s.$slideTrack) : i(e).appendTo(s.$slideTrack), s.$slides = s.$slideTrack.children(this.options.slide), s.$slideTrack.children(this.options.slide).detach(), s.$slideTrack.append(s.$slides), s.$slides.each(function(e, t) {
i(t).attr("data-slick-index", e)
}), s.$slidesCache = s.$slides, s.reinit()
}, e.prototype.animateHeight = function() {
var i = this;
if (1 === i.options.slidesToShow && !0 === i.options.adaptiveHeight && !1 === i.options.vertical) {
var e = i.$slides.eq(i.currentSlide).outerHeight(!0);
i.$list.animate({
height: e
}, i.options.speed)
}
}, e.prototype.animateSlide = function(e, t) {
var o = {},
s = this;
s.animateHeight(), !0 === s.options.rtl && !1 === s.options.vertical && (e = -e), !1 === s.transformsEnabled ? !1 === s.options.vertical ? s.$slideTrack.animate({
left: e
}, s.options.speed, s.options.easing, t) : s.$slideTrack.animate({
top: e
}, s.options.speed, s.options.easing, t) : !1 === s.cssTransitions ? (!0 === s.options.rtl && (s.currentLeft = -s.currentLeft), i({
animStart: s.currentLeft
}).animate({
animStart: e
}, {
duration: s.options.speed,
easing: s.options.easing,
step: function(i) {
i = Math.ceil(i), !1 === s.options.vertical ? (o[s.animType] = "translate(" + i + "px, 0px)", s.$slideTrack.css(o)) : (o[s.animType] = "translate(0px," + i + "px)", s.$slideTrack.css(o))
},
complete: function() {
t && t.call()
}
})) : (s.applyTransition(), e = Math.ceil(e), !1 === s.options.vertical ? o[s.animType] = "translate3d(" + e + "px, 0px, 0px)" : o[s.animType] = "translate3d(0px," + e + "px, 0px)", s.$slideTrack.css(o), t && setTimeout(function() {
s.disableTransition(), t.call()
}, s.options.speed))
}, e.prototype.getNavTarget = function() {
var e = this,
t = e.options.asNavFor;
return t && null !== t && (t = i(t).not(e.$slider)), t
}, e.prototype.asNavFor = function(e) {
var t = this.getNavTarget();
null !== t && "object" == typeof t && t.each(function() {
var t = i(this).slick("getSlick");
t.unslicked || t.slideHandler(e, !0)
})
}, e.prototype.applyTransition = function(i) {
var e = this,
t = {};
!1 === e.options.fade ? t[e.transitionType] = e.transformType + " " + e.options.speed + "ms " + e.options.cssEase : t[e.transitionType] = "opacity " + e.options.speed + "ms " + e.options.cssEase, !1 === e.options.fade ? e.$slideTrack.css(t) : e.$slides.eq(i).css(t)
}, e.prototype.autoPlay = function() {
var i = this;
i.autoPlayClear(), i.slideCount > i.options.slidesToShow && (i.autoPlayTimer = setInterval(i.autoPlayIterator, i.options.autoplaySpeed))
}, e.prototype.autoPlayClear = function() {
var i = this;
i.autoPlayTimer && clearInterval(i.autoPlayTimer)
}, e.prototype.autoPlayIterator = function() {
var i = this,
e = i.currentSlide + i.options.slidesToScroll;
i.paused || i.interrupted || i.focussed || (!1 === i.options.infinite && (1 === i.direction && i.currentSlide + 1 === i.slideCount - 1 ? i.direction = 0 : 0 === i.direction && (e = i.currentSlide - i.options.slidesToScroll, i.currentSlide - 1 == 0 && (i.direction = 1))), i.slideHandler(e))
}, e.prototype.buildArrows = function() {
var e = this;
!0 === e.options.arrows && (e.$prevArrow = i(e.options.prevArrow).addClass("slick-arrow"), e.$nextArrow = i(e.options.nextArrow).addClass("slick-arrow"), e.slideCount > e.options.slidesToShow ? (e.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), e.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"), e.htmlExpr.test(e.options.prevArrow) && e.$prevArrow.prependTo(e.options.appendArrows), e.htmlExpr.test(e.options.nextArrow) && e.$nextArrow.appendTo(e.options.appendArrows), !0 !== e.options.infinite && e.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true")) : e.$prevArrow.add(e.$nextArrow).addClass("slick-hidden").attr({
"aria-disabled": "true",
tabindex: "-1"
}))
}, e.prototype.buildDots = function() {
var e, t, o = this;
if (!0 === o.options.dots) {
for (o.$slider.addClass("slick-dotted"), t = i("").addClass(o.options.dotsClass), e = 0; e <= o.getDotCount(); e += 1) t.append(i("").append(o.options.customPaging.call(this, o, e)));
o.$dots = t.appendTo(o.options.appendDots), o.$dots.find("li").first().addClass("slick-active")
}
}, e.prototype.buildOut = function() {
var e = this;
e.$slides = e.$slider.children(e.options.slide + ":not(.slick-cloned)").addClass("slick-slide"), e.slideCount = e.$slides.length, e.$slides.each(function(e, t) {
i(t).attr("data-slick-index", e).data("originalStyling", i(t).attr("style") || "")
}), e.$slider.addClass("slick-slider"), e.$slideTrack = 0 === e.slideCount ? i('').appendTo(e.$slider) : e.$slides.wrapAll('').parent(), e.$list = e.$slideTrack.wrap('').parent(), e.$slideTrack.css("opacity", 0), !0 !== e.options.centerMode && !0 !== e.options.swipeToSlide || (e.options.slidesToScroll = 1), i("img[data-lazy]", e.$slider).not("[src]").addClass("slick-loading"), e.setupInfinite(), e.buildArrows(), e.buildDots(), e.updateDots(), e.setSlideClasses("number" == typeof e.currentSlide ? e.currentSlide : 0), !0 === e.options.draggable && e.$list.addClass("draggable")
}, e.prototype.buildRows = function() {
var i, e, t, o, s, n, r, l = this;
if (o = document.createDocumentFragment(), n = l.$slider.children(), l.options.rows > 1) {
for (r = l.options.slidesPerRow * l.options.rows, s = Math.ceil(n.length / r), i = 0; i < s; i++) {
var d = document.createElement("div");
for (e = 0; e < l.options.rows; e++) {
var a = document.createElement("div");
for (t = 0; t < l.options.slidesPerRow; t++) {
var c = i * r + (e * l.options.slidesPerRow + t);
n.get(c) && a.appendChild(n.get(c))
}
d.appendChild(a)
}
o.appendChild(d)
}
l.$slider.empty().append(o), l.$slider.children().children().children().css({
width: 100 / l.options.slidesPerRow + "%",
display: "inline-block"
})
}
}, e.prototype.checkResponsive = function(e, t) {
var o, s, n, r = this,
l = !1,
d = r.$slider.width(),
a = window.innerWidth || i(window).width();
if ("window" === r.respondTo ? n = a : "slider" === r.respondTo ? n = d : "min" === r.respondTo && (n = Math.min(a, d)), r.options.responsive && r.options.responsive.length && null !== r.options.responsive) {
s = null;
for (o in r.breakpoints) r.breakpoints.hasOwnProperty(o) && (!1 === r.originalSettings.mobileFirst ? n < r.breakpoints[o] && (s = r.breakpoints[o]) : n > r.breakpoints[o] && (s = r.breakpoints[o]));
null !== s ? null !== r.activeBreakpoint ? (s !== r.activeBreakpoint || t) && (r.activeBreakpoint = s, "unslick" === r.breakpointSettings[s] ? r.unslick(s) : (r.options = i.extend({}, r.originalSettings, r.breakpointSettings[s]), !0 === e && (r.currentSlide = r.options.initialSlide), r.refresh(e)), l = s) : (r.activeBreakpoint = s, "unslick" === r.breakpointSettings[s] ? r.unslick(s) : (r.options = i.extend({}, r.originalSettings, r.breakpointSettings[s]), !0 === e && (r.currentSlide = r.options.initialSlide), r.refresh(e)), l = s) : null !== r.activeBreakpoint && (r.activeBreakpoint = null, r.options = r.originalSettings, !0 === e && (r.currentSlide = r.options.initialSlide), r.refresh(e), l = s), e || !1 === l || r.$slider.trigger("breakpoint", [r, l])
}
}, e.prototype.changeSlide = function(e, t) {
var o, s, n, r = this,
l = i(e.currentTarget);
switch (l.is("a") && e.preventDefault(), l.is("li") || (l = l.closest("li")), n = r.slideCount % r.options.slidesToScroll != 0, o = n ? 0 : (r.slideCount - r.currentSlide) % r.options.slidesToScroll, e.data.message) {
case "previous":
s = 0 === o ? r.options.slidesToScroll : r.options.slidesToShow - o, r.slideCount > r.options.slidesToShow && r.slideHandler(r.currentSlide - s, !1, t);
break;
case "next":
s = 0 === o ? r.options.slidesToScroll : o, r.slideCount > r.options.slidesToShow && r.slideHandler(r.currentSlide + s, !1, t);
break;
case "index":
var d = 0 === e.data.index ? 0 : e.data.index || l.index() * r.options.slidesToScroll;
r.slideHandler(r.checkNavigable(d), !1, t), l.children().trigger("focus");
break;
default:
return
}
}, e.prototype.checkNavigable = function(i) {
var e, t;
if (e = this.getNavigableIndexes(), t = 0, i > e[e.length - 1]) i = e[e.length - 1];
else
for (var o in e) {
if (i < e[o]) {
i = t;
break
}
t = e[o]
}
return i
}, e.prototype.cleanUpEvents = function() {
var e = this;
e.options.dots && null !== e.$dots && (i("li", e.$dots).off("click.slick", e.changeSlide).off("mouseenter.slick", i.proxy(e.interrupt, e, !0)).off("mouseleave.slick", i.proxy(e.interrupt, e, !1)), !0 === e.options.accessibility && e.$dots.off("keydown.slick", e.keyHandler)), e.$slider.off("focus.slick blur.slick"), !0 === e.options.arrows && e.slideCount > e.options.slidesToShow && (e.$prevArrow && e.$prevArrow.off("click.slick", e.changeSlide), e.$nextArrow && e.$nextArrow.off("click.slick", e.changeSlide), !0 === e.options.accessibility && (e.$prevArrow && e.$prevArrow.off("keydown.slick", e.keyHandler), e.$nextArrow && e.$nextArrow.off("keydown.slick", e.keyHandler))), e.$list.off("touchstart.slick mousedown.slick", e.swipeHandler), e.$list.off("touchmove.slick mousemove.slick", e.swipeHandler), e.$list.off("touchend.slick mouseup.slick", e.swipeHandler), e.$list.off("touchcancel.slick mouseleave.slick", e.swipeHandler), e.$list.off("click.slick", e.clickHandler), i(document).off(e.visibilityChange, e.visibility), e.cleanUpSlideEvents(), !0 === e.options.accessibility && e.$list.off("keydown.slick", e.keyHandler), !0 === e.options.focusOnSelect && i(e.$slideTrack).children().off("click.slick", e.selectHandler), i(window).off("orientationchange.slick.slick-" + e.instanceUid, e.orientationChange), i(window).off("resize.slick.slick-" + e.instanceUid, e.resize), i("[draggable!=true]", e.$slideTrack).off("dragstart", e.preventDefault), i(window).off("load.slick.slick-" + e.instanceUid, e.setPosition)
}, e.prototype.cleanUpSlideEvents = function() {
var e = this;
e.$list.off("mouseenter.slick", i.proxy(e.interrupt, e, !0)), e.$list.off("mouseleave.slick", i.proxy(e.interrupt, e, !1))
}, e.prototype.cleanUpRows = function() {
var i, e = this;
e.options.rows > 1 && ((i = e.$slides.children().children()).removeAttr("style"), e.$slider.empty().append(i))
}, e.prototype.clickHandler = function(i) {
!1 === this.shouldClick && (i.stopImmediatePropagation(), i.stopPropagation(), i.preventDefault())
}, e.prototype.destroy = function(e) {
var t = this;
t.autoPlayClear(), t.touchObject = {}, t.cleanUpEvents(), i(".slick-cloned", t.$slider).detach(), t.$dots && t.$dots.remove(), t.$prevArrow && t.$prevArrow.length && (t.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), t.htmlExpr.test(t.options.prevArrow) && t.$prevArrow.remove()), t.$nextArrow && t.$nextArrow.length && (t.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display", ""), t.htmlExpr.test(t.options.nextArrow) && t.$nextArrow.remove()), t.$slides && (t.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each(function() {
i(this).attr("style", i(this).data("originalStyling"))
}), t.$slideTrack.children(this.options.slide).detach(), t.$slideTrack.detach(), t.$list.detach(), t.$slider.append(t.$slides)), t.cleanUpRows(), t.$slider.removeClass("slick-slider"), t.$slider.removeClass("slick-initialized"), t.$slider.removeClass("slick-dotted"), t.unslicked = !0, e || t.$slider.trigger("destroy", [t])
}, e.prototype.disableTransition = function(i) {
var e = this,
t = {};
t[e.transitionType] = "", !1 === e.options.fade ? e.$slideTrack.css(t) : e.$slides.eq(i).css(t)
}, e.prototype.fadeSlide = function(i, e) {
var t = this;
!1 === t.cssTransitions ? (t.$slides.eq(i).css({
zIndex: t.options.zIndex
}), t.$slides.eq(i).animate({
opacity: 1
}, t.options.speed, t.options.easing, e)) : (t.applyTransition(i), t.$slides.eq(i).css({
opacity: 1,
zIndex: t.options.zIndex
}), e && setTimeout(function() {
t.disableTransition(i), e.call()
}, t.options.speed))
}, e.prototype.fadeSlideOut = function(i) {
var e = this;
!1 === e.cssTransitions ? e.$slides.eq(i).animate({
opacity: 0,
zIndex: e.options.zIndex - 2
}, e.options.speed, e.options.easing) : (e.applyTransition(i), e.$slides.eq(i).css({
opacity: 0,
zIndex: e.options.zIndex - 2
}))
}, e.prototype.filterSlides = e.prototype.slickFilter = function(i) {
var e = this;
null !== i && (e.$slidesCache = e.$slides, e.unload(), e.$slideTrack.children(this.options.slide).detach(), e.$slidesCache.filter(i).appendTo(e.$slideTrack), e.reinit())
}, e.prototype.focusHandler = function() {
var e = this;
e.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick", "*", function(t) {
t.stopImmediatePropagation();
var o = i(this);
setTimeout(function() {
e.options.pauseOnFocus && (e.focussed = o.is(":focus"), e.autoPlay())
}, 0)
})
}, e.prototype.getCurrent = e.prototype.slickCurrentSlide = function() {
return this.currentSlide
}, e.prototype.getDotCount = function() {
var i = this,
e = 0,
t = 0,
o = 0;
if (!0 === i.options.infinite)
if (i.slideCount <= i.options.slidesToShow) ++o;
else
for (; e < i.slideCount;) ++o, e = t + i.options.slidesToScroll, t += i.options.slidesToScroll <= i.options.slidesToShow ? i.options.slidesToScroll : i.options.slidesToShow;
else if (!0 === i.options.centerMode) o = i.slideCount;
else if (i.options.asNavFor)
for (; e < i.slideCount;) ++o, e = t + i.options.slidesToScroll, t += i.options.slidesToScroll <= i.options.slidesToShow ? i.options.slidesToScroll : i.options.slidesToShow;
else o = 1 + Math.ceil((i.slideCount - i.options.slidesToShow) / i.options.slidesToScroll);
return o - 1
}, e.prototype.getLeft = function(i) {
var e, t, o, s, n = this,
r = 0;
return n.slideOffset = 0, t = n.$slides.first().outerHeight(!0), !0 === n.options.infinite ? (n.slideCount > n.options.slidesToShow && (n.slideOffset = n.slideWidth * n.options.slidesToShow * -1, s = -1, !0 === n.options.vertical && !0 === n.options.centerMode && (2 === n.options.slidesToShow ? s = -1.5 : 1 === n.options.slidesToShow && (s = -2)), r = t * n.options.slidesToShow * s), n.slideCount % n.options.slidesToScroll != 0 && i + n.options.slidesToScroll > n.slideCount && n.slideCount > n.options.slidesToShow && (i > n.slideCount ? (n.slideOffset = (n.options.slidesToShow - (i - n.slideCount)) * n.slideWidth * -1, r = (n.options.slidesToShow - (i - n.slideCount)) * t * -1) : (n.slideOffset = n.slideCount % n.options.slidesToScroll * n.slideWidth * -1, r = n.slideCount % n.options.slidesToScroll * t * -1))) : i + n.options.slidesToShow > n.slideCount && (n.slideOffset = (i + n.options.slidesToShow - n.slideCount) * n.slideWidth, r = (i + n.options.slidesToShow - n.slideCount) * t), n.slideCount <= n.options.slidesToShow && (n.slideOffset = 0, r = 0), !0 === n.options.centerMode && n.slideCount <= n.options.slidesToShow ? n.slideOffset = n.slideWidth * Math.floor(n.options.slidesToShow) / 2 - n.slideWidth * n.slideCount / 2 : !0 === n.options.centerMode && !0 === n.options.infinite ? n.slideOffset += n.slideWidth * Math.floor(n.options.slidesToShow / 2) - n.slideWidth : !0 === n.options.centerMode && (n.slideOffset = 0, n.slideOffset += n.slideWidth * Math.floor(n.options.slidesToShow / 2)), e = !1 === n.options.vertical ? i * n.slideWidth * -1 + n.slideOffset : i * t * -1 + r, !0 === n.options.variableWidth && (o = n.slideCount <= n.options.slidesToShow || !1 === n.options.infinite ? n.$slideTrack.children(".slick-slide").eq(i) : n.$slideTrack.children(".slick-slide").eq(i + n.options.slidesToShow), e = !0 === n.options.rtl ? o[0] ? -1 * (n.$slideTrack.width() - o[0].offsetLeft - o.width()) : 0 : o[0] ? -1 * o[0].offsetLeft : 0, !0 === n.options.centerMode && (o = n.slideCount <= n.options.slidesToShow || !1 === n.options.infinite ? n.$slideTrack.children(".slick-slide").eq(i) : n.$slideTrack.children(".slick-slide").eq(i + n.options.slidesToShow + 1), e = !0 === n.options.rtl ? o[0] ? -1 * (n.$slideTrack.width() - o[0].offsetLeft - o.width()) : 0 : o[0] ? -1 * o[0].offsetLeft : 0, e += (n.$list.width() - o.outerWidth()) / 2)), e
}, e.prototype.getOption = e.prototype.slickGetOption = function(i) {
return this.options[i]
}, e.prototype.getNavigableIndexes = function() {
var i, e = this,
t = 0,
o = 0,
s = [];
for (!1 === e.options.infinite ? i = e.slideCount : (t = -1 * e.options.slidesToScroll, o = -1 * e.options.slidesToScroll, i = 2 * e.slideCount); t < i;) s.push(t), t = o + e.options.slidesToScroll, o += e.options.slidesToScroll <= e.options.slidesToShow ? e.options.slidesToScroll : e.options.slidesToShow;
return s
}, e.prototype.getSlick = function() {
return this
}, e.prototype.getSlideCount = function() {
var e, t, o = this;
return t = !0 === o.options.centerMode ? o.slideWidth * Math.floor(o.options.slidesToShow / 2) : 0, !0 === o.options.swipeToSlide ? (o.$slideTrack.find(".slick-slide").each(function(s, n) {
if (n.offsetLeft - t + i(n).outerWidth() / 2 > -1 * o.swipeLeft) return e = n, !1
}), Math.abs(i(e).attr("data-slick-index") - o.currentSlide) || 1) : o.options.slidesToScroll
}, e.prototype.goTo = e.prototype.slickGoTo = function(i, e) {
this.changeSlide({
data: {
message: "index",
index: parseInt(i)
}
}, e)
}, e.prototype.init = function(e) {
var t = this;
i(t.$slider).hasClass("slick-initialized") || (i(t.$slider).addClass("slick-initialized"), t.buildRows(), t.buildOut(), t.setProps(), t.startLoad(), t.loadSlider(), t.initializeEvents(), t.updateArrows(), t.updateDots(), t.checkResponsive(!0), t.focusHandler()), e && t.$slider.trigger("init", [t]), !0 === t.options.accessibility && t.initADA(), t.options.autoplay && (t.paused = !1, t.autoPlay())
}, e.prototype.initADA = function() {
var e = this,
t = Math.ceil(e.slideCount / e.options.slidesToShow),
o = e.getNavigableIndexes().filter(function(i) {
return i >= 0 && i < e.slideCount
});
e.$slides.add(e.$slideTrack.find(".slick-cloned")).attr({
"aria-hidden": "true",
tabindex: "-1"
}).find("a, input, button, select").attr({
tabindex: "-1"
}), null !== e.$dots && (e.$slides.not(e.$slideTrack.find(".slick-cloned")).each(function(t) {
var s = o.indexOf(t);
i(this).attr({
role: "tabpanel",
id: "slick-slide" + e.instanceUid + t,
tabindex: -1
}), -1 !== s && i(this).attr({
"aria-describedby": "slick-slide-control" + e.instanceUid + s
})
}), e.$dots.attr("role", "tablist").find("li").each(function(s) {
var n = o[s];
i(this).attr({
role: "presentation"
}), i(this).find("button").first().attr({
role: "tab",
id: "slick-slide-control" + e.instanceUid + s,
"aria-controls": "slick-slide" + e.instanceUid + n,
"aria-label": s + 1 + " of " + t,
"aria-selected": null,
tabindex: "-1"
})
}).eq(e.currentSlide).find("button").attr({
"aria-selected": "true",
tabindex: "0"
}).end());
for (var s = e.currentSlide, n = s + e.options.slidesToShow; s < n; s++) e.$slides.eq(s).attr("tabindex", 0);
e.activateADA()
}, e.prototype.initArrowEvents = function() {
var i = this;
!0 === i.options.arrows && i.slideCount > i.options.slidesToShow && (i.$prevArrow.off("click.slick").on("click.slick", {
message: "previous"
}, i.changeSlide), i.$nextArrow.off("click.slick").on("click.slick", {
message: "next"
}, i.changeSlide), !0 === i.options.accessibility && (i.$prevArrow.on("keydown.slick", i.keyHandler), i.$nextArrow.on("keydown.slick", i.keyHandler)))
}, e.prototype.initDotEvents = function() {
var e = this;
!0 === e.options.dots && (i("li", e.$dots).on("click.slick", {
message: "index"
}, e.changeSlide), !0 === e.options.accessibility && e.$dots.on("keydown.slick", e.keyHandler)), !0 === e.options.dots && !0 === e.options.pauseOnDotsHover && i("li", e.$dots).on("mouseenter.slick", i.proxy(e.interrupt, e, !0)).on("mouseleave.slick", i.proxy(e.interrupt, e, !1))
}, e.prototype.initSlideEvents = function() {
var e = this;
e.options.pauseOnHover && (e.$list.on("mouseenter.slick", i.proxy(e.interrupt, e, !0)), e.$list.on("mouseleave.slick", i.proxy(e.interrupt, e, !1)))
}, e.prototype.initializeEvents = function() {
var e = this;
e.initArrowEvents(), e.initDotEvents(), e.initSlideEvents(), e.$list.on("touchstart.slick mousedown.slick", {
action: "start"
}, e.swipeHandler), e.$list.on("touchmove.slick mousemove.slick", {
action: "move"
}, e.swipeHandler), e.$list.on("touchend.slick mouseup.slick", {
action: "end"
}, e.swipeHandler), e.$list.on("touchcancel.slick mouseleave.slick", {
action: "end"
}, e.swipeHandler), e.$list.on("click.slick", e.clickHandler), i(document).on(e.visibilityChange, i.proxy(e.visibility, e)), !0 === e.options.accessibility && e.$list.on("keydown.slick", e.keyHandler), !0 === e.options.focusOnSelect && i(e.$slideTrack).children().on("click.slick", e.selectHandler), i(window).on("orientationchange.slick.slick-" + e.instanceUid, i.proxy(e.orientationChange, e)), i(window).on("resize.slick.slick-" + e.instanceUid, i.proxy(e.resize, e)), i("[draggable!=true]", e.$slideTrack).on("dragstart", e.preventDefault), i(window).on("load.slick.slick-" + e.instanceUid, e.setPosition), i(e.setPosition)
}, e.prototype.initUI = function() {
var i = this;
!0 === i.options.arrows && i.slideCount > i.options.slidesToShow && (i.$prevArrow.show(), i.$nextArrow.show()), !0 === i.options.dots && i.slideCount > i.options.slidesToShow && i.$dots.show()
}, e.prototype.keyHandler = function(i) {
var e = this;
i.target.tagName.match("TEXTAREA|INPUT|SELECT") || (37 === i.keyCode && !0 === e.options.accessibility ? e.changeSlide({
data: {
message: !0 === e.options.rtl ? "next" : "previous"
}
}) : 39 === i.keyCode && !0 === e.options.accessibility && e.changeSlide({
data: {
message: !0 === e.options.rtl ? "previous" : "next"
}
}))
}, e.prototype.lazyLoad = function() {
function e(e) {
i("img[data-lazy]", e).each(function() {
var e = i(this),
t = i(this).attr("data-lazy"),
o = i(this).attr("data-srcset"),
s = i(this).attr("data-sizes") || n.$slider.attr("data-sizes"),
r = document.createElement("img");
r.onload = function() {
e.animate({
opacity: 0
}, 100, function() {
o && (e.attr("srcset", o), s && e.attr("sizes", s)), e.attr("src", t).animate({
opacity: 1
}, 200, function() {
e.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")
}), n.$slider.trigger("lazyLoaded", [n, e, t])
})
}, r.onerror = function() {
e.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), n.$slider.trigger("lazyLoadError", [n, e, t])
}, r.src = t
})
}
var t, o, s, n = this;
if (!0 === n.options.centerMode ? !0 === n.options.infinite ? s = (o = n.currentSlide + (n.options.slidesToShow / 2 + 1)) + n.options.slidesToShow + 2 : (o = Math.max(0, n.currentSlide - (n.options.slidesToShow / 2 + 1)), s = n.options.slidesToShow / 2 + 1 + 2 + n.currentSlide) : (o = n.options.infinite ? n.options.slidesToShow + n.currentSlide : n.currentSlide, s = Math.ceil(o + n.options.slidesToShow), !0 === n.options.fade && (o > 0 && o--, s <= n.slideCount && s++)), t = n.$slider.find(".slick-slide").slice(o, s), "anticipated" === n.options.lazyLoad)
for (var r = o - 1, l = s, d = n.$slider.find(".slick-slide"), a = 0; a < n.options.slidesToScroll; a++) r < 0 && (r = n.slideCount - 1), t = (t = t.add(d.eq(r))).add(d.eq(l)), r--, l++;
e(t), n.slideCount <= n.options.slidesToShow ? e(n.$slider.find(".slick-slide")) : n.currentSlide >= n.slideCount - n.options.slidesToShow ? e(n.$slider.find(".slick-cloned").slice(0, n.options.slidesToShow)) : 0 === n.currentSlide && e(n.$slider.find(".slick-cloned").slice(-1 * n.options.slidesToShow))
}, e.prototype.loadSlider = function() {
var i = this;
i.setPosition(), i.$slideTrack.css({
opacity: 1
}), i.$slider.removeClass("slick-loading"), i.initUI(), "progressive" === i.options.lazyLoad && i.progressiveLazyLoad()
}, e.prototype.next = e.prototype.slickNext = function() {
this.changeSlide({
data: {
message: "next"
}
})
}, e.prototype.orientationChange = function() {
var i = this;
i.checkResponsive(), i.setPosition()
}, e.prototype.pause = e.prototype.slickPause = function() {
var i = this;
i.autoPlayClear(), i.paused = !0
}, e.prototype.play = e.prototype.slickPlay = function() {
var i = this;
i.autoPlay(), i.options.autoplay = !0, i.paused = !1, i.focussed = !1, i.interrupted = !1
}, e.prototype.postSlide = function(e) {
var t = this;
t.unslicked || (t.$slider.trigger("afterChange", [t, e]), t.animating = !1, t.slideCount > t.options.slidesToShow && t.setPosition(), t.swipeLeft = null, t.options.autoplay && t.autoPlay(), !0 === t.options.accessibility && (t.initADA(), t.options.focusOnChange && i(t.$slides.get(t.currentSlide)).attr("tabindex", 0).focus()))
}, e.prototype.prev = e.prototype.slickPrev = function() {
this.changeSlide({
data: {
message: "previous"
}
})
}, e.prototype.preventDefault = function(i) {
i.preventDefault()
}, e.prototype.progressiveLazyLoad = function(e) {
e = e || 1;
var t, o, s, n, r, l = this,
d = i("img[data-lazy]", l.$slider);
d.length ? (t = d.first(), o = t.attr("data-lazy"), s = t.attr("data-srcset"), n = t.attr("data-sizes") || l.$slider.attr("data-sizes"), (r = document.createElement("img")).onload = function() {
s && (t.attr("srcset", s), n && t.attr("sizes", n)), t.attr("src", o).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"), !0 === l.options.adaptiveHeight && l.setPosition(), l.$slider.trigger("lazyLoaded", [l, t, o]), l.progressiveLazyLoad()
}, r.onerror = function() {
e < 3 ? setTimeout(function() {
l.progressiveLazyLoad(e + 1)
}, 500) : (t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"), l.$slider.trigger("lazyLoadError", [l, t, o]), l.progressiveLazyLoad())
}, r.src = o) : l.$slider.trigger("allImagesLoaded", [l])
}, e.prototype.refresh = function(e) {
var t, o, s = this;
o = s.slideCount - s.options.slidesToShow, !s.options.infinite && s.currentSlide > o && (s.currentSlide = o), s.slideCount <= s.options.slidesToShow && (s.currentSlide = 0), t = s.currentSlide, s.destroy(!0), i.extend(s, s.initials, {
currentSlide: t
}), s.init(), e || s.changeSlide({
data: {
message: "index",
index: t
}
}, !1)
}, e.prototype.registerBreakpoints = function() {
var e, t, o, s = this,
n = s.options.responsive || null;
if ("array" === i.type(n) && n.length) {
s.respondTo = s.options.respondTo || "window";
for (e in n)
if (o = s.breakpoints.length - 1, n.hasOwnProperty(e)) {
for (t = n[e].breakpoint; o >= 0;) s.breakpoints[o] && s.breakpoints[o] === t && s.breakpoints.splice(o, 1), o--;
s.breakpoints.push(t), s.breakpointSettings[t] = n[e].settings
}
s.breakpoints.sort(function(i, e) {
return s.options.mobileFirst ? i - e : e - i
})
}
}, e.prototype.reinit = function() {
var e = this;
e.$slides = e.$slideTrack.children(e.options.slide).addClass("slick-slide"), e.slideCount = e.$slides.length, e.currentSlide >= e.slideCount && 0 !== e.currentSlide && (e.currentSlide = e.currentSlide - e.options.slidesToScroll), e.slideCount <= e.options.slidesToShow && (e.currentSlide = 0), e.registerBreakpoints(), e.setProps(), e.setupInfinite(), e.buildArrows(), e.updateArrows(), e.initArrowEvents(), e.buildDots(), e.updateDots(), e.initDotEvents(), e.cleanUpSlideEvents(), e.initSlideEvents(), e.checkResponsive(!1, !0), !0 === e.options.focusOnSelect && i(e.$slideTrack).children().on("click.slick", e.selectHandler), e.setSlideClasses("number" == typeof e.currentSlide ? e.currentSlide : 0), e.setPosition(), e.focusHandler(), e.paused = !e.options.autoplay, e.autoPlay(), e.$slider.trigger("reInit", [e])
}, e.prototype.resize = function() {
var e = this;
i(window).width() !== e.windowWidth && (clearTimeout(e.windowDelay), e.windowDelay = window.setTimeout(function() {
e.windowWidth = i(window).width(), e.checkResponsive(), e.unslicked || e.setPosition()
}, 50))
}, e.prototype.removeSlide = e.prototype.slickRemove = function(i, e, t) {
var o = this;
if (i = "boolean" == typeof i ? !0 === (e = i) ? 0 : o.slideCount - 1 : !0 === e ? --i : i, o.slideCount < 1 || i < 0 || i > o.slideCount - 1) return !1;
o.unload(), !0 === t ? o.$slideTrack.children().remove() : o.$slideTrack.children(this.options.slide).eq(i).remove(), o.$slides = o.$slideTrack.children(this.options.slide), o.$slideTrack.children(this.options.slide).detach(), o.$slideTrack.append(o.$slides), o.$slidesCache = o.$slides, o.reinit()
}, e.prototype.setCSS = function(i) {
var e, t, o = this,
s = {};
!0 === o.options.rtl && (i = -i), e = "left" == o.positionProp ? Math.ceil(i) + "px" : "0px", t = "top" == o.positionProp ? Math.ceil(i) + "px" : "0px", s[o.positionProp] = i, !1 === o.transformsEnabled ? o.$slideTrack.css(s) : (s = {}, !1 === o.cssTransitions ? (s[o.animType] = "translate(" + e + ", " + t + ")", o.$slideTrack.css(s)) : (s[o.animType] = "translate3d(" + e + ", " + t + ", 0px)", o.$slideTrack.css(s)))
}, e.prototype.setDimensions = function() {
var i = this;
!1 === i.options.vertical ? !0 === i.options.centerMode && i.$list.css({
padding: "0px " + i.options.centerPadding
}) : (i.$list.height(i.$slides.first().outerHeight(!0) * i.options.slidesToShow), !0 === i.options.centerMode && i.$list.css({
padding: i.options.centerPadding + " 0px"
})), i.listWidth = i.$list.width(), i.listHeight = i.$list.height(), !1 === i.options.vertical && !1 === i.options.variableWidth ? (i.slideWidth = Math.ceil(i.listWidth / i.options.slidesToShow), i.$slideTrack.width(Math.ceil(i.slideWidth * i.$slideTrack.children(".slick-slide").length))) : !0 === i.options.variableWidth ? i.$slideTrack.width(5e3 * i.slideCount) : (i.slideWidth = Math.ceil(i.listWidth), i.$slideTrack.height(Math.ceil(i.$slides.first().outerHeight(!0) * i.$slideTrack.children(".slick-slide").length)));
var e = i.$slides.first().outerWidth(!0) - i.$slides.first().width();
!1 === i.options.variableWidth && i.$slideTrack.children(".slick-slide").width(i.slideWidth - e)
}, e.prototype.setFade = function() {
var e, t = this;
t.$slides.each(function(o, s) {
e = t.slideWidth * o * -1, !0 === t.options.rtl ? i(s).css({
position: "relative",
right: e,
top: 0,
zIndex: t.options.zIndex - 2,
opacity: 0
}) : i(s).css({
position: "relative",
left: e,
top: 0,
zIndex: t.options.zIndex - 2,
opacity: 0
})
}), t.$slides.eq(t.currentSlide).css({
zIndex: t.options.zIndex - 1,
opacity: 1
})
}, e.prototype.setHeight = function() {
var i = this;
if (1 === i.options.slidesToShow && !0 === i.options.adaptiveHeight && !1 === i.options.vertical) {
var e = i.$slides.eq(i.currentSlide).outerHeight(!0);
i.$list.css("height", e)
}
}, e.prototype.setOption = e.prototype.slickSetOption = function() {
var e, t, o, s, n, r = this,
l = !1;
if ("object" === i.type(arguments[0]) ? (o = arguments[0], l = arguments[1], n = "multiple") : "string" === i.type(arguments[0]) && (o = arguments[0], s = arguments[1], l = arguments[2], "responsive" === arguments[0] && "array" === i.type(arguments[1]) ? n = "responsive" : void 0 !== arguments[1] && (n = "single")), "single" === n) r.options[o] = s;
else if ("multiple" === n) i.each(o, function(i, e) {
r.options[i] = e
});
else if ("responsive" === n)
for (t in s)
if ("array" !== i.type(r.options.responsive)) r.options.responsive = [s[t]];
else {
for (e = r.options.responsive.length - 1; e >= 0;) r.options.responsive[e].breakpoint === s[t].breakpoint && r.options.responsive.splice(e, 1), e--;
r.options.responsive.push(s[t])
}
l && (r.unload(), r.reinit())
}, e.prototype.setPosition = function() {
var i = this;
i.setDimensions(), i.setHeight(), !1 === i.options.fade ? i.setCSS(i.getLeft(i.currentSlide)) : i.setFade(), i.$slider.trigger("setPosition", [i])
}, e.prototype.setProps = function() {
var i = this,
e = document.body.style;
i.positionProp = !0 === i.options.vertical ? "top" : "left", "top" === i.positionProp ? i.$slider.addClass("slick-vertical") : i.$slider.removeClass("slick-vertical"), void 0 === e.WebkitTransition && void 0 === e.MozTransition && void 0 === e.msTransition || !0 === i.options.useCSS && (i.cssTransitions = !0), i.options.fade && ("number" == typeof i.options.zIndex ? i.options.zIndex < 3 && (i.options.zIndex = 3) : i.options.zIndex = i.defaults.zIndex), void 0 !== e.OTransform && (i.animType = "OTransform", i.transformType = "-o-transform", i.transitionType = "OTransition", void 0 === e.perspectiveProperty && void 0 === e.webkitPerspective && (i.animType = !1)), void 0 !== e.MozTransform && (i.animType = "MozTransform", i.transformType = "-moz-transform", i.transitionType = "MozTransition", void 0 === e.perspectiveProperty && void 0 === e.MozPerspective && (i.animType = !1)), void 0 !== e.webkitTransform && (i.animType = "webkitTransform", i.transformType = "-webkit-transform", i.transitionType = "webkitTransition", void 0 === e.perspectiveProperty && void 0 === e.webkitPerspective && (i.animType = !1)), void 0 !== e.msTransform && (i.animType = "msTransform", i.transformType = "-ms-transform", i.transitionType = "msTransition", void 0 === e.msTransform && (i.animType = !1)), void 0 !== e.transform && !1 !== i.animType && (i.animType = "transform", i.transformType = "transform", i.transitionType = "transition"), i.transformsEnabled = i.options.useTransform && null !== i.animType && !1 !== i.animType
}, e.prototype.setSlideClasses = function(i) {
var e, t, o, s, n = this;
if (t = n.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden", "true"), n.$slides.eq(i).addClass("slick-current"), !0 === n.options.centerMode) {
var r = n.options.slidesToShow % 2 == 0 ? 1 : 0;
e = Math.floor(n.options.slidesToShow / 2), !0 === n.options.infinite && (i >= e && i <= n.slideCount - 1 - e ? n.$slides.slice(i - e + r, i + e + 1).addClass("slick-active").attr("aria-hidden", "false") : (o = n.options.slidesToShow + i, t.slice(o - e + 1 + r, o + e + 2).addClass("slick-active").attr("aria-hidden", "false")), 0 === i ? t.eq(t.length - 1 - n.options.slidesToShow).addClass("slick-center") : i === n.slideCount - 1 && t.eq(n.options.slidesToShow).addClass("slick-center")), n.$slides.eq(i).addClass("slick-center")
} else i >= 0 && i <= n.slideCount - n.options.slidesToShow ? n.$slides.slice(i, i + n.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false") : t.length <= n.options.slidesToShow ? t.addClass("slick-active").attr("aria-hidden", "false") : (s = n.slideCount % n.options.slidesToShow, o = !0 === n.options.infinite ? n.options.slidesToShow + i : i, n.options.slidesToShow == n.options.slidesToScroll && n.slideCount - i < n.options.slidesToShow ? t.slice(o - (n.options.slidesToShow - s), o + s).addClass("slick-active").attr("aria-hidden", "false") : t.slice(o, o + n.options.slidesToShow).addClass("slick-active").attr("aria-hidden", "false"));
"ondemand" !== n.options.lazyLoad && "anticipated" !== n.options.lazyLoad || n.lazyLoad()
}, e.prototype.setupInfinite = function() {
var e, t, o, s = this;
if (!0 === s.options.fade && (s.options.centerMode = !1), !0 === s.options.infinite && !1 === s.options.fade && (t = null, s.slideCount > s.options.slidesToShow)) {
for (o = !0 === s.options.centerMode ? s.options.slidesToShow + 1 : s.options.slidesToShow, e = s.slideCount; e > s.slideCount - o; e -= 1) t = e - 1, i(s.$slides[t]).clone(!0).attr("id", "").attr("data-slick-index", t - s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");
for (e = 0; e < o + s.slideCount; e += 1) t = e, i(s.$slides[t]).clone(!0).attr("id", "").attr("data-slick-index", t + s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");
s.$slideTrack.find(".slick-cloned").find("[id]").each(function() {
i(this).attr("id", "")
})
}
}, e.prototype.interrupt = function(i) {
var e = this;
i || e.autoPlay(), e.interrupted = i
}, e.prototype.selectHandler = function(e) {
var t = this,
o = i(e.target).is(".slick-slide") ? i(e.target) : i(e.target).parents(".slick-slide"),
s = parseInt(o.attr("data-slick-index"));
s || (s = 0), t.slideCount <= t.options.slidesToShow ? t.slideHandler(s, !1, !0) : t.slideHandler(s)
}, e.prototype.slideHandler = function(i, e, t) {
var o, s, n, r, l, d = null,
a = this;
if (e = e || !1, !(!0 === a.animating && !0 === a.options.waitForAnimate || !0 === a.options.fade && a.currentSlide === i))
if (!1 === e && a.asNavFor(i), o = i, d = a.getLeft(o), r = a.getLeft(a.currentSlide), a.currentLeft = null === a.swipeLeft ? r : a.swipeLeft, !1 === a.options.infinite && !1 === a.options.centerMode && (i < 0 || i > a.getDotCount() * a.options.slidesToScroll)) !1 === a.options.fade && (o = a.currentSlide, !0 !== t ? a.animateSlide(r, function() {
a.postSlide(o)
}) : a.postSlide(o));
else if (!1 === a.options.infinite && !0 === a.options.centerMode && (i < 0 || i > a.slideCount - a.options.slidesToScroll)) !1 === a.options.fade && (o = a.currentSlide, !0 !== t ? a.animateSlide(r, function() {
a.postSlide(o)
}) : a.postSlide(o));
else {
if (a.options.autoplay && clearInterval(a.autoPlayTimer), s = o < 0 ? a.slideCount % a.options.slidesToScroll != 0 ? a.slideCount - a.slideCount % a.options.slidesToScroll : a.slideCount + o : o >= a.slideCount ? a.slideCount % a.options.slidesToScroll != 0 ? 0 : o - a.slideCount : o, a.animating = !0, a.$slider.trigger("beforeChange", [a, a.currentSlide, s]), n = a.currentSlide, a.currentSlide = s, a.setSlideClasses(a.currentSlide), a.options.asNavFor && (l = (l = a.getNavTarget()).slick("getSlick")).slideCount <= l.options.slidesToShow && l.setSlideClasses(a.currentSlide), a.updateDots(), a.updateArrows(), !0 === a.options.fade) return !0 !== t ? (a.fadeSlideOut(n), a.fadeSlide(s, function() {
a.postSlide(s)
})) : a.postSlide(s), void a.animateHeight();
!0 !== t ? a.animateSlide(d, function() {
a.postSlide(s)
}) : a.postSlide(s)
}
}, e.prototype.startLoad = function() {
var i = this;
!0 === i.options.arrows && i.slideCount > i.options.slidesToShow && (i.$prevArrow.hide(), i.$nextArrow.hide()), !0 === i.options.dots && i.slideCount > i.options.slidesToShow && i.$dots.hide(), i.$slider.addClass("slick-loading")
}, e.prototype.swipeDirection = function() {
var i, e, t, o, s = this;
return i = s.touchObject.startX - s.touchObject.curX, e = s.touchObject.startY - s.touchObject.curY, t = Math.atan2(e, i), (o = Math.round(180 * t / Math.PI)) < 0 && (o = 360 - Math.abs(o)), o <= 45 && o >= 0 ? !1 === s.options.rtl ? "left" : "right" : o <= 360 && o >= 315 ? !1 === s.options.rtl ? "left" : "right" : o >= 135 && o <= 225 ? !1 === s.options.rtl ? "right" : "left" : !0 === s.options.verticalSwiping ? o >= 35 && o <= 135 ? "down" : "up" : "vertical"
}, e.prototype.swipeEnd = function(i) {
var e, t, o = this;
if (o.dragging = !1, o.swiping = !1, o.scrolling) return o.scrolling = !1, !1;
if (o.interrupted = !1, o.shouldClick = !(o.touchObject.swipeLength > 10), void 0 === o.touchObject.curX) return !1;
if (!0 === o.touchObject.edgeHit && o.$slider.trigger("edge", [o, o.swipeDirection()]), o.touchObject.swipeLength >= o.touchObject.minSwipe) {
switch (t = o.swipeDirection()) {
case "left":
case "down":
e = o.options.swipeToSlide ? o.checkNavigable(o.currentSlide + o.getSlideCount()) : o.currentSlide + o.getSlideCount(), o.currentDirection = 0;
break;
case "right":
case "up":
e = o.options.swipeToSlide ? o.checkNavigable(o.currentSlide - o.getSlideCount()) : o.currentSlide - o.getSlideCount(), o.currentDirection = 1
}
"vertical" != t && (o.slideHandler(e), o.touchObject = {}, o.$slider.trigger("swipe", [o, t]))
} else o.touchObject.startX !== o.touchObject.curX && (o.slideHandler(o.currentSlide), o.touchObject = {})
}, e.prototype.swipeHandler = function(i) {
var e = this;
if (!(!1 === e.options.swipe || "ontouchend" in document && !1 === e.options.swipe || !1 === e.options.draggable && -1 !== i.type.indexOf("mouse"))) switch (e.touchObject.fingerCount = i.originalEvent && void 0 !== i.originalEvent.touches ? i.originalEvent.touches.length : 1, e.touchObject.minSwipe = e.listWidth / e.options.touchThreshold, !0 === e.options.verticalSwiping && (e.touchObject.minSwipe = e.listHeight / e.options.touchThreshold), i.data.action) {
case "start":
e.swipeStart(i);
break;
case "move":
e.swipeMove(i);
break;
case "end":
e.swipeEnd(i)
}
}, e.prototype.swipeMove = function(i) {
var e, t, o, s, n, r, l = this;
return n = void 0 !== i.originalEvent ? i.originalEvent.touches : null, !(!l.dragging || l.scrolling || n && 1 !== n.length) && (e = l.getLeft(l.currentSlide), l.touchObject.curX = void 0 !== n ? n[0].pageX : i.clientX, l.touchObject.curY = void 0 !== n ? n[0].pageY : i.clientY, l.touchObject.swipeLength = Math.round(Math.sqrt(Math.pow(l.touchObject.curX - l.touchObject.startX, 2))), r = Math.round(Math.sqrt(Math.pow(l.touchObject.curY - l.touchObject.startY, 2))), !l.options.verticalSwiping && !l.swiping && r > 4 ? (l.scrolling = !0, !1) : (!0 === l.options.verticalSwiping && (l.touchObject.swipeLength = r), t = l.swipeDirection(), void 0 !== i.originalEvent && l.touchObject.swipeLength > 4 && (l.swiping = !0, i.preventDefault()), s = (!1 === l.options.rtl ? 1 : -1) * (l.touchObject.curX > l.touchObject.startX ? 1 : -1), !0 === l.options.verticalSwiping && (s = l.touchObject.curY > l.touchObject.startY ? 1 : -1), o = l.touchObject.swipeLength, l.touchObject.edgeHit = !1, !1 === l.options.infinite && (0 === l.currentSlide && "right" === t || l.currentSlide >= l.getDotCount() && "left" === t) && (o = l.touchObject.swipeLength * l.options.edgeFriction, l.touchObject.edgeHit = !0), !1 === l.options.vertical ? l.swipeLeft = e + o * s : l.swipeLeft = e + o * (l.$list.height() / l.listWidth) * s, !0 === l.options.verticalSwiping && (l.swipeLeft = e + o * s), !0 !== l.options.fade && !1 !== l.options.touchMove && (!0 === l.animating ? (l.swipeLeft = null, !1) : void l.setCSS(l.swipeLeft))))
}, e.prototype.swipeStart = function(i) {
var e, t = this;
if (t.interrupted = !0, 1 !== t.touchObject.fingerCount || t.slideCount <= t.options.slidesToShow) return t.touchObject = {}, !1;
void 0 !== i.originalEvent && void 0 !== i.originalEvent.touches && (e = i.originalEvent.touches[0]), t.touchObject.startX = t.touchObject.curX = void 0 !== e ? e.pageX : i.clientX, t.touchObject.startY = t.touchObject.curY = void 0 !== e ? e.pageY : i.clientY, t.dragging = !0
}, e.prototype.unfilterSlides = e.prototype.slickUnfilter = function() {
var i = this;
null !== i.$slidesCache && (i.unload(), i.$slideTrack.children(this.options.slide).detach(), i.$slidesCache.appendTo(i.$slideTrack), i.reinit())
}, e.prototype.unload = function() {
var e = this;
i(".slick-cloned", e.$slider).remove(), e.$dots && e.$dots.remove(), e.$prevArrow && e.htmlExpr.test(e.options.prevArrow) && e.$prevArrow.remove(), e.$nextArrow && e.htmlExpr.test(e.options.nextArrow) && e.$nextArrow.remove(), e.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden", "true").css("width", "")
}, e.prototype.unslick = function(i) {
var e = this;
e.$slider.trigger("unslick", [e, i]), e.destroy()
}, e.prototype.updateArrows = function() {
var i = this;
Math.floor(i.options.slidesToShow / 2), !0 === i.options.arrows && i.slideCount > i.options.slidesToShow && !i.options.infinite && (i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false"), 0 === i.currentSlide ? (i.$prevArrow.addClass("slick-disabled").attr("aria-disabled", "true"), i.$nextArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : i.currentSlide >= i.slideCount - i.options.slidesToShow && !1 === i.options.centerMode ? (i.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false")) : i.currentSlide >= i.slideCount - 1 && !0 === i.options.centerMode && (i.$nextArrow.addClass("slick-disabled").attr("aria-disabled", "true"), i.$prevArrow.removeClass("slick-disabled").attr("aria-disabled", "false")))
}, e.prototype.updateDots = function() {
var i = this;
null !== i.$dots && (i.$dots.find("li").removeClass("slick-active").end(), i.$dots.find("li").eq(Math.floor(i.currentSlide / i.options.slidesToScroll)).addClass("slick-active"))
}, e.prototype.visibility = function() {
var i = this;
i.options.autoplay && (document[i.hidden] ? i.interrupted = !0 : i.interrupted = !1)
}, i.fn.slick = function() {
var i, t, o = this,
s = arguments[0],
n = Array.prototype.slice.call(arguments, 1),
r = o.length;
for (i = 0; i < r; i++)
if ("object" == typeof s || void 0 === s ? o[i].slick = new e(o[i], s) : t = o[i].slick[s].apply(o[i].slick, n), void 0 !== t) return t;
return o
}
});
(function(t) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], t)
} else if (typeof module === 'object' && module.exports) {
module.exports = t(require('jquery'))
} else {
t(jQuery)
}
}(function(t) {
var r = Array.prototype.slice,
c = Array.prototype.splice,
s = {
topSpacing: 0,
bottomSpacing: 0,
className: 'is-sticky',
wrapperClassName: 'sticky-wrapper',
center: !1,
getWidthFrom: '',
widthFromWrapper: !0,
responsiveWidth: !1,
zIndex: 'inherit'
},
n = t(window),
d = t(document),
i = [],
a = n.height(),
o = function() {
var r = n.scrollTop(),
c = d.height(),
p = c - a,
f = (r > p) ? p - r : 0;
for (var l = 0, v = i.length; l < v; l++) {
var e = i[l],
m = e.stickyWrapper.offset().top,
h = m - e.topSpacing - f;
e.stickyWrapper.css('height', e.stickyElement.outerHeight());
if (r <= h) {
if (e.currentTop !== null) {
e.stickyElement.css({
'width': '',
'position': '',
'top': '',
'z-index': ''
});
e.stickyElement.parent().removeClass(e.className);
e.stickyElement.trigger('sticky-end', [e]);
e.currentTop = null
}
} else {
var o = c - e.stickyElement.outerHeight() - e.topSpacing - e.bottomSpacing - r - f;
if (o < 0) {
o = o + e.topSpacing
} else {
o = e.topSpacing
};
if (e.currentTop !== o) {
var s;
if (e.getWidthFrom) {
padding = e.stickyElement.innerWidth() - e.stickyElement.width();
s = t(e.getWidthFrom).width() - padding || null
} else if (e.widthFromWrapper) {
s = e.stickyWrapper.width()
};
if (s == null) {
s = e.stickyElement.width()
};
e.stickyElement.css('width', s).css('position', 'fixed').css('top', o).css('z-index', e.zIndex);
e.stickyElement.parent().addClass(e.className);
if (e.currentTop === null) {
e.stickyElement.trigger('sticky-start', [e])
} else {
e.stickyElement.trigger('sticky-update', [e])
};
if (e.currentTop === e.topSpacing && e.currentTop > o || e.currentTop === null && o < e.topSpacing) {
e.stickyElement.trigger('sticky-bottom-reached', [e])
} else if (e.currentTop !== null && o === e.topSpacing && e.currentTop < o) {
e.stickyElement.trigger('sticky-bottom-unreached', [e])
};
e.currentTop = o
};
var u = e.stickyWrapper.parent(),
g = (e.stickyElement.offset().top + e.stickyElement.outerHeight() >= u.offset().top + u.outerHeight()) && (e.stickyElement.offset().top <= e.topSpacing);
if (g) {
e.stickyElement.css('position', 'absolute').css('top', '').css('bottom', 0).css('z-index', '')
} else {
e.stickyElement.css('position', 'fixed').css('top', o).css('bottom', '').css('z-index', e.zIndex)
}
}
}
},
l = function() {
a = n.height();
for (var s = 0, r = i.length; s < r; s++) {
var e = i[s],
o = null;
if (e.getWidthFrom) {
if (e.responsiveWidth) {
o = t(e.getWidthFrom).width()
}
} else if (e.widthFromWrapper) {
o = e.stickyWrapper.width()
};
if (o != null) {
e.stickyElement.css('width', o)
}
}
},
e = {
init: function(o) {
return this.each(function() {
var r = t.extend({}, s, o);
var n = t(this),
l = n.attr('id'),
a = l ? l + '-' + s.wrapperClassName : s.wrapperClassName,
c = t('').attr('id', a).addClass(r.wrapperClassName);
n.wrapAll(function() {
if (t(this).parent('#' + a).length == 0) {
return c
}
});
var d = n.parent();
if (r.center) {
d.css({
width: n.outerWidth(),
marginLeft: 'auto',
marginRight: 'auto'
})
};
if (n.css('float') === 'right') {
n.css({
'float': 'none'
}).parent().css({
'float': 'right'
})
};
r.stickyElement = n;
r.stickyWrapper = d;
r.currentTop = null;
i.push(r);
e.setWrapperHeight(this);
e.setupChangeListeners(this)
})
},
setWrapperHeight: function(e) {
var o = t(e),
i = o.parent();
if (i) {
i.css('height', o.outerHeight())
}
},
setupChangeListeners: function(t) {
if (window.MutationObserver) {
var i = new window.MutationObserver(function(i) {
if (i[0].addedNodes.length || i[0].removedNodes.length) {
e.setWrapperHeight(t)
}
});
i.observe(t, {
subtree: !0,
childList: !0
})
} else {
if (window.addEventListener) {
t.addEventListener('DOMNodeInserted', function() {
e.setWrapperHeight(t)
}, !1);
t.addEventListener('DOMNodeRemoved', function() {
e.setWrapperHeight(t)
}, !1)
} else if (window.attachEvent) {
t.attachEvent('onDOMNodeInserted', function() {
e.setWrapperHeight(t)
});
t.attachEvent('onDOMNodeRemoved', function() {
e.setWrapperHeight(t)
})
}
}
},
update: o,
unstick: function(e) {
return this.each(function() {
var s = this,
n = t(s),
o = -1,
e = i.length;
while (e-- > 0) {
if (i[e].stickyElement.get(0) === s) {
c.call(i, e, 1);
o = e
}
};
if (o !== -1) {
n.unwrap();
n.css({
'width': '',
'position': '',
'top': '',
'float': '',
'z-index': ''
})
}
})
}
};
if (window.addEventListener) {
window.addEventListener('scroll', o, !1);
window.addEventListener('resize', l, !1)
} else if (window.attachEvent) {
window.attachEvent('onscroll', o);
window.attachEvent('onresize', l)
};
t.fn.sticky = function(i) {
if (e[i]) {
return e[i].apply(this, r.call(arguments, 1))
} else if (typeof i === 'object' || !i) {
return e.init.apply(this, arguments)
} else {
t.error('Method ' + i + ' does not exist on jQuery.sticky')
}
};
t.fn.unstick = function(i) {
if (e[i]) {
return e[i].apply(this, r.call(arguments, 1))
} else if (typeof i === 'object' || !i) {
return e.unstick.apply(this, arguments)
} else {
t.error('Method ' + i + ' does not exist on jQuery.sticky')
}
};
t(function() {
setTimeout(o, 0)
})
}));
(function(t) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], t)
} else if (typeof module !== 'undefined' && module.exports) {
module.exports = t
} else {
t(jQuery, window, document)
}
}(function(t) {
(function(e) {
var s = typeof define === 'function' && define.amd,
n = typeof module !== 'undefined' && module.exports,
o = ('https:' == document.location.protocol) ? 'https:' : 'https:',
i = 'cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js';
if (!s) {
if (n) {
require('jquery-mousewheel')(t)
} else {
t.event.special.mousewheel || t('head').append(decodeURI('%3Cscript src=' + o + '//' + i + '%3E%3C/script%3E'))
}
};
e()
}(function() {
var u = 'mCustomScrollbar',
e = 'mCS',
k = '.mCustomScrollbar',
A = {
setTop: 0,
setLeft: 0,
axis: 'y',
scrollbarPosition: 'inside',
scrollInertia: 950,
autoDraggerLength: !0,
alwaysShowScrollbar: 0,
snapOffset: 0,
mouseWheel: {
enable: !0,
scrollAmount: 'auto',
axis: 'y',
deltaFactor: 'auto',
disableOver: ['select', 'option', 'keygen', 'datalist', 'textarea']
},
scrollButtons: {
scrollType: 'stepless',
scrollAmount: 'auto'
},
keyboard: {
enable: !0,
scrollType: 'stepless',
scrollAmount: 'auto'
},
contentTouchScroll: 25,
documentTouchScroll: !0,
advanced: {
autoScrollOnFocus: 'input,textarea,select,button,datalist,keygen,a[tabindex],area,object,[contenteditable=\'true\']',
updateOnContentResize: !0,
updateOnImageLoad: 'auto',
autoUpdateTimeout: 60
},
theme: 'light',
callbacks: {
onTotalScrollOffset: 0,
onTotalScrollBackOffset: 0,
alwaysTriggerOffsets: !0
}
},
X = 0,
y = {},
m = (window.attachEvent && !window.addEventListener) ? 1 : 0,
r = !1,
c, i = ['mCSB_dragger_onDrag', 'mCSB_scrollTools_onDrag', 'mCS_img_loaded', 'mCS_disabled', 'mCS_destroyed', 'mCS_no_scrollbar', 'mCS-autoHide', 'mCS-dir-rtl', 'mCS_no_scrollbar_y', 'mCS_no_scrollbar_x', 'mCS_y_hidden', 'mCS_x_hidden', 'mCSB_draggerContainer', 'mCSB_buttonUp', 'mCSB_buttonDown', 'mCSB_buttonLeft', 'mCSB_buttonRight'],
l = {
init: function(o) {
var o = t.extend(!0, {}, A, o),
r = f.call(this);
if (o.live) {
var n = o.liveSelector || this.selector || k,
s = t(n);
if (o.live === 'off') {
S(n);
return
};
y[n] = setTimeout(function() {
s.mCustomScrollbar(o);
if (o.live === 'once' && s.length) {
S(n)
}
}, 500)
} else {
S(n)
};
o.setWidth = (o.set_width) ? o.set_width : o.setWidth;
o.setHeight = (o.set_height) ? o.set_height : o.setHeight;
o.axis = (o.horizontalScroll) ? 'x' : J(o.axis);
o.scrollInertia = o.scrollInertia > 0 && o.scrollInertia < 17 ? 17 : o.scrollInertia;
if (typeof o.mouseWheel !== 'object' && o.mouseWheel == !0) {
o.mouseWheel = {
enable: !0,
scrollAmount: 'auto',
axis: 'y',
preventDefault: !1,
deltaFactor: 'auto',
normalizeDelta: !1,
invert: !1
}
};
o.mouseWheel.scrollAmount = !o.mouseWheelPixels ? o.mouseWheel.scrollAmount : o.mouseWheelPixels;
o.mouseWheel.normalizeDelta = !o.advanced.normalizeMouseWheelDelta ? o.mouseWheel.normalizeDelta : o.advanced.normalizeMouseWheelDelta;
o.scrollButtons.scrollType = Y(o.scrollButtons.scrollType);
H(o);
return t(r).each(function() {
var n = t(this);
if (!n.data(e)) {
n.data(e, {
idx: ++X,
opt: o,
scrollRatio: {
y: null,
x: null
},
overflowed: null,
contentReset: {
y: null,
x: null
},
bindEvents: !1,
tweenRunning: !1,
sequential: {},
langDir: n.css('direction'),
cbOffsets: null,
trigger: null,
poll: {
size: {
o: 0,
n: 0
},
img: {
o: 0,
n: 0
},
change: {
o: 0,
n: 0
}
}
});
var r = n.data(e),
s = r.opt,
d = n.data('mcs-axis'),
c = n.data('mcs-scrollbar-position'),
a = n.data('mcs-theme');
if (d) {
s.axis = d
};
if (c) {
s.scrollbarPosition = c
};
if (a) {
s.theme = a;
H(s)
};
V.call(this);
if (r && s.callbacks.onCreate && typeof s.callbacks.onCreate === 'function') {
s.callbacks.onCreate.call(this)
};
t('#mCSB_' + r.idx + '_container img:not(.' + i[2] + ')').addClass(i[2]);
l.update.call(null, n)
}
})
},
update: function(o, s) {
var r = o || f.call(this);
return t(r).each(function() {
var l = t(this);
if (l.data(e)) {
var r = l.data(e),
o = r.opt,
d = t('#mCSB_' + r.idx + '_container'),
p = t('#mCSB_' + r.idx),
u = [t('#mCSB_' + r.idx + '_dragger_vertical'), t('#mCSB_' + r.idx + '_dragger_horizontal')];
if (!d.length) {
return
};
if (r.tweenRunning) {
a(l)
};
if (s && r && o.callbacks.onBeforeUpdate && typeof o.callbacks.onBeforeUpdate === 'function') {
o.callbacks.onBeforeUpdate.call(this)
};
if (l.hasClass(i[3])) {
l.removeClass(i[3])
};
if (l.hasClass(i[4])) {
l.removeClass(i[4])
};
p.css('max-height', 'none');
if (p.height() !== l.height()) {
p.css('max-height', l.height())
};
U.call(this);
if (o.axis !== 'y' && !o.advanced.autoExpandHorizontalScroll) {
d.css('width', M(d))
};
r.overflowed = K.call(this);
D.call(this);
if (o.autoDraggerLength) {
Q.call(this)
};
G.call(this);
nt.call(this);
var c = [Math.abs(d[0].offsetTop), Math.abs(d[0].offsetLeft)];
if (o.axis !== 'x') {
if (!r.overflowed[0]) {
h.call(this);
if (o.axis === 'y') {
w.call(this)
} else if (o.axis === 'yx' && r.overflowed[1]) {
n(l, c[1].toString(), {
dir: 'x',
dur: 0,
overwrite: 'none'
})
}
} else if (u[0].height() > u[0].parent().height()) {
h.call(this)
} else {
n(l, c[0].toString(), {
dir: 'y',
dur: 0,
overwrite: 'none'
});
r.contentReset.y = null
}
};
if (o.axis !== 'y') {
if (!r.overflowed[1]) {
h.call(this);
if (o.axis === 'x') {
w.call(this)
} else if (o.axis === 'yx' && r.overflowed[0]) {
n(l, c[0].toString(), {
dir: 'y',
dur: 0,
overwrite: 'none'
})
}
} else if (u[1].width() > u[1].parent().width()) {
h.call(this)
} else {
n(l, c[1].toString(), {
dir: 'x',
dur: 0,
overwrite: 'none'
});
r.contentReset.x = null
}
};
if (s && r) {
if (s === 2 && o.callbacks.onImageLoad && typeof o.callbacks.onImageLoad === 'function') {
o.callbacks.onImageLoad.call(this)
} else if (s === 3 && o.callbacks.onSelectorChange && typeof o.callbacks.onSelectorChange === 'function') {
o.callbacks.onSelectorChange.call(this)
} else if (o.callbacks.onUpdate && typeof o.callbacks.onUpdate === 'function') {
o.callbacks.onUpdate.call(this)
}
};
E.call(this)
}
})
},
scrollTo: function(i, o) {
if (typeof i == 'undefined' || i == null) {
return
};
var s = f.call(this);
return t(s).each(function() {
var l = t(this);
if (l.data(e)) {
var a = l.data(e),
d = a.opt,
c = {
trigger: 'external',
scrollInertia: d.scrollInertia,
scrollEasing: 'mcsEaseInOut',
moveDragger: !1,
timeout: 60,
callbacks: !0,
onStart: !0,
onUpdate: !0,
onComplete: !0
},
r = t.extend(!0, {}, c, o),
s = x.call(this, i),
u = r.scrollInertia > 0 && r.scrollInertia < 17 ? 17 : r.scrollInertia;
s[0] = P.call(this, s[0], 'y');
s[1] = P.call(this, s[1], 'x');
if (r.moveDragger) {
s[0] *= a.scrollRatio.y;
s[1] *= a.scrollRatio.x
};
r.dur = N() ? 0 : u;
setTimeout(function() {
if (s[0] !== null && typeof s[0] !== 'undefined' && d.axis !== 'x' && a.overflowed[0]) {
r.dir = 'y';
r.overwrite = 'all';
n(l, s[0].toString(), r)
};
if (s[1] !== null && typeof s[1] !== 'undefined' && d.axis !== 'y' && a.overflowed[1]) {
r.dir = 'x';
r.overwrite = 'none';
n(l, s[1].toString(), r)
}
}, r.timeout)
}
})
},
stop: function() {
var i = f.call(this);
return t(i).each(function() {
var i = t(this);
if (i.data(e)) {
a(i)
}
})
},
disable: function(o) {
var n = f.call(this);
return t(n).each(function() {
var n = t(this);
if (n.data(e)) {
var s = n.data(e);
E.call(this, 'remove');
w.call(this);
if (o) {
h.call(this)
};
D.call(this, !0);
n.addClass(i[3])
}
})
},
destroy: function() {
var o = f.call(this);
return t(o).each(function() {
var s = t(this);
if (s.data(e)) {
var n = s.data(e),
a = n.opt,
l = t('#mCSB_' + n.idx),
r = t('#mCSB_' + n.idx + '_container'),
c = t('.mCSB_' + n.idx + '_scrollbar');
if (a.live) {
S(a.liveSelector || t(o).selector)
};
E.call(this, 'remove');
w.call(this);
h.call(this);
s.removeData(e);
d(this, 'mcs');
c.remove();
r.find('img.' + i[2]).removeClass(i[2]);
l.replaceWith(r.contents());
s.removeClass(u + ' _' + e + '_' + n.idx + ' ' + i[6] + ' ' + i[7] + ' ' + i[5] + ' ' + i[3]).addClass(i[4])
}
})
}
},
f = function() {
return (typeof t(this) !== 'object' || t(this).length < 1) ? k : this
},
H = function(e) {
var s = ['rounded', 'rounded-dark', 'rounded-dots', 'rounded-dots-dark'],
n = ['rounded-dots', 'rounded-dots-dark', '3d', '3d-dark', '3d-thick', '3d-thick-dark', 'inset', 'inset-dark', 'inset-2', 'inset-2-dark', 'inset-3', 'inset-3-dark'],
r = ['minimal', 'minimal-dark'],
o = ['minimal', 'minimal-dark'],
i = ['minimal', 'minimal-dark'];
e.autoDraggerLength = t.inArray(e.theme, s) > -1 ? !1 : e.autoDraggerLength;
e.autoExpandScrollbar = t.inArray(e.theme, n) > -1 ? !1 : e.autoExpandScrollbar;
e.scrollButtons.enable = t.inArray(e.theme, r) > -1 ? !1 : e.scrollButtons.enable;
e.autoHideScrollbar = t.inArray(e.theme, o) > -1 ? !0 : e.autoHideScrollbar;
e.scrollbarPosition = t.inArray(e.theme, i) > -1 ? 'outside' : e.scrollbarPosition
},
S = function(t) {
if (y[t]) {
clearTimeout(y[t]);
d(y, t)
}
},
J = function(t) {
return (t === 'yx' || t === 'xy' || t === 'auto') ? 'yx' : (t === 'x' || t === 'horizontal') ? 'x' : 'y'
},
Y = function(t) {
return (t === 'stepped' || t === 'pixels' || t === 'step' || t === 'click') ? 'stepped' : 'stepless'
},
V = function() {
var s = t(this),
n = s.data(e),
o = n.opt,
c = o.autoExpandScrollbar ? ' ' + i[1] + '_expand' : '',
r = ['', ''],
m = o.axis === 'yx' ? 'mCSB_vertical_horizontal' : o.axis === 'x' ? 'mCSB_horizontal' : 'mCSB_vertical',
d = o.axis === 'yx' ? r[0] + r[1] : o.axis === 'x' ? r[1] : r[0],
g = o.axis === 'yx' ? '' : '',
h = o.autoHideScrollbar ? ' ' + i[6] : '',
f = (o.axis !== 'x' && n.langDir === 'rtl') ? ' ' + i[7] : '';
if (o.setWidth) {
s.css('width', o.setWidth)
};
if (o.setHeight) {
s.css('height', o.setHeight)
};
o.setLeft = (o.axis !== 'y' && n.langDir === 'rtl') ? '989999px' : o.setLeft;
s.addClass(u + ' _' + e + '_' + n.idx + h + f).wrapInner('');
var p = t('#mCSB_' + n.idx),
l = t('#mCSB_' + n.idx + '_container');
if (o.axis !== 'y' && !o.advanced.autoExpandHorizontalScroll) {
l.css('width', M(l))
};
if (o.scrollbarPosition === 'outside') {
if (s.css('position') === 'static') {
s.css('position', 'relative')
};
s.css('overflow', 'visible');
p.addClass('mCSB_outside').after(d)
} else {
p.addClass('mCSB_inside').append(d);
l.wrap(g)
};
q.call(this);
var a = [t('#mCSB_' + n.idx + '_dragger_vertical'), t('#mCSB_' + n.idx + '_dragger_horizontal')];
a[0].css('min-height', a[0].height());
a[1].css('min-width', a[1].width())
},
M = function(e) {
var i = [e[0].scrollWidth, Math.max.apply(Math, e.children().map(function() {
return t(this).outerWidth(!0)
}).get())],
o = e.parent().width();
return i[0] > o ? i[0] : i[1] > o ? i[1] : '100%'
},
U = function() {
var r = t(this),
n = r.data(e),
o = n.opt,
i = t('#mCSB_' + n.idx + '_container');
if (o.advanced.autoExpandHorizontalScroll && o.axis !== 'y') {
i.css({
'width': 'auto',
'min-width': 0,
'overflow-x': 'scroll'
});
var s = Math.ceil(i[0].scrollWidth);
if (o.advanced.autoExpandHorizontalScroll === 3 || (o.advanced.autoExpandHorizontalScroll !== 2 && s > i.parent().width())) {
i.css({
'width': s,
'min-width': '100%',
'overflow-x': 'inherit'
})
} else {
i.css({
'overflow-x': 'inherit',
'position': 'absolute'
}).wrap('').css({
'width': (Math.ceil(i[0].getBoundingClientRect().right + 0.4) - Math.floor(i[0].getBoundingClientRect().left)),
'min-width': '100%',
'position': 'relative'
}).unwrap()
}
}
},
q = function() {
var d = t(this),
a = d.data(e),
n = a.opt,
l = t('.mCSB_' + a.idx + '_scrollbar:first'),
s = !v(n.scrollButtons.tabindex) ? '' : 'tabindex=\'' + n.scrollButtons.tabindex + '\'',
o = ['', '', '', ''],
r = [(n.axis === 'x' ? o[2] : o[0]), (n.axis === 'x' ? o[3] : o[1]), o[2], o[3]];
if (n.scrollButtons.enable) {
l.prepend(r[0]).append(r[1]).next('.mCSB_scrollTools').prepend(r[2]).append(r[3])
}
},
Q = function() {
var c = t(this),
n = c.data(e),
s = t('#mCSB_' + n.idx),
a = t('#mCSB_' + n.idx + '_container'),
o = [t('#mCSB_' + n.idx + '_dragger_vertical'), t('#mCSB_' + n.idx + '_dragger_horizontal')],
r = [s.height() / a.outerHeight(!1), s.width() / a.outerWidth(!1)],
i = [parseInt(o[0].css('min-height')), Math.round(r[0] * o[0].parent().height()), parseInt(o[1].css('min-width')), Math.round(r[1] * o[1].parent().width())],
d = m && (i[1] < i[0]) ? i[0] : i[1],
l = m && (i[3] < i[2]) ? i[2] : i[3];
o[0].css({
'height': d,
'max-height': (o[0].parent().height() - 10)
}).find('.mCSB_dragger_bar').css({
'line-height': i[0] + 'px'
});
o[1].css({
'width': l,
'max-width': (o[1].parent().width() - 10)
})
},
G = function() {
var l = t(this),
i = l.data(e),
a = t('#mCSB_' + i.idx),
r = t('#mCSB_' + i.idx + '_container'),
o = [t('#mCSB_' + i.idx + '_dragger_vertical'), t('#mCSB_' + i.idx + '_dragger_horizontal')],
n = [r.outerHeight(!1) - a.height(), r.outerWidth(!1) - a.width()],
s = [n[0] / (o[0].parent().height() - o[0].height()), n[1] / (o[1].parent().width() - o[1].width())];
i.scrollRatio = {
y: s[0],
x: s[1]
}
},
b = function(t, e, o) {
var s = o ? i[0] + '_expanded' : '',
n = t.closest('.mCSB_scrollTools');
if (e === 'active') {
t.toggleClass(i[0] + ' ' + s);
n.toggleClass(i[1]);
t[0].B$ = t[0].B$ ? 0 : 1
} else {
if (!t[0].B$) {
if (e === 'hide') {
t.removeClass(i[0]);
n.removeClass(i[1])
} else {
t.addClass(i[0]);
n.addClass(i[1])
}
}
}
},
K = function() {
var d = t(this),
o = d.data(e),
l = t('#mCSB_' + o.idx),
i = t('#mCSB_' + o.idx + '_container'),
s = o.overflowed == null ? i.height() : i.outerHeight(!1),
n = o.overflowed == null ? i.width() : i.outerWidth(!1),
a = i[0].scrollHeight,
r = i[0].scrollWidth;
if (a > s) {
s = a
};
if (r > n) {
n = r
};
return [s > l.height(), n > l.width()]
},
h = function() {
var s = t(this),
i = s.data(e),
o = i.opt,
c = t('#mCSB_' + i.idx),
r = t('#mCSB_' + i.idx + '_container'),
d = [t('#mCSB_' + i.idx + '_dragger_vertical'), t('#mCSB_' + i.idx + '_dragger_horizontal')];
a(s);
if ((o.axis !== 'x' && !i.overflowed[0]) || (o.axis === 'y' && i.overflowed[0])) {
d[0].add(r).css('top', 0);
n(s, '_resetY')
};
if ((o.axis !== 'y' && !i.overflowed[1]) || (o.axis === 'x' && i.overflowed[1])) {
var l = dx = 0;
if (i.langDir === 'rtl') {
l = c.width() - r.outerWidth(!1);
dx = Math.abs(l / i.scrollRatio.x)
};
r.css('left', l);
d[1].css('left', dx);
n(s, '_resetX')
}
},
nt = function() {
var s = t(this),
o = s.data(e),
i = o.opt;
if (!o.bindEvents) {
st.call(this);
if (i.contentTouchScroll) {
F.call(this)
};
ot.call(this);
if (i.mouseWheel.enable) {
function n() {
r = setTimeout(function() {
if (!t.event.special.mousewheel) {
n()
} else {
clearTimeout(r);
it.call(s[0])
}
}, 100)
};
var r;
n()
};
tt.call(this);
rt.call(this);
if (i.advanced.autoScrollOnFocus) {
et.call(this)
};
if (i.scrollButtons.enable) {
W.call(this)
};
if (i.keyboard.enable) {
z.call(this)
};
o.bindEvents = !0
}
},
w = function() {
var r = t(this),
o = r.data(e),
n = o.opt,
l = e + '_' + o.idx,
c = '.mCSB_' + o.idx + '_scrollbar',
s = t('#mCSB_' + o.idx + ',#mCSB_' + o.idx + '_container,#mCSB_' + o.idx + '_container_wrapper,' + c + ' .' + i[12] + ',#mCSB_' + o.idx + '_dragger_vertical,#mCSB_' + o.idx + '_dragger_horizontal,' + c + '>a'),
a = t('#mCSB_' + o.idx + '_container');
if (n.advanced.releaseDraggableSelectors) {
s.add(t(n.advanced.releaseDraggableSelectors))
};
if (n.advanced.extraDraggableSelectors) {
s.add(t(n.advanced.extraDraggableSelectors))
};
if (o.bindEvents) {
t(document).add(t(!p() || top.document)).unbind('.' + l);
s.each(function() {
t(this).unbind('.' + l)
});
clearTimeout(r[0].L$);
d(r[0], '_focusTimeout');
clearTimeout(o.sequential.step);
d(o.sequential, 'step');
clearTimeout(a[0].onCompleteTimeout);
d(a[0], 'onCompleteTimeout');
o.bindEvents = !1
}
},
D = function(o) {
var d = t(this),
n = d.data(e),
a = n.opt,
c = t('#mCSB_' + n.idx + '_container_wrapper'),
r = c.length ? c : t('#mCSB_' + n.idx + '_container'),
s = [t('#mCSB_' + n.idx + '_scrollbar_vertical'), t('#mCSB_' + n.idx + '_scrollbar_horizontal')],
l = [s[0].find('.mCSB_dragger'), s[1].find('.mCSB_dragger')];
if (a.axis !== 'x') {
if (n.overflowed[0] && !o) {
s[0].add(l[0]).add(s[0].children('a')).css('display', 'block');
r.removeClass(i[8] + ' ' + i[10])
} else {
if (a.alwaysShowScrollbar) {
if (a.alwaysShowScrollbar !== 2) {
l[0].css('display', 'none')
};
r.removeClass(i[10])
} else {
s[0].css('display', 'none');
r.addClass(i[10])
};
r.addClass(i[8])
}
};
if (a.axis !== 'y') {
if (n.overflowed[1] && !o) {
s[1].add(l[1]).add(s[1].children('a')).css('display', 'block');
r.removeClass(i[9] + ' ' + i[11])
} else {
if (a.alwaysShowScrollbar) {
if (a.alwaysShowScrollbar !== 2) {
l[1].css('display', 'none')
};
r.removeClass(i[11])
} else {
s[1].css('display', 'none');
r.addClass(i[11])
};
r.addClass(i[9])
}
};
if (!n.overflowed[0] && !n.overflowed[1]) {
d.addClass(i[5])
} else {
d.removeClass(i[5])
}
},
o = function(e) {
var r = e.type,
i = e.target.ownerDocument !== document && frameElement !== null ? [t(frameElement).offset().top, t(frameElement).offset().left] : null,
o = p() && e.target.ownerDocument !== top.document && frameElement !== null ? [t(e.view.frameElement).offset().top, t(e.view.frameElement).offset().left] : [0, 0];
switch (r) {
case 'pointerdown':
case 'MSPointerDown':
case 'pointermove':
case 'MSPointerMove':
case 'pointerup':
case 'MSPointerUp':
return i ? [e.originalEvent.pageY - i[0] + o[0], e.originalEvent.pageX - i[1] + o[1], !1] : [e.originalEvent.pageY, e.originalEvent.pageX, !1];
break;
case 'touchstart':
case 'touchmove':
case 'touchend':
var n = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0],
s = e.originalEvent.touches.length || e.originalEvent.changedTouches.length;
return e.target.ownerDocument !== document ? [n.screenY, n.screenX, s > 1] : [n.pageY, n.pageX, s > 1];
break;
default:
return i ? [e.pageY - i[0] + o[0], e.pageX - i[1] + o[1], !1] : [e.pageY, e.pageX, !1]
}
},
st = function() {
var h = t(this),
d = h.data(e),
l = d.opt,
s = e + '_' + d.idx,
g = ['mCSB_' + d.idx + '_dragger_vertical', 'mCSB_' + d.idx + '_dragger_horizontal'],
v = t('#mCSB_' + d.idx + '_container'),
f = t('#' + g[0] + ',#' + g[1]),
i, c, u, w = l.advanced.releaseDraggableSelectors ? f.add(t(l.advanced.releaseDraggableSelectors)) : f,
S = l.advanced.extraDraggableSelectors ? t(!p() || top.document).add(t(l.advanced.extraDraggableSelectors)) : t(!p() || top.document);
f.bind('contextmenu.' + s, function(t) {
t.preventDefault()
}).bind('mousedown.' + s + ' touchstart.' + s + ' pointerdown.' + s + ' MSPointerDown.' + s, function(e) {
e.stopImmediatePropagation();
e.preventDefault();
if (!B(e)) {
return
};
r = !0;
if (m) {
document.onselectstart = function() {
return !1
}
};
O.call(v, !1);
a(h);
i = t(this);
var n = i.offset(),
d = o(e)[0] - n.top,
s = o(e)[1] - n.left,
f = i.height() + n.top,
p = i.width() + n.left;
if (d < f && d > 0 && s < p && s > 0) {
c = d;
u = s
};
b(i, 'active', l.autoExpandScrollbar)
}).bind('touchmove.' + s, function(t) {
t.stopImmediatePropagation();
t.preventDefault();
var e = i.offset(),
s = o(t)[0] - e.top,
n = o(t)[1] - e.left;
y(c, u, s, n)
});
t(document).add(S).bind('mousemove.' + s + ' pointermove.' + s + ' MSPointerMove.' + s, function(t) {
if (i) {
var n = i.offset(),
s = o(t)[0] - n.top,
e = o(t)[1] - n.left;
if (c === s && u === e) {
return
};
y(c, u, s, e)
}
}).add(w).bind('mouseup.' + s + ' touchend.' + s + ' pointerup.' + s + ' MSPointerUp.' + s, function(t) {
if (i) {
b(i, 'active', l.autoExpandScrollbar);
i = null
};
r = !1;
if (m) {
document.onselectstart = null
};
O.call(v, !0)
});
function y(t, e, o, s) {
v[0].idleTimer = l.scrollInertia < 233 ? 250 : 0;
if (i.attr('id') === g[1]) {
var a = 'x',
r = ((i[0].offsetLeft - e) + s) * d.scrollRatio.x
} else {
var a = 'y',
r = ((i[0].offsetTop - t) + o) * d.scrollRatio.y
};
n(h, r.toString(), {
dir: a,
drag: !0
})
}
},
F = function() {
var y = t(this),
i = y.data(e),
s = i.opt,
u = e + '_' + i.idx,
I = t('#mCSB_' + i.idx),
v = t('#mCSB_' + i.idx + '_container'),
S = [t('#mCSB_' + i.idx + '_dragger_vertical'), t('#mCSB_' + i.idx + '_dragger_horizontal')],
D, b, w, z, j, O = [],
T = [],
F, R, M, m, f, l, q = 0,
P, A = s.axis === 'yx' ? 'none' : 'all',
d = [],
x, E, U = v.find('iframe'),
h = ['touchstart.' + u + ' pointerdown.' + u + ' MSPointerDown.' + u, 'touchmove.' + u + ' pointermove.' + u + ' MSPointerMove.' + u, 'touchend.' + u + ' pointerup.' + u + ' MSPointerUp.' + u],
Q = document.body.style.touchAction !== undefined && document.body.style.touchAction !== '';
v.bind(h[0], function(t) {
W(t)
}).bind(h[1], function(t) {
L(t)
});
I.bind(h[0], function(t) {
B(t)
}).bind(h[2], function(t) {
H(t)
});
if (U.length) {
U.each(function() {
t(this).bind('load', function() {
if (p(this)) {
t(this.contentDocument || this.contentWindow.document).bind(h[0], function(t) {
W(t);
B(t)
}).bind(h[1], function(t) {
L(t)
}).bind(h[2], function(t) {
H(t)
})
}
})
})
};
function W(t) {
if (!C(t) || r || o(t)[2]) {
c = 0;
return
};
c = 1;
x = 0;
E = 0;
D = 1;
y.removeClass('mCS_touch_action');
var e = v.offset();
b = o(t)[0] - e.top;
w = o(t)[1] - e.left;
d = [o(t)[0], o(t)[1]]
};
function L(t) {
if (!C(t) || r || o(t)[2]) {
return
};
if (!s.documentTouchScroll) {
t.preventDefault()
};
t.stopImmediatePropagation();
if (E && !x) {
return
};
if (D) {
R = g();
var c = I.offset(),
e = o(t)[0] - c.top,
n = o(t)[1] - c.left,
a = 'mcsLinearOut';
O.push(e);
T.push(n);
d[2] = Math.abs(o(t)[0] - d[0]);
d[3] = Math.abs(o(t)[1] - d[1]);
if (i.overflowed[0]) {
var h = S[0].parent().height() - S[0].height(),
u = ((b - e) > 0 && (e - b) > -(h * i.scrollRatio.y) && (d[3] * 2 < d[2] || s.axis === 'yx'))
};
if (i.overflowed[1]) {
var p = S[1].parent().width() - S[1].width(),
f = ((w - n) > 0 && (n - w) > -(p * i.scrollRatio.x) && (d[2] * 2 < d[3] || s.axis === 'yx'))
};
if (u || f) {
if (!Q) {
t.preventDefault()
};
x = 1
} else {
E = 1;
y.addClass('mCS_touch_action')
};
if (Q) {
t.preventDefault()
};
l = s.axis === 'yx' ? [(b - e), (w - n)] : s.axis === 'x' ? [null, (w - n)] : [(b - e), null];
v[0].idleTimer = 250;
if (i.overflowed[0]) {
k(l[0], q, a, 'y', 'all', !0)
};
if (i.overflowed[1]) {
k(l[1], q, a, 'x', A, !0)
}
}
};
function B(t) {
if (!C(t) || r || o(t)[2]) {
c = 0;
return
};
c = 1;
t.stopImmediatePropagation();
a(y);
F = g();
var e = I.offset();
z = o(t)[0] - e.top;
j = o(t)[1] - e.left;
O = [];
T = []
};
function H(t) {
if (!C(t) || r || o(t)[2]) {
return
};
D = 0;
t.stopImmediatePropagation();
x = 0;
E = 0;
M = g();
var u = I.offset(),
d = o(t)[0] - u.top,
c = o(t)[1] - u.left;
if ((M - R) > 30) {
return
};
f = 1000 / (M - F);
var p = 'mcsEaseOut',
a = f < 2.5,
y = a ? [O[O.length - 2], T[T.length - 2]] : [0, 0];
m = a ? [(d - y[0]), (c - y[1])] : [d - z, c - j];
var e = [Math.abs(m[0]), Math.abs(m[1])];
f = a ? [Math.abs(m[0] / 4), Math.abs(m[1] / 4)] : [f, f];
var n = [Math.abs(v[0].offsetTop) - (m[0] * N((e[0] / f[0]), f[0])), Math.abs(v[0].offsetLeft) - (m[1] * N((e[1] / f[1]), f[1]))];
l = s.axis === 'yx' ? [n[0], n[1]] : s.axis === 'x' ? [null, n[1]] : [n[0], null];
P = [(e[0] * 4) + s.scrollInertia, (e[1] * 4) + s.scrollInertia];
var h = parseInt(s.contentTouchScroll) || 0;
l[0] = e[0] > h ? l[0] : 0;
l[1] = e[1] > h ? l[1] : 0;
if (i.overflowed[0]) {
k(l[0], P[0], p, 'y', A, !1)
};
if (i.overflowed[1]) {
k(l[1], P[1], p, 'x', A, !1)
}
};
function N(t, e) {
var i = [e * 1.5, e * 2, e / 1.5, e / 2];
if (t > 90) {
return e > 4 ? i[0] : i[3]
} else if (t > 60) {
return e > 3 ? i[3] : i[2]
} else if (t > 30) {
return e > 8 ? i[1] : e > 6 ? i[0] : e > 4 ? e : i[2]
} else {
return e > 8 ? e : i[3]
}
};
function k(t, e, i, o, s, r) {
if (!t) {
return
};
n(y, t.toString(), {
dur: e,
scrollEasing: i,
dir: o,
overwrite: s,
drag: r
})
}
},
ot = function() {
var p = t(this),
s = p.data(e),
f = s.opt,
u = s.sequential,
d = e + '_' + s.idx,
a = t('#mCSB_' + s.idx + '_container'),
l = a.parent(),
i;
a.bind('mousedown.' + d, function(t) {
if (c) {
return
};
if (!i) {
i = 1;
r = !0
}
}).add(document).bind('mousemove.' + d, function(t) {
if (!c && i && h()) {
var d = a.offset(),
e = o(t)[0] - d.top + a[0].offsetTop,
r = o(t)[1] - d.left + a[0].offsetLeft;
if (e > 0 && e < l.height() && r > 0 && r < l.width()) {
if (u.step) {
n('off', null, 'stepped')
}
} else {
if (f.axis !== 'x' && s.overflowed[0]) {
if (e < 0) {
n('on', 38)
} else if (e > l.height()) {
n('on', 40)
}
};
if (f.axis !== 'y' && s.overflowed[1]) {
if (r < 0) {
n('on', 37)
} else if (r > l.width()) {
n('on', 39)
}
}
}
}
}).bind('mouseup.' + d + ' dragend.' + d, function(t) {
if (c) {
return
};
if (i) {
i = 0;
n('off', null)
};
r = !1
});
function h() {
return window.getSelection ? window.getSelection().toString() : document.selection && document.selection.type != 'Control' ? document.selection.createRange().text : 0
};
function n(t, e, o) {
u.type = o && i ? 'stepped' : 'stepless';
u.scrollAmount = 10;
T(p, t, e, 'mcsLinearOut', o ? 60 : null)
}
},
it = function() {
if (!t(this).data(e)) {
return
};
var l = t(this),
o = l.data(e),
i = o.opt,
c = e + '_' + o.idx,
r = t('#mCSB_' + o.idx),
s = [t('#mCSB_' + o.idx + '_dragger_vertical'), t('#mCSB_' + o.idx + '_dragger_horizontal')],
u = t('#mCSB_' + o.idx + '_container').find('iframe');
if (u.length) {
u.each(function() {
t(this).bind('load', function() {
if (p(this)) {
t(this.contentDocument || this.contentWindow.document).bind('mousewheel.' + c, function(t, e) {
d(t, e)
})
}
})
})
};
r.bind('mousewheel.' + c, function(t, e) {
d(t, e)
});
function d(e, d) {
a(l);
if (Z(l, e.target)) {
return
};
var g = i.mouseWheel.deltaFactor !== 'auto' ? parseInt(i.mouseWheel.deltaFactor) : (m && e.deltaFactor < 100) ? 100 : e.deltaFactor || 100,
v = i.scrollInertia;
if (i.axis === 'x' || i.mouseWheel.axis === 'x') {
var p = 'x',
u = [Math.round(g * o.scrollRatio.x), parseInt(i.mouseWheel.scrollAmount)],
h = i.mouseWheel.scrollAmount !== 'auto' ? u[1] : u[0] >= r.width() ? r.width() * 0.9 : u[0],
y = Math.abs(t('#mCSB_' + o.idx + '_container')[0].offsetLeft),
f = s[1][0].offsetLeft,
w = s[1].parent().width() - s[1].width(),
c = i.mouseWheel.axis === 'y' ? (e.deltaY || d) : e.deltaX
} else {
var p = 'y',
u = [Math.round(g * o.scrollRatio.y), parseInt(i.mouseWheel.scrollAmount)],
h = i.mouseWheel.scrollAmount !== 'auto' ? u[1] : u[0] >= r.height() ? r.height() * 0.9 : u[0],
y = Math.abs(t('#mCSB_' + o.idx + '_container')[0].offsetTop),
f = s[0][0].offsetTop,
w = s[0].parent().height() - s[0].height(),
c = e.deltaY || d
};
if ((p === 'y' && !o.overflowed[0]) || (p === 'x' && !o.overflowed[1])) {
return
};
if (i.mouseWheel.invert || e.webkitDirectionInvertedFromDevice) {
c = -c
};
if (i.mouseWheel.normalizeDelta) {
c = c < 0 ? -1 : 1
};
if ((c > 0 && f !== 0) || (c < 0 && f !== w) || i.mouseWheel.preventDefault) {
e.stopImmediatePropagation();
e.preventDefault()
};
if (e.deltaFactor < 5 && !i.mouseWheel.normalizeDelta) {
h = e.deltaFactor;
v = 17
};
n(l, (y - (c * h)).toString(), {
dir: p,
dur: v
})
}
},
I = {},
p = function(e) {
var s = !1,
o = !1,
n = null;
if (e === undefined) {
o = '#empty'
} else if (t(e).attr('id') !== undefined) {
o = t(e).attr('id')
};
if (o !== !1 && I[o] !== undefined) {
return I[o]
};
if (!e) {
try {
var r = top.document;
n = r.body.innerHTML
} catch (i) {};
s = (n !== null)
} else {
try {
var r = e.contentDocument || e.contentWindow.document;
n = r.body.innerHTML
} catch (i) {};
s = (n !== null)
};
if (o !== !1) {
I[o] = s
};
return s
},
O = function(t) {
var e = this.find('iframe');
if (!e.length) {
return
};
var i = !t ? 'none' : 'auto';
e.css('pointer-events', i)
},
Z = function(i, o) {
var n = o.nodeName.toLowerCase(),
r = i.data(e).opt.mouseWheel.disableOver,
s = ['select', 'textarea'];
return t.inArray(n, r) > -1 && !(t.inArray(n, s) > -1 && !t(o).is(':focus'))
},
tt = function() {
var c = t(this),
s = c.data(e),
o = e + '_' + s.idx,
d = t('#mCSB_' + s.idx + '_container'),
u = d.parent(),
p = t('.mCSB_' + s.idx + '_scrollbar .' + i[12]),
l;
p.bind('mousedown.' + o + ' touchstart.' + o + ' pointerdown.' + o + ' MSPointerDown.' + o, function(e) {
r = !0;
if (!t(e.target).hasClass('mCSB_dragger')) {
l = 1
}
}).bind('touchend.' + o + ' pointerup.' + o + ' MSPointerUp.' + o, function(t) {
r = !1
}).bind('click.' + o, function(e) {
if (!l) {
return
};
l = 0;
if (t(e.target).hasClass(i[12]) || t(e.target).hasClass('mCSB_draggerRail')) {
a(c);
var p = t(this),
r = p.find('.mCSB_dragger');
if (p.parent('.mCSB_scrollTools_horizontal').length > 0) {
if (!s.overflowed[1]) {
return
};
var h = 'x',
o = e.pageX > r.offset().left ? -1 : 1,
f = Math.abs(d[0].offsetLeft) - (o * (u.width() * 0.9))
} else {
if (!s.overflowed[0]) {
return
};
var h = 'y',
o = e.pageY > r.offset().top ? -1 : 1,
f = Math.abs(d[0].offsetTop) - (o * (u.height() * 0.9))
};
n(c, f.toString(), {
dir: h,
scrollEasing: 'mcsEaseInOut'
})
}
})
},
et = function() {
var i = t(this),
l = i.data(e),
r = l.opt,
c = e + '_' + l.idx,
o = t('#mCSB_' + l.idx + '_container'),
d = o.parent();
o.bind('focusin.' + c, function(e) {
var l = t(document.activeElement),
u = o.find('.mCustomScrollBox').length,
c = 0;
if (!l.is(r.advanced.autoScrollOnFocus)) {
return
};
a(i);
clearTimeout(i[0].L$);
i[0].ht$ = u ? (c + 17) * u : 0;
i[0].L$ = setTimeout(function() {
var t = [s(l)[0], s(l)[1]],
a = [o[0].offsetTop, o[0].offsetLeft],
e = [(a[0] + t[0] >= 0 && a[0] + t[0] < d.height() - l.outerHeight(!1)), (a[1] + t[1] >= 0 && a[0] + t[1] < d.width() - l.outerWidth(!1))],
u = (r.axis === 'yx' && !e[0] && !e[1]) ? 'none' : 'all';
if (r.axis !== 'x' && !e[0]) {
n(i, t[0].toString(), {
dir: 'y',
scrollEasing: 'mcsEaseInOut',
overwrite: u,
dur: c
})
};
if (r.axis !== 'y' && !e[1]) {
n(i, t[1].toString(), {
dir: 'x',
scrollEasing: 'mcsEaseInOut',
overwrite: u,
dur: c
})
}
}, i[0].ht$)
})
},
rt = function() {
var n = t(this),
o = n.data(e),
s = e + '_' + o.idx,
i = t('#mCSB_' + o.idx + '_container').parent();
i.bind('scroll.' + s, function(e) {
if (i.scrollTop() !== 0 || i.scrollLeft() !== 0) {
t('.mCSB_' + o.idx + '_scrollbar').css('visibility', 'hidden')
}
})
},
W = function() {
var s = t(this),
n = s.data(e),
a = n.opt,
o = n.sequential,
i = e + '_' + n.idx,
d = '.mCSB_' + n.idx + '_scrollbar',
l = t(d + '>a');
l.bind('contextmenu.' + i, function(t) {
t.preventDefault()
}).bind('mousedown.' + i + ' touchstart.' + i + ' pointerdown.' + i + ' MSPointerDown.' + i + ' mouseup.' + i + ' touchend.' + i + ' pointerup.' + i + ' MSPointerUp.' + i + ' mouseout.' + i + ' pointerout.' + i + ' MSPointerOut.' + i + ' click.' + i, function(e) {
e.preventDefault();
if (!B(e)) {
return
};
var l = t(this).attr('class');
o.type = a.scrollButtons.scrollType;
switch (e.type) {
case 'mousedown':
case 'touchstart':
case 'pointerdown':
case 'MSPointerDown':
if (o.type === 'stepped') {
return
};
r = !0;
n.tweenRunning = !1;
i('on', l);
break;
case 'mouseup':
case 'touchend':
case 'pointerup':
case 'MSPointerUp':
case 'mouseout':
case 'pointerout':
case 'MSPointerOut':
if (o.type === 'stepped') {
return
};
r = !1;
if (o.dir) {
i('off', l)
};
break;
case 'click':
if (o.type !== 'stepped' || n.tweenRunning) {
return
};
i('on', l);
break
};
function i(t, e) {
o.scrollAmount = a.scrollButtons.scrollAmount;
T(s, t, e)
}
})
},
z = function() {
var r = t(this),
i = r.data(e),
o = i.opt,
l = i.sequential,
c = e + '_' + i.idx,
m = t('#mCSB_' + i.idx),
s = t('#mCSB_' + i.idx + '_container'),
d = s.parent(),
h = 'input,textarea,select,datalist,keygen,[contenteditable=\'true\']',
f = s.find('iframe'),
u = ['blur.' + c + ' keydown.' + c + ' keyup.' + c];
if (f.length) {
f.each(function() {
t(this).bind('load', function() {
if (p(this)) {
t(this.contentDocument || this.contentWindow.document).bind(u[0], function(t) {
g(t)
})
}
})
})
};
m.attr('tabindex', '0').bind(u[0], function(t) {
g(t)
});
function g(e) {
switch (e.type) {
case 'blur':
if (i.tweenRunning && l.dir) {
f('off', null)
};
break;
case 'keydown':
case 'keyup':
var c = e.keyCode ? e.keyCode : e.which,
m = 'on';
if ((o.axis !== 'x' && (c === 38 || c === 40)) || (o.axis !== 'y' && (c === 37 || c === 39))) {
if (((c === 38 || c === 40) && !i.overflowed[0]) || ((c === 37 || c === 39) && !i.overflowed[1])) {
return
};
if (e.type === 'keyup') {
m = 'off'
};
if (!t(document.activeElement).is(h)) {
e.preventDefault();
e.stopImmediatePropagation();
f(m, c)
}
} else if (c === 33 || c === 34) {
if (i.overflowed[0] || i.overflowed[1]) {
e.preventDefault();
e.stopImmediatePropagation()
};
if (e.type === 'keyup') {
a(r);
var g = c === 34 ? -1 : 1;
if (o.axis === 'x' || (o.axis === 'yx' && i.overflowed[1] && !i.overflowed[0])) {
var p = 'x',
u = Math.abs(s[0].offsetLeft) - (g * (d.width() * 0.9))
} else {
var p = 'y',
u = Math.abs(s[0].offsetTop) - (g * (d.height() * 0.9))
};
n(r, u.toString(), {
dir: p,
scrollEasing: 'mcsEaseInOut'
})
}
} else if (c === 35 || c === 36) {
if (!t(document.activeElement).is(h)) {
if (i.overflowed[0] || i.overflowed[1]) {
e.preventDefault();
e.stopImmediatePropagation()
};
if (e.type === 'keyup') {
if (o.axis === 'x' || (o.axis === 'yx' && i.overflowed[1] && !i.overflowed[0])) {
var p = 'x',
u = c === 35 ? Math.abs(d.width() - s.outerWidth(!1)) : 0
} else {
var p = 'y',
u = c === 35 ? Math.abs(d.height() - s.outerHeight(!1)) : 0
};
n(r, u.toString(), {
dir: p,
scrollEasing: 'mcsEaseInOut'
})
}
}
};
break
};
function f(t, e) {
l.type = o.keyboard.scrollType;
l.scrollAmount = o.keyboard.scrollAmount;
if (l.type === 'stepped' && i.tweenRunning) {
return
};
T(r, t, e)
}
}
},
T = function(o, s, r, c, f) {
var p = o.data(e),
u = p.opt,
l = p.sequential,
m = t('#mCSB_' + p.idx + '_container'),
g = l.type === 'stepped' ? !0 : !1,
b = u.scrollInertia < 26 ? 26 : u.scrollInertia,
w = u.scrollInertia < 1 ? 17 : u.scrollInertia;
switch (s) {
case 'on':
l.dir = [(r === i[16] || r === i[15] || r === 39 || r === 37 ? 'x' : 'y'), (r === i[13] || r === i[15] || r === 38 || r === 37 ? -1 : 1)];
a(o);
if (v(r) && l.type === 'stepped') {
return
};
h(g);
break;
case 'off':
y();
if (g || (p.tweenRunning && l.dir)) {
h(!0)
};
break
};
function h(t) {
if (u.snapAmount) {
l.scrollAmount = !(u.snapAmount instanceof Array) ? u.snapAmount : l.dir[0] === 'x' ? u.snapAmount[1] : u.snapAmount[0]
};
var s = l.type !== 'stepped',
i = f ? f : !t ? 1000 / 60 : s ? b / 1.5 : w,
d = !t ? 2.5 : s ? 7.5 : 40,
e = [Math.abs(m[0].offsetTop), Math.abs(m[0].offsetLeft)],
a = [p.scrollRatio.y > 10 ? 10 : p.scrollRatio.y, p.scrollRatio.x > 10 ? 10 : p.scrollRatio.x],
y = l.dir[0] === 'x' ? e[1] + (l.dir[1] * (a[1] * d)) : e[0] + (l.dir[1] * (a[0] * d)),
S = l.dir[0] === 'x' ? e[1] + (l.dir[1] * parseInt(l.scrollAmount)) : e[0] + (l.dir[1] * parseInt(l.scrollAmount)),
r = l.scrollAmount !== 'auto' ? S : y,
v = c ? c : !t ? 'mcsLinear' : s ? 'mcsLinearOut' : 'mcsEaseInOut',
g = !t ? !1 : !0;
if (t && i < 17) {
r = l.dir[0] === 'x' ? e[1] : e[0]
};
n(o, r.toString(), {
dir: l.dir[0],
scrollEasing: v,
dur: i,
onComplete: g
});
if (t) {
l.dir = !1;
return
};
clearTimeout(l.step);
l.step = setTimeout(function() {
h()
}, i)
};
function y() {
clearTimeout(l.step);
d(l, 'step');
a(o)
}
},
x = function(i) {
var n = t(this).data(e).opt,
o = [];
if (typeof i === 'function') {
i = i()
};
if (!(i instanceof Array)) {
o[0] = i.y ? i.y : i.x || n.axis === 'x' ? null : i;
o[1] = i.x ? i.x : i.y || n.axis === 'y' ? null : i
} else {
o = i.length > 1 ? [i[0], i[1]] : n.axis === 'x' ? [null, i[0]] : [i[0], null]
};
if (typeof o[0] === 'function') {
o[0] = o[0]()
};
if (typeof o[1] === 'function') {
o[1] = o[1]()
};
return o
},
P = function(i, o) {
if (i == null || typeof i == 'undefined') {
return
};
var d = t(this),
c = d.data(e),
m = c.opt,
n = t('#mCSB_' + c.idx + '_container'),
a = n.parent(),
f = typeof i;
if (!o) {
o = m.axis === 'x' ? 'x' : 'y'
};
var g = o === 'x' ? n.outerWidth(!1) - a.width() : n.outerHeight(!1) - a.height(),
u = o === 'x' ? n[0].offsetLeft : n[0].offsetTop,
h = o === 'x' ? 'left' : 'top';
switch (f) {
case 'function':
return i();
break;
case 'object':
var r = i.jquery ? i : t(i);
if (!r.length) {
return
};
return o === 'x' ? s(r)[1] : s(r)[0];
break;
case 'string':
case 'number':
if (v(i)) {
return Math.abs(i)
} else if (i.indexOf('%') !== -1) {
return Math.abs(g * parseInt(i) / 100)
} else if (i.indexOf('-=') !== -1) {
return Math.abs(u - parseInt(i.split('-=')[1]))
} else if (i.indexOf('+=') !== -1) {
var p = (u + parseInt(i.split('+=')[1]));
return p >= 0 ? 0 : Math.abs(p)
} else if (i.indexOf('px') !== -1 && v(i.split('px')[0])) {
return Math.abs(i.split('px')[0])
} else {
if (i === 'top' || i === 'left') {
return 0
} else if (i === 'bottom') {
return Math.abs(a.height() - n.outerHeight(!1))
} else if (i === 'right') {
return Math.abs(a.width() - n.outerWidth(!1))
} else if (i === 'first' || i === 'last') {
var r = n.find(':' + i);
return o === 'x' ? s(r)[1] : s(r)[0]
} else {
if (t(i).length) {
return o === 'x' ? s(t(i))[1] : s(t(i))[0]
} else {
n.css(h, i);
l.update.call(null, d[0]);
return
}
}
};
break
}
},
E = function(o) {
var a = t(this),
n = a.data(e),
s = n.opt,
r = t('#mCSB_' + n.idx + '_container');
if (o) {
clearTimeout(r[0].autoUpdate);
d(r[0], 'autoUpdate');
return
};
u();
function u() {
clearTimeout(r[0].autoUpdate);
if (a.parents('html').length === 0) {
a = null;
return
};
r[0].autoUpdate = setTimeout(function() {
if (s.advanced.updateOnSelectorChange) {
n.poll.change.n = f();
if (n.poll.change.n !== n.poll.change.o) {
n.poll.change.o = n.poll.change.n;
c(3);
return
}
};
if (s.advanced.updateOnContentResize) {
n.poll.size.n = a[0].scrollHeight + a[0].scrollWidth + r[0].offsetHeight + a[0].offsetHeight + a[0].offsetWidth;
if (n.poll.size.n !== n.poll.size.o) {
n.poll.size.o = n.poll.size.n;
c(1);
return
}
};
if (s.advanced.updateOnImageLoad) {
if (!(s.advanced.updateOnImageLoad === 'auto' && s.axis === 'y')) {
n.poll.img.n = r.find('img').length;
if (n.poll.img.n !== n.poll.img.o) {
n.poll.img.o = n.poll.img.n;
r.find('img').each(function() {
p(this)
});
return
}
}
};
if (s.advanced.updateOnSelectorChange || s.advanced.updateOnContentResize || s.advanced.updateOnImageLoad) {
u()
}
}, s.advanced.autoUpdateTimeout)
};
function p(e) {
if (t(e).hasClass(i[2])) {
c();
return
};
var o = new Image();
function s(t, e) {
return function() {
return e.apply(t, arguments)
}
};
function n() {
this.onload = null;
t(e).addClass(i[2]);
c(2)
};
o.onload = s(o, n);
o.src = e.src
};
function f() {
if (s.advanced.updateOnSelectorChange === !0) {
s.advanced.updateOnSelectorChange = '*'
};
var e = 0,
t = r.find(s.advanced.updateOnSelectorChange);
if (s.advanced.updateOnSelectorChange && t.length > 0) {
t.each(function() {
e += this.offsetHeight + this.offsetWidth
})
};
return e
};
function c(t) {
clearTimeout(r[0].autoUpdate);
l.update.call(null, a[0], t)
}
},
j = function(t, e, i) {
return (Math.round(t / e) * e - i)
},
a = function(i) {
var o = i.data(e),
n = t('#mCSB_' + o.idx + '_container,#mCSB_' + o.idx + '_container_wrapper,#mCSB_' + o.idx + '_dragger_vertical,#mCSB_' + o.idx + '_dragger_horizontal');
n.each(function() {
R.call(this)
})
},
n = function(i, o, n) {
var s = i.data(e),
r = s.opt,
O = {
trigger: 'internal',
dir: 'y',
scrollEasing: 'mcsEaseOut',
drag: !1,
dur: r.scrollInertia,
overwrite: 'all',
callbacks: !0,
onStart: !0,
onUpdate: !0,
onComplete: !0
},
n = t.extend(O, n),
T = [n.dur, (n.drag ? 0 : n.dur)],
m = t('#mCSB_' + s.idx),
a = t('#mCSB_' + s.idx + '_container'),
v = a.parent(),
w = r.callbacks.onTotalScrollOffset ? x.call(i, r.callbacks.onTotalScrollOffset) : [0, 0],
S = r.callbacks.onTotalScrollBackOffset ? x.call(i, r.callbacks.onTotalScrollBackOffset) : [0, 0];
s.trigger = n.trigger;
if (v.scrollTop() !== 0 || v.scrollLeft() !== 0) {
t('.mCSB_' + s.idx + '_scrollbar').css('visibility', 'visible');
v.scrollTop(0).scrollLeft(0)
};
if (o === '_resetY' && !s.contentReset.y) {
if (c('onOverflowYNone')) {
r.callbacks.onOverflowYNone.call(i[0])
};
s.contentReset.y = 1
};
if (o === '_resetX' && !s.contentReset.x) {
if (c('onOverflowXNone')) {
r.callbacks.onOverflowXNone.call(i[0])
};
s.contentReset.x = 1
};
if (o === '_resetY' || o === '_resetX') {
return
};
if ((s.contentReset.y || !i[0].mcs) && s.overflowed[0]) {
if (c('onOverflowY')) {
r.callbacks.onOverflowY.call(i[0])
};
s.contentReset.x = null
};
if ((s.contentReset.x || !i[0].mcs) && s.overflowed[1]) {
if (c('onOverflowX')) {
r.callbacks.onOverflowX.call(i[0])
};
s.contentReset.x = null
};
if (r.snapAmount) {
var I = !(r.snapAmount instanceof Array) ? r.snapAmount : n.dir === 'x' ? r.snapAmount[1] : r.snapAmount[0];
o = j(o, I, r.snapOffset)
};
switch (n.dir) {
case 'x':
var d = t('#mCSB_' + s.idx + '_dragger_horizontal'),
y = 'left',
g = a[0].offsetLeft,
u = [m.width() - a.outerWidth(!1), d.parent().width() - d.width()],
l = [o, o === 0 ? 0 : (o / s.scrollRatio.x)],
h = w[1],
f = S[1],
k = h > 0 ? h / s.scrollRatio.x : 0,
C = f > 0 ? f / s.scrollRatio.x : 0;
break;
case 'y':
var d = t('#mCSB_' + s.idx + '_dragger_vertical'),
y = 'top',
g = a[0].offsetTop,
u = [m.height() - a.outerHeight(!1), d.parent().height() - d.height()],
l = [o, o === 0 ? 0 : (o / s.scrollRatio.y)],
h = w[0],
f = S[0],
k = h > 0 ? h / s.scrollRatio.y : 0,
C = f > 0 ? f / s.scrollRatio.y : 0;
break
};
if (l[1] < 0 || (l[0] === 0 && l[1] === 0)) {
l = [0, 0]
} else if (l[1] >= u[1]) {
l = [u[0], u[1]]
} else {
l[0] = -l[0]
};
if (!i[0].mcs) {
p();
if (c('onInit')) {
r.callbacks.onInit.call(i[0])
}
};
clearTimeout(a[0].onCompleteTimeout);
L(d[0], y, Math.round(l[1]), T[1], n.scrollEasing);
if (!s.tweenRunning && ((g === 0 && l[0] >= 0) || (g === u[0] && l[0] <= u[0]))) {
return
};
L(a[0], y, Math.round(l[0]), T[0], n.scrollEasing, n.overwrite, {
onStart: function() {
if (n.callbacks && n.onStart && !s.tweenRunning) {
if (c('onScrollStart')) {
p();
r.callbacks.onScrollStart.call(i[0])
};
s.tweenRunning = !0;
b(d);
s.cbOffsets = E()
}
},
onUpdate: function() {
if (n.callbacks && n.onUpdate) {
if (c('whileScrolling')) {
p();
r.callbacks.whileScrolling.call(i[0])
}
}
},
onComplete: function() {
if (n.callbacks && n.onComplete) {
if (r.axis === 'yx') {
clearTimeout(a[0].onCompleteTimeout)
};
var t = a[0].idleTimer || 0;
a[0].onCompleteTimeout = setTimeout(function() {
if (c('onScroll')) {
p();
r.callbacks.onScroll.call(i[0])
};
if (c('onTotalScroll') && l[1] >= u[1] - k && s.cbOffsets[0]) {
p();
r.callbacks.onTotalScroll.call(i[0])
};
if (c('onTotalScrollBack') && l[1] <= C && s.cbOffsets[1]) {
p();
r.callbacks.onTotalScrollBack.call(i[0])
};
s.tweenRunning = !1;
a[0].idleTimer = 0;
b(d, 'hide')
}, t)
}
}
});
function c(t) {
return s && r.callbacks[t] && typeof r.callbacks[t] === 'function'
};
function E() {
return [r.callbacks.alwaysTriggerOffsets || g >= u[0] + h, r.callbacks.alwaysTriggerOffsets || g <= -f]
};
function p() {
var t = [a[0].offsetTop, a[0].offsetLeft],
o = [d[0].offsetTop, d[0].offsetLeft],
s = [a.outerHeight(!1), a.outerWidth(!1)],
e = [m.height(), m.width()];
i[0].mcs = {
content: a,
top: t[0],
left: t[1],
draggerTop: o[0],
draggerLeft: o[1],
topPct: Math.round((100 * Math.abs(t[0])) / (Math.abs(s[0]) - e[0])),
leftPct: Math.round((100 * Math.abs(t[1])) / (Math.abs(s[1]) - e[1])),
direction: n.dir
}
}
},
L = function(t, e, i, n, r, u, a) {
if (!t.c$) {
t.c$ = {
top: {},
left: {}
}
};
var a = a || {},
S = a.onStart || function() {},
C = a.onUpdate || function() {},
x = a.onComplete || function() {},
w = g(),
l, s = 0,
d = t.offsetTop,
p = t.style,
c, o = t.c$[e];
if (e === 'left') {
d = t.offsetLeft
};
var b = i - d;
o.stop = 0;
if (u !== 'none') {
m()
};
y();
function f() {
if (o.stop) {
return
};
if (!s) {
S.call()
};
s = g() - w;
h();
if (s >= o.time) {
o.time = (s > o.time) ? s + l - (s - o.time) : s + l - 1;
if (o.time < s + 1) {
o.time = s + 1
}
};
if (o.time < n) {
o.id = c(f)
} else {
x.call()
}
};
function h() {
if (n > 0) {
o.currVal = v(o.time, d, b, n, r);
p[e] = Math.round(o.currVal) + 'px'
} else {
p[e] = i + 'px'
};
C.call()
};
function y() {
l = 1000 / 60;
o.time = s + l;
c = (!window.requestAnimationFrame) ? function(t) {
h();
return setTimeout(t, 0.01)
} : window.requestAnimationFrame;
o.id = c(f)
};
function m() {
if (o.id == null) {
return
};
if (!window.requestAnimationFrame) {
clearTimeout(o.id)
} else {
window.cancelAnimationFrame(o.id)
};
o.id = null
};
function v(t, e, i, o, n) {
switch (n) {
case 'linear':
case 'mcsLinear':
return i * t / o + e;
break;
case 'mcsLinearOut':
t /= o;
t--;
return i * Math.sqrt(1 - t * t) + e;
break;
case 'easeInOutSmooth':
t /= o / 2;
if (t < 1) return i / 2 * t * t + e;
t--;
return -i / 2 * (t * (t - 2) - 1) + e;
break;
case 'easeInOutStrong':
t /= o / 2;
if (t < 1) return i / 2 * Math.pow(2, 10 * (t - 1)) + e;
t--;
return i / 2 * (-Math.pow(2, -10 * t) + 2) + e;
break;
case 'easeInOut':
case 'mcsEaseInOut':
t /= o / 2;
if (t < 1) return i / 2 * t * t * t + e;
t -= 2;
return i / 2 * (t * t * t + 2) + e;
break;
case 'easeOutSmooth':
t /= o;
t--;
return -i * (t * t * t * t - 1) + e;
break;
case 'easeOutStrong':
return i * (-Math.pow(2, -10 * t / o) + 1) + e;
break;
case 'easeOut':
case 'mcsEaseOut':
default:
var s = (t /= o) * t,
r = s * t;
return e + i * (0.499999999999997 * r * s + -2.5 * s * s + 5.5 * r + -6.5 * s + 4 * t)
}
}
},
g = function() {
if (window.performance && window.performance.now) {
return window.performance.now()
} else {
if (window.performance && window.performance.webkitNow) {
return window.performance.webkitNow()
} else {
if (Date.now) {
return Date.now()
} else {
return new Date().getTime()
}
}
}
},
R = function() {
var t = this;
if (!t.c$) {
t.c$ = {
top: {},
left: {}
}
};
var o = ['top', 'left'];
for (var i = 0; i < o.length; i++) {
var e = o[i];
if (t.c$[e].id) {
if (!window.requestAnimationFrame) {
clearTimeout(t.c$[e].id)
} else {
window.cancelAnimationFrame(t.c$[e].id)
};
t.c$[e].id = null;
t.c$[e].stop = 1
}
}
},
d = function(t, e) {
try {
delete t[e]
} catch (i) {
t[e] = null
}
},
B = function(t) {
return !(t.which && t.which !== 1)
},
C = function(t) {
var e = t.originalEvent.pointerType;
return !(e && e !== 'touch' && e !== 2)
},
v = function(t) {
return !isNaN(parseFloat(t)) && isFinite(t)
},
s = function(t) {
var e = t.parents('.mCSB_container');
return [t.offset().top - e.offset().top, t.offset().left - e.offset().left]
},
N = function() {
var t = e();
if (!t) return !1;
return document[t];
function e() {
var e = ['webkit', 'moz', 'ms', 'o'];
if ('hidden' in document) return 'hidden';
for (var t = 0; t < e.length; t++) {
if ((e[t] + 'Hidden') in document) return e[t] + 'Hidden'
};
return null
}
};
t.fn[u] = function(e) {
if (l[e]) {
return l[e].apply(this, Array.prototype.slice.call(arguments, 1))
} else if (typeof e === 'object' || !e) {
return l.init.apply(this, arguments)
} else {
t.error('Method ' + e + ' does not exist')
}
};
t[u] = function(e) {
if (l[e]) {
return l[e].apply(this, Array.prototype.slice.call(arguments, 1))
} else if (typeof e === 'object' || !e) {
return l.init.apply(this, arguments)
} else {
t.error('Method ' + e + ' does not exist')
}
};
t[u].defaults = A;
window[u] = !0;
t(window).bind('load', function() {
t(k)[u]();
t.extend(t.expr[':'], {
mcsInView: t.expr[':'].mcsInView || function(e) {
var i = t(e),
n = i.parents('.mCSB_container'),
r, o;
if (!n.length) {
return
};
r = n.parent();
o = [n[0].offsetTop, n[0].offsetLeft];
return o[0] + s(i)[0] >= 0 && o[0] + s(i)[0] < r.height() - i.outerHeight(!1) && o[1] + s(i)[1] >= 0 && o[1] + s(i)[1] < r.width() - i.outerWidth(!1)
},
mcsInSight: t.expr[':'].mcsInSight || function(e, i, o) {
var c = t(e),
l, d = c.parents('.mCSB_container'),
n, r, a, u = o[3] === 'exact' ? [
[1, 0],
[1, 0]
] : [
[0.9, 0.1],
[0.6, 0.4]
];
if (!d.length) {
return
};
l = [c.outerHeight(!1), c.outerWidth(!1)];
r = [d[0].offsetTop + s(c)[0], d[0].offsetLeft + s(c)[1]];
n = [d.parent()[0].offsetHeight, d.parent()[0].offsetWidth];
a = [l[0] < n[0] ? u[0] : u[1], l[1] < n[1] ? u[0] : u[1]];
return r[0] - (n[0] * a[0][0]) < 0 && r[0] + l[0] - (n[0] * a[0][1]) >= 0 && r[1] - (n[1] * a[1][0]) < 0 && r[1] + l[1] - (n[1] * a[1][1]) >= 0
},
mcsOverflow: t.expr[':'].mcsOverflow || function(i) {
var o = t(i).data(e);
if (!o) {
return
};
return o.overflowed[0] || o.overflowed[1]
}
})
})
}))
}));
! function(t, e) {
'object' == typeof exports && 'undefined' != typeof module ? e(require('jquery'), require('window')) : 'function' == typeof define && define.amd ? define('isInViewport', ['jquery', 'window'], e) : e(t.$, t.window)
}(this, function(t, e) {
'use strict';
function n(e) {
var i = this;
if (1 === arguments.length && 'function' == typeof e && (e = [e]), !(e instanceof Array)) throw new SyntaxError('isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions');
return e.forEach(function(e) {
'function' != typeof e ? (console.warn('isInViewport: Argument(s) passed to .do/.run should be a function or an array of functions'), console.warn('isInViewport: Ignoring non-function values in array and moving on')) : [].slice.call(i).forEach(function(i) {
return e.call(t(i))
})
}), this
};
function s(e) {
var i = t('').css({
width: '100%'
});
e.append(i);
var o = e.width() - i.width();
return i.remove(), o
};
function i(o, n) {
var l = o.getBoundingClientRect(),
u = l.top,
c = l.bottom,
h = l.left,
v = l.right,
r = t.extend({
tolerance: 0,
viewport: e
}, n),
p = !1,
a = r.viewport.jquery ? r.viewport : t(r.viewport);
a.length || (console.warn('isInViewport: The viewport selector you have provided matches no element on page.'), console.warn('isInViewport: Defaulting to viewport as window'), a = t(e));
var f = a.height(),
g = a.width(),
m = a[0].toString();
if (a[0] !== e && '[object Window]' !== m && '[object DOMWindow]' !== m) {
var d = a[0].getBoundingClientRect();
u -= d.top, c -= d.top, h -= d.left, v -= d.left, i.scrollBarWidth = i.scrollBarWidth || s(a), g -= i.scrollBarWidth
};
return r.tolerance = ~~Math.round(parseFloat(r.tolerance)), r.tolerance < 0 && (r.tolerance = f + r.tolerance), v <= 0 || h >= g ? p : p = r.tolerance ? u <= r.tolerance && c >= r.tolerance : c > 0 && u <= f
};
function o(e) {
if (e) {
var i = e.split(',');
return 1 === i.length && isNaN(i[0]) && (i[1] = i[0], i[0] = void 0), {
tolerance: i[0] ? i[0].trim() : void 0,
viewport: i[1] ? t(i[1].trim()) : void 0
}
};
return {}
};
t = 'default' in t ? t.default : t, e = 'default' in e ? e.default : e, t.extend(t.expr[':'], {
'in-viewport': t.expr.createPseudo ? t.expr.createPseudo(function(t) {
return function(e) {
return i(e, o(t))
}
}) : function(t, e, n) {
return i(t, o(n[3]))
}
}), t.fn.isInViewport = function(t) {
return this.filter(function(e, o) {
return i(o, t)
})
}, t.fn.run = n
});
! function(t) {
'use strict';
'function' == typeof define && define.amd ? define(['jquery'], t) : 'undefined' != typeof module && module.exports ? module.exports = t(require('jquery')) : t(jQuery)
}(function(t) {
var l = -1,
n = -1,
i = function(t) {
return parseFloat(t) || 0
},
a = function(e) {
var r = 1,
s = t(e),
n = null,
o = [];
return s.each(function() {
var e = t(this),
a = e.offset().top - i(e.css('margin-top')),
s = o.length > 0 ? o[o.length - 1] : null;
null === s ? o.push(e) : Math.floor(Math.abs(n - a)) <= r ? o[o.length - 1] = s.add(e) : o.push(e), n = a
}), o
},
o = function(e) {
var i = {
byRow: !0,
property: 'height',
target: null,
remove: !1
};
return 'object' == typeof e ? t.extend(i, e) : ('boolean' == typeof e ? i.byRow = e : 'remove' === e && (i.remove = !0), i)
},
e = t.fn.matchHeight = function(i) {
var n = o(i);
if (n.remove) {
var s = this;
return this.css(n.property, ''), t.each(e.v$, function(t, e) {
e.elements = e.elements.not(s)
}), this
};
return this.length <= 1 && !n.target ? this : (e.v$.push({
elements: this,
options: n
}), e.j$(this, n), this)
};
e.version = '0.7.2', e.v$ = [], e.pt$ = 80, e.ut$ = !1, e.R$ = null, e.N$ = null, e.xt$ = a, e.Ct$ = i, e.St$ = o, e.j$ = function(n, s) {
var r = o(s),
l = t(n),
c = [l],
u = t(window).scrollTop(),
p = t('html').outerHeight(!0),
d = l.parents().filter(':hidden');
return d.each(function() {
var e = t(this);
e.data('style-cache', e.attr('style'))
}), d.css('display', 'block'), r.byRow && !r.target && (l.each(function() {
var i = t(this),
e = i.css('display');
'inline-block' !== e && 'flex' !== e && 'inline-flex' !== e && (e = 'block'), i.data('style-cache', i.attr('style')), i.css({
display: e,
'padding-top': '0',
'padding-bottom': '0',
'margin-top': '0',
'margin-bottom': '0',
'border-top-width': '0',
'border-bottom-width': '0',
height: '100px',
overflow: 'hidden'
})
}), c = a(l), l.each(function() {
var e = t(this);
e.attr('style', e.data('style-cache') || '')
})), t.each(c, function(e, o) {
var s = t(o),
n = 0;
if (r.target) n = r.target.outerHeight(!1);
else {
if (r.byRow && s.length <= 1) return void s.css(r.property, '');
s.each(function() {
var e = t(this),
o = e.attr('style'),
i = e.css('display');
'inline-block' !== i && 'flex' !== i && 'inline-flex' !== i && (i = 'block');
var s = {
display: i
};
s[r.property] = '', e.css(s), e.outerHeight(!1) > n && (n = e.outerHeight(!1)), o ? e.attr('style', o) : e.css('display', '')
})
};
s.each(function() {
var e = t(this),
o = 0;
r.target && e.is(r.target) || ('border-box' !== e.css('box-sizing') && (o += i(e.css('border-top-width')) + i(e.css('border-bottom-width')), o += i(e.css('padding-top')) + i(e.css('padding-bottom'))), e.css(r.property, n - o + 'px'))
})
}), d.each(function() {
var e = t(this);
e.attr('style', e.data('style-cache') || null)
}), e.ut$ && t(window).scrollTop(u / p * t('html').outerHeight(!0)), this
}, e.ct$ = function() {
var e = {};
t('[data-match-height], [data-mh]').each(function() {
var o = t(this),
i = o.attr('data-mh') || o.attr('data-match-height');
i in e ? e[i] = e[i].add(o) : e[i] = o
}), t.each(e, function() {
this.matchHeight(!0)
})
};
var r = function(i) {
e.R$ && e.R$(i, e.v$), t.each(e.v$, function() {
e.j$(this.elements, this.options)
}), e.N$ && e.N$(i, e.v$)
};
e.W$ = function(i, o) {
if (o && 'resize' === o.type) {
var s = t(window).width();
if (s === l) return;
l = s
};
i ? n === -1 && (n = setTimeout(function() {
r(o), n = -1
}, e.pt$)) : r(o)
}, t(e.ct$);
var s = t.fn.on ? 'on' : 'bind';
t(window)[s]('load', function(t) {
e.W$(!1, t)
}), t(window)[s]('resize orientationchange', function(t) {
e.W$(!0, t)
})
});
! function(t) {
'function' == typeof define && define.amd ? define(['jquery'], t) : t('object' == typeof exports ? require('jquery') : window.jQuery || window.Zepto)
}(function(t) {
var e, A, s, v, l, j, d = 'Close',
R = 'BeforeClose',
q = 'AfterClose',
F = 'BeforeAppend',
S = 'MarkupParse',
b = 'Open',
z = 'Change',
T = 'mfp',
n = '.' + T,
m = 'mfp-ready',
L = 'mfp-removing',
k = 'mfp-prevent-close',
g = function() {},
E = !!window.jQuery,
a = t(window),
o = function(t, i) {
e.ev.on(T + t + n, i)
},
u = function(e, i, o, n) {
var s = document.createElement('div');
return s.className = 'mfp-' + e, o && (s.innerHTML = o), n ? i && i.appendChild(s) : (s = t(s), i && s.appendTo(i)), s
},
i = function(i, o) {
e.ev.triggerHandler(T + i, o), e.st.callbacks && (i = i.charAt(0).toLowerCase() + i.slice(1), e.st.callbacks[i] && e.st.callbacks[i].apply(e, t.isArray(o) ? o : [o]))
},
D = function(i) {
return i === j && e.currTemplate.closeBtn || (e.currTemplate.closeBtn = t(e.st.closeMarkup.replace('%title%', e.st.tClose)), j = i), e.currTemplate.closeBtn
},
P = function() {
t.magnificPopup.instance || (e = new g, e.init(), t.magnificPopup.instance = e)
},
U = function() {
var e = document.createElement('p').style,
t = ['ms', 'O', 'Moz', 'Webkit'];
if (void 0 !== e.transition) return !0;
for (; t.length;)
if (t.pop() + 'Transition' in e) return !0;
return !1
};
g.prototype = {
constructor: g,
init: function() {
var i = navigator.appVersion;
e.isLowIE = e.isIE8 = document.all && !document.addEventListener, e.isAndroid = /android/gi.test(i), e.isIOS = /iphone|ipad|ipod/gi.test(i), e.supportsTransition = U(), e.probablyMobile = e.isAndroid || e.isIOS || /(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent), s = t(document), e.popupsCache = {}
},
open: function(r) {
var d;
if (r.isObj === !1) {
e.items = r.items.toArray(), e.index = 0;
var c, g = r.items;
for (d = 0; d < g.length; d++)
if (c = g[d], c.parsed && (c = c.el[0]), c === r.el[0]) {
e.index = d;
break
}
} else e.items = t.isArray(r.items) ? r.items : [r.items], e.index = r.index || 0;
if (e.isOpen) return void e.updateItemHTML();
e.types = [], l = '', r.mainEl && r.mainEl.length ? e.ev = r.mainEl.eq(0) : e.ev = s, r.key ? (e.popupsCache[r.key] || (e.popupsCache[r.key] = {}), e.currTemplate = e.popupsCache[r.key]) : e.currTemplate = {}, e.st = t.extend(!0, {}, t.magnificPopup.defaults, r), e.fixedContentPos = 'auto' === e.st.fixedContentPos ? !e.probablyMobile : e.st.fixedContentPos, e.st.modal && (e.st.closeOnContentClick = !1, e.st.closeOnBgClick = !1, e.st.showCloseBtn = !1, e.st.enableEscapeKey = !1), e.bgOverlay || (e.bgOverlay = u('bg').on('click' + n, function() {
e.close()
}), e.wrap = u('wrap').attr('tabindex', -1).on('click' + n, function(t) {
e.nt$(t.target) && e.close()
}), e.container = u('container', e.wrap)), e.contentContainer = u('content'), e.st.preloader && (e.preloader = u('preloader', e.container, e.st.tLoading));
var y = t.magnificPopup.modules;
for (d = 0; d < y.length; d++) {
var p = y[d];
p = p.charAt(0).toUpperCase() + p.slice(1), e['init' + p].call(e)
};
i('BeforeOpen'), e.st.showCloseBtn && (e.st.closeBtnInside ? (o(S, function(t, e, i, o) {
i.close_replaceWith = D(o.type)
}), l += ' mfp-close-btn-in') : e.wrap.append(D())), e.st.alignTop && (l += ' mfp-align-top'), e.fixedContentPos ? e.wrap.css({
overflow: e.st.overflowY,
overflowX: 'hidden',
overflowY: e.st.overflowY
}) : e.wrap.css({
top: a.scrollTop(),
position: 'absolute'
}), (e.st.fixedBgPos === !1 || 'auto' === e.st.fixedBgPos && !e.fixedContentPos) && e.bgOverlay.css({
height: s.height(),
position: 'absolute'
}), e.st.enableEscapeKey && s.on('keyup' + n, function(t) {
27 === t.keyCode && e.close()
}), a.on('resize' + n, function() {
e.updateSize()
}), e.st.closeOnContentClick || (l += ' mfp-auto-cursor'), l && e.wrap.addClass(l);
var w = e.wH = a.height(),
f = {};
if (e.fixedContentPos && e.it$(w)) {
var v = e.ot$();
v && (f.marginRight = v)
};
e.fixedContentPos && (e.isIE7 ? t('body, html').css('overflow', 'hidden') : f.overflow = 'hidden');
var h = e.st.mainClass;
return e.isIE7 && (h += ' mfp-ie7'), h && e.D$(h), e.updateItemHTML(), i('BuildControls'), t('html').css(f), e.bgOverlay.add(e.wrap).prependTo(e.st.prependTo || t(document.body)), e.J$ = document.activeElement, setTimeout(function() {
e.content ? (e.D$(m), e.T$()) : e.bgOverlay.addClass(m), s.on('focusin' + n, e.rt$)
}, 16), e.isOpen = !0, e.updateSize(w), i(b), r
},
close: function() {
e.isOpen && (i(R), e.isOpen = !1, e.st.removalDelay && !e.isLowIE && e.supportsTransition ? (e.D$(L), setTimeout(function() {
e.H$()
}, e.st.removalDelay)) : e.H$())
},
H$: function() {
i(d);
var o = L + ' ' + m + ' ';
if (e.bgOverlay.detach(), e.wrap.detach(), e.container.empty(), e.st.mainClass && (o += e.st.mainClass + ' '), e.et$(o), e.fixedContentPos) {
var r = {
marginRight: ''
};
e.isIE7 ? t('body, html').css('overflow', '') : r.overflow = '', t('html').css(r)
};
s.off('keyup' + n + ' focusin' + n), e.ev.off(n), e.wrap.attr('class', 'mfp-wrap').removeAttr('style'), e.bgOverlay.attr('class', 'mfp-bg'), e.container.attr('class', 'mfp-container'), !e.st.showCloseBtn || e.st.closeBtnInside && e.currTemplate[e.currItem.type] !== !0 || e.currTemplate.closeBtn && e.currTemplate.closeBtn.detach(), e.st.autoFocusLast && e.J$ && t(e.J$).focus(), e.currItem = null, e.content = null, e.currTemplate = null, e.prevHeight = 0, i(q)
},
updateSize: function(t) {
if (e.isIOS) {
var n = document.documentElement.clientWidth / window.innerWidth,
o = window.innerHeight * n;
e.wrap.css('height', o), e.wH = o
} else e.wH = t || a.height();
e.fixedContentPos || e.wrap.css('height', e.wH), i('Resize')
},
updateItemHTML: function() {
var n = e.items[e.index];
e.contentContainer.detach(), e.content && e.content.detach(), n.parsed || (n = e.parseEl(e.index));
var o = n.type;
if (i('BeforeChange', [e.currItem ? e.currItem.type : '', o]), e.currItem = n, !e.currTemplate[o]) {
var s = e.st[o] ? e.st[o].markup : !1;
i('FirstMarkupParse', s), s ? e.currTemplate[o] = t(s) : e.currTemplate[o] = !0
};
v && v !== n.type && e.container.removeClass('mfp-' + v + '-holder');
var r = e['get' + o.charAt(0).toUpperCase() + o.slice(1)](n, e.currTemplate[o]);
e.appendContent(r, o), n.preloaded = !0, i(z, n), v = n.type, e.container.prepend(e.contentContainer), i('AfterChange')
},
appendContent: function(t, o) {
e.content = t, t ? e.st.showCloseBtn && e.st.closeBtnInside && e.currTemplate[o] === !0 ? e.content.find('.mfp-close').length || e.content.append(D()) : e.content = t : e.content = '', i(F), e.container.addClass('mfp-' + o + '-holder'), e.contentContainer.append(e.content)
},
parseEl: function(o) {
var a, n = e.items[o];
if (n.tagName ? n = {
el: t(n)
} : (a = n.type, n = {
data: n,
src: n.src
}), n.el) {
for (var r = e.types, s = 0; s < r.length; s++)
if (n.el.hasClass('mfp-' + r[s])) {
a = r[s];
break
};
n.src = n.el.attr('data-mfp-src'), n.src || (n.src = n.el.attr('href'))
};
return n.type = a || e.st.type || 'inline', n.index = o, n.parsed = !0, e.items[o] = n, i('ElementParse', n), e.items[o]
},
addGroup: function(t, i) {
var n = function(o) {
o.mfpEl = this, e.z$(o, t, i)
};
i || (i = {});
var o = 'click.magnificPopup';
i.mainEl = t, i.items ? (i.isObj = !0, t.off(o).on(o, n)) : (i.isObj = !1, i.delegate ? t.off(o).on(o, i.delegate, n) : (i.items = t, t.off(o).on(o, n)))
},
z$: function(i, o, n) {
var r = void 0 !== n.midClick ? n.midClick : t.magnificPopup.defaults.midClick;
if (r || !(2 === i.which || i.ctrlKey || i.metaKey || i.altKey || i.shiftKey)) {
var s = void 0 !== n.disableOn ? n.disableOn : t.magnificPopup.defaults.disableOn;
if (s)
if (t.isFunction(s)) {
if (!s.call(e)) return !0
} else if (a.width() < s) return !0;
i.type && (i.preventDefault(), e.isOpen && i.stopPropagation()), n.el = t(i.mfpEl), n.delegate && (n.items = o.find(n.delegate)), e.open(n)
}
},
updateStatus: function(t, o) {
if (e.preloader) {
A !== t && e.container.removeClass('mfp-s-' + A), o || 'loading' !== t || (o = e.st.tLoading);
var n = {
status: t,
text: o
};
i('UpdateStatus', n), t = n.status, o = n.text, e.preloader.html(o), e.preloader.find('a').on('click', function(t) {
t.stopImmediatePropagation()
}), e.container.addClass('mfp-s-' + t), A = t
}
},
nt$: function(i) {
if (!t(i).hasClass(k)) {
var n = e.st.closeOnContentClick,
o = e.st.closeOnBgClick;
if (n && o) return !0;
if (!e.content || t(i).hasClass('mfp-close') || e.preloader && i === e.preloader[0]) return !0;
if (i === e.content[0] || t.contains(e.content[0], i)) {
if (n) return !0
} else if (o && t.contains(document, i)) return !0;
return !1
}
},
D$: function(t) {
e.bgOverlay.addClass(t), e.wrap.addClass(t)
},
et$: function(t) {
this.bgOverlay.removeClass(t), e.wrap.removeClass(t)
},
it$: function(t) {
return (e.isIE7 ? s.height() : document.body.scrollHeight) > (t || a.height())
},
T$: function() {
(e.st.focus ? e.content.find(e.st.focus).eq(0) : e.wrap).focus()
},
rt$: function(i) {
return i.target === e.wrap[0] || t.contains(e.wrap[0], i.target) ? void 0 : (e.T$(), !1)
},
S$: function(e, o, s) {
var r;
s.data && (o = t.extend(s.data, o)), i(S, [e, o, s]), t.each(o, function(i, o) {
if (void 0 === o || o === !1) return !0;
if (r = i.split('_'), r.length > 1) {
var s = e.find(n + '-' + r[0]);
if (s.length > 0) {
var a = r[1];
'replaceWith' === a ? s[0] !== o[0] && s.replaceWith(o) : 'img' === a ? s.is('img') ? s.attr('src', o) : s.replaceWith(t('').attr('src', o).attr('class', s.attr('class'))) : s.attr(r[1], o)
}
} else e.find(n + '-' + i).html(o)
})
},
ot$: function() {
if (void 0 === e.scrollbarSize) {
var t = document.createElement('div');
t.style.cssText = 'width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;', document.body.appendChild(t), e.scrollbarSize = t.offsetWidth - t.clientWidth, document.body.removeChild(t)
};
return e.scrollbarSize
}
}, t.magnificPopup = {
instance: null,
proto: g.prototype,
modules: [],
open: function(e, i) {
return P(), e = e ? t.extend(!0, {}, e) : {}, e.isObj = !0, e.index = i || 0, this.instance.open(e)
},
close: function() {
return t.magnificPopup.instance && t.magnificPopup.instance.close()
},
registerModule: function(e, i) {
i.options && (t.magnificPopup.defaults[e] = i.options), t.extend(this.proto, i.proto), this.modules.push(e)
},
defaults: {
disableOn: 0,
key: null,
midClick: !1,
mainClass: '',
preloader: !0,
focus: '',
closeOnContentClick: !1,
closeOnBgClick: !0,
closeBtnInside: !0,
showCloseBtn: !0,
enableEscapeKey: !0,
modal: !1,
alignTop: !1,
removalDelay: 0,
prependTo: null,
fixedContentPos: 'auto',
fixedBgPos: 'auto',
overflowY: 'auto',
closeMarkup: '',
tClose: 'Close (Esc)',
tLoading: 'Loading...',
autoFocusLast: !0
}
}, t.fn.magnificPopup = function(i) {
P();
var o = t(this);
if ('string' == typeof i)
if ('open' === i) {
var n, s = E ? o.data('magnificPopup') : o[0].magnificPopup,
r = parseInt(arguments[1], 10) || 0;
s.items ? n = s.items[r] : (n = o, s.delegate && (n = n.find(s.delegate)), n = n.eq(r)), e.z$({
mfpEl: n
}, o, s)
} else e.isOpen && e[i].apply(e, Array.prototype.slice.call(arguments, 1));
else i = t.extend(!0, {}, i), E ? o.data('magnificPopup', i) : o[0].magnificPopup = i, e.addGroup(o, i);
return o
};
var p, w, y, x = 'inline',
N = function() {
y && (w.after(y.addClass(p)).detach(), y = null)
};
t.magnificPopup.registerModule(x, {
options: {
hiddenClass: 'hide',
markup: '',
tNotFound: 'Content not found'
},
proto: {
initInline: function() {
e.types.push(x), o(d + '.' + x, function() {
N()
})
},
getInline: function(i, o) {
if (N(), i.src) {
var r = e.st.inline,
n = t(i.src);
if (n.length) {
var s = n[0].parentNode;
s && s.tagName && (w || (p = r.hiddenClass, w = u(p), p = 'mfp-' + p), y = n.after(w).detach().removeClass(p)), e.updateStatus('ready')
} else e.updateStatus('error', r.tNotFound), n = t('');
return i.inlineElement = n, n
};
return e.updateStatus('ready'), e.S$(o, {}, i), o
}
}
});
var h, f = 'ajax',
M = function() {
h && t(document.body).removeClass(h)
},
W = function() {
M(), e.req && e.req.abort()
};
t.magnificPopup.registerModule(f, {
options: {
settings: null,
cursor: 'mfp-ajax-cur',
tError: '
The content could not be loaded.'
},
proto: {
initAjax: function() {
e.types.push(f), h = e.st.ajax.cursor, o(d + '.' + f, W), o('BeforeChange.' + f, W)
},
getAjax: function(o) {
h && t(document.body).addClass(h), e.updateStatus('loading');
var n = t.extend({
url: o.src,
success: function(n, s, r) {
var a = {
data: n,
xhr: r
};
i('ParseAjax', a), e.appendContent(t(a.data), f), o.finished = !0, M(), e.T$(), setTimeout(function() {
e.wrap.addClass(m)
}, 16), e.updateStatus('ready'), i('AjaxContentAdded')
},
error: function() {
M(), o.finished = o.loadError = !0, e.updateStatus('error', e.st.ajax.tError.replace('%url%', o.src))
}
}, e.st.ajax.settings);
return e.req = t.ajax(n), ''
}
}
});
var r, V = function(i) {
if (i.data && void 0 !== i.data.title) return i.data.title;
var o = e.st.image.titleSrc;
if (o) {
if (t.isFunction(o)) return o.call(e, i);
if (i.el) return i.el.attr(o) || ''
};
return ''
};
t.magnificPopup.registerModule('image', {
options: {
markup: '
',
cursor: 'mfp-zoom-out-cur',
titleSrc: 'title',
verticalFit: !0,
tError: '
The image could not be loaded.'
},
proto: {
initImage: function() {
var i = e.st.image,
s = '.image';
e.types.push('image'), o(b + s, function() {
'image' === e.currItem.type && i.cursor && t(document.body).addClass(i.cursor)
}), o(d + s, function() {
i.cursor && t(document.body).removeClass(i.cursor), a.off('resize' + n)
}), o('Resize' + s, e.resizeImage), e.isLowIE && o('AfterChange', e.resizeImage)
},
resizeImage: function() {
var t = e.currItem;
if (t && t.img && e.st.image.verticalFit) {
var i = 0;
e.isLowIE && (i = parseInt(t.img.css('padding-top'), 10) + parseInt(t.img.css('padding-bottom'), 10)), t.img.css('max-height', e.wH - i)
}
},
x$: function(t) {
t.img && (t.hasSize = !0, r && clearInterval(r), t.isCheckingImgSize = !1, i('ImageHasSize', t), t.imgHidden && (e.content && e.content.removeClass('mfp-loading'), t.imgHidden = !1))
},
findImageSize: function(t) {
var i = 0,
n = t.img[0],
o = function(s) {
r && clearInterval(r), r = setInterval(function() {
return n.naturalWidth > 0 ? void e.x$(t) : (i > 200 && clearInterval(r), i++, void(3 === i ? o(10) : 40 === i ? o(50) : 100 === i && o(500)))
}, s)
};
o(1)
},
getImage: function(o, n) {
var d = 0,
c = function() {
o && (o.img[0].complete ? (o.img.off('.mfploader'), o === e.currItem && (e.x$(o), e.updateStatus('ready')), o.hasSize = !0, o.loaded = !0, i('ImageLoadComplete')) : (d++, 200 > d ? setTimeout(c, 100) : u()))
},
u = function() {
o && (o.img.off('.mfploader'), o === e.currItem && (e.x$(o), e.updateStatus('error', l.tError.replace('%url%', o.src))), o.hasSize = !0, o.loaded = !0, o.loadError = !0)
},
l = e.st.image,
a = n.find('.mfp-img');
if (a.length) {
var s = document.createElement('img');
s.className = 'mfp-img', o.el && o.el.find('img').length && (s.alt = o.el.find('img').attr('alt')), o.img = t(s).on('load.mfploader', c).on('error.mfploader', u), s.src = o.src, a.is('img') && (o.img = o.img.clone()), s = o.img[0], s.naturalWidth > 0 ? o.hasSize = !0 : s.width || (o.hasSize = !1)
};
return e.S$(n, {
title: V(o),
img_replaceWith: o.img
}, o), e.resizeImage(), o.hasSize ? (r && clearInterval(r), o.loadError ? (n.addClass('mfp-loading'), e.updateStatus('error', l.tError.replace('%url%', o.src))) : (n.removeClass('mfp-loading'), e.updateStatus('ready')), n) : (e.updateStatus('loading'), o.loading = !0, o.hasSize || (o.imgHidden = !0, n.addClass('mfp-loading'), e.findImageSize(o)), n)
}
}
});
var I, Y = function() {
return void 0 === I && (I = void 0 !== document.createElement('p').style.MozTransform), I
};
t.magnificPopup.registerModule('zoom', {
options: {
enabled: !1,
easing: 'ease-in-out',
duration: 300,
opener: function(t) {
return t.is('img') ? t : t.find('img')
}
},
proto: {
initZoom: function() {
var n, r = e.st.zoom,
a = '.zoom';
if (r.enabled && e.supportsTransition) {
var s, t, u = r.duration,
c = function(t) {
var o = t.clone().removeAttr('style').removeAttr('class').addClass('mfp-animated-image'),
n = 'all ' + r.duration / 1e3 + 's ' + r.easing,
e = {
position: 'fixed',
zIndex: 9999,
left: 0,
top: 0,
'-webkit-backface-visibility': 'hidden'
},
i = 'transition';
return e['-webkit-' + i] = e['-moz-' + i] = e['-o-' + i] = e[i] = n, o.css(e), o
},
l = function() {
e.content.css('visibility', 'visible')
};
o('BuildControls' + a, function() {
if (e.C$()) {
if (clearTimeout(s), e.content.css('visibility', 'hidden'), n = e.G$(), !n) return void l();
t = c(n), t.css(e.b$()), e.wrap.append(t), s = setTimeout(function() {
t.css(e.b$(!0)), s = setTimeout(function() {
l(), setTimeout(function() {
t.remove(), n = t = null, i('ZoomAnimationEnded')
}, 16)
}, u)
}, 16)
}
}), o(R + a, function() {
if (e.C$()) {
if (clearTimeout(s), e.st.removalDelay = u, !n) {
if (n = e.G$(), !n) return;
t = c(n)
};
t.css(e.b$(!0)), e.wrap.append(t), e.content.css('visibility', 'hidden'), setTimeout(function() {
t.css(e.b$())
}, 16)
}
}), o(d + a, function() {
e.C$() && (l(), t && t.remove(), n = null)
})
}
},
C$: function() {
return 'image' === e.currItem.type
},
G$: function() {
return e.currItem.hasSize ? e.currItem.img : !1
},
b$: function(i) {
var o;
o = i ? e.currItem.img : e.st.zoom.opener(e.currItem.el || e.currItem);
var n = o.offset(),
r = parseInt(o.css('padding-top'), 10),
a = parseInt(o.css('padding-bottom'), 10);
n.top -= t(window).scrollTop() - r;
var s = {
width: o.width(),
height: (E ? o.innerHeight() : o[0].offsetHeight) - a - r
};
return Y() ? s['-moz-transform'] = s.transform = 'translate(' + n.left + 'px,' + n.top + 'px)' : (s.left = n.left, s.top = n.top), s
}
}
});
var c = 'iframe',
Q = '//about:blank',
C = function(t) {
if (e.currTemplate[c]) {
var i = e.currTemplate[c].find('iframe');
i.length && (t || (i[0].src = Q), e.isIE8 && i.css('display', t ? 'block' : 'none'))
}
};
t.magnificPopup.registerModule(c, {
options: {
markup: '
',
srcAction: 'iframe_src',
patterns: {
youtube: {
index: 'youtube.com',
id: 'v=',
src: '//www.youtube.com/embed/%id%?autoplay=1'
},
vimeo: {
index: 'vimeo.com/',
id: '/',
src: '//player.vimeo.com/video/%id%?autoplay=1'
},
gmaps: {
index: '//maps.google.',
src: '%id%&output=embed'
}
}
},
proto: {
initIframe: function() {
e.types.push(c), o('BeforeChange', function(t, e, i) {
e !== i && (e === c ? C() : i === c && C(!0))
}), o(d + '.' + c, function() {
C()
})
},
getIframe: function(i, o) {
var n = i.src,
s = e.st.iframe;
t.each(s.patterns, function() {
return n.indexOf(this.index) > -1 ? (this.id && (n = 'string' == typeof this.id ? n.substr(n.lastIndexOf(this.id) + this.id.length, n.length) : this.id.call(this, n)), n = this.src.replace('%id%', n), !1) : void 0
});
var r = {};
return s.srcAction && (r[s.srcAction] = n), e.S$(o, r, i), e.updateStatus('ready'), o
}
}
});
var O = function(t) {
var i = e.items.length;
return t > i - 1 ? t - i : 0 > t ? i + t : t
},
H = function(t, e, i) {
return t.replace(/%curr%/gi, e + 1).replace(/%total%/gi, i)
};
t.magnificPopup.registerModule('gallery', {
options: {
enabled: !1,
arrowMarkup: '
',
preload: [0, 2],
navigateByImgClick: !0,
arrows: !0,
tPrev: 'Previous (Left arrow key)',
tNext: 'Next (Right arrow key)',
tCounter: '%curr% of %total%'
},
proto: {
initGallery: function() {
var n = e.st.gallery,
i = '.mfp-gallery';
return e.direction = !0, n && n.enabled ? (l += ' mfp-gallery', o(b + i, function() {
n.navigateByImgClick && e.wrap.on('click' + i, '.mfp-img', function() {
return e.items.length > 1 ? (e.next(), !1) : void 0
}), s.on('keydown' + i, function(t) {
37 === t.keyCode ? e.prev() : 39 === t.keyCode && e.next()
})
}), o('UpdateStatus' + i, function(t, i) {
i.text && (i.text = H(i.text, e.currItem.index, e.items.length))
}), o(S + i, function(t, i, o, s) {
var r = e.items.length;
o.counter = r > 1 ? H(n.tCounter, s.index, r) : ''
}), o('BuildControls' + i, function() {
if (e.items.length > 1 && n.arrows && !e.arrowLeft) {
var s = n.arrowMarkup,
o = e.arrowLeft = t(s.replace(/%title%/gi, n.tPrev).replace(/%dir%/gi, 'left')).addClass(k),
i = e.arrowRight = t(s.replace(/%title%/gi, n.tNext).replace(/%dir%/gi, 'right')).addClass(k);
o.click(function() {
e.prev()
}), i.click(function() {
e.next()
}), e.container.append(o.add(i))
}
}), o(z + i, function() {
e.M$ && clearTimeout(e.M$), e.M$ = setTimeout(function() {
e.preloadNearbyImages(), e.M$ = null
}, 16)
}), void o(d + i, function() {
s.off(i), e.wrap.off('click' + i), e.arrowRight = e.arrowLeft = null
})) : !1
},
next: function() {
e.direction = !0, e.index = O(e.index + 1), e.updateItemHTML()
},
prev: function() {
e.direction = !1, e.index = O(e.index - 1), e.updateItemHTML()
},
goTo: function(t) {
e.direction = t >= e.index, e.index = t, e.updateItemHTML()
},
preloadNearbyImages: function() {
var t, o = e.st.gallery.preload,
n = Math.min(o[0], e.items.length),
i = Math.min(o[1], e.items.length);
for (t = 1; t <= (e.direction ? i : n); t++) e.K$(e.index + t);
for (t = 1; t <= (e.direction ? n : i); t++) e.K$(e.index - t)
},
K$: function(o) {
if (o = O(o), !e.items[o].preloaded) {
var n = e.items[o];
n.parsed || (n = e.parseEl(o)), i('LazyLoad', n), 'image' === n.type && (n.img = t('
').on('load.mfploader', function() {
n.hasSize = !0
}).on('error.mfploader', function() {
n.hasSize = !0, n.loadError = !0, i('LazyLoadError', n)
}).attr('src', n.src)), n.preloaded = !0
}
}
}
});
var B = 'retina';
t.magnificPopup.registerModule(B, {
options: {
replaceSrc: function(t) {
return t.src.replace(/\.\w+$/, function(t) {
return '@2x' + t
})
},
ratio: 1
},
proto: {
initRetina: function() {
if (window.devicePixelRatio > 1) {
var i = e.st.retina,
t = i.ratio;
t = isNaN(t) ? t() : t, t > 1 && (o('ImageHasSize.' + B, function(e, i) {
i.img.css({
'max-width': i.img[0].naturalWidth / t,
width: '100%'
})
}), o('ElementParse.' + B, function(e, o) {
o.src = i.replaceSrc(o, t)
}))
}
}
}
}), P()
});
! function(t) {
'function' == typeof define && define.amd ? define(['jquery'], t) : 'object' == typeof exports ? module.exports = t(require('jquery')) : t(jQuery)
}(function(t) {
'use strict';
function l(t, e, i) {
var o;
return function() {
var n = this,
s = arguments,
a = function() {
o = null, i || t.apply(n, s)
},
r = i && !o;
clearTimeout(o), o = setTimeout(a, e), r && t.apply(n, s)
}
};
function c(t) {
var e = ++d;
return String(null == t ? 'rmjs-' : t) + e
};
function r(t) {
var e = t.clone().css({
height: 'auto',
width: t.width(),
maxHeight: 'none',
overflow: 'hidden'
}).insertAfter(t),
n = e.outerHeight(),
i = parseInt(e.css({
maxHeight: ''
}).css('max-height').replace(/[^-\d\.]/g, ''), 10),
o = t.data('defaultHeight');
e.remove();
var s = i || t.data('collapsedHeight') || o;
t.data({
expandedHeight: n,
maxHeight: i,
collapsedHeight: s
}).css({
maxHeight: 'none'
})
};
function a(t) {
if (!n[t.selector]) {
var e = ' ';
t.embedCSS && '' !== t.blockCSS && (e += t.selector + ' + [data-readmore-toggle], ' + t.selector + '[data-readmore]{' + t.blockCSS + '}'), e += t.selector + '[data-readmore]{transition: height ' + t.speed + 'ms;overflow: hidden;}',
function(t, e) {
var i = t.createElement('style');
i.type = 'text/css', i.styleSheet ? i.styleSheet.cssText = e : i.appendChild(t.createTextNode(e)), t.getElementsByTagName('head')[0].appendChild(i)
}(document, e), n[t.selector] = !0
}
};
function o(o, n) {
this.element = o, this.options = t.extend({}, s, n), a(this.options), this.tt$ = s, this.bt$ = e, this.init(), window.addEventListener ? (window.addEventListener('load', i), window.addEventListener('resize', i)) : (window.attachEvent('load', i), window.attachEvent('resize', i))
};
var e = 'readmore',
s = {
speed: 100,
collapsedHeight: 200,
heightMargin: 16,
moreLink: '
Read More',
lessLink: '
Close',
embedCSS: !0,
blockCSS: 'display: block; width: 100%;',
startOpen: !1,
blockProcessed: function() {},
beforeToggle: function() {},
afterToggle: function() {}
},
n = {},
d = 0,
i = l(function() {
t('[data-readmore]').each(function() {
var e = t(this),
i = 'true' === e.attr('aria-expanded');
r(e), e.css({
height: e.data(i ? 'expandedHeight' : 'collapsedHeight')
})
})
}, 100);
o.prototype = {
init: function() {
var e = t(this.element);
e.data({
defaultHeight: this.options.collapsedHeight,
heightMargin: this.options.heightMargin
}), r(e);
var o = e.data('collapsedHeight'),
s = e.data('heightMargin');
if (e.outerHeight(!0) <= o + s) return this.options.blockProcessed && 'function' == typeof this.options.blockProcessed && this.options.blockProcessed(e, !1), !0;
var i = e.attr('id') || c(),
n = this.options.startOpen ? this.options.lessLink : this.options.moreLink;
e.attr({
'data-readmore': '',
'aria-expanded': this.options.startOpen,
id: i
}), e.after(t(n).on('click', function(t) {
return function(i) {
t.toggle(this, e[0], i)
}
}(this)).attr({
'data-readmore-toggle': i,
'aria-controls': i
})), this.options.startOpen || e.css({
height: o
}), this.options.blockProcessed && 'function' == typeof this.options.blockProcessed && this.options.blockProcessed(e, !0)
},
toggle: function(e, i, o) {
o && o.preventDefault(), e || (e = t('[aria-controls="' + this.element.id + '"]')[0]), i || (i = this.element);
var n = t(i),
a = '',
r = '',
s = !1,
l = n.data('collapsedHeight');
n.height() <= l ? (a = n.data('expandedHeight') + 'px', r = 'lessLink', s = !0) : (a = l, r = 'moreLink'), this.options.beforeToggle && 'function' == typeof this.options.beforeToggle && this.options.beforeToggle(e, n, !s), n.css({
height: a
}), n.on('transitionend', function(i) {
return function() {
i.options.afterToggle && 'function' == typeof i.options.afterToggle && i.options.afterToggle(e, n, s), t(this).attr({
'aria-expanded': s
}).off('transitionend')
}
}(this)), t(e).replaceWith(t(this.options[r]).on('click', function(t) {
return function(e) {
t.toggle(this, i, e)
}
}(this)).attr({
'data-readmore-toggle': n.attr('id'),
'aria-controls': n.attr('id')
}))
},
destroy: function() {
t(this.element).each(function() {
var e = t(this);
e.attr({
'data-readmore': null,
'aria-expanded': null
}).css({
maxHeight: '',
height: ''
}).next('[data-readmore-toggle]').remove(), e.removeData()
})
}
}, t.fn.readmore = function(i) {
var s = arguments,
n = this.selector;
return i = i || {}, 'object' == typeof i ? this.each(function() {
if (t.data(this, 'plugin_' + e)) {
var s = t.data(this, 'plugin_' + e);
s.destroy.apply(s)
};
i.selector = n, t.data(this, 'plugin_' + e, new o(this, i))
}) : 'string' == typeof i && '_' !== i[0] && 'init' !== i ? this.each(function() {
var n = t.data(this, 'plugin_' + e);
n instanceof o && 'function' == typeof n[i] && n[i].apply(n, Array.prototype.slice.call(s, 1))
}) : void 0
}
});
(function(t) {
t.fn.columnize = function(e) {
var i = {
width: 400,
columns: !1,
buildOnce: !1,
overflow: !1,
doneFunc: function() {},
target: !1,
ignoreImageLoading: !0,
columnFloat: 'left',
lastNeverTallest: !1,
accuracy: !1,
manualBreaks: !1,
cssClassPrefix: ''
};
e = t.extend(i, e);
if (typeof(e.width) == 'string') {
e.width = parseInt(e.width, 10);
if (isNaN(e.width)) {
e.width = i.width
}
};
return this.each(function() {
var o = e.target ? t(e.target) : t(this),
h = t(this).height(),
s = t('
'),
g = 0,
v = !1,
c = e.manualBreaks,
d = i.cssClassPrefix;
if (typeof(e.cssClassPrefix) == 'string') {
d = e.cssClassPrefix
};
var u = 0;
s.append(t(this).contents().clone(!0));
if (!e.ignoreImageLoading && !e.target) {
if (!o.data('imageLoaded')) {
o.data('imageLoaded', !0);
if (t(this).find('img').length > 0) {
var f = function(t, i) {
return function() {
if (!t.data('firstImageLoaded')) {
t.data('firstImageLoaded', 'true');
t.empty().append(i.children().clone(!0));
t.columnize(e)
}
}
}(t(this), s);
t(this).find('img').one('load', f);
t(this).find('img').one('abort', f);
return
}
}
};
o.empty();
p();
if (!e.buildOnce) {
t(window).resize(function() {
if (!e.buildOnce) {
if (o.data('timeout')) {
clearTimeout(o.data('timeout'))
};
o.data('timeout', setTimeout(p, 200))
}
})
};
function n(t, e) {
var i = e ? '.' : '';
if (d.length) {
return i + d + '-' + t
};
return i + t
};
function a(i, o, s, r) {
while ((c || s.height() < r) && o[0].childNodes.length) {
var p = o[0].childNodes[0];
if (t(p).find(n('columnbreak', !0)).length) {
return
};
if (t(p).hasClass(n('columnbreak'))) {
return
};
i.append(p)
};
if (i[0].childNodes.length === 0) return;
var m = i[0].childNodes,
g = m[m.length - 1];
i[0].removeChild(g);
var l = t(g);
if (l[0].nodeType == 3) {
var a = l[0].nodeValue,
u = e.width / 18;
if (e.accuracy) u = e.accuracy;
var h, d = null;
while (s.height() < r && a.length) {
var f = a.indexOf(' ', u);
if (f != -1) {
h = a.substring(0, a.indexOf(' ', u))
} else {
h = a
};
d = document.createTextNode(h);
i.append(d);
if (a.length > u && f != -1) {
a = a.substring(f)
} else {
a = ''
}
};
if (s.height() >= r && d !== null) {
i[0].removeChild(d);
a = d.nodeValue + a
};
if (a.length) {
l[0].nodeValue = a
} else {
return !1
}
};
if (o.contents().length) {
o.prepend(l)
} else {
o.append(l)
};
return l[0].nodeType == 3
};
function l(t, e, i, o) {
if (t.contents(':last').find(n('columnbreak', !0)).length) {
return
};
if (t.contents(':last').hasClass(n('columnbreak'))) {
return
};
if (e.contents().length) {
var s = e.contents(':first');
if (s.get(0).nodeType != 1) return;
var r = s.clone(!0);
if (s.hasClass(n('columnbreak'))) {
t.append(r);
s.remove()
} else if (c) {
t.append(r);
s.remove()
} else if (r.get(0).nodeType == 1 && !r.hasClass(n('dontend'))) {
t.append(r);
if (r.is('img') && i.height() < o + 20) {
s.remove()
} else if (!s.hasClass(n('dontsplit')) && i.height() < o + 20) {
s.remove()
} else if (r.is('img') || s.hasClass(n('dontsplit'))) {
r.remove()
} else {
r.empty();
if (!a(r, s, i, o)) {
s.addClass(n('split'));
if (s.children().length) {
l(r, s, i, o)
}
} else {
s.addClass(n('split'))
};
if (r.get(0).childNodes.length === 0) {
r.remove()
}
}
}
}
};
function m() {
if (o.data('columnized') && o.children().length == 1) {
return
};
o.data('columnized', !0);
o.data('columnizing', !0);
o.empty();
o.append(t('
'));
p$ = o.children().eq(o.children().length - 1);
u$ = s.clone(!0);
if (e.overflow) {
targetHeight = e.overflow.height;
a(p$, u$, p$, targetHeight);
if (!u$.contents().find(':first-child').hasClass(n('dontend'))) {
l(p$, u$, p$, targetHeight)
}
while (p$.contents(':last').length && r(p$.contents(':last').get(0))) {
var u = p$.contents(':last');
u.remove();
u$.prepend(u)
};
var p = '',
c = document.createElement('DIV');
while (u$[0].childNodes.length > 0) {
var i = u$[0].childNodes[0];
if (i.attributes) {
for (var d = 0; d < i.attributes.length; d++) {
if (i.attributes[d].nodeName.indexOf('jQuery') === 0) {
i.removeAttribute(i.attributes[d].nodeName)
}
}
};
c.innerHTML = '';
c.appendChild(u$[0].childNodes[0]);
p += c.innerHTML
};
var f = t(e.overflow.id)[0];
f.innerHTML = p
} else {
p$.append(u$)
};
o.data('columnizing', !1);
if (e.overflow && e.overflow.doneFunc) {
e.overflow.doneFunc()
}
};
function r(e) {
if (e.nodeType == 3) {
if (/^\s+$/.test(e.nodeValue)) {
if (!e.previousSibling) return !1;
return r(e.previousSibling)
};
return !1
};
if (e.nodeType != 1) return !1;
if (t(e).hasClass(n('dontend'))) return !0;
if (e.childNodes.length === 0) return !1;
return r(e.childNodes[e.childNodes.length - 1])
};
function p() {
u = 0;
if (g == o.width()) return;
g = o.width();
var f = Math.round(o.width() / e.width),
C = e.width,
B = e.height;
if (e.columns) f = e.columns;
if (c) {
f = s.find(n('columnbreak', !0)).length + 1;
C = !1
};
if (f <= 1) {
return m()
};
if (o.data('columnizing')) return;
o.data('columnized', !0);
o.data('columnizing', !0);
o.empty();
o.append(t('
'));
i = o.children(':last');
i.append(s.clone());
h = i.height();
o.empty();
var v = h / f,
R = !0,
w = 3,
x = !1;
if (e.overflow) {
w = 1;
v = e.overflow.height
} else if (B && C) {
w = 1;
v = B;
x = !0
};
for (var S = 0; S < w && S < 20; S++) {
o.empty();
var p, b, i, E;
try {
p = s.clone(!0)
} catch (y) {
p = s.clone()
};
p.css('visibility', 'hidden');
for (var d = 0; d < f; d++) {
b = (d === 0) ? n('first') : '';
b += ' ' + n('column');
b = (d == f - 1) ? (n('last') + ' ' + b) : b;
o.append(t('
'))
};
d = 0;
while (d < f - (e.overflow ? 0 : 1) || x && p.contents().length) {
if (o.children().length <= d) {
o.append(t('
'))
};
i = o.children().eq(d);
if (x) {
i.width(C + 'px')
};
a(i, p, i, v);
l(i, p, i, v);
while (i.contents(':last').length && r(i.contents(':last').get(0))) {
E = i.contents(':last');
E.remove();
p.prepend(E)
};
d++;
if (i.contents().length === 0 && p.contents().length) {
i.append(p.contents(':first'))
} else if (d == f - (e.overflow ? 0 : 1) && !e.overflow) {
if (p.find(n('columnbreak', !0)).length) {
f++
}
}
};
if (e.overflow && !x) {
var H = !1;
var N = (document.all) && (navigator.appVersion.indexOf('MSIE 7.') != -1);
if (H || N) {
var M = '',
D = document.createElement('DIV');
while (p[0].childNodes.length > 0) {
var T = p[0].childNodes[0];
for (d = 0; d < T.attributes.length; d++) {
if (T.attributes[d].nodeName.indexOf('jQuery') === 0) {
T.removeAttribute(T.attributes[d].nodeName)
}
};
D.innerHTML = '';
D.appendChild(p[0].childNodes[0]);
M += D.innerHTML
};
var W = t(e.overflow.id)[0];
W.innerHTML = M
} else {
t(e.overflow.id).empty().append(p.contents().clone(!0))
}
} else if (!x) {
i = o.children().eq(o.children().length - 1);
p.contents().each(function() {
i.append(t(this))
});
var z = i.height(),
j = z - v,
k = 0,
I = 10000000,
O = 0,
P = !1,
L = 0;
o.children().each(function(t) {
return function(e) {
var o = t.children().eq(e),
s = o.children(':last').find(n('columnbreak', !0)).length;
if (!s) {
var i = o.height();
P = !1;
k += i;
if (i > O) {
O = i;
P = !0
};
if (i < I) I = i;
L++
}
}
}(o));
var A = k / L;
if (k === 0) {
S = w
} else if (e.lastNeverTallest && P) {
u += 30;
v = v + 30;
if (S == w - 1) w++
} else if (O - I > 30) {
v = A + 30
} else if (Math.abs(A - v) > 20) {
v = A
} else {
S = w
}
} else {
o.children().each(function(t) {
i = o.children().eq(t);
i.width(C + 'px');
if (t === 0) {
i.addClass(n('first'))
} else if (t == o.children().length - 1) {
i.addClass(n('last'))
} else {
i.removeClass(n('first'));
i.removeClass(n('last'))
}
});
o.width(o.children().length * C + 'px')
};
o.append(t('
'))
};
o.find(n('column', !0)).find(':first' + n('removeiffirst', !0)).remove();
o.find(n('column', !0)).find(':last' + n('removeiflast', !0)).remove();
o.data('columnizing', !1);
if (e.overflow) {
e.overflow.doneFunc()
};
e.doneFunc()
}
})
}
})(jQuery);
! function(t, e) {
'use strict';
'function' == typeof define && define.amd ? define(['exports'], e) : e('object' == typeof exports ? exports : t)
}(this, function(t) {
'use strict';
function o() {
return 'clip-path-' + Math.random().toString(36).substring(7)
};
function s(t, e) {
e = e.replace(/px|%|em/g, '');
var r = t.getAttribute('data-clip-path-id');
if (r) document.querySelector('#' + r + ' > polygon').setAttribute('points', e);
else {
var n = o(),
i = document.createElementNS('https://www.w3.org/2000/svg', 'svg');
i.setAttribute('width', '0'), i.setAttribute('height', '0'), i.setAttributeNS('https://www.w3.org/2000/xmlns/', 'xmlns:xlink', 'https://www.w3.org/1999/xlink');
var s = document.createElementNS('https://www.w3.org/2000/svg', 'clipPath');
s.setAttribute('id', n);
var a = document.createElementNS('https://www.w3.org/2000/svg', 'polygon');
a.setAttribute('points', e), s.appendChild(a), i.appendChild(s), document.body.appendChild(i), t.setAttribute('data-clip-path-id', n), setTimeout(function() {
t.style.clipPath = 'url(#' + n + ')'
}, 0)
}
};
function i(t, e, i) {
i = void 0 !== i ? i : n, void 0 !== t.style.webkitClipPath ? t.style.webkitClipPath = 'polygon(' + e + ')' : i ? t.style.clipPath = 'polygon(' + e + ')' : s(t, e)
};
function e(t, e, o) {
if (!t) return console.error('Missing selector'), !1;
var n = document.querySelectorAll(t || '');
Array.prototype.forEach.call(n, function(t) {
(e = e || t.getAttribute('data-clip')) ? i(t, e, o): console.error('Missing clip-path parameters. Please check ClipPath() arguments or data-clip attribute.', t)
})
};
var n = function() {
var t = document.createElement('div');
return t.style.clipPath = 'polygon(0 0, 0 0, 0 0, 0 0)', 'polygon(0 0, 0 0, 0 0, 0 0)' === t.style.clipPath
}();
e.applyClipPath = i, 'undefined' != typeof jQuery && function(t, e) {
t.fn.ClipPath = function(i) {
return i === Object(i) && i.path && (i = i.path), this.each(function() {
e.applyClipPath(this, t(this).attr('data-clip') || i)
})
}
}(jQuery, e), t.ClipPath = e
});
! function(t, e, i, o) {
function a(e, i, o) {
this.element = t(e), this.options = t.extend({}, o, i), this.tt$ = o, this.ft$()
};
var n = 'fitFrame',
r = 'plugin_' + n,
s = 'resize',
l = 'wrap';
a.prototype = {
update: function() {
this.options.mode === s ? this.lt$() : this.dt$()
},
wrap: function(e) {
var o = 100 * this.F$(e) + '%',
i = t('
').addClass(this.options.wrapperCssClass).css('padding-bottom', o);
return e.wrap(i).parent()
},
resize: function(t) {
return this.Q$(t), this.U$(t, this.element.width(), this.element.height(), this.options.fitHeight), t
},
destroy: function() {
var e = this;
e.options.mode === s ? (this.element.find('iframe.' + this.options.iframeCssClass).each(function() {
var i = t(this).data(n);
t(this).removeClass(e.options.iframeCssClass).width(i.width).height(i.height).data(n, null)
}), this.at$()) : this.element.find('.' + this.options.wrapperCssClass).children().unwrap(), this.element.data(r, null)
},
ft$: function() {
this.options.fitHeight && (this.options.mode = s), this.options.mode === s && this.st$(), this.update()
},
dt$: function() {
var e = this,
i = this.element.find('iframe').filter(function() {
return !t(this).closest('.' + e.options.wrapperCssClass).length
});
i.each(function() {
e.wrap(t(this))
})
},
lt$: function() {
var e = this;
t('iframe').not(this.options.iframeCssClass).each(function() {
e.Q$(t(this))
}), this.q$()
},
Q$: function(t) {
t.data(n, {
ratio: this.F$(t),
width: t.width(),
height: t.height()
}).addClass(this.options.iframeCssClass)
},
q$: function() {
var n = this,
o = this.options.containerWidth.call(this),
i = this.options.containerHeight.call(this),
e = this.options.fitHeight;
this.element.find('iframe.' + this.options.iframeCssClass).each(function() {
n.U$(t(this), o, i, e)
})
},
U$: function(t, e, i, o) {
var s = t.data(n).ratio,
r = e * s;
o && r > i ? t.height(i).width(i / s) : t.height(e * s).width('100%')
},
F$: function(t) {
var i = t.attr('width'),
e = t.attr('height');
return (e / i).toPrecision(4)
},
st$: function() {
var i, o = this;
t(e).on('resize.' + n, function() {
clearTimeout(i), i = setTimeout(function() {
o.q$()
}, 100)
})
},
at$: function() {
t(e).off('.' + n)
}
}, t.fn[n] = function(e) {
var i, s = arguments;
return this.each(function() {
var o = t.data(this, r);
if (o) {
if ('string' == typeof e && '_' !== e[0]) {
var l = o[e];
'function' == typeof l ? i = l.apply(o, Array.prototype.slice.call(s, 1)) : t.error('Public method \'' + e + '\' does not exist on jQuery.' + n)
}
} else t.data(this, r, new a(this, e, t.fn[n].defaults))
}), i !== o ? i : this
}, t.fn[n].defaults = {
wrapperCssClass: 'fitframe-wrap',
iframeCssClass: 'fitframe',
mode: l,
fitHeight: !1,
containerHeight: function() {
return this.element.height()
},
containerWidth: function() {
return this.element.width()
}
}
}(jQuery, window, document);
function fixleft(t, e) {
var o = jQuery(window).width(),
n = jQuery(t).width(),
i = (o - n);
jQuery(e).each(function() {
jQuery(this).css({
'padding-left': (i / 2) + 'px'
})
})
};
function fixright(t, e) {
var o = jQuery(window).width(),
n = jQuery(t).width(),
i = (o - n);
jQuery(e).each(function() {
jQuery(this).css({
'padding-right': (i / 2) + 'px'
})
})
};
function parentheight(t, e) {
var i = jQuery(t).height();
jQuery(e).each(function() {
jQuery(this).css({
'height': 'auto'
});
jQuery(this).css({
'height': i + 'px'
})
})
};
function sortheader() {
var t = $(window).width();
if (t < 1025) {
$('.main-navbar-left .secondary-navigation').appendTo('.utility-bar-left')
$('.store-controls').appendTo('.utility-bar-right')
} else {
$('.utility-bar-left .secondary-navigation').insertBefore('.main-navbar-left .main-nav')
$('.store-controls').insertBefore('.navbar-right .main-nav')
}
};
function highlightHeight(t, e, stacked = true) {
var i = jQuery(t).height();
jQuery(e).each(function() {
console.log($( window ).width());
if($( window ).width() < 768) {
jQuery(this).css({
'min-height': 'auto'
});
}else{
jQuery(this).css({
'min-height': stacked ? (i - 8) / 2 + 'px' : (i - 8) + 'px'
})
}
})
};
jQuery(function() {
sortheader();
if($( window ).width() > 1920) {
highlightHeight('.highlight-news .thumbnail.highlight', '.highlight-news .thumbnail.standard')
}else{
jQuery('.highlight-news .thumbnail.standard').each(function() {
jQuery(this).css({
'min-height': 'auto'
});
})
}
highlightHeight('.highlight-news .highlight-news-stacked', '.highlight-news .thumbnail.highlight', false);
fixright('.container', '.fixright');
fixleft('.container', '.fixleft')
});
jQuery(window).resize(function() {
fixright('.container', '.fixright');
fixleft('.container', '.fixleft');
if($( window ).width() > 1920) {
highlightHeight('.highlight-news .thumbnail.highlight', '.highlight-news .thumbnail.standard')
}else{
jQuery('.highlight-news .thumbnail.standard').each(function() {
jQuery(this).css({
'min-height': 'auto'
});
})
}
highlightHeight('.highlight-news .highlight-news-stacked', '.highlight-news .thumbnail.highlight', false);
});
$(window).scroll(function() {
var t = $(window).scrollTop(),
e = $('.main-nav'),
i = e.offset();
if (t >= 58) {
$('.site-header').addClass('scrolled-menu');
$('body').addClass('scrolled-menu-body')
} else {
$('.site-header').removeClass('scrolled-menu');
$('body').removeClass('scrolled-menu-body')
}
});
function sidebarHeight(t) {
var i = $(window).height(),
r = $('.site-header').height(),
d = $('.breaking-news').height(),
l = $('.site-footer').outerHeight(),
a = $(window).scrollTop(),
n = $('.site-footer').offset().top,
o = i - ((n - 0) - a),
e = i - r,
s = $('.site-footer');
if (s.is(':in-viewport')) {
e = e - o
};
$(t).css('height', e + 'px')
};
function sidebarPosition(t) {
var o = $(window).height(),
e = $('.site-header').height(),
s = $('.site-footer').outerHeight(),
i = $('.breaking-news').height(),
n = o - e - i;
$(t).css('padding-top', e + 'px')
};
$(document).ready(function() {
$('.ie .section-title').ClipPath({
path: '0% 0%, 80% 0, 100% 100%, 0% 100%'
});
$('.slider').slick({
lazyLoad: 'progressive',
dots: !0,
fade: !0,
autoplay: !0,
autoplaySpeed: 3000,
adaptiveHeight: !0
});
$('.breaking-news-content-slide').slick({
dots: !1,
fade: !0,
arrows: !1,
autoplay: !0,
autoplaySpeed: 2000,
accessibility: !1
});
$('.match-report-slider').slick({
lazyLoad: 'ondemand',
dots: !1,
infinite: !1,
speed: 300,
slidesToShow: 4,
slidesToScroll: 4,
responsive: [{
breakpoint: 1200,
settings: {
slidesToShow: 4,
slidesToScroll: 4,
infinite: !0,
dots: !0
}
}, {
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 3,
infinite: !0,
dots: !0
}
}, {
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
}, {
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}]
});
$('.shop-carousel').slick({
lazyLoad: 'progressive',
dots: !0,
infinite: !1,
speed: 300,
slidesToShow: 4,
slidesToScroll: 1,
responsive: [{
breakpoint: 1400,
settings: {
slidesToShow: 4,
slidesToScroll: 4,
infinite: !0,
dots: !0
}
}, {
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 3,
infinite: !0,
dots: !0
}
}, {
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2
}
}, {
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}]
});
$('.thumbnail-gallery-image').magnificPopup({
type: 'image',
tLoading: '
Loading…',
gallery: {
enabled: !0,
},
closeOnBgClick: !0
});
$('.gallery-carousel').slick({
lazyLoad: 'progressive',
dots: !0,
infinite: !1,
speed: 300,
slidesToShow: 4,
slidesToScroll: 4,
responsive: [{
breakpoint: 1200,
settings: {
slidesToShow: 3,
slidesToScroll: 3,
slidesToScroll: 3,
infinite: !0,
dots: !0
}
}, {
breakpoint: 1024,
settings: {
slidesToShow: 3,
slidesToScroll: 3,
slidesToScroll: 3,
infinite: !0,
dots: !0
}
}, {
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
slidesToScroll: 2,
}
}, {
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
slidesToScroll: 1,
}
}]
});
if ($('.ajax-popup-link').length) {
$('.ajax-popup-link').magnificPopup({
type: 'ajax',
closeOnBgClick: !0,
tLoading: '
Loading…',
})
};
if ($('.site-sidebar').length) {
sidebarHeight('.site-sidebar-inner');
sidebarPosition('.site-sidebar');
$('.site-sidebar-inner').mCustomScrollbar()
}
});
$(window).scroll(function() {
if ($('.site-sidebar').length) {
sidebarHeight('.site-sidebar-inner');
sidebarPosition('.site-sidebar')
}
});
$(window).resize(function() {
sortheader();
if ($('.site-sidebar').length) {
sidebarHeight('.site-sidebar-inner');
sidebarPosition('.site-sidebar')
}
});
function getTimeRemaining(t) {
var e = Date.parse(t) - Date.parse(new Date()),
n = Math.floor((e / 1000) % 60),
s = Math.floor((e / 1000 / 60) % 60),
o = Math.floor((e / (1000 * 60 * 60)) % 24),
i = Math.floor(e / (1000 * 60 * 60 * 24));
return {
'total': e,
'days': i,
'hours': o,
'minutes': s,
'seconds': n
}
};
function initializeClock(t, e) {
var i = document.getElementById(t),
r = i.querySelector('.days'),
l = i.querySelector('.hours'),
s = i.querySelector('.minutes'),
n = i.querySelector('.seconds');
function o() {
var t = getTimeRemaining(e);
r.innerHTML = t.days;
l.innerHTML = ('0' + t.hours).slice(-2);
s.innerHTML = ('0' + t.minutes).slice(-2);
n.innerHTML = ('0' + t.seconds).slice(-2);
if (t.total <= 0) {
clearInterval(a)
}
};
o();
var a = setInterval(o, 1000)
};
$(document).ready(function() {
if ($('#clockdiv').length) {
var t = new Date(Date.parse($('#clockdiv').data('endpoint')));
initializeClock('clockdiv', t)
}
});
(function(t) {
function o(o) {
var r = o.find('.marker'),
s = {
zoom: 16,
center: new google.maps.LatLng(0, 0),
mapTypeId: google.maps.MapTypeId.ROADMAP,
styles: [{
'featureType': 'water',
'stylers': [{
'visibility': 'on'
}, {
'color': '#b5cbe4'
}]
}, {
'featureType': 'landscape',
'stylers': [{
'color': '#efefef'
}]
}, {
'featureType': 'road.highway',
'elementType': 'geometry',
'stylers': [{
'color': '#83a5b0'
}]
}, {
'featureType': 'road.arterial',
'elementType': 'geometry',
'stylers': [{
'color': '#bdcdd3'
}]
}, {
'featureType': 'road.local',
'elementType': 'geometry',
'stylers': [{
'color': '#ffffff'
}]
}, {
'featureType': 'poi.park',
'elementType': 'geometry',
'stylers': [{
'color': '#e3eed3'
}]
}, {
'featureType': 'administrative',
'stylers': [{
'visibility': 'on'
}, {
'lightness': 33
}]
}, {
'featureType': 'road'
}, {
'featureType': 'poi.park',
'elementType': 'labels',
'stylers': [{
'visibility': 'on'
}, {
'lightness': 20
}]
}, {}, {
'featureType': 'road',
'stylers': [{
'lightness': 20
}]
}]
};
var n = new google.maps.Map(o[0], s);
n.markers = [];
r.each(function() {
i(t(this), n)
});
e(n);
return n
};
function s(t) {
return t.replace(/\\/g, '')
};
function i(t, e) {
var o = new google.maps.LatLng(t.attr('data-lat'), t.attr('data-lng'));
image = markericon;
icon = s(image);
var i = new google.maps.Marker({
position: o,
map: e,
icon: icon
});
e.markers.push(i);
if (t.html()) {
var n = new google.maps.InfoWindow({
content: t.html()
});
google.maps.event.addListener(i, 'click', function() {
n.open(e, i)
})
}
};
function e(e) {
var i = new google.maps.LatLngBounds();
t.each(e.markers, function(t, e) {
var o = new google.maps.LatLng(e.position.lat(), e.position.lng());
i.extend(o)
});
if (e.markers.length == 1) {
e.setCenter(i.getCenter());
e.setZoom(16)
} else {
e.fitBounds(i)
}
};
var n = null;
t(document).ready(function() {
if (t('.acf-map').length) {
t('.acf-map').each(function() {
n = o(t(this))
})
}
})
})(jQuery);
jQuery(document).ready(function(t) {
t('.piechart').each(function() {
var o = t(this).attr('id'),
r = t(this).data('win'),
s = t(this).data('draw'),
n = t(this).data('loss'),
e = t(this).data('title'),
i = document.getElementById(o).getContext('2d'),
a = new Chart(i, {
type: 'pie',
options: {
title: {
display: !0,
text: e,
fontFamily: 'bebas_neuebold',
fontStyle: 'normal',
fontSize: 24
},
legend: {
display: !0,
position: 'bottom',
}
},
data: {
labels: ['Wins', 'Draws', 'Losses'],
datasets: [{
label: e,
data: [r, s, n],
backgroundColor: ['rgba(0, 42, 93, 1)', 'rgba(200, 200, 200, 1)', 'rgba(102, 127, 157, 1)', ],
borderColor: ['rgba(255,99,132,1)', 'rgba(255, 255, 255, 1)', 'rgba(255, 206, 86, 1)', ],
borderWidth: 0
}]
},
})
});
if (t(window).width() > 768) {
if ($(".single-post .entry-content").html() !== '') {
t('.single-post .entry-content').columnize({
columns: 2
})
}
t('.single-players .entry-content').columnize({
columns: 2
});
t('.single-match_reports .entry-content').columnize({
columns: 2
});
if ($.trim($(".single-match_previews .entry-content").html()) !== '') {
t('.single-match_previews .entry-content').columnize({
columns: 2
})
}
};
t('.social-toggle').click(function() {
t('.site-sidebar').toggleClass('open animated slideInRight');
if (t('.site-sidebar').hasClass('open')) {
t(this).html('
X Close')
} else {
t(this).html('Social')
}
});
var i = t('.timeline-block'),
e = 0.8;
t('.timeline-content-inner').readmore({
collapsedHeight: 100
});
n(i, e);
t(window).on('scroll', function() {
(!window.requestAnimationFrame) ? setTimeout(function() {
o(i, e)
}, 100): window.requestAnimationFrame(function() {
o(i, e)
})
});
function n(e, i) {
e.each(function() {
(t(this).offset().top > t(window).scrollTop() + t(window).height() * i) && t(this).find('.timeline-img, .timeline-content').addClass('is-hidden')
})
};
function o(e, i) {
e.each(function() {
(t(this).offset().top <= t(window).scrollTop() + t(window).height() * i && t(this).find('.timeline-img').hasClass('is-hidden')) && t(this).find('.timeline-img, .timeline-content').removeClass('is-hidden').addClass('bounce-in')
})
}
});
$(function() {
$('[data-toggle="tooltip"]').tooltip()
});
$('.anchor-navigation a[href*="#"]').not('[href="#"]').not('[href="#0"]').click(function(t) {
if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
var e = $(this.hash);
e = e.length ? e : $('[name=' + this.hash.slice(1) + ']');
if (e.length) {
t.preventDefault();
$('html, body').animate({
scrollTop: e.offset().top - 50
}, 1000, function() {
var t = $(e);
t.focus();
if (t.is(':focus')) {
return !1
} else {
t.attr('tabindex', '-1');
t.focus()
}
})
}
}
});
JQTWEET = {
user: 'WorcsWarriors',
numTweets: 3,
appendTo: '#tweets-container',
id: '',
loop: 1,
instaid: [],
instaloop: 1,
instatimeago: new Date().getTime(),
loadTweets: function() {
$.ajax({
url: 'https://warriors.co.uk/wp-content/themes/warriors/inc/get_social.php',
type: 'post',
dataType: 'json',
data: {
q: JQTWEET.user,
count: JQTWEET.numTweets,
api: 'statuses/user_timeline',
id: JQTWEET.id,
instaid: JQTWEET.instaid,
instatimeago: JQTWEET.instatimeago,
},
success: function(t, e, i) {
console.log('Time Ago ' + JQTWEET.instatimeago);
//$('#tweets-container .instagram.social-thumbnail').remove();
$('#tweets-container').removeClass('loading');
$('#tweets-container .loading').addClass('hide');
var d = '',
a = '
',
g = t.twitter.length - 1;
JQTWEET.id = t.twitter[0].id;
JQTWEET.loop = JQTWEET.loop + 1;
//console.log(t.twitter);
for (var o = 0; o < t.twitter.length; o++) {
//console.log(t.twitter[o]);
if (JQTWEET.loop > 2) {
if (JQTWEET.id !== t.twitter[o].id) {
P$ = !0
} else {
P$ = !1
}
} else {
P$ = !0
};
if (P$ !== !1) {
console.log(t.twitter[o].created_at);
var u = Date.parse(t.twitter[o].created_at),
r = new Date(u),
m = r.getDate(),
w = r.getMonth() + 1,
b = r.getFullYear(),
c = r.getTime();
$(JQTWEET.appendTo).append(d.replace('TWEET_TEXT', t.twitter[o].full_text.replace(/<\/?[^>]+(>|$)/g, '').replace(/([\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2694-\u2697]|\uD83E[\uDD10-\uDD5D])/g, '')).replace(/USER/g, t.twitter[o].user.screen_name).replace('AGO', JQTWEET.timeAgo(t.twitter[o].created_at)).replace('TIME_PUB', c).replace('DELAY', o).replace(/ID/g, t.twitter[o].id_str).replace('TWEET_IMG', (t.twitter[o].entities.media && t.twitter[o].entities.media.length ? '
' : '')).replace('TWEET_GIF', (t.twitter[o].entities.media && t.twitter[o].entities.media.length && typeof t.twitter[o].extended_entities.media[0].video_info !== "undefined" && t.twitter[o].extended_entities.media[0].video_info ? '
' : '')))
}
};
JQTWEET.instaloop = JQTWEET.instaloop + 1;
if (t.insta) {
//console.log(t.insta);
for (var n = 0; n < t.insta.length; n++) {
//console.log(t.insta[n]);
if (JQTWEET.instaloop > 1) {
if (JQTWEET.instaid !== t.insta[n].id) {
A$ = !0
} else {
A$ = !1
}
} else {
A$ = !0
};
if (A$ !== !1) {
var p = t.insta[n].tag_names,
f = 'warriorsnews';
if (jQuery.inArray(f, p) !== -1) {
JQTWEET.instaid.push(t.insta[n].post_id);
var s = new Date(t.insta[n].created_date * 1000),
v = s.getDate(),
y = s.getMonth() + 1,
h = s.getFullYear(),
l = s.getTime();
//console.log(t.insta[n].type);
var carouselimages = '
';
jQuery.each(t.insta[n].images, function(index, item) {
carouselimages += '
';
});
carouselimages += '
';
$(JQTWEET.appendTo).append(a.replace('INSTA_TEXT', t.insta[n].content.rendered).replace(/ID/g, t.insta[n].id).replace('TIME_PUB', l).replace('INSTA_LINK', t.insta[n].link).replace('AGO', JQTWEET.timeAgo(s)).replace('INSTA_IMG', (t.insta[n].featured_image_url && t.insta[n].type !== 'carousel' ? '
' : '')).replace('INSTA_GIF', ( t.insta[n].videos ? '
' : '')).replace('INSTA_CAROUSEL', ( t.insta[n].type == 'carousel' && t.insta[n].images ? carouselimages : '')).replace('DELAY', o))
}
}
}
}
//console.log(JQTWEET.instaid);
//console.log(JQTWEET.id);
$(JQTWEET.appendTo).find('.social-thumbnail').sort(function(t, e) {
return e.getAttribute('data-published') - t.getAttribute('data-published')
}).prependTo(JQTWEET.appendTo)
$('.insta-carousel').slick({ infinite: true, arrows: false, dots: false, autoplay: true, autoplaySpeed: (1000 + $('.insta-carousel').data('delay')), });
}
})
},
timeAgo: function(t) {
var a = new Date(),
r = new Date(t);
if ((/msie|trident/i).test(navigator.userAgent)) {
r = Date.parse(t.replace(/( \+)/, ' UTC$1'))
};
var e = a - r,
s = 1000,
n = s * 60,
o = n * 60,
i = o * 24,
l = i * 7;
if (isNaN(e) || e < 0) {
return ''
};
if (e < s * 2) {
return 'right now'
};
if (e < n) {
return Math.floor(e / s) + ' seconds ago'
};
if (e < n * 2) {
return 'about 1 minute ago'
};
if (e < o) {
return Math.floor(e / n) + ' minutes ago'
};
if (e < o * 2) {
return 'about 1 hour ago'
};
if (e < i) {
return Math.floor(e / o) + ' hours ago'
};
if (e > i && e < i * 2) {
return 'yesterday'
};
if (e < i * 365) {
return Math.floor(e / i) + ' days ago'
} else {
return 'over a year ago'
}
},
ify: {
link: function(t) {
return t.replace(/\b(((https*\:\/\/)|www\.)[^"']+?)(([!?,.\)]+)?(\s|$))/g, function(t, e, i, o, n) {
var s = i.match(/w/) ? 'https://' : '';
return '
' + ((e.length > 25) ? e.substr(0, 24) + '...' : e) + '' + n
})
},
at: function(t) {
return t.replace(/\B[@ï¼ ]([a-zA-Z0-9_]{1,20})/g, function(t, e) {
return '
@' + e + ''
})
},
list: function(t) {
return t.replace(/\B[@ï¼ ]([a-zA-Z0-9_]{1,20}\/\w+)/g, function(t, e) {
return '
@' + e + ''
})
},
hash: function(t) {
return t.replace(/(^|\s+)#(\w+)/gi, function(t, e, i) {
return e + '
#' + i + ''
})
},
clean: function(t) {
return this.hash(this.at(this.list(this.link(t))))
}
}
};
$(document).ready(function() {
if ($('#tweets-container').length) {
$('.site-sidebar').removeClass('init');
JQTWEET.loadTweets();
setInterval(function() {
JQTWEET.loadTweets()
}, 30000)
}
});
$(document).ready(function() {});
(function() {
var t = /(trident|msie)/i.test(navigator.userAgent);
if (t && document.getElementById && window.addEventListener) {
window.addEventListener('hashchange', function() {
var e = location.hash.substring(1),
t;
if (!(/^[A-z0-9_-]+$/.test(e))) {
return
};
t = document.getElementById(e);
if (t) {
if (!(/^(?:a|select|input|button|textarea)$/i.test(t.tagName))) {
t.tabIndex = -1
};
t.focus()
}
}, !1)
}
})();
$(window).bind('load', function() {
$('.matchHeight').matchHeight({'property' : 'height'});
});
$(function($) {
$("img.lazy").Lazy({
onFinishedAll: function() {
$('.matchHeight').matchHeight({'property' : 'height'})
},
});
$("iframe.lazy").Lazy()
});
$('.shop-carousel-update').slick({
dots: !1,
arrows: !0,
infinite: !1,
speed: 300,
slidesToShow: 2,
slidesToScroll: 1,
responsive: [{
breakpoint: 1400,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
infinite: !0,
dots: !1
}
}, {
breakpoint: 1024,
settings: {
slidesToShow: 1,
slidesToScroll: 1,
infinite: !0,
dots: !1
}
}, {
breakpoint: 600,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}, {
breakpoint: 480,
settings: {
slidesToShow: 1,
slidesToScroll: 1
}
}]
})
var $myGroup = jQuery('#playerStats');
$myGroup.on('show.bs.collapse', '.collapse', function() {
$myGroup.find('.player-stats-table .collapse.in').collapse('hide');
});