PageSourceSearch

https://www.dansac.com.au/sites/public/design/Dansac/js/plugins.js

js dansac.com.au collected 2026-10-06 18:57:54 UTC 115,542 bytes, 108 lines download raw bytes

1/* ------------------------------------------------------------------------------------------------
2Author: Justin Herrera <[email protected]>
3Version 2.9.1
4
5This file contains the following minified plugins:
6	AWS Modal v 2.4
7	AWS Carousel v 1.1
8	AWS Tabs v 1.0
9	AWS Double Tap v 1.0
10	AWS Select v 1.7
11	jQuery Cycle v 2.1.6 build: 20141007 - <http://jquery.malsup.com/cycle2/>
12	jQuery Cycle Swipe Plugin
13	jQuery Visibility Plugin - <https://github.com/customd/jquery-visible>
14	malihu jquery custom scrollbar plugin v 3.1.13 - <http://manos.malihu.gr/jquery-custom-content-scroller>
15	AWS Tooltip v 1.3
16	Pikaday v 1.4.0 - <https://github.com/dbushell/Pikaday>
17-------------------------------------------------------------------------------------------------*/
18(function($){
19	/* AWS Modal v 2.4 (modified - removed iFrame override in parse options) */
20	(function(a){a.fn.awsModal=function(c,d){var b=function(g,e,f){this.target=a(g);this.options=e;this.metadata=this.target.data("modal_options");if(f!==undefined){this.triggerer=f;this.triggererMetadata=this.triggerer.data("modal_options")}};b.prototype={settings:{classes:"",clone:true,iframe:false,iframe_url:"",overlay:true},init:function(){a("body > div.modal-overlay").trigger("click");this.config=this.setConfiguration();a("#html_templates div.modal-overlay, #html_templates div.modal-container").clone().appendTo("body");var f=this.target,g=a("body > div.modal-container"),e=a("body > div.modal-overlay");g.addClass(this.config.classes);if(this.config.clone.toString()!="false"){f.clone().appendTo(g.children("div.modal-content"))}else{f.appendTo(g.children("div.modal-content"))}if(this.config.iframe){this.createIFrame()}this.centerModalWindow();this.enableCloseFunctions();if(!this.config.overlay){e.addClass('hidden')}return this},centerModalWindow:function(){var g=a("body > div.modal-container"),h=g.height(),f=a(window).height(),e=a(window).scrollTop();if(h>f){a("html, body").animate({scrollTop:0},"fast")}else{g.css({top:(((f*0.5)-(h*0.5))+e)+"px"})}},closeModalWindow:function(){var f=this.target,g=a("body > div.modal-container"),e=a("body > div.modal-overlay");g.add(e).remove();history.replaceState({}, document.title, window.location.pathname);},createIFrame:function(){var e=this.target,g=a("body > div.modal-container"),f=a("<iframe />");if(e.find("iframe").size()<1){f.attr({src:this.config.iframe_url,width:"100%",height:(a(window).height()-g.find(".modal-header").height()-100)+"px"});f.appendTo(e)}g.addClass("modal-iframed")},enableCloseFunctions:function(){var e=this;a("body").off("click.awsModal").on("click.awsModal","div.modal-container .close, div.modal-container .modal-close a,div.modal-overlay",function(f){e.closeModalWindow();f.preventDefault()});a(document).off("keyup.awsModal").on("keyup.awsModal",function(g){var f=(g.keyCode?g.keyCode:g.charCode);if(f==27&&a("body > div.modal-container").size()>0){e.closeModalWindow()}})},setConfiguration:function(){var e=a.extend({},this.settings,this.options,this.metadata,this.triggererMetadata);if(this.target.attr("id")){e.clone=false}return e}};b.settings=b.prototype.settings;return this.each(function(){new b(this,c,d).init()})}}(jQuery));
21
22	/* AWS Carousel v 1.1 */
23	(function(b){var a=false;b.fn.carousel=function(c){var d=function(e,f){this.container=b(e);this.options=f;this.metadata=this.container.data("options")};d.prototype={settings:{navigation:".navigation",nav:".nav",nav_prev:".prev",nav_next:".next",nav_trigger:"a",page_mode:true,responsive:false,slides:".slides",slide:".slide",speed:400,wrapper:".wrapper"},init:function(){var f=this,e=this.config=this.setConfiguration();this.calculateCarouselProperties();b.each(this.container.find(e.slide),function(g){b(this).data("page",g+1)});this.enableNavigation();if(e.responsive){this.enableResponsive()}return this},calculateCarouselProperties:function(g){var f=this,k=this.config,n=f.container.find(k.wrapper),h=n.find(k.slides),i=h.children(k.slide).size(),j=h.children(k.slide).outerWidth(true),l=n.width(),m=i*j,e=l/j;h.css({position:"relative",width:m}).data({totalPages:k.page_mode?Math.ceil(i/e):(i-e)+1,currentPage:1,pageWidth:k.page_mode?l:j,visibleSlides:e,slideCount:i});if(g){h.css("left",0);this.disableNavElements(h.data(),true);f.container.data("recalculating",false)}h.data("animating",false)},disableNavElements:function(h,e){var g=this.container.find(this.config.nav_prev),f=this.container.find(this.config.nav_next);if(e){h.currentPage=1}g.add(f).removeClass("hidden");if(h.slideCount<=h.visibleSlides){g.add(f).addClass("hidden")}else{if(h.currentPage!=1){g.removeClass("disabled")}else{if(h.currentPage==1&&!this.config.wrap){g.addClass("disabled")}}if(h.currentPage!=h.totalPages){f.removeClass("disabled")}else{if(h.currentPage==h.totalPages&&!this.config.wrap){f.addClass("disabled")}}}},enableNavigation:function(){var i=this,g=this.config,f=i.container,j=f.find(g.slides),e=this.container.find(g.navigation),h=g.nav+","+g.navigation+" "+g.nav_trigger;i.disableNavElements(j.data(),true);this.container.find(g.slide+":eq(0)").addClass("active");if(e.size()>0){b.each(e.find(g.nav_trigger).not(g.nav_prev+","+g.nav_next),function(k){b(this).addClass("page").data("page",k+1)});e.find(".page:eq(0)").addClass("active")}f.on("click",h,function(m){var l=b(this),k={position:parseInt(j.css("left")),totalPages:parseInt(j.data("totalPages")),currentPage:parseInt(j.data("currentPage")),pageWidth:parseInt(j.data("pageWidth")),visibleSlides:parseInt(j.data("iTotalVisibleSlides")),slideCount:parseInt(j.data("iSlidesCount")),newPosition:0};if(l.hasClass("disabled")||l.hasClass("active")){return false}isNaN(k.position)?k.position=0:k.position=k.position;if(j.data("animating")==false){k=i.handleNavigation(l,k);j.data("animating",true);j.animate({left:k.newPosition},g.speed,function(){j.data("animating",false)}).data("currentPage",k.currentPage)}m.preventDefault()})},enableResponsive:function(){var g=this,f=this.config,e=g.container;e.data("width",e.width());b(window).resize(function(){if(e.data("width")!=e.width()&&!e.data("recalculating")){e.data("recalculating",true);setTimeout(function(){g.calculateCarouselProperties(true)},500)}})},handleNavigation:function(g,e){var f=this.container.find(this.config.navigation);if(g.hasClass("prev")){e.currentPage=e.currentPage-1;e.newPosition=e.position+e.pageWidth}else{if(g.hasClass("next")){e.currentPage=e.currentPage+1;e.newPosition=e.position-e.pageWidth}else{var h=parseInt(g.data("page"));e.currentPage=h;e.newPosition=-((e.pageWidth*h)-e.pageWidth)}}this.disableNavElements(e);this.container.find(this.config.slide).removeClass("active");if(this.config.page_mode){this.container.find(this.config.slide+":eq("+(e.currentPage-1)+")").addClass("active")}if(f.size()>0){f.find(".page").removeClass("active");f.find(".page:eq("+(e.currentPage-1)+")").addClass("active")}return e},setConfiguration:function(){var e=b.extend({},this.settings,this.options,this.metadata);return e}};d.settings=d.prototype.settings;return this.each(function(){new d(this,c).init()})}}(jQuery));
24
25	/* AWS Tabs v 1.0 */
26	(function(b){var a=false;b.fn.awsTabs=function(d){var c=function(e,f){this.container=b(e);this.options=f;this.metadata=this.container.data("options")};c.prototype={settings:{bookmarkable:true,event:"click",panels:".tab_panels",panel:".panel",panel_active:"active",tab:".tab",tabs:".tabs",tab_active:"active"},init:function(){var e=this,f=this.config=this.setConfiguration();e.container.on(f.event,f.tab,function(k){var h=b(this),g=b(h.attr("href")),j=h.closest(e.container),i=g.closest(f.panels);if(!h.hasClass(f.tab_active)){j.find("a").removeClass(f.tab_active);h.addClass(f.tab_active);i.find(f.panel).removeClass(f.panel_active);g.addClass(f.panel_active)}k.preventDefault();if(f.bookmarkable){e.updateURL(g)}});this.container.find(f.tab).addClass("aws-tabs").data("trigger_event",f.event);if(!a){this.enableAutoOpen()}return this},enableAutoOpen:function(){var e=window.location.hash,f=this.config;if(e){setTimeout(function(){var g=b(f.tab+'[href="'+e+'"]');if(g.hasClass("aws-tabs")){g.trigger(g.data("trigger_event"))}},200)}a=true},setConfiguration:function(){var e=b.extend({},this.settings,this.options,this.metadata);return e},updateURL:function(e){var f=e.attr("id");e.removeAttr("id");location.hash=f;e.attr("id",f)}};c.settings=c.prototype.settings;return this.each(function(){new c(this,d).init()})}}(jQuery));
27
28	/* AWS Double Tap v 1.0 */
29	(function(b){var a=false;
29b.fn.awsDoubleTap=function(c){if(!("ontouchstart" in window)&&!navigator.msMaxTouchPoints&&!navigator.userAgent.toLowerCase().match(/windows phone os 7/i)){return false}var d=function(e,f){this.container=b(e);this.options=f;this.metadata=this.container.data("options")};d.prototype={settings:{events:"click touchstart MSPointerDown",jsAnimation:false,jsOpenEvent:"mouseenter",jsCloseEvent:"mouseleave",triggerer:"li > a"},init:function(){var e=this,f=this.config=this.setConfiguration();b.each(e.container.find(f.triggerer),function(g){b(this).data("awsDTEnabled",true)});e.container.on(f.events,f.triggerer,function(h){var g=b(this);if(!g.data("awsDTOpen")){g.data("awsDTOpen",true);h.preventDefault();if(f.jsAnimation){b.each(e.container.find(f.triggerer).not(g),function(j){var k=b(this);if(k.data("awsDTOpen")){k.data("awsDTOpen",false);k.parent().trigger(f.jsCloseEvent)}});g.parent().trigger(f.jsOpenEvent)}e.createTouchCloseEvent(g)}else{window.location=g.attr("href")}});return this},createTouchCloseEvent:function(g){var e=this,f=this.config;b(document).off(f.events);setTimeout(function(){b(document).one(f.events,function(m){var n=true,l=g.parent(),h=b(m.target),j=h.parents();if(!h.data("awsDTEnabled")){for(var k=0;k<j.length;k++){if(j[k]==l[0]){n=false}}}if(n){if(f.jsAnimation){l.trigger(f.jsCloseEvent)}g.data("awsDTOpen",false);if(!h.data("awsDTEnabled")){m.preventDefault()}}else{e.createTouchCloseEvent(g)}})},300)},setConfiguration:function(){var e=b.extend({},this.settings,this.options,this.metadata);return e}};d.settings=d.prototype.settings;return this.each(function(){new d(this,c).init()})}}(jQuery));
30
31	/* AWS Select v 1.7 */
32	(function(a){a.fn.awsSelect=function(b){var c=function(d,e){this.container=a(d);this.options=e;this.metadata=this.container.data("options")};c.prototype={settings:{ajax:false,ajaxCallback:false,ajaxType:"json",callback:false,event:"click.awsCS",highlightClass:"highlight",openClass:"open",openTrigger:".toggle",options:".options",optionTrigger:"a",showLimit:5,template:"<li><a></a></li>",timeOpen:500,timeClose:500},init:function(){var d=this,e=this.config=this.setConfiguration();d.generateListOptions();d.container.find(e.openTrigger).data("query","");d.container.on(e.event,e.openTrigger,function(f){if(d.container.hasClass("disabled")||d.container.hasClass("not-editable")||d.container.find("select").prop("disabled")){return false}d.checkHeight();d.animateOptions(d,a(this));if(d.container.find("li."+e.highlightClass).length>0){d.container.find(e.options).scrollTop(d.container.find("li."+e.highlightClass).position().top)}f.preventDefault()}).on(e.event,e.options+" "+e.optionTrigger,function(j,l){var f=a(this),k=f.data("value"),i=f.closest(e.options),h=i.siblings(e.openTrigger),g=i.siblings("select");if(!f.parent().hasClass(e.highlightClass)){d.updateHighlightClass(f);g.find("option").filter(function(){return(a(this).attr("value")==k)}).prop("selected",true).addClass("selected").siblings().removeClass("selected");h.text(f.text()).val(g.find("option.selected").attr("value"));if(!l){h.trigger(e.event)}if(e.ajax){d.runAJAX(k)}if(e.callback){d.handleCallback(e.callback,[h],h)}}j.preventDefault()}).on("change","select",function(h){var f=a(this),g=f.siblings(e.openTrigger);f.removeClass("awsTouched");g.text(f.find('option[value="'+f.val()+'"]').text());if(e.ajax){d.runAJAX(sValue)}}).on("focusin","select",function(h){var f=d.container.find(e.openTrigger),g=d.container.find("select");if(!f.hasClass("awsTabbed")&&f.is(":visible")&&!g.hasClass("awsTouched")){f.focus()}}).on("keyup",function(g){var f=g.which;if((f==27||f==9)&&d.container.hasClass(e.openClass)){d.animateOptions(d,d.container.find(e.openTrigger),true)}}).on("keydown",e.openTrigger,function(g){var f=a(this);if(g.which==9){f.addClass("awsTabbed");setTimeout(function(){f.removeClass("awsTabbed")},1000)}}).on("focus",e.openTrigger,function(f){a(this).addClass("awsFocus")}).on("blur",e.openTrigger,function(f){a(this).removeClass("awsFocus")});if(d.container.find("select").val()!=d.container.find(e.openTrigger).data("default")){d.container.find(e.openTrigger).text(d.container.find("select").find('option[value="'+d.container.find("select").val()+'"]').text())}
32d.updateHighlightClass(d.container.find(e.optionTrigger+'[data-value="'+d.container.find("select").val()+'"]'));d.enableKeyboardFunctions();d.enableWindowListeners();return this},animateOptions:function(i,l,f){var k=i.container,h=i.config,e=k.find(h.options),g=f?0:h.timeClose,d="awsCS-opening",j="awsCS-closing";if(f){e.stop(true)}if(k.hasClass(h.openClass)){if(k.hasClass(d)){e.stop(true)}else{if(!k.hasClass(j)||f){k.addClass(j);e.slideUp(g,function(){k.toggleClass(h.openClass).removeClass(j+" "+d);e.removeAttr("style");if(l.is(":visible")){l.focus()}else{k.find("select").focus()}})}}}else{if(k.hasClass(j)){e.stop(true)}else{if(!k.hasClass(d)||f){k.addClass(d);e.slideDown(h.timeOpen,function(){k.toggleClass(h.openClass).removeClass(j+" "+d)})}}}},checkHeight:function(){var d=this,g=d.config,e=d.container.find(g.options),f=e.find("li").length;if(f<g.showLimit){var h=0;e.css({opacity:0,display:"block"});h=e.find("li:first-child").outerHeight()*f;e.removeAttr("style").css("height",h+"px")}},enableKeyboardFunctions:function(){var d=this,e=d.config;d.container.on("keyup",e.openTrigger,function(v){var u=a(this),w=v.which;if(w==38||w==40){var r=d.container.find(e.options).find("ul"),o=r.find("li."+e.highlightClass),k=r.find("li").index(o);if(w==38&&k>0){k=k-1}else{if(w==40&&k!=r.find("li").length-1){k=k+1}}if(r.find("li").index(o)!=k){var l=r.find("li:eq("+k+")");l.find("> "+e.optionTrigger).trigger(e.event,[true]);if(d.container.hasClass(e.openClass)){d.container.find(e.options).scrollTop(l.position().top)}}}else{if((w>47&&w<91)||(w>95&&w<105)||(w==32&&u.data("query").length>0)){var j=d.container.find("select"),r=j.data("options")?j.data("options"):[],p=u.data("query")?u.data("query"):"",y=String.fromCharCode(w).toLowerCase(),x=true;p=p+y;u.data({query:p});clearTimeout(u.data("timer"));if(w==32){v.preventDefault()}if(!j.data("options")){u.data("counter",0);a.each(j.find("option"),function(z){r.push(a(this).attr("value"))});j.data("options",r)}x=d.loopOptions(r,p);if(x&&(p.charAt(0)==p.charAt(1))){u.data({query:p.slice(0,-1),counter:u.data("counter")+1});d.loopOptions(r,u.data("query"),u.data("counter"))}u.data("timer",setTimeout(function(){u.data({query:"",counter:0})},500))}else{if(w==33||w==34){var q=u.data("page")?u.data("page"):1,r=d.container.find(e.options),m=r.find("li."+e.highlightClass),f=0,g=0,s=r.find("li").length,i=0,h=0,n=0,t="";if(!r.is(":visible")){r.addClass("awsOverride").css({opacity:0,display:"block"})}f=r.height();g=r.find("ul").height();i=g/s;h=Math.floor(f/i);n=Math.ceil(g/(h*i));if(r.hasClass("awsOverride")){r.removeAttr("style").removeClass("awsOverride")}if(m.length>0){q=Math.floor((r.find("li").index(m)+1)/h)}if(w==33){q=q-1;if(q<=0){t=r.find("li:first-child");q=1}else{t=r.find("li:eq("+(h*q)+")")}}else{q=q+1;if(q>=n){q=n}if((h*q)>s){t=r.find("li:last-child")}else{t=r.find("li:eq("+(h*q)+")")}}u.data("page",q);t.find("> "+e.optionTrigger).trigger(e.event,[true]);if(d.container.hasClass(e.openClass)){d.container.find(e.options).scrollTop(t.position().top)}}else{if(w==36||w==35){var r=d.container.find(e.options),t=w==36?r.find("li:first-child"):r.find("li:last-child");t.find("> "+e.optionTrigger).trigger(e.event,[true]);r.scrollTop(t.position().top)}}}}}).on("keydown",e.openTrigger,function(f){if(f.which==32&&a(this).data("query").length>0){f.preventDefault()}})},enableWindowListeners:function(){var d=this,e=d.config;a(document).on("click",function(f){if(d.container.hasClass(e.openClass)&&!a.contains(d.container[0],f.target)){d.animateOptions(d,d.container.find(e.openTrigger))}});a(document).on("keydown",function(f){if(a.inArray(f.which,[33,34,35,36,38,40])>-1&&(d.container.hasClass(e.openClass)||d.container.find(e.openTrigger).hasClass("awsFocus"))){f.preventDefault()}})},generateListOptions:function(){var e=this,h=e.config,f=e.container.find(h.options),g=e.container.find("select"),d=[];if(f.find("ul").find("li").length==0){a.each(g.find("option"),function(k){var j=a(this),l=a(h.template);l.find("a").attr({href:"#","data-value":j.attr("value")}).append(j.text());d.push(l)});f.find("ul").append(d)}},handleCallback:function(g,e,f){var d=typeof f=="undefined"?this:f;typeof g=="function"?g.apply(this,e):d.trigger(g,e)},loopOptions:function(g,i,e){var d=this,h=d.config,f=true,j=0;a.each(g,function(k){if(g[k].slice(0,i.length).toLowerCase()==i){d.container.find(h.options).find("li:eq("+k+") > a").trigger(h.event,[true]);if(d.container.hasClass(h.openClass)){d.container.find(h.options).scrollTop(d.container.find(h.options).find("li:eq("+k+")").position().top)}if(!e||e==j){f=false;return false}else{if(typeof e=="number"){j++}}}});if(!e){return f}},parseOptions:function(d){var e=[];
32if(d){d=d.split(";");a.each(d,function(f,h){h=a.trim(h);if(h!==""){h=h.split(":");var g=a.trim(h.shift()),i=a.trim(h.join(":"));switch(i){case"true":case"yes":i=true;break;case"false":case"no":i=false;break}if(!isNaN(i)&&typeof(i)!="boolean"){i=parseFloat(i)}e[g]=i}});return e}},runAJAX:function(f){var d=this,e=d.config;a.ajax({url:e.ajax,cache:false,data:{awsCS:f},dataType:e.ajaxType,success:function(g){if(e.ajaxCallback){d.handleCallback(e.ajaxCallback,[g,false],d.container)}},error:function(g){if(e.ajaxCallback){d.handleCallback(e.ajaxCallback,[false,g],d.container)}}})},setConfiguration:function(){var d=a.extend({},this.settings,this.options,this.parseOptions(this.metadata));return d},updateHighlightClass:function(d){d.parent().addClass(this.config.highlightClass).siblings().removeClass(this.config.highlightClass)}};c.settings=c.prototype.settings;return this.each(function(){new c(this,b).init()})}}(jQuery));
33
34	/*!
35	* jQuery Cycle2; version: 2.1.6 build: 20141007
36	* http://jquery.malsup.com/cycle2/
37	* Copyright (c) 2014 M. Alsup; Dual licensed: MIT/GPL
38	*/
39	!function(a){"use strict";function b(a){return(a||"").toLowerCase()}var c="2.1.6";a.fn.cycle=function(c){var d;return 0!==this.length||a.isReady?this.each(function(){var d,e,f,g,h=a(this),i=a.fn.cycle.log;if(!h.data("cycle.opts")){(h.data("cycle-log")===!1||c&&c.log===!1||e&&e.log===!1)&&(i=a.noop),i("--c2 init--"),d=h.data();for(var j in d)d.hasOwnProperty(j)&&/^cycle[A-Z]+/.test(j)&&(g=d[j],f=j.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),i(f+":",g,"("+typeof g+")"),d[f]=g);e=a.extend({},a.fn.cycle.defaults,d,c||{}),e.timeoutId=0,e.paused=e.paused||!1,e.container=h,e._maxZ=e.maxZ,e.API=a.extend({_container:h},a.fn.cycle.API),e.API.log=i,e.API.trigger=function(a,b){return e.container.trigger(a,b),e.API},h.data("cycle.opts",e),h.data("cycle.API",e.API),e.API.trigger("cycle-bootstrap",[e,e.API]),e.API.addInitialSlides(),e.API.preInitSlideshow(),e.slides.length&&e.API.initSlideshow()}}):(d={s:this.selector,c:this.context},a.fn.cycle.log("requeuing slideshow (dom not ready)"),a(function(){a(d.s,d.c).cycle(c)}),this)},a.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var b=this.opts(),c=b.slides;b.slideCount=0,b.slides=a(),c=c.jquery?c:b.container.find(c),b.random&&c.sort(function(){return Math.random()-.5}),b.API.add(c)},preInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-pre-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.preInit)&&c.preInit(b),b._preInitialized=!0},postInitSlideshow:function(){var b=this.opts();b.API.trigger("cycle-post-initialize",[b]);var c=a.fn.cycle.transitions[b.fx];c&&a.isFunction(c.postInit)&&c.postInit(b)},initSlideshow:function(){var b,c=this.opts(),d=c.container;c.API.calcFirstSlide(),"static"==c.container.css("position")&&c.container.css("position","relative"),a(c.slides[c.currSlide]).css({opacity:1,display:"block",visibility:"visible"}),c.API.stackSlides(c.slides[c.currSlide],c.slides[c.nextSlide],!c.reverse),c.pauseOnHover&&(c.pauseOnHover!==!0&&(d=a(c.pauseOnHover)),d.hover(function(){c.API.pause(!0)},function(){c.API.resume(!0)})),c.timeout&&(b=c.API.getSlideOpts(c.currSlide),c.API.queueTransition(b,b.timeout+c.delay)),c._initialized=!0,c.API.updateView(!0),c.API.trigger("cycle-initialized",[c]),c.API.postInitSlideshow()},pause:function(b){var c=this.opts(),d=c.API.getSlideOpts(),e=c.hoverPaused||c.paused;b?c.hoverPaused=!0:c.paused=!0,e||(c.container.addClass("cycle-paused"),c.API.trigger("cycle-paused",[c]).log("cycle-paused"),d.timeout&&(clearTimeout(c.timeoutId),c.timeoutId=0,c._remainingTimeout-=a.now()-c._lastQueue,(c._remainingTimeout<0||isNaN(c._remainingTimeout))&&(c._remainingTimeout=void 0)))},resume:function(a){var b=this.opts(),c=!b.hoverPaused&&!b.paused;a?b.hoverPaused=!1:b.paused=!1,c||(b.container.removeClass("cycle-paused"),0===b.slides.filter(":animated").length&&b.API.queueTransition(b.API.getSlideOpts(),b._remainingTimeout),b.API.trigger("cycle-resumed",[b,b._remainingTimeout]).log("cycle-resumed"))},add:function(b,c){var d,e=this.opts(),f=e.slideCount,g=!1;"string"==a.type(b)&&(b=a.trim(b)),a(b).each(function(){var b,d=a(this);c?e.container.prepend(d):e.container.append(d),e.slideCount++,b=e.API.buildSlideOpts(d),e.slides=c?a(d).add(e.slides):e.slides.add(d),e.API.initSlide(b,d,--e._maxZ),d.data("cycle.opts",b),e.API.trigger("cycle-slide-added",[e,b,d])}),e.API.updateView(!0),g=e._preInitialized&&2>f&&e.slideCount>=1,g&&(e._initialized?e.timeout&&(d=e.slides.length,e.nextSlide=e.reverse?d-1:1,e.timeoutId||e.API.queueTransition(e)):e.API.initSlideshow())},calcFirstSlide:function(){var a,b=this.opts();a=parseInt(b.startingSlide||0,10),(a>=b.slides.length||0>a)&&(a=0),b.currSlide=a,b.reverse?(b.nextSlide=a-1,b.nextSlide<0&&(b.nextSlide=b.
vendor: 19,969 bytes, lines 39-50
39slides.length-1)):(b.nextSlide=a+1,b.nextSlide==b.slides.length&&(b.nextSlide=0))},calcNextSlide:function(){var a,b=this.opts();b.reverse?(a=b.nextSlide-1<0,b.nextSlide=a?b.slideCount-1:b.nextSlide-1,b.currSlide=a?0:b.nextSlide+1):(a=b.nextSlide+1==b.slides.length,b.nextSlide=a?0:b.nextSlide+1,b.currSlide=a?b.slides.length-1:b.nextSlide-1)},calcTx:function(b,c){var d,e=b;return e._tempFx?d=a.fn.cycle.transitions[e._tempFx]:c&&e.manualFx&&(d=a.fn.cycle.transitions[e.manualFx]),d||(d=a.fn.cycle.transitions[e.fx]),e._tempFx=null,this.opts()._tempFx=null,d||(d=a.fn.cycle.transitions.fade,e.API.log('Transition "'+e.fx+'" not found.  Using fade.')),d},prepareTx:function(a,b){var c,d,e,f,g,h=this.opts();return h.slideCount<2?void(h.timeoutId=0):(!a||h.busy&&!h.manualTrump||(h.API.stopTransition(),h.busy=!1,clearTimeout(h.timeoutId),h.timeoutId=0),void(h.busy||(0!==h.timeoutId||a)&&(d=h.slides[h.currSlide],e=h.slides[h.nextSlide],f=h.API.getSlideOpts(h.nextSlide),g=h.API.calcTx(f,a),h._tx=g,a&&void 0!==f.manualSpeed&&(f.speed=f.manualSpeed),h.nextSlide!=h.currSlide&&(a||!h.paused&&!h.hoverPaused&&h.timeout)?(h.API.trigger("cycle-before",[f,d,e,b]),g.before&&g.before(f,d,e,b),c=function(){h.busy=!1,h.container.data("cycle.opts")&&(g.after&&g.after(f,d,e,b),h.API.trigger("cycle-after",[f,d,e,b]),h.API.queueTransition(f),h.API.updateView(!0))},h.busy=!0,g.transition?g.transition(f,d,e,b,c):h.API.doTransition(f,d,e,b,c),h.API.calcNextSlide(),h.API.updateView()):h.API.queueTransition(f))))},doTransition:function(b,c,d,e,f){var g=b,h=a(c),i=a(d),j=function(){i.animate(g.animIn||{opacity:1},g.speed,g.easeIn||g.easing,f)};i.css(g.cssBefore||{}),h.animate(g.animOut||{},g.speed,g.easeOut||g.easing,function(){h.css(g.cssAfter||{}),g.sync||j()}),g.sync&&j()},queueTransition:function(b,c){var d=this.opts(),e=void 0!==c?c:b.timeout;return 0===d.nextSlide&&0===--d.loop?(d.API.log("terminating; loop=0"),d.timeout=0,e?setTimeout(function(){d.API.trigger("cycle-finished",[d])},e):d.API.trigger("cycle-finished",[d]),void(d.nextSlide=d.currSlide)):void 0!==d.continueAuto&&(d.continueAuto===!1||a.isFunction(d.continueAuto)&&d.continueAuto()===!1)?(d.API.log("terminating automatic transitions"),d.timeout=0,void(d.timeoutId&&clearTimeout(d.timeoutId))):void(e&&(d._lastQueue=a.now(),void 0===c&&(d._remainingTimeout=b.timeout),d.paused||d.hoverPaused||(d.timeoutId=setTimeout(function(){d.API.prepareTx(!1,!d.reverse)},e))))},stopTransition:function(){var a=this.opts();a.slides.filter(":animated").length&&(a.slides.stop(!1,!0),a.API.trigger("cycle-transition-stopped",[a])),a._tx&&a._tx.stopTransition&&a._tx.stopTransition(a)},advanceSlide:function(a){var b=this.opts();return clearTimeout(b.timeoutId),b.timeoutId=0,b.nextSlide=b.currSlide+a,b.nextSlide<0?b.nextSlide=b.slides.length-1:b.nextSlide>=b.slides.length&&(b.nextSlide=0),b.API.prepareTx(!0,a>=0),!1},buildSlideOpts:function(c){var d,e,f=this.opts(),g=c.data()||{};for(var h in g)g.hasOwnProperty(h)&&/^cycle[A-Z]+/.test(h)&&(d=g[h],e=h.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,b),f.API.log("["+(f.slideCount-1)+"]",e+":",d,"("+typeof d+")"),g[e]=d);g=a.extend({},a.fn.cycle.defaults,f,g),g.slideNum=f.slideCount;try{delete g.API,delete g.slideCount,delete g.currSlide,delete g.nextSlide,delete g.slides}catch(i){}return g},getSlideOpts:function(b){var c=this.opts();void 0===b&&(b=c.currSlide);var d=c.slides[b],e=a(d).data("cycle.opts");return a.extend({},c,e)},initSlide:function(b,c,d){var e=this.opts();c.css(b.slideCss||{}),d>0&&c.css("zIndex",d),isNaN(b.speed)&&(b.speed=a.fx.speeds[b.speed]||a.fx.speeds._default),b.sync||(b.speed=b.speed/2),c.addClass(e.slideClass)},updateView:function(a,b){var c=this.opts();if(c._initialized){var d=c.API.getSlideOpts(),e=c.slides[c.currSlide];!a&&b!==!0&&(c.API.trigger("cycle-update-view-before",[c,d,e]),c.updateView<0)||(c.slideActiveClass&&c.slides.removeClass(c.slideActiveClass).eq(c.currSlide).addClass(c.slideActiveClass),a&&c.hideNonActive&&c.slides.filter(":not(."+c.slideActiveClass+")").css("visibility","hidden"),0===c.updateView&&setTimeout(function(){c.API.trigger("cycle-update-view",[c,d,e,a])},d.speed/(c.sync?2:1)),0!==c.updateView&&c.API.trigger("cycle-update-view",[c,d,e,a]),a&&c.API.trigger("cycle-update-view-after",[c,d,e]))}},getComponent:function(b){var c=this.opts(),d=c[b];return"string"==typeof d?/^\s*[\>|\+|~]/.test(d)?c.container.find(d):a(d):d.jquery?d:a(d)},stackSlides:function(b,c,d){var e=this.opts();b||(b=e.slides[e.currSlide],c=e.slides[e.nextSlide],d=!e.reverse),a(b).css("zIndex",e.maxZ);var f,g=e.maxZ-2,h=e.slideCount;if(d){for(f=e.currSlide+1;h>f;f++)a(e.slides[f]).css("zIndex",g--);for(f=0;f<e.currSlide;f++)a(e.slides[f]).css("zIndex",g--)}else{for(f=e.currSlide-1;f>=0;f--)a(e.slides[f]).css("zIndex",g--);for(f=h-1;f>e.currSlide;f--)a(e.slides[f]).css("zIndex",g--)}a(c).css("zIndex",e.maxZ-1)},getSlideIndex:function(a){return this.opts().slides.index(a)}},a.fn.cycle.log=function(){window.console&&console.log&&console.log("[cycle2] "+Array.prototype.join.call(arguments," "))},a.fn.cycle.version=function(){return"Cycle2: "+c},a.fn.cycle.transitions={custom:{},none:{before:function(a,b,c,d){a.API.stackSlides(c,b,d),a.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:0,visibility:"visible",display:"block"}),b.animIn={opacity:1},b.animOut={opacity:0}}},fadeout:{before:function(b,c,d,e){var f=b.API.getSlideOpts(b.nextSlide).slideCss||{};b.API.stackSlides(c,d,e),b.cssBefore=a.extend(f,{opacity:1,visibility:"visible",display:"block"}),b.animOut={opacity:0}}},scrollHorz:{before:function(a,b,c,d){a.API.stackSlides(b,c,d);var e=a.container.css("overflow","hidden").width();a.cssBefore={left:d?e:-e,top:0,opacity:1,visibility:"visible",display:"block"},a.cssAfter={zIndex:a._maxZ-2,left:0},a.animIn={left:0},a.animOut={left:d?-e:e}}}},a.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:void 0,manualSpeed:void 0,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:"> img",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0},a(document).ready(function(){a(a.fn.cycle.defaults.autoSelector).cycle()})}(jQuery),/*! Cycle2 autoheight plugin; Copyright (c) M.Alsup, 2012; version: 20130913 */
40	function(a){"use strict";function b(b,d){var e,f,g,h=d.autoHeight;if("container"==h)f=a(d.slides[d.currSlide]).outerHeight(),d.container.height(f);else if(d._autoHeightRatio)d.container.height(d.container.width()/d._autoHeightRatio);else if("calc"===h||"number"==a.type(h)&&h>=0){if(g="calc"===h?c(b,d):h>=d.slides.length?0:h,g==d._sentinelIndex)return;d._sentinelIndex=g,d._sentinel&&d._sentinel.remove(),e=a(d.slides[g].cloneNode(!0)),e.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel"),e.css({position:"static",visibility:"hidden",display:"block"}).prependTo(d.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active"),e.find("*").css("visibility","hidden"),d._sentinel=e}}function c(b,c){var d=0,e=-1;return c.slides.each(function(b){var c=a(this).height();c>e&&(e=c,d=b)}),d}function d(b,c,d,e){var f=a(e).outerHeight();c.container.animate({height:f},c.autoHeightSpeed,c.autoHeightEasing)}function e(c,f){f._autoHeightOnResize&&(a(window).off("resize orientationchange",f._autoHeightOnResize),f._autoHeightOnResize=null),f.container.off("cycle-slide-added cycle-slide-removed",b),f.container.off("cycle-destroyed",e),f.container.off("cycle-before",d),f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}a.extend(a.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null}),a(document).on("cycle-initialized",function(c,f){function g(){b(c,f)}var h,i=f.autoHeight,j=a.type(i),k=null;("string"===j||"number"===j)&&(f.container.on("cycle-slide-added cycle-slide-removed",b),f.container.on("cycle-destroyed",e),"container"==i?f.container.on("cycle-before",d):"string"===j&&/\d+\:\d+/.test(i)&&(h=i.match(/(\d+)\:(\d+)/),h=h[1]/h[2],f._autoHeightRatio=h),"number"!==j&&(f._autoHeightOnResize=function(){clearTimeout(k),k=setTimeout(g,50)},a(window).on("resize orientationchange",f._autoHeightOnResize)),setTimeout(g,30))})}(jQuery),/*! caption plugin for Cycle2;  version: 20130306 */
41	function(a){"use strict";a.extend(a.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}</div><div>{{desc}}</div>",captionModule:"caption"}),a(document).on("cycle-update-view",function(b,c,d,e){if("caption"===c.captionModule){a.each(["caption","overlay"],function(){var a=this,b=d[a+"Template"],f=c.API.getComponent(a);f.length&&b?(f.html(c.API.tmpl(b,d,c,e)),f.show()):f.hide()})}}),a(document).on("cycle-destroyed",function(b,c){var d;a.each(["caption","overlay"],function(){var a=this,b=c[a+"Template"];c[a]&&b&&(d=c.API.getComponent("caption"),d.empty())})})}(jQuery),/*! command plugin for Cycle2;  version: 20140415 */
42	function(a){"use strict";var b=a.fn.cycle;a.fn.cycle=function(c){var d,e,f,g=a.makeArray(arguments);return"number"==a.type(c)?this.cycle("goto",c):"string"==a.type(c)?this.each(function(){var h;return d=c,f=a(this).data("cycle.opts"),void 0===f?void b.log('slideshow must be initialized before sending commands; "'+d+'" ignored'):(d="goto"==d?"jump":d,e=f.API[d],a.isFunction(e)?(h=a.makeArray(g),h.shift(),e.apply(f.API,h)):void b.log("unknown command: ",d))}):b.apply(this,arguments)},a.extend(a.fn.cycle,b),a.extend(b.API,{next:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?-1:1;a.allowWrap===!1&&a.currSlide+b>=a.slideCount||(a.API.advanceSlide(b),a.API.trigger("cycle-next",[a]).log("cycle-next"))}},prev:function(){var a=this.opts();if(!a.busy||a.manualTrump){var b=a.reverse?1:-1;a.allowWrap===!1&&a.currSlide+b<0||(a.API.advanceSlide(b),a.API.trigger("cycle-prev",[a]).log("cycle-prev"))}},destroy:function(){this.stop();var b=this.opts(),c=a.isFunction(a._data)?a._data:a.noop;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stop(),b.API.trigger("cycle-destroyed",[b]).log("cycle-destroyed"),b.container.removeData(),c(b.container[0],"parsedAttrs",!1),b.retainStylesOnDestroy||(b.container.removeAttr("style"),b.slides.removeAttr("style"),b.slides.removeClass(b.slideActiveClass)),b.slides.each(function(){var d=a(this);d.removeData(),d.removeClass(b.slideClass),c(this,"parsedAttrs",!1)})},jump:function(a,b){var c,d=this.opts();if(!d.busy||d.manualTrump){var e=parseInt(a,10);if(isNaN(e)||0>e||e>=d.slides.length)return void d.API.log("goto: invalid slide index: "+e);if(e==d.currSlide)return void d.API.log("goto: skipping, already on slide",e);d.nextSlide=e,clearTimeout(d.timeoutId),d.timeoutId=0,d.API.log("goto: ",e," (zero-index)"),c=d.currSlide<d.nextSlide,d._tempFx=b,d.API.prepareTx(!0,c)}},stop:function(){var b=this.opts(),c=b.container;clearTimeout(b.timeoutId),b.timeoutId=0,b.API.stopTransition(),b.pauseOnHover&&(b.pauseOnHover!==!0&&(c=a(b.pauseOnHover)),c.off("mouseenter mouseleave")),b.API.trigger("cycle-stopped",[b]).log("cycle-stopped")},reinit:function(){var a=this.opts();a.API.destroy(),a.container.cycle()},remove:function(b){for(var c,d,e=this.opts(),f=[],g=1,h=0;h<e.slides.length;h++)c=e.slides[h],h==b?d=c:(f.push(c),a(c).data("cycle.opts").slideNum=g,g++);d&&(e.slides=a(f),e.slideCount--,a(d).remove(),b==e.currSlide?e.API.advanceSlide(1):b<e.currSlide?e.currSlide--:e.currSlide++,e.API.trigger("cycle-slide-removed",[e,b,d]).log("cycle-slide-removed"),e.API.updateView())}}),a(document).on("click.cycle","[data-cycle-cmd]",function(b){b.preventDefault();var c=a(this),d=c.data("cycle-cmd"),e=c.data("cycle-context")||".cycle-slideshow";a(e).cycle(d,c.data("cycle-arg"))})}(jQuery),/*! hash plugin for Cycle2;  version: 20130905 */
43	function(a){"use strict";function b(b,c){var d;return b._hashFence?void(b._hashFence=!1):(d=window.location.hash.substring(1),void b.slides.each(function(e){if(a(this).data("cycle-hash")==d){if(c===!0)b.startingSlide=e;else{var f=b.currSlide<e;b.nextSlide=e,b.API.prepareTx(!0,f)}return!1}}))}a(document).on("cycle-pre-initialize",function(c,d){b(d,!0),d._onHashChange=function(){b(d,!1)},a(window).on("hashchange",d._onHashChange)}),a(document).on("cycle-update-view",function(a,b,c){c.hash&&"#"+c.hash!=window.location.hash&&(b._hashFence=!0,window.location.hash=c.hash)}),a(document).on("cycle-destroyed",function(b,c){c._onHashChange&&a(window).off("hashchange",c._onHashChange)})}(jQuery),/*! loader plugin for Cycle2;  version: 20131121 */
44	function(a){"use strict";a.extend(a.fn.cycle.defaults,{loader:!1}),a(document).on("cycle-bootstrap",function(b,c){function d(b,d){function f(b){var f;"wait"==c.loader?(h.push(b),0===j&&(h.sort(g),e.apply(c.API,[h,d]),c.container.removeClass("cycle-loading"))):(f=a(c.slides[c.currSlide]),e.apply(c.API,[b,d]),f.show(),c.container.removeClass("cycle-loading"))}function g(a,b){return a.data("index")-b.data("index")}var h=[];if("string"==a.type(b))b=a.trim(b);else if("array"===a.type(b))for(var i=0;i<b.length;i++)b[i]=a(b[i])[0];b=a(b);var j=b.length;j&&(b.css("visibility","hidden").appendTo("body").each(function(b){function g(){0===--i&&(--j,f(k))}var i=0,k=a(this),l=k.is("img")?k:k.find("img");return k.data("index",b),l=l.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'),l.length?(i=l.length,void l.each(function(){this.complete?g():a(this).load(function(){g()}).on("error",function(){0===--i&&(c.API.log("slide skipped; img not loaded:",this.src),0===--j&&"wait"==c.loader&&e.apply(c.API,[h,d]))})})):(--j,void h.push(k))}),j&&c.container.addClass("cycle-loading"))}var e;c.loader&&(e=c.API.add,c.API.add=d)})}(jQuery),/*! pager plugin for Cycle2;  version: 20140415 */
45	function(a){"use strict";function b(b,c,d){var e,f=b.API.getComponent("pager");f.each(function(){var f=a(this);if(c.pagerTemplate){var g=b.API.tmpl(c.pagerTemplate,c,b,d[0]);e=a(g).appendTo(f)}else e=f.children().eq(b.slideCount-1);e.on(b.pagerEvent,function(a){b.pagerEventBubble||a.preventDefault(),b.API.page(f,a.currentTarget)})})}function c(a,b){var c=this.opts();if(!c.busy||c.manualTrump){var d=a.children().index(b),e=d,f=c.currSlide<e;c.currSlide!=e&&(c.nextSlide=e,c._tempFx=c.pagerFx,c.API.prepareTx(!0,f),c.API.trigger("cycle-pager-activated",[c,a,b]))}}a.extend(a.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:void 0,pagerTemplate:"<span>&bull;</span>"}),a(document).on("cycle-bootstrap",function(a,c,d){d.buildPagerLink=b}),a(document).on("cycle-slide-added",function(a,b,d,e){b.pager&&(b.API.buildPagerLink(b,d,e),b.API.page=c)}),a(document).on("cycle-slide-removed",function(b,c,d){if(c.pager){var e=c.API.getComponent("pager");e.each(function(){var b=a(this);a(b.children()[d]).remove()})}}),a(document).on("cycle-update-view",function(b,c){var d;c.pager&&(d=c.API.getComponent("pager"),d.each(function(){a(this).children().removeClass(c.pagerActiveClass).eq(c.currSlide).addClass(c.pagerActiveClass)}))}),a(document).on("cycle-destroyed",function(a,b){var c=b.API.getComponent("pager");c&&(c.children().off(b.pagerEvent),b.pagerTemplate&&c.empty())})}(jQuery),/*! prevnext plugin for Cycle2;  version: 20140408 */
46	function(a){"use strict";a.extend(a.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1}),a(document).on("cycle-initialized",function(a,b){if(b.API.getComponent("next").on(b.nextEvent,function(a){a.preventDefault(),b.API.next()}),b.API.getComponent("prev").on(b.prevEvent,function(a){a.preventDefault(),b.API.prev()}),b.swipe){var c=b.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",d=b.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";b.container.on(c,function(){b._tempFx=b.swipeFx,b.API.next()}),b.container.on(d,function(){b._tempFx=b.swipeFx,b.API.prev()})}}),a(document).on("cycle-update-view",function(a,b){if(!b.allowWrap){var c=b.disabledClass,d=b.API.getComponent("next"),e=b.API.getComponent("prev"),f=b._prevBoundry||0,g=void 0!==b._nextBoundry?b._nextBoundry:b.slideCount-1;b.currSlide==g?d.addClass(c).prop("disabled",!0):d.removeClass(c).prop("disabled",!1),b.currSlide===f?e.addClass(c).prop("disabled",!0):e.removeClass(c).prop("disabled",!1)}}),a(document).on("cycle-destroyed",function(a,b){b.API.getComponent("prev").off(b.nextEvent),b.API.getComponent("next").off(b.prevEvent),b.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),/*! progressive loader plugin for Cycle2;  version: 20130315 */
47	function(a){"use strict";a.extend(a.fn.cycle.defaults,{progressive:!1}),a(document).on("cycle-pre-initialize",function(b,c){if(c.progressive){var d,e,f=c.API,g=f.next,h=f.prev,i=f.prepareTx,j=a.type(c.progressive);if("array"==j)d=c.progressive;else if(a.isFunction(c.progressive))d=c.progressive(c);else if("string"==j){if(e=a(c.progressive),d=a.trim(e.html()),!d)return;if(/^(\[)/.test(d))try{d=a.parseJSON(d)}catch(k){return void f.log("error parsing progressive slides",k)}else d=d.split(new RegExp(e.data("cycle-split")||"\n")),d[d.length-1]||d.pop()}i&&(f.prepareTx=function(a,b){var e,f;return a||0===d.length?void i.apply(c.API,[a,b]):void(b&&c.currSlide==c.slideCount-1?(f=d[0],d=d.slice(1),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.API.advanceSlide(1)},50)}),c.API.add(f)):b||0!==c.currSlide?i.apply(c.API,[a,b]):(e=d.length-1,f=d[e],d=d.slice(0,e),c.container.one("cycle-slide-added",function(a,b){setTimeout(function(){b.currSlide=1,b.API.advanceSlide(-1)},50)}),c.API.add(f,!0)))}),g&&(f.next=function(){var a=this.opts();if(d.length&&a.currSlide==a.slideCount-1){var b=d[0];d=d.slice(1),a.container.one("cycle-slide-added",function(a,b){g.apply(b.API),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(b)}else g.apply(a.API)}),h&&(f.prev=function(){var a=this.opts();if(d.length&&0===a.currSlide){var b=d.length-1,c=d[b];d=d.slice(0,b),a.container.one("cycle-slide-added",function(a,b){b.currSlide=1,b.API.advanceSlide(-1),b.container.removeClass("cycle-loading")}),a.container.addClass("cycle-loading"),a.API.add(c,!0)}else h.apply(a.API)})}})}(jQuery),/*! tmpl plugin for Cycle2;  version: 20121227 */
48	function(a){"use strict";a.extend(a.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"}),a.extend(a.fn.cycle.API,{tmpl:function(b,c){var d=new RegExp(c.tmplRegex||a.fn.cycle.defaults.tmplRegex,"g"),e=a.makeArray(arguments);return e.shift(),b.replace(d,function(b,c){var d,f,g,h,i=c.split(".");for(d=0;d<e.length;d++)if(g=e[d]){if(i.length>1)for(h=g,f=0;f<i.length;f++)g=h,h=h[i[f]]||c;else h=g[c];if(a.isFunction(h))return h.apply(g,e);if(void 0!==h&&null!==h&&h!=c)return h}return c})}})}(jQuery);
49	/*! carousel transition plugin for Cycle2;  version: 20130528 */
50	(function(a){a(document).on("cycle-bootstrap",function(d,c,b){if(c.fx!=="carousel"){return}b.getSlideIndex=function(g){var f=this.opts()._carouselWrap.children();var e=f.index(g);return e%f.length};b.next=function(){var e=c.reverse?-1:1;if(c.allowWrap===false&&(c.currSlide+e)>c.slideCount-c.carouselVisible){return}c.API.advanceSlide(e);c.API.trigger("cycle-next",[c]).log("cycle-next")}});a.fn.cycle.transitions.carousel={preInit:function(c){c.hideNonActive=false;c.container.on("cycle-destroyed",a.proxy(this.onDestroy,c.API));c.API.stopTransition=this.stopTransition;for(var b=0;b<c.startingSlide;b++){c.container.append(c.slides[0])}},postInit:function(b){var g,f,k,l,c;var h=b.carouselVertical;if(b.carouselVisible&&b.carouselVisible>b.slideCount){b.carouselVisible=b.slideCount-1}var e=b.carouselVisible||b.slides.length;
50var d={display:h?"block":"inline-block",position:"static"};b.container.css({position:"relative",overflow:"hidden"});b.slides.css(d);b._currSlide=b.currSlide;c=a('<div class="cycle-carousel-wrap"></div>').prependTo(b.container).css({margin:0,padding:0,top:0,left:0,position:"absolute"}).append(b.slides);b._carouselWrap=c;if(!h){c.css("white-space","nowrap")}if(b.allowWrap!==false){for(f=0;f<(b.carouselVisible===undefined?2:1);f++){for(g=0;g<b.slideCount;g++){c.append(b.slides[g].cloneNode(true))}g=b.slideCount;while(g--){c.prepend(b.slides[g].cloneNode(true))}}c.find(".cycle-slide-active").removeClass("cycle-slide-active");b.slides.eq(b.startingSlide).addClass("cycle-slide-active")}if(b.pager&&b.allowWrap===false){l=b.slideCount-e;a(b.pager).children().filter(":gt("+l+")").hide()}b._nextBoundry=b.slideCount-b.carouselVisible;this.prepareDimensions(b)},prepareDimensions:function(f){var h,i,c,e,d;var b=f.carouselVertical;var g=f.carouselVisible||f.slides.length;if(f.carouselFluid&&f.carouselVisible){if(!f._carouselResizeThrottle){this.fluidSlides(f)}}else{if(f.carouselVisible&&f.carouselSlideDimension){h=g*f.carouselSlideDimension;f.container[b?"height":"width"](h)}else{if(f.carouselVisible){h=g*a(f.slides[0])[b?"outerHeight":"outerWidth"](true);f.container[b?"height":"width"](h)}}}i=(f.carouselOffset||0);if(f.allowWrap!==false){if(f.carouselSlideDimension){i-=((f.slideCount+f.currSlide)*f.carouselSlideDimension)}else{e=f._carouselWrap.children();for(d=0;d<(f.slideCount+f.currSlide);d++){i-=a(e[d])[b?"outerHeight":"outerWidth"](true)}}}f._carouselWrap.css(b?"top":"left",i)},fluidSlides:function(f){var g;var b=f.slides.eq(0);var d=b.outerWidth()-b.width();var h=this.prepareDimensions;a(window).on("resize",c);f._carouselResizeThrottle=c;e();function c(){clearTimeout(g);g=setTimeout(e,20)}function e(){f._carouselWrap.stop(false,true);var i=f.container.width()/f.carouselVisible;i=Math.ceil(i-d);f._carouselWrap.children().width(i);if(f._sentinel){f._sentinel.width(i)}h(f)}},transition:function(b,m,g,e,k){var i,h={};var c=b.nextSlide-b.currSlide;var f=b.carouselVertical;var d=b.speed;if(b.allowWrap===false){e=c>0;var l=b._currSlide;var j=b.slideCount-b.carouselVisible;if(c>0&&b.nextSlide>j&&l==j){c=0}else{if(c>0&&b.nextSlide>j){c=b.nextSlide-l-(b.nextSlide-j)}else{if(c<0&&b.currSlide>j&&b.nextSlide>j){c=0}else{if(c<0&&b.currSlide>j){c+=b.currSlide-j}else{l=b.currSlide}}}}i=this.getScroll(b,f,l,c);b.API.opts()._currSlide=b.nextSlide>j?j:b.nextSlide}else{if(e&&b.nextSlide===0){i=this.getDim(b,b.currSlide,f);k=this.genCallback(b,e,f,k)}else{if(!e&&b.nextSlide==b.slideCount-1){i=this.getDim(b,b.currSlide,f);k=this.genCallback(b,e,f,k)}else{i=this.getScroll(b,f,b.currSlide,c)}}}h[f?"top":"left"]=e?("-="+i):("+="+i);if(b.throttleSpeed){d=(i/a(b.slides[0])[f?"height":"width"]())*b.speed}b._carouselWrap.animate(h,d,b.easing,k)},getDim:function(e,d,c){var b=a(e.slides[d]);return b[c?"outerHeight":"outerWidth"](true)},getScroll:function(f,c,e,b){var d,g=0;if(b>0){for(d=e;d<e+b;d++){g+=this.getDim(f,d,c)}}else{for(d=e;d>e+b;d--){g+=this.getDim(f,d,c)}}return g},genCallback:function(d,c,b,e){return function(){var g=a(d.slides[d.nextSlide]).position();var f=0-g[b?"top":"left"]+(d.carouselOffset||0);d._carouselWrap.css(d.carouselVertical?"top":"left",f);e()}},stopTransition:function(){var b=this.opts();b.slides.stop(false,true);b._carouselWrap.stop(false,true)},onDestroy:function(c){var b=this.opts();if(b._carouselResizeThrottle){a(window).off("resize",b._carouselResizeThrottle)}b.slides.prependTo(b.container);b._carouselWrap.remove()}}})(jQuery);
51
52	/* Swipe Plugin for Cycle2; Copyright (c) 2012 M. Alsup; v20141007 */
53	!function(a){"use strict";a.event.special.swipe=a.event.special.swipe||{scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var b=a(this);b.bind("touchstart",function(c){function d(b){if(g){var c=b.originalEvent.touches?b.originalEvent.touches[0]:b;e={time:(new Date).getTime(),coords:[c.pageX,c.pageY]},Math.abs(g.coords[0]-e.coords[0])>a.event.special.swipe.scrollSupressionThreshold&&b.preventDefault()}}var e,f=c.originalEvent.touches?c.originalEvent.touches[0]:c,g={time:(new Date).getTime(),coords:[f.pageX,f.pageY],origin:a(c.target)};b.bind("touchmove",d).one("touchend",function(){b.unbind("touchmove",d),g&&e&&e.time-g.time<a.event.special.swipe.durationThreshold&&Math.abs(g.coords[0]-e.coords[0])>a.event.special.swipe.horizontalDistanceThreshold&&Math.abs(g.coords[1]-e.coords[1])<a.event.special.swipe.verticalDistanceThreshold&&g.origin.trigger("swipe").trigger(g.coords[0]>
53e.coords[0]?"swipeleft":"swiperight"),g=e=void 0})})}},a.event.special.swipeleft=a.event.special.swipeleft||{setup:function(){a(this).bind("swipe",a.noop)}},a.event.special.swiperight=a.event.special.swiperight||a.event.special.swipeleft}(jQuery);
54
55	// Visibility jQuery Plugin
56	!function(t){var i=t(window);t.fn.visible=function(t,e,o){if(!(this.length<1)){var r=this.length>1?this.eq(0):this,n=r.get(0),f=i.width(),h=i.height(),o=o?o:"both",l=e===!0?n.offsetWidth*n.offsetHeight:!0;if("function"==typeof n.getBoundingClientRect){var g=n.getBoundingClientRect(),u=g.top>=0&&g.top<h,s=g.bottom>0&&g.bottom<=h,c=g.left>=0&&g.left<f,a=g.right>0&&g.right<=f,v=t?u||s:u&&s,b=t?c||a:c&&a;if("both"===o)return l&&v&&b;if("vertical"===o)return l&&v;if("horizontal"===o)return l&&b}else{var d=i.scrollTop(),p=d+h,w=i.scrollLeft(),m=w+f,y=r.offset(),z=y.top,B=z+r.height(),C=y.left,R=C+r.width(),j=t===!0?B:z,q=t===!0?z:B,H=t===!0?R:C,L=t===!0?C:R;if("both"===o)return!!l&&p>=q&&j>=d&&m>=L&&H>=w;if("vertical"===o)return!!l&&p>=q&&j>=d;if("horizontal"===o)return!!l&&m>=L&&H>=w}}}}(jQuery);
57
58	/* == jquery mousewheel plugin == Version: 3.1.13, License: MIT License (MIT) */
59	!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>
vendor: 40,493 bytes, lines 59-63
59n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
60/* == malihu jquery custom scrollbar plugin == Version: 3.1.3, License: MIT License (MIT) */
61!function(e){"undefined"!=typeof module&&module.exports?module.exports=e:e(jQuery,window,document)}(function(e){!function(t){var o="function"==typeof define&&define.amd,a="undefined"!=typeof module&&module.exports,n="https:"==document.location.protocol?"https:":"http:",i="cdnjs.cloudflare.com/ajax/libs/jquery-mousewheel/3.1.13/jquery.mousewheel.min.js";o||(a?require("jquery-mousewheel")(e):e.event.special.mousewheel||e("head").append(decodeURI("%3Cscript src="+n+"//"+i+"%3E%3C/script%3E"))),t()}(function(){var t,o="mCustomScrollbar",a="mCS",n=".mCustomScrollbar",i={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}},r=0,l={},s=window.attachEvent&&!window.addEventListener?1:0,c=!1,d=["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"],u={init:function(t){var t=e.extend(!0,{},i,t),o=f.call(this);if(t.live){var s=t.liveSelector||this.selector||n,c=e(s);if("off"===t.live)return void m(s);l[s]=setTimeout(function(){c.mCustomScrollbar(t),"once"===t.live&&c.length&&m(s)},500)}else m(s);return t.setWidth=t.set_width?t.set_width:t.setWidth,t.setHeight=t.set_height?t.set_height:t.setHeight,t.axis=t.horizontalScroll?"x":p(t.axis),t.scrollInertia=t.scrollInertia>0&&t.scrollInertia<17?17:t.scrollInertia,"object"!=typeof t.mouseWheel&&1==t.mouseWheel&&(t.mouseWheel={enable:!0,scrollAmount:"auto",axis:"y",preventDefault:!1,deltaFactor:"auto",normalizeDelta:!1,invert:!1}),t.mouseWheel.scrollAmount=t.mouseWheelPixels?t.mouseWheelPixels:t.mouseWheel.scrollAmount,t.mouseWheel.normalizeDelta=t.advanced.normalizeMouseWheelDelta?t.advanced.normalizeMouseWheelDelta:t.mouseWheel.normalizeDelta,t.scrollButtons.scrollType=g(t.scrollButtons.scrollType),h(t),e(o).each(function(){var o=e(this);if(!o.data(a)){o.data(a,{idx:++r,opt:t,scrollRatio:{y:null,x:null},overflowed:null,contentReset:{y:null,x:null},bindEvents:!1,tweenRunning:!1,sequential:{},langDir:o.css("direction"),cbOffsets:null,trigger:null,poll:{size:{o:0,n:0},img:{o:0,n:0},change:{o:0,n:0}}});var n=o.data(a),i=n.opt,l=o.data("mcs-axis"),s=o.data("mcs-scrollbar-position"),c=o.data("mcs-theme");l&&(i.axis=l),s&&(i.scrollbarPosition=s),c&&(i.theme=c,h(i)),v.call(this),n&&i.callbacks.onCreate&&"function"==typeof i.callbacks.onCreate&&i.callbacks.onCreate.call(this),e("#mCSB_"+n.idx+"_container img:not(."+d[2]+")").addClass(d[2]),u.update.call(null,o)}})},update:function(t,o){var n=t||f.call(this);return e(n).each(function(){var t=e(this);if(t.data(a)){var n=t.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container"),l=e("#mCSB_"+n.idx),s=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];if(!r.length)return;n.tweenRunning&&N(t),o&&n&&i.callbacks.onBeforeUpdate&&"function"==typeof i.callbacks.onBeforeUpdate&&i.callbacks.onBeforeUpdate.call(this),t.hasClass(d[3])&&t.removeClass(d[3]),t.hasClass(d[4])&&t.removeClass(d[4]),l.css("max-height","none"),l.height()!==t.height()&&l.css("max-height",t.height()),_.call(this),"y"===i.axis||i.advanced.autoExpandHorizontalScroll||r.css("width",x(r)),n.overflowed=y.call(this),M.call(this),i.autoDraggerLength&&S.call(this),b.call(this),T.call(this);var c=[Math.abs(r[0].offsetTop),Math.abs(r[0].offsetLeft)];"x"!==i.axis&&(n.overflowed[0]?s[0].height()>s[0].parent().height()?B.call(this):(V(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}),n.contentReset.y=null):(B.call(this),"y"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[1]&&V(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}))),"y"!==i.axis&&(n.overflowed[1]?s[1].width()>s[1].parent().width()?B.call(this):(V(t,c[1].toString(),{dir:"x",dur:0,overwrite:"none"}),n.contentReset.x=null):(B.call(this),"x"===i.axis?k.call(this):"yx"===i.axis&&n.overflowed[0]&&V(t,c[0].toString(),{dir:"y",dur:0,overwrite:"none"}))),o&&n&&(2===o&&i.callbacks.onImageLoad&&"function"==typeof i.callbacks.onImageLoad?i.callbacks.onImageLoad.call(this):3===o&&i.callbacks.onSelectorChange&&"function"==typeof i.callbacks.onSelectorChange?i.callbacks.onSelectorChange.call(this):i.callbacks.onUpdate&&"function"==typeof i.callbacks.onUpdate&&i.callbacks.onUpdate.call(this)),X.call(this)}})},scrollTo:function(t,o){if("undefined"!=typeof t&&null!=t){var n=f.call(this);return e(n).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l={trigger:"external",scrollInertia:r.scrollInertia,scrollEasing:"mcsEaseInOut",moveDragger:!1,timeout:60,callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},s=e.extend(!0,{},l,o),c=q.call(this,t),d=s.scrollInertia>0&&s.scrollInertia<17?17:s.scrollInertia;c[0]=Y.call(this,c[0],"y"),c[1]=Y.call(this,c[1],"x"),s.moveDragger&&(c[0]*=i.scrollRatio.y,c[1]*=i.scrollRatio.x),s.dur=oe()?0:d,setTimeout(function(){null!==c[0]&&"undefined"!=typeof c[0]&&"x"!==r.axis&&i.overflowed[0]&&(s.dir="y",s.overwrite="all",V(n,c[0].toString(),s)),null!==c[1]&&"undefined"!=typeof c[1]&&"y"!==r.axis&&i.overflowed[1]&&(s.dir="x",s.overwrite="none",V(n,c[1].toString(),s))},s.timeout)}})}},stop:function(){var t=f.call(this);return e(t).each(function(){var t=e(this);t.data(a)&&N(t)})},disable:function(t){var o=f.call(this);return e(o).each(function(){var o=e(this);if(o.data(a)){{o.data(a)}X.call(this,"remove"),k.call(this),t&&B.call(this),M.call(this,!0),o.addClass(d[3])}})},destroy:function(){var t=f.call(this);return e(t).each(function(){var n=e(this);if(n.data(a)){var i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx),s=e("#mCSB_"+i.idx+"_container"),c=e(".mCSB_"+i.idx+"_scrollbar");r.live&&m(r.liveSelector||e(t).selector),X.call(this,"remove"),k.call(this),B.call(this),n.removeData(a),K(this,"mcs"),c.remove(),s.find("img."+d[2]).removeClass(d[2]),l.replaceWith(s.contents()),n.removeClass(o+" _"+a+"_"+i.idx+" "+d[6]+" "+d[7]+" "+d[5]+" "+d[3]).addClass(d[4])}})}},f=function(){return"object"!=typeof e(this)||e(this).length<1?n:this},h=function(t){var o=["rounded","rounded-dark","rounded-dots","rounded-dots-dark"],a=["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"],n=["minimal","minimal-dark"],i=["minimal","minimal-dark"],r=["minimal","minimal-dark"];t.autoDraggerLength=e.inArray(t.theme,o)>-1?!1:t.autoDraggerLength,t.autoExpandScrollbar=e.inArray(t.theme,a)>-1?!1:t.autoExpandScrollbar,t.scrollButtons.enable=e.inArray(t.theme,n)>-1?!1:t.scrollButtons.enable,t.autoHideScrollbar=e.inArray(t.theme,i)>-1?!0:t.autoHideScrollbar,t.scrollbarPosition=e.inArray(t.theme,r)>-1?"outside":t.scrollbarPosition},m=function(e){l[e]&&(clearTimeout(l[e]),K(l,e))},p=function(e){return"yx"===e||"xy"===e||"auto"===e?"yx":"x"===e||"horizontal"===e?"x":"y"},g=function(e){return"stepped"===e||"pixels"===e||"step"===e||"click"===e?"stepped":"stepless"},v=function(){var t=e(this),n=t.data(a),i=n.opt,r=i.autoExpandScrollbar?" "+d[1]+"_expand":"",l=["<div id='mCSB_"+n.idx+"_scrollbar_vertical' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_vertical"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_vertical' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>","<div id='mCSB_"+n.idx+"_scrollbar_horizontal' class='mCSB_scrollTools mCSB_"+n.idx+"_scrollbar mCS-"+i.theme+" mCSB_scrollTools_horizontal"+r+"'><div class='"+d[12]+"'><div id='mCSB_"+n.idx+"_dragger_horizontal' class='mCSB_dragger' style='position:absolute;' oncontextmenu='return false;'><div class='mCSB_dragger_bar' /></div><div class='mCSB_draggerRail' /></div></div>"],s="yx"===i.axis?"mCSB_vertical_horizontal":"x"===i.axis?"mCSB_horizontal":"mCSB_vertical",c="yx"===i.axis?l[0]+l[1]:"x"===i.axis?l[1]:l[0],u="yx"===i.axis?"<div id='mCSB_"+n.idx+"_container_wrapper' class='mCSB_container_wrapper' />":"",f=i.autoHideScrollbar?" "+d[6]:"",h="x"!==i.axis&&"rtl"===n.langDir?" "+d[7]:"";i.setWidth&&t.css("width",i.setWidth),i.setHeight&&t.css("height",i.setHeight),i.setLeft="y"!==i.axis&&"rtl"===n.langDir?"989999px":i.setLeft,t.addClass(o+" _"+a+"_"+n.idx+f+h).wrapInner("<div id='mCSB_"+n.idx+"' class='mCustomScrollBox mCS-"+i.theme+" "+s+"'><div id='mCSB_"+n.idx+"_container' class='mCSB_container' style='position:relative; top:"+i.setTop+"; left:"+i.setLeft+";' dir="+n.langDir+" /></div>");var m=e("#mCSB_"+n.idx),p=e("#mCSB_"+n.idx+"_container");"y"===i.axis||i.advanced.autoExpandHorizontalScroll||p.css("width",x(p)),"outside"===i.scrollbarPosition?("static"===t.css("position")&&t.css("position","relative"),t.css("overflow","visible"),m.addClass("mCSB_outside").after(c)):(m.addClass("mCSB_inside").append(c),p.wrap(u)),w.call(this);var g=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")];g[0].css("min-height",g[0].height()),g[1].css("min-width",g[1].width())},x=function(t){var o=[t[0].scrollWidth,Math.max.apply(Math,t.children().map(function(){return e(this).outerWidth(!0)}).get())],a=t.parent().width();return o[0]>a?o[0]:o[1]>a?o[1]:"100%"},_=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx+"_container");if(n.advanced.autoExpandHorizontalScroll&&"y"!==n.axis){i.css({width:"auto","min-width":0,"overflow-x":"scroll"});var r=Math.ceil(i[0].scrollWidth);3===n.advanced.autoExpandHorizontalScroll||2!==n.advanced.autoExpandHorizontalScroll&&r>i.parent().width()?i.css({width:r,"min-width":"100%","overflow-x":"inherit"}):i.css({"overflow-x":"inherit",position:"absolute"}).wrap("<div class='mCSB_h_wrapper' style='position:relative; left:0; width:999999px;' />").css({width:Math.ceil(i[0].getBoundingClientRect().right+.4)-Math.floor(i[0].getBoundingClientRect().left),"min-width":"100%",position:"relative"}).unwrap()}},w=function(){var t=e(this),o=t.data(a),n=o.opt,i=e(".mCSB_"+o.idx+"_scrollbar:first"),r=ee(n.scrollButtons.tabindex)?"tabindex='"+n.scrollButtons.tabindex+"'":"",l=["<a href='#' class='"+d[13]+"' oncontextmenu='return false;' "+r+" />","<a href='#' class='"+d[14]+"' oncontextmenu='return false;' "+r+" />","<a href='#' class='"+d[15]+"' oncontextmenu='return false;' "+r+" />","<a href='#' class='"+d[16]+"' oncontextmenu='return false;' "+r+" />"],s=["x"===n.axis?l[2]:l[0],"x"===n.axis?l[3]:l[1],l[2],l[3]];n.scrollButtons.enable&&i.prepend(s[0]).append(s[1]).next(".mCSB_scrollTools").prepend(s[2]).append(s[3])},S=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[n.height()/i.outerHeight(!1),n.width()/i.outerWidth(!1)],c=[parseInt(r[0].css("min-height")),Math.round(l[0]*r[0].parent().height()),parseInt(r[1].css("min-width")),Math.round(l[1]*r[1].parent().width())],d=s&&c[1]<c[0]?c[0]:c[1],u=s&&c[3]<c[2]?c[2]:c[3];r[0].css({height:d,"max-height":r[0].parent().height()-10}).find(".mCSB_dragger_bar").css({"line-height":c[0]+"px"}),r[1].css({width:u,"max-width":r[1].parent().width()-10})},b=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")],l=[i.outerHeight(!1)-n.height(),i.outerWidth(!1)-n.width()],s=[l[0]/(r[0].parent().height()-r[0].height()),l[1]/(r[1].parent().width()-r[1].width())];o.scrollRatio={y:s[0],x:s[1]}},C=function(e,t,o){var a=o?d[0]+"_expanded":"",n=e.closest(".mCSB_scrollTools");"active"===t?(e.toggleClass(d[0]+" "+a),n.toggleClass(d[1]),e[0]._draggable=e[0]._draggable?0:1):e[0]._draggable||("hide"===t?(e.removeClass(d[0]),n.removeClass(d[1])):(e.addClass(d[0]),n.addClass(d[1])))},y=function(){var t=e(this),o=t.data(a),n=e("#mCSB_"+o.idx),i=e("#mCSB_"+o.idx+"_container"),r=null==o.overflowed?i.height():i.outerHeight(!1),l=null==o.overflowed?i.width():i.outerWidth(!1),s=i[0].scrollHeight,c=i[0].scrollWidth;return s>r&&(r=s),c>l&&(l=c),[r>n.height(),l>n.width()]},B=function(){var t=e(this),o=t.data(a),n=o.opt,i=e("#mCSB_"+o.idx),r=e("#mCSB_"+o.idx+"_container"),l=[e("#mCSB_"+o.idx+"_dragger_vertical"),e("#mCSB_"+o.idx+"_dragger_horizontal")];if(N(t),("x"!==n.axis&&!o.overflowed[0]||"y"===n.axis&&o.overflowed[0])&&(l[0].add(r).css("top",0),V(t,"_resetY")),"y"!==n.axis&&!o.overflowed[1]||"x"===n.axis&&o.overflowed[1]){var s=dx=0;"rtl"===o.langDir&&(s=i.width()-r.outerWidth(!1),dx=Math.abs(s/o.scrollRatio.x)),r.css("left",s),l[1].css("left",dx),V(t,"_resetX")}},T=function(){function t(){r=setTimeout(function(){e.event.special.mousewheel?(clearTimeout(r),R.call(o[0])):t()},100)}var o=e(this),n=o.data(a),i=n.opt;if(!n.bindEvents){if(I.call(this),i.contentTouchScroll&&D.call(this),E.call(this),i.mouseWheel.enable){var r;t()}L.call(this),P.call(this),i.advanced.autoScrollOnFocus&&z.call(this),i.scrollButtons.enable&&H.call(this),i.keyboard.enable&&U.call(this),n.bindEvents=!0}},k=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=".mCSB_"+o.idx+"_scrollbar",l=e("#mCSB_"+o.idx+",#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,"+r+" ."+d[12]+",#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal,"+r+">a"),s=e("#mCSB_"+o.idx+"_container");n.advanced.releaseDraggableSelectors&&l.add(e(n.advanced.releaseDraggableSelectors)),n.advanced.extraDraggableSelectors&&l.add(e(n.advanced.extraDraggableSelectors)),o.bindEvents&&(e(document).add(e(!W()||top.document)).unbind("."+i),l.each(function(){e(this).unbind("."+i)}),clearTimeout(t[0]._focusTimeout),K(t[0],"_focusTimeout"),clearTimeout(o.sequential.step),K(o.sequential,"step"),clearTimeout(s[0].onCompleteTimeout),K(s[0],"onCompleteTimeout"),o.bindEvents=!1)},M=function(t){var o=e(this),n=o.data(a),i=n.opt,r=e("#mCSB_"+n.idx+"_container_wrapper"),l=r.length?r:e("#mCSB_"+n.idx+"_container"),s=[e("#mCSB_"+n.idx+"_scrollbar_vertical"),e("#mCSB_"+n.idx+"_scrollbar_horizontal")],c=[s[0].find(".mCSB_dragger"),s[1].find(".mCSB_dragger")];"x"!==i.axis&&(n.overflowed[0]&&!t?(s[0].add(c[0]).add(s[0].children("a")).css("display","block"),l.removeClass(d[8]+" "+d[10])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[0].css("display","none"),l.removeClass(d[10])):(s[0].css("display","none"),l.addClass(d[10])),l.addClass(d[8]))),"y"!==i.axis&&(n.overflowed[1]&&!t?(s[1].add(c[1]).add(s[1].children("a")).css("display","block"),l.removeClass(d[9]+" "+d[11])):(i.alwaysShowScrollbar?(2!==i.alwaysShowScrollbar&&c[1].css("display","none"),l.removeClass(d[11])):(s[1].css("display","none"),l.addClass(d[11])),l.addClass(d[9]))),n.overflowed[0]||n.overflowed[1]?o.removeClass(d[5]):o.addClass(d[5])},O=function(t){var o=t.type,a=t.target.ownerDocument!==document?[e(frameElement).offset().top,e(frameElement).offset().left]:null,n=W()&&t.target.ownerDocument!==top.document?[e(t.view.frameElement).offset().top,e(t.view.frameElement).offset().left]:[0,0];switch(o){case"pointerdown":case"MSPointerDown":case"pointermove":case"MSPointerMove":case"pointerup":case"MSPointerUp":return a?[t.originalEvent.pageY-a[0]+n[0],t.originalEvent.pageX-a[1]+n[1],!1]:[t.originalEvent.pageY,t.originalEvent.pageX,!1];case"touchstart":case"touchmove":case"touchend":var i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],r=t.originalEvent.touches.length||t.originalEvent.changedTouches.length;return t.target.ownerDocument!==document?[i.screenY,i.screenX,r>1]:[i.pageY,i.pageX,r>1];default:return a?[t.pageY-a[0]+n[0],t.pageX-a[1]+n[1],!1]:[t.pageY,t.pageX,!1]}},I=function(){function t(e){var t=m.find("iframe");if(t.length){var o=e?"auto":"none";t.css("pointer-events",o)}}function o(e,t,o,a){if(m[0].idleTimer=u.scrollInertia<233?250:0,n.attr("id")===h[1])var i="x",r=(n[0].offsetLeft-t+a)*d.scrollRatio.x;else var i="y",r=(n[0].offsetTop-e+o)*d.scrollRatio.y;V(l,r.toString(),{dir:i,drag:!0})}var n,i,r,l=e(this),d=l.data(a),u=d.opt,f=a+"_"+d.idx,h=["mCSB_"+d.idx+"_dragger_vertical","mCSB_"+d.idx+"_dragger_horizontal"],m=e("#mCSB_"+d.idx+"_container"),p=e("#"+h[0]+",#"+h[1]),g=u.advanced.releaseDraggableSelectors?p.add(e(u.advanced.releaseDraggableSelectors)):p,v=u.advanced.extraDraggableSelectors?e(!W()||top.document).add(e(u.advanced.extraDraggableSelectors)):e(!W()||top.document);p.bind("mousedown."+f+" touchstart."+f+" pointerdown."+f+" MSPointerDown."+f,function(o){if(o.stopImmediatePropagation(),o.preventDefault(),Z(o)){c=!0,s&&(document.onselectstart=function(){return!1}),t(!1),N(l),n=e(this);var a=n.offset(),d=O(o)[0]-a.top,f=O(o)[1]-a.left,h=n.height()+a.top,m=n.width()+a.left;h>d&&d>0&&m>f&&f>0&&(i=d,r=f),C(n,"active",u.autoExpandScrollbar)}}).bind("touchmove."+f,function(e){e.stopImmediatePropagation(),e.preventDefault();var t=n.offset(),a=O(e)[0]-t.top,l=O(e)[1]-t.left;o(i,r,a,l)}),e(document).add(v).bind("mousemove."+f+" pointermove."+f+" MSPointerMove."+f,function(e){if(n){var t=n.offset(),a=O(e)[0]-t.top,l=O(e)[1]-t.left;if(i===a&&r===l)return;o(i,r,a,l)}}).add(g).bind("mouseup."+f+" touchend."+f+" pointerup."+f+" MSPointerUp."+f,function(e){n&&(C(n,"active",u.autoExpandScrollbar),n=null),c=!1,s&&(document.onselectstart=null),t(!0)})},D=function(){function o(e){if(!$(e)||c||O(e)[2])return void(t=0);t=1,b=0,C=0,d=1,y.removeClass("mCS_touch_action");var o=I.offset();u=O(e)[0]-o.top,f=O(e)[1]-o.left,z=[O(e)[0],O(e)[1]]}function n(e){if($(e)&&!c&&!O(e)[2]&&(T.documentTouchScroll||e.preventDefault(),e.stopImmediatePropagation(),(!C||b)&&d)){g=G();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left,n="mcsLinearOut";if(E.push(o),R.push(a),z[2]=Math.abs(O(e)[0]-z[0]),z[3]=Math.abs(O(e)[1]-z[1]),B.overflowed[0])var i=D[0].parent().height()-D[0].height(),r=u-o>0&&o-u>-(i*B.scrollRatio.y)&&(2*z[3]<z[2]||"yx"===T.axis);if(B.overflowed[1])var l=D[1].parent().width()-D[1].width(),h=f-a>0&&a-f>-(l*B.scrollRatio.x)&&(2*z[2]<z[3]||"yx"===T.axis);r||h?(U||e.preventDefault(),b=1):(C=1,y.addClass("mCS_touch_action")),U&&e.preventDefault(),w="yx"===T.axis?[u-o,f-a]:"x"===T.axis?[null,f-a]:[u-o,null],I[0].idleTimer=250,B.overflowed[0]&&s(w[0],A,n,"y","all",!0),B.overflowed[1]&&s(w[1],A,n,"x",L,!0)}}function i(e){if(!$(e)||c||O(e)[2])return void(t=0);t=1,e.stopImmediatePropagation(),N(y),p=G();var o=M.offset();h=O(e)[0]-o.top,m=O(e)[1]-o.left,E=[],R=[]}function r(e){if($(e)&&!c&&!O(e)[2]){d=0,e.stopImmediatePropagation(),b=0,C=0,v=G();var t=M.offset(),o=O(e)[0]-t.top,a=O(e)[1]-t.left;if(!(v-g>30)){_=1e3/(v-p);var n="mcsEaseOut",i=2.5>_,r=i?[E[E.length-2],R[R.length-2]]:[0,0];x=i?[o-r[0],a-r[1]]:[o-h,a-m];var u=[Math.abs(x[0]),Math.abs(x[1])];_=i?[Math.abs(x[0]/4),Math.abs(x[1]/4)]:[_,_];var f=[Math.abs(I[0].offsetTop)-x[0]*l(u[0]/_[0],_[0]),Math.abs(I[0].offsetLeft)-x[1]*l(u[1]/_[1],_[1])];w="yx"===T.axis?[f[0],f[1]]:"x"===T.axis?[null,f[1]]:[f[0],null],S=[4*u[0]+T.scrollInertia,4*u[1]+T.scrollInertia];var y=parseInt(T.contentTouchScroll)||0;w[0]=u[0]>y?w[0]:0,w[1]=u[1]>y?w[1]:0,B.overflowed[0]&&s(w[0],S[0],n,"y",L,!1),B.overflowed[1]&&s(w[1],S[1],n,"x",L,!1)}}}function l(e,t){var o=[1.5*t,2*t,t/1.5,t/2];return e>90?t>4?o[0]:o[3]:e>60?t>3?o[3]:o[2]:e>30?t>8?o[1]:t>6?o[0]:t>4?t:o[2]:t>8?t:o[3]}function s(e,t,o,a,n,i){e&&V(y,e.toString(),{dur:t,scrollEasing:o,dir:a,overwrite:n,drag:i})}var d,u,f,h,m,p,g,v,x,_,w,S,b,C,y=e(this),B=y.data(a),T=B.opt,k=a+"_"+B.idx,M=e("#mCSB_"+B.idx),I=e("#mCSB_"+B.idx+"_container"),D=[e("#mCSB_"+B.idx+"_dragger_vertical"),e("#mCSB_"+B.idx+"_dragger_horizontal")],E=[],R=[],A=0,L="yx"===T.axis?"none":"all",z=[],P=I.find("iframe"),H=["touchstart."+k+" pointerdown."+k+" MSPointerDown."+k,"touchmove."+k+" pointermove."+k+" MSPointerMove."+k,"touchend."+k+" pointerup."+k+" MSPointerUp."+k],U=void 0!==document.body.style.touchAction;I.bind(H[0],function(e){o(e)}).bind(H[1],function(e){n(e)}),M.bind(H[0],function(e){i(e)}).bind(H[2],function(e){r(e)}),P.length&&P.each(function(){e(this).load(function(){W(this)&&e(this.contentDocument||this.contentWindow.document).bind(H[0],function(e){o(e),i(e)}).bind(H[1],function(e){n(e)}).bind(H[2],function(e){r(e)})})})},E=function(){function o(){return window.getSelection?window.getSelection().toString():document.selection&&"Control"!=document.selection.type?document.selection.createRange().text:0}function n(e,t,o){d.type=o&&i?"stepped":"stepless",d.scrollAmount=10,F(r,e,t,"mcsLinearOut",o?60:null)}var i,r=e(this),l=r.data(a),s=l.opt,d=l.sequential,u=a+"_"+l.idx,f=e("#mCSB_"+l.idx+"_container"),h=f.parent();f.bind("mousedown."+u,function(e){t||i||(i=1,c=!0)}).add(document).bind("mousemove."+u,function(e){if(!t&&i&&o()){var a=f.offset(),r=O(e)[0]-a.top+f[0].offsetTop,c=O(e)[1]-a.left+f[0].offsetLeft;r>0&&r<h.height()&&c>0&&c<h.width()?d.step&&n("off",null,"stepped"):("x"!==s.axis&&l.overflowed[0]&&(0>r?n("on",38):r>h.height()&&n("on",40)),"y"!==s.axis&&l.overflowed[1]&&(0>c?n("on",37):c>h.width()&&n("on",39)))}}).bind("mouseup."+u+" dragend."+u,function(e){t||(i&&(i=0,n("off",null)),c=!1)})},R=function(){function t(t,a){if(N(o),!A(o,t.target)){var r="auto"!==i.mouseWheel.deltaFactor?parseInt(i.mouseWheel.deltaFactor):s&&t.deltaFactor<100?100:t.deltaFactor||100,d=i.scrollInertia;if("x"===i.axis||"x"===i.mouseWheel.axis)var u="x",f=[Math.round(r*n.scrollRatio.x),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.width()?.9*l.width():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetLeft),p=c[1][0].offsetLeft,g=c[1].parent().width()-c[1].width(),v=t.deltaX||t.deltaY||a;else var u="y",f=[Math.round(r*n.scrollRatio.y),parseInt(i.mouseWheel.scrollAmount)],h="auto"!==i.mouseWheel.scrollAmount?f[1]:f[0]>=l.height()?.9*l.height():f[0],m=Math.abs(e("#mCSB_"+n.idx+"_container")[0].offsetTop),p=c[0][0].offsetTop,g=c[0].parent().height()-c[0].height(),v=t.deltaY||a;"y"===u&&!n.overflowed[0]||"x"===u&&!n.overflowed[1]||((i.mouseWheel.invert||t.webkitDirectionInvertedFromDevice)&&(v=-v),i.mouseWheel.normalizeDelta&&(v=0>v?-1:1),(v>0&&0!==p||0>v&&p!==g||i.mouseWheel.preventDefault)&&(t.stopImmediatePropagation(),t.preventDefault()),t.deltaFactor<2&&!i.mouseWheel.normalizeDelta&&(h=t.deltaFactor,d=17),V(o,(m-v*h).toString(),{dir:u,dur:d}))}}if(e(this).data(a)){var o=e(this),n=o.data(a),i=n.opt,r=a+"_"+n.idx,l=e("#mCSB_"+n.idx),c=[e("#mCSB_"+n.idx+"_dragger_vertical"),e("#mCSB_"+n.idx+"_dragger_horizontal")],d=e("#mCSB_"+n.idx+"_container").find("iframe");d.length&&d.each(function(){e(this).load(function(){W(this)&&e(this.contentDocument||this.contentWindow.document).bind("mousewheel."+r,function(e,o){t(e,o)})})}),l.bind("mousewheel."+r,function(e,o){t(e,o)})}},W=function(e){var t=null;if(e){try{var o=e.contentDocument||e.contentWindow.document;t=o.body.innerHTML}catch(a){}return null!==t}try{var o=top.document;t=o.body.innerHTML}catch(a){}return null!==t},A=function(t,o){var n=o.nodeName.toLowerCase(),i=t.data(a).opt.mouseWheel.disableOver,r=["select","textarea"];return e.inArray(n,i)>-1&&!(e.inArray(n,r)>-1&&!e(o).is(":focus"))},L=function(){var t,o=e(this),n=o.data(a),i=a+"_"+n.idx,r=e("#mCSB_"+n.idx+"_container"),l=r.parent(),s=e(".mCSB_"+n.idx+"_scrollbar ."+d[12]);s.bind("mousedown."+i+" touchstart."+i+" pointerdown."+i+" MSPointerDown."+i,function(o){c=!0,e(o.target).hasClass("mCSB_dragger")||(t=1)}).bind("touchend."+i+" pointerup."+i+" MSPointerUp."+i,function(e){c=!1}).bind("click."+i,function(a){if(t&&(t=0,e(a.target).hasClass(d[12])||e(a.target).hasClass("mCSB_draggerRail"))){N(o);var i=e(this),s=i.find(".mCSB_dragger");if(i.parent(".mCSB_scrollTools_horizontal").length>0){if(!n.overflowed[1])return;var c="x",u=a.pageX>s.offset().left?-1:1,f=Math.abs(r[0].offsetLeft)-.9*u*l.width()}else{if(!n.overflowed[0])return;var c="y",u=a.pageY>s.offset().top?-1:1,f=Math.abs(r[0].offsetTop)-.9*u*l.height()}V(o,f.toString(),{dir:c,scrollEasing:"mcsEaseInOut"})}})},z=function(){var t=e(this),o=t.data(a),n=o.opt,i=a+"_"+o.idx,r=e("#mCSB_"+o.idx+"_container"),l=r.parent();r.bind("focusin."+i,function(o){var a=e(document.activeElement),i=r.find(".mCustomScrollBox").length,s=0;a.is(n.advanced.autoScrollOnFocus)&&(N(t),clearTimeout(t[0]._focusTimeout),t[0]._focusTimer=i?(s+17)*i:0,t[0]._focusTimeout=setTimeout(function(){var e=[te(a)[0],te(a)[1]],o=[r[0].offsetTop,r[0].offsetLeft],i=[o[0]+e[0]>=0&&o[0]+e[0]<l.height()-a.outerHeight(!1),o[1]+e[1]>=0&&o[0]+e[1]<l.width()-a.outerWidth(!1)],c="yx"!==n.axis||i[0]||i[1]?"all":"none";"x"===n.axis||i[0]||V(t,e[0].toString(),{dir:"y",scrollEasing:"mcsEaseInOut",overwrite:c,dur:s}),"y"===n.axis||i[1]||V(t,e[1].toString(),{dir:"x",scrollEasing:"mcsEaseInOut",overwrite:c,dur:s})},t[0]._focusTimer))})},P=function(){var t=e(this),o=t.data(a),n=a+"_"+o.idx,i=e("#mCSB_"+o.idx+"_container").parent();i.bind("scroll."+n,function(t){(0!==i.scrollTop()||0!==i.scrollLeft())&&e(".mCSB_"+o.idx+"_scrollbar").css("visibility","hidden")})},H=function(){var t=e(this),o=t.data(a),n=o.opt,i=o.sequential,r=a+"_"+o.idx,l=".mCSB_"+o.idx+"_scrollbar",s=e(l+">a");s.bind("mousedown."+r+" touchstart."+r+" pointerdown."+r+" MSPointerDown."+r+" mouseup."+r+" touchend."+r+" pointerup."+r+" MSPointerUp."+r+" mouseout."+r+" pointerout."+r+" MSPointerOut."+r+" click."+r,function(a){function r(e,o){i.scrollAmount=n.scrollButtons.scrollAmount,F(t,e,o)}if(a.preventDefault(),Z(a)){var l=e(this).attr("class");switch(i.type=n.scrollButtons.scrollType,a.type){case"mousedown":case"touchstart":case"pointerdown":case"MSPointerDown":if("stepped"===i.type)return;c=!0,o.tweenRunning=!1,r("on",l);break;case"mouseup":case"touchend":case"pointerup":case"MSPointerUp":case"mouseout":case"pointerout":case"MSPointerOut":if("stepped"===i.type)return;c=!1,i.dir&&r("off",l);break;case"click":if("stepped"!==i.type||o.tweenRunning)return;r("on",l)}}})},U=function(){function t(t){function a(e,t){r.type=i.keyboard.scrollType,r.scrollAmount=i.keyboard.scrollAmount,"stepped"===r.type&&n.tweenRunning||F(o,e,t)}switch(t.type){case"blur":n.tweenRunning&&r.dir&&a("off",null);break;case"keydown":case"keyup":var l=t.keyCode?t.keyCode:t.which,s="on";if("x"!==i.axis&&(38===l||40===l)||"y"!==i.axis&&(37===l||39===l)){if((38===l||40===l)&&!n.overflowed[0]||(37===l||39===l)&&!n.overflowed[1])return;"keyup"===t.type&&(s="off"),e(document.activeElement).is(u)||(t.preventDefault(),t.stopImmediatePropagation(),a(s,l))}else if(33===l||34===l){if((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type){N(o);var f=34===l?-1:1;if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=Math.abs(c[0].offsetLeft)-.9*f*d.width();else var h="y",m=Math.abs(c[0].offsetTop)-.9*f*d.height();V(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}else if((35===l||36===l)&&!e(document.activeElement).is(u)&&((n.overflowed[0]||n.overflowed[1])&&(t.preventDefault(),t.stopImmediatePropagation()),"keyup"===t.type)){if("x"===i.axis||"yx"===i.axis&&n.overflowed[1]&&!n.overflowed[0])var h="x",m=35===l?Math.abs(d.width()-c.outerWidth(!1)):0;else var h="y",m=35===l?Math.abs(d.height()-c.outerHeight(!1)):0;V(o,m.toString(),{dir:h,scrollEasing:"mcsEaseInOut"})}}}var o=e(this),n=o.data(a),i=n.opt,r=n.sequential,l=a+"_"+n.idx,s=e("#mCSB_"+n.idx),c=e("#mCSB_"+n.idx+"_container"),d=c.parent(),u="input,textarea,select,datalist,keygen,[contenteditable='true']",f=c.find("iframe"),h=["blur."+l+" keydown."+l+" keyup."+l];f.length&&f.each(function(){e(this).load(function(){W(this)&&e(this.contentDocument||this.contentWindow.document).bind(h[0],function(e){t(e)})})}),s.attr("tabindex","0").bind(h[0],function(e){t(e)})},F=function(t,o,n,i,r){function l(e){u.snapAmount&&(f.scrollAmount=u.snapAmount instanceof Array?"x"===f.dir[0]?u.snapAmount[1]:u.snapAmount[0]:u.snapAmount);var o="stepped"!==f.type,a=r?r:e?o?p/1.5:g:1e3/60,n=e?o?7.5:40:2.5,s=[Math.abs(h[0].offsetTop),Math.abs(h[0].offsetLeft)],d=[c.scrollRatio.y>10?10:c.scrollRatio.y,c.scrollRatio.x>10?10:c.scrollRatio.x],m="x"===f.dir[0]?s[1]+f.dir[1]*d[1]*n:s[0]+f.dir[1]*d[0]*n,v="x"===f.dir[0]?s[1]+f.dir[1]*parseInt(f.scrollAmount):s[0]+f.dir[1]*parseInt(f.scrollAmount),x="auto"!==f.scrollAmount?v:m,_=i?i:e?o?"mcsLinearOut":"mcsEaseInOut":"mcsLinear",w=e?!0:!1;return e&&17>a&&(x="x"===f.dir[0]?s[1]:s[0]),V(t,x.toString(),{dir:f.dir[0],scrollEasing:_,dur:a,onComplete:w}),e?void(f.dir=!1):(clearTimeout(f.step),void(f.step=setTimeout(function(){l()},a)))}function s(){clearTimeout(f.step),K(f,"step"),N(t)}var c=t.data(a),u=c.opt,f=c.sequential,h=e("#mCSB_"+c.idx+"_container"),m="stepped"===f.type?!0:!1,p=u.scrollInertia<26?26:u.scrollInertia,g=u.scrollInertia<1?17:u.scrollInertia;switch(o){case"on":if(f.dir=[n===d[16]||n===d[15]||39===n||37===n?"x":"y",n===d[13]||n===d[15]||38===n||37===n?-1:1],N(t),ee(n)&&"stepped"===f.type)return;l(m);break;case"off":s(),(m||c.tweenRunning&&f.dir)&&l(!0)}},q=function(t){var o=e(this).data(a).opt,n=[];return"function"==typeof t&&(t=t()),t instanceof Array?n=t.length>1?[t[0],t[1]]:"x"===o.axis?[null,t[0]]:[t[0],null]:(n[0]=t.y?t.y:t.x||"x"===o.axis?null:t,n[1]=t.x?t.x:t.y||"y"===o.axis?null:t),"function"==typeof n[0]&&(n[0]=n[0]()),"function"==typeof n[1]&&(n[1]=n[1]()),n},Y=function(t,o){if(null!=t&&"undefined"!=typeof t){var n=e(this),i=n.data(a),r=i.opt,l=e("#mCSB_"+i.idx+"_container"),s=l.parent(),c=typeof t;o||(o="x"===r.axis?"x":"y");var d="x"===o?l.outerWidth(!1):l.outerHeight(!1),f="x"===o?l[0].offsetLeft:l[0].offsetTop,h="x"===o?"left":"top";switch(c){case"function":return t();case"object":var m=t.jquery?t:e(t);if(!m.length)return;return"x"===o?te(m)[1]:te(m)[0];case"string":case"number":if(ee(t))return Math.abs(t);if(-1!==t.indexOf("%"))return Math.abs(d*parseInt(t)/100);if(-1!==t.indexOf("-="))return Math.abs(f-parseInt(t.split("-=")[1]));if(-1!==t.indexOf("+=")){var p=f+parseInt(t.split("+=")[1]);return p>=0?0:Math.abs(p)}if(-1!==t.indexOf("px")&&ee(t.split("px")[0]))return Math.abs(t.split("px")[0]);if("top"===t||"left"===t)return 0;if("bottom"===t)return Math.abs(s.height()-l.outerHeight(!1));if("right"===t)return Math.abs(s.width()-l.outerWidth(!1));if("first"===t||"last"===t){var m=l.find(":"+t);return"x"===o?te(m)[1]:te(m)[0]}return e(t).length?"x"===o?te(e(t))[1]:te(e(t))[0]:(l.css(h,t),void u.update.call(null,n[0]))}}},X=function(t){function o(){return clearTimeout(f[0].autoUpdate),0===l.parents("html").length?void(l=null):void(f[0].autoUpdate=setTimeout(function(){return c.advanced.updateOnSelectorChange&&(s.poll.change.n=i(),s.poll.change.n!==s.poll.change.o)?(s.poll.change.o=s.poll.change.n,void r(3)):c.advanced.updateOnContentResize&&(s.poll.size.n=l[0].scrollHeight+l[0].scrollWidth+f[0].offsetHeight+l[0].offsetHeight+l[0].offsetWidth,s.poll.size.n!==s.poll.size.o)?(s.poll.size.o=s.poll.size.n,void r(1)):!c.advanced.updateOnImageLoad||"auto"===c.advanced.updateOnImageLoad&&"y"===c.axis||(s.poll.img.n=f.find("img").length,s.poll.img.n===s.poll.img.o)?void((c.advanced.updateOnSelectorChange||c.advanced.updateOnContentResize||c.advanced.updateOnImageLoad)&&o()):(s.poll.img.o=s.poll.img.n,void f.find("img").each(function(){n(this)}))},c.advanced.autoUpdateTimeout))}function n(t){function o(e,t){return function(){return t.apply(e,arguments)}}function a(){this.onload=null,e(t).addClass(d[2]),r(2)}if(e(t).hasClass(d[2]))return void r();var n=new Image;n.onload=o(n,a),n.src=t.src}function i(){c.advanced.updateOnSelectorChange===!0&&(c.advanced.updateOnSelectorChange="*");var e=0,t=f.find(c.advanced.updateOnSelectorChange);
62
63return c.advanced.updateOnSelectorChange&&t.length>0&&t.each(function(){e+=this.offsetHeight+this.offsetWidth}),e}function r(e){clearTimeout(f[0].autoUpdate),u.update.call(null,l[0],e)}var l=e(this),s=l.data(a),c=s.opt,f=e("#mCSB_"+s.idx+"_container");return t?(clearTimeout(f[0].autoUpdate),void K(f[0],"autoUpdate")):void o()},j=function(e,t,o){return Math.round(e/t)*t-o},N=function(t){var o=t.data(a),n=e("#mCSB_"+o.idx+"_container,#mCSB_"+o.idx+"_container_wrapper,#mCSB_"+o.idx+"_dragger_vertical,#mCSB_"+o.idx+"_dragger_horizontal");n.each(function(){J.call(this)})},V=function(t,o,n){function i(e){return s&&c.callbacks[e]&&"function"==typeof c.callbacks[e]}function r(){return[c.callbacks.alwaysTriggerOffsets||w>=S[0]+y,c.callbacks.alwaysTriggerOffsets||-B>=w]}function l(){var e=[h[0].offsetTop,h[0].offsetLeft],o=[x[0].offsetTop,x[0].offsetLeft],a=[h.outerHeight(!1),h.outerWidth(!1)],i=[f.height(),f.width()];t[0].mcs={content:h,top:e[0],left:e[1],draggerTop:o[0],draggerLeft:o[1],topPct:Math.round(100*Math.abs(e[0])/(Math.abs(a[0])-i[0])),leftPct:Math.round(100*Math.abs(e[1])/(Math.abs(a[1])-i[1])),direction:n.dir}}var s=t.data(a),c=s.opt,d={trigger:"internal",dir:"y",scrollEasing:"mcsEaseOut",drag:!1,dur:c.scrollInertia,overwrite:"all",callbacks:!0,onStart:!0,onUpdate:!0,onComplete:!0},n=e.extend(d,n),u=[n.dur,n.drag?0:n.dur],f=e("#mCSB_"+s.idx),h=e("#mCSB_"+s.idx+"_container"),m=h.parent(),p=c.callbacks.onTotalScrollOffset?q.call(t,c.callbacks.onTotalScrollOffset):[0,0],g=c.callbacks.onTotalScrollBackOffset?q.call(t,c.callbacks.onTotalScrollBackOffset):[0,0];if(s.trigger=n.trigger,(0!==m.scrollTop()||0!==m.scrollLeft())&&(e(".mCSB_"+s.idx+"_scrollbar").css("visibility","visible"),m.scrollTop(0).scrollLeft(0)),"_resetY"!==o||s.contentReset.y||(i("onOverflowYNone")&&c.callbacks.onOverflowYNone.call(t[0]),s.contentReset.y=1),"_resetX"!==o||s.contentReset.x||(i("onOverflowXNone")&&c.callbacks.onOverflowXNone.call(t[0]),s.contentReset.x=1),"_resetY"!==o&&"_resetX"!==o){if(!s.contentReset.y&&t[0].mcs||!s.overflowed[0]||(i("onOverflowY")&&c.callbacks.onOverflowY.call(t[0]),s.contentReset.x=null),!s.contentReset.x&&t[0].mcs||!s.overflowed[1]||(i("onOverflowX")&&c.callbacks.onOverflowX.call(t[0]),s.contentReset.x=null),c.snapAmount){var v=c.snapAmount instanceof Array?"x"===n.dir?c.snapAmount[1]:c.snapAmount[0]:c.snapAmount;o=j(o,v,c.snapOffset)}switch(n.dir){case"x":var x=e("#mCSB_"+s.idx+"_dragger_horizontal"),_="left",w=h[0].offsetLeft,S=[f.width()-h.outerWidth(!1),x.parent().width()-x.width()],b=[o,0===o?0:o/s.scrollRatio.x],y=p[1],B=g[1],T=y>0?y/s.scrollRatio.x:0,k=B>0?B/s.scrollRatio.x:0;break;case"y":var x=e("#mCSB_"+s.idx+"_dragger_vertical"),_="top",w=h[0].offsetTop,S=[f.height()-h.outerHeight(!1),x.parent().height()-x.height()],b=[o,0===o?0:o/s.scrollRatio.y],y=p[0],B=g[0],T=y>0?y/s.scrollRatio.y:0,k=B>0?B/s.scrollRatio.y:0}b[1]<0||0===b[0]&&0===b[1]?b=[0,0]:b[1]>=S[1]?b=[S[0],S[1]]:b[0]=-b[0],t[0].mcs||(l(),i("onInit")&&c.callbacks.onInit.call(t[0])),clearTimeout(h[0].onCompleteTimeout),Q(x[0],_,Math.round(b[1]),u[1],n.scrollEasing),(s.tweenRunning||!(0===w&&b[0]>=0||w===S[0]&&b[0]<=S[0]))&&Q(h[0],_,Math.round(b[0]),u[0],n.scrollEasing,n.overwrite,{onStart:function(){n.callbacks&&n.onStart&&!s.tweenRunning&&(i("onScrollStart")&&(l(),c.callbacks.onScrollStart.call(t[0])),s.tweenRunning=!0,C(x),s.cbOffsets=r())},onUpdate:function(){n.callbacks&&n.onUpdate&&i("whileScrolling")&&(l(),c.callbacks.whileScrolling.call(t[0]))},onComplete:function(){if(n.callbacks&&n.onComplete){"yx"===c.axis&&clearTimeout(h[0].onCompleteTimeout);var e=h[0].idleTimer||0;h[0].onCompleteTimeout=setTimeout(function(){i("onScroll")&&(l(),c.callbacks.onScroll.call(t[0])),i("onTotalScroll")&&b[1]>=S[1]-T&&s.cbOffsets[0]&&(l(),c.callbacks.onTotalScroll.call(t[0])),i("onTotalScrollBack")&&b[1]<=k&&s.cbOffsets[1]&&(l(),c.callbacks.onTotalScrollBack.call(t[0])),s.tweenRunning=!1,h[0].idleTimer=0,C(x,"hide")},e)}}})}},Q=function(e,t,o,a,n,i,r){function l(){S.stop||(x||m.call(),x=G()-v,s(),x>=S.time&&(S.time=x>S.time?x+f-(x-S.time):x+f-1,S.time<x+1&&(S.time=x+1)),S.time<a?S.id=h(l):g.call())}function s(){a>0?(S.currVal=u(S.time,_,b,a,n),w[t]=Math.round(S.currVal)+"px"):w[t]=o+"px",p.call()}function c(){f=1e3/60,S.time=x+f,h=window.requestAnimationFrame?window.requestAnimationFrame:function(e){return s(),setTimeout(e,.01)},S.id=h(l)}function d(){null!=S.id&&(window.requestAnimationFrame?window.cancelAnimationFrame(S.id):clearTimeout(S.id),S.id=null)}function u(e,t,o,a,n){switch(n){case"linear":case"mcsLinear":return o*e/a+t;case"mcsLinearOut":return e/=a,e--,o*Math.sqrt(1-e*e)+t;case"easeInOutSmooth":return e/=a/2,1>e?o/2*e*e+t:(e--,-o/2*(e*(e-2)-1)+t);case"easeInOutStrong":return e/=a/2,1>e?o/2*Math.pow(2,10*(e-1))+t:(e--,o/2*(-Math.pow(2,-10*e)+2)+t);case"easeInOut":case"mcsEaseInOut":return e/=a/2,1>e?o/2*e*e*e+t:(e-=2,o/2*(e*e*e+2)+t);case"easeOutSmooth":return e/=a,e--,-o*(e*e*e*e-1)+t;case"easeOutStrong":return o*(-Math.pow(2,-10*e/a)+1)+t;case"easeOut":case"mcsEaseOut":default:var i=(e/=a)*e,r=i*e;return t+o*(.499999999999997*r*i+-2.5*i*i+5.5*r+-6.5*i+4*e)}}e._mTween||(e._mTween={top:{},left:{}});var f,h,r=r||{},m=r.onStart||function(){},p=r.onUpdate||function(){},g=r.onComplete||function(){},v=G(),x=0,_=e.offsetTop,w=e.style,S=e._mTween[t];"left"===t&&(_=e.offsetLeft);var b=o-_;S.stop=0,"none"!==i&&d(),c()},G=function(){return window.performance&&window.performance.now?window.performance.now():window.performance&&window.performance.webkitNow?window.performance.webkitNow():Date.now?Date.now():(new Date).getTime()},J=function(){var e=this;e._mTween||(e._mTween={top:{},left:{}});for(var t=["top","left"],o=0;o<t.length;o++){var a=t[o];e._mTween[a].id&&(window.requestAnimationFrame?window.cancelAnimationFrame(e._mTween[a].id):clearTimeout(e._mTween[a].id),e._mTween[a].id=null,e._mTween[a].stop=1)}},K=function(e,t){try{delete e[t]}catch(o){e[t]=null}},Z=function(e){return!(e.which&&1!==e.which)},$=function(e){var t=e.originalEvent.pointerType;return!(t&&"touch"!==t&&2!==t)},ee=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},te=function(e){var t=e.parents(".mCSB_container");return[e.offset().top-t.offset().top,e.offset().left-t.offset().left]},oe=function(){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}var t=e();return t?document[t]:!1};e.fn[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1
63)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o]=function(t){return u[t]?u[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?void e.error("Method "+t+" does not exist"):u.init.apply(this,arguments)},e[o].defaults=i,window[o]=!0,e(window).on('load',function(){e(n)[o](),e.extend(e.expr[":"],{mcsInView:e.expr[":"].mcsInView||function(t){var o,a,n=e(t),i=n.parents(".mCSB_container");if(i.length)return o=i.parent(),a=[i[0].offsetTop,i[0].offsetLeft],a[0]+te(n)[0]>=0&&a[0]+te(n)[0]<o.height()-n.outerHeight(!1)&&a[1]+te(n)[1]>=0&&a[1]+te(n)[1]<o.width()-n.outerWidth(!1)},mcsOverflow:e.expr[":"].mcsOverflow||function(t){var o=e(t).data(a);if(o)return o.overflowed[0]||o.overflowed[1]}})})})});
64
65	// AWS Tooltip v 1.3
66	(function(b){var e=false,d=(window.attachEvent&&!window.addEventListener)?true:false,a="awsTooltip",c={resize:"calculatePosition"};b.fn.awsTooltip=function(f){var g=function(i,h){this.triggerer=b(i);this.options=h;this.targetMetadata=typeof this.triggerer.data("target")==="undefined"?"":b(this.triggerer.data("target")).data("options");this.triggererMetadata=this.triggerer.data("options")};g.prototype={settings:{ajax:false,ajaxCallback:false,ajaxType:"html",arrow:true,callbackOpened:false,callbackClosed:false,classes:false,delayHide:1000,delayShow:0,direction:"right",durationShow:200,durationHide:700,enableARIA:true,event:"hover",hoverClass:"awsTThover",padding:15,tooltip:".tooltip"},init:function(){var h=this,i;i=this.config=this.setConfiguration();if(c[f]){var j;switch(f){case"resize":j=true;break}h[c[f]](j);return}h.triggerer.on(i.event.reveal,function(l){var k=b(this);k.addClass(i.hoverClass);if(!h.triggerer.data("awsTooltipInitialized")){h.configureTooltip()}if(!h.triggerer.data("awsTooltipCalculated")){h.calculatePosition()}h.handleVisibility(l.type);l.preventDefault()}).on(i.event.hide,function(k){b(this).removeClass(i.hoverClass);h.handleVisibility(k.type)});return this},calculatePosition:function(l){var j=this.config,i=this.triggerer.find(j.tooltip),k=i.data("dimensions")?i.data("dimensions"):{},h={};if(l){k={}}if(b.isEmptyObject(k)){i.css({visibility:"hidden",display:"block"});k.width=i.outerWidth()+j.padding;k.height=i.outerHeight()+j.padding;i.data("dimensions",k).removeAttr("style")}i.addClass(j.direction);switch(j.direction){case"top":case"bottom":if(j.direction=="top"){h.top="-"+k.height+"px"}else{h.bottom="-"+k.height+"px"}h.left="50%";h.marginLeft="-"+((k.width-j.padding)*0.5)+"px";break;case"left":case"right":if(j.direction=="left"){h.left="-"+k.width+"px"}else{h.right="-"+k.width+"px"}h.top="50%";h.marginTop="-"+((k.height-j.padding)*0.5)+"px";break}i.css(h).data("awsTooltipCalculated",true)},checkFocus:function(){var k=this.config.hoverClass,j=b(":focus"),i=b("."+k).not(this.triggerer),h=false;if(this.triggerer.is(":focus")||this.triggerer.hasClass(k)){h=true}else{if(b.contains(this.triggerer[0],j)||b.contains(this.triggerer[0],i)){h=true}}return h},checkVideoSupport:function(i){var j=i.find("iframe"),h=i.find("video");b.each(j,function(){var l=b(this),k=l.attr("src");if(k.search("youtube")>-1){i.data({video:true,videoType:"youtube",videoID:l.attr("id")})}else{if(k.search("vimeo")>-1){i.data({video:true,videoType:"vimeo",videoID:l.attr("id")})}}});if(h.length>0){i.data({video:true,videoType:"html"})}},configureTooltip:function(){var j=this.config,k=this.triggerer.css("position"),h="",i="";if(k!="relative"||k!="absolute"){this.triggerer.css("position","relative")}switch(j.mode){case 1:h=b('<span class="'+j.tooltip.slice(1)+'"></span>');this.triggerer.append(h.text(this.triggerer.attr("title"))).removeAttr("title");break;case 3:h=b('<div class="'+j.tooltip.slice(1)+'"></div>');this.triggerer.append(h.append(b(this.triggerer.data("target")).clone().removeAttr("id")));break}oTarget=this.triggerer.find(j.tooltip);oTarget.find("iframe").css("position","relative");if(j.ajax!==false&&this.triggerer.data("ajax_loaded")!==true){this.loadAJAX()}this.checkVideoSupport(oTarget);if(typeof j.classes!=="undefined"){oTarget.addClass(j.classes)}if(!j.arrow){oTarget.addClass("noarrow")}oTarget.on("mouseenter",function(l){b(this).addClass(j.hoverClass)}).on("mouseleave",function(l){b(this).removeClass(j.hoverClass)});if(j.enableARIA){this.handleARIA()}this.triggerer.data("awsTooltipInitialized",true)},delayAnimation:function(h,j){var m=this,l=this.config,i=h.hasClass("visible")?l.delayHide:l.delayShow,k=setTimeout(function(){var n=m.checkFocus();if((n&&j=="mouseenter")||(!n&&j=="mouseleave")){m.handleVisibility(j,true)}else{h.data("timer","")}},i);h.data("timer",k)},handleARIA:function(){var k=this.config,h=this.triggerer,j=h.find(k.tooltip),i="tooltip-"+Math.floor(Math.random()*9999999);h.attr("aria-labeledby",i);j.attr({id:i,role:"tooltip","aria-hidden":true})},handleCallback:function(k,i,j){var h=typeof j=="undefined"?this:j;typeof k=="function"?k.apply(this,i):h.trigger(k,i)},handleVideoPlayback:function(){var j=this,k=j.config,i=j.triggerer.find(k.tooltip),h="";if(i.data("video")!==true){return}switch(i.data("videoType")){case"youtube":i.find('iframe[src*="youtube"]')[0].contentWindow.postMessage('{"event":"command","func":"pauseVideo","args":""}',"*");break;case"vimeo":i.find('iframe[src*="vimeo"]')[0].contentWindow.postMessage('{"method":"pause"}',"*");break;case"html":i.find("video")[0].pause();break}},handleVisibility:function(j,l){var i=this,k=i.config,n=i.triggerer,l=typeof l=="undefined"?false:true,h=i.triggerer.find(k.tooltip),m=i.checkFocus();clearTimeout(h.data("timer"));h.data("timer","");if(!l&&(j=="mouseleave"&&k.delayHide>0||j=="mouseenter"&&k.delayShow>0)){i.delayAnimation(h,j);return}if(h.hasClass("visible")){if(m&&j!="mousedown"){h.stop(true).css("opacity",1).data("animating",false);return}if(j!="mousenter"&&j!="focus"){h.data("animating",true).css("opacity",1).stop().animate({opacity:0}
66,k.durationHide,function(){h.removeClass("visible").data("animating",false);if(k.enableARIA){h.attr("aria-hidden",true)}n.removeClass(k.hoverClass);i.handleVideoPlayback();if(k.callbackClosed){i.handleCallback(k.callbackClosed,[n],n)}})}}else{if(!h.data("animating")&&j!="mouseleave"){h.data("animating",true).css("opacity",0).addClass("visible").stop().animate({opacity:1},k.durationShow,function(){h.data("animating",false);if(k.enableARIA){h.attr("aria-hidden",false)}if(k.callbackOpened){i.handleCallback(k.callbackOpened,[n],n)}})}}},loadAJAX:function(){var i=this,h=i.triggerer,j=i.config;i.triggerer.addClass("loading");b.ajax({url:j.ajax,cache:false,dataType:j.ajaxType,success:function(k){i.triggerer.removeClass("loading");i.triggerer.data("ajax_loaded",true);if(j.ajaxType=="html"){i.triggerer.find(j.tooltip).append(k);i.calculatePosition(true)}if(j.ajaxCallback){i.handleCallback(j.ajaxCallback,[k,false],h)}},error:function(k){if(j.ajaxCallback){i.handleCallback(j.ajaxCallback,[false,k],h)}}})},parseOptions:function(h){var i=[];if(h){h=h.split(";");b.each(h,function(j,l){l=b.trim(l);if(l!==""){l=l.split(":");var k=b.trim(l.shift()),m=b.trim(l.join(":"));switch(m){case"true":case"yes":m=true;break;case"false":case"no":m=false;break}if(!isNaN(m)&&typeof(m)!="boolean"){m=parseFloat(m)}i[k]=m}});return i}},setConfiguration:function(){var h=b.extend({},this.settings,this.options,this.parseOptions(this.targetMetadata),this.parseOptions(this.triggererMetadata)),i=this.triggerer.find(h.tooltip).length>0?true:false;if(typeof this.triggerer.attr("title")!=="undefined"&&!i&&typeof this.triggerer.data("target")==="undefined"){h.mode=1}else{if(i){h.mode=2}else{h.mode=3}}if(h.event=="click"){h.event={reveal:"mousedown."+a+" focus",hide:"blur"}}else{h.event={reveal:"mouseenter."+a+" focus",hide:"mouseleave."+a+" blur"}}return h}};g.settings=g.prototype.settings;return this.each(function(){new g(this,f).init()})}}(jQuery));
67})(jQuery);
68
69/* Other non-jQuery plugins */
70
71	/*!
72	 * Pikaday
73	 *
74	 * Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/dbushell/Pikaday
75	 */
76	(function(a,b){var d;if(typeof exports==="object"){try{d=require("moment")}catch(c){}module.exports=b(d)}else{if(typeof define==="function"&&define.amd){define(function(f){var h="moment";try{d=f(h)}catch(g){}return b(d)})}else{a.Pikaday=b(a.moment)}}}(this,function(B){var j=typeof B==="function",d=!!window.addEventListener,q=window.document,u=window.setTimeout,s=function(G,H,I,F){if(d){G.addEventListener(H,I,!!F)}else{G.attachEvent("on"+H,I)}},w=function(G,H,I,F){if(d){G.removeEventListener(H,I,!!F)}else{G.detachEvent("on"+H,I)}},E=function(G,F,I){var H;if(q.createEvent){H=q.createEvent("HTMLEvents");H.initEvent(F,true,false);H=y(H,I);G.dispatchEvent(H)}else{if(q.createEventObject){H=q.createEventObject();H=y(H,I);G.fireEvent("on"+F,H)}}},x=function(F){return F.trim?F.trim():F.replace(/^\s+|\s+$/g,"")},a=function(F,G){return(" "+F.className+" ").indexOf(" "+G+" ")!==-1},m=function(F,G){if(!a(F,G)){F.className=(F.className==="")?G:F.className+" "+G}},n=function(F,G){F.className=x((" "+F.className+" ").replace(" "+G+" "," "))},l=function(F){return(/Array/).test(Object.prototype.toString.call(F))},C=function(F){return(/Date/).test(Object.prototype.toString.call(F))&&!isNaN(F.getTime())},p=function(G){var F=G.getDay();return F===0||F===6},g=function(F){return F%4===0&&F%100!==0||F%400===0},c=function(F,G){return[31,g(F)?29:28,31,30,31,30,31,31,30,31,30,31][G]},A=function(F){if(C(F)){F.setHours(0,0,0,0)}},r=function(G,F){return G.getTime()===F.getTime()},y=function(J,I,F){var H,G;for(H in I){G=J[H]!==undefined;if(G&&typeof I[H]==="object"&&I[H]!==null&&I[H].nodeName===undefined){if(C(I[H])){if(F){J[H]=new Date(I[H].getTime())}}else{if(l(I[H])){if(F){J[H]=I[H].slice(0)}}else{J[H]=y({},I[H],F)}}}else{if(F||!G){J[H]=I[H]}}}return J},i=function(F){if(F.month<0){F.year-=Math.ceil(Math.abs(F.month)/12);F.month+=12}if(F.month>11){F.year+=Math.floor(Math.abs(F.month)/12);F.month-=12}return F},k={field:null,bound:undefined,position:"bottom left",reposition:true,format:"YYYY-MM-DD",defaultDate:null,setDefaultDate:false,firstDay:0,formatStrict:false,minDate:null,maxDate:null,yearRange:10,showWeekNumber:false,minYear:0,maxYear:9999,minMonth:undefined,maxMonth:undefined,startRange:null,endRange:null,isRTL:false,yearSuffix:"",showMonthAfterYear:false,showDaysInNextAndPreviousMonths:false,numberOfMonths:1,mainCalendar:"left",container:undefined,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
76ay","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,onSelect:null,onOpen:null,onClose:null,onDraw:null},D=function(H,F,G){F+=H.firstDay;while(F>=7){F-=7}return G?H.i18n.weekdaysShort[F]:H.i18n.weekdays[F]},v=function(G){var F=[];if(G.isEmpty){if(G.showDaysInNextAndPreviousMonths){F.push("is-outside-current-month")}else{return'<td class="is-empty"></td>'}}if(G.isDisabled){F.push("is-disabled")}if(G.isToday){F.push("is-today")}if(G.isSelected){F.push("is-selected")}if(G.isInRange){F.push("is-inrange")}if(G.isStartRange){F.push("is-startrange")}if(G.isEndRange){F.push("is-endrange")}return'<td data-day="'+G.day+'" class="'+F.join(" ")+'"><button class="pika-button pika-day" type="button" data-pika-year="'+G.year+'" data-pika-month="'+G.month+'" data-pika-day="'+G.day+'">'+G.day+"</button></td>"},f=function(I,F,J){var H=new Date(J,0,1),G=Math.ceil((((new Date(J,F,I)-H)/86400000)+H.getDay()+1)/7);return'<td class="pika-week">'+G+"</td>"},e=function(G,F){return"<tr>"+(F?G.reverse():G).join("")+"</tr>"},b=function(F){return"<tbody>"+F.join("")+"</tbody>"},z=function(H){var G,F=[];if(H.showWeekNumber){F.push("<th></th>")}for(G=0;G<7;G++){F.push('<th scope="col"><abbr title="'+D(H,G)+'">'+D(H,G,true)+"</abbr></th>")}return"<thead>"+(H.isRTL?F.reverse():F).join("")+"</thead>"},t=function(S,P,Q,O,U){var K,J,N,F=S._o,I=Q===F.minYear,T=Q===F.maxYear,M='<div class="pika-title">',H,R,G=true,L=true;for(N=[],K=0;K<12;K++){N.push('<option value="'+(Q===U?K-P:12+K-P)+'"'+(K===O?" selected":"")+((I&&K<F.minMonth)||(T&&K>F.maxMonth)?"disabled":"")+">"+F.i18n.months[K]+"</option>")}H='<div class="pika-label">'+F.i18n.months[O]+'<select class="pika-select pika-select-month" tabindex="-1">'+N.join("")+"</select></div>";if(l(F.yearRange)){K=F.yearRange[0];J=F.yearRange[1]+1}else{K=Q-F.yearRange;J=1+Q+F.yearRange}for(N=[];K<J&&K<=F.maxYear;K++){if(K>=F.minYear){N.push('<option value="'+K+'"'+(K===Q?" selected":"")+">"+(K)+"</option>")}}R='<div class="pika-label">'+Q+F.yearSuffix+'<select class="pika-select pika-select-year" tabindex="-1">'+N.join("")+"</select></div>";if(F.showMonthAfterYear){M+=R+H}else{M+=H+R}if(I&&(O===0||F.minMonth>=O)){G=false}if(T&&(O===11||F.maxMonth<=O)){L=false}if(P===0){M+='<button class="pika-prev'+(G?"":" is-disabled")+'" type="button">'+F.i18n.previousMonth+"</button>"}if(P===(S._o.numberOfMonths-1)){M+='<button class="pika-next'+(L?"":" is-disabled")+'" type="button">'+F.i18n.nextMonth+"</button>"}return M+="</div>"},o=function(F,G){return'<table cellpadding="0" cellspacing="0" class="pika-table">'+z(F)+b(G)+"</table>"},h=function(H){var F=this,I=F.config(H);F._onMouseDown=function(K){if(!F._v){return}K=K||window.event;var J=K.target||K.srcElement;if(!J){return}if(!a(J,"is-disabled")){if(a(J,"pika-button")&&!a(J,"is-empty")){F.setDate(new Date(J.getAttribute("data-pika-year"),J.getAttribute("data-pika-month"),J.getAttribute("data-pika-day")));if(I.bound){u(function(){F.hide();if(I.field){I.field.blur()}},100)}}else{if(a(J,"pika-prev")){F.prevMonth()}else{if(a(J,"pika-next")){F.nextMonth()}}}}if(!a(J,"pika-select")){if(K.preventDefault){K.preventDefault()}else{K.returnValue=false;return false}}else{F._c=true}};F._onChange=function(K){K=K||window.event;var J=K.target||K.srcElement;if(!J){return}if(a(J,"pika-select-month")){F.gotoMonth(J.value)}else{if(a(J,"pika-select-year")){F.gotoYear(J.value)}}};F._onInputChange=function(K){var J;if(K.firedBy===F){return}if(j){J=B(I.field.value,I.format,I.formatStrict);J=(J&&J.isValid())?J.toDate():null}else{J=new Date(Date.parse(I.field.value))}if(C(J)){F.setDate(J)}if(!F._v){F.show()}};F._onInputFocus=function(){F.show()};F._onInputClick=function(){F.show()};F._onInputBlur=function(){var J=q.activeElement;do{if(a(J,"pika-single")){return}}while((J=J.parentNode));if(!F._c){F._b=u(function(){F.hide()},50)}F._c=false};F._onClick=function(K){K=K||window.event;var J=K.target||K.srcElement,L=J;if(!J){return}if(!d&&a(J,"pika-select")){if(!J.onchange){J.setAttribute("onchange","return;");s(J,"change",F._onChange)}}do{if(a(L,"pika-single")||L===I.trigger){return}}while((L=L.parentNode));if(F._v&&J!==I.trigger&&L!==I.trigger){F.hide()}};F.el=q.createElement("div");F.el.className="pika-single"+(I.isRTL?" is-rtl":"")+(I.theme?" "+I.theme:"");s(F.el,"mousedown",F._onMouseDown,true);s(F.el,"touchend",F._onMouseDown,true);s(F.el,"change",F._onChange);if(I.field){if(I.container){I.container.appendChild(F.el)}else{if(I.bound){q.body.appendChild(F.el)}else{I.field.parentNode.insertBefore(F.el,I.field.nextSibling)}}s(I.field,"change",F._onInputChange);
76if(!I.defaultDate){if(j&&I.field.value){I.defaultDate=B(I.field.value,I.format).toDate()}else{I.defaultDate=new Date(Date.parse(I.field.value))}I.setDefaultDate=true}}var G=I.defaultDate;if(C(G)){if(I.setDefaultDate){F.setDate(G,true)}else{F.gotoDate(G)}}else{F.gotoDate(new Date())}if(I.bound){this.hide();F.el.className+=" is-bound";s(I.trigger,"click",F._onInputClick);s(I.trigger,"focus",F._onInputFocus);s(I.trigger,"blur",F._onInputBlur)}else{this.show()}};h.prototype={config:function(G){if(!this._o){this._o=y({},k,true)}var H=y(this._o,G,true);H.isRTL=!!H.isRTL;H.field=(H.field&&H.field.nodeName)?H.field:null;H.theme=(typeof H.theme)==="string"&&H.theme?H.theme:null;H.bound=!!(H.bound!==undefined?H.field&&H.bound:H.field);H.trigger=(H.trigger&&H.trigger.nodeName)?H.trigger:H.field;H.disableWeekends=!!H.disableWeekends;H.disableDayFn=(typeof H.disableDayFn)==="function"?H.disableDayFn:null;var F=parseInt(H.numberOfMonths,10)||1;H.numberOfMonths=F>4?4:F;if(!C(H.minDate)){H.minDate=false}if(!C(H.maxDate)){H.maxDate=false}if((H.minDate&&H.maxDate)&&H.maxDate<H.minDate){H.maxDate=H.minDate=false}if(H.minDate){this.setMinDate(H.minDate)}if(H.maxDate){this.setMaxDate(H.maxDate)}if(l(H.yearRange)){var I=new Date().getFullYear()-10;H.yearRange[0]=parseInt(H.yearRange[0],10)||I;H.yearRange[1]=parseInt(H.yearRange[1],10)||I}else{H.yearRange=Math.abs(parseInt(H.yearRange,10))||k.yearRange;if(H.yearRange>100){H.yearRange=100}}return H},toString:function(F){return !C(this._d)?"":j?B(this._d).format(F||this._o.format):this._d.toDateString()},getMoment:function(){return j?B(this._d):null},setMoment:function(F,G){if(j&&B.isMoment(F)){this.setDate(F.toDate(),G)}},getDate:function(){return C(this._d)?new Date(this._d.getTime()):null},setDate:function(G,I){if(!G){this._d=null;if(this._o.field){this._o.field.value="";E(this._o.field,"change",{firedBy:this})}return this.draw()}if(typeof G==="string"){G=new Date(Date.parse(G))}if(!C(G)){return}var H=this._o.minDate,F=this._o.maxDate;if(C(H)&&G<H){G=H}else{if(C(F)&&G>F){G=F}}this._d=new Date(G.getTime());A(this._d);this.gotoDate(this._d);if(this._o.field){this._o.field.value=this.toString();E(this._o.field,"change",{firedBy:this})}if(!I&&typeof this._o.onSelect==="function"){this._o.onSelect.call(this,this.getDate())}},gotoDate:function(H){var G=true;if(!C(H)){return}if(this.calendars){var J=new Date(this.calendars[0].year,this.calendars[0].month,1),F=new Date(this.calendars[this.calendars.length-1].year,this.calendars[this.calendars.length-1].month,1),I=H.getTime();F.setMonth(F.getMonth()+1);F.setDate(F.getDate()-1);G=(I<J.getTime()||F.getTime()<I)}if(G){this.calendars=[{month:H.getMonth(),year:H.getFullYear()}];if(this._o.mainCalendar==="right"){this.calendars[0].month+=1-this._o.numberOfMonths}}this.adjustCalendars()},adjustCalendars:function(){this.calendars[0]=i(this.calendars[0]);for(var F=1;F<this._o.numberOfMonths;F++){this.calendars[F]=i({month:this.calendars[0].month+F,year:this.calendars[0].year})}this.draw()},gotoToday:function(){this.gotoDate(new Date())},gotoMonth:function(F){if(!isNaN(F)){this.calendars[0].month=parseInt(F,10);this.adjustCalendars()}},nextMonth:function(){this.calendars[0].month++;this.adjustCalendars()},prevMonth:function(){this.calendars[0].month--;this.adjustCalendars()},gotoYear:function(F){if(!isNaN(F)){this.calendars[0].year=parseInt(F,10);this.adjustCalendars()}},setMinDate:function(F){A(F);this._o.minDate=F;this._o.minYear=F.getFullYear();this._o.minMonth=F.getMonth();this.draw()},setMaxDate:function(F){A(F);this._o.maxDate=F;this._o.maxYear=F.getFullYear();this._o.maxMonth=F.getMonth();this.draw()},setStartRange:function(F){this._o.startRange=F},setEndRange:function(F){this._o.endRange=F},draw:function(G){if(!this._v&&!G){return}var F=this._o,M=F.minYear,J=F.maxYear,K=F.minMonth,H=F.maxMonth,I="";if(this._y<=M){this._y=M;if(!isNaN(K)&&this._m<K){this._m=K}}if(this._y>=J){this._y=J;if(!isNaN(H)&&this._m>H){this._m=H}}for(var L=0;L<F.numberOfMonths;L++){I+='<div class="pika-lendar">'+t(this,L,this.calendars[L].year,this.calendars[L].month,this.calendars[0].year)+this.render(this.calendars[L].year,this.calendars[L].month)+"</div>"}
76this.el.innerHTML=I;if(F.bound){if(F.field.type!=="hidden"){u(function(){F.trigger.focus()},1)}}if(typeof this._o.onDraw==="function"){var N=this;u(function(){N._o.onDraw.call(N)},0)}},adjustPosition:function(){var N,L,G,O,K,J,H,I,M,F;if(this._o.container){return}this.el.style.position="absolute";N=this._o.trigger;L=N;G=this.el.offsetWidth;O=this.el.offsetHeight;K=window.innerWidth||q.documentElement.clientWidth;J=window.innerHeight||q.documentElement.clientHeight;H=window.pageYOffset||q.body.scrollTop||q.documentElement.scrollTop;if(typeof N.getBoundingClientRect==="function"){F=N.getBoundingClientRect();I=F.left+window.pageXOffset;M=F.bottom+window.pageYOffset}else{I=L.offsetLeft;M=L.offsetTop+L.offsetHeight;while((L=L.offsetParent)){I+=L.offsetLeft;M+=L.offsetTop}}if((this._o.reposition&&I+G>K)||(this._o.position.indexOf("right")>-1&&I-G+N.offsetWidth>0)){I=I-G+N.offsetWidth}if((this._o.reposition&&M+O>J+H)||(this._o.position.indexOf("top")>-1&&M-O-N.offsetHeight>0)){M=M-O-N.offsetHeight}this.el.style.left=I+"px";this.el.style.top=M+"px"},render:function(S,ad){var V=this._o,I=new Date(),N=c(S,ad),U=new Date(S,ad,1).getDay(),ag=[],O=[];A(I);if(V.firstDay>0){U-=V.firstDay;if(U<0){U+=7}}var ac=ad===0?11:ad-1,G=ad===11?0:ad+1,af=ad===0?S-1:S,ab=ad===11?S+1:S,Q=c(af,ac);var L=N+U,K=L;while(K>7){K-=7}L+=7-K;for(var aa=0,X=0;aa<L;aa++){var Z=new Date(S,ad,1+(aa-U)),P=C(this._d)?r(Z,this._d):false,ah=r(Z,I),W=aa<U||aa>=(N+U),M=1+(aa-U),R=ad,Y=S,ae=V.startRange&&r(V.startRange,Z),J=V.endRange&&r(V.endRange,Z),F=V.startRange&&V.endRange&&V.startRange<Z&&Z<V.endRange,T=(V.minDate&&Z<V.minDate)||(V.maxDate&&Z>V.maxDate)||(V.disableWeekends&&p(Z))||(V.disableDayFn&&V.disableDayFn(Z));if(W){if(aa<U){M=Q+M;R=ac;Y=af}else{M=M-N;R=G;Y=ab}}var H={day:M,month:R,year:Y,isSelected:P,isToday:ah,isDisabled:T,isEmpty:W,isStartRange:ae,isEndRange:J,isInRange:F,showDaysInNextAndPreviousMonths:V.showDaysInNextAndPreviousMonths};O.push(v(H));if(++X===7){if(V.showWeekNumber){O.unshift(f(aa-U,ad,S))}ag.push(e(O,V.isRTL));O=[];X=0}}return o(V,ag)},isVisible:function(){return this._v},show:function(){if(!this._v){n(this.el,"is-hidden");this._v=true;this.draw();if(this._o.bound){s(q,"click",this._onClick);this.adjustPosition()}if(typeof this._o.onOpen==="function"){this._o.onOpen.call(this)}}},hide:function(){var F=this._v;if(F!==false){if(this._o.bound){w(q,"click",this._onClick)}this.el.style.position="static";this.el.style.left="auto";this.el.style.top="auto";m(this.el,"is-hidden");this._v=false;if(F!==undefined&&typeof this._o.onClose==="function"){this._o.onClose.call(this)}}},destroy:function(){this.hide();w(this.el,"mousedown",this._onMouseDown,true);w(this.el,"touchend",this._onMouseDown,true);w(this.el,"change",this._onChange);if(this._o.field){w(this._o.field,"change",this._onInputChange);if(this._o.bound){w(this._o.trigger,"click",this._onInputClick);w(this._o.trigger,"focus",this._onInputFocus);w(this._o.trigger,"blur",this._onInputBlur)}}if(this.el.parentNode){this.el.parentNode.removeChild(this.el)}}};return h}));
77
78/**
79 * AWS AJAX - Utilizes aws.services.js
80 * @param service obj | string; is an object when a webservice is used
81 * @param data obj; the data you want to send to the url
82 * @param data obj; additional options for standard ajax call including functions
83 */
84function awsAJAX(service, data, options){
85	var config = { url: service, data: data, dataType: 'json' };
86
87	// Combine Option variables
88	config = $.extend(config, options);
89
90	// Check that the service URL is not an object
91	if(service.isWebService){
92		// URL is invalid, update it
93		config.url = service.url;
94
95		// Stringify the data
96		config.data = JSON.stringify(config.data);
97
98		// Add some options for webservices
99		config.method = "POST";
100		config.contentType = "application/json; charset=utf-8";
101	}
102
103	// Run AJAX
104	$.ajax(config);
105}
106
107// Avoid console errors in browsers that lack a console (Remove if you wish)
108(function(){var e;var d=function(){};var b=["assert","clear","count","debug","dir","dirxml","error","exception","group","groupCollapsed","groupEnd","info","log","markTimeline","profile","profileEnd","table","t
108ime","timeEnd","timeStamp","trace","warn"];var c=b.length;var a=(window.console=window.console||{});while(c--){e=b[c];if(!a[e]){a[e]=d}}}());

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.