function initCheckbox(){$(".checkbox").length&&$(".checkbox").checkbox({buttonStyle:"btn-checkbox",buttonStyleChecked:"btn-checkbox",checkedClass:"fa fa-tick fa-2x",uncheckedClass:"fa fa-tick fa-2x fa-dark",constructorCallback:null,defaultState:!1,defaultEnabled:!0,checked:!1,enabled:!0})}function updateArrowText(){for(var f=$(this.$list.context).parents().eq(2).find(".recent-next div p"),e=$(this.$list.context).parents().eq(2).find(".recent-prev div p"),i="a div div div p",n=null,r=null,u=null,t=0;t<this.$slides.length;t++)if($(this.$slides[t]).hasClass("slick-active")){n=t;break}r=n==this.$slides.length-1?0:n+1;u=n==0?this.$slides.length-1:n-1;f.html($(this.$slides[r]).find(i).text());e.html($(this.$slides[u]).find(i).text())}function leftPositionFromTime(n,t){return n*globHourWidth+globHourWidth*(t/60)}if(function(n,t,i){typeof define=="function"&&define.amd?define(["jquery"],function(r){return i(r,n,t),r.mobile}):i(n.jQuery,n,t)}(this,document,function(n,t,i){(function(n,t,i,r){function h(n){while(n&&typeof n.originalEvent!="undefined")n=n.originalEvent;return n}function vt(t,i){var u=t.type,e,o,l,f,s,a,v,c,y;if(t=n.Event(t),t.type=i,e=t.originalEvent,o=n.event.props,u.search(/^(mouse|click)/)>-1&&(o=gt),e)for(v=o.length,f;v;)f=o[--v],t[f]=e[f];if(u.search(/mouse(down|up)|click/)>-1&&!t.which&&(t.which=1),u.search(/^touch/)!==-1&&(l=h(e),u=l.touches,s=l.changedTouches,a=u&&u.length?u[0]:s&&s.length?s[0]:r,a))for(c=0,y=ct.length;c<y;c++)f=ct[c],t[f]=a[f];return t}function v(t){for(var i={},r,u;t;){r=n.data(t,o);for(u in r)r[u]&&(i[u]=i.hasVirtualBinding=!0);t=t.parentNode}return i}function yt(t,i){for(var r;t;){if(r=n.data(t,o),r&&(!i||r[i]))return t;t=t.parentNode}return null}function pt(){l=!1}function tt(){l=!0}function wt(){s=0;y.length=0;d=!1;tt()}function bt(){pt()}function w(){it();c=setTimeout(function(){c=0;wt()},n.vmouse.resetTimerDuration)}function it(){c&&(clearTimeout(c),c=0)}function f(t,i,r){var u;return(r&&r[t]||!r&&yt(i.target,t))&&(u=vt(i,t),n(i.target).trigger(u)),u}function rt(t){var r=n.data(t.target,b),i;d||s&&s===r||(i=f("v"+t.type,t),i&&(i.isDefaultPrevented()&&t.preventDefault(),i.isPropagationStopped()&&t.stopPropagation(),i.isImmediatePropagationStopped()&&t.stopImmediatePropagation()))}function ut(t){var o=h(t).touches,r,i,u;o&&o.length===1&&(r=t.target,i=v(r),i.hasVirtualBinding&&(s=ni++,n.data(r,b,s),it(),bt(),e=!1,u=h(t).touches[0],lt=u.pageX,at=u.pageY,f("vmouseover",t,i),f("vmousedown",t,i)))}function ft(n){l||(e||f("vmousecancel",n,v(n.target)),e=!0,w())}function et(t){if(!l){var i=h(t).touches[0],o=e,r=n.vmouse.moveDistanceThreshold,u=v(t.target);e=e||Math.abs(i.pageX-lt)>r||Math.abs(i.pageY-at)>r;e&&!o&&f("vmousecancel",t,u);f("vmousemove",t,u);w()}}function ot(n){var t,i,r;l||(tt(),t=v(n.target),f("vmouseup",n,t),e||(r=f("vclick",n,t),r&&r.isDefaultPrevented()&&(i=h(n).changedTouches[0],y.push({touchID:s,x:i.clientX,y:i.clientY}),d=!0)),f("vmouseout",n,t),e=!1,w())}function st(t){var i=n.data(t,o),r;if(i)for(r in i)if(i[r])return!0;return!1}function ht(){}function kt(t){var i=t.substr(1);return{setup:function(){st(this)||n.data(this,o,{});var r=n.data(this,o);r[t]=!0;u[t]=(u[t]||0)+1;u[t]===1&&p.bind(i,rt);n(this).bind(i,ht);g&&(u.touchstart=(u.touchstart||0)+1,u.touchstart===1&&p.bind("touchstart",ut).bind("touchend",ot).bind("touchmove",et).bind("scroll",ft))},teardown:function(){--u[t];u[t]||p.unbind(i,rt);g&&(--u.touchstart,u.touchstart||p.unbind("touchstart",ut).unbind("touchmove",et).unbind("touchend",ot).unbind("scroll",ft));var r=n(this),f=n.data(this,o);f&&(f[t]=!1);r.unbind(i,ht);st(this)||r.removeData(o)}}}var o="virtualMouseBindings",b="virtualTouchID",k="vmouseover vmousedown vmousemove vmouseup vclick vmouseout vmousecancel".split(" "),ct="clientX clientY pageX pageY screenX screenY".split(" "),dt=n.event.mouseHooks?n.event.mouseHooks.props:[],gt=n.event.props.concat(dt),u={},c=0,lt=0,at=0,e=!1,y=[],d=!1,l=!1,g="addEventListener"in i,p=n(i),ni=1,s=0,nt,a;for(n.vmouse={moveDistanceThreshold:10,clickDistanceThreshold:10,resetTimerDuration:1500},a=0;a<k.length;a++)n.event.special[k[a]]=kt(k[a]);g&&i.addEventListener("click",function(t){var f=y.length,e=t.target,o,s,i,r,u,h;if(f)for(o=t.clientX,s=t.clientY,nt=n.vmouse.clickDistanceThreshold,i=e;i;){for(r=0;r<f;r++)if(u=y[r],h=0,i===e&&Math.abs(u.x-o)<nt&&Math.abs(u.y-s)<nt||n.data(i,b)===u.touchID){t.preventDefault();t.stopPropagation();return}i=i.parentNode}},!0)})(n,t,i),function(n){n.mobile={}}(n),function(n){var t={touch:"ontouchend"in i};n.mobile.support=n.mobile.support||{};n.extend(n.support,t);n.extend(n.mobile.support,t)}(n),function(n,t,r){function u(t,i,r){var u=r.type;r.type=i;n.event.dispatch.call(t,r);r.type=u}var e=n(i);n.each("touchstart touchmove touchend tap taphold swipe swipeleft swiperight scrollstart scrollstop".split(" "),function(t,i){n.fn[i]=function(n){return n?this.bind(i,n):this.trigger(i)};n.attrFn&&(n.attrFn[i]=!0)});var f=n.mobile.support.touch,s="touchmove scroll",h=f?"touchstart":"mousedown",c=f?"touchend":"mouseup",o=f?"touchmove":"mousemove";n.event.special.scrollstart={enabled:!0,setup:function(){function i(n,i){t=i;u(r,t?"scrollstart":"scrollstop",n)}var r=this,e=n(r),t,f;e.bind(s,function(r){n.event.special.scrollstart.enabled&&(t||i(r,!0),clearTimeout(f),f=setTimeout(function(){i(r,!1)},50))})}};n.event.special.tap={tapholdThreshold:750,setup:function(){var t=this,i=n(t);i.bind("vmousedown",function(r){function f(){clearTimeout(c)}function o(){f();i.unbind("vclick",s).unbind("vmouseup",f);e.unbind("vmousecancel",o)}function s(n){o();h===n.target&&u(t,"tap",n)}if(r.which&&r.which!==1)return!1;var h=r.target,l=r.originalEvent,c;i.bind("vmouseup",f).bind("vclick",s);e.bind("vmousecancel",o);c=setTimeout(function(){u(t,"taphold",n.Event("taphold",{target:h}))},n.event.special.tap.tapholdThreshold)})}};n.event.special.swipe={scrollSupressionThreshold:30,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,start:function(t){var i=t.originalEvent.touches?t.originalEvent.touches[0]:t;return{time:(new Date).getTime(),coords:[i.pageX,i.pageY],origin:n(t.target)}},stop:function(n){var t=n.originalEvent.touches?n.originalEvent.touches[0]:n;return{time:(new Date).getTime(),coords:[t.pageX,t.pageY]}},handleSwipe:function(t,i){i.time-t.time<n.event.special.swipe.durationThreshold&&Math.abs(t.coords[0]-i.coords[0])>n.event.special.swipe.horizontalDistanceThreshold&&Math.abs(t.coords[1]-i.coords[1])<n.event.special.swipe.verticalDistanceThreshold&&t.origin.trigger("swipe").trigger(t.coords[0]>i.coords[0]?"swipeleft":"swiperight")},setup:function(){var i=this,t=n(i);t.bind(h,function(i){function e(t){u&&(f=n.event.special.swipe.stop(t),Math.abs(u.coords[0]-f.coords[0])>n.event.special.swipe.scrollSupressionThreshold&&t.preventDefault())}var u=n.event.special.swipe.start(i),f;t.bind(o,e).one(c,function(){t.unbind(o,e);u&&f&&n.event.special.swipe.handleSwipe(u,f);u=f=r})})}};n.each({scrollstop:"scrollstart",taphold:"tap",swipeleft:"swipe",swiperight:"swipe"},function(t,i){n.event.special[t]={setup:function(){n(this).bind(i,n.noop)}}})}(n,this)}),!function(n){"use strict";n.fn.succinct=function(t){var i=n.extend({size:240,omission:"...",ignore:!0},t);return this.each(function(){var r,t,u=n(this),f=/[!-\/:-@\[-`{-~]$/,e=function(){u.each(function(){r=n(this).html();r.length>i.size&&(t=n.trim(r).substring(0,i.size).split(" ").slice(0,-1).join(" "),i.ignore&&(t=t.replace(f,"")),n(this).html(t+i.omission))})};e()})}}(jQuery),!function(n){var t=function(t,i,r){r&&(r.stopPropagation(),r.preventDefault());this.$element=n(t);this.$newElement=null;this.button=null;this.label=null;this.labelPrepend=null;this.options=n.extend({},n.fn.checkbox.defaults,this.$element.data(),typeof i=="object"&&i);this.init()};t.prototype={constructor:t,init:function(){this.$element.hide();this.$element.attr("autocomplete","off");this._createButtons()},_createButtons:function(){var t=this.$element.attr("class")!==undefined?this.$element.attr("class").split(/\s+/):"",i=this.getTemplate(),n;for(this.$element.after(i),this.$newElement=this.$element.next(".bootstrap-checkbox"),this.button=this.$newElement.find("button"),this.label=this.$newElement.find("span.label-checkbox"),this.labelPrepend=this.$newElement.find("span.label-prepend-checkbox"),n=0;n<t.length;n++)t[n]!="checkbox"&&this.$newElement.addClass(t[n]);this.button.addClass(this.options.buttonStyle);this.$element.data("default-state")!=undefined&&(this.options.defaultState=this.$element.data("default-state"));this.$element.data("default-enabled")!=undefined&&(this.options.defaultEnabled=this.$element.data("default-enabled"));this.$element.data("display-as-button")!=undefined&&(this.options.displayAsButton=this.$element.data("display-as-button"));this.options.indeterminate&&this.$element.prop("indeterminate",!0);this.checkEnabled();this.checkChecked();this.checkTabIndex();this.clickListener()},getTemplate:function(){var r=this.options.displayAsButton?" displayAsButton":"",t=this.$element.data("label")?'<span class="label-checkbox">'+this.$element.data("label")+"<\/span>":"",i=this.$element.data("label-prepend")?'<span class="label-prepend-checkbox">'+this.$element.data("label-prepend")+"<\/span>":"",n='<span class="button-checkbox bootstrap-checkbox"><button type="button" class="btn clearfix'+r+'">'+(this.$element.data("label-prepend")&&this.options.displayAsButton?i:"")+'<span class="icon '+this.options.checkedClass+'" style="display:none;"><\/span><span class="icon '+this.options.uncheckedClass+'"><\/span><span class="icon '+this.options.indeterminateClass+'" style="display:none;"><\/span>'+(this.$element.data("label")&&this.options.displayAsButton?t:"")+"<\/button><\/span>";return!this.options.displayAsButton&&(this.$element.data("label")||this.$element.data("label-prepend"))&&(n='<label class="'+this.options.labelClass+'">'+i+n+t+"<\/label>"),n},checkEnabled:function(){this.button.attr("disabled",this.$element.is(":disabled"));this.$newElement.toggleClass("disabled",this.$element.is(":disabled"))},checkTabIndex:function(){if(this.$element.is("[tabindex]")){var n=this.$element.attr("tabindex");this.button.attr("tabindex",n)}},checkChecked:function(){var t=/\s/g,i=".";this.$element.prop("indeterminate")==!0?(this.button.find("span."+this.options.checkedClass.replace(t,i)).hide(),this.button.find("span."+this.options.uncheckedClass.replace(t,i)).hide(),this.button.find("span."+this.options.indeterminateClass.replace(t,i)).show()):(this.$element.is(":checked")?(this.button.find("span."+this.options.checkedClass.replace(t,i)).show(),this.button.find("span."+this.options.uncheckedClass.replace(t,i)).hide()):(this.button.find("span."+this.options.checkedClass.replace(t,i)).hide(),this.button.find("span."+this.options.uncheckedClass.replace(t,i)).show()),this.button.find("span."+this.options.indeterminateClass.replace(t,i)).hide());this.$element.is(":checked")?this.options.buttonStyleChecked&&(this.button.removeClass(this.options.buttonStyle),this.button.addClass(this.options.buttonStyleChecked)):this.options.buttonStyleChecked&&(this.button.removeClass(this.options.buttonStyleChecked),this.button.addClass(this.options.buttonStyle));this.$element.is(":checked")?this.options.labelClassChecked&&n(this.$element).next("label").addClass(this.options.labelClassChecked):this.options.labelClassChecked&&n(this.$element).next("label").removeClass(this.options.labelClassChecked)},clickListener:function(){var n=this;this.button.on("click",function(t){t.preventDefault();n.$element.prop("indeterminate",!1);n.$element[0].click();n.checkChecked()});this.$element.on("change",function(){n.checkChecked()});this.$element.parents("form").on("reset",function(t){n.options.defaultState==null?n.$element.prop("indeterminate",!0):n.$element.prop("checked",n.options.defaultState);n.$element.prop("disabled",!n.options.defaultEnabled);n.checkEnabled();n.checkChecked();t.preventDefault()})},setOptions:function(n){n.checked!=undefined&&this.setChecked(n.checked);n.enabled!=undefined&&this.setEnabled(n.enabled);n.indeterminate!=undefined&&this.setIndeterminate(n.indeterminate)},setChecked:function(n){this.$element.prop("checked",n);this.$element.prop("indeterminate",!1);this.checkChecked()},setIndeterminate:function(n){this.$element.prop("indeterminate",n);this.checkChecked()},click:function(){this.$element.prop("indeterminate",!1);this.$element[0].click();this.checkChecked()},change:function(){this.$element.change()},setEnabled:function(n){this.$element.attr("disabled",!n);this.checkEnabled()},toggleEnabled:function(){this.$element.attr("disabled",!this.$element.is(":disabled"));this.checkEnabled()},refresh:function(){this.checkEnabled();this.checkChecked()},update:function(t){this.$element.next().find(".bootstrap-checkbox")&&(this.options=n.extend({},this.options,t),this.$element.next().remove(),this._createButtons())}};n.fn.checkbox=function(i,r){return this.each(function(){var f=n(this),u=f.data("checkbox"),e=typeof i=="object"&&i;u?typeof i=="string"?u[i](r):typeof i!="undefined"&&u.setOptions(i,r):(f.data("checkbox",u=new t(this,e,r)),u.options.constructorCallback!=undefined&&u.options.constructorCallback(u.$element,u.button,u.label,u.labelPrepend))})};n.fn.checkbox.defaults={displayAsButton:!1,indeterminate:!1,buttonStyle:"btn-link",buttonStyleChecked:null,checkedClass:"cb-icon-check",uncheckedClass:"cb-icon-check-empty",indeterminateClass:"cb-icon-check-indeterminate",defaultState:!1,defaultEnabled:!0,constructorCallback:null,labelClass:"checkbox bootstrap-checkbox",labelClassChecked:"active"}}(window.jQuery),function(n,t,i){"use strict";function r(t,i){return this.name=u,this.el=t,this.$el=n(t),this.options=n.extend({},f,i),this.$document=n(this.$el[0].ownerDocument),this.$body=this.$document.find("body"),this.moveTrigger="MSPointerMove touchmove mousemove",this.startTrigger="MSPointerDown touchstart mousedown",this.stopTrigger="MSPointerUp touchend mouseup",this.startTriggerArray=this.startTrigger.split(" "),this.moveTriggerArray=this.moveTrigger.split(" "),this.stopTriggerArray=this.stopTrigger.split(" "),this.stopEvents=[this.stopTrigger,this.options.stopEvents].join(" "),this.$container=this.options.constrainTo==="window"?this.$document:this.options.constrainTo&&this.options.constrainTo!=="parent"?n(this.options.constrainTo):this.$el.parent(),this.isPointerEventCompatible()&&this.applyMSDefaults(),this.CSSEaseHash=this.getCSSEaseHash(),this.scale=1,this.started=!1,this.disabled=!1,this.activeDropRegions=[],this.resetVelocityQueue(),this.init(),this}var u="pep",f={initiate:function(){},start:function(){},drag:function(){},stop:function(){},easing:null,rest:function(){},moveTo:!1,callIfNotStarted:["stop","rest"],startThreshold:[0,0],grid:[1,1],debug:!1,activeClass:"pep-active",multiplier:1,velocityMultiplier:2.5,shouldPreventDefault:!0,allowDragEventPropagation:!0,stopEvents:"",hardwareAccelerate:!0,useCSSTranslation:!0,disableSelect:!0,cssEaseString:"cubic-bezier(0.190, 1.000, 0.220, 1.000)",cssEaseDuration:1e3,shouldEase:!0,droppable:!1,droppableActiveClass:"pep-dpa",overlapFunction:!1,constrainTo:!1,removeMargins:!0,place:!0,deferPlacement:!1,axis:null,forceNonCSS3Movement:!1,elementsWithInteraction:"input",revert:!1,revertAfter:"stop",revertIf:function(){return!0},ignoreRightClick:!0,startPos:{left:null,top:null}};r.prototype.init=function(){this.options.debug&&this.buildDebugDiv();this.options.disableSelect&&this.disableSelect();this.options.place&&!this.options.deferPlacement&&(this.positionParent(),this.placeObject());this.ev={};this.pos={};this.subscribe()};r.prototype.subscribe=function(){var n=this;this.onStartEvent=function(t){n.handleStart(t)};this.$el.on(this.startTrigger,this.onStartEvent);this.onStartEventOnElementsWithInteraction=function(n){n.stopPropagation()};this.$el.on(this.startTrigger,this.options.elementsWithInteraction,this.onStartEventOnElementsWithInteraction);this.onStopEvents=function(t){n.handleStop(t)};this.$document.on(this.stopEvents,this.onStopEvents);this.onMoveEvents=function(t){n.moveEvent=t};this.$document.on(this.moveTrigger,this.onMoveEvents)};r.prototype.unsubscribe=function(){this.$el.off(this.startTrigger,this.onStartEvent);this.$el.off(this.startTrigger,this.options.elementsWithInteraction,this.onStartEventOnElementsWithInteraction);this.$document.off(this.stopEvents,this.onStopEvents);this.$document.off(this.moveTrigger,this.onMoveEvents)};r.prototype.handleStart=function(n){var t=this,i;if(this.isValidMoveEvent(n)&&!this.disabled&&!(this.options.ignoreRightClick&&n.which===3)){if(this.isPointerEventCompatible()&&n.preventManipulation&&n.preventManipulation(),n=this.normalizeEvent(n),this.options.place&&this.options.deferPlacement&&(this.positionParent(),this.placeObject()),this.log({type:"event",event:n.type}),this.options.hardwareAccelerate&&!this.hardwareAccelerated&&(this.hardwareAccelerate(),this.hardwareAccelerated=!0),i=this.options.initiate.call(this,n,this),i===!1)return;clearTimeout(this.restTimeout);this.$el.addClass(this.options.activeClass);this.removeCSSEasing();this.startX=this.ev.x=n.pep.x;this.startY=this.ev.y=n.pep.y;this.initialPosition=this.initialPosition||this.$el.position();this.startEvent=this.moveEvent=n;this.active=!0;this.options.shouldPreventDefault&&n.preventDefault();this.options.allowDragEventPropagation||n.stopPropagation(),function r(){t.active&&(t.handleMove(),t.requestAnimationFrame(r))}(),function u(){t.options.easing&&(t.easing&&t.options.easing.call(t,null,t),t.requestAnimationFrame(u))}()}};r.prototype.handleMove=function(){var r,u,o,s,h;if(typeof this.moveEvent!="undefined"){var i=this.normalizeEvent(this.moveEvent),f=t.parseInt(i.pep.x/this.options.grid[0])*this.options.grid[0],e=t.parseInt(i.pep.y/this.options.grid[1])*this.options.grid[1];if(this.addToLIFO({time:i.timeStamp,x:f,y:e}),n.inArray(i.type,this.startTriggerArray)>-1?(r=0,u=0):(r=f-this.ev.x,u=e-this.ev.y),this.dx=r,this.dy=u,this.ev.x=f,this.ev.y=e,r===0&&u===0){this.log({type:"event",event:"** stopped **"});return}if(o=Math.abs(this.startX-f),s=Math.abs(this.startY-e),!this.started&&(o>this.options.startThreshold[0]||s>this.options.startThreshold[1])&&(this.started=!0,this.$el.addClass("pep-start"),this.options.start.call(this,this.startEvent,this)),this.options.droppable&&this.calculateActiveDropRegions(),h=this.options.drag.call(this,i,this),h===!1){this.resetVelocityQueue();return}this.log({type:"event",event:i.type});this.log({type:"event-coords",x:this.ev.x,y:this.ev.y});this.log({type:"velocity"});this.doMoveTo(r,u)}};r.prototype.doMoveTo=function(n,t){var i=this.handleConstraint(n,t),r,u;typeof this.options.moveTo=="function"?(r=n>=0?"+="+Math.abs(n/this.scale)*this.options.multiplier:"-="+Math.abs(n/this.scale)*this.options.multiplier,u=t>=0?"+="+Math.abs(t/this.scale)*this.options.multiplier:"-="+Math.abs(t/this.scale)*this.options.multiplier,this.options.constrainTo&&(r=i.x!==!1?i.x:r,u=i.y!==!1?i.y:u),this.options.axis==="x"&&(u=i.y),this.options.axis==="y"&&(r=i.x),this.options.moveTo.call(this,r,u)):this.shouldUseCSSTranslation()?(n=n/this.scale*this.options.multiplier,t=t/this.scale*this.options.multiplier,this.options.constrainTo&&(n=i.x===!1?n:0,t=i.y===!1?t:0),this.options.axis==="x"&&(t=0),this.options.axis==="y"&&(n=0),this.moveToUsingTransforms(n,t)):(r=n>=0?"+="+Math.abs(n/this.scale)*this.options.multiplier:"-="+Math.abs(n/this.scale)*this.options.multiplier,u=t>=0?"+="+Math.abs(t/this.scale)*this.options.multiplier:"-="+Math.abs(t/this.scale)*this.options.multiplier,this.options.constrainTo&&(r=i.x!==!1?i.x:r,u=i.y!==!1?i.y:u),this.options.axis==="x"&&(u=i.y),this.options.axis==="y"&&(r=i.x),this.moveTo(r,u))};r.prototype.handleStop=function(t){this.active&&(this.log({type:"event",event:t.type}),this.active=!1,this.easing=!0,this.$el.removeClass("pep-start").addClass("pep-ease"),this.options.droppable&&this.calculateActiveDropRegions(),(this.started||!this.started&&n.inArray("stop",this.options.callIfNotStarted)>-1)&&this.options.stop.call(this,t,this),this.options.shouldEase?this.ease(t,this.started):this.removeActiveClass(),this.options.revert&&(this.options.revertAfter==="stop"||!this.options.shouldEase)&&this.options.revertIf&&this.options.revertIf.call(this)&&this.revert(),this.started=!1,this.resetVelocityQueue())};r.prototype.ease=function(t,i){var l=this.$el.position(),e=this.velocity(),a=this.dt,s=e.x/this.scale*this.options.multiplier,h=e.y/this.scale*this.options.multiplier,o=this.handleConstraint(s,h,!0),u,f,c,r;this.cssAnimationsSupported()&&this.$el.css(this.getCSSEaseHash());u=e.x>0?"+="+s:"-="+Math.abs(s);f=e.y>0?"+="+h:"-="+Math.abs(h);this.options.constrainTo&&(u=o.x!==!1?o.x:u,f=o.y!==!1?o.y:f);this.options.axis==="x"&&(f="+=0");this.options.axis==="y"&&(u="+=0");c=!this.cssAnimationsSupported()||this.options.forceNonCSS3Movement;typeof this.options.moveTo=="function"?this.options.moveTo.call(this,u,f):this.moveTo(u,f,c);r=this;this.restTimeout=setTimeout(function(){r.options.droppable&&r.calculateActiveDropRegions();r.easing=!1;(i||!i&&n.inArray("rest",r.options.callIfNotStarted)>-1)&&r.options.rest.call(r,t,r);r.options.revert&&r.options.revertAfter==="ease"&&r.options.shouldEase&&r.options.revertIf&&r.options.revertIf.call(r)&&r.revert();r.removeActiveClass()},this.options.cssEaseDuration)};r.prototype.normalizeEvent=function(n){return n.pep={},this.isPointerEventCompatible()||!this.isTouch(n)?(n.pageX?(n.pep.x=n.pageX,n.pep.y=n.pageY):(n.pep.x=n.originalEvent.pageX,n.pep.y=n.originalEvent.pageY),n.pep.type=n.type):(n.pep.x=n.originalEvent.touches[0].pageX,n.pep.y=n.originalEvent.touches[0].pageY,n.pep.type=n.type),n};r.prototype.resetVelocityQueue=function(){this.velocityQueue=new Array(5)};r.prototype.moveTo=function(n,t,i){this.log({type:"delta",x:n,y:t});i?this.$el.animate({top:t,left:n},0,"easeOutQuad",{queue:!1}):this.$el.stop(!0,!1).css({top:t,left:n})};r.prototype.moveToUsingTransforms=function(n,t){var i=this.matrixToArray(this.matrixString());this.cssX||(this.cssX=this.xTranslation(i));this.cssY||(this.cssY=this.yTranslation(i));this.cssX=this.cssX+n;this.cssY=this.cssY+t;this.log({type:"delta",x:n,y:t});i[4]=this.cssX;i[5]=this.cssY;this.translation=this.arrayToMatrix(i);this.transform(this.translation)};r.prototype.transform=function(n){this.$el.css({"-webkit-transform":n,"-moz-transform":n,"-ms-transform":n,"-o-transform":n,transform:n})};r.prototype.xTranslation=function(n){return n=n||this.matrixToArray(this.matrixString()),parseInt(n[4],10)};r.prototype.yTranslation=function(n){return n=n||this.matrixToArray(this.matrixString()),parseInt(n[5],10)};r.prototype.matrixString=function(){var t=function(n){return!(!n||n==="none"||n.indexOf("matrix")<0)},n="matrix(1, 0, 0, 1, 0, 0)";return t(this.$el.css("-webkit-transform"))&&(n=this.$el.css("-webkit-transform")),t(this.$el.css("-moz-transform"))&&(n=this.$el.css("-moz-transform")),t(this.$el.css("-ms-transform"))&&(n=this.$el.css("-ms-transform")),t(this.$el.css("-o-transform"))&&(n=this.$el.css("-o-transform")),t(this.$el.css("transform"))&&(n=this.$el.css("transform")),n};r.prototype.matrixToArray=function(n){return n.split("(")[1].split(")")[0].split(",")};r.prototype.arrayToMatrix=function(n){return"matrix("+n.join(",")+")"};r.prototype.addToLIFO=function(n){var t=this.velocityQueue;t=t.slice(1,t.length);t.push(n);this.velocityQueue=t};r.prototype.velocity=function(){for(var t=0,i=0,n=0;n<this.velocityQueue.length-1;n++)this.velocityQueue[n]&&(t+=this.velocityQueue[n+1].x-this.velocityQueue[n].x,i+=this.velocityQueue[n+1].y-this.velocityQueue[n].y,this.dt=this.velocityQueue[n+1].time-this.velocityQueue[n].time);return{x:t*this.options.velocityMultiplier,y:i*this.options.velocityMultiplier}};r.prototype.revert=function(){this.shouldUseCSSTranslation()&&this.moveToUsingTransforms(-this.xTranslation(),-this.yTranslation());this.moveTo(this.initialPosition.left,this.initialPosition.top)};r.prototype.requestAnimationFrame=function(n){return t.requestAnimationFrame&&t.requestAnimationFrame(n)||t.webkitRequestAnimationFrame&&t.webkitRequestAnimationFrame(n)||t.mozRequestAnimationFrame&&t.mozRequestAnimationFrame(n)||t.oRequestAnimationFrame&&t.mozRequestAnimationFrame(n)||t.msRequestAnimationFrame&&t.msRequestAnimationFrame(n)||t.setTimeout(n,1e3/60)};r.prototype.positionParent=function(){this.options.constrainTo&&!this.parentPositioned&&(this.parentPositioned=!0,this.options.constrainTo==="parent"?this.$container.css({position:"relative"}):this.options.constrainTo==="window"&&this.$container.get(0).nodeName!=="#document"&&this.$container.css("position")!=="static"&&this.$container.css({position:"static"}))};r.prototype.placeObject=function(){this.objectPlaced||(this.objectPlaced=!0,this.offset=this.options.constrainTo==="parent"||this.hasNonBodyRelative()?this.$el.position():this.$el.offset(),parseInt(this.$el.css("left"),10)&&(this.offset.left=this.$el.css("left")),typeof this.options.startPos.left=="number"&&(this.offset.left=this.options.startPos.left),parseInt(this.$el.css("top"),10)&&(this.offset.top=this.$el.css("top")),typeof this.options.startPos.top=="number"&&(this.offset.top=this.options.startPos.top),this.options.removeMargins&&this.$el.css({margin:0}),this.$el.css({position:"absolute",top:this.offset.top,left:this.offset.left}))};r.prototype.hasNonBodyRelative=function(){return this.$el.parents().filter(function(){var t=n(this);return t.is("body")||t.css("position")==="relative"}).length>1};r.prototype.setScale=function(n){this.scale=n};r.prototype.setMultiplier=function(n){this.options.multiplier=n};r.prototype.removeCSSEasing=function(){this.cssAnimationsSupported()&&this.$el.css(this.getCSSEaseHash(!0))};r.prototype.disableSelect=function(){this.$el.css({"-webkit-touch-callout":"none","-webkit-user-select":"none","-khtml-user-select":"none","-moz-user-select":"none","-ms-user-select":"none","user-select":"none"})};r.prototype.removeActiveClass=function(){this.$el.removeClass([this.options.activeClass,"pep-ease"].join(" "))};r.prototype.handleConstraint=function(t,r,u){var c=this.$el.position(),f,e,o,s,h;return this.pos.x=c.left,this.pos.y=c.top,f={x:!1,y:!1},this.log({type:"pos-coords",x:this.pos.x,y:this.pos.y}),n.isArray(this.options.constrainTo)?(this.options.constrainTo[3]!==i&&this.options.constrainTo[1]!==i&&(o=this.options.constrainTo[1]===!1?Infinity:this.options.constrainTo[1],s=this.options.constrainTo[3]===!1?-Infinity:this.options.constrainTo[3]),this.options.constrainTo[0]!==!1&&this.options.constrainTo[2]!==!1&&(e=this.options.constrainTo[2]===!1?Infinity:this.options.constrainTo[2],h=this.options.constrainTo[0]===!1?-Infinity:this.options.constrainTo[0]),this.pos.x+t<s&&(f.x=s),this.pos.y+r<h&&(f.y=h)):typeof this.options.constrainTo=="string"&&(s=0,h=0,o=this.$container.width()-this.$el.outerWidth(),e=this.$container.height()-this.$el.outerHeight(),this.pos.x+t<0&&(f.x=0),this.pos.y+r<0&&(f.y=0)),this.pos.x+t>o&&(f.x=o),this.pos.y+r>e&&(f.y=e),this.shouldUseCSSTranslation()&&u&&(f.x===s&&this.xTranslation()&&(f.x=s-this.xTranslation()),f.x===o&&this.xTranslation()&&(f.x=o-this.xTranslation()),f.y===h&&this.yTranslation()&&(f.y=h-this.yTranslation()),f.y===e&&this.yTranslation()&&(f.y=e-this.yTranslation())),f};r.prototype.getCSSEaseHash=function(n){typeof n=="undefined"&&(n=!1);var t;if(n)t="";else{if(this.CSSEaseHash)return this.CSSEaseHash;t=["all",this.options.cssEaseDuration+"ms",this.options.cssEaseString].join(" ")}return{"-webkit-transition":t,"-moz-transition":t,"-ms-transition":t,"-o-transition":t,transition:t}};r.prototype.calculateActiveDropRegions=function(){var t=this;this.activeDropRegions.length=0;n.each(n(this.options.droppable),function(i,r){var u=n(r);t.isOverlapping(u,t.$el)?(u.addClass(t.options.droppableActiveClass),t.activeDropRegions.push(u)):u.removeClass(t.options.droppableActiveClass)})};r.prototype.isOverlapping=function(n,t){if(this.options.overlapFunction)return this.options.overlapFunction(n,t);var i=n[0].getBoundingClientRect(),r=t[0].getBoundingClientRect();return!(i.right<r.left||i.left>r.right||i.bottom<r.top||i.top>r.bottom)};r.prototype.isTouch=function(n){return n.type.search("touch")>-1};r.prototype.isPointerEventCompatible=function(){return"MSPointerEvent"in t};r.prototype.applyMSDefaults=function(){this.$el.css({"-ms-touch-action":"none","touch-action":"none","-ms-scroll-chaining":"none","-ms-scroll-limit":"0 0 0 0"})};r.prototype.isValidMoveEvent=function(n){return!this.isTouch(n)||this.isTouch(n)&&n.originalEvent&&n.originalEvent.touches&&n.originalEvent.touches.length===1};r.prototype.shouldUseCSSTranslation=function(){if(this.options.forceNonCSS3Movement)return!1;if(typeof this.useCSSTranslation!="undefined")return this.useCSSTranslation;var n=!1;return n=this.options.useCSSTranslation&&(typeof Modernizr=="undefined"||Modernizr.csstransforms)?!0:!1,this.useCSSTranslation=n,n};r.prototype.cssAnimationsSupported=function(){var t;if(typeof this.cssAnimationsSupport!="undefined")return this.cssAnimationsSupport;if(typeof Modernizr!="undefined"&&Modernizr.cssanimations)return this.cssAnimationsSupport=!0,!0;var n=!1,f=document.createElement("div"),e="animation",o="",r="Webkit Moz O ms Khtml".split(" "),u="";if(f.style.animationName&&(n=!0),n===!1)for(t=0;t<r.length;t++)if(f.style[r[t]+"AnimationName"]!==i){u=r[t];e=u+"Animation";o="-"+u.toLowerCase()+"-";n=!0;break}return this.cssAnimationsSupport=n,n};r.prototype.hardwareAccelerate=function(){this.$el.css({"-webkit-perspective":1e3,perspective:1e3,"-webkit-backface-visibility":"hidden","backface-visibility":"hidden"})};r.prototype.getMovementValues=function(){return{ev:this.ev,pos:this.pos,velocity:this.velocity()}};r.prototype.buildDebugDiv=function(){var t,i;n("#pep-debug").length===0&&(t=n("<div><\/div>"),t.attr("id","pep-debug").append("<div style='font-weight:bold; background: red; color: white;'>DEBUG MODE<\/div>").append("<div id='pep-debug-event'>no event<\/div>").append("<div id='pep-debug-ev-coords'>event coords: <span class='pep-x'>-<\/span>, <span class='pep-y'>-<\/span><\/div>").append("<div id='pep-debug-pos-coords'>position coords: <span class='pep-x'>-<\/span>, <span class='pep-y'>-<\/span><\/div>").append("<div id='pep-debug-velocity'>velocity: <span class='pep-x'>-<\/span>, <span class='pep-y'>-<\/span><\/div>").append("<div id='pep-debug-delta'>&Delta; movement: <span class='pep-x'>-<\/span>, <span class='pep-y'>-<\/span><\/div>").css({position:"fixed",bottom:5,right:5,zIndex:99999,textAlign:"right",fontFamily:"Arial, sans",fontSize:10,border:"1px solid #DDD",padding:"3px",background:"white",color:"#333"}));i=this;setTimeout(function(){i.debugElements={$event:n("#pep-debug-event"),$velocityX:n("#pep-debug-velocity .pep-x"),$velocityY:n("#pep-debug-velocity .pep-y"),$dX:n("#pep-debug-delta .pep-x"),$dY:n("#pep-debug-delta .pep-y"),$evCoordsX:n("#pep-debug-ev-coords .pep-x"),$evCoordsY:n("#pep-debug-ev-coords .pep-y"),$posCoordsX:n("#pep-debug-pos-coords .pep-x"),$posCoordsY:n("#pep-debug-pos-coords .pep-y")}},0);n("body").append(t)};r.prototype.log=function(n){if(this.options.debug)switch(n.type){case"event":this.debugElements.$event.text(n.event);break;case"pos-coords":this.debugElements.$posCoordsX.text(n.x);this.debugElements.$posCoordsY.text(n.y);break;case"event-coords":this.debugElements.$evCoordsX.text(n.x);this.debugElements.$evCoordsY.text(n.y);break;case"delta":this.debugElements.$dX.text(n.x);this.debugElements.$dY.text(n.y);break;case"velocity":var t=this.velocity();this.debugElements.$velocityX.text(Math.round(t.x));this.debugElements.$velocityY.text(Math.round(t.y))}};r.prototype.toggle=function(n){this.disabled=typeof n=="undefined"?!this.disabled:!n};n.extend(n.easing,{easeOutQuad:function(n,t,i,r,u){return-r*(t/=u)*(t-2)+i},easeOutCirc:function(n,t,i,r,u){return r*Math.sqrt(1-(t=t/u-1)*t)+i},easeOutExpo:function(n,t,i,r,u){return t===u?i+r:r*(-Math.pow(2,-10*t/u)+1)+i}});n.fn[u]=function(t){return this.each(function(){if(!n.data(this,"plugin_"+u)){var i=new r(this,t);n.data(this,"plugin_"+u,i);n.pep.peps.push(i)}})};n.pep={};n.pep.peps=[];n.pep.toggleAll=function(t){n.each(this.peps,function(n,i){i.toggle(t)})};n.pep.unbind=function(n){var t=n.data("plugin_"+u);typeof t!="undefined"&&(t.toggle(!1),t.unsubscribe(),n.removeData("plugin_"+u))}}(jQuery,window),function(n){var t=0,i=null;n.fn.resetBreakpoints=function(){n(window).unbind("resize");i&&clearInterval(i);t=0};n.fn.setBreakpoints=function(r){var u=jQuery.extend({distinct:!0,breakpoints:[320,480,768,1024]},r);i=setInterval(function(){var r=n(window).width(),e=!1,i,f;for(i in u.breakpoints.sort(function(n,t){return t-n})){if(!e&&r>=u.breakpoints[i]&&t<u.breakpoints[i]){if(u.distinct){for(f in u.breakpoints.sort(function(n,t){return t-n}))n("body").hasClass("breakpoint-"+u.breakpoints[f])&&(n("body").removeClass("breakpoint-"+u.breakpoints[f]),n(window).trigger("exitBreakpoint"+u.breakpoints[f]));e=!0}n("body").addClass("breakpoint-"+u.breakpoints[i]);n(window).trigger("enterBreakpoint"+u.breakpoints[i])}r<u.breakpoints[i]&&t>=u.breakpoints[i]&&(n("body").removeClass("breakpoint-"+u.breakpoints[i]),n(window).trigger("exitBreakpoint"+u.breakpoints[i]));u.distinct&&r>=u.breakpoints[i]&&r<u.breakpoints[i-1]&&t>r&&t>0&&!n("body").hasClass("breakpoint-"+u.breakpoints[i])&&(n("body").addClass("breakpoint-"+u.breakpoints[i]),n(window).trigger("enterBreakpoint"+u.breakpoints[i]))}t!=r&&(t=r)},250)}}(jQuery),function(n){jQuery.fn.extend({slimScroll:function(i){var r=n.extend({width:"auto",height:"250px",size:"7px",color:"#000",position:"right",distance:"1px",start:"top",opacity:.4,alwaysVisible:!1,disableFadeOut:!1,railVisible:!1,railColor:"#333",railOpacity:.2,railDraggable:!0,railClass:"slimScrollRail",barClass:"slimScrollBar",wrapperClass:"slimScrollDiv",allowPageScroll:!1,wheelStep:20,touchScrollStep:200,borderRadius:"7px",railBorderRadius:"7px"},i);return this.each(function(){function y(t){var t,i,f;l&&(t=t||window.event,i=0,t.wheelDelta&&(i=-t.wheelDelta/120),t.detail&&(i=t.detail/3),f=t.target||t.srcTarget||t.srcElement,n(f).closest("."+r.wrapperClass).is(u.parent())&&o(i,!0),t.preventDefault&&!h&&t.preventDefault(),h||(t.returnValue=!1))}function o(n,t,i){var e,l,o;h=!1;e=n;l=u.outerHeight()-f.outerHeight();t&&(e=parseInt(f.css("top"))+n*parseInt(r.wheelStep)/100*f.outerHeight(),e=Math.min(Math.max(e,0),l),e=n>0?Math.ceil(e):Math.floor(e),f.css({top:e+"px"}));s=parseInt(f.css("top"))/(u.outerHeight()-f.outerHeight());e=s*(u[0].scrollHeight-u.outerHeight());i&&(e=n,o=e/u[0].scrollHeight*u.outerHeight(),o=Math.min(Math.max(o,0),l),f.css({top:o+"px"}));u.scrollTop(e);u.trigger("slimscrolling",~~e);p();c()}function ht(){window.addEventListener?(this.addEventListener("DOMMouseScroll",y,!1),this.addEventListener("mousewheel",y,!1),this.addEventListener("MozMousePixelScroll",y,!1)):document.attachEvent("onmousewheel",y)}function it(){a=Math.max(u.outerHeight()/u[0].scrollHeight*u.outerHeight(),st);f.css({height:a+"px"});var n=a==u.outerHeight()?"none":"block";f.css({display:n})}function p(){if(it(),clearTimeout(rt),s==~~s){if(h=r.allowPageScroll,ut!=s){var n=~~s==0?"top":"bottom";u.trigger("slimscroll",n)}}else h=!1;if(ut=s,a>=u.outerHeight()){h=!0;return}f.stop(!0,!0).fadeIn("fast");r.railVisible&&e.stop(!0,!0).fadeIn("fast")}function c(){r.alwaysVisible||(rt=setTimeout(function(){r.disableFadeOut&&l||w||b||(f.fadeOut("slow"),e.fadeOut("slow"))},1e3))}var l,w,b,rt,k,a,s,ut,d="<div><\/div>",st=30,h=!1,u=n(this),v,g,ft,nt,tt,ot;if(u.parent().hasClass(r.wrapperClass)){if(v=u.scrollTop(),f=u.parent().find("."+r.barClass),e=u.parent().find("."+r.railClass),it(),n.isPlainObject(i)){if("height"in i&&i.height=="auto"&&(u.parent().css("height","auto"),u.css("height","auto"),g=u.parent().parent().height(),u.parent().css("height",g),u.css("height",g)),"scrollTo"in i)v=parseInt(r.scrollTo);else if("scrollBy"in i)v+=parseInt(r.scrollBy);else if("destroy"in i){f.remove();e.remove();u.unwrap();return}o(v,!1,!0)}return}r.height=r.height=="auto"?u.parent().height():r.height;ft=n(d).addClass(r.wrapperClass).css({position:"relative",overflow:"hidden",width:r.width,height:parseInt(r.height)+26+"px"});u.css({overflow:"hidden",width:r.width,height:r.height});var e=n(d).addClass(r.railClass).css({width:r.size,height:"100%",position:"absolute",top:0,display:r.alwaysVisible&&r.railVisible?"none":"none","border-radius":r.railBorderRadius,background:r.railColor,opacity:r.railOpacity,zIndex:90}),f=n(d).addClass(r.barClass).css({background:r.color,width:r.size,position:"absolute",top:0,opacity:r.opacity,display:r.alwaysVisible?"block":"none","border-radius":r.borderRadius,BorderRadius:r.borderRadius,MozBorderRadius:r.borderRadius,WebkitBorderRadius:r.borderRadius,zIndex:99}),et=r.position=="right"?{right:r.distance}:{left:r.distance};e.css(et);f.css(et);u.wrap(ft);nt=n("<div><div><\/div><\/div>").addClass("slimScrollRailTop").css({width:r.size,height:r.size,position:"absolute",top:0,display:r.alwaysVisible&&r.railVisible?"block":"none",opacity:r.railOpacity,zIndex:90});e.append(nt);tt=n("<div><div><\/div><\/div>").addClass("slimScrollRailBottom").css({width:r.size,height:r.size,position:"absolute",bottom:0,display:r.alwaysVisible&&r.railVisible?"block":"none",opacity:r.railOpacity,zIndex:90});e.append(tt);ot=n("<div><hr/><hr/><hr/><\/div>").addClass("slimScrollBarInner").css({display:r.alwaysVisible?"block":"none",zIndex:99});f.append(ot);u.parent().append(f);u.parent().append(e);r.railDraggable&&f.bind("mousedown",function(i){var r=n(document);return b=!0,t=parseFloat(f.css("top")),pageY=i.pageY,r.bind("mousemove.slimscroll",function(n){currTop=t+n.pageY-pageY;f.css("top",currTop);o(0,f.position().top,!1)}),r.bind("mouseup.slimscroll",function(){b=!1;c();r.unbind(".slimscroll")}),!1}).bind("selectstart.slimscroll",function(n){return n.stopPropagation(),n.preventDefault(),!1});nt.click(function(){o(-1,!0)});tt.click(function(){o(1,!0)});p();e.hover(function(){p()},function(){c()});f.hover(function(){w=!0},function(){w=!1});u.hover(function(){l=!0;p();c()},function(){l=!1;c()});u.bind("touchstart",function(n){n.originalEvent.touches.length&&(k=n.originalEvent.touches[0].pageY)});u.bind("touchmove",function(n){if(h||n.originalEvent.preventDefault(),n.originalEvent.touches.length){var t=(k-n.originalEvent.touches[0].pageY)/r.touchScrollStep;o(t,!0);k=n.originalEvent.touches[0].pageY}});it();r.start==="bottom"?(f.css({top:u.outerHeight()-f.outerHeight()}),o(0,!0)):r.start!=="top"&&(o(n(r.start).position().top,null,!0),r.alwaysVisible||f.hide());ht()}),this}});jQuery.fn.extend({slimscroll:jQuery.fn.slimScroll})}(jQuery),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):n(jQuery)}(function(n){"use strict";var t=window.Slick||{};t=function(){function i(i,r){var u=this,f,e;if(u.defaults={accessibility:!0,appendArrows:n(i),appendDots:n(i),arrows:!0,asNavFor:null,prevArrow:'<button type="button" data-role="none" class="slick-prev">Previous<\/button>',nextArrow:'<button type="button" data-role="none" class="slick-next">Next<\/button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(n,t){return'<button type="button" data-role="none">'+(t+1)+"<\/button>"},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",fade:!1,focusOnSelect:!1,infinite:!0,lazyLoad:"ondemand",onBeforeChange:null,onAfterChange:null,onInit:null,onReInit:null,pauseOnHover:!0,pauseOnDotsHover:!1,responsive:null,rtl:!1,slide:"div",slidesToShow:1,slidesToScroll:1,speed:300,swipe:!0,touchMove:!0,touchThreshold:5,useCSS:!0,vertical:!1,waitForAnimate:!0},u.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentSlide:0,currentLeft:null,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,$list:null,touchObject:{},transformsEnabled:!1},n.extend(u,u.initials),u.activeBreakpoint=null,u.animType=null,u.animProp=null,u.breakpoints=[],u.breakpointSettings=[],u.cssTransitions=!1,u.paused=!1,u.positionProp=null,u.$slider=n(i),u.$slidesCache=null,u.transformType=null,u.transitionType=null,u.windowWidth=0,u.windowTimer=null,u.options=n.extend({},u.defaults,r),u.originalSettings=u.options,f=u.options.responsive||null,f&&f.length>-1){for(e in f)f.hasOwnProperty(e)&&(u.breakpoints.push(f[e].breakpoint),u.breakpointSettings[f[e].breakpoint]=f[e].settings);u.breakpoints.sort(function(n,t){return t-n})}u.autoPlay=n.proxy(u.autoPlay,u);u.autoPlayClear=n.proxy(u.autoPlayClear,u);u.changeSlide=n.proxy(u.changeSlide,u);u.selectHandler=n.proxy(u.selectHandler,u);u.setPosition=n.proxy(u.setPosition,u);u.swipeHandler=n.proxy(u.swipeHandler,u);u.dragHandler=n.proxy(u.dragHandler,u);u.keyHandler=n.proxy(u.keyHandler,u);u.autoPlayIterator=n.proxy(u.autoPlayIterator,u);u.instanceUid=t++;u.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/;u.init()}var t=0;return i}();t.prototype.addSlide=function(t,i,r){var u=this;if(typeof i=="boolean")r=i,i=null;else if(i<0||i>=u.slideCount)return!1;u.unload();typeof i=="number"?i===0&&u.$slides.length===0?n(t).appendTo(u.$slideTrack):r?n(t).insertBefore(u.$slides.eq(i)):n(t).insertAfter(u.$slides.eq(i)):r===!0?n(t).prependTo(u.$slideTrack):n(t).appendTo(u.$slideTrack);u.$slides=u.$slideTrack.children(this.options.slide);u.$slideTrack.children(this.options.slide).detach();u.$slideTrack.append(u.$slides);u.$slides.each(function(t,i){n(i).attr("index",t)});u.$slidesCache=u.$slides;u.reinit()};t.prototype.animateSlide=function(t,i){var u={},r=this;r.options.rtl===!0&&r.options.vertical===!1&&(t=-t);r.transformsEnabled===!1?r.options.vertical===!1?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,i):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,i):r.cssTransitions===!1?n({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(n){r.options.vertical===!1?(u[r.animType]="translate("+n+"px, 0px)",r.$slideTrack.css(u)):(u[r.animType]="translate(0px,"+n+"px)",r.$slideTrack.css(u))},complete:function(){i&&i.call()}}):(r.applyTransition(),u[r.animType]=r.options.vertical===!1?"translate3d("+t+"px, 0px, 0px)":"translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(u),i&&setTimeout(function(){r.disableTransition();i.call()},r.options.speed))};t.prototype.applyTransition=function(n){var t=this,i={};i[t.transitionType]=t.options.fade===!1?t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:"opacity "+t.options.speed+"ms "+t.options.cssEase;t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.autoPlay=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer);n.slideCount>n.options.slidesToShow&&n.paused!==!0&&(n.autoPlayTimer=setInterval(n.autoPlayIterator,n.options.autoplaySpeed))};t.prototype.autoPlayClear=function(){var n=this;n.autoPlayTimer&&clearInterval(n.autoPlayTimer)};t.prototype.autoPlayIterator=function(){var t=this,i=t.options.asNavFor!=null?n(t.options.asNavFor).getSlick():null;t.options.infinite===!1?t.direction===1?(t.currentSlide+1===t.slideCount-1&&(t.direction=0),t.slideHandler(t.currentSlide+t.options.slidesToScroll),i!=null&&i.slideHandler(i.currentSlide+i.options.slidesToScroll)):(t.currentSlide-1==0&&(t.direction=1),t.slideHandler(t.currentSlide-t.options.slidesToScroll),i!=null&&i.slideHandler(i.currentSlide-i.options.slidesToScroll)):(t.slideHandler(t.currentSlide+t.options.slidesToScroll),i!=null&&i.slideHandler(i.currentSlide+i.options.slidesToScroll))};t.prototype.buildArrows=function(){var t=this;t.options.arrows===!0&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow=n(t.options.prevArrow),t.$nextArrow=n(t.options.nextArrow),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.appendTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),t.options.infinite!==!0&&t.$prevArrow.addClass("slick-disabled"))};t.prototype.buildDots=function(){var t=this,i,r;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow){for(r='<ul class="'+t.options.dotsClass+'">',i=0;i<=t.getDotCount();i+=1)r+="<li>"+t.options.customPaging.call(this,t,i)+"<\/li>";r+="<\/ul>";t.$dots=n(r).appendTo(t.options.appendDots);t.$dots.find("li").first().addClass("slick-active")}};t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide");t.slideCount=t.$slides.length;t.$slides.each(function(t,i){n(i).attr("index",t)});t.$slidesCache=t.$slides;t.$slider.addClass("slick-slider");t.$slideTrack=t.slideCount===0?n('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent();t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent();t.$slideTrack.css("opacity",0);t.options.centerMode===!0&&(t.options.slidesToScroll=1,t.options.slidesToShow%2==0&&(t.options.slidesToShow=3));n("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading");t.setupInfinite();t.buildArrows();t.buildDots();t.updateDots();t.options.accessibility===!0&&t.$list.prop("tabIndex",0);t.setSlideClasses(typeof this.currentSlide=="number"?this.currentSlide:0);t.options.draggable===!0&&t.$list.addClass("draggable")};t.prototype.checkResponsive=function(){var t=this,r,i;if(t.originalSettings.responsive&&t.originalSettings.responsive.length>-1&&t.originalSettings.responsive!==null){i=null;for(r in t.breakpoints)t.breakpoints.hasOwnProperty(r)&&n(window).width()<t.breakpoints[r]&&(i=t.breakpoints[r]);i!==null?t.activeBreakpoint!==null?i!==t.activeBreakpoint&&(t.activeBreakpoint=i,t.options=n.extend({},t.options,t.breakpointSettings[i]),t.refresh()):(t.activeBreakpoint=i,t.options=n.extend({},t.options,t.breakpointSettings[i]),t.refresh()):t.activeBreakpoint!==null&&(t.activeBreakpoint=null,t.options=n.extend({},t.options,t.originalSettings),t.refresh())}};t.prototype.changeSlide=function(t){var i=this,f=n(t.target),r=i.options.asNavFor!=null?n(i.options.asNavFor).getSlick():null,u;f.is("a")&&t.preventDefault();switch(t.data.message){case"previous":i.slideCount>i.options.slidesToShow&&(i.slideHandler(i.currentSlide-i.options.slidesToScroll),r!=null&&r.slideHandler(r.currentSlide-r.options.slidesToScroll));break;case"next":i.slideCount>i.options.slidesToShow&&(i.slideHandler(i.currentSlide+i.options.slidesToScroll),r!=null&&r.slideHandler(r.currentSlide+r.options.slidesToScroll));break;case"index":u=t.data.index||n(t.target).parent().index()*i.options.slidesToScroll;i.slideHandler(u);r!=null&&r.slideHandler(u);default:return!1}};t.prototype.destroy=function(){var t=this;t.autoPlayClear();t.touchObject={};n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&(t.$prevArrow.remove(),t.$nextArrow.remove());t.$slides.parent().hasClass("slick-track")&&t.$slides.unwrap().unwrap();t.$slides.removeClass("slick-slide slick-active slick-visible").css("width","");t.$slider.removeClass("slick-slider");t.$slider.removeClass("slick-initialized");t.$list.off(".slick");n(window).off(".slick-"+t.instanceUid);n(document).off(".slick-"+t.instanceUid)};t.prototype.disableTransition=function(n){var t=this,i={};i[t.transitionType]="";t.options.fade===!1?t.$slideTrack.css(i):t.$slides.eq(n).css(i)};t.prototype.fadeSlide=function(n,t){var i=this;i.cssTransitions===!1?(i.$slides.eq(n).css({zIndex:1e3}),i.$slides.eq(n).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(n),i.$slides.eq(n).css({opacity:1,zIndex:1e3}),t&&setTimeout(function(){i.disableTransition(n);t.call()},i.options.speed))};t.prototype.filterSlides=function(n){var t=this;n!==null&&(t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(n).appendTo(t.$slideTrack),t.reinit())};t.prototype.getCurrent=function(){var n=this;return n.currentSlide};t.prototype.getDotCount=function(){for(var n=this,t=0,i=0,r=0,u=n.options.infinite===!0?n.slideCount+n.options.slidesToShow-n.options.slidesToScroll:n.slideCount;t<u;)r++,i+=n.options.slidesToScroll,t=i+n.options.slidesToShow;return r};t.prototype.getLeft=function(n){var t=this,i,r=0;return t.slideOffset=0,i=t.$slides.first().outerHeight(),t.options.infinite===!0?(t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideWidth*t.options.slidesToShow*-1,r=i*t.options.slidesToShow*-1),t.slideCount%t.options.slidesToScroll!=0&&n+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.slideCount%t.options.slidesToShow*t.slideWidth*-1,r=t.slideCount%t.options.slidesToShow*i*-1)):t.slideCount%t.options.slidesToShow!=0&&n+t.options.slidesToScroll>t.slideCount&&t.slideCount>t.options.slidesToShow&&(t.slideOffset=t.options.slidesToShow*t.slideWidth-t.slideCount%t.options.slidesToShow*t.slideWidth,r=t.slideCount%t.options.slidesToShow*i),t.options.centerMode===!0&&t.options.infinite===!0?t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)-t.slideWidth:t.options.centerMode===!0&&(t.slideOffset+=t.slideWidth*Math.floor(t.options.slidesToShow/2)),t.options.vertical===!1?n*t.slideWidth*-1+t.slideOffset:n*i*-1+r};t.prototype.init=function(){var t=this;n(t.$slider).hasClass("slick-initialized")||(n(t.$slider).addClass("slick-initialized"),t.buildOut(),t.setProps(),t.startLoad(),t.loadSlider(),t.initializeEvents(),t.checkResponsive());t.options.onInit!==null&&t.options.onInit.call(this,t)};t.prototype.initArrowEvents=function(){var n=this;if(n.options.arrows===!0&&n.slideCount>n.options.slidesToShow){n.$prevArrow.on("click.slick",{message:"previous"},n.changeSlide);n.$nextArrow.on("click.slick",{message:"next"},n.changeSlide)}};t.prototype.initDotEvents=function(){var t=this;if(t.options.dots===!0&&t.slideCount>t.options.slidesToShow)n("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide);if(t.options.dots===!0&&t.options.pauseOnDotsHover===!0&&t.options.autoplay===!0)n("li",t.$dots).on("mouseenter.slick",t.autoPlayClear).on("mouseleave.slick",t.autoPlay)};t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents();t.initDotEvents();t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler);t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler);t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler);t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler);if(t.options.pauseOnHover===!0&&t.options.autoplay===!0){t.$list.on("mouseenter.slick",t.autoPlayClear);t.$list.on("mouseleave.slick",t.autoPlay)}if(t.options.accessibility===!0)t.$list.on("keydown.slick",t.keyHandler);if(t.options.focusOnSelect===!0)n(t.options.slide,t.$slideTrack).on("click.slick",t.selectHandler);n(window).on("orientationchange.slick.slick-"+t.instanceUid,function(){t.checkResponsive();t.setPosition()});n(window).on("resize.slick.slick-"+t.instanceUid,function(){n(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout(function(){t.windowWidth=n(window).width();t.checkResponsive();t.setPosition()},50))});n(window).on("load.slick.slick-"+t.instanceUid,t.setPosition);n(document).on("ready.slick.slick-"+t.instanceUid,t.setPosition)};t.prototype.initUI=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.show(),n.$nextArrow.show());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.show();n.options.autoplay===!0&&n.autoPlay()};t.prototype.keyHandler=function(n){var t=this;n.keyCode===37?t.changeSlide({data:{message:"previous"}}):n.keyCode===39&&t.changeSlide({data:{message:"next"}})};t.prototype.lazyLoad=function(){function f(t){n("img[data-lazy]",t).each(function(){var t=n(this),i=n(this).attr("data-lazy")+"?"+(new Date).getTime();t.load(function(){t.animate({opacity:1},200)}).css({opacity:0}).attr("src",i).removeAttr("data-lazy").removeClass("slick-loading")})}var t=this,e,r,i,u;t.options.centerMode===!0?t.options.infinite===!0?(i=t.currentSlide+(t.options.slidesToShow/2+1),u=i+t.options.slidesToShow+2):(i=Math.max(0,t.currentSlide-(t.options.slidesToShow/2+1)),u=2+(t.options.slidesToShow/2+1)+t.currentSlide):(i=t.options.infinite?t.options.slidesToShow+t.currentSlide:t.currentSlide,u=i+t.options.slidesToShow,t.options.fade===!0&&(i>0&&i--,u<=t.slideCount&&u++));e=t.$slider.find(".slick-slide").slice(i,u);f(e);t.slideCount==1?(r=t.$slider.find(".slick-slide"),f(r)):t.currentSlide>=t.slideCount-t.options.slidesToShow?(r=t.$slider.find(".slick-cloned").slice(0,t.options.slidesToShow),f(r)):t.currentSlide===0&&(r=t.$slider.find(".slick-cloned").slice(t.options.slidesToShow*-1),f(r))};t.prototype.loadSlider=function(){var n=this;n.setPosition();n.$slideTrack.css({opacity:1});n.$slider.removeClass("slick-loading");n.initUI();n.options.lazyLoad==="progressive"&&n.progressiveLazyLoad()};t.prototype.postSlide=function(n){var t=this;t.options.onAfterChange!==null&&t.options.onAfterChange.call(this,t,n);t.animating=!1;t.setPosition();t.swipeLeft=null;t.options.autoplay===!0&&t.paused===!1&&t.autoPlay()};t.prototype.progressiveLazyLoad=function(){var i=this,r,t;r=n("img[data-lazy]").length;r>0&&(t=n("img[data-lazy]",i.$slider).first(),t.attr("src",t.attr("data-lazy")).removeClass("slick-loading").load(function(){t.removeAttr("data-lazy");i.progressiveLazyLoad()}))};t.prototype.refresh=function(){var t=this,i=t.currentSlide;t.destroy();n.extend(t,t.initials);t.currentSlide=i;t.init()};t.prototype.reinit=function(){var t=this;if(t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&t.currentSlide!==0&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.options.focusOnSelect===!0)n(t.options.slide,t.$slideTrack).on("click.slick",t.selectHandler);t.setSlideClasses(0);t.setPosition();t.options.onReInit!==null&&t.options.onReInit.call(this,t)};t.prototype.removeSlide=function(n,t){var i=this;if(typeof n=="boolean"?(t=n,n=t===!0?0:i.slideCount-1):n=t===!0?--n:n,i.slideCount<1||n<0||n>i.slideCount-1)return!1;i.unload();i.$slideTrack.children(this.options.slide).eq(n).remove();i.$slides=i.$slideTrack.children(this.options.slide);i.$slideTrack.children(this.options.slide).detach();i.$slideTrack.append(i.$slides);i.$slidesCache=i.$slides;i.reinit()};t.prototype.setCSS=function(n){var t=this,i={},r,u;t.options.rtl===!0&&(n=-n);r=t.positionProp=="left"?n+"px":"0px";u=t.positionProp=="top"?n+"px":"0px";i[t.positionProp]=n;t.transformsEnabled===!1?t.$slideTrack.css(i):(i={},t.cssTransitions===!1?(i[t.animType]="translate("+r+", "+u+")",t.$slideTrack.css(i)):(i[t.animType]="translate3d("+r+", "+u+", 0px)",t.$slideTrack.css(i)))};t.prototype.setDimensions=function(){var n=this,t;n.options.vertical===!1?n.options.centerMode===!0&&n.$list.css({padding:"0px "+n.options.centerPadding}):(n.$list.height(n.$slides.first().outerHeight(!0)*n.options.slidesToShow),n.options.centerMode===!0&&n.$list.css({padding:n.options.centerPadding+" 0px"}));n.listWidth=n.$list.width();n.listHeight=n.$list.height();n.options.vertical===!1?(n.slideWidth=Math.ceil(n.listWidth/n.options.slidesToShow),n.$slideTrack.width(Math.ceil(n.slideWidth*n.$slideTrack.children(".slick-slide").length))):(n.slideWidth=Math.ceil(n.listWidth),n.$slideTrack.height(Math.ceil(n.$slides.first().outerHeight(!0)*n.$slideTrack.children(".slick-slide").length)));t=n.$slides.first().outerWidth(!0)-n.$slides.first().width();n.$slideTrack.children(".slick-slide").width(n.slideWidth-t)};t.prototype.setFade=function(){var t=this,i;t.$slides.each(function(r,u){i=t.slideWidth*r*-1;n(u).css({position:"relative",left:i,top:0,zIndex:800,opacity:0})});t.$slides.eq(t.currentSlide).css({zIndex:900,opacity:1})};t.prototype.setPosition=function(){var n=this;n.setDimensions();n.options.fade===!1?n.setCSS(n.getLeft(n.currentSlide)):n.setFade()};t.prototype.setProps=function(){var n=this,t=document.body.style;n.positionProp=n.options.vertical===!0?"top":"left";n.positionProp==="top"?n.$slider.addClass("slick-vertical"):n.$slider.removeClass("slick-vertical");(t.WebkitTransition!==undefined||t.MozTransition!==undefined||t.msTransition!==undefined)&&n.options.useCSS===!0&&(n.cssTransitions=!0);t.OTransform!==undefined&&(n.animType="OTransform",n.transformType="-o-transform",n.transitionType="OTransition",t.perspectiveProperty===undefined&&t.webkitPerspective===undefined&&(n.animType=!1));t.MozTransform!==undefined&&(n.animType="MozTransform",n.transformType="-moz-transform",n.transitionType="MozTransition",t.perspectiveProperty===undefined&&t.MozPerspective===undefined&&(n.animType=!1));t.webkitTransform!==undefined&&(n.animType="webkitTransform",n.transformType="-webkit-transform",n.transitionType="webkitTransition",t.perspectiveProperty===undefined&&t.webkitPerspective===undefined&&(n.animType=!1));t.msTransform!==undefined&&(n.animType="msTransform",n.transformType="-ms-transform",n.transitionType="msTransition",t.msTransform===undefined&&(n.animType=!1));t.transform!==undefined&&n.animType!==!1&&(n.animType="transform",n.transformType="transform",n.transitionType="transition");n.transformsEnabled=n.animType!==null&&n.animType!==!1};t.prototype.setSlideClasses=function(n){var t=this,u,i,r,f;t.$slider.find(".slick-slide").removeClass("slick-active").removeClass("slick-center");i=t.$slider.find(".slick-slide");t.options.centerMode===!0?(u=Math.floor(t.options.slidesToShow/2),t.options.infinite===!0&&(n>=u&&n<=t.slideCount-1-u?t.$slides.slice(n-u,n+u+1).addClass("slick-active"):(r=t.options.slidesToShow+n,i.slice(r-u+1,r+u+2).addClass("slick-active")),n===0?i.eq(i.length-1-t.options.slidesToShow).addClass("slick-center"):n===t.slideCount-1&&i.eq(t.options.slidesToShow).addClass("slick-center")),t.$slides.eq(n).addClass("slick-center")):n>=0&&n<=t.slideCount-t.options.slidesToShow?t.$slides.slice(n,n+t.options.slidesToShow).addClass("slick-active"):i.length<=t.options.slidesToShow?i.addClass("slick-active"):(f=t.slideCount%t.options.slidesToShow,r=t.options.infinite===!0?t.options.slidesToShow+n:n,t.options.slidesToShow==t.options.slidesToScroll&&t.slideCount-n<t.options.slidesToShow?i.slice(r-(t.options.slidesToShow-f),r+f).addClass("slick-active"):i.slice(r,r+t.options.slidesToShow).addClass("slick-active"));t.options.lazyLoad==="ondemand"&&t.lazyLoad()};t.prototype.setupInfinite=function(){var t=this,i,r,u;if((t.options.fade===!0||t.options.vertical===!0)&&(t.options.centerMode=!1),t.options.infinite===!0&&t.options.fade===!1&&(r=null,t.slideCount>t.options.slidesToShow)){for(u=t.options.centerMode===!0?t.options.slidesToShow+1:t.options.slidesToShow,i=t.slideCount;i>t.slideCount-u;i-=1)r=i-1,n(t.$slides[r]).clone(!0).attr("id","").prependTo(t.$slideTrack).addClass("slick-cloned");for(i=0;i<u;i+=1)r=i,n(t.$slides[r]).clone(!0).attr("id","").appendTo(t.$slideTrack).addClass("slick-cloned");t.$slideTrack.find(".slick-cloned").find("[id]").each(function(){n(this).attr("id","")})}};t.prototype.selectHandler=function(t){var i=this,r=i.options.asNavFor!=null?n(i.options.asNavFor).getSlick():null,u=parseInt(n(t.target).parent().attr("index"));if((u||(u=0),!(i.slideCount<=i.options.slidesToShow))&&(i.slideHandler(u),r!=null)){if(r.slideCount<=r.options.slidesToShow)return;r.slideHandler(u)}};t.prototype.slideHandler=function(n){var i,r,u,f,e=null,t=this;if(t.animating===!0&&t.options.waitForAnimate===!0)return!1;if(i=n,e=t.getLeft(i),u=t.getLeft(t.currentSlide),f=t.slideCount%t.options.slidesToScroll!=0?t.options.slidesToScroll:0,t.currentLeft=t.swipeLeft===null?u:t.swipeLeft,t.options.infinite===!1&&t.options.centerMode===!1&&(n<0||n>t.slideCount-t.options.slidesToShow+f))return t.options.fade===!1&&(i=t.currentSlide,t.animateSlide(u,function(){t.postSlide(i)})),!1;if(t.options.infinite===!1&&t.options.centerMode===!0&&(n<0||n>t.slideCount-t.options.slidesToScroll))return t.options.fade===!1&&(i=t.currentSlide,t.animateSlide(u,function(){t.postSlide(i)})),!1;if(t.options.autoplay===!0&&clearInterval(t.autoPlayTimer),r=i<0?t.slideCount%t.options.slidesToScroll!=0?t.slideCount-t.slideCount%t.options.slidesToScroll:t.slideCount-t.options.slidesToScroll:i>t.slideCount-1?0:i,t.animating=!0,t.options.onBeforeChange!==null&&n!==t.currentSlide&&t.options.onBeforeChange.call(this,t,t.currentSlide,r),t.currentSlide=r,t.setSlideClasses(t.currentSlide),t.updateDots(),t.updateArrows(),t.options.fade===!0)return t.fadeSlide(r,function(){t.postSlide(r)}),!1;t.animateSlide(e,function(){t.postSlide(r)})};t.prototype.startLoad=function(){var n=this;n.options.arrows===!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.hide(),n.$nextArrow.hide());n.options.dots===!0&&n.slideCount>n.options.slidesToShow&&n.$dots.hide();n.$slider.addClass("slick-loading")};t.prototype.swipeDirection=function(){var i,r,u,n,t=this;return(i=t.touchObject.startX-t.touchObject.curX,r=t.touchObject.startY-t.touchObject.curY,u=Math.atan2(r,i),n=Math.round(u*180/Math.PI),n<0&&(n=360-Math.abs(n)),n<=45&&n>=0)?"left":n<=360&&n>=315?"left":n>=135&&n<=225?"right":"vertical"};t.prototype.swipeEnd=function(t){var i=this,r=i.options.asNavFor!=null?n(i.options.asNavFor).getSlick():null;if(i.dragging=!1,i.touchObject.curX===undefined)return!1;if(i.touchObject.swipeLength>=i.touchObject.minSwipe){n(t.target).on("click.slick",function(t){t.stopImmediatePropagation();t.stopPropagation();t.preventDefault();n(t.target).off("click.slick")});switch(i.swipeDirection()){case"left":i.slideHandler(i.currentSlide+i.options.slidesToScroll);r!=null&&r.slideHandler(r.currentSlide+r.options.slidesToScroll);i.touchObject={};break;case"right":i.slideHandler(i.currentSlide-i.options.slidesToScroll);r!=null&&r.slideHandler(r.currentSlide-r.options.slidesToScroll);i.touchObject={}}}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),r!=null&&r.slideHandler(r.currentSlide),i.touchObject={})};t.prototype.swipeHandler=function(n){var t=this;if(t.options.swipe!==!1&&(!("ontouchend"in document)||t.options.swipe!==!1)&&t.options.draggable!==!1&&(t.options.draggable!==!1||n.originalEvent.touches)){t.touchObject.fingerCount=n.originalEvent&&n.originalEvent.touches!==undefined?n.originalEvent.touches.length:1;t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold;switch(n.data.action){case"start":t.swipeStart(n);break;case"move":t.swipeMove(n);break;case"end":t.swipeEnd(n)}}};t.prototype.swipeMove=function(n){var t=this,r,f,u,i;if(i=n.originalEvent!==undefined?n.originalEvent.touches:null,r=t.getLeft(t.currentSlide),!t.dragging||i&&i.length!==1)return!1;if(t.touchObject.curX=i!==undefined?i[0].pageX:n.clientX,t.touchObject.curY=i!==undefined?i[0].pageY:n.clientY,t.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(t.touchObject.curX-t.touchObject.startX,2))),f=t.swipeDirection(),f!=="vertical"){if(n.originalEvent!==undefined&&t.touchObject.swipeLength>4&&n.preventDefault(),u=t.touchObject.curX>t.touchObject.startX?1:-1,t.swipeLeft=t.options.vertical===!1?r+t.touchObject.swipeLength*u:r+t.touchObject.swipeLength*(t.$list.height()/t.listWidth)*u,t.options.fade===!0||t.options.touchMove===!1)return!1;if(t.animating===!0)return t.swipeLeft=null,!1;t.setCSS(t.swipeLeft)}};t.prototype.swipeStart=function(n){var t=this,i;if(t.touchObject.fingerCount!==1||t.slideCount<=t.options.slidesToShow)return t.touchObject={},!1;n.originalEvent!==undefined&&n.originalEvent.touches!==undefined&&(i=n.originalEvent.touches[0]);t.touchObject.startX=t.touchObject.curX=i!==undefined?i.pageX:n.clientX;t.touchObject.startY=t.touchObject.curY=i!==undefined?i.pageY:n.clientY;t.dragging=!0};t.prototype.unfilterSlides=function(){var n=this;n.$slidesCache!==null&&(n.unload(),n.$slideTrack.children(this.options.slide).detach(),n.$slidesCache.appendTo(n.$slideTrack),n.reinit())};t.prototype.unload=function(){var t=this;n(".slick-cloned",t.$slider).remove();t.$dots&&t.$dots.remove();t.$prevArrow&&(t.$prevArrow.remove(),t.$nextArrow.remove());t.$slides.removeClass("slick-slide slick-active slick-visible").css("width","")};t.prototype.updateArrows=function(){var n=this;n.options.arrows===!0&&n.options.infinite!==!0&&n.slideCount>n.options.slidesToShow&&(n.$prevArrow.removeClass("slick-disabled"),n.$nextArrow.removeClass("slick-disabled"),n.currentSlide===0?(n.$prevArrow.addClass("slick-disabled"),n.$nextArrow.removeClass("slick-disabled")):n.currentSlide>=n.slideCount-n.options.slidesToShow&&(n.$nextArrow.addClass("slick-disabled"),n.$prevArrow.removeClass("slick-disabled")))};t.prototype.updateDots=function(){var n=this;n.$dots!==null&&(n.$dots.find("li").removeClass("slick-active"),n.$dots.find("li").eq(Math.floor(n.currentSlide/n.options.slidesToScroll)).addClass("slick-active"))};n.fn.slick=function(n){var i=this;return i.each(function(i,r){r.slick=new t(r,n)})};n.fn.slickAdd=function(n,t,i){var r=this;return r.each(function(r,u){u.slick.addSlide(n,t,i)})};n.fn.slickCurrentSlide=function(){var n=this;return n.get(0).slick.getCurrent()};n.fn.slickFilter=function(n){var t=this;return t.each(function(t,i){i.slick.filterSlides(n)})};n.fn.slickGoTo=function(n){var t=this;return t.each(function(t,i){i.slick.changeSlide({data:{message:"index",index:n}})})};n.fn.slickNext=function(){var n=this;return n.each(function(n,t){t.slick.changeSlide({data:{message:"next"}})})};n.fn.slickPause=function(){var n=this;return n.each(function(n,t){t.slick.autoPlayClear();t.slick.paused=!0})};n.fn.slickPlay=function(){var n=this;return n.each(function(n,t){t.slick.paused=!1;t.slick.autoPlay()})};n.fn.slickPrev=function(){var n=this;return n.each(function(n,t){t.slick.changeSlide({data:{message:"previous"}})})};n.fn.slickRemove=function(n,t){var i=this;return i.each(function(i,r){r.slick.removeSlide(n,t)})};n.fn.slickGetOption=function(n){var t=this;return t.get(0).slick.options[n]};n.fn.slickSetOption=function(n,t,i){var r=this;return r.each(function(r,u){u.slick.options[n]=t;i===!0&&(u.slick.unload(),u.slick.reinit())})};n.fn.slickUnfilter=function(){var n=this;return n.each(function(n,t){t.slick.unfilterSlides()})};n.fn.unslick=function(){var n=this;return n.each(function(n,t){t.slick&&t.slick.destroy()})};n.fn.getSlick=function(){var n=null,t=this;return t.each(function(t,i){n=i.slick}),n}}),function(n,t){function u(){return new Date(Date.UTC.apply(Date,arguments))}function e(){var n=new Date;return u(n.getFullYear(),n.getMonth(),n.getDate())}function c(n){return function(){return this[n].apply(this,arguments)}}function y(t,i){function s(n,t){return t.toLowerCase()}var u=n(t).data(),f={},e,o=new RegExp("^"+i.toLowerCase()+"([A-Z])"),r;i=new RegExp("^"+i.toLowerCase());for(r in u)i.test(r)&&(e=r.replace(o,s),f[e]=u[r]);return f}function p(t){var u={},i;if(r[t]||(t=t.split("-")[0],r[t]))return i=r[t],n.each(v,function(n,t){t in i&&(u[t]=i[t])}),u}var s=n(window),l=function(){var t={get:function(n){return this.slice(n)[0]},contains:function(n){for(var i=n&&n.valueOf(),t=0,r=this.length;t<r;t++)if(this[t].valueOf()===i)return t;return-1},remove:function(n){this.splice(n,1)},replace:function(t){t&&(n.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.splice(0)},copy:function(){var n=new l;return n.replace(this),n}};return function(){var i=[];return i.push.apply(i,arguments),n.extend(i,t),i}}(),f=function(t,r){this.dates=new l;this.viewDate=e();this.focusDate=null;this._process_options(r);this.showing=!1;this.element=n(t);this.isInline=!1;this.isInput=this.element.is("input");this.component=this.element.is(".date")?this.element.find(".add-on, .input-group-addon, .btn"):!1;this.hasInput=this.component&&this.element.find("input").length;this.component&&this.component.length===0&&(this.component=!1);this.picker=n(i.template);this._buildEvents();this._attachEvents();this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu");this.o.rtl&&this.picker.addClass("datepicker-rtl");this.viewMode=this.o.startView;this.o.calendarWeeks&&this.picker.find("tfoot th.today").attr("colspan",function(n,t){return parseInt(t)+1});this._allow_update=!1;this.setStartDate(this._o.startDate);this.setEndDate(this._o.endDate);this.setDaysOfWeekDisabled(this.o.daysOfWeekDisabled);this.fillDow();this.fillMonths();this._allow_update=!0;this.update();this.showMode();this.isInline&&this.show()},h,a,o,v,r,i;f.prototype={constructor:f,_process_options:function(t){var u,e,h,f,s;this._o=n.extend({},this._o,t);u=this.o=n.extend({},this._o);e=u.language;r[e]||(e=e.split("-")[0],r[e]||(e=o.language));u.language=e;switch(u.startView){case 2:case"decade":u.startView=2;break;case 1:case"year":u.startView=1;break;default:u.startView=0}switch(u.minViewMode){case 1:case"months":u.minViewMode=1;break;case 2:case"years":u.minViewMode=2;break;default:u.minViewMode=0}if(u.startView=Math.max(u.startView,u.minViewMode),u.multidate!==!0&&(u.multidate=Number(u.multidate)||!1,u.multidate=u.multidate!==!1?Math.max(0,u.multidate):1),u.multidateSeparator=String(u.multidateSeparator),u.weekStart%=7,u.weekEnd=(u.weekStart+6)%7,h=i.parseFormat(u.format),u.startDate!==-Infinity&&(u.startDate=u.startDate?u.startDate instanceof Date?this._local_to_utc(this._zero_time(u.startDate)):i.parseDate(u.startDate,h,u.language):-Infinity),u.endDate!==Infinity&&(u.endDate=u.endDate?u.endDate instanceof Date?this._local_to_utc(this._zero_time(u.endDate)):i.parseDate(u.endDate,h,u.language):Infinity),u.daysOfWeekDisabled=u.daysOfWeekDisabled||[],n.isArray(u.daysOfWeekDisabled)||(u.daysOfWeekDisabled=u.daysOfWeekDisabled.split(/[,\s]*/)),u.daysOfWeekDisabled=n.map(u.daysOfWeekDisabled,function(n){return parseInt(n,10)}),f=String(u.orientation).toLowerCase().split(/\s+/g),s=u.orientation.toLowerCase(),f=n.grep(f,function(n){return/^auto|left|right|top|bottom$/.test(n)}),u.orientation={x:"auto",y:"auto"},s&&s!=="auto")if(f.length===1)switch(f[0]){case"top":case"bottom":u.orientation.y=f[0];break;case"left":case"right":u.orientation.x=f[0]}else s=n.grep(f,function(n){return/^left|right$/.test(n)}),u.orientation.x=s[0]||"auto",s=n.grep(f,function(n){return/^top|bottom$/.test(n)}),u.orientation.y=s[0]||"auto"},_events:[],_secondaryEvents:[],_applyEvents:function(n){for(var i=0,f,r,u;i<n.length;i++){f=n[i][0];n[i].length===2?(r=t,u=n[i][1]):n[i].length===3&&(r=n[i][1],u=n[i][2]);f.on(u,r)}},_unapplyEvents:function(n){for(var i=0,f,r,u;i<n.length;i++)f=n[i][0],n[i].length===2?(u=t,r=n[i][1]):n[i].length===3&&(u=n[i][1],r=n[i][2]),f.off(r,u)},_buildEvents:function(){this.isInput?this._events=[[this.element,{focus:n.proxy(this.show,this),keyup:n.proxy(function(t){n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:n.proxy(this.keydown,this)}]]:this.component&&this.hasInput?this._events=[[this.element.find("input"),{focus:n.proxy(this.show,this),keyup:n.proxy(function(t){n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:n.proxy(this.keydown,this)}],[this.component,{click:n.proxy(this.show,this)}]]:this.element.is("div")?this.isInline=!0:this._events=[[this.element,{click:n.proxy(this.show,this)}]];this._events.push([this.element,"*",{blur:n.proxy(function(n){this._focused_from=n.target},this)}],[this.element,{blur:n.proxy(function(n){this._focused_from=n.target},this)}]);this._secondaryEvents=[[this.picker,{click:n.proxy(this.click,this)}],[n(window),{resize:n.proxy(this.place,this)}],[n(document),{"mousedown touchstart":n.proxy(function(n){this.element.is(n.target)||this.element.find(n.target).length||this.picker.is(n.target)||this.picker.find(n.target).length||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents();this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents();this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,r){var u=r||this.dates.get(-1),f=this._utc_to_local(u);this.element.trigger({type:t,date:f,dates:n.map(this.dates,this._utc_to_local),format:n.proxy(function(n,t){arguments.length===0?(n=this.dates.length-1,t=this.o.format):typeof n=="string"&&(t=n,n=this.dates.length-1);t=t||this.o.format;var r=this.dates.get(n);return i.formatDate(r,t,this.o.language)},this)})},show:function(){this.isInline||this.picker.appendTo("body");this.picker.show();this.place();this._attachSecondaryEvents();this._trigger("show")},hide:function(){this.isInline||this.picker.is(":visible")&&(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.viewMode=this.o.startView,this.showMode(),this.o.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())&&this.setValue(),this._trigger("hide"))},remove:function(){this.hide();this._detachEvents();this._detachSecondaryEvents();this.picker.remove();delete this.element.data().datepicker;this.isInput||delete this.element.data().date},_utc_to_local:function(n){return n&&new Date(n.getTime()+n.getTimezoneOffset()*6e4)},_local_to_utc:function(n){return n&&new Date(n.getTime()-n.getTimezoneOffset()*6e4)},_zero_time:function(n){return n&&new Date(n.getFullYear(),n.getMonth(),n.getDate())},_zero_utc_time:function(n){return n&&new Date(Date.UTC(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()))},getDates:function(){return n.map(this.dates,this._utc_to_local)},getUTCDates:function(){return n.map(this.dates,function(n){return new Date(n)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){return new Date(this.dates.get(-1))},setDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;this.update.apply(this,t);this._trigger("changeDate");this.setValue()},setUTCDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;this.update.apply(this,n.map(t,this._utc_to_local));this._trigger("changeDate");this.setValue()},setDate:c("setDates"),setUTCDate:c("setUTCDates"),setValue:function(){var n=this.getFormattedDate();this.isInput?this.element.val(n).change():this.component&&this.element.find("input").val(n).change()},getFormattedDate:function(r){r===t&&(r=this.o.format);var u=this.o.language;return n.map(this.dates,function(n){return i.formatDate(n,r,u)}).join(this.o.multidateSeparator)},setStartDate:function(n){this._process_options({startDate:n});this.update();this.updateNavArrows()},setEndDate:function(n){this._process_options({endDate:n});this.update();this.updateNavArrows()},setDaysOfWeekDisabled:function(n){this._process_options({daysOfWeekDisabled:n});this.update();this.updateNavArrows()},place:function(){var i,v,o;if(!this.isInline){var u=this.picker.outerWidth(),f=this.picker.outerHeight(),h=10,c=s.width(),y=s.height(),l=s.scrollTop(),p=this.o.zIndex==null?parseInt(this.element.parents().filter(function(){return n(this).css("z-index")!=="auto"}).first().css("z-index"))+10:this.o.zIndex;var t=this.component?this.component.parent().offset():this.element.offset(),a=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),w=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),r=t.left,e=t.top;this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left");this.o.orientation.x!=="auto"?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),this.o.orientation.x==="right"&&(r-=u-w)):(this.picker.addClass("datepicker-orient-left"),t.left<0?r-=t.left-h:t.left+u>c&&(r=c-u-h));i=this.o.orientation.y;i==="auto"&&(v=-l+t.top-f,o=l+y-(t.top+a+f),i=Math.max(v,o)===o?"top":"bottom");this.picker.addClass("datepicker-orient-"+i);i==="top"?e+=a:e-=f+parseInt(this.picker.css("padding-top"));this.picker.css({top:e,left:r,zIndex:p})}},_allow_update:!0,update:function(){if(this._allow_update){var r=this.dates.copy(),t=[],u=!1;arguments.length?(n.each(arguments,n.proxy(function(n,i){i instanceof Date&&(i=this._local_to_utc(i));t.push(i)},this)),u=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.element.find("input").val(),t=t&&this.o.multidate?t.split(this.o.multidateSeparator):[t],delete this.element.data().date);t=n.map(t,n.proxy(function(n){return i.parseDate(n,this.o.format,this.o.language)},this));t=n.grep(t,n.proxy(function(n){return n<this.o.startDate||n>this.o.endDate||!n},this),!0);this.dates.replace(t);this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate&&(this.viewDate=new Date(this.o.endDate));u?this.setValue():t.length&&String(r)!==String(this.dates)&&this._trigger("changeDate");!this.dates.length&&r.length&&this._trigger("clearDate");this.fill()}},fillDow:function(){var i=this.o.weekStart,n="<tr>",t;for(this.o.calendarWeeks&&(t='<th class="cw">&nbsp;<\/th>',n+=t,this.picker.find(".datepicker-days thead tr:first-child").prepend(t));i<this.o.weekStart+7;)n+='<th class="dow">'+r[this.o.language].daysMin[i++%7]+"<\/th>";n+="<\/tr>";this.picker.find(".datepicker-days thead").append(n)},fillMonths:function(){for(var n="",t=0;t<12;)n+='<span class="month">'+r[this.o.language].monthsShort[t++]+"<\/span>";this.picker.find(".datepicker-months td").html(n)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range;this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),u=new Date;return t.getUTCFullYear()<r||t.getUTCFullYear()===r&&t.getUTCMonth()<f?i.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()===r&&t.getUTCMonth()>f)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&t.getUTCFullYear()===u.getFullYear()&&t.getUTCMonth()===u.getMonth()&&t.getUTCDate()===u.getDate()&&i.push("today"),this.dates.contains(t)!==-1&&i.push("active"),(t.valueOf()<this.o.startDate||t.valueOf()>this.o.endDate||n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)!==-1)&&i.push("disabled"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),n.inArray(t.valueOf(),this.range)!==-1&&i.push("selected")),i},fill:function(){var d=new Date(this.viewDate),f=d.getUTCFullYear(),g=d.getUTCMonth(),y=this.o.startDate!==-Infinity?this.o.startDate.getUTCFullYear():-Infinity,ut=this.o.startDate!==-Infinity?this.o.startDate.getUTCMonth():-Infinity,p=this.o.endDate!==Infinity?this.o.endDate.getUTCFullYear():Infinity,ft=this.o.endDate!==Infinity?this.o.endDate.getUTCMonth():Infinity,et=r[this.o.language].today||r.en.today||"",ot=r[this.o.language].clear||r.en.clear||"",w,e,b,c,s,h,o,a,it,rt,l,v;for(this.picker.find(".datepicker-days thead th.datepicker-switch").text(r[this.o.language].months[g]+" "+f),this.picker.find("tfoot th.today").text(et).toggle(this.o.todayBtn!==!1),this.picker.find("tfoot th.clear").text(ot).toggle(this.o.clearBtn!==!1),this.updateNavArrows(),this.fillMonths(),e=u(f,g-1,28),b=i.getDaysInMonth(e.getUTCFullYear(),e.getUTCMonth()),e.setUTCDate(b),e.setUTCDate(b-(e.getUTCDay()-this.o.weekStart+7)%7),c=new Date(e),c.setUTCDate(c.getUTCDate()+42),c=c.valueOf(),s=[];e.valueOf()<c;){if(e.getUTCDay()===this.o.weekStart&&(s.push("<tr>"),this.o.calendarWeeks)){var nt=new Date(+e+(this.o.weekStart-e.getUTCDay()-7)%7*864e5),tt=new Date(Number(nt)+(11-nt.getUTCDay())%7*864e5),k=new Date(Number(k=u(tt.getUTCFullYear(),0,1))+(11-k.getUTCDay())%7*864e5),st=(tt-k)/6048e5+1;s.push('<td class="cw">'+st+"<\/td>")}h=this.getClassNames(e);h.push("day");this.o.beforeShowDay!==n.noop&&(o=this.o.beforeShowDay(this._utc_to_local(e)),o===t?o={}:typeof o=="boolean"?o={enabled:o}:typeof o=="string"&&(o={classes:o}),o.enabled===!1&&h.push("disabled"),o.classes&&(h=h.concat(o.classes.split(/\s+/))),o.tooltip&&(w=o.tooltip));h=n.unique(h);s.push('<td class="'+h.join(" ")+'"'+(w?' title="'+w+'"':"")+">"+e.getUTCDate()+"<\/td>");e.getUTCDay()===this.o.weekEnd&&s.push("<\/tr>");e.setUTCDate(e.getUTCDate()+1)}for(this.picker.find(".datepicker-days tbody").empty().append(s.join("")),a=this.picker.find(".datepicker-months").find("th:eq(1)").text(f).end().find("span").removeClass("active"),n.each(this.dates,function(n,t){t.getUTCFullYear()===f&&a.eq(t.getUTCMonth()).addClass("active")}),(f<y||f>p)&&a.addClass("disabled"),f===y&&a.slice(0,ut).addClass("disabled"),f===p&&a.slice(ft+1).addClass("disabled"),s="",f=parseInt(f/10,10)*10,it=this.picker.find(".datepicker-years").find("th:eq(1)").text(f+"-"+(f+9)).end().find("td"),f-=1,rt=n.map(this.dates,function(n){return n.getUTCFullYear()}),v=-1;v<11;v++)l=["year"],v===-1?l.push("old"):v===10&&l.push("new"),n.inArray(f,rt)!==-1&&l.push("active"),(f<y||f>p)&&l.push("disabled"),s+='<span class="'+l.join(" ")+'">'+f+"<\/span>",f+=1;it.html(s)},updateNavArrows:function(){if(this._allow_update){var t=new Date(this.viewDate),n=t.getUTCFullYear(),i=t.getUTCMonth();switch(this.viewMode){case 0:this.o.startDate!==-Infinity&&n<=this.o.startDate.getUTCFullYear()&&i<=this.o.startDate.getUTCMonth()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.o.endDate!==Infinity&&n>=this.o.endDate.getUTCFullYear()&&i>=this.o.endDate.getUTCMonth()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"});break;case 1:case 2:this.o.startDate!==-Infinity&&n<=this.o.startDate.getUTCFullYear()?this.picker.find(".prev").css({visibility:"hidden"}):this.picker.find(".prev").css({visibility:"visible"});this.o.endDate!==Infinity&&n>=this.o.endDate.getUTCFullYear()?this.picker.find(".next").css({visibility:"hidden"}):this.picker.find(".next").css({visibility:"visible"})}}},click:function(t){var r,e,f,o,c,s,l,h;if(t.preventDefault(),r=n(t.target).closest("span, td, th"),r.length===1)switch(r[0].nodeName.toLowerCase()){case"th":switch(r[0].className){case"datepicker-switch":this.showMode(1);break;case"prev":case"next":c=i.modes[this.viewMode].navStep*(r[0].className==="prev"?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveMonth(this.viewDate,c);this._trigger("changeMonth",this.viewDate);break;case 1:case 2:this.viewDate=this.moveYear(this.viewDate,c);this.viewMode===1&&this._trigger("changeYear",this.viewDate)}this.fill();break;case"today":s=new Date;s=u(s.getFullYear(),s.getMonth(),s.getDate(),0,0,0);this.showMode(-2);l=this.o.todayBtn==="linked"?null:"view";this._setDate(s,l);break;case"clear":this.isInput?h=this.element:this.component&&(h=this.element.find("input"));h&&h.val("").change();this.update();this._trigger("changeDate");this.o.autoclose&&this.hide()}break;case"span":r.is(".disabled")||(this.viewDate.setUTCDate(1),r.is(".month")?(o=1,f=r.parent().find("span").index(r),e=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(f),this._trigger("changeMonth",this.viewDate),this.o.minViewMode===1&&this._setDate(u(e,f,o))):(o=1,f=0,e=parseInt(r.text(),10)||0,this.viewDate.setUTCFullYear(e),this._trigger("changeYear",this.viewDate),this.o.minViewMode===2&&this._setDate(u(e,f,o))),this.showMode(-1),this.fill());break;case"td":r.is(".day")&&!r.is(".disabled")&&(o=parseInt(r.text(),10)||1,e=this.viewDate.getUTCFullYear(),f=this.viewDate.getUTCMonth(),r.is(".old")?f===0?(f=11,e-=1):f-=1:r.is(".new")&&(f===11?(f=0,e+=1):f+=1),this._setDate(u(e,f,o)))}this.picker.is(":visible")&&this._focused_from&&n(this._focused_from).focus();delete this._focused_from},_toggle_multidate:function(n){var t=this.dates.contains(n);if(n?t!==-1?this.dates.remove(t):this.dates.push(n):this.dates.clear(),typeof this.o.multidate=="number")while(this.dates.length>this.o.multidate)this.dates.remove(0)},_setDate:function(n,t){t&&t!=="date"||this._toggle_multidate(n&&new Date(n));t&&t!=="view"||(this.viewDate=n&&new Date(n));this.fill();this.setValue();this._trigger("changeDate");var i;this.isInput?i=this.element:this.component&&(i=this.element.find("input"));i&&i.change();this.o.autoclose&&(!t||t==="date")&&this.hide()},moveMonth:function(n,i){var e;if(!n)return t;if(!i)return n;var r=new Date(n.valueOf()),o=r.getUTCDate(),s=r.getUTCMonth(),h=Math.abs(i),u,f;if(i=i>0?1:-1,h===1)f=i===-1?function(){return r.getUTCMonth()===s}:function(){return r.getUTCMonth()!==u},u=s+i,r.setUTCMonth(u),(u<0||u>11)&&(u=(u+12)%12);else{for(e=0;e<h;e++)r=this.moveMonth(r,i);u=r.getUTCMonth();r.setUTCDate(o);f=function(){return u!==r.getUTCMonth()}}while(f())r.setUTCDate(--o),r.setUTCMonth(u);return r},moveYear:function(n,t){return this.moveMonth(n,t*12)},dateWithinRange:function(n){return n>=this.o.startDate&&n<=this.o.endDate},keydown:function(n){var o,t,i,r,u,f;if(this.picker.is(":not(:visible)")){n.keyCode===27&&this.show();return}o=!1;u=this.focusDate||this.viewDate;switch(n.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide();n.preventDefault();break;case 37:case 39:if(!this.o.keyboardNavigation)break;t=n.keyCode===37?-1:1;n.ctrlKey?(i=this.moveYear(this.dates.get(-1)||e(),t),r=this.moveYear(u,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(i=this.moveMonth(this.dates.get(-1)||e(),t),r=this.moveMonth(u,t),this._trigger("changeMonth",this.viewDate)):(i=new Date(this.dates.get(-1)||e()),i.setUTCDate(i.getUTCDate()+t),r=new Date(u),r.setUTCDate(u.getUTCDate()+t));this.dateWithinRange(i)&&(this.focusDate=this.viewDate=r,this.setValue(),this.fill(),n.preventDefault());break;case 38:case 40:if(!this.o.keyboardNavigation)break;t=n.keyCode===38?-1:1;n.ctrlKey?(i=this.moveYear(this.dates.get(-1)||e(),t),r=this.moveYear(u,t),this._trigger("changeYear",this.viewDate)):n.shiftKey?(i=this.moveMonth(this.dates.get(-1)||e(),t),r=this.moveMonth(u,t),this._trigger("changeMonth",this.viewDate)):(i=new Date(this.dates.get(-1)||e()),i.setUTCDate(i.getUTCDate()+t*7),r=new Date(u),r.setUTCDate(u.getUTCDate()+t*7));this.dateWithinRange(i)&&(this.focusDate=this.viewDate=r,this.setValue(),this.fill(),n.preventDefault());break;case 9:this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.fill();this.hide()}o&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.isInput?f=this.element:this.component&&(f=this.element.find("input")),f&&f.change())},showMode:function(n){n&&(this.viewMode=Math.max(this.o.minViewMode,Math.min(2,this.viewMode+n)));this.picker.find(">div").hide().filter(".datepicker-"+i.modes[this.viewMode].clsName).css("display","block");this.updateNavArrows()}};h=function(t,i){this.element=n(t);this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n});delete i.inputs;n(this.inputs).datepicker(i).bind("changeDate",n.proxy(this.dateUpdated,this));this.pickers=n.map(this.inputs,function(t){return n(t).data("datepicker")});this.updateDates()};h.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.getUTCDate()});this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},dateUpdated:function(t){if(!this.updating){this.updating=!0;var u=n(t.target).data("datepicker"),r=u.getUTCDate(),i=n.inArray(t.target,this.inputs),f=this.inputs.length;if(i!==-1){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t.setUTCDate(r)}),r<this.dates[i])while(i>=0&&r<this.dates[i])this.pickers[i--].setUTCDate(r);else if(r>this.dates[i])while(i<f&&r>this.dates[i])this.pickers[i++].setUTCDate(r);this.updateDates();delete this.updating}}},remove:function(){n.map(this.pickers,function(n){n.remove()});delete this.element.data().datepicker}};a=n.fn.datepicker;n.fn.datepicker=function(i){var u=Array.apply(null,arguments),r;return u.shift(),this.each(function(){var s=n(this),e=s.data("datepicker"),l=typeof i=="object"&&i,v;if(!e){var a=y(this,"date"),w=n.extend({},o,a,l),b=p(w.language),c=n.extend({},o,b,a,l);s.is(".input-daterange")||c.inputs?(v={inputs:c.inputs||s.find("input").toArray()},s.data("datepicker",e=new h(this,n.extend(c,v)))):s.data("datepicker",e=new f(this,c))}if(typeof i=="string"&&typeof e[i]=="function"&&(r=e[i].apply(e,u),r!==t))return!1}),r!==t?r:this};o=n.fn.datepicker.defaults={autoclose:!1,beforeShowDay:n.noop,calendarWeeks:!1,clearBtn:!1,daysOfWeekDisabled:[],endDate:Infinity,forceParse:!0,format:"mm/dd/yyyy",keyboardNavigation:!0,language:"en",minViewMode:0,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-Infinity,startView:0,todayBtn:!1,todayHighlight:!1,weekStart:0,zIndex:null};v=n.fn.datepicker.locale_opts=["format","rtl","weekStart"];n.fn.datepicker.Constructor=f;r=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear"}};i={modes:[{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(n){return n%4==0&&n%100!=0||n%400==0},getDaysInMonth:function(n,t){return[31,i.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]},validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\[\u3400-\u9fff-`{-~\t\n\r]+/g,parseFormat:function(n){var t=n.replace(this.validParts,'\0').split('\0'),i=n.match(this.validParts);if(!t||!t.length||!i||i.length===0)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(e,o,s){function tt(){var n=this.slice(0,c[h].length),t=c[h].slice(0,n.length);return n===t}var nt,c,v,y,h,a,it,d,w;if(!e)return t;if(e instanceof Date)return e;if(typeof o=="string"&&(o=i.parseFormat(o)),nt=/([\-+]\d+)([dmwy])/,c=e.match(/([\-+]\d+)([dmwy])/g),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/.test(e)){for(e=new Date,h=0;h<c.length;h++){v=nt.exec(c[h]);y=parseInt(v[1]);switch(v[2]){case"d":e.setUTCDate(e.getUTCDate()+y);break;case"m":e=f.prototype.moveMonth.call(f.prototype,e,y);break;case"w":e.setUTCDate(e.getUTCDate()+y*7);break;case"y":e=f.prototype.moveYear.call(f.prototype,e,y)}}return u(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),0,0,0)}c=e&&e.match(this.nonpunctuation)||[];e=new Date;var b={},g=["yyyy","yy","M","MM","m","mm","d","dd"],l={yyyy:function(n,t){return n.setUTCFullYear(t)},yy:function(n,t){return n.setUTCFullYear(2e3+t)},m:function(n,t){if(isNaN(n))return n;for(t-=1;t<0;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!==t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}},p,k;if(l.M=l.MM=l.mm=l.m,l.dd=l.d,e=u(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),a=o.parts.slice(),c.length!==a.length&&(a=n(a).filter(function(t,i){return n.inArray(i,g)!==-1}).toArray()),c.length===a.length){for(h=0,it=a.length;h<it;h++){if(p=parseInt(c[h],10),v=a[h],isNaN(p))switch(v){case"MM":k=n(r[s].months).filter(tt);p=n.inArray(k[0],r[s].months)+1;break;case"M":k=n(r[s].monthsShort).filter(tt);p=n.inArray(k[0],r[s].monthsShort)+1}b[v]=p}for(h=0;h<g.length;h++)w=g[h],w in b&&!isNaN(b[w])&&(d=new Date(e),l[w](d,b[w]),isNaN(d)||(e=d))}return e},formatDate:function(t,u,f){var e,s,o,h;if(!t)return"";for(typeof u=="string"&&(u=i.parseFormat(u)),e={d:t.getUTCDate(),D:r[f].daysShort[t.getUTCDay()],DD:r[f].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:r[f].monthsShort[t.getUTCMonth()],MM:r[f].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()},e.dd=(e.d<10?"0":"")+e.d,e.mm=(e.m<10?"0":"")+e.m,t=[],s=n.extend([],u.separators),o=0,h=u.parts.length;o<=h;o++)s.length&&t.push(s.shift()),t.push(e[u.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th class="prev"><i class="fa fa-arrow-left-thin fa-lg"><\/i><\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next"><i class="fa fa-arrow-right-thin fa-lg"><\/i><\/th><\/tr><\/thead>',contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};i.template='<div class="datepicker"><div class="datepicker-days"><table class=" table-condensed">'+i.headTemplate+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=i;n.fn.datepicker.noConflict=function(){return n.fn.datepicker=a,this};n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),i.datepicker("show"))});n(function(){n('[data-provide="datepicker-inline"]').datepicker()})}(window.jQuery),function(n){"use strict";function r(n,t){return n.toUpperCase().indexOf(t.toUpperCase())>-1}function i(t){return n.each([{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}],function(){t=t.replace(this.re,this.ch)}),t}function u(i,r){var u=arguments,o=i,i=u[0],r=u[1],f,e;return[].shift.apply(u),typeof i=="undefined"&&(i=o),e=this.each(function(){var s=n(this),e,o,c,h;if(s.is("select")){if(e=s.data("selectpicker"),o=typeof i=="object"&&i,e){if(o)for(h in o)o.hasOwnProperty(h)&&(e.options[h]=o[h])}else c=n.extend({},t.DEFAULTS,n.fn.selectpicker.defaults||{},s.data(),o),s.data("selectpicker",e=new t(this,c,r));typeof i=="string"&&(f=e[i]instanceof Function?e[i].apply(e,u):e.options[i])}}),typeof f!="undefined"?f:e}var t,f;n.expr[":"].icontains=function(t,i,u){return r(n(t).text(),u[3])};n.expr[":"].aicontains=function(t,i,u){return r(n(t).data("normalizedText")||n(t).text(),u[3])};t=function(i,r,u){u&&(u.stopPropagation(),u.preventDefault());this.$element=n(i);this.$newElement=null;this.$button=null;this.$menu=null;this.$lis=null;this.options=r;this.options.title===null&&(this.options.title=this.$element.attr("title"));this.val=t.prototype.val;this.render=t.prototype.render;this.refresh=t.prototype.refresh;this.setStyle=t.prototype.setStyle;this.selectAll=t.prototype.selectAll;this.deselectAll=t.prototype.deselectAll;this.destroy=t.prototype.remove;this.remove=t.prototype.remove;this.show=t.prototype.show;this.hide=t.prototype.hide;this.init()};t.VERSION="1.6.2";t.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results match",countSelectedText:function(n){return n==1?"{0} item selected":"{0} items selected"},maxOptionsText:function(n,t){var i=[];return i[0]=n==1?"Limit reached ({n} item max)":"Limit reached ({n} items max)",i[1]=t==1?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)",i},selectAllText:"Select All",deselectAllText:"Deselect All",multipleSeparator:", ",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,actionsBox:!1,iconBase:"fa",tickIcon:"glyphicon-ok",maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1,searchAccentInsensitive:!1};t.prototype={constructor:t,init:function(){var i=this,t=this.$element.attr("id");this.$element.hide();this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");this.$newElement=this.createView();this.$element.after(this.$newElement);this.$menu=this.$newElement.find("> .dropdown-menu");this.$button=this.$newElement.find("> button");this.$searchbox=this.$newElement.find("input");this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right");typeof t!="undefined"&&(this.$button.attr("data-id",t),n('label[for="'+t+'"]').click(function(n){n.preventDefault();i.$button.focus()}));this.checkDisabled();this.clickListener();this.options.liveSearch&&this.liveSearchListener();this.render();this.liHeight();this.setStyle();this.setWidth();this.options.container&&this.selectPosition();this.$menu.data("this",this);this.$newElement.data("this",this);this.options.mobile&&this.mobile()},createDropdown:function(){var t=this.multiple?" show-tick":"",i=this.$element.parent().hasClass("input-group")?" input-group-btn":"",r=this.autofocus?" autofocus":"",u=this.$element.parents().hasClass("form-group-lg")?" btn-lg":this.$element.parents().hasClass("form-group-sm")?" btn-sm":"",f=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;<\/button>'+this.options.header+"<\/div>":"",e=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="input-block-level form-control" autocomplete="off" /><\/div>':"",o=this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-block"><button class="actions-btn bs-select-all btn btn-sm btn-default">'+this.options.selectAllText+'<\/button><button class="actions-btn bs-deselect-all btn btn-sm btn-default">'+this.options.deselectAllText+"<\/button><\/div><\/div>":"",s='<div class="btn-group bootstrap-select'+t+i+'"><button type="button" class="btn dropdown-toggle selectpicker'+u+'" data-toggle="dropdown"'+r+'><span class="filter-option pull-left"><\/span>&nbsp;<i class="fa fa-arrow-down fa-lg"><\/i><\/button><div class="dropdown-menu open">'+f+e+o+'<ul class="dropdown-menu inner selectpicker" role="menu"><\/ul><\/div><\/div>';return n(s)},createView:function(){var n=this.createDropdown(),t=this.createLi();return n.find("ul").append(t),n},reloadLi:function(){this.destroyLi();var n=this.createLi();this.$menu.find("ul").append(n)},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var u=this,t=[],e=0,r=function(n,t,i){return"<li"+(typeof i!="undefined"?' class="'+i+'"':"")+(typeof t!="undefined"|null===t?' data-original-index="'+t+'"':"")+">"+n+"<\/li>"},f=function(t,r,f,e){var o=i(n.trim(n("<div/>").html(t).text()).replace(/\s\s+/g," "));return'<a tabindex="0"'+(typeof r!="undefined"?' class="'+r+'"':"")+(typeof f!="undefined"?' style="'+f+'"':"")+(typeof e!="undefined"?'data-optgroup="'+e+'"':"")+' data-normalized-text="'+o+'">'+t+'<span class="'+u.options.iconBase+" "+u.options.tickIcon+' check-mark"><\/span><\/a>'};return this.$element.find("option").each(function(){var i=n(this),c=i.attr("class")||"",l=i.attr("style"),o=i.data("content")?i.data("content"):i.html(),y=typeof i.data("subtext")!="undefined"?'<small class="muted text-muted">'+i.data("subtext")+"<\/small>":"",h=typeof i.data("icon")!="undefined"?'<span class="'+u.options.iconBase+" "+i.data("icon")+'"><\/span> ':"",v=i.is(":disabled")||i.parent().is(":disabled"),s=i[0].index;if(h!==""&&v&&(h="<span>"+h+"<\/span>"),i.data("content")||(o=h+'<span class="text">'+o+y+"<\/span>"),!u.options.hideDisabled||!v)if(i.parent().is("optgroup")&&i.data("divider")!==!0){if(i.index()===0){e+=1;var a=i.parent().attr("label"),p=typeof i.parent().data("subtext")!="undefined"?'<small class="muted text-muted">'+i.parent().data("subtext")+"<\/small>":"",w=i.parent().data("icon")?'<span class="'+u.options.iconBase+" "+i.parent().data("icon")+'"><\/span> ':"";a=w+'<span class="text">'+a+p+"<\/span>";s!==0&&t.length>0&&t.push(r("",null,"divider"));t.push(r(a,null,"dropdown-header"))}t.push(r(f(o,"opt "+c,l,e),s))}else i.data("divider")===!0?t.push(r("",s,"divider")):i.data("hidden")===!0?t.push(r(f(o,c,l),s,"hide is-hidden")):t.push(r(f(o,c,l),s))}),this.multiple||this.$element.find("option:selected").length!==0||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),n(t.join(""))},findLis:function(){return this.$lis==null&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(t){var i=this,f,o,s;t!==!1&&this.$element.find("option").each(function(t){i.setDisabled(t,n(this).is(":disabled")||n(this).parent().is(":disabled"));i.setSelected(t,n(this).is(":selected"))});this.tabIndex();var e=this.options.hideDisabled?":not([disabled])":"",r=this.$element.find("option:selected"+e).map(function(){var t=n(this),u=t.data("icon")&&i.options.showIcon?'<i class="'+i.options.iconBase+" "+t.data("icon")+'"><\/i> ':"",r;return r=i.options.showSubtext&&t.attr("data-subtext")&&!i.multiple?' <small class="muted text-muted">'+t.data("subtext")+"<\/small>":"",t.data("content")&&i.options.showContent?t.data("content"):typeof t.attr("title")!="undefined"?t.attr("title"):u+t.html()+r}).toArray(),u=this.multiple?r.join(this.options.multipleSeparator):r[0];this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1&&(f=this.options.selectedTextFormat.split(">"),(f.length>1&&r.length>f[1]||f.length==1&&r.length>=2)&&(e=this.options.hideDisabled?", [disabled]":"",o=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+e).length,s=typeof this.options.countSelectedText=="function"?this.options.countSelectedText(r.length,o):this.options.countSelectedText,u=s.replace("{0}",r.length.toString()).replace("{1}",o.toString())));this.options.title=this.$element.attr("title");this.options.selectedTextFormat=="static"&&(u=this.options.title);u||(u=typeof this.options.title!="undefined"?this.options.title:this.options.noneSelectedText);this.$button.attr("title",n.trim(n("<div/>").html(u).text()).replace(/\s\s+/g," "));this.$newElement.find(".filter-option").html(u)},setStyle:function(n,t){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|validate\[.*\]/gi,""));var i=n?n:this.options.style;t=="add"?this.$button.addClass(i):t=="remove"?this.$button.removeClass(i):(this.$button.removeClass(this.options.style),this.$button.addClass(i))},liHeight:function(){if(this.options.size!==!1){var t=this.$menu.parent().clone().find("> .dropdown-toggle").prop("autofocus",!1).end().appendTo("body"),n=t.addClass("open").find("> .dropdown-menu"),i=n.find("li").not(".divider").not(".dropdown-header").filter(":visible").children("a").outerHeight(),r=this.options.header?n.find(".popover-title").outerHeight():0,u=this.options.liveSearch?n.find(".bs-searchbox").outerHeight():0,f=this.options.actionsBox?n.find(".bs-actionsbox").outerHeight():0;t.remove();this.$newElement.data("liHeight",i).data("headerHeight",r).data("searchHeight",u).data("actionsHeight",f)}},setSize:function(){var e,b,k;this.findLis();var r=this,t=this.$menu,a=t.find(".inner"),d=this.$newElement.outerHeight(),v=this.$newElement.data("liHeight"),h=this.$newElement.data("headerHeight"),c=this.$newElement.data("searchHeight"),l=this.$newElement.data("actionsHeight"),g=this.$lis.filter(".divider").outerHeight(!0),u=parseInt(t.css("padding-top"))+parseInt(t.css("padding-bottom"))+parseInt(t.css("border-top-width"))+parseInt(t.css("border-bottom-width")),y=this.options.hideDisabled?", .disabled":"",p=n(window),o=u+parseInt(t.css("margin-top"))+parseInt(t.css("margin-bottom"))+2,i,f,s,w=function(){f=r.$newElement.offset().top-p.scrollTop();s=p.height()-f-d};if(w(),this.options.header&&t.css("padding-top",0),this.options.size=="auto"){e=function(){var n,e=r.$lis.not(".hide");w();i=s-o;r.options.dropupAuto&&r.$newElement.toggleClass("dropup",f>s&&i-o<t.height());r.$newElement.hasClass("dropup")&&(i=f-o);n=e.length+e.filter(".dropdown-header").length>3?v*3+o-2:0;t.css({"max-height":i+"px",overflow:"hidden","min-height":n+h+c+l+"px"});a.css({"max-height":i-h-c-l-u+"px","overflow-y":"auto","min-height":Math.max(n-u,0)+"px"})};e();this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",e);n(window).off("resize.getSize").on("resize.getSize",e);n(window).off("scroll.getSize").on("scroll.getSize",e)}else this.options.size&&this.options.size!="auto"&&t.find("li"+y).length>this.options.size&&(b=this.$lis.not(".divider"+y).find(" > *").slice(0,this.options.size).last().parent().index(),k=this.$lis.slice(0,b+1).filter(".divider").length,i=v*this.options.size+k*g+u,r.options.dropupAuto&&this.$newElement.toggleClass("dropup",f>s&&i<t.height()),t.css({"max-height":i+h+c+l+"px",overflow:"hidden"}),a.css({"max-height":i-u+"px","overflow-y":"auto"}))},setWidth:function(){if(this.options.width=="auto"){this.$menu.css("min-width","0");var n=this.$newElement.clone().appendTo("body"),t=n.find("> .dropdown-menu").css("width"),i=n.css("width","auto").find("> button").css("width");n.remove();this.$newElement.css("width",Math.max(parseInt(t),parseInt(i))+"px")}else this.options.width=="fit"?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&this.options.width!=="fit"&&this.$newElement.removeClass("fit-width")},selectPosition:function(){var t=this,i=n("<div />"),r,f,u=function(n){i.addClass(n.attr("class").replace(/form-control/gi,"")).toggleClass("dropup",n.hasClass("dropup"));r=n.offset();f=n.hasClass("dropup")?0:n[0].offsetHeight;i.css({top:r.top+f,left:r.left,width:n[0].offsetWidth,position:"absolute"})};this.$newElement.on("click",function(){t.isDisabled()||(u(n(this)),i.appendTo(t.options.container),i.toggleClass("open",!n(this).hasClass("open")),i.append(t.$menu))});n(window).resize(function(){u(t.$newElement)});n(window).on("scroll",function(){u(t.$newElement)});n("html").on("click",function(r){n(r.target).closest(t.$newElement).length<1&&i.removeClass("open")})},setSelected:function(n,t){this.findLis();this.$lis.filter('[data-original-index="'+n+'"]').toggleClass("selected",t)},setDisabled:function(n,t){this.findLis();t?this.$lis.filter('[data-original-index="'+n+'"]').addClass("disabled").find("a").attr("href","#").attr("tabindex",-1):this.$lis.filter('[data-original-index="'+n+'"]').removeClass("disabled").find("a").removeAttr("href").attr("tabindex",0)},isDisabled:function(){return this.$element.is(":disabled")},checkDisabled:function(){var n=this;this.isDisabled()?this.$button.addClass("disabled").attr("tabindex",-1):(this.$button.hasClass("disabled")&&this.$button.removeClass("disabled"),this.$button.attr("tabindex")==-1&&(this.$element.data("tabindex")||this.$button.removeAttr("tabindex")));this.$button.click(function(){return!n.isDisabled()})},tabIndex:function(){this.$element.is("[tabindex]")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex")))},clickListener:function(){var t=this;this.$newElement.on("touchstart.dropdown",".dropdown-menu",function(n){n.stopPropagation()});this.$newElement.on("click",function(){t.setSize();t.options.liveSearch||t.multiple||setTimeout(function(){t.$menu.find(".selected a").focus()},10)});this.$menu.on("click","li a",function(i){var s=n(this),e=s.parent().data("originalIndex"),k=t.$element.val(),d=t.$element.prop("selectedIndex"),a,v,b;if(t.multiple&&i.stopPropagation(),i.preventDefault(),!t.isDisabled()&&!s.parent().hasClass("disabled")){var h=t.$element.find("option"),f=h.eq(e),w=f.prop("selected"),l=f.parent("optgroup"),r=t.options.maxOptions,u=l.data("maxOptions")||!1;if(t.multiple){if(f.prop("selected",!w),t.setSelected(e,!w),s.blur(),(r!==!1||u!==!1)&&(a=r<h.filter(":selected").length,v=u<l.find("option:selected").length,r&&a||u&&v))if(r&&r==1)h.prop("selected",!1),f.prop("selected",!0),t.$menu.find(".selected").removeClass("selected"),t.setSelected(e,!0);else if(u&&u==1)l.find("option:selected").prop("selected",!1),f.prop("selected",!0),b=s.data("optgroup"),t.$menu.find(".selected").has('a[data-optgroup="'+b+'"]').removeClass("selected"),t.setSelected(e,!0);else{var o=typeof t.options.maxOptionsText=="function"?t.options.maxOptionsText(r,u):t.options.maxOptionsText,y=o[0].replace("{n}",r),p=o[1].replace("{n}",u),c=n('<div class="notify"><\/div>');o[2]&&(y=y.replace("{var}",o[2][r>1?0:1]),p=p.replace("{var}",o[2][u>1?0:1]));f.prop("selected",!1);t.$menu.append(c);r&&a&&(c.append(n("<div>"+y+"<\/div>")),t.$element.trigger("maxReached.bs.select"));u&&v&&(c.append(n("<div>"+p+"<\/div>")),t.$element.trigger("maxReachedGrp.bs.select"));setTimeout(function(){t.setSelected(e,!1)},10);c.delay(750).fadeOut(300,function(){n(this).remove()})}}else h.prop("selected",!1),f.prop("selected",!0),t.$menu.find(".selected").removeClass("selected"),t.setSelected(e,!0);t.multiple?t.options.liveSearch&&t.$searchbox.focus():t.$button.focus();(k!=t.$element.val()&&t.multiple||d!=t.$element.prop("selectedIndex")&&!t.multiple)&&t.$element.change()}});this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(n){n.target==this&&(n.preventDefault(),n.stopPropagation(),t.options.liveSearch?t.$searchbox.focus():t.$button.focus())});this.$menu.on("click","li.divider, li.dropdown-header",function(n){n.preventDefault();n.stopPropagation();t.options.liveSearch?t.$searchbox.focus():t.$button.focus()});this.$menu.on("click",".popover-title .close",function(){t.$button.focus()});this.$searchbox.on("click",function(n){n.stopPropagation()});this.$menu.on("click",".actions-btn",function(i){t.options.liveSearch?t.$searchbox.focus():t.$button.focus();i.preventDefault();i.stopPropagation();n(this).is(".bs-select-all")?t.selectAll():t.deselectAll();t.$element.change()});this.$element.change(function(){t.render(!1)})},liveSearchListener:function(){var t=this,r=n('<li class="no-results"><\/li>');this.$newElement.on("click.dropdown.data-api",function(){t.$menu.find(".active").removeClass("active");!t.$searchbox.val()||(t.$searchbox.val(""),t.$lis.not(".is-hidden").removeClass("hide"),!r.parent().length||r.remove());t.multiple||t.$menu.find(".selected").addClass("active");setTimeout(function(){t.$searchbox.focus()},10)});this.$searchbox.on("input propertychange",function(){t.$searchbox.val()?(t.options.searchAccentInsensitive?t.$lis.not(".is-hidden").removeClass("hide").find("a").not(":aicontains("+i(t.$searchbox.val())+")").parent().addClass("hide"):t.$lis.not(".is-hidden").removeClass("hide").find("a").not(":icontains("+t.$searchbox.val()+")").parent().addClass("hide"),t.$menu.find("li").filter(":visible:not(.no-results)").length?!r.parent().length||r.remove():(!r.parent().length||r.remove(),r.html(t.options.noneResultsText+' "'+t.$searchbox.val()+'"').show(),t.$menu.find("li").last().after(r))):(t.$lis.not(".is-hidden").removeClass("hide"),!r.parent().length||r.remove());t.$menu.find("li.active").removeClass("active");t.$menu.find("li").filter(":visible:not(.divider)").eq(0).addClass("active").find("a").focus();n(this).focus()})},val:function(n){return typeof n!="undefined"?(this.$element.val(n),this.render(),this.$element):this.$element.val()},selectAll:function(){this.findLis();this.$lis.not(".divider").not(".disabled").not(".selected").filter(":visible").find("a").click()},deselectAll:function(){this.findLis();this.$lis.not(".divider").not(".disabled").filter(".selected").filter(":visible").find("a").click()},keydown:function(t){var e=n(this),c=e.is("input")?e.parent().parent():e.parent(),f,r=c.data("this"),u,h,l,a,y,p,b,s,w={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},v,o,k;(r.options.liveSearch&&(c=e.parent().parent()),r.options.container&&(c=r.$menu),f=n("[role=menu] li a",c),s=r.$menu.parent().hasClass("open"),!s&&/([0-9]|[A-z])/.test(String.fromCharCode(t.keyCode))&&(r.options.container?r.$newElement.trigger("click"):(r.setSize(),r.$menu.parent().addClass("open"),s=!0),r.$searchbox.focus()),r.options.liveSearch&&(/(^9$|27)/.test(t.keyCode.toString(10))&&s&&r.$menu.find(".active").length===0&&(t.preventDefault(),r.$menu.parent().removeClass("open"),r.$button.focus()),f=n("[role=menu] li:not(.divider):not(.dropdown-header):visible",c),e.val()||/(38|40)/.test(t.keyCode.toString(10))||f.filter(".active").length===0&&(f=r.options.searchAccentInsensitive?r.$newElement.find("li").filter(":aicontains("+i(w[t.keyCode])+")"):r.$newElement.find("li").filter(":icontains("+w[t.keyCode]+")"))),f.length)&&(/(38|40)/.test(t.keyCode.toString(10))?(u=f.index(f.filter(":focus")),l=f.parent(":not(.disabled):visible").first().index(),a=f.parent(":not(.disabled):visible").last().index(),h=f.eq(u).parent().nextAll(":not(.disabled):visible").eq(0).index(),y=f.eq(u).parent().prevAll(":not(.disabled):visible").eq(0).index(),p=f.eq(h).parent().prevAll(":not(.disabled):visible").eq(0).index(),r.options.liveSearch&&(f.each(function(t){n(this).is(":not(.disabled)")&&n(this).data("index",t)}),u=f.index(f.filter(".active")),l=f.filter(":not(.disabled):visible").first().data("index"),a=f.filter(":not(.disabled):visible").last().data("index"),h=f.eq(u).nextAll(":not(.disabled):visible").eq(0).data("index"),y=f.eq(u).prevAll(":not(.disabled):visible").eq(0).data("index"),p=f.eq(h).prevAll(":not(.disabled):visible").eq(0).data("index")),b=e.data("prevIndex"),t.keyCode==38&&(r.options.liveSearch&&(u-=1),u!=p&&u>y&&(u=y),u<l&&(u=l),u==b&&(u=a)),t.keyCode==40&&(r.options.liveSearch&&(u+=1),u==-1&&(u=0),u!=p&&u<h&&(u=h),u>a&&(u=a),u==b&&(u=l)),e.data("prevIndex",u),r.options.liveSearch?(t.preventDefault(),e.is(".dropdown-toggle")||(f.removeClass("active"),f.eq(u).addClass("active").find("a").focus(),e.focus())):f.eq(u).focus()):e.is("input")||(v=[],f.each(function(){n(this).parent().is(":not(.disabled)")&&n.trim(n(this).text().toLowerCase()).substring(0,1)==w[t.keyCode]&&v.push(n(this).parent().index())}),o=n(document).data("keycount"),o++,n(document).data("keycount",o),k=n.trim(n(":focus").text().toLowerCase()).substring(0,1),k!=w[t.keyCode]?(o=1,n(document).data("keycount",o)):o>=v.length&&(n(document).data("keycount",0),o>v.length&&(o=1)),f.eq(v[o-1]).focus()),(/(13|32)/.test(t.keyCode.toString(10))||/(^9$)/.test(t.keyCode.toString(10))&&r.options.selectOnTab)&&s&&(/(32)/.test(t.keyCode.toString(10))||t.preventDefault(),r.options.liveSearch?/(32)/.test(t.keyCode.toString(10))||(r.$menu.find(".active a").click(),e.focus()):n(":focus").click(),n(document).data("keycount",0)),(/(^9$|27)/.test(t.keyCode.toString(10))&&s&&(r.multiple||r.options.liveSearch)||/(27)/.test(t.keyCode.toString(10))&&!s)&&(r.$menu.parent().removeClass("open"),r.$button.focus()))},mobile:function(){this.$element.addClass("mobile-device").appendTo(this.$newElement);this.options.container&&this.$menu.hide()},refresh:function(){this.$lis=null;this.reloadLi();this.render();this.setWidth();this.setStyle();this.checkDisabled();this.liHeight()},update:function(){this.reloadLi();this.setWidth();this.setStyle();this.checkDisabled();this.liHeight()},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove();this.$element.remove()}};f=n.fn.selectpicker;n.fn.selectpicker=u;n.fn.selectpicker.Constructor=t;n.fn.selectpicker.noConflict=function(){return n.fn.selectpicker=f,this};n(document).data("keycount",0).on("keydown",".bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=menu], .bs-searchbox input",t.prototype.keydown).on("focusin.modal",".bootstrap-select [data-toggle=dropdown], .bootstrap-select [role=menu], .bs-searchbox input",function(n){n.stopPropagation()});n(window).on("load.bs.select.data-api",function(){n(".selectpicker").each(function(){var t=n(this);u.call(t,t.data())})})}(jQuery),!function(n){"use strict";function i(n){return ko.isObservable(n)&&!(n.destroyAll===undefined)}function r(n,t){for(var i=0;i<n.length;++i)t(n[i])}function t(t,i){this.$select=n(t);this.options=this.mergeOptions(n.extend({},i,this.$select.data()));this.originalOptions=this.$select.clone()[0].options;this.query="";this.searchTimeout=null;this.options.multiple=this.$select.attr("multiple")==="multiple";this.options.onChange=n.proxy(this.options.onChange,this);this.options.onDropdownShow=n.proxy(this.options.onDropdownShow,this);this.options.onDropdownHide=n.proxy(this.options.onDropdownHide,this);this.options.onDropdownShown=n.proxy(this.options.onDropdownShown,this);this.options.onDropdownHidden=n.proxy(this.options.onDropdownHidden,this);this.buildContainer();this.buildButton();this.buildDropdown();this.buildSelectAll();this.buildDropdownOptions();this.buildFilter();this.updateButtonText();this.updateSelectAll();this.options.disableIfEmpty&&n("option",this.$select).length<=0&&this.disable();this.$select.hide().after(this.$container)}typeof ko!="undefined"&&ko.bindingHandlers&&!ko.bindingHandlers.multiselect&&(ko.bindingHandlers.multiselect={init:function(t,u,f){var e=f().selectedOptions,o=ko.utils.unwrapObservable(u());n(t).multiselect(o);i(e)&&(n(t).multiselect("select",ko.utils.unwrapObservable(e)),e.subscribe(function(i){var u=[],f=[];r(i,function(n){switch(n.status){case"added":u.push(n.value);break;case"deleted":f.push(n.value)}});u.length>0&&n(t).multiselect("select",u);f.length>0&&n(t).multiselect("deselect",f)},null,"arrayChange"))},update:function(t,r,u){var f=u().options,e=n(t).data("multiselect"),o=ko.utils.unwrapObservable(r());i(f)&&f.subscribe(function(){n(t).multiselect("rebuild")});e?e.updateOriginalOptions():n(t).multiselect(o)}});t.prototype={defaults:{buttonText:function(t,i){if(t.length===0)return this.nonSelectedText+' <b class="caret"><\/b>';if(t.length==n("option",n(i)).length)return this.allSelectedText+' <b class="caret"><\/b>';if(t.length>this.numberDisplayed)return t.length+" "+this.nSelectedText+' <b class="caret"><\/b>';var r="";return t.each(function(){var t=n(this).attr("label")!==undefined?n(this).attr("label"):n(this).html();r+=t+", "}),r.substr(0,r.length-2)+' <b class="caret"><\/b>'},buttonTitle:function(t){if(t.length===0)return this.nonSelectedText;var i="";return t.each(function(){i+=n(this).text()+", "}),i.substr(0,i.length-2)},label:function(t){return n(t).attr("label")||n(t).html()},onChange:function(){},onDropdownShow:function(){},onDropdownHide:function(){},onDropdownShown:function(){},onDropdownHidden:function(){},buttonClass:"btn btn-default",buttonWidth:"auto",buttonContainer:'<div class="btn-group" />',dropRight:!1,selectedClass:"active",maxHeight:!1,checkboxName:!1,includeSelectAllOption:!1,includeSelectAllIfMoreThan:0,selectAllText:" Select all",selectAllValue:"multiselect-all",selectAllName:!1,enableFiltering:!1,enableCaseInsensitiveFiltering:!1,enableClickableOptGroups:!1,filterPlaceholder:"Search",filterBehavior:"text",includeFilterClearBtn:!0,preventInputChangeEvent:!1,nonSelectedText:"None selected",nSelectedText:"selected",allSelectedText:"All selected",numberDisplayed:3,disableIfEmpty:!1,templates:{button:'<button type="button" class="multiselect dropdown-toggle" data-toggle="dropdown"><\/button>',ul:'<ul class="multiselect-container dropdown-menu"><\/ul>',filter:'<li class="multiselect-item filter"><div class="input-group"><span class="input-group-addon"><i class="glyphicon glyphicon-search"><\/i><\/span><input class="form-control multiselect-search" type="text"><\/div><\/li>',filterClearBtn:'<span class="input-group-btn"><button class="btn btn-default multiselect-clear-filter" type="button"><i class="glyphicon glyphicon-remove-circle"><\/i><\/button><\/span>',li:'<li><a href="javascript:void(0);"><label><\/label><\/a><\/li>',divider:'<li class="multiselect-item divider"><\/li>',liGroup:'<li class="multiselect-item multiselect-group"><label><\/label><\/li>'}},constructor:t,buildContainer:function(){this.$container=n(this.options.buttonContainer);this.$container.on("show.bs.dropdown",this.options.onDropdownShow);this.$container.on("hide.bs.dropdown",this.options.onDropdownHide);this.$container.on("shown.bs.dropdown",this.options.onDropdownShown);this.$container.on("hidden.bs.dropdown",this.options.onDropdownHidden)},buildButton:function(){this.$button=n(this.options.templates.button).addClass(this.options.buttonClass);this.$select.prop("disabled")?this.disable():this.enable();this.options.buttonWidth&&this.options.buttonWidth!=="auto"&&(this.$button.css({width:this.options.buttonWidth}),this.$container.css({width:this.options.buttonWidth}));var t=this.$select.attr("tabindex");t&&this.$button.attr("tabindex",t);this.$container.prepend(this.$button)},buildDropdown:function(){this.$ul=n(this.options.templates.ul);this.options.dropRight&&this.$ul.addClass("pull-right");this.options.maxHeight&&this.$ul.css({"max-height":this.options.maxHeight+"px","overflow-y":"auto","overflow-x":"hidden"});this.$container.append(this.$ul)},buildDropdownOptions:function(){this.$select.children().each(n.proxy(function(t,i){var r=n(i),u=r.prop("tagName").toLowerCase();r.prop("value")!==this.options.selectAllValue&&(u==="optgroup"?this.createOptgroup(i):u==="option"&&(r.data("role")==="divider"?this.createDivider():this.createOptionValue(i)))},this));n("li input",this.$ul).on("change",n.proxy(function(t){var i=n(t.target),u=i.prop("checked")||!1,f=i.val()===this.options.selectAllValue;this.options.selectedClass&&(u?i.closest("li").addClass(this.options.selectedClass):i.closest("li").removeClass(this.options.selectedClass));var s=i.val(),r=this.getOptionByValue(s),e=n("option",this.$select).not(r),o=n("input",this.$container).not(i);f&&(u?this.selectAll():this.deselectAll());f||(u?(r.prop("selected",!0),this.options.multiple?r.prop("selected",!0):(this.options.selectedClass&&n(o).closest("li").removeClass(this.options.selectedClass),n(o).prop("checked",!1),e.prop("selected",!1),this.$button.click()),this.options.selectedClass==="active"&&e.closest("a").css("outline","")):r.prop("selected",!1));this.$select.change();this.updateButtonText();this.updateSelectAll();this.options.onChange(r,u);if(this.options.preventInputChangeEvent)return!1},this));n("li a",this.$ul).on("touchstart click",function(t){var i,u;if(t.stopPropagation(),i=n(t.target),t.shiftKey&&(u=i.prop("checked")||!1,u)){var r=i.closest("li").siblings('li[class="active"]:first'),f=i.closest("li").index(),e=r.index();f>e?i.closest("li").prevUntil(r).each(function(){n(this).find("input:first").prop("checked",!0).trigger("change")}):i.closest("li").nextUntil(r).each(function(){n(this).find("input:first").prop("checked",!0).trigger("change")})}i.blur()});this.$container.off("keydown.multiselect").on("keydown.multiselect",n.proxy(function(t){var r,i,f,u;if(!n('input[type="text"]',this.$container).is(":focus"))if(t.keyCode===9&&this.$container.hasClass("open"))this.$button.click();else{if(r=n(this.$container).find("li:not(.divider):not(.disabled) a").filter(":visible"),!r.length)return;i=r.index(r.filter(":focus"));t.keyCode===38&&i>0?i--:t.keyCode===40&&i<r.length-1?i++:~i||(i=0);f=r.eq(i);f.focus();(t.keyCode===32||t.keyCode===13)&&(u=f.find("input"),u.prop("checked",!u.prop("checked")),u.change());t.stopPropagation();t.preventDefault()}},this));if(this.options.enableClickableOptGroups&&this.options.multiple)n("li.multiselect-group",this.$ul).on("click",n.proxy(function(t){t.stopPropagation();var u=n(t.target).parent(),f=u.nextUntil("li.multiselect-group"),i=!0,r=f.find("input");r.each(function(){i=i&&n(this).prop("checked")});r.prop("checked",!i).trigger("change")},this))},createOptionValue:function(t){var r=n(t),i,e;r.is(":selected")&&r.prop("selected",!0);var h=this.options.label(t),o=r.val(),s=this.options.multiple?"checkbox":"radio",f=n(this.options.templates.li),u=n("label",f);u.addClass(s);i=n("<input/>").attr("type",s);this.options.checkboxName&&i.attr("name",this.options.checkboxName);u.append(i);e=r.prop("selected")||!1;i.val(o);o===this.options.selectAllValue&&(f.addClass("multiselect-item multiselect-all"),i.parent().parent().addClass("multiselect-all"));u.append(" "+h);u.attr("title",r.attr("title"));this.$ul.append(f);r.is(":disabled")&&i.attr("disabled","disabled").prop("disabled",!0).closest("a").attr("tabindex","-1").closest("li").addClass("disabled");i.prop("checked",e);e&&this.options.selectedClass&&i.closest("li").addClass(this.options.selectedClass)},createDivider:function(){var t=n(this.options.templates.divider);this.$ul.append(t)},createOptgroup:function(t){var r=n(t).prop("label"),i=n(this.options.templates.liGroup);n("label",i).text(r);this.options.enableClickableOptGroups&&i.addClass("multiselect-group-clickable");this.$ul.append(i);n(t).is(":disabled")&&i.addClass("disabled");n("option",t).each(n.proxy(function(n,t){this.createOptionValue(t)},this))},buildSelectAll:function(){var r,t,i;typeof this.options.selectAllValue=="number"&&(this.options.selectAllValue=this.options.selectAllValue.toString());r=this.hasSelectAll();!r&&this.options.includeSelectAllOption&&this.options.multiple&&n("option",this.$select).length>this.options.includeSelectAllIfMoreThan&&(this.options.includeSelectAllDivider&&this.$ul.prepend(n(this.options.templates.divider)),t=n(this.options.templates.li),n("label",t).addClass("checkbox"),this.options.selectAllName?n("label",t).append('<input type="checkbox" name="'+this.options.selectAllName+'" />'):n("label",t).append('<input type="checkbox" />'),i=n("input",t),i.val(this.options.selectAllValue),t.addClass("multiselect-item multiselect-all"),i.parent().parent().addClass("multiselect-all"),n("label",t).append(" "+this.options.selectAllText),this.$ul.prepend(t),i.prop("checked",!1))},buildFilter:function(){var i,t;if((this.options.enableFiltering||this.options.enableCaseInsensitiveFiltering)&&(i=Math.max(this.options.enableFiltering,this.options.enableCaseInsensitiveFiltering),this.$select.find("option").length>=i)){if(this.$filter=n(this.options.templates.filter),n("input",this.$filter).attr("placeholder",this.options.filterPlaceholder),this.options.includeFilterClearBtn){t=n(this.options.templates.filterClearBtn);t.on("click",n.proxy(function(){clearTimeout(this.searchTimeout);this.$filter.find(".multiselect-search").val("");n("li",this.$ul).show().removeClass("filter-hidden");this.updateSelectAll()},this));this.$filter.find(".input-group").append(t)}this.$ul.prepend(this.$filter);this.$filter.val(this.query).on("click",function(n){n.stopPropagation()}).on("input keydown",n.proxy(function(t){t.which===13&&t.preventDefault();clearTimeout(this.searchTimeout);this.searchTimeout=this.asyncFunction(n.proxy(function(){if(this.query!==t.target.value){this.query=t.target.value;var i,r;n.each(n("li",this.$ul),n.proxy(function(t,u){var o=n("input",u).val(),s=n("label",u).text(),e="",f;this.options.filterBehavior==="text"?e=s:this.options.filterBehavior==="value"?e=o:this.options.filterBehavior==="both"&&(e=s+"\n"+o);o!==this.options.selectAllValue&&s&&(f=!1,this.options.enableCaseInsensitiveFiltering&&e.toLowerCase().indexOf(this.query.toLowerCase())>-1?f=!0:e.indexOf(this.query)>-1&&(f=!0),n(u).toggle(f).toggleClass("filter-hidden",!f),n(this).hasClass("multiselect-group")?(i=u,r=f):(f&&n(i).show().removeClass("filter-hidden"),!f&&r&&n(u).show().removeClass("filter-hidden")))},this))}this.updateSelectAll()},this),300,this)},this))}},destroy:function(){this.$container.remove();this.$select.show();this.$select.data("multiselect",null)},refresh:function(){n("option",this.$select).each(n.proxy(function(t,i){var r=n("li input",this.$ul).filter(function(){return n(this).val()===n(i).val()});n(i).is(":selected")?(r.prop("checked",!0),this.options.selectedClass&&r.closest("li").addClass(this.options.selectedClass)):(r.prop("checked",!1),this.options.selectedClass&&r.closest("li").removeClass(this.options.selectedClass));n(i).is(":disabled")?r.attr("disabled","disabled").prop("disabled",!0).closest("li").addClass("disabled"):r.prop("disabled",!1).closest("li").removeClass("disabled")},this));this.updateButtonText();this.updateSelectAll()},select:function(t,i){var u,r,f,e;for(n.isArray(t)||(t=[t]),u=0;u<t.length;u++)(r=t[u],r!==null&&r!==undefined)&&(f=this.getOptionByValue(r),e=this.getInputByValue(r),f!==undefined&&e!==undefined)&&(this.options.multiple||this.deselectAll(!1),this.options.selectedClass&&e.closest("li").addClass(this.options.selectedClass),e.prop("checked",!0),f.prop("selected",!0));if(this.updateButtonText(),this.updateSelectAll(),i&&t.length===1)this.options.onChange(f,!0)},clearSelection:function(){this.deselectAll(!1);this.updateButtonText();this.updateSelectAll()},deselect:function(t,i){var u,r,f,e;for(n.isArray(t)||(t=[t]),u=0;u<t.length;u++)(r=t[u],r!==null&&r!==undefined)&&(f=this.getOptionByValue(r),e=this.getInputByValue(r),f!==undefined&&e!==undefined)&&(this.options.selectedClass&&e.closest("li").removeClass(this.options.selectedClass),e.prop("checked",!1),f.prop("selected",!1));if(this.updateButtonText(),this.updateSelectAll(),i&&t.length===1)this.options.onChange(f,!1)},selectAll:function(t){var t=typeof t=="undefined"?!0:t,i=n("li input[type='checkbox']:enabled",this.$ul),r=i.filter(":visible"),f=i.length,e=r.length,u;t?(r.prop("checked",!0),n("li:not(.divider):not(.disabled)",this.$ul).filter(":visible").addClass(this.options.selectedClass)):(i.prop("checked",!0),n("li:not(.divider):not(.disabled)",this.$ul).addClass(this.options.selectedClass));f===e||t===!1?n("option:enabled",this.$select).prop("selected",!0):(u=r.map(function(){return n(this).val()}).get(),n("option:enabled",this.$select).filter(function(){return n.inArray(n(this).val(),u)!==-1}).prop("selected",!0))},deselectAll:function(t){var t=typeof t=="undefined"?!0:t,i,r;t?(i=n("li input[type='checkbox']:enabled",this.$ul).filter(":visible"),i.prop("checked",!1),r=i.map(function(){return n(this).val()}).get(),n("option:enabled",this.$select).filter(function(){return n.inArray(n(this).val(),r)!==-1}).prop("selected",!1),this.options.selectedClass&&n("li:not(.divider):not(.disabled)",this.$ul).filter(":visible").removeClass(this.options.selectedClass)):(n("li input[type='checkbox']:enabled",this.$ul).prop("checked",!1),n("option:enabled",this.$select).prop("selected",!1),this.options.selectedClass&&n("li:not(.divider):not(.disabled)",this.$ul).removeClass(this.options.selectedClass))},rebuild:function(){this.$ul.html("");this.options.multiple=this.$select.attr("multiple")==="multiple";this.buildSelectAll();this.buildDropdownOptions();this.buildFilter();this.updateButtonText();this.updateSelectAll();this.options.disableIfEmpty&&n("option",this.$select).length<=0&&this.disable();this.options.dropRight&&this.$ul.addClass("pull-right")},dataprovider:function(t){var f="",u=0,i=n("");n.each(t,function(t,e){var o;n.isArray(e.children)?(u++,o=n("<optgroup/>").attr({label:e.label||"Group "+u}),r(e.children,function(t){o.append(n("<option/>").attr({value:t.value,label:t.label||t.value,title:t.title,selected:!!t.selected}))}),f+="<\/optgroup>"):o=n("<option/>").attr({value:e.value,label:e.label||e.value,title:e.title,selected:!!e.selected});i=i.add(o)});this.$select.empty().append(i);this.rebuild()},enable:function(){this.$select.prop("disabled",!1);this.$button.prop("disabled",!1).removeClass("disabled")},disable:function(){this.$select.prop("disabled",!0);this.$button.prop("disabled",!0).addClass("disabled")},setOptions:function(n){this.options=this.mergeOptions(n)},mergeOptions:function(t){return n.extend(!0,{},this.defaults,t)},hasSelectAll:function(){return n("li."+this.options.selectAllValue,this.$ul).length>0},updateSelectAll:function(){if(this.hasSelectAll()){var i=n("li:not(.multiselect-item):not(.filter-hidden) input:enabled",this.$ul),f=i.length,r=i.filter(":checked").length,t=n("li."+this.options.selectAllValue,this.$ul),u=t.find("input");r>0&&r===f?(u.prop("checked",!0),t.addClass(this.options.selectedClass)):(u.prop("checked",!1),t.removeClass(this.options.selectedClass))}},updateButtonText:function(){var t=this.getSelected();n(".multiselect",this.$container).html(this.options.buttonText(t,this.$select));n(".multiselect",this.$container).attr("title",this.options.buttonTitle(t,this.$select))},getSelected:function(){return n("option",this.$select).filter(":selected")},getOptionByValue:function(t){for(var r,u=n("option",this.$select),f=t.toString(),i=0;i<u.length;i=i+1)if(r=u[i],r.value===f)return n(r)},getInputByValue:function(t){for(var r,u=n("li input",this.$ul),f=t.toString(),i=0;i<u.length;i=i+1)if(r=u[i],r.value===f)return n(r)},updateOriginalOptions:function(){this.originalOptions=this.$select.clone()[0].options},asyncFunction:function(n,t,i){var r=Array.prototype.slice.call(arguments,3);return setTimeout(function(){n.apply(i||window,r)},t)}};n.fn.multiselect=function(i,r,u){return this.each(function(){var f=n(this).data("multiselect"),e=typeof i=="object"&&i;f||(f=new t(this,e),n(this).data("multiselect",f));typeof i=="string"&&(f[i](r,u),i==="destroy"&&n(this).data("multiselect",!1))})};n.fn.multiselect.Constructor=t;n(function(){n("select[data-role=multiselect]").multiselect()})}(window.jQuery),"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(void 0!==i.style[t])return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){n.support.transition=t();n.support.transition&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));"string"==typeof i&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.2.0";t.prototype.close=function(t){function f(){i.detach().trigger("closed.bs.alert").remove()}var u=n(this),r=u.attr("data-target"),i;r||(r=u.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,""));i=n(r);t&&t.preventDefault();i.length||(i=u.hasClass("alert")?u:u.parent());i.trigger(t=n.Event("close.bs.alert"));t.isDefaultPrevented()||(i.removeClass("in"),n.support.transition&&i.hasClass("fade")?i.one("bsTransitionEnd",f).emulateTransitionEnd(150):f())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f="object"==typeof i&&i;r||u.data("bs.button",r=new t(this,f));"toggle"==i?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.2.0";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var r="disabled",i=this.$element,f=i.is("input")?"val":"html",u=i.data();t+="Text";null==u.resetText&&i.data("resetText",i[f]());i[f](null==u[t]?this.options[t]:u[t]);setTimeout(n.proxy(function(){"loadingText"==t?(this.isLoading=!0,i.addClass(r).attr(r,r)):this.isLoading&&(this.isLoading=!1,i.removeClass(r).removeAttr(r))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length&&(n=this.$element.find("input"),"radio"==n.prop("type")&&(n.prop("checked")&&this.$element.hasClass("active")?t=!1:i.find(".active").removeClass("active")),t&&n.prop("checked",!this.$element.hasClass("active")).trigger("change"));t&&this.$element.toggleClass("active")};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target);r.hasClass("btn")||(r=r.closest(".btn"));i.call(r,"toggle");t.preventDefault()})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i),e="string"==typeof i?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));"number"==typeof i?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t).on("keydown.bs.carousel",n.proxy(this.keydown,this));this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=this.sliding=this.interval=this.$active=this.$items=null;"hover"==this.options.pause&&this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},r;t.VERSION="3.2.0";t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0};t.prototype.keydown=function(n){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.to=function(t){var r=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(t>this.$items.length-1)&&!(0>t))return this.sliding?this.$element.one("slid.bs.carousel",function(){r.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",n(this.$items[t]))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(t,i){var u=this.$element.find(".item.active"),r=i||u[t](),c=this.interval,f="next"==t?"left":"right",a="next"==t?"first":"last",l=this,e,o,s,h;if(!r.length){if(!this.options.wrap)return;r=this.$element.find(".item")[a]()}return r.hasClass("active")?this.sliding=!1:(e=r[0],o=n.Event("slide.bs.carousel",{relatedTarget:e,direction:f}),(this.$element.trigger(o),!o.isDefaultPrevented())?((this.sliding=!0,c&&this.pause(),this.$indicators.length)&&(this.$indicators.find(".active").removeClass("active"),s=n(this.$indicators.children()[this.getItemIndex(r)]),s&&s.addClass("active")),h=n.Event("slid.bs.carousel",{relatedTarget:e,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(r.addClass(t),r[0].offsetWidth,u.addClass(f),r.addClass(f),u.one("bsTransitionEnd",function(){r.removeClass([t,f].join(" ")).addClass("active");u.removeClass(["active",f].join(" "));l.sliding=!1;setTimeout(function(){l.$element.trigger(h)},0)}).emulateTransitionEnd(1e3*u.css("transition-duration").slice(0,-1))):(u.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(h)),c&&this.cycle(),this):void 0)};r=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=r,this};n(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(t){var o,r=n(this),u=n(r.attr("data-target")||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,"")),e,f;u.hasClass("carousel")&&(e=n.extend({},u.data(),r.data()),f=r.attr("data-slide-to"),f&&(e.interval=!1),i.call(u,e),f&&u.data("bs.carousel").to(f),t.preventDefault())});n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),"object"==typeof i&&i);!r&&f.toggle&&"show"==i&&(i=!i);r||u.data("bs.collapse",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.transitioning=null;this.options.parent&&(this.$parent=n(this.options.parent));this.options.toggle&&this.toggle()},r;t.VERSION="3.2.0";t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,t,u,r,e,o;if(!this.transitioning&&!this.$element.hasClass("in")&&(f=n.Event("show.bs.collapse"),this.$element.trigger(f),!f.isDefaultPrevented())){if(t=this.$parent&&this.$parent.find("> .panel > .in"),t&&t.length){if(u=t.data("bs.collapse"),u&&u.transitioning)return;i.call(t,"hide");u||t.data("bs.collapse",null)}if(r=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[r](0),this.transitioning=1,e=function(){this.$element.removeClass("collapsing").addClass("collapse in")[r]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return e.call(this);o=n.camelCase(["scroll",r].join("-"));this.$element.one("bsTransitionEnd",n.proxy(e,this)).emulateTransitionEnd(350)[r](this.$element[0][o])}};t.prototype.hide=function(){var i,t,r;if(!this.transitioning&&this.$element.hasClass("in")&&(i=n.Event("hide.bs.collapse"),this.$element.trigger(i),!i.isDefaultPrevented()))return t=this.dimension(),this.$element[t](this.$element[t]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1,r=function(){this.transitioning=0;this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")},n.support.transition?void this.$element[t](0).one("bsTransitionEnd",n.proxy(r,this)).emulateTransitionEnd(350):r.call(this)};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};r=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=r,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var o,r=n(this),h=r.attr("data-target")||t.preventDefault()||(o=r.attr("href"))&&o.replace(/.*(?=#[^\s]+$)/,""),u=n(h),f=u.data("bs.collapse"),c=f?"toggle":r.data(),e=r.attr("data-parent"),s=e&&n(e);f&&f.transitioning||(s&&s.find('[data-toggle="collapse"][data-parent="'+e+'"]').not(r).addClass("collapsed"),r[u.hasClass("in")?"addClass":"removeClass"]("collapsed"));i.call(u,c)})}(jQuery);+function(n){"use strict";function r(t){t&&3===t.which||(n(o).remove(),n(i).each(function(){var i=u(n(this)),r={relatedTarget:this};i.hasClass("open")&&(i.trigger(t=n.Event("hide.bs.dropdown",r)),t.isDefaultPrevented()||i.removeClass("open").trigger("hidden.bs.dropdown",r))}))}function u(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i&&n(i),r&&r.length?r:t.parent()}function e(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));"string"==typeof i&&u[i].call(r)})}var o=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.2.0";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=u(f),o=i.hasClass("open"),r(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length&&n('<div class="dropdown-backdrop"/>').insertAfter(n(this)).on("click",r),e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus");i.toggleClass("open").trigger("shown.bs.dropdown",e)}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,r;if(/(38|40|27)/.test(t.keyCode)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=u(e),s=o.hasClass("open"),!s||s&&27==t.keyCode)return 27==t.which&&o.find(i).trigger("focus"),e.trigger("click");h=" li:not(.divider):visible a";f=o.find('[role="menu"]'+h+', [role="listbox"]'+h);f.length&&(r=f.index(f.filter(":focus")),38==t.keyCode&&r>0&&r--,40==t.keyCode&&r<f.length-1&&r++,~r||(r=0),f.eq(r).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=e;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",r).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i+', [role="menu"], [role="listbox"]',t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),"object"==typeof i&&i);u||f.data("bs.modal",u=new t(this,e));"string"==typeof i?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$backdrop=this.isShown=null;this.scrollbarWidth=0;this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.2.0";t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(t){var i=this,r=n.Event("show.bs.modal",{relatedTarget:t});this.$element.trigger(r);this.isShown||r.isDefaultPrevented()||(this.isShown=!0,this.checkScrollbar(),this.$body.addClass("modal-open"),this.setScrollbar(),this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this)),this.backdrop(function(){var u=n.support.transition&&i.$element.hasClass("fade"),r;i.$element.parent().length||i.$element.appendTo(i.$body);i.$element.show().scrollTop(0);u&&i.$element[0].offsetWidth;i.$element.addClass("in").attr("aria-hidden",!1);i.enforceFocus();r=n.Event("shown.bs.modal",{relatedTarget:t});u?i.$element.find(".modal-dialog").one("bsTransitionEnd",function(){i.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(300):i.$element.trigger("focus").trigger(r)}))};t.prototype.hide=function(t){t&&t.preventDefault();t=n.Event("hide.bs.modal");this.$element.trigger(t);this.isShown&&!t.isDefaultPrevented()&&(this.isShown=!1,this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",n.proxy(function(n){27==n.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(t){var f=this,u=this.$element.hasClass("fade")?"fade":"",i,r;if(this.isShown&&this.options.backdrop){if(i=n.support.transition&&u,this.$backdrop=n('<div class="modal-backdrop '+u+'" />').appendTo(this.$body),this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){n.target===n.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),i&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!t)return;i?this.$backdrop.one("bsTransitionEnd",t).emulateTransitionEnd(150):t()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),r=function(){f.removeBackdrop();t&&t()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",r).emulateTransitionEnd(150):r()):t&&t()};t.prototype.checkScrollbar=function(){document.body.clientWidth>=window.innerWidth||(this.scrollbarWidth=this.scrollbarWidth||this.measureScrollbar())};t.prototype.setScrollbar=function(){var n=parseInt(this.$body.css("padding-right")||0,10);this.scrollbarWidth&&this.$body.css("padding-right",n+this.scrollbarWidth)};t.prototype.resetScrollbar=function(){this.$body.css("padding-right","")};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),u=n(r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,"")),e=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){n.isDefaultPrevented()||u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,e,this)})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f="object"==typeof i&&i;(r||"destroy"!=i)&&(r||u.data("bs.tooltip",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null;this.init("tooltip",n,t)},i;t.VERSION="3.2.0";t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}};t.prototype.init=function(t,i,r){var f,e,u,o,s;for(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(this.options.viewport.selector||this.options.viewport),f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],"click"==u)this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else"manual"!=u&&(o="hover"==u?"mouseenter":"focusin",s="hover"==u?"mouseleave":"focusout",this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this)),this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this)));this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){return t=n.extend({},this.getDefaults(),this.$element.data(),t),t.delay&&"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show()};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide()};t.prototype.show=function(){var h=n.Event("show.bs."+this.type),c,y,s;if(this.hasContent()&&this.enabled){if(this.$element.trigger(h),c=n.contains(document.documentElement,this.$element[0]),h.isDefaultPrevented()||!c)return;var f=this,i=this.tip(),l=this.getUID(this.type);this.setContent();i.attr("id",l);this.$element.attr("aria-describedby",l);this.options.animation&&i.addClass("fade");var t="function"==typeof this.options.placement?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,a=/\s?auto?\s?/i,v=a.test(t);v&&(t=t.replace(a,"")||"top");i.detach().css({top:0,left:0,display:"block"}).addClass(t).data("bs."+this.type,this);this.options.container?i.appendTo(this.options.container):i.insertAfter(this.$element);var r=this.getPosition(),e=i[0].offsetWidth,o=i[0].offsetHeight;if(v){var p=t,w=this.$element.parent(),u=this.getPosition(w);t="bottom"==t&&r.top+r.height+o-u.scroll>u.height?"top":"top"==t&&r.top-u.scroll-o<0?"bottom":"right"==t&&r.right+e>u.width?"left":"left"==t&&r.left-e<u.left?"right":t;i.removeClass(p).addClass(t)}y=this.getCalculatedOffset(t,r,e,o);this.applyPlacement(y,t);s=function(){f.$element.trigger("shown.bs."+f.type);f.hoverState=null};n.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",s).emulateTransitionEnd(150):s()}};t.prototype.applyPlacement=function(t,i){var r=this.tip(),c=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top=t.top+o;t.left=t.left+s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;"top"==i&&f!=e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var l=u.left?2*u.left-c+h:2*u.top-e+f,a=u.left?"left":"top",v=u.left?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(l,r[0][v],a)};t.prototype.replaceArrow=function(n,t,i){this.arrow().css(i,n?50*(1-n/t)+"%":"")};t.prototype.setContent=function(){var n=this.tip(),t=this.getTitle();n.find(".tooltip-inner")[this.options.html?"html":"text"](t);n.removeClass("fade in top bottom left right")};t.prototype.hide=function(){function r(){"in"!=t.hoverState&&i.detach();t.$element.trigger("hidden.bs."+t.type)}var t=this,i=this.tip(),u=n.Event("hide.bs."+this.type);return this.$element.removeAttr("aria-describedby"),this.$element.trigger(u),u.isDefaultPrevented()?void 0:(i.removeClass("in"),n.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",r).emulateTransitionEnd(150):r(),this.hoverState=null,this)};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||"string"!=typeof n.attr("data-original-title"))&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var r=t[0],i="BODY"==r.tagName;return n.extend({},"function"==typeof r.getBoundingClientRect?r.getBoundingClientRect():null,{scroll:i?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop(),width:i?n(window).width():t.outerWidth(),height:i?n(window).height():t.outerHeight()},i?{top:0,left:0}:t.offset())};t.prototype.getCalculatedOffset=function(n,t,i,r){return"bottom"==n?{top:t.top+t.height,left:t.left+t.width/2-i/2}:"top"==n?{top:t.top-r,left:t.left+t.width/2-i/2}:"left"==n?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.width&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||("function"==typeof n.title?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(1e6*Math.random());while(document.getElementById(n));return n};t.prototype.tip=function(){return this.$tip=this.$tip||n(this.options.template)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){clearTimeout(this.timeout);this.hide().$element.off("."+this.type).removeData("bs."+this.type)};i=n.fn.tooltip;n.fn.tooltip=r;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=i,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f="object"==typeof i&&i;(r||"destroy"!=i)&&(r||u.data("bs.popover",r=new t(this,f)),"string"==typeof i&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.2.0";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent();n.find(".popover-title")[this.options.html?"html":"text"](i);n.find(".popover-content").empty()[this.options.html?"string"==typeof t?"html":"append":"text"](t);n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||("function"==typeof n.content?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};t.prototype.tip=function(){return this.$tip||(this.$tip=n(this.options.template)),this.$tip};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){var u=n.proxy(this.process,this);this.$body=n("body");this.$scrollElement=n(n(i).is("body")?window:i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",u);this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f="object"==typeof i&&i;r||u.data("bs.scrollspy",r=new t(this,f));"string"==typeof i&&r[i]()})}t.VERSION="3.2.0";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var i="offset",r=0,t;n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();t=this;this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var n,r=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,i=this.targets,u=this.activeTarget;if(this.scrollHeight!=f&&this.refresh(),r>=e)return u!=(n=i[i.length-1])&&this.activate(n);if(u&&r<=t[0])return u!=(n=i[0])&&this.activate(n);for(n=t.length;n--;)u!=i[n]&&r>=t[n]&&(!t[n+1]||r<=t[n+1])&&this.activate(i[n])};t.prototype.activate=function(t){this.activeTarget=t;n(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));"string"==typeof i&&r[i]()})}var t=function(t){this.element=n(t)},r;t.VERSION="3.2.0";t.prototype.show=function(){var t=this.element,e=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),r,u,f;(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),t.parent("li").hasClass("active"))||(r=e.find(".active:last a")[0],u=n.Event("show.bs.tab",{relatedTarget:r}),(t.trigger(u),u.isDefaultPrevented())||(f=n(i),this.activate(t.closest("li"),e),this.activate(f,f.parent(),function(){t.trigger({type:"shown.bs.tab",relatedTarget:r})})))};t.prototype.activate=function(t,i,r){function f(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active");t.addClass("active");e?(t[0].offsetWidth,t.addClass("in")):t.removeClass("fade");t.parent(".dropdown-menu")&&t.closest("li.dropdown").addClass("active");r&&r()}var u=i.find("> .active"),e=r&&n.support.transition&&u.hasClass("fade");e?u.one("bsTransitionEnd",f).emulateTransitionEnd(150):f();u.removeClass("in")};r=n.fn.tab;n.fn.tab=i;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=r,this};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(t){t.preventDefault();i.call(n(this),"show")})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f="object"==typeof i&&i;r||u.data("bs.affix",r=new t(this,f));"string"==typeof i&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);this.$target=n(this.options.target).on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=this.unpin=this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.2.0";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=n(document).height(),h=this.$target.scrollTop(),c=this.$element.offset(),r=this.options.offset,f=r.top,u=r.bottom;"object"!=typeof r&&(u=f=r);"function"==typeof f&&(f=r.top(this.$element));"function"==typeof u&&(u=r.bottom(this.$element));i=null!=this.unpin&&h+this.unpin<=c.top?!1:null!=u&&c.top+this.$element.height()>=s-u?"bottom":null!=f&&f>=h?"top":!1;this.affixed!==i&&(null!=this.unpin&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented()||(this.affixed=i,this.unpin="bottom"==i?this.getPinnedOffset():null,this.$element.removeClass(t.RESET).addClass(e).trigger(n.Event(e.replace("affix","affixed"))),"bottom"==i&&this.$element.offset({top:s-this.$element.height()-u})))}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};t.offsetBottom&&(t.offset.bottom=t.offsetBottom);t.offsetTop&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery),function(n){"use strict";typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"&&typeof require=="function"?n(require("jquery")):n(jQuery)}(function(n){"use strict";function i(t,r){var f=function(){},u=this,e={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:i.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:f,onSearchComplete:f,onSearchError:f,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(n,t,i){return n.value.toLowerCase().indexOf(i)!==-1},paramName:"query",transformResult:function(t){return typeof t=="string"?n.parseJSON(t):t},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1,displayItem:null,objectPath:null,categoryItem:null};u.element=t;u.el=n(t);u.suggestions=[];u.badQueries=[];u.selectedIndex=-1;u.currentValue=u.element.value;u.intervalId=0;u.cachedResponse={};u.onChangeInterval=null;u.onChange=null;u.isLocal=!1;u.suggestionsContainer=null;u.noSuggestionsContainer=null;u.options=n.extend({},e,r);u.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"};u.hint=null;u.hintValue="";u.selection=null;u.initialize();u.setOptions(r)}var r=function(){return{escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(n){var t=document.createElement("div");return t.className=n,t.style.position="absolute",t.style.display="none",t}}}(),t={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40};i.utils=r;n.Autocomplete=i;i.formatResult=function(n,t,u){var f="("+r.escapeRegExChars(t)+")";return i.prototype.navigateByString(n,u.displayItem).replace(new RegExp(f,"gi"),"<strong>$1<\/strong>")};i.prototype={killerFn:null,initialize:function(){var t=this,f="."+t.classes.suggestion,e=t.classes.selected,u=t.options,r;t.element.setAttribute("autocomplete","off");t.killerFn=function(i){n(i.target).closest("."+t.options.containerClass).length===0&&(t.killSuggestions(),t.disableKillerFn())};t.noSuggestionsContainer=n('<div class="autocomplete-no-suggestion"><\/div>').html(this.options.noSuggestionNotice).get(0);t.suggestionsContainer=i.utils.createNode(u.containerClass);r=n(t.suggestionsContainer);r.appendTo(u.appendTo);u.width!=="auto"&&r.width(u.width);r.on("mouseover.autocomplete",f,function(){t.activate(n(this).data("index"))});r.on("mouseout.autocomplete",function(){t.selectedIndex=-1;r.children("."+e).removeClass(e)});r.on("click.autocomplete",f,function(){t.select(n(this).data("index"))});t.fixPositionCapture=function(){t.visible&&t.fixPosition()};n(window).on("resize.autocomplete",t.fixPositionCapture);t.el.on("keydown.autocomplete",function(n){t.onKeyPress(n)});t.el.on("keyup.autocomplete",function(n){t.onKeyUp(n)});t.el.on("blur.autocomplete",function(){t.onBlur()});t.el.on("focus.autocomplete",function(){t.onFocus()});t.el.on("change.autocomplete",function(n){t.onKeyUp(n)});t.el.on("input.autocomplete",function(n){t.onKeyUp(n)})},onFocus:function(){var n=this;n.fixPosition();n.options.minChars<=n.el.val().length&&n.onValueChange()},onBlur:function(){this.enableKillerFn()},setOptions:function(t){var r=this,i=r.options;n.extend(i,t);r.isLocal=n.isArray(i.lookup);r.isLocal&&(i.lookup=r.verifySuggestionsFormat(i.lookup));i.orientation=r.validateOrientation(i.orientation,"bottom");n(r.suggestionsContainer).css({"max-height":i.maxHeight+"px",width:i.width+"px","z-index":i.zIndex})},clearCache:function(){this.cachedResponse={};this.badQueries=[]},clear:function(){this.clearCache();this.currentValue="";this.suggestions=[]},disable:function(){var n=this;n.disabled=!0;n.currentRequest&&n.currentRequest.abort()},enable:function(){this.disabled=!1},fixPosition:function(){var t=this,i=n(t.suggestionsContainer),s=i.parent().get(0),a,o;if(s===document.body||t.options.forceFixPosition){var f=t.options.orientation,e=i.outerHeight(),h=t.el.outerHeight(),u=t.el.offset(),r={top:u.top,left:u.left};if(f=="auto"){var v=n(window).height(),c=n(window).scrollTop(),l=-c+u.top-e,y=c+v-(u.top+h+e);f=Math.max(l,y)===l?"top":"bottom"}r.top+=f==="top"?-e:h;s!==document.body&&(a=i.css("opacity"),t.visible||i.css("opacity",0).show(),o=i.offsetParent().offset(),r.top-=o.top,r.left-=o.left,t.visible||i.css("opacity",a).hide());t.options.width==="auto"&&(r.width=t.el.outerWidth()-2+"px");i.css(r)}},enableKillerFn:function(){var t=this;n(document).on("click.autocomplete",t.killerFn)},disableKillerFn:function(){var t=this;n(document).off("click.autocomplete",t.killerFn)},killSuggestions:function(){var n=this;n.stopKillSuggestions();n.intervalId=window.setInterval(function(){n.hide();n.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var i=this,n=i.el.val().length,r=i.element.selectionStart,t;return typeof r=="number"?r===n:document.selection?(t=document.selection.createRange(),t.moveStart("character",-n),n===t.text.length):!0},onKeyPress:function(n){var i=this;if(!i.disabled&&!i.visible&&n.which===t.DOWN&&i.currentValue){i.suggest();return}if(!i.disabled&&i.visible){switch(n.which){case t.ESC:i.el.val(i.currentValue).trigger("input");i.hide();break;case t.RIGHT:if(i.hint&&i.options.onHint&&i.isCursorAtEnd()){i.selectHint();break}return;case t.TAB:if(i.hint&&i.options.onHint){i.selectHint();return}case t.RETURN:if(i.selectedIndex===-1){i.hide();return}if(i.select(i.selectedIndex),n.which===t.TAB&&i.options.tabDisabled===!1)return;break;case t.UP:i.moveUp();break;case t.DOWN:i.moveDown();break;default:return}n.stopImmediatePropagation();n.preventDefault()}},onKeyUp:function(n){var i=this;if(!i.disabled){switch(n.which){case t.UP:case t.DOWN:return}clearInterval(i.onChangeInterval);i.currentValue!==i.el.val()&&(i.findBestHint(),i.options.deferRequestBy>0?i.onChangeInterval=setInterval(function(){i.onValueChange()},i.options.deferRequestBy):i.onValueChange())}},onValueChange:function(){var t=this,r=t.options,f=t.el.val(),i=t.getQuery(f),u;if(t.selection&&t.currentValue!==i&&(t.selection=null,(r.onInvalidateSelection||n.noop).call(t.element)),clearInterval(t.onChangeInterval),t.currentValue=f,t.selectedIndex=-1,r.triggerSelectOnValidInput&&(u=t.findSuggestionIndex(i),u!==-1)){t.select(u);return}i.length<r.minChars?t.hide():t.getSuggestions(i)},findSuggestionIndex:function(t){var i=this,r=-1,u=t.toLowerCase();return n.each(i.suggestions,function(n,t){if(i.navigateByString(t,i.options.displayItem).toLowerCase()===u)return r=n,!1}),r},getQuery:function(t){var r=this.options.delimiter,i;return r?(i=t.split(r),n.trim(i[i.length-1])):t},getSuggestionsLocal:function(t){var f=this,r=f.options,e=t.toLowerCase(),o=r.lookupFilter,u=parseInt(r.lookupLimit,10),i;return i={suggestions:n.grep(r.lookup,function(n){return o(n,t,e)})},u&&i.suggestions.length>u&&(i.suggestions=i.suggestions.slice(0,u)),i},getSuggestions:function(t){var f,i=this,r=i.options,u=r.serviceUrl,e,o,s;if(r.params[r.paramName]=t,e=r.ignoreParams?null:r.params,u=u+encodeURIComponent(e.query),i.isLocal?f=i.getSuggestionsLocal(t):(n.isFunction(u)&&(u=u.call(i.element,t)),o=u+n.param(e||{}),f=i.cachedResponse[o]),f&&n.isArray(f.suggestions))i.suggestions=f.suggestions,i.suggest();else if(!i.isBadQuery(t)){if(r.onSearchStart.call(i.element,r.params)===!1)return;i.currentRequest&&i.currentRequest.abort();s={url:u,type:r.type,dataType:r.dataType,headers:{Accept:"application/json"}};n.extend(s,r.ajaxSettings);i.currentRequest=n.ajax(s).done(function(n){var u;i.currentRequest=null;u=r.transformResult(n);i.processResponse(u,t,o);r.onSearchComplete.call(i.element,t,i.navigateByString(u,i.options.objectPath))}).fail(function(n,u,f){r.onSearchError.call(i.element,t,n,u,f)})}},isBadQuery:function(n){if(!this.options.preventBadQueries)return!1;for(var t=this.badQueries,i=t.length;i--;)if(n.indexOf(t[i])===0)return!0;return!1},hide:function(){var t=this;t.visible=!1;t.selectedIndex=-1;n(t.suggestionsContainer).hide();t.signalHint(null)},suggest:function(){var f;if(this.suggestions.length===0){this.options.showNoSuggestionNotice?this.noSuggestions():this.hide();return}var t=this,i=t.options,h=i.formatResult,e=t.getQuery(t.currentValue),c=t.classes.suggestion,l=t.classes.selected,r=n(t.suggestionsContainer),a=n(t.noSuggestionsContainer),o=i.beforeRender,s="",u;if(i.triggerSelectOnValidInput&&(u=t.findSuggestionIndex(e),u!==-1)){t.select(u);return}f=[];t.options.categoryItem!=null&&n.each(t.suggestions,function(n,i){var r=t.currentValue.indexOf(t.navigateByString(i,t.options.displayItem));r!=-1&&f.push(t.navigateByString(i,t.options.categoryItem))});n.each(t.suggestions,function(n,r){var o=t.currentValue.indexOf(t.navigateByString(r,t.options.displayItem)),u;u=t.options.categoryItem?f.indexOf(t.navigateByString(r,t.options.categoryItem)):-1;o==-1&&u==-1&&(s+='<div class="'+c+'" data-index="'+n+'">'+h(r,e,i)+"<\/div>")});this.adjustContainerWidth();a.detach();r.html(s);i.autoSelectFirst&&(t.selectedIndex=0,r.children().first().addClass(l));n.isFunction(o)&&o.call(t.element,r);t.fixPosition();r.show();t.visible=!0;t.findBestHint()},noSuggestions:function(){var t=this,i=n(t.suggestionsContainer),r=n(t.noSuggestionsContainer);this.adjustContainerWidth();r.detach();i.empty();i.append(r);t.fixPosition();i.show();t.visible=!0},adjustContainerWidth:function(){var t=this,r=t.options,i,u=n(t.suggestionsContainer);r.width==="auto"&&(i=t.el.outerWidth()-2,u.width(i>0?i:300))},findBestHint:function(){var t=this,i=t.el.val().toLowerCase(),r=null;i&&(n.each(t.suggestions,function(n,u){var f=t.navigateByString(u,t.options.displayItem).toLowerCase().indexOf(i)===0;return f&&(r=u),!f}),t.signalHint(r))},signalHint:function(t){var r="",i=this;t&&(r=i.currentValue+i.navigateByString(t,i.options.displayItem).substr(i.currentValue.length));i.hintValue!==r&&(i.hintValue=r,i.hint=t,(this.options.onHint||n.noop)(r))},verifySuggestionsFormat:function(t){try{if(t.length&&typeof t[0]=="string")return n.map(t,function(n){return{value:n,data:null}})}catch(i){}finally{return t}},validateOrientation:function(t,i){return t=n.trim(t||"").toLowerCase(),n.inArray(t,["auto","bottom","top"])===-1&&(t=i),t},processResponse:function(n,t,i){var r=this,u=r.options;(n.suggestions=r.verifySuggestionsFormat(r.navigateByString(n,r.options.objectPath)),u.noCache||(r.cachedResponse[i]=n,u.preventBadQueries&&n.suggestions.length===0&&r.badQueries.push(t)),t===r.getQuery(r.currentValue))&&(n.suggestions.constructor.toString().indexOf("Array")==-1&&(n.suggestions=new Array(n.suggestions)),r.suggestions=n.suggestions,r.suggest())},activate:function(t){var i=this,r,u=i.classes.selected,f=n(i.suggestionsContainer),e=f.find("."+i.classes.suggestion);return(f.find("."+u).removeClass(u),i.selectedIndex=t,i.selectedIndex!==-1&&e.length>i.selectedIndex)?(r=e.get(i.selectedIndex),n(r).addClass(u),r):null},selectHint:function(){var t=this,i=n.inArray(t.hint,t.suggestions);t.select(i)},select:function(n){var t=this;t.hide();t.onSelect(n)},moveUp:function(){var t=this;if(t.selectedIndex!==-1){if(t.selectedIndex===0){n(t.suggestionsContainer).children().first().removeClass(t.classes.selected);t.selectedIndex=-1;t.el.val(t.currentValue).trigger("input");t.findBestHint();return}t.adjustScroll(t.selectedIndex-1)}},moveDown:function(){var n=this;n.selectedIndex!==n.suggestions.length-1&&n.adjustScroll(n.selectedIndex+1)},adjustScroll:function(t){var i=this,f=i.activate(t),r,u,e,o=25;f&&(r=f.offsetTop,u=n(i.suggestionsContainer).scrollTop(),e=u+i.options.maxHeight-o,r<u?n(i.suggestionsContainer).scrollTop(r):r>e&&n(i.suggestionsContainer).scrollTop(r-i.options.maxHeight+o),i.el.val(i.getValue(i.navigateByString(i.suggestions[t],i.options.displayItem))+(i.options.delimiter!=null?i.options.delimiter:"")).trigger("input"),i.signalHint(null))},onSelect:function(t){var i=this,u=i.options.onSelect,r=i.suggestions[t];i.currentValue=i.getValue(i.navigateByString(r,i.options.displayItem));i.currentValue!==i.el.val()&&i.el.val(i.currentValue+i.options.delimiter).trigger("input");i.signalHint(null);i.suggestions=[];i.selection=r;n.isFunction(u)&&u.call(i.element,r)},getValue:function(n){var r=this,u=r.options.delimiter,t,i;return u?(t=r.currentValue,i=t.split(u),i.length===1)?n:t.substr(0,t.length-i[i.length-1].length)+n:n},dispose:function(){var t=this;t.el.off(".autocomplete").removeData("autocomplete");t.disableKillerFn();n(window).off("resize.autocomplete",t.fixPositionCapture);n(t.suggestionsContainer).remove()},navigateByString:function(n,t){var i,r;if(t==""||t==null)return n;for(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),i=t.split(".");i.length>0;){r=i.shift();try{if(r in n)n=n[r];else return}catch(u){return}}return n}};n.fn.autocomplete=n.fn.devbridgeAutocomplete=function(t,r){var u="autocomplete";return arguments.length===0?this.first().data(u):this.each(function(){var e=n(this),f=e.data(u);typeof t=="string"?f&&typeof f[t]=="function"&&f[t](r):(f&&f.dispose&&f.dispose(),f=new i(this,t),e.data(u,f))})}}),function(n,t,i){"use strict";t.infinitescroll=function(n,i,r){this.element=t(r);this._create(n,i)||(this.failed=!0)};t.infinitescroll.defaults={loading:{finished:i,finishedMsg:"<em>Congratulations, you've reached the end of the internet.<\/em>",img:"data:image/gif;base64,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",msg:null,msgText:"<em>Loading the next set of posts...<\/em>",selector:null,speed:"fast",start:i},state:{isDuringAjax:!1,isInvalidPage:!1,isDestroyed:!1,isDone:!1,isPaused:!1,isBeyondMaxPage:!1,currPage:1},debug:!1,behavior:i,binder:t(n),nextSelector:"div.navigation a:first",navSelector:"div.navigation",contentSelector:null,extraScrollPx:150,itemSelector:"div.post",animate:!1,pathParse:i,dataType:"html",appendCallback:!0,bufferPx:40,errorCallback:function(){},infid:0,pixelsFromNavToBottom:i,path:i,prefill:!1,maxPage:i};t.infinitescroll.prototype={_binding:function(n){var t=this,r=t.options;if(r.v="2.0b2.120520",!!r.behavior&&this["_binding_"+r.behavior]!==i){this["_binding_"+r.behavior].call(this);return}if(n!=="bind"&&n!=="unbind")return this._debug("Binding value  "+n+" not valid"),!1;n==="unbind"?this.options.binder.unbind("smartscroll.infscr."+t.options.infid):this.options.binder[n]("smartscroll.infscr."+t.options.infid,function(){t.scroll()});this._debug("Binding",n)},_create:function(r,u){var f=t.extend(!0,{},t.infinitescroll.defaults,r),o,s,e,h;return(this.options=f,o=t(n),s=this,!s._validate(r))?!1:(e=t(f.nextSelector).attr("href"),!e)?(this._debug("Navigation selector not found"),!1):(f.path=f.path||this._determinepath(e),f.contentSelector=f.contentSelector||this.element,f.loading.selector=f.loading.selector||f.contentSelector,f.loading.msg=f.loading.msg||t('<div id="infscr-loading"><img alt="Loading..." src="'+f.loading.img+'" /><div>'+f.loading.msgText+"<\/div><\/div>"),(new Image).src=f.loading.img,f.pixelsFromNavToBottom===i&&(f.pixelsFromNavToBottom=t(document).height()-t(f.navSelector).offset().top,this._debug("pixelsFromNavToBottom: "+f.pixelsFromNavToBottom)),h=this,f.loading.start=f.loading.start||function(){t(f.navSelector).hide();f.loading.msg.appendTo(f.loading.selector).show(f.loading.speed,t.proxy(function(){this.beginAjax(f)},h))},f.loading.finished=f.loading.finished||function(){f.state.isBeyondMaxPage||f.loading.msg.fadeOut(f.loading.speed)},f.callback=function(n,r,e){!f.behavior||n["_callback_"+f.behavior]===i||n["_callback_"+f.behavior].call(t(f.contentSelector)[0],r,e);u&&u.call(t(f.contentSelector)[0],r,f,e);f.prefill&&o.bind("resize.infinite-scroll",n._prefill)},r.debug&&Function.prototype.bind&&(typeof console=="object"||typeof console=="function")&&typeof console.log=="object"&&["log","info","warn","error","assert","dir","clear","profile","profileEnd"].forEach(function(n){console[n]=this.call(console[n],console)},Function.prototype.bind),this._setup(),f.prefill&&this._prefill(),!0)},_prefill:function(){function u(){return i.options.contentSelector.height()<=r.height()}var i=this,r=t(n);this._prefill=function(){u()&&i.scroll();r.bind("resize.infinite-scroll",function(){u()&&(r.unbind("resize.infinite-scroll"),i.scroll())})};this._prefill()},_debug:function(){!0===this.options.debug&&(typeof console!="undefined"&&typeof console.log=="function"?Array.prototype.slice.call(arguments).length===1&&typeof Array.prototype.slice.call(arguments)[0]=="string"?console.log(Array.prototype.slice.call(arguments).toString()):console.log(Array.prototype.slice.call(arguments)):Function.prototype.bind||typeof console=="undefined"||typeof console.log!="object"||Function.prototype.call.call(console.log,console,Array.prototype.slice.call(arguments)))},_determinepath:function(n){var t=this.options;if(!!t.behavior&&this["_determinepath_"+t.behavior]!==i)return this["_determinepath_"+t.behavior].call(this,n);if(!t.pathParse)if(n.match(/^(.*?)\b2\b(.*?$)/))n=n.match(/^(.*?)\b2\b(.*?$)/).slice(1);else if(n.match(/^(.*?)2(.*?$)/)){if(n.match(/^(.*?page=)2(\/.*|$)/))return n.match(/^(.*?page=)2(\/.*|$)/).slice(1);n=n.match(/^(.*?)2(.*?$)/).slice(1)}else{if(n.match(/^(.*?page=)1(\/.*|$)/))return n.match(/^(.*?page=)1(\/.*|$)/).slice(1);this._debug("Sorry, we couldn't parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com.");t.state.isInvalidPage=!0}else return this._debug("pathParse manual"),t.pathParse(n,this.options.state.currPage+1);return this._debug("determinePath",n),n},_error:function(n){var t=this.options;if(!!t.behavior&&this["_error_"+t.behavior]!==i){this["_error_"+t.behavior].call(this,n);return}n!=="destroy"&&n!=="end"&&(n="unknown");this._debug("Error",n);(n==="end"||t.state.isBeyondMaxPage)&&this._showdonemsg();t.state.isDone=!0;t.state.currPage=1;t.state.isPaused=!1;t.state.isBeyondMaxPage=!1;this._binding("unbind")},_loadcallback:function(r,u,f){var e=this.options,c=this.options.callback,l=e.state.isDone?"done":e.appendCallback?"append":"no-append",o,s,h;if(!!e.behavior&&this["_loadcallback_"+e.behavior]!==i){this["_loadcallback_"+e.behavior].call(this,r,u);return}switch(l){case"done":return this._showdonemsg(),!1;case"no-append":e.dataType==="html"&&(u="<div>"+u+"<\/div>",u=t(u).find(e.itemSelector));break;case"append":if(s=r.children(),s.length===0)return this._error("end");for(o=document.createDocumentFragment();r[0].firstChild;)o.appendChild(r[0].firstChild);this._debug("contentSelector",t(e.contentSelector)[0]);t(e.contentSelector)[0].appendChild(o);u=s.get()}e.loading.finished.call(t(e.contentSelector)[0],e);e.animate&&(h=t(n).scrollTop()+t(e.loading.msg).height()+e.extraScrollPx+"px",t("html,body").animate({scrollTop:h},800,function(){e.state.isDuringAjax=!1}));e.animate||(e.state.isDuringAjax=!1);c(this,u,f);e.prefill&&this._prefill()},_nearbottom:function(){var r=this.options,u=0+t(document).height()-r.binder.scrollTop()-t(n).height();return!!r.behavior&&this["_nearbottom_"+r.behavior]!==i?this["_nearbottom_"+r.behavior].call(this):(this._debug("math:",u,r.pixelsFromNavToBottom),u-r.bufferPx<r.pixelsFromNavToBottom)},_pausing:function(n){var t=this.options;if(!!t.behavior&&this["_pausing_"+t.behavior]!==i){this["_pausing_"+t.behavior].call(this,n);return}n!=="pause"&&n!=="resume"&&n!==null&&this._debug("Invalid argument. Toggling pause value instead");n=n&&(n==="pause"||n==="resume")?n:"toggle";switch(n){case"pause":t.state.isPaused=!0;break;case"resume":t.state.isPaused=!1;break;case"toggle":t.state.isPaused=!t.state.isPaused}return this._debug("Paused",t.state.isPaused),!1},_setup:function(){var n=this.options;if(!!n.behavior&&this["_setup_"+n.behavior]!==i){this["_setup_"+n.behavior].call(this);return}return this._binding("bind"),!1},_showdonemsg:function(){var n=this.options;if(!!n.behavior&&this["_showdonemsg_"+n.behavior]!==i){this["_showdonemsg_"+n.behavior].call(this);return}n.loading.msg.find("img").hide().parent().find("div").html(n.loading.finishedMsg).animate({opacity:1},2e3,function(){t(this).parent().fadeOut(n.loading.speed)});n.errorCallback.call(t(n.contentSelector)[0],"done")},_validate:function(n){for(var i in n)if(i.indexOf&&i.indexOf("Selector")>-1&&t(n[i]).length===0)return this._debug("Your "+i+" found no elements."),!1;return!0},bind:function(){this._binding("bind")},destroy:function(){return this.options.state.isDestroyed=!0,this.options.loading.finished(),this._error("destroy")},pause:function(){this._pausing("pause")},resume:function(){this._pausing("resume")},beginAjax:function(n){var r=this,s=n.path,f,u,e,o;if(n.state.currPage++,n.maxPage!=i&&n.state.currPage>n.maxPage){n.state.isBeyondMaxPage=!0;this.destroy();return}f=t(n.contentSelector).is("table, tbody")?t("<tbody/>"):t("<div/>");u=typeof s=="function"?s(n.state.currPage):s.join(n.state.currPage);r._debug("heading into ajax",u);e=n.dataType==="html"||n.dataType==="json"?n.dataType:"html+callback";n.appendCallback&&n.dataType==="html"&&(e+="+callback");switch(e){case"html+callback":r._debug("Using HTML via .load() method");f.load(u+" "+n.itemSelector,i,function(n){r._loadcallback(f,n,u)});break;case"html":r._debug("Using "+e.toUpperCase()+" via $.ajax() method");t.ajax({url:u,dataType:n.dataType,complete:function(n,t){o=typeof n.isResolved!="undefined"?n.isResolved():t==="success"||t==="notmodified";o?r._loadcallback(f,n.responseText,u):r._error("end")}});break;case"json":r._debug("Using "+e.toUpperCase()+" via $.ajax() method");t.ajax({dataType:"json",type:"GET",url:u,success:function(t,e,s){if(o=typeof s.isResolved!="undefined"?s.isResolved():e==="success"||e==="notmodified",n.appendCallback)if(n.template!==i){var h=n.template(t);f.append(h);o?r._loadcallback(f,h):r._error("end")}else r._debug("template must be defined."),r._error("end");else o?r._loadcallback(f,t,u):r._error("end")},error:function(){r._debug("JSON ajax request failed.");r._error("end")}})}},retrieve:function(n){n=n||null;var u=this,r=u.options;if(!!r.behavior&&this["retrieve_"+r.behavior]!==i){this["retrieve_"+r.behavior].call(this,n);return}if(r.state.isDestroyed)return this._debug("Instance is destroyed"),!1;r.state.isDuringAjax=!0;r.loading.start.call(t(r.contentSelector)[0],r)},scroll:function(){var t=this.options,n=t.state;if(!!t.behavior&&this["scroll_"+t.behavior]!==i){this["scroll_"+t.behavior].call(this);return}n.isDuringAjax||n.isInvalidPage||n.isDone||n.isDestroyed||n.isPaused||this._nearbottom()&&this.retrieve()},toggle:function(){this._pausing()},unbind:function(){this._binding("unbind")},update:function(n){t.isPlainObject(n)&&(this.options=t.extend(!0,this.options,n))}};t.fn.infinitescroll=function(n,i){var u=typeof n,r;switch(u){case"string":r=Array.prototype.slice.call(arguments,1);this.each(function(){var i=t.data(this,"infinitescroll");if(!i||!t.isFunction(i[n])||n.charAt(0)==="_")return!1;i[n].apply(i,r)});break;case"object":this.each(function(){var r=t.data(this,"infinitescroll");r?r.update(n):(r=new t.infinitescroll(n,i,this),r.failed||t.data(this,"infinitescroll",r))})}return this};var r=t.event,u;r.special.smartscroll={setup:function(){t(this).bind("scroll",r.special.smartscroll.handler)},teardown:function(){t(this).unbind("scroll",r.special.smartscroll.handler)},handler:function(n,i){var r=this,f=arguments;n.type="smartscroll";u&&clearTimeout(u);u=setTimeout(function(){t(r).trigger("smartscroll",f)},i==="execAsap"?0:100)}};t.fn.smartscroll=function(n){return n?this.bind("smartscroll",n):this.trigger("smartscroll",["execAsap"])}}(window,jQuery);$(document).ready(function(){var t,n;$("#cookiesAccept, #cookiesReject").bind("click",function(){var n="/Cookie?accepted=";n+=$(this).attr("id")=="cookiesAccept"?"True":"False";$.ajax(n)});t=$("#CookieStateSetUrl").val();$.post(t,{},function(n){$("#cookies").modal({show:!n.CookieSet})});$(".popover-markup > .trigger").popover({html:!0,title:function(){return $(this).parent().find(".head").html()},content:function(){return $(this).parent().find(".content").html()}});$(".select-home-tabs").length&&$(".select-home-tabs").selectpicker({style:"btn-home-select",size:4});$(".truncate-archive").length&&$(".truncate-archive").succinct({size:80});$(".select-search-param").length&&$(".select-search-param").selectpicker({style:"btn-search-select form-control",size:4});$(".btn-tag").click(function(){$(this).remove()});initCheckbox();$(".close-info").click(function(){$("#info").removeClass("active");$("#info-tab").removeClass("active")});$(".close-share").click(function(){$("#share").removeClass("active");$("#share-tab").removeClass("active")});$("select.select-home-tabs").on("change",function(){window.location=$(this).children(":selected").attr("data-url")});if($(".multiselect-list").multiselect(),$("#recentNextCommons").click(function(){return $("#recentlyArchivedCommons").slickNext(),!1}),$("#recentPrevCommons").click(function(){return $("#recentlyArchivedCommons").slickPrev(),!1}),$("#recentNextLords").click(function(){return $("#recentlyArchivedLords").slickNext(),!1}),$("#recentPrevLords").click(function(){return $("#recentlyArchivedLords").slickPrev(),!1}),$("#recentNextCommittees").click(function(){return $("#recentlyArchivedCommittees").slickNext(),!1}),$("#recentPrevCommittees").click(function(){return $("#recentlyArchivedCommittees").slickPrev(),!1}),$(".tc-box").length&&$(".tc-box").slimScroll({railVisible:!0,railColor:"#9c9c9c",railOpacity:1,color:"#000",size:"16px",height:"325px",alwaysVisible:!0,disableFadeOut:!0}),$(".info, .close-pane").click(function(n){n.preventDefault()}),$(".date-picker").length){n=$(".date-nav").length>0?new Date($(".date-nav").data("start-date")):null;n==null&&(n=$("#searchPanel").length>0?new Date($("#searchPanel").data("start-date")):null);n&&(n=new Date(n.setDate(n.getDate()+1)));$(".date-picker").datepicker({weekStart:1,autoclose:!0,zIndex:2e3,startDate:n,todayHighlight:!0});$(".input-group-addon").on("click",function(){$(this).parent().find(".date-picker").datepicker("show")})}$(".carousel").length&&($("#carouselCommons, #carouselLords, #carouselCommittees").swiperight(function(){$(this).carousel("prev")}),$("#carouselCommons, #carouselLords, #carouselCommittees").swipeleft(function(){$(this).carousel("next")}));$(window).setBreakpoints({distinct:!0,breakpoints:[300,768,1024]});$(window).on("enterBreakpoint300",function(){$("#searchPanel").removeClass("in").css("height","0");$(".tc-box, .tc-box-container .slimScrollDiv").css({height:"auto"})});$(window).on("exitBreakpoint300",function(){$("#searchPanel").addClass("in").css("height","auto")});$(window).on("enterBreakpoint768",function(){});$(window).on("exitBreakpoint768",function(){});$(window).on("enterBreakpoint1024",function(){$("#recentlyArchivedCommons, #recentlyArchivedLords, #recentlyArchivedCommittees").slick({centerMode:!1,infinite:!0,arrows:!1,centerPadding:"0",slidesToShow:1,onAfterChange:updateArrowText,vertical:!1,useCSS:!1,lazyLoad:"progressive"})});$(window).on("exitBreakpoint1024",function(){$("#recentlyArchivedCommons, #recentlyArchivedLords, #recentlyArchivedCommittees").unslick()});setTimeout(function(){$(".archived-wrapper").removeClass("archived-hidden")},1e3)})