﻿(function(global,factory){typeof exports==='object'&&typeof module!=='undefined'?factory(exports,require('jquery'),require('popper.html')):typeof define==='function'&&define.amd?define(['exports','jquery','popper.js'],factory):(factory((global.bootstrap={}),global.jQuery,global.Popper));}(this,(function(exports,$,Popper){'use strict';$=$&&$.hasOwnProperty('default')?$['default']:$;Popper=Popper&&Popper.hasOwnProperty('default')?Popper['default']:Popper;function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value" in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor;}
function _defineProperty(obj,key,value){if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}
return obj;}
function _objectSpread(target){for(var i=1;i<arguments.length;i++){var source=arguments[i]!=null?arguments[i]:{};var ownKeys=Object.keys(source);if(typeof Object.getOwnPropertySymbols==='function'){ownKeys=ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym){return Object.getOwnPropertyDescriptor(source,sym).enumerable;}));}
ownKeys.forEach(function(key){_defineProperty(target,key,source[key]);});}
return target;}
function _inheritsLoose(subClass,superClass){subClass.prototype=Object.create(superClass.prototype);subClass.prototype.constructor=subClass;subClass.__proto__=superClass;}
var Util=function($$$1){var TRANSITION_END='transitionend';var MAX_UID=1000000;var MILLISECONDS_MULTIPLIER=1000;function toType(obj){return{}.toString.call(obj).match(/\s([a-z]+)/i)[1].toLowerCase();}
function getSpecialTransitionEndEvent(){return{bindType:TRANSITION_END,delegateType:TRANSITION_END,handle:function handle(event){if($$$1(event.target).is(this)){return event.handleObj.handler.apply(this,arguments);}
return undefined;}};}
function transitionEndEmulator(duration){var _this=this;var called=false;$$$1(this).one(Util.TRANSITION_END,function(){called=true;});setTimeout(function(){if(!called){Util.triggerTransitionEnd(_this);}},duration);return this;}
function setTransitionEndSupport(){$$$1.fn.emulateTransitionEnd=transitionEndEmulator;$$$1.event.special[Util.TRANSITION_END]=getSpecialTransitionEndEvent();}
var Util={TRANSITION_END:'bsTransitionEnd',getUID:function getUID(prefix){do{prefix+=~~(Math.random()*MAX_UID);}while(document.getElementById(prefix));return prefix;},getSelectorFromElement:function getSelectorFromElement(element){var selector=element.getAttribute('data-target');if(!selector||selector==='#'){selector=element.getAttribute('href')||'';}
try{var $selector=$$$1(document).find(selector);return $selector.length>0?selector:null;}catch(err){return null;}},getTransitionDurationFromElement:function getTransitionDurationFromElement(element){if(!element){return 0;}
var transitionDuration=$$$1(element).css('transition-duration');var floatTransitionDuration=parseFloat(transitionDuration);if(!floatTransitionDuration){return 0;}
transitionDuration=transitionDuration.split(',')[0];return parseFloat(transitionDuration)*MILLISECONDS_MULTIPLIER;},reflow:function reflow(element){return element.offsetHeight;},triggerTransitionEnd:function triggerTransitionEnd(element){$$$1(element).trigger(TRANSITION_END);},supportsTransitionEnd:function supportsTransitionEnd(){return Boolean(TRANSITION_END);},isElement:function isElement(obj){return(obj[0]||obj).nodeType;},typeCheckConfig:function typeCheckConfig(componentName,config,configTypes){for(var property in configTypes){if(Object.prototype.hasOwnProperty.call(configTypes,property)){var expectedTypes=configTypes[property];var value=config[property];var valueType=value&&Util.isElement(value)?'element':toType(value);if(!new RegExp(expectedTypes).test(valueType)){throw new Error(componentName.toUpperCase()+": "+("Option \""+property+"\" provided type \""+valueType+"\" ")+("but expected type \""+expectedTypes+"\"."));}}}}};setTransitionEndSupport();return Util;}($);var Alert=function($$$1){var NAME='alert';var VERSION='4.1.1';var DATA_KEY='bs.alert';var EVENT_KEY="."+DATA_KEY;var DATA_API_KEY='.data-api';var JQUERY_NO_CONFLICT=$$$1.fn[NAME];var Selector={DISMISS:'[data-dismiss="alert"]'};var Event={CLOSE:"close"+EVENT_KEY,CLOSED:"closed"+EVENT_KEY,CLICK_DATA_API:"click"+EVENT_KEY+DATA_API_KEY};var ClassName={ALERT:'alert',FADE:'fade',SHOW:'show'};var Alert=function(){function Alert(element){this._element=element;}
var _proto=Alert.prototype;_proto.close=function close(element){var rootElement=this._element;if(element){rootElement=this._getRootElement(element);}
var customEvent=this._triggerCloseEvent(rootElement);if(customEvent.isDefaultPrevented()){return;}
this._removeElement(rootElement);};_proto.dispose=function dispose(){$$$1.removeData(this._element,DATA_KEY);this._element=null;};_proto._getRootElement=function _getRootElement(element){var selector=Util.getSelectorFromElement(element);var parent=false;if(selector){parent=$$$1(selector)[0];}
if(!parent){parent=$$$1(element).closest("."+ClassName.ALERT)[0];}
return parent;};_proto._triggerCloseEvent=function _triggerCloseEvent(element){var closeEvent=$$$1.Event(Event.CLOSE);$$$1(element).trigger(closeEvent);return closeEvent;};_proto._removeElement=function _removeElement(element){var _this=this;$$$1(element).removeClass(ClassName.SHOW);if(!$$$1(element).hasClass(ClassName.FADE)){this._destroyElement(element);return;}
var transitionDuration=Util.getTransitionDurationFromElement(element);$$$1(element).one(Util.TRANSITION_END,function(event){return _this._destroyElement(element,event);}).emulateTransitionEnd(transitionDuration);};_proto._destroyElement=function _destroyElement(element){$$$1(element).detach().trigger(Event.CLOSED).remove();};Alert._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var $element=$$$1(this);var data=$element.data(DATA_KEY);if(!data){data=new Alert(this);$element.data(DATA_KEY,data);}
if(config==='close'){data[config](this);}});};Alert._handleDismiss=function _handleDismiss(alertInstance){return function(event){if(event){event.preventDefault();}
alertInstance.close(this);};};_createClass(Alert,null,[{key:"VERSION",get:function get(){return VERSION;}}]);return Alert;}();$$$1(document).on(Event.CLICK_DATA_API,Selector.DISMISS,Alert._handleDismiss(new Alert()));$$$1.fn[NAME]=Alert._jQueryInterface;$$$1.fn[NAME].Constructor=Alert;$$$1.fn[NAME].noConflict=function(){$$$1.fn[NAME]=JQUERY_NO_CONFLICT;return Alert._jQueryInterface;};return Alert;}($);var Button=function($$$1){var NAME='button';var VERSION='4.1.1';var DATA_KEY='bs.button';var EVENT_KEY="."+DATA_KEY;var DATA_API_KEY='.data-api';var JQUERY_NO_CONFLICT=$$$1.fn[NAME];var ClassName={ACTIVE:'active',BUTTON:'btn',FOCUS:'focus'};var Selector={DATA_TOGGLE_CARROT:'[data-toggle^="button"]',DATA_TOGGLE:'[data-toggle="buttons"]',INPUT:'input',ACTIVE:'.active',BUTTON:'.btn'};var Event={CLICK_DATA_API:"click"+EVENT_KEY+DATA_API_KEY,FOCUS_BLUR_DATA_API:"focus"+EVENT_KEY+DATA_API_KEY+" "+("blur"+EVENT_KEY+DATA_API_KEY)};var Button=function(){function Button(element){this._element=element;}
var _proto=Button.prototype;_proto.toggle=function toggle(){var triggerChangeEvent=true;var addAriaPressed=true;var rootElement=$$$1(this._element).closest(Selector.DATA_TOGGLE)[0];if(rootElement){var input=$$$1(this._element).find(Selector.INPUT)[0];if(input){if(input.type==='radio'){if(input.checked&&$$$1(this._element).hasClass(ClassName.ACTIVE)){triggerChangeEvent=false;}else{var activeElement=$$$1(rootElement).find(Selector.ACTIVE)[0];if(activeElement){$$$1(activeElement).removeClass(ClassName.ACTIVE);}}}
if(triggerChangeEvent){if(input.hasAttribute('disabled')||rootElement.hasAttribute('disabled')||input.classList.contains('disabled')||rootElement.classList.contains('disabled')){return;}
input.checked=!$$$1(this._element).hasClass(ClassName.ACTIVE);$$$1(input).trigger('change');}
input.focus();addAriaPressed=false;}}
if(addAriaPressed){this._element.setAttribute('aria-pressed',!$$$1(this._element).hasClass(ClassName.ACTIVE));}
if(triggerChangeEvent){$$$1(this._element).toggleClass(ClassName.ACTIVE);}};_proto.dispose=function dispose(){$$$1.removeData(this._element,DATA_KEY);this._element=null;};Button._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var data=$$$1(this).data(DATA_KEY);if(!data){data=new Button(this);$$$1(this).data(DATA_KEY,data);}
if(config==='toggle'){data[config]();}});};_createClass(Button,null,[{key:"VERSION",get:function get(){return VERSION;}}]);return Button;}();$$$1(document).on(Event.CLICK_DATA_API,Selector.DATA_TOGGLE_CARROT,function(event){event.preventDefault();var button=event.target;if(!$$$1(button).hasClass(ClassName.BUTTON)){button=$$$1(button).closest(Selector.BUTTON);}
Button._jQueryInterface.call($$$1(button),'toggle');}).on(Event.FOCUS_BLUR_DATA_API,Selector.DATA_TOGGLE_CARROT,function(event){var button=$$$1(event.target).closest(Selector.BUTTON)[0];$$$1(button).toggleClass(ClassName.FOCUS,/^focus(in)?$/.test(event.type));});$$$1.fn[NAME]=Button._jQueryInterface;$$$1.fn[NAME].Constructor=Button;$$$1.fn[NAME].noConflict=function(){$$$1.fn[NAME]=JQUERY_NO_CONFLICT;return Button._jQueryInterface;};return Button;}($);var Carousel=function($$$1){var NAME='carousel';var VERSION='4.1.1';var DATA_KEY='bs.carousel';var EVENT_KEY="."+DATA_KEY;var DATA_API_KEY='.data-api';var JQUERY_NO_CONFLICT=$$$1.fn[NAME];var ARROW_LEFT_KEYCODE=37;var ARROW_RIGHT_KEYCODE=39;var TOUCHEVENT_COMPAT_WAIT=500;var Default={interval:5000,keyboard:true,slide:false,pause:'hover',wrap:true};var DefaultType={interval:'(number|boolean)',keyboard:'boolean',slide:'(boolean|string)',pause:'(string|boolean)',wrap:'boolean'};var Direction={NEXT:'next',PREV:'prev',LEFT:'left',RIGHT:'right'};var Event={SLIDE:"slide"+EVENT_KEY,SLID:"slid"+EVENT_KEY,KEYDOWN:"keydown"+EVENT_KEY,MOUSEENTER:"mouseenter"+EVENT_KEY,MOUSELEAVE:"mouseleave"+EVENT_KEY,TOUCHEND:"touchend"+EVENT_KEY,LOAD_DATA_API:"load"+EVENT_KEY+DATA_API_KEY,CLICK_DATA_API:"click"+EVENT_KEY+DATA_API_KEY};var ClassName={CAROUSEL:'carousel',ACTIVE:'active',SLIDE:'slide',RIGHT:'carousel-item-right',LEFT:'carousel-item-left',NEXT:'carousel-item-next',PREV:'carousel-item-prev',ITEM:'carousel-item'};var Selector={ACTIVE:'.active',ACTIVE_ITEM:'.active.carousel-item',ITEM:'.carousel-item',NEXT_PREV:'.carousel-item-next, .carousel-item-prev',INDICATORS:'.carousel-indicators',DATA_SLIDE:'[data-slide], [data-slide-to]',DATA_RIDE:'[data-ride="carousel"]'};var Carousel=function(){function Carousel(element,config){this._items=null;this._interval=null;this._activeElement=null;this._isPaused=false;this._isSliding=false;this.touchTimeout=null;this._config=this._getConfig(config);this._element=$$$1(element)[0];this._indicatorsElement=$$$1(this._element).find(Selector.INDICATORS)[0];this._addEventListeners();}
var _proto=Carousel.prototype;_proto.next=function next(){if(!this._isSliding){this._slide(Direction.NEXT);}};_proto.nextWhenVisible=function nextWhenVisible(){if(!document.hidden&&$$$1(this._element).is(':visible')&&$$$1(this._element).css('visibility')!=='hidden'){this.next();}};_proto.prev=function prev(){if(!this._isSliding){this._slide(Direction.PREV);}};_proto.pause=function pause(event){if(!event){this._isPaused=true;}
if($$$1(this._element).find(Selector.NEXT_PREV)[0]){Util.triggerTransitionEnd(this._element);this.cycle(true);}
clearInterval(this._interval);this._interval=null;};_proto.cycle=function cycle(event){if(!event){this._isPaused=false;}
if(this._interval){clearInterval(this._interval);this._interval=null;}
if(this._config.interval&&!this._isPaused){this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval);}};_proto.to=function to(index){var _this=this;this._activeElement=$$$1(this._element).find(Selector.ACTIVE_ITEM)[0];var activeIndex=this._getItemIndex(this._activeElement);if(index>this._items.length-1||index<0){return;}
if(this._isSliding){$$$1(this._element).one(Event.SLID,function(){return _this.to(index);});return;}
if(activeIndex===index){this.pause();this.cycle();return;}
var direction=index>activeIndex?Direction.NEXT:Direction.PREV;this._slide(direction,this._items[index]);};_proto.dispose=function dispose(){$$$1(this._element).off(EVENT_KEY);$$$1.removeData(this._element,DATA_KEY);this._items=null;this._config=null;this._element=null;this._interval=null;this._isPaused=null;this._isSliding=null;this._activeElement=null;this._indicatorsElement=null;};_proto._getConfig=function _getConfig(config){config=_objectSpread({},Default,config);Util.typeCheckConfig(NAME,config,DefaultType);return config;};_proto._addEventListeners=function _addEventListeners(){var _this2=this;if(this._config.keyboard){$$$1(this._element).on(Event.KEYDOWN,function(event){return _this2._keydown(event);});}
if(this._config.pause==='hover'){$$$1(this._element).on(Event.MOUSEENTER,function(event){return _this2.pause(event);}).on(Event.MOUSELEAVE,function(event){return _this2.cycle(event);});if('ontouchstart' in document.documentElement){$$$1(this._element).on(Event.TOUCHEND,function(){_this2.pause();if(_this2.touchTimeout){clearTimeout(_this2.touchTimeout);}
_this2.touchTimeout=setTimeout(function(event){return _this2.cycle(event);},TOUCHEVENT_COMPAT_WAIT+_this2._config.interval);});}}};_proto._keydown=function _keydown(event){if(/input|textarea/i.test(event.target.tagName)){return;}
switch(event.which){case ARROW_LEFT_KEYCODE:event.preventDefault();this.prev();break;case ARROW_RIGHT_KEYCODE:event.preventDefault();this.next();break;default:}};_proto._getItemIndex=function _getItemIndex(element){this._items=$$$1.makeArray($$$1(element).parent().find(Selector.ITEM));return this._items.indexOf(element);};_proto._getItemByDirection=function _getItemByDirection(direction,activeElement){var isNextDirection=direction===Direction.NEXT;var isPrevDirection=direction===Direction.PREV;var activeIndex=this._getItemIndex(activeElement);var lastItemIndex=this._items.length-1;var isGoingToWrap=isPrevDirection&&activeIndex===0||isNextDirection&&activeIndex===lastItemIndex;if(isGoingToWrap&&!this._config.wrap){return activeElement;}
var delta=direction===Direction.PREV?-1:1;var itemIndex=(activeIndex+delta)%this._items.length;return itemIndex===-1?this._items[this._items.length-1]:this._items[itemIndex];};_proto._triggerSlideEvent=function _triggerSlideEvent(relatedTarget,eventDirectionName){var targetIndex=this._getItemIndex(relatedTarget);var fromIndex=this._getItemIndex($$$1(this._element).find(Selector.ACTIVE_ITEM)[0]);var slideEvent=$$$1.Event(Event.SLIDE,{relatedTarget:relatedTarget,direction:eventDirectionName,from:fromIndex,to:targetIndex});$$$1(this._element).trigger(slideEvent);return slideEvent;};_proto._setActiveIndicatorElement=function _setActiveIndicatorElement(element){if(this._indicatorsElement){$$$1(this._indicatorsElement).find(Selector.ACTIVE).removeClass(ClassName.ACTIVE);var nextIndicator=this._indicatorsElement.children[this._getItemIndex(element)];if(nextIndicator){$$$1(nextIndicator).addClass(ClassName.ACTIVE);}}};_proto._slide=function _slide(direction,element){var _this3=this;var activeElement=$$$1(this._element).find(Selector.ACTIVE_ITEM)[0];var activeElementIndex=this._getItemIndex(activeElement);var nextElement=element||activeElement&&this._getItemByDirection(direction,activeElement);var nextElementIndex=this._getItemIndex(nextElement);var isCycling=Boolean(this._interval);var directionalClassName;var orderClassName;var eventDirectionName;if(direction===Direction.NEXT){directionalClassName=ClassName.LEFT;orderClassName=ClassName.NEXT;eventDirectionName=Direction.LEFT;}else{directionalClassName=ClassName.RIGHT;orderClassName=ClassName.PREV;eventDirectionName=Direction.RIGHT;}
if(nextElement&&$$$1(nextElement).hasClass(ClassName.ACTIVE)){this._isSliding=false;return;}
var slideEvent=this._triggerSlideEvent(nextElement,eventDirectionName);if(slideEvent.isDefaultPrevented()){return;}
if(!activeElement||!nextElement){return;}
this._isSliding=true;if(isCycling){this.pause();}
this._setActiveIndicatorElement(nextElement);var slidEvent=$$$1.Event(Event.SLID,{relatedTarget:nextElement,direction:eventDirectionName,from:activeElementIndex,to:nextElementIndex});if($$$1(this._element).hasClass(ClassName.SLIDE)){$$$1(nextElement).addClass(orderClassName);Util.reflow(nextElement);$$$1(activeElement).addClass(directionalClassName);$$$1(nextElement).addClass(directionalClassName);var transitionDuration=Util.getTransitionDurationFromElement(activeElement);$$$1(activeElement).one(Util.TRANSITION_END,function(){$$$1(nextElement).removeClass(directionalClassName+" "+orderClassName).addClass(ClassName.ACTIVE);$$$1(activeElement).removeClass(ClassName.ACTIVE+" "+orderClassName+" "+directionalClassName);_this3._isSliding=false;setTimeout(function(){return $$$1(_this3._element).trigger(slidEvent);},0);}).emulateTransitionEnd(transitionDuration);}else{$$$1(activeElement).removeClass(ClassName.ACTIVE);$$$1(nextElement).addClass(ClassName.ACTIVE);this._isSliding=false;$$$1(this._element).trigger(slidEvent);}
if(isCycling){this.cycle();}};Carousel._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var data=$$$1(this).data(DATA_KEY);var _config=_objectSpread({},Default,$$$1(this).data());if(typeof config==='object'){_config=_objectSpread({},_config,config);}
var action=typeof config==='string'?config:_config.slide;if(!data){data=new Carousel(this,_config);$$$1(this).data(DATA_KEY,data);}
if(typeof config==='number'){data.to(config);}else if(typeof action==='string'){if(typeof data[action]==='undefined'){throw new TypeError("No method named \""+action+"\"");}
data[action]();}else if(_config.interval){data.pause();data.cycle();}});};Carousel._dataApiClickHandler=function _dataApiClickHandler(event){var selector=Util.getSelectorFromElement(this);if(!selector){return;}
var target=$$$1(selector)[0];if(!target||!$$$1(target).hasClass(ClassName.CAROUSEL)){return;}
var config=_objectSpread({},$$$1(target).data(),$$$1(this).data());var slideIndex=this.getAttribute('data-slide-to');if(slideIndex){config.interval=false;}
Carousel._jQueryInterface.call($$$1(target),config);if(slideIndex){$$$1(target).data(DATA_KEY).to(slideIndex);}
event.preventDefault();};_createClass(Carousel,null,[{key:"VERSION",get:function get(){return VERSION;}},{key:"Default",get:function get(){return Default;}}]);return Carousel;}();$$$1(document).on(Event.CLICK_DATA_API,Selector.DATA_SLIDE,Carousel._dataApiClickHandler);$$$1(window).on(Event.LOAD_DATA_API,function(){$$$1(Selector.DATA_RIDE).each(function(){var $carousel=$$$1(this);Carousel._jQueryInterface.call($carousel,$carousel.data());});});$$$1.fn[NAME]=Carousel._jQueryInterface;$$$1.fn[NAME].Constructor=Carousel;$$$1.fn[NAME].noConflict=function(){$$$1.fn[NAME]=JQUERY_NO_CONFLICT;return Carousel._jQueryInterface;};return Carousel;}($);var Collapse=function($$$1){var NAME='collapse';var VERSION='4.1.1';var DATA_KEY='bs.collapse';var EVENT_KEY="."+DATA_KEY;var DATA_API_KEY='.data-api';var JQUERY_NO_CONFLICT=$$$1.fn[NAME];var Default={toggle:true,parent:''};var DefaultType={toggle:'boolean',parent:'(string|element)'};var Event={SHOW:"show"+EVENT_KEY,SHOWN:"shown"+EVENT_KEY,HIDE:"hide"+EVENT_KEY,HIDDEN:"hidden"+EVENT_KEY,CLICK_DATA_API:"click"+EVENT_KEY+DATA_API_KEY};var ClassName={SHOW:'show',COLLAPSE:'collapse',COLLAPSING:'collapsing',COLLAPSED:'collapsed'};var Dimension={WIDTH:'width',HEIGHT:'height'};var Selector={ACTIVES:'.show, .collapsing',DATA_TOGGLE:'[data-toggle="collapse"]'};var Collapse=function(){function Collapse(element,config){this._isTransitioning=false;this._element=element;this._config=this._getConfig(config);this._triggerArray=$$$1.makeArray($$$1("[data-toggle=\"collapse\"][href=\"#"+element.id+"\"],"+("[data-toggle=\"collapse\"][data-target=\"#"+element.id+"\"]")));var tabToggles=$$$1(Selector.DATA_TOGGLE);for(var i=0;i<tabToggles.length;i++){var elem=tabToggles[i];var selector=Util.getSelectorFromElement(elem);if(selector!==null&&$$$1(selector).filter(element).length>0){this._selector=selector;this._triggerArray.push(elem);}}
this._parent=this._config.parent?this._getParent():null;if(!this._config.parent){this._addAriaAndCollapsedClass(this._element,this._triggerArray);}
if(this._config.toggle){this.toggle();}}
var _proto=Collapse.prototype;_proto.toggle=function toggle(){if($$$1(this._element).hasClass(ClassName.SHOW)){this.hide();}else{this.show();}};_proto.show=function show(){var _this=this;if(this._isTransitioning||$$$1(this._element).hasClass(ClassName.SHOW)){return;}
var actives;var activesData;if(this._parent){actives=$$$1.makeArray($$$1(this._parent).find(Selector.ACTIVES).filter("[data-parent=\""+this._config.parent+"\"]"));if(actives.length===0){actives=null;}}
if(actives){activesData=$$$1(actives).not(this._selector).data(DATA_KEY);if(activesData&&activesData._isTransitioning){return;}}
var startEvent=$$$1.Event(Event.SHOW);$$$1(this._element).trigger(startEvent);if(startEvent.isDefaultPrevented()){return;}
if(actives){Collapse._jQueryInterface.call($$$1(actives).not(this._selector),'hide');if(!activesData){$$$1(actives).data(DATA_KEY,null);}}
var dimension=this._getDimension();$$$1(this._element).removeClass(ClassName.COLLAPSE).addClass(ClassName.COLLAPSING);this._element.style[dimension]=0;if(this._triggerArray.length>0){$$$1(this._triggerArray).removeClass(ClassName.COLLAPSED).attr('aria-expanded',true);}
this.setTransitioning(true);var complete=function complete(){$$$1(_this._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).addClass(ClassName.SHOW);_this._element.style[dimension]='';_this.setTransitioning(false);$$$1(_this._element).trigger(Event.SHOWN);};var capitalizedDimension=dimension[0].toUpperCase()+dimension.slice(1);var scrollSize="scroll"+capitalizedDimension;var transitionDuration=Util.getTransitionDurationFromElement(this._element);$$$1(this._element).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration);this._element.style[dimension]=this._element[scrollSize]+"px";};_proto.hide=function hide(){var _this2=this;if(this._isTransitioning||!$$$1(this._element).hasClass(ClassName.SHOW)){return;}
var startEvent=$$$1.Event(Event.HIDE);$$$1(this._element).trigger(startEvent);if(startEvent.isDefaultPrevented()){return;}
var dimension=this._getDimension();this._element.style[dimension]=this._element.getBoundingClientRect()[dimension]+"px";Util.reflow(this._element);$$$1(this._element).addClass(ClassName.COLLAPSING).removeClass(ClassName.COLLAPSE).removeClass(ClassName.SHOW);if(this._triggerArray.length>0){for(var i=0;i<this._triggerArray.length;i++){var trigger=this._triggerArray[i];var selector=Util.getSelectorFromElement(trigger);if(selector!==null){var $elem=$$$1(selector);if(!$elem.hasClass(ClassName.SHOW)){$$$1(trigger).addClass(ClassName.COLLAPSED).attr('aria-expanded',false);}}}}
this.setTransitioning(true);var complete=function complete(){_this2.setTransitioning(false);$$$1(_this2._element).removeClass(ClassName.COLLAPSING).addClass(ClassName.COLLAPSE).trigger(Event.HIDDEN);};this._element.style[dimension]='';var transitionDuration=Util.getTransitionDurationFromElement(this._element);$$$1(this._element).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration);};_proto.setTransitioning=function setTransitioning(isTransitioning){this._isTransitioning=isTransitioning;};_proto.dispose=function dispose(){$$$1.removeData(this._element,DATA_KEY);this._config=null;this._parent=null;this._element=null;this._triggerArray=null;this._isTransitioning=null;};_proto._getConfig=function _getConfig(config){config=_objectSpread({},Default,config);config.toggle=Boolean(config.toggle);Util.typeCheckConfig(NAME,config,DefaultType);return config;};_proto._getDimension=function _getDimension(){var hasWidth=$$$1(this._element).hasClass(Dimension.WIDTH);return hasWidth?Dimension.WIDTH:Dimension.HEIGHT;};_proto._getParent=function _getParent(){var _this3=this;var parent=null;if(Util.isElement(this._config.parent)){parent=this._config.parent;if(typeof this._config.parent.jquery!=='undefined'){parent=this._config.parent[0];}}else{parent=$$$1(this._config.parent)[0];}
var selector="[data-toggle=\"collapse\"][data-parent=\""+this._config.parent+"\"]";$$$1(parent).find(selector).each(function(i,element){_this3._addAriaAndCollapsedClass(Collapse._getTargetFromElement(element),[element]);});return parent;};_proto._addAriaAndCollapsedClass=function _addAriaAndCollapsedClass(element,triggerArray){if(element){var isOpen=$$$1(element).hasClass(ClassName.SHOW);if(triggerArray.length>0){$$$1(triggerArray).toggleClass(ClassName.COLLAPSED,!isOpen).attr('aria-expanded',isOpen);}}};Collapse._getTargetFromElement=function _getTargetFromElement(element){var selector=Util.getSelectorFromElement(element);return selector?$$$1(selector)[0]:null;};Collapse._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var $this=$$$1(this);var data=$this.data(DATA_KEY);var _config=_objectSpread({},Default,$this.data(),typeof config==='object'&&config?config:{});if(!data&&_config.toggle&&/show|hide/.test(config)){_config.toggle=false;}
if(!data){data=new Collapse(this,_config);$this.data(DATA_KEY,data);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError("No method named \""+config+"\"");}
data[config]();}});};_createClass(Collapse,null,[{key:"VERSION",get:function get(){return VERSION;}},{key:"Default",get:function get(){return Default;}}]);return Collapse;}();$$$1(document).on(Event.CLICK_DATA_API,Selector.DATA_TOGGLE,function(event){if(event.currentTarget.tagName==='A'){event.preventDefault();}
var $trigger=$$$1(this);var selector=Util.getSelectorFromElement(this);$$$1(selector).each(function(){var $target=$$$1(this);var data=$target.data(DATA_KEY);var config=data?'toggle':$trigger.data();Collapse._jQueryInterface.call($target,config);});});$$$1.fn[NAME]=Collapse._jQueryInterface;$$$1.fn[NAME].Constructor=Collapse;$$$1.fn[NAME].noConflict=function(){$$$1.fn[NAME]=JQUERY_NO_CONFLICT;return Collapse._jQueryInterface;};return Collapse;}($);var Dropdown=function($$$1){var NAME='dropdown';var VERSION='4.1.1';var DATA_KEY='bs.dropdown';var EVENT_KEY="."+DATA_KEY;var DATA_API_KEY='.data-api';var JQUERY_NO_CONFLICT=$$$1.fn[NAME];var ESCAPE_KEYCODE=27;var SPACE_KEYCODE=32;var TAB_KEYCODE=9;var ARROW_UP_KEYCODE=38;var ARROW_DOWN_KEYCODE=40;var RIGHT_MOUSE_BUTTON_WHICH=3;var REGEXP_KEYDOWN=new RegExp(ARROW_UP_KEYCODE+"|"+ARROW_DOWN_KEYCODE+"|"+ESCAPE_KEYCODE);var Event={HIDE:"hide"+EVENT_KEY,HIDDEN:"hidden"+EVENT_KEY,SHOW:"show"+EVENT_KEY,SHOWN:"shown"+EVENT_KEY,CLICK:"click"+EVENT_KEY,CLICK_DATA_API:"click"+EVENT_KEY+DATA_API_KEY,KEYDOWN_DATA_API:"keydown"+EVENT_KEY+DATA_API_KEY,KEYUP_DATA_API:"keyup"+EVENT_KEY+DATA_API_KEY};var ClassName={DISABLED:'disabled',SHOW:'show',DROPUP:'dropup',DROPRIGHT:'dropright',DROPLEFT:'dropleft',MENURIGHT:'dropdown-menu-right',MENULEFT:'dropdown-menu-left',POSITION_STATIC:'position-static'};var Selector={DATA_TOGGLE:'[data-toggle="dropdown"]',FORM_CHILD:'.dropdown form',MENU:'.dropdown-menu',NAVBAR_NAV:'.navbar-nav',VISIBLE_ITEMS:'.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)'};var AttachmentMap={TOP:'top-start',TOPEND:'top-end',BOTTOM:'bottom-start',BOTTOMEND:'bottom-end',RIGHT:'right-start',RIGHTEND:'right-end',LEFT:'left-start',LEFTEND:'left-end'};var Default={offset:0,flip:true,boundary:'scrollParent',reference:'toggle',display:'dynamic'};var DefaultType={offset:'(number|string|function)',flip:'boolean',boundary:'(string|element)',reference:'(string|element)',display:'string'};var Dropdown=function(){function Dropdown(element,config){this._element=element;this._popper=null;this._config=this._getConfig(config);this._menu=this._getMenuElement();this._inNavbar=this._detectNavbar();this._addEventListeners();}
var _proto=Dropdown.prototype;_proto.toggle=function toggle(){if(this._element.disabled||$$$1(this._element).hasClass(ClassName.DISABLED)){return;}
var parent=Dropdown._getParentFromElement(this._element);var isActive=$$$1(this._menu).hasClass(ClassName.SHOW);Dropdown._clearMenus();if(isActive){return;}
var relatedTarget={relatedTarget:this._element};var showEvent=$$$1.Event(Event.SHOW,relatedTarget);$$$1(parent).trigger(showEvent);if(showEvent.isDefaultPrevented()){return;}
if(!this._inNavbar){if(typeof Popper==='undefined'){throw new TypeError('Bootstrap dropdown require Popper.js (https://popper.js.org)');}
var referenceElement=this._element;if(this._config.reference==='parent'){referenceElement=parent;}else if(Util.isElement(this._config.reference)){referenceElement=this._config.reference;if(typeof this._config.reference.jquery!=='undefined'){referenceElement=this._config.reference[0];}}
if(this._config.boundary!=='scrollParent'){$$$1(parent).addClass(ClassName.POSITION_STATIC);}
this._popper=new Popper(referenceElement,this._menu,this._getPopperConfig());}
if('ontouchstart' in document.documentElement&&$$$1(parent).closest(Selector.NAVBAR_NAV).length===0){$$$1(document.body).children().on('mouseover',null,$$$1.noop);}
this._element.focus();this._element.setAttribute('aria-expanded',true);$$$1(this._menu).toggleClass(ClassName.SHOW);$$$1(parent).toggleClass(ClassName.SHOW).trigger($$$1.Event(Event.SHOWN,relatedTarget));};_proto.dispose=function dispose(){$$$1.removeData(this._element,DATA_KEY);$$$1(this._element).off(EVENT_KEY);this._element=null;this._menu=null;if(this._popper!==null){this._popper.destroy();this._popper=null;}};_proto.update=function update(){this._inNavbar=this._detectNavbar();if(this._popper!==null){this._popper.scheduleUpdate();}};_proto._addEventListeners=function _addEventListeners(){var _this=this;$$$1(this._element).on(Event.CLICK,function(event){event.preventDefault();event.stopPropagation();_this.toggle();});};_proto._getConfig=function _getConfig(config){config=_objectSpread({},this.constructor.Default,$$$1(this._element).data(),config);Util.typeCheckConfig(NAME,config,this.constructor.DefaultType);return config;};_proto._getMenuElement=function _getMenuElement(){if(!this._menu){var parent=Dropdown._getParentFromElement(this._element);this._menu=$$$1(parent).find(Selector.MENU)[0];}
return this._menu;};_proto._getPlacement=function _getPlacement(){var $parentDropdown=$$$1(this._element).parent();var placement=AttachmentMap.BOTTOM;if($parentDropdown.hasClass(ClassName.DROPUP)){placement=AttachmentMap.TOP;if($$$1(this._menu).hasClass(ClassName.MENURIGHT)){placement=AttachmentMap.TOPEND;}}else if($parentDropdown.hasClass(ClassName.DROPRIGHT)){placement=AttachmentMap.RIGHT;}else if($parentDropdown.hasClass(ClassName.DROPLEFT)){placement=AttachmentMap.LEFT;}else if($$$1(this._menu).hasClass(ClassName.MENURIGHT)){placement=AttachmentMap.BOTTOMEND;}
return placement;};_proto._detectNavbar=function _detectNavbar(){return $$$1(this._element).closest('.navbar').length>0;};_proto._getPopperConfig=function _getPopperConfig(){var _this2=this;var offsetConf={};if(typeof this._config.offset==='function'){offsetConf.fn=function(data){data.offsets=_objectSpread({},data.offsets,_this2._config.offset(data.offsets)||{});return data;};}else{offsetConf.offset=this._config.offset;}
var popperConfig={placement:this._getPlacement(),modifiers:{offset:offsetConf,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};if(this._config.display==='static'){popperConfig.modifiers.applyStyle={enabled:false};}
return popperConfig;};Dropdown._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var data=$$$1(this).data(DATA_KEY);var _config=typeof config==='object'?config:null;if(!data){data=new Dropdown(this,_config);$$$1(this).data(DATA_KEY,data);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError("No method named \""+config+"\"");}
data[config]();}});};Dropdown._clearMenus=function _clearMenus(event){if(event&&(event.which===RIGHT_MOUSE_BUTTON_WHICH||event.type==='keyup'&&event.which!==TAB_KEYCODE)){return;}
var toggles=$$$1.makeArray($$$1(Selector.DATA_TOGGLE));for(var i=0;i<toggles.length;i++){var parent=Dropdown._getParentFromElement(toggles[i]);var context=$$$1(toggles[i]).data(DATA_KEY);var relatedTarget={relatedTarget:toggles[i]};if(!context){continue;}
var dropdownMenu=context._menu;if(!$$$1(parent).hasClass(ClassName.SHOW)){continue;}
if(event&&(event.type==='click'&&/input|textarea/i.test(event.target.tagName)||event.type==='keyup'&&event.which===TAB_KEYCODE)&&$$$1.contains(parent,event.target)){continue;}
var hideEvent=$$$1.Event(Event.HIDE,relatedTarget);$$$1(parent).trigger(hideEvent);if(hideEvent.isDefaultPrevented()){continue;}
if('ontouchstart' in document.documentElement){$$$1(document.body).children().off('mouseover',null,$$$1.noop);}
toggles[i].setAttribute('aria-expanded','false');$$$1(dropdownMenu).removeClass(ClassName.SHOW);$$$1(parent).removeClass(ClassName.SHOW).trigger($$$1.Event(Event.HIDDEN,relatedTarget));}};Dropdown._getParentFromElement=function _getParentFromElement(element){var parent;var selector=Util.getSelectorFromElement(element);if(selector){parent=$$$1(selector)[0];}
return parent||element.parentNode;};Dropdown._dataApiKeydownHandler=function _dataApiKeydownHandler(event){if(/input|textarea/i.test(event.target.tagName)?event.which===SPACE_KEYCODE||event.which!==ESCAPE_KEYCODE&&(event.which!==ARROW_DOWN_KEYCODE&&event.which!==ARROW_UP_KEYCODE||$$$1(event.target).closest(Selector.MENU).length):!REGEXP_KEYDOWN.test(event.which)){return;}
event.preventDefault();event.stopPropagation();if(this.disabled||$$$1(this).hasClass(ClassName.DISABLED)){return;}
var parent=Dropdown._getParentFromElement(this);var isActive=$$$1(parent).hasClass(ClassName.SHOW);if(!isActive&&(event.which!==ESCAPE_KEYCODE||event.which!==SPACE_KEYCODE)||isActive&&(event.which===ESCAPE_KEYCODE||event.which===SPACE_KEYCODE)){if(event.which===ESCAPE_KEYCODE){var toggle=$$$1(parent).find(Selector.DATA_TOGGLE)[0];$$$1(toggle).trigger('focus');}
$$$1(this).trigger('click');return;}
var items=$$$1(parent).find(Selector.VISIBLE_ITEMS).get();if(items.length===0){return;}
var index=items.indexOf(event.target);if(event.which===ARROW_UP_KEYCODE&&index>0){index--;}
if(event.which===ARROW_DOWN_KEYCODE&&index<items.length-1){index++;}
if(index<0){index=0;}
items[index].focus();};_createClass(Dropdown,null,[{key:"VERSION",get:function get(){return VERSION;}},{key:"Default",get:function get(){return Default;}},{key:"DefaultType",get:function get(){return DefaultType;}}]);return Dropdown;}();$$$1(document).on(Event.KEYDOWN_DATA_API,Selector.DATA_TOGGLE,Dropdown._dataApiKeydownHandler).on(Event.KEYDOWN_DATA_API,Selector.MENU,Dropdown._dataApiKeydownHandler).on(Event.CLICK_DATA_API+" "+Event.KEYUP_DATA_API,Dropdown._clearMenus).on(Event.CLICK_DATA_API,Selector.DATA_TOGGLE,function(event){event.preventDefault();event.stopPropagation();Dropdown._jQueryInterface.call($$$1(this),'toggle');}).on(Event.CLICK_DATA_API,Selector.FORM_CHILD,function(e){e.stopPropagation();});$$$1.fn[NAME]=Dropdown._jQueryInterface;$$$1.fn[NAME].Constructor=Dropdown;$$$1.fn[NAME].noConflict=function(){$$$1.fn[NAME]=JQUERY_NO_CONFLICT;return Dropdown._jQueryInterface;};return Dropdown;}($,Popper);var Modal=function($$$1){var NAME='modal';var VERSION='4.1.1';var DATA_KEY='bs.modal';var EVENT_KEY="."+DATA_KEY;var DATA_API_KEY='.data-api';var JQUERY_NO_CONFLICT=$$$1.fn[NAME];var ESCAPE_KEYCODE=27;var Default={backdrop:true,keyboard:true,focus:true,show:true};var DefaultType={backdrop:'(boolean|string)',keyboard:'boolean',focus:'boolean',show:'boolean'};var Event={HIDE:"hide"+EVENT_KEY,HIDDEN:"hidden"+EVENT_KEY,SHOW:"show"+EVENT_KEY,SHOWN:"shown"+EVENT_KEY,FOCUSIN:"focusin"+EVENT_KEY,RESIZE:"resize"+EVENT_KEY,CLICK_DISMISS:"click.dismiss"+EVENT_KEY,KEYDOWN_DISMISS:"keydown.dismiss"+EVENT_KEY,MOUSEUP_DISMISS:"mouseup.dismiss"+EVENT_KEY,MOUSEDOWN_DISMISS:"mousedown.dismiss"+EVENT_KEY,CLICK_DATA_API:"click"+EVENT_KEY+DATA_API_KEY};var ClassName={SCROLLBAR_MEASURER:'modal-scrollbar-measure',BACKDROP:'modal-backdrop',OPEN:'modal-open',FADE:'fade',SHOW:'show'};var Selector={DIALOG:'.modal-dialog',DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:'.fixed-top, .fixed-bottom, .is-fixed, .sticky-top',STICKY_CONTENT:'.sticky-top',NAVBAR_TOGGLER:'.navbar-toggler'};var Modal=function(){function Modal(element,config){this._config=this._getConfig(config);this._element=element;this._dialog=$$$1(element).find(Selector.DIALOG)[0];this._backdrop=null;this._isShown=false;this._isBodyOverflowing=false;this._ignoreBackdropClick=false;this._scrollbarWidth=0;}
var _proto=Modal.prototype;_proto.toggle=function toggle(relatedTarget){return this._isShown?this.hide():this.show(relatedTarget);};_proto.show=function show(relatedTarget){var _this=this;if(this._isTransitioning||this._isShown){return;}
if($$$1(this._element).hasClass(ClassName.FADE)){this._isTransitioning=true;}
var showEvent=$$$1.Event(Event.SHOW,{relatedTarget:relatedTarget});$$$1(this._element).trigger(showEvent);if(this._isShown||showEvent.isDefaultPrevented()){return;}
this._isShown=true;this._checkScrollbar();this._setScrollbar();this._adjustDialog();$$$1(document.body).addClass(ClassName.OPEN);this._setEscapeEvent();this._setResizeEvent();$$$1(this._element).on(Event.CLICK_DISMISS,Selector.DATA_DISMISS,function(event){return _this.hide(event);});$$$1(this._dialog).on(Event.MOUSEDOWN_DISMISS,function(){$$$1(_this._element).one(Event.MOUSEUP_DISMISS,function(event){if($$$1(event.target).is(_this._element)){_this._ignoreBackdropClick=true;}});});this._showBackdrop(function(){return _this._showElement(relatedTarget);});};_proto.hide=function hide(event){var _this2=this;if(event){event.preventDefault();}
if(this._isTransitioning||!this._isShown){return;}
var hideEvent=$$$1.Event(Event.HIDE);$$$1(this._element).trigger(hideEvent);if(!this._isShown||hideEvent.isDefaultPrevented()){return;}
this._isShown=false;var transition=$$$1(this._element).hasClass(ClassName.FADE);if(transition){this._isTransitioning=true;}
this._setEscapeEvent();this._setResizeEvent();$$$1(document).off(Event.FOCUSIN);$$$1(this._element).removeClass(ClassName.SHOW);$$$1(this._element).off(Event.CLICK_DISMISS);$$$1(this._dialog).off(Event.MOUSEDOWN_DISMISS);if(transition){var transitionDuration=Util.getTransitionDurationFromElement(this._element);$$$1(this._element).one(Util.TRANSITION_END,function(event){return _this2._hideModal(event);}).emulateTransitionEnd(transitionDuration);}else{this._hideModal();}};_proto.dispose=function dispose(){$$$1.removeData(this._element,DATA_KEY);$$$1(window,document,this._element,this._backdrop).off(EVENT_KEY);this._config=null;this._element=null;this._dialog=null;this._backdrop=null;this._isShown=null;this._isBodyOverflowing=null;this._ignoreBackdropClick=null;this._scrollbarWidth=null;};_proto.handleUpdate=function handleUpdate(){this._adjustDialog();};_proto._getConfig=function _getConfig(config){config=_objectSpread({},Default,config);Util.typeCheckConfig(NAME,config,DefaultType);return config;};_proto._showElement=function _showElement(relatedTarget){var _this3=this;var transition=$$$1(this._element).hasClass(ClassName.FADE);if(!this._element.parentNode||this._element.parentNode.nodeType!==Node.ELEMENT_NODE){document.body.appendChild(this._element);}
this._element.style.display='block';this._element.removeAttribute('aria-hidden');this._element.scrollTop=0;if(transition){Util.reflow(this._element);}
$$$1(this._element).addClass(ClassName.SHOW);if(this._config.focus){this._enforceFocus();}
var shownEvent=$$$1.Event(Event.SHOWN,{relatedTarget:relatedTarget});var transitionComplete=function transitionComplete(){if(_this3._config.focus){_this3._element.focus();}
_this3._isTransitioning=false;$$$1(_this3._element).trigger(shownEvent);};if(transition){var transitionDuration=Util.getTransitionDurationFromElement(this._element);$$$1(this._dialog).one(Util.TRANSITION_END,transitionComplete).emulateTransitionEnd(transitionDuration);}else{transitionComplete();}};_proto._enforceFocus=function _enforceFocus(){var _this4=this;$$$1(document).off(Event.FOCUSIN).on(Event.FOCUSIN,function(event){if(document!==event.target&&_this4._element!==event.target&&$$$1(_this4._element).has(event.target).length===0){_this4._element.focus();}});};_proto._setEscapeEvent=function _setEscapeEvent(){var _this5=this;if(this._isShown&&this._config.keyboard){$$$1(this._element).on(Event.KEYDOWN_DISMISS,function(event){if(event.which===ESCAPE_KEYCODE){event.preventDefault();_this5.hide();}});}else if(!this._isShown){$$$1(this._element).off(Event.KEYDOWN_DISMISS);}};_proto._setResizeEvent=function _setResizeEvent(){var _this6=this;if(this._isShown){$$$1(window).on(Event.RESIZE,function(event){return _this6.handleUpdate(event);});}else{$$$1(window).off(Event.RESIZE);}};_proto._hideModal=function _hideModal(){var _this7=this;this._element.style.display='none';this._element.setAttribute('aria-hidden',true);this._isTransitioning=false;this._showBackdrop(function(){$$$1(document.body).removeClass(ClassName.OPEN);_this7._resetAdjustments();_this7._resetScrollbar();$$$1(_this7._element).trigger(Event.HIDDEN);});};_proto._removeBackdrop=function _removeBackdrop(){if(this._backdrop){$$$1(this._backdrop).remove();this._backdrop=null;}};_proto._showBackdrop=function _showBackdrop(callback){var _this8=this;var animate=$$$1(this._element).hasClass(ClassName.FADE)?ClassName.FADE:'';if(this._isShown&&this._config.backdrop){this._backdrop=document.createElement('div');this._backdrop.className=ClassName.BACKDROP;if(animate){$$$1(this._backdrop).addClass(animate);}
$$$1(this._backdrop).appendTo(document.body);$$$1(this._element).on(Event.CLICK_DISMISS,function(event){if(_this8._ignoreBackdropClick){_this8._ignoreBackdropClick=false;return;}
if(event.target!==event.currentTarget){return;}
if(_this8._config.backdrop==='static'){_this8._element.focus();}else{_this8.hide();}});if(animate){Util.reflow(this._backdrop);}
$$$1(this._backdrop).addClass(ClassName.SHOW);if(!callback){return;}
if(!animate){callback();return;}
var backdropTransitionDuration=Util.getTransitionDurationFromElement(this._backdrop);$$$1(this._backdrop).one(Util.TRANSITION_END,callback).emulateTransitionEnd(backdropTransitionDuration);}else if(!this._isShown&&this._backdrop){$$$1(this._backdrop).removeClass(ClassName.SHOW);var callbackRemove=function callbackRemove(){_this8._removeBackdrop();if(callback){callback();}};if($$$1(this._element).hasClass(ClassName.FADE)){var _backdropTransitionDuration=Util.getTransitionDurationFromElement(this._backdrop);$$$1(this._backdrop).one(Util.TRANSITION_END,callbackRemove).emulateTransitionEnd(_backdropTransitionDuration);}else{callbackRemove();}}else if(callback){callback();}};_proto._adjustDialog=function _adjustDialog(){var isModalOverflowing=this._element.scrollHeight>document.documentElement.clientHeight;if(!this._isBodyOverflowing&&isModalOverflowing){this._element.style.paddingLeft=this._scrollbarWidth+"px";}
if(this._isBodyOverflowing&&!isModalOverflowing){this._element.style.paddingRight=this._scrollbarWidth+"px";}};_proto._resetAdjustments=function _resetAdjustments(){this._element.style.paddingLeft='';this._element.style.paddingRight='';};_proto._checkScrollbar=function _checkScrollbar(){var rect=document.body.getBoundingClientRect();this._isBodyOverflowing=rect.left+rect.right<window.innerWidth;this._scrollbarWidth=this._getScrollbarWidth();};_proto._setScrollbar=function _setScrollbar(){var _this9=this;if(this._isBodyOverflowing){$$$1(Selector.FIXED_CONTENT).each(function(index,element){var actualPadding=$$$1(element)[0].style.paddingRight;var calculatedPadding=$$$1(element).css('padding-right');$$$1(element).data('padding-right',actualPadding).css('padding-right',parseFloat(calculatedPadding)+_this9._scrollbarWidth+"px");});$$$1(Selector.STICKY_CONTENT).each(function(index,element){var actualMargin=$$$1(element)[0].style.marginRight;var calculatedMargin=$$$1(element).css('margin-right');$$$1(element).data('margin-right',actualMargin).css('margin-right',parseFloat(calculatedMargin)-_this9._scrollbarWidth+"px");});$$$1(Selector.NAVBAR_TOGGLER).each(function(index,element){var actualMargin=$$$1(element)[0].style.marginRight;var calculatedMargin=$$$1(element).css('margin-right');$$$1(element).data('margin-right',actualMargin).css('margin-right',parseFloat(calculatedMargin)+_this9._scrollbarWidth+"px");});var actualPadding=document.body.style.paddingRight;var calculatedPadding=$$$1(document.body).css('padding-right');$$$1(document.body).data('padding-right',actualPadding).css('padding-right',parseFloat(calculatedPadding)+this._scrollbarWidth+"px");}};_proto._resetScrollbar=function _resetScrollbar(){$$$1(Selector.FIXED_CONTENT).each(function(index,element){var padding=$$$1(element).data('padding-right');if(typeof padding!=='undefined'){$$$1(element).css('padding-right',padding).removeData('padding-right');}});$$$1(Selector.STICKY_CONTENT+", "+Selector.NAVBAR_TOGGLER).each(function(index,element){var margin=$$$1(element).data('margin-right');if(typeof margin!=='undefined'){$$$1(element).css('margin-right',margin).removeData('margin-right');}});var padding=$$$1(document.body).data('padding-right');if(typeof padding!=='undefined'){$$$1(document.body).css('padding-right',padding).removeData('padding-right');}};_proto._getScrollbarWidth=function _getScrollbarWidth(){var scrollDiv=document.createElement('div');scrollDiv.className=ClassName.SCROLLBAR_MEASURER;document.body.appendChild(scrollDiv);var scrollbarWidth=scrollDiv.getBoundingClientRect().width-scrollDiv.clientWidth;document.body.removeChild(scrollDiv);return scrollbarWidth;};Modal._jQueryInterface=function _jQueryInterface(config,relatedTarget){return this.each(function(){var data=$$$1(this).data(DATA_KEY);var _config=_objectSpread({},Default,$$$1(this).data(),typeof config==='object'&&config?config:{});if(!data){data=new Modal(this,_config);$$$1(this).data(DATA_KEY,data);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError("No method named \""+config+"\"");}
data[config](relatedTarget);}else if(_config.show){data.show(relatedTarget);}});};_createClass(Modal,null,[{key:"VERSION",get:function get(){return VERSION;}},{key:"Default",get:function get(){return Default;}}]);return Modal;}();$$$1(document).on(Event.CLICK_DATA_API,Selector.DATA_TOGGLE,function(event){var _this10=this;var target;var selector=Util.getSelectorFromElement(this);if(selector){target=$$$1(selector)[0];}
var config=$$$1(target).data(DATA_KEY)?'toggle':_objectSpread({},$$$1(target).data(),$$$1(this).data());if(this.tagName==='A'||this.tagName==='AREA'){event.preventDefault();}
var $target=$$$1(target).one(Event.SHOW,function(showEvent){if(showEvent.isDefaultPrevented()){return;}
$target.one(Event.HIDDEN,function(){if($$$1(_this10).is(':visible')){_this10.focus();}});});Modal._jQueryInterface.call($$$1(target),config,this);});$$$1.fn[NAME]=Modal._jQueryInterface;$$$1.fn[NAME].Constructor=Modal;$$$1.fn[NAME].noConflict=function(){$$$1.fn[NAME]=JQUERY_NO_CONFLICT;return Modal._jQueryInterface;};return Modal;}($);var Tooltip=function($$$1){var NAME='tooltip';var VERSION='4.1.1';var DATA_KEY='bs.tooltip';var EVENT_KEY="."+DATA_KEY;var JQUERY_NO_CONFLICT=$$$1.fn[NAME];var CLASS_PREFIX='bs-tooltip';var BSCLS_PREFIX_REGEX=new RegExp("(^|\\s)"+CLASS_PREFIX+"\\S+",'g');var DefaultType={animation:'boolean',template:'string',title:'(string|element|function)',trigger:'string',delay:'(number|object)',html:'boolean',selector:'(string|boolean)',placement:'(string|function)',offset:'(number|string)',container:'(string|element|boolean)',fallbackPlacement:'(string|array)',boundary:'(string|element)'};var AttachmentMap={AUTO:'auto',TOP:'top',RIGHT:'right',BOTTOM:'bottom',LEFT:'left'};var Default={animation:true,template:'<div class="tooltip" role="tooltip">'+'<div class="arrow"></div>'+'<div class="tooltip-inner"></div></div>',trigger:'hover focus',title:'',delay:0,html:false,selector:false,placement:'top',offset:0,container:false,fallbackPlacement:'flip',boundary:'scrollParent'};var HoverState={SHOW:'show',OUT:'out'};var Event={HIDE:"hide"+EVENT_KEY,HIDDEN:"hidden"+EVENT_KEY,SHOW:"show"+EVENT_KEY,SHOWN:"shown"+EVENT_KEY,INSERTED:"inserted"+EVENT_KEY,CLICK:"click"+EVENT_KEY,FOCUSIN:"focusin"+EVENT_KEY,FOCUSOUT:"focusout"+EVENT_KEY,MOUSEENTER:"mouseenter"+EVENT_KEY,MOUSELEAVE:"mouseleave"+EVENT_KEY};var ClassName={FADE:'fade',SHOW:'show'};var Selector={TOOLTIP:'.tooltip',TOOLTIP_INNER:'.tooltip-inner',ARROW:'.arrow'};var Trigger={HOVER:'hover',FOCUS:'focus',CLICK:'click',MANUAL:'manual'};var Tooltip=function(){function Tooltip(element,config){if(typeof Popper==='undefined'){throw new TypeError('Bootstrap tooltips require Popper.js (https://popper.js.org)');}
this._isEnabled=true;this._timeout=0;this._hoverState='';this._activeTrigger={};this._popper=null;this.element=element;this.config=this._getConfig(config);this.tip=null;this._setListeners();}
var _proto=Tooltip.prototype;_proto.enable=function enable(){this._isEnabled=true;};_proto.disable=function disable(){this._isEnabled=false;};_proto.toggleEnabled=function toggleEnabled(){this._isEnabled=!this._isEnabled;};_proto.toggle=function toggle(event){if(!this._isEnabled){return;}
if(event){var dataKey=this.constructor.DATA_KEY;var context=$$$1(event.currentTarget).data(dataKey);if(!context){context=new this.constructor(event.currentTarget,this._getDelegateConfig());$$$1(event.currentTarget).data(dataKey,context);}
context._activeTrigger.click=!context._activeTrigger.click;if(context._isWithActiveTrigger()){context._enter(null,context);}else{context._leave(null,context);}}else{if($$$1(this.getTipElement()).hasClass(ClassName.SHOW)){this._leave(null,this);return;}
this._enter(null,this);}};_proto.dispose=function dispose(){clearTimeout(this._timeout);$$$1.removeData(this.element,this.constructor.DATA_KEY);$$$1(this.element).off(this.constructor.EVENT_KEY);$$$1(this.element).closest('.modal').off('hide.bs.modal');if(this.tip){$$$1(this.tip).remove();}
this._isEnabled=null;this._timeout=null;this._hoverState=null;this._activeTrigger=null;if(this._popper!==null){this._popper.destroy();}
this._popper=null;this.element=null;this.config=null;this.tip=null;};_proto.show=function show(){var _this=this;if($$$1(this.element).css('display')==='none'){throw new Error('Please use show on visible elements');}
var showEvent=$$$1.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){$$$1(this.element).trigger(showEvent);var isInTheDom=$$$1.contains(this.element.ownerDocument.documentElement,this.element);if(showEvent.isDefaultPrevented()||!isInTheDom){return;}
var tip=this.getTipElement();var tipId=Util.getUID(this.constructor.NAME);tip.setAttribute('id',tipId);this.element.setAttribute('aria-describedby',tipId);this.setContent();if(this.config.animation){$$$1(tip).addClass(ClassName.FADE);}
var placement=typeof this.config.placement==='function'?this.config.placement.call(this,tip,this.element):this.config.placement;var attachment=this._getAttachment(placement);this.addAttachmentClass(attachment);var container=this.config.container===false?document.body:$$$1(this.config.container);$$$1(tip).data(this.constructor.DATA_KEY,this);if(!$$$1.contains(this.element.ownerDocument.documentElement,this.tip)){$$$1(tip).appendTo(container);}
$$$1(this.element).trigger(this.constructor.Event.INSERTED);this._popper=new Popper(this.element,tip,{placement:attachment,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:Selector.ARROW},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function onCreate(data){if(data.originalPlacement!==data.placement){_this._handlePopperPlacementChange(data);}},onUpdate:function onUpdate(data){_this._handlePopperPlacementChange(data);}});$$$1(tip).addClass(ClassName.SHOW);if('ontouchstart' in document.documentElement){$$$1(document.body).children().on('mouseover',null,$$$1.noop);}
var complete=function complete(){if(_this.config.animation){_this._fixTransition();}
var prevHoverState=_this._hoverState;_this._hoverState=null;$$$1(_this.element).trigger(_this.constructor.Event.SHOWN);if(prevHoverState===HoverState.OUT){_this._leave(null,_this);}};if($$$1(this.tip).hasClass(ClassName.FADE)){var transitionDuration=Util.getTransitionDurationFromElement(this.tip);$$$1(this.tip).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration);}else{complete();}}};_proto.hide=function hide(callback){var _this2=this;var tip=this.getTipElement();var hideEvent=$$$1.Event(this.constructor.Event.HIDE);var complete=function complete(){if(_this2._hoverState!==HoverState.SHOW&&tip.parentNode){tip.parentNode.removeChild(tip);}
_this2._cleanTipClass();_this2.element.removeAttribute('aria-describedby');$$$1(_this2.element).trigger(_this2.constructor.Event.HIDDEN);if(_this2._popper!==null){_this2._popper.destroy();}
if(callback){callback();}};$$$1(this.element).trigger(hideEvent);if(hideEvent.isDefaultPrevented()){return;}
$$$1(tip).removeClass(ClassName.SHOW);if('ontouchstart' in document.documentElement){$$$1(document.body).children().off('mouseover',null,$$$1.noop);}
this._activeTrigger[Trigger.CLICK]=false;this._activeTrigger[Trigger.FOCUS]=false;this._activeTrigger[Trigger.HOVER]=false;if($$$1(this.tip).hasClass(ClassName.FADE)){var transitionDuration=Util.getTransitionDurationFromElement(tip);$$$1(tip).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration);}else{complete();}
this._hoverState='';};_proto.update=function update(){if(this._popper!==null){this._popper.scheduleUpdate();}};_proto.isWithContent=function isWithContent(){return Boolean(this.getTitle());};_proto.addAttachmentClass=function addAttachmentClass(attachment){$$$1(this.getTipElement()).addClass(CLASS_PREFIX+"-"+attachment);};_proto.getTipElement=function getTipElement(){this.tip=this.tip||$$$1(this.config.template)[0];return this.tip;};_proto.setContent=function setContent(){var $tip=$$$1(this.getTipElement());this.setElementContent($tip.find(Selector.TOOLTIP_INNER),this.getTitle());$tip.removeClass(ClassName.FADE+" "+ClassName.SHOW);};_proto.setElementContent=function setElementContent($element,content){var html=this.config.html;if(typeof content==='object'&&(content.nodeType||content.jquery)){if(html){if(!$$$1(content).parent().is($element)){$element.empty().append(content);}}else{$element.text($$$1(content).text());}}else{$element[html?'html':'text'](content);}};_proto.getTitle=function getTitle(){var title=this.element.getAttribute('data-original-title');if(!title){title=typeof this.config.title==='function'?this.config.title.call(this.element):this.config.title;}
return title;};_proto._getAttachment=function _getAttachment(placement){return AttachmentMap[placement.toUpperCase()];};_proto._setListeners=function _setListeners(){var _this3=this;var triggers=this.config.trigger.split(' ');triggers.forEach(function(trigger){if(trigger==='click'){$$$1(_this3.element).on(_this3.constructor.Event.CLICK,_this3.config.selector,function(event){return _this3.toggle(event);});}else if(trigger!==Trigger.MANUAL){var eventIn=trigger===Trigger.HOVER?_this3.constructor.Event.MOUSEENTER:_this3.constructor.Event.FOCUSIN;var eventOut=trigger===Trigger.HOVER?_this3.constructor.Event.MOUSELEAVE:_this3.constructor.Event.FOCUSOUT;$$$1(_this3.element).on(eventIn,_this3.config.selector,function(event){return _this3._enter(event);}).on(eventOut,_this3.config.selector,function(event){return _this3._leave(event);});}
$$$1(_this3.element).closest('.modal').on('hide.bs.modal',function(){return _this3.hide();});});if(this.config.selector){this.config=_objectSpread({},this.config,{trigger:'manual',selector:''});}else{this._fixTitle();}};_proto._fixTitle=function _fixTitle(){var titleType=typeof this.element.getAttribute('data-original-title');if(this.element.getAttribute('title')||titleType!=='string'){this.element.setAttribute('data-original-title',this.element.getAttribute('title')||'');this.element.setAttribute('title','');}};_proto._enter=function _enter(event,context){var dataKey=this.constructor.DATA_KEY;context=context||$$$1(event.currentTarget).data(dataKey);if(!context){context=new this.constructor(event.currentTarget,this._getDelegateConfig());$$$1(event.currentTarget).data(dataKey,context);}
if(event){context._activeTrigger[event.type==='focusin'?Trigger.FOCUS:Trigger.HOVER]=true;}
if($$$1(context.getTipElement()).hasClass(ClassName.SHOW)||context._hoverState===HoverState.SHOW){context._hoverState=HoverState.SHOW;return;}
clearTimeout(context._timeout);context._hoverState=HoverState.SHOW;if(!context.config.delay||!context.config.delay.show){context.show();return;}
context._timeout=setTimeout(function(){if(context._hoverState===HoverState.SHOW){context.show();}},context.config.delay.show);};_proto._leave=function _leave(event,context){var dataKey=this.constructor.DATA_KEY;context=context||$$$1(event.currentTarget).data(dataKey);if(!context){context=new this.constructor(event.currentTarget,this._getDelegateConfig());$$$1(event.currentTarget).data(dataKey,context);}
if(event){context._activeTrigger[event.type==='focusout'?Trigger.FOCUS:Trigger.HOVER]=false;}
if(context._isWithActiveTrigger()){return;}
clearTimeout(context._timeout);context._hoverState=HoverState.OUT;if(!context.config.delay||!context.config.delay.hide){context.hide();return;}
context._timeout=setTimeout(function(){if(context._hoverState===HoverState.OUT){context.hide();}},context.config.delay.hide);};_proto._isWithActiveTrigger=function _isWithActiveTrigger(){for(var trigger in this._activeTrigger){if(this._activeTrigger[trigger]){return true;}}
return false;};_proto._getConfig=function _getConfig(config){config=_objectSpread({},this.constructor.Default,$$$1(this.element).data(),typeof config==='object'&&config?config:{});if(typeof config.delay==='number'){config.delay={show:config.delay,hide:config.delay};}
if(typeof config.title==='number'){config.title=config.title.toString();}
if(typeof config.content==='number'){config.content=config.content.toString();}
Util.typeCheckConfig(NAME,config,this.constructor.DefaultType);return config;};_proto._getDelegateConfig=function _getDelegateConfig(){var config={};if(this.config){for(var key in this.config){if(this.constructor.Default[key]!==this.config[key]){config[key]=this.config[key];}}}
return config;};_proto._cleanTipClass=function _cleanTipClass(){var $tip=$$$1(this.getTipElement());var tabClass=$tip.attr('class').match(BSCLS_PREFIX_REGEX);if(tabClass!==null&&tabClass.length>0){$tip.removeClass(tabClass.join(''));}};_proto._handlePopperPlacementChange=function _handlePopperPlacementChange(data){this._cleanTipClass();this.addAttachmentClass(this._getAttachment(data.placement));};_proto._fixTransition=function _fixTransition(){var tip=this.getTipElement();var initConfigAnimation=this.config.animation;if(tip.getAttribute('x-placement')!==null){return;}
$$$1(tip).removeClass(ClassName.FADE);this.config.animation=false;this.hide();this.show();this.config.animation=initConfigAnimation;};Tooltip._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var data=$$$1(this).data(DATA_KEY);var _config=typeof config==='object'&&config;if(!data&&/dispose|hide/.test(config)){return;}
if(!data){data=new Tooltip(this,_config);$$$1(this).data(DATA_KEY,data);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError("No method named \""+config+"\"");}
data[config]();}});};_createClass(Tooltip,null,[{key:"VERSION",get:function get(){return VERSION;}},{key:"Default",get:function get(){return Default;}},{key:"NAME",get:function get(){return NAME;}},{key:"DATA_KEY",get:function get(){return DATA_KEY;}},{key:"Event",get:function get(){return Event;}},{key:"EVENT_KEY",get:function get(){return EVENT_KEY;}},{key:"DefaultType",get:function get(){return DefaultType;}}]);return Tooltip;}();$$$1.fn[NAME]=Tooltip._jQueryInterface;$$$1.fn[NAME].Constructor=Tooltip;$$$1.fn[NAME].noConflict=function(){$$$1.fn[NAME]=JQUERY_NO_CONFLICT;return Tooltip._jQueryInterface;};return Tooltip;}($,Popper);var Popover=function($$$1){var NAME='popover';var VERSION='4.1.1';var DATA_KEY='bs.popover';var EVENT_KEY="."+DATA_KEY;var JQUERY_NO_CONFLICT=$$$1.fn[NAME];var CLASS_PREFIX='bs-popover';var BSCLS_PREFIX_REGEX=new RegExp("(^|\\s)"+CLASS_PREFIX+"\\S+",'g');var Default=_objectSpread({},Tooltip.Default,{placement:'right',trigger:'click',content:'',template:'<div class="popover" role="tooltip">'+'<div class="arrow"></div>'+'<h3 class="popover-header"></h3>'+'<div class="popover-body"></div></div>'});var DefaultType=_objectSpread({},Tooltip.DefaultType,{content:'(string|element|function)'});var ClassName={FADE:'fade',SHOW:'show'};var Selector={TITLE:'.popover-header',CONTENT:'.popover-body'};var Event={HIDE:"hide"+EVENT_KEY,HIDDEN:"hidden"+EVENT_KEY,SHOW:"show"+EVENT_KEY,SHOWN:"shown"+EVENT_KEY,INSERTED:"inserted"+EVENT_KEY,CLICK:"click"+EVENT_KEY,FOCUSIN:"focusin"+EVENT_KEY,FOCUSOUT:"focusout"+EVENT_KEY,MOUSEENTER:"mouseenter"+EVENT_KEY,MOUSELEAVE:"mouseleave"+EVENT_KEY};var Popover=function(_Tooltip){_inheritsLoose(Popover,_Tooltip);function Popover(){return _Tooltip.apply(this,arguments)||this;}
var _proto=Popover.prototype;_proto.isWithContent=function isWithContent(){return this.getTitle()||this._getContent();};_proto.addAttachmentClass=function addAttachmentClass(attachment){$$$1(this.getTipElement()).addClass(CLASS_PREFIX+"-"+attachment);};_proto.getTipElement=function getTipElement(){this.tip=this.tip||$$$1(this.config.template)[0];return this.tip;};_proto.setContent=function setContent(){var $tip=$$$1(this.getTipElement());this.setElementContent($tip.find(Selector.TITLE),this.getTitle());var content=this._getContent();if(typeof content==='function'){content=content.call(this.element);}
this.setElementContent($tip.find(Selector.CONTENT),content);$tip.removeClass(ClassName.FADE+" "+ClassName.SHOW);};_proto._getContent=function _getContent(){return this.element.getAttribute('data-content')||this.config.content;};_proto._cleanTipClass=function _cleanTipClass(){var $tip=$$$1(this.getTipElement());var tabClass=$tip.attr('class').match(BSCLS_PREFIX_REGEX);if(tabClass!==null&&tabClass.length>0){$tip.removeClass(tabClass.join(''));}};Popover._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var data=$$$1(this).data(DATA_KEY);var _config=typeof config==='object'?config:null;if(!data&&/destroy|hide/.test(config)){return;}
if(!data){data=new Popover(this,_config);$$$1(this).data(DATA_KEY,data);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError("No method named \""+config+"\"");}
data[config]();}});};_createClass(Popover,null,[{key:"VERSION",get:function get(){return VERSION;}},{key:"Default",get:function get(){return Default;}},{key:"NAME",get:function get(){return NAME;}},{key:"DATA_KEY",get:function get(){return DATA_KEY;}},{key:"Event",get:function get(){return Event;}},{key:"EVENT_KEY",get:function get(){return EVENT_KEY;}},{key:"DefaultType",get:function get(){return DefaultType;}}]);return Popover;}(Tooltip);$$$1.fn[NAME]=Popover._jQueryInterface;$$$1.fn[NAME].Constructor=Popover;$$$1.fn[NAME].noConflict=function(){$$$1.fn[NAME]=JQUERY_NO_CONFLICT;return Popover._jQueryInterface;};return Popover;}($);var ScrollSpy=function($$$1){var NAME='scrollspy';var VERSION='4.1.1';var DATA_KEY='bs.scrollspy';var EVENT_KEY="."+DATA_KEY;var DATA_API_KEY='.data-api';var JQUERY_NO_CONFLICT=$$$1.fn[NAME];var Default={offset:10,method:'auto',target:''};var DefaultType={offset:'number',method:'string',target:'(string|element)'};var Event={ACTIVATE:"activate"+EVENT_KEY,SCROLL:"scroll"+EVENT_KEY,LOAD_DATA_API:"load"+EVENT_KEY+DATA_API_KEY};var ClassName={DROPDOWN_ITEM:'dropdown-item',DROPDOWN_MENU:'dropdown-menu',ACTIVE:'active'};var Selector={DATA_SPY:'[data-spy="scroll"]',ACTIVE:'.active',NAV_LIST_GROUP:'.nav, .list-group',NAV_LINKS:'.nav-link',NAV_ITEMS:'.nav-item',LIST_ITEMS:'.list-group-item',DROPDOWN:'.dropdown',DROPDOWN_ITEMS:'.dropdown-item',DROPDOWN_TOGGLE:'.dropdown-toggle'};var OffsetMethod={OFFSET:'offset',POSITION:'position'};var ScrollSpy=function(){function ScrollSpy(element,config){var _this=this;this._element=element;this._scrollElement=element.tagName==='BODY'?window:element;this._config=this._getConfig(config);this._selector=this._config.target+" "+Selector.NAV_LINKS+","+(this._config.target+" "+Selector.LIST_ITEMS+",")+(this._config.target+" "+Selector.DROPDOWN_ITEMS);this._offsets=[];this._targets=[];this._activeTarget=null;this._scrollHeight=0;$$$1(this._scrollElement).on(Event.SCROLL,function(event){return _this._process(event);});this.refresh();this._process();}
var _proto=ScrollSpy.prototype;_proto.refresh=function refresh(){var _this2=this;var autoMethod=this._scrollElement===this._scrollElement.window?OffsetMethod.OFFSET:OffsetMethod.POSITION;var offsetMethod=this._config.method==='auto'?autoMethod:this._config.method;var offsetBase=offsetMethod===OffsetMethod.POSITION?this._getScrollTop():0;this._offsets=[];this._targets=[];this._scrollHeight=this._getScrollHeight();var targets=$$$1.makeArray($$$1(this._selector));targets.map(function(element){var target;var targetSelector=Util.getSelectorFromElement(element);if(targetSelector){target=$$$1(targetSelector)[0];}
if(target){var targetBCR=target.getBoundingClientRect();if(targetBCR.width||targetBCR.height){return[$$$1(target)[offsetMethod]().top+offsetBase,targetSelector];}}
return null;}).filter(function(item){return item;}).sort(function(a,b){return a[0]-b[0];}).forEach(function(item){_this2._offsets.push(item[0]);_this2._targets.push(item[1]);});};_proto.dispose=function dispose(){$$$1.removeData(this._element,DATA_KEY);$$$1(this._scrollElement).off(EVENT_KEY);this._element=null;this._scrollElement=null;this._config=null;this._selector=null;this._offsets=null;this._targets=null;this._activeTarget=null;this._scrollHeight=null;};_proto._getConfig=function _getConfig(config){config=_objectSpread({},Default,typeof config==='object'&&config?config:{});if(typeof config.target!=='string'){var id=$$$1(config.target).attr('id');if(!id){id=Util.getUID(NAME);$$$1(config.target).attr('id',id);}
config.target="#"+id;}
Util.typeCheckConfig(NAME,config,DefaultType);return config;};_proto._getScrollTop=function _getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop;};_proto._getScrollHeight=function _getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight);};_proto._getOffsetHeight=function _getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height;};_proto._process=function _process(){var scrollTop=this._getScrollTop()+this._config.offset;var scrollHeight=this._getScrollHeight();var maxScroll=this._config.offset+scrollHeight-this._getOffsetHeight();if(this._scrollHeight!==scrollHeight){this.refresh();}
if(scrollTop>=maxScroll){var target=this._targets[this._targets.length-1];if(this._activeTarget!==target){this._activate(target);}
return;}
if(this._activeTarget&&scrollTop<this._offsets[0]&&this._offsets[0]>0){this._activeTarget=null;this._clear();return;}
for(var i=this._offsets.length;i--;){var isActiveTarget=this._activeTarget!==this._targets[i]&&scrollTop>=this._offsets[i]&&(typeof this._offsets[i+1]==='undefined'||scrollTop<this._offsets[i+1]);if(isActiveTarget){this._activate(this._targets[i]);}}};_proto._activate=function _activate(target){this._activeTarget=target;this._clear();var queries=this._selector.split(',');queries=queries.map(function(selector){return selector+"[data-target=\""+target+"\"],"+(selector+"[href=\""+target+"\"]");});var $link=$$$1(queries.join(','));if($link.hasClass(ClassName.DROPDOWN_ITEM)){$link.closest(Selector.DROPDOWN).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE);$link.addClass(ClassName.ACTIVE);}else{$link.addClass(ClassName.ACTIVE);$link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_LINKS+", "+Selector.LIST_ITEMS).addClass(ClassName.ACTIVE);$link.parents(Selector.NAV_LIST_GROUP).prev(Selector.NAV_ITEMS).children(Selector.NAV_LINKS).addClass(ClassName.ACTIVE);}
$$$1(this._scrollElement).trigger(Event.ACTIVATE,{relatedTarget:target});};_proto._clear=function _clear(){$$$1(this._selector).filter(Selector.ACTIVE).removeClass(ClassName.ACTIVE);};ScrollSpy._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var data=$$$1(this).data(DATA_KEY);var _config=typeof config==='object'&&config;if(!data){data=new ScrollSpy(this,_config);$$$1(this).data(DATA_KEY,data);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError("No method named \""+config+"\"");}
data[config]();}});};_createClass(ScrollSpy,null,[{key:"VERSION",get:function get(){return VERSION;}},{key:"Default",get:function get(){return Default;}}]);return ScrollSpy;}();$$$1(window).on(Event.LOAD_DATA_API,function(){var scrollSpys=$$$1.makeArray($$$1(Selector.DATA_SPY));for(var i=scrollSpys.length;i--;){var $spy=$$$1(scrollSpys[i]);ScrollSpy._jQueryInterface.call($spy,$spy.data());}});$$$1.fn[NAME]=ScrollSpy._jQueryInterface;$$$1.fn[NAME].Constructor=ScrollSpy;$$$1.fn[NAME].noConflict=function(){$$$1.fn[NAME]=JQUERY_NO_CONFLICT;return ScrollSpy._jQueryInterface;};return ScrollSpy;}($);var Tab=function($$$1){var NAME='tab';var VERSION='4.1.1';var DATA_KEY='bs.tab';var EVENT_KEY="."+DATA_KEY;var DATA_API_KEY='.data-api';var JQUERY_NO_CONFLICT=$$$1.fn[NAME];var Event={HIDE:"hide"+EVENT_KEY,HIDDEN:"hidden"+EVENT_KEY,SHOW:"show"+EVENT_KEY,SHOWN:"shown"+EVENT_KEY,CLICK_DATA_API:"click"+EVENT_KEY+DATA_API_KEY};var ClassName={DROPDOWN_MENU:'dropdown-menu',ACTIVE:'active',DISABLED:'disabled',FADE:'fade',SHOW:'show'};var Selector={DROPDOWN:'.dropdown',NAV_LIST_GROUP:'.nav, .list-group',ACTIVE:'.active',ACTIVE_UL:'> li > .active',DATA_TOGGLE:'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',DROPDOWN_TOGGLE:'.dropdown-toggle',DROPDOWN_ACTIVE_CHILD:'> .dropdown-menu .active'};var Tab=function(){function Tab(element){this._element=element;}
var _proto=Tab.prototype;_proto.show=function show(){var _this=this;if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&$$$1(this._element).hasClass(ClassName.ACTIVE)||$$$1(this._element).hasClass(ClassName.DISABLED)){return;}
var target;var previous;var listElement=$$$1(this._element).closest(Selector.NAV_LIST_GROUP)[0];var selector=Util.getSelectorFromElement(this._element);if(listElement){var itemSelector=listElement.nodeName==='UL'?Selector.ACTIVE_UL:Selector.ACTIVE;previous=$$$1.makeArray($$$1(listElement).find(itemSelector));previous=previous[previous.length-1];}
var hideEvent=$$$1.Event(Event.HIDE,{relatedTarget:this._element});var showEvent=$$$1.Event(Event.SHOW,{relatedTarget:previous});if(previous){$$$1(previous).trigger(hideEvent);}
$$$1(this._element).trigger(showEvent);if(showEvent.isDefaultPrevented()||hideEvent.isDefaultPrevented()){return;}
if(selector){target=$$$1(selector)[0];}
this._activate(this._element,listElement);var complete=function complete(){var hiddenEvent=$$$1.Event(Event.HIDDEN,{relatedTarget:_this._element});var shownEvent=$$$1.Event(Event.SHOWN,{relatedTarget:previous});$$$1(previous).trigger(hiddenEvent);$$$1(_this._element).trigger(shownEvent);};if(target){this._activate(target,target.parentNode,complete);}else{complete();}};_proto.dispose=function dispose(){$$$1.removeData(this._element,DATA_KEY);this._element=null;};_proto._activate=function _activate(element,container,callback){var _this2=this;var activeElements;if(container.nodeName==='UL'){activeElements=$$$1(container).find(Selector.ACTIVE_UL);}else{activeElements=$$$1(container).children(Selector.ACTIVE);}
var active=activeElements[0];var isTransitioning=callback&&active&&$$$1(active).hasClass(ClassName.FADE);var complete=function complete(){return _this2._transitionComplete(element,active,callback);};if(active&&isTransitioning){var transitionDuration=Util.getTransitionDurationFromElement(active);$$$1(active).one(Util.TRANSITION_END,complete).emulateTransitionEnd(transitionDuration);}else{complete();}};_proto._transitionComplete=function _transitionComplete(element,active,callback){if(active){$$$1(active).removeClass(ClassName.SHOW+" "+ClassName.ACTIVE);var dropdownChild=$$$1(active.parentNode).find(Selector.DROPDOWN_ACTIVE_CHILD)[0];if(dropdownChild){$$$1(dropdownChild).removeClass(ClassName.ACTIVE);}
if(active.getAttribute('role')==='tab'){active.setAttribute('aria-selected',false);}}
$$$1(element).addClass(ClassName.ACTIVE);if(element.getAttribute('role')==='tab'){element.setAttribute('aria-selected',true);}
Util.reflow(element);$$$1(element).addClass(ClassName.SHOW);if(element.parentNode&&$$$1(element.parentNode).hasClass(ClassName.DROPDOWN_MENU)){var dropdownElement=$$$1(element).closest(Selector.DROPDOWN)[0];if(dropdownElement){$$$1(dropdownElement).find(Selector.DROPDOWN_TOGGLE).addClass(ClassName.ACTIVE);}
element.setAttribute('aria-expanded',true);}
if(callback){callback();}};Tab._jQueryInterface=function _jQueryInterface(config){return this.each(function(){var $this=$$$1(this);var data=$this.data(DATA_KEY);if(!data){data=new Tab(this);$this.data(DATA_KEY,data);}
if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError("No method named \""+config+"\"");}
data[config]();}});};_createClass(Tab,null,[{key:"VERSION",get:function get(){return VERSION;}}]);return Tab;}();$$$1(document).on(Event.CLICK_DATA_API,Selector.DATA_TOGGLE,function(event){event.preventDefault();Tab._jQueryInterface.call($$$1(this),'show');});$$$1.fn[NAME]=Tab._jQueryInterface;$$$1.fn[NAME].Constructor=Tab;$$$1.fn[NAME].noConflict=function(){$$$1.fn[NAME]=JQUERY_NO_CONFLICT;return Tab._jQueryInterface;};return Tab;}($);(function($$$1){if(typeof $$$1==='undefined'){throw new TypeError('Bootstrap\'s JavaScript requires jQuery. jQuery must be included before Bootstrap\'s JavaScript.');}
var version=$$$1.fn.jquery.split(' ')[0].split('.');var minMajor=1;var ltMajor=2;var minMinor=9;var minPatch=1;var maxMajor=4;if(version[0]<ltMajor&&version[1]<minMinor||version[0]===minMajor&&version[1]===minMinor&&version[2]<minPatch||version[0]>=maxMajor){throw new Error('Bootstrap\'s JavaScript requires at least jQuery v1.9.1 but less than v4.0.0');}})($);exports.Util=Util;exports.Alert=Alert;exports.Button=Button;exports.Carousel=Carousel;exports.Collapse=Collapse;exports.Dropdown=Dropdown;exports.Modal=Modal;exports.Popover=Popover;exports.Scrollspy=ScrollSpy;exports.Tab=Tab;exports.Tooltip=Tooltip;Object.defineProperty(exports,'__esModule',{value:true});})));
;;;var dnnJscriptVersion="6.0.0";if(typeof(Sys.Browser.Chrome)=="undefined"){Sys.Browser.Chrome={};if(navigator.userAgent.indexOf("Chrome/index.html")>-1){Sys.Browser.agent=Sys.Browser.Chrome;Sys.Browser.version=parseFloat(navigator.userAgent.match(/Chrome\/(\d+\.\d+)/)[1]);Sys.Browser.name="Chrome";Sys.Browser.hasDebuggerStatement=true}}else{if(Sys.Browser.agent===Sys.Browser.InternetExplorer&&Sys.Browser.version>10){HTMLAnchorElement.prototype.attachEvent=function(a,b){if(a.substr(0,2)=="on"){a=a.substr(2)}this.addEventListener(a,b,false)};HTMLAnchorElement.prototype.detachEvent=function(a,b){if(a.substr(0,2)=="on"){a=a.substr(2)}this.removeEventListener(a,b,false)}}}if($&&$.ui&&$.ui.dialog){$.extend($.ui.dialog.prototype.options,{open:function(){var e=$(document).find("html");e.css("overflow","hidden");var f=e.find("body").scrollTop();if(f>0){e.scrollTop(0);var d=$(this);d.data("cacheScrollTop",f)}var a=$(this).closest(".ui-dialog");if(!$("html").hasClass("mobileView")){var c=$(window).height();var b=a.outerHeight();if(c-20>=b){a.css({position:"fixed",left:"50%",top:"50%",marginLeft:"-"+(a.outerWidth()/2)+"px",marginTop:"-"+(a.outerHeight()/2)+"px",maxHeight:"inherit",overflow:"initial"})}else{a.css({position:"fixed",left:"50%",top:"0",marginLeft:"-"+(a.outerWidth()/2)+"px",marginTop:"0",maxHeight:(c-20)+"px",overflow:"auto"})}}a.find(".ui-dialog-titlebar-close").attr("aria-label","Close")},beforeClose:function(){var b=$(document).find("html");b.css("overflow","");var c=$(this).data("cacheScrollTop");if(c){b.find("body").scrollTop(c);$(this).data("cacheScrollTop",null)}var a=$(this).closest(".ui-dialog");a.css({overflow:"initial"})}})}var DNN_HIGHLIGHT_COLOR="#9999FF";var COL_DELIMITER=String.fromCharCode(18);var ROW_DELIMITER=String.fromCharCode(17);var QUOTE_REPLACEMENT=String.fromCharCode(19);var KEY_LEFT_ARROW=37;var KEY_UP_ARROW=38;var KEY_RIGHT_ARROW=39;var KEY_DOWN_ARROW=40;var KEY_RETURN=13;var KEY_ESCAPE=27;Type.registerNamespace("dnn");dnn.extend=function(a,b){for(s in b){a[s]=b[s]}return a};dnn.extend(dnn,{apiversion:new Number("04.02"),pns:"",ns:"dnn",diagnostics:null,vars:null,dependencies:new Array(),isLoaded:false,delay:[],_delayedSet:null,getVars:function(){if(this.vars==null){var a=dnn.dom.getById("__dnnVariable");if(a!=null){if(a.value.indexOf("`")==0){a.value=a.value.substring(1).replace(/`/g,'"')}if(a.value.indexOf("__scdoff")!=-1){COL_DELIMITER="~|~";ROW_DELIMITER="~`~";QUOTE_REPLACEMENT="~!~"}}if(a!=null&&a.value.length>0){this.vars=Sys.Serialization.JavaScriptSerializer.deserialize(a.value)}else{this.vars=[]}}return this.vars},getVar:function(key,def){if(this.getVars()[key]!=null){var re=eval("/"+QUOTE_REPLACEMENT+"/g");return this.getVars()[key].replace(re,'"')}return def},setVar:function(b,c){if(this.vars==null){this.getVars()}this.vars[b]=c;var a=dnn.dom.getById("__dnnVariable");if(a==null){a=dnn.dom.createElement("INPUT");a.type="hidden";a.id="__dnnVariable";dnn.dom.appendChild(dnn.dom.getByTagName("body")[0],a)}if(dnn.isLoaded){a.value=Sys.Serialization.JavaScriptSerializer.serialize(this.vars)}else{dnn._delayedSet={key:b,val:c}}return true},callPostBack:function(action){var postBack=dnn.getVar("__dnn_postBack");var data="";if(postBack.length>0){data+=action;for(var i=1;i<arguments.length;i++){var aryParam=arguments[i].split("=");data+=COL_DELIMITER+aryParam[0]+COL_DELIMITER+aryParam[1]}eval(postBack.replace("[DATA]",data));return true}return false},createDelegate:function(a,b){return Function.createDelegate(a,b)},doDelay:function(b,c,d,a){if(this.delay[b]==null){this.delay[b]=new dnn.delayObject(d,a,b);this.delay[b].num=window.setTimeout(dnn.createDelegate(this.delay[b],this.delay[b].complete),c)}},cancelDelay:function(a){if(this.delay[a]!=null){window.clearTimeout(this.delay[a].num);this.delay[a]=null}},decodeHTML:function(a){return a.toString().replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"')},encode:function(a,c){var b=a;if(encodeURIComponent){b=encodeURIComponent(b)}else{b=escape(b)}if(c==false){return b}return b.replace(/%/g,"%25")},encodeHTML:function(a){return a.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&apos;").replace(/\"/g,"&quot;")},encodeJSON:function(a){return a.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"\u0027").replace(/\"/g,"&quot;").replace(/\\/g,"\\\\")},evalJSON:function(a){return Sys.Serialization.JavaScriptSerializer.deserialize(a)},escapeForEval:function(a){return a.replace(/\\/g,"\\\\").replace(/\'/g,"\\'").replace(/\r/g,"").replace(/\n/g,"\\n").replace(/\./,"\\.")},getEnumByValue:function(a,b){for(var c in a){if(typeof(a[c])=="number"&&a[c]==b){return c}}},_onload:function(){dnn.isLoaded=true;if(dnn._delayedSet){dnn.setVar(dnn._delayedSet.key,dnn._delayedSet.val)}},addIframeMask:function(c){if(dnn.dom.browser.isType("ie")&&(c.previousSibling==null||c.previousSibling.nodeName.toLowerCase()!="iframe")){var a=document.createElement("iframe");c.parentNode.insertBefore(a,c);var b=c.getBoundingClientRect();a.style.position="absolute";a.style.left=c.offsetLeft+"px";a.style.top=c.offsetTop+"px";a.style.width=(b.right-b.left)+"px";a.style.height=(b.bottom-b.top)+"px";a.style.opacity="0";a.style.filter="progid:DXImageTransform.Microsoft.Alpha(opacity=0)";a.style.zIndex="-1";return a}return null},removeIframeMask:function(a){if(dnn.dom.browser.isType("ie")&&(a.previousSibling!=null&&a.previousSibling.nodeName.toLowerCase()=="iframe")){a.parentNode.removeChild(a.previousSibling)}}});dnn.delayObject=function(c,a,b){this.num=null;this.pfunc=c;this.context=a;this.type=b};dnn.delayObject.prototype={complete:function(){dnn.delay[this.type]=null;this.pfunc(this.context)}};dnn.delayObject.registerClass("dnn.delayObject");dnn.ScriptRequest=function(e,d,c){this.ctl=null;this.xmlhttp=null;this.src=null;this.text=null;if(e!=null&&e.length>0){var b=dnn.dom.scriptFile(e);var a=dnn.getVar(b+".resx","");if(a.length>0){this.src=a}else{this.src=e}}if(d!=null&&d.length>0){this.text=d}this.callBack=c;this.status="init";this.timeOut=5000;this._xmlhttpStatusChangeDelegate=dnn.createDelegate(this,this.xmlhttpStatusChange);this._statusChangeDelegate=dnn.createDelegate(this,this.statusChange);this._completeDelegate=dnn.createDelegate(this,this.complete);this._reloadDelegate=dnn.createDelegate(this,this.reload)};dnn.ScriptRequest.prototype={load:function(){this.status="loading";this.ctl=document.createElement("script");this.ctl.type="text/javascript";if(this.src!=null){if(dnn.dom.browser.isType(dnn.dom.browser.Safari)){this.xmlhttp=new XMLHttpRequest();this.xmlhttp.open("GET",this.src,true);this.xmlhttp.onreadystatechange=this._xmlhttpStatusChangeDelegate;this.xmlhttp.send(null);return}else{if(dnn.dom.browser.isType(dnn.dom.browser.InternetExplorer)){this.ctl.onreadystatechange=this._statusChangeDelegate}else{if(dnn.dom.browser.isType(dnn.dom.browser.Opera)==false){this.ctl.onload=this._completeDelegate}}this.ctl.src=this.src}dnn.dom.scriptElements[this.src]=this.ctl}else{if(dnn.dom.browser.isType(dnn.dom.browser.Safari)){this.ctl.innerHTML=dnn.encodeHTML(this.text)}else{this.ctl.text=this.text}}var a=dnn.dom.getByTagName("HEAD");if(a){if(dnn.dom.browser.isType(dnn.dom.browser.Opera)==false||this.src!=null){a[0].appendChild(this.ctl)}}else{alert("Cannot load dynamic script, no HEAD tag present.")}if(this.src==null||dnn.dom.browser.isType(dnn.dom.browser.Opera)){this.complete()}else{if(this.timeOut){dnn.doDelay("loadScript_"+this.src,this.timeOut,this._reloadDelegate,null)}}},xmlhttpStatusChange:function(){if(this.xmlhttp.readyState!=4){return}this.src=null;this.text=this.xmlhttp.responseText;this.load()},statusChange:function(){if((this.ctl.readyState=="loaded"||this.ctl.readyState=="complete")&&this.status!="complete"){this.complete()}},reload:function(){if(dnn.dom.scriptStatus(this.src)=="complete"){this.complete()}else{this.load()}},complete:function(){dnn.cancelDelay("loadScript_"+this.src);this.status="complete";if(typeof(this.callBack)!="undefined"){this.callBack(this)}this.dispose()},dispose:function(){this.callBack=null;if(this.ctl){if(this.ctl.onreadystatechange){this.ctl.onreadystatechange=new function(){}}else{if(this.ctl.onload){this.ctl.onload=null}}this.ctl=null}this.xmlhttp=null;this._xmlhttpStatusChangeDelegate=null;this._statusChangeDelegate=null;this._completeDelegate=null;this._reloadDelegate=null}};dnn.ScriptRequest.registerClass("dnn.ScriptRequest");Type.registerNamespace("dnn.dom");dnn.extend(dnn.dom,{pns:"dnn",ns:"dom",browser:null,__leakEvts:[],scripts:[],scriptElements:[],tweens:[],attachEvent:function(a,c,d){if(a.addEventListener){var b=c.substring(2);a.addEventListener(b,function(e){dnn.dom.event=new dnn.dom.eventObject(e,e.target);return d()},false)}else{a.attachEvent(c,function(){dnn.dom.event=new dnn.dom.eventObject(window.event,window.event.srcElement);return d()})}return true},cursorPos:function(b){if(b.value.length==0){return 0}var h=-1;if(b.selectionStart){h=b.selectionStart}else{if(b.createTextRange){var f=window.document.selection.createRange();var a=b.createTextRange();if(a==null||f==null||((f.text!="")&&a.inRange(f)==false)){return-1}if(f.text==""){if(a.boundingLeft==f.boundingLeft){h=0}else{var d=b.tagName.toLowerCase();if(d=="input"){var g=a.text;var c=1;while(c<g.length){a.findText(g.substring(c));if(a.boundingLeft==f.boundingLeft){break}c++}}else{if(d=="textarea"){var c=b.value.length+1;var e=document.selection.createRange().duplicate();while(e.parentElement()==b&&e.move("character",1)==1){--c}if(c==b.value.length+1){c=-1}}}h=c}}else{h=a.text.indexOf(f.text)}}}return h},cancelCollapseElement:function(a){dnn.cancelDelay(a.id+"col");a.style.display="none"},collapseElement:function(b,c,d){if(c==null){c=10}b.style.overflow="hidden";var a=new Object();a.num=c;a.ctl=b;a.pfunc=d;b.origHeight=b.offsetHeight;dnn.dom.__collapseElement(a)},__collapseElement:function(a){var c=a.num;var b=a.ctl;var d=b.origHeight/c;if(b.offsetHeight-(d*2)>0){b.style.height=(b.offsetHeight-d).toString()+"px";dnn.doDelay(b.id+"col",10,dnn.dom.__collapseElement,a)}else{b.style.display="none";if(a.pfunc!=null){a.pfunc()}}},cancelExpandElement:function(a){dnn.cancelDelay(a.id+"exp");a.style.overflow="";a.style.height=""},disableTextSelect:function(a){if(typeof a.onselectstart!="undefined"){a.onselectstart=function(){return false}}else{if(typeof a.style.MozUserSelect!="undefined"){a.style.MozUserSelect="none"}else{a.onmousedown=function(){return false}}}},expandElement:function(b,c,d){if(c==null){c=10}if(b.style.display=="none"&&b.origHeight==null){b.style.display="";b.style.overflow="";b.origHeight=b.offsetHeight;b.style.overflow="hidden";b.style.height="1px"}b.style.display="";var a=new Object();a.num=c;a.ctl=b;a.pfunc=d;dnn.dom.__expandElement(a)},__expandElement:function(a){var c=a.num;var b=a.ctl;var d=b.origHeight/c;if(b.offsetHeight+d<b.origHeight){b.style.height=(b.offsetHeight+d).toString()+"px";dnn.doDelay(b.id+"exp",10,dnn.dom.__expandElement,a)}else{b.style.overflow="";b.style.height="";if(a.pfunc!=null){a.pfunc()}}},deleteCookie:function(a,c,b){if(this.getCookie(a)){this.setCookie(a,"",-1,c,b);return true}return false},getAttr:function(b,a,c){if(b.getAttribute==null){return c}var d=b.getAttribute(a);if(d==null||d==""){return c}else{return d}},getById:function(b,a){return $get(b,a)},getByTagName:function(a,b){if(b==null){b=document}if(b.getElementsByTagName){return b.getElementsByTagName(a)}else{if(b.all&&b.all.tags){return b.all.tags(a)}else{return null}}},getParentByTagName:function(b,a){var c=b.parentNode;a=a.toLowerCase();while(c!=null){if(c.tagName&&c.tagName.toLowerCase()==a){return c}c=c.parentNode}return null},getCookie:function(c){var e=" "+document.cookie;var d=" "+c+"=";var b=null;var f=0;var a=0;if(e.length>0){f=e.indexOf(d);if(f!=-1){f+=d.length;a=e.indexOf(";",f);if(a==-1){a=e.length}b=unescape(e.substring(f,a))}}return(b)},getNonTextNode:function(a){if(this.isNonTextNode(a)){return a}while(a!=null&&this.isNonTextNode(a)){a=this.getSibling(a,1)}return a},addSafeHandler:function(b,a,c,d){b[a]=this.getObjMethRef(c,d);if(dnn.dom.browser.isType(dnn.dom.browser.InternetExplorer)){if(this.__leakEvts.length==0){dnn.dom.attachEvent(window,"onunload",dnn.dom.destroyHandlers)}this.__leakEvts[this.__leakEvts.length]=new dnn.dom.leakEvt(a,b,b[a])}},destroyHandlers:function(){var c=dnn.dom.__leakEvts.length-1;for(var a=c;a>=0;a--){var b=dnn.dom.__leakEvts[a];b.ctl.detachEvent(b.name,b.ptr);b.ctl[b.name]=null;dnn.dom.__leakEvts.length=dnn.dom.__leakEvts.length-1}},getObjMethRef:function(b,a){return(function(c){c=c||window.event;return b[a](c,this)})},getSibling:function(a,c){if(a!=null&&a.parentNode!=null){for(var b=0;b<a.parentNode.childNodes.length;b++){if(a.parentNode.childNodes[b].id==a.id){if(a.parentNode.childNodes[b+c]!=null){return a.parentNode.childNodes[b+c]}}}}return null},isNonTextNode:function(a){return(a.nodeType!=3&&a.nodeType!=8)},getScript:function(c){if(this.scriptElements[c]){return this.scriptElements[c]}var a=dnn.dom.getByTagName("SCRIPT");for(var b=0;b<a.length;b++){if(a[b].src!=null&&a[b].src.indexOf(c)>-1){this.scriptElements[c]=a[b];return a[b]}}},getScriptSrc:function(b){var a=dnn.getVar(b+".resx","");if(a.length>0){return a}return b},getScriptPath:function(){var a=dnn.dom.getScript("dnn.js");if(a){var b=a.src;if(b.indexOf("?")>-1){b=b.substr(0,b.indexOf("?"))}return b.replace("dnn.js","")}var c=dnn.getVar("__sp");if(c){return c}return""},scriptFile:function(b){var a=b.split("/");return a[a.length-1]},loadScript:function(e,d,b){var c;if(e!=null&&e.length>0){c=this.scriptFile(e);if(this.scripts[c]!=null){return}}var a=new dnn.ScriptRequest(e,d,b);if(c){this.scripts[c]=a}a.load();return a},loadScripts:function(a,b,c){if(dnn.scripts==null){var e=function(f,g,h){return(function(){dnn.dom.loadScripts(f,g,h)})};dnn.dom.loadScript(dnn.dom.getScriptPath()+"dnn.scripts.js",null,e(a,b,c));return}var d=new dnn.scripts.ScriptBatchRequest(a,b,c);d.load()},scriptStatus:function(c){var b=this.scriptFile(c);if(this.scripts[b]){return this.scripts[b].status}var a=this.getScript(c);if(a!=null){return"complete"}else{return""}},setScriptLoaded:function(b){var a=this.scriptFile(b);if(this.scripts[a]&&dnn.dom.scripts[a].status!="complete"){dnn.dom.scripts[a].complete()}},navigate:function(b,a){if(a!=null&&a.length>0){if(a=="_blank"||a=="_new"){window.open(b)}else{document.frames[a].location.href=b}}else{if(Sys.Browser.agent===Sys.Browser.InternetExplorer){window.navigate(b)}else{window.location.href=b}}return false},setCookie:function(b,f,h,e,d,c,a){var g;if(h){g=new Date();g.setTime(g.getTime()+(h*24*60*60*1000))}if(a){g=new Date();g.setTime(g.getTime()+(a))}document.cookie=b+"="+escape(f)+((g)?"; expires="+g.toGMTString():"")+((e)?"; path="+e:"")+((d)?"; domain="+d:"")+((c)?"; secure":"");if(document.cookie.length>0){return true}},getCurrentStyle:function(b,c){var a=Sys.UI.DomElement._getCurrentStyle(b);if(a){return a[c]}return""},getFormPostString:function(a){var c="";if(a!=null){if(a.tagName&&a.tagName.toLowerCase()=="form"){for(var b=0;b<a.elements.length;b++){c+=this.getElementPostString(a.elements[b])}}else{c=this.getElementPostString(a);for(var b=0;b<a.childNodes.length;b++){c+=this.getFormPostString(a.childNodes[b])}}}return c},getElementPostString:function(a){var c;if(a.tagName){c=a.tagName.toLowerCase()}if(c=="input"){var d=a.type.toLowerCase();if(d=="text"||d=="password"||d=="hidden"||((d=="checkbox"||d=="radio")&&a.checked)){return a.name+"="+dnn.encode(a.value,false)+"&"}}else{if(c=="select"){for(var b=0;b<a.options.length;b++){if(a.options[b].selected){return a.name+"="+dnn.encode(a.options[b].value,false)+"&"}}}else{if(c=="textarea"){return a.name+"="+dnn.encode(a.value,false)+"&"}}}return""},appendChild:function(b,a){return b.appendChild(a)},removeChild:function(a){return a.parentNode.removeChild(a)},createElement:function(a){return document.createElement(a.toLowerCase())}});dnn.dom.leakEvt=function(c,a,b){this.name=c;this.ctl=a;this.ptr=b};dnn.dom.leakEvt.registerClass("dnn.dom.leakEvt");dnn.dom.eventObject=function(b,a){this.object=b;this.srcElement=a};dnn.dom.eventObject.registerClass("dnn.dom.eventObject");dnn.dom.browserObject=function(){this.InternetExplorer="ie";this.Netscape="ns";this.Mozilla="mo";this.Opera="op";this.Safari="safari";this.Konqueror="kq";this.MacIE="macie";var b;var d=navigator.userAgent.toLowerCase();if(d.indexOf("konqueror")!=-1){b=this.Konqueror}else{if(d.indexOf("msie")!=-1&&d.indexOf("mac")!=-1){b=this.MacIE}else{if(Sys.Browser.agent===Sys.Browser.InternetExplorer){b=this.InternetExplorer}else{if(Sys.Browser.agent===Sys.Browser.FireFox){b=this.Mozilla}else{if(Sys.Browser.agent===Sys.Browser.Safari){b=this.Safari}else{if(Sys.Browser.agent===Sys.Browser.Opera){b=this.Opera}else{b=this.Mozilla}}}}}}this.type=b;this.version=Sys.Browser.version;var c=navigator.userAgent.toLowerCase();if(this.type==this.InternetExplorer){var a=navigator.appVersion.split("MSIE");this.version=parseFloat(a[1])}if(this.type==this.Netscape){var a=c.split("netscape");this.version=parseFloat(a[1].split("/")[1])}};dnn.dom.browserObject.prototype={toString:function(){return this.type+" "+this.version},isType:function(){for(var a=0;a<arguments.length;a++){if(dnn.dom.browser.type==arguments[a]){return true}}return false}};dnn.dom.browserObject.registerClass("dnn.dom.browserObject");dnn.dom.browser=new dnn.dom.browserObject();if(typeof($)=="undefined"){eval("function $() {var ary = new Array(); for (var i=0; i<arguments.length; i++) {var arg = arguments[i]; var ctl; if (typeof arg == 'string') ctl = dnn.dom.getById(arg); else ctl = arg; if (ctl != null && typeof(Element) != 'undefined' && typeof(Element.extend) != 'undefined') Element.extend(ctl); if (arguments.length == 1) return ctl; ary[ary.length] = ctl;} return ary;}")}try{document.execCommand("BackgroundImageCache",false,true)}catch(err){}Sys.Application.add_load(dnn._onload);
;;;!function(o,e){function i(o){for(var e=i.options,t=e.parser[e.strictMode?"strict":"loose"].exec(o),n={},a=14;a--;)n[e.key[a]]=t[a]||"";return n[e.q.name]={},n[e.key[12]].replace(e.q.parser,function(o,i,t){i&&(n[e.q.name][i]=t)}),n}i.options={strictMode:!1,key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}};var t=function(){var e=!1;return function(o){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(o)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(o.substr(0,4)))&&(e=!0)}(navigator.userAgent||navigator.vendor||o.opera),e}();o.dnnModal={load:function(){try{if(void 0!==parent.location.href){var o=parent;if(void 0!==o.parent.$find)if(-1==location.href.indexOf("popUp")||o.location.href.indexOf("popUp")>-1){var e=o.jQuery("#iPopUp"),i=e.dialog("option","refresh"),t=e.dialog("option","closingUrl"),n=e.dialog("option","minWidth"),a=e.dialog("option","minHeight"),r=e.dialog("option","showReturn");t||(t=location.href),!0===e.dialog("isOpen")&&e.dialog("option",{close:function(o,e){dnnModal.refreshPopup({url:t,width:n,height:a,showReturn:r,refresh:i})}}).dialog("close")}else o.jQuery("#iPopUp").dialog({autoOpen:!1,title:document.title})}return!1}catch(o){return!0}},show:function(n,a,r,l,d,s){var p=e("#iPopUp");p.length&&(p[0].src="about:blank",p.remove()),p=e('<iframe id="iPopUp" name="iPopUp" src="about:blank" scrolling="auto" frameborder="0"></iframe>'),e(document.body).append(p),e(document).find("html").css("overflow","hidden");for(var c=document.styleSheets,h=!1,m=0,g=c.length;m<g;m++){var u=c[m].href;if("string"==typeof u&&u.indexOf("admin.css")>-1){h=!0;break}}var f=!h&&(e(o).width()<481||t);f?e("html").addClass("mobileView"):e("html").removeClass("mobileView");var w=0,b=function(){p.prev(".dnnLoading").remove()},v=function(){p.on("load",function(){b();var e=document.getElementById("iPopUp"),t=o.location.hostname.toLowerCase(),a=o.location.port.toLowerCase(),r=i(n),l=r.host.toLowerCase(),d=r.port.toLowerCase();if(l=l||t,d=d||a,t===l&&a===d)try{if(f){var s=e.contentDocument.body,c=e.contentDocument.documentElement;c.style.width=w+"px",s.className+="mobileView dnnFormPopup dnnFormPopupMobileView";var h=Math.max(s.scrollHeight,s.offsetHeight,c.clientHeight,c.scrollHeight,c.offsetHeight);p.css("height",h+100).dialog("option","position",{my:"top",at:"top"})}e.contentWindow.dnnModal.show=function(o,e,i,t,n,a){var r=parent.jQuery("#iPopUp");a||(a=location.href),r.dialog("isOpen")&&r.dialog("option",{close:function(){parent.dnnModal.show(o,e,i,t,n,a)}}).dialog("close")}}catch(o){}}),p[0].src=n,"function"==typeof e.ui.dialog.prototype.options.open&&e.ui.dialog.prototype.options.open.apply(this,arguments)};if(f){w=e(o).width()-100;var y=e("body").css("height");p.dialog({modal:!0,autoOpen:!0,dialogClass:"dnnFormPopup dnnFormPopupMobileView",resizable:!1,closeOnEscape:!0,refresh:d,showReturn:a,closingUrl:s,minHeight:r,position:{my:"top",at:"top"},draggable:!1,open:function(){e("#Form").hide(),e("body").css("height","auto"),p.parent().css({width:"auto",left:"0",right:"0",top:"0","box-shadow":"none"}),o.scrollTo(0,0),v()},close:function(){e("#Form").show(),y&&e("body").css("height",y),o.scrollTo(0,0),o.dnnModal.closePopUp(d,s)}})}else if(p.dialog({modal:!0,autoOpen:!0,dialogClass:"dnnFormPopup",position:{my:"center",at:"center"},minWidth:l,minHeight:r,maxWidth:1920,maxHeight:1080,resizable:!0,closeOnEscape:!0,refresh:d,showReturn:a,closingUrl:s,open:v,close:function(){o.dnnModal.closePopUp(d,s)}}).width(l-11).height(r-11),0===p.parent().find(".ui-dialog-title").next("a.dnnModalCtrl").length){var k=e('<a class="dnnModalCtrl"></a>');p.parent().find(".ui-dialog-titlebar-close").wrap(k);var x=e('<a href="#" class="dnnToggleMax"><span>Max</span></a>');p.parent().find(".ui-dialog-titlebar-close").before(x),x.click(function(i){i.preventDefault();var t,n,a=e(o),r="center",l="center",d=0,s=0;if(e("button.ui-dialog-titlebar-close").length&&(s=e("button.ui-dialog-titlebar-close").parent(".dnnModalCtrl").height(),d=e("button.ui-dialog-titlebar-close").parent(".dnnModalCtrl").width()),p.data("isMaximized")){var c=p.data("height")+100;c>=a.height()&&(c=p.data("height")),t=c-s,n=p.data("width"),p.data("isMaximized",!1)}else{p.data("height",p.dialog("option","minHeight")).data("width",p.dialog("option","minWidth"));var h=0;e("#personaBar-iframe").length&&(h=e("#personaBar-iframe").width()),n=a.outerWidth()-h-d/7.5-40,t=a.height()-s,r="right-"+d/5.5+" center",l="right center-"+s/11,p.data("isMaximized",!0)}p.dialog("option","height",t),p.dialog("option","width",n),p.dialog("option","position",{my:r,at:l,of:o})})}if(function(){var o=e('<div class="dnnLoading"></div>');o.css({width:p.width(),height:p.height()}),p.before(o)}(),"true"===a.toString())return!1},closePopUp:function(o,i){var t=parent,n=t.jQuery("#iPopUp");void 0!==o&&null!=o||(o=!0),"true"==o.toString()?(void 0!==i&&""!=i||(i=t.location.href),t.location.href=i,n.hide()):n.dialog("option","close",null).dialog("close"),e(t.document).find("html").css("overflow","")},refreshPopup:function(o){var e=parent,i=e.parent;e.location.href!==i.location.href&&e.location.href!==o.url?i.dnnModal.show(o.url,o.showReturn,o.height,o.width,o.refresh,o.closingUrl):dnnModal.closePopUp(o.refresh,o.url)}},o.dnnModal.load()}(window,jQuery);
;;;/*!
 * hoverIntent v1.10.1 // 2019.10.05 // jQuery v1.7.0+
 * http://briancherne.github.io/jquery-hoverIntent/
 *
 * You may use hoverIntent under the terms of the MIT license. Basically that
 * means you are free to use hoverIntent as long as this header is left intact.
 * Copyright 2007-2019 Brian Cherne
 */
!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery"],factory):"object"==typeof module&&module.exports?module.exports=factory(require("jquery")):jQuery&&!jQuery.fn.hoverIntent&&factory(jQuery)}(function($){"use strict";function track(ev){cX=ev.pageX,cY=ev.pageY}var cX,cY,_cfg={interval:100,sensitivity:6,timeout:0},INSTANCE_COUNT=0,compare=function(ev,$el,s,cfg){if(Math.sqrt((s.pX-cX)*(s.pX-cX)+(s.pY-cY)*(s.pY-cY))<cfg.sensitivity)return $el.off(s.event,track),delete s.timeoutId,s.isActive=!0,ev.pageX=cX,ev.pageY=cY,delete s.pX,delete s.pY,cfg.over.apply($el[0],[ev]);s.pX=cX,s.pY=cY,s.timeoutId=setTimeout(function(){compare(ev,$el,s,cfg)},cfg.interval)};$.fn.hoverIntent=function(handlerIn,handlerOut,selector){var instanceId=INSTANCE_COUNT++,cfg=$.extend({},_cfg);$.isPlainObject(handlerIn)?(cfg=$.extend(cfg,handlerIn),$.isFunction(cfg.out)||(cfg.out=cfg.over)):cfg=$.isFunction(handlerOut)?$.extend(cfg,{over:handlerIn,out:handlerOut,selector:selector}):$.extend(cfg,{over:handlerIn,out:handlerIn,selector:handlerOut});function handleHover(e){var ev=$.extend({},e),$el=$(this),hoverIntentData=$el.data("hoverIntent");hoverIntentData||$el.data("hoverIntent",hoverIntentData={});var state=hoverIntentData[instanceId];state||(hoverIntentData[instanceId]=state={id:instanceId}),state.timeoutId&&(state.timeoutId=clearTimeout(state.timeoutId));var mousemove=state.event="mousemove.hoverIntent.hoverIntent"+instanceId;if("mouseenter"===e.type){if(state.isActive)return;state.pX=ev.pageX,state.pY=ev.pageY,$el.off(mousemove,track).on(mousemove,track),state.timeoutId=setTimeout(function(){compare(ev,$el,state,cfg)},cfg.interval)}else{if(!state.isActive)return;$el.off(mousemove,track),state.timeoutId=setTimeout(function(){!function(ev,$el,s,out){var data=$el.data("hoverIntent");data&&delete data[s.id],out.apply($el[0],[ev])}(ev,$el,state,cfg.out)},cfg.timeout)}}return this.on({"mouseenter.hoverIntent":handleHover,"mouseleave.hoverIntent":handleHover},cfg.selector)}});
;;;var DNN_COL_DELIMITER=String.fromCharCode(16);var DNN_ROW_DELIMITER=String.fromCharCode(15);var __dnn_m_bPageLoaded=false;if(window.addEventListener){window.addEventListener("load",__dnn_Page_OnLoad,false)}else{window.attachEvent("onload",__dnn_Page_OnLoad)}function __dnn_ClientAPIEnabled(){return typeof(dnn)!="undefined"&&typeof(dnn.dom)!="undefined"}function __dnn_Page_OnLoad(){if(__dnn_ClientAPIEnabled()){dnn.dom.attachEvent(window,"onscroll",__dnn_bodyscroll)}__dnn_m_bPageLoaded=true}function __dnn_KeyDown(iKeyCode,sFunc,e){if(e==null){e=window.event}if(e.keyCode==iKeyCode){eval(unescape(sFunc));return false}}function __dnn_bodyscroll(){var a=document.forms[0];if(__dnn_ClientAPIEnabled()&&__dnn_m_bPageLoaded&&typeof(a.ScrollTop)!="undefined"){a.ScrollTop.value=document.documentElement.scrollTop?document.documentElement.scrollTop:dnn.dom.getByTagName("body")[0].scrollTop}}function __dnn_setScrollTop(c){if(__dnn_ClientAPIEnabled()){if(c==null){c=document.forms[0].ScrollTop.value}var a=dnn.getVar("ScrollToControl");if(a!=null&&a.length>0){var b=dnn.dom.getById(a);if(b!=null){c=dnn.dom.positioning.elementTop(b);dnn.setVar("ScrollToControl","")}}if(document.getElementsByTagName("html")[0].style.overflow!="hidden"){window.scrollTo(0,c)}}}function __dnn_SetInitialFocus(a){var b=dnn.dom.getById(a);if(b!=null&&__dnn_CanReceiveFocus(b)){b.focus()}}function __dnn_CanReceiveFocus(b){if(b.style.display!="none"&&b.tabIndex>-1&&b.disabled==false&&b.style.visible!="hidden"){var a=b.parentElement;while(a!=null&&a.tagName!="BODY"){if(a.style.display=="none"||a.disabled||a.style.visible=="hidden"){return false}a=a.parentElement}return true}else{return false}}function __dnn_ContainerMaxMin_OnClick(i,b){var g=dnn.dom.getById(b);if(g!=null){var e=i.childNodes[0];var l=dnn.getVar("containerid_"+b);var j=dnn.getVar("cookieid_"+b);var d=e.src.toLowerCase().substr(e.src.lastIndexOf("/"));var a;var h;var k;if(dnn.getVar("min_icon_"+l)){k=dnn.getVar("min_icon_"+l)}else{k=dnn.getVar("min_icon")}if(dnn.getVar("max_icon_"+l)){h=dnn.getVar("max_icon_"+l)}else{h=dnn.getVar("max_icon")}a=h.toLowerCase().substr(h.lastIndexOf("/"));var c=5;var f=dnn.getVar("animf_"+b);if(f!=null){c=new Number(f)}if(d==a){e.src=k;dnn.dom.expandElement(g,c);e.title=dnn.getVar("min_text");if(j!=null){if(dnn.getVar("__dnn_"+l+":defminimized")=="true"){dnn.dom.setCookie(j,"true",365)}else{dnn.dom.deleteCookie(j)}}else{dnn.setVar("__dnn_"+l+"_Visible","true")}}else{e.src=h;dnn.dom.collapseElement(g,c);e.title=dnn.getVar("max_text");if(j!=null){if(dnn.getVar("__dnn_"+l+":defminimized")=="true"){dnn.dom.deleteCookie(j)}else{dnn.dom.setCookie(j,"false",365)}}else{dnn.setVar("__dnn_"+l+"_Visible","false")}}return true}return false}function __dnn_Help_OnClick(a){var b=dnn.dom.getById(a);if(b!=null){if(b.style.display=="none"){b.style.display=""}else{b.style.display="none"}return true}return false}function __dnn_SectionMaxMin(f,c){var d=dnn.dom.getById(c);if(d!=null){var g=f.getAttribute("max_icon");var e=f.getAttribute("min_icon");var a=f.getAttribute("userctr")!=null;var b;if(d.style.display=="none"){f.src=e;d.style.display="";if(a){b="True"}else{dnn.setVar(f.id+":exp",1)}}else{f.src=g;d.style.display="none";if(a){b="False"}else{dnn.setVar(f.id+":exp",0)}}if(a){dnncore.setUserProp(f.getAttribute("userctr"),f.getAttribute("userkey"),b,null)}return true}return false}function __dnn_enableDragDrop(){var b=dnn.getVar("__dnn_dragDrop").split(";");var e;for(var c=0;c<b.length;c++){e=b[c].split(" ");if(e[0].length>0){var a=dnn.dom.getById(e[0]);var d=dnn.dom.getById(e[1]);if(a!=null&&d!=null){a.setAttribute("moduleid",e[2]);dnn.dom.positioning.enableDragAndDrop(a,d,"__dnn_dragComplete()","__dnn_dragOver()")}}}}var __dnn_oPrevSelPane;var __dnn_oPrevSelModule;var __dnn_dragEventCount=0;function __dnn_dragOver(){__dnn_dragEventCount++;if(__dnn_dragEventCount%75!=0){return}var c=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);var a=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);if(__dnn_oPrevSelPane!=null){__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder}if(a!=null){__dnn_oPrevSelPane=a;a.pane.style.border="4px double "+DNN_HIGHLIGHT_COLOR;var e=__dnn_getPaneControlIndex(c,a);var b;var f;for(var d=0;d<a.controls.length;d++){if(e>d&&a.controls[d].id!=c.id){b=a.controls[d]}if(e<=d&&a.controls[d].id!=c.id){f=a.controls[d];break}}if(__dnn_oPrevSelModule!=null){dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder}if(f!=null){__dnn_oPrevSelModule=f;dnn.dom.getNonTextNode(f.control).style.borderTop="5px groove "+DNN_HIGHLIGHT_COLOR}else{if(b!=null){__dnn_oPrevSelModule=b;dnn.dom.getNonTextNode(b.control).style.borderBottom="5px groove "+DNN_HIGHLIGHT_COLOR}}}}function __dnn_dragComplete(){var f=dnn.dom.getById(dnn.dom.positioning.dragCtr.contID);var d=f.getAttribute("moduleid");if(__dnn_oPrevSelPane!=null){__dnn_oPrevSelPane.pane.style.border=__dnn_oPrevSelPane.origBorder}if(__dnn_oPrevSelModule!=null){dnn.dom.getNonTextNode(__dnn_oPrevSelModule.control).style.border=__dnn_oPrevSelModule.origBorder}var b=__dnn_getMostSelectedPane(dnn.dom.positioning.dragCtr);var e;if(b==null){var a=__dnn_Panes();for(var c=0;c<a.length;c++){if(a[c].id==f.parentNode.id){b=a[c]}}}if(b!=null){e=__dnn_getPaneControlIndex(f,b);__dnn_MoveToPane(b,f,e);dnn.callPostBack("MoveToPane","moduleid="+d,"pane="+b.paneName,"order="+e*2)}}function __dnn_MoveToPane(a,e,d){if(a!=null){var c=new Array();for(var b=d;b<a.controls.length;b++){if(a.controls[b].control.id!=e.id){c[c.length]=a.controls[b].control}dnn.dom.removeChild(a.controls[b].control)}dnn.dom.appendChild(a.pane,e);e.style.top=0;e.style.left=0;e.style.position="relative";for(var b=0;b<c.length;b++){dnn.dom.appendChild(a.pane,c[b])}__dnn_RefreshPanes()}else{e.style.top=0;e.style.left=0;e.style.position="relative"}}function __dnn_RefreshPanes(){var b=dnn.getVar("__dnn_Panes").split(";");var a=dnn.getVar("__dnn_PaneNames").split(";");__dnn_m_aryPanes=new Array();for(var c=0;c<b.length;c++){if(b[c].length>0){__dnn_m_aryPanes[__dnn_m_aryPanes.length]=new __dnn_Pane(dnn.dom.getById(b[c]),a[c])}}}var __dnn_m_aryPanes;var __dnn_m_aryModules;function __dnn_Panes(){if(__dnn_m_aryPanes==null){__dnn_m_aryPanes=new Array();__dnn_RefreshPanes()}return __dnn_m_aryPanes}function __dnn_Modules(a){if(__dnn_m_aryModules==null){__dnn_RefreshPanes()}return __dnn_m_aryModules[a]}function __dnn_getMostSelectedPane(g){var c=new dnn.dom.positioning.dims(g);var f=0;var a;var h;for(var e=0;e<__dnn_Panes().length;e++){var b=__dnn_Panes()[e];var d=new dnn.dom.positioning.dims(b.pane);a=dnn.dom.positioning.elementOverlapScore(d,c);if(a>f){f=a;h=b}}return h}function __dnn_getPaneControlIndex(f,b){if(b==null){return}var a=new dnn.dom.positioning.dims(f);var e;if(b.controls.length==0){return 0}for(var c=0;c<b.controls.length;c++){e=b.controls[c];var d=new dnn.dom.positioning.dims(e.control);if(a.t<d.t){return e.index}}if(e!=null){return e.index+1}else{return 0}}function __dnn_Pane(a,b){this.pane=a;this.id=a.id;this.controls=new Array();this.origBorder=a.style.border;this.paneName=b;var f=0;var e="";for(var d=0;d<a.childNodes.length;d++){var g=a.childNodes[d];if(dnn.dom.isNonTextNode(g)){if(__dnn_m_aryModules==null){__dnn_m_aryModules=new Array()}var c=g.getAttribute("moduleid");if(c!=null&&c.length>0){e+=c+"~";this.controls[this.controls.length]=new __dnn_PaneControl(g,f);__dnn_m_aryModules[c]=g.id;f+=1}}}this.moduleOrder=e}function __dnn_PaneControl(a,b){this.control=a;this.id=a.id;this.index=b;this.origBorder=a.style.border}function __dnn_ShowModalPage(a){dnnModal.show(a,true,550,950,true,"")}function __dnncore(){this.GetUserVal=0;this.SetUserVal=1}__dnncore.prototype={getUserProp:function(b,c,a){this._doUserCallBack(dnncore.GetUserVal,b,c,null,new dnncore.UserPropArgs(b,c,a))},setUserProp:function(c,d,a,b){this._doUserCallBack(dnncore.SetUserVal,c,d,a,new dnncore.UserPropArgs(c,d,b))},_doUserCallBack:function(c,d,e,a,b){if(dnn&&dnn.xmlhttp){var f=c+COL_DELIMITER+d+COL_DELIMITER+e+COL_DELIMITER+a;dnn.xmlhttp.doCallBack("__Page",f,dnncore._callBackSuccess,b,dnncore._callBackFail,null,true,null,0)}else{alert("Client Personalization not enabled")}},_callBackSuccess:function(a,b,c){if(b.pFunc){b.pFunc(b.namingCtr,b.key,a)}},_callBackFail:function(a,b){window.status=a}};__dnncore.prototype.UserPropArgs=function(b,c,a){this.namingCtr=b;this.key=c;this.pFunc=a};var dnncore=new __dnncore();
;;;(function($){$.dnnSF=function(moduleId){var base=this;base.getServiceRoot=function(moduleName){var serviceRoot=dnn.getVar("sf_siteRoot","/");serviceRoot+="API/"+moduleName+"/";return serviceRoot;};base.getTabId=function(){return dnn.getVar("sf_tabId",-1);};base.getModuleId=function(){return moduleId;};base.setModuleHeaders=function(xhr){var tabId=base.getTabId();if(tabId>-1){xhr.setRequestHeader("ModuleId",base.getModuleId());xhr.setRequestHeader("TabId",tabId);}var afValue=base.getAntiForgeryValue();if(afValue){xhr.setRequestHeader("RequestVerificationToken",afValue);}};base.getAntiForgeryKey=function(){return"__RequestVerificationToken";};base.getAntiForgeryValue=function(){return $('[name="__RequestVerificationToken"]').val();};return base;};$.ServicesFramework=function(moduleId){return new $.dnnSF(moduleId);};})(jQuery);
;;;(function(jQuery){jQuery.easing['jswing']=jQuery.easing['swing'];jQuery.extend(jQuery.easing,{def:'easeOutQuad',swing:function(x,t,b,c,d){return jQuery.easing[jQuery.easing.def](x,t,b,c,d);},easeInQuad:function(x,t,b,c,d){return c*(t/=d)*t+b;},easeOutQuad:function(x,t,b,c,d){return-c*(t/=d)*(t-2)+b;},easeInOutQuad:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t+b;return-c/2*((--t)*(t-2)-1)+b;},easeInCubic:function(x,t,b,c,d){return c*(t/=d)*t*t+b;},easeOutCubic:function(x,t,b,c,d){return c*((t=t/d-1)*t*t+1)+b;},easeInOutCubic:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t+b;return c/2*((t-=2)*t*t+2)+b;},easeInQuart:function(x,t,b,c,d){return c*(t/=d)*t*t*t+b;},easeOutQuart:function(x,t,b,c,d){return-c*((t=t/d-1)*t*t*t-1)+b;},easeInOutQuart:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t+b;return-c/2*((t-=2)*t*t*t-2)+b;},easeInQuint:function(x,t,b,c,d){return c*(t/=d)*t*t*t*t+b;},easeOutQuint:function(x,t,b,c,d){return c*((t=t/d-1)*t*t*t*t+1)+b;},easeInOutQuint:function(x,t,b,c,d){if((t/=d/2)<1)return c/2*t*t*t*t*t+b;return c/2*((t-=2)*t*t*t*t+2)+b;},easeInSine:function(x,t,b,c,d){return-c*Math.cos(t/d*(Math.PI/2))+c+b;},easeOutSine:function(x,t,b,c,d){return c*Math.sin(t/d*(Math.PI/2))+b;},easeInOutSine:function(x,t,b,c,d){return-c/2*(Math.cos(Math.PI*t/d)-1)+b;},easeInExpo:function(x,t,b,c,d){return(t==0)?b:c*Math.pow(2,10*(t/d-1))+b;},easeOutExpo:function(x,t,b,c,d){return(t==d)?b+c:c*(-Math.pow(2,-10*t/d)+1)+b;},easeInOutExpo:function(x,t,b,c,d){if(t==0)return b;if(t==d)return b+c;if((t/=d/2)<1)return c/2*Math.pow(2,10*(t-1))+b;return c/2*(-Math.pow(2,-10* --t)+2)+b;},easeInCirc:function(x,t,b,c,d){return-c*(Math.sqrt(1-(t/=d)*t)-1)+b;},easeOutCirc:function(x,t,b,c,d){return c*Math.sqrt(1-(t=t/d-1)*t)+b;},easeInOutCirc:function(x,t,b,c,d){if((t/=d/2)<1)return-c/2*(Math.sqrt(1-t*t)-1)+b;return c/2*(Math.sqrt(1-(t-=2)*t)+1)+b;},easeInElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return-(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;},easeOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d)==1)return b+c;if(!p)p=d*.3;if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);return a*Math.pow(2,-10*t)*Math.sin((t*d-s)*(2*Math.PI)/p)+c+b;},easeInOutElastic:function(x,t,b,c,d){var s=1.70158;var p=0;var a=c;if(t==0)return b;if((t/=d/2)==2)return b+c;if(!p)p=d*(.3*1.5);if(a<Math.abs(c)){a=c;var s=p/4;}
else var s=p/(2*Math.PI)*Math.asin(c/a);if(t<1)return-.5*(a*Math.pow(2,10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p))+b;return a*Math.pow(2,-10*(t-=1))*Math.sin((t*d-s)*(2*Math.PI)/p)*.5+c+b;},easeInBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*(t/=d)*t*((s+1)*t-s)+b;},easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;},easeInOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;if((t/=d/2)<1)return c/2*(t*t*(((s*=(1.525))+1)*t-s))+b;return c/2*((t-=2)*t*(((s*=(1.525))+1)*t+s)+2)+b;},easeInBounce:function(x,t,b,c,d){return c-jQuery.easing.easeOutBounce(x,d-t,0,c,d)+b;},easeOutBounce:function(x,t,b,c,d){if((t/=d)<(1/2.75)){return c*(7.5625*t*t)+b;}else if(t<(2/2.75)){return c*(7.5625*(t-=(1.5/2.75))*t+.75)+b;}else if(t<(2.5/2.75)){return c*(7.5625*(t-=(2.25/2.75))*t+.9375)+b;}else{return c*(7.5625*(t-=(2.625/2.75))*t+.984375)+b;}},easeInOutBounce:function(x,t,b,c,d){if(t<d/2)return jQuery.easing.easeInBounce(x,t*2,0,c,d)*.5+b;return jQuery.easing.easeOutBounce(x,t*2-d,0,c,d)*.5+c*.5+b;}});})(eds2_2);
;;;(function($){$.fn.rateit=function(p1,p2){var options={};var mode='init';if(this.length==0)return this;var tp1=$.type(p1);if(tp1=='object'||p1===undefined||p1==null){options=$.extend({},$.fn.rateit.defaults,p1);}
else if(tp1=='string'&&p2===undefined){return this.data('rateit-'+p1);}
else if(tp1=='string'){mode='setvalue'}
return this.each(function(){var item=$(this);var itemdata=function(k,v){k='rateit-'+k;if(arguments.length===1)
return item.data(k);item.data(k,v);return v;};if(!item.hasClass('rateit'))item.addClass('rateit');var ltr=item.css('direction')!='rtl';if(mode=='setvalue'){if(!itemdata('init'))throw'Can\'t set value before init';if(p1=='readonly'&&!itemdata('readonly')){item.find('.rateit-range').unbind();itemdata('wired',false);}
if(itemdata('backingfld')){var fld=$(itemdata('backingfld'));if(p1=='value')fld.val(p2);if(p1=='min'&&fld[0].min)fld[0].min=p2;if(p1=='max'&&fld[0].max)fld[0].max=p2;if(p1=='step'&&fld[0].step)fld[0].step=p2;}
itemdata(p1,p2);}
if(!itemdata('init')){itemdata('min',itemdata('min')||options.min);itemdata('max',itemdata('max')||options.max);itemdata('step',itemdata('step')||options.step);itemdata('readonly',itemdata('readonly')!==undefined?itemdata('readonly'):options.readonly);itemdata('resetable',itemdata('resetable')!==undefined?itemdata('resetable'):options.resetable);itemdata('backingfld',itemdata('backingfld')||options.backingfld);itemdata('starwidth',itemdata('starwidth')||options.starwidth);itemdata('starheight',itemdata('starheight')||options.starheight);itemdata('value',itemdata('value')||options.min);if(itemdata('backingfld')){var fld=$(itemdata('backingfld'));itemdata('value',fld.hide().val());if(fld[0].nodeName=='INPUT'){if(fld[0].type=='range'||fld[0].type=='text'){itemdata('min',parseInt(fld.attr('min'))||itemdata('min'));itemdata('max',parseInt(fld.attr('max'))||itemdata('max'));itemdata('step',parseInt(fld.attr('step'))||itemdata('step'));}}
if(fld[0].nodeName=='SELECT'&&fld[0].options.length>1){itemdata('min',Number(fld[0].options[0].value));itemdata('max',Number(fld[0].options[fld[0].length-1].value));itemdata('step',Number(fld[0].options[1].value)-Number(fld[0].options[0].value));}}
item.append('<div class="rateit-reset"></div><div class="rateit-range"><div class="rateit-selected" style="height:'+itemdata('starheight')+'px"></div><div class="rateit-hover" style="height:'+itemdata('starheight')+'px"></div></div>');if(!ltr){item.find('.rateit-reset').css('float','right');item.find('.rateit-selected').addClass('rateit-selected-rtl');item.find('.rateit-hover').addClass('rateit-hover-rtl');}
itemdata('init',true);}
var range=item.find('.rateit-range');range.width(itemdata('starwidth')*(itemdata('max')-itemdata('min'))).height(itemdata('starheight'));if(itemdata('value')){var score=(itemdata('value')-itemdata('min'))*itemdata('starwidth');item.find('.rateit-selected').width(score);}
var resetbtn=item.find('.rateit-reset');var calcRawScore=function(element,event){var pageX=(event.changedTouches)?event.changedTouches[0].pageX:event.pageX;var offsetx=pageX-$(element).offset().left;if(!ltr)offsetx=range.width()-offsetx;if(offsetx>range.width())offsetx=range.width();if(offsetx<0)offsetx=0;return score=Math.ceil(offsetx/itemdata('starwidth')*(1/itemdata('step')));};if(!itemdata('readonly')){if(itemdata('resetable')){resetbtn.click(function(){itemdata('value',itemdata('min'));range.find('.rateit-hover').hide().width(0);range.find('.rateit-selected').width(0).show();if(itemdata('backingfld'))$(itemdata('backingfld')).val(itemdata('min'));item.trigger('reset');});}
else{resetbtn.hide();}
if(!itemdata('wired')){range.bind('touchmove touchend',touchHandler);range.mousemove(function(e){var score=calcRawScore(this,e);var w=score*itemdata('starwidth')*itemdata('step');var h=range.find('.rateit-hover');if(h.data('width')!=w){range.find('.rateit-selected').hide();h.width(w).show().data('width',w);item.trigger('hover',[(score*itemdata('step'))+itemdata('min')]);}});range.mouseleave(function(e){range.find('.rateit-hover').hide().width(0).data('width','');item.trigger('hover',[null]);range.find('.rateit-selected').show();});range.mouseup(function(e){var score=calcRawScore(this,e);var newvalue=(score*itemdata('step'))+itemdata('min');itemdata('value',newvalue);if(itemdata('backingfld')){$(itemdata('backingfld')).val(newvalue);}
range.find('.rateit-hover').hide();range.find('.rateit-selected').width(score*itemdata('starwidth')*itemdata('step')).show();item.trigger('hover',[null]).trigger('rated',[newvalue]);});itemdata('wired',true);}
if(itemdata('resetable')){resetbtn.show();}}
else{resetbtn.hide();}});};function touchHandler(event){var touches=event.originalEvent.changedTouches,first=touches[0],type="";switch(event.type){case"touchmove":type="mousemove";break;case"touchend":type="mouseup";break;default:return;}
var simulatedEvent=document.createEvent("MouseEvent");simulatedEvent.initMouseEvent(type,true,true,window,1,first.screenX,first.screenY,first.clientX,first.clientY,false,false,false,false,0,null);first.target.dispatchEvent(simulatedEvent);event.preventDefault();};$.fn.rateit.defaults={min:0,max:5,step:0.5,starwidth:16,starheight:16,readonly:false,resetable:true};eds3_5_jq(document).ready(function($){$('div.rateit').rateit();});})(eds3_5_jq);
;;;!function (jQuery) { var $ = jQuery; window.averta = {}, function ($) { function getVendorPrefix() { if ("result" in arguments.callee) return arguments.callee.result; var t = /^(Moz|Webkit|Khtml|O|ms|Icab)(?=[A-Z])/, i = document.getElementsByTagName("script")[0]; for (var e in i.style) if (t.test(e)) return arguments.callee.result = e.match(t)[0]; return "WebkitOpacity" in i.style ? arguments.callee.result = "Webkit" : "KhtmlOpacity" in i.style ? arguments.callee.result = "Khtml" : arguments.callee.result = "" } function checkStyleValue(t) { var i = (document.body || document.documentElement).style, e = t; if ("string" == typeof i[e]) return !0; v = ["Moz", "Webkit", "Khtml", "O", "ms"], e = e.charAt(0).toUpperCase() + e.substr(1); for (var s = 0; s < v.length; s++)if ("string" == typeof i[v[s] + e]) return !0; return !1 } function supportsTransitions() { return checkStyleValue("transition") } function supportsTransforms() { return checkStyleValue("transform") } function supports3DTransforms() { if (!supportsTransforms()) return !1; var t, i = document.createElement("i"), e = { WebkitTransform: "-webkit-transform", OTransform: "-o-transform", MSTransform: "-ms-transform", msTransform: "-ms-transform", MozTransform: "-moz-transform", Transform: "transform", transform: "transform" }; i.style.display = "block", document.body.insertBefore(i, null); for (var s in e) void 0 !== i.style[s] && (i.style[s] = "translate3d(1px,1px,1px)", t = window.getComputedStyle(i).getPropertyValue(e[s])); return document.body.removeChild(i), null != t && t.length > 0 && "none" !== t } window.package = function (t) { window[t] || (window[t] = {}) }; var extend = function (t, i) { for (var e in i) t[e] = i[e] }; Function.prototype.extend = function (t) { "function" == typeof t.prototype.constructor ? (extend(this.prototype, t.prototype), this.prototype.constructor = this) : (this.prototype.extend(t), this.prototype.constructor = this) }; var trans = { Moz: "-moz-", Webkit: "-webkit-", Khtml: "-khtml-", O: "-o-", ms: "-ms-", Icab: "-icab-" }; window._mobile = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent), window._touch = "ontouchstart" in document, $(document).ready(function () { window._jcsspfx = getVendorPrefix(), window._csspfx = trans[window._jcsspfx], window._cssanim = supportsTransitions(), window._css3d = supports3DTransforms(), window._css2d = supportsTransforms() }), window.parseQueryString = function (t) { var i = {}; return t.replace(new RegExp("([^?=&]+)(=([^&]*))?", "g"), function (t, e, s, n) { i[e] = n }), i }; var fps60 = 50 / 3; if (window.requestAnimationFrame || (window.requestAnimationFrame = window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function (t, i) { window.setTimeout(t, fps60) }), window.getComputedStyle || (window.getComputedStyle = function (t, i) { return this.el = t, this.getPropertyValue = function (i) { var e = /(\-([a-z]){1})/g; return "float" == i && (i = "styleFloat"), e.test(i) && (i = i.replace(e, function () { return arguments[2].toUpperCase() })), t.currentStyle[i] ? t.currentStyle[i] : null }, t.currentStyle }), Array.prototype.indexOf || (Array.prototype.indexOf = function (t) { var i = this.length >>> 0, e = Number(arguments[1]) || 0; for ((e = e < 0 ? Math.ceil(e) : Math.floor(e)) < 0 && (e += i); e < i; e++)if (e in this && this[e] === t) return e; return -1 }), window.isMSIE = function (version) { if (!$.browser.msie) return !1; if (!version) return !0; var ieVer = $.browser.version.slice(0, $.browser.version.indexOf(".")); return "string" == typeof version ? -1 !== version.indexOf("<") || -1 !== version.indexOf(">") ? eval(ieVer + version) : eval(version + "==" + ieVer) : version == ieVer }, $.removeDataAttrs = function (t, i) { var e, s, n = [], o = t[0].attributes, a = o.length; for (i = i || [], e = 0; e < a; e++)"data-" === (s = o[e].name).substring(0, 5) && -1 === i.indexOf(s) && n.push(o[e].name); $.each(n, function (i, e) { t.removeAttr(e) }) }, jQuery) { $.jqLoadFix = function () { if (this.complete) { var t = this; setTimeout(function () { $(t).trigger("load") }, 1) } }, jQuery.uaMatch = jQuery.uaMatch || function (t) { t = t.toLowerCase(); var i = /(chrome)[ \/]([\w.]+)/.exec(t) || /(webkit)[ \/]([\w.]+)/.exec(t) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(t) || /(msie) ([\w.]+)/.exec(t) || t.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(t) || []; return { browser: i[1] || "", version: i[2] || "0" } }, matched = jQuery.uaMatch(navigator.userAgent), browser = {}, matched.browser && (browser[matched.browser] = !0, browser.version = matched.version), browser.chrome ? browser.webkit = !0 : browser.webkit && (browser.safari = !0); var isIE11 = !!navigator.userAgent.match(/Trident\/7\./); isIE11 && (browser.msie = "true", delete browser.mozilla), jQuery.browser = browser, $.fn.preloadImg = function (t, i) { return this.each(function () { var e = $(this), s = this, n = new Image; n.onload = function (o) { null == o && (o = {}), e.attr("src", t), o.width = n.width, o.height = n.height, e.data("width", n.width), e.data("height", n.height), setTimeout(function () { i.call(s, o) }, 50), n = null }, n.src = t }), this } } }(jQuery), function () { "use strict"; averta.EventDispatcher = function () { this.listeners = {} }, averta.EventDispatcher.extend = function (t) { var i = new averta.EventDispatcher; for (var e in i) "constructor" != e && (t[e] = averta.EventDispatcher.prototype[e]) }, averta.EventDispatcher.prototype = { constructor: averta.EventDispatcher, addEventListener: function (t, i, e) { this.listeners[t] || (this.listeners[t] = []), this.listeners[t].push({ listener: i, ref: e }) }, removeEventListener: function (t, i, e) { if (this.listeners[t]) { for (var s = 0; s < this.listeners[t].length; ++s)i === this.listeners[t][s].listener && e === this.listeners[t][s].ref && this.listeners[t].splice(s--, 1); 0 === this.listeners[t].length && (this.listeners[t] = null) } }, dispatchEvent: function (t) { if (t.target = this, this.listeners[t.type]) for (var i = 0, e = this.listeners[t.type].length; i < e; ++i)this.listeners[t.type][i].listener.call(this.listeners[t.type][i].ref, t) } } }(), function (t) { "use strict"; var i = "ontouchstart" in document, e = window.navigator.pointerEnabled, s = !e && window.navigator.msPointerEnabled, n = e || s, o = (e ? "pointerdown " : "") + (s ? "MSPointerDown " : "") + (i ? "touchstart " : "") + "mousedown", a = (e ? "pointermove " : "") + (s ? "MSPointerMove " : "") + (i ? "touchmove " : "") + "mousemove", r = (e ? "pointerup " : "") + (s ? "MSPointerUp " : "") + (i ? "touchend " : "") + "mouseup", h = (e ? "pointercancel " : "") + (s ? "MSPointerCancel " : "") + "touchcancel"; averta.TouchSwipe = function (t) { this.$element = t, this.enabled = !0, t.bind(o, { target: this }, this.__touchStart), t[0].swipe = this, this.onSwipe = null, this.swipeType = "horizontal", this.noSwipeSelector = "input, textarea, button, .no-swipe, .ms-no-swipe", this.lastStatus = {} }; var l = averta.TouchSwipe.prototype; l.getDirection = function (t, i) { switch (this.swipeType) { case "horizontal": return t <= this.start_x ? "left" : "right"; case "vertical": return i <= this.start_y ? "up" : "down"; case "all": return Math.abs(t - this.start_x) > Math.abs(i - this.start_y) ? t <= this.start_x ? "left" : "right" : i <= this.start_y ? "up" : "down" } }, l.priventDefultEvent = function (t, i) { var e = Math.abs(t - this.start_x) > Math.abs(i - this.start_y); return "horizontal" === this.swipeType && e || "vertical" === this.swipeType && !e }, l.createStatusObject = function (t) { var i, e, s = {}; return i = this.lastStatus.distanceX || 0, e = this.lastStatus.distanceY || 0, s.distanceX = t.pageX - this.start_x, s.distanceY = t.pageY - this.start_y, s.moveX = s.distanceX - i, s.moveY = s.distanceY - e, s.distance = parseInt(Math.sqrt(Math.pow(s.distanceX, 2) + Math.pow(s.distanceY, 2))), s.duration = (new Date).getTime() - this.start_time, s.direction = this.getDirection(t.pageX, t.pageY), s }, l.__reset = function (t, i) { this.reset = !1, this.lastStatus = {}, this.start_time = (new Date).getTime(); var e = this.__getPoint(t, i); this.start_x = e.pageX, this.start_y = e.pageY }, l.__touchStart = function (e) { var s = e.data.target, o = e; if (s.enabled && !(t(e.target).closest(s.noSwipeSelector, s.$element).length > 0)) if (e = e.originalEvent, n && t(this).css("-ms-touch-action", "horizontal" === s.swipeType ? "pan-y" : "pan-x"), s.onSwipe) { if (!(s.touchStarted || i && s.start_time && "mousedown" === e.type && (new Date).getTime() - s.start_time < 600)) { var l = s.__getPoint(e, o); s.start_x = l.pageX, s.start_y = l.pageY, s.start_time = (new Date).getTime(), t(document).bind(r, { target: s }, s.__touchEnd).bind(a, { target: s }, s.__touchMove).bind(h, { target: s }, s.__touchCancel); var d = s.createStatusObject(l); d.phase = "start", s.onSwipe.call(null, d), i || o.preventDefault(), s.lastStatus = d, s.touchStarted = !0 } } else t.error("Swipe listener is undefined") }, l.__touchMove = function (t) { var i = t.data.target, e = t; if (t = t.originalEvent, i.touchStarted) { clearTimeout(i.timo), i.timo = setTimeout(function () { i.__reset(t, e) }, 60); var s = i.__getPoint(t, e), n = i.createStatusObject(s); i.priventDefultEvent(s.pageX, s.pageY) && e.preventDefault(), n.phase = "move", i.lastStatus = n, i.onSwipe.call(null, n) } }, l.__touchEnd = function (e) { var s = e.data.target, n = e; e = e.originalEvent, clearTimeout(s.timo); var o = s.lastStatus; i || n.preventDefault(), o.phase = "end", s.touchStarted = !1, s.priventEvt = null, t(document).unbind(r, s.__touchEnd).unbind(a, s.__touchMove).unbind(h, s.__touchCancel), o.speed = o.distance / o.duration, s.onSwipe.call(null, o) }, l.__touchCancel = function (t) { t.data.target.__touchEnd(t) }, l.__getPoint = function (t, e) { return i && -1 === t.type.indexOf("mouse") ? t.touches[0] : n ? t : e }, l.enable = function () { this.enabled || (this.enabled = !0) }, l.disable = function () { this.enabled && (this.enabled = !1) } }(jQuery), function () { "use strict"; averta.Ticker = function () { }; var t = averta.Ticker, i = [], e = 0, s = !0; t.add = function (s, n) { return i.push([s, n]), 1 === i.length && t.start(), e = i.length }, t.remove = function (s, n) { for (var o = 0, a = i.length; o < a; ++o)i[o] && i[o][0] === s && i[o][1] === n && i.splice(o, 1); 0 === (e = i.length) && t.stop() }, t.start = function () { s && (s = !1, n()) }, t.stop = function () { s = !0 }; var n = function () { if (!t.__stopped) { for (var s, o = 0; o !== e; o++)(s = i[o])[0].call(s[1]); requestAnimationFrame(n) } } }(), function () { "use strict"; Date.now || (Date.now = function () { return (new Date).getTime() }), averta.Timer = function (t, i) { this.delay = t, this.currentCount = 0, this.paused = !1, this.onTimer = null, this.refrence = null, i && this.start() }, averta.Timer.prototype = { constructor: averta.Timer, start: function () { this.paused = !1, this.lastTime = Date.now(), averta.Ticker.add(this.update, this) }, stop: function () { this.paused = !0, averta.Ticker.remove(this.update, this) }, reset: function () { this.currentCount = 0, this.paused = !0, this.lastTime = Date.now() }, update: function () { this.paused || Date.now() - this.lastTime < this.delay || (this.currentCount++ , this.lastTime = Date.now(), this.onTimer && this.onTimer.call(this.refrence, this.getTime())) }, getTime: function () { return this.delay * this.currentCount } } }(), function () { "use strict"; window.CSSTween = function (t, i, e, s) { this.$element = t, this.duration = i || 1e3, this.delay = e || 0, this.ease = s || "linear" }; var t = CSSTween.prototype; t.to = function (t, i) { return this.to_cb = t, this.to_cb_target = i, this }, t.from = function (t, i) { return this.fr_cb = t, this.fr_cb_target = i, this }, t.onComplete = function (t, i) { return this.oc_fb = t, this.oc_fb_target = i, this }, t.chain = function (t) { return this.chained_tween = t, this }, t.reset = function () { clearTimeout(this.start_to), clearTimeout(this.end_to) }, t.start = function () { var t = this.$element[0]; clearTimeout(this.start_to), clearTimeout(this.end_to), this.fresh = !0, this.fr_cb && (t.style[window._jcsspfx + "TransitionDuration"] = "0ms", this.fr_cb.call(this.fr_cb_target)); var i = this; return this.onTransComplete = function (e) { i.fresh && (i.reset(), t.style[window._jcsspfx + "TransitionDuration"] = "", t.style[window._jcsspfx + "TransitionProperty"] = "", t.style[window._jcsspfx + "TransitionTimingFunction"] = "", t.style[window._jcsspfx + "TransitionDelay"] = "", i.fresh = !1, i.chained_tween && i.chained_tween.start(), i.oc_fb && i.oc_fb.call(i.oc_fb_target)) }, this.start_to = setTimeout(function () { i.$element && (t.style[window._jcsspfx + "TransitionDuration"] = i.duration + "ms", t.style[window._jcsspfx + "TransitionProperty"] = i.transProperty || "all", i.delay > 0 ? t.style[window._jcsspfx + "TransitionDelay"] = i.delay + "ms" : t.style[window._jcsspfx + "TransitionDelay"] = "", t.style[window._jcsspfx + "TransitionTimingFunction"] = i.ease, i.to_cb && i.to_cb.call(i.to_cb_target), i.end_to = setTimeout(function () { i.onTransComplete() }, i.duration + (i.delay || 0))) }, 1), this } }(), function () { "use strict"; function t(t, e) { if (void 0 !== e.x || void 0 !== e.y) if (i) { var s = window._jcsspfx + "Transform"; void 0 !== e.x && (e[s] = (e[s] || "") + " translateX(" + e.x + "px)", delete e.x), void 0 !== e.y && (e[s] = (e[s] || "") + " translateY(" + e.y + "px)", delete e.y) } else void 0 !== e.x && (e["auto" !== t.css("right") ? "right" : "left"] = e.x + "px", delete e.x), void 0 !== e.y && (e["auto" !== t.css("bottom") ? "bottom" : "top"] = e.y + "px", delete e.y); return e } var i = null; window.CTween = {}, CTween.setPos = function (i, e) { i.css(t(i, e)) }, CTween.animate = function (e, s, n, o) { if (null == i && (i = window._cssanim), o = o || {}, t(e, n), i) { var a = new CSSTween(e, s, o.delay, EaseDic[o.ease]); return o.transProperty && (a.transProperty = o.transProperty), a.to(function () { e.css(n) }), o.complete && a.onComplete(o.complete, o.target), a.start(), a.stop = a.reset, a } var r; return o.delay && e.delay(o.delay), o.complete && (r = function () { o.complete.call(o.target) }), e.stop(!0).animate(n, s, o.ease || "linear", r), e }, CTween.fadeOut = function (t, i, e) { var s = {}; !0 === e ? s.complete = function () { t.remove() } : 2 === e && (s.complete = function () { t.css("display", "none") }), CTween.animate(t, i || 1e3, { opacity: 0 }, s) }, CTween.fadeIn = function (t, i, e) { !1 !== e && t.css("opacity", 0).css("display", ""), CTween.animate(t, i || 1e3, { opacity: 1 }) } }(), window.EaseDic = { linear: "linear", ease: "ease", easeIn: "ease-in", easeOut: "ease-out", easeInOut: "ease-in-out", easeInCubic: "cubic-bezier(.55,.055,.675,.19)", easeOutCubic: "cubic-bezier(.215,.61,.355,1)", easeInOutCubic: "cubic-bezier(.645,.045,.355,1)", easeInCirc: "cubic-bezier(.6,.04,.98,.335)", easeOutCirc: "cubic-bezier(.075,.82,.165,1)", easeInOutCirc: "cubic-bezier(.785,.135,.15,.86)", easeInExpo: "cubic-bezier(.95,.05,.795,.035)", easeOutExpo: "cubic-bezier(.19,1,.22,1)", easeInOutExpo: "cubic-bezier(1,0,0,1)", easeInQuad: "cubic-bezier(.55,.085,.68,.53)", easeOutQuad: "cubic-bezier(.25,.46,.45,.94)", easeInOutQuad: "cubic-bezier(.455,.03,.515,.955)", easeInQuart: "cubic-bezier(.895,.03,.685,.22)", easeOutQuart: "cubic-bezier(.165,.84,.44,1)", easeInOutQuart: "cubic-bezier(.77,0,.175,1)", easeInQuint: "cubic-bezier(.755,.05,.855,.06)", easeOutQuint: "cubic-bezier(.23,1,.32,1)", easeInOutQuint: "cubic-bezier(.86,0,.07,1)", easeInSine: "cubic-bezier(.47,0,.745,.715)", easeOutSine: "cubic-bezier(.39,.575,.565,1)", easeInOutSine: "cubic-bezier(.445,.05,.55,.95)", easeInBack: "cubic-bezier(.6,-.28,.735,.045)", easeOutBack: "cubic-bezier(.175, .885,.32,1.275)", easeInOutBack: "cubic-bezier(.68,-.55,.265,1.55)" }, function () { "use strict"; window.MSAligner = function (t, i, e) { this.$container = i, this.$img = e, this.type = t || "stretch", this.widthOnly = !1, this.heightOnly = !1 }; var t = MSAligner.prototype; t.init = function (t, i) { switch (this.baseWidth = t, this.baseHeight = i, this.imgRatio = t / i, this.imgRatio2 = i / t, this.type) { case "tile": this.$container.css("background-image", "url(" + this.$img.attr("src") + ")"), this.$img.remove(); break; case "center": this.$container.css("background-image", "url(" + this.$img.attr("src") + ")"), this.$container.css({ backgroundPosition: "center center", backgroundRepeat: "no-repeat" }), this.$img.remove(); break; case "stretch": this.$img.css({ width: "100%", height: "100%" }); break; case "fill": case "fit": this.needAlign = !0, this.align() } }, t.align = function () { if (this.needAlign) { var t = this.$container[0].offsetWidth, i = this.$container[0].offsetHeight, e = t / i; "fill" == this.type ? this.imgRatio < e ? (this.$img.width(t), this.$img.height(t * this.imgRatio2)) : (this.$img.height(i), this.$img.width(i * this.imgRatio)) : "fit" == this.type && (this.imgRatio < e ? (this.$img.height(i), this.$img.width(i * this.imgRatio)) : (this.$img.width(t), this.$img.height(t * this.imgRatio2))), this.setMargin() } }, t.setMargin = function () { var t = this.$container[0].offsetWidth, i = this.$container[0].offsetHeight; this.$img.css("margin-top", (i - this.$img[0].offsetHeight) / 2 + "px"), this.$img.css("margin-left", (t - this.$img[0].offsetWidth) / 2 + "px") } }(), function (t) { var i = function (e) { this.options = t.extend({}, i.defaultOptions, e), this.isEnabled = !1, !this.options.forcePolyfill && this.supportsPointerEvents() || (this.registerEvents(), this.isEnabled = !0) }; i.defaultOptions = { forcePolyfill: !1, selector: "*", listenOn: ["click", "dblclick", "mousedown", "mouseup"], pointerEventsNoneClass: null, pointerEventsAllClass: null, eventNamespace: "pointer-events-polyfill" }, i.prototype.registerEvents = function () { t(document).on(this.getEventNames(), this.options.selector, t.proxy(this.onElementClick, this)) }, i.prototype.getEventNames = function () { var t = this.options.eventNamespace ? "." + this.options.eventNamespace : ""; return this.options.listenOn.join(t + " ") + t }, i.prototype.supportsPointerEvents = function () { var t = document.createElement("a").style; return t.cssText = "pointer-events:auto", "auto" === t.pointerEvents }, i.prototype.isClickThrough = function (t) { var i = t.css("pointer-events"); return 0 !== t.length && "all" !== i && !t.is(":root") && !t.hasClass(this.options.pointerEventsAllClass) && !("none" !== i && !t.hasClass(this.options.pointerEventsNoneClass) && !this.isClickThrough(t.parent())) }, i.prototype.onElementClick = function (i) { var e = t(i.target); if (!this.isClickThrough(e)) return !0; e.hide(); var s = document.elementFromPoint(i.clientX, i.clientY); return i.target = s, t(s).trigger(i), "A" === s.tagName && (2 === i.which ? window.open(s.getAttribute("href"), "_blank") : s.click()), e.show(), !1 }, i.prototype.destroy = function () { t(document).off(this.getEventNames()), this.isEnabled = !1 }, window.pointerEventsPolyfill = function (t) { return new i(t) } }(jQuery), function () { "use strict"; var t = { bouncing: !0, snapping: !1, snapsize: null, friction: .05, outFriction: .05, outAcceleration: .09, minValidDist: .3, snappingMinSpeed: 2, paging: !1, endless: !1, maxSpeed: 160 }, i = function (i, e, s) { if (null === e || null === i) throw new Error("Max and Min values are required."); this.options = s || {}; for (var n in t) n in this.options || (this.options[n] = t[n]); this._max_value = e, this._min_value = i, this.value = i, this.end_loc = i, this.current_snap = this.getSnapNum(i), this.__extrStep = 0, this.__extraMove = 0, this.__animID = -1 }, e = i.prototype; e.changeTo = function (t, i, e, s, n) { if (this.stopped = !1, this._internalStop(), t = this._checkLimits(t), e = Math.abs(e || 0), this.options.snapping && (s = s || this.getSnapNum(t), !1 !== n && this._callsnapChange(s), this.current_snap = s), i) { this.animating = !0; var o = this, a = ++o.__animID, r = t - o.value, h = 0, l = t, d = 1 - o.options.friction, c = d + (e - 20) * d * 1.3 / o.options.maxSpeed, p = function () { if (a === o.__animID) { var i = t - o.value; if (!(Math.abs(i) > o.options.minValidDist && o.animating)) return o.animating && (o.value = t, o._callrenderer()), o.animating = !1, a !== o.__animID && (o.__animID = -1), void o._callonComplete("anim"); window.requestAnimationFrame(p), o.value = l - r * Math.exp(-++h * c), o._callrenderer() } }; p() } else this.value = t, this._callrenderer() }, e.drag = function (t) { this.start_drag && (this.drag_start_loc = this.value, this.start_drag = !1), this.animating = !1, this._deceleration = !1, this.value -= t, !this.options.endless && (this.value > this._max_value || this.value < 0) ? this.options.bouncing ? (this.__isout = !0, this.value += .6 * t) : this.value > this._max_value ? this.value = this._max_value : this.value = 0 : !this.options.endless && this.options.bouncing && (this.__isout = !1), this._callrenderer() }, e.push = function (t) { if (this.stopped = !1, this.options.snapping && Math.abs(t) <= this.options.snappingMinSpeed) this.cancel(); else { if (this.__speed = t, this.__startSpeed = t, this.end_loc = this._calculateEnd(), this.options.snapping) { var i = this.getSnapNum(this.value), e = this.getSnapNum(this.end_loc); if (this.options.paging) return i = this.getSnapNum(this.drag_start_loc), this.__isout = !1, void (t > 0 ? this.gotoSnap(i + 1, !0, t) : this.gotoSnap(i - 1, !0, t)); if (i === e) return void this.cancel(); this._callsnapChange(e), this.current_snap = e } this.animating = !1, this.__needsSnap = this.options.endless || this.end_loc > this._min_value && this.end_loc < this._max_value, this.options.snapping && this.__needsSnap && (this.__extraMove = this._calculateExtraMove(this.end_loc)), this._startDecelaration() } }, e.bounce = function (t) { this.animating || (this.stopped = !1, this.animating = !1, this.__speed = t, this.__startSpeed = t, this.end_loc = this._calculateEnd(), this._startDecelaration()) }, e.stop = function () { this.stopped = !0, this._internalStop() }, e.cancel = function () { this.start_drag = !0, this.__isout ? (this.__speed = 4e-4, this._startDecelaration()) : this.options.snapping && this.gotoSnap(this.getSnapNum(this.value), !0) }, e.renderCallback = function (t, i) { this.__renderHook = { fun: t, ref: i } }, e.snappingCallback = function (t, i) { this.__snapHook = { fun: t, ref: i } }, e.snapCompleteCallback = function (t, i) { this.__compHook = { fun: t, ref: i } }, e.getSnapNum = function (t) { return Math.floor((t + this.options.snapsize / 2) / this.options.snapsize) }, e.nextSnap = function () { this._internalStop(); var t = this.getSnapNum(this.value); !this.options.endless && (t + 1) * this.options.snapsize > this._max_value ? (this.__speed = 8, this.__needsSnap = !1, this._startDecelaration()) : this.gotoSnap(t + 1, !0) }, e.prevSnap = function () { this._internalStop(); var t = this.getSnapNum(this.value); !this.options.endless && (t - 1) * this.options.snapsize < this._min_value ? (this.__speed = -8, this.__needsSnap = !1, this._startDecelaration()) : this.gotoSnap(t - 1, !0) }, e.gotoSnap = function (t, i, e) { this.changeTo(t * this.options.snapsize, i, e, t) }, e.destroy = function () { this._internalStop(), this.__renderHook = null, this.__snapHook = null, this.__compHook = null }, e._internalStop = function () { this.start_drag = !0, this.animating = !1, this._deceleration = !1, this.__extrStep = 0 }, e._calculateExtraMove = function (t) { var i = t % this.options.snapsize; return i < this.options.snapsize / 2 ? -i : this.options.snapsize - i }, e._calculateEnd = function (t) { for (var i = this.__speed, e = this.value, s = 0; Math.abs(i) > this.options.minValidDist;)e += i, i *= this.options.friction, s++; return t ? s : e }, e._checkLimits = function (t) { return this.options.endless ? t : t < this._min_value ? this._min_value : t > this._max_value ? this._max_value : t }, e._callrenderer = function () { this.__renderHook && this.__renderHook.fun.call(this.__renderHook.ref, this, this.value) }, e._callsnapChange = function (t) { this.__snapHook && t !== this.current_snap && this.__snapHook.fun.call(this.__snapHook.ref, this, t, t - this.current_snap) }, e._callonComplete = function (t) { this.__compHook && !this.stopped && this.__compHook.fun.call(this.__compHook.ref, this, this.current_snap, t) }, e._computeDeceleration = function () { if (this.options.snapping && this.__needsSnap) { var t = (this.__startSpeed - this.__speed) / this.__startSpeed * this.__extraMove; this.value += this.__speed + t - this.__extrStep, this.__extrStep = t } else this.value += this.__speed; if (this.__speed *= this.options.friction, this.options.endless || this.options.bouncing || (this.value <= this._min_value ? (this.value = this._min_value, this.__speed = 0) : this.value >= this._max_value && (this.value = this._max_value, this.__speed = 0)), this._callrenderer(), !this.options.endless && this.options.bouncing) { var i = 0; this.value < this._min_value ? i = this._min_value - this.value : this.value > this._max_value && (i = this._max_value - this.value), this.__isout = Math.abs(i) >= this.options.minValidDist, this.__isout && (this.__speed * i <= 0 ? this.__speed += i * this.options.outFriction : this.__speed = i * this.options.outAcceleration) } }, e._startDecelaration = function () { if (!this._deceleration) { this._deceleration = !0; var t = this, i = function () { t._deceleration && (t._computeDeceleration(), Math.abs(t.__speed) > t.options.minValidDist || t.__isout ? window.requestAnimationFrame(i) : (t._deceleration = !1, t.__isout = !1, t.__needsSnap && t.options.snapping && !t.options.paging ? t.value = t._checkLimits(t.end_loc + t.__extraMove) : t.value = Math.round(t.value), t._callrenderer(), t._callonComplete("decel"))) }; i() } }, window.Controller = i }(), function (t, i, e) { t.MSLayerController = function (t) { this.slide = t, this.slider = t.slider, this.layers = [], this.layersCount = 0, this.preloadCount = 0, this.$layers = e("<div></div>").addClass("ms-slide-layers"), this.$staticLayers = e("<div></div>").addClass("ms-static-layers"), this.$fixedLayers = e("<div></div>").addClass("ms-fixed-layers"), this.$animLayers = e("<div></div>").addClass("ms-anim-layers") }; var s = MSLayerController.prototype; s.addLayer = function (t) { switch (t.slide = this.slide, t.controller = this, t.$element.data("position")) { case "static": this.hasStaticLayer = !0, t.$element.appendTo(this.$staticLayers); break; case "fixed": this.hasFixedLayer = !0, t.$element.appendTo(this.$fixedLayers); break; default: t.$element.appendTo(this.$animLayers) }t.create(), this.layers.push(t), this.layersCount++ , t.parallax && (this.hasParallaxLayer = !0), t.needPreload && this.preloadCount++ }, s.create = function () { this.slide.$element.append(this.$layers), this.$layers.append(this.$animLayers), this.hasStaticLayer && this.$layers.append(this.$staticLayers), "center" == this.slider.options.layersMode && (this.$layers.css("max-width", this.slider.options.width + "px"), this.hasFixedLayer && this.$fixedLayers.css("max-width", this.slider.options.width + "px")) }, s.loadLayers = function (t) { if (this._onReadyCallback = t, 0 !== this.preloadCount) for (var i = 0; i !== this.layersCount; ++i)this.layers[i].needPreload && this.layers[i].loadImage(); else this._onlayersReady() }, s.prepareToShow = function () { this.hasParallaxLayer && this._enableParallaxEffect(), this.hasFixedLayer && this.$fixedLayers.prependTo(this.slide.view.$element) }, s.showLayers = function () { this.layersHideTween && this.layersHideTween.stop(!0), this.fixedLayersHideTween && this.fixedLayersHideTween.stop(!0), this._resetLayers(), this.$animLayers.css("opacity", "").css("display", ""), this.hasFixedLayer && this.$fixedLayers.css("opacity", "").css("display", ""), this.ready && (this._initLayers(), this._locateLayers(), this._startLayers()) }, s.hideLayers = function () { if (this.slide.selected || this.slider.options.instantStartLayers) { var t = this; t.layersHideTween = CTween.animate(this.$animLayers, 500, { opacity: 0 }, { complete: function () { t._resetLayers() } }), this.hasFixedLayer && (this.fixedLayersHideTween = CTween.animate(this.$fixedLayers, 500, { opacity: 0 }, { complete: function () { t.$fixedLayers.detach() } })), this.hasParallaxLayer && this._disableParallaxEffect() } }, s.animHideLayers = function () { if (this.ready) for (var t = 0; t !== this.layersCount; ++t)this.layers[t].hide() }, s.setSize = function (t, i, e) { if (this.ready && (this.slide.selected || this.hasStaticLayer) && (e && this._initLayers(!0), this._locateLayers(!this.slide.selected)), this.slider.options.autoHeight && this.updateHeight(), "center" == this.slider.options.layersMode) { var s = Math.max(0, (t - this.slider.options.width) / 2) + "px"; this.$layers[0].style.left = s, this.$fixedLayers[0].style.left = s } }, s.updateHeight = function () { }, s._onlayersReady = function () { this.ready = !0, this.hasStaticLayer && !this.slide.isSleeping && this._initLayers(!1, !0), this._onReadyCallback.call(this.slide) }, s.onSlideSleep = function () { }, s.onSlideWakeup = function () { this.hasStaticLayer && this.ready && this._initLayers(!1, !0) }, s.getLayerById = function (t) { if (!t) return null; for (var i = 0; i < this.layersCount; ++i)if (this.layers[i].id === t) return this.layers[i]; return null }, s.destroy = function () { this.slide.selected && this.hasParallaxLayer && this._disableParallaxEffect(); for (var t = 0; t < this.layersCount; ++t)this.layers[t].$element.stop(!0).remove(); this.$layers.remove(), this.$staticLayers.remove(), this.$fixedLayers.remove(), this.$animLayers.remove() }, s._startLayers = function () { for (var t = 0; t !== this.layersCount; ++t) { var i = this.layers[t]; i.waitForAction || i.start() } }, s._initLayers = function (t, i) { if (!(this.init && !t || this.slider.init_safemode)) { this.init = !0 !== i; var e = 0; if (i && !this.staticsInit) for (this.staticsInit = !0; e !== this.layersCount; ++e)this.layers[e].staticLayer && this.layers[e].init(); else if (this.staticsInit && !t) for (; e !== this.layersCount; ++e)this.layers[e].staticLayer || this.layers[e].init(); else for (; e !== this.layersCount; ++e)this.layers[e].init() } }, s._locateLayers = function (t) { var i = 0; if (t) for (; i !== this.layersCount; ++i)this.layers[i].staticLayer && this.layers[i].locate(); else for (; i !== this.layersCount; ++i)this.layers[i].locate() }, s._resetLayers = function () { this.$animLayers.css("display", "none").css("opacity", 1); for (var t = 0; t !== this.layersCount; ++t)this.layers[t].reset() }, s._applyParallax = function (t, i, e) { for (var s = 0; s !== this.layersCount; ++s)null != this.layers[s].parallax && this.layers[s].moveParallax(t, i, e) }, s._enableParallaxEffect = function () { "swipe" === this.slider.options.parallaxMode ? this.slide.view.addEventListener(MSViewEvents.SCROLL, this._swipeParallaxMove, this) : this.slide.$element.on("mousemove", { that: this }, this._mouseParallaxMove).on("mouseleave", { that: this }, this._resetParalax) }, s._disableParallaxEffect = function () { "swipe" === this.slider.options.parallaxMode ? this.slide.view.removeEventListener(MSViewEvents.SCROLL, this._swipeParallaxMove, this) : this.slide.$element.off("mousemove", this._mouseParallaxMove).off("mouseleave", this._resetParalax) }, s._resetParalax = function (t) { t.data.that._applyParallax(0, 0) }, s._mouseParallaxMove = function (t) { var i = t.data.that, e = i.slide.$element.offset(), s = i.slider; if ("mouse:y-only" !== s.options.parallaxMode) n = t.pageX - e.left - i.slide.__width / 2; else var n = 0; if ("mouse:x-only" !== s.options.parallaxMode) o = t.pageY - e.top - i.slide.__height / 2; else var o = 0; i._applyParallax(-n, -o) }, s._swipeParallaxMove = function (t) { var i = this.slide.position - this.slide.view.__contPos; "v" === this.slider.options.dir ? this._applyParallax(0, i, !0) : this._applyParallax(i, 0, !0) } }(window, document, jQuery), function (t, i, e, s) { "use strict"; i.MSOverlayLayerController = function (t) { MSLayerController.apply(this, arguments) }, MSOverlayLayerController.extend(MSLayerController); var n = MSOverlayLayerController.prototype, o = MSLayerController.prototype; n.addLayer = function (t) { var i = t.$element.data("show-on"), e = t.$element.data("hide-on"); e && (t.hideOnSlides = e.replace(/\s+/g, "").split(",")), i && (t.showOnSlides = i.replace(/\s+/g, "").split(",")), o.addLayer.apply(this, arguments) }, n.create = function () { o.create.apply(this, arguments), this.slider.api.addEventListener(MSSliderEvent.CHANGE_START, this.checkLayers.bind(this)) }, n.checkLayers = function () { if (this.ready) for (var t = 0; t !== this.layersCount; ++t) { var i = this.layers[t]; i.waitForAction || (this._checkForShow(i) ? i.start() : i.hide()) } }, n._enableParallaxEffect = function () { this.slider.view.$element.on("mousemove", { that: this }, this._mouseParallaxMove).on("mouseleave", { that: this }, this._resetParalax) }, n._disableParallaxEffect = function () { this.slider.view.$element.off("mousemove", this._mouseParallaxMove).off("mouseleave", this._resetParalax) }, n._startLayers = function () { for (var t = 0; t !== this.layersCount; ++t) { var i = this.layers[t]; this._checkForShow(i) && !i.waitForAction && i.start() } }, n._checkForShow = function (t) { var i = this.slider.api.currentSlide.id, e = t.hideOnSlides, s = t.showOnSlides; return s ? !!i && -1 !== s.indexOf(i) : !i || !e || e.length && -1 === e.indexOf(i) } }(0, window, document), function (t, i, e, s) { "use strict"; i.MSOverlayLayers = function (t) { this.slider = t }; var n = MSOverlayLayers.prototype; n.setupLayerController = function () { this.layerController = new MSOverlayLayerController(this), this.slider.api.addEventListener(MSSliderEvent.RESIZE, this.setSize.bind(this)), this.slider.api.addEventListener(MSSliderEvent.CHANGE_START, this.setSize.bind(this)), this.setSize() }, n.setSize = function () { this.__width = this.$element.width(), this.__height = this.$element.height(), this.layerController.setSize(this.__width, this.__height) }, n.create = function () { this.layerController.create(), this.layerController.loadLayers(this._onLayersLoad), this.layerController.prepareToShow(), i.pointerEventsPolyfill && i.pointerEventsPolyfill({ selector: "#" + this.slider.$element.attr("id") + " .ms-overlay-layers", forcePolyfill: !1 }) }, n.getHeight = function () { return this.slider.api.currentSlide.getHeight() }, n.destroy = function () { this.layerController.destroy() }, n._onLayersLoad = function () { this.ready = !0, this.selected = !0, this.layersLoaded = !0, this.setSize(), this.layerController.showLayers() } }(0, window, document), function (t) { window.MSLayerEffects = {}; var i, e = { opacity: 0 }; MSLayerEffects.setup = function () { if (!i) { i = !0; var s = MSLayerEffects, n = window._jcsspfx + "Transform", o = window._jcsspfx + "TransformOrigin", a = t.browser.opera; _2d = window._css2d && window._cssanim && !a, s.defaultValues = { left: 0, top: 0, opacity: isMSIE("<=9") ? 1 : "", right: 0, bottom: 0 }, s.defaultValues[n] = "", s.rf = 1, s.presetEffParams = { random: "30|300", long: 300, short: 30, false: !1, true: !0, tl: "top left", bl: "bottom left", tr: "top right", br: "bottom right", rt: "top right", lb: "bottom left", lt: "top left", rb: "bottom right", t: "top", b: "bottom", r: "right", l: "left", c: "center" }, s.fade = function () { return e }, s.left = _2d ? function (t, i) { var e = !1 === i ? {} : { opacity: 0 }; return e[n] = "translateX(" + -t * s.rf + "px)", e } : function (t, i) { var e = !1 === i ? {} : { opacity: 0 }; return e.left = -t * s.rf + "px", e }, s.right = _2d ? function (t, i) { var e = !1 === i ? {} : { opacity: 0 }; return e[n] = "translateX(" + t * s.rf + "px)", e } : function (t, i) { var e = !1 === i ? {} : { opacity: 0 }; return e.left = t * s.rf + "px", e }, s.top = _2d ? function (t, i) { var e = !1 === i ? {} : { opacity: 0 }; return e[n] = "translateY(" + -t * s.rf + "px)", e } : function (t, i) { var e = !1 === i ? {} : { opacity: 0 }; return e.top = -t * s.rf + "px", e }, s.bottom = _2d ? function (t, i) { var e = !1 === i ? {} : { opacity: 0 }; return e[n] = "translateY(" + t * s.rf + "px)", e } : function (t, i) { var e = !1 === i ? {} : { opacity: 0 }; return e.top = t * s.rf + "px", e }, s.from = _2d ? function (t, i, e) { var o = !1 === e ? {} : { opacity: 0 }; return o[n] = "translateX(" + t * s.rf + "px) translateY(" + i * s.rf + "px)", o } : function (t, i, e) { var n = !1 === e ? {} : { opacity: 0 }; return n.top = i * s.rf + "px", n.left = t * s.rf + "px", n }, s.rotate = _2d ? function (t, i) { var e = { opacity: 0 }; return e[n] = " rotate(" + t + "deg)", i && (e[o] = i), e } : function (t, i) { return e }, s.rotateleft = _2d ? function (t, i, e, a) { var r = s.left(i, a); return r[n] += " rotate(" + t + "deg)", e && (r[o] = e), r } : function (t, i, e, n) { return s.left(i, n) }, s.rotateright = _2d ? function (t, i, e, a) { var r = s.right(i, a); return r[n] += " rotate(" + t + "deg)", e && (r[o] = e), r } : function (t, i, e, n) { return s.right(i, n) }, s.rotatetop = _2d ? function (t, i, e, a) { var r = s.top(i, a); return r[n] += " rotate(" + t + "deg)", e && (r[o] = e), r } : function (t, i, e, n) { return s.top(i, n) }, s.rotatebottom = _2d ? function (t, i, e, a) { var r = s.bottom(i, a); return r[n] += " rotate(" + t + "deg)", e && (r[o] = e), r } : function (t, i, e, n) { return s.bottom(i, n) }, s.rotatefrom = _2d ? function (t, i, e, a, r) { var h = s.from(i, e, r); return h[n] += " rotate(" + t + "deg)", a && (h[o] = a), h } : function (t, i, e, n, o) { return s.from(i, e, o) }, s.skewleft = _2d ? function (t, i, e) { var o = s.left(i, e); return o[n] += " skewX(" + t + "deg)", o } : function (t, i, e) { return s.left(i, e) }, s.skewright = _2d ? function (t, i, e) { var o = s.right(i, e); return o[n] += " skewX(" + -t + "deg)", o } : function (t, i, e) { return s.right(i, e) }, s.skewtop = _2d ? function (t, i, e) { var o = s.top(i, e); return o[n] += " skewY(" + t + "deg)", o } : function (t, i, e) { return s.top(i, e) }, s.skewbottom = _2d ? function (t, i, e) { var o = s.bottom(i, e); return o[n] += " skewY(" + -t + "deg)", o } : function (t, i, e) { return s.bottom(i, e) }, s.scale = _2d ? function (t, i, e, s) { var a = !1 === s ? {} : { opacity: 0 }; return a[n] = " scaleX(" + t + ") scaleY(" + i + ")", e && (a[o] = e), a } : function (t, i, e, s) { return !1 === s ? {} : { opacity: 0 } }, s.scaleleft = _2d ? function (t, i, e, a, r) { var h = s.left(e, r); return h[n] = " scaleX(" + t + ") scaleY(" + i + ")", a && (h[o] = a), h } : function (t, i, e, n, o) { return s.left(e, o) }, s.scaleright = _2d ? function (t, i, e, a, r) { var h = s.right(e, r); return h[n] = " scaleX(" + t + ") scaleY(" + i + ")", a && (h[o] = a), h } : function (t, i, e, n, o) { return s.right(e, o) }, s.scaletop = _2d ? function (t, i, e, a, r) { var h = s.top(e, r); return h[n] = " scaleX(" + t + ") scaleY(" + i + ")", a && (h[o] = a), h } : function (t, i, e, n, o) { return s.top(e, o) }, s.scalebottom = _2d ? function (t, i, e, a, r) { var h = s.bottom(e, r); return h[n] = " scaleX(" + t + ") scaleY(" + i + ")", a && (h[o] = a), h } : function (t, i, e, n, o) { return s.bottom(e, o) }, s.scalefrom = _2d ? function (t, i, e, a, r, h) { var l = s.from(e, a, h); return l[n] += " scaleX(" + t + ") scaleY(" + i + ")", r && (l[o] = r), l } : function (t, i, e, n, o, a) { return s.from(e, n, a) }, s.rotatescale = _2d ? function (t, i, e, a, r) { var h = s.scale(i, e, a, r); return h[n] += " rotate(" + t + "deg)", a && (h[o] = a), h } : function (t, i, e, n, o) { return s.scale(i, e, n, o) }, s.front = window._css3d ? function (t, i) { var e = !1 === i ? {} : { opacity: 0 }; return e[n] = "perspective(2000px) translate3d(0 , 0 ," + t + "px ) rotate(0.001deg)", e } : function (t) { return e }, s.back = window._css3d ? function (t, i) { var e = !1 === i ? {} : { opacity: 0 }; return e[n] = "perspective(2000px) translate3d(0 , 0 ," + -t + "px ) rotate(0.001deg)", e } : function (t) { return e }, s.rotatefront = window._css3d ? function (t, i, e, s) { var a = !1 === s ? {} : { opacity: 0 }; return a[n] = "perspective(2000px) translate3d(0 , 0 ," + i + "px ) rotate(" + (t || .001) + "deg)", e && (a[o] = e), a } : function (t, i, s, n) { return e }, s.rotateback = window._css3d ? function (t, i, e, s) { var a = !1 === s ? {} : { opacity: 0 }; return a[n] = "perspective(2000px) translate3d(0 , 0 ," + -i + "px ) rotate(" + (t || .001) + "deg)", e && (a[o] = e), a } : function (t, i, s, n) { return e }, s.rotate3dleft = window._css3d ? function (t, i, e, a, r, h) { var l = s.left(a, h); return l[n] += (t ? " rotateX(" + t + "deg)" : " ") + (i ? " rotateY(" + i + "deg)" : "") + (e ? " rotateZ(" + e + "deg)" : ""), r && (l[o] = r), l } : function (t, i, e, n, o, a) { return s.left(n, a) }, s.rotate3dright = window._css3d ? function (t, i, e, a, r, h) { var l = s.right(a, h); return l[n] += (t ? " rotateX(" + t + "deg)" : " ") + (i ? " rotateY(" + i + "deg)" : "") + (e ? " rotateZ(" + e + "deg)" : ""), r && (l[o] = r), l } : function (t, i, e, n, o, a) { return s.right(n, a) }, s.rotate3dtop = window._css3d ? function (t, i, e, a, r, h) { var l = s.top(a, h); return l[n] += (t ? " rotateX(" + t + "deg)" : " ") + (i ? " rotateY(" + i + "deg)" : "") + (e ? " rotateZ(" + e + "deg)" : ""), r && (l[o] = r), l } : function (t, i, e, n, o, a) { return s.top(n, a) }, s.rotate3dbottom = window._css3d ? function (t, i, e, a, r, h) { var l = s.bottom(a, h); return l[n] += (t ? " rotateX(" + t + "deg)" : " ") + (i ? " rotateY(" + i + "deg)" : "") + (e ? " rotateZ(" + e + "deg)" : ""), r && (l[o] = r), l } : function (t, i, e, n, o, a) { return s.bottom(n, a) }, s.rotate3dfront = window._css3d ? function (t, i, e, a, r, h) { var l = s.front(a, h); return l[n] += (t ? " rotateX(" + t + "deg)" : " ") + (i ? " rotateY(" + i + "deg)" : "") + (e ? " rotateZ(" + e + "deg)" : ""), r && (l[o] = r), l } : function (t, i, e, n, o, a) { return s.front(n, a) }, s.rotate3dback = window._css3d ? function (t, i, e, a, r, h) { var l = s.back(a, h); return l[n] += (t ? " rotateX(" + t + "deg)" : " ") + (i ? " rotateY(" + i + "deg)" : "") + (e ? " rotateZ(" + e + "deg)" : ""), r && (l[o] = r), l } : function (t, i, e, n, o, a) { return s.back(n, a) }, s.t = window._css3d ? function (t, i, e, a, r, h, l, d, c, p, u, m, f, v, _) { var w = !1 === t ? {} : { opacity: 0 }, g = "perspective(2000px) "; "n" !== i && (g += "translateX(" + i * s.rf + "px) "), "n" !== e && (g += "translateY(" + e * s.rf + "px) "), "n" !== a && (g += "translateZ(" + a * s.rf + "px) "), "n" !== r && (g += "rotate(" + r + "deg) "), "n" !== h && (g += "rotateX(" + h + "deg) "), "n" !== l && (g += "rotateY(" + l + "deg) "), "n" !== d && (g += "rotateZ(" + d + "deg) "), "n" !== u && (g += "skewX(" + u + "deg) "), "n" !== m && (g += "skewY(" + m + "deg) "), "n" !== c && (g += "scaleX(" + c + ") "), "n" !== p && (g += "scaleY(" + p + ")"), w[n] = g; var S = ""; return S += "n" !== f ? f + "% " : "50% ", S += "n" !== v ? v + "% " : "50% ", S += "n" !== _ ? _ + "px" : "", w[o] = S, w } : function (t, i, e, n, o, a, r, h, l, d, c, p, u, m, f) { var o = !1 === t ? {} : { opacity: 0 }; return "n" !== i && (o.left = i * s.rf + "px"), "n" !== e && (o.top = e * s.rf + "px"), o } } } }(jQuery), function (t) { window.MSLayerElement = function () { this.start_anim = { name: "fade", duration: 1e3, ease: "linear", delay: 0 }, this.end_anim = { duration: 1e3, ease: "linear" }, this.type = "text", this.resizable = !0, this.minWidth = -1, this.isVisible = !0, this.__cssConfig = ["margin-top", "padding-top", "margin-bottom", "padding-left", "margin-right", "padding-right", "margin-left", "padding-bottom", "font-size", "line-height", "width", "left", "right", "top", "bottom"], this.baseStyle = {} }; var i = MSLayerElement.prototype; i.setStartAnim = function (i) { t.extend(this.start_anim, i), t.extend(this.start_anim, this._parseEff(this.start_anim.name)), this.$element.css("visibility", "hidden") }, i.setEndAnim = function (i) { t.extend(this.end_anim, i) }, i.create = function () { if (this.$element.css("display", "none"), this.resizable = !1 !== this.$element.data("resize"), this.fixed = !0 === this.$element.data("fixed"), void 0 !== this.$element.data("widthlimit") && (this.minWidth = this.$element.data("widthlimit")), this.end_anim.name || (this.end_anim.name = this.start_anim.name), this.end_anim.time && (this.autoHide = !0), this.staticLayer = "static" === this.$element.data("position"), this.fixedLayer = "fixed" === this.$element.data("position"), this.layersCont = this.controller.$layers, this.staticLayer && this.$element.css("display", "").css("visibility", ""), void 0 !== this.$element.data("action")) { var i = this.slide.slider.slideController; this.$element.on(this.$element.data("action-event") || "click", function (e) { i.runAction(t(this).data("action")), e.preventDefault() }).addClass("ms-action-layer") } t.extend(this.end_anim, this._parseEff(this.end_anim.name)), this.slider = this.slide.slider, this.masked && (this.$mask = t("<div></div>").addClass("ms-layer-mask"), this.link ? (this.link.wrap(this.$mask), this.$mask = this.link.parent()) : (this.$element.wrap(this.$mask), this.$mask = this.$element.parent()), this.maskWidth && this.$mask.width(this.maskWidth), this.maskHeight && (this.$mask.height(this.maskHeight), -1 === this.__cssConfig.indexOf("height") && this.__cssConfig.push("height"))); var e = this.layerOrigin = this.$element.data("origin"); if (e) { var s = e.charAt(0), n = e.charAt(1), o = this.$element.data("offset-x"), a = this.$element.data("offset-y"), r = this.masked ? this.$mask[0] : this.$element[0]; switch (void 0 === a && (a = 0), s) { case "t": r.style.top = a + "px"; break; case "b": r.style.bottom = a + "px"; break; case "m": r.style.top = a + "px", this.middleAlign = !0 }switch (void 0 === o && (o = 0), n) { case "l": r.style.left = o + "px"; break; case "r": r.style.right = o + "px"; break; case "c": r.style.left = o + "px", this.centerAlign = !0 } } this.parallax = this.$element.data("parallax"), null != this.parallax && (this.parallax /= 100, this.$parallaxElement = t("<div></div>").addClass("ms-parallax-layer"), this.masked ? (this.$mask.wrap(this.$parallaxElement), this.$parallaxElement = this.$mask.parent()) : this.link ? (this.link.wrap(this.$parallaxElement), this.$parallaxElement = this.link.parent()) : (this.$element.wrap(this.$parallaxElement), this.$parallaxElement = this.$element.parent()), this._lastParaX = 0, this._lastParaY = 0, this._paraX = 0, this._paraY = 0, this.alignedToBot = this.layerOrigin && -1 !== this.layerOrigin.indexOf("b"), this.alignedToBot && this.$parallaxElement.css("bottom", 0), window._css3d ? this.parallaxRender = this._parallaxCSS3DRenderer : window._css2d ? this.parallaxRender = this._parallaxCSS2DRenderer : this.parallaxRender = this._parallax2DRenderer, "swipe" !== this.slider.options.parallaxMode && averta.Ticker.add(this.parallaxRender, this)), t.removeDataAttrs(this.$element, ["data-src"]) }, i.init = function () { this.initialized = !0; var t; this.$element.css("visibility", ""); for (var i = 0, e = this.__cssConfig.length; i < e; i++) { var s = this.__cssConfig[i]; if (this._isPosition(s) && this.masked) t = this.$mask.css(s); else if ("text" !== this.type || "width" !== s || this.masked || this.maskWidth) { t = this.$element.css(s); var n = "width" === s || "height" === s; n && this.masked && (this.maskWidth && "width" === s ? t = this.maskWidth + "px" : this.maskHeight && "height" === s && (t = this.maskHeight + "px")), n && "0px" === t && (t = this.$element.data(s) + "px") } else t = this.$element[0].style.width; this.layerOrigin && ("top" === s && -1 === this.layerOrigin.indexOf("t") && -1 === this.layerOrigin.indexOf("m") || "bottom" === s && -1 === this.layerOrigin.indexOf("b") || "left" === s && -1 === this.layerOrigin.indexOf("l") && -1 === this.layerOrigin.indexOf("c") || "right" === s && -1 === this.layerOrigin.indexOf("r")) || "auto" != t && "" != t && "normal" != t && (this.baseStyle[s] = parseInt(t)) } this.middleAlign && (this.baseHeight = this.$element.outerHeight(!1)), this.centerAlign && (this.baseWidth = this.$element.outerWidth(!1)) }, i.locate = function () { if (this.slide.ready) { var t, i, e, s = parseFloat(this.layersCont.css("width")), n = parseFloat(this.layersCont.css("height")); !this.staticLayer && "none" === this.$element.css("display") && this.isVisible && this.$element.css("display", "").css("visibility", "hidden"), this.staticLayer && this.$element.addClass("ms-hover-active"), t = this.resizeFactor = s / this.slide.slider.options.width; var o = this.masked ? this.$mask : this.$element; for (var a in this.baseStyle) i = this._isPosition(a), e = "width" === a || "height" === a, t = this.fixed && i ? 1 : this.resizeFactor, (this.resizable || i) && ("top" === a && this.middleAlign ? (o[0].style.top = "0px", this.baseHeight = o.outerHeight(!1), o[0].style.top = this.baseStyle.top * t + (n - this.baseHeight) / 2 + "px") : "left" === a && this.centerAlign ? (o[0].style.left = "0px", this.baseWidth = o.outerWidth(!1), o[0].style.left = this.baseStyle.left * t + (s - this.baseWidth) / 2 + "px") : i && this.masked ? o[0].style[a] = this.baseStyle[a] * t + "px" : e && ("width" === a && this.maskWidth || "height" === a && this.maskHeight) ? o[0].style[a] = this.baseStyle[a] * t + "px" : this.$element.css(a, this.baseStyle[a] * t + "px")); this.visible(this.minWidth < s) } }, i.start = function () { if (!this.isShowing && !this.staticLayer) { this.isShowing = !0, this.$element.removeClass("ms-hover-active"); var t, i; MSLayerEffects.rf = this.resizeFactor; var e = MSLayerEffects[this.start_anim.eff_name].apply(null, this._parseEffParams(this.start_anim.eff_params)), s = {}; for (t in e) this._checkPosKey(t, e) || (null != MSLayerEffects.defaultValues[t] && (s[t] = MSLayerEffects.defaultValues[t]), t in this.baseStyle && (i = this.baseStyle[t], this.middleAlign && "top" === t && (i += (parseInt(this.layersCont.height()) - this.$element.outerHeight(!1)) / 2), this.centerAlign && "left" === t && (i += (parseInt(this.layersCont.width()) - this.$element.outerWidth(!1)) / 2), e[t] = i + parseFloat(e[t]) + "px", s[t] = i + "px"), this.$element.css(t, e[t])); var n = this; clearTimeout(this.to), clearTimeout(this.clHide), this.to = setTimeout(function () { n.$element.css("visibility", ""), n._playAnimation(n.start_anim, s) }, n.start_anim.delay || .01), this.clTo = setTimeout(function () { n.show_cl = !0, n.$element.addClass("ms-hover-active") }, (this.start_anim.delay || .01) + this.start_anim.duration + 1), this.autoHide && (clearTimeout(this.hto), this.hto = setTimeout(function () { n.hide() }, n.end_anim.time)) } }, i.hide = function () { if (!this.staticLayer) { this.$element.removeClass("ms-hover-active"), this.isShowing = !1; var t = MSLayerEffects[this.end_anim.eff_name].apply(null, this._parseEffParams(this.end_anim.eff_params)); for (key in t) this._checkPosKey(key, t) || (key === window._jcsspfx + "TransformOrigin" && this.$element.css(key, t[key]), key in this.baseStyle && (t[key] = this.baseStyle[key] + parseFloat(t[key]) + "px")); this._playAnimation(this.end_anim, t), clearTimeout(this.clHide), 0 === t.opacity && (this.clHide = setTimeout(function () { this.$element.css("visibility", "hidden") }.bind(this), this.end_anim.duration + 1)), clearTimeout(this.to), clearTimeout(this.hto), clearTimeout(this.clTo) } }, i.reset = function () { this.staticLayer || (this.isShowing = !1, this.$element[0].style.display = "none", this.$element.css("opacity", ""), this.$element[0].style.transitionDuration = "", this.show_tween && this.show_tween.stop(!0), clearTimeout(this.to), clearTimeout(this.hto)) }, i.destroy = function () { this.reset(), this.$element.remove() }, i.visible = function (t) { this.isVisible != t && (this.isVisible = t, this.$element.css("display", t ? "" : "none")) }, i.moveParallax = function (t, i, e) { this._paraX = t, this._paraY = i, e && (this._lastParaX = t, this._lastParaY = i, this.parallaxRender()) }, i._playAnimation = function (t, i) { var e = {}; t.ease && (e.ease = t.ease), e.transProperty = window._csspfx + "transform,opacity", this.show_tween && this.show_tween.stop(!0), this.show_tween = CTween.animate(this.$element, t.duration, i, e) }, i._randomParam = function (t) { var i = Number(t.slice(0, t.indexOf("|"))), e = Number(t.slice(t.indexOf("|") + 1)); return i + Math.random() * (e - i) }, i._parseEff = function (t) { var i = []; if (-1 !== t.indexOf("(")) { var e, s = t.slice(0, t.indexOf("(")).toLowerCase(); i = t.slice(t.indexOf("(") + 1, -1).replace(/\"|\'|\s/g, "").split(","), t = s; for (var n = 0, o = i.length; n < o; ++n)(e = i[n]) in MSLayerEffects.presetEffParams && (e = MSLayerEffects.presetEffParams[e]), i[n] = e } return { eff_name: t, eff_params: i } }, i._parseEffParams = function (t) { for (var i = [], e = 0, s = t.length; e < s; ++e) { var n = t[e]; "string" == typeof n && -1 !== n.indexOf("|") && (n = this._randomParam(n)), i[e] = n } return i }, i._checkPosKey = function (t, i) { return "left" === t && !(t in this.baseStyle) && "right" in this.baseStyle ? (i.right = -parseInt(i.left) + "px", delete i.left, !0) : "top" === t && !(t in this.baseStyle) && "bottom" in this.baseStyle && (i.bottom = -parseInt(i.top) + "px", delete i.top, !0) }, i._isPosition = function (t) { return "top" === t || "left" === t || "bottom" === t || "right" === t }, i._parallaxCalc = function () { var t = this._paraX - this._lastParaX, i = this._paraY - this._lastParaY; this._lastParaX += t / 12, this._lastParaY += i / 12, Math.abs(t) < .019 && (this._lastParaX = this._paraX), Math.abs(i) < .019 && (this._lastParaY = this._paraY) }, i._parallaxCSS3DRenderer = function () { this._parallaxCalc(), this.$parallaxElement[0].style[window._jcsspfx + "Transform"] = "translateX(" + this._lastParaX * this.parallax + "px) translateY(" + this._lastParaY * this.parallax + "px) translateZ(0)" }, i._parallaxCSS2DRenderer = function () { this._parallaxCalc(), this.$parallaxElement[0].style[window._jcsspfx + "Transform"] = "translateX(" + this._lastParaX * this.parallax + "px) translateY(" + this._lastParaY * this.parallax + "px)" }, i._parallax2DRenderer = function () { this._parallaxCalc(), this.alignedToBot ? this.$parallaxElement[0].style.bottom = this._lastParaY * this.parallax + "px" : this.$parallaxElement[0].style.top = this._lastParaY * this.parallax + "px", this.$parallaxElement[0].style.left = this._lastParaX * this.parallax + "px" } }(jQuery), function (t) { window.MSImageLayerElement = function () { MSLayerElement.call(this), this.needPreload = !0, this.__cssConfig = ["width", "height", "margin-top", "padding-top", "margin-bottom", "padding-left", "margin-right", "padding-right", "margin-left", "padding-bottom", "left", "right", "top", "bottom"], this.type = "image" }, MSImageLayerElement.extend(MSLayerElement); var i = MSImageLayerElement.prototype, e = MSLayerElement.prototype; i.create = function () { if (this.link) { var i = this.$element.parent(); i.append(this.link), this.link.append(this.$element), this.link.removeClass("ms-layer"), this.$element.addClass("ms-layer"), i = null } if (e.create.call(this), void 0 != this.$element.data("src")) this.img_src = this.$element.data("src"), this.$element.removeAttr("data-src"); else { var s = this; this.$element.on("load", function (t) { 0 === --s.controller.preloadCount && s.controller._onlayersReady() }).each(t.jqLoadFix) } t.browser.msie && this.$element.on("dragstart", function (t) { t.preventDefault() }) }, i.loadImage = function () { var t = this; this.$element.preloadImg(this.img_src, function (i) { 0 === --t.controller.preloadCount && t.controller._onlayersReady() }) } }(jQuery), function (t) { window.MSVideoLayerElement = function () { MSLayerElement.call(this), this.__cssConfig.push("height"), this.type = "video" }, MSVideoLayerElement.extend(MSLayerElement); var i = MSVideoLayerElement.prototype, e = MSLayerElement.prototype; i.__playVideo = function () { this.img && CTween.fadeOut(this.img, 500, 2), CTween.fadeOut(this.video_btn, 500, 2), this.video_frame.attr("src", "about:blank").css("display", "block"), -1 == this.video_url.indexOf("?") && (this.video_url += "?"), this.video_frame.attr("src", this.video_url + "&autoplay=1") }, i.start = function () { e.start.call(this), this.$element.data("autoplay") && this.__playVideo() }, i.reset = function () { e.reset.call(this), (this.needPreload || this.$element.data("btn")) && (this.video_btn.css("opacity", 1).css("display", "block"), this.video_frame.attr("src", "about:blank").css("display", "none")), this.needPreload ? this.img.css("opacity", 1).css("display", "block") : this.video_frame.attr("src", this.video_url) }, i.create = function () { e.create.call(this), this.video_frame = this.$element.find("iframe").css({ width: "100%", height: "100%" }), this.video_url = this.video_frame.attr("src"); var i = 0 != this.$element.has("img").length; if (i || this.$element.data("btn")) { this.video_frame.attr("src", "about:blank").css("display", "none"); s = this; if (this.video_btn = t("<div></div>").appendTo(this.$element).addClass("ms-video-btn").click(function () { s.__playVideo() }), i) { if (this.needPreload = !0, this.img = this.$element.find("img:first").addClass("ms-video-img"), void 0 !== this.img.data("src")) this.img_src = this.img.data("src"), this.img.removeAttr("data-src"); else { var s = this; this.img.attr("src", this.img_src).on("load", function (t) { 0 === --s.controller.preloadCount && s.controller._onlayersReady() }).each(t.jqLoadFix) } t.browser.msie && this.img.on("dragstart", function (t) { t.preventDefault() }) } } }, i.loadImage = function () { var t = this; this.img.preloadImg(this.img_src, function (i) { 0 === --t.controller.preloadCount && t.controller._onlayersReady() }) } }(jQuery), function (t) { "use strict"; window.MSHotspotLayer = function () { MSLayerElement.call(this), this.__cssConfig = ["margin-top", "padding-top", "margin-bottom", "padding-left", "margin-right", "padding-right", "margin-left", "padding-bottom", "left", "right", "top", "bottom"], this.ease = "Expo", this.hide_start = !0, this.type = "hotspot" }, MSHotspotLayer.extend(MSLayerElement); var i = MSHotspotLayer.prototype, e = MSLayerElement.prototype; i._showTT = function () { this.show_cl && (clearTimeout(this.hto), this._tween && this._tween.stop(!0), this.hide_start && (this.align = this._orgAlign, this._locateTT(), this.tt.css({ display: "block" }), this._tween = CTween.animate(this.tt, 900, this.to, { ease: "easeOut" + this.ease }), this.hide_start = !1)) }, i._hideTT = function () { if (this.show_cl) { this._tween && this._tween.stop(!0); var t = this; clearTimeout(this.hto), this.hto = setTimeout(function () { t.hide_start = !0, t._tween = CTween.animate(t.tt, 900, t.from, { ease: "easeOut" + t.ease, complete: function () { t.tt.css("display", "none") } }) }, 200) } }, i._updateClassName = function (t) { this._lastClass && this.tt.removeClass(this._lastClass), this.tt.addClass(t), this._lastClass = t }, i._alignPolicy = function () { this.tt.outerHeight(!1); var t = Math.max(this.tt.outerWidth(!1), parseInt(this.tt.css("max-width"))), i = window.innerWidth; window.innerHeight; switch (this.align) { case "top": if (this.base_t < 0) return "bottom"; break; case "right": if (this.base_l + t > i || this.base_t < 0) return "bottom"; break; case "left": if (this.base_l < 0 || this.base_t < 0) return "bottom" }return null }, i._locateTT = function () { var t = this.$element.offset(), i = this.slide.slider.$element.offset(); this.pos_x = t.left - i.left - this.slide.slider.$element.scrollLeft(), this.pos_y = t.top - i.top - this.slide.slider.$element.scrollTop(), this.from = { opacity: 0 }, this.to = { opacity: 1 }, this._updateClassName("ms-tooltip-" + this.align), this.tt_arrow.css("margin-left", ""); switch (this.align) { case "top": e = Math.min(this.tt.outerWidth(!1), parseInt(this.tt.css("max-width"))); this.base_t = this.pos_y - this.tt.outerHeight(!1) - 15 - 15, this.base_l = this.pos_x - e / 2, this.base_l + e > window.innerWidth && (this.tt_arrow.css("margin-left", -7.5 + this.base_l + e - window.innerWidth + "px"), this.base_l = window.innerWidth - e), this.base_l < 0 && (this.base_l = 0, this.tt_arrow.css("margin-left", -7.5 + this.pos_x - this.tt.outerWidth(!1) / 2 + "px")), window._css3d ? (this.from[window._jcsspfx + "Transform"] = "translateY(-50px)", this.to[window._jcsspfx + "Transform"] = "") : (this.from.top = this.base_t - 50 + "px", this.to.top = this.base_t + "px"); break; case "bottom": var e = Math.min(this.tt.outerWidth(!1), parseInt(this.tt.css("max-width"))); this.base_t = this.pos_y + 15 + 15, this.base_l = this.pos_x - e / 2, this.base_l + e > window.innerWidth && (this.tt_arrow.css("margin-left", -7.5 + this.base_l + e - window.innerWidth + "px"), this.base_l = window.innerWidth - e), this.base_l < 0 && (this.base_l = 0, this.tt_arrow.css("margin-left", -7.5 + this.pos_x - this.tt.outerWidth(!1) / 2 + "px")), window._css3d ? (this.from[window._jcsspfx + "Transform"] = "translateY(50px)", this.to[window._jcsspfx + "Transform"] = "") : (this.from.top = this.base_t + 50 + "px", this.to.top = this.base_t + "px"); break; case "right": this.base_l = this.pos_x + 15 + 15, this.base_t = this.pos_y - this.tt.outerHeight(!1) / 2, window._css3d ? (this.from[window._jcsspfx + "Transform"] = "translateX(50px)", this.to[window._jcsspfx + "Transform"] = "") : (this.from.left = this.base_l + 50 + "px", this.to.left = this.base_l + "px"); break; case "left": this.base_l = this.pos_x - 15 - this.tt.outerWidth(!1) - 15, this.base_t = this.pos_y - this.tt.outerHeight(!1) / 2, window._css3d ? (this.from[window._jcsspfx + "Transform"] = "translateX(-50px)", this.to[window._jcsspfx + "Transform"] = "") : (this.from.left = this.base_l - 50 + "px", this.to.left = this.base_l + "px") }var s = this._alignPolicy(); if (null !== s) return this.align = s, void this._locateTT(); this.tt.css("top", parseInt(this.base_t) + "px").css("left", parseInt(this.base_l) + "px"), this.tt.css(this.from) }, i.start = function () { e.start.call(this), this.tt.appendTo(this.slide.slider.$element), this.tt.css("display", "none") }, i.reset = function () { e.reset.call(this), this.tt.detach() }, i.create = function () { var i = this; this._orgAlign = this.align = void 0 !== this.$element.data("align") ? this.$element.data("align") : "top", this.data = this.$element.html(), this.$element.html("").on("mouseenter", function () { i._showTT() }).on("mouseleave", function () { i._hideTT() }), this.point = t('<div><div class="ms-point-center"></div><div class="ms-point-border"></div></div>').addClass("ms-tooltip-point").appendTo(this.$element); var s = this.$element.data("link"), n = this.$element.data("target"); s && this.point.on("click", function () { window.open(s, n || "_self") }), this.tt = t("<div></div>").addClass("ms-tooltip").css("display", "hidden").css("opacity", 0), void 0 !== this.$element.data("width") && this.tt.css("width", this.$element.data("width")).css("max-width", this.$element.data("width")), this.tt_arrow = t("<div></div>").addClass("ms-tooltip-arrow").appendTo(this.tt), this._updateClassName("ms-tooltip-" + this.align), this.ttcont = t("<div></div>").addClass("ms-tooltip-cont").html(this.data).appendTo(this.tt), !0 === this.$element.data("stay-hover") && this.tt.on("mouseenter", function () { i.hide_start || (clearTimeout(i.hto), i._tween.stop(!0), i._showTT()) }).on("mouseleave", function () { i._hideTT() }), e.create.call(this) } }(jQuery), function (t) { window.MSButtonLayer = function () { MSLayerElement.call(this), this.type = "button" }, MSButtonLayer.extend(MSLayerElement); var i = MSButtonLayer.prototype, e = MSLayerElement.prototype, s = ["top", "left", "bottom", "right"]; i.create = function () { e.create.call(this), this.$element.wrap('<div class="ms-btn-container"></div>').css("position", "relative"), this.$container = this.$element.parent() }, i.locate = function () { e.locate.call(this); for (var t, i, n = 0; n < 4; n++)(t = s[n]) in this.baseStyle && (i = this.$element.css(t), this.$element.css(t, ""), this.$container.css(t, i)); this.$container.width(this.$element.outerWidth(!0)).height(this.$element.outerHeight(!0)) } }(), window.MSSliderEvent = function (t) { this.type = t }, MSSliderEvent.CHANGE_START = "ms_changestart", MSSliderEvent.CHANGE_END = "ms_changeend", MSSliderEvent.WAITING = "ms_waiting", MSSliderEvent.AUTOPLAY_CHANGE = "ms_autoplaychange", MSSliderEvent.VIDEO_PLAY = "ms_videoPlay", MSSliderEvent.VIDEO_CLOSE = "ms_videoclose", MSSliderEvent.INIT = "ms_init", MSSliderEvent.HARD_UPDATE = "ms_hard_update", MSSliderEvent.RESIZE = "ms_resize", MSSliderEvent.RESERVED_SPACE_CHANGE = "ms_rsc", MSSliderEvent.DESTROY = "ms_destroy", function (t, i, e) { "use strict"; t.MSSlide = function () { this.$element = null, this.$loading = e("<div></div>").addClass("ms-slide-loading"), this.view = null, this.index = -1, this.__width = 0, this.__height = 0, this.fillMode = "fill", this.selected = !1, this.pselected = !1, this.autoAppend = !0, this.isSleeping = !0, this.moz = e.browser.mozilla }; var s = MSSlide.prototype; s.onSwipeStart = function () { this.link && (this.linkdis = !0), this.video && (this.videodis = !0) }, s.onSwipeMove = function (t) { var i = Math.max(Math.abs(t.data.distanceX), Math.abs(t.data.distanceY)); this.swipeMoved = i > 4 }, s.onSwipeCancel = function (t) { this.swipeMoved ? this.swipeMoved = !1 : (this.link && (this.linkdis = !1), this.video && (this.videodis = !1)) }, s.setupLayerController = function () { this.hasLayers = !0, this.layerController = new MSLayerController(this) }, s.assetsLoaded = function () { this.ready = !0, this.slider.api._startTimer(), (this.selected || this.pselected && this.slider.options.instantStartLayers) && (this.hasLayers && this.layerController.showLayers(), this.vinit && (this.bgvideo.play(), this.autoPauseBgVid || (this.bgvideo.currentTime = 0))), this.isSleeping || this.setupBG(), CTween.fadeOut(this.$loading, 300, !0), (0 === this.slider.options.preload || "all" === this.slider.options.preload) && this.index < this.view.slideList.length - 1 ? this.view.slideList[this.index + 1].loadImages() : "all" === this.slider.options.preload && this.index === this.view.slideList.length - 1 && this.slider._removeLoading() }, s.setBG = function (t) { this.hasBG = !0; var i = this; this.$imgcont = e("<div></div>").addClass("ms-slide-bgcont"), this.$element.append(this.$loading).append(this.$imgcont), this.$bg_img = e(t).css("visibility", "hidden"), this.$imgcont.append(this.$bg_img), this.bgAligner = new MSAligner(i.fillMode, i.$imgcont, i.$bg_img), this.bgAligner.widthOnly = this.slider.options.autoHeight, i.slider.options.autoHeight && (i.pselected || i.selected) && i.slider.setHeight(i.slider.options.height), void 0 !== this.$bg_img.data("src") ? (this.bg_src = this.$bg_img.data("src"), this.$bg_img.removeAttr("data-src")) : this.$bg_img.one("load", function (t) { i._onBGLoad(t) }).each(e.jqLoadFix) }, s.setupBG = function () { !this.initBG && this.bgLoaded && (this.initBG = !0, this.$bg_img.css("visibility", ""), this.bgWidth = this.bgNatrualWidth || this.$bg_img.width(), this.bgHeight = this.bgNatrualHeight || this.$bg_img.height(), CTween.fadeIn(this.$imgcont, 300), this.slider.options.autoHeight && this.$imgcont.height(this.bgHeight * this.ratio), this.bgAligner.init(this.bgWidth, this.bgHeight), this.setSize(this.__width, this.__height), this.slider.options.autoHeight && (this.pselected || this.selected) && this.slider.setHeight(this.getHeight())) }, s.loadImages = function () { if (!this.ls) { if (this.ls = !0, this.bgvideo && this.bgvideo.load(), this.hasBG && this.bg_src) { var t = this; this.$bg_img.preloadImg(this.bg_src, function (i) { t._onBGLoad(i) }) } this.hasLayers && this.layerController.loadLayers(this._onLayersLoad), this.hasBG || this.hasLayers || this.assetsLoaded() } }, s._onLayersLoad = function () { this.layersLoaded = !0, this.hasBG && !this.bgLoaded || this.assetsLoaded() }, s._onBGLoad = function (t) { this.bgNatrualWidth = t.width, this.bgNatrualHeight = t.height, this.bgLoaded = !0, e.browser.msie && this.$bg_img.on("dragstart", function (t) { t.preventDefault() }), this.hasLayers && !this.layerController.ready || this.assetsLoaded() }, s.setBGVideo = function (i) { if (i[0].play) if (!t._mobile || this.slider.options.mobileBGVideo) { this.bgvideo = i[0]; var s = this; i.addClass("ms-slide-bgvideo"), !1 !== i.data("loop") && this.bgvideo.addEventListener("ended", function () { s.bgvideo.play() }), !1 !== i.data("mute") && (this.bgvideo.muted = !0), !0 === i.data("autopause") && (this.autoPauseBgVid = !0), this.bgvideo_fillmode = i.data("fill-mode") || "fill", "none" !== this.bgvideo_fillmode && (this.bgVideoAligner = new MSAligner(this.bgvideo_fillmode, this.$element, i), this.bgvideo.addEventListener("loadedmetadata", function () { s.vinit || (s.vinit = !0, s.video_aspect = s.bgVideoAligner.baseHeight / s.bgVideoAligner.baseWidth, s.bgVideoAligner.init(s.bgvideo.videoWidth, s.bgvideo.videoHeight), s._alignBGVideo(), CTween.fadeIn(e(s.bgvideo), 200), s.selected && s.bgvideo.play()) })), i.css("opacity", 0), this.$bgvideocont = e("<div></div>").addClass("ms-slide-bgvideocont").append(i), this.hasBG ? this.$imgcont.before(this.$bgvideocont) : this.$bgvideocont.appendTo(this.$element) } else i.remove() }, s._alignBGVideo = function () { this.bgvideo_fillmode && "none" !== this.bgvideo_fillmode && this.bgVideoAligner.align() }, s.setSize = function (t, i, e) { this.__width = t, this.slider.options.autoHeight && (this.bgLoaded ? (this.ratio = this.__width / this.bgWidth, i = Math.floor(this.ratio * this.bgHeight), this.$imgcont.height(i)) : (this.ratio = t / this.slider.options.width, i = this.slider.options.height * this.ratio)), this.__height = i, this.$element.width(t).height(i), this.hasBG && this.bgLoaded && this.bgAligner.align(), this._alignBGVideo(), this.hasLayers && this.layerController.setSize(t, i, e) }, s.getHeight = function () { return this.hasBG && this.bgLoaded ? this.bgHeight * this.ratio : Math.max(this.$element[0].clientHeight, this.slider.options.height * this.ratio) }, s.__playVideo = function () { this.vplayed || this.videodis || (this.vplayed = !0, this.slider.api.paused || (this.slider.api.pause(), this.roc = !0), this.vcbtn.css("display", ""), CTween.fadeOut(this.vpbtn, 500, !1), CTween.fadeIn(this.vcbtn, 500), CTween.fadeIn(this.vframe, 500), this.vframe.css("display", "block").attr("src", this.video + "&autoplay=1"), this.view.$element.addClass("ms-def-cursor"), this.moz && this.view.$element.css("perspective", "none"), this.view.swipeControl && this.view.swipeControl.disable(), this.slider.slideController.dispatchEvent(new MSSliderEvent(MSSliderEvent.VIDEO_PLAY))) }, s.__closeVideo = function () { if (this.vplayed) { this.vplayed = !1, this.roc && this.slider.api.resume(); var t = this; CTween.fadeIn(this.vpbtn, 500), CTween.animate(this.vcbtn, 500, { opacity: 0 }, { complete: function () { t.vcbtn.css("display", "none") } }), CTween.animate(this.vframe, 500, { opacity: 0 }, { complete: function () { t.vframe.attr("src", "about:blank").css("display", "none") } }), this.moz && this.view.$element.css("perspective", ""), this.view.swipeControl && this.view.swipeControl.enable(), this.view.$element.removeClass("ms-def-cursor"), this.slider.slideController.dispatchEvent(new MSSliderEvent(MSSliderEvent.VIDEO_CLOSE)) } }, s.create = function () { var i = this; this.hasLayers && this.layerController.create(), this.link && this.link.addClass("ms-slide-link").html("").click(function (t) { i.linkdis && t.preventDefault() }), this.video && (-1 === this.video.indexOf("?") && (this.video += "?"), this.vframe = e("<iframe></iframe>").addClass("ms-slide-video").css({ width: "100%", height: "100%", display: "none" }).attr("src", "about:blank").attr("allowfullscreen", "true").appendTo(this.$element), this.vpbtn = e("<div></div>").addClass("ms-slide-vpbtn").click(function () { i.__playVideo() }).appendTo(this.$element), this.vcbtn = e("<div></div>").addClass("ms-slide-vcbtn").click(function () { i.__closeVideo() }).appendTo(this.$element).css("display", "none"), t._touch && this.vcbtn.removeClass("ms-slide-vcbtn").addClass("ms-slide-vcbtn-mobile").append('<div class="ms-vcbtn-txt">Close video</div>').appendTo(this.view.$element.parent())), !this.slider.options.autoHeight && this.hasBG && (this.$imgcont.css("height", "100%"), "center" !== this.fillMode && "stretch" !== this.fillMode || (this.fillMode = "fill")), this.slider.options.autoHeight && this.$element.addClass("ms-slide-auto-height"), this.sleep(!0) }, s.destroy = function () { this.hasLayers && (this.layerController.destroy(), this.layerController = null), this.$element.remove(), this.$element = null }, s.prepareToSelect = function () { this.pselected || this.selected || (this.pselected = !0, (this.link || this.video) && (this.view.addEventListener(MSViewEvents.SWIPE_START, this.onSwipeStart, this), this.view.addEventListener(MSViewEvents.SWIPE_MOVE, this.onSwipeMove, this), this.view.addEventListener(MSViewEvents.SWIPE_CANCEL, this.onSwipeCancel, this), this.linkdis = !1, this.swipeMoved = !1), this.loadImages(), this.hasLayers && this.layerController.prepareToShow(), this.ready && (this.bgvideo && this.bgvideo.play(), this.hasLayers && this.slider.options.instantStartLayers && this.layerController.showLayers()), this.moz && this.$element.css("margin-top", "")) }, s.select = function () { this.selected || (this.selected = !0, this.pselected = !1, this.$element.addClass("ms-sl-selected"), this.hasLayers && (this.slider.options.autoHeight && this.layerController.updateHeight(), this.slider.options.instantStartLayers || this.layerController.showLayers()), this.ready && this.bgvideo && this.bgvideo.play(), this.videoAutoPlay && (this.videodis = !1, this.vpbtn.trigger("click"))) }, s.unselect = function () { this.pselected = !1, this.moz && this.$element.css("margin-top", "0.1px"), (this.link || this.video) && (this.view.removeEventListener(MSViewEvents.SWIPE_START, this.onSwipeStart, this), this.view.removeEventListener(MSViewEvents.SWIPE_MOVE, this.onSwipeMove, this), this.view.removeEventListener(MSViewEvents.SWIPE_CANCEL, this.onSwipeCancel, this)), this.bgvideo && (this.bgvideo.pause(), !this.autoPauseBgVid && this.vinit && (this.bgvideo.currentTime = 0)), this.hasLayers && this.layerController.hideLayers(), this.selected && (this.selected = !1, this.$element.removeClass("ms-sl-selected"), this.video && this.vplayed && (this.__closeVideo(), this.roc = !1)) }, s.sleep = function (t) { this.isSleeping && !t || (this.isSleeping = !0, this.autoAppend && this.$element.detach(), this.hasLayers && this.layerController.onSlideSleep()) }, s.wakeup = function () { this.isSleeping && (this.isSleeping = !1, this.autoAppend && this.view.$slideCont.append(this.$element), this.moz && this.$element.css("margin-top", "0.1px"), this.setupBG(), this.hasBG && this.bgAligner.align(), this.hasLayers && this.layerController.onSlideWakeup()) } }(window, document, jQuery), function (t) { "use strict"; var i = {}; window.MSSlideController = function (t) { this._delayProgress = 0, this._timer = new averta.Timer(100), this._timer.onTimer = this.onTimer, this._timer.refrence = this, this.currentSlide = null, this.slider = t, this.so = t.options, averta.EventDispatcher.call(this) }, MSSlideController.registerView = function (t, e) { if (t in i) throw new Error(t + ", is already registered."); i[t] = e }, MSSlideController.SliderControlList = {}, MSSlideController.registerControl = function (t, i) { if (t in MSSlideController.SliderControlList) throw new Error(t + ", is already registered."); MSSlideController.SliderControlList[t] = i }; var e = MSSlideController.prototype; e.setupView = function () { n = this; this.resize_listener = function () { n.__resize() }; var e = { spacing: this.so.space, mouseSwipe: this.so.mouse, loop: this.so.loop, autoHeight: this.so.autoHeight, swipe: this.so.swipe, speed: this.so.speed, dir: this.so.dir, viewNum: this.so.inView, critMargin: this.so.critMargin }; this.so.viewOptions && t.extend(e, this.so.viewOptions), this.so.autoHeight && (this.so.heightLimit = !1); var s = i[this.slider.options.view] || MSBasicView; if (!s._3dreq || window._css3d && !t.browser.msie || (s = s._fallback || MSBasicView), this.view = new s(e), this.so.overPause) { var n = this; this.slider.$element.mouseenter(function () { n.is_over = !0, n._stopTimer() }).mouseleave(function () { n.is_over = !1, n._startTimer() }) } }, e.onChangeStart = function () { this.change_started = !0, this.currentSlide && this.currentSlide.unselect(), this.currentSlide = this.view.currentSlide, this.currentSlide.prepareToSelect(), this.so.endPause && this.currentSlide.index === this.slider.slides.length - 1 && (this.pause(), this.skipTimer()), this.so.autoHeight && this.slider.setHeight(this.currentSlide.getHeight()), this.so.deepLink && this.__updateWindowHash(), this.dispatchEvent(new MSSliderEvent(MSSliderEvent.CHANGE_START)) }, e.onChangeEnd = function () { if (this.change_started = !1, this._startTimer(), this.currentSlide.select(), this.so.preload > 1) { var t, i, e, s = this.so.preload - 1; for (i = 1; i <= s; ++i) { if ((t = this.view.index + i) >= this.view.slideList.length) { if (!this.so.loop) { i = s; continue } t -= this.view.slideList.length } (e = this.view.slideList[t]) && e.loadImages() } for (s > this.view.slideList.length / 2 && (s = Math.floor(this.view.slideList.length / 2)), i = 1; i <= s; ++i) { if ((t = this.view.index - i) < 0) { if (!this.so.loop) { i = s; continue } t = this.view.slideList.length + t } (e = this.view.slideList[t]) && e.loadImages() } } this.dispatchEvent(new MSSliderEvent(MSSliderEvent.CHANGE_END)) }, e.onSwipeStart = function () { this.skipTimer() }, e.skipTimer = function () { this._timer.reset(), this._delayProgress = 0, this.dispatchEvent(new MSSliderEvent(MSSliderEvent.WAITING)) }, e.onTimer = function (t) { if (this._timer.getTime() >= 1e3 * this.view.currentSlide.delay && (this.skipTimer(), this.view.next(), this.hideCalled = !1), this._delayProgress = this._timer.getTime() / (10 * this.view.currentSlide.delay), this.so.hideLayers && !this.hideCalled && 1e3 * this.view.currentSlide.delay - this._timer.getTime() <= 300) { var i = this.view.currentSlide; i.hasLayers && i.layerController.animHideLayers(), this.hideCalled = !0 } this.dispatchEvent(new MSSliderEvent(MSSliderEvent.WAITING)) }, e._stopTimer = function () { this._timer && this._timer.stop() }, e._startTimer = function () { this.paused || this.is_over || !this.currentSlide || !this.currentSlide.ready || this.change_started || this._timer.start() }, e.__appendSlides = function () { var t, i, e = 0, s = this.view.slideList.length - 1; for (e; e < s; ++e)(t = this.view.slideList[e]).detached || (t.$element.detach(), t.detached = !0); for (this.view.appendSlide(this.view.slideList[this.view.index]), s = 3, e = 1; e <= s; ++e) { if ((i = this.view.index + e) >= this.view.slideList.length) { if (!this.so.loop) { e = s; continue } i -= this.view.slideList.length } (t = this.view.slideList[i]).detached = !1, this.view.appendSlide(t) } for (s > this.view.slideList.length / 2 && (s = Math.floor(this.view.slideList.length / 2)), e = 1; e <= s; ++e) { if ((i = this.view.index - e) < 0) { if (!this.so.loop) { e = s; continue } i = this.view.slideList.length + i } (t = this.view.slideList[i]).detached = !1, this.view.appendSlide(t) } }, e.__resize = function (t) { this.created && (this.width = this.slider.$element[0].clientWidth || this.so.width, this.so.fullwidth || (this.width = Math.min(this.width, this.so.width)), this.so.fullheight ? (this.so.heightLimit = !1, this.so.autoHeight = !1, this.height = this.slider.$element[0].clientHeight) : this.height = this.width / this.slider.aspect, this.so.autoHeight ? (this.currentSlide.setSize(this.width, null, t), this.view.setSize(this.width, this.currentSlide.getHeight(), t)) : this.view.setSize(this.width, Math.max(this.so.minHeight, this.so.heightLimit ? Math.min(this.height, this.so.height) : this.height), t), this.slider.$controlsCont && this.so.centerControls && this.so.fullwidth && this.view.$element.css("left", Math.min(0, -(this.slider.$element[0].clientWidth - this.so.width) / 2) + "px"), this.dispatchEvent(new MSSliderEvent(MSSliderEvent.RESIZE))) }, e.__dispatchInit = function () { this.dispatchEvent(new MSSliderEvent(MSSliderEvent.INIT)) }, e.__updateWindowHash = function () { var t = window.location.hash, i = this.so.deepLink, e = this.so.deepLinkType, s = "path" === e ? "/" : "=", n = "path" === e ? "/" : "&", o = i + s + (this.view.index + 1), a = new RegExp(i + s + "[0-9]+", "g"); "" === t ? window.location.hash = n + o : a.test(t) ? window.location.hash = t.replace(a, o) : window.location.hash = t + n + o }, e.__curentSlideInHash = function () { var t = window.location.hash, i = this.so.deepLink, e = "path" === this.so.deepLinkType ? "/" : "=", s = new RegExp(i + e + "[0-9]+", "g"); if (s.test(t)) { var n = Number(t.match(s)[0].match(/[0-9]+/g).pop()); if (!isNaN(n)) return n - 1 } return -1 }, e.__onHashChanged = function () { var t = this.__curentSlideInHash(); -1 !== t && this.gotoSlide(t) }, e.__findLayerById = function (t) { if (!this.currentSlide) return null; var i; return this.currentSlide.layerController && (i = this.currentSlide.layerController.getLayerById(t)), !i && this.slider.overlayLayers ? this.slider.overlayLayers.layerController.getLayerById(t) : i }, e.setup = function () { this.created = !0, this.paused = !this.so.autoplay, this.view.addEventListener(MSViewEvents.CHANGE_START, this.onChangeStart, this), this.view.addEventListener(MSViewEvents.CHANGE_END, this.onChangeEnd, this), this.view.addEventListener(MSViewEvents.SWIPE_START, this.onSwipeStart, this), this.currentSlide = this.view.slideList[this.so.start - 1], this.__resize(); var i = this.__curentSlideInHash(), e = -1 !== i ? i : this.so.start - 1; if (this.view.create(e), 0 === this.so.preload && this.view.slideList[0].loadImages(), this.scroller = this.view.controller, this.so.wheel) { var s = this, n = (new Date).getTime(); this.wheellistener = function (i) { var e = window.event || i.orginalEvent || i; e.preventDefault(); var o = (new Date).getTime(); if (!(o - n < 400)) { n = o; var a = Math.abs(e.detail || e.wheelDelta); t.browser.mozilla && (a *= 100); return e.detail < 0 || e.wheelDelta > 0 ? a >= 15 && s.previous(!0) : a >= 15 && s.next(!0), !1 } }, t.browser.mozilla ? this.slider.$element[0].addEventListener("DOMMouseScroll", this.wheellistener) : this.slider.$element.bind("mousewheel", this.wheellistener) } 0 === this.slider.$element[0].clientWidth && (this.slider.init_safemode = !0), this.__resize(); s = this; this.so.deepLink && t(window).on("hashchange", function () { s.__onHashChanged() }) }, e.index = function () { return this.view.index }, e.count = function () { return this.view.slidesCount }, e.next = function (t) { this.skipTimer(), this.view.next(t) }, e.previous = function (t) { this.skipTimer(), this.view.previous(t) }, e.gotoSlide = function (t) { t = Math.min(t, this.count() - 1), this.skipTimer(), this.view.gotoSlide(t) }, e.destroy = function (t) { this.dispatchEvent(new MSSliderEvent(MSSliderEvent.DESTROY)), this.slider.destroy(t) }, e._destroy = function () { this._timer.reset(), this._timer = null, t(window).unbind("resize", this.resize_listener), this.view.destroy(), this.view = null, this.so.wheel && (t.browser.mozilla ? this.slider.$element[0].removeEventListener("DOMMouseScroll", this.wheellistener) : this.slider.$element.unbind("mousewheel", this.wheellistener), this.wheellistener = null), this.so = null }, e.runAction = function (t) { var i = []; if (-1 !== t.indexOf("(")) { var e = t.slice(0, t.indexOf("(")); i = t.slice(t.indexOf("(") + 1, -1).replace(/\"|\'|\s/g, "").split(","), t = e } t in this ? this[t].apply(this, i) : console && console.log('Master Slider Error: Action "' + t + '" not found.') }, e.update = function (t) { this.slider.init_safemode && t && (this.slider.init_safemode = !1), this.__resize(t), t && this.dispatchEvent(new MSSliderEvent(MSSliderEvent.HARD_UPDATE)) }, e.locate = function () { this.__resize() }, e.resume = function () { this.paused && (this.paused = !1, this._startTimer()) }, e.pause = function () { this.paused || (this.paused = !0, this._stopTimer()) }, e.currentTime = function () { return this._delayProgress }, e.showLayer = function (t, i) { var e = this.__findLayerById(t); e && (i ? (clearTimeout(e.actionTimeout), e.actionTimeout = setTimeout(this.showLayer, i, t, 0)) : e.start()) }, e.hideLayer = function (t, i) { var e = this.__findLayerById(t); e && (i ? (clearTimeout(e.actionTimeout), e.actionTimeout = setTimeout(this.hideLayer, i, t, 0)) : e.hide()) }, e.toggleLayer = function (t, i) { var e = this.__findLayerById(t); e && (i ? (clearTimeout(e.actionTimeout), e.actionTimeout = setTimeout(this.toggleLayer, i, t, 0)) : e.isShowing ? e.hide() : e.start()) }, e.showLayers = function (i, e) { var s = this; t.each(i.replace(/\s+/g, "").split("|"), function (t, i) { s.showLayer(i, e) }) }, e.hideLayers = function (i, e) { var s = this; t.each(i.replace(/\s+/g, "").split("|"), function (t, i) { s.hideLayer(i, e) }) }, e.toggleLayers = function (i, e) { var s = this; t.each(i.replace(/\s+/g, "").split("|"), function (t, i) { s.toggleLayer(i, e) }) }, averta.EventDispatcher.extend(e) }(jQuery), function (t) { "use strict"; var i = { image: MSImageLayerElement, text: MSLayerElement, video: MSVideoLayerElement, hotspot: MSHotspotLayer, button: MSButtonLayer }; window.Multislider = function () { this.options = { forceInit: !0, autoplay: !1, loop: !1, mouse: !0, swipe: !0, grabCursor: !0, space: 0, fillMode: "fill", start: 1, view: "basic", width: 300, height: 150, inView: 15, critMargin: 1, mobileBGVideo: !1, heightLimit: !0, smoothHeight: !0, autoHeight: !1, minHeight: -1, fullwidth: !1, fullheight: !1, autofill: !1, layersMode: "center", hideLayers: !1, endPause: !1, centerControls: !0, overPause: !0, shuffle: !1, speed: 17, dir: "h", preload: 0, wheel: !1, layout: "boxed", autofillTarget: null, fullscreenMargin: 0, instantStartLayers: !1, parallaxMode: "mouse", rtl: !1, deepLink: null, deepLinkType: "path", disablePlugins: [] }, this.slides = [], this.activePlugins = [], this.$element = null, this.lastMargin = 0, this.leftSpace = 0, this.topSpace = 0, this.rightSpace = 0, this.bottomSpace = 0, this._holdOn = 0; var i = this; this.resize_listener = function () { i._resize() }, t(window).bind("resize", this.resize_listener) }, Multislider.author = "Averta Ltd. (www.averta.net)", Multislider.version = "2.51.2", Multislider.releaseDate = "Jun 2017", Multislider._plugins = []; var e = Multislider; e.registerPlugin = function (t) { -1 === e._plugins.indexOf(t) && e._plugins.push(t) }; var s = Multislider.prototype; s.__setupSlides = function () { var i, e = this, s = 0; this.$element.children(".ms-slide").each(function (n) { var o = t(this); (i = new MSSlide).$element = o, i.slider = e, i.delay = void 0 !== o.data("delay") ? o.data("delay") : 3, i.fillMode = void 0 !== o.data("fill-mode") ? o.data("fill-mode") : e.options.fillMode, i.index = s++ , i.id = o.data("id"); var a = o.children("img:not(.ms-layer)"); a.length > 0 && i.setBG(a[0]); var r = o.children("video"); if (r.length > 0 && i.setBGVideo(r), e.controls) for (var h = 0, l = e.controls.length; h < l; ++h)e.controls[h].slideAction(i); o.children("a").each(function (e) { var s = t(this); "video" === this.getAttribute("data-type") ? (i.video = this.getAttribute("href"), i.videoAutoPlay = s.data("autoplay"), s.remove()) : s.hasClass("ms-layer") || (i.link = t(this)) }); e.__createSlideLayers(i, o.find(".ms-layer")), e.slides.push(i), e.slideController.view.addSlide(i) }) }, s._setupOverlayLayers = function () { var t = this, i = this.$element.children(".ms-overlay-layers").eq(0); if (i.length) { var e = new MSOverlayLayers(this); e.$element = i, t.__createSlideLayers(e, i.find(".ms-layer")), this.view.$element.prepend(i), this.overlayLayers = e, e.create() } }, s.__createSlideLayers = function (e, s) { 0 != s.length && (e.setupLayerController(), s.each(function (s, n) { var o, a = t(this); "A" === n.nodeName && "image" === a.find(">img").data("type") && (a = (o = t(this)).find("img")); var r = new (i[a.data("type") || "text"]); r.$element = a, r.link = o, r.id = r.$element.data("id"), r.waitForAction = r.$element.data("wait"), r.masked = r.$element.data("masked"), r.maskWidth = r.$element.data("mask-width"), r.maskHeight = r.$element.data("mask-height"); var h = {}, l = {}; void 0 !== a.data("effect") && (h.name = a.data("effect")), void 0 !== a.data("ease") && (h.ease = a.data("ease")), void 0 !== a.data("duration") && (h.duration = a.data("duration")), void 0 !== a.data("delay") && (h.delay = a.data("delay")), a.data("hide-effect") && (l.name = a.data("hide-effect")), a.data("hide-ease") && (l.ease = a.data("hide-ease")), void 0 !== a.data("hide-duration") && (l.duration = a.data("hide-duration")), void 0 !== a.data("hide-time") && (l.time = a.data("hide-time")), r.setStartAnim(h), r.setEndAnim(l), e.layerController.addLayer(r) })) }, s._removeLoading = function () { t(window).unbind("resize", this.resize_listener), this.$element.removeClass("before-init").css("visibility", "visible").css("height", "").css("opacity", 0), CTween.fadeIn(this.$element), this.$loading.remove(), this.slideController && this.slideController.__resize() }, s._resize = function (t) { if (this.$loading) { var i = this.$loading[0].clientWidth / this.aspect; i = this.options.heightLimit ? Math.min(i, this.options.height) : i, this.$loading.height(i), this.$element.height(i) } }, s._shuffleSlides = function () { for (var t, i = this.$element.children(".ms-slide"), e = 0, s = i.length; e < s; ++e)e != (t = Math.floor(Math.random() * (s - 1))) && (this.$element[0].insertBefore(i[e], i[t]), i = this.$element.children(".ms-slide")) }, s._setupSliderLayout = function () { this._updateSideMargins(), this.lastMargin = this.leftSpace; var i = this.options.layout; "boxed" !== i && "partialview" !== i && (this.options.fullwidth = !0), "fullscreen" !== i && "autofill" !== i || (this.options.fullheight = !0, "autofill" === i && (this.$autofillTarget = t(this.options.autofillTarget), 0 === this.$autofillTarget.length && (this.$autofillTarget = this.$element.parent()))), "partialview" === i && this.$element.addClass("ms-layout-partialview"), "fullscreen" !== i && "fullwidth" !== i && "autofill" !== i || (t(window).bind("resize", { that: this }, this._updateLayout), this._updateLayout()), t(window).bind("resize", this.slideController.resize_listener) }, s._updateLayout = function (i) { var e = i ? i.data.that : this, s = e.options.layout, n = e.$element, o = t(window); if ("fullscreen" === s) document.body.style.overflow = "hidden", n.height(o.height() - e.options.fullscreenMargin - e.topSpace - e.bottomSpace), document.body.style.overflow = ""; else if ("autofill" === s) return void n.height(e.$autofillTarget.height() - e.options.fullscreenMargin - e.topSpace - e.bottomSpace).width(e.$autofillTarget.width() - e.leftSpace - e.rightSpace); n.width(o.width() - e.leftSpace - e.rightSpace); var a = -n.offset().left + e.leftSpace + e.lastMargin; n.css("margin-left", a), e.lastMargin = a }, s._init = function () { if (!(this._holdOn > 0) && this._docReady) { if (this.initialized = !0, "all" !== this.options.preload && this._removeLoading(), this.options.shuffle && this._shuffleSlides(), MSLayerEffects.setup(), this.slideController.setupView(), this.view = this.slideController.view, this.$controlsCont = t("<div></div>").addClass("ms-inner-controls-cont"), this.options.centerControls && this.$controlsCont.css("max-width", this.options.width + "px"), this.$controlsCont.prepend(this.view.$element), this.$msContainer = t("<div></div>").addClass("ms-container").prependTo(this.$element).append(this.$controlsCont), this.controls) for (var i = 0, e = this.controls.length; i < e; ++i)this.controls[i].setup(); if (this._setupSliderLayout(), this.__setupSlides(), this.slideController.setup(), this._setupOverlayLayers(), this.controls) for (i = 0, e = this.controls.length; i < e; ++i)this.controls[i].create(); if (this.options.autoHeight && this.slideController.view.$element.height(this.slideController.currentSlide.getHeight()), this.options.swipe && !window._touch && this.options.grabCursor && this.options.mouse) { var s = this.view.$element; s.mousedown(function () { s.removeClass("ms-grab-cursor"), s.addClass("ms-grabbing-cursor"), t.browser.msie && window.ms_grabbing_curosr && (s[0].style.cursor = "url(" + window.ms_grabbing_curosr + "), move") }).addClass("ms-grab-cursor"), t(document).mouseup(function () { s.removeClass("ms-grabbing-cursor"), s.addClass("ms-grab-cursor"), t.browser.msie && window.ms_grab_curosr && (s[0].style.cursor = "url(" + window.ms_grab_curosr + "), move") }) } this.slideController.__dispatchInit() } }, s.setHeight = function (t) { this.options.smoothHeight ? (this.htween && (this.htween.reset ? this.htween.reset() : this.htween.stop(!0)), this.htween = CTween.animate(this.slideController.view.$element, 500, { height: t }, { ease: "easeOutQuart" })) : this.slideController.view.$element.height(t) }, s.reserveSpace = function (t, i) { var e = t + "Space", s = this[e]; return this[e] += i, this._updateSideMargins(), s }, s._updateSideMargins = function () { this.$element.css("margin", this.topSpace + "px " + this.rightSpace + "px " + this.bottomSpace + "px " + this.leftSpace + "px") }, s._realignControls = function () { this.rightSpace = this.leftSpace = this.topSpace = this.bottomSpace = 0, this._updateSideMargins(), this.api.dispatchEvent(new MSSliderEvent(MSSliderEvent.RESERVED_SPACE_CHANGE)) }, s.control = function (t, i) { if (t in MSSlideController.SliderControlList) { this.controls || (this.controls = []); var e = new MSSlideController.SliderControlList[t](i); return e.slider = this, this.controls.push(e), this } }, s.holdOn = function () { this._holdOn++ }, s.release = function () { this._holdOn-- , this._init() }, s.setup = function (i, s) { if (this.$element = "string" == typeof i ? t("#" + i) : i.eq(0), this.setupMarkup = this.$element.html(), 0 !== this.$element.length) { this.$element.addClass("edsms__multiSlider").addClass("before-init"), t.browser.msie ? this.$element.addClass("ms-ie").addClass("ms-ie" + t.browser.version.slice(0, t.browser.version.indexOf("."))) : t.browser.webkit ? this.$element.addClass("ms-wk") : t.browser.mozilla && this.$element.addClass("ms-moz"), navigator.userAgent.toLowerCase().indexOf("android") > -1 && this.$element.addClass("ms-android"); var n = this; t.extend(this.options, s), this.aspect = this.options.width / this.options.height, this.$loading = t("<div></div>").addClass("ms-loading-container").insertBefore(this.$element).append(t("<div></div>").addClass("ms-loading")), this.$loading.parent().css("position", "relative"), this.options.autofill && (this.options.fullwidth = !0, this.options.fullheight = !0), this.options.fullheight && this.$element.addClass("ms-fullheight"), this._resize(), this.slideController = new MSSlideController(this), this.api = this.slideController; for (var o = 0, a = e._plugins.length; o !== a; o++) { var r = e._plugins[o]; -1 === this.options.disablePlugins.indexOf(r.name) && this.activePlugins.push(new r(this)) } return this.options.forceInit && Multislider.addJQReadyErrorCheck(this), t(document).ready(function () { n.initialized || (n._docReady = !0, n._init()) }), this } }, s.destroy = function (i) { for (var e = 0, s = this.activePlugins.length; e !== s; e++)this.activePlugins[e].destroy(); if (this.controls) for (e = 0, s = this.controls.length; e !== s; e++)this.controls[e].destroy(); this.slideController && this.slideController._destroy(), this.$loading && this.$loading.remove(), i ? this.$element.html(this.setupMarkup).css("visibility", "hidden") : this.$element.remove(); var n = this.options.layout; "fullscreen" !== n && "fullwidth" !== n || t(window).unbind("resize", this._updateLayout), this.view = null, this.slides = null, this.options = null, this.slideController = null, this.api = null, this.resize_listener = null, this.activePlugins = null } }(jQuery), function (t, i, e, s) { function n(i, e) { this.element = i, this.$element = t(i), this.settings = t.extend({}, a, e), this._defaults = a, this._name = o, this.init() } var o = "masterslider", a = { controls: {} }; t.extend(n.prototype, { init: function () { var t = this; this._slider = new Multislider; for (var i in this.settings.controls) this._slider.control(i, this.settings.controls[i]); this._slider.setup(this.$element, this.settings); var e = this._slider.api.dispatchEvent; this._slider.api.dispatchEvent = function (i) { t.$element.trigger(i.type), e.call(this, i) } }, api: function () { return this._slider.api }, slider: function () { return this._slider } }), t.fn[o] = function (i) { var e = arguments, s = "plugin_" + o; if (void 0 === i || "object" == typeof i) return this.each(function () { t.data(this, s) || t.data(this, s, new n(this, i)) }); if ("string" == typeof i && "_" !== i[0] && "init" !== i) { var a; return this.each(function () { var o = t.data(this, s); o instanceof n && "function" == typeof o[i] && (a = o[i].apply(o, Array.prototype.slice.call(e, 1))), o instanceof n && "function" == typeof o._slider.api[i] && (a = o._slider.api[i].apply(o._slider.api, Array.prototype.slice.call(e, 1))), "destroy" === i && t.data(this, s, null) }), void 0 !== a ? a : this } } }(jQuery, window, document), function (t, i, e, s) { "use strict"; var n = []; Multislider.addJQReadyErrorCheck = function (t) { n.push(t) }; var o = t.fn.ready, a = i.onerror; t.fn.ready = function () { return i.onerror = function () { if (0 !== n.length) for (var t = 0, i = n.length; t !== i; t++) { var e = n[t]; e.initialized || (e._docReady = !0, e._init()) } return !!a && a.apply(this, arguments) }, o.apply(this, arguments) } }(jQuery, window, document), window.MSViewEvents = function (t, i) { this.type = t, this.data = i }, MSViewEvents.SWIPE_START = "swipeStart", MSViewEvents.SWIPE_END = "swipeEnd", MSViewEvents.SWIPE_MOVE = "swipeMove", MSViewEvents.SWIPE_CANCEL = "swipeCancel", MSViewEvents.SCROLL = "scroll", MSViewEvents.CHANGE_START = "slideChangeStart", MSViewEvents.CHANGE_END = "slideChangeEnd", function (t) { "use strict"; window.MSBasicView = function (i) { this.options = { loop: !1, dir: "h", autoHeight: !1, spacing: 5, mouseSwipe: !0, swipe: !0, speed: 17, minSlideSpeed: 2, viewNum: 20, critMargin: 1 }, t.extend(this.options, i), this.dir = this.options.dir, this.loop = this.options.loop, this.spacing = this.options.spacing, this.__width = 0, this.__height = 0, this.__cssProb = "h" === this.dir ? "left" : "top", this.__offset = "h" === this.dir ? "offsetLeft" : "offsetTop", this.__dimension = "h" === this.dir ? "__width" : "__height", this.__translate_end = window._css3d ? " translateZ(0px)" : "", this.$slideCont = t("<div></div>").addClass("ms-slide-container"), this.$element = t("<div></div>").addClass("ms-view").addClass("ms-basic-view").append(this.$slideCont), this.currentSlide = null, this.index = -1, this.slidesCount = 0, this.slides = [], this.slideList = [], this.viewSlidesList = [], this.css3 = window._cssanim, this.start_buffer = 0, this.firstslide_snap = 0, this.slideChanged = !1, this.controller = new Controller(0, 0, { snapping: !0, snapsize: 100, paging: !0, snappingMinSpeed: this.options.minSlideSpeed, friction: (100 - .5 * this.options.speed) / 100, endless: this.loop }), this.controller.renderCallback("h" === this.dir ? this._horizUpdate : this._vertiUpdate, this), this.controller.snappingCallback(this.__snapUpdate, this), this.controller.snapCompleteCallback(this.__snapCompelet, this), averta.EventDispatcher.call(this) }; var i = MSBasicView.prototype; i.__snapCompelet = function (t, i) { this.slideChanged && (this.slideChanged = !1, this.__locateSlides(), this.start_buffer = 0, this.dispatchEvent(new MSViewEvents(MSViewEvents.CHANGE_END))) }, i.__snapUpdate = function (i, e, s) { if (this.loop) { var n = this.index + s; this.updateLoop(n), n >= this.slidesCount && (n -= this.slidesCount), n < 0 && (n = this.slidesCount + n), this.index = n } else { if (e < 0 || e >= this.slidesCount) return; this.index = e } this._checkCritMargins(), t.browser.mozilla && (this.slideList[this.index].$element[0].style.marginTop = "0.1px", this.currentSlide && (this.currentSlide.$element[0].style.marginTop = "")); var o = this.slideList[this.index]; o !== this.currentSlide && (this.currentSlide = o, this.autoUpdateZIndex && this.__updateSlidesZindex(), this.slideChanged = !0, this.dispatchEvent(new MSViewEvents(MSViewEvents.CHANGE_START))) }, i._checkCritMargins = function () { if (!this.normalMode) { var t = Math.floor(this.options.viewNum / 2), i = this.viewSlidesList.indexOf(this.slideList[this.index]), e = this[this.__dimension] + this.spacing, s = this.options.critMargin; this.loop ? (i <= s || i >= this.viewSlidesList.length - s) && (e *= i - t, this.__locateSlides(!1, e + this.start_buffer), this.start_buffer += e) : (i < s && this.index >= s || i >= this.viewSlidesList.length - s && this.index < this.slidesCount - s) && this.__locateSlides(!1) } }, i._vertiUpdate = function (t, i) { this.__contPos = i, this.dispatchEvent(new MSViewEvents(MSViewEvents.SCROLL)), this.css3 ? this.$slideCont[0].style[window._jcsspfx + "Transform"] = "translateY(" + -i + "px)" + this.__translate_end : this.$slideCont[0].style.top = -i + "px" }, i._horizUpdate = function (t, i) { this.__contPos = i, this.dispatchEvent(new MSViewEvents(MSViewEvents.SCROLL)), this.css3 ? this.$slideCont[0].style[window._jcsspfx + "Transform"] = "translateX(" + -i + "px)" + this.__translate_end : this.$slideCont[0].style.left = -i + "px" }, i.__updateViewList = function () { if (this.normalMode) this.viewSlidesList = this.slides; else { var t = this.viewSlidesList.slice(); this.viewSlidesList = []; var i, e = 0, s = Math.floor(this.options.viewNum / 2); if (this.loop) for (; e !== this.options.viewNum; e++)this.viewSlidesList.push(this.slides[this.currentSlideLoc - s + e]); else { for (e = 0; e !== s && this.index - e != -1; e++)this.viewSlidesList.unshift(this.slideList[this.index - e]); for (e = 1; e !== s && this.index + e !== this.slidesCount; e++)this.viewSlidesList.push(this.slideList[this.index + e]) } for (e = 0, i = t.length; e !== i; e++)-1 === this.viewSlidesList.indexOf(t[e]) && t[e].sleep(); t = null, this.currentSlide && this.__updateSlidesZindex() } }, i.__locateSlides = function (t, i) { this.__updateViewList(), i = this.loop ? i || 0 : this.slides.indexOf(this.viewSlidesList[0]) * (this[this.__dimension] + this.spacing); for (var e, s = this.viewSlidesList.length, n = 0; n !== s; n++) { var o = i + n * (this[this.__dimension] + this.spacing); (e = this.viewSlidesList[n]).wakeup(), e.position = o, e.$element[0].style[this.__cssProb] = o + "px" } !1 !== t && this.controller.changeTo(this.slideList[this.index].position, !1, null, null, !1) }, i.__createLoopList = function () { var t = [], i = 0, e = this.slidesCount / 2, s = this.slidesCount % 2 == 0 ? e - 1 : Math.floor(e), n = this.slidesCount % 2 == 0 ? e : Math.floor(e); for (this.currentSlideLoc = s, i = 1; i <= s; ++i)t.unshift(this.slideList[this.index - i < 0 ? this.slidesCount - i + this.index : this.index - i]); for (t.push(this.slideList[this.index]), i = 1; i <= n; ++i)t.push(this.slideList[this.index + i >= this.slidesCount ? this.index + i - this.slidesCount : this.index + i]); return t }, i.__getSteps = function (t, i) { var e = i < t ? this.slidesCount - t + i : i - t, s = Math.abs(this.slidesCount - e); return e < s ? e : -s }, i.__pushEnd = function () { var t = this.slides.shift(), i = this.slides[this.slidesCount - 2]; if (this.slides.push(t), this.normalMode) { var e = i.$element[0][this.__offset] + this.spacing + this[this.__dimension]; t.$element[0].style[this.__cssProb] = e + "px", t.position = e } }, i.__pushStart = function () { var t = this.slides.pop(), i = this.slides[0]; if (this.slides.unshift(t), this.normalMode) { var e = i.$element[0][this.__offset] - this.spacing - this[this.__dimension]; t.$element[0].style[this.__cssProb] = e + "px", t.position = e } }, i.__updateSlidesZindex = function () { var t = this.viewSlidesList.length; Math.floor(t / 2); if (this.loop) for (var i = this.viewSlidesList.indexOf(this.currentSlide), e = 0; e !== t; e++)this.viewSlidesList[e], this.viewSlidesList[e].$element.css("z-index", e <= i ? e + 1 : t - e); else { for (var s = this.currentSlide.index - this.viewSlidesList[0].index, e = 0; e !== t; e++)this.viewSlidesList[e].$element.css("z-index", e <= s ? e + 1 : t - e); this.currentSlide.$element.css("z-index", t) } }, i.addSlide = function (t) { t.view = this, this.slides.push(t), this.slideList.push(t), this.slidesCount++ }, i.appendSlide = function (t) { this.$slideCont.append(t.$element) }, i.updateLoop = function (t) { if (this.loop) for (var i = this.__getSteps(this.index, t), e = 0, s = Math.abs(i); e < s; ++e)i < 0 ? this.__pushStart() : this.__pushEnd() }, i.gotoSlide = function (t, i) { this.updateLoop(t), this.index = t; var e = this.slideList[t]; this._checkCritMargins(), this.controller.changeTo(e.position, !i, null, null, !1), e !== this.currentSlide && (this.slideChanged = !0, this.currentSlide = e, this.autoUpdateZIndex && this.__updateSlidesZindex(), this.dispatchEvent(new MSViewEvents(MSViewEvents.CHANGE_START)), i && this.dispatchEvent(new MSViewEvents(MSViewEvents.CHANGE_END))) }, i.next = function (t) { t && !this.loop && this.index + 1 >= this.slidesCount ? this.controller.bounce(10) : this.gotoSlide(this.index + 1 >= this.slidesCount ? 0 : this.index + 1) }, i.previous = function (t) { t && !this.loop && this.index - 1 < 0 ? this.controller.bounce(-10) : this.gotoSlide(this.index - 1 < 0 ? this.slidesCount - 1 : this.index - 1) }, i.setupSwipe = function () { this.swipeControl = new averta.TouchSwipe(this.$element), this.swipeControl.swipeType = "h" === this.dir ? "horizontal" : "vertical"; var t = this; "h" === this.dir ? this.swipeControl.onSwipe = function (i) { t.horizSwipeMove(i) } : this.swipeControl.onSwipe = function (i) { t.vertSwipeMove(i) } }, i.vertSwipeMove = function (t) { var i = t.phase; if ("start" === i) this.controller.stop(), this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_START, t)); else if ("move" === i && (!this.loop || Math.abs(this.currentSlide.position - this.controller.value + t.moveY) < this.cont_size / 2)) this.controller.drag(t.moveY), this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_MOVE, t)); else if ("end" === i || "cancel" === i) { var e = t.distanceY / t.duration * 50 / 3, s = Math.abs(t.distanceY / t.duration * 50 / 3); Math.abs(e) > .1 && Math.abs(e) >= s ? (this.controller.push(-e), e > this.controller.options.snappingMinSpeed && this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_END, t))) : (this.controller.cancel(), this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_CANCEL, t))) } }, i.horizSwipeMove = function (t) { var i = t.phase; if ("start" === i) this.controller.stop(), this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_START, t)); else if ("move" === i && (!this.loop || Math.abs(this.currentSlide.position - this.controller.value + t.moveX) < this.cont_size / 2)) this.controller.drag(t.moveX), this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_MOVE, t)); else if ("end" === i || "cancel" === i) { var e = t.distanceX / t.duration * 50 / 3, s = Math.abs(t.distanceY / t.duration * 50 / 3); Math.abs(e) > .1 && Math.abs(e) >= s ? (this.controller.push(-e), e > this.controller.options.snappingMinSpeed && this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_END, t))) : (this.controller.cancel(), this.dispatchEvent(new MSViewEvents(MSViewEvents.SWIPE_CANCEL, t))) } }, i.setSize = function (t, i, e) { if (this.lastWidth !== t || i !== this.lastHeight || e) { this.$element.width(t).height(i); for (var s = 0; s < this.slidesCount; ++s)this.slides[s].setSize(t, i, e); this.__width = t, this.__height = i, this.__created && (this.__locateSlides(), this.cont_size = (this.slidesCount - 1) * (this[this.__dimension] + this.spacing), this.loop || (this.controller._max_value = this.cont_size), this.controller.options.snapsize = this[this.__dimension] + this.spacing, this.controller.changeTo(this.currentSlide.position, !1, null, null, !1), this.controller.cancel(), this.lastWidth = t, this.lastHeight = i) } }, i.create = function (t) { this.__created = !0, this.index = Math.min(t || 0, this.slidesCount - 1), this.lastSnap = this.index, this.loop && (this.slides = this.__createLoopList()), this.normalMode = this.slidesCount <= this.options.viewNum; for (var i = 0; i < this.slidesCount; ++i)this.slides[i].create(); this.__locateSlides(), this.controller.options.snapsize = this[this.__dimension] + this.spacing, this.loop || (this.controller._max_value = (this.slidesCount - 1) * (this[this.__dimension] + this.spacing)), this.gotoSlide(this.index, !0), this.options.swipe && (window._touch || this.options.mouseSwipe) && this.setupSwipe() }, i.destroy = function () { if (this.__created) { for (var t = 0; t < this.slidesCount; ++t)this.slides[t].destroy(); this.slides = null, this.slideList = null, this.$element.remove(), this.controller.destroy(), this.controller = null } }, averta.EventDispatcher.extend(i), MSSlideController.registerView("basic", MSBasicView) }(jQuery), function (t) { "use strict"; window.MSWaveView = function (t) { MSBasicView.call(this, t), this.$element.removeClass("ms-basic-view").addClass("ms-wave-view"), this.$slideCont.css(window._csspfx + "transform-style", "preserve-3d"), this.autoUpdateZIndex = !0 }, MSWaveView.extend(MSBasicView), MSWaveView._3dreq = !0, MSWaveView._fallback = MSBasicView; var i = MSWaveView.prototype, e = MSBasicView.prototype; i._horizUpdate = function (t, i) { e._horizUpdate.call(this, t, i); for (var s, n, o = -i, a = 0; a < this.slidesCount; ++a)n = -o - (s = this.slideList[a]).position, this.__updateSlidesHoriz(s, n) }, i._vertiUpdate = function (t, i) { e._vertiUpdate.call(this, t, i); for (var s, n, o = -i, a = 0; a < this.slidesCount; ++a)n = -o - (s = this.slideList[a]).position, this.__updateSlidesVertic(s, n) }, i.__updateSlidesHoriz = function (t, i) { var e = Math.abs(100 * i / this.__width); t.$element[0].style[window._csspfx + "transform"] = "translateZ(" + 3 * -e + "px) rotateY(0.01deg)" }, i.__updateSlidesVertic = function (t, i) { this.__updateSlidesHoriz(t, i) }, MSSlideController.registerView("wave", MSWaveView) }(), function () { window.MSFadeBasicView = function (t) { MSWaveView.call(this, t), this.$element.removeClass("ms-wave-view").addClass("ms-fade-basic-view") }, MSFadeBasicView.extend(MSWaveView); var t = MSFadeBasicView.prototype; MSFadeBasicView.prototype; t.__updateSlidesHoriz = function (t, i) { var e = Math.abs(.6 * i / this.__width); e = 1 - Math.min(e, .6), t.$element.css("opacity", e) }, t.__updateSlidesVertic = function (t, i) { this.__updateSlidesHoriz(t, i) }, MSSlideController.registerView("fadeBasic", MSFadeBasicView), MSWaveView._fallback = MSFadeBasicView }(), function () { window.MSFadeWaveView = function (t) { MSWaveView.call(this, t), this.$element.removeClass("ms-wave-view").addClass("ms-fade-wave-view") }, MSFadeWaveView.extend(MSWaveView), MSFadeWaveView._3dreq = !0, MSFadeWaveView._fallback = MSFadeBasicView; var t = MSFadeWaveView.prototype; MSWaveView.prototype; t.__updateSlidesHoriz = function (t, i) { var e = Math.abs(100 * i / this.__width); e = Math.min(e, 100), t.$element.css("opacity", 1 - e / 300), t.$element[0].style[window._jcsspfx + "Transform"] = "scale(" + (1 - e / 800) + ") rotateY(0.01deg) " }, t.__updateSlidesVertic = function (t, i) { this.__updateSlidesHoriz(t, i) }, MSSlideController.registerView("fadeWave", MSFadeWaveView) }(), function (t) { "use strict"; window.MSFlowView = function (t) { MSWaveView.call(this, t), this.$element.removeClass("ms-wave-view").addClass("ms-flow-view") }, MSFlowView.extend(MSWaveView), MSFlowView._3dreq = !0, MSFlowView._fallback = MSFadeBasicView; var i = MSFlowView.prototype; MSWaveView.prototype; i.__updateSlidesHoriz = function (t, i) { var e = Math.abs(100 * i / this.__width), s = Math.min(.3 * e, 30) * (i < 0 ? -1 : 1), n = 1.2 * e; t.$element[0].style[window._jcsspfx + "Transform"] = "translateZ(" + 5 * -n + "px) rotateY(" + s + "deg) " }, i.__updateSlidesVertic = function (t, i) { var e = Math.abs(100 * i / this.__width), s = Math.min(.3 * e, 30) * (i < 0 ? -1 : 1), n = 1.2 * e; t.$element[0].style[window._jcsspfx + "Transform"] = "translateZ(" + 5 * -n + "px) rotateX(" + -s + "deg) " }, MSSlideController.registerView("flow", MSFlowView) }(), function () { window.MSFadeFlowView = function (t) { MSWaveView.call(this, t), this.$element.removeClass("ms-wave-view").addClass("ms-fade-flow-view") }, MSFadeFlowView.extend(MSWaveView), MSFadeFlowView._3dreq = !0; var t = MSFadeFlowView.prototype; MSWaveView.prototype; t.__calculate = function (t) { var i = Math.min(Math.abs(100 * t / this.__width), 100); return { value: i, rvalue: Math.min(.5 * i, 50) * (t < 0 ? -1 : 1) } }, t.__updateSlidesHoriz = function (t, i) { var e = this.__calculate(i); t.$element.css("opacity", 1 - e.value / 300), console.log(window._jcsspfx + "transform", "translateZ(" + -e.value + "px) rotateY(" + e.rvalue + "deg) "), t.$element[0].style[window._jcsspfx + "Transform"] = "translateZ(" + -e.value + "px) rotateY(" + e.rvalue + "deg) " }, t.__updateSlidesVertic = function (t, i) { var e = this.__calculate(i); t.$element.css("opacity", 1 - e.value / 300), t.$element[0].style[window._jcsspfx + "Transform"] = "translateZ(" + -e.value + "px) rotateX(" + -e.rvalue + "deg) " }, MSSlideController.registerView("fadeFlow", MSFadeFlowView) }(), function (t) { "use strict"; window.MSMaskView = function (t) { MSBasicView.call(this, t), this.$element.removeClass("ms-basic-view").addClass("ms-mask-view") }, MSMaskView.extend(MSBasicView); var i = MSMaskView.prototype, e = MSBasicView.prototype; i.addSlide = function (i) { i.view = this, i.$frame = t("<div></div>").addClass("ms-mask-frame").append(i.$element), i.$element[0].style.position = "relative", i.autoAppend = !1, this.slides.push(i), this.slideList.push(i), this.slidesCount++ }, i.setSize = function (t, i) { for (var s = this.slides[0].slider, n = 0; n < this.slidesCount; ++n)this.slides[n].$frame[0].style.width = t + "px", s.options.autoHeight || (this.slides[n].$frame[0].style.height = i + "px"); e.setSize.call(this, t, i) }, i._horizUpdate = function (t, i) { e._horizUpdate.call(this, t, i); var s = 0; if (this.css3) for (s = 0; s < this.slidesCount; ++s)this.slideList[s].$element[0].style[window._jcsspfx + "Transform"] = "translateX(" + (i - this.slideList[s].position) + "px)" + this.__translate_end; else for (s = 0; s < this.slidesCount; ++s)this.slideList[s].$element[0].style.left = i - this.slideList[s].position + "px" }, i._vertiUpdate = function (t, i) { e._vertiUpdate.call(this, t, i); var s = 0; if (this.css3) for (s = 0; s < this.slidesCount; ++s)this.slideList[s].$element[0].style[window._jcsspfx + "Transform"] = "translateY(" + (i - this.slideList[s].position) + "px)" + this.__translate_end; else for (s = 0; s < this.slidesCount; ++s)this.slideList[s].$element[0].style.top = i - this.slideList[s].position + "px" }, i.__pushEnd = function () { var t = this.slides.shift(), i = this.slides[this.slidesCount - 2]; if (this.slides.push(t), this.normalMode) { var e = i.$frame[0][this.__offset] + this.spacing + this[this.__dimension]; t.$frame[0].style[this.__cssProb] = e + "px", t.position = e } }, i.__pushStart = function () { var t = this.slides.pop(), i = this.slides[0]; if (this.slides.unshift(t), this.normalMode) { var e = i.$frame[0][this.__offset] - this.spacing - this[this.__dimension]; t.$frame[0].style[this.__cssProb] = e + "px", t.position = e } }, i.__updateViewList = function () { if (this.normalMode) this.viewSlidesList = this.slides; else { var t = this.viewSlidesList.slice(); this.viewSlidesList = []; var i, e = 0, s = Math.floor(this.options.viewNum / 2); if (this.loop) for (; e !== this.options.viewNum; e++)this.viewSlidesList.push(this.slides[this.currentSlideLoc - s + e]); else { for (e = 0; e !== s && this.index - e != -1; e++)this.viewSlidesList.unshift(this.slideList[this.index - e]); for (e = 1; e !== s && this.index + e !== this.slidesCount; e++)this.viewSlidesList.push(this.slideList[this.index + e]) } for (e = 0, i = t.length; e !== i; e++)-1 === this.viewSlidesList.indexOf(t[e]) && (t[e].sleep(), t[e].$frame.detach()); t = null } }, i.__locateSlides = function (t, i) { this.__updateViewList(), i = this.loop ? i || 0 : this.slides.indexOf(this.viewSlidesList[0]) * (this[this.__dimension] + this.spacing); for (var e, s = this.viewSlidesList.length, n = 0; n !== s; n++) { var o = i + n * (this[this.__dimension] + this.spacing); if (e = this.viewSlidesList[n], this.$slideCont.append(e.$frame), e.wakeup(!1), e.position = o, e.selected && e.bgvideo) try { e.bgvideo.play() } catch (t) { } e.$frame[0].style[this.__cssProb] = o + "px" } !1 !== t && this.controller.changeTo(this.slideList[this.index].position, !1, null, null, !1) }, MSSlideController.registerView("mask", MSMaskView) }(jQuery), function (t) { "use strict"; window.MSParallaxMaskView = function (t) { MSMaskView.call(this, t), this.$element.removeClass("ms-basic-view").addClass("ms-parallax-mask-view") }, MSParallaxMaskView.extend(MSMaskView), MSParallaxMaskView.parallaxAmount = .5; var i = MSParallaxMaskView.prototype, e = MSBasicView.prototype; i._horizUpdate = function (t, i) { e._horizUpdate.call(this, t, i); var s = 0; if (this.css3) for (s = 0; s < this.slidesCount; ++s)this.slideList[s].$element[0].style[window._jcsspfx + "Transform"] = "translateX(" + (i - this.slideList[s].position) * MSParallaxMaskView.parallaxAmount + "px)" + this.__translate_end; else for (s = 0; s < this.slidesCount; ++s)this.slideList[s].$element[0].style.left = (i - this.slideList[s].position) * MSParallaxMaskView.parallaxAmount + "px" }, i._vertiUpdate = function (t, i) { e._vertiUpdate.call(this, t, i); var s = 0; if (this.css3) for (s = 0; s < this.slidesCount; ++s)this.slideList[s].$element[0].style[window._jcsspfx + "Transform"] = "translateY(" + (i - this.slideList[s].position) * MSParallaxMaskView.parallaxAmount + "px)" + this.__translate_end; else for (s = 0; s < this.slidesCount; ++s)this.slideList[s].$element[0].style.top = (i - this.slideList[s].position) * MSParallaxMaskView.parallaxAmount + "px" }, MSSlideController.registerView("parallaxMask", MSParallaxMaskView) }(), function (t) { "use strict"; window.MSFadeView = function (t) { MSBasicView.call(this, t), this.$element.removeClass("ms-basic-view").addClass("ms-fade-view"), this.controller.renderCallback(this.__update, this) }, MSFadeView.extend(MSBasicView); var i = MSFadeView.prototype, e = MSBasicView.prototype; i.__update = function (t, i) { for (var e, s, n = -i, o = 0; o < this.slidesCount; ++o)s = -n - (e = this.slideList[o]).position, this.__updateSlides(e, s) }, i.__updateSlides = function (t, i) { var e = Math.abs(i / this[this.__dimension]); 1 - e <= 0 ? t.$element.fadeTo(0, 0).css("visibility", "hidden") : t.$element.fadeTo(0, 1 - e).css("visibility", "") }, i.__locateSlides = function (t, i) { this.__updateViewList(), i = this.loop ? i || 0 : this.slides.indexOf(this.viewSlidesList[0]) * (this[this.__dimension] + this.spacing); for (var e, s = this.viewSlidesList.length, n = 0; n !== s; n++) { var o = i + n * this[this.__dimension]; (e = this.viewSlidesList[n]).wakeup(), e.position = o } !1 !== t && this.controller.changeTo(this.slideList[this.index].position, !1, null, null, !1) }, i.__pushEnd = function () { var t = this.slides.shift(), i = this.slides[this.slidesCount - 2]; this.slides.push(t), t.position = i.position + this[this.__dimension] }, i.__pushStart = function () { var t = this.slides.pop(), i = this.slides[0]; this.slides.unshift(t), t.position = i.position - this[this.__dimension] }, i.create = function (t) { e.create.call(this, t), this.spacing = 0, this.controller.options.minValidDist = 10 }, MSSlideController.registerView("fade", MSFadeView) }(), function (t) { "use strict"; window.MSScaleView = function (t) { MSBasicView.call(this, t), this.$element.removeClass("ms-basic-view").addClass("ms-scale-view"), this.controller.renderCallback(this.__update, this) }, MSScaleView.extend(MSFadeView); var i = MSScaleView.prototype, e = MSFadeView.prototype; i.__updateSlides = function (t, i) { var e = Math.abs(i / this[this.__dimension]), s = t.$element[0]; 1 - e <= 0 ? (s.style.opacity = 0, s.style.visibility = "hidden", s.style[window._jcsspfx + "Transform"] = "") : (s.style.opacity = 1 - e, s.style.visibility = "", s.style[window._jcsspfx + "Transform"] = "perspective(2000px) translateZ(" + e * (i < 0 ? -.5 : .5) * 300 + "px)") }, i.create = function (t) { e.create.call(this, t), this.controller.options.minValidDist = .03 }, MSSlideController.registerView("scale", MSScaleView) }(), function (t) { "use strict"; window.MSStackView = function (t) { MSBasicView.call(this, t), this.$element.removeClass("ms-basic-view").addClass("ms-stack-view"), this.controller.renderCallback(this.__update, this), this.autoUpdateZIndex = !0 }, MSStackView.extend(MSFadeView), MSStackView._3dreq = !0, MSStackView._fallback = MSFadeView; var i = MSStackView.prototype, e = MSFadeView.prototype; i.__updateSlidesZindex = function () { for (var t = this.viewSlidesList.length, i = 0; i !== t; i++)this.viewSlidesList[i], this.viewSlidesList[i].$element.css("z-index", t - i) }, i.__updateSlides = function (t, i) { var e = Math.abs(i / this[this.__dimension]), s = t.$element[0]; 1 - e <= 0 ? (s.style.opacity = 1, s.style.visibility = "hidden", s.style[window._jcsspfx + "Transform"] = "") : (s.style.visibility = "", s.style[window._jcsspfx + "Transform"] = i < 0 ? "perspective(2000px) translateZ(" + -300 * e + "px)" : this.__translate + "(" + -e * this[this.__dimension] + "px)") }, i.create = function (t) { e.create.call(this, t), this.controller.options.minValidDist = .03, this.__translate = "h" === this.dir ? "translateX" : "translateY" }, MSSlideController.registerView("stack", MSStackView) }(), function () { "use strict"; window.MSFocusView = function (t) { MSWaveView.call(this, t), this.$element.removeClass("ms-wave-view").addClass("ms-focus-view"), this.options.centerSpace = this.options.centerSpace || 1 }, MSFocusView.extend(MSWaveView), MSFocusView._3dreq = !0, MSFocusView._fallback = MSFadeBasicView; var t = MSFocusView.prototype; MSWaveView.prototype; t.__calcview = function (t, i) { return i / 2 * t / (t + 2e3) * (t + 2e3) / 2e3 }, t.__updateSlidesHoriz = function (t, i) { var e = Math.abs(100 * i / this.__width); e = 15 * -Math.min(e, 100), t.$element.css(window._csspfx + "transform", "translateZ(" + (e + 1) + "px) rotateY(0.01deg) translateX(" + (i < 0 ? 1 : -1) * (-this.__calcview(e, this.__width) * this.options.centerSpace) + "px)") }, t.__updateSlidesVertic = function (t, i) { var e = Math.abs(100 * i / this.__width); e = 15 * -Math.min(e, 100), t.$element.css(window._csspfx + "transform", "translateZ(" + (e + 1) + "px) rotateY(0.01deg) translateY(" + (i < 0 ? 1 : -1) * (-this.__calcview(e, this.__width) * this.options.centerSpace) + "px)") }, MSSlideController.registerView("focus", MSFocusView) }(), function () { window.MSPartialWaveView = function (t) { MSWaveView.call(this, t), this.$element.removeClass("ms-wave-view").addClass("ms-partial-wave-view") }, MSPartialWaveView.extend(MSWaveView), MSPartialWaveView._3dreq = !0, MSPartialWaveView._fallback = MSFadeBasicView; var t = MSPartialWaveView.prototype; MSWaveView.prototype; t.__updateSlidesHoriz = function (t, i) { var e = Math.abs(100 * i / this.__width); t.hasBG && t.$bg_img.css("opacity", (100 - Math.abs(120 * i / this.__width / 3)) / 100), t.$element.css(window._csspfx + "transform", "translateZ(" + 3 * -e + "px) rotateY(0.01deg) translateX(" + .75 * i + "px)") }, t.__updateSlidesVertic = function (t, i) { var e = Math.abs(100 * i / this.__width); t.hasBG && t.$bg_img.css("opacity", (100 - Math.abs(120 * i / this.__width / 3)) / 100), t.$element.css(window._csspfx + "transform", "translateZ(" + 3 * -e + "px) rotateY(0.01deg) translateY(" + .75 * i + "px)") }, MSSlideController.registerView("partialWave", MSPartialWaveView) }(), function (t) { "use strict"; window.MSBoxView = function (t) { MSBasicView.call(this, t), this.$element.removeClass("ms-basic-view").addClass("ms-box-view"), this.controller.renderCallback(this.__update, this) }, MSBoxView.extend(MSFadeView), MSBoxView._3dreq = !0; var i = MSBoxView.prototype, e = MSFadeView.prototype; i.__updateSlides = function (t, i) { var e = Math.abs(i / this[this.__dimension]), s = t.$element[0]; 1 - e <= 0 ? (s.style.visibility = "hidden", s.style[window._jcsspfx + "Transform"] = "") : (s.style.visibility = "", s.style[window._jcsspfx + "Transform"] = "rotate" + this._rotateDir + "(" + e * (i < 0 ? 1 : -1) * 90 * this._calcFactor + "deg)", s.style[window._jcsspfx + "TransformOrigin"] = "50% 50% -" + t[this.__dimension] / 2 + "px", s.style.zIndex = Math.ceil(2 * (1 - e))) }, i.create = function (t) { e.create.call(this, t), this.controller.options.minValidDist = .03, this._rotateDir = "h" === this.options.dir ? "Y" : "X", this._calcFactor = "h" === this.options.dir ? 1 : -1 }, MSSlideController.registerView("box", MSBoxView) }(), function (t) { "use strict"; var i = function () { this.options = { prefix: "ms-", autohide: !0, overVideo: !0, customClass: null } }, e = i.prototype; e.slideAction = function (t) { }, e.setup = function () { this.cont = this.options.insertTo ? t(this.options.insertTo) : this.slider.$controlsCont, this.options.overVideo || this._hideOnvideoStarts() }, e.checkHideUnder = function () { this.options.hideUnder && (this.needsRealign = !this.options.insetTo && ("left" === this.options.align || "right" === this.options.align) && !1 === this.options.inset, t(window).bind("resize", { that: this }, this.onResize), this.onResize()) }, e.onResize = function (t) { var i = t && t.data.that || this, e = window.innerWidth; e <= i.options.hideUnder && !i.detached ? (i.hide(!0), i.detached = !0, i.onDetach()) : e >= i.options.hideUnder && i.detached && (i.detached = !1, i.visible(), i.onAppend()) }, e.create = function () { this.options.autohide && (this.hide(!0), this.slider.$controlsCont.mouseenter(t.proxy(this._onMouseEnter, this)).mouseleave(t.proxy(this._onMouseLeave, this)).mousedown(t.proxy(this._onMouseDown, this)), this.$element && this.$element.mouseenter(t.proxy(this._onMouseEnter, this)).mouseleave(t.proxy(this._onMouseLeave, this)).mousedown(t.proxy(this._onMouseDown, this)), t(document).mouseup(t.proxy(this._onMouseUp, this))), this.options.align && this.$element.addClass("ms-align-" + this.options.align), this.options.customClass && this.$element && this.$element.addClass(this.options.customClass) }, e._onMouseEnter = function () { this._disableAH || this.mdown || this.visible(), this.mleave = !1 }, e._onMouseLeave = function () { this.mdown || this.hide(), this.mleave = !0 }, e._onMouseDown = function () { this.mdown = !0 }, e._onMouseUp = function () { this.mdown && this.mleave && this.hide(), this.mdown = !1 }, e.onAppend = function () { this.needsRealign && this.slider._realignControls() }, e.onDetach = function () { this.needsRealign && this.slider._realignControls() }, e._hideOnvideoStarts = function () { var t = this; this.slider.api.addEventListener(MSSliderEvent.VIDEO_PLAY, function () { t._disableAH = !0, t.hide() }), this.slider.api.addEventListener(MSSliderEvent.VIDEO_CLOSE, function () { t._disableAH = !1, t.visible() }) }, e.hide = function (t) { if (t) this.$element.css("opacity", 0), this.$element.css("display", "none"); else { clearTimeout(this.hideTo); var i = this.$element; this.hideTo = setTimeout(function () { CTween.fadeOut(i, 400, !1) }, 20) } this.$element.addClass("ms-ctrl-hide") }, e.visible = function () { this.detached || (clearTimeout(this.hideTo), this.$element.css("display", ""), CTween.fadeIn(this.$element, 400, !1), this.$element.removeClass("ms-ctrl-hide")) }, e.destroy = function () { this.options && this.options.hideUnder && t(window).unbind("resize", this.onResize) }, window.BaseControl = i }(jQuery), function (t) { "use strict"; var i = function (i) { BaseControl.call(this), t.extend(this.options, i) }; i.extend(BaseControl); var e = i.prototype, s = BaseControl.prototype; e.setup = function () { var i = this; this.$next = t("<div></div>").addClass(this.options.prefix + "nav-next").bind("click", function () { i.slider.api.next(!0) }), this.$prev = t("<div></div>").addClass(this.options.prefix + "nav-prev").bind("click", function () { i.slider.api.previous(!0) }), s.setup.call(this), this.cont.append(this.$next), this.cont.append(this.$prev), this.checkHideUnder() }, e.hide = function (t) { if (t) return this.$prev.css("opacity", 0).css("display", "none"), void this.$next.css("opacity", 0).css("display", "none"); CTween.fadeOut(this.$prev, 400, !1), CTween.fadeOut(this.$next, 400, !1), this.$prev.addClass("ms-ctrl-hide"), this.$next.addClass("ms-ctrl-hide") }, e.visible = function () { this.detached || (CTween.fadeIn(this.$prev, 400), CTween.fadeIn(this.$next, 400), this.$prev.removeClass("ms-ctrl-hide").css("display", ""), this.$next.removeClass("ms-ctrl-hide").css("display", "")) }, e.destroy = function () { s.destroy(), this.$next.remove(), this.$prev.remove() }, window.MSArrows = i, MSSlideController.registerControl("arrows", i) }(jQuery), function (t) { "use strict"; var i = function (i) { BaseControl.call(this), this.options.dir = "h", this.options.wheel = "v" === i.dir, this.options.arrows = !1, this.options.speed = 17, this.options.align = null, this.options.inset = !1, this.options.margin = 10, this.options.space = 10, this.options.width = 100, this.options.height = 100, this.options.type = "thumbs", this.options.hover = !1, t.extend(this.options, i), this.thumbs = [], this.index_count = 0, this.__dimen = "h" === this.options.dir ? "width" : "height", this.__alignsize = "h" === this.options.dir ? "height" : "width", this.__jdimen = "h" === this.options.dir ? "outerWidth" : "outerHeight", this.__pos = "h" === this.options.dir ? "left" : "top", this.click_enable = !0 }; i.extend(BaseControl); var e = i.prototype, s = BaseControl.prototype; e.setup = function () { if (this.$element = t("<div></div>").addClass(this.options.prefix + "thumb-list"), "tabs" === this.options.type && this.$element.addClass(this.options.prefix + "tabs"), this.$element.addClass("ms-dir-" + this.options.dir), s.setup.call(this), this.slider.$controlsCont === this.cont ? this.$element.appendTo(this.slider.$element) : this.$element.appendTo(this.cont), this.$thumbscont = t("<div></div>").addClass("ms-thumbs-cont").appendTo(this.$element), this.options.arrows) { var i = this; this.$fwd = t("<div></div>").addClass("ms-thumblist-fwd").appendTo(this.$element).click(function () { i.controller.push(-15) }), this.$bwd = t("<div></div>").addClass("ms-thumblist-bwd").appendTo(this.$element).click(function () { i.controller.push(15) }) } if (!this.options.insetTo && this.options.align) { var e = this.options.align; this.options.inset ? this.$element.css(e, this.options.margin) : "top" === e ? this.$element.detach().prependTo(this.slider.$element).css({ "margin-bottom": this.options.margin, position: "relative" }) : "bottom" === e ? this.$element.css({ "margin-top": this.options.margin, position: "relative" }) : (this.slider.api.addEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE, this.align, this), this.align()), "v" === this.options.dir ? this.$element.width(this.options.width) : this.$element.height(this.options.height) } this.checkHideUnder() }, e.align = function (t) { if (!this.detached) { var i = this.options.align, e = this.slider.reserveSpace(i, this.options[this.__alignsize] + 2 * this.options.margin); this.$element.css(i, -e - this.options[this.__alignsize] - this.options.margin) } }, e.slideAction = function (i) { var e = i.$element.find(".ms-thumb"), s = this, n = t("<div></div>").addClass("ms-thumb-frame").append(e).append(t('<div class="ms-thumb-ol"></div>')).bind(this.options.hover ? "hover" : "click", function () { s.changeSlide(n) }); if (this.options.align && n.width(this.options.width - ("v" === this.options.dir && "tabs" === this.options.type ? 12 : 0)).height(this.options.height).css("margin-" + ("v" === this.options.dir ? "bottom" : "right"), this.options.space), n[0].index = this.index_count++ , this.$thumbscont.append(n), this.options.fillMode && e.is("img")) { var o = new window.MSAligner(this.options.fillMode, n, e); e[0].aligner = o, e.one("load", function (i) { var e = t(this); e[0].aligner.init(e.width(), e.height()), e[0].aligner.align() }).each(t.jqLoadFix) } t.browser.msie && e.on("dragstart", function (t) { t.preventDefault() }), this.thumbs.push(n) }, e.create = function () { s.create.call(this), this.__translate_end = window._css3d ? " translateZ(0px)" : "", this.controller = new Controller(0, 0, { snappingMinSpeed: 2, friction: (100 - .5 * this.options.speed) / 100 }), this.controller.renderCallback("h" === this.options.dir ? this._hMove : this._vMove, this); i = this; this.resize_listener = function () { i.__resize() }, t(window).bind("resize", this.resize_listener), this.thumbSize = this.thumbs[0][this.__jdimen](!0), this.setupSwipe(), this.__resize(); var i = this; this.options.wheel && (this.wheellistener = function (t) { var e = window.event || t.orginalEvent || t, s = Math.max(-1, Math.min(1, e.wheelDelta || -e.detail)); return i.controller.push(10 * -s), !1 }, t.browser.mozilla ? this.$element[0].addEventListener("DOMMouseScroll", this.wheellistener) : this.$element.bind("mousewheel", this.wheellistener)), this.slider.api.addEventListener(MSSliderEvent.CHANGE_START, this.update, this), this.slider.api.addEventListener(MSSliderEvent.HARD_UPDATE, this.realignThumbs, this), this.cindex = this.slider.api.index(), this.select(this.thumbs[this.cindex]) }, e._hMove = function (t, i) { this.__contPos = i, window._cssanim ? this.$thumbscont[0].style[window._jcsspfx + "Transform"] = "translateX(" + -i + "px)" + this.__translate_end : this.$thumbscont[0].style.left = -i + "px" }, e._vMove = function (t, i) { this.__contPos = i, window._cssanim ? this.$thumbscont[0].style[window._jcsspfx + "Transform"] = "translateY(" + -i + "px)" + this.__translate_end : this.$thumbscont[0].style.top = -i + "px" }, e.setupSwipe = function () { this.swipeControl = new averta.TouchSwipe(this.$element), this.swipeControl.swipeType = "h" === this.options.dir ? "horizontal" : "vertical"; var t = this; "h" === this.options.dir ? this.swipeControl.onSwipe = function (i) { t.horizSwipeMove(i) } : this.swipeControl.onSwipe = function (i) { t.vertSwipeMove(i) } }, e.vertSwipeMove = function (t) { if (!this.dTouch) { var i = t.phase; "start" === i ? this.controller.stop() : "move" === i ? this.controller.drag(t.moveY) : "end" !== i && "cancel" !== i || (Math.abs(t.distanceY / t.duration * 50 / 3) > .1 ? this.controller.push(-t.distanceY / t.duration * 50 / 3) : (this.click_enable = !0, this.controller.cancel())) } }, e.horizSwipeMove = function (t) { if (!this.dTouch) { var i = t.phase; "start" === i ? (this.controller.stop(), this.click_enable = !1) : "move" === i ? this.controller.drag(t.moveX) : "end" !== i && "cancel" !== i || (Math.abs(t.distanceX / t.duration * 50 / 3) > .1 ? this.controller.push(-t.distanceX / t.duration * 50 / 3) : (this.click_enable = !0, this.controller.cancel())) } }, e.update = function () { var t = this.slider.api.index(); this.cindex !== t && (null != this.cindex && this.unselect(this.thumbs[this.cindex]), this.cindex = t, this.select(this.thumbs[this.cindex]), this.dTouch || this.updateThumbscroll()) }, e.realignThumbs = function () { this.$element.find(".ms-thumb").each(function (t, i) { i.aligner && i.aligner.align() }) }, e.updateThumbscroll = function () { var t = this.thumbSize * this.cindex; if (NaN == this.controller.value && (this.controller.value = 0), t - this.controller.value < 0) this.controller.gotoSnap(this.cindex, !0); else if (t + this.thumbSize - this.controller.value > this.$element[this.__dimen]()) { var i = this.cindex - Math.floor(this.$element[this.__dimen]() / this.thumbSize) + 1; this.controller.gotoSnap(i, !0) } else; }, e.changeSlide = function (t) { this.click_enable && this.cindex !== t[0].index && this.slider.api.gotoSlide(t[0].index) }, e.unselect = function (t) { t.removeClass("ms-thumb-frame-selected") }, e.select = function (t) { t.addClass("ms-thumb-frame-selected") }, e.__resize = function () { var t = this.$element[this.__dimen](); if (this.ls !== t) { this.ls = t, this.thumbSize = this.thumbs[0][this.__jdimen](!0); var i = this.slider.api.count() * this.thumbSize; this.$thumbscont[0].style[this.__dimen] = i + "px", i <= t ? (this.dTouch = !0, this.controller.stop(), this.$thumbscont[0].style[this.__pos] = .5 * (t - i) + "px", this.$thumbscont[0].style[window._jcsspfx + "Transform"] = "") : (this.dTouch = !1, this.click_enable = !0, this.$thumbscont[0].style[this.__pos] = "", this.controller._max_value = i - t, this.controller.options.snapsize = this.thumbSize, this.updateThumbscroll()) } }, e.destroy = function () { s.destroy(), this.options.wheel && (t.browser.mozilla ? this.$element[0].removeEventListener("DOMMouseScroll", this.wheellistener) : this.$element.unbind("mousewheel", this.wheellistener), this.wheellistener = null), t(window).unbind("resize", this.resize_listener), this.$element.remove(), this.slider.api.removeEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE, this.align, this), this.slider.api.removeEventListener(MSSliderEvent.CHANGE_START, this.update, this) }, window.MSThumblist = i, MSSlideController.registerControl("thumblist", i) }(jQuery), function (t) { "use strict"; var i = function (i) { BaseControl.call(this), this.options.dir = "h", this.options.inset = !0, this.options.margin = 10, this.options.space = 10, t.extend(this.options, i), this.bullets = [] }; i.extend(BaseControl); var e = i.prototype, s = BaseControl.prototype; e.setup = function () { if (s.setup.call(this), this.$element = t("<div></div>").addClass(this.options.prefix + "bullets").addClass("ms-dir-" + this.options.dir).appendTo(this.cont), this.$bullet_cont = t("<div></div>").addClass("ms-bullets-count").appendTo(this.$element), !this.options.insetTo && this.options.align) { var i = this.options.align; this.options.inset && this.$element.css(i, this.options.margin) } this.checkHideUnder() }, e.create = function () { s.create.call(this); var i = this; this.slider.api.addEventListener(MSSliderEvent.CHANGE_START, this.update, this), this.cindex = this.slider.api.index(); for (var e = 0; e < this.slider.api.count(); ++e) { var n = t("<div></div>").addClass("ms-bullet"); n[0].index = e, n.on("click", function () { i.changeSlide(this.index) }), this.$bullet_cont.append(n), this.bullets.push(n), "h" === this.options.dir ? n.css("margin", this.options.space / 2) : n.css("margin", this.options.space) } "h" === this.options.dir ? this.$element.width(n.outerWidth(!0) * this.slider.api.count()) : this.$element.css("margin-top", -this.$element.outerHeight(!0) / 2), this.select(this.bullets[this.cindex]) }, e.update = function () { var t = this.slider.api.index(); this.cindex !== t && (null != this.cindex && this.unselect(this.bullets[this.cindex]), this.cindex = t, this.select(this.bullets[this.cindex])) }, e.changeSlide = function (t) { this.cindex !== t && this.slider.api.gotoSlide(t) }, e.unselect = function (t) { t.removeClass("ms-bullet-selected") }, e.select = function (t) { t.addClass("ms-bullet-selected") }, e.destroy = function () { s.destroy(), this.slider.api.removeEventListener(MSSliderEvent.CHANGE_START, this.update, this), this.$element.remove() }, window.MSBulltes = i, MSSlideController.registerControl("bullets", i) }(jQuery), function (t) { "use strict"; var i = function (i) { BaseControl.call(this), this.options.dir = "h", this.options.autohide = !0, this.options.width = 4, this.options.color = "#3D3D3D", this.options.margin = 10, t.extend(this.options, i), this.__dimen = "h" === this.options.dir ? "width" : "height", this.__jdimen = "h" === this.options.dir ? "outerWidth" : "outerHeight", this.__pos = "h" === this.options.dir ? "left" : "top", this.__translate_end = window._css3d ? " translateZ(0px)" : "", this.__translate_start = "h" === this.options.dir ? " translateX(" : "translateY(" }; i.extend(BaseControl); var e = i.prototype, s = BaseControl.prototype; e.setup = function () { if (this.$element = t("<div></div>").addClass(this.options.prefix + "sbar").addClass("ms-dir-" + this.options.dir), s.setup.call(this), this.slider.$controlsCont === this.cont ? this.$element.appendTo(this.slider.$element) : this.$element.appendTo(this.cont), this.$bar = t("<div></div>").addClass(this.options.prefix + "bar").appendTo(this.$element), this.slider.options.loop && (console.log("WARNING, MSScrollbar cannot work with looped slider."), this.disable = !0, this.$element.remove()), "v" === this.options.dir ? this.$bar.width(this.options.width) : this.$bar.height(this.options.width), this.$bar.css("background-color", this.options.color), !this.options.insetTo && this.options.align) { "v" === this.options.dir ? this.$element.css({ right: "auto", left: "auto" }) : this.$element.css({ top: "auto", bottom: "auto" }); var i = this.options.align; this.options.inset ? this.$element.css(i, this.options.margin) : "top" === i ? this.$element.prependTo(this.slider.$element).css({ "margin-bottom": this.options.margin, position: "relative" }) : "bottom" === i ? this.$element.css({ "margin-top": this.options.margin, position: "relative" }) : (this.slider.api.addEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE, this.align, this), this.align()) } this.checkHideUnder() }, e.align = function (t) { if (!this.detached) { var i = this.options.align, e = this.slider.reserveSpace(i, 2 * this.options.margin + this.options.width); this.$element.css(i, -e - this.options.margin - this.options.width) } }, e.create = function () { if (!this.disable) { this.scroller = this.slider.api.scroller, this.slider.api.view.addEventListener(MSViewEvents.SCROLL, this._update, this), this.slider.api.addEventListener(MSSliderEvent.RESIZE, this._resize, this), this._resize(), this.options.autohide && this.$bar.css("opacity", "0") } }, e._resize = function () { this.vdimen = this.$element[this.__dimen](), this.bar_dimen = this.slider.api.view["__" + this.__dimen] * this.vdimen / this.scroller._max_value, this.$bar[this.__dimen](this.bar_dimen) }, e._update = function () { var t = this.scroller.value * (this.vdimen - this.bar_dimen) / this.scroller._max_value; if (this.lvalue !== t) { if (this.lvalue = t, this.options.autohide) { clearTimeout(this.hto), this.$bar.css("opacity", "1"); var i = this; this.hto = setTimeout(function () { i.$bar.css("opacity", "0") }, 150) } t < 0 ? this.$bar[0].style[this.__dimen] = this.bar_dimen + t + "px" : (t > this.vdimen - this.bar_dimen && (this.$bar[0].style[this.__dimen] = this.vdimen - t + "px"), window._cssanim ? this.$bar[0].style[window._jcsspfx + "Transform"] = this.__translate_start + t + "px)" + this.__translate_end : this.$bar[0].style[this.__pos] = t + "px") } }, e.destroy = function () { s.destroy(), this.slider.api.view.removeEventListener(MSViewEvents.SCROLL, this._update, this), this.slider.api.removeEventListener(MSSliderEvent.RESIZE, this._resize, this), this.slider.api.removeEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE, this.align, this), this.$element.remove() }, window.MSScrollbar = i, MSSlideController.registerControl("scrollbar", i) }(jQuery), function (t) { "use strict"; var i = function (i) { BaseControl.call(this), this.options.autohide = !1, this.options.width = 4, this.options.color = "#FFFFFF", this.options.inset = !0, this.options.margin = 0, t.extend(this.options, i) }; i.extend(BaseControl); var e = i.prototype, s = BaseControl.prototype; e.setup = function () { if (s.setup.call(this), this.$element = t("<div></div>").addClass(this.options.prefix + "timerbar"), s.setup.call(this), this.slider.$controlsCont === this.cont ? this.$element.appendTo(this.slider.$element) : this.$element.appendTo(this.cont), this.$bar = t("<div></div>").addClass("ms-time-bar").appendTo(this.$element), "v" === this.options.dir ? (this.$bar.width(this.options.width), this.$element.width(this.options.width)) : (this.$bar.height(this.options.width), this.$element.height(this.options.width)), this.$bar.css("background-color", this.options.color), !this.options.insetTo && this.options.align) { this.$element.css({ top: "auto", bottom: "auto" }); var i = this.options.align; this.options.inset ? this.$element.css(i, this.options.margin) : "top" === i ? this.$element.prependTo(this.slider.$element).css({ "margin-bottom": this.options.margin, position: "relative" }) : "bottom" === i ? this.$element.css({ "margin-top": this.options.margin, position: "relative" }) : (this.slider.api.addEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE, this.align, this), this.align()) } this.checkHideUnder() }, e.align = function (t) { if (!this.detached) { var i = this.options.align, e = this.slider.reserveSpace(i, 2 * this.options.margin + this.options.width); this.$element.css(i, -e - this.options.margin - this.options.width) } }, e.create = function () { s.create.call(this), this.slider.api.addEventListener(MSSliderEvent.WAITING, this._update, this), this._update() }, e._update = function () { this.$bar[0].style.width = this.slider.api._delayProgress + "%" }, e.destroy = function () { s.destroy(), this.slider.api.removeEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE, this.align, this), this.slider.api.removeEventListener(MSSliderEvent.WAITING, this._update, this), this.$element.remove() }, window.MSTimerbar = i, MSSlideController.registerControl("timebar", i) }(jQuery), function (t) { "use strict"; var i = function (i) { BaseControl.call(this), this.options.color = "#A2A2A2", this.options.stroke = 10, this.options.radius = 4, this.options.autohide = !1, t.extend(this.options, i) }; i.extend(BaseControl); var e = i.prototype, s = BaseControl.prototype; e.setup = function () { if (s.setup.call(this), this.$element = t("<div></div>").addClass(this.options.prefix + "ctimer").appendTo(this.cont), this.$canvas = t("<canvas></canvas>").addClass("ms-ctimer-canvas").appendTo(this.$element), this.$bar = t("<div></div>").addClass("ms-ctimer-bullet").appendTo(this.$element), !this.$canvas[0].getContext) return this.destroy(), void (this.disable = !0); this.ctx = this.$canvas[0].getContext("2d"), this.prog = 0, this.__w = 2 * (this.options.radius + this.options.stroke / 2), this.$canvas[0].width = this.__w, this.$canvas[0].height = this.__w, this.checkHideUnder() }, e.create = function () { if (!this.disable) { s.create.call(this), this.slider.api.addEventListener(MSSliderEvent.WAITING, this._update, this); var t = this; this.$element.click(function () { t.slider.api.paused ? t.slider.api.resume() : t.slider.api.pause() }), this._update() } }, e._update = function () { var i = this; t(this).stop(!0).animate({ prog: .01 * this.slider.api._delayProgress }, { duration: 200, step: function () { i._draw() } }) }, e._draw = function () { this.ctx.clearRect(0, 0, this.__w, this.__w), this.ctx.beginPath(), this.ctx.arc(.5 * this.__w, .5 * this.__w, this.options.radius, 1.5 * Math.PI, 1.5 * Math.PI + 2 * Math.PI * this.prog, !1), this.ctx.strokeStyle = this.options.color, this.ctx.lineWidth = this.options.stroke, this.ctx.stroke() }, e.destroy = function () { s.destroy(), this.disable || (t(this).stop(!0), this.slider.api.removeEventListener(MSSliderEvent.WAITING, this._update, this), this.$element.remove()) }, window.MSCircleTimer = i, MSSlideController.registerControl("circletimer", i) }(jQuery), function (t) { "use strict"; window.MSLightbox = function (i) { BaseControl.call(this, i), this.options.autohide = !1, t.extend(this.options, i), this.data_list = [] }, MSLightbox.fadeDuratation = 400, MSLightbox.extend(BaseControl); var i = MSLightbox.prototype, e = BaseControl.prototype; i.setup = function () { e.setup.call(this), this.$element = t("<div></div>").addClass(this.options.prefix + "lightbox-btn").appendTo(this.cont), this.checkHideUnder() }, i.slideAction = function (i) { t("<div></div>").addClass(this.options.prefix + "lightbox-btn").appendTo(i.$element).append(t(i.$element.find(".ms-lightbox"))) }, i.create = function () { e.create.call(this) }, MSSlideController.registerControl("lightbox", MSLightbox) }(jQuery), function (t) { "use strict"; window.MSSlideInfo = function (i) { BaseControl.call(this, i), this.options.autohide = !1, this.options.align = null, this.options.inset = !1, this.options.margin = 10, this.options.size = 100, this.options.dir = "h", t.extend(this.options, i), this.data_list = [] }, MSSlideInfo.fadeDuratation = 400, MSSlideInfo.extend(BaseControl); var i = MSSlideInfo.prototype, e = BaseControl.prototype; i.setup = function () { if (this.$element = t("<div></div>").addClass(this.options.prefix + "slide-info").addClass("ms-dir-" + this.options.dir), e.setup.call(this), this.slider.$controlsCont === this.cont ? this.$element.appendTo(this.slider.$element) : this.$element.appendTo(this.cont), !this.options.insetTo && this.options.align) { var i = this.options.align; this.options.inset ? this.$element.css(i, this.options.margin) : "top" === i ? this.$element.prependTo(this.slider.$element).css({ "margin-bottom": this.options.margin, position: "relative" }) : "bottom" === i ? this.$element.css({ "margin-top": this.options.margin, position: "relative" }) : (this.slider.api.addEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE, this.align, this), this.align()), "v" === this.options.dir ? this.$element.width(this.options.size) : this.$element.css("min-height", this.options.size) } this.checkHideUnder() }, i.align = function (t) { if (!this.detached) { var i = this.options.align, e = this.slider.reserveSpace(i, this.options.size + 2 * this.options.margin); this.$element.css(i, -e - this.options.size - this.options.margin) } }, i.slideAction = function (i) { var e = t(i.$element.find(".ms-info")); e.detach(), this.data_list[i.index] = e }, i.create = function () { e.create.call(this), this.slider.api.addEventListener(MSSliderEvent.CHANGE_START, this.update, this), this.cindex = this.slider.api.index(), this.switchEle(this.data_list[this.cindex]) }, i.update = function () { var t = this.slider.api.index(); this.switchEle(this.data_list[t]), this.cindex = t }, i.switchEle = function (t) { if (this.current_ele) { this.current_ele[0].tween && this.current_ele[0].tween.stop(!0), this.current_ele[0].tween = CTween.animate(this.current_ele, MSSlideInfo.fadeDuratation, { opacity: 0 }, { complete: function () { this.detach(), this[0].tween = null, t.css("position", "relative") }, target: this.current_ele }), t.css("position", "absolute") } this.__show(t) }, i.__show = function (t) { t.appendTo(this.$element).css("opacity", "0"), this.current_ele && t.height(Math.max(t.height(), this.current_ele.height())), clearTimeout(this.tou), this.tou = setTimeout(function () { CTween.fadeIn(t, MSSlideInfo.fadeDuratation), t.css("height", "") }, MSSlideInfo.fadeDuratation), t[0].tween && t[0].tween.stop(!0), this.current_ele = t }, i.destroy = function () { e.destroy(), clearTimeout(this.tou), this.current_ele && this.current_ele[0].tween && this.current_ele[0].tween.stop("true"), this.$element.remove(), this.slider.api.removeEventListener(MSSliderEvent.RESERVED_SPACE_CHANGE, this.align, this), this.slider.api.removeEventListener(MSSliderEvent.CHANGE_START, this.update, this) }, MSSlideController.registerControl("slideinfo", MSSlideInfo) }(jQuery), function (t) { window.MSGallery = function (i, e) { this.id = i, this.slider = e, this.telement = t("#" + i), this.botcont = t("<div></div>").addClass("ms-gallery-botcont").appendTo(this.telement), this.thumbcont = t("<div></div>").addClass("ms-gal-thumbcont hide-thumbs").appendTo(this.botcont), this.playbtn = t("<div></div>").addClass("ms-gal-playbtn").appendTo(this.botcont), this.thumbtoggle = t("<div></div>").addClass("ms-gal-thumbtoggle").appendTo(this.botcont), e.control("thumblist", { insertTo: this.thumbcont, autohide: !1, dir: "h" }), e.control("slidenum", { insertTo: this.botcont, autohide: !1 }), e.control("slideinfo", { insertTo: this.botcont, autohide: !1 }), e.control("timebar", { insertTo: this.botcont, autohide: !1 }), e.control("bullets", { insertTo: this.botcont, autohide: !1 }) }; var i = MSGallery.prototype; i._init = function () { var t = this; this.slider.api.paused || this.playbtn.addClass("btn-pause"), this.playbtn.click(function () { t.slider.api.paused ? (t.slider.api.resume(), t.playbtn.addClass("btn-pause")) : (t.slider.api.pause(), t.playbtn.removeClass("btn-pause")) }), this.thumbtoggle.click(function () { t.vthumbs ? (t.thumbtoggle.removeClass("btn-hide"), t.vthumbs = !1, t.thumbcont.addClass("hide-thumbs")) : (t.thumbtoggle.addClass("btn-hide"), t.thumbcont.removeClass("hide-thumbs"), t.vthumbs = !0) }) }, i.setup = function () { var i = this; t(document).ready(function () { i._init() }) } }(jQuery), function (t) { var i = function (t, i, e) { return "https://api.flickr.com/services/rest/?method=flickr.photosets.getPhotos&api_key=" + t + "&photoset_id=" + i + "&per_page=" + e + "&extras=url_o,description,date_taken,owner_name,views&format=json&jsoncallback=?" }, e = function (t, i, e) { return "https://api.flickr.com/services/rest/?&method=flickr.people.getPublicPhotos&api_key=" + t + "&user_id=" + i + "&per_page=" + e + "&extras=url_o,description,date_taken,owner_name,views&format=json&jsoncallback=?" }, s = function (t, i, e, s, n, o) { return "_o" === n && o ? o.url_o : "https://farm" + t + ".staticflickr.com/" + i + "/" + e + "_" + s + n + ".jpg" }; window.MSFlickrV2 = function (s, n) { var o = { count: 10, type: "photoset", thumbSize: "q", imgSize: "c" }; if (this.slider = s, this.slider.holdOn(), n.key) { t.extend(o, n), this.options = o; var a = this; "photoset" === this.options.type ? t.getJSON(i(this.options.key, this.options.id, this.options.count), function (t) { a._photosData(t) }) : t.getJSON(e(this.options.key, this.options.id, this.options.count), function (t) { a.options.type = "photos", a._photosData(t) }), "" !== this.options.imgSize && "-" !== this.options.imgSize && (this.options.imgSize = "_" + this.options.imgSize), this.options.thumbSize = "_" + this.options.thumbSize, this.slideTemplate = this.slider.$element.find(".ms-slide")[0].outerHTML, this.slider.$element.find(".ms-slide").remove() } else this.errMsg("Flickr API Key required. Please add it in settings.") }; var n = MSFlickrV2.prototype; n._photosData = function (i) { if ("fail" !== i.stat) { var e = this; this.options.author || this.options.desc; t.each(i[this.options.type].photo, function (i, s) { var n = e.slideTemplate.replace(/{{[\w-]+}}/g, function (t) { return t = t.replace(/{{|}}/g, ""), o[t] ? o[t](s, e) : "{{" + t + "}}" }); t(n).appendTo(e.slider.$element) }), e._initSlider() } else this.errMsg("Flickr API ERROR#" + i.code + ": " + i.message) }, n.errMsg = function (i) { this.slider.$element.css("display", "block"), this.errEle || (this.errEle = t('<div style="font-family:Arial; color:red; font-size:12px; position:absolute; top:10px; left:10px"></div>').appendTo(this.slider.$loading)), this.errEle.html(i) }, n._initSlider = function () { this.slider.release() }; var o = { image: function (t, i) { return s(t.farm, t.server, t.id, t.secret, i.options.imgSize, t) }, thumb: function (t, i) { return s(t.farm, t.server, t.id, t.secret, i.options.thumbSize) }, title: function (t, i) { return t.title }, "owner-name": function (t, i) { return t.ownername }, "date-taken": function (t, i) { return t.datetaken }, views: function (t, i) { return t.views }, description: function (t, i) { return t.description._content } } }(jQuery), function (t) { window.MSFacebookGallery = function (i, e) { var s = { count: 10, type: "photostream", thumbSize: "320", imgSize: "orginal", https: !1, token: "" }; this.slider = i, this.slider.holdOn(), t.extend(s, e), this.options = s, this.graph = "https://graph.facebook.com"; var n = this; "photostream" === this.options.type ? t.getJSON(this.graph + "/" + this.options.username + "/photos/uploaded/?fields=source,name,link,images,from&limit=" + this.options.count + "&access_token=" + this.options.token, function (t) { n._photosData(t) }) : t.getJSON(this.graph + "/" + this.options.albumId + "/photos?fields=source,name,link,images,from&limit=" + this.options.count + "&access_token=" + this.options.token, function (t) { n._photosData(t) }), this.slideTemplate = this.slider.$element.find(".ms-slide")[0].outerHTML, this.slider.$element.find(".ms-slide").remove() }; var i = MSFacebookGallery.prototype; i._photosData = function (i) { if (i.error) this.errMsg("Facebook API ERROR#" + i.error.code + "(" + i.error.type + "): " + i.error.message); else { for (var e = this, n = (this.options.author || this.options.desc, 0), o = i.data.length; n !== o; n++) { var a = e.slideTemplate.replace(/{{[\w-]+}}/g, function (t) { return t = t.replace(/{{|}}/g, ""), s[t] ? s[t](i.data[n], e) : "{{" + t + "}}" }); t(a).appendTo(e.slider.$element) } e._initSlider() } }, i.errMsg = function (i) { this.slider.$element.css("display", "block"), this.errEle || (this.errEle = t('<div style="font-family:Arial; color:red; font-size:12px; position:absolute; top:10px; left:10px"></div>').appendTo(this.slider.$loading)), this.errEle.html(i) }, i._initSlider = function () { this.slider.release() }; var e = function (t, i) { if ("orginal" === i) return t[0].source; for (var e = 0, s = t.length; e !== s; e++)if (-1 !== t[e].source.indexOf(i + "x" + i)) return t[e].source; return t[0].source }, s = { image: function (t, i) { return e(t.images, i.options.imgSize) }, thumb: function (t, i) { return e(t.images, i.options.thumbSize) }, name: function (t, i) { return t.name }, "owner-name": function (t, i) { return t.from.name }, link: function (t, i) { return t.link } } }(jQuery), function (t) { "use strict"; window.MSScrollParallax = function (t, i, e, s) { this.fade = s, this.slider = t, this.parallax = i / 100, this.bgparallax = e / 100, t.api.addEventListener(MSSliderEvent.INIT, this.init, this), t.api.addEventListener(MSSliderEvent.DESTROY, this.destory, this), t.api.addEventListener(MSSliderEvent.CHANGE_END, this.resetLayers, this), t.api.addEventListener(MSSliderEvent.CHANGE_START, this.updateCurrentSlide, this) }, window.MSScrollParallax.setup = function (t, i, e, s) { if (!window._mobile) return null == i && (i = 50), null == e && (e = 40), new MSScrollParallax(t, i, e, s) }; var i = window.MSScrollParallax.prototype; i.init = function (i) { this.slider.$element.addClass("ms-scroll-parallax"), this.sliderOffset = this.slider.$element.offset().top, this.updateCurrentSlide(); for (var e, s = this.slider.api.view.slideList, n = 0, o = s.length; n !== o; n++)(e = s[n]).hasLayers && (e.layerController.$layers.wrap('<div class="ms-scroll-parallax-cont"></div>'), e.$scrollParallaxCont = e.layerController.$layers.parent()); t(window).on("scroll", { that: this }, this.moveParallax).trigger("scroll") }, i.resetLayers = function (t) { if (this.lastSlide) { var i = this.lastSlide.$scrollParallaxCont; window._css2d ? (i && (i[0].style[window._jcsspfx + "Transform"] = ""), this.lastSlide.hasBG && (this.lastSlide.$imgcont[0].style[window._jcsspfx + "Transform"] = "")) : (i && (i[0].style.top = ""), this.lastSlide.hasBG && (this.lastSlide.$imgcont[0].style.top = "0px")) } }, i.updateCurrentSlide = function (t) { this.lastSlide = this.currentSlide, this.currentSlide = this.slider.api.currentSlide, this.moveParallax({ data: { that: this } }) }, i.moveParallax = function (i) { var e = i.data.that, s = e.slider, n = e.sliderOffset, o = t(window).scrollTop(), a = e.currentSlide.$scrollParallaxCont, r = n - o; r <= 0 ? (a && (window._css3d ? a[0].style[window._jcsspfx + "Transform"] = "translateY(" + -r * e.parallax + "px) translateZ(0.4px)" : window._css2d ? a[0].style[window._jcsspfx + "Transform"] = "translateY(" + -r * e.parallax + "px)" : a[0].style.top = -r * e.parallax + "px"), e.updateSlidesBG(-r * e.bgparallax + "px", !0), a && e.fade && a.css("opacity", 1 - Math.min(1, -r / s.api.height))) : (a && (window._css2d ? a[0].style[window._jcsspfx + "Transform"] = "" : a[0].style.top = ""), e.updateSlidesBG("0px", !1), a && e.fade && a.css("opacity", 1)) }, i.updateSlidesBG = function (i, e) { for (var s = this.slider.api.view.slideList, n = !e || t.browser.msie || t.browser.opera ? "" : "fixed", o = 0, a = s.length; o !== a; o++)s[o].hasBG && (s[o].$imgcont[0].style.position = n, s[o].$imgcont[0].style.top = i), s[o].$bgvideocont && (s[o].$bgvideocont[0].style.position = n, s[o].$bgvideocont[0].style.top = i) }, i.destory = function () { slider.api.removeEventListener(MSSliderEvent.INIT, this.init, this), slider.api.removeEventListener(MSSliderEvent.DESTROY, this.destory, this), slider.api.removeEventListener(MSSliderEvent.CHANGE_END, this.resetLayers, this), slider.api.removeEventListener(MSSliderEvent.CHANGE_START, this.updateCurrentSlide, this), t(window).off("scroll", this.moveParallax) } }(jQuery), function (t, i, e) { var s = 0; if (e.Multislider) { var n = function (t) { this.slider = t, this.PId = s++ , this.slider.options.keyboard && t.api.addEventListener(MSSliderEvent.INIT, this.init, this) }; n.name = "MSKeyboardNav"; var o = n.prototype; o.init = function () { var e = this.slider.api; t(i).on("keydown.kbnav" + this.PId, function (t) { var i = t.which; 37 === i || 40 === i ? e.previous(!0) : 38 !== i && 39 !== i || e.next(!0) }) }, o.destroy = function () { t(i).off("keydown.kbnav" + this.PId), this.slider.api.removeEventListener(MSSliderEvent.INIT, this.init, this) }, Multislider.registerPlugin(n) } }(jQuery, document, window), function (t, i, e) { var s = 0, n = t(e), o = t(i); if (e.Multislider) { var a = function (i) { this.PId = s++ , this.slider = i, this.$slider = i.$element, this.slider.options.startOnAppear && (i.holdOn(), o.ready(t.proxy(this.init, this))) }; a.name = "MSStartOnAppear"; var r = a.prototype; r.init = function () { this.slider.api; n.on("scroll.soa" + this.PId, t.proxy(this._onScroll, this)).trigger("scroll") }, r._onScroll = function () { var t = n.scrollTop() + n.height(); this.$slider.offset().top < t && (n.off("scroll.soa" + this.PId), this.slider.release()) }, r.destroy = function () { }, Multislider.registerPlugin(a) } }(jQuery, document, window), function (t, i, e) { var s = { "hue-rotate": "deg", blur: "px" }, n = { opacity: 1, contrast: 1, brightness: 1, saturate: 1, "hue-rotate": 0, invert: 0, sepia: 0, blur: 0, grayscale: 0 }; if (i.Multislider) { var o = function (t) { this.slider = t, this.slider.options.filters && t.api.addEventListener(MSSliderEvent.INIT, this.init, this) }; o.name = "MSFilters"; var a = o.prototype; a.init = function () { var t = this.slider.api.view; this.filters = this.slider.options.filters, this.slideList = t.slideList, this.slidesCount = t.slidesCount, this.dimension = t[t.__dimension], this.target = "slide" === this.slider.options.filterTarget ? "$element" : "$bg_img", this.filterName = $.browser.webkit ? "WebkitFilter" : "filter"; var i = t.controller.__renderHook.fun, e = t.controller.__renderHook.ref; t.controller.renderCallback(function (t, s) { i.call(e, t, s), this.applyEffect(s) }, this), this.applyEffect(t.controller.value) }, a.applyEffect = function (t) { for (var i, e, s = 0; s < this.slidesCount; ++s)e = this.slideList[s], i = Math.min(1, Math.abs(t - e.position) / this.dimension), e[this.target] && ($.browser.msie ? null != this.filters.opacity && e[this.target].opacity(1 - this.filters.opacity * i) : e[this.target][0].style[this.filterName] = this.generateStyle(i)) }, a.generateStyle = function (t) { var i = ""; for (var e in this.filters) s[e] || "", i += e + "(" + (n[e] + (this.filters[e] - n[e]) * t) + ") "; return i }, a.destroy = function () { this.slider.api.removeEventListener(MSSliderEvent.INIT, this.init, this) }, Multislider.registerPlugin(o) } }(document, window), function (t, i, e) { if (e.Multislider) { var s = function (t) { this.slider = t, t.api.addEventListener(MSSliderEvent.INIT, this.init, this) }; s.name = "MSScrollToAction"; var n = s.prototype; n.init = function () { var t = this.slider.api; t.scrollToEnd = a, t.scrollTo = o }, n.destroy = function () { }; var o = function (i, e) { this.slider.$element; 0 !== (i = t(i).eq(0)).length && (console.log(i.offset().top, e), null == e && (e = 1.4), t("html, body").animate({ scrollTop: i.offset().top }, 1e3 * e, "easeInOutQuad")) }, a = function (i) { var e = this.slider.$element; null == i && (i = 1.4), t("html, body").animate({ scrollTop: e.offset().top + e.outerHeight(!1) }, 1e3 * i, "easeInOutQuad") }; Multislider.registerPlugin(s) } }(jQuery, document, window), function (t, i, e, s) { "use strict"; if (i.MSReady) for (var n = 0, o = MSReady.length; n !== o; n++)MSReady[n].call(null, t) }(jQuery, window, document) }(eds2_2);
;;;(function($){var defaultOptions={instanceGlobal:'EasyDnnSolutions1_1_instance',google:{maps:{api:{key:'',libraries:[]}}}},$window=$(window),getExplicitStyleValue=function($element,styleProperty){var propertyValue='',styleAttribute=$element.attr('style'),zIndexStartPosition,semicolonPosition;if(typeof styleAttribute!='string')
return propertyValue;zIndexStartPosition=styleAttribute.indexOf(' '+styleProperty+':');if(zIndexStartPosition==-1){zIndexStartPosition=styleAttribute.indexOf(';'+styleProperty+':');if(zIndexStartPosition==-1){zIndexStartPosition=styleAttribute.indexOf(styleProperty+':');if(zIndexStartPosition!=0)
return propertyValue;}else
zIndexStartPosition++;}else
zIndexStartPosition++;propertyValue=styleAttribute.substr(zIndexStartPosition+styleProperty.length+1);semicolonPosition=propertyValue.indexOf(';');if(semicolonPosition==-1)
return propertyValue.trim();propertyValue=propertyValue.substr(0,semicolonPosition).trim();return propertyValue;};GoogleHelper=function(parent){var self=this;self.parent=parent;self.maps={api:{loaded:(typeof window.google=='object'&&typeof window.google.maps=='object'),callbacks:[]}}
self.options=parent.options.google;self.public={maps:{api:{callback:function(){var i=0,l=self.maps.api.callbacks.length;self.maps.api.loaded=true;for(;i<l;i++)
self.maps.api.callbacks[i]();},load:function(){var tagId='eds_googleMapsApi',gMapsKey=self.options.maps.api.key,script,src='https://maps.googleapis.com/maps/api/js?v=3.50&callback='+self.parent.options.instanceGlobal+'.google.maps.api.callback';if($('script#'+tagId,self.parent.$head).length==0){if(typeof gMapsKey!='string')
gMapsKey='';if(gMapsKey!='')
gMapsKey='&key='+gMapsKey;script=document.createElement('script');script.type='text/javascript';script.id=tagId;if(self.options.maps.api.libraries)
src+='&libraries='+self.options.maps.api.libraries.join(',');src+=gMapsKey;script.src=src;self.parent.$head[0].appendChild(script);}
return self.parent;},onLoad:function(toExecute){if(self.maps.api.loaded)
toExecute();else{self.maps.api.callbacks.push(toExecute)
self.public.maps.api.load();}
return self.parent;}}}};return self.public;}
window.EasyDnnSolutions1_1=function(instanceOptions){var self=this;self.options=$.extend(true,{},defaultOptions,instanceOptions);self.google=new GoogleHelper(this);self.$head=$('html > head');$(function(){$('body').on('click','.eds_openModal',function(){var $clicked=$(this),$modalTarget=$('.eds_modalWrapper').filter(function(){return $clicked.data('targetId')==this.id||$(this).hasClass($clicked.data('targetClass'));}),$dnnModuleElements=$modalTarget.parents('.DnnModule'),$modalContent,$modalResizeWrapper,$modalContentTitle,initialHeight,resizeContent=function(){var windowHeight=$window.height(),ContentHDiff=Math.round($modalContent.outerHeight(true)-$modalContent.height()),resizeWrapperHDiff=Math.round($modalResizeWrapper.outerHeight(true)-$modalResizeWrapper.height()),titleHeight=$modalContentTitle.outerHeight(true),maxHeight=windowHeight-ContentHDiff-resizeWrapperHDiff-titleHeight;if(maxHeight<initialHeight)
$modalResizeWrapper.height(maxHeight);else
$modalResizeWrapper.css('height','');};$dnnModuleElements.each(function(){var $this=$(this);$this.data('previousZIndex',getExplicitStyleValue($this,'z-index')).css('z-index',99999);});$modalTarget.addClass("eds_modalVisible");$("> .eds_modalContent",$modalTarget).addClass("eds_fadeInDown");if($modalTarget.hasClass('eds_resizable')){$modalContent=$('>',$modalTarget);$modalContentTitle=$('> h3',$modalContent);$modalResizeWrapper=$('> div',$modalContent);initialHeight=$modalResizeWrapper.height();resizeContent()
$window.on('resize.eds_modalWrapper',function(){resizeContent();});}}).on('click','.eds_modalClose',function(){var $clicked=$(this),$modalTarget=$('.eds_modalWrapper'),$dnnModuleElements=$modalTarget.parents('.DnnModule');$dnnModuleElements.each(function(){var $this=$(this);$this.css('z-index',$this.data('previousZIndex'));});$modalTarget.filter(function(){return $clicked.data('targetId')==this.id||$(this).hasClass($clicked.data('targetClass'));}).removeClass("eds_modalVisible").css('z-index','');});});}
var initOptions=null;if($('#eds_js1_1').length>0){initOptions=$('#eds_js1_1').data('initJson')}
if($('meta[name="eds__GmapsInitData"]').length>0){initOptions=JSON.parse($('meta[name="eds__GmapsInitData"]').attr("content"));}
if(window[initOptions.instanceGlobal]==undefined&&initOptions!=null)
window[initOptions.instanceGlobal]=new EasyDnnSolutions1_1(initOptions);})(eds3_5_jq);
;;;