/*! * jQuery Smooth Scroll - v2.2.0 - 2017-05-05 * https://github.com/kswedberg/jquery-smooth-scroll * Copyright (c) 2017 Karl Swedberg * Licensed MIT */ (function (factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(['jquery'], factory); } else if (typeof module === 'object' && module.exports) { // CommonJS factory(require('jquery')); } else { // Browser globals factory(jQuery); } })(function ($) { var version = '2.2.0'; var optionOverrides = {}; var defaults = { exclude: [], excludeWithin: [], offset: 0, // one of 'top' or 'left' direction: 'top', // if set, bind click events through delegation // supported since jQuery 1.4.2 delegateSelector: null, // jQuery set of elements you wish to scroll (for $.smoothScroll). // if null (default), $('html, body').firstScrollable() is used. scrollElement: null, // only use if you want to override default behavior scrollTarget: null, // automatically focus the target element after scrolling to it autoFocus: false, // fn(opts) function to be called before scrolling occurs. // `this` is the element(s) being scrolled beforeScroll: function () {}, // fn(opts) function to be called after scrolling occurs. // `this` is the triggering element afterScroll: function () {}, // easing name. jQuery comes with "swing" and "linear." For others, you'll need an easing plugin // from jQuery UI or elsewhere easing: 'swing', // speed can be a number or 'auto' // if 'auto', the speed will be calculated based on the formula: // (current scroll position - target scroll position) / autoCoeffic speed: 400, // coefficient for "auto" speed autoCoefficient: 2, // $.fn.smoothScroll only: whether to prevent the default click action preventDefault: true, }; var getScrollable = function (opts) { var scrollable = []; var scrolled = false; var dir = opts.dir && opts.dir === 'left' ? 'scrollLeft' : 'scrollTop'; this.each(function () { var el = $(this); if (this === document || this === window) { return; } if ( document.scrollingElement && (this === document.documentElement || this === document.body) ) { scrollable.push(document.scrollingElement); return false; } if (el[dir]() > 0) { scrollable.push(this); } else { // if scroll(Top|Left) === 0, nudge the element 1px and see if it moves el[dir](1); scrolled = el[dir]() > 0; if (scrolled) { scrollable.push(this); } // then put it back, of course el[dir](0); } }); if (!scrollable.length) { this.each(function () { // If no scrollable elements and has scroll-behavior:smooth because // "When this property is specified on the root element, it applies to the viewport instead." // and "The scroll-behavior property of the … body element is *not* propagated to the viewport." // → https://drafts.csswg.org/cssom-view/#propdef-scroll-behavior if ( this === document.documentElement && $(this).css('scrollBehavior') === 'smooth' ) { scrollable = [this]; } // If still no scrollable elements, fall back to
, // if it's in the jQuery collection // (doing this because Safari sets scrollTop async, // so can't set it to 1 and immediately get the value.) if (!scrollable.length && this.nodeName === 'BODY') { scrollable = [this]; } }); } // Use the first scrollable element if we're calling firstScrollable() if (opts.el === 'first' && scrollable.length > 1) { scrollable = [scrollable[0]]; } return scrollable; }; var rRelative = /^([\-\+]=)(\d+)/; $.fn.extend({ scrollable: function (dir) { var scrl = getScrollable.call(this, { dir: dir }); return this.pushStack(scrl); }, firstScrollable: function (dir) { var scrl = getScrollable.call(this, { el: 'first', dir: dir }); return this.pushStack(scrl); }, smoothScroll: function (options, extra) { options = options || {}; if (options === 'options') { if (!extra) { return this.first().data('ssOpts'); } return this.each(function () { var $this = $(this); var opts = $.extend($this.data('ssOpts') || {}, extra); $(this).data('ssOpts', opts); }); } var opts = $.extend({}, $.fn.smoothScroll.defaults, options); var clickHandler = function (event) { var escapeSelector = function (str) { return str.replace(/(:|\.|\/)/g, '\\$1'); }; var link = this; var $link = $(this); var thisOpts = $.extend({}, opts, $link.data('ssOpts') || {}); var exclude = opts.exclude; var excludeWithin = thisOpts.excludeWithin; var elCounter = 0; var ewlCounter = 0; var include = true; var clickOpts = {}; var locationPath = $.smoothScroll.filterPath(location.pathname); var linkPath = $.smoothScroll.filterPath(link.pathname); var hostMatch = location.hostname === link.hostname || !link.hostname; var pathMatch = thisOpts.scrollTarget || linkPath === locationPath; var thisHash = escapeSelector(link.hash); if (thisHash && !$(thisHash).length) { include = false; } if (!thisOpts.scrollTarget && (!hostMatch || !pathMatch || !thisHash)) { include = false; } else { while (include && elCounter < exclude.length) { if ($link.is(escapeSelector(exclude[elCounter++]))) { include = false; } } while (include && ewlCounter < excludeWithin.length) { if ($link.closest(excludeWithin[ewlCounter++]).length) { include = false; } } } if (include) { if (thisOpts.preventDefault) { event.preventDefault(); } $.extend(clickOpts, thisOpts, { scrollTarget: thisOpts.scrollTarget || thisHash, link: link, }); $.smoothScroll(clickOpts); } }; if (options.delegateSelector !== null) { this.off('click.smoothscroll', options.delegateSelector).on( 'click.smoothscroll', options.delegateSelector, clickHandler, ); } else { this.off('click.smoothscroll').on('click.smoothscroll', clickHandler); } return this; }, }); var getExplicitOffset = function (val) { var explicit = { relative: '' }; var parts = typeof val === 'string' && rRelative.exec(val); if (typeof val === 'number') { explicit.px = val; } else if (parts) { explicit.relative = parts[1]; explicit.px = parseFloat(parts[2]) || 0; } return explicit; }; var onAfterScroll = function (opts) { var $tgt = $(opts.scrollTarget); if (opts.autoFocus && $tgt.length) { $tgt[0].focus(); if (!$tgt.is(document.activeElement)) { $tgt.prop({ tabIndex: -1 }); $tgt[0].focus(); } } opts.afterScroll.call(opts.link, opts); }; $.smoothScroll = function (options, px) { if (options === 'options' && typeof px === 'object') { return $.extend(optionOverrides, px); } var opts, $scroller, speed, delta; var explicitOffset = getExplicitOffset(options); var scrollTargetOffset = {}; var scrollerOffset = 0; var offPos = 'offset'; var scrollDir = 'scrollTop'; var aniProps = {}; var aniOpts = {}; if (explicitOffset.px) { opts = $.extend( { link: null }, $.fn.smoothScroll.defaults, optionOverrides, ); } else { opts = $.extend( { link: null }, $.fn.smoothScroll.defaults, options || {}, optionOverrides, ); if (opts.scrollElement) { offPos = 'position'; if (opts.scrollElement.css('position') === 'static') { opts.scrollElement.css('position', 'relative'); } } if (px) { explicitOffset = getExplicitOffset(px); } } scrollDir = opts.direction === 'left' ? 'scrollLeft' : scrollDir; if (opts.scrollElement) { $scroller = opts.scrollElement; if ( !explicitOffset.px && !/^(?:HTML|BODY)$/.test($scroller[0].nodeName) ) { scrollerOffset = $scroller[scrollDir](); } } else { $scroller = $('html, body').firstScrollable(opts.direction); } // beforeScroll callback function must fire before calculating offset opts.beforeScroll.call($scroller, opts); scrollTargetOffset = explicitOffset.px ? explicitOffset : { relative: '', px: ($(opts.scrollTarget)[offPos]() && $(opts.scrollTarget)[offPos]()[opts.direction]) || 0, }; aniProps[scrollDir] = scrollTargetOffset.relative + (scrollTargetOffset.px + scrollerOffset + opts.offset); speed = opts.speed; // automatically calculate the speed of the scroll based on distance / coefficient if (speed === 'auto') { // $scroller[scrollDir]() is position before scroll, aniProps[scrollDir] is position after // When delta is greater, speed will be greater. delta = Math.abs(aniProps[scrollDir] - $scroller[scrollDir]()); // Divide the delta by the coefficient speed = delta / opts.autoCoefficient; } aniOpts = { duration: speed, easing: opts.easing, complete: function () { onAfterScroll(opts); }, }; if (opts.step) { aniOpts.step = opts.step; } if ($scroller.length) { $scroller.stop().animate(aniProps, aniOpts); } else { onAfterScroll(opts); } }; $.smoothScroll.version = version; $.smoothScroll.filterPath = function (string) { string = string || ''; return string .replace(/^\//, '') .replace(/(?:index|default).[a-zA-Z]{3,4}$/, '') .replace(/\/$/, ''); }; // default options $.fn.smoothScroll.defaults = defaults; }); /*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under the MIT license */ if ('undefined' == typeof jQuery) throw new Error("Bootstrap's JavaScript requires jQuery"); +(function (a) { 'use strict'; var b = a.fn.jquery.split(' ')[0].split('.'); if ( (b[0] < 2 && b[1] < 9) || (1 == b[0] && 9 == b[1] && b[2] < 1) || b[0] > 3 ) throw new Error( "Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4", ); })(jQuery), +(function (a) { 'use strict'; function b() { var a = document.createElement('bootstrap'), b = { WebkitTransition: 'webkitTransitionEnd', MozTransition: 'transitionend', OTransition: 'oTransitionEnd otransitionend', transition: 'transitionend', }; for (var c in b) if (void 0 !== a.style[c]) return { end: b[c] }; return !1; } (a.fn.emulateTransitionEnd = function (b) { var c = !1, d = this; a(this).one('bsTransitionEnd', function () { c = !0; }); var e = function () { c || a(d).trigger(a.support.transition.end); }; return setTimeout(e, b), this; }), a(function () { (a.support.transition = b()), a.support.transition && (a.event.special.bsTransitionEnd = { bindType: a.support.transition.end, delegateType: a.support.transition.end, handle: function (b) { if (a(b.target).is(this)) return b.handleObj.handler.apply(this, arguments); }, }); }); })(jQuery), +(function (a) { 'use strict'; function b(b) { return this.each(function () { var c = a(this), e = c.data('bs.alert'); e || c.data('bs.alert', (e = new d(this))), 'string' == typeof b && e[b].call(c); }); } var c = '[data-dismiss="alert"]', d = function (b) { a(b).on('click', c, this.close); }; (d.VERSION = '3.3.7'), (d.TRANSITION_DURATION = 150), (d.prototype.close = function (b) { function c() { g.detach().trigger('closed.bs.alert').remove(); } var e = a(this), f = e.attr('data-target'); f || ((f = e.attr('href')), (f = f && f.replace(/.*(?=#[^\s]*$)/, ''))); var g = a('#' === f ? [] : f); b && b.preventDefault(), g.length || (g = e.closest('.alert')), g.trigger((b = a.Event('close.bs.alert'))), b.isDefaultPrevented() || (g.removeClass('in'), a.support.transition && g.hasClass('fade') ? g .one('bsTransitionEnd', c) .emulateTransitionEnd(d.TRANSITION_DURATION) : c()); }); var e = a.fn.alert; (a.fn.alert = b), (a.fn.alert.Constructor = d), (a.fn.alert.noConflict = function () { return (a.fn.alert = e), this; }), a(document).on('click.bs.alert.data-api', c, d.prototype.close); })(jQuery), +(function (a) { 'use strict'; function b(b) { return this.each(function () { var d = a(this), e = d.data('bs.button'), f = 'object' == typeof b && b; e || d.data('bs.button', (e = new c(this, f))), 'toggle' == b ? e.toggle() : b && e.setState(b); }); } var c = function (b, d) { (this.$element = a(b)), (this.options = a.extend({}, c.DEFAULTS, d)), (this.isLoading = !1); }; (c.VERSION = '3.3.7'), (c.DEFAULTS = { loadingText: 'loading...' }), (c.prototype.setState = function (b) { var c = 'disabled', d = this.$element, e = d.is('input') ? 'val' : 'html', f = d.data(); (b += 'Text'), null == f.resetText && d.data('resetText', d[e]()), setTimeout( a.proxy(function () { d[e](null == f[b] ? this.options[b] : f[b]), 'loadingText' == b ? ((this.isLoading = !0), d.addClass(c).attr(c, c).prop(c, !0)) : this.isLoading && ((this.isLoading = !1), d.removeClass(c).removeAttr(c).prop(c, !1)); }, this), 0, ); }), (c.prototype.toggle = function () { var a = !0, b = this.$element.closest('[data-toggle="buttons"]'); if (b.length) { var c = this.$element.find('input'); 'radio' == c.prop('type') ? (c.prop('checked') && (a = !1), b.find('.active').removeClass('active'), this.$element.addClass('active')) : 'checkbox' == c.prop('type') && (c.prop('checked') !== this.$element.hasClass('active') && (a = !1), this.$element.toggleClass('active')), c.prop('checked', this.$element.hasClass('active')), a && c.trigger('change'); } else this.$element.attr('aria-pressed', !this.$element.hasClass('active')), this.$element.toggleClass('active'); }); var d = a.fn.button; (a.fn.button = b), (a.fn.button.Constructor = c), (a.fn.button.noConflict = function () { return (a.fn.button = d), this; }), a(document) .on( 'click.bs.button.data-api', '[data-toggle^="button"]', function (c) { var d = a(c.target).closest('.btn'); b.call(d, 'toggle'), a(c.target).is('input[type="radio"], input[type="checkbox"]') || (c.preventDefault(), d.is('input,button') ? d.trigger('focus') : d .find('input:visible,button:visible') .first() .trigger('focus')); }, ) .on( 'focus.bs.button.data-api blur.bs.button.data-api', '[data-toggle^="button"]', function (b) { a(b.target) .closest('.btn') .toggleClass('focus', /^focus(in)?$/.test(b.type)); }, ); })(jQuery), +(function (a) { 'use strict'; function b(b) { return this.each(function () { var d = a(this), e = d.data('bs.carousel'), f = a.extend({}, c.DEFAULTS, d.data(), 'object' == typeof b && b), g = 'string' == typeof b ? b : f.slide; e || d.data('bs.carousel', (e = new c(this, f))), 'number' == typeof b ? e.to(b) : g ? e[g]() : f.interval && e.pause().cycle(); }); } var c = function (b, c) { (this.$element = a(b)), (this.$indicators = this.$element.find('.carousel-indicators')), (this.options = c), (this.paused = null), (this.sliding = null), (this.interval = null), (this.$active = null), (this.$items = null), this.options.keyboard && this.$element.on('keydown.bs.carousel', a.proxy(this.keydown, this)), 'hover' == this.options.pause && !('ontouchstart' in document.documentElement) && this.$element .on('mouseenter.bs.carousel', a.proxy(this.pause, this)) .on('mouseleave.bs.carousel', a.proxy(this.cycle, this)); }; (c.VERSION = '3.3.7'), (c.TRANSITION_DURATION = 600), (c.DEFAULTS = { interval: 5e3, pause: 'hover', wrap: !0, keyboard: !0 }), (c.prototype.keydown = function (a) { if (!/input|textarea/i.test(a.target.tagName)) { switch (a.which) { case 37: this.prev(); break; case 39: this.next(); break; default: return; } a.preventDefault(); } }), (c.prototype.cycle = function (b) { return ( b || (this.paused = !1), this.interval && clearInterval(this.interval), this.options.interval && !this.paused && (this.interval = setInterval( a.proxy(this.next, this), this.options.interval, )), this ); }), (c.prototype.getItemIndex = function (a) { return ( (this.$items = a.parent().children('.item')), this.$items.index(a || this.$active) ); }), (c.prototype.getItemForDirection = function (a, b) { var c = this.getItemIndex(b), d = ('prev' == a && 0 === c) || ('next' == a && c == this.$items.length - 1); if (d && !this.options.wrap) return b; var e = 'prev' == a ? -1 : 1, f = (c + e) % this.$items.length; return this.$items.eq(f); }), (c.prototype.to = function (a) { var b = this, c = this.getItemIndex( (this.$active = this.$element.find('.item.active')), ); if (!(a > this.$items.length - 1 || a < 0)) return this.sliding ? this.$element.one('slid.bs.carousel', function () { b.to(a); }) : c == a ? this.pause().cycle() : this.slide(a > c ? 'next' : 'prev', this.$items.eq(a)); }), (c.prototype.pause = function (b) { return ( b || (this.paused = !0), this.$element.find('.next, .prev').length && a.support.transition && (this.$element.trigger(a.support.transition.end), this.cycle(!0)), (this.interval = clearInterval(this.interval)), this ); }), (c.prototype.next = function () { if (!this.sliding) return this.slide('next'); }), (c.prototype.prev = function () { if (!this.sliding) return this.slide('prev'); }), (c.prototype.slide = function (b, d) { var e = this.$element.find('.item.active'), f = d || this.getItemForDirection(b, e), g = this.interval, h = 'next' == b ? 'left' : 'right', i = this; if (f.hasClass('active')) return (this.sliding = !1); var j = f[0], k = a.Event('slide.bs.carousel', { relatedTarget: j, direction: h }); if ((this.$element.trigger(k), !k.isDefaultPrevented())) { if ( ((this.sliding = !0), g && this.pause(), this.$indicators.length) ) { this.$indicators.find('.active').removeClass('active'); var l = a(this.$indicators.children()[this.getItemIndex(f)]); l && l.addClass('active'); } var m = a.Event('slid.bs.carousel', { relatedTarget: j, direction: h, }); return ( a.support.transition && this.$element.hasClass('slide') ? (f.addClass(b), f[0].offsetWidth, e.addClass(h), f.addClass(h), e .one('bsTransitionEnd', function () { f.removeClass([b, h].join(' ')).addClass('active'), e.removeClass(['active', h].join(' ')), (i.sliding = !1), setTimeout(function () { i.$element.trigger(m); }, 0); }) .emulateTransitionEnd(c.TRANSITION_DURATION)) : (e.removeClass('active'), f.addClass('active'), (this.sliding = !1), this.$element.trigger(m)), g && this.cycle(), this ); } }); var d = a.fn.carousel; (a.fn.carousel = b), (a.fn.carousel.Constructor = c), (a.fn.carousel.noConflict = function () { return (a.fn.carousel = d), this; }); var e = function (c) { var d, e = a(this), f = a( e.attr('data-target') || ((d = e.attr('href')) && d.replace(/.*(?=#[^\s]+$)/, '')), ); if (f.hasClass('carousel')) { var g = a.extend({}, f.data(), e.data()), h = e.attr('data-slide-to'); h && (g.interval = !1), b.call(f, g), h && f.data('bs.carousel').to(h), c.preventDefault(); } }; a(document) .on('click.bs.carousel.data-api', '[data-slide]', e) .on('click.bs.carousel.data-api', '[data-slide-to]', e), a(window).on('load', function () { a('[data-ride="carousel"]').each(function () { var c = a(this); b.call(c, c.data()); }); }); })(jQuery), +(function (a) { 'use strict'; function b(b) { var c, d = b.attr('data-target') || ((c = b.attr('href')) && c.replace(/.*(?=#[^\s]+$)/, '')); return a(d); } function c(b) { return this.each(function () { var c = a(this), e = c.data('bs.collapse'), f = a.extend({}, d.DEFAULTS, c.data(), 'object' == typeof b && b); !e && f.toggle && /show|hide/.test(b) && (f.toggle = !1), e || c.data('bs.collapse', (e = new d(this, f))), 'string' == typeof b && e[b](); }); } var d = function (b, c) { (this.$element = a(b)), (this.options = a.extend({}, d.DEFAULTS, c)), (this.$trigger = a( '[data-toggle="collapse"][href="#' + b.id + '"],[data-toggle="collapse"][data-target="#' + b.id + '"]', )), (this.transitioning = null), this.options.parent ? (this.$parent = this.getParent()) : this.addAriaAndCollapsedClass(this.$element, this.$trigger), this.options.toggle && this.toggle(); }; (d.VERSION = '3.3.7'), (d.TRANSITION_DURATION = 350), (d.DEFAULTS = { toggle: !0 }), (d.prototype.dimension = function () { var a = this.$element.hasClass('width'); return a ? 'width' : 'height'; }), (d.prototype.show = function () { if (!this.transitioning && !this.$element.hasClass('in')) { var b, e = this.$parent && this.$parent.children('.panel').children('.in, .collapsing'); if ( !( e && e.length && ((b = e.data('bs.collapse')), b && b.transitioning) ) ) { var f = a.Event('show.bs.collapse'); if ((this.$element.trigger(f), !f.isDefaultPrevented())) { e && e.length && (c.call(e, 'hide'), b || e.data('bs.collapse', null)); var g = this.dimension(); this.$element .removeClass('collapse') .addClass('collapsing') [g](0) .attr('aria-expanded', !0), this.$trigger .removeClass('collapsed') .attr('aria-expanded', !0), (this.transitioning = 1); var h = function () { this.$element .removeClass('collapsing') .addClass('collapse in') [g](''), (this.transitioning = 0), this.$element.trigger('shown.bs.collapse'); }; if (!a.support.transition) return h.call(this); var i = a.camelCase(['scroll', g].join('-')); this.$element .one('bsTransitionEnd', a.proxy(h, this)) .emulateTransitionEnd(d.TRANSITION_DURATION) [g](this.$element[0][i]); } } } }), (d.prototype.hide = function () { if (!this.transitioning && this.$element.hasClass('in')) { var b = a.Event('hide.bs.collapse'); if ((this.$element.trigger(b), !b.isDefaultPrevented())) { var c = this.dimension(); this.$element[c](this.$element[c]())[0].offsetHeight, this.$element .addClass('collapsing') .removeClass('collapse in') .attr('aria-expanded', !1), this.$trigger.addClass('collapsed').attr('aria-expanded', !1), (this.transitioning = 1); var e = function () { (this.transitioning = 0), this.$element .removeClass('collapsing') .addClass('collapse') .trigger('hidden.bs.collapse'); }; return a.support.transition ? void this.$element[c](0) .one('bsTransitionEnd', a.proxy(e, this)) .emulateTransitionEnd(d.TRANSITION_DURATION) : e.call(this); } } }), (d.prototype.toggle = function () { this[this.$element.hasClass('in') ? 'hide' : 'show'](); }), (d.prototype.getParent = function () { return a(this.options.parent) .find( '[data-toggle="collapse"][data-parent="' + this.options.parent + '"]', ) .each( a.proxy(function (c, d) { var e = a(d); this.addAriaAndCollapsedClass(b(e), e); }, this), ) .end(); }), (d.prototype.addAriaAndCollapsedClass = function (a, b) { var c = a.hasClass('in'); a.attr('aria-expanded', c), b.toggleClass('collapsed', !c).attr('aria-expanded', c); }); var e = a.fn.collapse; (a.fn.collapse = c), (a.fn.collapse.Constructor = d), (a.fn.collapse.noConflict = function () { return (a.fn.collapse = e), this; }), a(document).on( 'click.bs.collapse.data-api', '[data-toggle="collapse"]', function (d) { var e = a(this); e.attr('data-target') || d.preventDefault(); var f = b(e), g = f.data('bs.collapse'), h = g ? 'toggle' : e.data(); c.call(f, h); }, ); })(jQuery), +(function (a) { 'use strict'; function b(b) { var c = b.attr('data-target'); c || ((c = b.attr('href')), (c = c && /#[A-Za-z]/.test(c) && c.replace(/.*(?=#[^\s]*$)/, ''))); var d = c && a(c); return d && d.length ? d : b.parent(); } function c(c) { (c && 3 === c.which) || (a(e).remove(), a(f).each(function () { var d = a(this), e = b(d), f = { relatedTarget: this }; e.hasClass('open') && ((c && 'click' == c.type && /input|textarea/i.test(c.target.tagName) && a.contains(e[0], c.target)) || (e.trigger((c = a.Event('hide.bs.dropdown', f))), c.isDefaultPrevented() || (d.attr('aria-expanded', 'false'), e .removeClass('open') .trigger(a.Event('hidden.bs.dropdown', f))))); })); } function d(b) { return this.each(function () { var c = a(this), d = c.data('bs.dropdown'); d || c.data('bs.dropdown', (d = new g(this))), 'string' == typeof b && d[b].call(c); }); } var e = '.dropdown-backdrop', f = '[data-toggle="dropdown"]', g = function (b) { a(b).on('click.bs.dropdown', this.toggle); }; (g.VERSION = '3.3.7'), (g.prototype.toggle = function (d) { var e = a(this); if (!e.is('.disabled, :disabled')) { var f = b(e), g = f.hasClass('open'); if ((c(), !g)) { 'ontouchstart' in document.documentElement && !f.closest('.navbar-nav').length && a(document.createElement('div')) .addClass('dropdown-backdrop') .insertAfter(a(this)) .on('click', c); var h = { relatedTarget: this }; if ( (f.trigger((d = a.Event('show.bs.dropdown', h))), d.isDefaultPrevented()) ) return; e.trigger('focus').attr('aria-expanded', 'true'), f.toggleClass('open').trigger(a.Event('shown.bs.dropdown', h)); } return !1; } }), (g.prototype.keydown = function (c) { if ( /(38|40|27|32)/.test(c.which) && !/input|textarea/i.test(c.target.tagName) ) { var d = a(this); if ( (c.preventDefault(), c.stopPropagation(), !d.is('.disabled, :disabled')) ) { var e = b(d), g = e.hasClass('open'); if ((!g && 27 != c.which) || (g && 27 == c.which)) return ( 27 == c.which && e.find(f).trigger('focus'), d.trigger('click') ); var h = ' li:not(.disabled):visible a', i = e.find('.dropdown-menu' + h); if (i.length) { var j = i.index(c.target); 38 == c.which && j > 0 && j--, 40 == c.which && j < i.length - 1 && j++, ~j || (j = 0), i.eq(j).trigger('focus'); } } } }); var h = a.fn.dropdown; (a.fn.dropdown = d), (a.fn.dropdown.Constructor = g), (a.fn.dropdown.noConflict = function () { return (a.fn.dropdown = h), this; }), a(document) .on('click.bs.dropdown.data-api', c) .on('click.bs.dropdown.data-api', '.dropdown form', function (a) { a.stopPropagation(); }) .on('click.bs.dropdown.data-api', f, g.prototype.toggle) .on('keydown.bs.dropdown.data-api', f, g.prototype.keydown) .on( 'keydown.bs.dropdown.data-api', '.dropdown-menu', g.prototype.keydown, ); })(jQuery), +(function (a) { 'use strict'; function b(b, d) { return this.each(function () { var e = a(this), f = e.data('bs.modal'), g = a.extend({}, c.DEFAULTS, e.data(), 'object' == typeof b && b); f || e.data('bs.modal', (f = new c(this, g))), 'string' == typeof b ? f[b](d) : g.show && f.show(d); }); } var c = function (b, c) { (this.options = c), (this.$body = a(document.body)), (this.$element = a(b)), (this.$dialog = this.$element.find('.modal-dialog')), (this.$backdrop = null), (this.isShown = null), (this.originalBodyPad = null), (this.scrollbarWidth = 0), (this.ignoreBackdropClick = !1), this.options.remote && this.$element.find('.modal-content').load( this.options.remote, a.proxy(function () { this.$element.trigger('loaded.bs.modal'); }, this), ); }; (c.VERSION = '3.3.7'), (c.TRANSITION_DURATION = 300), (c.BACKDROP_TRANSITION_DURATION = 150), (c.DEFAULTS = { backdrop: !0, keyboard: !0, show: !0 }), (c.prototype.toggle = function (a) { return this.isShown ? this.hide() : this.show(a); }), (c.prototype.show = function (b) { var d = this, e = a.Event('show.bs.modal', { relatedTarget: b }); this.$element.trigger(e), this.isShown || e.isDefaultPrevented() || ((this.isShown = !0), this.checkScrollbar(), this.setScrollbar(), this.$body.addClass('modal-open'), this.escape(), this.resize(), this.$element.on( 'click.dismiss.bs.modal', '[data-dismiss="modal"]', a.proxy(this.hide, this), ), this.$dialog.on('mousedown.dismiss.bs.modal', function () { d.$element.one('mouseup.dismiss.bs.modal', function (b) { a(b.target).is(d.$element) && (d.ignoreBackdropClick = !0); }); }), this.backdrop(function () { var e = a.support.transition && d.$element.hasClass('fade'); d.$element.parent().length || d.$element.appendTo(d.$body), d.$element.show().scrollTop(0), d.adjustDialog(), e && d.$element[0].offsetWidth, d.$element.addClass('in'), d.enforceFocus(); var f = a.Event('shown.bs.modal', { relatedTarget: b }); e ? d.$dialog .one('bsTransitionEnd', function () { d.$element.trigger('focus').trigger(f); }) .emulateTransitionEnd(c.TRANSITION_DURATION) : d.$element.trigger('focus').trigger(f); })); }), (c.prototype.hide = function (b) { b && b.preventDefault(), (b = a.Event('hide.bs.modal')), this.$element.trigger(b), this.isShown && !b.isDefaultPrevented() && ((this.isShown = !1), this.escape(), this.resize(), a(document).off('focusin.bs.modal'), this.$element .removeClass('in') .off('click.dismiss.bs.modal') .off('mouseup.dismiss.bs.modal'), this.$dialog.off('mousedown.dismiss.bs.modal'), a.support.transition && this.$element.hasClass('fade') ? this.$element .one('bsTransitionEnd', a.proxy(this.hideModal, this)) .emulateTransitionEnd(c.TRANSITION_DURATION) : this.hideModal()); }), (c.prototype.enforceFocus = function () { a(document) .off('focusin.bs.modal') .on( 'focusin.bs.modal', a.proxy(function (a) { document === a.target || this.$element[0] === a.target || this.$element.has(a.target).length || this.$element.trigger('focus'); }, this), ); }), (c.prototype.escape = function () { this.isShown && this.options.keyboard ? this.$element.on( 'keydown.dismiss.bs.modal', a.proxy(function (a) { 27 == a.which && this.hide(); }, this), ) : this.isShown || this.$element.off('keydown.dismiss.bs.modal'); }), (c.prototype.resize = function () { this.isShown ? a(window).on('resize.bs.modal', a.proxy(this.handleUpdate, this)) : a(window).off('resize.bs.modal'); }), (c.prototype.hideModal = function () { var a = this; this.$element.hide(), this.backdrop(function () { a.$body.removeClass('modal-open'), a.resetAdjustments(), a.resetScrollbar(), a.$element.trigger('hidden.bs.modal'); }); }), (c.prototype.removeBackdrop = function () { this.$backdrop && this.$backdrop.remove(), (this.$backdrop = null); }), (c.prototype.backdrop = function (b) { var d = this, e = this.$element.hasClass('fade') ? 'fade' : ''; if (this.isShown && this.options.backdrop) { var f = a.support.transition && e; if ( ((this.$backdrop = a(document.createElement('div')) .addClass('modal-backdrop ' + e) .appendTo(this.$body)), this.$element.on( 'click.dismiss.bs.modal', a.proxy(function (a) { return this.ignoreBackdropClick ? void (this.ignoreBackdropClick = !1) : void ( a.target === a.currentTarget && ('static' == this.options.backdrop ? this.$element[0].focus() : this.hide()) ); }, this), ), f && this.$backdrop[0].offsetWidth, this.$backdrop.addClass('in'), !b) ) return; f ? this.$backdrop .one('bsTransitionEnd', b) .emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION) : b(); } else if (!this.isShown && this.$backdrop) { this.$backdrop.removeClass('in'); var g = function () { d.removeBackdrop(), b && b(); }; a.support.transition && this.$element.hasClass('fade') ? this.$backdrop .one('bsTransitionEnd', g) .emulateTransitionEnd(c.BACKDROP_TRANSITION_DURATION) : g(); } else b && b(); }), (c.prototype.handleUpdate = function () { this.adjustDialog(); }), (c.prototype.adjustDialog = function () { var a = this.$element[0].scrollHeight > document.documentElement.clientHeight; this.$element.css({ paddingLeft: !this.bodyIsOverflowing && a ? this.scrollbarWidth : '', paddingRight: this.bodyIsOverflowing && !a ? this.scrollbarWidth : '', }); }), (c.prototype.resetAdjustments = function () { this.$element.css({ paddingLeft: '', paddingRight: '' }); }), (c.prototype.checkScrollbar = function () { var a = window.innerWidth; if (!a) { var b = document.documentElement.getBoundingClientRect(); a = b.right - Math.abs(b.left); } (this.bodyIsOverflowing = document.body.clientWidth < a), (this.scrollbarWidth = this.measureScrollbar()); }), (c.prototype.setScrollbar = function () { var a = parseInt(this.$body.css('padding-right') || 0, 10); (this.originalBodyPad = document.body.style.paddingRight || ''), this.bodyIsOverflowing && this.$body.css('padding-right', a + this.scrollbarWidth); }), (c.prototype.resetScrollbar = function () { this.$body.css('padding-right', this.originalBodyPad); }), (c.prototype.measureScrollbar = function () { var a = document.createElement('div'); (a.className = 'modal-scrollbar-measure'), this.$body.append(a); var b = a.offsetWidth - a.clientWidth; return this.$body[0].removeChild(a), b; }); var d = a.fn.modal; (a.fn.modal = b), (a.fn.modal.Constructor = c), (a.fn.modal.noConflict = function () { return (a.fn.modal = d), this; }), a(document).on( 'click.bs.modal.data-api', '[data-toggle="modal"]', function (c) { var d = a(this), e = d.attr('href'), f = a( d.attr('data-target') || (e && e.replace(/.*(?=#[^\s]+$)/, '')), ), g = f.data('bs.modal') ? 'toggle' : a.extend({ remote: !/#/.test(e) && e }, f.data(), d.data()); d.is('a') && c.preventDefault(), f.one('show.bs.modal', function (a) { a.isDefaultPrevented() || f.one('hidden.bs.modal', function () { d.is(':visible') && d.trigger('focus'); }); }), b.call(f, g, this); }, ); })(jQuery), +(function (a) { 'use strict'; function b(b) { return this.each(function () { var d = a(this), e = d.data('bs.tooltip'), f = 'object' == typeof b && b; (!e && /destroy|hide/.test(b)) || (e || d.data('bs.tooltip', (e = new c(this, f))), 'string' == typeof b && e[b]()); }); } var c = function (a, b) { (this.type = null), (this.options = null), (this.enabled = null), (this.timeout = null), (this.hoverState = null), (this.$element = null), (this.inState = null), this.init('tooltip', a, b); }; (c.VERSION = '3.3.7'), (c.TRANSITION_DURATION = 150), (c.DEFAULTS = { animation: !0, placement: 'top', selector: !1, template: '