text: if(function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}}),function(a,b){"$:nomunge";var c,d=a.jQuery||a.Cowboy||(a.Cowboy={});d.throttle=c=function(a,c,e,f){function g(){function d(){i=+new Date,e.apply(j,l)}function g(){h=b}var j=this,k=+new Date-i,l=arguments;f&&!h&&d(),h&&clearTimeout(h),f===b&&k>a?d():c!==!0&&(h=setTimeout(f?g:d,f===b?a-k:a))}var h,i=0;return"boolean"!=typeof c&&(f=e,e=c,c=b),d.guid&&(g.guid=e.guid=e.guid||d.guid++),g},d.debounce=function(a,d,e){return e===b?c(a,d,!1):c(a,e,d!==!1)}}(this),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)}})}),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){return a(b.target).is(this)?b.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.2.0",d.prototype.close=function(b){function c(){f.detach().trigger("closed.bs.alert").remove()}var d=a(this),e=d.attr("data-target");e||(e=d.attr("href"),e=e&&e.replace(/.*(?=#[^\s]*$)/,""));var f=a(e);b&&b.preventDefault(),f.length||(f=d.hasClass("alert")?d:d.parent()),f.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(f.removeClass("in"),a.support.transition&&f.hasClass("fade")?f.one("bsTransitionEnd",c).emulateTransitionEnd(150):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.2.0",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),d[e](null==f[b]?this.options[b]:f[b]),setTimeout(a.proxy(function(){"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")&&(c.prop("checked")&&this.$element.hasClass("active")?a=!1:b.find(".active").removeClass("active")),a&&c.prop("checked",!this.$element.hasClass("active")).trigger("change")}a&&this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target);d.hasClass("btn")||(d=d.closest(".btn")),b.call(d,"toggle"),c.preventDefault()})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b).on("keydown.bs.carousel",a.proxy(this.keydown,this)),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.2.0",c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0},c.prototype.keydown=function(a){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.to=function(b){var c=this,d=this.getItemIndex(this.$active=this.$element.find(".item.active"));return b>this.$items.length-1||0>b?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){c.to(b)}):d==b?this.pause().cycle():this.slide(b>d?"next":"prev",a(this.$items[b]))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){return this.sliding?void 0:this.slide("next")},c.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},c.prototype.slide=function(b,c){var d=this.$element.find(".item.active"),e=c||d[b](),f=this.interval,g="next"==b?"left":"right",h="next"==b?"first":"last",i=this;if(!e.length){if(!this.options.wrap)return;e=this.$element.find(".item")[h]()}if(e.hasClass("active"))return this.sliding=!1;var j=e[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:g});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,f&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(e)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:g});return a.support.transition&&this.$element.hasClass("slide")?(e.addClass(b),e[0].offsetWidth,d.addClass(g),e.addClass(g),d.one("bsTransitionEnd",function(){e.removeClass([b,g].join(" ")).addClass("active"),d.removeClass(["active",g].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(1e3*d.css("transition-duration").slice(0,-1))):(d.removeClass("active"),e.addClass("active"),this.sliding=!1,this.$element.trigger(m)),f&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this},a(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}}),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.collapse"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b);!e&&f.toggle&&"show"==b&&(b=!b),e||d.data("bs.collapse",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.transitioning=null,this.options.parent&&(this.$parent=a(this.options.parent)),this.options.toggle&&this.toggle()};c.VERSION="3.2.0",c.DEFAULTS={toggle:!0},c.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},c.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var c=a.Event("show.bs.collapse");if(this.$element.trigger(c),!c.isDefaultPrevented()){var d=this.$parent&&this.$parent.find("> .panel > .in");if(d&&d.length){var e=d.data("bs.collapse");if(e&&e.transitioning)return;b.call(d,"hide"),e||d.data("bs.collapse",null)}var f=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[f](0),this.transitioning=1;var g=function(){this.$element.removeClass("collapsing").addClass("collapse in")[f](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return g.call(this);var h=a.camelCase(["scroll",f].join("-"));this.$element.one("bsTransitionEnd",a.proxy(g,this)).emulateTransitionEnd(350)[f](this.$element[0][h])}}},c.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var d=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(d,this)).emulateTransitionEnd(350):d.call(this)}}},c.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var d=a.fn.collapse;a.fn.collapse=b,a.fn.collapse.Constructor=c,a.fn.collapse.noConflict=function(){return a.fn.collapse=d,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(c){var d,e=a(this),f=e.attr("data-target")||c.preventDefault()||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""),g=a(f),h=g.data("bs.collapse"),i=h?"toggle":e.data(),j=e.attr("data-parent"),k=j&&a(j);h&&h.transitioning||(k&&k.find('[data-toggle="collapse"][data-parent="'+j+'"]').not(e).addClass("collapsed"),e[g.hasClass("in")?"addClass":"removeClass"]("collapsed")),b.call(g,i)})}(jQuery),+function(a){"use strict";function b(b){b&&3===b.which||(a(e).remove(),a(f).each(function(){var d=c(a(this)),e={relatedTarget:this};d.hasClass("open")&&(d.trigger(b=a.Event("hide.bs.dropdown",e)),b.isDefaultPrevented()||d.removeClass("open").trigger("hidden.bs.dropdown",e))}))}function c(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.2.0",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=c(e),g=f.hasClass("open");if(b(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a('<div class="dropdown-backdrop"/>').insertAfter(a(this)).on("click",b);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus"),f.toggleClass("open").trigger("shown.bs.dropdown",h)}return!1}},g.prototype.keydown=function(b){if(/(38|40|27)/.test(b.keyCode)){var d=a(this);if(b.preventDefault(),b.stopPropagation(),!d.is(".disabled, :disabled")){var e=c(d),g=e.hasClass("open");if(!g||g&&27==b.keyCode)return 27==b.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.divider):visible a",i=e.find('[role="menu"]'+h+', [role="listbox"]'+h);if(i.length){var j=i.index(i.filter(":focus"));38==b.keyCode&&j>0&&j--,40==b.keyCode&&j<i.length-1&&j++,~j||(j=0),i.eq(j).trigger("focus")}}}};var h=a.fn.dropdown;a.fn.dropdown=d,a.fn.dropdown.Constructor=g,a.fn.dropdown.noConflict=function(){return a.fn.dropdown=h,this},a(document).on("click.bs.dropdown.data-api",b).on("click.bs.dropdown.data-api",".dropdown form",function(a){a.stopPropagation()}).on("click.bs.dropdown.data-api",f,g.prototype.toggle).on("keydown.bs.dropdown.data-api",f+', [role="menu"], [role="listbox"]',g.prototype.keydown)}(jQuery),+function(a){"use strict";function b(b,d){return this.each(function(){var e=a(this),f=e.data("bs.modal"),g=a.extend({},c.DEFAULTS,e.data(),"object"==typeof b&&b);f||e.data("bs.modal",f=new c(this,g)),"string"==typeof b?f[b](d):g.show&&f.show(d)})}var c=function(b,c){this.options=c,this.$body=a(document.body),this.$element=a(b),this.$backdrop=this.isShown=null,this.scrollbarWidth=0,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,a.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};c.VERSION="3.2.0",c.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},c.prototype.toggle=function(a){return this.isShown?this.hide():this.show(a)},c.prototype.show=function(b){var c=this,d=a.Event("show.bs.modal",{relatedTarget:b});this.$element.trigger(d),this.isShown||d.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',a.proxy(this.hide,this)),this.backdrop(function(){var d=a.support.transition&&c.$element.hasClass("fade");c.$element.parent().length||c.$element.appendTo(c.$body),c.$element.show().scrollTop(0),d&&c.$element[0].offsetWidth,c.$element.addClass("in").attr("aria-hidden",!1),c.enforceFocus();var e=a.Event("shown.bs.modal",{relatedTarget:b});d?c.$element.find(".modal-dialog").one("bsTransitionEnd",function(){c.$element.trigger("focus").trigger(e)}).emulateTransitionEnd(300):c.$element.trigger("focus").trigger(e)}))},c.prototype.hide=function(b){b&&b.preventDefault(),b=a.Event("hide.bs.modal"),this.$element.trigger(b),this.isShown&&!b.isDefaultPrevented()&&(this.isShown=!1,this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),a(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),a.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",a.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},c.prototype.enforceFocus=function(){a(document).off("focusin.bs.modal").on("focusin.bs.modal",a.proxy(function(a){this.$element[0]===a.target||this.$element.has(a.target).length||this.$element.trigger("focus")},this))},c.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",a.proxy(function(a){27==a.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},c.prototype.hideModal=function(){var a=this;this.$element.hide(),this.backdrop(function(){a.$element.trigger("hidden.bs.modal")})},c.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},c.prototype.backdrop=function(b){var c=this,d=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var e=a.support.transition&&d;if(this.$backdrop=a('<div class="modal-backdrop '+d+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",a.proxy(function(a){a.target===a.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),e&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!b)return;e?this.$backdrop.one("bsTransitionEnd",b).emulateTransitionEnd(150):b()}else if(!this.isShown&&this.$backdrop){this.$backdrop.removeClass("in");var f=function(){c.removeBackdrop(),b&&b()};a.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",f).emulateTransitionEnd(150):f()}else b&&b()},c.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())},c.prototype.setScrollbar=function(){var a=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",a+this.scrollbarWidth)},c.prototype.resetScrollbar=function(){this.$body.css("padding-right","")},c.prototype.measureScrollbar=function(){var a=document.createElement("div");a.className="modal-scrollbar-measure",this.$body.append(a);var b=a.offsetWidth-a.clientWidth;return this.$body[0].removeChild(a),b};var d=a.fn.modal;a.fn.modal=b,a.fn.modal.Constructor=c,a.fn.modal.noConflict=function(){return a.fn.modal=d,this},a(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(c){var d=a(this),e=d.attr("href"),f=a(d.attr("data-target")||e&&e.replace(/.*(?=#[^\s]+$)/,"")),g=f.data("bs.modal")?"toggle":a.extend({remote:!/#/.test(e)&&e},f.data(),d.data());d.is("a")&&c.preventDefault(),f.one("show.bs.modal",function(a){a.isDefaultPrevented()||f.one("hidden.bs.modal",function(){d.is(":visible")&&d.trigger("focus")})}),b.call(f,g,this)})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tooltip"),f="object"==typeof b&&b;(e||"destroy"!=b)&&(e||d.data("bs.tooltip",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("tooltip",a,b)};c.VERSION="3.2.0",c.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(this.options.viewport.selector||this.options.viewport);for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show()},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var c=a.contains(document.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!c)return;var d=this,e=this.tip(),f=this.getUID(this.type);this.setContent(),e.attr("id",f),this.$element.attr("aria-describedby",f),this.options.animation&&e.addClass("fade");var g="function"==typeof this.options.placement?this.options.placement.call(this,e[0],this.$element[0]):this.options.placement,h=/\s?auto?\s?/i,i=h.test(g);i&&(g=g.replace(h,"")||"top"),e.detach().css({top:0,left:0,display:"block"}).addClass(g).data("bs."+this.type,this),this.options.container?e.appendTo(this.options.container):e.insertAfter(this.$element);var j=this.getPosition(),k=e[0].offsetWidth,l=e[0].offsetHeight;if(i){var m=g,n=this.$element.parent(),o=this.getPosition(n);g="bottom"==g&&j.top+j.height+l-o.scroll>o.height?"top":"top"==g&&j.top-o.scroll-l<0?"bottom":"right"==g&&j.right+k>o.width?"left":"left"==g&&j.left-k<o.left?"right":g,e.removeClass(m).addClass(g)}var p=this.getCalculatedOffset(g,j,k,l);this.applyPlacement(p,g);var q=function(){d.$element.trigger("shown.bs."+d.type),d.hoverState=null};a.support.transition&&this.$tip.hasClass("fade")?e.one("bsTransitionEnd",q).emulateTransitionEnd(150):q()}},c.prototype.applyPlacement=function(b,c){var d=this.tip(),e=d[0].offsetWidth,f=d[0].offsetHeight,g=parseInt(d.css("margin-top"),10),h=parseInt(d.css("margin-left"),10);isNaN(g)&&(g=0),isNaN(h)&&(h=0),b.top=b.top+g,b.left=b.left+h,a.offset.setOffset(d[0],a.extend({using:function(a){d.css({top:Math.round(a.top),left:Math.round(a.left)})}},b),0),d.addClass("in");var i=d[0].offsetWidth,j=d[0].offsetHeight;"top"==c&&j!=f&&(b.top=b.top+f-j);var k=this.getViewportAdjustedDelta(c,b,i,j);k.left?b.left+=k.left:b.top+=k.top;var l=k.left?2*k.left-e+i:2*k.top-f+j,m=k.left?"left":"top",n=k.left?"offsetWidth":"offsetHeight";d.offset(b),this.replaceArrow(l,d[0][n],m)},c.prototype.replaceArrow=function(a,b,c){this.arrow().css(c,a?50*(1-a/b)+"%":"")},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle();a.find(".tooltip-inner")[this.options.html?"html":"text"](b),a.removeClass("fade in top bottom left right")},c.prototype.hide=function(){function b(){"in"!=c.hoverState&&d.detach(),c.$element.trigger("hidden.bs."+c.type)}var c=this,d=this.tip(),e=a.Event("hide.bs."+this.type);return this.$element.removeAttr("aria-describedby"),this.$element.trigger(e),e.isDefaultPrevented()?void 0:(d.removeClass("in"),a.support.transition&&this.$tip.hasClass("fade")?d.one("bsTransitionEnd",b).emulateTransitionEnd(150):b(),this.hoverState=null,this)},c.prototype.fixTitle=function(){var a=this.$element;(a.attr("title")||"string"!=typeof a.attr("data-original-title"))&&a.attr("data-original-title",a.attr("title")||"").attr("title","")},c.prototype.hasContent=function(){return this.getTitle()},c.prototype.getPosition=function(b){b=b||this.$element;var c=b[0],d="BODY"==c.tagName;return a.extend({},"function"==typeof c.getBoundingClientRect?c.getBoundingClientRect():null,{scroll:d?document.documentElement.scrollTop||document.body.scrollTop:b.scrollTop(),width:d?a(window).width():b.outerWidth(),height:d?a(window).height():b.outerHeight()},d?{top:0,left:0}:b.offset())},c.prototype.getCalculatedOffset=function(a,b,c,d){return"bottom"==a?{top:b.top+b.height,left:b.left+b.width/2-c/2}:"top"==a?{top:b.top-d,left:b.left+b.width/2-c/2}:"left"==a?{top:b.top+b.height/2-d/2,left:b.left-c}:{top:b.top+b.height/2-d/2,left:b.left+b.width}},c.prototype.getViewportAdjustedDelta=function(a,b,c,d){var e={top:0,left:0};if(!this.$viewport)return e;var f=this.options.viewport&&this.options.viewport.padding||0,g=this.getPosition(this.$viewport);if(/right|left/.test(a)){var h=b.top-f-g.scroll,i=b.top+f-g.scroll+d;h<g.top?e.top=g.top-h:i>g.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;j<g.left?e.left=g.left-j:k>g.width&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){return this.$tip=this.$tip||a(this.options.template)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;(e||"destroy"!=b)&&(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.2.0",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").empty()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},c.prototype.tip=function(){return this.$tip||(this.$tip=a(this.options.template)),this.$tip};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){var e=a.proxy(this.process,this);this.$body=a("body"),this.$scrollElement=a(a(c).is("body")?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",e),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.2.0",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b="offset",c=0;a.isWindow(this.$scrollElement[0])||(b="position",c=this.$scrollElement.scrollTop()),this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight();var d=this;this.$body.find(this.selector).map(function(){var d=a(this),e=d.data("target")||d.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[b]().top+c,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){d.offsets.push(this[0]),d.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b<=e[0])return g!=(a=f[0])&&this.activate(a);for(a=e.length;a--;)g!=f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},b.prototype.activate=function(b){this.activeTarget=b,a(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var c=this.selector+'[data-target="'+b+'"],'+this.selector+'[href="'+b+'"]',d=a(c).parents("li").addClass("active");
  d.parent(".dropdown-menu").length&&(d=d.closest("li.dropdown").addClass("active")),d.trigger("activate.bs.scrollspy")};var d=a.fn.scrollspy;a.fn.scrollspy=c,a.fn.scrollspy.Constructor=b,a.fn.scrollspy.noConflict=function(){return a.fn.scrollspy=d,this},a(window).on("load.bs.scrollspy.data-api",function(){a('[data-spy="scroll"]').each(function(){var b=a(this);c.call(b,b.data())})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.tab");e||d.data("bs.tab",e=new c(this)),"string"==typeof b&&e[b]()})}var c=function(b){this.element=a(b)};c.VERSION="3.2.0",c.prototype.show=function(){var b=this.element,c=b.closest("ul:not(.dropdown-menu)"),d=b.data("target");if(d||(d=b.attr("href"),d=d&&d.replace(/.*(?=#[^\s]*$)/,"")),!b.parent("li").hasClass("active")){var e=c.find(".active:last a")[0],f=a.Event("show.bs.tab",{relatedTarget:e});if(b.trigger(f),!f.isDefaultPrevented()){var g=a(d);this.activate(b.closest("li"),c),this.activate(g,g.parent(),function(){b.trigger({type:"shown.bs.tab",relatedTarget:e})})}}},c.prototype.activate=function(b,c,d){function e(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),b.addClass("active"),g?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu")&&b.closest("li.dropdown").addClass("active"),d&&d()}var f=c.find("> .active"),g=d&&a.support.transition&&f.hasClass("fade");g?f.one("bsTransitionEnd",e).emulateTransitionEnd(150):e(),f.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this},a(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(c){c.preventDefault(),b.call(a(this),"show")})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.2.0",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=a(document).height(),d=this.$target.scrollTop(),e=this.$element.offset(),f=this.options.offset,g=f.top,h=f.bottom;"object"!=typeof f&&(h=g=f),"function"==typeof g&&(g=f.top(this.$element)),"function"==typeof h&&(h=f.bottom(this.$element));var i=null!=this.unpin&&d+this.unpin<=e.top?!1:null!=h&&e.top+this.$element.height()>=b-h?"bottom":null!=g&&g>=d?"top":!1;if(this.affixed!==i){null!=this.unpin&&this.$element.css("top","");var j="affix"+(i?"-"+i:""),k=a.Event(j+".bs.affix");this.$element.trigger(k),k.isDefaultPrevented()||(this.affixed=i,this.unpin="bottom"==i?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(j).trigger(a.Event(j.replace("affix","affixed"))),"bottom"==i&&this.$element.offset({top:b-this.$element.height()-h}))}}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},d.offsetBottom&&(d.offset.bottom=d.offsetBottom),d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery),function(a){function b(a,b,c){switch(arguments.length){case 2:return null!=a?a:b;case 3:return null!=a?a:null!=b?b:c;default:throw new Error("Implement me")}}function c(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1}}function d(a,b){function c(){mb.suppressDeprecationWarnings===!1&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+a)}var d=!0;return j(function(){return d&&(c(),d=!1),b.apply(this,arguments)},b)}function e(a,b){return function(c){return m(a.call(this,c),b)}}function f(a,b){return function(c){return this.lang().ordinal(a.call(this,c),b)}}function g(){}function h(a){z(a),j(this,a)}function i(a){var b=s(a),c=b.year||0,d=b.quarter||0,e=b.month||0,f=b.week||0,g=b.day||0,h=b.hour||0,i=b.minute||0,j=b.second||0,k=b.millisecond||0;this._milliseconds=+k+1e3*j+6e4*i+36e5*h,this._days=+g+7*f,this._months=+e+3*d+12*c,this._data={},this._bubble()}function j(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return b.hasOwnProperty("toString")&&(a.toString=b.toString),b.hasOwnProperty("valueOf")&&(a.valueOf=b.valueOf),a}function k(a){var b,c={};for(b in a)a.hasOwnProperty(b)&&Ab.hasOwnProperty(b)&&(c[b]=a[b]);return c}function l(a){return 0>a?Math.ceil(a):Math.floor(a)}function m(a,b,c){for(var d=""+Math.abs(a),e=a>=0;d.length<b;)d="0"+d;return(e?c?"+":"":"-")+d}function n(a,b,c,d){var e=b._milliseconds,f=b._days,g=b._months;d=null==d?!0:d,e&&a._d.setTime(+a._d+e*c),f&&hb(a,"Date",gb(a,"Date")+f*c),g&&fb(a,gb(a,"Month")+g*c),d&&mb.updateOffset(a,f||g)}function o(a){return"[object Array]"===Object.prototype.toString.call(a)}function p(a){return"[object Date]"===Object.prototype.toString.call(a)||a instanceof Date}function q(a,b,c){var d,e=Math.min(a.length,b.length),f=Math.abs(a.length-b.length),g=0;for(d=0;e>d;d++)(c&&a[d]!==b[d]||!c&&u(a[d])!==u(b[d]))&&g++;return g+f}function r(a){if(a){var b=a.toLowerCase().replace(/(.)s$/,"$1");a=bc[a]||cc[b]||b}return a}function s(a){var b,c,d={};for(c in a)a.hasOwnProperty(c)&&(b=r(c),b&&(d[b]=a[c]));return d}function t(b){var c,d;if(0===b.indexOf("week"))c=7,d="day";else{if(0!==b.indexOf("month"))return;c=12,d="month"}mb[b]=function(e,f){var g,h,i=mb.fn._lang[b],j=[];if("number"==typeof e&&(f=e,e=a),h=function(a){var b=mb().utc().set(d,a);return i.call(mb.fn._lang,b,e||"")},null!=f)return h(f);for(g=0;c>g;g++)j.push(h(g));return j}}function u(a){var b=+a,c=0;return 0!==b&&isFinite(b)&&(c=b>=0?Math.floor(b):Math.ceil(b)),c}function v(a,b){return new Date(Date.UTC(a,b+1,0)).getUTCDate()}function w(a,b,c){return bb(mb([a,11,31+b-c]),b,c).week}function x(a){return y(a)?366:365}function y(a){return a%4===0&&a%100!==0||a%400===0}function z(a){var b;a._a&&-2===a._pf.overflow&&(b=a._a[tb]<0||a._a[tb]>11?tb:a._a[ub]<1||a._a[ub]>v(a._a[sb],a._a[tb])?ub:a._a[vb]<0||a._a[vb]>23?vb:a._a[wb]<0||a._a[wb]>59?wb:a._a[xb]<0||a._a[xb]>59?xb:a._a[yb]<0||a._a[yb]>999?yb:-1,a._pf._overflowDayOfYear&&(sb>b||b>ub)&&(b=ub),a._pf.overflow=b)}function A(a){return null==a._isValid&&(a._isValid=!isNaN(a._d.getTime())&&a._pf.overflow<0&&!a._pf.empty&&!a._pf.invalidMonth&&!a._pf.nullInput&&!a._pf.invalidFormat&&!a._pf.userInvalidated,a._strict&&(a._isValid=a._isValid&&0===a._pf.charsLeftOver&&0===a._pf.unusedTokens.length)),a._isValid}function B(a){return a?a.toLowerCase().replace("_","-"):a}function C(a,b){return b._isUTC?mb(a).zone(b._offset||0):mb(a).local()}function D(a,b){return b.abbr=a,zb[a]||(zb[a]=new g),zb[a].set(b),zb[a]}function E(a){delete zb[a]}function F(a){var b,c,d,e,f=0,g=function(a){if(!zb[a]&&Bb)try{require("./lang/"+a)}catch(b){}return zb[a]};if(!a)return mb.fn._lang;if(!o(a)){if(c=g(a))return c;a=[a]}for(;f<a.length;){for(e=B(a[f]).split("-"),b=e.length,d=B(a[f+1]),d=d?d.split("-"):null;b>0;){if(c=g(e.slice(0,b).join("-")))return c;if(d&&d.length>=b&&q(e,d,!0)>=b-1)break;b--}f++}return mb.fn._lang}function G(a){return a.match(/\[[\s\S]/)?a.replace(/^\[|\]$/g,""):a.replace(/\\/g,"")}function H(a){var b,c,d=a.match(Fb);for(b=0,c=d.length;c>b;b++)d[b]=hc[d[b]]?hc[d[b]]:G(d[b]);return function(e){var f="";for(b=0;c>b;b++)f+=d[b]instanceof Function?d[b].call(e,a):d[b];return f}}function I(a,b){return a.isValid()?(b=J(b,a.lang()),dc[b]||(dc[b]=H(b)),dc[b](a)):a.lang().invalidDate()}function J(a,b){function c(a){return b.longDateFormat(a)||a}var d=5;for(Gb.lastIndex=0;d>=0&&Gb.test(a);)a=a.replace(Gb,c),Gb.lastIndex=0,d-=1;return a}function K(a,b){var c,d=b._strict;switch(a){case"Q":return Rb;case"DDDD":return Tb;case"YYYY":case"GGGG":case"gggg":return d?Ub:Jb;case"Y":case"G":case"g":return Wb;case"YYYYYY":case"YYYYY":case"GGGGG":case"ggggg":return d?Vb:Kb;case"S":if(d)return Rb;case"SS":if(d)return Sb;case"SSS":if(d)return Tb;case"DDD":return Ib;case"MMM":case"MMMM":case"dd":case"ddd":case"dddd":return Mb;case"a":case"A":return F(b._l)._meridiemParse;case"X":return Pb;case"Z":case"ZZ":return Nb;case"T":return Ob;case"SSSS":return Lb;case"MM":case"DD":case"YY":case"GG":case"gg":case"HH":case"hh":case"mm":case"ss":case"ww":case"WW":return d?Sb:Hb;case"M":case"D":case"d":case"H":case"h":case"m":case"s":case"w":case"W":case"e":case"E":return Hb;case"Do":return Qb;default:return c=new RegExp(T(S(a.replace("\\","")),"i"))}}function L(a){a=a||"";var b=a.match(Nb)||[],c=b[b.length-1]||[],d=(c+"").match(_b)||["-",0,0],e=+(60*d[1])+u(d[2]);return"+"===d[0]?-e:e}function M(a,b,c){var d,e=c._a;switch(a){case"Q":null!=b&&(e[tb]=3*(u(b)-1));break;case"M":case"MM":null!=b&&(e[tb]=u(b)-1);break;case"MMM":case"MMMM":d=F(c._l).monthsParse(b),null!=d?e[tb]=d:c._pf.invalidMonth=b;break;case"D":case"DD":null!=b&&(e[ub]=u(b));break;case"Do":null!=b&&(e[ub]=u(parseInt(b,10)));break;case"DDD":case"DDDD":null!=b&&(c._dayOfYear=u(b));break;case"YY":e[sb]=mb.parseTwoDigitYear(b);break;case"YYYY":case"YYYYY":case"YYYYYY":e[sb]=u(b);break;case"a":case"A":c._isPm=F(c._l).isPM(b);break;case"H":case"HH":case"h":case"hh":e[vb]=u(b);break;case"m":case"mm":e[wb]=u(b);break;case"s":case"ss":e[xb]=u(b);break;case"S":case"SS":case"SSS":case"SSSS":e[yb]=u(1e3*("0."+b));break;case"X":c._d=new Date(1e3*parseFloat(b));break;case"Z":case"ZZ":c._useUTC=!0,c._tzm=L(b);break;case"dd":case"ddd":case"dddd":d=F(c._l).weekdaysParse(b),null!=d?(c._w=c._w||{},c._w.d=d):c._pf.invalidWeekday=b;break;case"w":case"ww":case"W":case"WW":case"d":case"e":case"E":a=a.substr(0,1);case"gggg":case"GGGG":case"GGGGG":a=a.substr(0,2),b&&(c._w=c._w||{},c._w[a]=u(b));break;case"gg":case"GG":c._w=c._w||{},c._w[a]=mb.parseTwoDigitYear(b)}}function N(a){var c,d,e,f,g,h,i,j;c=a._w,null!=c.GG||null!=c.W||null!=c.E?(g=1,h=4,d=b(c.GG,a._a[sb],bb(mb(),1,4).year),e=b(c.W,1),f=b(c.E,1)):(j=F(a._l),g=j._week.dow,h=j._week.doy,d=b(c.gg,a._a[sb],bb(mb(),g,h).year),e=b(c.w,1),null!=c.d?(f=c.d,g>f&&++e):f=null!=c.e?c.e+g:g),i=cb(d,e,f,h,g),a._a[sb]=i.year,a._dayOfYear=i.dayOfYear}function O(a){var c,d,e,f,g=[];if(!a._d){for(e=Q(a),a._w&&null==a._a[ub]&&null==a._a[tb]&&N(a),a._dayOfYear&&(f=b(a._a[sb],e[sb]),a._dayOfYear>x(f)&&(a._pf._overflowDayOfYear=!0),d=Z(f,0,a._dayOfYear),a._a[tb]=d.getUTCMonth(),a._a[ub]=d.getUTCDate()),c=0;3>c&&null==a._a[c];++c)a._a[c]=g[c]=e[c];for(;7>c;c++)a._a[c]=g[c]=null==a._a[c]?2===c?1:0:a._a[c];a._d=(a._useUTC?Z:Y).apply(null,g),null!=a._tzm&&a._d.setUTCMinutes(a._d.getUTCMinutes()+a._tzm)}}function P(a){var b;a._d||(b=s(a._i),a._a=[b.year,b.month,b.day,b.hour,b.minute,b.second,b.millisecond],O(a))}function Q(a){var b=new Date;return a._useUTC?[b.getUTCFullYear(),b.getUTCMonth(),b.getUTCDate()]:[b.getFullYear(),b.getMonth(),b.getDate()]}function R(a){if(a._f===mb.ISO_8601)return void V(a);a._a=[],a._pf.empty=!0;var b,c,d,e,f,g=F(a._l),h=""+a._i,i=h.length,j=0;for(d=J(a._f,g).match(Fb)||[],b=0;b<d.length;b++)e=d[b],c=(h.match(K(e,a))||[])[0],c&&(f=h.substr(0,h.indexOf(c)),f.length>0&&a._pf.unusedInput.push(f),h=h.slice(h.indexOf(c)+c.length),j+=c.length),hc[e]?(c?a._pf.empty=!1:a._pf.unusedTokens.push(e),M(e,c,a)):a._strict&&!c&&a._pf.unusedTokens.push(e);a._pf.charsLeftOver=i-j,h.length>0&&a._pf.unusedInput.push(h),a._isPm&&a._a[vb]<12&&(a._a[vb]+=12),a._isPm===!1&&12===a._a[vb]&&(a._a[vb]=0),O(a),z(a)}function S(a){return a.replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(a,b,c,d,e){return b||c||d||e})}function T(a){return a.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function U(a){var b,d,e,f,g;if(0===a._f.length)return a._pf.invalidFormat=!0,void(a._d=new Date(0/0));for(f=0;f<a._f.length;f++)g=0,b=j({},a),b._pf=c(),b._f=a._f[f],R(b),A(b)&&(g+=b._pf.charsLeftOver,g+=10*b._pf.unusedTokens.length,b._pf.score=g,(null==e||e>g)&&(e=g,d=b));j(a,d||b)}function V(a){var b,c,d=a._i,e=Xb.exec(d);if(e){for(a._pf.iso=!0,b=0,c=Zb.length;c>b;b++)if(Zb[b][1].exec(d)){a._f=Zb[b][0]+(e[6]||" ");break}for(b=0,c=$b.length;c>b;b++)if($b[b][1].exec(d)){a._f+=$b[b][0];break}d.match(Nb)&&(a._f+="Z"),R(a)}else a._isValid=!1}function W(a){V(a),a._isValid===!1&&(delete a._isValid,mb.createFromInputFallback(a))}function X(b){var c=b._i,d=Cb.exec(c);c===a?b._d=new Date:d?b._d=new Date(+d[1]):"string"==typeof c?W(b):o(c)?(b._a=c.slice(0),O(b)):p(c)?b._d=new Date(+c):"object"==typeof c?P(b):"number"==typeof c?b._d=new Date(c):mb.createFromInputFallback(b)}function Y(a,b,c,d,e,f,g){var h=new Date(a,b,c,d,e,f,g);return 1970>a&&h.setFullYear(a),h}function Z(a){var b=new Date(Date.UTC.apply(null,arguments));return 1970>a&&b.setUTCFullYear(a),b}function $(a,b){if("string"==typeof a)if(isNaN(a)){if(a=b.weekdaysParse(a),"number"!=typeof a)return null}else a=parseInt(a,10);return a}function _(a,b,c,d,e){return e.relativeTime(b||1,!!c,a,d)}function ab(a,b,c){var d=rb(Math.abs(a)/1e3),e=rb(d/60),f=rb(e/60),g=rb(f/24),h=rb(g/365),i=d<ec.s&&["s",d]||1===e&&["m"]||e<ec.m&&["mm",e]||1===f&&["h"]||f<ec.h&&["hh",f]||1===g&&["d"]||g<=ec.dd&&["dd",g]||g<=ec.dm&&["M"]||g<ec.dy&&["MM",rb(g/30)]||1===h&&["y"]||["yy",h];return i[2]=b,i[3]=a>0,i[4]=c,_.apply({},i)}function bb(a,b,c){var d,e=c-b,f=c-a.day();return f>e&&(f-=7),e-7>f&&(f+=7),d=mb(a).add("d",f),{week:Math.ceil(d.dayOfYear()/7),year:d.year()}}function cb(a,b,c,d,e){var f,g,h=Z(a,0,1).getUTCDay();return h=0===h?7:h,c=null!=c?c:e,f=e-h+(h>d?7:0)-(e>h?7:0),g=7*(b-1)+(c-e)+f+1,{year:g>0?a:a-1,dayOfYear:g>0?g:x(a-1)+g}}function db(b){var c=b._i,d=b._f;return null===c||d===a&&""===c?mb.invalid({nullInput:!0}):("string"==typeof c&&(b._i=c=F().preparse(c)),mb.isMoment(c)?(b=k(c),b._d=new Date(+c._d)):d?o(d)?U(b):R(b):X(b),new h(b))}function eb(a,b){var c,d;if(1===b.length&&o(b[0])&&(b=b[0]),!b.length)return mb();for(c=b[0],d=1;d<b.length;++d)b[d][a](c)&&(c=b[d]);return c}function fb(a,b){var c;return"string"==typeof b&&(b=a.lang().monthsParse(b),"number"!=typeof b)?a:(c=Math.min(a.date(),v(a.year(),b)),a._d["set"+(a._isUTC?"UTC":"")+"Month"](b,c),a)}function gb(a,b){return a._d["get"+(a._isUTC?"UTC":"")+b]()}function hb(a,b,c){return"Month"===b?fb(a,c):a._d["set"+(a._isUTC?"UTC":"")+b](c)}function ib(a,b){return function(c){return null!=c?(hb(this,a,c),mb.updateOffset(this,b),this):gb(this,a)}}function jb(a){mb.duration.fn[a]=function(){return this._data[a]}}function kb(a,b){mb.duration.fn["as"+a]=function(){return+this/b}}function lb(a){"undefined"==typeof ender&&(nb=qb.moment,qb.moment=a?d("Accessing Moment through the global scope is deprecated, and will be removed in an upcoming release.",mb):mb)}for(var mb,nb,ob,pb="2.7.0",qb="undefined"!=typeof global?global:this,rb=Math.round,sb=0,tb=1,ub=2,vb=3,wb=4,xb=5,yb=6,zb={},Ab={_isAMomentObject:null,_i:null,_f:null,_l:null,_strict:null,_tzm:null,_isUTC:null,_offset:null,_pf:null,_lang:null},Bb="undefined"!=typeof module&&module.exports,Cb=/^\/?Date\((\-?\d+)/i,Db=/(\-)?(?:(\d*)\.)?(\d+)\:(\d+)(?:\:(\d+)\.?(\d{3})?)?/,Eb=/^(-)?P(?:(?:([0-9,.]*)Y)?(?:([0-9,.]*)M)?(?:([0-9,.]*)D)?(?:T(?:([0-9,.]*)H)?(?:([0-9,.]*)M)?(?:([0-9,.]*)S)?)?|([0-9,.]*)W)$/,Fb=/(\[[^\[]*\])|(\\)?(Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Q|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|mm?|ss?|S{1,4}|X|zz?|ZZ?|.)/g,Gb=/(\[[^\[]*\])|(\\)?(LT|LL?L?L?|l{1,4})/g,Hb=/\d\d?/,Ib=/\d{1,3}/,Jb=/\d{1,4}/,Kb=/[+\-]?\d{1,6}/,Lb=/\d+/,Mb=/[0-9]*['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+|[\u0600-\u06FF\/]+(\s*?[\u0600-\u06FF]+){1,2}/i,Nb=/Z|[\+\-]\d\d:?\d\d/gi,Ob=/T/i,Pb=/[\+\-]?\d+(\.\d{1,3})?/,Qb=/\d{1,2}/,Rb=/\d/,Sb=/\d\d/,Tb=/\d{3}/,Ub=/\d{4}/,Vb=/[+-]?\d{6}/,Wb=/[+-]?\d+/,Xb=/^\s*(?:[+-]\d{6}|\d{4})-(?:(\d\d-\d\d)|(W\d\d$)|(W\d\d-\d)|(\d\d\d))((T| )(\d\d(:\d\d(:\d\d(\.\d+)?)?)?)?([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Yb="YYYY-MM-DDTHH:mm:ssZ",Zb=[["YYYYYY-MM-DD",/[+-]\d{6}-\d{2}-\d{2}/],["YYYY-MM-DD",/\d{4}-\d{2}-\d{2}/],["GGGG-[W]WW-E",/\d{4}-W\d{2}-\d/],["GGGG-[W]WW",/\d{4}-W\d{2}/],["YYYY-DDD",/\d{4}-\d{3}/]],$b=[["HH:mm:ss.SSSS",/(T| )\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss",/(T| )\d\d:\d\d:\d\d/],["HH:mm",/(T| )\d\d:\d\d/],["HH",/(T| )\d\d/]],_b=/([\+\-]|\d\d)/gi,ac=("Date|Hours|Minutes|Seconds|Milliseconds".split("|"),{Milliseconds:1,Seconds:1e3,Minutes:6e4,Hours:36e5,Days:864e5,Months:2592e6,Years:31536e6}),bc={ms:"millisecond",s:"second",m:"minute",h:"hour",d:"day",D:"date",w:"week",W:"isoWeek",M:"month",Q:"quarter",y:"year",DDD:"dayOfYear",e:"weekday",E:"isoWeekday",gg:"weekYear",GG:"isoWeekYear"},cc={dayofyear:"dayOfYear",isoweekday:"isoWeekday",isoweek:"isoWeek",weekyear:"weekYear",isoweekyear:"isoWeekYear"},dc={},ec={s:45,m:45,h:22,dd:25,dm:45,dy:345},fc="DDD w W M D d".split(" "),gc="M D H h m s w W".split(" "),hc={M:function(){return this.month()+1},MMM:function(a){return this.lang().monthsShort(this,a)},MMMM:function(a){return this.lang().months(this,a)},D:function(){return this.date()},DDD:function(){return this.dayOfYear()},d:function(){return this.day()},dd:function(a){return this.lang().weekdaysMin(this,a)},ddd:function(a){return this.lang().weekdaysShort(this,a)},dddd:function(a){return this.lang().weekdays(this,a)},w:function(){return this.week()},W:function(){return this.isoWeek()},YY:function(){return m(this.year()%100,2)},YYYY:function(){return m(this.year(),4)},YYYYY:function(){return m(this.year(),5)},YYYYYY:function(){var a=this.year(),b=a>=0?"+":"-";return b+m(Math.abs(a),6)},gg:function(){return m(this.weekYear()%100,2)},gggg:function(){return m(this.weekYear(),4)},ggggg:function(){return m(this.weekYear(),5)},GG:function(){return m(this.isoWeekYear()%100,2)},GGGG:function(){return m(this.isoWeekYear(),4)},GGGGG:function(){return m(this.isoWeekYear(),5)},e:function(){return this.weekday()},E:function(){return this.isoWeekday()},a:function(){return this.lang().meridiem(this.hours(),this.minutes(),!0)},A:function(){return this.lang().meridiem(this.hours(),this.minutes(),!1)},H:function(){return this.hours()},h:function(){return this.hours()%12||12},m:function(){return this.minutes()},s:function(){return this.seconds()},S:function(){return u(this.milliseconds()/100)},SS:function(){return m(u(this.milliseconds()/10),2)},SSS:function(){return m(this.milliseconds(),3)},SSSS:function(){return m(this.milliseconds(),3)},Z:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+m(u(a/60),2)+":"+m(u(a)%60,2)},ZZ:function(){var a=-this.zone(),b="+";return 0>a&&(a=-a,b="-"),b+m(u(a/60),2)+m(u(a)%60,2)},z:function(){return this.zoneAbbr()},zz:function(){return this.zoneName()},X:function(){return this.unix()},Q:function(){return this.quarter()}},ic=["months","monthsShort","weekdays","weekdaysShort","weekdaysMin"];fc.length;)ob=fc.pop(),hc[ob+"o"]=f(hc[ob],ob);for(;gc.length;)ob=gc.pop(),hc[ob+ob]=e(hc[ob],2);for(hc.DDDD=e(hc.DDD,3),j(g.prototype,{set:function(a){var b,c;for(c in a)b=a[c],"function"==typeof b?this[c]=b:this["_"+c]=b},_months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),months:function(a){return this._months[a.month()]},_monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),monthsShort:function(a){return this._monthsShort[a.month()]},monthsParse:function(a){var b,c,d;for(this._monthsParse||(this._monthsParse=[]),b=0;12>b;b++)if(this._monthsParse[b]||(c=mb.utc([2e3,b]),d="^"+this.months(c,"")+"|^"+this.monthsShort(c,""),this._monthsParse[b]=new RegExp(d.replace(".",""),"i")),this._monthsParse[b].test(a))return b},_weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdays:function(a){return this._weekdays[a.day()]},_weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysShort:function(a){return this._weekdaysShort[a.day()]},_weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysMin:function(a){return this._weekdaysMin[a.day()]},weekdaysParse:function(a){var b,c,d;for(this._weekdaysParse||(this._weekdaysParse=[]),b=0;7>b;b++)if(this._weekdaysParse[b]||(c=mb([2e3,1]).day(b),d="^"+this.weekdays(c,"")+"|^"+this.weekdaysShort(c,"")+"|^"+this.weekdaysMin(c,""),this._weekdaysParse[b]=new RegExp(d.replace(".",""),"i")),this._weekdaysParse[b].test(a))return b},_longDateFormat:{LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D YYYY",LLL:"MMMM D YYYY LT",LLLL:"dddd, MMMM D YYYY LT"},longDateFormat:function(a){var b=this._longDateFormat[a];return!b&&this._longDateFormat[a.toUpperCase()]&&(b=this._longDateFormat[a.toUpperCase()].replace(/MMMM|MM|DD|dddd/g,function(a){return a.slice(1)}),this._longDateFormat[a]=b),b},isPM:function(a){return"p"===(a+"").toLowerCase().charAt(0)},_meridiemParse:/[ap]\.?m?\.?/i,meridiem:function(a,b,c){return a>11?c?"pm":"PM":c?"am":"AM"},_calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},calendar:function(a,b){var c=this._calendar[a];return"function"==typeof c?c.apply(b):c},_relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},relativeTime:function(a,b,c,d){var e=this._relativeTime[c];return"function"==typeof e?e(a,b,c,d):e.replace(/%d/i,a)},pastFuture:function(a,b){var c=this._relativeTime[a>0?"future":"past"];return"function"==typeof c?c(b):c.replace(/%s/i,b)},ordinal:function(a){return this._ordinal.replace("%d",a)},_ordinal:"%d",preparse:function(a){return a},postformat:function(a){return a},week:function(a){return bb(a,this._week.dow,this._week.doy).week},_week:{dow:0,doy:6},_invalidDate:"Invalid date",invalidDate:function(){return this._invalidDate}}),mb=function(b,d,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._i=b,g._f=d,g._l=e,g._strict=f,g._isUTC=!1,g._pf=c(),db(g)},mb.suppressDeprecationWarnings=!1,mb.createFromInputFallback=d("moment construction falls back to js Date. This is discouraged and will be removed in upcoming major release. Please refer to https://github.com/moment/moment/issues/1407 for more info.",function(a){a._d=new Date(a._i)}),mb.min=function(){var a=[].slice.call(arguments,0);return eb("isBefore",a)},mb.max=function(){var a=[].slice.call(arguments,0);return eb("isAfter",a)},mb.utc=function(b,d,e,f){var g;return"boolean"==typeof e&&(f=e,e=a),g={},g._isAMomentObject=!0,g._useUTC=!0,g._isUTC=!0,g._l=e,g._i=b,g._f=d,g._strict=f,g._pf=c(),db(g).utc()},mb.unix=function(a){return mb(1e3*a)},mb.duration=function(a,b){var c,d,e,f=a,g=null;return mb.isDuration(a)?f={ms:a._milliseconds,d:a._days,M:a._months}:"number"==typeof a?(f={},b?f[b]=a:f.milliseconds=a):(g=Db.exec(a))?(c="-"===g[1]?-1:1,f={y:0,d:u(g[ub])*c,h:u(g[vb])*c,m:u(g[wb])*c,s:u(g[xb])*c,ms:u(g[yb])*c}):(g=Eb.exec(a))&&(c="-"===g[1]?-1:1,e=function(a){var b=a&&parseFloat(a.replace(",","."));return(isNaN(b)?0:b)*c},f={y:e(g[2]),M:e(g[3]),d:e(g[4]),h:e(g[5]),m:e(g[6]),s:e(g[7]),w:e(g[8])}),d=new i(f),mb.isDuration(a)&&a.hasOwnProperty("_lang")&&(d._lang=a._lang),d},mb.version=pb,mb.defaultFormat=Yb,mb.ISO_8601=function(){},mb.momentProperties=Ab,mb.updateOffset=function(){},mb.relativeTimeThreshold=function(b,c){return ec[b]===a?!1:(ec[b]=c,!0)},mb.lang=function(a,b){var c;return a?(b?D(B(a),b):null===b?(E(a),a="en"):zb[a]||F(a),c=mb.duration.fn._lang=mb.fn._lang=F(a),c._abbr):mb.fn._lang._abbr},mb.langData=function(a){return a&&a._lang&&a._lang._abbr&&(a=a._lang._abbr),F(a)},mb.isMoment=function(a){return a instanceof h||null!=a&&a.hasOwnProperty("_isAMomentObject")},mb.isDuration=function(a){return a instanceof i},ob=ic.length-1;ob>=0;--ob)t(ic[ob]);mb.normalizeUnits=function(a){return r(a)},mb.invalid=function(a){var b=mb.utc(0/0);return null!=a?j(b._pf,a):b._pf.userInvalidated=!0,b},mb.parseZone=function(){return mb.apply(null,arguments).parseZone()},mb.parseTwoDigitYear=function(a){return u(a)+(u(a)>68?1900:2e3)},j(mb.fn=h.prototype,{clone:function(){return mb(this)},valueOf:function(){return+this._d+6e4*(this._offset||0)},unix:function(){return Math.floor(+this/1e3)},toString:function(){return this.clone().lang("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},toDate:function(){return this._offset?new Date(+this):this._d},toISOString:function(){var a=mb(this).utc();return 0<a.year()&&a.year()<=9999?I(a,"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]"):I(a,"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]")},toArray:function(){var a=this;return[a.year(),a.month(),a.date(),a.hours(),a.minutes(),a.seconds(),a.milliseconds()]},isValid:function(){return A(this)},isDSTShifted:function(){return this._a?this.isValid()&&q(this._a,(this._isUTC?mb.utc(this._a):mb(this._a)).toArray())>0:!1},parsingFlags:function(){return j({},this._pf)},invalidAt:function(){return this._pf.overflow},utc:function(){return this.zone(0)},local:function(){return this.zone(0),this._isUTC=!1,this},format:function(a){var b=I(this,a||mb.defaultFormat);return this.lang().postformat(b)},add:function(a,b){var c;return c="string"==typeof a&&"string"==typeof b?mb.duration(isNaN(+b)?+a:+b,isNaN(+b)?b:a):"string"==typeof a?mb.duration(+b,a):mb.duration(a,b),n(this,c,1),this},subtract:function(a,b){var c;return c="string"==typeof a&&"string"==typeof b?mb.duration(isNaN(+b)?+a:+b,isNaN(+b)?b:a):"string"==typeof a?mb.duration(+b,a):mb.duration(a,b),n(this,c,-1),this},diff:function(a,b,c){var d,e,f=C(a,this),g=6e4*(this.zone()-f.zone());return b=r(b),"year"===b||"month"===b?(d=432e5*(this.daysInMonth()+f.daysInMonth()),e=12*(this.year()-f.year())+(this.month()-f.month()),e+=(this-mb(this).startOf("month")-(f-mb(f).startOf("month")))/d,e-=6e4*(this.zone()-mb(this).startOf("month").zone()-(f.zone()-mb(f).startOf("month").zone()))/d,"year"===b&&(e/=12)):(d=this-f,e="second"===b?d/1e3:"minute"===b?d/6e4:"hour"===b?d/36e5:"day"===b?(d-g)/864e5:"week"===b?(d-g)/6048e5:d),c?e:l(e)},from:function(a,b){return mb.duration(this.diff(a)).lang(this.lang()._abbr).humanize(!b)},fromNow:function(a){return this.from(mb(),a)},calendar:function(a){var b=a||mb(),c=C(b,this).startOf("day"),d=this.diff(c,"days",!0),e=-6>d?"sameElse":-1>d?"lastWeek":0>d?"lastDay":1>d?"sameDay":2>d?"nextDay":7>d?"nextWeek":"sameElse";return this.format(this.lang().calendar(e,this))},isLeapYear:function(){return y(this.year())},isDST:function(){return this.zone()<this.clone().month(0).zone()||this.zone()<this.clone().month(5).zone()},day:function(a){var b=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=a?(a=$(a,this.lang()),this.add({d:a-b})):b},month:ib("Month",!0),startOf:function(a){switch(a=r(a)){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}return"week"===a?this.weekday(0):"isoWeek"===a&&this.isoWeekday(1),"quarter"===a&&this.month(3*Math.floor(this.month()/3)),this},endOf:function(a){return a=r(a),this.startOf(a).add("isoWeek"===a?"week":a,1).subtract("ms",1)},isAfter:function(a,b){return b="undefined"!=typeof b?b:"millisecond",+this.clone().startOf(b)>+mb(a).startOf(b)},isBefore:function(a,b){return b="undefined"!=typeof b?b:"millisecond",+this.clone().startOf(b)<+mb(a).startOf(b)},isSame:function(a,b){return b=b||"ms",+this.clone().startOf(b)===+C(a,this).startOf(b)},min:d("moment().min is deprecated, use moment.min instead. https://github.com/moment/moment/issues/1548",function(a){return a=mb.apply(null,arguments),this>a?this:a}),max:d("moment().max is deprecated, use moment.max instead. https://github.com/moment/moment/issues/1548",function(a){return a=mb.apply(null,arguments),a>this?this:a}),zone:function(a,b){var c=this._offset||0;return null==a?this._isUTC?c:this._d.getTimezoneOffset():("string"==typeof a&&(a=L(a)),Math.abs(a)<16&&(a=60*a),this._offset=a,this._isUTC=!0,c!==a&&(!b||this._changeInProgress?n(this,mb.duration(c-a,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,mb.updateOffset(this,!0),this._changeInProgress=null)),this)},zoneAbbr:function(){return this._isUTC?"UTC":""},zoneName:function(){return this._isUTC?"Coordinated Universal Time":""},parseZone:function(){return this._tzm?this.zone(this._tzm):"string"==typeof this._i&&this.zone(this._i),this},hasAlignedHourOffset:function(a){return a=a?mb(a).zone():0,(this.zone()-a)%60===0},daysInMonth:function(){return v(this.year(),this.month())},dayOfYear:function(a){var b=rb((mb(this).startOf("day")-mb(this).startOf("year"))/864e5)+1;return null==a?b:this.add("d",a-b)},quarter:function(a){return null==a?Math.ceil((this.month()+1)/3):this.month(3*(a-1)+this.month()%3)},weekYear:function(a){var b=bb(this,this.lang()._week.dow,this.lang()._week.doy).year;return null==a?b:this.add("y",a-b)},isoWeekYear:function(a){var b=bb(this,1,4).year;return null==a?b:this.add("y",a-b)},week:function(a){var b=this.lang().week(this);return null==a?b:this.add("d",7*(a-b))},isoWeek:function(a){var b=bb(this,1,4).week;return null==a?b:this.add("d",7*(a-b))},weekday:function(a){var b=(this.day()+7-this.lang()._week.dow)%7;return null==a?b:this.add("d",a-b)},isoWeekday:function(a){return null==a?this.day()||7:this.day(this.day()%7?a:a-7)},isoWeeksInYear:function(){return w(this.year(),1,4)},weeksInYear:function(){var a=this._lang._week;return w(this.year(),a.dow,a.doy)},get:function(a){return a=r(a),this[a]()},set:function(a,b){return a=r(a),"function"==typeof this[a]&&this[a](b),this},lang:function(b){return b===a?this._lang:(this._lang=F(b),this)}}),mb.fn.millisecond=mb.fn.milliseconds=ib("Milliseconds",!1),mb.fn.second=mb.fn.seconds=ib("Seconds",!1),mb.fn.minute=mb.fn.minutes=ib("Minutes",!1),mb.fn.hour=mb.fn.hours=ib("Hours",!0),mb.fn.date=ib("Date",!0),mb.fn.dates=d("dates accessor is deprecated. Use date instead.",ib("Date",!0)),mb.fn.year=ib("FullYear",!0),mb.fn.years=d("years accessor is deprecated. Use year instead.",ib("FullYear",!0)),mb.fn.days=mb.fn.day,mb.fn.months=mb.fn.month,mb.fn.weeks=mb.fn.week,mb.fn.isoWeeks=mb.fn.isoWeek,mb.fn.quarters=mb.fn.quarter,mb.fn.toJSON=mb.fn.toISOString,j(mb.duration.fn=i.prototype,{_bubble:function(){var a,b,c,d,e=this._milliseconds,f=this._days,g=this._months,h=this._data;h.milliseconds=e%1e3,a=l(e/1e3),h.seconds=a%60,b=l(a/60),h.minutes=b%60,c=l(b/60),h.hours=c%24,f+=l(c/24),h.days=f%30,g+=l(f/30),h.months=g%12,d=l(g/12),h.years=d},weeks:function(){return l(this.days()/7)},valueOf:function(){return this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*u(this._months/12)},humanize:function(a){var b=+this,c=ab(b,!a,this.lang());return a&&(c=this.lang().pastFuture(b,c)),this.lang().postformat(c)},add:function(a,b){var c=mb.duration(a,b);return this._milliseconds+=c._milliseconds,this._days+=c._days,this._months+=c._months,this._bubble(),this},subtract:function(a,b){var c=mb.duration(a,b);return this._milliseconds-=c._milliseconds,this._days-=c._days,this._months-=c._months,this._bubble(),this},get:function(a){return a=r(a),this[a.toLowerCase()+"s"]()},as:function(a){return a=r(a),this["as"+a.charAt(0).toUpperCase()+a.slice(1)+"s"]()},lang:mb.fn.lang,toIsoString:function(){var a=Math.abs(this.years()),b=Math.abs(this.months()),c=Math.abs(this.days()),d=Math.abs(this.hours()),e=Math.abs(this.minutes()),f=Math.abs(this.seconds()+this.milliseconds()/1e3);return this.asSeconds()?(this.asSeconds()<0?"-":"")+"P"+(a?a+"Y":"")+(b?b+"M":"")+(c?c+"D":"")+(d||e||f?"T":"")+(d?d+"H":"")+(e?e+"M":"")+(f?f+"S":""):"P0D"}});for(ob in ac)ac.hasOwnProperty(ob)&&(kb(ob,ac[ob]),jb(ob.toLowerCase()));
  kb("Weeks",6048e5),mb.duration.fn.asMonths=function(){return(+this-31536e6*this.years())/2592e6+12*this.years()},mb.lang("en",{ordinal:function(a){var b=a%10,c=1===u(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th";return a+c}}),Bb?module.exports=mb:"function"==typeof define&&define.amd?(define("moment",function(a,b,c){return c.config&&c.config()&&c.config().noGlobal===!0&&(qb.moment=nb),mb}),lb(!0)):lb()}.call(this),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){var b=a.fn.spinbox,c=function(b,c){this.$element=a(b),this.$element.find(".btn").on("click",function(a){a.preventDefault()}),this.options=a.extend({},a.fn.spinbox.defaults,c),this.$input=this.$element.find(".spinbox-input"),this.$element.on("focusin.fu.spinbox",this.$input,a.proxy(this.changeFlag,this)),this.$element.on("focusout.fu.spinbox",this.$input,a.proxy(this.change,this)),this.$element.on("keydown.fu.spinbox",this.$input,a.proxy(this.keydown,this)),this.$element.on("keyup.fu.spinbox",this.$input,a.proxy(this.keyup,this)),this.bindMousewheelListeners(),this.mousewheelTimeout={},this.options.hold?(this.$element.on("mousedown.fu.spinbox",".spinbox-up",a.proxy(function(){this.startSpin(!0)},this)),this.$element.on("mouseup.fu.spinbox",".spinbox-up, .spinbox-down",a.proxy(this.stopSpin,this)),this.$element.on("mouseout.fu.spinbox",".spinbox-up, .spinbox-down",a.proxy(this.stopSpin,this)),this.$element.on("mousedown.fu.spinbox",".spinbox-down",a.proxy(function(){this.startSpin(!1)},this))):(this.$element.on("click.fu.spinbox",".spinbox-up",a.proxy(function(){this.step(!0)},this)),this.$element.on("click.fu.spinbox",".spinbox-down",a.proxy(function(){this.step(!1)},this))),this.switches={count:1,enabled:!0},this.switches.speed="medium"===this.options.speed?300:"fast"===this.options.speed?100:500,this.lastValue=this.options.value,this.render(),this.options.disabled&&this.disable()};c.prototype={constructor:c,destroy:function(){return this.$element.remove(),this.$element.find("input").each(function(){a(this).attr("value",a(this).val())}),this.$element[0].outerHTML},render:function(){var b=this.parseInput(this.$input.val()),c="";""!==b&&0===this.options.value?this.value(b):this.output(this.options.value),this.options.units.length&&a.each(this.options.units,function(a,b){b.length>c.length&&(c=b)})},output:function(a,b){return a=(a+"").split(".").join(this.options.decimalMark),b=b||!0,b&&this.$input.val(a),a},parseInput:function(a){return a=(a+"").split(this.options.decimalMark).join(".")},change:function(){var a=this.parseInput(this.$input.val())||"";this.options.units.length||"."!==this.options.decimalMark?a=this.parseValueWithUnit(a):a/1?a=this.options.value=this.checkMaxMin(a/1):(a=this.checkMaxMin(a.replace(/[^0-9.-]/g,"")||""),this.options.value=a/1),this.output(a),this.changeFlag=!1,this.triggerChangedEvent()},changeFlag:function(){this.changeFlag=!0},stopSpin:function(){void 0!==this.switches.timeout&&(clearTimeout(this.switches.timeout),this.switches.count=1,this.triggerChangedEvent())},triggerChangedEvent:function(){var a=this.value();a!==this.lastValue&&(this.lastValue=a,this.$element.trigger("changed.fu.spinbox",this.output(a,!1)))},startSpin:function(b){if(!this.options.disabled){var c=this.switches.count;1===c?(this.step(b),c=1):c=3>c?1.5:8>c?2.5:4,this.switches.timeout=setTimeout(a.proxy(function(){this.iterate(b)},this),this.switches.speed/c),this.switches.count++}},iterate:function(a){this.step(a),this.startSpin(a)},step:function(a){var b,c,d,e;if(this.changeFlag&&this.change(),d=this.options.value,e=a?this.options.max:this.options.min,a?e>d:d>e){var f=d+(a?1:-1)*this.options.step;this.options.step%1!==0&&(b=(this.options.step+"").split(".")[1].length,c=Math.pow(10,b),f=Math.round(f*c)/c),this.value((a?f>e:e>f)?e:f)}else if(this.options.cycle){var g=a?this.options.min:this.options.max;this.value(g)}},value:function(a){return a||0===a?this.options.units.length||"."!==this.options.decimalMark?(this.output(this.parseValueWithUnit(a+(this.unit||""))),this):!isNaN(parseFloat(a))&&isFinite(a)?(this.options.value=a/1,this.output(a+(this.unit?this.unit:"")),this):void 0:(this.changeFlag&&this.change(),this.unit?this.options.value+this.unit:this.output(this.options.value,!1))},isUnitLegal:function(b){var c;return a.each(this.options.units,function(a,d){return d.toLowerCase()===b.toLowerCase()?(c=b.toLowerCase(),!1):void 0}),c},parseValueWithUnit:function(a){var b=a.replace(/[^a-zA-Z]/g,""),c=a.replace(/[^0-9.-]/g,"");return b&&(b=this.isUnitLegal(b)),this.options.value=this.checkMaxMin(c/1),this.unit=b||void 0,this.options.value+(b||"")},checkMaxMin:function(a){return isNaN(parseFloat(a))?a:(a<=this.options.max&&a>=this.options.min||(a=a>=this.options.max?this.options.max:this.options.min),a)},disable:function(){this.options.disabled=!0,this.$element.addClass("disabled"),this.$input.attr("disabled",""),this.$element.find("button").addClass("disabled")},enable:function(){this.options.disabled=!1,this.$element.removeClass("disabled"),this.$input.removeAttr("disabled"),this.$element.find("button").removeClass("disabled")},keydown:function(a){var b=a.keyCode;38===b?this.step(!0):40===b&&this.step(!1)},keyup:function(a){var b=a.keyCode;(38===b||40===b)&&this.triggerChangedEvent()},bindMousewheelListeners:function(){var b=this.$input.get(0);b.addEventListener?(b.addEventListener("mousewheel",a.proxy(this.mousewheelHandler,this),!1),b.addEventListener("DOMMouseScroll",a.proxy(this.mousewheelHandler,this),!1)):b.attachEvent("onmousewheel",a.proxy(this.mousewheelHandler,this))},mousewheelHandler:function(a){var b=window.event||a,c=Math.max(-1,Math.min(1,b.wheelDelta||-b.detail)),d=this;return clearTimeout(this.mousewheelTimeout),this.mousewheelTimeout=setTimeout(function(){d.triggerChangedEvent()},300),this.step(0>c?!0:!1),b.preventDefault?b.preventDefault():b.returnValue=!1,!1}},a.fn.spinbox=function(b){var d,e=Array.prototype.slice.call(arguments,1),f=this.each(function(){var f=a(this),g=f.data("fu.spinbox"),h="object"==typeof b&&b;g||f.data("fu.spinbox",g=new c(this,h)),"string"==typeof b&&(d=g[b].apply(g,e))});return void 0===d?f:d},a.fn.spinbox.defaults={value:0,min:0,max:999,step:1,hold:!0,speed:"medium",disabled:!1,cycle:!1,units:[],decimalMark:"."},a.fn.spinbox.Constructor=c,a.fn.spinbox.noConflict=function(){return a.fn.spinbox=b,this},a(document).on("mousedown.fu.spinbox.data-api","[data-initialize=spinbox]",function(b){var c=a(b.target).closest(".spinbox");c.data("fu.spinbox")||c.spinbox(c.data())}),a(function(){a("[data-initialize=spinbox]").each(function(){var b=a(this);b.data("fu.spinbox")||b.spinbox(b.data())})})}),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a(jQuery)}(function(a){var b=a.fn.checkbox,c=function(b,c){this.options=a.extend({},a.fn.checkbox.defaults,c),this.$element=a(b).is('input[type="checkbox"]')?a(b):a(b).find('input[type="checkbox"]:first'),this.$label=this.$element.parent(),this.$parent=this.$label.parent(".checkbox"),this.$toggleContainer=this.$element.attr("data-toggle"),this.state={disabled:!1,checked:!1},0===this.$parent.length&&(this.$parent=null),this.$toggleContainer=Boolean(this.$toggleContainer)?a(this.$toggleContainer):null,this.$element.on("change.fu.checkbox",a.proxy(this.itemchecked,this)),this.$label.on("click",a.proxy(this.toggle,this)),this.setState()};c.prototype={constructor:c,setState:function(a){a=a||this.$element,this.state.disabled=Boolean(a.prop("disabled")),this.state.checked=Boolean(a.is(":checked")),this._resetClasses(),this._toggleCheckedState(),this._toggleDisabledState(),this.toggleContainer()},enable:function(){this.state.disabled=!1,this.$element.attr("disabled",!1),this._resetClasses(),this.$element.trigger("enabled.fu.checkbox")},disable:function(){this.state.disabled=!0,this.$element.attr("disabled",!0),this._setDisabledClass(),this.$element.trigger("disabled.fu.checkbox")},check:function(){this.state.checked=!0,this.$element.prop("checked",!0),this._setCheckedClass(),this.$element.trigger("checked.fu.checkbox")},uncheck:function(){this.state.checked=!1,this.$element.prop("checked",!1),this._resetClasses(),this.$element.trigger("unchecked.fu.checkbox")},isChecked:function(){return this.state.checked},toggle:function(a){a&&a.currentTarget!==a.originalEvent.target||(this.state.checked=!this.state.checked,this._toggleCheckedState())},toggleContainer:function(){Boolean(this.$toggleContainer)&&(this.state.checked?(this.$toggleContainer.removeClass("hide"),this.$toggleContainer.attr("aria-hidden","false")):(this.$toggleContainer.addClass("hide"),this.$toggleContainer.attr("aria-hidden","true")))},itemchecked:function(b){this.setState(a(b.target))},destroy:function(){return this.$parent.remove(),this.$parent[0].outerHTML},_resetClasses:function(){var a=[];this.state.checked||a.push("checked"),this.state.disabled||a.push("disabled"),a=a.join(" "),this.$label.removeClass(a),this.$parent&&this.$parent.removeClass(a)},_toggleCheckedState:function(){this.state.checked?this.check():this.uncheck()},_toggleDisabledState:function(){this.state.disabled?this.disable():this.enable()},_setCheckedClass:function(){this.$label.addClass("checked"),this.$parent&&this.$parent.addClass("checked")},_setDisabledClass:function(){this.$label.addClass("disabled"),this.$parent&&this.$parent.addClass("disabled")}},a.fn.checkbox=function(b){var d,e=Array.prototype.slice.call(arguments,1),f=this.each(function(){var f=a(this),g=f.data("fu.checkbox"),h="object"==typeof b&&b;g||f.data("fu.checkbox",g=new c(this,h)),"string"==typeof b&&(d=g[b].apply(g,e))});return void 0===d?f:d},a.fn.checkbox.defaults={},a.fn.checkbox.Constructor=c,a.fn.checkbox.noConflict=function(){return a.fn.checkbox=b,this},a(document).on("mouseover.fu.checkbox.data-api","[data-initialize=checkbox]",function(b){var c=a(b.target).closest(".checkbox").find("[type=checkbox]");c.data("fu.checkbox")||c.checkbox(c.data())}),a(function(){a("[data-initialize=checkbox] [type=checkbox]").each(function(){var b=a(this);b.data("fu.checkbox")||b.checkbox(b.data())})})}),!function(a,b){"use strict";function c(a){this.callback=a,this.ticking=!1}function d(b){return b&&"undefined"!=typeof a&&(b===a||b.nodeType)}function e(a){if(arguments.length<=0)throw new Error("Missing arguments in extend function");var b,c,f=a||{};for(c=1;c<arguments.length;c++){var g=arguments[c]||{};for(b in g)f[b]="object"!=typeof f[b]||d(f[b])?f[b]||g[b]:e(f[b],g[b])}return f}function f(a){return a===Object(a)?a:{down:a,up:a}}function g(a,b){b=e(b,g.options),this.lastKnownScrollY=0,this.elem=a,this.debouncer=new c(this.update.bind(this)),this.tolerance=f(b.tolerance),this.classes=b.classes,this.offset=b.offset,this.scroller=b.scroller,this.initialised=!1,this.onPin=b.onPin,this.onUnpin=b.onUnpin,this.onTop=b.onTop,this.onNotTop=b.onNotTop}var h={bind:!!function(){}.bind,classList:"classList"in b.documentElement,rAF:!!(a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame)};a.requestAnimationFrame=a.requestAnimationFrame||a.webkitRequestAnimationFrame||a.mozRequestAnimationFrame,c.prototype={constructor:c,update:function(){this.callback&&this.callback(),this.ticking=!1},requestTick:function(){this.ticking||(requestAnimationFrame(this.rafCallback||(this.rafCallback=this.update.bind(this))),this.ticking=!0)},handleEvent:function(){this.requestTick()}},g.prototype={constructor:g,init:function(){return g.cutsTheMustard?(this.elem.classList.add(this.classes.initial),setTimeout(this.attachEvent.bind(this),100),this):void 0},destroy:function(){var a=this.classes;this.initialised=!1,this.elem.classList.remove(a.unpinned,a.pinned,a.top,a.initial),this.scroller.removeEventListener("scroll",this.debouncer,!1)},attachEvent:function(){this.initialised||(this.lastKnownScrollY=this.getScrollY(),this.initialised=!0,this.scroller.addEventListener("scroll",this.debouncer,!1),this.debouncer.handleEvent())},unpin:function(){var a=this.elem.classList,b=this.classes;(a.contains(b.pinned)||!a.contains(b.unpinned))&&(a.add(b.unpinned),a.remove(b.pinned),this.onUnpin&&this.onUnpin.call(this))},pin:function(){var a=this.elem.classList,b=this.classes;a.contains(b.unpinned)&&(a.remove(b.unpinned),a.add(b.pinned),this.onPin&&this.onPin.call(this))},top:function(){var a=this.elem.classList,b=this.classes;a.contains(b.top)||(a.add(b.top),a.remove(b.notTop),this.onTop&&this.onTop.call(this))},notTop:function(){var a=this.elem.classList,b=this.classes;a.contains(b.notTop)||(a.add(b.notTop),a.remove(b.top),this.onNotTop&&this.onNotTop.call(this))},getScrollY:function(){return void 0!==this.scroller.pageYOffset?this.scroller.pageYOffset:void 0!==this.scroller.scrollTop?this.scroller.scrollTop:(b.documentElement||b.body.parentNode||b.body).scrollTop},getViewportHeight:function(){return a.innerHeight||b.documentElement.clientHeight||b.body.clientHeight},getDocumentHeight:function(){var a=b.body,c=b.documentElement;return Math.max(a.scrollHeight,c.scrollHeight,a.offsetHeight,c.offsetHeight,a.clientHeight,c.clientHeight)},getElementHeight:function(a){return Math.max(a.scrollHeight,a.offsetHeight,a.clientHeight)},getScrollerHeight:function(){return this.scroller===a||this.scroller===b.body?this.getDocumentHeight():this.getElementHeight(this.scroller)},isOutOfBounds:function(a){var b=0>a,c=a+this.getViewportHeight()>this.getScrollerHeight();return b||c},toleranceExceeded:function(a,b){return Math.abs(a-this.lastKnownScrollY)>=this.tolerance[b]},shouldUnpin:function(a,b){var c=a>this.lastKnownScrollY,d=a>=this.offset;return c&&d&&b},shouldPin:function(a,b){var c=a<this.lastKnownScrollY,d=a<=this.offset;return c&&b||d},update:function(){var a=this.getScrollY(),b=a>this.lastKnownScrollY?"down":"up",c=this.toleranceExceeded(a,b);this.isOutOfBounds(a)||(a<=this.offset?this.top():this.notTop(),this.shouldUnpin(a,c)?this.unpin():this.shouldPin(a,c)&&this.pin(),this.lastKnownScrollY=a)}},g.options={tolerance:{up:0,down:0},offset:0,scroller:a,classes:{pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",initial:"headroom"}},g.cutsTheMustard="undefined"!=typeof h&&h.rAF&&h.bind&&h.classList,a.Headroom=g}(window,document),!function(a){a&&(a.fn.headroom=function(b){return this.each(function(){var c=a(this),d=c.data("headroom"),e="object"==typeof b&&b;e=a.extend(!0,{},Headroom.options,e),d||(d=new Headroom(this,e),d.init(),c.data("headroom",d)),"string"==typeof b&&d[b]()})},a("[data-headroom]").each(function(){var b=a(this);b.headroom(b.data())}))}(window.Zepto||window.jQuery),function(a){a.fn.extend({slimScroll:function(b){var c={width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},d=a.extend(c,b);return this.each(function(){function c(b){if(j){var b=b||window.event,c=0;b.wheelDelta&&(c=-b.wheelDelta/120),b.detail&&(c=b.detail/3);var f=b.target||b.srcTarget||b.srcElement;a(f).closest("."+d.wrapperClass).is(v.parent())&&e(c,!0),b.preventDefault&&!u&&b.preventDefault(),u||(b.returnValue=!1)}}function e(a,b,c){u=!1;var e=a,f=v.outerHeight()-A.outerHeight();if(b&&(e=parseInt(A.css("top"))+a*parseInt(d.wheelStep)/100*A.outerHeight(),e=Math.min(Math.max(e,0),f),e=a>0?Math.ceil(e):Math.floor(e),A.css({top:e+"px"})),p=parseInt(A.css("top"))/(v.outerHeight()-A.outerHeight()),e=p*(v[0].scrollHeight-v.outerHeight()),c){e=a;var g=e/v[0].scrollHeight*v.outerHeight();g=Math.min(Math.max(g,0),f),A.css({top:g+"px"})}v.scrollTop(e),v.trigger("slimscrolling",~~e),h(),i()}function f(){window.addEventListener?(this.addEventListener("DOMMouseScroll",c,!1),this.addEventListener("mousewheel",c,!1)):document.attachEvent("onmousewheel",c)}function g(){o=Math.max(v.outerHeight()/v[0].scrollHeight*v.outerHeight(),s),A.css({height:o+"px"});var a=o==v.outerHeight()?"none":"block";A.css({display:a})}function h(){if(g(),clearTimeout(m),p==~~p){if(u=d.allowPageScroll,q!=p){var a=0==~~p?"top":"bottom";v.trigger("slimscroll",a)}}else u=!1;return q=p,o>=v.outerHeight()?void(u=!0):(A.stop(!0,!0).fadeIn("fast"),void(d.railVisible&&z.stop(!0,!0).fadeIn("fast")))}function i(){d.alwaysVisible||(m=setTimeout(function(){d.disableFadeOut&&j||k||l||(A.fadeOut("slow"),z.fadeOut("slow"))},1e3))}var j,k,l,m,n,o,p,q,r="<div></div>",s=30,u=!1,v=a(this);if(v.parent().hasClass(d.wrapperClass)){var w=v.scrollTop();if(A=v.parent().find("."+d.barClass),z=v.parent().find("."+d.railClass),g(),a.isPlainObject(b)){if("height"in b&&"auto"==b.height){v.parent().css("height","auto"),v.css("height","auto");var x=v.parent().parent().height();v.parent().css("height",x),v.css("height",x)}if("scrollTo"in b)w=parseInt(d.scrollTo);else if("scrollBy"in b)w+=parseInt(d.scrollBy);else if("destroy"in b)return A.remove(),z.remove(),void v.unwrap();e(w,!1,!0)}}else if(!(a.isPlainObject(b)&&"destroy"in b)){d.height="auto"==d.height?v.parent().height():d.height;var y=a(r).addClass(d.wrapperClass).css({position:"relative",overflow:"hidden",width:d.width,height:d.height});v.css({overflow:"hidden",width:d.width,height:d.height});var z=a(r).addClass(d.railClass).css({width:d.size,height:"100%",position:"absolute",top:0,display:d.alwaysVisible&&d.railVisible?"block":"none","border-radius":d.railBorderRadius,background:d.railColor,opacity:d.railOpacity,zIndex:90}),A=a(r).addClass(d.barClass).css({background:d.color,width:d.size,position:"absolute",top:0,opacity:d.opacity,display:d.alwaysVisible?"block":"none","border-radius":d.borderRadius,BorderRadius:d.borderRadius,MozBorderRadius:d.borderRadius,WebkitBorderRadius:d.borderRadius,zIndex:99}),B="right"==d.position?{right:d.distance}:{left:d.distance};z.css(B),A.css(B),v.wrap(y),v.parent().append(A),v.parent().append(z),d.railDraggable&&A.bind("mousedown",function(b){var c=a(document);return l=!0,t=parseFloat(A.css("top")),pageY=b.pageY,c.bind("mousemove.slimscroll",function(a){currTop=t+a.pageY-pageY,A.css("top",currTop),e(0,A.position().top,!1)}),c.bind("mouseup.slimscroll",function(){l=!1,i(),c.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(a){return a.stopPropagation(),a.preventDefault(),!1}),z.hover(function(){h()},function(){i()}),A.hover(function(){k=!0},function(){k=!1}),v.hover(function(){j=!0,h(),i()},function(){j=!1,i()}),v.bind("touchstart",function(a){a.originalEvent.touches.length&&(n=a.originalEvent.touches[0].pageY)}),v.bind("touchmove",function(a){if(u||a.originalEvent.preventDefault(),a.originalEvent.touches.length){var b=(n-a.originalEvent.touches[0].pageY)/d.touchScrollStep;e(b,!0),n=a.originalEvent.touches[0].pageY}}),g(),"bottom"===d.start?(A.css({top:v.outerHeight()-A.outerHeight()}),e(0,!0)):"top"!==d.start&&(e(a(d.start).position().top,null,!0),d.alwaysVisible||A.hide()),f()}}),this}}),a.fn.extend({slimscroll:a.fn.slimScroll})}(jQuery),function(a,b,c,d,e){"use strict";var f="fullpage-wrapper",g="."+f,h="fp-scrollable",i="."+h,j=".slimScrollBar",k=".slimScrollRail",l="fp-responsive",m="fp-notransition",n="fp-destroyed",o="fp-enabled",p="fp-viewing",q="active",r="."+q,s=".section",t="fp-section",u="."+t,v=u+r,w=u+":first",x=u+":last",y="fp-tableCell",z="."+y,A="fp-nav",B="#"+A,C="fp-tooltip",D="fp-show-active",E=".slide",F="fp-slide",G="."+F,H=G+r,I="fp-slides",J="."+I,K="fp-slidesContainer",L="."+K,M="fp-table",N="fp-slidesNav",O="."+N,P=O+" a",Q="fp-controlArrow",R="."+Q,S="fp-prev",T="."+S,U=Q+" "+S,V=R+T,W="fp-next",X="."+W,Y=Q+" "+W,Z=R+X,$=a(b),_=a(c);a.fn.fullpage=function(Q){function T(a){a.find(J).after('<div class="'+U+'"></div><div class="'+Y+'"></div>'),"#fff"!=Q.controlArrowColor&&(a.find(Z).css("border-color","transparent transparent transparent "+Q.controlArrowColor),a.find(V).css("border-color","transparent "+Q.controlArrowColor+" transparent transparent")),Q.loopHorizontal||a.find(V).hide()}function W(){ic.append('<div id="'+A+'"><ul></ul></div>'),mc=a(B),mc.addClass(function(){return Q.showActiveTooltip?D+" "+Q.navigationPosition:Q.navigationPosition});for(var b=0;b<a(u).length;b++){var c="";Q.anchors.length&&(c=Q.anchors[b]);var d='<li><a href="#'+c+'"><span></span></a>',e=Q.navigationTooltips[b];"undefined"!=typeof e&&""!==e&&(d+='<div class="'+C+" "+Q.navigationPosition+'">'+e+"</div>"),d+="</li>",mc.find("ul").append(d)}}function X(){a(u).each(function(){var b=a(this).find(G);b.length?b.each(function(){Ib(a(this))}):Ib(a(this))}),a.isFunction(Q.afterRender)&&Q.afterRender.call(this)}function ab(){var b;if(!Q.autoScrolling||Q.scrollBar){for(var e=$.scrollTop(),f=0,g=d.abs(e-c.querySelectorAll(u)[0].offsetTop),h=c.querySelectorAll(u),i=0;i<h.length;++i){var j=h[i],k=d.abs(e-j.offsetTop);g>k&&(f=i,g=k)}b=a(h).eq(f)}if(!Q.autoScrolling||Q.scrollBar){if(!b.hasClass(q)){zc=!0;var l=a(v),m=l.index(u)+1,n=Gb(b),o=b.data("anchor"),p=b.index(u)+1,r=b.find(H);if(r.length)var s=r.data("anchor"),t=r.index();tc&&(b.addClass(q).siblings().removeClass(q),a.isFunction(Q.onLeave)&&Q.onLeave.call(l,m,p,n),a.isFunction(Q.afterLoad)&&Q.afterLoad.call(b,o,p),Eb(o,p-1),Q.anchors.length&&(kc=o,Qb(t,s,o,p))),clearTimeout(xc),xc=setTimeout(function(){zc=!1},100)}Q.fitToSection&&(clearTimeout(yc),yc=setTimeout(function(){tc&&(a(v).is(b)&&(sc=!0),lb(b),sc=!1)},200))}}function bb(a){return a.find(J).length?a.find(H).find(i):a.find(i)}function cb(a,b){if(vc[a]){var c,d;if("down"==a?(c="bottom",d=jc.moveSectionDown):(c="top",d=jc.moveSectionUp),b.length>0){if(!Fb(c,b))return!0;d()}else d()}}function db(b){var c=b.originalEvent;if(!eb(b.target)&&fb(c)){Q.autoScrolling&&b.preventDefault();var e=a(v),f=bb(e);if(tc&&!nc){var g=$b(c);Cc=g.y,Dc=g.x,e.find(J).length&&d.abs(Bc-Dc)>d.abs(Ac-Cc)?d.abs(Bc-Dc)>$.width()/100*Q.touchSensitivity&&(Bc>Dc?vc.right&&jc.moveSlideRight():vc.left&&jc.moveSlideLeft()):Q.autoScrolling&&d.abs(Ac-Cc)>$.height()/100*Q.touchSensitivity&&(Ac>Cc?cb("down",f):Cc>Ac&&cb("up",f))}}}function eb(b,c){c=c||0;var d=a(b).parent();return c<Q.normalScrollElementTouchThreshold&&d.is(Q.normalScrollElements)?!0:c==Q.normalScrollElementTouchThreshold?!1:eb(d,++c)}function fb(a){return"undefined"==typeof a.pointerType||"mouse"!=a.pointerType}function gb(a){var b=a.originalEvent;if(Q.fitToSection&&hc.stop(),fb(b)){var c=$b(b);Ac=c.y,Bc=c.x}}function hb(a,b){for(var c=0,e=a.slice(d.max(a.length-b,1)),f=0;f<e.length;f++)c+=e[f];return d.ceil(c/b)}function ib(c){var e=(new Date).getTime();if(Q.autoScrolling){c=b.event||c;var f=c.wheelDelta||-c.deltaY||-c.detail,g=d.max(-1,d.min(1,f));uc.length>149&&uc.shift(),uc.push(d.abs(f)),Q.scrollBar&&(c.preventDefault?c.preventDefault():c.returnValue=!1);var h=a(v),i=bb(h),j=e-Ec;if(Ec=e,j>200&&(uc=[]),tc){var k=hb(uc,10),l=hb(uc,70),m=k>=l;m&&(0>g?cb("down",i):cb("up",i))}return!1}Q.fitToSection&&hc.stop()}function jb(b){var c=a(v),d=c.find(J);if(d.length&&!nc){var e=d.find(H),f=null;if(f="prev"===b?e.prev(G):e.next(G),!f.length){if(!Q.loopHorizontal)return;f=e.siblings("prev"===b?":last":":first")}nc=!0,wb(d,f)}}function kb(){a(H).each(function(){_b(a(this))})}function lb(b,c,d){var e=b.position();if("undefined"!=typeof e){var f={element:b,callback:c,isMovementUp:d,dest:e,dtop:e.top,yMovement:Gb(b),anchorLink:b.data("anchor"),sectionIndex:b.index(u),activeSlide:b.find(H),activeSection:a(v),leavingSection:a(v).index(u)+1,localIsResizing:sc};if(!(f.activeSection.is(b)&&!sc||Q.scrollBar&&$.scrollTop()===f.dtop)){if(f.activeSlide.length)var g=f.activeSlide.data("anchor"),h=f.activeSlide.index();Q.autoScrolling&&Q.continuousVertical&&"undefined"!=typeof f.isMovementUp&&(!f.isMovementUp&&"up"==f.yMovement||f.isMovementUp&&"down"==f.yMovement)&&(f=ob(f)),b.addClass(q).siblings().removeClass(q),tc=!1,Qb(h,g,f.anchorLink,f.sectionIndex),a.isFunction(Q.onLeave)&&!f.localIsResizing&&Q.onLeave.call(f.activeSection,f.leavingSection,f.sectionIndex+1,f.yMovement),mb(f),kc=f.anchorLink,Eb(f.anchorLink,f.sectionIndex)}}}function mb(b){if(Q.css3&&Q.autoScrolling&&!Q.scrollBar){var c="translate3d(0px, -"+b.dtop+"px, 0px)";Mb(c,!0),setTimeout(function(){qb(b)},Q.scrollingSpeed)}else{var d=nb(b);a(d.element).animate(d.options,Q.scrollingSpeed,Q.easing).promise().done(function(){qb(b)})}}function nb(a){var b={};return Q.autoScrolling&&!Q.scrollBar?(b.options={top:-a.dtop},b.element=g):(b.options={scrollTop:a.dtop},b.element="html, body"),b}function ob(b){return b.isMovementUp?a(v).before(b.activeSection.nextAll(u)):a(v).after(b.activeSection.prevAll(u).get().reverse()),ac(a(v).position().top),kb(),b.wrapAroundElements=b.activeSection,b.dest=b.element.position(),b.dtop=b.dest.top,b.yMovement=Gb(b.element),b}function pb(b){b.wrapAroundElements&&b.wrapAroundElements.length&&(b.isMovementUp?a(w).before(b.wrapAroundElements):a(x).after(b.wrapAroundElements),ac(a(v).position().top),kb())}function qb(b){pb(b),a.isFunction(Q.afterLoad)&&!b.localIsResizing&&Q.afterLoad.call(b.element,b.anchorLink,b.sectionIndex+1),tc=!0,setTimeout(function(){a.isFunction(b.callback)&&b.callback.call(this)},600)}function rb(){var a=b.location.hash.replace("#","").split("/"),c=a[0],d=a[1];c&&Nb(c,d)}function sb(){if(!zc){var a=b.location.hash.replace("#","").split("/"),c=a[0],d=a[1];if(c.length){var e="undefined"==typeof kc,f="undefined"==typeof kc&&"undefined"==typeof d&&!nc;(c&&c!==kc&&!e||f||!nc&&lc!=d)&&Nb(c,d)}}}function tb(b){clearTimeout(Fc);var d=a(c.activeElement);if(!d.is("textarea")&&!d.is("input")&&!d.is("select")&&Q.keyboardScrolling&&Q.autoScrolling){var e=b.which,f=[40,38,32,33,34];a.inArray(e,f)>-1&&b.preventDefault(),Fc=setTimeout(function(){ub(b)},150)}}function ub(b){var c=b.shiftKey;switch(b.which){case 38:case 33:jc.moveSectionUp();break;case 32:if(c){jc.moveSectionUp();break}case 40:case 34:jc.moveSectionDown();break;case 36:jc.moveTo(1);break;case 35:jc.moveTo(a(u).length);break;case 37:jc.moveSlideLeft();break;case 39:jc.moveSlideRight();break;default:return}}function vb(a){tc&&(a.pageY<Gc?jc.moveSectionUp():a.pageY>Gc&&jc.moveSectionDown()),Gc=a.pageY}function wb(b,c){var d=c.position(),e=c.index(),f=b.closest(u),g=f.index(u),h=f.data("anchor"),i=f.find(O),j=Sb(c),k=sc;if(Q.onSlideLeave){var l=f.find(H),m=l.index(),n=Hb(m,e);k||"none"===n||a.isFunction(Q.onSlideLeave)&&Q.onSlideLeave.call(l,h,g+1,m,n)}c.addClass(q).siblings().removeClass(q),!Q.loopHorizontal&&Q.controlArrows&&(f.find(V).toggle(0!==e),f.find(Z).toggle(!c.is(":last-child"))),f.hasClass(q)&&Qb(e,j,h,g);var o=function(){k||a.isFunction(Q.afterSlideLoad)&&Q.afterSlideLoad.call(c,h,g+1,j,e),nc=!1};if(Q.css3){var p="translate3d(-"+d.left+"px, 0px, 0px)";zb(b.find(L),Q.scrollingSpeed>0).css(bc(p)),setTimeout(function(){o()},Q.scrollingSpeed,Q.easing)}else b.animate({scrollLeft:d.left},Q.scrollingSpeed,Q.easing,function(){o()});i.find(r).removeClass(q),i.find("li").eq(e).find("a").addClass(q)}function xb(){if(yb(),oc){var b=a(c.activeElement);if(!b.is("textarea")&&!b.is("input")&&!b.is("select")){var e=$.height();d.abs(e-Ic)>20*d.max(Ic,e)/100&&(jc.reBuild(!0),Ic=e)}}else clearTimeout(Hc),Hc=setTimeout(function(){jc.reBuild(!0)},500)}function yb(){if(Q.responsive){var b=qc.hasClass(l);$.width()<Q.responsive?b||(jc.setAutoScrolling(!1,"internal"),jc.setFitToSection(!1,"internal"),a(B).hide(),qc.addClass(l)):b&&(jc.setAutoScrolling(wc.autoScrolling,"internal"),jc.setFitToSection(wc.autoScrolling,"internal"),a(B).show(),qc.removeClass(l))}}function zb(a){var b="all "+Q.scrollingSpeed+"ms "+Q.easingcss3;return a.removeClass(m),a.css({"-webkit-transition":b,transition:b})}function Ab(a){return a.addClass(m)}function Bb(a,b){var c=825,e=900;if(c>a||e>b){var f=100*a/c,g=100*b/e,h=d.min(f,g),i=h.toFixed(2);ic.css("font-size",i+"%")}else ic.css("font-size","100%")}function Cb(b,c){Q.navigation&&(a(B).find(r).removeClass(q),b?a(B).find('a[href="#'+b+'"]').addClass(q):a(B).find("li").eq(c).find("a").addClass(q))}function Db(b){Q.menu&&(a(Q.menu).find(r).removeClass(q),a(Q.menu).find('[data-menuanchor="'+b+'"]').addClass(q))}function Eb(a,b){Db(a),Cb(a,b)}function Fb(a,b){return"top"===a?!b.scrollTop():"bottom"===a?b.scrollTop()+1+b.innerHeight()>=b[0].scrollHeight:void 0}function Gb(b){var c=a(v).index(u),d=b.index(u);return c==d?"none":c>d?"up":"down"}function Hb(a,b){return a==b?"none":a>b?"left":"right"}function Ib(a){a.css("overflow","hidden");var b,c=a.closest(u),d=a.find(i);d.length?b=d.get(0).scrollHeight:(b=a.get(0).scrollHeight,Q.verticalCentered&&(b=a.find(z).get(0).scrollHeight));var e=rc-parseInt(c.css("padding-bottom"))-parseInt(c.css("padding-top"));b>e?d.length?d.css("height",e+"px").parent().css("height",e+"px"):(Q.verticalCentered?a.find(z).wrapInner('<div class="'+h+'" />'):a.wrapInner('<div class="'+h+'" />'),a.find(i).slimScroll({allowPageScroll:!0,height:e+"px",size:"10px",alwaysVisible:!0})):Jb(a),a.css("overflow","")}function Jb(a){a.find(i).children().first().unwrap().unwrap(),a.find(j).remove(),a.find(k).remove()}function Kb(a){a.addClass(M).wrapInner('<div class="'+y+'" style="height:'+Lb(a)+'px;" />')}function Lb(a){var b=rc;if(Q.paddingTop||Q.paddingBottom){var c=a;c.hasClass(t)||(c=a.closest(u));var d=parseInt(c.css("padding-top"))+parseInt(c.css("padding-bottom"));b=rc-d}return b}function Mb(a,b){b?zb(qc):Ab(qc),qc.css(bc(a)),setTimeout(function(){qc.removeClass(m)},10)}function Nb(b,c){var d;"undefined"==typeof c&&(c=0),d=isNaN(b)?a('[data-anchor="'+b+'"]'):a(u).eq(b-1),b===kc||d.hasClass(q)?Ob(d,c):lb(d,function(){Ob(d,c)})}function Ob(a,b){if("undefined"!=typeof b){var c=a.find(J),d=c.find('[data-anchor="'+b+'"]');d.length||(d=c.find(G).eq(b)),d.length&&wb(c,d)}}function Pb(a,b){a.append('<div class="'+N+'"><ul></ul></div>');var c=a.find(O);c.addClass(Q.slidesNavPosition);for(var d=0;b>d;d++)c.find("ul").append('<li><a href="#"><span></span></a></li>');c.css("margin-left","-"+c.width()/2+"px"),c.find("li").first().find("a").addClass(q)}function Qb(a,b,c){var d="";Q.anchors.length&&(a?("undefined"!=typeof c&&(d=c),"undefined"==typeof b&&(b=a),lc=b,Rb(d+"/"+b)):"undefined"!=typeof a?(lc=b,Rb(c)):Rb(c)),Tb()}function Rb(a){if(Q.recordHistory)location.hash=a;else if(oc||pc)history.replaceState(e,e,"#"+a);else{var c=b.location.href.split("#")[0];b.location.replace(c+"#"+a)}}function Sb(a){var b=a.data("anchor"),c=a.index();return"undefined"==typeof b&&(b=c),b}function Tb(){var b=a(v),c=b.find(H),d=b.data("anchor"),e=Sb(c),f=b.index(u),g=String(f);Q.anchors.length&&(g=d?d:"no-anchor"),c.length&&(g=g+"-"+e),g=g.replace("/","-").replace("#","");var h=new RegExp("\\b\\s?"+p+"-[^\\s]+\\b","g");ic[0].className=ic[0].className.replace(h,""),ic.addClass(p+"-"+g)}function Ub(){var a,d=c.createElement("p"),f={webkitTransform:"-webkit-transform",OTransform:"-o-transform",msTransform:"-ms-transform",MozTransform:"-moz-transform",transform:"transform"};c.body.insertBefore(d,null);for(var g in f)d.style[g]!==e&&(d.style[g]="translate3d(1px,1px,1px)",a=b.getComputedStyle(d).getPropertyValue(f[g]));return c.body.removeChild(d),a!==e&&a.length>0&&"none"!==a}function Vb(){c.addEventListener?(c.removeEventListener("mousewheel",ib,!1),c.removeEventListener("wheel",ib,!1)):c.detachEvent("onmousewheel",ib)}function Wb(){c.addEventListener?(c.addEventListener("mousewheel",ib,!1),c.addEventListener("wheel",ib,!1)):c.attachEvent("onmousewheel",ib)}function Xb(){if(oc||pc){var b=Zb();a(g).off("touchstart "+b.down).on("touchstart "+b.down,gb),a(g).off("touchmove "+b.move).on("touchmove "+b.move,db)}}function Yb(){if(oc||pc){var b=Zb();a(g).off("touchstart "+b.down),a(g).off("touchmove "+b.move)}}function Zb(){var a;return a=b.PointerEvent?{down:"pointerdown",move:"pointermove"}:{down:"MSPointerDown",move:"MSPointerMove"}}function $b(a){var b=[];return b.y="undefined"!=typeof a.pageY&&(a.pageY||a.pageX)?a.pageY:a.touches[0].pageY,b.x="undefined"!=typeof a.pageX&&(a.pageY||a.pageX)?a.pageX:a.touches[0].pageX,pc&&fb(a)&&(b.y=a.touches[0].pageY,b.x=a.touches[0].pageX),b}function _b(a){jc.setScrollingSpeed(0,"internal"),wb(a.closest(J),a),jc.setScrollingSpeed(wc.scrollingSpeed,"internal")
  }function ac(a){if(Q.scrollBar)qc.scrollTop(a);else if(Q.css3){var b="translate3d(0px, -"+a+"px, 0px)";Mb(b,!1)}else qc.css("top",-a)}function bc(a){return{"-webkit-transform":a,"-moz-transform":a,"-ms-transform":a,transform:a}}function cc(a,b){switch(b){case"up":vc.up=a;break;case"down":vc.down=a;break;case"left":vc.left=a;break;case"right":vc.right=a;break;case"all":jc.setAllowScrolling(a)}}function dc(){ac(0),a(B+", "+O+", "+R).remove(),a(u).css({height:"","background-color":"",padding:""}),a(G).css({width:""}),qc.css({height:"",position:"","-ms-touch-action":"","touch-action":""}),a(u+", "+G).each(function(){Jb(a(this)),a(this).removeClass(M+" "+q)}),Ab(qc),qc.find(z+", "+L+", "+J).each(function(){a(this).replaceWith(this.childNodes)}),hc.scrollTop(0)}function ec(a,b,c){Q[a]=b,"internal"!==c&&(wc[a]=b)}function fc(){Q.continuousVertical&&(Q.loopTop||Q.loopBottom)&&(Q.continuousVertical=!1,gc("warn","Option `loopTop/loopBottom` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),Q.continuousVertical&&Q.scrollBar&&(Q.continuousVertical=!1,gc("warn","Option `scrollBar` is mutually exclusive with `continuousVertical`; `continuousVertical` disabled")),a.each(Q.anchors,function(b,c){(a("#"+c).length||a('[name="'+c+'"]').length)&&gc("error","data-anchor tags can not have the same value as any `id` element on the site (or `name` element for IE).")})}function gc(a,b){console&&console[a]&&console[a]("fullPage: "+b)}var hc=a("html, body"),ic=a("body"),jc=a.fn.fullpage;Q=a.extend({menu:!1,anchors:[],navigation:!1,navigationPosition:"right",navigationTooltips:[],showActiveTooltip:!1,slidesNavigation:!1,slidesNavPosition:"bottom",scrollBar:!1,css3:!0,scrollingSpeed:700,autoScrolling:!0,fitToSection:!0,easing:"easeInOutCubic",easingcss3:"ease",loopBottom:!1,loopTop:!1,loopHorizontal:!0,continuousVertical:!1,normalScrollElements:null,scrollOverflow:!1,touchSensitivity:5,normalScrollElementTouchThreshold:5,keyboardScrolling:!0,animateAnchor:!0,recordHistory:!0,controlArrows:!0,controlArrowColor:"#fff",verticalCentered:!0,resize:!1,sectionsColor:[],paddingTop:0,paddingBottom:0,fixedElements:null,responsive:0,sectionSelector:s,slideSelector:E,afterLoad:null,onLeave:null,afterRender:null,afterResize:null,afterReBuild:null,afterSlideLoad:null,onSlideLeave:null},Q),fc(),a.extend(a.easing,{easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c}}),a.extend(a.easing,{easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c}}),jc.setAutoScrolling=function(b,c){ec("autoScrolling",b,c);var d=a(v);Q.autoScrolling&&!Q.scrollBar?(hc.css({overflow:"hidden",height:"100%"}),jc.setRecordHistory(Q.recordHistory,"internal"),qc.css({"-ms-touch-action":"none","touch-action":"none"}),d.length&&ac(d.position().top)):(hc.css({overflow:"visible",height:"initial"}),jc.setRecordHistory(!1,"internal"),qc.css({"-ms-touch-action":"","touch-action":""}),ac(0),d.length&&hc.scrollTop(d.position().top))},jc.setRecordHistory=function(a,b){ec("recordHistory",a,b)},jc.setScrollingSpeed=function(a,b){ec("scrollingSpeed",a,b)},jc.setFitToSection=function(a,b){ec("fitToSection",a,b)},jc.setMouseWheelScrolling=function(a){a?Wb():Vb()},jc.setAllowScrolling=function(b,c){"undefined"!=typeof c?(c=c.replace(/ /g,"").split(","),a.each(c,function(a,c){cc(b,c)})):b?(jc.setMouseWheelScrolling(!0),Xb()):(jc.setMouseWheelScrolling(!1),Yb())},jc.setKeyboardScrolling=function(a){Q.keyboardScrolling=a},jc.moveSectionUp=function(){var b=a(v).prev(u);b.length||!Q.loopTop&&!Q.continuousVertical||(b=a(u).last()),b.length&&lb(b,null,!0)},jc.moveSectionDown=function(){var b=a(v).next(u);b.length||!Q.loopBottom&&!Q.continuousVertical||(b=a(u).first()),b.length&&lb(b,null,!1)},jc.moveTo=function(b,c){var d="";d=isNaN(b)?a('[data-anchor="'+b+'"]'):a(u).eq(b-1),"undefined"!=typeof c?Nb(b,c):d.length>0&&lb(d)},jc.moveSlideRight=function(){jb("next")},jc.moveSlideLeft=function(){jb("prev")},jc.reBuild=function(b){if(!qc.hasClass(n)){sc=!0;var c=$.width();rc=$.height(),Q.resize&&Bb(rc,c),a(u).each(function(){var b=a(this).find(J),c=a(this).find(G);Q.verticalCentered&&a(this).find(z).css("height",Lb(a(this))+"px"),a(this).css("height",rc+"px"),Q.scrollOverflow&&(c.length?c.each(function(){Ib(a(this))}):Ib(a(this))),c.length>1&&wb(b,b.find(H))});var d=a(v);d.index(u)&&lb(d),sc=!1,a.isFunction(Q.afterResize)&&b&&Q.afterResize.call(qc),a.isFunction(Q.afterReBuild)&&!b&&Q.afterReBuild.call(qc)}};var kc,lc,mc,nc=!1,oc=navigator.userAgent.match(/(iPhone|iPod|iPad|Android|playbook|silk|BlackBerry|BB10|Windows Phone|Tizen|Bada|webOS|IEMobile|Opera Mini)/),pc="ontouchstart"in b||navigator.msMaxTouchPoints>0||navigator.maxTouchPoints,qc=a(this),rc=$.height(),sc=!1,tc=!0,uc=[],vc={up:!0,down:!0,left:!0,right:!0},wc=a.extend(!0,{},Q);a(this).length?(qc.css({height:"100%",position:"relative"}),qc.addClass(f),a("html").addClass(o)):gc("error","Error! Fullpage.js needs to be initialized with a selector. For example: $('#myContainer').fullpage();"),Q.css3&&(Q.css3=Ub()),jc.setAllowScrolling(!0),qc.removeClass(n),a(Q.sectionSelector).each(function(){a(this).addClass(t)}),a(Q.slideSelector).each(function(){a(this).addClass(F)}),Q.navigation&&W(),a(u).each(function(b){var c=a(this),d=a(this).find(G),e=d.length;if(b||0!==a(v).length||a(this).addClass(q),a(this).css("height",rc+"px"),Q.paddingTop&&a(this).css("padding-top",Q.paddingTop),Q.paddingBottom&&a(this).css("padding-bottom",Q.paddingBottom),"undefined"!=typeof Q.sectionsColor[b]&&a(this).css("background-color",Q.sectionsColor[b]),"undefined"!=typeof Q.anchors[b]&&(a(this).attr("data-anchor",Q.anchors[b]),a(this).hasClass(q)&&Eb(Q.anchors[b],b)),e>0){var f=100*e,g=100/e;d.wrapAll('<div class="'+K+'" />'),d.parent().wrap('<div class="'+I+'" />'),a(this).find(L).css("width",f+"%"),Q.controlArrows&&e>1&&T(a(this)),Q.slidesNavigation&&Pb(a(this),e),d.each(function(){a(this).css("width",g+"%"),Q.verticalCentered&&Kb(a(this))});var h=c.find(H);h.length?_b(h):d.eq(0).addClass(q)}else Q.verticalCentered&&Kb(a(this))}).promise().done(function(){jc.setAutoScrolling(Q.autoScrolling,"internal");var d=a(v).find(H);if(d.length&&(0!==a(v).index(u)||0===a(v).index(u)&&0!==d.index())&&_b(d),Q.fixedElements&&Q.css3&&a(Q.fixedElements).appendTo(ic),Q.navigation&&(mc.css("margin-top","-"+mc.height()/2+"px"),mc.find("li").eq(a(v).index(u)).find("a").addClass(q)),Q.menu&&Q.css3&&a(Q.menu).closest(g).length&&a(Q.menu).appendTo(ic),Q.scrollOverflow?("complete"===c.readyState&&X(),$.on("load",X)):a.isFunction(Q.afterRender)&&Q.afterRender.call(qc),yb(),!Q.animateAnchor){var e=b.location.hash.replace("#","").split("/"),f=e[0];if(f.length){var h=a('[data-anchor="'+f+'"]');h.length&&(Q.autoScrolling?ac(h.position().top):(ac(0),hc.scrollTop(h.position().top)),Eb(f,null),a.isFunction(Q.afterLoad)&&Q.afterLoad.call(h,f,h.index(u)+1),h.addClass(q).siblings().removeClass(q))}}Tb(),$.on("load",function(){rb()})});var xc,yc,zc=!1;a(b).scroll(function(){clearTimeout(a.data(this,"scrollTimer")),a.data(this,"scrollTimer",setTimeout(ab,250))});var Ac=0,Bc=0,Cc=0,Dc=0,Ec=(new Date).getTime();$.on("hashchange",sb),_.keydown(tb);var Fc;qc.mousedown(function(a){2==a.which&&(Gc=a.pageY,qc.on("mousemove",vb))}),qc.mouseup(function(a){2==a.which&&qc.off("mousemove")});var Gc=0;_.on("click touchstart",B+" a",function(b){b.preventDefault();var c=a(this).parent().index();lb(a(u).eq(c))}),_.on("click touchstart",P,function(b){b.preventDefault();var c=a(this).closest(u).find(J),d=c.find(G).eq(a(this).closest("li").index());wb(c,d)}),Q.normalScrollElements&&(_.on("mouseenter",Q.normalScrollElements,function(){jc.setMouseWheelScrolling(!1)}),_.on("mouseleave",Q.normalScrollElements,function(){jc.setMouseWheelScrolling(!0)})),a(u).on("click touchstart",R,function(){a(this).hasClass(S)?jc.moveSlideLeft():jc.moveSlideRight()}),$.resize(xb);var Hc,Ic=rc;jc.destroy=function(b){jc.setAutoScrolling(!1,"internal"),jc.setAllowScrolling(!1),jc.setKeyboardScrolling(!1),qc.addClass(n),$.off("scroll",ab).off("hashchange",sb).off("resize",xb),_.off("click",B+" a").off("mouseenter",B+" li").off("mouseleave",B+" li").off("click",P).off("mouseover",Q.normalScrollElements).off("mouseout",Q.normalScrollElements),a(u).off("click",R),b&&dc()}}}(jQuery,window,document,Math),function(a){var b,c,d,e,f,g,h,i="Close",j="BeforeClose",k="AfterClose",l="BeforeAppend",m="MarkupParse",n="Open",o="Change",p="mfp",q="."+p,r="mfp-ready",s="mfp-removing",t="mfp-prevent-close",u=function(){},v=!!window.jQuery,w=a(window),x=function(a,c){b.ev.on(p+a+q,c)},y=function(b,c,d,e){var f=document.createElement("div");return f.className="mfp-"+b,d&&(f.innerHTML=d),e?c&&c.appendChild(f):(f=a(f),c&&f.appendTo(c)),f},z=function(c,d){b.ev.triggerHandler(p+c,d),b.st.callbacks&&(c=c.charAt(0).toLowerCase()+c.slice(1),b.st.callbacks[c]&&b.st.callbacks[c].apply(b,a.isArray(d)?d:[d]))},A=function(c){return c===h&&b.currTemplate.closeBtn||(b.currTemplate.closeBtn=a(b.st.closeMarkup.replace("%title%",b.st.tClose)),h=c),b.currTemplate.closeBtn},B=function(){a.magnificPopup.instance||(b=new u,b.init(),a.magnificPopup.instance=b)},C=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(void 0!==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1};u.prototype={constructor:u,init:function(){var c=navigator.appVersion;b.isIE7=-1!==c.indexOf("MSIE 7."),b.isIE8=-1!==c.indexOf("MSIE 8."),b.isLowIE=b.isIE7||b.isIE8,b.isAndroid=/android/gi.test(c),b.isIOS=/iphone|ipad|ipod/gi.test(c),b.supportsTransition=C(),b.probablyMobile=b.isAndroid||b.isIOS||/(Opera Mini)|Kindle|webOS|BlackBerry|(Opera Mobi)|(Windows Phone)|IEMobile/i.test(navigator.userAgent),d=a(document.body),e=a(document),b.popupsCache={}},open:function(c){var d;if(c.isObj===!1){b.items=c.items.toArray(),b.index=0;var f,h=c.items;for(d=0;h.length>d;d++)if(f=h[d],f.parsed&&(f=f.el[0]),f===c.el[0]){b.index=d;break}}else b.items=a.isArray(c.items)?c.items:[c.items],b.index=c.index||0;if(b.isOpen)return void b.updateItemHTML();b.types=[],g="",b.ev=c.mainEl&&c.mainEl.length?c.mainEl.eq(0):e,c.key?(b.popupsCache[c.key]||(b.popupsCache[c.key]={}),b.currTemplate=b.popupsCache[c.key]):b.currTemplate={},b.st=a.extend(!0,{},a.magnificPopup.defaults,c),b.fixedContentPos="auto"===b.st.fixedContentPos?!b.probablyMobile:b.st.fixedContentPos,b.st.modal&&(b.st.closeOnContentClick=!1,b.st.closeOnBgClick=!1,b.st.showCloseBtn=!1,b.st.enableEscapeKey=!1),b.bgOverlay||(b.bgOverlay=y("bg").on("click"+q,function(){b.close()}),b.wrap=y("wrap").attr("tabindex",-1).on("click"+q,function(a){b._checkIfClose(a.target)&&b.close()}),b.container=y("container",b.wrap)),b.contentContainer=y("content"),b.st.preloader&&(b.preloader=y("preloader",b.container,b.st.tLoading));var i=a.magnificPopup.modules;for(d=0;i.length>d;d++){var j=i[d];j=j.charAt(0).toUpperCase()+j.slice(1),b["init"+j].call(b)}z("BeforeOpen"),b.st.showCloseBtn&&(b.st.closeBtnInside?(x(m,function(a,b,c,d){c.close_replaceWith=A(d.type)}),g+=" mfp-close-btn-in"):b.wrap.append(A())),b.st.alignTop&&(g+=" mfp-align-top"),b.wrap.css(b.fixedContentPos?{overflow:b.st.overflowY,overflowX:"hidden",overflowY:b.st.overflowY}:{top:w.scrollTop(),position:"absolute"}),(b.st.fixedBgPos===!1||"auto"===b.st.fixedBgPos&&!b.fixedContentPos)&&b.bgOverlay.css({height:e.height(),position:"absolute"}),b.st.enableEscapeKey&&e.on("keyup"+q,function(a){27===a.keyCode&&b.close()}),w.on("resize"+q,function(){b.updateSize()}),b.st.closeOnContentClick||(g+=" mfp-auto-cursor"),g&&b.wrap.addClass(g);var k=b.wH=w.height(),l={};if(b.fixedContentPos&&b._hasScrollBar(k)){var o=b._getScrollbarSize();o&&(l.marginRight=o)}b.fixedContentPos&&(b.isIE7?a("body, html").css("overflow","hidden"):l.overflow="hidden");var p=b.st.mainClass;return b.isIE7&&(p+=" mfp-ie7"),p&&b._addClassToMFP(p),b.updateItemHTML(),z("BuildControls"),a("html").css(l),b.bgOverlay.add(b.wrap).prependTo(document.body),b._lastFocusedEl=document.activeElement,setTimeout(function(){b.content?(b._addClassToMFP(r),b._setFocus()):b.bgOverlay.addClass(r),e.on("focusin"+q,b._onFocusIn)},16),b.isOpen=!0,b.updateSize(k),z(n),c},close:function(){b.isOpen&&(z(j),b.isOpen=!1,b.st.removalDelay&&!b.isLowIE&&b.supportsTransition?(b._addClassToMFP(s),setTimeout(function(){b._close()},b.st.removalDelay)):b._close())},_close:function(){z(i);var c=s+" "+r+" ";if(b.bgOverlay.detach(),b.wrap.detach(),b.container.empty(),b.st.mainClass&&(c+=b.st.mainClass+" "),b._removeClassFromMFP(c),b.fixedContentPos){var d={marginRight:""};b.isIE7?a("body, html").css("overflow",""):d.overflow="",a("html").css(d)}e.off("keyup"+q+" focusin"+q),b.ev.off(q),b.wrap.attr("class","mfp-wrap").removeAttr("style"),b.bgOverlay.attr("class","mfp-bg"),b.container.attr("class","mfp-container"),!b.st.showCloseBtn||b.st.closeBtnInside&&b.currTemplate[b.currItem.type]!==!0||b.currTemplate.closeBtn&&b.currTemplate.closeBtn.detach(),b._lastFocusedEl&&a(b._lastFocusedEl).focus(),b.currItem=null,b.content=null,b.currTemplate=null,b.prevHeight=0,z(k)},updateSize:function(a){if(b.isIOS){var c=document.documentElement.clientWidth/window.innerWidth,d=window.innerHeight*c;b.wrap.css("height",d),b.wH=d}else b.wH=a||w.height();b.fixedContentPos||b.wrap.css("height",b.wH),z("Resize")},updateItemHTML:function(){var c=b.items[b.index];b.contentContainer.detach(),b.content&&b.content.detach(),c.parsed||(c=b.parseEl(b.index));var d=c.type;if(z("BeforeChange",[b.currItem?b.currItem.type:"",d]),b.currItem=c,!b.currTemplate[d]){var e=b.st[d]?b.st[d].markup:!1;z("FirstMarkupParse",e),b.currTemplate[d]=e?a(e):!0}f&&f!==c.type&&b.container.removeClass("mfp-"+f+"-holder");var g=b["get"+d.charAt(0).toUpperCase()+d.slice(1)](c,b.currTemplate[d]);b.appendContent(g,d),c.preloaded=!0,z(o,c),f=c.type,b.container.prepend(b.contentContainer),z("AfterChange")},appendContent:function(a,c){b.content=a,a?b.st.showCloseBtn&&b.st.closeBtnInside&&b.currTemplate[c]===!0?b.content.find(".mfp-close").length||b.content.append(A()):b.content=a:b.content="",z(l),b.container.addClass("mfp-"+c+"-holder"),b.contentContainer.append(b.content)},parseEl:function(c){var d=b.items[c],e=d.type;if(d=d.tagName?{el:a(d)}:{data:d,src:d.src},d.el){for(var f=b.types,g=0;f.length>g;g++)if(d.el.hasClass("mfp-"+f[g])){e=f[g];break}d.src=d.el.attr("data-mfp-src"),d.src||(d.src=d.el.attr("href"))}return d.type=e||b.st.type||"inline",d.index=c,d.parsed=!0,b.items[c]=d,z("ElementParse",d),b.items[c]},addGroup:function(a,c){var d=function(d){d.mfpEl=this,b._openClick(d,a,c)};c||(c={});var e="click.magnificPopup";c.mainEl=a,c.items?(c.isObj=!0,a.off(e).on(e,d)):(c.isObj=!1,c.delegate?a.off(e).on(e,c.delegate,d):(c.items=a,a.off(e).on(e,d)))},_openClick:function(c,d,e){var f=void 0!==e.midClick?e.midClick:a.magnificPopup.defaults.midClick;if(f||2!==c.which&&!c.ctrlKey&&!c.metaKey){var g=void 0!==e.disableOn?e.disableOn:a.magnificPopup.defaults.disableOn;if(g)if(a.isFunction(g)){if(!g.call(b))return!0}else if(g>w.width())return!0;c.type&&(c.preventDefault(),b.isOpen&&c.stopPropagation()),e.el=a(c.mfpEl),e.delegate&&(e.items=d.find(e.delegate)),b.open(e)}},updateStatus:function(a,d){if(b.preloader){c!==a&&b.container.removeClass("mfp-s-"+c),d||"loading"!==a||(d=b.st.tLoading);var e={status:a,text:d};z("UpdateStatus",e),a=e.status,d=e.text,b.preloader.html(d),b.preloader.find("a").on("click",function(a){a.stopImmediatePropagation()}),b.container.addClass("mfp-s-"+a),c=a}},_checkIfClose:function(c){if(!a(c).hasClass(t)){var d=b.st.closeOnContentClick,e=b.st.closeOnBgClick;if(d&&e)return!0;if(!b.content||a(c).hasClass("mfp-close")||b.preloader&&c===b.preloader[0])return!0;if(c===b.content[0]||a.contains(b.content[0],c)){if(d)return!0}else if(e&&a.contains(document,c))return!0;return!1}},_addClassToMFP:function(a){b.bgOverlay.addClass(a),b.wrap.addClass(a)},_removeClassFromMFP:function(a){this.bgOverlay.removeClass(a),b.wrap.removeClass(a)},_hasScrollBar:function(a){return(b.isIE7?e.height():document.body.scrollHeight)>(a||w.height())},_setFocus:function(){(b.st.focus?b.content.find(b.st.focus).eq(0):b.wrap).focus()},_onFocusIn:function(c){return c.target===b.wrap[0]||a.contains(b.wrap[0],c.target)?void 0:(b._setFocus(),!1)},_parseMarkup:function(b,c,d){var e;d.data&&(c=a.extend(d.data,c)),z(m,[b,c,d]),a.each(c,function(a,c){if(void 0===c||c===!1)return!0;if(e=a.split("_"),e.length>1){var d=b.find(q+"-"+e[0]);if(d.length>0){var f=e[1];"replaceWith"===f?d[0]!==c[0]&&d.replaceWith(c):"img"===f?d.is("img")?d.attr("src",c):d.replaceWith('<img src="'+c+'" class="'+d.attr("class")+'" />'):d.attr(e[1],c)}}else b.find(q+"-"+a).html(c)})},_getScrollbarSize:function(){if(void 0===b.scrollbarSize){var a=document.createElement("div");a.id="mfp-sbm",a.style.cssText="width: 99px; height: 99px; overflow: scroll; position: absolute; top: -9999px;",document.body.appendChild(a),b.scrollbarSize=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}return b.scrollbarSize}},a.magnificPopup={instance:null,proto:u.prototype,modules:[],open:function(b,c){return B(),b=b?a.extend(!0,{},b):{},b.isObj=!0,b.index=c||0,this.instance.open(b)},close:function(){return a.magnificPopup.instance&&a.magnificPopup.instance.close()},registerModule:function(b,c){c.options&&(a.magnificPopup.defaults[b]=c.options),a.extend(this.proto,c.proto),this.modules.push(b)},defaults:{disableOn:0,key:null,midClick:!1,mainClass:"",preloader:!0,focus:"",closeOnContentClick:!1,closeOnBgClick:!0,closeBtnInside:!0,showCloseBtn:!0,enableEscapeKey:!0,modal:!1,alignTop:!1,removalDelay:0,fixedContentPos:"auto",fixedBgPos:"auto",overflowY:"auto",closeMarkup:'<button title="%title%" type="button" class="mfp-close">&times;</button>',tClose:"Close (Esc)",tLoading:"Loading..."}},a.fn.magnificPopup=function(c){B();var d=a(this);if("string"==typeof c)if("open"===c){var e,f=v?d.data("magnificPopup"):d[0].magnificPopup,g=parseInt(arguments[1],10)||0;f.items?e=f.items[g]:(e=d,f.delegate&&(e=e.find(f.delegate)),e=e.eq(g)),b._openClick({mfpEl:e},d,f)}else b.isOpen&&b[c].apply(b,Array.prototype.slice.call(arguments,1));else c=a.extend(!0,{},c),v?d.data("magnificPopup",c):d[0].magnificPopup=c,b.addGroup(d,c);return d};var D,E,F,G="inline",H=function(){F&&(E.after(F.addClass(D)).detach(),F=null)};a.magnificPopup.registerModule(G,{options:{hiddenClass:"hide",markup:"",tNotFound:"Content not found"},proto:{initInline:function(){b.types.push(G),x(i+"."+G,function(){H()})},getInline:function(c,d){if(H(),c.src){var e=b.st.inline,f=a(c.src);if(f.length){var g=f[0].parentNode;g&&g.tagName&&(E||(D=e.hiddenClass,E=y(D),D="mfp-"+D),F=f.after(E).detach().removeClass(D)),b.updateStatus("ready")}else b.updateStatus("error",e.tNotFound),f=a("<div>");return c.inlineElement=f,f}return b.updateStatus("ready"),b._parseMarkup(d,{},c),d}}});var I,J="ajax",K=function(){I&&d.removeClass(I)},L=function(){K(),b.req&&b.req.abort()};a.magnificPopup.registerModule(J,{options:{settings:null,cursor:"mfp-ajax-cur",tError:'<a href="%url%">The content</a> could not be loaded.'},proto:{initAjax:function(){b.types.push(J),I=b.st.ajax.cursor,x(i+"."+J,L),x("BeforeChange."+J,L)},getAjax:function(c){I&&d.addClass(I),b.updateStatus("loading");var e=a.extend({url:c.src,success:function(d,e,f){var g={data:d,xhr:f};z("ParseAjax",g),b.appendContent(a(g.data),J),c.finished=!0,K(),b._setFocus(),setTimeout(function(){b.wrap.addClass(r)},16),b.updateStatus("ready"),z("AjaxContentAdded")},error:function(){K(),c.finished=c.loadError=!0,b.updateStatus("error",b.st.ajax.tError.replace("%url%",c.src))}},b.st.ajax.settings);return b.req=a.ajax(e),""}}});var M,N=function(c){if(c.data&&void 0!==c.data.title)return c.data.title;var d=b.st.image.titleSrc;if(d){if(a.isFunction(d))return d.call(b,c);if(c.el)return c.el.attr(d)||""}return""};a.magnificPopup.registerModule("image",{options:{markup:'<div class="mfp-figure"><div class="mfp-close"></div><figure><div class="mfp-img"></div><figcaption><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></figcaption></figure></div>',cursor:"mfp-zoom-out-cur",titleSrc:"title",verticalFit:!0,tError:'<a href="%url%">The image</a> could not be loaded.'},proto:{initImage:function(){var a=b.st.image,c=".image";b.types.push("image"),x(n+c,function(){"image"===b.currItem.type&&a.cursor&&d.addClass(a.cursor)}),x(i+c,function(){a.cursor&&d.removeClass(a.cursor),w.off("resize"+q)}),x("Resize"+c,b.resizeImage),b.isLowIE&&x("AfterChange",b.resizeImage)},resizeImage:function(){var a=b.currItem;if(a&&a.img&&b.st.image.verticalFit){var c=0;b.isLowIE&&(c=parseInt(a.img.css("padding-top"),10)+parseInt(a.img.css("padding-bottom"),10)),a.img.css("max-height",b.wH-c)}},_onImageHasSize:function(a){a.img&&(a.hasSize=!0,M&&clearInterval(M),a.isCheckingImgSize=!1,z("ImageHasSize",a),a.imgHidden&&(b.content&&b.content.removeClass("mfp-loading"),a.imgHidden=!1))},findImageSize:function(a){var c=0,d=a.img[0],e=function(f){M&&clearInterval(M),M=setInterval(function(){return d.naturalWidth>0?void b._onImageHasSize(a):(c>200&&clearInterval(M),c++,void(3===c?e(10):40===c?e(50):100===c&&e(500)))},f)};e(1)},getImage:function(c,d){var e=0,f=function(){c&&(c.img[0].complete?(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("ready")),c.hasSize=!0,c.loaded=!0,z("ImageLoadComplete")):(e++,200>e?setTimeout(f,100):g()))},g=function(){c&&(c.img.off(".mfploader"),c===b.currItem&&(b._onImageHasSize(c),b.updateStatus("error",h.tError.replace("%url%",c.src))),c.hasSize=!0,c.loaded=!0,c.loadError=!0)},h=b.st.image,i=d.find(".mfp-img");if(i.length){var j=document.createElement("img");j.className="mfp-img",c.img=a(j).on("load.mfploader",f).on("error.mfploader",g),j.src=c.src,i.is("img")&&(c.img=c.img.clone()),c.img[0].naturalWidth>0&&(c.hasSize=!0)}return b._parseMarkup(d,{title:N(c),img_replaceWith:c.img},c),b.resizeImage(),c.hasSize?(M&&clearInterval(M),c.loadError?(d.addClass("mfp-loading"),b.updateStatus("error",h.tError.replace("%url%",c.src))):(d.removeClass("mfp-loading"),b.updateStatus("ready")),d):(b.updateStatus("loading"),c.loading=!0,c.hasSize||(c.imgHidden=!0,d.addClass("mfp-loading"),b.findImageSize(c)),d)}}});var O,P=function(){return void 0===O&&(O=void 0!==document.createElement("p").style.MozTransform),O};a.magnificPopup.registerModule("zoom",{options:{enabled:!1,easing:"ease-in-out",duration:300,opener:function(a){return a.is("img")?a:a.find("img")}},proto:{initZoom:function(){var a,c=b.st.zoom,d=".zoom";if(c.enabled&&b.supportsTransition){var e,f,g=c.duration,h=function(a){var b=a.clone().removeAttr("style").removeAttr("class").addClass("mfp-animated-image"),d="all "+c.duration/1e3+"s "+c.easing,e={position:"fixed",zIndex:9999,left:0,top:0,"-webkit-backface-visibility":"hidden"},f="transition";return e["-webkit-"+f]=e["-moz-"+f]=e["-o-"+f]=e[f]=d,b.css(e),b},k=function(){b.content.css("visibility","visible")};x("BuildControls"+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.content.css("visibility","hidden"),a=b._getItemToZoom(),!a)return void k();f=h(a),f.css(b._getOffset()),b.wrap.append(f),e=setTimeout(function(){f.css(b._getOffset(!0)),e=setTimeout(function(){k(),setTimeout(function(){f.remove(),a=f=null,z("ZoomAnimationEnded")},16)},g)},16)}}),x(j+d,function(){if(b._allowZoom()){if(clearTimeout(e),b.st.removalDelay=g,!a){if(a=b._getItemToZoom(),!a)return;f=h(a)}f.css(b._getOffset(!0)),b.wrap.append(f),b.content.css("visibility","hidden"),setTimeout(function(){f.css(b._getOffset())},16)}}),x(i+d,function(){b._allowZoom()&&(k(),f&&f.remove(),a=null)})}},_allowZoom:function(){return"image"===b.currItem.type},_getItemToZoom:function(){return b.currItem.hasSize?b.currItem.img:!1},_getOffset:function(c){var d;d=c?b.currItem.img:b.st.zoom.opener(b.currItem.el||b.currItem);var e=d.offset(),f=parseInt(d.css("padding-top"),10),g=parseInt(d.css("padding-bottom"),10);e.top-=a(window).scrollTop()-f;var h={width:d.width(),height:(v?d.innerHeight():d[0].offsetHeight)-g-f};return P()?h["-moz-transform"]=h.transform="translate("+e.left+"px,"+e.top+"px)":(h.left=e.left,h.top=e.top),h}}});var Q="iframe",R="//about:blank",S=function(a){if(b.currTemplate[Q]){var c=b.currTemplate[Q].find("iframe");c.length&&(a||(c[0].src=R),b.isIE8&&c.css("display",a?"block":"none"))}};a.magnificPopup.registerModule(Q,{options:{markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" src="//about:blank" frameborder="0" allowfullscreen></iframe></div>',srcAction:"iframe_src",patterns:{youtube:{index:"youtube.com",id:"v=",src:"//www.youtube.com/embed/%id%?autoplay=1"},vimeo:{index:"vimeo.com/",id:"/",src:"//player.vimeo.com/video/%id%?autoplay=1"},gmaps:{index:"//maps.google.",src:"%id%&output=embed"}}},proto:{initIframe:function(){b.types.push(Q),x("BeforeChange",function(a,b,c){b!==c&&(b===Q?S():c===Q&&S(!0))}),x(i+"."+Q,function(){S()})},getIframe:function(c,d){var e=c.src,f=b.st.iframe;a.each(f.patterns,function(){return e.indexOf(this.index)>-1?(this.id&&(e="string"==typeof this.id?e.substr(e.lastIndexOf(this.id)+this.id.length,e.length):this.id.call(this,e)),e=this.src.replace("%id%",e),!1):void 0});var g={};return f.srcAction&&(g[f.srcAction]=e),b._parseMarkup(d,g,c),b.updateStatus("ready"),d}}});var T=function(a){var c=b.items.length;return a>c-1?a-c:0>a?c+a:a},U=function(a,b,c){return a.replace(/%curr%/gi,b+1).replace(/%total%/gi,c)};a.magnificPopup.registerModule("gallery",{options:{enabled:!1,arrowMarkup:'<button title="%title%" type="button" class="mfp-arrow mfp-arrow-%dir%"></button>',preload:[0,2],navigateByImgClick:!0,arrows:!0,tPrev:"Previous (Left arrow key)",tNext:"Next (Right arrow key)",tCounter:"%curr% of %total%"},proto:{initGallery:function(){var c=b.st.gallery,d=".mfp-gallery",f=Boolean(a.fn.mfpFastClick);return b.direction=!0,c&&c.enabled?(g+=" mfp-gallery",x(n+d,function(){c.navigateByImgClick&&b.wrap.on("click"+d,".mfp-img",function(){return b.items.length>1?(b.next(),!1):void 0}),e.on("keydown"+d,function(a){37===a.keyCode?b.prev():39===a.keyCode&&b.next()})}),x("UpdateStatus"+d,function(a,c){c.text&&(c.text=U(c.text,b.currItem.index,b.items.length))}),x(m+d,function(a,d,e,f){var g=b.items.length;e.counter=g>1?U(c.tCounter,f.index,g):""}),x("BuildControls"+d,function(){if(b.items.length>1&&c.arrows&&!b.arrowLeft){var d=c.arrowMarkup,e=b.arrowLeft=a(d.replace(/%title%/gi,c.tPrev).replace(/%dir%/gi,"left")).addClass(t),g=b.arrowRight=a(d.replace(/%title%/gi,c.tNext).replace(/%dir%/gi,"right")).addClass(t),h=f?"mfpFastClick":"click";e[h](function(){b.prev()}),g[h](function(){b.next()}),b.isIE7&&(y("b",e[0],!1,!0),y("a",e[0],!1,!0),y("b",g[0],!1,!0),y("a",g[0],!1,!0)),b.container.append(e.add(g))}}),x(o+d,function(){b._preloadTimeout&&clearTimeout(b._preloadTimeout),b._preloadTimeout=setTimeout(function(){b.preloadNearbyImages(),b._preloadTimeout=null},16)}),void x(i+d,function(){e.off(d),b.wrap.off("click"+d),b.arrowLeft&&f&&b.arrowLeft.add(b.arrowRight).destroyMfpFastClick(),b.arrowRight=b.arrowLeft=null})):!1},next:function(){b.direction=!0,b.index=T(b.index+1),b.updateItemHTML()},prev:function(){b.direction=!1,b.index=T(b.index-1),b.updateItemHTML()},goTo:function(a){b.direction=a>=b.index,b.index=a,b.updateItemHTML()},preloadNearbyImages:function(){var a,c=b.st.gallery.preload,d=Math.min(c[0],b.items.length),e=Math.min(c[1],b.items.length);for(a=1;(b.direction?e:d)>=a;a++)b._preloadItem(b.index+a);for(a=1;(b.direction?d:e)>=a;a++)b._preloadItem(b.index-a)},_preloadItem:function(c){if(c=T(c),!b.items[c].preloaded){var d=b.items[c];d.parsed||(d=b.parseEl(c)),z("LazyLoad",d),"image"===d.type&&(d.img=a('<img class="mfp-img" />').on("load.mfploader",function(){d.hasSize=!0}).on("error.mfploader",function(){d.hasSize=!0,d.loadError=!0,z("LazyLoadError",d)}).attr("src",d.src)),d.preloaded=!0}}}});var V="retina";a.magnificPopup.registerModule(V,{options:{replaceSrc:function(a){return a.src.replace(/\.\w+$/,function(a){return"@2x"+a})},ratio:1},proto:{initRetina:function(){if(window.devicePixelRatio>1){var a=b.st.retina,c=a.ratio;c=isNaN(c)?c():c,c>1&&(x("ImageHasSize."+V,function(a,b){b.img.css({"max-width":b.img[0].naturalWidth/c,width:"100%"})}),x("ElementParse."+V,function(b,d){d.src=a.replaceSrc(d,c)}))}}}}),function(){var b=1e3,c="ontouchstart"in window,d=function(){w.off("touchmove"+f+" touchend"+f)},e="mfpFastClick",f="."+e;a.fn.mfpFastClick=function(e){return a(this).each(function(){var g,h=a(this);if(c){var i,j,k,l,m,n;h.on("touchstart"+f,function(a){l=!1,n=1,m=a.originalEvent?a.originalEvent.touches[0]:a.touches[0],j=m.clientX,k=m.clientY,w.on("touchmove"+f,function(a){m=a.originalEvent?a.originalEvent.touches:a.touches,n=m.length,m=m[0],(Math.abs(m.clientX-j)>10||Math.abs(m.clientY-k)>10)&&(l=!0,d())}).on("touchend"+f,function(a){d(),l||n>1||(g=!0,a.preventDefault(),clearTimeout(i),i=setTimeout(function(){g=!1},b),e())})})}h.on("click"+f,function(){g||e()})})},a.fn.destroyMfpFastClick=function(){a(this).off("touchstart"+f+" click"+f),c&&w.off("touchmove"+f+" touchend"+f)}}(),B()}(window.jQuery||window.Zepto),function(a,b,c,d){"use strict";function e(b,c){this.element=b,this.$context=a(b).data("api",this),this.$layers=this.$context.find(".layer");var d={calibrateX:this.$context.data("calibrate-x")||null,calibrateY:this.$context.data("calibrate-y")||null,invertX:this.$context.data("invert-x")||null,invertY:this.$context.data("invert-y")||null,limitX:parseFloat(this.$context.data("limit-x"))||null,limitY:parseFloat(this.$context.data("limit-y"))||null,scalarX:parseFloat(this.$context.data("scalar-x"))||null,scalarY:parseFloat(this.$context.data("scalar-y"))||null,frictionX:parseFloat(this.$context.data("friction-x"))||null,frictionY:parseFloat(this.$context.data("friction-y"))||null,originX:parseFloat(this.$context.data("origin-x"))||null,originY:parseFloat(this.$context.data("origin-y"))||null};for(var e in d)null===d[e]&&delete d[e];a.extend(this,h,c,d),this.calibrationTimer=null,this.calibrationFlag=!0,this.enabled=!1,this.depths=[],this.raf=null,this.bounds=null,this.ex=0,this.ey=0,this.ew=0,this.eh=0,this.ecx=0,this.ecy=0,this.erx=0,this.ery=0,this.cx=0,this.cy=0,this.ix=0,this.iy=0,this.mx=0,this.my=0,this.vx=0,this.vy=0,this.onMouseMove=this.onMouseMove.bind(this),this.onDeviceOrientation=this.onDeviceOrientation.bind(this),this.onOrientationTimer=this.onOrientationTimer.bind(this),this.onCalibrationTimer=this.onCalibrationTimer.bind(this),this.onAnimationFrame=this.onAnimationFrame.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.initialise()}var f="parallax",g=30,h={relativeInput:!1,clipRelativeInput:!1,calibrationThreshold:100,calibrationDelay:500,supportDelay:500,calibrateX:!1,calibrateY:!0,invertX:!0,invertY:!0,limitX:!1,limitY:!1,scalarX:10,scalarY:10,frictionX:.1,frictionY:.1,originX:.5,originY:.5};e.prototype.transformSupport=function(a){for(var e=c.createElement("div"),f=!1,g=null,h=!1,i=null,j=null,k=0,l=this.vendors.length;l>k;k++)if(null!==this.vendors[k]?(i=this.vendors[k][0]+"transform",j=this.vendors[k][1]+"Transform"):(i="transform",j="transform"),e.style[j]!==d){f=!0;break}switch(a){case"2D":h=f;break;case"3D":if(f){var m=c.body||c.createElement("body"),n=c.documentElement,o=n.style.overflow;c.body||(n.style.overflow="hidden",n.appendChild(m),m.style.overflow="hidden",m.style.background=""),m.appendChild(e),e.style[j]="translate3d(1px,1px,1px)",g=b.getComputedStyle(e).getPropertyValue(i),h=g!==d&&g.length>0&&"none"!==g,n.style.overflow=o,m.removeChild(e)}}return h},e.prototype.ww=null,e.prototype.wh=null,e.prototype.wcx=null,e.prototype.wcy=null,e.prototype.wrx=null,e.prototype.wry=null,e.prototype.portrait=null,e.prototype.desktop=!navigator.userAgent.match(/(iPhone|iPod|iPad|Android|BlackBerry|BB10|mobi|tablet|opera mini|nexus 7)/i),e.prototype.vendors=[null,["-webkit-","webkit"],["-moz-","Moz"],["-o-","O"],["-ms-","ms"]],e.prototype.motionSupport=!!b.DeviceMotionEvent,e.prototype.orientationSupport=!!b.DeviceOrientationEvent,e.prototype.orientationStatus=0,e.prototype.transform2DSupport=e.prototype.transformSupport("2D"),e.prototype.transform3DSupport=e.prototype.transformSupport("3D"),e.prototype.propertyCache={},e.prototype.initialise=function(){"static"===this.$context.css("position")&&this.$context.css({position:"relative"}),this.accelerate(this.$context),this.updateLayers(),this.updateDimensions(),this.enable(),this.queueCalibration(this.calibrationDelay)
  },e.prototype.updateLayers=function(){this.$layers=this.$context.find(".layer"),this.depths=[],this.$layers.css({position:"absolute",display:"block",left:0,top:0}),this.$layers.first().css({position:"relative"}),this.accelerate(this.$layers),this.$layers.each(a.proxy(function(b,c){this.depths.push(a(c).data("depth")||0)},this))},e.prototype.updateDimensions=function(){this.ww=b.innerWidth,this.wh=b.innerHeight,this.wcx=this.ww*this.originX,this.wcy=this.wh*this.originY,this.wrx=Math.max(this.wcx,this.ww-this.wcx),this.wry=Math.max(this.wcy,this.wh-this.wcy)},e.prototype.updateBounds=function(){this.bounds=this.element.getBoundingClientRect(),this.ex=this.bounds.left,this.ey=this.bounds.top,this.ew=this.bounds.width,this.eh=this.bounds.height,this.ecx=this.ew*this.originX,this.ecy=this.eh*this.originY,this.erx=Math.max(this.ecx,this.ew-this.ecx),this.ery=Math.max(this.ecy,this.eh-this.ecy)},e.prototype.queueCalibration=function(a){clearTimeout(this.calibrationTimer),this.calibrationTimer=setTimeout(this.onCalibrationTimer,a)},e.prototype.enable=function(){this.enabled||(this.enabled=!0,this.orientationSupport?(this.portrait=null,b.addEventListener("deviceorientation",this.onDeviceOrientation),setTimeout(this.onOrientationTimer,this.supportDelay)):(this.cx=0,this.cy=0,this.portrait=!1,b.addEventListener("mousemove",this.onMouseMove)),b.addEventListener("resize",this.onWindowResize),this.raf=requestAnimationFrame(this.onAnimationFrame))},e.prototype.disable=function(){this.enabled&&(this.enabled=!1,this.orientationSupport?b.removeEventListener("deviceorientation",this.onDeviceOrientation):b.removeEventListener("mousemove",this.onMouseMove),b.removeEventListener("resize",this.onWindowResize),cancelAnimationFrame(this.raf))},e.prototype.calibrate=function(a,b){this.calibrateX=a===d?this.calibrateX:a,this.calibrateY=b===d?this.calibrateY:b},e.prototype.invert=function(a,b){this.invertX=a===d?this.invertX:a,this.invertY=b===d?this.invertY:b},e.prototype.friction=function(a,b){this.frictionX=a===d?this.frictionX:a,this.frictionY=b===d?this.frictionY:b},e.prototype.scalar=function(a,b){this.scalarX=a===d?this.scalarX:a,this.scalarY=b===d?this.scalarY:b},e.prototype.limit=function(a,b){this.limitX=a===d?this.limitX:a,this.limitY=b===d?this.limitY:b},e.prototype.origin=function(a,b){this.originX=a===d?this.originX:a,this.originY=b===d?this.originY:b},e.prototype.clamp=function(a,b,c){return a=Math.max(a,b),a=Math.min(a,c)},e.prototype.css=function(b,c,e){var f=this.propertyCache[c];if(!f)for(var g=0,h=this.vendors.length;h>g;g++)if(f=null!==this.vendors[g]?a.camelCase(this.vendors[g][1]+"-"+c):c,b.style[f]!==d){this.propertyCache[c]=f;break}b.style[f]=e},e.prototype.accelerate=function(a){for(var b=0,c=a.length;c>b;b++){var d=a[b];this.css(d,"transform","translate3d(0,0,0)"),this.css(d,"transform-style","preserve-3d"),this.css(d,"backface-visibility","hidden")}},e.prototype.setPosition=function(a,b,c){b+="px",c+="px",this.transform3DSupport?this.css(a,"transform","translate3d("+b+","+c+",0)"):this.transform2DSupport?this.css(a,"transform","translate("+b+","+c+")"):(a.style.left=b,a.style.top=c)},e.prototype.onOrientationTimer=function(){this.orientationSupport&&0===this.orientationStatus&&(this.disable(),this.orientationSupport=!1,this.enable())},e.prototype.onCalibrationTimer=function(){this.calibrationFlag=!0},e.prototype.onWindowResize=function(){this.updateDimensions()},e.prototype.onAnimationFrame=function(){this.updateBounds();var a=this.ix-this.cx,b=this.iy-this.cy;(Math.abs(a)>this.calibrationThreshold||Math.abs(b)>this.calibrationThreshold)&&this.queueCalibration(0),this.portrait?(this.mx=this.calibrateX?b:this.iy,this.my=this.calibrateY?a:this.ix):(this.mx=this.calibrateX?a:this.ix,this.my=this.calibrateY?b:this.iy),this.mx*=this.ew*(this.scalarX/100),this.my*=this.eh*(this.scalarY/100),isNaN(parseFloat(this.limitX))||(this.mx=this.clamp(this.mx,-this.limitX,this.limitX)),isNaN(parseFloat(this.limitY))||(this.my=this.clamp(this.my,-this.limitY,this.limitY)),this.vx+=(this.mx-this.vx)*this.frictionX,this.vy+=(this.my-this.vy)*this.frictionY;for(var c=0,d=this.$layers.length;d>c;c++){var e=this.depths[c],f=this.$layers[c],g=this.vx*e*(this.invertX?-1:1),h=this.vy*e*(this.invertY?-1:1);this.setPosition(f,g,h)}this.raf=requestAnimationFrame(this.onAnimationFrame)},e.prototype.onDeviceOrientation=function(a){if(!this.desktop&&null!==a.beta&&null!==a.gamma){this.orientationStatus=1;var c=(a.beta||0)/g,d=(a.gamma||0)/g,e=b.innerHeight>b.innerWidth;this.portrait!==e&&(this.portrait=e,this.calibrationFlag=!0),this.calibrationFlag&&(this.calibrationFlag=!1,this.cx=c,this.cy=d),this.ix=c,this.iy=d}},e.prototype.onMouseMove=function(a){var b=a.clientX,c=a.clientY;!this.orientationSupport&&this.relativeInput?(this.clipRelativeInput&&(b=Math.max(b,this.ex),b=Math.min(b,this.ex+this.ew),c=Math.max(c,this.ey),c=Math.min(c,this.ey+this.eh)),this.ix=(b-this.ex-this.ecx)/this.erx,this.iy=(c-this.ey-this.ecy)/this.ery):(this.ix=(b-this.wcx)/this.wrx,this.iy=(c-this.wcy)/this.wry)};var i={enable:e.prototype.enable,disable:e.prototype.disable,updateLayers:e.prototype.updateLayers,calibrate:e.prototype.calibrate,friction:e.prototype.friction,invert:e.prototype.invert,scalar:e.prototype.scalar,limit:e.prototype.limit,origin:e.prototype.origin};a.fn[f]=function(b){var c=arguments;return this.each(function(){var d=a(this),g=d.data(f);g||(g=new e(this,b),d.data(f,g)),i[b]&&g[b].apply(g,Array.prototype.slice.call(c,1))})}}(window.jQuery||window.Zepto,window,document),function(){for(var a=0,b=["ms","moz","webkit","o"],c=0;c<b.length&&!window.requestAnimationFrame;++c)window.requestAnimationFrame=window[b[c]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[b[c]+"CancelAnimationFrame"]||window[b[c]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(b){var c=(new Date).getTime(),d=Math.max(0,16-(c-a)),e=window.setTimeout(function(){b(c+d)},d);return a=c+d,e}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(a){clearTimeout(a)})}(),!function(a){function b(){h=!0,i.$wndw=a(window),i.$html=a("html"),i.$body=a("body"),a.each([e,f,g],function(a,b){b.add=function(a){a=a.split(" ");for(var c in a)b[a[c]]=b.mm(a[c])}}),e.mm=function(a){return"mm-"+a},e.add("wrapper menu inline panel nopanel list nolist subtitle selected label spacer current highest hidden opened subopened subopen fullsubopen subclose"),e.umm=function(a){return"mm-"==a.slice(0,3)&&(a=a.slice(3)),a},f.mm=function(a){return"mm-"+a},f.add("parent"),g.mm=function(a){return a+".mm"},g.add("toggle open close setSelected transitionend webkitTransitionEnd mousedown mouseup touchstart touchmove touchend scroll resize click keydown keyup"),a[c]._c=e,a[c]._d=f,a[c]._e=g,a[c].glbl=i}var c="mmenu",d="4.7.5";if(!a[c]){var e={},f={},g={},h=!1,i={$wndw:null,$html:null,$body:null};a[c]=function(b,d,e){this.$menu=b,this.opts=d,this.conf=e,this.vars={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors(),this._initEvents();var f=this.$menu.children(this.conf.panelNodetype);for(var g in a[c].addons)a[c].addons[g]._add.call(this),a[c].addons[g]._add=function(){},a[c].addons[g]._setup.call(this);return this._init(f),"function"==typeof this.___debug&&this.___debug(),this},a[c].version=d,a[c].addons={},a[c].uniqueId=0,a[c].defaults={classes:"",slidingSubmenus:!0,onClick:{setSelected:!0}},a[c].configuration={panelNodetype:"ul, ol, div",transitionDuration:400,openingInterval:25,classNames:{panel:"Panel",selected:"Selected",label:"Label",spacer:"Spacer"}},a[c].prototype={_init:function(b){b=b.not("."+e.nopanel),b=this._initPanels(b);for(var d in a[c].addons)a[c].addons[d]._init.call(this,b);this._update()},_initMenu:function(){this.opts.offCanvas&&this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("*")).filter("[id]").each(function(){a(this).attr("id",e.mm(a(this).attr("id")))})),this.$menu.contents().each(function(){3==a(this)[0].nodeType&&a(this).remove()}),this.$menu.parent().addClass(e.wrapper);var b=[e.menu];b.push(e.mm(this.opts.slidingSubmenus?"horizontal":"vertical")),this.opts.classes&&b.push(this.opts.classes),this.$menu.addClass(b.join(" "))},_initPanels:function(b){var c=this;this.__findAddBack(b,"ul, ol").not("."+e.nolist).addClass(e.list);var d=this.__findAddBack(b,"."+e.list).find("> li");this.__refactorClass(d,this.conf.classNames.selected,"selected"),this.__refactorClass(d,this.conf.classNames.label,"label"),this.__refactorClass(d,this.conf.classNames.spacer,"spacer"),d.off(g.setSelected).on(g.setSelected,function(b,c){b.stopPropagation(),d.removeClass(e.selected),"boolean"!=typeof c&&(c=!0),c&&a(this).addClass(e.selected)}),this.__refactorClass(this.__findAddBack(b,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel"),b.add(this.__findAddBack(b,"."+e.list).children().children().filter(this.conf.panelNodetype).not("."+e.nopanel)).addClass(e.panel);var h=this.__findAddBack(b,"."+e.panel),i=a("."+e.panel,this.$menu);if(h.each(function(){var b=a(this),d=b.attr("id")||c.__getUniqueId();b.attr("id",d)}),h.each(function(){var b=a(this),d=b.is("ul, ol")?b:b.find("ul ,ol").first(),g=b.parent(),h=g.children("a, span"),i=g.closest("."+e.panel);if(g.parent().is("."+e.list)&&!b.data(f.parent)){b.data(f.parent,g);var j=a('<a class="'+e.subopen+'" href="#'+b.attr("id")+'" />').insertBefore(h);h.is("a")||j.addClass(e.fullsubopen),c.opts.slidingSubmenus&&d.prepend('<li class="'+e.subtitle+'"><a class="'+e.subclose+'" href="#'+i.attr("id")+'">'+h.text()+"</a></li>")}}),this.opts.slidingSubmenus){var j=this.__findAddBack(b,"."+e.list).find("> li."+e.selected);j.parents("li").removeClass(e.selected).end().add(j.parents("li")).each(function(){var b=a(this),c=b.find("> ."+e.panel);c.length&&(b.parents("."+e.panel).addClass(e.subopened),c.addClass(e.opened))}).closest("."+e.panel).addClass(e.opened).parents("."+e.panel).addClass(e.subopened)}else{var j=a("li."+e.selected,i);j.parents("li").removeClass(e.selected).end().add(j.parents("li")).addClass(e.opened)}var k=i.filter("."+e.opened);return k.length||(k=h.first()),k.addClass(e.opened).last().addClass(e.current),this.opts.slidingSubmenus&&h.not(k.last()).addClass(e.hidden).end().appendTo(this.$menu),h},_initAnchors:function(){var b=this;i.$body.on(g.click,"a",function(d){var f=a(this),h=!1,j=b.$menu.find(f).length;for(var k in a[c].addons)if(a[c].addons[k]._clickAnchor&&(h=a[c].addons[k]._clickAnchor.call(b,f,j)))break;if(!h&&j){var l=f.attr("href")||"";if("#"==l.slice(0,1))try{a(l,b.$menu).is("."+e.panel)&&(h=!0,a(l).trigger(b.opts.slidingSubmenus?g.open:g.toggle))}catch(m){}}if(h&&d.preventDefault(),!h&&j&&f.is("."+e.list+" > li > a")&&!f.is('[rel="external"]')&&!f.is('[target="_blank"]')){b.__valueOrFn(b.opts.onClick.setSelected,f)&&f.parent().trigger(g.setSelected);var n=b.__valueOrFn(b.opts.onClick.preventDefault,f,"#"==l.slice(0,1));n&&d.preventDefault(),b.__valueOrFn(b.opts.onClick.blockUI,f,!n)&&i.$html.addClass(e.blocking),b.__valueOrFn(b.opts.onClick.close,f,n)&&b.$menu.trigger(g.close)}})},_initEvents:function(){var b=this;this.$menu.on(g.toggle+" "+g.open+" "+g.close,"."+e.panel,function(a){a.stopPropagation()}),this.opts.slidingSubmenus?this.$menu.on(g.open,"."+e.panel,function(){return b._openSubmenuHorizontal(a(this))}):this.$menu.on(g.toggle,"."+e.panel,function(){var b=a(this);b.trigger(b.parent().hasClass(e.opened)?g.close:g.open)}).on(g.open,"."+e.panel,function(){a(this).parent().addClass(e.opened)}).on(g.close,"."+e.panel,function(){a(this).parent().removeClass(e.opened)})},_openSubmenuHorizontal:function(b){if(b.hasClass(e.current))return!1;var c=a("."+e.panel,this.$menu),d=c.filter("."+e.current);return c.removeClass(e.highest).removeClass(e.current).not(b).not(d).addClass(e.hidden),b.hasClass(e.opened)?d.addClass(e.highest).removeClass(e.opened).removeClass(e.subopened):(b.addClass(e.highest),d.addClass(e.subopened)),b.removeClass(e.hidden).addClass(e.current),setTimeout(function(){b.removeClass(e.subopened).addClass(e.opened)},this.conf.openingInterval),"open"},_update:function(a){if(this.updates||(this.updates=[]),"function"==typeof a)this.updates.push(a);else for(var b=0,c=this.updates.length;c>b;b++)this.updates[b].call(this,a)},__valueOrFn:function(a,b,c){return"function"==typeof a?a.call(b[0]):"undefined"==typeof a&&"undefined"!=typeof c?c:a},__refactorClass:function(a,b,c){return a.filter("."+b).removeClass(b).addClass(e[c])},__findAddBack:function(a,b){return a.find(b).add(a.filter(b))},__transitionend:function(a,b,c){var d=!1,e=function(){d||b.call(a[0]),d=!0};a.one(g.transitionend,e),a.one(g.webkitTransitionEnd,e),setTimeout(e,1.1*c)},__getUniqueId:function(){return e.mm(a[c].uniqueId++)}},a.fn[c]=function(d,e){return h||b(),d=a.extend(!0,{},a[c].defaults,d),e=a.extend(!0,{},a[c].configuration,e),this.each(function(){var b=a(this);b.data(c)||b.data(c,new a[c](b,d,e))})},a[c].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints}}}(jQuery),!function(a){var b="mmenu",c="offCanvas";a[b].addons[c]={_init:function(){},_setup:function(){if(this.opts[c]){var b=this,e=this.opts[c],h=this.conf[c];"string"!=typeof h.pageSelector&&(h.pageSelector="> "+h.pageNodetype),g.$allMenus=(g.$allMenus||a()).add(this.$menu),this.vars.opened=!1;var i=[d.offcanvas];"left"!=e.position&&i.push(d.mm(e.position)),"back"!=e.zposition&&i.push(d.mm(e.zposition)),this.$menu.addClass(i.join(" ")).parent().removeClass(d.wrapper),this.setPage(g.$page),this[c+"_initBlocker"](),this[c+"_initWindow"](),this.$menu.on(f.open+" "+f.opening+" "+f.opened+" "+f.close+" "+f.closing+" "+f.closed+" "+f.setPage,function(a){a.stopPropagation()}).on(f.open+" "+f.close+" "+f.setPage,function(a){b[a.type]()}),this.$menu[h.menuInjectMethod+"To"](h.menuWrapperSelector)}},_add:function(){d=a[b]._c,e=a[b]._d,f=a[b]._e,d.add("offcanvas slideout modal background opening blocker page"),e.add("style"),f.add("opening opened closing closed setPage"),g=a[b].glbl},_clickAnchor:function(a){if(!this.opts[c])return!1;var b=this.$menu.attr("id");if(b&&b.length&&(this.conf.clone&&(b=d.umm(b)),a.is('[href="#'+b+'"]')))return this.open(),!0;if(g.$page){var b=g.$page.attr("id");return b&&b.length&&a.is('[href="#'+b+'"]')?(this.close(),!0):!1}}},a[b].defaults[c]={position:"left",zposition:"back",modal:!1,moveBackground:!0},a[b].configuration[c]={pageNodetype:"div",pageSelector:null,menuWrapperSelector:"body",menuInjectMethod:"prepend"},a[b].prototype.open=function(){if(this.vars.opened)return!1;var a=this;return this._openSetup(),setTimeout(function(){a._openFinish()},this.conf.openingInterval),"open"},a[b].prototype._openSetup=function(){var a=this;g.$allMenus.not(this.$menu).trigger(f.close),g.$page.data(e.style,g.$page.attr("style")||""),g.$wndw.trigger(f.resize,[!0]);var b=[d.opened];this.opts[c].modal&&b.push(d.modal),this.opts[c].moveBackground&&b.push(d.background),"left"!=this.opts[c].position&&b.push(d.mm(this.opts[c].position)),"back"!=this.opts[c].zposition&&b.push(d.mm(this.opts[c].zposition)),this.opts.classes&&b.push(this.opts.classes),g.$html.addClass(b.join(" ")),setTimeout(function(){a.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(d.current+" "+d.opened)},a[b].prototype._openFinish=function(){var a=this;this.__transitionend(g.$page,function(){a.$menu.trigger(f.opened)},this.conf.transitionDuration),g.$html.addClass(d.opening),this.$menu.trigger(f.opening)},a[b].prototype.close=function(){if(!this.vars.opened)return!1;var a=this;return this.__transitionend(g.$page,function(){a.$menu.removeClass(d.current).removeClass(d.opened),g.$html.removeClass(d.opened).removeClass(d.modal).removeClass(d.background).removeClass(d.mm(a.opts[c].position)).removeClass(d.mm(a.opts[c].zposition)),a.opts.classes&&g.$html.removeClass(a.opts.classes),g.$page.attr("style",g.$page.data(e.style)),a.vars.opened=!1,a.$menu.trigger(f.closed)},this.conf.transitionDuration),g.$html.removeClass(d.opening),this.$menu.trigger(f.closing),"close"},a[b].prototype.setPage=function(b){b||(b=a(this.conf[c].pageSelector,g.$body),b.length>1&&(b=b.wrapAll("<"+this.conf[c].pageNodetype+" />").parent())),b.addClass(d.page+" "+d.slideout),g.$page=b},a[b].prototype[c+"_initWindow"]=function(){g.$wndw.on(f.keydown,function(a){return g.$html.hasClass(d.opened)&&9==a.keyCode?(a.preventDefault(),!1):void 0});var e=0;g.$wndw.on(f.resize,function(a,b){if(b||g.$html.hasClass(d.opened)){var c=g.$wndw.height();(b||c!=e)&&(e=c,g.$page.css("minHeight",c))}}),a[b].prototype[c+"_initWindow"]=function(){}},a[b].prototype[c+"_initBlocker"]=function(){var e=a('<div id="'+d.blocker+'" class="'+d.slideout+'" />').appendTo(g.$body);e.on(f.touchstart,function(a){a.preventDefault(),a.stopPropagation(),e.trigger(f.mousedown)}).on(f.mousedown,function(a){a.preventDefault(),g.$html.hasClass(d.modal)||g.$allMenus.trigger(f.close)}),a[b].prototype[c+"_initBlocker"]=function(){}};var d,e,f,g}(jQuery),!function(){"use strict";function a(a){return a.split("").reverse().join("")}function b(a,b){return a.substring(0,b.length)===b}function c(a,b){return a.slice(-1*b.length)===b}function d(a,b,c){if((a[b]||a[c])&&a[b]===a[c])throw new Error(b)}function e(a){return"number"==typeof a&&isFinite(a)}function f(a,b){var c=Math.pow(10,b);return(Math.round(a*c)/c).toFixed(b)}function g(b,c,d,g,h,i,j,k,l,m,n,o){var p,q,r,s=o,t="",u="";return i&&(o=i(o)),e(o)?(b!==!1&&0===parseFloat(o.toFixed(b))&&(o=0),0>o&&(p=!0,o=Math.abs(o)),b!==!1&&(o=f(o,b)),o=o.toString(),-1!==o.indexOf(".")?(q=o.split("."),r=q[0],d&&(t=d+q[1])):r=o,c&&(r=a(r).match(/.{1,3}/g),r=a(r.join(a(c)))),p&&k&&(u+=k),g&&(u+=g),p&&l&&(u+=l),u+=r,u+=t,h&&(u+=h),m&&(u=m(u,s)),u):!1}function h(a,d,f,g,h,i,j,k,l,m,n,o){var p,q="";return n&&(o=n(o)),o&&"string"==typeof o?(k&&b(o,k)&&(o=o.replace(k,""),p=!0),g&&b(o,g)&&(o=o.replace(g,"")),l&&b(o,l)&&(o=o.replace(l,""),p=!0),h&&c(o,h)&&(o=o.slice(0,-1*h.length)),d&&(o=o.split(d).join("")),f&&(o=o.replace(f,".")),p&&(q+="-"),q+=o,q=q.replace(/[^0-9\.\-.]/g,""),""===q?!1:(q=Number(q),j&&(q=j(q)),e(q)?q:!1)):!1}function i(a){var b,c,e,f={};for(b=0;b<l.length;b+=1)if(c=l[b],e=a[c],void 0===e)f[c]="negative"!==c||f.negativeBefore?"mark"===c&&"."!==f.thousand?".":!1:"-";else if("decimals"===c){if(!(e>=0&&8>e))throw new Error(c);f[c]=e}else if("encoder"===c||"decoder"===c||"edit"===c||"undo"===c){if("function"!=typeof e)throw new Error(c);f[c]=e}else{if("string"!=typeof e)throw new Error(c);f[c]=e}return d(f,"mark","thousand"),d(f,"prefix","negative"),d(f,"prefix","negativeBefore"),f}function j(a,b,c){var d,e=[];for(d=0;d<l.length;d+=1)e.push(a[l[d]]);return e.push(c),b.apply("",e)}function k(a){return this instanceof k?void("object"==typeof a&&(a=i(a),this.to=function(b){return j(a,g,b)},this.from=function(b){return j(a,h,b)})):new k(a)}var l=["decimals","thousand","mark","prefix","postfix","encoder","decoder","negativeBefore","negative","edit","undo"];window.wNumb=k}(),function(a){"use strict";function b(b){return b instanceof a||a.zepto&&a.zepto.isZ(b)}function c(b,c){return"string"==typeof b&&0===b.indexOf("-inline-")?(this.method=c||"html",this.target=this.el=a(b.replace("-inline-","")||"<div/>"),!0):void 0}function d(b){if("string"==typeof b&&0!==b.indexOf("-")){this.method="val";var c=document.createElement("input");return c.name=b,c.type="hidden",this.target=this.el=a(c),!0}}function e(a){return"function"==typeof a?(this.target=!1,this.method=a,!0):void 0}function f(a,c){return b(a)&&!c?(a.is("input, select, textarea")?(this.method="val",this.target=a.on("change.liblink",this.changeHandler)):(this.target=a,this.method="html"),!0):void 0}function g(a,c){return b(a)&&("function"==typeof c||"string"==typeof c&&a[c])?(this.method=c,this.target=a,!0):void 0}function h(b,c,d){var e=this,f=!1;if(this.changeHandler=function(b){var c=e.formatInstance.from(a(this).val());return c===!1||isNaN(c)?(a(this).val(e.lastSetValue),!1):void e.changeHandlerMethod.call("",b,c)},this.el=!1,this.formatInstance=d,a.each(k,function(a,d){return f=d.call(e,b,c),!f}),!f)throw new RangeError("(Link) Invalid Link.")}function i(a){this.items=[],this.elements=[],this.origin=a}function j(b,c,d,e){0===b&&(b=this.LinkDefaultFlag),this.linkAPI||(this.linkAPI={}),this.linkAPI[b]||(this.linkAPI[b]=new i(this));var f=new h(c,d,e||this.LinkDefaultFormatter);f.target||(f.target=a(this)),f.changeHandlerMethod=this.LinkConfirm(b,f.el),this.linkAPI[b].push(f,f.el),this.LinkUpdate(b)}var k=[c,d,e,f,g];h.prototype.set=function(a){var b=Array.prototype.slice.call(arguments),c=b.slice(1);this.lastSetValue=this.formatInstance.to(a),c.unshift(this.lastSetValue),("function"==typeof this.method?this.method:this.target[this.method]).apply(this.target,c)},i.prototype.push=function(a,b){this.items.push(a),b&&this.elements.push(b)},i.prototype.reconfirm=function(a){var b;for(b=0;b<this.elements.length;b+=1)this.origin.LinkConfirm(a,this.elements[b])},i.prototype.remove=function(){var a;for(a=0;a<this.items.length;a+=1)this.items[a].target.off(".liblink");for(a=0;a<this.elements.length;a+=1)this.elements[a].remove()},i.prototype.change=function(a){if(this.origin.LinkIsEmitting)return!1;this.origin.LinkIsEmitting=!0;var b,c=Array.prototype.slice.call(arguments,1);for(c.unshift(a),b=0;b<this.items.length;b+=1)this.items[b].set.apply(this.items[b],c);this.origin.LinkIsEmitting=!1},a.fn.Link=function(b){var c=this;if(b===!1)return c.each(function(){this.linkAPI&&(a.map(this.linkAPI,function(a){a.remove()}),delete this.linkAPI)});if(void 0===b)b=0;else if("string"!=typeof b)throw new Error("Flag must be string.");return{to:function(a,d,e){return c.each(function(){j.call(this,b,a,d,e)})}}}}(window.jQuery||window.Zepto),function(a){"use strict";function b(b){return a.grep(b,function(c,d){return d===a.inArray(c,b)})}function c(a,b){return Math.round(a/b)*b}function d(a){return"number"==typeof a&&!isNaN(a)&&isFinite(a)}function e(a){var b=Math.pow(10,7);return Number((Math.round(a*b)/b).toFixed(7))}function f(a,b,c){a.addClass(b),setTimeout(function(){a.removeClass(b)},c)}function g(a){return Math.max(Math.min(a,100),0)}function h(b){return a.isArray(b)?b:[b]}function i(a){var b=a.split(".");return b.length>1?b[1].length:0}function j(a,b){return 100/(b-a)}function k(a,b){return 100*b/(a[1]-a[0])}function l(a,b){return k(a,a[0]<0?b+Math.abs(a[0]):b-a[0])}function m(a,b){return b*(a[1]-a[0])/100+a[0]}function n(a,b){for(var c=1;a>=b[c];)c+=1;return c}function o(a,b,c){if(c>=a.slice(-1)[0])return 100;var d,e,f,g,h=n(c,a);return d=a[h-1],e=a[h],f=b[h-1],g=b[h],f+l([d,e],c)/j(f,g)}function p(a,b,c){if(c>=100)return a.slice(-1)[0];var d,e,f,g,h=n(c,b);return d=a[h-1],e=a[h],f=b[h-1],g=b[h],m([d,e],(c-f)*j(f,g))}function q(a,b,d,e){if(100===e)return e;var f,g,h=n(e,a);return d?(f=a[h-1],g=a[h],e-f>(g-f)/2?g:f):b[h-1]?a[h-1]+c(e-a[h-1],b[h-1]):e}function r(a,b,c){var e;if("number"==typeof b&&(b=[b]),"[object Array]"!==Object.prototype.toString.call(b))throw new Error("noUiSlider: 'range' contains invalid value.");if(e="min"===a?0:"max"===a?100:parseFloat(a),!d(e)||!d(b[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");c.xPct.push(e),c.xVal.push(b[0]),e?c.xSteps.push(isNaN(b[1])?!1:b[1]):isNaN(b[1])||(c.xSteps[0]=b[1])}function s(a,b,c){return b?void(c.xSteps[a]=k([c.xVal[a],c.xVal[a+1]],b)/j(c.xPct[a],c.xPct[a+1])):!0}function t(a,b,c,d){this.xPct=[],this.xVal=[],this.xSteps=[d||!1],this.xNumSteps=[!1],this.snap=b,this.direction=c;var e,f=[];for(e in a)a.hasOwnProperty(e)&&f.push([a[e],e]);for(f.sort(function(a,b){return a[0]-b[0]}),e=0;e<f.length;e++)r(f[e][1],f[e][0],this);for(this.xNumSteps=this.xSteps.slice(0),e=0;e<this.xNumSteps.length;e++)s(e,this.xNumSteps[e],this)}function u(a,b){if(!d(b))throw new Error("noUiSlider: 'step' is not numeric.");a.singleStep=b}function v(b,c){if("object"!=typeof c||a.isArray(c))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===c.min||void 0===c.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");b.spectrum=new t(c,b.snap,b.dir,b.singleStep)}function w(b,c){if(c=h(c),!a.isArray(c)||!c.length||c.length>2)throw new Error("noUiSlider: 'start' option is incorrect.");b.handles=c.length,b.start=c}function x(a,b){if(a.snap=b,"boolean"!=typeof b)throw new Error("noUiSlider: 'snap' option must be a boolean.")}function y(a,b){if(a.animate=b,"boolean"!=typeof b)throw new Error("noUiSlider: 'animate' option must be a boolean.")}function z(a,b){if("lower"===b&&1===a.handles)a.connect=1;else if("upper"===b&&1===a.handles)a.connect=2;else if(b===!0&&2===a.handles)a.connect=3;else{if(b!==!1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");a.connect=0}}function A(a,b){switch(b){case"horizontal":a.ort=0;break;case"vertical":a.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function B(a,b){if(!d(b))throw new Error("noUiSlider: 'margin' option must be numeric.");if(a.margin=a.spectrum.getMargin(b),!a.margin)throw new Error("noUiSlider: 'margin' option is only supported on linear sliders.")}function C(a,b){if(!d(b))throw new Error("noUiSlider: 'limit' option must be numeric.");if(a.limit=a.spectrum.getMargin(b),!a.limit)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders.")}function D(a,b){switch(b){case"ltr":a.dir=0;break;case"rtl":a.dir=1,a.connect=[0,2,1,3][a.connect];break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function E(a,b){if("string"!=typeof b)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var c=b.indexOf("tap")>=0,d=b.indexOf("drag")>=0,e=b.indexOf("fixed")>=0,f=b.indexOf("snap")>=0;a.events={tap:c||f,drag:d,fixed:e,snap:f}}function F(a,b){if(a.format=b,"function"==typeof b.to&&"function"==typeof b.from)return!0;throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.")}function G(b){var c,d={margin:0,limit:0,animate:!0,format:Z};return c={step:{r:!1,t:u},start:{r:!0,t:w},connect:{r:!0,t:z},direction:{r:!0,t:D},snap:{r:!1,t:x},animate:{r:!1,t:y},range:{r:!0,t:v},orientation:{r:!1,t:A},margin:{r:!1,t:B},limit:{r:!1,t:C},behaviour:{r:!0,t:E},format:{r:!1,t:F}},b=a.extend({connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal"},b),a.each(c,function(a,c){if(void 0===b[a]){if(c.r)throw new Error("noUiSlider: '"+a+"' is required.");return!0}c.t(d,b[a])}),d.style=d.ort?"top":"left",d}function H(a,b,c){var d=a+b[0],e=a+b[1];return c?(0>d&&(e+=Math.abs(d)),e>100&&(d-=e-100),[g(d),g(e)]):[d,e]}function I(a){a.preventDefault();var b,c,d=0===a.type.indexOf("touch"),e=0===a.type.indexOf("mouse"),f=0===a.type.indexOf("pointer"),g=a;return 0===a.type.indexOf("MSPointer")&&(f=!0),a.originalEvent&&(a=a.originalEvent),d&&(b=a.changedTouches[0].pageX,c=a.changedTouches[0].pageY),(e||f)&&(f||void 0!==window.pageXOffset||(window.pageXOffset=document.documentElement.scrollLeft,window.pageYOffset=document.documentElement.scrollTop),b=a.clientX+window.pageXOffset,c=a.clientY+window.pageYOffset),g.points=[b,c],g.cursor=e,g}function J(b,c){var d=a("<div><div/></div>").addClass(Y[2]),e=["-lower","-upper"];return b&&e.reverse(),d.children().addClass(Y[3]+" "+Y[3]+e[c]),d}function K(a,b,c){switch(a){case 1:b.addClass(Y[7]),c[0].addClass(Y[6]);break;case 3:c[1].addClass(Y[6]);case 2:c[0].addClass(Y[7]);case 0:b.addClass(Y[6])}}function L(a,b,c){var d,e=[];for(d=0;a>d;d+=1)e.push(J(b,d).appendTo(c));return e}function M(b,c,d){return d.addClass([Y[0],Y[8+b],Y[4+c]].join(" ")),a("<div/>").appendTo(d).addClass(Y[1])}function N(b,c,d){function e(){return C[["width","height"][c.ort]]()}function j(a){var b,c=[E.val()];for(b=0;b<a.length;b+=1)E.trigger(a[b],c)}function k(a){return 1===a.length?a[0]:c.dir?a.reverse():a}function l(a){return function(b,c){E.val([a?null:c,a?c:null],!0)}}function m(b){var c=a.inArray(b,N);E[0].linkAPI&&E[0].linkAPI[b]&&E[0].linkAPI[b].change(J[c],D[c].children(),E)}function n(b,d){var e=a.inArray(b,N);return d&&d.appendTo(D[e].children()),c.dir&&c.handles>1&&(e=1===e?0:1),l(e)}function o(){var a,b;for(a=0;a<N.length;a+=1)this.linkAPI&&this.linkAPI[b=N[a]]&&this.linkAPI[b].reconfirm(b)}function p(a,b,d,e){return a=a.replace(/\s/g,W+" ")+W,b.on(a,function(a){return E.attr("disabled")?!1:E.hasClass(Y[14])?!1:(a=I(a),a.calcPoint=a.points[c.ort],void d(a,e))})}function q(a,b){var c,d=b.handles||D,f=!1,g=100*(a.calcPoint-b.start)/e(),h=d[0][0]!==D[0][0]?1:0;c=H(g,b.positions,d.length>1),f=v(d[0],c[h],1===d.length),d.length>1&&(f=v(d[1],c[h?0:1],!1)||f),f&&j(["slide"])}function r(b){a("."+Y[15]).removeClass(Y[15]),b.cursor&&a("body").css("cursor","").off(W),U.off(W),E.removeClass(Y[12]),j(["set","change"])}function s(b,c){1===c.handles.length&&c.handles[0].children().addClass(Y[15]),b.stopPropagation(),p(X.move,U,q,{start:b.calcPoint,handles:c.handles,positions:[F[0],F[D.length-1]]}),p(X.end,U,r,null),b.cursor&&(a("body").css("cursor",a(b.target).css("cursor")),D.length>1&&E.addClass(Y[12]),a("body").on("selectstart"+W,!1))}function t(b){var d,g=b.calcPoint,h=0;b.stopPropagation(),a.each(D,function(){h+=this.offset()[c.style]}),h=h/2>g||1===D.length?0:1,g-=C.offset()[c.style],d=100*g/e(),c.events.snap||f(E,Y[14],300),v(D[h],d),j(["slide","set","change"]),c.events.snap&&s(b,{handles:[D[h]]})}function u(a){var b,c;if(!a.fixed)for(b=0;b<D.length;b+=1)p(X.start,D[b].children(),s,{handles:[D[b]]});a.tap&&p(X.start,C,t,{handles:D}),a.drag&&(c=C.find("."+Y[7]).addClass(Y[10]),a.fixed&&(c=c.add(C.children().not(c).children())),p(X.start,c,s,{handles:D}))}function v(a,b,d){var e=a[0]!==D[0][0]?1:0,f=F[0]+c.margin,h=F[1]-c.margin,i=F[0]+c.limit,j=F[1]-c.limit;return D.length>1&&(b=e?Math.max(b,f):Math.min(b,h)),d!==!1&&c.limit&&D.length>1&&(b=e?Math.min(b,i):Math.max(b,j)),b=G.getStep(b),b=g(parseFloat(b.toFixed(7))),b===F[e]?!1:(a.css(c.style,b+"%"),a.is(":first-child")&&a.toggleClass(Y[17],b>50),F[e]=b,J[e]=G.fromStepping(b),m(N[e]),!0)}function w(a,b){var d,e,f;for(c.limit&&(a+=1),d=0;a>d;d+=1)e=d%2,f=b[e],null!==f&&f!==!1&&("number"==typeof f&&(f=String(f)),f=c.format.from(f),(f===!1||isNaN(f)||v(D[e],G.toStepping(f),d===3-c.dir)===!1)&&m(N[e]))}function x(a){if(E[0].LinkIsEmitting)return this;var b,d=h(a);return c.dir&&c.handles>1&&d.reverse(),c.animate&&-1!==F[0]&&f(E,Y[14],300),b=D.length>1?3:1,1===d.length&&(b=1),w(b,d),j(["set"]),this}function y(){var a,b=[];for(a=0;a<c.handles;a+=1)b[a]=c.format.to(J[a]);return k(b)}function z(){return a(this).off(W).removeClass(Y.join(" ")).empty(),delete this.LinkUpdate,delete this.LinkConfirm,delete this.LinkDefaultFormatter,delete this.LinkDefaultFlag,delete this.reappend,delete this.vGet,delete this.vSet,delete this.getCurrentStep,delete this.getInfo,delete this.destroy,d}function A(){var b=a.map(F,function(a,b){var c=G.getApplicableStep(a),d=i(String(c[2])),e=J[b],f=100===a?null:c[2],g=Number((e-c[2]).toFixed(d)),h=0===a?null:g>=c[1]?c[2]:c[0]||!1;return[[h,f]]});return k(b)}function B(){return d}var C,D,E=a(b),F=[-1,-1],G=c.spectrum,J=[],N=["lower","upper"].slice(0,c.handles);if(c.dir&&N.reverse(),b.LinkUpdate=m,b.LinkConfirm=n,b.LinkDefaultFormatter=c.format,b.LinkDefaultFlag="lower",b.reappend=o,E.hasClass(Y[0]))throw new Error("Slider was already initialized.");C=M(c.dir,c.ort,E),D=L(c.handles,c.dir,C),K(c.connect,E,D),u(c.events),b.vSet=x,b.vGet=y,b.destroy=z,b.getCurrentStep=A,b.getOriginalOptions=B,b.getInfo=function(){return[G,c.style,c.ort]},E.val(c.start)}function O(a){var b=G(a,this);return this.each(function(){N(this,b,a)})}function P(b){return this.each(function(){if(!this.destroy)return void a(this).noUiSlider(b);var c=a(this).val(),d=this.destroy(),e=a.extend({},d,b);a(this).noUiSlider(e),this.reappend(),d.start===e.start&&a(this).val(c)})}function Q(){return this[0][arguments.length?"vSet":"vGet"].apply(this[0],arguments)}function R(b,c,d,e){if("range"===c||"steps"===c)return b.xVal;if("count"===c){var f,g=100/(d-1),h=0;for(d=[];(f=h++*g)<=100;)d.push(f);c="positions"}return"positions"===c?a.map(d,function(a){return b.fromStepping(e?b.getStep(a):a)
  }):"values"===c?e?a.map(d,function(a){return b.fromStepping(b.getStep(b.toStepping(a)))}):d:void 0}function S(c,d,e,f){var g=c.direction,h={},i=c.xVal[0],j=c.xVal[c.xVal.length-1],k=!1,l=!1,m=0;return c.direction=0,f=b(f.slice().sort(function(a,b){return a-b})),f[0]!==i&&(f.unshift(i),k=!0),f[f.length-1]!==j&&(f.push(j),l=!0),a.each(f,function(b){var g,i,j,n,o,p,q,r,s,t,u=f[b],v=f[b+1];if("steps"===e&&(g=c.xNumSteps[b]),g||(g=v-u),u!==!1&&void 0!==v)for(i=u;v>=i;i+=g){for(n=c.toStepping(i),o=n-m,r=o/d,s=Math.round(r),t=o/s,j=1;s>=j;j+=1)p=m+j*t,h[p.toFixed(5)]=["x",0];q=a.inArray(i,f)>-1?1:"steps"===e?2:0,!b&&k&&(q=0),i===v&&l||(h[n.toFixed(5)]=[i,q]),m=n}}),c.direction=g,h}function T(b,c,d,e,f,g){function h(a){return["-normal","-large","-sub"][a]}function i(a,c,d){return'class="'+c+" "+c+"-"+k+" "+c+h(d[1],d[0])+'" style="'+b+": "+a+'%"'}function j(a,b){d&&(a=100-a),b[1]=b[1]&&f?f(b[0],b[1]):b[1],l.append("<div "+i(a,"noUi-marker",b)+"></div>"),b[1]&&l.append("<div "+i(a,"noUi-value",b)+">"+g.to(b[0])+"</div>")}var k=["horizontal","vertical"][c],l=a("<div/>");return l.addClass("noUi-pips noUi-pips-"+k),a.each(e,j),l}var U=a(document),V=a.fn.val,W=".nui",X=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},Y=["noUi-target","noUi-base","noUi-origin","noUi-handle","noUi-horizontal","noUi-vertical","noUi-background","noUi-connect","noUi-ltr","noUi-rtl","noUi-dragable","","noUi-state-drag","","noUi-state-tap","noUi-active","","noUi-stacking"];t.prototype.getMargin=function(a){return 2===this.xPct.length?k(this.xVal,a):!1},t.prototype.toStepping=function(a){return a=o(this.xVal,this.xPct,a),this.direction&&(a=100-a),a},t.prototype.fromStepping=function(a){return this.direction&&(a=100-a),e(p(this.xVal,this.xPct,a))},t.prototype.getStep=function(a){return this.direction&&(a=100-a),a=q(this.xPct,this.xSteps,this.snap,a),this.direction&&(a=100-a),a},t.prototype.getApplicableStep=function(a){var b=n(a,this.xPct),c=100===a?2:1;return[this.xNumSteps[b-2],this.xVal[b-c],this.xNumSteps[b-c]]},t.prototype.convert=function(a){return this.getStep(this.toStepping(a))};var Z={to:function(a){return a.toFixed(2)},from:Number};a.fn.val=function(b){function c(a){return a.hasClass(Y[0])?Q:V}if(!arguments.length){var d=a(this[0]);return c(d).call(d)}var e=a.isFunction(b);return this.each(function(d){var f=b,g=a(this);e&&(f=b.call(this,d,g.val())),c(g).call(g,f)})},a.fn.noUiSlider=function(a,b){switch(a){case"step":return this[0].getCurrentStep();case"options":return this[0].getOriginalOptions()}return(b?P:O).call(this,a)},a.fn.noUiSlider_pips=function(b){var c=b.mode,d=b.density||1,e=b.filter||!1,f=b.values||!1,g=b.format||{to:Math.round},h=b.stepped||!1;return this.each(function(){var b=this.getInfo(),i=R(b[0],c,f,h),j=S(b[0],d,c,i);return a(this).append(T(b[1],b[2],b[0].direction,j,e,g))})}}(window.jQuery||window.Zepto),function(a){a.extend(a,{placeholder:{browser_supported:function(){return void 0!==this._supported?this._supported:this._supported=!!("placeholder"in a('<input type="text">')[0])},shim:function(b){var c={color:"#888",cls:"placeholder",selector:"input[placeholder], textarea[placeholder]"};return a.extend(c,b),!this.browser_supported()&&a(c.selector)._placeholder_shim(c)}}}),a.extend(a.fn,{_placeholder_shim:function(b){function c(b){var c=a(b).offsetParent().offset(),d=a(b).offset();return{top:d.top-c.top,left:d.left-c.left,width:a(b).width()}}function d(b){var e=b.data("target");"undefined"!=typeof e&&(b.css(c(e)),a(window).one("resize",function(){d(b)}))}return this.each(function(){var e=a(this);if(e.is(":visible")){if(e.data("placeholder")){var f=e.data("placeholder");return f.css(c(e)),!0}var g={};e.is("textarea")||"auto"==e.css("height")||(g={lineHeight:e.css("height"),whiteSpace:"nowrap"});var h="border-box"===e.css("box-sizing"),i=e.is("textarea"),j=a("<label />").text(e.attr("placeholder")).addClass(b.cls).css(a.extend({position:"absolute",display:"inline","float":"none",overflow:"hidden",textAlign:"left",color:b.color,cursor:"text",paddingTop:!i&&h?"0":e.css("padding-top"),paddingRight:e.css("padding-right"),paddingBottom:!i&&h?"0":e.css("padding-bottom"),paddingLeft:e.css("padding-left"),fontSize:e.css("font-size"),fontFamily:e.css("font-family"),fontStyle:e.css("font-style"),fontWeight:e.css("font-weight"),textTransform:e.css("text-transform"),backgroundColor:"transparent",zIndex:99},g)).css(c(this)).attr("for",this.id).data("target",e).click(function(){a(this).data("target").is(":disabled")||a(this).data("target").focus()}).insertBefore(this);e.data("placeholder",j).on("keydown",function(){j.hide()}).on("blur change",function(){j[e.val().length?"hide":"show"]()}).triggerHandler("blur"),a(window).one("resize",function(){d(j)})}})}})}(jQuery),jQuery(document).add(window).bind("ready load",function(){jQuery.placeholder&&jQuery.placeholder.shim()});var AT=AT||{};AT.AdditionalNeedsForm=function(a){"use strict";function b(){var b=function(){a.each(a(".additional-needs-form .date"),function(){a(this).datepicker({format:"yyyy-mm-dd",startDate:"-100y",endDate:"+1y",orientation:"bottom left",autoclose:!0,todayHighlight:!0}).datepicker("setDate",new Date).datepicker("update"),console.log(this)})};b()}return b}(jQuery,window,document);var AT=AT||{};AT.AttractionsGrid=function(a,b){"use strict";function c(){var c=a(".attractions-grid"),d=c.find(".ride"),e=c.closest("section"),f=".filter-group",g=".filter-button",h=".filter-select",i={},j="all",k="1.4",l={el:a(".attraction-min-height-slider"),heights:{min:.9,max:1.4},options:{start:1.4,connect:"lower",range:{min:.9,max:1.4}},init:function(){this.options.range.min=this.heights.min,this.options.range.max=this.heights.max+.1,this.options.start=this.options.range.max}},m=l.el.closest(".slider-outer-wrapper").find(".child-icon.short"),n=l.el.closest(".slider-outer-wrapper").find(".child-icon.tall"),o=function(){p(),q(),r(),A(),C()},p=function(){l.init(),l.el.length>0&&(l.el.noUiSlider(l.options).Link("lower").to("-inline-",function(b){var c=a(this),d=Math.round(10*b)/10;c.val(d).html(d+"m"),x(d.toString()),d===l.options.range.max&&(c.html("All"),x("all"))}),m.on("click",function(){l.el.val(l.options.range.min)}),n.on("click",function(){l.el.val(l.options.range.max)}))},q=function(){e.on("click",g,function(){var b=a(this),c=b.closest(f),d=c.attr("data-filter-group"),e=b.attr("data-filter");"reset"===e?(y(),B()):(s(d,e),z(c,b))})},r=function(){e.on("change",h,function(){var b=a(this),c=b.closest(f),d=c.attr("data-filter-group"),e=this.value;s(d,e)})},s=function(a,b){i[a]=b,j="";for(var c in i)j+=i[c];t()},t=function(){for(var b=0,e=c.find("#no-attractions-notice"),f=0;f<d.length;f++)v(a(d[f]))&&w(a(d[f]))?(a(d[f]).show(0).removeClass("shrink"),b++):a(d[f]).addClass("shrink").hide(0);b||e.length?b&&e.length&&u(!1):u()},u=function(a){var b='<div id="no-attractions-notice" class="ride col-xs-12 col-xs-push-6 col-sm-6 col-sm-push-9"><div class="ride-content-wrapper"><p class="ride-title">Sorry!</p><p class="ride-intro">It looks like there aren\'t any rides matching your search.</p><p class="ride-intro">Click below to start again:</p><p class="ride-intro"><button type="button" class="btn filter-button" data-filter="reset">Reset</button></p></div></div>';a===!1?c.find("#no-attractions-notice").remove():c.append(b)},v=function(a){return"undefined"!=typeof j&&j.length>0&&("all"===j||a.filter(j).length>0)?!0:void 0},w=function(a){return"undefined"!=typeof k&&k.length>0&&("all"===k||a.attr("data-attraction-min-height")<=k)?!0:void 0},x=function(a){k=a,t()},y=function(){i={},j="all",k=l.options.range.max,l.el.val(l.options.range.max),t()},z=function(a,b){a.find(".active").removeClass("active"),b.addClass("active")},A=function(){a(".attraction-filter-type-switcher").on("click","button",function(){a(this).addClass("active").siblings("button").removeClass("active"),y(),B()})},B=function(){a(f).each(function(){var b=a(this).find(g),c=a(this).find(h);b.each(function(){"true"===a(this).attr("data-default")?a(this).addClass("active"):a(this).removeClass("active")}),c.each(function(){a(this).prop("selectedIndex",0)})})},C=function(){a(b).resize(a.debounce(100,function(){y(),B()}))};o()}return c}(jQuery,window,document);var AT=AT||{};AT.BigSixCompForm=function(a){"use strict";function b(b,c){var d,e=new Object,b=b||!1,c=c||!0,f=a(".big_six_competition_form"),g=f.find(".big-six-comp-blurb"),h=f.find(".big-six-comp-blurb-neigbour"),i=0,j=f.find(".terms-overlay"),k=j.find(".terms-close"),l=j.find(".terms-text-inner"),m=f.find(".terms-link"),n=f.find(".thankyou-overlay"),o=n.find(".thankyou-close"),p=Modernizr.input.placeholder,q=a(window).height(),r=function(){p||b!==!0||s(),t(),c===!0&&u(),m.add(k).on("click",function(b){w(a(this)),b.preventDefault()}),v(),o.on("click",function(a){y(),a.preventDefault()})},s=function(){f.find("label.sr-only").each(function(){var b=a(this);b.closest(".form-group").css({"margin-bottom":"5px"}).end().removeClass("sr-only")}),g.find("h2").css({"padding-bottom":"5px"})},t=function(){i=h.height()},u=function(){g.height(AT.isMobile?"auto":i)},v=function(){a(window).width()>767&&(j.css("height",q),l.slimScroll({allowPageScroll:!1,height:"100%",size:"10px",alwaysVisible:!0}))},w=function(b){d=b.closest(f).find(".terms-overlay"),d.fadeToggle(200),a(window).width()<768&&a("html, body").animate({scrollTop:d.offset().top},400)},x=function(){n.fadeIn(200)},y=function(){n.fadeOut(200)};return f.length>0&&r(),e.showThankyou=x,e.setNeightbourHeight=t,e.alignBlurb=u,e.setTermsConditionsHeight=v,e}return b}(jQuery,window,document);var AT=AT||{},HomeCarouselSpeed=7e3,HomeCarouselTimeOut=0,HomeCarouselSubInterval=0,HomeCarouselSubIndex=0,HomeCarouselNextSlide=0;AT.Carousels=function(a){"use strict";function b(b){var c={items:1,loop:!0,nav:!0,dots:!0,animateIn:!1,animateOut:!1,mouseDrag:!1,touchDrag:!0},d=null,e=a.extend(b,c),f=function(){d=a(".owl-carousel"),g(),i(),j(),k()},g=function(){d.each(function(){var b={},c=this.className.split(" ");switch(c[1]){case"fullPageCarousel":b.items=1,b.nav=!1,b.animateOut="fadeOut",b.dotsContainer=".owl-carousel-controls",b.pullDrag=!1,b.freeDrag=!1,b.autoplay=!0,b.autoplayTimeout=HomeCarouselSpeed,b.autoplayHoverPause=!1;break;case"onePanelCarousel":"fadeTransition"===c[2]?b.animateOut="fadeOut":b.dots=!1,b.pullDrag=!1,b.freeDrag=!1,b.autoplay=!1,b.responsive={0:{autoHeight:!0},769:{autoHeight:!1}};break;case"threePanelCarousel":case"centeredGrid":case"threeLoopingItems":b.items=3,b.dots=!1,b.center=!0,b.pullDrag=!1,b.freeDrag=!1,b.responsive={0:{items:1},769:{items:3}},b.autoplay=!0,b.autoplayTimeout=11e3,b.autoplayHoverPause=!0;break;case"nonLoopingGrid":b.items=3,b.loop=!1,b.dots=!1,b.center=!1,b.pullDrag=!1,b.freeDrag=!1,b.responsive={0:{items:1},769:{items:3}};break;case"textSlider":b.margin=40,b.autoplay=!0,b.autoplayTimeout=1e4,b.autoplayHoverPause=!0;break;case"mobileTicketCarousel":b.items=1,b.dots=!1,b.loop=!1,b.nav=!1,b.responsive={0:{stagePadding:20,margin:10},400:{stagePadding:40,margin:20}};break;case"twoPanelCarousel":b.items=2,b.dots=!1,b.nav=!0;break;case"hotelExplorerCarousel":b.items=1,b.animateOut="fadeOut",b.dots=!1,b.nav=!1;break;case"backgroundSync":b.items=1,b.nav=!1,b.dots=!1}h(a(this),b)})},h=function(b,c){b.owlCarousel(a.extend({},e,c)),b.hasClass("fullPageCarousel")&&b.on("change.owl.carousel",function(){clearTimeout(HomeCarouselTimeOut),clearInterval(HomeCarouselSubInterval);var b=a(this).find(".active").next(),c=b.find(".subcarousel .block").length;c>1?(a(this).trigger("stop.owl.autoplay"),HomeCarouselTimeOut=setTimeout(function(){b.trigger("play.owl.autoplay")},(c-1)*HomeCarouselSpeed),HomeCarouselSubIndex=0,a(".homepage .fullPageCarousel .subcarousel .block").css("display","none"),a(".homepage .fullPageCarousel .subcarousel .block:first-child").fadeIn(1e3,function(){}),HomeCarouselSubInterval=setInterval(function(){HomeCarouselSubIndex++,HomeCarouselSubIndex>=c?clearInterval(HomeCarouselSubInterval):(a(".homepage .fullPageCarousel .active .subcarousel .block").css("display","none"),a(".homepage .fullPageCarousel .active .subcarousel .block:eq("+HomeCarouselSubIndex+")").fadeIn(1e3,function(){}))},HomeCarouselSpeed)):b.find(".subcarousel .block:first-child").fadeIn(1e3,function(){})})},i=function(){},j=function(){a("section.owlSyncParent").each(function(){var b=a(this).find(".owlSyncMain"),c=a(this).find(".owlSyncSub");b.on("change.owl.carousel",function(a){if(a.namespace&&"position"===a.property.name){var b=a.relatedTarget.relative(a.property.value,!0);c.owlCarousel("to",b,300,!0)}})})},k=function(){a(".homepage .fullPageCarousel").trigger("stop.owl.autoplay"),setTimeout(function(){clearTimeout(HomeCarouselTimeOut),clearInterval(HomeCarouselSubInterval);var b=a(".homepage .fullPageCarousel .index0").first(),c=b.find(".subcarousel .block").length;c>1?(a(".homepage .fullPageCarousel").trigger("stop.owl.autoplay"),HomeCarouselTimeOut=setTimeout(function(){b.trigger("play.owl.autoplay")},(c-1)*HomeCarouselSpeed),HomeCarouselSubIndex=0,a(".homepage .fullPageCarousel .subcarousel .block").css("display","none"),a(".homepage .fullPageCarousel .subcarousel .block:first-child").fadeIn(1e3,function(){}),HomeCarouselSubInterval=setInterval(function(){HomeCarouselSubIndex++,HomeCarouselSubIndex>=c?clearInterval(HomeCarouselSubInterval):(a(".homepage .fullPageCarousel .active .subcarousel .block").css("display","none"),a(".homepage .fullPageCarousel .active .subcarousel .block:eq("+HomeCarouselSubIndex+")").fadeIn(1e3,function(){}))},HomeCarouselSpeed)):(a(".homepage .fullPageCarousel .subcarousel .block:first-child").fadeIn(1e3,function(){}),a(".homepage .fullPageCarousel").trigger("play.owl.autoplay"))},1)};this.buildInjectedCarousel=function(){d=a(".owl-carousel:not(.owl-loaded)"),g()},f()}return b}(jQuery,window,document);var AT=AT||{};AT.TabControl=function(a){"use strict";function b(b){var c={parent:".tabbedContent",btns:".tabbedContentButtons .btn",links:".tabbedContentLink",row:".tabbedContentRow"},d=a.extend(c,b),e=function(){f()},f=function(){a(document).on("click",d.btns,function(b){b.preventDefault(),g(a(this)),h(a(this)),isDef(AT.TicketTables)&&AT.TicketTables.forceResize()}),a(document).on("click",d.links,function(b){b.preventDefault(),a(this).closest(d.parent).find(d.btns).eq(this.id.substr(3)).trigger("click")})},g=function(a){a.addClass("btn-primary").siblings().removeClass("btn-primary")},h=function(a){var b=a.closest(d.parent).find(d.row);b.hide(),b.eq(a.index()).show().find(".owl-carousel").trigger("refresh.owl.carousel")};e()}return b}(jQuery,window,document);var AT=AT||{};AT.DatePickers=function(a){"use strict";function b(b){a.fn.datepicker.dates.en.daysMin=["S","M","T","W","T","F","S","S"];var c={format:"dd/mm/yyyy",todayHighlight:!0,startDate:"1d",endDate:"+1y",orientation:"left bottom",weekStart:0},d=null,e=a.extend(b,c),f=function(){d=a(".inlineDate, .calendarItem"),g()},g=function(){d.each(function(){a(this).hasClass("ticketDatePicker")?h(this):l(this)})},h=function(b){var c=a("> div",b),d=a(b).closest(".dateDisplay"),f=d.find(".prevMonth"),g=d.find(".nextMonth"),h=a('input[type="hidden"]',b),l={},m=a(b).hasClass("red")?AT.dataHandler.pluckThemeParkDate:AT.dataHandler.pluckWaterParkDate;l.beforeShowDay=function(a){return k(a,m)},c.datepicker(a.extend({},e,l)).on("changeDate",function(a){h.val(a.format("dd/mm/yyyy")),j(c,d)}),f.click({p:c,dir:-1},i),g.click({p:c,dir:1},i)},i=function(a){a.preventDefault();var b=moment(a.data.p.datepicker("getDate")).add(a.data.dir,"months").startOf("month");b.isBefore(moment())&&(b=moment()),a.data.p.datepicker("setDate",b.format("DD/MM/YYYY"))},j=function(b,c){var d=b.datepicker("getDate"),e=moment(d);if(e.isValid()){a(".dayoftheweek:first",c).text(e.format("dddd"));var f=e.format("D");a(".dayNumber:first",c).html(f+"<sup>"+s(f)+"</sup>"),a(".month:first",c).text(e.format("MMMM")),a(".year:first",c).text(e.format("YYYY"))}},k=function(a,b){var c=moment(a);return c.isBefore(new Date,"day")?{enabled:!1}:"Closed"===b(c.format("YYYY-MM-DD"))?{enabled:!0,classes:"closed"}:{enabled:!0}},l=function(b){var c=a(b),d=a(b).data(),f=d.month,g=d.year,h={},i=moment(g+" "+f+" 01","YYYY MM DD"),j=i.clone().endOf("month"),k=moment(d),l=moment(new Date).startOf("day");h.todayHighlight=!0,h.startDate=i.format("DD/MM/YYYY"),h.endDate=j.format("DD/MM/YYYY"),h.beforeShowDay=function(a){return moment(a).isBefore(l)?{enabled:!1}:"Closed"===AT.dataHandler.pluckThemeParkDate(k.format("YYYY-MM-DD"))&&"Closed"===AT.dataHandler.pluckWaterParkDate(k.format("YYYY-MM-DD"))?{enabled:!0,classes:"closed"}:{enabled:!0}},c.datepicker(a.extend({},e,h)).on("changeDate",function(b){m(a(this),b.date)}),t(c,i)},m=function(b,c){b.addClass("active").closest(".owl-item").siblings().find(".active").removeClass("active"),a(".calendarDraw").remove();var d=b.offset(),e=b.height(),f=b.width(),g=b.is(":last-child"),h=d.left+f/2-30;isDef(c)&&a(o(c,g)).appendTo(document.body).css({top:d.top+e-22}).find(" > span").css({left:AT.isMobile?h-.05*AT.windowSize.width:h}),a(document).on("AT-USER-ACTION",n)},n=function(b,c){"a"!==c.targetElement.nodeName.toLowerCase()&&(b.stopPropagation(),a(".calendarDraw").remove(),a(".calendarWrapper .active").removeClass("active"),a(document).off("AT-USER-ACTION",n))},o=function(a,b){var c="";return c+=b?'<div class="calendarDraw invert">':'<div class="calendarDraw">',b||(c+="<span></span>"),c+='<div class="content"><div><span class="closeIcon"></span>',c+=AT.isMobile?q(a):p(a),c+="</div></div>",b&&(c+="<span></span>"),c+="</div>"},p=function(a){{var b,c="",d=moment(a),e=d.format("YYYY-MM-DD"),f=d.format("dddd Do MMM YYYY"),g=AT.dataHandler.pluckThemeParkDate(e),h=AT.dataHandler.pluckWaterParkDate(e);AT.dataHandler.pluckNote(e)}c+='<a href="/book-my-trip/tickets/" class="btn default next">Find tickets</a>',c+="<p><strong>"+f+"</strong> | Theme park: <strong>"+r(g)+"</strong> | </p>",c+='<p class="waterparkText"> | Waterpark: <strong>'+r(h)+"</strong> | </p>",c+='<p class="note"></p>',c+='<p class="timesLabel hidden-xs">Theme park next 7 days:</p>',c+='<ul class="themePark hidden-xs">',c+="<li>"+d.format("ddd D")+"<sup>"+s(d.format("D"))+"</sup><strong>"+r(AT.dataHandler.pluckThemeParkDate(e))+"</strong></li>";for(var i=1;7>i;i++)b=d.clone().add(i,"d"),c+="<li>"+b.format("ddd D")+"<sup>"+s(b.format("D"))+"</sup><strong>"+r(AT.dataHandler.pluckThemeParkDate(b.format("YYYY-MM-DD")))+"</strong></li>";c+="</ul>",c+='<p class="timesLabel hidden-xs">Waterpark next 7 days:</p>',c+='<ul class="waterPark hidden-xs">',c+="<li>"+d.format("ddd D")+"<sup>"+s(d.format("D"))+"</sup><strong>"+r(AT.dataHandler.pluckWaterParkDate(e))+"</strong>",AT.dataHandler.pluckWaterSlide(e)&&(c+='<span class="slideAlert">!</span>'),c+="</li>";for(var j=1;7>j;j++)b=d.clone().add(j,"d"),c+="<li>"+b.format("ddd D")+"<sup>"+s(b.format("D"))+"</sup><strong>"+r(AT.dataHandler.pluckWaterParkDate(b.format("YYYY-MM-DD")))+"</strong>",AT.dataHandler.pluckWaterSlide(b.format("YYYY-MM-DD"))&&(c+='<span class="slideAlert">!</span>'),c+="</li>";return c+="</ul>"},q=function(a){var b="",c=moment(a),d=(c.clone(),c.format("YYYY-MM-DD")),e=c.format("dddd Do MMM YYYY"),f=AT.dataHandler.pluckThemeParkDate(d),g=AT.dataHandler.pluckWaterParkDate(d),h=AT.dataHandler.pluckNote(d);return b+="<p><strong>"+e+"</strong></p>",b+="<p>Theme park: <strong>"+r(f)+"</strong></p>",b+='<p class="waterparkText">Waterpark: <strong>'+r(g)+"</strong></p>",b+='<p class="note"><em>'+h+"</em></p>",AT.dataHandler.pluckWaterSlide(d)&&(b+='<p class="warn"></p>'),b+='<a href="/book-my-trip/tickets/" class="btn default next">Find tickets</a>'},r=function(a){var b={"10-4":"10am - 4pm","10-5":"10am - 5pm","10-6":"10am - 6pm","10-5.30":"10am - 5.30pm","10-6.30":"10am - 6.30pm","10-7":"10am - 7pm","10-9":"10am - 9pm"};return b[a]||a},s=function(a){var b=a%10,c="th";return 1===b?c="st":2===b?c="nd":3===b&&(c="rd"),c},t=function(b,c){a("<h3>"+c.format("MMM")+"</h3>").prependTo(b)};f()}return b}(jQuery,window,document);var AT=AT||{};AT.HotelExtras=function(a){"use strict";function b(){var b=(a(".booking-form-bar-hex"),{tickets:{dropdown:a("#SeatType"),label:a('label[for="SeatType"]'),labelText:""},adults:{dropdown:a("#ParkAdults"),label:a('label[for="ParkAdults"]'),labelText:""},youngAdults:{dropdown:a("#ParkDisChild"),label:a('label[for="ParkDisChild"]'),labelText:""},children:{dropdown:a("#ParkChildren"),label:a('label[for="ParkChildren"]'),labelText:""},infants:{dropdown:a("#ParkInfants1"),label:a('label[for="ParkInfants1"]'),labelText:""},babies:{dropdown:a("#ParkInfants2"),label:a('label[for="ParkInfants2"]'),labelText:""}}),c=function(){d(),e(),f()},d=function(){for(var a in b)b[a].label.find("span").prepend("&nbsp;"),b[a].labelText=b[a].label.text()},e=function(){for(var a in b)b[a].label.remove()},f=function(){for(var c in b)if("tickets"===c)b[c].dropdown.find("option").first().text(b[c].labelText);else{if("adults"===c)var d=a('<option value="1" selected>'+b[c].labelText+"</option>");else var d=a('<option value="0" selected>'+b[c].labelText+"</option>");b[c].dropdown.prepend(d)}};c()}return b}(jQuery,window,document);var AT=AT||{};AT.HotelRooms=function(a){"use strict";function b(b){var c,d={parent:".hotel_rooms",room:".hotel-room-explorer",backButton:".back-to-gallery",thumbnailButton:".hotel-room-explorer .twoPanelCarousel .img-thumbnail"},e=a.extend(d,b),f=function(){c=a(e.room),c.each(function(){a(this).closest(e.parent).length||a(this).find(e.backButton).remove()}),g()},g=function(){a(document).on("click",e.thumbnailButton,function(b){var c=a(this),d=c.data("index");c.closest(".owl-stage").find(".active").removeClass("active"),c.addClass("active"),a(this).closest(".hotel-room-explorer").find(".owl-carousel:first").trigger("to.owl.carousel",[d,200,!0]),b.preventDefault()}),a(document).on("click",e.room+" "+e.backButton,function(a){console.log("back button"),a.preventDefault()})};f()}return b}(jQuery,window,document),function(a){var b,c=!1,d={init:function(d){function e(a){var b=this;this.loaded=!1,this.$element=a,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.getTop=function(){return b.top?b.top:b.$element.offset().top},this.getBottom=function(){if(b.bottom)return b.bottom;var a=b.top?b.top:this.getTop();return a+b.$element.outerHeight(g.includeMargin)},this.getLeft=function(){return b.left?b.left:b.$element.offset().left},this.getRight=function(){if(b.right)return b.right;var a=b.left?b.left:this.getLeft();return a+b.$element.outerWidth(g.includeMargin)},g.cache&&(this.top=this.getTop(),this.bottom=this.getBottom(),this.left=this.getLeft(),this.right=this.getRight())}var f={auto:!0,cache:!1,timeout:1e3,includeMargin:!1,viewportMargin:0,repeatLoad:!1,listenTo:window,onLoadingStart:function(){return!0},onLoad:function(){return!0},onLoadingComplete:function(){return!0}},g=a.extend({},f,d);b=a(g.listenTo);var h=0,i=[],j=this;b.bind("scroll.lla",function(a){return c||g.auto?(c=!1,clearTimeout(h),void(h=setTimeout(function(){var c,d=b.scrollLeft(),e=b.scrollTop(),f=b.innerWidth(),h=b.innerHeight(),j=d-g.viewportMargin,k=d+f+g.viewportMargin,l=e-g.viewportMargin,m=e+h+g.viewportMargin,n=[];for(c=0;c<i.length;c++){var o=i[c].getLeft(),p=i[c].getRight(),q=i[c].getTop(),r=i[c].getBottom();i[c].$element.is(":visible")&&p>j&&k>o&&r>l&&m>q&&(g.repeatLoad||!i[c].loaded)&&n.push(c)}if(g.onLoadingStart.call(void 0,a,i,n)){for(c=0;c<n.length&&(i[n[c]].loaded=!0,g.onLoad.call(void 0,a,i[n[c]])!==!1);c++);g.onLoadingComplete.call(void 0,a,i,n)}},g.timeout))):!1});var k=j.each(function(){i.push(new e(a(this)))});return k},destroy:function(){b.unbind("scroll.lla")},load:function(){c=!0,b.trigger("scroll.lla")}};a.fn.lazyloadanything=function(b){return d[b]?d[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("Method "+b+" does not exist on jQuery.lazyloadanything"):d.init.apply(this,arguments)}}(jQuery),function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(a,b,c,d,e){return jQuery.easing[jQuery.easing.def](a,b,c,d,e)},easeInQuad:function(a,b,c,d,e){return d*(b/=e)*b+c},easeOutQuad:function(a,b,c,d,e){return-d*(b/=e)*(b-2)+c},easeInOutQuad:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b+c:-d/2*(--b*(b-2)-1)+c},easeInCubic:function(a,b,c,d,e){return d*(b/=e)*b*b+c},easeOutCubic:function(a,b,c,d,e){return d*((b=b/e-1)*b*b+1)+c},easeInOutCubic:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b+c:d/2*((b-=2)*b*b+2)+c},easeInQuart:function(a,b,c,d,e){return d*(b/=e)*b*b*b+c},easeOutQuart:function(a,b,c,d,e){return-d*((b=b/e-1)*b*b*b-1)+c},easeInOutQuart:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b+c:-d/2*((b-=2)*b*b*b-2)+c},easeInQuint:function(a,b,c,d,e){return d*(b/=e)*b*b*b*b+c},easeOutQuint:function(a,b,c,d,e){return d*((b=b/e-1)*b*b*b*b+1)+c},easeInOutQuint:function(a,b,c,d,e){return(b/=e/2)<1?d/2*b*b*b*b*b+c:d/2*((b-=2)*b*b*b*b+2)+c},easeInSine:function(a,b,c,d,e){return-d*Math.cos(b/e*(Math.PI/2))+d+c},easeOutSine:function(a,b,c,d,e){return d*Math.sin(b/e*(Math.PI/2))+c},easeInOutSine:function(a,b,c,d,e){return-d/2*(Math.cos(Math.PI*b/e)-1)+c},easeInExpo:function(a,b,c,d,e){return 0==b?c:d*Math.pow(2,10*(b/e-1))+c},easeOutExpo:function(a,b,c,d,e){return b==e?c+d:d*(-Math.pow(2,-10*b/e)+1)+c},easeInOutExpo:function(a,b,c,d,e){return 0==b?c:b==e?c+d:(b/=e/2)<1?d/2*Math.pow(2,10*(b-1))+c:d/2*(-Math.pow(2,-10*--b)+2)+c},easeInCirc:function(a,b,c,d,e){return-d*(Math.sqrt(1-(b/=e)*b)-1)+c},easeOutCirc:function(a,b,c,d,e){return d*Math.sqrt(1-(b=b/e-1)*b)+c},easeInOutCirc:function(a,b,c,d,e){return(b/=e/2)<1?-d/2*(Math.sqrt(1-b*b)-1)+c:d/2*(Math.sqrt(1-(b-=2)*b)+1)+c},easeInElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return-(h*Math.pow(2,10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g))+c},easeOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(1==(b/=e))return c+d;if(g||(g=.3*e),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return h*Math.pow(2,-10*b)*Math.sin(2*(b*e-f)*Math.PI/g)+d+c},easeInOutElastic:function(a,b,c,d,e){var f=1.70158,g=0,h=d;if(0==b)return c;if(2==(b/=e/2))return c+d;if(g||(g=.3*e*1.5),h<Math.abs(d)){h=d;var f=g/4}else var f=g/(2*Math.PI)*Math.asin(d/h);return 1>b?-.5*h*Math.pow(2,10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)+c:h*Math.pow(2,-10*(b-=1))*Math.sin(2*(b*e-f)*Math.PI/g)*.5+d+c},easeInBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*(b/=e)*b*((f+1)*b-f)+c},easeOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),d*((b=b/e-1)*b*((f+1)*b+f)+1)+c},easeInOutBack:function(a,b,c,d,e,f){return void 0==f&&(f=1.70158),(b/=e/2)<1?d/2*b*b*(((f*=1.525)+1)*b-f)+c:d/2*((b-=2)*b*(((f*=1.525)+1)*b+f)+2)+c},easeInBounce:function(a,b,c,d,e){return d-jQuery.easing.easeOutBounce(a,e-b,0,d,e)+c},easeOutBounce:function(a,b,c,d,e){return(b/=e)<1/2.75?7.5625*d*b*b+c:2/2.75>b?d*(7.5625*(b-=1.5/2.75)*b+.75)+c:2.5/2.75>b?d*(7.5625*(b-=2.25/2.75)*b+.9375)+c:d*(7.5625*(b-=2.625/2.75)*b+.984375)+c},easeInOutBounce:function(a,b,c,d,e){return e/2>b?.5*jQuery.easing.easeInBounce(a,2*b,0,d,e)+c:.5*jQuery.easing.easeOutBounce(a,2*b-e,0,d,e)+.5*d+c}}),function(a){function b(a,e){var f=a.data("settings");"undefined"==typeof e&&(e=!1),e&&d(a);var g=c(a);a.animate(g.css,g.time,"linear",function(){a.css(f.direction,"0"),b(a,!0)})}function c(a){var b=a.data("settings"),c=a.children().first(),d=Math.abs(-a.css(b.direction).replace("px","").replace("auto","0")-c.outerWidth(!0)),b=a.data("settings"),e=1e3*d/b.speed,f={};return f[b.direction]=a.css(b.direction).replace("px","").replace("auto","0")-d,{css:f,time:e}}function d(a){var b=a.data("settings");a.css("transition-duration","0s").css(b.direction,"0");var c=a.children().first();c.hasClass("webticker-init")?c.remove():a.children().last().after(c)}function e(a,b){"undefined"==typeof b&&(b=!1),b&&d(a);var e=c(a),f=e.time/1e3;f+="s",a.css(e.css).css("transition-duration",f)}function f(b,c,d){var e;a.get(b,function(b){var f=a(b);f.find("item").each(function(){var b=a(this),c={title:b.find("title").text(),link:b.find("link").text()};listItem="<li><a href='"+c.link+"'>"+c.title+"</a></li>",e+=listItem}),d.webTicker("update",e,c)})}function g(b){var c=b.data("settings");b.width("auto");var d=0;if(b.children("li").each(function(){d+=a(this).outerWidth(!0)}),d<b.parent().width()||1==b.children().length)if(c.duplicate)for(itemWidth=Math.max.apply(Math,b.children().map(function(){return a(this).width()}).get());d-itemWidth<b.parent().width()||1==b.children().length;){var e=b.children().clone();b.append(e),d=0,b.children("li").each(function(){d+=a(this).outerWidth(!0)}),itemWidth=Math.max.apply(Math,b.children().map(function(){return a(this).width()}).get())}else{var f=b.parent().width()-d;f+=b.find("li:first").width();var g=b.find("li:first").height();b.append('<li class="ticker-spacer" style="width:'+f+"px;height:"+g+'px;"></li>')}if(c.startEmpty){var g=b.find("li:first").height();b.prepend('<li class="webticker-init" style="width:'+b.parent().width()+"px;height:"+g+'px;"></li>')}for(d=0,b.children("li").each(function(){d+=a(this).outerWidth(!0)}),b.width(d+200),widthCompare=0,b.children("li").each(function(){widthCompare+=a(this).outerWidth(!0)});widthCompare>=b.width();)b.width(b.width()+200),widthCompare=0,b.children("li").each(function(){widthCompare+=a(this).outerWidth(!0)})}var h=function(){var a=document.createElement("p").style,b=["ms","O","Moz","Webkit"];if(""==a.transition)return!0;for(;b.length;)if(b.pop()+"Transition"in a)return!0;return!1}(),i={init:function(c){return c=jQuery.extend({speed:50,direction:"left",moving:!0,startEmpty:!0,duplicate:!1,rssurl:!1,hoverpause:!0,rssfrequency:0,updatetype:"reset"},c),this.each(function(){jQuery(this).data("settings",c);var d=jQuery(this);d.addClass("newsticker");var i=d.wrap("<div class='mask'></div>");i.after("<span class='tickeroverlay-left'>&nbsp;</span><span class='tickeroverlay-right'>&nbsp;</span>");d.parent().wrap("<div class='tickercontainer'></div>");g(d),c.rssurl&&(f(c.rssurl,c.type,d),c.rssfrequency>0&&window.setInterval(function(){f(c.rssurl,c.type,d)},1e3*c.rssfrequency*60)),h?(d.css("transition-duration","0s").css(c.direction,"0"),e(d,!1),d.on("transitionend webkitTransitionEnd oTransitionEnd otransitionend",function(b){return d.is(b.target)?void e(a(this),!0):!1})):b(a(this)),c.hoverpause&&d.hover(function(){if(h){var b=a(this).css(c.direction);a(this).css("transition-duration","0s").css(c.direction,b)}else jQuery(this).stop()},function(){jQuery(this).data("settings").moving&&(h?e(a(this),!1):b(d))
  })})},stop:function(){var b=a(this).data("settings");return b.moving?(b.moving=!1,this.each(function(){if(h){var c=a(this).css(b.direction);a(this).css("transition-duration","0s").css(b.direction,c)}else a(this).stop()})):void 0},cont:function(){var c=a(this).data("settings");return c.moving?void 0:(c.moving=!0,this.each(function(){h?e(a(this),!1):b(a(this))}))},update:function(b,c,d,e){c=c||"reset","undefined"==typeof d&&(d=!0),"undefined"==typeof e&&(e=!1),"string"==typeof b&&(b=a(b));var f=a(this);f.webTicker("stop");var h=a(this).data("settings");if("reset"==c)f.html(b),f.css(h.direction,"0"),g(f);else if("swap"==c){f.children("li").addClass("old");for(var i=0;i<b.length;i++)id=a(b[i]).data("update"),match=f.find('[data-update="'+id+'"]'),match.length<1?d&&(0==f.find(".ticker-spacer:first-child").length&&f.find(".ticker-spacer").length>0?f.children("li.ticker-spacer").before(b[i]):f.append(b[i])):f.find('[data-update="'+id+'"]').replaceWith(b[i]);f.children("li.webticker-init, li.ticker-spacer").removeClass("old"),e&&f.children("li").remove(".old"),stripWidth=0,f.children("li").each(function(){stripWidth+=a(this).outerWidth(!0)}),f.width(stripWidth+200)}f.webTicker("cont")}};a.fn.webTicker=function(b){return i[b]?i[b].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof b&&b?void a.error("Method "+b+" does not exist on jQuery.webTicker"):i.init.apply(this,arguments)}}(jQuery);var AT=AT||{};AT.DataHandler=function(a){"use strict";function b(b){var c,d={},e={callback:a.noop(),openingTimesFeed:"https://www.altontowers.com/Umbraco/Api/Calendar/GetAllOpeningTimes",localOpeningTimesFeed:"https://altontowers-stage.azurewebsites.net/Umbraco/Api/Calendar/GetAllOpeningTimes"},f=(a.extend(e,b),function(){g()}),g=function(){a.ajax({url:window.location.href.indexOf("localhost")>-1?e.localOpeningTimesFeed:e.openingTimesFeed,type:"GET",cache:!1,async:!0,success:function(a,b){"success"===b&&(c=a,h(),isFunc(e.callback)&&e.callback(!0))},error:function(a,b,c){console.log(b+' - "'+c+'"'),isFunc(e.callback)&&e.callback(!1)}})},h=function(){d.firstThemeParkDay=c[0].NextOpenDay,d.firstWaterParkDay=c[1].NextOpenDay,a.each(c[0].OpeningHours,function(a,b){i("themeParkOpeningTimes",b.From,b.To,b.Open)}),a.each(c[1].OpeningHours,function(a,b){i("waterParkOpeningTimes",b.From,b.To,b.Open)}),a.each(c[2].Notes,function(a,b){j(b.Date,b.Message)}),a.each(c[3].WaterSlides,function(a,b){i("waterSlides",b.From,b.To)})},i=function(a,b,c,e){var f=moment(b),g=moment(c);do{var h=f.format("YYYY-MM-DD");isDef(d[h])||(d[h]={}),d[h][a]=e||"closed",f.add(1,"d")}while(!f.isAfter(g,"day"))},j=function(a,b){var c=moment(a).format("YYYY-MM-DD");isDef(d[c])||(d[c]={}),d[c].notes=b};this.getCalendar=function(){return d},this.getFirstThemeParkDay=function(){return d.firstThemeParkDay},this.getFirstWaterParkDay=function(){return d.firstWaterParkDay},this.pluckThemeParkDate=function(a){return d[a]&&d[a].themeParkOpeningTimes?d[a].themeParkOpeningTimes:"Closed"},this.pluckWaterParkDate=function(a){return d[a]&&d[a].waterParkOpeningTimes?d[a].waterParkOpeningTimes:"Closed"},this.pluckNote=function(a){return d[a]&&d[a].notes?d[a].notes:""},this.pluckWaterSlide=function(a){return d[a]&&d[a].waterSlides?d[a].waterSlides:!1},f()}return b}(jQuery,window,document);var AT=AT||{};AT.LazyLoadr=function(a){"use strict";function b(){var b,c="section",d=function(){b=a(c),b.lazyloadanything({timeout:50,viewportMargin:.5*AT.windowSize.height,onLoad:e})},e=function(a,b){var c=b.$element.removeClass("lazy"),d=AT.windowSize.width>=1024?50:70;f(c,d),g(c,d),h(c)},f=function(b){b.find("[data-background]").addBack().each(function(){{var b=a(this),c=a.trim(b.data().background);b.attr("class")}isDef(b.data().background)&&b.css("background-image","url("+c+")")})},g=function(b){b.find("[data-src]").each(function(){a(this).attr("src",a.trim(a(this).data().src)).on("load",i)})},h=function(b){a("p",b).filter(function(){return""===this.innerHTML||"&nbsp;"===this.innerHTML}).remove(),a(".responsive-table",b).wrap('<div class="responsive-table-wrapper"></div>'),AT.isMobile||a(".scrollingText",b).slimScroll({allowPageScroll:!0,height:.5*AT.windowSize.height+"px",size:"10px"}),AT.matchHeight.matchHeight(b),AT.parallaxr.initParallax(b)},i=a.debounce(500,function(){AT.matchHeight.matchAll()});d()}return b}(jQuery,window,document);var AT=AT||{};AT.MatchHeight=function(a){"use strict";function b(b){var c=b,d=function(){},e=function(b){var c=0,d=b.find(".item").filter(function(){return a(this).find(".btn").length&&!a(this).hasClass("noMatchHeight")});d.height("auto").find(".btn").removeClass("heightCorrected"),d.each(function(b,d){var e=a(d).height();e>c&&(c=e)}),d.height(Math.ceil(c)).css({height:Math.ceil(c+25)}).find(".btn").addClass("heightCorrected")};this.matchHeight=function(a){if(!AT.isMobile){var b=a.attr("class");void 0!==b&&b.match(c.join("|"))&&e(a)}},this.matchAll=function(){AT.isMobile||a("#fullpage > section").each(function(){var b=a(this).attr("class");void 0!==b&&b.match(c.join("|"))&&e(a(this))})},d()}return b}(jQuery,window,document),function(a,b,c,d){function e(b,c){this.settings=null,this.options=a.extend({},e.Defaults,c),this.$element=a(b),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},a.each(["onResize","onThrottledResize"],a.proxy(function(b,c){this._handlers[c]=a.proxy(this[c],this)},this)),a.each(e.Plugins,a.proxy(function(a,b){this._plugins[a[0].toLowerCase()+a.slice(1)]=new b(this)},this)),a.each(e.Workers,a.proxy(function(b,c){this._pipe.push({filter:c.filter,run:a.proxy(c.run,this)})},this)),this.setup(),this.initialize()}e.Defaults={items:3,loop:!1,center:!1,rewind:!1,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:b,fallbackEasing:"swing",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},e.Width={Default:"default",Inner:"inner",Outer:"outer"},e.Type={Event:"event",State:"state"},e.Plugins={},e.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(a){a.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(a){var b=this.settings.margin||"",c=!this.settings.autoWidth,d=this.settings.rtl,e={width:"auto","margin-left":d?b:"","margin-right":d?"":b};!c&&this.$stage.children().css(e),a.css=e}},{filter:["width","items","settings"],run:function(a){var b=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,c=null,d=this._items.length,e=!this.settings.autoWidth,f=[];for(a.items={merge:!1,width:b};d--;)c=this._mergers[d],c=this.settings.mergeFit&&Math.min(c,this.settings.items)||c,a.items.merge=c>1||a.items.merge,f[d]=e?b*c:this._items[d].width();this._widths=f}},{filter:["items","settings"],run:function(){var b=[],c=this._items,d=this.settings,e=Math.max(2*d.items,4),f=2*Math.ceil(c.length/2),g=d.loop&&c.length?d.rewind?e:Math.max(e,f):0,h="",i="";for(g/=2;g--;)b.push(this.normalize(b.length/2,!0)),h+=c[b[b.length-1]][0].outerHTML,b.push(this.normalize(c.length-1-(b.length-1)/2,!0)),i=c[b[b.length-1]][0].outerHTML+i;this._clones=b,a(h).addClass("cloned").appendTo(this.$stage),a(i).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var a=this.settings.rtl?1:-1,b=this._clones.length+this._items.length,c=-1,d=0,e=0,f=[];++c<b;)d=f[c-1]||0,e=this._widths[this.relative(c)]+this.settings.margin,f.push(d+e*a);this._coordinates=f}},{filter:["width","items","settings"],run:function(){var a=this.settings.stagePadding,b=this._coordinates,c={width:Math.ceil(Math.abs(b[b.length-1]))+2*a,"padding-left":a||"","padding-right":a||""};this.$stage.css(c)}},{filter:["width","items","settings"],run:function(a){var b=this._coordinates.length,c=!this.settings.autoWidth,d=this.$stage.children();if(c&&a.items.merge)for(;b--;)a.css.width=this._widths[this.relative(b)],d.eq(b).css(a.css);else c&&(a.css.width=a.items.width,d.css(a.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(a){a.current=a.current?this.$stage.children().index(a.current):0,a.current=Math.max(this.minimum(),Math.min(this.maximum(),a.current)),this.reset(a.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var a,b,c,d,e=this.settings.rtl?1:-1,f=2*this.settings.stagePadding,g=this.coordinates(this.current())+f,h=g+this.width()*e,i=[];for(c=0,d=this._coordinates.length;d>c;c++)a=this._coordinates[c-1]||0,b=Math.abs(this._coordinates[c])+f*e,(this.op(a,"<=",g)&&this.op(a,">",h)||this.op(b,"<",g)&&this.op(b,">",h))&&i.push(c);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+i.join("), :eq(")+")").addClass("active"),this.settings.center&&(this.$stage.children(".center").removeClass("center"),this.$stage.children().eq(this.current()).addClass("center"))}}],e.prototype.initialize=function(){if(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")){var b,c,e;b=this.$element.find("img"),c=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:d,e=this.$element.children(c).width(),b.length&&0>=e&&this.preloadAutoWidthImages(b)}this.$element.addClass(this.options.loadingClass),this.$stage=a("<"+this.settings.stageElement+' class="'+this.settings.stageClass+'"/>').wrap('<div class="'+this.settings.stageOuterClass+'"/>'),this.$element.append(this.$stage.parent()),this.replace(this.$element.children().not(this.$stage.parent())),this.$element.is(":visible")?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},e.prototype.setup=function(){var b=this.viewport(),c=this.options.responsive,d=-1,e=null;c?(a.each(c,function(a){b>=a&&a>d&&(d=Number(a))}),e=a.extend({},this.options,c[d]),delete e.responsive,e.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+d))):e=a.extend({},this.options),(null===this.settings||this._breakpoint!==d)&&(this.trigger("change",{property:{name:"settings",value:e}}),this._breakpoint=d,this.settings=e,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}}))},e.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},e.prototype.prepare=function(b){var c=this.trigger("prepare",{content:b});return c.data||(c.data=a("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(b)),this.trigger("prepared",{content:c.data}),c.data},e.prototype.update=function(){for(var b=0,c=this._pipe.length,d=a.proxy(function(a){return this[a]},this._invalidated),e={};c>b;)(this._invalidated.all||a.grep(this._pipe[b].filter,d).length>0)&&this._pipe[b].run(e),b++;this._invalidated={},!this.is("valid")&&this.enter("valid")},e.prototype.width=function(a){switch(a=a||e.Width.Default){case e.Width.Inner:case e.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},e.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},e.prototype.onThrottledResize=function(){b.clearTimeout(this.resizeTimer),this.resizeTimer=b.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},e.prototype.onResize=function(){return this._items.length?this._width===this.$element.width()?!1:this.$element.is(":visible")?(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized"))):!1:!1},e.prototype.registerEventHandlers=function(){a.support.transition&&this.$stage.on(a.support.transition.end+".owl.core",a.proxy(this.onTransitionEnd,this)),this.settings.responsive!==!1&&this.on(b,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",function(){return!1})),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",a.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",a.proxy(this.onDragEnd,this)))},e.prototype.onDragStart=function(b){var d=null;3!==b.which&&(a.support.transform?(d=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","),d={x:d[16===d.length?12:4],y:d[16===d.length?13:5]}):(d=this.$stage.position(),d={x:this.settings.rtl?d.left+this.$stage.width()-this.width()+this.settings.margin:d.left,y:d.top}),this.is("animating")&&(a.support.transform?this.animate(d.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===b.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=a(b.target),this._drag.stage.start=d,this._drag.stage.current=d,this._drag.pointer=this.pointer(b),a(c).on("mouseup.owl.core touchend.owl.core",a.proxy(this.onDragEnd,this)),a(c).one("mousemove.owl.core touchmove.owl.core",a.proxy(function(b){var d=this.difference(this._drag.pointer,this.pointer(b));a(c).on("mousemove.owl.core touchmove.owl.core",a.proxy(this.onDragMove,this)),Math.abs(d.x)<Math.abs(d.y)&&this.is("valid")||(b.preventDefault(),this.enter("dragging"),this.trigger("drag"))},this)))},e.prototype.onDragMove=function(a){var b=null,c=null,d=null,e=this.difference(this._drag.pointer,this.pointer(a)),f=this.difference(this._drag.stage.start,e);this.is("dragging")&&(a.preventDefault(),this.settings.loop?(b=this.coordinates(this.minimum()),c=this.coordinates(this.maximum()+1)-b,f.x=((f.x-b)%c+c)%c+b):(b=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),c=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),d=this.settings.pullDrag?-1*e.x/5:0,f.x=Math.max(Math.min(f.x,b+d),c+d)),this._drag.stage.current=f,this.animate(f.x))},e.prototype.onDragEnd=function(b){var d=this.difference(this._drag.pointer,this.pointer(b)),e=this._drag.stage.current,f=d.x>0^this.settings.rtl?"left":"right";a(c).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==d.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(e.x,0!==d.x?f:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=f,(Math.abs(d.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",function(){return!1})),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},e.prototype.closest=function(b,c){var d=-1,e=30,f=this.width(),g=this.coordinates();return this.settings.freeDrag||a.each(g,a.proxy(function(a,h){return b>h-e&&h+e>b?d=a:this.op(b,"<",h)&&this.op(b,">",g[a+1]||h-f)&&(d="left"===c?a+1:a),-1===d},this)),this.settings.loop||(this.op(b,">",g[this.minimum()])?d=b=this.minimum():this.op(b,"<",g[this.maximum()])&&(d=b=this.maximum())),d},e.prototype.animate=function(b){var c=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),c&&(this.enter("animating"),this.trigger("translate")),a.support.transform3d&&a.support.transition?this.$stage.css({"-webkit-transform":"translate3d("+b+"px,0px,0px)","-webkit-transition":this.speed()/1e3+"s",transform:"translate3d("+b+"px,0px,0px)",transition:this.speed()/1e3+"s"}):c?this.$stage.animate({left:b+"px"},this.speed(),this.settings.fallbackEasing,a.proxy(this.onTransitionEnd,this)):this.$stage.css({left:b+"px"})},e.prototype.is=function(a){return this._states.current[a]&&this._states.current[a]>0},e.prototype.current=function(a){if(a===d)return this._current;if(0===this._items.length)return d;if(a=this.normalize(a),this._current!==a){var b=this.trigger("change",{property:{name:"position",value:a}});b.data!==d&&(a=this.normalize(b.data)),this._current=a,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},e.prototype.invalidate=function(b){return"string"===a.type(b)&&(this._invalidated[b]=!0,this.is("valid")&&this.leave("valid")),a.map(this._invalidated,function(a,b){return b})},e.prototype.reset=function(a){a=this.normalize(a),a!==d&&(this._speed=0,this._current=a,this.suppress(["translate","translated"]),this.animate(this.coordinates(a)),this.release(["translate","translated"]))},e.prototype.normalize=function(b,c){var e=this._items.length,f=c?0:this._clones.length;return!a.isNumeric(b)||1>e?b=d:(0>b||b>=e+f)&&(b=((b-f/2)%e+e)%e+f/2),b},e.prototype.relative=function(a){return a-=this._clones.length/2,this.normalize(a,!0)},e.prototype.maximum=function(a){var b,c=this.settings,d=this._coordinates.length,e=Math.abs(this._coordinates[d-1])-this._width,f=-1;if(c.loop)d=this._clones.length/2+this._items.length-1;else if(c.autoWidth||c.merge)for(;d-f>1;)Math.abs(this._coordinates[b=d+f>>1])<e?f=b:d=b;else d=c.center?this._items.length-1:this._items.length-c.items;return a&&(d-=this._clones.length/2),Math.max(d,0)},e.prototype.minimum=function(a){return a?0:this._clones.length/2},e.prototype.items=function(a){return a===d?this._items.slice():(a=this.normalize(a,!0),this._items[a])},e.prototype.mergers=function(a){return a===d?this._mergers.slice():(a=this.normalize(a,!0),this._mergers[a])},e.prototype.clones=function(b){var c=this._clones.length/2,e=c+this._items.length,f=function(a){return a%2===0?e+a/2:c-(a+1)/2};return b===d?a.map(this._clones,function(a,b){return f(b)}):a.map(this._clones,function(a,c){return a===b?f(c):null})},e.prototype.speed=function(a){return a!==d&&(this._speed=a),this._speed},e.prototype.coordinates=function(b){var c=null;return b===d?a.map(this._coordinates,a.proxy(function(a,b){return this.coordinates(b)},this)):(this.settings.center?(c=this._coordinates[b],c+=(this.width()-c+(this._coordinates[b-1]||0))/2*(this.settings.rtl?-1:1)):c=this._coordinates[b-1]||0,c)},e.prototype.duration=function(a,b,c){return Math.min(Math.max(Math.abs(b-a),1),6)*Math.abs(c||this.settings.smartSpeed)},e.prototype.to=function(a,b){var c=this.current(),d=null,e=a-this.relative(c),f=(e>0)-(0>e),g=this._items.length,h=this.minimum(),i=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(e)>g/2&&(e+=-1*f*g),a=c+e,d=((a-h)%g+g)%g+h,d!==a&&i>=d-e&&d-e>0&&(c=d-e,a=d,this.reset(c))):this.settings.rewind?(i+=1,a=(a%i+i)%i):a=Math.max(h,Math.min(i,a)),this.speed(this.duration(c,a,b)),this.current(a),this.$element.is(":visible")&&this.update()},e.prototype.next=function(a){a=a||!1,this.to(this.relative(this.current())+1,a)},e.prototype.prev=function(a){a=a||!1,this.to(this.relative(this.current())-1,a)},e.prototype.onTransitionEnd=function(a){return a!==d&&(a.stopPropagation(),(a.target||a.srcElement||a.originalTarget)!==this.$stage.get(0))?!1:(this.leave("animating"),void this.trigger("translated"))},e.prototype.viewport=function(){var d;if(this.options.responsiveBaseElement!==b)d=a(this.options.responsiveBaseElement).width();else if(b.innerWidth)d=b.innerWidth;else{if(!c.documentElement||!c.documentElement.clientWidth)throw"Can not detect viewport width.";d=c.documentElement.clientWidth}return d},e.prototype.replace=function(b){this.$stage.empty(),this._items=[],b&&(b=b instanceof jQuery?b:a(b)),this.settings.nestedItemSelector&&(b=b.find("."+this.settings.nestedItemSelector)),b.filter(function(){return 1===this.nodeType}).each(a.proxy(function(a,b){b=this.prepare(b),this.$stage.append(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)},this)),this.reset(a.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},e.prototype.add=function(b,c){var e=this.relative(this._current);c=c===d?this._items.length:this.normalize(c,!0),b=b instanceof jQuery?b:a(b),this.trigger("add",{content:b,position:c}),b=this.prepare(b),0===this._items.length||c===this._items.length?(0===this._items.length&&this.$stage.append(b),0!==this._items.length&&this._items[c-1].after(b),this._items.push(b),this._mergers.push(1*b.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)):(this._items[c].before(b),this._items.splice(c,0,b),this._mergers.splice(c,0,1*b.find("[data-merge]").andSelf("[data-merge]").attr("data-merge")||1)),this._items[e]&&this.reset(this._items[e].index()),this.invalidate("items"),this.trigger("added",{content:b,position:c})},e.prototype.remove=function(a){a=this.normalize(a,!0),a!==d&&(this.trigger("remove",{content:this._items[a],position:a}),this._items[a].remove(),this._items.splice(a,1),this._mergers.splice(a,1),this.invalidate("items"),this.trigger("removed",{content:null,position:a}))},e.prototype.preloadAutoWidthImages=function(b){b.each(a.proxy(function(b,c){this.enter("pre-loading"),c=a(c),a(new Image).one("load",a.proxy(function(a){c.attr("src",a.target.src),c.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()},this)).attr("src",c.attr("src")||c.attr("data-src")||c.attr("data-src-retina"))},this))},e.prototype.destroy=function(){this.$element.off(".owl.core"),this.$stage.off(".owl.core"),a(c).off(".owl.core"),this.settings.responsive!==!1&&(b.clearTimeout(this.resizeTimer),this.off(b,"resize",this._handlers.onThrottledResize));for(var d in this._plugins)this._plugins[d].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},e.prototype.op=function(a,b,c){var d=this.settings.rtl;switch(b){case"<":return d?a>c:c>a;case">":return d?c>a:a>c;case">=":return d?c>=a:a>=c;case"<=":return d?a>=c:c>=a}},e.prototype.on=function(a,b,c,d){a.addEventListener?a.addEventListener(b,c,d):a.attachEvent&&a.attachEvent("on"+b,c)},e.prototype.off=function(a,b,c,d){a.removeEventListener?a.removeEventListener(b,c,d):a.detachEvent&&a.detachEvent("on"+b,c)},e.prototype.trigger=function(b,c,d){var f={item:{count:this._items.length,index:this.current()}},g=a.camelCase(a.grep(["on",b,d],function(a){return a}).join("-").toLowerCase()),h=a.Event([b,"owl",d||"carousel"].join(".").toLowerCase(),a.extend({relatedTarget:this},f,c));return this._supress[b]||(a.each(this._plugins,function(a,b){b.onTrigger&&b.onTrigger(h)}),this.register({type:e.Type.Event,name:b}),this.$element.trigger(h),this.settings&&"function"==typeof this.settings[g]&&this.settings[g].call(this,h)),h},e.prototype.enter=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]===d&&(this._states.current[b]=0),this._states.current[b]++},this))},e.prototype.leave=function(b){a.each([b].concat(this._states.tags[b]||[]),a.proxy(function(a,b){this._states.current[b]--},this))},e.prototype.register=function(b){if(b.type===e.Type.Event){if(a.event.special[b.name]||(a.event.special[b.name]={}),!a.event.special[b.name].owl){var c=a.event.special[b.name]._default;a.event.special[b.name]._default=function(a){return!c||!c.apply||a.namespace&&-1!==a.namespace.indexOf("owl")?a.namespace&&a.namespace.indexOf("owl")>-1:c.apply(this,arguments)},a.event.special[b.name].owl=!0}}else b.type===e.Type.State&&(this._states.tags[b.name]=this._states.tags[b.name]?this._states.tags[b.name].concat(b.tags):b.tags,this._states.tags[b.name]=a.grep(this._states.tags[b.name],a.proxy(function(c,d){return a.inArray(c,this._states.tags[b.name])===d},this)))},e.prototype.suppress=function(b){a.each(b,a.proxy(function(a,b){this._supress[b]=!0},this))},e.prototype.release=function(b){a.each(b,a.proxy(function(a,b){delete this._supress[b]},this))},e.prototype.pointer=function(a){var c={x:null,y:null};return a=a.originalEvent||a||b.event,a=a.touches&&a.touches.length?a.touches[0]:a.changedTouches&&a.changedTouches.length?a.changedTouches[0]:a,a.pageX?(c.x=a.pageX,c.y=a.pageY):(c.x=a.clientX,c.y=a.clientY),c},e.prototype.difference=function(a,b){return{x:a.x-b.x,y:a.y-b.y}},a.fn.owlCarousel=function(b){var c=Array.prototype.slice.call(arguments,1);return this.each(function(){var d=a(this),f=d.data("owl.carousel");f||(f=new e(this,"object"==typeof b&&b),d.data("owl.carousel",f),a.each(["next","prev","to","destroy","refresh","replace","add","remove"],function(b,c){f.register({type:e.Type.Event,name:c}),f.$element.on(c+".owl.carousel.core",a.proxy(function(a){a.namespace&&a.relatedTarget!==this&&(this.suppress([c]),f[c].apply(this,[].slice.call(arguments,1)),this.release([c]))},f))})),"string"==typeof b&&"_"!==b.charAt(0)&&f[b].apply(f,c)})},a.fn.owlCarousel.Constructor=e}(window.Zepto||window.jQuery,window,document),function(a,b){var c=function(b){this._core=b,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoRefresh&&this.watch()},this)},this._core.options=a.extend({},c.Defaults,this._core.options),this._core.$element.on(this._handlers)};c.Defaults={autoRefresh:!0,autoRefreshInterval:500},c.prototype.watch=function(){this._interval||(this._visible=this._core.$element.is(":visible"),this._interval=b.setInterval(a.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},c.prototype.refresh=function(){this._core.$element.is(":visible")!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},c.prototype.destroy=function(){var a,c;b.clearInterval(this._interval);for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoRefresh=c}(window.Zepto||window.jQuery,window,document),function(a,b,c,d){var e=function(b){this.core=b,this.core.options=a.extend({},e.Defaults,this.core.options),this.swapping=!0,this.previous=d,this.next=d,this.handlers={"change.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&(this.previous=this.core.current(),this.next=a.property.value)},this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":a.proxy(function(a){a.namespace&&(this.swapping="translated"==a.type)},this),"translate.owl.carousel":a.proxy(function(a){a.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()},this)},this.core.$element.on(this.handlers)};e.Defaults={animateOut:!1,animateIn:!1},e.prototype.swap=function(){if(1===this.core.settings.items&&a.support.animation&&a.support.transition){this.core.speed(0);var b,c=a.proxy(this.clear,this),d=this.core.$stage.children().eq(this.previous),e=this.core.$stage.children().eq(this.next),f=this.core.settings.animateIn,g=this.core.settings.animateOut;this.core.current()!==this.previous&&(g&&(b=this.core.coordinates(this.previous)-this.core.coordinates(this.next),d.one(a.support.animation.end,c).css({left:b+"px"}).addClass("animated owl-animated-out").addClass(g)),f&&e.one(a.support.animation.end,c).addClass("animated owl-animated-in").addClass(f))}},e.prototype.clear=function(b){a(b.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},e.prototype.destroy=function(){var a,b;for(a in this.handlers)this.core.$element.off(a,this.handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.Animate=e}(window.Zepto||window.jQuery,window,document),function(a,b,c){var d=function(b){this._core=b,this._interval=null,this._paused=!1,this._handlers={"changed.owl.carousel":a.proxy(function(a){a.namespace&&"settings"===a.property.name&&(this._core.settings.autoplay?this.play():this.stop())},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoplay&&this.play()},this),"play.owl.autoplay":a.proxy(function(a,b,c){a.namespace&&this.play(b,c)},this),"stop.owl.autoplay":a.proxy(function(a){a.namespace&&this.stop()},this),"mouseover.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()},this),"mouseleave.owl.autoplay":a.proxy(function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()},this)},this._core.$element.on(this._handlers),this._core.options=a.extend({},d.Defaults,this._core.options)};d.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},d.prototype.play=function(d,e){this._paused=!1,this._core.is("rotating")||(this._core.enter("rotating"),this._interval=b.setInterval(a.proxy(function(){this._paused||this._core.is("busy")||this._core.is("interacting")||c.hidden||this._core.next(e||this._core.settings.autoplaySpeed)},this),d||this._core.settings.autoplayTimeout))},d.prototype.stop=function(){this._core.is("rotating")&&(b.clearInterval(this._interval),this._core.leave("rotating"))},d.prototype.pause=function(){this._core.is("rotating")&&(this._paused=!0)},d.prototype.destroy=function(){var a,b;this.stop();for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.autoplay=d}(window.Zepto||window.jQuery,window,document),function(a){"use strict";var b=function(c){this._core=c,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":a.proxy(function(b){b.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+a(b.content).find("[data-dot]").andSelf("[data-dot]").attr("data-dot")+"</div>")},this),"added.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,0,this._templates.pop())},this),"remove.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.dotsData&&this._templates.splice(a.position,1)},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&"position"==a.property.name&&this.draw()},this),"initialized.owl.carousel":a.proxy(function(a){a.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))
  },this),"refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))},this)},this._core.options=a.extend({},b.Defaults,this._core.options),this.$element.on(this._handlers)};b.Defaults={nav:!1,navText:["prev","next"],navSpeed:!1,navElement:"div",navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},b.prototype.initialize=function(){var b,c=this._core.settings;this._controls.$relative=(c.navContainer?a(c.navContainer):a("<div>").addClass(c.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=a("<"+c.navElement+">").addClass(c.navClass[0]).html(c.navText[0]).prependTo(this._controls.$relative).on("click",a.proxy(function(){this.prev(c.navSpeed)},this)),this._controls.$next=a("<"+c.navElement+">").addClass(c.navClass[1]).html(c.navText[1]).appendTo(this._controls.$relative).on("click",a.proxy(function(){this.next(c.navSpeed)},this)),c.dotsData||(this._templates=[a("<div>").addClass(c.dotClass).append(a("<span>")).prop("outerHTML")]),this._controls.$absolute=(c.dotsContainer?a(c.dotsContainer):a("<div>").addClass(c.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","div",a.proxy(function(b){var d=a(b.target).parent().is(this._controls.$absolute)?a(b.target).index():a(b.target).parent().index();b.preventDefault(),this.to(d,c.dotsSpeed)},this));for(b in this._overrides)this._core[b]=a.proxy(this[b],this)},b.prototype.destroy=function(){var a,b,c,d;for(a in this._handlers)this.$element.off(a,this._handlers[a]);for(b in this._controls)this._controls[b].remove();for(d in this.overides)this._core[d]=this._overrides[d];for(c in Object.getOwnPropertyNames(this))"function"!=typeof this[c]&&(this[c]=null)},b.prototype.update=function(){var a,b,c,d=this._core.clones().length/2,e=d+this._core.items().length,f=this._core.maximum(!0),g=this._core.settings,h=g.center||g.autoWidth||g.dotsData?1:g.dotsEach||g.items;if("page"!==g.slideBy&&(g.slideBy=Math.min(g.slideBy,g.items)),g.dots||"page"==g.slideBy)for(this._pages=[],a=d,b=0,c=0;e>a;a++){if(b>=h||0===b){if(this._pages.push({start:Math.min(f,a-d),end:a-d+h-1}),Math.min(f,a-d)===f)break;b=0,++c}b+=this._core.mergers(this._core.relative(a))}},b.prototype.draw=function(){var b,c=this._core.settings,d=this._core.items().length<=c.items,e=this._core.relative(this._core.current()),f=c.loop||c.rewind;this._controls.$relative.toggleClass("disabled",!c.nav||d),c.nav&&(this._controls.$previous.toggleClass("disabled",!f&&e<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!f&&e>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!c.dots||d),c.dots&&(b=this._pages.length-this._controls.$absolute.children().length,c.dotsData&&0!==b?this._controls.$absolute.html(this._templates.join("")):b>0?this._controls.$absolute.append(new Array(b+1).join(this._templates[0])):0>b&&this._controls.$absolute.children().slice(b).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(a.inArray(this.current(),this._pages)).addClass("active"))},b.prototype.onTrigger=function(b){var c=this._core.settings;b.page={index:a.inArray(this.current(),this._pages),count:this._pages.length,size:c&&(c.center||c.autoWidth||c.dotsData?1:c.dotsEach||c.items)}},b.prototype.current=function(){var b=this._core.relative(this._core.current());return a.grep(this._pages,a.proxy(function(a){return a.start<=b&&a.end>=b},this)).pop()},b.prototype.getPosition=function(b){var c,d,e=this._core.settings;return"page"==e.slideBy?(c=a.inArray(this.current(),this._pages),d=this._pages.length,b?++c:--c,c=this._pages[(c%d+d)%d].start):(c=this._core.relative(this._core.current()),d=this._core.items().length,b?c+=e.slideBy:c-=e.slideBy),c},b.prototype.next=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!0),b)},b.prototype.prev=function(b){a.proxy(this._overrides.to,this._core)(this.getPosition(!1),b)},b.prototype.to=function(b,c,d){var e;d?a.proxy(this._overrides.to,this._core)(b,c):(e=this._pages.length,a.proxy(this._overrides.to,this._core)(this._pages[(b%e+e)%e].start,c))},a.fn.owlCarousel.Constructor.Plugins.Navigation=b}(window.Zepto||window.jQuery,window,document),function(a,b){var c={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}};if(!b)throw new Error("Modernizr is not loaded.");a.each(["cssanimations","csstransitions","csstransforms","csstransforms3d","prefixed"],function(a,c){if("undefined"==typeof b[c])throw new Error(['Modernizr "',c,'" is not loaded.'].join(""))}),b.csstransitions&&(a.support.transition=new String(b.prefixed("transition")),a.support.transition.end=c.transition.end[a.support.transition]),b.cssanimations&&(a.support.animation=new String(b.prefixed("animation")),a.support.animation.end=c.animation.end[a.support.animation]),b.csstransforms&&(a.support.transform=new String(b.prefixed("transform")),a.support.transform3d=b.csstransforms3d)}(window.Zepto||window.jQuery,window.Modernizr,window,document),function(a){var b=function(c){this._core=c,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&this.update()},this),"changed.owl.carousel":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&"position"==a.property.name&&this.update()},this),"loaded.owl.lazy":a.proxy(function(a){a.namespace&&this._core.settings.autoHeight&&a.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()},this)},this._core.options=a.extend({},b.Defaults,this._core.options),this._core.$element.on(this._handlers)};b.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},b.prototype.update=function(){var b=this._core._current,c=b+this._core.settings.items,d=this._core.$stage.children().toArray().slice(b,c);heights=[],maxheight=0,a.each(d,function(b,c){heights.push(a(c).height())}),maxheight=Math.max.apply(null,heights),this._core.$stage.parent().height(maxheight).addClass(this._core.settings.autoHeightClass)},b.prototype.destroy=function(){var a,b;for(a in this._handlers)this._core.$element.off(a,this._handlers[a]);for(b in Object.getOwnPropertyNames(this))"function"!=typeof this[b]&&(this[b]=null)},a.fn.owlCarousel.Constructor.Plugins.AutoHeight=b}(window.Zepto||window.jQuery,window,document);var AT=AT||{};AT.PageControl=function(a){"use strict";function b(b){var c,d=null,e=null,f=null,g=[],h=5e3,i=!0,j=3,k={callback:a.noop,nav_id:"menu",nav_target:"body>div:first",section_selector:"#fullpage > section",slide_selector:".slide",arrow_selector:".nav-arrow",mainnav_selector:".navbar"},l=a.extend(k,b),m=function(){e=a(l.section_selector),f=a(l.mainnav_selector),e.length>=j&&n(),o(),p()},n=function(){d=a("<div/>").attr("id",l.nav_id);var b="<div>";b+="<ul>",e.each(function(c,d){var e=a(d).data("anchor");if(!isDef(e))return!0;g.push(e);var f=0===c?"active":"";b+="<li data-menuanchor="+e+" class="+f+"><a href=#"+e+">"+a(d).data("short-name")+"</a></li>"}),b+="</ul></div>",d.html(b).appendTo(l.nav_target)},o=function(){a("#fullpage").fullpage({menu:"#"+l.nav_id,resize:!1,css3:!0,easing:"easeInOutCirc",easingcss3:"cubic-bezier(0.225, 0.000, 0.000, 1)",scrollingSpeed:750,scrollBar:!0,anchors:g,autoScrolling:!1,responsive:!1,animateAnchor:!1,sectionSelector:l.section_selector,slideSelector:l.slide_selector,navigation:!1,verticalCentered:!1,keyboardScrolling:!1,scrollOverflow:!0,slidesNavigation:!1,recordHistory:!1,normalScrollElements:".scrollingText",afterRender:function(){isFunc(l.callback)&&l.callback()},onLeave:function(b,c,d){1===c?(q(),i=!0,a("#fullpage").css({"-webkit-transform":"translate3d(0,0,0)",transform:"translate3d(0,0,0)"})):(r(),i=!1),(AT.isMobile||Modernizr.touch)&&"up"===d&&(q(),i=!0),a(document).trigger("AT-USER-ACTION",[{targetElement:a(document)}]),AT.parallaxr.disableParallax(a("#fullpage > section").eq(b-1))},afterLoad:function(b,c){a.fn.lazyloadanything("load"),AT.parallaxr.enableParallax(a("#fullpage > section").eq(c-1)),s()},afterSlideLoad:function(a,b,c,d){console.log("load",a,b,c,d)},onSlideLeave:function(a,b,c,d){console.log("leave",a,b,c,d)}})},p=function(){a(document.body).on("click touchstart","#menu",function(){clearTimeout(c),null!==d&&(a(this).closest("#menu").length?(d[0].className="open",s()):d[0].className="")}),a("#menu").hover(function(){d[0].className="open"},function(){d[0].className=""}),a(".nav-arrow").click(function(b){b.preventDefault(),a(this).hasClass("up")?a.fn.fullpage.moveTo(g[0]):a.fn.fullpage.moveSectionDown()})},q=function(){f.removeClass("navbar-unpinned").addClass("navbar-pinned")},r=function(){f.removeClass("navbar-pinned").addClass("navbar-unpinned")},s=function(){clearTimeout(c),c=setTimeout(function(){null!==d&&(d[0].className="")},h)};this.goToSection=function(b){a.fn.fullpage.moveTo(b)},this.goToSlide=function(){a.fn.fullpage.moveTo(section,slide)},m()}return b}(jQuery,window,document);var AT=AT||{};AT.Parallaxr=function(a){"use strict";function b(b){var c={selector:".parallaxScene",parallaxDefaults:{calibrateX:!1,calibrateY:!1,scalarX:4,scalarY:5}},d=a.extend(c,b),e=function(){};this.enableParallax=function(b){var c=a(d.selector,b);isDef(c.data("parallax"))&&!AT.isMobile&&c.parallax("enable")},this.disableParallax=function(b){var c=a(d.selector,b);isDef(c.data("parallax")&&!AT.isMobile)&&c.parallax("disable")},this.initParallax=function(b){AT.isMobile||a(d.selector,b).parallax(d.parallaxDefaults)},e()}return b}(jQuery,window,document);var AT=AT||{};AT.Popups=function(a){"use strict";function b(){var b={youtube:{autoplay:{single:"1",gallery:"0"},relatedVideos:"0",modestBranding:"1",colour:"red",theme:"dark",showInfo:"0",annotations:"3"},magnific:{zoomClass:"mfp-zoom",fadeClass:"mfp-fade",fadeDelay:500,mobileWidth:768}},c={youtube:"popup-youtube",image:"popup-image",gallery:"popup-gallery"},d={youtube:"."+c.youtube,image:"."+c.image,gallery:"."+c.gallery},e=function(){f(),g(),h(),i()},f=function(){a(d.youtube).each(function(){var c=a(this);c.closest(d.gallery).length<1&&c.magnificPopup({disableOn:b.magnific.mobileWidth,type:"iframe",mainClass:b.magnific.fadeClass,removalDelay:b.magnific.fadeDelay,iframe:{patterns:{youtube:{src:"//www.youtube.com/embed/%id%?autoplay="+b.youtube.autoplay.single+"&rel="+b.youtube.relatedVideos+"&modestbranding="+b.youtube.modestBranding+"&color="+b.youtube.colour+"&theme="+b.youtube.theme+"&showinfo="+b.youtube.showInfo+"&iv_load_policy="+b.youtube.annotations}}}})})},g=function(){a(".popup-image").each(function(){var c=a(this);c.closest(d.gallery).length<1&&c.magnificPopup({type:"image",closeOnContentClick:!0,mainClass:b.magnific.fadeClass,removalDelay:b.magnific.fadeDelay,image:{verticalFit:!0}})})},h=function(){a(".popup-gallery").each(function(){a(this).magnificPopup({delegate:d.image+","+d.youtube,type:"image",mainClass:b.magnific.fadeClass,removalDelay:b.magnific.removalDelay,gallery:{enabled:!0,navigateByImgClick:!1,preload:[1,1]},iframe:{patterns:{youtube:{src:"//www.youtube.com/embed/%id%?autoplay="+b.youtube.autoplay.gallery+"&rel="+b.youtube.relatedVideos+"&modestbranding="+b.youtube.modestBranding+"&color="+b.youtube.colour+"&theme="+b.youtube.theme+"&showinfo="+b.youtube.showInfo+"&iv_load_policy="+b.youtube.annotations}},markup:'<div class="mfp-iframe-scaler"><div class="mfp-close"></div><iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe><div class="mfp-bottom-bar"><div class="mfp-title"></div><div class="mfp-counter"></div></div></div>'},callbacks:{elementParse:function(a){a.el.hasClass(c.image)?a.type="image":a.el.hasClass(c.youtube)&&(a.type="iframe")},markupParse:function(a,b,c){b.title=c.el.attr("title")}}})})},i=function(){AT.isMobile&&a(".hotel-room-explorer").each(function(){a(this).find(".twoPanelCarousel").magnificPopup({delegate:"a",type:"image",closeOnContentClick:!0,mainClass:b.magnific.fadeClass,removalDelay:b.magnific.fadeDelay})})};e()}return b}(jQuery,window,document);var AT=AT||{};AT.BookingBar=function(a){"use strict";function b(){var b=a(".booking-form-bar"),c=b.find("#shortStayQuickBook"),d=b.find("#parkQuickBook"),e=function(){a(".booking-form-bar .date").datepicker({format:"yyyy-mm-dd",startDate:"now",endDate:"+1y",orientation:"bottom left",autoclose:!0,todayHighlight:!0}).datepicker("setDate",new Date).datepicker("update"),a("#quickBookFormSwitch .btn").click(function(){var b=a(this);b.hasClass("btn-default")&&f(b)}),window.location.pathname.indexOf("places-to-stay/stay-nearby")>=0&&a("#shortStayQuickBook").on("click","button",function(a){a.preventDefault(),window.open("http://alton.merlinbreaks.co.uk/masterAlton/?agent=ATO01&utm_campaign=Short-Breaks&utm_medium=Brand&utm_source=AltonTowerscom&utm_content=Search-All-Hotels-Engine-Button&parkCode=THMATA")}),(window.location.pathname.indexOf("book-my-trip/short-breaks")>=0||window.location.pathname.indexOf("places-to-stay")>=0)&&f("short-breaks")},f=function(a){"object"==typeof a&&(a=a.text().toLowerCase()),a.indexOf("short")>=0||a.indexOf("break")>=0?g():a.indexOf("ticket")>=0&&h(),i()},g=function(){c.show(),d.hide()},h=function(){c.hide(),d.show()},i=function(){b.find(".btn").each(function(){var b=a(this);b.hasClass("btn-default")?b.removeClass("btn-default"):b.addClass("btn-default")})};e()}return b}(jQuery,window,document);var prices={oneday:{general:{productId:"5911000095",adult:{type:"AZ001",walk:50.4,1:50.4,"2-6":45.36,"7+":37.8},child:{type:"AZ002",walk:45.6,1:45.6,"2-6":41.04,"7+":34.2},senior:{type:"AZ003",walk:25.2,1:25.2,"2-6":22.68,"7+":18.9},family:{type:"AZ004",walk:43.8,1:43.8,"2-6":39.42,"7+":32.85}},parentAndToddler:{productId:"303213",adult:{type:"AZ004A",walk:43.8,1:43.8,"2-6":39.42,"7+":32.85},child:{type:"AZ004B",walk:43.8,1:43.8,"2-6":39.42,"7+":32.85},toddler:{type:"AZ004C",walk:0,1:0,"2-6":0,"7+":0},senior:{type:"AZ003B",walk:25.2,1:25.2,"2-6":22.68,"7+":18.9}},smallGroup:{productId:"110623",adult:{type:"AZ201",walk:50.4,1:50.4,"2-6":30.24,"7+":30.24},child:{type:"AZ202",walk:45.6,1:45.6,"2-6":27.36,"7+":27.36},senior:{type:"AZ203",walk:25.2,1:25.2,"2-6":17.64,"7+":17.64}},largeGroup:{productId:"5911000097",adult:{type:"AZ019",walk:50.4,1:50.4,"2-6":30.24,"7+":30.24},child:{type:"AZ020",walk:45.6,1:45.6,"2-6":27.36,"7+":27.36},senior:{type:"AZ021",walk:25.2,1:25.2,"2-6":16.38,"7+":16.38}}},twoday:{general:{productId:"5911000096",adult:{type:"AZ010",walk:57.9,1:57.9,"2-6":52.86,"7+":45.3},child:{type:"AZ011",walk:53.1,1:53.1,"2-6":48.54,"7+":41.7},senior:{type:"AZ012",walk:32.7,1:32.7,"2-6":30.18,"7+":26.4},family:{type:"AZ014",walk:51.3,1:51.3,"2-6":46.92,"7+":40.35}},parentAndToddler:{productId:"303218",adult:{type:"AZ014A",walk:51.3,1:51.3,"2-6":46.92,"7+":40.35},child:{type:"AZ014B",walk:51.3,1:51.3,"2-6":46.92,"7+":40.35},toddler:{type:"AZ014C",walk:0,1:0,"2-6":0,"7+":0},senior:{type:"AZ012D",walk:32.7,1:32.7,"2-6":30.18,"7+":26.4}},smallGroup:{productId:"122623",adult:{type:"AZ308",walk:57.9,1:57.9,"2-6":42.78,"7+":42.78},child:{type:"AZ309",walk:53.1,1:53.1,"2-6":39.42,"7+":39.42},senior:{type:"AZ310",walk:32.7,1:32.7,"2-6":25.14,"7+":25.14}},largeGroup:{productId:"123601",adult:{type:"AZ311",walk:57.9,1:57.9,"2-6":40.26,"7+":40.26},child:{type:"AZ312",walk:53.1,1:53.1,"2-6":37.14,"7+":37.14},senior:{type:"AZ313",walk:32.7,1:32.7,"2-6":23.88,"7+":23.88}}}},waterparkPrices={productId:"5911000105",adult:{type:"AZ041",walk:17.5,1:15,"2-6":15,"7+":15},child:{type:"AZ042",walk:12.75,1:10.5,"2-6":10.5,"7+":10.5},senior:{type:"AZ043",walk:8.5,1:7.5,"2-6":7.5,"7+":7.5},family:{type:"AZ045",walk:14.2,1:12,"2-6":12,"7+":12},toddler:{type:"AZ337",walk:0,1:0,"2-6":0,"7+":0}},promotionPrices={halfTerm:{start:"2015-02-14",end:"2015-02-22",oneday:{general:{productId:"5911000095",adult:{type:"AZ001",walk:23,1:23,"2-6":20.7,"7+":17.25},child:{type:"AZ002",walk:18,1:18,"2-6":16.2,"7+":13.5},senior:{type:"AZ003",walk:11.5,1:11.5,"2-6":10.35,"7+":8.63},family:{type:"AZ004",walk:18,1:18,"2-6":16.2,"7+":13.5}},parentAndToddler:{productId:"303213",adult:{type:"AZ004A",walk:18,1:18,"2-6":16.2,"7+":13.5},child:{type:"AZ004B",walk:18,1:18,"2-6":16.2,"7+":13.5},toddler:{type:"AZ004C",walk:0,1:0,"2-6":0,"7+":0},senior:{type:"AZ003B",walk:11.5,1:11.5,"2-6":10.35,"7+":8.63}},smallGroup:{productId:"110623",adult:{type:"AZ201",walk:23,1:23,"2-6":16.1,"7+":16.1},child:{type:"AZ202",walk:18,1:18,"2-6":12.6,"7+":12.6},senior:{type:"AZ203",walk:11.5,1:11.5,"2-6":10.5,"7+":10.5}},largeGroup:{productId:"5911000097",adult:{type:"AZ019",walk:23,1:23,"2-6":16.1,"7+":16.1},child:{type:"AZ020",walk:18,1:18,"2-6":12.6,"7+":12.6},senior:{type:"AZ021",walk:11.5,1:11.5,"2-6":10.5,"7+":10.5}}},twoday:{general:{productId:"5911000096",adult:{type:"AZ010",walk:30.5,1:30.5,"2-6":28.2,"7+":24.75},child:{type:"AZ011",walk:25.5,1:25.5,"2-6":23.7,"7+":21},senior:{type:"AZ012",walk:19,1:19,"2-6":17.85,"7+":16.125},family:{type:"AZ014",walk:25.5,1:25.5,"2-6":23.7,"7+":21}},parentAndToddler:{productId:"303218",adult:{type:"AZ014A",walk:25.5,1:25.5,"2-6":23.7,"7+":21},child:{type:"AZ014B",walk:25.5,1:25.5,"2-6":23.7,"7+":21},toddler:{type:"AZ014C",walk:0,1:0,"2-6":0,"7+":0},senior:{type:"AZ012D",walk:19,1:19,"2-6":17.85,"7+":16.125}},smallGroup:{productId:"122626",adult:{type:"AZ308",walk:30.5,1:30.5,"2-6":23.6,"7+":23.6},child:{type:"AZ309",walk:25.5,1:25.5,"2-6":20.1,"7+":20.1},senior:{type:"AZ310",walk:19,1:19,"2-6":18,"7+":18}},largeGroup:{productId:"123601",adult:{type:"AZ311",walk:30.5,1:30.5,"2-6":23.6,"7+":23.6},child:{type:"AZ312",walk:25.5,1:25.5,"2-6":20.1,"7+":20.1},senior:{type:"AZ313",walk:19,1:19,"2-6":18,"7+":18}}}}},AT=AT||{};AT.TicketTable=function(a){"use strict";function b(){var b,c="far-advance-tickets",d="medium-advance-tickets",e="same-day-tickets",f=(a(".toggle-row"),a(".ticket-selector")),g=f.find(".btn"),h=function(){a(".ticket-table").each(function(){i(a(this),"sameDay"),a(this).hasClass("table-hover")||a(this).hasClass("no-hover")||(l(a(this)),k(a(this),"col-b"))}),m(),n()},i=function(b,f,g){var h,i,k='[data-col="'+g+'"]',l={sameDay:function(){h=b.find(a("."+e+k)),i=b.find(a("."+d+k)).add(b.find(a("."+c+k)))},medium:function(){h=b.find(a("."+d+k)),i=b.find(a("."+e+k)).add(b.find(a("."+c+k)))},far:function(){h=b.find(a("."+c+k)),i=b.find(a("."+e+k)).add(b.find(a("."+d+k)))}};"undefined"==typeof g&&(k=""),"function"==typeof l[f]?(l[f](),i.addClass("hidden"),b.hasClass("no-sub-columns")?h.removeClass("hidden"):h.removeClass("hidden").attr("colspan","3")):(k="",j())},j=function(){a("."+c).add(a("."+d)).add(a("."+e)).removeClass("hidden")},k=function(a,b){("theme-park-tickets"===a.closest("section").data("anchor")||"theme_park_tickets"===a.closest("section").data("anchor"))&&a.find('[data-col*="'+b+'"]').addClass("active")},l=function(b){var c,d=b.find('[data-col*="col-"]');b.on("mouseenter",function(){d.removeClass("active")}).on("mouseleave",function(){k(b,"col-b")}),d.on("mouseenter",function(){c=a(this).data("col"),b.find(a('[data-col="'+c+'"]')).addClass("active")}).on("mouseleave",function(){d.removeClass("active")})},m=function(){g.on("click",function(){var b=a(this).closest(".ticket-table"),c=a(this).data("advance"),d=a(this).closest("th"),e=d.data("col");a(this).addClass("active").siblings("button").removeClass("active"),i(b,c,e)})},n=function(){a(window).load(function(){b=a(".tickets-mobile").find(".list-group"),b.each(function(){var b,c=a(this).find(".row-header"),d=[];c.each(function(){d.push(a(this).width())}),b=Math.max.apply(Math,d),c.width(b)})})};this.forceResize=function(){isDef(b)&&(b.find(".row-header").removeAttr("style"),n())},h()}return b}(jQuery,window,document);var AT=AT||{};AT.TicketWizard=function(a){"use strict";function b(b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p=moment().startOf("day"),q=!1,r=!1,s={adults:1,children:0,toddlers:0,senior:0},t={discount:"general",dayType:"oneday",daysInAdvance:"1",themepark:{family:{min:3,adultsMax:2,childrenMin:1},parentAndToddler:{max:6},smallGroup:{min:7,max:9},largeGroup:{min:10}},waterpark:{family:{min:3,max:6,adultsMax:2}}},u=a.extend(b,t),v={active:!1,key:""},w={themepark:"https://secure.altontowers.com/webapp/wcs/stores/servlet/CategoryDisplay?langId=-1&storeId=10651&catalogId=15551&categoryId=16602",waterpark:"https://secure.altontowers.com/webapp/wcs/stores/servlet/CategoryDisplay?langId=-1&storeId=10651&catalogId=15551&categoryId=16607",empty:"https://secure.altontowers.com/webapp/wcs/stores/servlet/StoreView?storeId=10651"},x=a("#wizardSelector"),y=function(){return a.cookie("ticketwizard")?(a.removeCookie("ticketwizard"),void setTimeout(function(){window.location.reload()},500)):void(u.id&&u.version&&(AT.Detect.getParam("debug")&&(q=!0),c=a("#"+u.id),d=a(".ticketDatePicker > div",c),e=a("#discountType span",c),f=a("#oneday",c),g=a("#twoday",c),h=a("#upsell .chooseTwoDay",c),i=a(".output",c),j=a(".prompt",c),k=a(".closedMessage",c),o="theme"===u.version?AT.dataHandler.getFirstThemeParkDay():AT.dataHandler.getFirstWaterParkDay(),o=moment(o).isBefore(p)?p.format():o,B(),z(),J(),A()))},z=function(){f.click(E),g.click(F),h.click(function(){a(this).text().toLowerCase()===a(this).data("initial-text").toLowerCase()?F():E()}),c.find(".spinbox").on("changed.fu.spinbox",function(){G(a(this).find("input:first")[0].id,a(this).spinbox("value"))}),d.on("changeDate",function(a){var b="theme"===u.version?AT.dataHandler.pluckThemeParkDate:AT.dataHandler.pluckWaterParkDate;n=moment(a.date).startOf("day").format(),u.daysInAdvance=P(n),O(n),"Closed"===b(moment(a.date).format("YYYY-MM-DD"))?(r=!0,L()):(r=!1,J())}),d.on("click",function(a){a.target.className.indexOf("closed")>-1&&L()}),a('a[type="submit"]').off("click"),a('a[type="submit"]').on("click",function(){var b=new Date,c=60;b.setTime(b.getTime()+60*c*1e3),a.cookie("ticketwizard","true",{expires:b})}),x.on("click",function(){A()})},A=function(){x.find(".btn").first().hasClass("btn-primary")?x.addClass("theme-park-active"):x.removeClass("theme-park-active")},B=function(){AT.Detect.getParam("chosendate")?C():D(N()?p.isBefore(o)?moment(o).startOf("day").format():moment(o).startOf("day").add(1,"d").format():moment(o).startOf("day").format())},C=function(){var a=AT.Detect.getParams();if(a){if(a.chosendate){var b=moment(a.chosendate,"YYYY-MM-DD").startOf("day");D(b.isBefore(o)?moment(o).startOf("day").format():b.format())}"2"===a.days&&"theme"===u.version&&F()}},D=function(a){n=a,O(a),d.datepicker("setDate",moment(n).format("DD-MM-YYYY")),u.daysInAdvance=P(n)},E=function(){f[0].className="btn btn-primary",g[0].className="btn",u.dayType="oneday",h.text(h.data("initial-text")),J()},F=function(){f[0].className="btn",g[0].className="btn btn-primary",u.dayType="twoday",h.text(h.data("alt-text")),J()},G=function(a,b){s[a]=parseInt(b,10),H(),"theme"===u.version&&I(),J()},H=function(){if("theme"===u.version){var a=s.adults+s.children+s.senior,b=s.adults+s.children,c=s.adults+s.senior;u.discount=a>=u.themepark.largeGroup.min?"largeGroup":a>=u.themepark.smallGroup.min&&a<=u.themepark.smallGroup.max?"smallGroup":c>0&&s.toddlers>0&&b<=u.themepark.parentAndToddler.max?"parentAndToddler":b>=u.themepark.family.min&&s.adults>0&&s.adults<=u.themepark.family.adultsMax&&s.children>=u.themepark.family.childrenMin?"family":"general"}else if("water"===u.version){var d=s.adults+s.children;u.discount=d>=u.waterpark.family.min&&d<=u.waterpark.family.max&&s.adults>0&&s.adults<=u.waterpark.family.adultsMax?"family":"general"}},I=function(){switch(u.discount){case"largeGroup":e.eq(2).addClass("selected").siblings().removeClass("selected");break;case"smallGroup":e.eq(1).addClass("selected").siblings().removeClass("selected");break;default:e.eq(0).addClass("selected").siblings().removeClass("selected")}},J=function(){l=0,m=0;var a,b;if("theme"===u.version)if(v.active){var c=v.key;b=promotionPrices[c]}else b=prices;else b=waterparkPrices;"theme"===u.version?"family"===u.discount?(a=b[u.dayType].general,l+=(s.adults+s.children)*a.family.walk,l+=s.senior*a.senior.walk,m+=(s.adults+s.children)*a.family[u.daysInAdvance],m+=s.senior*a.senior[u.daysInAdvance]):"parentAndToddler"===u.discount?(a=b[u.dayType].parentAndToddler,l+=s.adults*a.adult.walk,l+=s.children*a.child.walk,l+=s.senior*a.senior.walk,l+=s.toddlers*a.toddler.walk,m+=s.adults*a.adult[u.daysInAdvance],m+=s.children*a.child[u.daysInAdvance],m+=s.senior*a.senior[u.daysInAdvance],m+=s.toddlers*a.toddler[u.daysInAdvance]):(a=b[u.dayType][u.discount],l+=s.adults*a.adult.walk,l+=s.children*a.child.walk,l+=s.senior*a.senior.walk,m+=s.adults*a.adult[u.daysInAdvance],m+=s.children*a.child[u.daysInAdvance],m+=s.senior*a.senior[u.daysInAdvance]):"water"===u.version&&("family"===u.discount?(l+=(s.adults+s.children)*b.family.walk,l+=s.senior*b.senior.walk,l+=s.toddlers*b.toddler.walk,m+=(s.adults+s.children)*b.family[u.daysInAdvance],m+=s.senior*b.senior[u.daysInAdvance],m+=s.toddlers*b.toddler[u.daysInAdvance]):(l+=s.adults*b.adult.walk,l+=s.children*b.child.walk,l+=s.senior*b.senior.walk,l+=s.toddlers*b.toddler.walk,m+=s.adults*b.adult[u.daysInAdvance],m+=s.children*b.child[u.daysInAdvance],m+=s.senior*b.senior[u.daysInAdvance],m+=s.toddlers*b.toddler[u.daysInAdvance])),K(),Q()},K=function(){r||(k.hide(),1>m?(i.hide(),j.show()):(i.show(),j.hide(),a(".totalPrice",i)[0].innerHTML=m.toFixed(2),a(".totalVAT",i)[0].innerHTML=(m/1.2*.2).toFixed(2),"general"!==u.discount&&"1"!==u.daysInAdvance||"family"===u.discount&&"water"===u.version?(a(".specialDiscount",i).show(),a(".plainDiscount",i).hide(),a(".specialDiscountPrice",i)[0].innerHTML=(l-m).toFixed(2),a(".specialDiscountName",i)[0].innerHTML=M()):l>m?(a(".specialDiscount",i).hide(),a(".plainDiscount",i).show(),a(".plainDiscountPrice",i)[0].innerHTML=(l-m).toFixed(2)):(a(".specialDiscount",i).hide(),a(".plainDiscount",i).hide())))},L=function(){r=!0,i.hide(),j.hide(),k.show()},M=function(){var a;switch(u.discount){case"smallGroup":a="Group";break;case"largeGroup":a="Large Group";break;case"family":a="Family";break;case"parentAndToddler":a="Parent and Toddler"}return a},N=function(){return(new Date).getHours()>=15},O=function(a){for(var b in promotionPrices){var c=moment(a,"YYYY-MM-DD"),d=moment(promotionPrices[b].start,"YYYY-MM-DD"),e=moment(promotionPrices[b].end,"YYYY-MM-DD");c>=d&&e>=c?(v.active=!0,v.key=b):(v.active=!1,v.key="")}},P=function(a){var b=moment(a).startOf("day"),c=b.diff(p,"days");return 2>c?"1":c>1&&7>c?"2-6":"7+"},Q=function(){var a,b=w.empty,c=[];"theme"===u.version?(a=prices[u.dayType][u.discount],"family"===u.discount?(a=prices[u.dayType].general,b+="&productId="+a.productId,c.push([a.family.type,s.adults+s.children]),s.senior>0&&c.push([a.senior.type,s.senior])):"parentAndToddler"===u.discount?(b+="&productId="+a.productId,s.adults>0&&c.push([a.adult.type,s.adults]),s.children>0&&c.push([a.child.type,s.children]),s.senior>0&&c.push([a.senior.type,s.senior]),s.toddlers>0&&c.push([a.toddler.type,s.toddlers])):(b+="&productId="+a.productId,s.adults>0&&c.push([a.adult.type,s.adults]),s.children>0&&c.push([a.child.type,s.children]),s.senior>0&&c.push([a.senior.type,s.senior]))):"water"===u.version&&(a=waterparkPrices,b+="&productId="+a.productId,"family"===u.discount?c.push([a.family.type,s.adults+s.children]):(s.adults>0&&c.push([a.adult.type,s.adults]),s.children>0&&c.push([a.child.type,s.children])),s.senior>0&&c.push([a.senior.type,s.senior]),s.toddlers>0&&c.push([a.toddler.type,s.toddlers])),b+="&visitDate="+moment(n).format("DD-MM-YYYY");for(var d=0;d<c.length;d++)b+="&visitorType_"+(d+1)+"="+c[d].join("_");q&&S(b),R(b)},R=function(b){a('a[type="submit"]',c).attr("href",b)},S=function(b){a("#print").css({margin:"10px 0"}).html(b)};y()}return b}(jQuery,window,document);var AT=AT||{};!function(a,b,c){"use strict";a(c).ready(function(){function d(){a.fn.lazyloadanything("load"),AT.carouselControl=new AT.Carousels,AT.TicketTables=new AT.TicketTable,new AT.AttractionsGrid,new AT.TabControl,new AT.Popups,a(".additional-needs-form").length&&new AT.AdditionalNeedsForm;var b=function(){a("body").on("click",function(b){a('[data-toggle="tooltip"]').each(function(){a(this).is(b.target)||0!==a(this).has(b.target).length||0!==a(".tooltip").has(b.target).length||a(this).tooltip("hide")})}),a('[data-toggle="tooltip"]').tooltip()};b(),(a(".hotel_rooms").length||".hotel_room_explorer$".length)&&(AT.RoomManager=new AT.HotelRooms),new AT.BookingBar,a(".ticket_wizard, .calendar").length&&(AT.dataHandler=new AT.DataHandler({callback:function(b){b&&new AT.DatePickers,a(".ticket_wizard").length&&(b?(new AT.TicketWizard({id:"themeParkTicketForm",version:"theme"}),new AT.TicketWizard({id:"waterParkTicketForm",version:"water"})):(a(".ticket_wizard").find(".output").hide(),a(".ticket_wizard").find(".prompt").hide(),a(".ticket_wizard").find(".loadFailMessage").show(),a(".ticket_wizard").find(".wizardWrapper").addClass("inactive")),a("#wizardSelector .btn").click(function(){a(this).addClass("btn-primary").siblings().removeClass("btn-primary"),0===a(this).index()?(a("#themeParkTicketForm").show(),a("#waterParkTicketForm").hide()):(a("#themeParkTicketForm").hide(),a("#waterParkTicketForm").show())}),AT.Detect.getParam("waterpark")&&a("#wizardSelector .btn").eq(1).trigger("click"))}})),a(".nav-notification-ticker").find("ul").webTicker({startEmpty:!1,speed:25,duplicate:!0}),a(".booking-form-bar-hex").length>0&&new AT.HotelExtras,a(".hotel_carousel").add(".big_six_rides_carousel").find(".owl-item").each(function(){var b=a(this).find(".imageWrapper"),c=b.find("img").length;b.addClass(1===c?"single-item":"multiple-items"),b.closest(".owl-carousel").trigger("refresh.owl.carousel")});var d=a(".blog-post").find(".post-date");if(d.length>0){var e=moment(d.attr("datetime")).fromNow(),f=d.find(".date-inner");f.text(e)}a(c).on("click","a",function(b){var c=a(this).attr("href");if(AT.isMobile&&0===c.indexOf("#")&&c.length>1){var d=c.slice(1),e=a('[data-anchor="'+d+'"]');if(e.length>0){var f=e.offset().top;a("html, body").animate({scrollTop:f}),b.preventDefault()}}})}AT.carouselControl=null,AT.isFullPageSlider=AT.Detect.isFullPageSlidingTemplate();var e='We use cookies on this site. By continuing to browse you are consenting to this. Find out <a href="/cookies">why we use cookies and how to manage your settings</a>.<button class="cookie-close">&times;</button>',f=1e4;isDef(a.cookie("AltonTowersCookieConcent"))||(a.cookie("AltonTowersCookieConcent","Accepted"),a('<p class="cookieMessage">'+e+"</p>").appendTo(document.body).on("click",".cookie-close",function(){a(this).closest(".cookieMessage").slideUp({queue:!1})}).delay(f).slideUp()),a(document.body).on("mousedown touchstart",function(b){a(this).trigger("AT-USER-ACTION",[{targetElement:b.target,targetEvent:b.type}])});var g="currentLocation",h=a("#navbar .dropdown"),i=a("#navbar").find("."+g),j=function(b){k(),a(b).addClass(g)},k=function(){h.removeClass(g)},l=function(){k(),i.length>0&&i.addClass(g)};if(Modernizr.touch)h.click(function(b){"span"===b.target.nodeName.toLowerCase()&&(b.preventDefault(),a(this).hasClass(g)?l():(k(),a(this).toggleClass(g)))});else{var m;h.hover(function(){var a=this;clearTimeout(m),m=setTimeout(function(){j(a)},250)},function(){clearTimeout(m),m=setTimeout(function(){l()},250)})}a(document).on("AT-USER-ACTION",function(b,c){"touchstart"===c.targetEvent&&a(c.targetElement).closest("#navbar").length<1&&l()}),AT.matchHeight=new AT.MatchHeight(["three_column_promo","three_column_carousel"]),AT.parallaxr=new AT.Parallaxr,new AT.LazyLoadr;var n=a(".menuLink").find(".burger");if(AT.mobileMenu=a("#mmenu").show().mmenu({slidingSubmenus:!1,offCanvas:{position:"right",zposition:"front"}}).on("opening.mm",function(){n.addClass("cross")
  }).on("closing.mm",function(){n.removeClass("cross")}).on("click",".mm-subopen",function(){a(this).closest("li").siblings("li").removeClass("mm-opened")}),AT.isFullPageSlider&&!AT.isMobile)new AT.PageControl({callback:d}),a(".nav-arrow").show();else{var o=AT.Detect.isPortrait()?AT.windowSize.height:2*AT.windowSize.height;o=AT.Detect.isMobile()?window.screen.availHeight:o,AT.isFullPageSlider&&AT.isMobile?(a("#fullpage > section").each(function(){var b=a(this).hasClass("forceHeight")?o:"auto";(a(this).hasClass("hotel_carousel")||a(this).hasClass("big_six_rides_carousel"))&&(o=0),a(this).css({height:b})}),a("#fullpage .doubleHeight").height(2*o)):a(".navbar").headroom({offset:200,tolerance:5,classes:{initial:"navbar",pinned:"navbar-pinned",unpinned:"navbar-unpinned",top:"navbar-top",notTop:"navbar-not-top"}}),d()}AT.BigSixComp=new AT.BigSixCompForm(!0,!0),a(b).resize(a.debounce(250,function(){AT.windowSize=AT.Detect.getWindowSize(),AT.matchHeight.matchAll(),AT.BigSixComp.setNeightbourHeight(),AT.BigSixComp.alignBlurb(),AT.BigSixComp.setTermsConditionsHeight()})),TweenMax.staggerFrom([".bigsix-drops .terror-num div",".bigsix-drops .terror-container div",".bigsix-drops .drops-container div"],.8,{y:-200,ease:Back.easeOut,repeat:-1,repeatDelay:1,yoyo:!0},.2),TweenMax.staggerFrom([".bigsix-distancedrops .terror-num div",".bigsix-distancedrops .terror-container div",".bigsix-distancedrops .drops-container div"],.8,{y:-200,ease:Back.easeOut,repeat:-1,repeatDelay:1,yoyo:!0},.2),TweenMax.staggerFrom([".distance-container-main .dist-num",".distance-container-main .distance"],.7,{x:-250,ease:Power2.easeOut,repeat:-1,repeatDelay:1,yoyo:!0},.1),TweenMax.staggerFrom([".distancelaunched-container-main .dist-num",".distancelaunched-container-main .distance"],.7,{x:250,ease:Power2.easeOut,repeat:-1,repeatDelay:1,yoyo:!0},.1),TweenMax.staggerFrom([".bigsix-freefalls .falls",".bigsix-freefalls .free",".bigsix-freefalls .free-fall-num"],.4,{y:-200,ease:Strong.easeOut,repeat:-1,repeatDelay:2,yoyo:!0},.2),TweenMax.staggerFrom([".bigsix-airtime .greenback"],.5,{y:-1e3,ease:Linear.easeOut,repeat:-1,repeatDelay:3.2,yoyo:!0},0),TweenMax.staggerFrom([".bigsix-airtime .cloud1",".bigsix-airtime .cloud2",".bigsix-airtime .cloud3",".bigsix-airtime .cloud4",".bigsix-airtime .cloud5"],.7,{y:-450,ease:Back.easeOut,repeat:-1,repeatDelay:3,yoyo:!0},.2),TweenMax.staggerFrom([".bigsix-airtime-small .cloud1",".bigsix-airtime-small .cloud2",".bigsix-airtime-small .cloud3",".bigsix-airtime-small .cloud4",".bigsix-airtime-small .cloud5"],.7,{y:-450,ease:Back.easeOut,repeat:-1,repeatDelay:3,yoyo:!0},.2);var p=new TimelineMax;p.staggerFrom([".bigsix-loops .number-animator",".bigsix-loops .big-circle",".bigsix-loops .small-circle"],.4,{opacity:0,ease:Back.easeOut,repeat:-1,repeatDelay:1.5,yoyo:!0},.3),p.staggerTo([".bigsix-loops .number-animator",".bigsix-loops .big-circle",".bigsix-loops .small-circle"],.4,{opacity:1,ease:Back.easeOut,repeat:-1,repeatDelay:1.5,yoyo:!0},.3),TweenMax.staggerTo(".bigsix-loops .number-animator",1,{opacity:1,rotation:720,ease:Back.easeOut,delay:1,repeatDelay:3,repeat:-1}),TweenMax.staggerFrom([".bigsix-inverted .inverted"],1,{rotationX:180,transformOrigin:"center bottom",ease:Power4.easeOut,repeat:-1,yoyo:!0,repeatDelay:3},.1),TweenMax.staggerTo([".bigsix-inverted .inverted-num",".bigsix-inverted .spent"],1,{opacity:0,y:-100,ease:Power4.easeOut,repeat:-1,yoyo:!0,repeatDelay:3},.1)})}(jQuery,window,document);var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-1604553-1"]),_gaq.push(["_setDomainName","altontowers.com"]),_gaq.push(["_trackPageLoadTime"]),_gaq.push(["_setAllowLinker",!0]),_gaq.push(["_trackPageview"]),function(){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=("https:"==document.location.protocol?"https://":"http://")+"stats.g.doubleclick.net/dc.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}(),$(document).ready(function(){$("a[href*='the-smiler.com']").click(function(){var a=$(this).attr("href");return a.match(/.com$/)&&(a+="/thesmiler/"),a.match(/.com\/$/)&&(a+="thesmiler/"),_gaq.push(["_link",a]),!1})});