vendor: 4,494 bytes, line 1
1!function(t){var e=!0;t.flexslider=function(i,n){var o=t(i);void 0===n.rtl&&"rtl"==t("html").attr("dir")&&(n.rtl=!0),o.vars=t.extend({},t.flexslider.defaults,n);var s,a=o.vars.namespace,r=window.navigator&&window.navigator.msPointerEnabled&&window.MSGesture,l=("ontouchstart"in window||r||window.DocumentTouch&&document instanceof DocumentTouch)&&o.vars.touch,h="click touchend MSPointerUp keyup",c="",d="vertical"===o.vars.direction,u=o.vars.reverse,p=o.vars.itemWidth>0,f="fade"===o.vars.animation,m=""!==o.vars.asNavFor,g={};t.data(i,"flexslider",o),g={init:function(){if(o.animating=!1,o.currentSlide=parseInt(o.vars.startAt?o.vars.startAt:0,10),isNaN(o.currentSlide)&&(o.currentSlide=0),o.animatingTo=o.currentSlide,o.atEnd=0===o.currentSlide||o.currentSlide===o.last,o.containerSelector=o.vars.selector.substr(0,o.vars.selector.search(" ")),o.slides=t(o.vars.selector+":not(.clone)",o),o.container=t(o.containerSelector,o),o.count=o.slides.length,o.syncExists=t(o.vars.sync).length>0,"slide"===o.vars.animation&&(o.vars.animation="swing"),o.prop=d?"top":o.vars.rtl?"marginRight":"marginLeft",o.args={},o.manualPause=!1,o.stopped=!1,o.started=!1,o.startTimeout=null,o.transitions=!o.vars.video&&!f&&o.vars.useCSS&&function(){var t=document.createElement("div"),e=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var i in e)if(void 0!==t.style[e[i]])return o.pfx=e[i].replace("Perspective","").toLowerCase(),o.prop="-"+o.pfx+"-transform",!0;return!1}(),o.ensureAnimationEnd="",""!==o.vars.controlsContainer&&(o.controlsContainer=t(o.vars.controlsContainer).length>0&&t(o.vars.controlsContainer)),""!==o.vars.manualControls&&(o.manualControls=t(o.vars.manualControls).length>0&&t(o.vars.manualControls)),""!==o.vars.customDirectionNav&&(o.customDirectionNav=2===t(o.vars.customDirectionNav).length&&t(o.vars.customDirectionNav)),o.vars.randomize&&o.count>2){var e=t.makeArray(o.slides),i=e.shift();e.sort(function(){return Math.round(Math.random())-.5}),e.unshift(i),o.slides=t(e),o.container.empty().append(o.slides)}o.doMath(),o.setup("init"),o.vars.controlNav&&g.controlNav.setup(),o.vars.directionNav&&g.directionNav.setup(),o.vars.keyboard&&(1===t(o.containerSelector).length||o.vars.multipleKeyboard)&&t(document).bind("keyup",function(t){var e=t.keyCode;if(!o.animating&&(39===e||37===e)){var i=o.vars.rtl?37===e?o.getTarget("next"):39===e&&o.getTarget("prev"):39===e?o.getTarget("next"):37===e&&o.getTarget("prev");o.flexAnimate(i,o.vars.pauseOnAction)}}),o.vars.mousewheel&&o.bind("mousewheel",function(t,e,i,n){t.preventDefault();var s=e<0?o.getTarget("next"):o.getTarget("prev");o.flexAnimate(s,o.vars.pauseOnAction)}),o.vars.pausePlay&&g.pausePlay.setup(),o.vars.slideshow&&o.vars.pauseInvisible&&g.pauseInvisible.init(),o.vars.slideshow&&(o.vars.pauseOnHover&&o.hover(function(){o.manualPlay||o.manualPause||o.pause()},function(){o.manualPause||o.manualPlay||o.stopped||o.play()}),o.vars.pauseInvisible&&g.pauseInvisible.isHidden()||(o.vars.initDelay>0?o.startTimeout=setTimeout(o.play,o.vars.initDelay):o.play())),m&&g.asNav.setup(),l&&o.vars.touch&&g.touch(),(!f||f&&o.vars.smoothHeight)&&t(window).bind("resize orientationchange focus",g.resize),o.find("img").attr("draggable","false"),setTimeout(function(){o.vars.start(o)},200)},asNav:{setup:function(){o.asNav=!0,o.animatingTo=Math.floor(o.currentSlide/o.move),o.currentItem=o.currentSlide,o.slides.removeClass(a+"active-slide").eq(o.currentItem).addClass(a+"active-slide"),r?(i._slider=o,o.slides.each(function(){var e=this;e._gesture=new MSGesture,e._gesture.target=e,e.addEventListener("MSPointerDown",function(t){t.preventDefault(),t.currentTarget._gesture&&t.currentTarget._gesture.addPointer(t.pointerId)},!1),e.addEventListener("MSGestureTap",function(e){e.preventDefault();var i=t(this),n=i.index();t(o.vars.asNavFor).data("flexslider").animating||i.hasClass("active")||(o.direction=o.currentItem<n?"next":"prev",o.flexAnimate(n,o.vars.pauseOnAction,!1,!0,!0))})})):o.slides.on(h,function(e){e.preventDefault();var i=t(this),n=i.index();(o.vars.rtl?-1*(i.offset().right-t(o).scrollLeft()):i.offset().left-t(o).scrollLeft())<=0&&i.hasClass(a+"active-slide")?o.flexAnimate(o.getTarget("prev"),!0):t(o.vars.asNavFor).data("flexslider").animating||i.hasClass(a+"active-slide")||(o.direction=o.currentItem<n?"next":"prev",o.flexAnimate(n,o.vars.pauseOnAction,!1,!0,!0))})}},controlNav:{setup:function(){o.manualControls?g.controlNav.setupManual():g.controlNav.setupPaging(
1)},setupPaging:function(){var e,i,n="thumbnails"===o.vars.controlNav?"control-thumbs":"control-paging",s=1;if(o.controlNavScaffold=t('<ol class="'+a+"control-nav "+a+n+'"></ol>'),o.pagingCount>1)for(var r=0;r<o.pagingCount;r++){void 0===(i=o.slides.eq(r)).attr("data-thumb-alt")&&i.attr("data-thumb-alt","");var l=""!==i.attr("data-thumb-alt")?l=' alt="'+i.attr("data-thumb-alt")+'"':"";if(e="thumbnails"===o.vars.controlNav?'<img src="'+i.attr("data-thumb")+'"'+l+"/>":'<a href="#">'+s+"</a>","thumbnails"===o.vars.controlNav&&!0===o.vars.thumbCaptions){var d=i.attr("data-thumbcaption");""!==d&&void 0!==d&&(e+='<span class="'+a+'caption">'+d+"</span>")}o.controlNavScaffold.append("<li>"+e+"</li>"),s++}o.controlsContainer?t(o.controlsContainer).append(o.controlNavScaffold):o.append(o.controlNavScaffold),g.controlNav.set(),g.controlNav.active(),o.controlNavScaffold.delegate("a, img",h,function(e){if(e.preventDefault(),""===c||c===e.type){var i=t(this),n=o.controlNav.index(i);i.hasClass(a+"active")||(o.direction=n>o.currentSlide?"next":"prev",o.flexAnimate(n,o.vars.pauseOnAction))}""===c&&(c=e.type),g.setToClearWatchedEvent()})},setupManual:function(){o.controlNav=o.manualControls,g.controlNav.active(),o.controlNav.bind(h,function(e){if(e.preventDefault(),""===c||c===e.type){var i=t(this),n=o.controlNav.index(i);i.hasClass(a+"active")||(n>o.currentSlide?o.direction="next":o.direction="prev",o.flexAnimate(n,o.vars.pauseOnAction))}""===c&&(c=e.type),g.setToClearWatchedEvent()})},set:function(){var e="thumbnails"===o.vars.controlNav?"img":"a";o.controlNav=t("."+a+"control-nav li "+e,o.controlsContainer?o.controlsContainer:o)},active:function(){o.controlNav.removeClass(a+"active").eq(o.animatingTo).addClass(a+"active")},update:function(e,i){o.pagingCount>1&&"add"===e?o.controlNavScaffold.append(t('<li><a href="#">'+o.count+"</a></li>")):1===o.pagingCount?o.controlNavScaffold.find("li").remove():o.controlNav.eq(i).closest("li").remove(),g.controlNav.set(),o.pagingCount>1&&o.pagingCount!==o.controlNav.length?o.update(i,e):g.controlNav.active()}},directionNav:{setup:function(){var e=t('<ul class="'+a+'direction-nav"><li class="'+a+'nav-prev"><a class="'+a+'prev" href="#">'+o.vars.prevText+'</a></li><li class="'+a+'nav-next"><a class="'+a+'next" href="#">'+o.vars.nextText+"</a></li></ul>");o.customDirectionNav?o.directionNav=o.customDirectionNav:o.controlsContainer?(t(o.controlsContainer).append(e),o.directionNav=t("."+a+"direction-nav li a",o.controlsContainer)):(o.append(e),o.directionNav=t("."+a+"direction-nav li a",o)),g.directionNav.update(),o.directionNav.bind(h,function(e){var i;e.preventDefault(),""!==c&&c!==e.type||(i=t(this).hasClass(a+"next")?o.getTarget("next"):o.getTarget("prev"),o.flexAnimate(i,o.vars.pauseOnAction)),""===c&&(c=e.type),g.setToClearWatchedEvent()})},update:function(){var t=a+"disabled";1===o.pagingCount?o.directionNav.addClass(t).attr("tabindex","-1"):o.vars.animationLoop?o.directionNav.removeClass(t).removeAttr("tabindex"):0===o.animatingTo?o.directionNav.removeClass(t).filter("."+a+"prev").addClass(t).attr("tabindex","-1"):o.animatingTo===o.last?o.directionNav.removeClass(t).filter("."+a+"next").addClass(t).attr("tabindex","-1"):o.directionNav.removeClass(t).removeAttr("tabindex")}},pausePlay:{setup:function(){var e=t('<div class="'+a+'pauseplay"><a href="#"></a></div>');o.controlsContainer?(o.controlsContainer.append(e),o.pausePlay=t("."+a+"pauseplay a",o.controlsContainer)):(o.append(e),o.pausePlay=t("."+a+"pauseplay a",o)),g.pausePlay.update(o.vars.slideshow?a+"pause":a+"play"),o.pausePlay.bind(h,function(e){e.preventDefault(),""!==c&&c!==e.type||(t(this).hasClass(a+"pause")?(o.manualPause=!0,o.manualPlay=!1,o.pause()):(o.manualPause=!1,o.manualPlay=!0,o.play())),""===c&&(c=e.type),g.setToClearWatchedEvent()})},update:function(t){"play"===t?o.pausePlay.removeClass(a+"pause").addClass(a+"play").html(o.vars.playText):o.pausePlay.removeClass(a+"play").addClass(a+"pause").html(o.vars.pauseText)}},touch:function(){var t,e,n,s,a,l,h,c,m=!1,g=0,v=0,_=0;
vendor: 5,134 bytes, line 1
1r?(i.style.msTouchAction="none",i._gesture=new MSGesture,i._gesture.target=i,i.addEventListener("MSPointerDown",function(t){t.stopPropagation(),o.animating?t.preventDefault():(o.pause(),i._gesture.addPointer(t.pointerId),_=0,s=d?o.h:o.w,l=Number(new Date),n=p&&u&&o.animatingTo===o.last?0:p&&u?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:p&&o.currentSlide===o.last?o.limit:p?(o.itemW+o.vars.itemMargin)*o.move*o.currentSlide:u?(o.last-o.currentSlide+o.cloneOffset)*s:(o.currentSlide+o.cloneOffset)*s)},!1),i._slider=o,i.addEventListener("MSGestureChange",function(t){t.stopPropagation();var e=t.target._slider;if(e){var o=-t.translationX,r=-t.translationY;if(_+=d?r:o,a=(e.vars.rtl?-1:1)*_,m=d?Math.abs(_)<Math.abs(-o):Math.abs(_)<Math.abs(-r),t.detail===t.MSGESTURE_FLAG_INERTIA)return void setImmediate(function(){i._gesture.stop()});(!m||Number(new Date)-l>500)&&(t.preventDefault(),!f&&e.transitions&&(e.vars.animationLoop||(a=_/(0===e.currentSlide&&_<0||e.currentSlide===e.last&&_>0?Math.abs(_)/s+2:1)),e.setProps(n+a,"setTouch")))}},!1),i.addEventListener("MSGestureEnd",function(i){i.stopPropagation();var o=i.target._slider;if(o){if(o.animatingTo===o.currentSlide&&!m&&null!==a){var r=u?-a:a,h=r>0?o.getTarget("next"):o.getTarget("prev");o.canAdvance(h)&&(Number(new Date)-l<550&&Math.abs(r)>50||Math.abs(r)>s/2)?o.flexAnimate(h,o.vars.pauseOnAction):f||o.flexAnimate(o.currentSlide,o.vars.pauseOnAction,!0)}t=null,e=null,a=null,n=null,_=0}},!1)):(h=function(i){g=i.touches[0].pageX,v=i.touches[0].pageY,a=d?t-v:(o.vars.rtl?-1:1)*(t-g),(!(m=d?Math.abs(a)<Math.abs(g-e):Math.abs(a)<Math.abs(v-e))||Number(new Date)-l>500)&&(i.preventDefault(),!f&&o.transitions&&(o.vars.animationLoop||(a/=0===o.currentSlide&&a<0||o.currentSlide===o.last&&a>0?Math.abs(a)/s+2:1),o.setProps(n+a,"setTouch")))},c=function(r){if(i.removeEventListener("touchmove",h,!1),o.animatingTo===o.currentSlide&&!m&&null!==a){var d=u?-a:a,p=d>0?o.getTarget("next"):o.getTarget("prev");o.canAdvance(p)&&(Number(new Date)-l<550&&Math.abs(d)>50||Math.abs(d)>s/2)?o.flexAnimate(p,o.vars.pauseOnAction):f||o.flexAnimate(o.currentSlide,o.vars.pauseOnAction,!0)}i.removeEventListener("touchend",c,!1),t=null,e=null,a=null,n=null},i.addEventListener("touchstart",function(a){o.animating?a.preventDefault():(window.navigator.msPointerEnabled||1===a.touches.length)&&(o.pause(),s=d?o.h:o.w,l=Number(new Date),g=a.touches[0].pageX,v=a.touches[0].pageY,n=p&&u&&o.animatingTo===o.last?0:p&&u?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:p&&o.currentSlide===o.last?o.limit:p?(o.itemW+o.vars.itemMargin)*o.move*o.currentSlide:u?(o.last-o.currentSlide+o.cloneOffset)*s:(o.currentSlide+o.cloneOffset)*s,t=d?v:g,e=d?g:v,i.addEventListener("touchmove",h,!1),i.addEventListener("touchend",c,!1))},!1))},resize:function(){!o.animating&&o.is(":visible")&&(p||o.doMath(),f?g.smoothHeight():p?(o.slides.width(o.computedW),o.update(o.pagingCount),o.setProps()):d?(o.viewport.height(o.h),o.setProps(o.h,"setTotal")):(o.vars.smoothHeight&&g.smoothHeight(),o.newSlides.width(o.computedW),o.setProps(o.computedW,"setTotal")))},smoothHeight:function(t){if(!d||f){var e=f?o:o.viewport;t?e.animate({height:o.slides.eq(o.animatingTo).innerHeight()},t):e.innerHeight(o.slides.eq(o.animatingTo).innerHeight())}},sync:function(e){var i=t(o.vars.sync).data("flexslider"),n=o.animatingTo;switch(e){case"animate":i.flexAnimate(n,o.vars.pauseOnAction,!1,!0);break;case"play":i.playing||i.asNav||i.play();break;case"pause":i.pause()}},uniqueID:function(e){return e.filter("[id]").add(e.find("[id]")).each(function(){var e=t(this);e.attr("id",e.attr("id")+"_clone")}),e},pauseInvisible:{visProp:null,init:function(){var t=g.pauseInvisible.getHiddenProp();if(t){var e=t.replace(/[H|h]idden/,"")+"visibilitychange";document.addEventListener(e,function(){g.pauseInvisible.isHidden()?o.startTimeout?clearTimeout(o.startTimeout):o.pause():o.started?o.play():o.vars.initDelay>0?setTimeout(o.play,o.vars.initDelay):o.play()})}},isHidden:function(){var t=g.pauseInvisible.getHiddenProp();return!!t&&document[t]},getHiddenProp:function(){var t=["webkit","moz","ms","o"];if("hidden"in document)return"hidden";for(var e=0;e<t.length;e++)if(t[e]+"Hidden" in document)return t[e]+"Hidden";return null}},setToClearWatchedEvent:function(){clearTimeout(s),s=setTimeout(function(){c=""},3e3)}},o.flexAnimate=function(e,i,n,s,r){if(o.vars.animationLoop||e===o.currentSlide||(o.direction=e>o.currentSlide?"next":"prev"),m&&1===o.pagingCount&&(o.direction=o.currentItem<e?"next":"prev"),!o.animating&&(o.canAdvance(e,r)||n)&&o.is(":visible")){if(m&&s){var h=t(o.vars.asNavFor).data("flexslider");if(o.atEnd=0===e||e===o.count-1,h.flexAnimate(e,!0,!1,!0,r),o.direction=o.currentItem<e?"next":"prev",h.direction=o.direction,Math.ceil((e+1)/o.visible)-1===o.currentSlide||0===e)return o.currentItem=e,o.slides.removeClass(a+"active-slide").eq(e).addClass(a+"active-slide"),!1;o.currentItem=e,o.slides.removeClass(a+"active-slide").eq(e).addClass(a+"active-slide"),e=Math.floor(e/o.visible)}if(o.animating=!0,o.animatingTo=e,i&&o.pause(),o.vars.before(o),o.syncExists&&!r&&g.sync("animate"),o.vars.c
1ontrolNav&&g.controlNav.active(),p||o.slides.removeClass(a+"active-slide").eq(e).addClass(a+"active-slide"),o.atEnd=0===e||e===o.last,o.vars.directionNav&&g.directionNav.update(),e===o.last&&(o.vars.end(o),o.vars.animationLoop||o.pause()),f)l?(o.slides.eq(o.currentSlide).css({opacity:0,zIndex:1}),o.slides.eq(e).css({opacity:1,zIndex:2}),o.wrapup(y)):(o.slides.eq(o.currentSlide).css({zIndex:1}).animate({opacity:0},o.vars.animationSpeed,o.vars.easing),o.slides.eq(e).css({zIndex:2}).animate({opacity:1},o.vars.animationSpeed,o.vars.easing,o.wrapup));else{var c,v,_,y=d?o.slides.filter(":first").height():o.computedW;p?(c=o.vars.itemMargin,v=(_=(o.itemW+c)*o.move*o.animatingTo)>o.limit&&1!==o.visible?o.limit:_):v=0===o.currentSlide&&e===o.count-1&&o.vars.animationLoop&&"next"!==o.direction?u?(o.count+o.cloneOffset)*y:0:o.currentSlide===o.last&&0===e&&o.vars.animationLoop&&"prev"!==o.direction?u?0:(o.count+1)*y:u?(o.count-1-e+o.cloneOffset)*y:(e+o.cloneOffset)*y,o.setProps(v,"",o.vars.animationSpeed),o.transitions?(o.vars.animationLoop&&o.atEnd||(o.animating=!1,o.currentSlide=o.animatingTo),o.container.unbind("webkitTransitionEnd transitionend"),o.container.bind("webkitTransitionEnd transitionend",function(){clearTimeout(o.ensureAnimationEnd),o.wrapup(y)}),clearTimeout(o.ensureAnimationEnd),o.ensureAnimationEnd=setTimeout(function(){o.wrapup(y)},o.vars.animationSpeed+100)):o.container.animate(o.args,o.vars.animationSpeed,o.vars.easing,function(){o.wrapup(y)})}o.vars.smoothHeight&&g.smoothHeight(o.vars.animationSpeed)}},o.wrapup=function(t){f||p||(0===o.currentSlide&&o.animatingTo===o.last&&o.vars.animationLoop?o.setProps(t,"jumpEnd"):o.currentSlide===o.last&&0===o.animatingTo&&o.vars.animationLoop&&o.setProps(t,"jumpStart")),o.animating=!1,o.currentSlide=o.animatingTo,o.vars.after(o)},o.animateSlides=function(){!o.animating&&e&&o.flexAnimate(o.getTarget("next"))},o.pause=function(){clearInterval(o.animatedSlides),o.animatedSlides=null,o.playing=!1,o.vars.pausePlay&&g.pausePlay.update("play"),o.syncExists&&g.sync("pause")},o.play=function(){o.playing&&clearInterval(o.animatedSlides),o.animatedSlides=o.animatedSlides||setInterval(o.animateSlides,o.vars.slideshowSpeed),o.started=o.playing=!0,o.vars.pausePlay&&g.pausePlay.update("pause"),o.syncExists&&g.sync("play")},o.stop=function(){o.pause(),o.stopped=!0},o.canAdvance=function(t,e){var i=m?o.pagingCount-1:o.last;return!!e||!(!m||o.currentItem!==o.count-1||0!==t||"prev"!==o.direction)||(!m||0!==o.currentItem||t!==o.pagingCount-1||"next"===o.direction)&&!(t===o.currentSlide&&!m)&&(!!o.vars.animationLoop||(!o.atEnd||0!==o.currentSlide||t!==i||"next"===o.direction)&&(!o.atEnd||o.currentSlide!==i||0!==t||"next"!==o.direction))},o.getTarget=function(t){return o.direction=t,"next"===t?o.currentSlide===o.last?0:o.currentSlide+1:0===o.currentSlide?o.last:o.currentSlide-1},o.setProps=function(t,e,i){var n,s=(n=t||(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo,function(){if(p)return"setTouch"===e?t:u&&o.animatingTo===o.last?0:u?o.limit-(o.itemW+o.vars.itemMargin)*o.move*o.animatingTo:o.animatingTo===o.last?o.limit:n;switch(e){case"setTotal":return u?(o.count-1-o.currentSlide+o.cloneOffset)*t:(o.currentSlide+o.cloneOffset)*t;case"setTouch":default:return t;case"jumpEnd":return u?t:o.count*t;case"jumpStart":return u?o.count*t:t}}()*(o.vars.rtl?1:-1)+"px");o.transitions&&(s=d?"translate3d(0,"+s+",0)":"translate3d("+(o.vars.rtl?-1:1)*parseInt(s)+"px,0,0)",i=void 0!==i?i/1e3+"s":"0s",o.container.css("-"+o.pfx+"-transition-duration",i),o.container.css("transition-duration",i)),o.args[o.prop]=s,(o.transitions||void 0===i)&&o.container.css(o.args),o.container.css("transform",s)},o.setup=function(e){var i,n;f?(o.vars.rtl?o.slides.css({width:"100%",float:"right",marginLeft:"-100%",position:"relative"}):o.slides.css({width:"100%",float:"left",marginRight:"-100%",position:"relative"}),"init"===e&&(l?o.slides.css({opacity:0,display:"block",webkitTransition:"opacity "+o.vars.animationSpeed/1e3+"s ease",zIndex:1}).eq(o.currentSlide).css({opacity:1,zIndex:2}):0==o.vars.fadeFirstSlide?o.slides.css({opacity:0,display:"block",zIndex:1}).eq(o.currentSlide).css({zIndex:2}).css({opacity:1}):o.slides.css({opacity:0,display:"block",zIndex:1}).eq(o.currentSlide).css({zIndex:2}).animate({opacity:1},o.vars.animationSpeed,o.vars.easing)),o.vars.smoothHeight&&g.smoothHeight()):("init"===e&&(o.viewport=o.find("."+a+"viewport"),o.viewport.length||(o.viewport=t('<div class="'+a+'viewport"></div>').appendTo(o).append(o.container)),o.viewport.css({overflow:"hidden",position:"relative"}),o.cloneCount=0,o.cloneOffset=0,u&&(n=t.makeArray(o.slides).reverse(),o.slides=t(n),o.container.empty().append(o.slides))),o.vars.animationLoop&&!p&&(o.cloneCount=2,o.cloneOffset=1,"init"!==e&&o.container.find(".clone").remove(),2!==o.container.find(".clone").length&&o.container.append(g.uniqueID(o.slides.first().clone().addClass("clone")).attr("aria-hidden","true")).prepend(g.uniqueID(o.slides.last().clone().addClass("clone")).attr("aria-hidden","true"))),o.newSlides=t(o.vars.selector,o),i=u?o.count-1-o.currentSlide+o.cloneOffset:o.currentSlide+o.cloneOffset,d&&!p?(o.container.height(200*(o.count+o.cloneCount)+"%").css("position","absolute").width("100%"),setTimeout(function(){o.newSlides.css({display:"block"}),o.doMath(),o.viewport.height(o.h),o.setProps(i*o.h,"init")}
1,"init"===e?100:0)):(o.container.width(200*(o.count+o.cloneCount)+"%"),o.setProps(i*o.computedW,"init"),setTimeout(function(){o.doMath(),o.vars.rtl,o.newSlides.css({width:o.computedW,marginRight:o.computedM,float:"left",display:"block"}),o.vars.smoothHeight&&g.smoothHeight()},"init"===e?100:0))),p||o.slides.removeClass(a+"active-slide").eq(o.currentSlide).addClass(a+"active-slide"),o.vars.init(o)},o.doMath=function(){var t=o.slides.first(),e=o.vars.itemMargin,i=o.vars.minItems,n=o.vars.maxItems;o.w=void 0===o.viewport?o.width():o.viewport.width(),o.h=t.height(),o.boxPadding=t.outerWidth()-t.width(),p?(o.itemT=o.vars.itemWidth+e,o.itemM=e,o.minW=i?i*o.itemT:o.w,o.maxW=n?n*o.itemT-e:o.w,o.itemW=o.minW>o.w?(o.w-e*(i-1))/i:o.maxW<o.w?(o.w-e*(n-1))/n:o.vars.itemWidth>o.w?o.w:o.vars.itemWidth,o.visible=Math.floor(o.w/o.itemW),o.move=o.vars.move>0&&o.vars.move<o.visible?o.vars.move:o.visible,o.pagingCount=Math.ceil((o.count-o.visible)/o.move+1),o.last=o.pagingCount-1,o.limit=1===o.pagingCount?0:o.vars.itemWidth>o.w?o.itemW*(o.count-1)+e*(o.count-1):(o.itemW+e)*o.count-o.w-e):(o.itemW=o.w,o.itemM=e,o.pagingCount=o.count,o.last=o.count-1),o.computedW=o.itemW-o.boxPadding,o.computedM=o.itemM},o.update=function(t,e){o.doMath(),p||(t<o.currentSlide?o.currentSlide+=1:t<=o.currentSlide&&0!==t&&(o.currentSlide-=1),o.animatingTo=o.currentSlide),o.vars.controlNav&&!o.manualControls&&("add"===e&&!p||o.pagingCount>o.controlNav.length?g.controlNav.update("add"):("remove"===e&&!p||o.pagingCount<o.controlNav.length)&&(p&&o.currentSlide>o.last&&(o.currentSlide-=1,o.animatingTo-=1),g.controlNav.update("remove",o.last))),o.vars.directionNav&&g.directionNav.update()},o.addSlide=function(e,i){var n=t(e);o.count+=1,o.last=o.count-1,d&&u?void 0!==i?o.slides.eq(o.count-i).after(n):o.container.prepend(n):void 0!==i?o.slides.eq(i).before(n):o.container.append(n),o.update(i,"add"),o.slides=t(o.vars.selector+":not(.clone)",o),o.setup(),o.vars.added(o)},o.removeSlide=function(e){var i=isNaN(e)?o.slides.index(t(e)):e;o.count-=1,o.last=o.count-1,isNaN(e)?t(e,o.slides).remove():d&&u?o.slides.eq(o.last).remove():o.slides.eq(e).remove(),o.doMath(),o.update(i,"remove"),o.slides=t(o.vars.selector+":not(.clone)",o),o.setup(),o.vars.removed(o)},g.init()},t(window).blur(function(t){e=!1}).focus(function(t){e=!0}),t.flexslider.defaults={namespace:"flex-",selector:".slides > li",animation:"fade",easing:"swing",direction:"horizontal",reverse:!1,animationLoop:!0,smoothHeight:!1,startAt:0,slideshow:!0,slideshowSpeed:7e3,animationSpeed:600,initDelay:0,randomize:!1,fadeFirstSlide:!0,thumbCaptions:!1,pauseOnAction:!0,pauseOnHover:!1,pauseInvisible:!0,useCSS:!0,touch:!0,video:!1,controlNav:!0,directionNav:!0,prevText:"Previous",nextText:"Next",keyboard:!0,multipleKeyboard:!1,mousewheel:!1,pausePlay:!1,pauseText:"Pause",playText:"Play",controlsContainer:"",manualControls:"",customDirectionNav:"",sync:"",asNavFor:"",itemWidth:0,itemMargin:0,minItems:1,maxItems:0,move:0,allowOneSlide:!0,start:function(){},before:function(){},after:function(){},end:function(){},added:function(){},removed:function(){},init:function(){},rtl:!1},t.fn.flexslider=function(e){if(void 0===e&&(e={}),"object"==typeof e)return this.each(function(){var i=t(this),n=(e.selector,".slides > li"),o=i.find(n);e.selector=".slides > li",1===o.length&&!1===e.allowOneSlide||0===o.length?(o.fadeIn(400),e.start&&e.start(i)):void 0===i.data("flexslider")&&new t.flexslider(this,e)});var i=t(this).data("flexslider");switch(e){case"play":i.play();break;case"pause":i.pause();break;case"stop":i.stop();break;case"next":i.flexAnimate(i.getTarget("next"),!0);break;case"prev":case"previous":i.flexAnimate(i.getTarget("prev"),!0);break;default:"number"==typeof e&&i.flexAnimate(e,!0)}}}(jQuery),function(t){var e,i,n,o,s="mmenu",a="5.6.4";t[s]&&t[s].version>a||(t[s]=function(t,e,i){this.$menu=t,this._api=["bind","init","update","setSelected","getInstance","openPanel","closePanel","closeAllPanels"],this.opts=e,this.conf=i,this.vars={},this.cbck={},"function"==typeof this.___deprecated&&this.___deprecated(),this._initMenu(),this._initAnchors();var n=this.$pnls.children();return this._initAddons(),this.init(n),"function"==typeof this.___debug&&this.___debug(),this},t[s].version=a,t[s].addons={},t[s].uniqueId=0,t[s].defaults={extensions:[],navbar:{add:!0,title:"Menu",titleLink:"panel"},onClick:{setSelected:!0},slidingSubmenus:!0},t[s].configuration={classNames:{divider:"Divider",inset:"Inset",panel:"Panel",selected:"Selected",spacer:"Spacer",vertical:"Vertical"},clone:!1,openingInterval:25,panelNodetype:"ul, ol, div",transitionDuration:400},t[s].prototype={init:function(t){t=t.not("."+e.nopanel),t=this._initPanels(t),this.trigger("init",t),this.trigger("update")},update:function(){this.trigger("update")},setSelected:function(t){this.$menu.find("."+e.listview).children().removeClass(e.selected),t.addClass(e.selected),this.trigger("setSelected",t)},openPanel:function(i){var n=i.parent(),o=this;if(n.hasClass(e.vertical)){var a=n.parents("."+e.subopened);
1if(a.length)return void this.openPanel(a.first());n.addClass(e.opened),this.trigger("openPanel",i),this.trigger("openingPanel",i),this.trigger("openedPanel",i)}else{if(i.hasClass(e.current))return;var r=this.$pnls.children("."+e.panel),l=r.filter("."+e.current);r.removeClass(e.highest).removeClass(e.current).not(i).not(l).not("."+e.vertical).addClass(e.hidden),t[s].support.csstransitions||l.addClass(e.hidden),i.hasClass(e.opened)?i.nextAll("."+e.opened).addClass(e.highest).removeClass(e.opened).removeClass(e.subopened):(i.addClass(e.highest),l.addClass(e.subopened)),i.removeClass(e.hidden).addClass(e.current),o.trigger("openPanel",i),setTimeout(function(){i.removeClass(e.subopened).addClass(e.opened),o.trigger("openingPanel",i),o.__transitionend(i,function(){o.trigger("openedPanel",i)},o.conf.transitionDuration)},this.conf.openingInterval)}},closePanel:function(t){var i=t.parent();i.hasClass(e.vertical)&&(i.removeClass(e.opened),this.trigger("closePanel",t),this.trigger("closingPanel",t),this.trigger("closedPanel",t))},closeAllPanels:function(){this.$menu.find("."+e.listview).children().removeClass(e.selected).filter("."+e.vertical).removeClass(e.opened);var t=this.$pnls.children("."+e.panel).first();this.$pnls.children("."+e.panel).not(t).removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden),this.openPanel(t)},togglePanel:function(t){var i=t.parent();i.hasClass(e.vertical)&&this[i.hasClass(e.opened)?"closePanel":"openPanel"](t)},getInstance:function(){return this},bind:function(t,e){this.cbck[t]=this.cbck[t]||[],this.cbck[t].push(e)},trigger:function(){var t=Array.prototype.slice.call(arguments),e=t.shift();if(this.cbck[e])for(var i=0,n=this.cbck[e].length;n>i;i++)this.cbck[e][i].apply(this,t)},_initMenu:function(){this.$menu.attr("id",this.$menu.attr("id")||this.__getUniqueId()),this.conf.clone&&(this.$menu=this.$menu.clone(!0),this.$menu.add(this.$menu.find("[id]")).filter("[id]").each(function(){t(this).attr("id",e.mm(t(this).attr("id")))})),this.$menu.contents().each(function(){3==t(this)[0].nodeType&&t(this).remove()}),this.$pnls=t('<div class="'+e.panels+'" />').append(this.$menu.children(this.conf.panelNodetype)).prependTo(this.$menu),this.$menu.parent().addClass(e.wrapper);var i=[e.menu];this.opts.slidingSubmenus||i.push(e.vertical),this.opts.extensions=this.opts.extensions.length?"mm-"+this.opts.extensions.join(" mm-"):"",this.opts.extensions&&i.push(this.opts.extensions),this.$menu.addClass(i.join(" "))},_initPanels:function(n){var o=this,s=this.__findAddBack(n,"ul, ol");this.__refactorClass(s,this.conf.classNames.inset,"inset").addClass(e.nolistview+" "+e.nopanel),s.not("."+e.nolistview).addClass(e.listview);var a=this.__findAddBack(n,"."+e.listview).children();this.__refactorClass(a,this.conf.classNames.selected,"selected"),this.__refactorClass(a,this.conf.classNames.divider,"divider"),this.__refactorClass(a,this.conf.classNames.spacer,"spacer"),this.__refactorClass(this.__findAddBack(n,"."+this.conf.classNames.panel),this.conf.classNames.panel,"panel");var r=t(),l=n.add(n.find("."+e.panel)).add(this.__findAddBack(n,"."+e.listview).children().children(this.conf.panelNodetype)).not("."+e.nopanel);this.__refactorClass(l,this.conf.classNames.vertical,"vertical"),this.opts.slidingSubmenus||l.addClass(e.vertical),l.each(function(){var i=t(this),n=i;i.is("ul, ol")?(i.wrap('<div class="'+e.panel+'" />'),n=i.parent()):n.addClass(e.panel);var s=i.attr("id");i.removeAttr("id"),n.attr("id",s||o.__getUniqueId()),i.hasClass(e.vertical)&&(i.removeClass(o.conf.classNames.vertical),n.add(n.parent()).addClass(e.vertical)),r=r.add(n)});var h=t("."+e.panel,this.$menu);r.each(function(n){var s,a,r=t(this),l=r.parent(),h=l.children("a, span").first();if(l.is("."+e.panels)||(l.data(i.sub,r),r.data(i.parent,l)),l.children("."+e.next).length||l.parent().is("."+e.listview)&&(s=r.attr("id"),a=t('<a class="'+e.next+'" href="#'+s+'" data-target="#'+s+'" />').insertBefore(h),h.is("span")&&a.addClass(e.fullsubopen)),!r.children("."+e.navbar).length&&!l.hasClass(e.vertical)){l=l.parent().is("."+e.listview)?l.closest("."+e.panel):(h=l.closest("."+e.panel).find('a[href="#'+r.attr("id")+'"]').first()).closest("."+e.panel);var c=!1,d=t('<div class="'+e.navbar+'" />');if(l.length){switch(s=l.attr("id"),o.opts.navbar.titleLink){case"anchor":c=h.attr("href");break;case"panel":case"parent":c="#"+s;break;default:c=!1}
1d.append('<a class="'+e.btn+" "+e.prev+'" href="#'+s+'" data-target="#'+s+'" />').append(t('<a class="'+e.title+'"'+(c?' href="'+c+'"':"")+" />").text(h.text())).prependTo(r),o.opts.navbar.add&&r.addClass(e.hasnavbar)}else o.opts.navbar.title&&(d.append('<a class="'+e.title+'">'+o.opts.navbar.title+"</a>").prependTo(r),o.opts.navbar.add&&r.addClass(e.hasnavbar))}});var c=this.__findAddBack(n,"."+e.listview).children("."+e.selected).removeClass(e.selected).last().addClass(e.selected);c.add(c.parentsUntil("."+e.menu,"li")).filter("."+e.vertical).addClass(e.opened).end().each(function(){t(this).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened)}),c.children("."+e.panel).not("."+e.vertical).addClass(e.opened).parentsUntil("."+e.menu,"."+e.panel).not("."+e.vertical).first().addClass(e.opened).addClass(e.subopened);var d=h.filter("."+e.opened);return d.length||(d=r.first()),d.addClass(e.opened).last().addClass(e.current),r.not("."+e.vertical).not(d.last()).addClass(e.hidden).end().filter(function(){return!t(this).parent().hasClass(e.panels)}).appendTo(this.$pnls),r},_initAnchors:function(){var i=this;o.$body.on(n.click+"-oncanvas","a[href]",function(n){var o=t(this),a=!1,r=i.$menu.find(o).length;for(var l in t[s].addons)if(t[s].addons[l].clickAnchor.call(i,o,r)){a=!0;break}var h=o.attr("href");if(!a&&r&&h.length>1&&"#"==h.slice(0,1))try{var c=t(h,i.$menu);c.is("."+e.panel)&&(a=!0,i[o.parent().hasClass(e.vertical)?"togglePanel":"openPanel"](c))}catch(t){}if(a&&n.preventDefault(),!a&&r&&o.is("."+e.listview+" > li > a")&&!o.is('[rel="external"]')&&!o.is('[target="_blank"]')){i.__valueOrFn(i.opts.onClick.setSelected,o)&&i.setSelected(t(n.target).parent());var d=i.__valueOrFn(i.opts.onClick.preventDefault,o,"#"==h.slice(0,1));d&&n.preventDefault(),i.__valueOrFn(i.opts.onClick.close,o,d)&&i.close()}})},_initAddons:function(){var e;for(e in t[s].addons)t[s].addons[e].add.call(this),t[s].addons[e].add=function(){};for(e in t[s].addons)t[s].addons[e].setup.call(this)},_getOriginalMenuId:function(){var t=this.$menu.attr("id");return t&&t.length&&this.conf.clone&&(t=e.umm(t)),t},__api:function(){var e=this,i={};return t.each(this._api,function(t){var n=this;i[n]=function(){var t=e[n].apply(e,arguments);return void 0===t?i:t}}),i},__valueOrFn:function(t,e,i){return"function"==typeof t?t.call(e[0]):void 0===t&&void 0!==i?i:t},__refactorClass:function(t,i,n){return t.filter("."+i).removeClass(i).addClass(e[n])},__findAddBack:function(t,e){return t.find(e).add(t.filter(e))},__filterListItems:function(t){return t.not("."+e.divider).not("."+e.hidden)},__transitionend:function(t,e,i){var o=!1,s=function(){o||e.call(t[0]),o=!0};t.one(n.transitionend,s),t.one(n.webkitTransitionEnd,s),setTimeout(s,1.1*i)},__getUniqueId:function(){return e.mm(t[s].uniqueId++)}},t.fn[s]=function(a,r){return t[s].glbl||(o={$wndw:t(window),$docu:t(document),$html:t("html"),$body:t("body")},e={},i={},n={},t.each([e,i,n],function(t,e){e.add=function(t){t=t.split(" ");for(var i=0,n=t.length;n>i;i++)e[t[i]]=e.mm(t[i])}}),e.mm=function(t){return"mm-"+t},e.add("wrapper menu panels panel nopanel current highest opened subopened navbar hasnavbar title btn prev next listview nolistview inset vertical selected divider spacer hidden fullsubopen"),e.umm=function(t){return"mm-"==t.slice(0,3)&&(t=t.
1slice(3)),t},i.mm=function(t){return"mm-"+t},i.add("parent sub"),n.mm=function(t){return t+".mm"},n.add("transitionend webkitTransitionEnd click scroll keydown mousedown mouseup touchstart touchmove touchend orientationchange"),t[s]._c=e,t[s]._d=i,t[s]._e=n,t[s].glbl=o),a=t.extend(!0,{},t[s].defaults,a),r=t.extend(!0,{},t[s].configuration,r),this.each(function(){var e=t(this);if(!e.data(s)){var i=new t[s](e,a,r);i.$menu.data(s,i.__api())}})},t[s].support={touch:"ontouchstart"in window||navigator.msMaxTouchPoints||!1,csstransitions:function(){if("undefined"!=typeof Modernizr&&void 0!==Modernizr.csstransitions)return Modernizr.csstransitions;var t=(document.body||document.documentElement).style,e="transition";if("string"==typeof t[e])return!0;var i=["Moz","webkit","Webkit","Khtml","O","ms"];e=e.charAt(0).toUpperCase()+e.substr(1);for(var n=0;n<i.length;n++)if("string"==typeof t[i[n]+e])return!0;return!1}()})}(jQuery),function(t){var e,i,n,o,s="mmenu",a="offCanvas";t[s].addons[a]={setup:function(){if(this.opts[a]){var i=this.opts[a],n=this.conf[a
1];o=t[s].glbl,this._api=t.merge(this._api,["open","close","setPage"]),("top"==i.position||"bottom"==i.position)&&(i.zposition="front"),"string"!=typeof n.pageSelector&&(n.pageSelector="> "+n.pageNodetype),o.$allMenus=(o.$allMenus||t()).add(this.$menu),this.vars.opened=!1;var r=[e.offcanvas];"left"!=i.position&&r.push(e.mm(i.position)),"back"!=i.zposition&&r.push(e.mm(i.zposition)),this.$menu.addClass(r.join(" ")).parent().removeClass(e.wrapper),this.setPage(o.$page),this._initBlocker(),this["_initWindow_"+a](),this.$menu[n.menuInjectMethod+"To"](n.menuWrapperSelector);var l=window.location.hash;if(l){var h=this._getOriginalMenuId();h&&h==l.slice(1)&&this.open()}}},add:function(){e=t[s]._c,i=t[s]._d,n=t[s]._e,e.add("offcanvas slideout blocking modal background opening blocker page"),i.add("style"),n.add("resize")},clickAnchor:function(t,e){if(!this.opts[a])return!1;var i=this._getOriginalMenuId();return i&&t.is('[href="#'+i+'"]')?(this.open(),!0):o.$page?!!((i=o.$page.first().attr("id"))&&t.is('[href="#'+i+'"]'))&&(this.close(),!0):void 0}},t[s].defaults[a]={position:"left",zposition:"back",blockUI:!0,moveBackground:!0},t[s].configuration[a]={pageNodetype:"div",pageSelector:null,noPageSelector:[],wrapPageIfNeeded:!0,menuWrapperSelector:"body",menuInjectMethod:"prepend"},t[s].prototype.open=function(){if(!this.vars.opened){var t=this;this._openSetup(),setTimeout(function(){t._openFinish()},this.conf.openingInterval),this.trigger("open")}},t[s].prototype._openSetup=function(){var s=this,r=this.opts[a];this.closeAllOthers(),o.$page.each(function(){t(this).data(i.style,t(this).attr("style")||"")}),o.$wndw.trigger(n.resize+"-"+a,[!0]);var l=[e.opened];r.blockUI&&l.push(e.blocking),"modal"==r.blockUI&&l.push(e.modal),r.moveBackground&&l.push(e.background),"left"!=r.position&&l.push(e.mm(this.opts[a].position)),"back"!=r.zposition&&l.push(e.mm(this.opts[a].zposition)),this.opts.extensions&&l.push(this.opts.extensions),o.$html.addClass(l.join(" ")),setTimeout(function(){s.vars.opened=!0},this.conf.openingInterval),this.$menu.addClass(e.current+" "+e.opened)},t[s].prototype._openFinish=function(){var t=this;this.__transitionend(o.$page.first(),function(){t.trigger("opened")},this.conf.transitionDuration),o.$html.addClass(e.opening),this.trigger("opening")},t[s].prototype.close=function(){if(this.vars.opened){var n=this;this.__transitionend(o.$page.first(),function(){n.$menu.removeClass(e.current).removeClass(e.opened),o.$html.removeClass(e.opened).removeClass(e.blocking).removeClass(e.modal).removeClass(e.background).removeClass(e.mm(n.opts[a].position)).removeClass(e.mm(n.opts[a].zposition)),n.opts.extensions&&o.$html.removeClass(n.opts.extensions),o.$page.each(function(){t(this).attr("style",t(this).data(i.style))}),n.vars.opened=!1,n.trigger("closed")},this.conf.transitionDuration),o.$html.removeClass(e.opening),this.trigger("close"),this.trigger("closing")}},t[s].prototype.closeAllOthers=function(){o.$allMenus.not(this.$menu).each(function(){var e=t(this).data(s);e&&e.close&&e.close()})}
1,t[s].prototype.setPage=function(i){var n=this,s=this.conf[a];i&&i.length||(i=o.$body.find(s.pageSelector),s.noPageSelector.length&&(i=i.not(s.noPageSelector.join(", "))),i.length>1&&s.wrapPageIfNeeded&&(i=i.wrapAll("<"+this.conf[a].pageNodetype+" />").parent())),i.each(function(){t(this).attr("id",t(this).attr("id")||n.__getUniqueId())}),i.addClass(e.page+" "+e.slideout),o.$page=i,this.trigger("setPage",i)},t[s].prototype["_initWindow_"+a]=function(){o.$wndw.off(n.keydown+"-"+a).on(n.keydown+"-"+a,function(t){return o.$html.hasClass(e.opened)&&9==t.keyCode?(t.preventDefault(),!1):void 0});var t=0;o.$wndw.off(n.resize+"-"+a).on(n.resize+"-"+a,function(i,n){if(1==o.$page.length&&(n||o.$html.hasClass(e.opened))){var s=o.$wndw.height();(n||s!=t)&&(t=s,o.$page.css("minHeight",s))}})},t[s].prototype._initBlocker=function(){var i=this;this.opts[a].blockUI&&(o.$blck||(o.$blck=t('<div id="'+e.blocker+'" class="'+e.slideout+'" />')),o.$blck.appendTo(o.$body).off(n.touchstart+"-"+a+" "+n.touchmove+"-"+a).on(n.touchstart+"-"+a+" "+n.touchmove+"-"+a,function(t){t.preventDefault(),t.stopPropagation(),o.$blck.trigger(n.mousedown+"-"+a)}).off(n.mousedown+"-"+a).on(n.mousedown+"-"+a,function(t){t.preventDefault(),o.$html.hasClass(e.modal)||(i.closeAllOthers(),i.close())}))}}(jQuery),function(t){var e,i,n,o="mmenu",s="scrollBugFix";t[o].addons[s]={setup:function(){var a=this,r=this.opts[s];if(this.conf[s],n=t[o].glbl,t[o].support.touch&&this.opts.offCanvas&&this.opts.offCanvas.blockUI&&("boolean"==typeof r&&(r={fix:r}),"object"!=typeof r&&(r={}),(r=this.opts[s]=t.extend(!0,{},t[o].defaults[s],r)).fix)){var l=this.$menu.attr("id"),h=!1;this.bind("opening",function(){this.$pnls.children("."+e.current).scrollTop(0)}),n.$docu.on(i.touchmove,function(t){a.vars.opened&&t.preventDefault()}),n.$body.on(i.touchstart,"#"+l+"> ."+e.panels+"> ."+e.current,function(t){a.vars.opened&&(h||(h=!0,0===t.currentTarget.scrollTop?t.currentTarget.scrollTop=1:t.currentTarget.scrollHeight===t.currentTarget.scrollTop+t.currentTarget.offsetHeight&&(t.currentTarget.scrollTop-=1),h=!1))}).on(i.touchmove,"#"+l+"> ."+e.panels+"> ."+e.current,function(e){a.vars.opened&&t(this)[0].scrollHeight>t(this).innerHeight()&&e.stopPropagation()}),n.$wndw.on(i.orientationchange,function(){a.$pnls.children("."+e.current).scrollTop(0).css({"-webkit-overflow-scrolling":"auto"}).css({"-webkit-overflow-scrolling":"touch"})})}},add:function(){e=t[o]._c,t[o]._d,i=t[o]._e},clickAnchor:function(t,e){}},t[o].defaults[s]={fix:!0}}(jQuery),function(t){var e,i,n="mmenu",o="autoHeight";t[n].addons[o]={setup:function(){if(this.opts.offCanvas){var i=this.opts[o];if(this.conf[o],t[n].glbl,"boolean"==typeof i&&i&&(i={height:"auto"}),"string"==typeof i&&(i={height:i}),"object"!=typeof i&&(i={}),"auto"==(i=this.opts[o]=t.extend(!0,{},t[n].defaults[o],i)).height||"highest"==i.height){this.$menu.addClass(e.autoheight);var s=function(n){if(this.vars.opened){var o=parseInt(this.$pnls.css("top"),10)||0,s=parseInt(this.$pnls.css("bottom"),10)||0,a=0;this.$menu.addClass(e.measureheight),"auto"==i.height?((n=n||this.$pnls.children("."+e.current)).is("."+e.vertical)&&(n=n.parents("."+e.panel).not("."+e.vertical).first()),a=n.outerHeight()):"highest"==i.height&&this.$pnls.children().each(function(){var i=t(this);i.is("."+e.vertical)&&(i=i.parents("."+e.panel).not("."+e.vertical).first()),a=Math.max(a,i.outerHeight())}),this.$menu.height(a+o+s).removeClass(e.measureheight)}};this.bind("opening",s),"highest"==i.height&&this.bind("init",s),"auto"==i.height&&(this.bind("update",s),this.bind("openPanel",s),this.bind("closePanel",s))}}},add:function(){e=t[n]._c,t[n]._d,i=t[n]._e,e.add("autoheight measureheight"),i.add("resize")},clickAnchor:function(t,e){}},t[n].defaults[o]={height:"default"}}(jQuery),function(t){var e,i,n="mmenu",o="backButton";t[n].addons[o]={setup:function(){if(this.opts.offCanvas){var s=this,a=this.opts[o];if(this.conf[o],i=t[n].glbl,"boolean"==typeof a&&(a={close:a}),"object"!=typeof a&&(a={}),(a=t.extend(!0,{},t[n].defaults[o],a)).close){var r="#"+s.$menu.attr("id");this.bind("opened",function(t){location.hash!=r&&history.pushState(null,document.title,r)}),t(window).on("popstate",function(t){i.$html.hasClass(e.opened)?(t.stopPropagation(),s.close()):location.hash==r&&(t.stopPropagation(),s.open())})}}},add:function(){return window.history&&window.history.pushState?(e=t[n]._c,t[n]._d,void t[n]._e):void(t[n].addons[o].setup=function(){})},clickAnchor:function(t,e){}},t[n].defaults[o]={close:!1}}(jQuery),function(t){var e,i,n="mmenu",o="columns";t[n].addons[o]={setup:function(){var s=this.opts[o];if(this.conf[o],i=t[n].glbl,"boolean"==typeof s&&(s={add:s}),"number"==typeof s&&(s={add:!0,visible:s}),"object"!=typeof s&&(s={}),"number"==typeof s.visible&&(s.visible={min:s.visible,max:s.visible}),(s=this.opts[o]=t.extend(!0,{},t[n].defaults[o],s)).add){s.visible.min=Math.max(1,Math.min(6,s.visible.min)),s.visible.max=Math.max(s.visible.min,Math.min(6,s.visible.max)),this.$menu.addClass(e.columns);for(var a=this.opts.offCanvas?this.$menu.add(i.$html):this.$menu,r=[],l=0;l<=s.visible.max;l++)r.push(e.columns+"-"+l);r=r.join(" ");var h=function(){var t=this.$pnls.children("."+e.panel).filter("."+e.opened).length;t=Math.min(s.visible.max,Math.max(s.visible.min,t)),a.removeClass(r).addClass(e.columns+"-"+t)},c=function(i){this.$pnls.children("."+e.panel).removeClass(r).filter("."+e.subopened).removeClass(e.hidden).add(i).slice(-s.visible.max).each(function(i){t(this).addClass(e.columns+"-"+i)})};this.bind("open",h),this.bind("close",function(){this.opts.offCanvas&&i.$html.removeClass(r)}),this.bind("init",function(t){c.call(this,this.$pnls.children("."+e.current)),s.hideNavbars&&t.removeClass(e.hasnavbar)}),this.bind("openPanel",c),this.bind("openingPanel",h),this.bind("openedPanel",h),this.opts.offCanvas||h.call(this)}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("columns")},clickAnchor:function(i,n){if(!this.opts[o].add)return!1;if(n){var s=i.attr("href");if(s.length>
11&&"#"==s.slice(0,1))try{if(t(s,this.$menu).is("."+e.panel))for(var a=parseInt(i.closest("."+e.panel).attr("class").split(e.columns+"-")[1].split(" ")[0],10)+1;!1!==a;){var r=this.$pnls.children("."+e.columns+"-"+a);if(!r.length){a=!1;break}a++,r.removeClass(e.subopened).removeClass(e.opened).removeClass(e.current).removeClass(e.highest).addClass(e.hidden)}}catch(t){}}}},t[n].defaults[o]={add:!1,visible:{min:1,max:3},hideNavbars:!1}}(jQuery),function(t){var e,i,n="mmenu",o="counters";t[n].addons[o]={setup:function(){var s=this,a=this.opts[o];this.conf[o],t[n].glbl,"boolean"==typeof a&&(a={add:a,update:a}),"object"!=typeof a&&(a={}),a=this.opts[o]=t.extend(!0,{},t[n].defaults[o],a),this.bind("init",function(e){this.__refactorClass(t("em",e),this.conf.classNames[o].counter,"counter")}),a.add&&this.bind("init",function(n){var o;("panels"===a.addTo?n:n.filter(a.addTo)).each(function(){var n=t(this).data(i.parent);n&&(n.children("em."+e.counter).length||n.prepend(t('<em class="'+e.counter+'" />')))})}),a.update&&this.bind("update",function(){this.$pnls.children("."+e.panel).each(function(){var n=t(this),o=n.data(i.parent);if(o){var a=o.children("em."+e.counter);a.length&&(n=n.children("."+e.listview)).length&&a.html(s.__filterListItems(n.children()).length)}})})},add:function(){e=t[n]._c,i=t[n]._d,t[n]._e,e.add("counter search noresultsmsg")},clickAnchor:function(t,e){}},t[n].defaults[o]={add:!1,addTo:"panels",update:!1},t[n].configuration.classNames[o]={counter:"Counter"}}(jQuery),function(t){var e,i,n="mmenu",o="dividers";t[n].addons[o]={setup:function(){var s=this,a=this.opts[o];if(this.conf[o],t[n].glbl,"boolean"==typeof a&&(a={add:a,fixed:a}),"object"!=typeof a&&(a={}),a=this.opts[o]=t.extend(!0,{},t[n].defaults[o],a),this.bind("init",function(e){this.__refactorClass(t("li",this.$menu),this.conf.classNames[o].collapsed,"collapsed")}),a.add&&this.bind("init",function(i){var n;n="panels"===a.addTo?i:i.filter(a.addTo),t("."+e.divider,n).remove(),n.find("."+e.listview).not("."+e.vertical).each(function(){var i="";s.__filterListItems(t(this).children()).each(function(){var n=t.trim(t(this).children("a, span").text()).slice(0,1).toLowerCase();n!=i&&n.length&&(i=n,t('<li class="'+e.divider+'">'+n+"</li>").insertBefore(this))})})}),a.collapse&&this.bind("init",function(i){t("."+e.divider,i).each(function(){var i=t(this);i.nextUntil("."+e.divider,"."+e.collapsed).length&&(i.children("."+e.subopen).length||(i.wrapInner("<span />"),i.prepend('<a href="#" class="'+e.subopen+" "+e.fullsubopen+'" />')))})}),a.fixed){var r=function(i){if((i=i||this.$pnls.children("."+e.current)).find("."+e.divider).not("."+e.hidden).length){this.$menu.addClass(e.hasdividers);var n=i.scrollTop()||0,o="";i.is(":visible")&&i.find("."+e.divider).not("."+e.hidden).each(function(){t(this).position().top+n<n+1&&(o=t(this).text())}),this.$fixeddivider.text(o)}else this.$menu.removeClass(e.hasdividers)};this.$fixeddivider=t('<ul class="'+e.listview+" "+e.fixeddivider+'"><li class="'+e.divider+'"></li></ul>').prependTo(this.$pnls).children(),this.bind("openPanel",r),this.bind("update",r),this.bind("init",function(e){e.off(i.scroll+"-dividers "+i.touchmove+"-dividers").on(i.scroll+"-dividers "+i.touchmove+"-dividers",function(e){r.call(s,t(this))})})}},add:function(){e=t[n]._c,t[n]._d,i=t[n]._e,e.add("collapsed uncollapsed fixeddivider hasdividers"),i.add("scroll")},clickAnchor:function(t,i){if(this.opts[o].collapse&&i){var n=t.parent();if(n.is("."+e.divider)){var s=n.nextUntil("."+e.divider,"."+e.collapsed);return n.toggleClass(e.opened),s[n.hasClass(e.opened)?"addClass":"removeClass"](e.uncollapsed),!0}}return!1}},t[n].defaults[o]={add:!1,addTo:"panels",fixed:!1,collapse:!1},t[n].configuration.classNames[o]={collapsed:"Collapsed"}}(jQuery),function(t){function e(t,e,i){return e>t&&(t=e),t>i&&(t=i),t}var i,n,o="mmenu",s="dragOpen";t[o].addons[s]={setup:function(){if(this.opts.offCanvas){var a=this,r=this.opts[s],l=this.conf[s];if(n=t[o].glbl,"boolean"==typeof r&&(r={open:r}),"object"!=typeof r&&(r={}),(r=this.opts[s]=t.extend(!0,{},t[o].defaults[s],r)).open){var h,c,d,u,p,f={},m=0,g=!1,v=!1,_=0,y=0;switch(this.opts.offCanvas.position){case"left":case"right":f.events="panleft panright",f.typeLower="x",f.typeUpper="X",v="width";break;case"top":case"bottom":f.events="panup pandown",f.typeLower="y",f.typeUpper="Y",v="height"}switch(this.opts.offCanvas.position){case"right":case"bottom":f.
1negative=!0,u=function(t){t>=n.$wndw[v]()-r.maxStartPos&&(m=1)};break;default:f.negative=!1,u=function(t){t<=r.maxStartPos&&(m=1)}}switch(this.opts.offCanvas.position){case"left":f.open_dir="right",f.close_dir="left";break;case"right":f.open_dir="left",f.close_dir="right";break;case"top":f.open_dir="down",f.close_dir="up";break;case"bottom":f.open_dir="up",f.close_dir="down"}p="front"===this.opts.offCanvas.zposition?function(){return this.$menu}:function(){return t("."+i.slideout)};var b=this.__valueOrFn(r.pageNode,this.$menu,n.$page);"string"==typeof b&&(b=t(b)),new Hammer(b[0],r.vendors.hammer).on("panstart",function(t){u(t.center[f.typeLower]),n.$slideOutNodes=p(),g=f.open_dir}).on(f.events+" panend",function(t){m>0&&t.preventDefault()}).on(f.events,function(t){if(h=t["delta"+f.typeUpper],f.negative&&(h=-h),h!=_&&(g=h>=_?f.open_dir:f.close_dir),(_=h)>r.threshold&&1==m){if(n.$html.hasClass(i.opened))return;m=2,a._openSetup(),a.trigger("opening"),n.$html.addClass(i.dragging),y=e(n.$wndw[v]()*l[v].perc,l[v].min,l[v].max)}2==m&&(c=e(_,10,y)-("front"==a.opts.offCanvas.zposition?y:0),f.negative&&(c=-c),d="translate"+f.typeUpper+"("+c+"px )",n.$slideOutNodes.css({"-webkit-transform":"-webkit-"+d,transform:d}))}).on("panend",function(t){2==m&&(n.$html.removeClass(i.dragging),n.$slideOutNodes.css("transform",""),a[g==f.open_dir?"_openFinish":"close"]()),m=0})}}},add:function(){return"function"!=typeof Hammer||Hammer.VERSION<2?void(t[o].addons[s].setup=function(){}):(i=t[o]._c,t[o]._d,t[o]._e,void i.add("dragging"))},clickAnchor:function(t,e){}},t[o].defaults[s]={open:!1,maxStartPos:100,threshold:50,vendors:{hammer:{}}},t[o].configuration[s]={width:{perc:.8,min:140,max:440},height:{perc:.8,min:140,max:880}}}(jQuery),function(t){var e,i,n,o,s="mmenu",a="dropdown";t[s].addons[a]={setup:function(){if(this.opts.offCanvas){var r=this,l=this.opts[a],h=this.conf[a
1];if(o=t[s].glbl,"boolean"==typeof l&&l&&(l={drop:l}),"object"!=typeof l&&(l={}),"string"==typeof l.position&&(l.position={of:l.position}),(l=this.opts[a]=t.extend(!0,{},t[s].defaults[a],l)).drop){if("string"!=typeof l.position.of){var c=this.$menu.attr("id");c&&c.length&&(this.conf.clone&&(c=e.umm(c)),l.position.of='[href="#'+c+'"]')}if("string"==typeof l.position.of){var d=t(l.position.of);if(d.length){this.$menu.addClass(e.dropdown),l.tip&&this.$menu.addClass(e.tip),l.event=l.event.split(" "),1==l.event.length&&(l.event[1]=l.event[0]),"hover"==l.event[0]&&d.on(n.mouseenter+"-dropdown",function(){r.open()}),"hover"==l.event[1]&&this.$menu.on(n.mouseleave+"-dropdown",function(){r.close()}),this.bind("opening",function(){this.$menu.data(i.style,this.$menu.attr("style")||""),o.$html.addClass(e.dropdown)}),this.bind("closed",function(){this.$menu.attr("style",this.$menu.data(i.style)),o.$html.removeClass(e.dropdown)});var u=function(i,n){var r,c,u=n[0],p=n[1],f="x"==i?"left":"top",m="x"==i?"right":"bottom",g="x"==i?"width":"height",v=null,_=o.$wndw["x"==i?"scrollLeft":"scrollTop"](),y=d.offset()[f]-=_,b=y+d["x"==i?"outerWidth":"outerHeight"](),w=o.$wndw[g](),x=h.offset.button[i]+h.offset.viewport[i];if(l.position[i])switch(l.position[i]){case"left":case"bottom":v="after";break;case"right":case"top":v="before"}return null===v&&(v=w/2>y+(b-y)/2?"after":"before"),"after"==v?(c=w-((r="x"==i?y:b)+x),u[f]=r+h.offset.button[i],u[m]="auto",p.push(e["x"==i?"tipleft":"tiptop"])):(c=(r="x"==i?b:y)-x,u[m]="calc( 100% - "+(r-h.offset.button[i])+"px )",u[f]="auto",p.push(e["x"==i?"tipright":"tipbottom"])),u["x"==i?"maxWidth":"maxHeight"]=Math.min(t[s].configuration[a][g].max,c),[u,p]},p=function(t){if(this.vars.opened){this.$menu.attr("style",this.$menu.data(i.style));var n=[{},[]];n=u.call(this,"y",n),n=u.call(this,"x",n),this.$menu.css(n[0]),l.tip&&this.$menu.removeClass(e.tipleft+" "+e.tipright+" "+e.tiptop+" "+e.tipbottom).addClass(n[1].join(" "))}};this.bind("opening",p),o.$wndw.on(n.resize+"-dropdown",function(t){p.call(r)}),this.opts.offCanvas.blockUI||o.$wndw.on(n.scroll+"-dropdown",function(t){p.call(r)})}}}}},add:function(){e=t[s]._c,i=t[s]._d,n=t[s]._e,e.add("dropdown tip tipleft tipright tiptop tipbottom"),n.add("mouseenter mouseleave resize scroll")},clickAnchor:function(t,e){}},t[s].defaults[a]={drop:!1,event:"click",position:{},tip:!0},t[s].configuration[a]={offset:{button:{x:-10,y:10},viewport:{x:20,y:20}},height:{max:880},width:{max:440}}}(jQuery),function(t){var e,i,n="mmenu",o="fixedElements";t[n].addons[o]={setup:function(){if(this.opts.offCanvas){var e=this.opts[o];this.conf[o],i=t[n].glbl,e=this.opts[o]=t.extend(!0,{},t[n].defaults[o],e);var s=function(t){var e=this.conf.classNames[o].fixed;this.__refactorClass(t.find("."+e),e,"slideout").appendTo(i.$body)};s.call(this,i.$page),this.bind("setPage",s)}},add:function(){e=t[n]._c,t[n]._d,t[n]._e,e.add("fixed")},clickAnchor:function(t,e){}},t[n].configuration.classNames[o]={fixed:"Fixed"}}(jQuery),function(t){var e,i="mmenu",n="iconPanels";t[i].addons[n]={setup:function(){var o=this,s=this.opts[n];if(this.conf[n],t[i].glbl,"boolean"==typeof s&&(s={add:s}),"number"==typeof s&&(s={add:!0,visible:s}),"object"!=typeof s&&(s={}),s=this.opts[n]=t.extend(!0,{},t[i].defaults[n],s),s.visible++,s.add){this.$menu.addClass(e.iconpanel);for(var a=[],r=0;r<=s.visible;r++)a.push(e.iconpanel+"-"+r);a=a.join(" ");var l=function(i){i.hasClass(e.vertical)||o.$pnls.children("."+e.panel).removeClass(a).filter("."+e.subopened).removeClass(e.hidden).add(i).not("."+e.vertical).slice(-s.visible).each(function(i){t(this).addClass(e.iconpanel+"-"+i)})};this.bind("openPanel",l),this.bind("init",function(i){l.call(o,o.$pnls.children("."+e.current)),s.hideNavbars&&i.removeClass(e.hasnavbar),i.not("."+e.vertical).each(function(){t(this).children("."+e.subblocker).length||t(this).prepend('<a href="#'+t(this).closest("."+e.panel).attr("id")+'" class="'+e.subblocker+'" />')})})}},add:function(){e=t[i]._c,t[i]._d,t[i]._e,e.add("iconpanel subblocker")},clickAnchor:function(t,e){}},t[i].defaults[n]={add:!1,visible:3,hideNavbars:!1}}(jQuery),function(t){var e,i="mmenu",n="navbars";t[i].addons[n]={setup:function(){var o=this,s=this.opts[n],a=this.conf[n];if(t[i].glbl,void 0!==s){s instanceof Array||(s=[s]);var r={};for(var l in t.each(s,function(l){var h=s[l];"boolean"==typeof h&&h&&(h={}),"object"!=typeof h&&(h={}
1),void 0===h.content&&(h.content=["prev","title"]),h.content instanceof Array||(h.content=[h.content]);var c=(h=t.extend(!0,{},o.opts.navbar,h)).position,d=h.height;"number"!=typeof d&&(d=1),d=Math.min(4,Math.max(1,d)),"bottom"!=c&&(c="top"),r[c]||(r[c]=0),r[c]++;var u=t("<div />").addClass(e.navbar+" "+e.navbar+"-"+c+" "+e.navbar+"-"+c+"-"+r[c]+" "+e.navbar+"-size-"+d);r[c]+=d-1;for(var p=0,f=0,m=h.content.length;m>f;f++){var g=t[i].addons[n][h.content[f]]||!1;g?p+=g.call(o,u,h,a):((g=h.content[f])instanceof t||(g=t(h.content[f])),u.append(g))}(p+=Math.ceil(u.children().not("."+e.btn).not("."+e.title+"-prev").length/d))>1&&u.addClass(e.navbar+"-content-"+p),u.children("."+e.btn).length&&u.addClass(e.hasbtns),u.prependTo(o.$menu)}),r)o.$menu.addClass(e.hasnavbar+"-"+l+"-"+r[l])}},add:function(){e=t[i]._c,t[i]._d,t[i]._e,e.add("close hasbtns")},clickAnchor:function(t,e){}},t[i].configuration[n]={breadcrumbSeparator:"/"},t[i].configuration.classNames[n]={}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.breadcrumbs=function(i,n,o){var s=t[e]._c,a=t[e]._d;s.add("breadcrumbs separator");var r=t('<span class="'+s.breadcrumbs+'" />').appendTo(i);this.bind("init",function(e){e.removeClass(s.hasnavbar).each(function(){for(var e=[],i=t(this),n=t('<span class="'+s.breadcrumbs+'"></span>'),r=t(this).children().first(),l=!0;r&&r.length;){r.is("."+s.panel)||(r=r.closest("."+s.panel));var h=r.children("."+s.navbar).children("."+s.title).text();e.unshift(l?"<span>"+h+"</span>":'<a href="#'+r.attr("id")+'">'+h+"</a>"),l=!1,r=r.data(a.parent)}n.append(e.join('<span class="'+s.separator+'">'+o.breadcrumbSeparator+"</span>")).appendTo(i.children("."+s.navbar))})});var l=function(){r.html(this.$pnls.children("."+s.current).children("."+s.navbar).children("."+s.breadcrumbs).html())};return this.bind("openPanel",l),this.bind("init",l),0}}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.close=function(i,n){var o=t[e]._c,s=t[e].glbl,a=t('<a class="'+o.close+" "+o.btn+'" href="#" />').appendTo(i),r=function(t){a.attr("href","#"+t.attr("id"))};return r.call(this,s.$page),this.bind("setPage",r),-1}}(jQuery),function(t){var e="mmenu",i="navbars";t[e].addons[i].next=function(n,o){var s,a,r=t[e]._c,l=t('<a class="'+r.next+" "+r.btn+'" href="#" />').appendTo(n),h=function(t){var e=(t=t||this.$pnls.children("."+r.current)).find("."+this.conf.classNames[i].panelNext);s=e.attr("href"),a=e.html(),l[s?"attr":"removeAttr"]("href",s),l[s||a?"removeClass":"addClass"](r.hidden),l.html(a)};return this.bind("openPanel",h),this.bind("init",function(){h.call(this)}),-1},t[e].configuration.classNames[i].panelNext="Next"}(jQuery),function(t){var e="mmenu",i="navbars";t[e].addons[i].prev=function(n,o){var s=t[e]._c,a=t('<a class="'+s.prev+" "+s.btn+'" href="#" />').appendTo(n);this.bind("init",function(t){t.removeClass(s.hasnavbar).children("."+s.navbar).addClass(s.hidden)});var r,l,h=function(t){if(!(t=t||this.$pnls.children("."+s.current)).hasClass(s.vertical)){var e=t.find("."+this.conf.classNames[i].panelPrev);e.length||(e=t.children("."+s.navbar).children("."+s.prev)),r=e.attr("href"),l=e.html(),a[r?"attr":"removeAttr"]("href",r),a[r||l?"removeClass":"addClass"](s.hidden),a.html(l)}};return this.bind("openPanel",h),this.bind("init",function(){h.call(this)}),-1},t[e].configuration.classNames[i].panelPrev="Prev"}(jQuery),function(t){var e="mmenu";t[e].addons.navbars.searchfield=function(i,n){var o=t[e]._c,s=t('<div class="'+o.search+'" />').appendTo(i);return"object"!=typeof this.opts.searchfield&&(this.opts.searchfield={}),this.opts.searchfield.add=!0,this.opts.searchfield.addTo=s,0}}(jQuery),function(t){var e="mmenu",i="navbars";t[e].addons[i].title=function(n,o){var s,a,r=t[e]._c,l=t('<a class="'+r.title+'" />').appendTo(n),h=function(t){if(!(t=t||this.$pnls.children("."+r.current)).hasClass(r.vertical)){var e=t.find("."+this.conf.classNames[i].panelTitle);e.length||(e=t.children("."+r.navbar).children("."+r.title)),s=e.attr("href"),a=e.html()||o.title,l[s?"attr":"removeAttr"]("href",s),l[s||a?"removeClass":"addClass"](r.hidden),l.html(a)}};return this.bind("openPanel",h),this.bind("init",function(t){h.call(this)}),0},t[e].configuration.classNames[i].panelTitle="Title"}(jQuery),function(t){function e(t,e,i){t.prop("aria-"+e,i)[i?"attr":"removeAttr"]("aria-"+e,"true")}function i(t){return'<span class="'+n.sronly+'">'+t+"</span>"}var n,o="mmenu",s="screenReader";t[o].addons[s]={setup:function(){var a=this.opts[s],r=this.conf[s];if(t[o].glbl,"boolean"==typeof a&&(a={aria:a,text:a}),"object"!=typeof a&&(a={}),(a=this.opts[s]=t.extend(!0,{},t[o].defaults[s],a)).aria){if(this.opts.offCanvas){var l=function(){e(this.$menu,"hidden",!0)};this.bind("open",function(){e(this.$menu,"hidden",!1)}),this.bind("close",l),l.call(this)}var h=function(){e(this.$menu.find("."+n.hidden),"hidden",!0),e(this.$menu.find('[aria-hidden="true"]').not("."+n.hidden),"hidden",!1)};this.bind("update",h),this.bind("openPanel",h),this.bind("openPanel",function(t){e(this.$pnls.children("."+n.panel).not(t).not("."+n.hidden),"hidden",!0),e(t,"hidden",!1)});var c=function(t){e(t.find("."+n.prev+", ."+n.next),"haspopup",!0)};this.bind("init",c),c.call(this,this.$menu.children("."+n.navbar))}if(a.text){var d=function(e){e.children("."+n.navbar).children("."+n.prev).html(i(r.text.closeSubmenu)).end().children("."+n.next).html(i(r.text.openSubmenu)).end().children("."+n.close).html(i(r.text.closeMenu)),e.is("."+n.panel)&&e.find("."+n.listview).find("."+n.next).each(function(){t(this).html(i(r.text[t(this).parent().is("."+n.vertical)?"toggleSubmenu":"openSubmenu"]))})};this.bind("init",d),d.call(this,this.$menu)}},add:function(){n=t[o]._c,t[o]._d,t[o]._e,n.add("sronly")},clickAnchor:function(t,e){}},t[o].defaults[s]={aria:!1,text:!1},t[o].configuration[s]={text:{closeMenu:"Close menu",closeSubmenu:"Close submenu",openSubmenu:"Open submenu",toggleSubmenu:"Toggle submenu"}}}(jQuery),function(t){var e,i,n,o="mmenu",s="searchfield";t[o].addons[s]={setup:function(){var a=this,r=this.opts[s],l=this.conf[s];t[o].glbl,"boolean"==typeof r&&(r={add:r}),"object"!=typeof r&&(r={}),"boolean"==typeof r.resultsPanel&&(r.resultsPanel={add:r.resultsPanel}),r=this.opts[s]=t.extend(!0,{},t[o].defaults[s],r),l=this.conf[s]=t.extend(!0,{},t[o].configuration[s],l),this.bind("close",function(){this.$menu.find("."+e.search).find("input").blur()}
1),this.bind("init",function(o){if(r.add){var h;if(("panels"===r.addTo?o:this.$menu.find(r.addTo)).each(function(){var i=t(this);if(!i.is("."+e.panel)||!i.is("."+e.vertical)){if(!i.children("."+e.search).length){var o,s=a.__valueOrFn(l.clear,i),h=a.__valueOrFn(l.form,i),c=a.__valueOrFn(l.input,i),d=a.__valueOrFn(l.submit,i),u=t("<"+(h?"form":"div")+' class="'+e.search+'" />'),p=t('<input placeholder="'+r.placeholder+'" type="text" autocomplete="off" />');if(u.append(p),c)for(o in c)p.attr(o,c[o]);if(s&&t('<a class="'+e.btn+" "+e.clear+'" href="#" />').appendTo(u).on(n.click+"-searchfield",function(t){t.preventDefault(),p.val("").trigger(n.keyup+"-searchfield")}),h){for(o in h)u.attr(o,h[o]);d&&!s&&t('<a class="'+e.btn+" "+e.next+'" href="#" />').appendTo(u).on(n.click+"-searchfield",function(t){t.preventDefault(),u.submit()})}i.hasClass(e.search)?i.replaceWith(u):i.prepend(u).addClass(e.hassearch)}if(r.noResults&&(i.closest("."+e.panel).length||(i=a.$pnls.children("."+e.panel).first()),!i.children("."+e.noresultsmsg).length)){var f=i.children("."+e.listview).first();t('<div class="'+e.noresultsmsg+" "+e.hidden+'" />').append(r.noResults)[f.length?"insertAfter":"prependTo"](f.length?f:i)}}}),r.search){if(r.resultsPanel.add){r.showSubPanels=!1;var c=this.$pnls.children("."+e.resultspanel);c.length||(c=t('<div class="'+e.panel+" "+e.resultspanel+" "+e.hidden+'" />').appendTo(this.$pnls).append('<div class="'+e.navbar+" "+e.hidden+'"><a class="'+e.title+'">'+r.resultsPanel.title+"</a></div>").append('<ul class="'+e.listview+'" />').append(this.$pnls.find("."+e.noresultsmsg).first().clone()),this.init(c))}this.$menu.find("."+e.search).each(function(){var o,l,h=t(this),d=h.closest("."+e.panel).length;d?l=o=h.closest("."+e.panel):(o=t("."+e.panel,a.$menu),l=a.$menu),r.resultsPanel.add&&(o=o.not(c));var u=h.children("input"),p=a.__findAddBack(o,"."+e.listview).children("li"),f=p.filter("."+e.divider),m=a.__filterListItems(p),g="",v=function(){var n=u.val().toLowerCase();if(n!=g){if(g=n,r.resultsPanel.add&&c.children("."+e.listview).empty(),o.scrollTop(0),m.add(f).addClass(e.hidden).find("."+e.fullsubopensearch).removeClass(e.fullsubopen+" "+e.fullsubopensearch),m.each(function(){var n=t(this),o="a";(r.showTextItems||r.showSubPanels&&n.find("."+e.next))&&(o="a, span"),(n.data(i.searchtext)||n.children(o).text()).toLowerCase().indexOf(g)>-1&&n.add(n.prevAll("."+e.divider).first()).removeClass(e.hidden)}),r.showSubPanels&&o.each(function(n){var o=t(this);a.__filterListItems(o.find("."+e.listview).children()).each(function(){var n=t(this),o=n.data(i.sub);n.removeClass(e.nosubresults),o&&o.find("."+e.listview).children().removeClass(e.hidden)})}),r.resultsPanel.add){if(""===g)this.closeAllPanels(),this.openPanel(this.$pnls.children("."+e.subopened).last());else{var s=t();o.each(function(){var i=a.__filterListItems(t(this).find("."+e.listview).children()).not("."+e.hidden).clone(!0);i.length&&(r.resultsPanel.dividers&&(s=s.add('<li class="'+e.divider+'">'+t(this).children("."+e.navbar).text()+"</li>")),s=s.add(i))}),s.find("."+e.next).remove(),c.children("."+e.listview).append(s),this.openPanel(c)}}else t(o.get().reverse()).each(function(n){var o=t(this),s=o.data(i.parent);s&&(a.__filterListItems(o.find("."+e.listview).children()).length?(s.hasClass(e.hidden)&&s.children("."+e.next).not("."+e.fullsubopen).addClass(e.fullsubopen).addClass(e.fullsubopensearch),s.removeClass(e.hidden).removeClass(e.nosubresults).prevAll("."+e.divider).first().removeClass(e.hidden)):d||(o.hasClass(e.opened)&&setTimeout(function(){a.openPanel(s.closest("."+e.panel))},(n+1)*(1.5*a.conf.openingInterval)),s.addClass(e.nosubresults)))});l.find("."+e.noresultsmsg)[m.not("."+e.hidden).length?"addClass":"removeClass"](e.hidden),this.update()}};u.off(n.keyup+"-"+s+" "+n.change+"-"+s).on(n.keyup+"-"+s,function(t){(function(t){switch(t){case 9:case 16:case 17:case 18:case 37:case 38:case 39:case 40:return!0}return!1})(t.keyCode)||v.call(a)}).on(n.change+"-"+s,function(t){v.call(a)});var _=h.children("."+e.btn);_.length&&u.on(n.keyup+"-"+s,function(t){_[u.val().length?"removeClass":"addClass"](e.hidden)}),u.trigger(n.keyup+"-"+s)})}}})},add:function(){e=t[o]._c,i=t[o]._d,n=t[o]._e,e.add("clear search hassearch resultspanel noresultsmsg noresults nosubresults fullsubopensearch"),i.add("searchtext"),n.add("change keyup")},clickAnchor:function(t,e){}},t[o].defaults[s]={add:!1,addTo:"panels",placeholder:"Search",noResults:"No results found.",resultsPanel:{add:!1,dividers:!0,title:"Search results"},search:!0,showTextItems:!1,showSubPanels:!0},t[o].configuration[s]={clear:!1,form:!1,input:!1,submit:!1}}(jQuery),function(t){var e,i,n="mmenu",o="sectionIndexer";t[n].addons[o]={setup:function(){var s=this,a=this.opts[o];this.conf[o],t[n].glbl,"boolean"==typeof a&&(a={add:a}),"object"!=typeof a&&(a={}),a=this.opts[o]=t.extend(!0,{},t[n].defaults[o],a),this.bind("init",function(n){if(a.add){var o;("panels"===a.addTo?n:t(a.addTo,this.$menu).filter("."+e.panel)).find("."+e.divider).closest("."+e.panel).addClass(e.hasindexer)}if(!this.$indexer&&this.$pnls.children("."+e.hasindexer).length){this.$indexer=t('<div class="'+e.indexer+'" />').prependTo(this.$pnls).append('<a href="#a">a</a><a href="#b">b</a><a href="#c">c</a><a href="#d">d</a><a href="#e">e</a><a href="#f">f</a><a href="#g">g</a><a href="#h">h</a><a href="#i">i</a><a href="#j">j</a><a href="#k">k</a><a href="#l">l</a><a href="#m">m</a><a href="#n">n</a><a href="#o">o</a><a href="#p">p</a><a href="#q">q</a><a href="#r">r</a><a href="#s">s</a><a href="#t">t</a><a href="#u">u</a><a href="#v">v</a><a href="#w">w</a><a href="#x">x</a><a href="#y">y</a><a href="#z">z</a>'),this.$indexer.children().on(i.mouseover+"-sectionindexer "+e.touchstart+"-sectionindexer",function(i){var n=t(this).attr("href").slice(1),o=s.$pnls.children("."+e.current),a=o.find("."+e.listview),r=!1,l=o.scrollTop();o.scrollTop(0),a.children("."+e.divider).not("."+e.hidden).each(function(){!1===r&&n==t(this).text().slice(0,1).toLowerCase()&&(r=t(this).position().top)}),o.scrollTop(!1!==r?r:l)});var r=function(t){s.$menu[(t.hasClass(e.hasindexer)?"add":"remove")+"Class"](e.hasindexer)};this.bind("openPanel",r),r.call(this,this.$pnls.children("."+e.current))}})},add:function(){e=t[n]._c,t[n]._d,i=t[n]._e,e.add("indexer hasindexer"),i.add("mouseover touchstart")},clickAnchor:function(t,i){return!!t.parent().is("."+e.indexer)||void 0}},t[n].defaults[o]={add:!1,addTo:"panels"}}(jQuery),function(t){var e,i,n="mmenu",o="setSelected";t[n].addons[o]={setup:function(){var s=this.opts[o];if(this.conf[o],t[n].glbl,"boolean"==typeof s&&(s={hover:s,parent:s}),"object"!=typeof s&&(s={}),(s=this.opts[o]=t.extend(!0,{},t[n].defaults[o],s)).current||this.bind("init",function(t){t.find("."+e.listview).children("."+e.selected).removeClass(e.selected)}),s.hover&&this.$menu.addClass(e.hoverselected),s.parent){this.$menu.addClass(e.parentselected);var a=function(t){this.$pnls.find("."+e.listview).find("."+e.next).removeClass(e.selected);for(var n=t.data(i.parent);n&&n.length;)n=n.children("."+e.next).addClass(e.selected).closest("."+e.panel).data(i.parent)};this.bind("openedPanel",a),this.bind("init",function(t){a.call(this,this.$pnls.children("."+e.current))})}},add:function(){e=t[n]._c,i=t[n]._d,t[n]._e,e.add("hoverselected parentselected")},clickAnchor:function(t,e){}},t[n].defaults[o]={current:!0,hover:!1,parent:!1}}(jQuery),function(t){var e,i="mmenu",n="toggles";t[i].addons[n]={setup:function(){var o=this;this.opts[n],this.conf[n],t[i].glbl,this.bind("init",function(i){this.__refactorClass(t("input",i),this.conf.classNames[n].toggle,"toggle"),this.__refactorClass(t("input",i),this.conf.classNames[n].check,"check"),t("input."+e.toggle+", input."+e.check,i).each(function(){var i=t(this),n=i.
1closest("li"),s=i.hasClass(e.toggle)?"toggle":"check",a=i.attr("id")||o.__getUniqueId();n.children('label[for="'+a+'"]').length||(i.attr("id",a),n.prepend(i),t('<label for="'+a+'" class="'+e[s]+'"></label>').insertBefore(n.children("a, span").last()))})})},add:function(){e=t[i]._c,t[i]._d,t[i]._e,e.add("toggle check")},clickAnchor:function(t,e){}},t[i].configuration.classNames[n]={toggle:"Toggle",check:"Check"}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=Array.prototype.slice,i=Array.prototype.splice,n={topSpacing:0,bottomSpacing:0,className:"is-sticky",wrapperClassName:"sticky-wrapper",center:!1,getWidthFrom:"",widthFromWrapper:!0,responsiveWidth:!1,zIndex:1e3},o=t(window),s=t(document),a=[],r=o.height(),l=function(){for(var e=o.scrollTop(),i=s.height(),n=i-r,l=e>n?n-e:0,h=0,c=a.length;h<c;h++){var d=a[h],u=d.stickyWrapper.offset().top-d.topSpacing-l;if(d.stickyWrapper.css("height",d.stickyElement.outerHeight()),e<=u)null!==d.currentTop&&(d.stickyElement.css({width:"",position:"",top:"","z-index":""}),d.stickyElement.parent().removeClass(d.className),d.stickyElement.trigger("sticky-end",[d]),d.currentTop=null);else{var p,f=i-d.stickyElement.outerHeight()-d.topSpacing-d.bottomSpacing-e-l;f<0?f+=d.topSpacing:f=d.topSpacing,d.currentTop!==f&&(d.getWidthFrom?p=t(d.getWidthFrom).width()||null:d.widthFromWrapper&&(p=d.stickyWrapper.width()),null==p&&(p=d.stickyElement.width()),d.stickyElement.css("width",p).css("position","fixed").css("top",f).css("z-index",d.zIndex),d.stickyElement.parent().addClass(d.className),null===d.currentTop?d.stickyElement.trigger("sticky-start",[d]):d.stickyElement.trigger("sticky-update",[d]),d.currentTop===d.topSpacing&&d.currentTop>f||null===d.currentTop&&f<d.topSpacing?d.stickyElement.trigger("sticky-bottom-reached",[d]):null!==d.currentTop&&f===d.topSpacing&&d.currentTop<f&&d.stickyElement.trigger("sticky-bottom-unreached",[d]),d.currentTop=f);var m=d.stickyWrapper.parent();d.stickyElement.offset().top+d.stickyElement.outerHeight()>=m.offset().top+m.outerHeight()&&d.stickyElement.offset().top<=d.topSpacing?d.stickyElement.css("position","absolute").css("top","").css("bottom",0).css("z-index",""):d.stickyElement.css("position","fixed").css("top",f).css("bottom","").css("z-index",d.zIndex)}}},h=function(){r=o.height();for(var e=0,i=a.length;e<i;e++){var n=a[e],s=null;n.getWidthFrom?n.responsiveWidth&&(s=t(n.getWidthFrom).width()):n.widthFromWrapper&&(s=n.stickyWrapper.width()),null!=s&&n.stickyElement.css("width",s)}},c={init:function(e){var i=t.extend({},n,e);return this.each(function(){var e=t(this),o=e.attr("id"),s=o?o+"-"+n.wrapperClassName:n.wrapperClassName,r=t("<div></div>").attr("id",s).addClass(i.wrapperClassName);e.wrapAll(function(){if(0==t(this).parent("#"+s).length)return r});var l=e.parent();i.center&&l.css({width:e.outerWidth(),marginLeft:"auto",marginRight:"auto"}),"right"===e.css("float")&&e.css({float:"none"}).parent().css({float:"right"}),i.stickyElement=e,i.stickyWrapper=l,i.currentTop=null,a.push(i),c.setWrapperHeight(this),c.setupChangeListeners(this)})},setWrapperHeight:function(e){var i=t(e),n=i.parent();n&&n.css("height",i.outerHeight())},setupChangeListeners:function(t){window.MutationObserver?new window.MutationObserver(function(e){(e[0].addedNodes.length||e[0].removedNodes.length)&&c.setWrapperHeight(t)}).observe(t,{subtree:!0,childList:!0}):window.addEventListener?(t.addEventListener("DOMNodeInserted",function(){c.setWrapperHeight(t)},!1),t.addEventListener("DOMNodeRemoved",function(){c.setWrapperHeight(t)},!1)):window.attachEvent&&(t.attachEvent("onDOMNodeInserted",function(){c.setWrapperHeight(t)}),t.attachEvent("onDOMNodeRemoved",function(){c.setWrapperHeight(t)}))},update:l,unstick:function(e){return this.each(function(){for(var e=t(this),n=-1,o=a.length;o-- >0;)a[o].stickyElement.get(0)===this&&(i.call(a,o,1),n=o);-1!==n&&(e.unwrap(),e.css({width:"",position:"",top:"",float:"","z-index":""}))})}};window.addEventListener?(window.addEventListener("scroll",l,!1),window.addEventListener("resize",h,!1)):window.attachEvent&&(window.attachEvent("onscroll",l),window.attachEvent("onresize",h)),t.fn.sticky=function(i){return c[i]?c[i].apply(this,e.call(arguments,1
1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.sticky"):c.init.apply(this,arguments)},t.fn.unstick=function(i){return c[i]?c[i].apply(this,e.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist on jQuery.sticky"):c.unstick.apply(this,arguments)},t(function(){setTimeout(l,0)})}),/*! jQuery UI - v1.12.1 - 2018-01-22 2* http://jqueryui.com 3* Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/resizable.js, widgets/selectable.js, widgets/sortable.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/selectmenu.js, widgets/slider.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js 4* Copyright jQuery Foundation and other contributors; Licensed MIT */function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){function e(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:""},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=i(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function i(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,n)}function n(){t.datepicker._isDisabledDatepicker(p.inline?p.dpDiv.parent()[0]:p.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function o(e,i){for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}function s(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t.ui=t.ui||{},t.ui.version="1.12.1";var a,r,l,h,c,d,u,p,f,m=0,g=Array.prototype.slice;t.cleanData=(a=t.cleanData,function(e){var i,n,o;for(o=0;null!=(n=e[o]);o++)try{(i=t._data(n,"events"))&&i.remove&&t(n).triggerHandler("remove")}catch(t){}a(e)}),t.widget=function(e,i,n){var o,s,a,r={},l=e.split(".")[0],h=l+"-"+(e=e.split(".")[1]);return n||(n=i,i=t.Widget),t.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr[":"][h.toLowerCase()]=function(e){return!!t.data(e,h)},t[l]=t[l]||{},o=t[l][e],s=t[l][e]=function(t,e){return this._createWidget?void(arguments.length&&this._createWidget(t,e)):new s(t,e)},t.extend(s,o,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(n,function(e,n){return t.isFunction(n)?void(r[e]=function(){function t(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,s=this._superApply;return this._super=t,this._superApply=o,e=n.apply(this,arguments),this._super=i,this._superApply=s,e}}()):void(r[e]=n)}),s.prototype=t.widget.extend(a,{widgetEventPrefix:o&&a.widgetEventPrefix||e},r,{constructor:s,namespace:l,widgetName:e,widgetFullName:h}),o?(t.each(o._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,s,i._proto)}),delete o._childConstructors):i._childConstructors.push(s),t.widget.bridge(e,s),s}
vendor: 4,235 bytes, line 4
4,t.widget.extend=function(e){for(var i,n,o=g.call(arguments,1),s=0,a=o.length;a>s;s++)for(i in o[s])n=o[s][i],o[s].hasOwnProperty(i)&&void 0!==n&&(e[i]=t.isPlainObject(n)?t.isPlainObject(e[i])?t.widget.extend({},e[i],n):t.widget.extend({},n):n);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(o){var s="string"==typeof o,a=g.call(arguments,1),r=this;return s?this.length||"instance"!==o?this.each(function(){var i,s=t.data(this,n);return"instance"===o?(r=s,!1):s?t.isFunction(s[o])&&"_"!==o.charAt(0)?(i=s[o].apply(s,a))!==s&&void 0!==i?(r=i&&i.jquery?r.pushStack(i.get()):i,!1):void 0:t.error("no such method '"+o+"' for "+e+" widget instance"):t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+o+"'")}):r=void 0:(a.length&&(o=t.widget.extend.apply(null,[o].concat(a))),this.each(function(){var e=t.data(this,n);e?(e.option(o||{}),e._init&&e._init()):t.data(this,n,new i(o,this))})),r}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=m++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,o,s,a=e;if(0==arguments.length)return t.widget.extend({},this.options);if("string"==typeof e){if(a={},e=(n=e.split(".")).shift(),n.length){for(o=a[e]=t.widget.extend({},this.options[e]),s=0;n.length-1>s;s++)o[n[s]]=o[n[s]]||{},o=o[n[s]];if(e=n.pop(),1==arguments.length)return void 0===o[e]?null:o[e];o[e]=i}else{if(1==arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,n,o;for(i in e)o=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&o&&o.length&&(n=t(o.get()),this._removeClass(o,i),n.addClass(this._classes({element:n,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){function i(i,s){var a,r;for(r=0;i.length>r;r++)a=o.classesElementLookup[i[r]]||t(),a=e.add?t(t.unique(a.get().concat(e.element.get()))):t(a.not(e.element).get()),o.classesElementLookup[i[r]]=a,n.push(i[r]),s&&e.classes[i[r]]&&n.push(e.classes[i[r]])}var n=[],o=this;return e=t.extend({element:this.element,classes:this.options.classes||{}},e),this._on(e.element,{remove:"_untrackClassesElement"}),e.keys&&i(e.keys.match(/\S+/g)||[],!0),e.extra&&i(e.extra.match(/\S+/g)||[]),n.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(n,o){-1!==t.inArray(e.target,o)&&(i.classesElementLookup[n]=t(o.not(e.target).get()))})}
vendor: 6,667 bytes, line 4
4,_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i;var o="string"==typeof t||null===t,s={extra:o?e:i,keys:o?t:e,element:o?this.element:t,add:n};return s.element.toggleClass(this._classes(s),n),this},_on:function(e,i,n){var o,s=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=o=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,o=this.widget()),t.each(n,function(n,a){function r(){return e||!0!==s.options.disabled&&!t(this).hasClass("ui-state-disabled")?("string"==typeof a?s[a]:a).apply(s,arguments):void 0}"string"!=typeof a&&(r.guid=a.guid=a.guid||r.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),h=l[1]+s.eventNamespace,c=l[2];c?o.on(h,c,r):i.on(h,r)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i).off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var o,s,a=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],s=i.originalEvent)for(o in s)o in i||(i[o]=s[o]);return this.element.trigger(i,n),!(t.isFunction(a)&&!1===a.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,o,s){"string"==typeof o&&(o={effect:o});var a,r=o?!0===o||"number"==typeof o?i:o.effect||i:e;"number"==typeof(o=o||{})&&(o={duration:o}),a=!t.isEmptyObject(o),o.complete=s,o.delay&&n.delay(o.delay),a&&t.effects&&t.effects.effect[r]?n[e](o):r!==e&&n[r]?n[r](o.duration,o.easing,s):n.queue(function(i){t(this)[e](),s&&s.call(n[0]),i()})}}),t.widget,function(){function e(t,e,i){return[parseFloat(t[0])*(c.test(t[0])?e/100:1),parseFloat(t[1])*(c.test(t[1])?i/100:1)]}function i(e,i){return parseInt(t.css(e,i),10)||0}var n,o=Math.max,s=Math.abs,a=/left|center|right/,r=/top|center|bottom/,l=/[\+\-]\d+(\.[\d]+)?%?/,h=/^\w+/,c=/%$/,d=t.fn.position;t.position={scrollbarWidth:function(){if(void 0!==n)return n;var e,i,o=t("<div style='display:block;position:absolute;width:50px;height:50px;overflow:hidden;'><div style='height:100px;width:auto;'></div></div>"),s=o.children()[0];return t("body").append(o),e=s.offsetWidth,o.css("overflow","scroll"),e===(i=s.offsetWidth)&&(i=o[0].clientWidth),o.remove(),n=e-i},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y"),o="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:o?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=t.isWindow(i[0]),o=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:o,offset:n||o?{left:0,top:0}:t(e).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(n){if(!n||!n.of)return d.apply(this,arguments);n=t.extend({},n);var c,u,p,f,m,g,v,_=t(n.of),y=t.position.getWithinInfo(n.within),b=t.position.getScrollInfo(y),w=(n.collision||"flip").split(" "),x={};return v=9===(c=_[0]).nodeType?{width:_.width(),height:_.height(),offset:{top:0,left:0}}:t.isWindow(c)?{width:_.width(),height:_.height(),offset:{top:_.scrollTop(),left:_.scrollLeft()}}:c.preventDefault?{width:0,height:0,offset:{top:c.pageY,left:c.pageX}}:{width:_.outerWidth(),height:_.outerHeight(),offset:_.offset()},_[0].preventDefault&&(n.at="left top"),p=v.width,f=v.height,m=v.offset,g=t.extend({},m),t.each(["my","at"],function(){var t,e,i=(n[this]||"").split(" ");1===i.length&&(i=a.test(i[0])?i.concat(["center"]):r.test(i[0])?["center"].concat(i):["center","center"]),i[0]=a.test(i[0])?i[0]:"center",i[1]=r.test(i[1])?i[1]:"center",t=l.exec(i[0]),e=l.exec(i[1]),x[this]=[t?t[0]:0,e?e[0]:0],n[this]=[h.exec(i[0])[0],h.exec(i[1])[0]]}),1===w.length&&(w[1]=w[0]),"right"===n.at[0]?g.left+=p:"center"===n.at[0]&&(g.left+=p/2),"bottom"===n.at[1]?g.top+=f:"center"===n.at[1]&&(g.top+=f/2),u=e(x.at,p,f),g.left+=u[0],g.top+=u[1],this.each(function(){var a,r,l=t(this),h=l.outerWidth(),c=l.outerHeight(),d=i(this,"marginLeft"),v=i(this,"marginTop"),C=h+d+i(this,"marginRight")+b.width,T=c+v+i(this,"marginBottom")+b.height,k=t.extend({},g),S=e(x.my,l.outerWidth(),l.outerHeight());"right"===n.my[0]?k.left-=h:"center"===n.my[0]&&(k.left-=h/2),"bottom"===n.my[1]?k.top-=c:"center"===n.my[1]&&(k.top-=c/2),k.left+=S[0],k.top+=S[1],a={marginLeft:d,marginTop:v},t.each(["left","top"],function(e,i){t.ui.position[w[e]]&&t.ui.position[w[e]][i](k,{targetWidth:p,targetHeight:f,elemWidth:h,elemHeight:c,collisionPosition:a,collisionWidth:C,collisionHeight:T,offset:[u[0]+S[0],u[1]+S[1]],my:n.my,at:n.at,within:y,elem:l})}),n.using&&(r=function(t){var e=m.left-k.left,i=e+p-h,a=m.top-k.top,r=a+f-c,d={target:{element:_,left:m.left,top:m.top,width:p,height:f},element:{element:l,left:k.left,top:k.top,width:h,height:c},horizontal:0>i?"left":e>0?"right":"center",vertical:0>r?"top":a>0?"bottom":"middle"};h>p&&p>s(e+i)&&(d.horizontal="center"),c>f&&f>s(a+r)&&(d.vertical="middle"),d.important=o(s(e),s(i))>o(s(a),s(r))?"horizontal":"vertical",n.using.call(this,t,d)}),l.offset(t.extend(k,{using:r}))})},t.ui.position={fit:{left:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollLeft:n.offset.left,a=n.width,r=t.left-e.collisionPosition.marginLeft,l=s-r,h=r+e.collisionWidth-a-s;e.collisionWidth>a?l>0&&0>=h?(i=t.left+l+e.collisionWidth-a-s,t.left+=l-i):t.left=h>0&&0>=l?s:l>h?s+a-e.collisionWidth:s:l>0?t.left+=l:h>0?t.left-=h:t.left=o(t.left-r,t.left)},top:function(t,e){var i,n=e.within,s=n.isWindow?n.scrollTop:n.offset.top,a=e.within.height,r=t.top-e.collisionPosition.marginTop,l=s-r,h=r+e.collisionHeight-a-s;e.collisionHeight>a?l>0&&0>=h?(i=t.top+l+e.collisionHeight-a-s,t.top+=l-i):t.top=h>0&&0>=l?s:l>h?s+a-e.collisionHeight:s:l>
40?t.top+=l:h>0?t.top-=h:t.top=o(t.top-r,t.top)}},flip:{left:function(t,e){var i,n,o=e.within,a=o.offset.left+o.scrollLeft,r=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,h=t.left-e.collisionPosition.marginLeft,c=h-l,d=h+e.collisionWidth-r-l,u="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>c?(0>(i=t.left+u+p+f+e.collisionWidth-r-a)||s(c)>i)&&(t.left+=u+p+f):d>0&&((n=t.left-e.collisionPosition.marginLeft+u+p+f-l)>0||d>s(n))&&(t.left+=u+p+f)},top:function(t,e){var i,n,o=e.within,a=o.offset.top+o.scrollTop,r=o.height,l=o.isWindow?o.scrollTop:o.offset.top,h=t.top-e.collisionPosition.marginTop,c=h-l,d=h+e.collisionHeight-r-l,u="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];0>c?(0>(n=t.top+u+p+f+e.collisionHeight-r-a)||s(c)>n)&&(t.top+=u+p+f):d>0&&((i=t.top-e.collisionPosition.marginTop+u+p+f-l)>0||d>s(i))&&(t.top+=u+p+f)}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}}}(),t.ui.position,t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}}):function(e,i,n){return!!t.data(e,n[3])}}),t.fn.extend({disableSelection:(r="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(r+".ui-disableSelection",function(t){t.preventDefault()})}),enableSelection:function(){return this.off(".ui-disableSelection")}}),t.ui.focusable=function(e,i){var n,o,s,a,r,l=e.nodeName.toLowerCase();return"area"===l?(o=(n=e.parentNode).name,!!e.href&&!!o&&"map"===n.nodeName.toLowerCase()&&(s=t("img[usemap='#"+o+"']")).length>0&&s.is(":visible")):(/^(input|select|textarea|button|object)$/.test(l)?(a=!e.disabled)&&(r=t(e).closest("fieldset")[0])&&(a=!r.disabled):a="a"===l&&e.href||i,a&&t(e).is(":visible")&&function(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"hidden"!==e}(t(e)))},t.extend(t.expr[":"],{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.fn.form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout(function(){var i=e.data("ui-form-reset-instances");t.each(i,function(){this.refresh()})})},_bindFormResetHandler:function(){if(this.form=this.element.form(),this.form.length){var t=this.form.data("ui-form-reset-instances")||[];t.length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t)}},_unbindFormResetHandler:function(){if(this.form.length){var e=this.form.data("ui-form-reset-instances");e.splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},"1.7"===t.fn.jquery.substring(0,3)&&(t.each(["Width","Height"],function(e,i){function n(e,i,n,s){return t.each(o,function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),s&&(i-=parseFloat(t.css(e,"margin"+this))||0)}),i}var o="Width"===i?["Left","Right"]:["Top","Bottom"],s=i.toLowerCase(),a={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+i]=function(e){return void 0===e?a["inner"+i].call(this):this.each(function(){t(this).css(s,n(this,e)+"px")})},t.fn["outer"+i]=function(e,o){return"number"!=typeof e?a["outer"+i].call(this,e):this.each(function(){t(this).css(s,n(this,e,!0,o)+"px")})}}),t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.ui.escapeSelector=(l=/([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g,function(t){return t.replace(l,"\\$1")}),t.fn.labels=function(){var e,i,n,o,s;return this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(o=this.eq(0).parents("label"),(n=this.attr("id"))&&(s=(e=this.eq(0).parents().last(
4)).add(e.length?e.siblings():this.siblings()),i="label[for='"+t.ui.escapeSelector(n)+"']",o=o.add(s.find(i).addBack(i))),this.pushStack(o))},t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,o=e?/(auto|scroll|hidden)/:/(auto|scroll)/,s=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&o.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&s.length?s:t(this[0].ownerDocument||document)},t.extend(t.expr[":"],{tabbable:function(e){var i=t.attr(e,"tabindex"),n=null!=i;return(!n||i>=0)&&t.ui.focusable(e,n)}}),t.fn.extend({uniqueId:(h=0,function(){return this.each(function(){this.id||(this.id="ui-id-"+ ++h)})}),removeUniqueId:function(){return this.each(function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")})}}),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var v=!1;t(document).on("mouseup",function(){v=!1}),t.widget("ui.mouse",{version:"1.12.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!v){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,n=1===e.which,o="string"==typeof this.options.cancel&&!!e.target.nodeName&&t(e.target).closest(this.options.cancel).length;return!(n&&!o&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){i.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),v=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button)return this._mouseUp(e);if(!e.which){if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}}return(e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,v=!1,e.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),t.ui.plugin={add:function(e,i,n){var o,s=t.ui[e].prototype;for(o in n)s.plugins[o]=s.plugins[o]||[],s.plugins[o].push([i,n[o]])}
vendor: 5,764 bytes, line 4
4,call:function(t,e,i,n){var o,s=t.plugins[e];if(s&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(o=0;s.length>o;o++)t.options[s[o][0]]&&s[o][1].apply(t.element,i)}},t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return e||(e=t.body),e.nodeName||(e=t.body),e},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){return(this.helper||this.element).is(".ui-draggable-dragging")?void(this.destroyOnClear=!0):(this._removeHandleClassName(),void this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!this.helper&&!i.disabled&&!(t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",e)&&i._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper),o=n?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return o.parents("body").length||o.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&o[0]===this.element[0]&&this._setPositionRelative(),o[0]===this.element[0]||/(fixed|absolute)/.test(o.css("position"))||o.css("position","absolute"),o},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}
vendor: 4,649 bytes, line 4
4),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,o=this.options,s=this.document[0];return this.relativeContainer=null,o.containment?"window"===o.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===o.containment?void(this.containment=[0,0,t(s).width()-this.helperProportions.width-this.margins.left,(t(s).height()||s.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):o.containment.constructor===Array?void(this.containment=o.containment):("parent"===o.containment&&(o.containment=this.helper[0].parentNode),void((n=(i=t(o.containment))[0])&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i))):void(this.containment=null)},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,o,s,a=this.options,r=this._isRootNode(this.scrollParent[0]),l=t.pageX,h=t.pageY;return r&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(h=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(h=i[3]+this.offset.click.top)),a.grid&&(o=a.grid[1]?this.originalPageY+Math.round((h-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,h=i?o-this.offset.click.top>=i[1]||o-this.offset.click.top>i[3]?o:o-this.offset.click.top>=i[1]?o-a.grid[1]:o+a.grid[1]:o,s=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)
vendor: 4,883 bytes, line 4
4/a.grid[0])*a.grid[0]:this.originalPageX,l=i?s-this.offset.click.left>=i[0]||s-this.offset.click.left>i[2]?s:s-this.offset.click.left>=i[0]?s-a.grid[0]:s+a.grid[0]:s),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(h=this.originalPageY)),{top:h-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:r?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:r?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var o=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,o))})},stop:function(e,i,n){var o=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,o))})},drag:function(e,i,n){t.each(n.sortables,function(){var o=!1,s=this;s.positionAbs=n.positionAbs,s.helperProportions=n.helperProportions,s.offset.click=n.offset.click,s._intersectsWith(s.containerCache)&&(o=!0,t.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==s&&this._intersectsWith(this.containerCache)&&t.contains(s.element[0],this.element[0])&&(o=!1),o})),o?(s.isOver||(s.isOver=1,n._parent=i.helper.parent(),s.currentItem=i.helper.appendTo(s.element).data("ui-sortable-item",!0),s.options._helper=s.options.helper,s.options.helper=function(){return i.helper[0]},e.target=s.currentItem[0],s._mouseCapture(e,!0),s._mouseStart(e,!0,!0),s.offset.click.top=n.offset.click.top,s.offset.click.left=n.offset.click.left,s.offset.parent.left-=n.offset.parent.left-s.offset.parent.left,s.offset.parent.top-=n.offset.parent.top-s.offset.parent.top,n._trigger("toSortable",e),n.dropped=s.element,t.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,s.fromOutside=n),s.currentItem&&(s._mouseDrag(e),i.position=s.position)):s.isOver&&(s.isOver=0,s.cancelHelperRemoval=!0,s.options._revert=s.options.revert,s.options.revert=!1,s._trigger("out",e,s._uiHash(s)),s._mouseStop(e,!0),s.options.revert=s.options._revert,s.options.helper=s.options._helper,s.placeholder&&s.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var o=t("body"),s=n.options;o.css("cursor")&&(s._cursor=o.css("cursor")),o.css("cursor",s.cursor)},stop:function(e,i,n){var o=n.options;o._cursor&&t("body").css("cursor",o._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var o=t(i.helper),s=n.options;o.css("opacity")&&(s._opacity=o.css("opacity")),o.css("opacity",s.opacity)},stop:function(e,i,n){var o=n.options;o._opacity&&t(i.helper).css("opacity",o._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var o=n.options,s=!1,a=n.scrollParentNotHidden[0],r=n.document[0];a!==r&&"HTML"!==a.tagName?(o.axis&&"x"===o.axis||(n.overflowOffset.top+a.offsetHeight-e.pageY<o.scrollSensitivity?a.scrollTop=s=a.scrollTop+o.scrollSpeed:e.pageY-n.overflowOffset.top<o.scrollSensitivity&&(a.scrollTop=s=a.scrollTop-o.scrollSpeed)),o.axis&&"y"===o.axis||(n.overflowOffset.left+a.offsetWidth-e.pageX<o.scrollSensitivity?a.scrollLeft=s=a.scrollLeft+o.scrollSpeed:e.pageX-n.overflowOffset.left<o.scrollSensitivity&&(a.scrollLeft=s=a.scrollLeft-o.scrollSpeed))):(o.axis&&"x"===o.axis||(e.pageY-t
vendor: 4,059 bytes, line 4
4(r).scrollTop()<o.scrollSensitivity?s=t(r).scrollTop(t(r).scrollTop()-o.scrollSpeed):t(window).height()-(e.pageY-t(r).scrollTop())<o.scrollSensitivity&&(s=t(r).scrollTop(t(r).scrollTop()+o.scrollSpeed))),o.axis&&"y"===o.axis||(e.pageX-t(r).scrollLeft()<o.scrollSensitivity?s=t(r).scrollLeft(t(r).scrollLeft()-o.scrollSpeed):t(window).width()-(e.pageX-t(r).scrollLeft())<o.scrollSensitivity&&(s=t(r).scrollLeft(t(r).scrollLeft()+o.scrollSpeed)))),!1!==s&&t.ui.ddmanager&&!o.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var o=n.options;n.snapElements=[],t(o.snap.constructor!==String?o.snap.items||":data(ui-draggable)":o.snap).each(function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i,n){var o,s,a,r,l,h,c,d,u,p,f=n.options,m=f.snapTolerance,g=i.offset.left,v=g+n.helperProportions.width,_=i.offset.top,y=_+n.helperProportions.height;for(u=n.snapElements.length-1;u>=0;u--)h=(l=n.snapElements[u].left-n.margins.left)+n.snapElements[u].width,d=(c=n.snapElements[u].top-n.margins.top)+n.snapElements[u].height,l-m>v||g>h+m||c-m>y||_>d+m||!t.contains(n.snapElements[u].item.ownerDocument,n.snapElements[u].item)?(n.snapElements[u].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[u].item})),n.snapElements[u].snapping=!1):("inner"!==f.snapMode&&(o=m>=Math.abs(c-y),s=m>=Math.abs(d-_),a=m>=Math.abs(l-v),r=m>=Math.abs(h-g),o&&(i.position.top=n._convertPositionTo("relative",{top:c-n.helperProportions.height,left:0}).top),s&&(i.position.top=n._convertPositionTo("relative",{top:d,left:0}).top),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h}).left)),p=o||s||a||r,"outer"!==f.snapMode&&(o=m>=Math.abs(c-_),s=m>=Math.abs(d-y),a=m>=Math.abs(l-g),r=m>=Math.abs(h-v),o&&(i.position.top=n._convertPositionTo("relative",{top:c,left:0}).top),s&&(i.position.top=n._convertPositionTo("relative",{top:d-n.helperProportions.height,left:0}).top),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:h-n.helperProportions.width}).left)),!n.snapElements[u].snapping&&(o||s||a||r||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[u].item})),n.snapElements[u].snapping=o||s||a||r||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var o,s=n.options,a=t.makeArray(t(s.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});a.length&&(o=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each(function(e){t(this).css("zIndex",o+e)}),this.css("zIndex",o+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var o=t(i.helper),s=n.options;o.css("zIndex")&&(s._zIndex=o.css("zIndex")),o.css("zIndex",s.zIndex)},stop:function(e,i,n){var o=n.options;o._zIndex&&t(i.helper).css("zIndex",o._zIndex)}}),t.ui.draggable,t.widget("ui.droppable",{version:"1.12.1",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e,i=this.options,n=i.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(n)?n:function(t){return t.is(n)},this.proportions=function(){return arguments.length?void(e=arguments[0]):e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight})},this._addToManager(i.scope),i.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;t.length>e;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)}
4,_setOption:function(e,i){if("accept"===e)this.accept=t.isFunction(i)?i:function(t){return t.is(i)};else if("scope"===e){var n=t.ui.ddmanager.droppables[this.options.scope];this._splice(n),this._addToManager(i)}this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._addHoverClass(),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,o=!1;return!!n&&(n.currentItem||n.element)[0]!==this.element[0]&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each(function(){var i=t(this).droppable("instance");return i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&_(n,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e)?(o=!0,!1):void 0}),!o&&!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",e,this.ui(n)),this.element))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}});var _=t.ui.intersect=function(t,e,i,n){if(!e.offset)return!1;var o,s,a,r,l=(t.positionAbs||t.position.absolute).left+t.margins.left,h=(t.positionAbs||t.position.absolute).top+t.margins.top,c=l+t.helperProportions.width,d=h+t.helperProportions.height,u=e.offset.left,p=e.offset.top,f=u+e.proportions().width,m=p+e.proportions().height;switch(i){case"fit":return l>=u&&f>=c&&h>=p&&m>=d;case"intersect":return l+t.helperProportions.width/2>u&&f>c-t.helperProportions.width/2&&h+t.helperProportions.height/2>p&&m>d-t.helperProportions.height/2;case"pointer":return o=n.pageY,s=e.proportions().height,o>=p&&p+s>o&&(a=n.pageX,r=e.proportions().width,a>=u&&u+r>a);case"touch":return(h>=p&&m>=h||d>=p&&m>=d||p>h&&d>m)&&(l>=u&&f>=l||c>=u&&f>=c||u>l&&c>f);default:return!1}};t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var n,o,s=t.ui.ddmanager.droppables[e.options.scope]||[],a=i?i.type:null,r=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;s.length>n;n++)if(!(s[n].options.disabled||e&&!s[n].accept.call(s[n].element[0],e.currentItem||e.element))){for(o=0;r.length>o;o++)if(r[o]===s[n].element[0]){s[n].proportions().height=0;continue t}s[n].visible="none"!==s[n].element.css("display"),s[n].visible&&("mousedown"===a&&s[n]._activate.call(s[n],i),s[n].offset=s[n].element.offset(),s[n].proportions({width:s[n].element[0].offsetWidth,height:s[n].element[0].offsetHeight}))}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),function(){this.options&&(!this.options.disabled&&this.visible&&_(e,this,this.options.tolerance,i)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))}),n},dragStart:function(e,i){e.element.parentsUntil("body").on("scroll.droppable",function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)})},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,o,s,a=_(e,this,this.options.tolerance,i),r=!a&&this.isover?"isout":a&&!this.isover?"isover":null;r&&(this.options.greedy&&(o=this.options.scope,(s=this.element.parents(":data(ui-droppable)").filter(function(){return t(this).droppable("instance").options.scope===o})).length&&((n=t(s[0]).droppable("instance")).greedyChild="isover"===r)),n&&"isover"===r&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),n&&"isout"===r&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}})},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}},!1!==t.uiBackCompat&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1}
vendor: 4,500 bytes, line 4
4,_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable,t.widget("ui.resizable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",o=!1;return e[n]>0||(e[n]=1,o=e[n]>0,e[n]=0,o)},_create:function(){var e,i=this.options,n=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper' style='overflow: hidden;'></div>").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",0),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())}).on("mouseleave",function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())}),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(t,e){this._super(t,e),"handles"===t&&(this._removeHandles(),this._setupHandles())},_setupHandles:function(){var e,i,n,o,s,a=this.options,r=this;if(this.handles=a.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this._handles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;n.length>i;i++)o="ui-resizable-"+(e=t.trim(n[i])),s=t("<div>"),this._addClass(s,"ui-resizable-handle "+o),s.css({zIndex:a.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.append(s);this._renderAxis=function(e){var i,n,o,s;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:r._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=t(this.handles[i],this.element),s=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),o=["padding",/ne|nw|n
vendor: 4,391 bytes, line 4
4/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(o,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",function(){r.resizing||(this.className&&(s=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=s&&s[1]?s[1]:"se")}),a.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._handles.remove()},_mouseCapture:function(e){var i,n,o=!1;for(i in this.handles)((n=t(this.handles[i])[0])===e.target||t.contains(n,e.target))&&(o=!0);return!this.options.disabled&&o},_mouseStart:function(e){var i,n,o,s=this.options,a=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),s.containment&&(i+=t(s.containment).scrollLeft()||0,n+=t(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,o=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===o?this.axis+"-resize":o),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i,n,o=this.originalMousePosition,s=this.axis,a=e.pageX-o.left||0,r=e.pageY-o.top||0,l=this._change[s];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[e,a,r]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,o,s,a,r,l,h=this.options;return this._helper&&(o=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:this.sizeDiff.height,s=n?0:this.sizeDiff.width,a={width:this.helper.width()-s,height:this.helper.height()-o},r=parseFloat(this.element.css("left"))+(this.position.left-this.originalPosition.left)||null,l=parseFloat(this.element.css("top"))+(this.position.top-this.originalPosition.top)||null,h.animate||this.element.css(t.extend(a,{top:l,left:r})),this.helper.height(this.size.height),this.helper.width(this.size.width),this._helper&&!h.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n,o,s,a=this.options;s={minWidth:this._isNumber(a.minWidth)?a.minWidth:0,maxWidth:this._isNumber(a.maxWidth)?a.maxWidth:1/0,minHeight:this._isNumber(a.minHeight)?a.minHeight:0,maxHeight:this._isNumber(a.maxHeight)?a.maxHeight:1/0},(this._aspectRatio||t)&&(e=s.minHeight*this.aspectRatio,n=s.minWidth/this.aspectRatio,i=s.maxHeight*this.aspectRatio,o=s.maxWidth/this.aspectRatio,e>s.minWidth&&(s.minWidth=e),n>s.minHeight&&(s.minHeight=n),s.maxWidth>i&&(s.maxWidth=i),s.maxHeight>o&&(s.maxHeight=o)),this._vBoundaries=s},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left
vendor: 5,125 bytes, line 4
4=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,o=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,s=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,a=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,r=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,h=/sw|nw|w/.test(i),c=/nw|ne|n/.test(i);return s&&(t.width=e.minWidth),a&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),o&&(t.height=e.maxHeight),s&&h&&(t.left=r-e.minWidth),n&&h&&(t.left=r-e.maxWidth),a&&c&&(t.top=l-e.minHeight),o&&c&&(t.top=l-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],o=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];4>e;e++)i[e]=parseFloat(n[e])||0,i[e]+=parseFloat(o[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;this._proportionallyResizeElements.length>e;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div style='overflow:hidden;'></div>"),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).resizable("instance"),n=i.options,o=i._proportionallyResizeElements,s=o.length&&/textarea/i.test(o[0].nodeName),a=s&&i._hasScroll(o[0],"left")?0:i.sizeDiff.height,r=s?0:i.sizeDiff.width,l={width:i.size.width-r,height:i.size.height-a},h=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,c=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(l,c&&h?{top:c,left:h}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};o&&o.length&&t(o[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,n,o,s,a,r,l=t(this).resizable("instance"),h=l.options,c=l.element,d=h.containment,u=d instanceof t?d.get(0):/parent/.test(d)?c.parent().get(0):d;u&&(l.containerElement=t(u),/document/.test(d)||d===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(u),i=[],t(["Top","Right","Left","Bottom"]).each(function(t,n){i[t]=l._num(e.css("padding"+n))}),l.containerOffset=e.offset(),l.containerPosition=e.position(),l.containerSize={height:e.innerHe
vendor: 2,693 bytes, line 4
4ight()-i[3],width:e.innerWidth()-i[1]},n=l.containerOffset,o=l.containerSize.height,s=l.containerSize.width,a=l._hasScroll(u,"left")?u.scrollWidth:s,r=l._hasScroll(u)?u.scrollHeight:o,l.parentData={element:u,left:n.left,top:n.top,width:a,height:r}))},resize:function(e){var i,n,o,s,a=t(this).resizable("instance"),r=a.options,l=a.containerOffset,h=a.position,c=a._aspectRatio||e.shiftKey,d={top:0,left:0},u=a.containerElement,p=!0;u[0]!==document&&/static/.test(u.css("position"))&&(d=l),h.left<(a._helper?l.left:0)&&(a.size.width=a.size.width+(a._helper?a.position.left-l.left:a.position.left-d.left),c&&(a.size.height=a.size.width/a.aspectRatio,p=!1),a.position.left=r.helper?l.left:0),h.top<(a._helper?l.top:0)&&(a.size.height=a.size.height+(a._helper?a.position.top-l.top:a.position.top),c&&(a.size.width=a.size.height*a.aspectRatio,p=!1),a.position.top=a._helper?l.top:0),o=a.containerElement.get(0)===a.element.parent().get(0),s=/relative|absolute/.test(a.containerElement.css("position")),o&&s?(a.offset.left=a.parentData.left+a.position.left,a.offset.top=a.parentData.top+a.position.top):(a.offset.left=a.element.offset().left,a.offset.top=a.element.offset().top),i=Math.abs(a.sizeDiff.width+(a._helper?a.offset.left-d.left:a.offset.left-l.left)),n=Math.abs(a.sizeDiff.height+(a._helper?a.offset.top-d.top:a.offset.top-l.top)),i+a.size.width>=a.parentData.width&&(a.size.width=a.parentData.width-i,c&&(a.size.height=a.size.width/a.aspectRatio,p=!1)),n+a.size.height>=a.parentData.height&&(a.size.height=a.parentData.height-n,c&&(a.size.width=a.size.height*a.aspectRatio,p=!1)),p||(a.position.left=a.prevPosition.left,a.position.top=a.prevPosition.top,a.size.width=a.prevSize.width,a.size.height=a.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,n=e.containerOffset,o=e.containerPosition,s=e.containerElement,a=t(e.helper),r=a.offset(),l=a.outerWidth()-e.sizeDiff.width,h=a.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(s.css("position"))&&t(this).css({left:r.left-o.left-n.left,width:l,height:h}),e._helper&&!i.animate&&/static/.test(s.css("position"))&&t(this).css({left:r.left-o.left-n.left,width:l,height:h})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options;t(e.alsoResize).each(function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})})},resize:function(e,i){var n=t(this).resizable("instance"),o=n.options,s=n.originalSize,a=n.originalPosition,r={height:n.size.height-s.height||0,width:n.size.width-s.width||0,top:n.position.top-a.top||0,left
vendor: 6,740 bytes, line 4
4:n.position.left-a.left||0};t(o.alsoResize).each(function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),o={},s=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(s,function(t,e){var i=(n[e]||0)+(r[e]||0);i&&i>=0&&(o[e]=i||null)}),e.css(o)})},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),n=i.options,o=i.size,s=i.originalSize,a=i.originalPosition,r=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,h=l[0]||1,c=l[1]||1,d=Math.round((o.width-s.width)/h)*h,u=Math.round((o.height-s.height)/c)*c,p=s.width+d,f=s.height+u,m=n.maxWidth&&p>n.maxWidth,g=n.maxHeight&&f>n.maxHeight,v=n.minWidth&&n.minWidth>p,_=n.minHeight&&n.minHeight>f;n.grid=l,v&&(p+=h),_&&(f+=c),m&&(p-=h),g&&(f-=c),/^(se|s|e)$/.test(r)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.top=a.top-u):/^(sw)$/.test(r)?(i.size.width=p,i.size.height=f,i.position.left=a.left-d):((0>=f-c||0>=p-h)&&(e=i._getPaddingPlusBorderDimensions(this)),f-c>0?(i.size.height=f,i.position.top=a.top-u):(f=c-e.height,i.size.height=f,i.position.top=a.top+s.height-f),p-h>0?(i.size.width=p,i.position.left=a.left-d):(p=h-e.width,i.size.width=p,i.position.left=a.left+s.width-p))}}),t.ui.resizable,t.widget("ui.selectable",t.ui.mouse,{version:"1.12.1",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each(function(){var i=t(this),n=i.offset(),o={left:n.left-e.elementPos.left,top:n.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:i,left:o.left,top:o.top,right:o.left+i.outerWidth(),bottom:o.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})})},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each(function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(i._removeClass(n.$element,"ui-selected"),n.selected=!1,i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))}),t(e.target).parents().addBack().each(function(){var n,o=t.data(this,"selectable-item");return o?(n=!e.metaKey&&!e.ctrlKey||!o.$element.hasClass("ui-selected"),i._removeClass(o.$element,n?"ui-unselecting":"ui-selected")._addClass(o.$element,n?"ui-selecting":"ui-unselecting"),o.unselecting=!n,o.selecting=n,o.selected=n,n?i._trigger("selecting",e,{selecting:o.element}):i._trigger("unselecting",e,{unselecting:o.element}),!1):void 0}))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,o=this.options,s=this.opos[0],a=this.opos[1],r=e.pageX,l=e.pageY;return s>r&&(i=r,r=s,s=i),a>l&&(i=l,l=a,a=i),this.helper.css({left:s,top:a,width:r-s,height:l-a}),this.selectees.each(function(){var i=t.data(this,"selectable-item"),h=!1,c={};i&&i.element!==n.element[0]&&(c.left=i.left+n.elementPos.left,c.right=i.right+n.elementPos.left,c.top=i.top+n.elementPos.top,c.bottom=i.bottom+n.elementPos.top,"touch"===o.tolerance?h=!(c.left>r||s>c.right||c.top>l||a>c.bottom):"fit"===o.tolerance&&(h=c.left>s&&r>c.right&&c.top>a&&l>c.bottom),h?(i.selected&&(n._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(n._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(n._addClass(i.$element,"ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,n._addClass(i.$element,"ui-selected"),i.selected=!0):(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(n._removeClass(i.$element,"ui-selected"),i.selected=!1,n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element})))))}),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");i._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})}),t(".ui-selecting",this.element[0]).each(function(){var n=t.data(this,"selectable-item");i._removeClass(n.$element,"ui-selecting")._addClass(n.$element,"ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})}),this._trigger("stop",e),this.helper.remove(),!1}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null}
vendor: 9,634 bytes, line 4
4,_isOverAxis:function(t,e,i){return t>=e&&e+i>t},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,o=!1,s=this;return!this.reverting&&!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each(function(){return t.data(this,s.widgetName+"-item")===s?(n=t(this),!1):void 0}),t.data(e.target,s.widgetName+"-item")===s&&(n=t(e.target)),!!n&&(!this.options.handle||!!i||(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&&(o=!0)}),!!o))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))},_mouseStart:function(e,i,n){var o,s,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(s)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,o,s,a=this.options,r=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<a.scrollSensitivity?this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop+a.scrollSpeed:e.pageY-this.overflowOffset.top<a.scrollSensitivity&&(this.scrollParent[0].scrollTop=r=this.scrollParent[0].scrollTop-a.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<a.scrollSensitivity?this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft+a.scrollSpeed:e.pageX-this.overflowOffset.left<a.scrollSensitivity&&(this.scrollParent[0].scrollLeft=r=this.scrollParent[0].scrollLeft-a.scrollSpeed)):(e.pageY-this.document.scrollTop()<a.scrollSensitivity?r=this.document.scrollTop(this.document.scrollTop()-a.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<a.scrollSensitivity&&(r=this.document.scrollTop(this.document.scrollTop()+a.scrollSpeed)),e.pageX-this.document.scrollLeft()<a.scrollSensitivity?r=this.document.scrollLeft(this.document.scrollLeft()-a.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<a.scrollSensitivity&&(r=this.document.scrollLeft(this.document.scrollLeft()+a.scrollSpeed))),!1!==r&&t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),i=this.items.length-1;i>=0;i--)if(o=(n=this.items[i]).item[0],(s=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&o!==this.currentItem[0]&&this.placeholder[1===s?"next":"prev"]()[0]!==o&&!t.contains(this.placeholder[0],o)&&("semi-dynamic"!==this.options.type||!t.contains(this.element[0],o))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,o=this.placeholder.offset(),s=this.options.axis,a={};s&&"x"!==s||(a.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(a.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,o=n+this.helperProportions.height,s=t.left,a=s+t.width,r=t.top,l=r+t.height,h=this.offset.click.top,c=this.offset.click.left,d="x"===this.options.axis||n+h>r&&l>n+h,u="y"===this.options.axis||e+c>s&&a>e+c;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?d&&u:e+this.helperProportions.width/2>s&&a>i-this.helperProportions.width/2&&n+this.helperProportions.height/2>r&&l>o-this.helperProportions.height/2},_intersectsWithPointer:function(t){var e,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),o="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!!(n&&o)&&(e=this._getDragVerticalDirection(),i=this._getDragHorizontalDirection(),this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this._getDragVerticalDirection(),o=this._getDragHorizontalDirection();return this.floating&&o?"right"===o&&i||"left"===o&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;
4return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){function i(){r.push(this)}var n,o,s,a,r=[],l=[],h=this._connectWith();if(h&&e)for(n=h.length-1;n>=0;n--)for(o=(s=t(h[n],this.document[0])).length-1;o>=0;o--)(a=t.data(s[o],this.widgetFullName))&&a!==this&&!a.options.disabled&&l.push([t.isFunction(a.options.items)?a.options.items.call(a.element):t(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),n=l.length-1;n>=0;n--)l[n][0].each(i);return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,o,s,a,r,l,h,c=this.items,d=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(i=u.length-1;i>=0;i--)for(n=(o=t(u[i],this.document[0])).length-1;n>=0;n--)(s=t.data(o[n],this.widgetFullName))&&s!==this&&!s.options.disabled&&(d.push([t.isFunction(s.options.items)?s.options.items.call(s.element[0],e,{item:this.currentItem}):t(s.options.items,s.element),s]),this.containers.push(s));for(i=d.length-1;i>=0;i--)for(a=d[i][1],r=d[i][0],n=0,h=r.length;h>n;n++)(l=t(r[n])).data(this.widgetName+"-item",a),c.push({item:l,instance:a,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,n,o,s;for(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(n=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=o.outerWidth(),n.height=o.outerHeight()),s=o.offset(),n.left=s.left,n.top=s.top);
vendor: 1,142 bytes, line 4
4if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)s=this.containers[i].element.offset(),this.containers[i].containerCache.left=s.left,this.containers[i].containerCache.top=s.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,n=(e=e||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),o=t("<"+n+">",e.document[0]);return e._addClass(o,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(o,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(o)):"tr"===n?e._createTrPlaceholder(e.currentItem,o):"img"===n&&o.attr("src",e.currentItem.attr("src")),i||o.css("visibility","hidden"),o},update:function(t,o){(!i||n.forcePlaceholderSize)&&(o.height()||o.height(e.currentItem.innerHe
vendor: 5,528 bytes, line 4
4ight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each(function(){t("<td> </td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(e){var i,n,o,s,a,r,l,h,c,d,u=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0])){if(this._intersectsWith(this.containers[i].containerCache)){if(u&&t.contains(this.containers[i].element[0],u.element[0]))continue;u=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0)}if(u){if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(o=1e4,s=null,a=(c=u.floating||this._isFloating(this.currentItem))?"left":"top",r=c?"width":"height",d=c?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[a],h=!1,e[d]-l>this.items[n][r]/2&&(h=!0),o>Math.abs(e[d]-l)&&(o=Math.abs(e[d]-l),s=this.items[n],this.direction=h?"up":"down"));if(!s&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));s?this._rearrange(e,s,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,o=this.options;"parent"===o.containment&&(o.containment=this.helper[0].parentNode),("document"===o.containment||"window"===o.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===o.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===o.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(o.containment)||(e=t(o.containment)[0],i=t(o.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),
vendor: 15,283 bytes, line 4
410)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(o[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:o.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:o.scrollLeft())*n}},_generatePosition:function(e){var i,n,o=this.options,s=e.pageX,a=e.pageY,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(r[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),o.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/o.grid[1])*o.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-o.grid[1]:i+o.grid[1]:i,n=this.originalPageX+Math.round((s-this.originalPageX)/o.grid[0])*o.grid[0],s=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-o.grid[0]:n+o.grid[0]:n)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:r.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:r.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay(function(){o===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){function i(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}this.reverting=!1;var n,o=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(n in this._storedCSS)("auto"===this._storedCSS[n]||"static"===this._storedCSS[n])&&(this._storedCSS[n]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&o.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||o.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(o.push(function(t){this._trigger("remove",t,this._uiHash())}),o.push((function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}).call(this,this.currentContainer)),o.push((function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}).call(this,this.currentContainer)))),n=this.containers.length-1;n>=0;n--)e||o.push(i("deactivate",this,this.containers[n])),this.containers[n].containerCache.over&&(o.push(i("out",this,this.containers[n])),this.containers[n].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(n=0;o.length>n;n++)o[n].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}}),t.widget("ui.accordion",{version:"1.12.1",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:"> li > :first-child, > :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,i,n=this.options.icons;n&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+n.header),e.prependTo(this.headers),i=this.active.children(".ui-accordion-header-icon"),this._removeClass(i,n.header)._addClass(i,null,n.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),void("icons"===t&&(this._destroyIcons(),e&&this._createIcons())))},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,o=this.headers.index(e.target),s=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:s=this.headers[(o+1)%n];break;case i.LEFT:case i.UP:s=this.headers[(o-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:s=this.headers[0];break;case i.END:s=this.headers[n-1]}s&&(t(e.target).attr("tabIndex",-1),t(s).attr("tabIndex",0),t(s).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("focus")},refresh:function(){var e=this.options;this._processPanels(),(!1!==e.active||!0!==e.collapsible)&&this.headers.length?!1===e.active?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active):(e.active=!1,this.active=t()),this._destroyIcons(),this._refresh()},_processPanels:function(){var t=this.headers,e=this.panels;this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,n=i.heightStyle,o=this.element.parent();this.active=this._findActive(i.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each(function(){var e=t(this),i=e.uniqueId().attr("id"),n=e.next(),o=n.uniqueId().attr("id");e.attr("aria-controls",o),n.attr("aria-labelledby",i)}).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===n?(e=o.height(),this.element.siblings(":visible").each(function(){var i=t(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(e-=i.outerHeight(!0))}),this.headers.each(function(){e-=t(this).outerHeight(!0)}),this.headers.next().each(function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===n&&(e=0,this.headers.next().each(function(){var i=t(this).is(":visible");i||t(this).show(),e=Math.max(e,t(this).css("height","").height()),i||t(this).hide()}).height(e))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i,n,o=this.options,s=this.active,a=t(e.currentTarget),r=a[0]===s[0],l=r&&o.collapsible,h=l?t():a.next(),c=s.next(),d={oldHeader:s,oldPanel:c,newHeader:l?t():a,newPanel:h};e.preventDefault(),r&&!o.collapsible||!1===this._trigger("beforeActivate",e,d)||(o.active=!l&&this.headers.index(a),this.active=r?t():a,this._toggle(d),this._removeClass(s,"ui-accordion-header-active","ui-state-active"),o.icons&&(i=s.children(".ui-accordion-header-icon"),this._removeClass(i,null,o.icons.activeHeader)._addClass(i,null,o.icons.header)),r||(this._removeClass(a,"ui-accordion-header-collapsed")._addClass(a,"ui-accordion-header-active","ui-state-active"),o.icons&&(n=a.children(".ui-accordion-header-icon"),this._removeClass(n,null,o.icons.header)._addClass(n,null,o.icons.activeHeader)),this._addClass(a.next(),"ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter(function(){return 0===parseInt(t(this).attr("tabIndex"),10)}).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var n,o,s,a=this,r=0,l=t.css("box-sizing"),h=t.length&&(!e.length||t.index()<e.index()),c=this.options.animate||{},d=h&&c.down||c,u=function(){a._toggleComplete(i)};return"number"==typeof d&&(s=d),"string"==typeof d&&(o=d),o=o||d.easing||c.easing,s=s||d.duration||c.duration,e.length?t.length?(n=t.show().outerHeight(),e.animate(this.hideProps,{duration:s,easing:o,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:s,easing:o,complete:u,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?"content-box"===l&&(r+=i.now):"content"!==a.options.heightStyle&&(i.now=Math.round(n-e.outerHeight()-r),r=0)}})):e.animate(this.hideProps,s,o,u):t.animate(this.showProps,s,o,u)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.widget("ui.menu",{version:"1.12.1",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault()},"click .ui-menu-item":function(e){var i=t(e.target),n=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":function(e){if(!this.previousFilter){var i=t(e.target).closest(".ui-menu-item"),n=t(e.currentTarget);i[0]===n[0]&&(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,n))}},mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this.element.find(this.options.items).eq(0);e||this.focus(t,i)},blur:function(e){this._delay(function(){t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))||this.collapseAll(e)}
vendor: 5,528 bytes, line 4
4)},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t),this.mouseHandled=!1}})},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each(function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()})},_keydown:function(e){var i,n,o,s,a=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:a=!1,n=this.previousFilter||"",s=!1,o=e.keyCode>=96&&105>=e.keyCode?""+(e.keyCode-96):String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),o===n?s=!0:o=n+o,i=this._filterMenuItems(o),(i=s&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(o=String.fromCharCode(e.keyCode),i=this._filterMenuItems(o)),i.length?(this.focus(e,i),this.previousFilter=o,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}a&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,n,o,s=this,a=this.options.icons.submenu,r=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=r.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var e=t(this),i=e.prev(),n=t("<span>").data("ui-menu-submenu-caret",!0);s._addClass(n,"ui-menu-icon","ui-icon "+a),i.attr("aria-haspopup","true").prepend(n),e.attr("aria-labelledby",i.attr("id"))}),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(e=r.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var e=t(this);s._isDivider(e)&&s._addClass(e,"ui-menu-divider","ui-widget-content")}),o=(n=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(n,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return({menu:"menuitem",listbox:"option"})[this.options.role]},_setOption:function(t,e){if("icons"===t){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)}this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t+""),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i,n,o;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),n=this.active.children(".ui-menu-item-wrapper"),this._addClass(n,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",n.attr("id")),o=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(o,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,o,s,a,r;this._hasScroll()&&(i=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,o=e.offset().top-this.activeMenu.offset().top-i-n,s=this.activeMenu.scrollTop(),a=this.activeMenu.height(),r=e.outerHeight(),0>o?this.activeMenu.scrollTop(s+o):o+r>a&&this.activeMenu.scrollTop(s+o-a+r))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay(function(){this._close(),this._open(t)},this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay(function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this._removeClass(n.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=n},this.delay)},_close:function(t){t||(t=this.active?this.active.parent():this.element),t.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","fal
4se")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this.active.children(".ui-menu ").find(this.options.items).first();e&&e.length&&(this._open(e.parent()),this._delay(function(){this.focus(t,e)}))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_move:function(t,e,i){var n;this.active&&(n="first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").eq(-1):this.active[t+"All"](".ui-menu-item").eq(0)),n&&n.length&&this.active||(n=this.activeMenu.find(this.options.items)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,o;return this.active?void(this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.height(),this.active.nextAll(".ui-menu-item").each(function(){return 0>(i=t(this)).offset().top-n-o}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items)[this.active?"last":"first"]()))):void this.next(e)},previousPage:function(e){var i,n,o;return this.active?void(this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,o=this.element.height(),this.active.prevAll(".ui-menu-item").each(function(){return(i=t(this)).offset().top-n+o>0}),this.focus(e,i)):this.focus(e,this.activeMenu.find(this.options.items).first()))):void this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){var i=RegExp("^"+e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter(function(){return i.test(t.trim(t(this).children(".ui-menu-item-wrapper").text()))})}}),t.widget("ui.autocomplete",{version:"1.12.1",defaultElement:"<input>",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,_create:function(){var e,i,n,o=this.element[0].nodeName.toLowerCase(),s="textarea"===o,a="input"===o;this.isMultiLine=s||!a&&this._isContentEditable(this.element),this.valueMethod=this.element[s||a?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var s=t.ui.keyCode;switch(o.keyCode){case s.PAGE_UP:e=!0,this._move("previousPage",o);break;case s.PAGE_DOWN:e=!0,this._move("nextPage",o);break;case s.UP:e=!0,this._keyEvent("previous",o);break;case s.DOWN:e=!0,this._keyEvent("next",o);break;case s.ENTER:this.menu.active&&(e=!0,o.preventDefault(),this.menu.select(o));break;case s.TAB:this.menu.active&&this.menu.select(o);break;case s.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(o),o.preventDefault());break;default:i=!0,this._searchTimeout(o)}},keypress:function(n){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&n.preventDefault());if(!i){var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:this._move("previousPage",n);break;case o.PAGE_DOWN:this._move("nextPage",n);break;case o.UP:this._keyEvent("previous",n);break;case o.DOWN:this._keyEvent("next",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault(),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,this.element[0]!==t.ui.safeActiveElement(this.document[0])&&this.element.trigger("focus")})},menufocus:function(e,i){var n,o;return this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type))?(this.menu.blur(),void this.document.one("mousemove",function(){t(e.target).trigger(e.originalEvent)})):(o=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:o}
vendor: 11,427 bytes, line 4
4)&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(o.value),void((n=i.item.attr("aria-label")||o.value)&&t.trim(n).length&&(this.liveRegion.children().hide(),t("<div>").text(n).appendTo(this.liveRegion))))},menuselect:function(e,i){var n=i.item.data("ui-autocomplete-item"),o=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=o,this._delay(function(){this.previous=o,this.selectedItem=n})),!1!==this._trigger("select",e,{item:n})&&this._value(n.value),this.term=this._value(),this.close(e),this.selectedItem=n}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_initSource:function(){var e,i,n=this;t.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,o){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){o(t)},error:function(){o([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay(function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(!e||i||n)||(this.selectedItem=null,this.search(null,t))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var e=++this.requestIndex;return t.proxy(function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")},this)},__response:function(t){t&&(t=this._normalize(t)),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})})},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,function(t,i){n._renderItemData(e,i)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){return this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e):void this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){(!this.isMultiLine||this.menu.element.is(":visible"))&&(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,function(t){return n.test(t.label||t.value||t)})}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(t>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,this.liveRegion.children().hide(),t("<div>").text(i).appendTo(this.liveRegion))}}),t.ui.autocomplete;var y=/ui-corner-([a-z]){2,6}/g;t.widget("ui.controlgroup",{version:"1.12.1",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,function(n,o){var s,a={};return o?"controlgroupLabel"===n?((s=e.element.find(o)).each(function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")}),e._addClass(s,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(s.get()))):void(t.fn[n]&&(a=e["_"+n+"Options"]?e["_"+n+"Options"]("middle"):{classes:{}},e.element.find(o).each(function(){var o=t(this),s=o[n]("instance"),r=t.widget.extend({},a);if("button"!==n||!o.parent(".ui-spinner").length){s||(s=o[n]()[n]("instance")),s&&(r.classes=e._resolveClassesValues(r.classes,s)),o[n](r);var l=o[n]("widget");t.data(l[0],"ui-controlgroup-data",s||o[n]("instance")),i.push(l[0])}}))):void 0}),this.childWidgets=t(t.unique(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each(function(){var i=t(this).data("ui-controlgroup-data");i&&i[e]&&i[e]()})},_updateCornerClass:function(t,e){var i=this._buildSimpleOptions(e,"label").classes.label;this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,i)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]=({middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"})[t],n},_spinnerOptions:function(t){var e=this._buildSimpleOptions(t,"ui-spinner");return e.classes["ui-spinner-up"]="",e.classes["ui-spinner-down"]="",e},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:!!e&&"auto",classes:({middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}})[t]}},_resolveClassesValues:function(e,i){var n={};return t.each(e,function(o){var s=i.options.classes[o]||"";s=t.trim(s.replace(y,"")),n[o]=(s+" "+e[o]).replace(/\s+/g," ")}),n},_setOption:function(t,e){return"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"===t?void this._callChildMethod(e?"disable":"enable"):void this.refresh()},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,this.options.onlyVisible&&(e=e.filter(":visible")),e.length&&(t.each(["first","last"],function(t,n){var o=e[n]().data("ui-controlgroup-data");if(o&&i["_"+o.widgetName+"Options"]){var s=i["_"+o.widgetName+"Options"](1===e.length?"only":n);s.classes=i._resolveClassesValues(s.classes,o),o.element[o.widgetName](s)}else i._updateCornerClass(e[n](),n)}),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.12.1",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i,n=this,o=this._super()||{};return this._readType(),i=this.element.labels(),this.label=t(i[i.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",this.label.contents().not(this.element[0]).each(function(){n.originalLabel+=3===this.nodeType?t(this).text():this.outerHTML}),this.originalLabel&&(o.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(o.disabled=e),o},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&(this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this.icon&&this._addClass(this.icon,null,"ui-state-hover")),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();
4this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,i="input[name='"+t.ui.escapeSelector(e)+"']";return e?(this.form.length?t(this.form[0].elements).filter(i):t(i).filter(function(){return 0===t(this).form().length})).not(this.element):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each(function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")})},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){return"label"!==t||e?(this._super(t,e),"disabled"===t?(this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e)):void this.refresh()):void 0},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>
4"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),this.iconSpace&&(t=t.not(this.iconSpace[0])),t.remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),t.ui.checkboxradio,t.widget("ui.button",{version:"1.12.1",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,i){var n="iconPosition"!==e,o=n?this.options.iconPosition:i;this.icon?n&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),n&&this._addClass(this.icon,null,i),this._attachIcon(o),"top"===o||"bottom"===o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconS
4pace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(o))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=void 0===t.showLabel?this.options.showLabel:t.showLabel,i=void 0===t.icon?this.options.icon:t.icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),this.element[0].disabled=e,e&&this.element.blur())},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),!this.options.icon&&(this.options.icons.primary||this.options.icons.secondary)?this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"):this.options.icon&&(this.options.icons.primary=this.options.icon),this._super()},_setOption:function(t,e){return"text"===t?void this._super("showLabel",e):("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),void this._superApply(arguments))}}),t.fn.button=(c=t.fn.button,function(){return!this.length||this.length&&"INPUT"!==this[0].tagName||this.length&&"INPUT"===this[0].tagName&&"checkbox"!==this.attr("type")&&"radio"!==this.attr("type")?c.apply(this,arguments):(t.ui.checkboxradio||t.error("Checkboxradio widget missing"),0==arguments.length?this.checkboxradio({icon:!1}):this.checkboxradio.apply(this,arguments))}),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button,t.extend(t.ui,{datepicker:{version:"1.12.1"}}),t.extend(e.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return o(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,o,s;o="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(s=this._newInst(t(e),o)).settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,s):o&&this._inlineDatepicker(e,s)},_newInst:function(e,n){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:n,dpDiv:n?i(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,o,s,a=this._get(i,"appendText"),r=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span class='"+this._appendClass+"'>"+a+"</span>"),e[r?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),("focus"===(n=this._get(i,"showOn"))||"both"===n)&&e.on("focus",this._showDatepicker),("button"===n||"both"===n)&&(o=this._get(i,"buttonText"),s=this._get(i,"buttonImage"),i.trigger=t(this._get(i,"buttonImageOnly")?t("<img/>").addClass(this._triggerClass).attr({src:s,alt:o,title:o}):t("<button type='button'></button>").addClass(this._triggerClass).html(s?t("<img/>").attr({src:s,alt:o,title:o}):o)),e[r?"before":"after"](i.trigger),i.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():(t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]&&t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,o,s=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(i=0,n=0,o=0;t.length>
4o;o++)t[o].length>i&&(i=t[o].length,n=o);return n},s.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),t.input.attr("size",this._formatDate(t,s).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,s,a){var r,l,h,c,d,u=this._dialogInst;return u||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(u=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",u)),o(u.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(u,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(l=document.documentElement.clientWidth,h=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+c,h/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),u.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",u),this},_destroyDatepicker:function(e){var i,n=t(e),o=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(o.append.remove(),o.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===i||"span"===i)&&n.removeClass(this.markerClassName).empty(),p===o&&(p=null))},_enableDatepicker:function(e){var i,n,o=t(e),s=t.data(e,"datepicker");o.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&((n=o.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,o=t(e),s=t.data(e,"datepicker");o.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&((n=o.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;this._disabledInputs.length>e;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,n){var s,a,r,l,h=this._getInst(e);return 2==arguments.length&&"string"==typeof i?"defaults"===i?t.extend({},t.datepicker._defaults):h?"all"===i?t.extend({},h.settings):this._get(h,i):null:(s=i||{},"string"==typeof i&&((s={})[i]=n),void(h&&(this._curInst===h&&this._hideDatepicker(),a=this._getDateDatepicker(e,!0),r=this._getMinMaxDate(h,"min"),l=this._getMinMaxDate(h,"max"),o(h.settings,s),null!==r&&void 0!==s.dateFormat&&void 0===s.minDate&&(h.settings.minDate=this._formatDate(h,r)),null!==l&&void 0!==s.dateFormat&&void 0===s.maxDate&&(h.settings.maxDate=this._formatDate(h,l)),"disabled"in s&&
vendor: 4,258 bytes, line 4
4(s.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),h),this._autoSize(h),this._setDate(h,a),this._updateAlternate(h),this._updateDatepicker(h))))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,o,s=t.datepicker._getInst(e.target),a=!0,r=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return(o=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",s.dpDiv))[0]&&t.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,o[0]),(i=t.datepicker._get(s,"onSelect"))?(n=t.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[n,s])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,o=t.datepicker._getInst(e.target);return t.datepicker._get(o,"constrainInput")?(i=t.datepicker._possibleChars(t.datepicker._get(o,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||" ">n||!i||i.indexOf(n)>-1):void 0},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){if("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),!t.datepicker._isDisabledDatepicker(e)&&t.datepicker._lastInput!==e){var i,n,s,a,r,l,h;i=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==i&&(t.datepicker._curInst.dpDiv.stop(!0,!0),i&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(s=(n=t.datepicker._get(i,"beforeShow"))?n.apply(e,[e,i]):{})&&(o(i.settings,s),i.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(i),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),a=!1,t(e).parents().each(function(){return!(a|="fixed"===t(this).css("position"))}),r={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(i),r=t.datepicker._checkOffset(i,r,a),i.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":a?"fixed":"absolute",display:"none",left:r.left+"px",to
4p:r.top+"px"}),i.inline||(l=t.datepicker._get(i,"showAnim"),h=t.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&!isNaN(i=parseInt(t.css("zIndex"),10))&&0!==i)return i;t=t.parent()}return 0}(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[l]?i.dpDiv.show(l,t.datepicker._get(i,"showOptions"),h):i.dpDiv[l||"show"](l?h:null),t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),t.datepicker._curInst=i))}},_updateDatepicker:function(e){this.maxRows=4,p=e,e.dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,o=this._getNumberOfMonths(e),s=o[1],a=e.dpDiv.find("."+this._dayOverClass+" a");a.length>0&&n.apply(a.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),s>1&&e.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"em"),e.dpDiv[(1!==o[0]||1!==o[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout(function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year:first").replaceWith(e.yearshtml),i=e.yearshtml=null},0))},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var o=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,r=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),h=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?o-a:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+r?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+o>l&&l>o?Math.abs(i.left+o-l):0),i.top-=Math.min(i.top,i.top+s>h&&h>s?Math.abs(s+r):0),i},_findPos:function(e){for(var i,n=this._getInst(e),o=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.filters.hidden(e));)e=e[o?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,n,o,s,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),n=this._get(a,"duration"),o=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),n,o):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,o),i||o(),this._datepickerShowing=!1,(s=this._get(a,"onClose"))&&s.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id!==t.datepicker._mainDivId&&0===i.parents("#"+t.datepicker._mainDivId).length&&!i.hasClass(t.datepicker.markerClassName)&&!i.closest("."+t.datepicker._triggerClass).length&&t.datepicker._datepickerShowing&&(!t.datepicker._inDialog||!t.blockUI)||i.hasClass(t.datepicker.markerClassName)&&t.datepicker._curInst!==n)&&t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var o=t(e),s=this._getInst(o[0]);this._isDisabledDatepicker(o[0])||(this._adjustInstDate(s,i+("M"===n?this._get(s,"showCurrentAtPos"):0),n),this._updateDatepicker(s))},_gotoToday:function(e){var i,n=t(e),o=this._getInst(n[0]);this._get(o,"gotoCurrent")&&o.currentDay?(o.selectedDay=o.currentDay,o.drawMonth=o.selectedMonth=o.currentMonth,o.drawYear=o.selectedYear=o.currentYear):(i=new Date,o.selectedDay=i.getDate(),o.drawMonth=o.selectedMonth=i.getMonth(),o.drawYear=o.selectedYear=i.getFullYear()),this._notifyChange(o),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var o=t(e),s=this._getInst(o[0]);s["selected"+("M"===n?"Month":"Year")]=s["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(o)},_selectDay:function(e,i,n,o){var s,a=t(e);t(o).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((s=this._getInst(a[0])).selectedDay=s.currentDay=t("a",o).html(),s.selectedMonth=s.currentMonth=i,s.selectedYear=s.currentYear=n,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,o=t(e),s=this._getInst(o[0]);i=null!=i?i:this._formatDate(s),s.input&&s.input.val(i),this._updateAlternate(s),(n=this._get(s,"onSelect"))?n.apply(s.input?s.input[0]:null,[
vendor: 1,873 bytes, line 4
4i,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,n,o,s=this._get(e,"altField");s&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),o=this.formatDate(i,n,this._getFormatConfig(e)),t(s).val(o))},noWeekends:function(t){var e=t.getDay();return[e>0&&6>e,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(""==(i="object"==typeof i?""+i:i+""))return null;var o,s,a,r,l=0,h=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,c="string"!=typeof h?h:(new Date).getFullYear()%100+parseInt(h,10),d=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,u=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,m=-1,g=-1,v=-1,_=-1,y=!1,b=function(t){var i=e.length>o+1&&e.charAt(o+1)===t;return i&&o++,i},w=function(t){var e=b(t),n="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,o=RegExp("^\\d{"+("y"===t?n:1)+","+n+"}"),s=i.substring(l).match(o);if(!s)throw"Missing number at position "+l;return l+=s[0].length,parseInt(s[0],10)},x=function(e,n,o){var s=-1,a=t.map(b(e)?o:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(a,function(t,e){var n=e[1];return i.substr(l,n.length).toLowerCase()===n.toLowerCase()?(s=e[0],l+=n.length,!1):void 0}),-1!==s)return s+1;throw"Unknown name at position "+l},C=function(){if(i.charAt(l)!==e.charAt(o))throw"Unexpected literal at position "+l;l++};for(o=0;e.length>
4o;o++)if(y)"'"!==e.charAt(o)||b("'")?C():y=!1;else switch(e.charAt(o)){case"d":v=w("d");break;case"D":x("D",d,u);break;case"o":_=w("o");break;case"m":g=w("m");break;case"M":g=x("M",p,f);break;case"y":m=w("y");break;case"@":m=(r=new Date(w("@"))).getFullYear(),g=r.getMonth()+1,v=r.getDate();break;case"!":m=(r=new Date((w("!")-this._ticksTo1970)/1e4)).getFullYear(),g=r.getMonth()+1,v=r.getDate();break;case"'":b("'")?C():y=!0;break;default:C()}if(i.length>l&&(a=i.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===m?m=(new Date).getFullYear():100>m&&(m+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c>=m?0:-100)),_>-1)for(g=1,v=_;!((s=this._getDaysInMonth(m,g-1))>=v);)g++,v-=s;if((r=this._daylightSavingAdjust(new Date(m,g-1,v))).getFullYear()!==m||r.getMonth()+1!==g||r.getDate()!==v)throw"Invalid date";return r},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:864e9*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925)),formatDate:function(t,e,i){if(!e)return"";var n,o=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,s=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,r=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=t.length>n+1&&t.charAt(n+1)===e;return i&&n++,i},h=function(t,e,i){var n=""+e;if(l(t))for(;i>n.length;)n="0"+n;return n},c=function(t,e,i,n){return l(t)?n[e]:i[e]},d="",u=!1;if(e)for(n=0;t.length>n;n++)if(u)"'"!==t.charAt(n)||l("'")?d+=t.charAt(n):u=!1;else switch(t.charAt(n)){case"d":d+=h("d",e.getDate(),2);break;case"D":d+=c("D",e.getDay(),o,s);break;case"o":d+=h("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=h("m",e.getMonth()+1,2);break;case"M":d+=c("M",e.getMonth(),a,r);break;case"y":d+=l("y")?e.getFullYear():(10>e.getFullYear()%100?"0":"")+e.getFullYear()%100;break;case"@":d+=e.getTime();break;case"!":d+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":u=!0;break;default:d+=t.charAt(n)}return d},_possibleChars:function(t){var e,i="",n=!1,o=function(i){var n=t.length>e+1&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;t.length>e;e++)if(n)"'"!==t.charAt(e)||o("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":o("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,o=this._getDefaultDate(t),s=o,a=this._getFormatConfig(t);try{s=this.parseDate(i,n,a)||o}catch(t){n=e?"":n}t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),t.currentDay=n?s.getDate():0,t.currentMonth=n?s.getMonth():0,t.currentYear=n?s.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var o,s=null==i||""===i?n:"string"==typeof i?function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,o=n.getFullYear(),s=n.getMonth(),a=n.getDate(),r=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=r.exec(i);l;){switch(l[2]||"d"){case"d":case"D":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":s+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(o,s));break;case"y":case"Y":o+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(o,s))}l=r.exec(i)}return new Date(o,s,a)}(i):"number"==typeof i?isNaN(i)?n:((o=new Date).setDate(o.getDate()+i),o):new Date(i.getTime());return(s=s&&"Invalid Date"==""+s?n:s)&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null}
4,_setDate:function(t,e,i){var n=t.selectedMonth,o=t.selectedYear,s=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=s.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=s.getMonth(),t.drawYear=t.selectedYear=t.currentYear=s.getFullYear(),n===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(e?this._formatDate(t):"")},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){t(this).on(this.getAttribute("data-event"),{prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}}[this.getAttribute("data-handler")])})},_generateHTML:function(t){var e,i,n,o,s,a,r,l,h,c,d,u,p,f,m,g,v,_,y,b,w,x,C,T,k,S,E,P,I,M,A,D,O,N,z,H,B,j,W,R=new Date,F=this._daylightSavingAdjust(new Date(R.getFullYear(),R.getMonth(),R.getDate())),q=this._get(t,"isRTL"),Z=this._get(t,"showButtonPanel"),V=this._get(t,"hideIfNoPrevNext"),U=this._get(t,"navigationAsDateFormat"),Y=this._getNumberOfMonths(t),K=this._get(t,"showCurrentAtPos"),G=this._get(t,"stepMonths"),Q=1!==Y[0]||1!==Y[1],X=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(t,"min"),tt=this._getMinMaxDate(t,"max"),te=t.drawMonth-K,ti=t.drawYear;if(0>te&&(te+=12,ti--),tt)for(e=this._daylightSavingAdjust(new Date(tt.getFullYear(),tt.getMonth()-Y[0]*Y[1]+1,tt.getDate())),e=J&&J>e?J:e;this._daylightSavingAdjust(new Date(ti,te,1))>e;)0>--te&&(te=11,ti--);for(t.drawMonth=te,t.drawYear=ti,i=this._get(t,"prevText"),i=U?this.formatDate(i,this._daylightSavingAdjust(new Date(ti,te-G,1)),this._getFormatConfig(t)):i,n=this._canAdjustMonth(t,-1,ti,te)?"<a class='ui-datepicker-prev ui-corner-all' data-handler='prev' data-event='click' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(q?"e":"w")+"'>"+i+"</span></a>":V?"":"<a class='ui-datepicker-prev ui-corner-all ui-state-disabled' title='"+i+"'><span class='ui-icon ui-icon-circle-triangle-"+(q?"e":"w")+"'>"+i+"</span></a>",o=this._get(t,"nextText"),o=U?this.formatDate(o,this._daylightSavingAdjust(new Date(ti,te+G,1)),this._getFormatConfig(t)):o,s=this._canAdjustMonth(t,1,ti,te)?"<a class='ui-datepicker-next ui-corner-all' data-handler='next' data-event='click' title='"+o+"'><span class='ui-icon ui-icon-circle-triangle-"+(q?"w":"e")+"'>"+o+"</span></a>":V?"":"<a class='ui-datepicker-next ui-corner-all ui-state-disabled' title='"+o+"'><span class='ui-icon ui-icon-circle-triangle-"+(q?"w":"e")+"'>"+o+"</span></a>",a=this._get(t,"currentText"),r=this._get(t,"gotoCurrent")&&t.currentDay?X:F,a=U?this.formatDate(a,r,this._getFormatConfig(t)):a,l=t.inline?"":"<button type='button' class='ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all' data-handler='hide' data-event='click'>"+this._get(t,"closeText")+"</button>",h=Z?"<div class='ui-datepicker-buttonpane ui-widget-content'>"+(q?l:"")+(this._isInRange(t,r)?"<button type='button' class='ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all' data-handler='today' data-event='click'>"+a+"</button>":"")+(q?"":l)+"</div>":"",c=isNaN(c=parseInt(this._get(t,"firstDay"),10))?0:c,d=this._get(t,"showWeek"),u=this._get(t,"dayNames"),p=this._get(t,"dayNamesMin"),f=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),g=this._get(t,"beforeShowDay"),v=this._get(t,"showOtherMonths"),_=this._get(t,"selectOtherMonths"),y=this._getDefaultDate(t),b="",x=0;Y[0]>x;x++){for(C="",this.maxRows=4,T=0;Y[1]>T;T++){if(k=this._daylightSavingAdjust(new Date(ti,te,t.selectedDay)),S=" ui-corner-all",E="",Q){if(E+="<div class='ui-datepicker-group",Y[1]>1)switch(T){case 0:E+=" ui-datepicker-group-first",S=" ui-corner-"+(q?"right":"left");break;case Y[1]-1:E+=" ui-datepicker-group-last",S=" ui-corner-"+(q?"left"
vendor: 4,604 bytes, line 4
4:"right");break;default:E+=" ui-datepicker-group-middle",S=""}E+="'>"}for(E+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+S+"'>"+(/all|left/.test(S)&&0===x?q?s:n:"")+(/all|right/.test(S)&&0===x?q?n:s:"")+this._generateMonthYearHeader(t,te,ti,J,tt,x>0||T>0,f,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",P=d?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",w=0;7>w;w++)I=(w+c)%7,P+="<th scope='col'"+((w+c+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+u[I]+"'>"+p[I]+"</span></th>";for(E+=P+"</tr></thead><tbody>",M=this._getDaysInMonth(ti,te),ti===t.selectedYear&&te===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,M)),D=Math.ceil(((A=(this._getFirstDayOfMonth(ti,te)-c+7)%7)+M)/7),O=Q&&this.maxRows>D?this.maxRows:D,this.maxRows=O,N=this._daylightSavingAdjust(new Date(ti,te,1-A)),z=0;O>z;z++){for(E+="<tr>",H=d?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(N)+"</td>":"",w=0;7>w;w++)B=g?g.apply(t.input?t.input[0]:null,[N]):[!0,""],W=(j=N.getMonth()!==te)&&!_||!B[0]||J&&J>N||tt&&N>tt,H+="<td class='"+((w+c+6)%7>=5?" ui-datepicker-week-end":"")+(j?" ui-datepicker-other-month":"")+(N.getTime()===k.getTime()&&te===t.selectedMonth&&t._keyEvent||y.getTime()===N.getTime()&&y.getTime()===k.getTime()?" "+this._dayOverClass:"")+(W?" "+this._unselectableClass+" ui-state-disabled":"")+(j&&!v?"":" "+B[1]+(N.getTime()===X.getTime()?" "+this._currentClass:"")+(N.getTime()===F.getTime()?" ui-datepicker-today":""))+"'"+((!j||v)&&B[2]?" title='"+B[2].replace(/'/g,"'")+"'":"")+(W?"":" data-handler='selectDay' data-event='click' data-month='"+N.getMonth()+"' data-year='"+N.getFullYear()+"'")+">"+(j&&!v?" ":W?"<span class='ui-state-default'>"+N.getDate()+"</span>":"<a class='ui-state-default"+(N.getTime()===F.getTime()?" ui-state-highlight":"")+(N.getTime()===X.getTime()?" ui-state-active":"")+(j?" ui-priority-secondary":"")+"' href='#'>"+N.getDate()+"</a>")+"</td>",N.setDate(N.getDate()+1),N=this._daylightSavingAdjust(N);E+=H+"</tr>"}++te>11&&(te=0,ti++),E+="</tbody></table>"+(Q?"</div>"+(Y[0]>0&&T===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),C+=E}b+=C}return b+=h,t._keyEvent=!1,b},_generateMonthYearHeader:function(t,e,i,n,o,s,a,r){var l,h,c,d,u,p,f,m,g=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),_=this._get(t,"showMonthAfterYear"),y="<div class='ui-datepicker-title'>",b="";if(s||!g)b+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=n&&n.getFullYear()===i,h=o&&o.getFullYear()===i,b+="<select class='ui-datepicker-month' data-handler='selectMonth' data-event='change'>",c=0;12>c;c++)(!l||c>=n.getMonth())&&(!h||o.getMonth()>=c)&&(b+="<option value='"+c+"'"+(c===e?" selected='selected'":"")+">"+r[c]+"</option>");b+="</select>"}if(_||(y+=b+(!s&&g&&v?"":" ")),!t.yearshtml){if(t.yearshtml="",s||!v)y+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(t,"yearRange").split(":"),u=(new Date).getFullYear(),m=Math.max(f=(p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?u+parseInt(t,10):parseInt(t,10);return isNaN(e)?u:e})(d[0]),p(d[1]||"")),f=n?Math.max(f,n.getFullYear()):f,m=o?Math.min(m,o.getFullYear()):m,t.yearshtml+="<select class='ui-datepicker-year' data-handler='selectYear' data-event='change'>";m>=f;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",y+=t.yearshtml,t.yearshtml=null}}return y+=this._get(t,"yearSuffix"),_&&(y+=(!s&&g&&v?"":" ")+b),y+="</div>"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),o=t.selectedMonth+("M"===i?e:0),s=Math.min(t.selectedDay,this._getDaysInMonth(n,o))+("D"===i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,o,s)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),o=i&&i>e?i:e;return n&&o>n?n:o},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()}
vendor: 37,234 bytes, line 4
4,_canAdjustMonth:function(t,e,i,n){var o=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(0>e?e:o[0]*o[1]),1));return 0>e&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i,n,o=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),a=null,r=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),a=parseInt(i[0],10),r=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=n),i[1].match(/[+\-].*/)&&(r+=n)),(!o||e.getTime()>=o.getTime())&&(!s||e.getTime()<=s.getTime())&&(!a||e.getFullYear()>=a)&&(!r||r>=e.getFullYear())},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var o=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),o,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2==arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new e,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.12.1",t.datepicker,t.widget("ui.dialog",{version:"1.12.1",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;0>i&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,function(){i._trigger("close",e)}))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var n=!1,o=this.uiDialog.siblings(".ui-front:visible").map(function(){return+t(this).css("z-index")}).get(),s=Math.max.apply(null,o);return s>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",s+1),n=!0),n&&!i&&this._trigger("focus",e),n},open:function(){var e=this;return this._isOpen?void(this._moveToTop()&&this._focusTabbable()):(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,function(){e._focusTabbable(),e._trigger("focus")}),this._makeFocusTarget(),void this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;t||(t=this.element.find("[autofocus]")),t.length||(t=this.element.find(":tabbable")),t.length||(t=this.uiDialogButtonPane.find(":tabbable")),t.length||(t=this.uiDialogTitlebarClose.filter(":tabbable")),t.length||(t=this.uiDialog),t.eq(0).trigger("focus")},_keepFocus:function(e){function i(){var e=t.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()}e.preventDefault(),i.call(this),this._delay(i)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);if(e.keyCode===t.ui.keyCode.TAB&&!e.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),n=i.filter(":first"),o=i.filter(":last");e.target!==o[0]&&e.target!==this.uiDialog[0]||e.shiftKey?(e.target===n[0]||e.target===this.uiDialog[0])&&e.shiftKey&&(this._delay(function(){o.trigger("focus")}),e.preventDefault()):(this._delay(function(){n.trigger("focus")}),e.preventDefault())}},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;return this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||t.isArray(i)&&!i.length?void this._removeClass(this.uiDialog,"ui-dialog-buttons"):(t.each(i,function(i,n){var o,s;n=t.isFunction(n)?{click:n,text:i}:n,o=(n=t.extend({type:"button"},n)).click,s={icon:n.icon,iconPosition:n.iconPosition,showLabel:n.showLabel,icons:n.icons,text:n.text},delete n.click,delete n.icon,delete n.iconPosition,delete n.showLabel,delete n.icons,"boolean"==typeof n.text&&delete n.text,t("<button></button>",n).button(s).appendTo(e.uiButtonSet).on("click",function(){o.apply(e.element[0],arguments)})}),this._addClass(this.uiDialog,"ui-dialog-buttons"),void this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){function e(t){return{position:t.position,offset:t.offset}}var i=this,n=this.options;this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(n,o){i._addClass(t(this),"ui-dialog-dragging"),i._blockFrames(),i._trigger("dragStart",n,e(o))},drag:function(t,n){i._trigger("drag",t,e(n))},stop:function(o,s){var a=s.offset.left-i.document.scrollLeft(),r=s.offset.top-i.document.scrollTop();n.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(r>=0?"+":"")+r,of:i.window},i._removeClass(t(this),"ui-dialog-dragging"),i._unblockFrames(),i._trigger("dragStop",o,e(s))}})},_makeResizable:function(){function e(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}var i=this,n=this.options,o=n.resizable,s=this.uiDialog.css("position");this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:n.maxWidth,maxHeight:n.maxHeight,minWidth:n.minWidth,minHeight:this._minHeight(),handles:"string"==typeof o?o:"n,e,s,w,se,sw,ne,nw",start:function(n,o){i._addClass(t(this),"ui-dialog-resizing"),i._blockFrames(),i._trigger("resizeStart",n,e(o))},resize:function(t,n){i._trigger("resize",t,e(n))},stop:function(o,s){var a=i.uiDialog.offset(),r=a.left-i.document.scrollLeft(),l=a.top-i.document.scrollTop();n.height=i.uiDialog.height(),n.width=i.uiDialog.width(),n.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" top"+(l>=0?"+":"")+l,of:i.window},i._removeClass(t(this),"ui-dialog-resizing"),i._unblockFrames(),i._trigger("resizeStop",o,e(s))}}).css("position",s)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),i=t.inArray(this,e);-1!==i&&e.splice(i,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||(t=[],this.document.data("ui-dialog-instances",t)),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var i=this,n=!1,o={};t.each(e,function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(n=!0),t in i.resizableRelatedOptions&&(o[t]=e)}),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",o)},_setOption:function(e,i){var n,o,s=this.uiDialog;"disabled"!==e&&(this._super(e,i),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&((n=s.is(":data(ui-draggable)"))&&!i&&s.draggable("destroy"),!n&&i&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&((o=s.is(":data(ui-resizable)"))&&!i&&s.resizable("destroy"),o&&"string"==typeof i&&s.resizable("option","handles",i),o||!1===i||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map(function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".ui-dialog").length||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var e=!0;this._delay(function(){e=!1}),this.document.data("ui-dialog-overlays")||this._on(this.document,{focusin:function(t){e||this._allowInteraction(t)||(t.preventDefault(),this._trackingInstances()[0]._focusTabbable())}}),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1)}},_destroyOverlay:function(){if(this.options.modal&&this.overlay){var t=this.document.data("ui-dialog-overlays")-1;t?this.document.data("ui-dialog-overlays",t):(this._off(this.document,"focusin"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==t.uiBackCompat&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),t.ui.dialog,t.widget("ui.progressbar",{version:"1.12.1",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){return void 0===t?this.options.value:(this.options.value=this._constrainedValue(t),void this._refreshValue())},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.12.1",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=t()},_drawButton:function(){var e,i=this,n=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.focus(),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(n).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",function(){i._rendered||i._refreshMenu()})},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,i){t.preventDefault(),e._setSelection(),e._select(i.item.data("ui-selectmenu-item"),t)},focus:function(t,i){var n=i.item.data("ui-selectmenu-item");null!=e.focusIndex&&n.index!==e.focusIndex&&(e._trigger("focus",t,{item:n}),e.isOpen||e._select(n,t)),e.focusIndex=n.index,e.button.attr("aria-activedescendant",e.menuItems.eq(n.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t,e=this.element.find("option");this.menu.empty(),this._parseOptions(e),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,e.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var i=t("<span>");return this._setText(i,e.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(e,i){var n=this,o="";t.each(i,function(i,s){var a;s.optgroup!==o&&(a=t("<li>",{text:s.optgroup}),n._addClass(a,"ui-selectmenu-optgroup","ui-menu-divider"+(s.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),a.appendTo(e),o=s.optgroup),n._renderItemData(e,s)})},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,i){var n=t("<li>"),o=t("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(n,null,"ui-state-disabled"),this._setText(o,i.label),n.append(o).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html(" ")},_move:function(t,e){var i,n,o=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),o+=":not(.ui-state-disabled)"),(n="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](o).eq(-1):i[t+"All"](o).eq(0)).length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.focus())},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+t.ui.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var i=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),i=!1}i&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){var e=this.menuItems.eq(t.index).attr("id");this.button.attr({"aria-labelledby":e,"aria-activedescendant":e}),this.menu.attr("aria-activedescendant",e)},_setOption:function(t,e){if("icons"===t){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)}this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return e&&(e=e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)),e&&e[0]||(e=this.element.closest(".ui-front, dialog")),e.length||(e=this.document[0].body),e},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;return!1===t?void this.button.css("width",""):(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),void this.button.outerWidth(t))},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(e){var i=this,n=[];e.each(function(e,o){n.push(i._parseOption(t(o),e))}),this.items=n},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{version:"1.12.1",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i,n=this.options,o=this.element.find(".ui-slider-handle"),s=[];for(i=n.values&&n.values.length||1,o.length>i&&(o.slice(i).remove(),o=o.slice(0,i)),e=o.length;i>e;e++)s.push("<span tabindex='0'></span>");this.handles=o.add(t(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each(function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)})},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:t.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),("min"===e.range||"max"===e.range)&&this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,n,o,s,a,r,l,h=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:e.pageX,y:e.pageY},n=this._normValueFromMouse(i),o=this._valueMax()-this._valueMin()+1,this.handles.each(function(e){var i=Math.abs(n-h.values(e));(o>i||o===i&&(e===h._lastChangedValue||h.values(e)===c.min))&&(o=i,s=t(this),a=e)}),!1!==this._start(e,a)&&(this._mouseSliding=!0,this._handleIndex=a,this._addClass(s,null,"ui-state-active"),s.trigger("focus"),r=s.offset(),l=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:e.pageX-r.left-s.width()/2,top:e.pageY-r.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,a,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY},i=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,i),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e,i,n,o,s;return"horizontal"===this.orientation?(e=this.elementSize.width,i=t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,i=t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(n=i/e)>1&&(n=1),0>n&&(n=0),"vertical"===this.orientation&&(n=1-n),o=this._valueMax()-this._valueMin(),s=this._valueMin()+n*o,this._trimAlignValue(s)},_uiHash:function(t,e,i){var n={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==e?e:this.values(t),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var n,o=this.value(),s=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),o=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(n,i):Math.max(n,i)),s[e]=i),i!==o&&!1!==this._trigger("slide",t,this._uiHash(e,i,s))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,i){var n,o,s;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(i),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!t.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(n=this.options.values,o=arguments[0],s=0;n.length>s;s+=1)n[s]=this._trimAlignValue(o[s]),this._change(null,s);this._refreshValue()},_setOption:function(e,i){var n,o=0;switch("range"===e&&!0===this.options.range&&("min"===i?(this.options.value=this._values(0),this.options.values=null):"max"===i&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),t.isArray(this.options.values)&&(o=this.options.values.length),this._super(e,i),e){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(i),this.handles.css("horizontal"===i?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),n=o-1;n>=0;n--)this._change(null,n);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i,n;if(arguments.length)return e=this.options.values[t],e=this._trimAlignValue(e);if(this._hasMultipleValues()){for(i=this.options.values.slice(),n=0;i.length>n;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(t){if(this._valueMin()>=t)return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=this.options.step>0?this.options.step:1,i=(t-this._valueMin())%e,n=t-i;return 2*Math.abs(i)>=e&&(n+=i>0?e:-e),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return -1===i?0:e.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,n,o,s,a=this.options.range,r=this.options,l=this,h=!this._animateOff&&r.animate,c={};this._hasMultipleValues()?this.handles.each(function(n){i=100*((l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())),c["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[h?"animate":"css"](c,r.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[h?"animate":"css"]({left:i+"%"},r.animate),1===n&&l.range[h?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:r.animate})):(0===n&&l.range.stop(1,1)[h?"animate":"css"]({bottom:i+"%"},r.animate),1===n&&l.range[h?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:r.animate}))),e=i}):(n=this.value(),o=this._valueMin(),i=(s=this._valueMax())!==o?100*((n-o)/(s-o)):0,c["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[h?"animate":"css"](c,r.animate),"min"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({width:i+"%"},r.animate),"max"===a&&"horizontal"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({width:100-i+"%"},r.animate),"min"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({height:i+"%"},r.animate),"max"===a&&"vertical"===this.orientation&&this.range.stop(1,1)[h?"animate":"css"]({height:100-i+"%"},r.animate))},_handleEvents:{keydown:function(e){var i,n,o,s=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,s)))return}switch(o=this.options.step,i=n=this._hasMultipleValues()?this.values(s):this.value(),e.keyCode){case t.ui.keyCode.HOME:n=this._valueMin();break;case t.ui.keyCode.END:n=this._valueMax();break;case t.ui.keyCode.PAGE_UP:n=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;n=this._trimAlignValue(i+o);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;n=this._trimAlignValue(i-o)}this._slide(e,s,n)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}}),t.widget("ui.spinner",{version:"1.12.1",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),i=this.element;return t.each(["min","max","step"],function(t,n){var o=i.attr(n);null!=o&&o.length&&(e[n]=o)}),e}
4,_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(this._stop(),this._refresh(),void(this.previous!==this.element.val()&&this._trigger("change",t)))},mousewheel:function(t,e){if(e){if(!this.spinning&&!this._start(t))return!1;this._spin((e>0?1:-1)*this.options.step,t),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay(function(){this.spinning&&this._stop(t)},100),t.preventDefault()}},"mousedown .ui-spinner-button":function(e){var i;function n(){this.element[0]===t.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=i,this._delay(function(){this.previous=i}))}i=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay(function(){delete this.cancelBlur,n.call(this)}),!1!==this._start(e)&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){return t(e.currentTarget).hasClass("ui-state-active")?!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e):void 0},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&this.uiSpinner.height()>0&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_start:function(t){return(!!this.spinning||!1!==this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0,!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay(function(){this._repeat(40,e,i)},t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(e){var i=this.options.incremental;return i?t.isFunction(i)?i(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min&&(t=Math.max(t,this._precisionOf(this.options.min))),t},_precisionOf:function(t){var e=""+t,i=e.indexOf(".");return -1===i?0:e.length-i-1},_adjustValue:function(t){var e,i,n=this.options;return i=Math.round((i=t-(e=null!==n.min?n.min:0))/n.step)*n.step,t=parseFloat((t=e+i).toFixed(this._precision())),null!==n.max&&t>n.max?n.max:null!==n.min&&n.min>t?n.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i,n,o;return"culture"===t||"numberFormat"===t?(i=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(i))):(("max"===t||"min"===t||"step"===t)&&"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,e.up),o=this.buttons.last().find(".ui-icon"),this._removeClass(o,null,this.options.icons.down),this._addClass(o,null,e.down)),void this._super(t,e))},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:s(function(t){this._super(t)}),_parse:function(t){return"string"==typeof t&&""!==t&&(t=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t),""===t||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:s(function(t){this._stepUp(t)}),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:s(function(t){this._stepDown(t)}),_stepDown:function(t){this._start()&&(this._spin(-((t||1)*this.options.step)),this._stop())},pageUp:s(function(t){this._stepUp((t||1)*this.options.page)}),pageDown:s(function(t){this._stepDown((t||1)*this.options.page)}),value:function(t){return arguments.length?void s(this._value).call(this,t):this._parse(this.element.val())},widget:function(){return this.uiSpinner}}
vendor: 18,280 bytes, line 4
4),!1!==t.uiBackCompat&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),t.ui.spinner,t.widget("ui.tabs",{version:"1.12.1",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(d=/#.*$/,function(t){var e,i;e=t.href.replace(d,""),i=location.href.replace(d,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return t.hash.length>1&&e===i}),_create:function(){var e=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),t.isArray(i.disabled)&&(i.disabled=t.unique(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),function(t){return e.tabs.index(t)}))).sort()),this.active=!1!==this.options.active&&this.anchors.length?this._findActive(i.active):t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&&(n&&this.tabs.each(function(i,o){return t(o).attr("aria-controls")===n?(e=i,!1):void 0}),null===e&&(e=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),(null===e||-1===e)&&(e=!!this.tabs.length&&0)),!1!==e&&-1===(e=this.tabs.index(this.tabs.eq(e)))&&(e=!i&&0),!i&&!1===e&&this.anchors.length&&(e=0),e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(t.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(i),o=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:o=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,o),e.ctrlKey||e.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay(function(){this.option("active",n)},this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){for(var n=this.tabs.length-1;-1!==t.inArray((e>n&&(e=0),0>e&&(e=n),e),this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){return"active"===t?void this._activate(e):(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),void("heightStyle"===t&&this._setupHeightStyle(e)))},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),function(t){return i.index(t)}),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,i=this.tabs,n=this.anchors,o=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()}).on("focus"+this.eventNamespace,".ui-tabs-anchor",function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()}),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map(function(){return t("a",this)[0]}).attr({role:"presentation",tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=t(),this.anchors.each(function(i,n){var o,s,a,r=t(n).uniqueId().attr("id"),l=t(n).closest("li"),h=l.attr("aria-controls");e._isLocal(n)?(a=(o=n.hash).substring(1),s=e.element.find(e._sanitizeSelector(o))):(o="#"+(a=l.attr("aria-controls")||t({}).uniqueId()[0].id),(s=e.element.find(o)).length||(s=e._createPanel(a)).insertAfter(e.panels[i-1]||e.tablist),s.attr("aria-live","polite")),s.length&&(e.panels=e.panels.add(s)),h&&l.data("ui-tabs-aria-controls",h),l.attr({"aria-controls":a,"aria-labelledby":r}),s.attr("aria-labelledby",r)}),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(n.not(this.anchors)),this._off(o.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var i,n,o;for(t.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),o=0;n=this.tabs[o];o++)i=t(n),!0===e||-1!==t.inArray(o,e)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===e)},_setupEvents:function(e){var i={};e&&t.each(e.split(" "),function(t,e){i[e]="_eventHandler"}),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n=this.element.parent();"fill"===e?(i=n.height()-(this.element.outerHeight()-this.element.height()),this.element.siblings(":visible").each(function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(i-=e.outerHeight(!0))}),this.element.children().not(this.panels).each(function(){i-=t(this).outerHeight(!0)}),this.panels.each(function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))}).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each(function(){i=Math.max(i,t(this).height("").height())}).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,o=t(e.currentTarget).closest("li"),s=o[0]===n[0],a=s&&i.collapsible,r=a?t():this._getPanelForTab(o),l=n.length?this._getPanelForTab(n):t(),h={oldTab:n,oldPanel:l,newTab:a?t():o,newPanel:r};e.preventDefault(),o.hasClass("ui-state-disabled")||o.hasClass("ui-tabs-loading")||this.running||s&&!i.collapsible||!1===this._trigger("beforeActivate",e,h)||(i.active=!a&&this.tabs.index(o),this.active=s?t():o,this.xhr&&this.xhr.abort(),l.length||r.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),r.length&&this.load(this.tabs.index(o),e),this._toggle(e,h))},_toggle:function(e,i){function n(){s.running=!1,s._trigger("activate",e,i)}function o(){s._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),a.length&&s.options.show?s._show(a,s.options.show,n):(a.show(),n())}var s=this,a=i.newPanel,r=i.oldPanel;this.running=!0,r.length&&this.options.hide?this._hide(r,this.options.hide,function(){s._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),o()}):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),r.hide(),o()),r.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),a.length&&r.length?i.oldTab.attr("tabIndex",-1):a.length&&this.tabs.filter(function(){return 0===t(this).attr("tabIndex")}).attr("tabIndex",-1),a.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){var i,n=this._findActive(e);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return!1===e?t():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e&&(e=this.anchors.index(this.anchors.filter("[href$='"+t.ui.escapeSelector(e)+"']"))),e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each(function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")}),this.tabs.each(function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")}),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;!1!==i&&(void 0===e?i=!1:(e=this._getIndex(e),i=t.isArray(i)?t.map(i,function(t){return t!==e?t:null}):t.map(this.tabs,function(t,i){return i!==e?i:null})),this._setOptionDisabled(i))},disable:function(e){var i=this.options.disabled;if(!0!==i){if(void 0===e)i=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,i))return;i=t.isArray(i)?t.merge([e],i).sort():[e]}this._setOptionDisabled(i)}},load:function(e,i){e=this._getIndex(e);var n=this,o=this.tabs.eq(e),s=o.find(".ui-tabs-anchor"),a=this._getPanelForTab(o),r={tab:o,panel:a},l=function(t,e){"abort"===e&&n.panels.stop(!1,!0),n._removeClass(o,"ui-tabs-loading"),a.removeAttr("aria-busy"),t===n.xhr&&delete n.xhr};this._isLocal(s[0])||(this.xhr=t.ajax(this._ajaxSettings(s,i,r)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(o,"ui-tabs-loading"),a.attr("aria-busy","true"),this.xhr.done(function(t,e,o){setTimeout(function(){a.html(t),n._trigger("load",i,r),l(o,e)},1)}).fail(function(t,e){setTimeout(function(){l(t,e)},1)})))},_ajaxSettings:function(e,i,n){var o=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,s){return o._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:s},n))}}},_getPanelForTab:function(e){var i=t(e).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),!1!==t.uiBackCompat&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),t.ui.tabs,t.widget("ui.tooltip",{version:"1.12.1",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title")||"";return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(e,i){var n=(e.attr("aria-describedby")||"").split(/\s+/);n.push(i),e.data("ui-tooltip-id",i).attr("aria-describedby",t.trim(n.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/),o=t.inArray(i,n);-1!==o&&n.splice(o,1),e.removeData("ui-tooltip-id"),(n=t.trim(n.join(" ")))?e.attr("aria-describedby",n):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,i){var n=this;this._super(e,i),"content"===e&&t.each(this.tooltips,function(t,e){n._updateContent(e.element)})},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,function(i,n){var o=t.Event("blur");o.target=o.currentTarget=n.element[0],e.close(o,!0)}),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter(function(){var e=t(this);return e.is("[title]")?e.data("ui-tooltip-title",e.attr("title")).removeAttr("title"):void 0}))},_enable:function(){this.disabledTitles.each(function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))}),this.disabledTitles=t([])},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&n.parents().each(function(){var e,n=t(this);n.data("ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))}),this._registerCloseHandlers(e,n),this._updateContent(n,e))},_updateContent:function(t,e){var i,n=this.options.content,o=this,s=e?e.type:null;return"string"==typeof n||n.nodeType||n.jquery?this._open(e,t,n):void((i=n.call(t[0],function(i){o._delay(function(){t.data("ui-tooltip-open")&&(e&&(e.type=s),this._open(e,t,i))})}))&&this._open(e,t,i))},_open:function(e,i,n){function o(t){h.of=t,a.is(":hidden")||a.position(h)}var s,a,r,l,h=t.extend({},this.options.position);if(n){if(s=this._find(i))return void s.tooltip.find(".ui-tooltip-content").html(n);i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),a=(s=this._tooltip(i)).tooltip,this._addDescribedBy(i,a.attr("id")),a.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),(l=t("<div>").html(a.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),l.removeAttr("id").find("[id]").removeAttr("id"),l.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:o}),o(e)):a.position(t.extend({of:i},this.options.position)),a.hide(),this._show(a,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval(function(){a.is(":visible")&&(o(h.of),clearInterval(r))},t.fx.interval)),this._trigger("open",e,{tooltip:a})}},_registerCloseHandlers:function(e,i){var n={keyup:function(e){if(e.keyCode===t.ui.keyCode.ESCAPE){var n=t.Event(e);n.currentTarget=i[0],this.close(n,!0)}}};i[0]!==this.element[0]&&(n.remove=function(){this._removeTooltip(this._find(i).tooltip)}),e&&"mouseover"!==e.type||(n.mouseleave="close"),e&&"focusin"!==e.type||(n.focusout="close"),this._on(!0,i,n)},close:function(e){var i,n=this,o=t(e?e.currentTarget:this.element),s=this._find(o);return s?(i=s.tooltip,void(s.closing||(clearInterval(this.delayedShow),o.data("ui-tooltip-title")&&!o.attr("title")&&o.attr("title",o.data("ui-tooltip-title")),this._removeDescribedBy(o),s.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,function(){n._removeTooltip(t(this))}),o.removeData("ui-tooltip-open"),this._off(o,"mouseleave focusout keyup"),o[0]!==this.element[0]&&this._off(o,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,function(e,i){t(i.element).attr("title",i.title),delete n.parents[e]}),s.closing=!0,this._trigger("close",e,{tooltip:i}),s.hiding||(s.closing=!1)))):void o.removeData("ui-tooltip-open")},_tooltip:function(e){var i=t("<div>").attr("role","tooltip"),n=t("<div>").appendTo(i),o=i.uniqueId().attr("id");return this._addClass(n,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(e)),this.tooltips[o]={element:e,tooltip:i}},_find:function(t){var e=t.data("ui-tooltip-id");return e?this.tooltips[e]:null},_removeTooltip:function(t){t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){var e=t.closest(".ui-front, dialog");return e.length||(e=this.document[0].body),e},_destroy:function(){var e=this;t.each(this.tooltips,function(i,n){var o=t.Event("blur"),s=n.element;o.target=o.currentTarget=s[0],e.close(o,!0),t("#"+i).remove(),s.data("ui-tooltip-title")&&(s.attr("title")||s.attr("title",s.data("ui-tooltip-title")),s.removeData("ui-tooltip-title"))}),this.liveRegion.remove()}}),!1!==t.uiBackCompat&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),t.ui.tooltip;var b="ui-effects-",w="ui-effects-style",x="ui-effects-animated";t.effects={effect:{}},function(t,e){function i(t,e,i){var n=c[e.type]||{};return null==t?i||!e.def?null:e.def:isNaN(t=n.floor?~~t:parseFloat(t))?e.def:n.mod?(t+n.mod)%n.mod:0>t?0:t>n.max?n.max:t}function n(i){var n=l(),o=n._rgba=[];return i=i.toLowerCase(),p(r,function(t,s){var a,r=s.re.exec(i),l=r&&s.parse(r),c=s.space||"rgba";return l?(a=n[c](l),n[h[c].cache]=a[h[c].cache],o=n._rgba=a._rgba,
vendor: 5,733 bytes, line 4
4!1):e}),o.length?("0,0,0,0"===o.join()&&t.extend(o,s.transparent),n):s[i]}function o(t,e,i){return 1>6*(i=(i+1)%1)?t+6*(e-t)*i:1>2*i?e:2>3*i?t+6*(e-t)*(2/3-i):t}var s,a=/^([\-+])=\s*(\d+\.?\d*)/,r=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16)]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16)]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],l=t.Color=function(e,i,n,o){return new t.Color.fn.parse(e,i,n,o)},h={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},c={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},d=l.support={},u=t("<p>")[0],p=t.each;u.style.cssText="background-color:rgba(1,1,1,.5)",d.rgba=u.style.backgroundColor.indexOf("rgba")>-1,p(h,function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}}),l.fn=t.extend(l.prototype,{parse:function(o,a,r,c){if(o===e)return this._rgba=[null,null,null,null],this;(o.jquery||o.nodeType)&&(o=t(o).css(a),a=e);var d=this,u=t.type(o),f=this._rgba=[];return a!==e&&(o=[o,a,r,c],u="array"),"string"===u?this.parse(n(o)||s._default):"array"===u?(p(h.rgba.props,function(t,e){f[e.idx]=i(o[e.idx],e)}),this):"object"===u?(o instanceof l?p(h,function(t,e){o[e.cache]&&(d[e.cache]=o[e.cache].slice())}):p(h,function(e,n){var s=n.cache;p(n.props,function(t,e){if(!d[s]&&n.to){if("alpha"===t||null==o[t])return;d[s]=n.to(d._rgba)}d[s][e.idx]=i(o[t],e,!0)}),d[s]&&0>t.inArray(null,d[s].slice(0,3))&&(d[s][3]=1,n.from&&(d._rgba=n.from(d[s])))}),this):e},is:function(t){var i=l(t),n=!0,o=this;return p(h,function(t,s){var a,r=i[s.cache];return r&&(a=o[s.cache]||s.to&&s.to(o._rgba)||[],p(s.props,function(t,i){return null!=r[i.idx]?n=r[i.idx]===a[i.idx]:e})),n}),n},_space:function(){var t=[],e=this;return p(h,function(i,n){e[n.cache]&&t.push(i)}),t.pop()},transition:function(t,e){var n=l(t),o=n._space(),s=h[o],a=0===this.alpha()?l("transparent"):this,r=a[s.cache]||s.to(a._rgba),d=r.slice();return n=n[s.cache],p(s.props,function(t,o){var s=o.idx,a=r[s],l=n[s],h=c[o.type]||{};null!==l&&(null===a?d[s]=l:(h.mod&&(l-a>h.mod/2?a+=h.mod:a-l>h.mod/2&&(a-=h.mod)),d[s]=i((l-a)*e+a,o)))}),this[o](d)},blend:function(e){if(1===this._rgba[3])return this;var i=this._rgba.slice(),n=i.pop(),o=l(e)._rgba;return l(t.map(i,function(t,e){return(1-n)*o[e]+n*t}))},toRgbaString:function(){var e="rgba(",i=t.map(this._rgba,function(t,e){return null==t?e>2?1:0:t});return 1===i[3]&&(i.pop(),e="rgb("),e+i.join()+")"},toHslaString:function(){var e="hsla(",i=t.map(this.hsla(),function(t,e){return null==t&&(t=e>2?1:0),e&&3>e&&(t=Math.round(100*t)+"%"),t});return 1===i[3]&&(i.pop(),e="hsl("),e+i.join()+")"},toHexString:function(e){var i=this._rgba.slice(),n=i.pop();return e&&i.push(~~(255*n)),"#"+t.map(i,function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t}).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),l.fn.parse.prototype=l.fn,h.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,i=t[1]/255,n=t[2]/255,o=t[3],s=Math.max(e,i,n),a=Math.min(e,i,n),r=s-a,l=s+a,h=.5*l;return[Math.round(a===s?0:e===s?60*(i-n)/r+360:i===s?60*(n-e)/r+120:60*(e-i)/r+240)%360,0===r?0:.5>=h?r/l:r/(2-l),h,null==o?1:o]},h.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2],s=t[3],a=.5>=n?n*(1+i):n+i-n*i,r=2*n-a;return[Math.round(255*o(r,a,e+1/3)),Math.round(255*o(r,a,e)),Math.round(255*o(r,a,e-1/3)),s]},p(h,function(n,o){var s=o.props,r=o.cache,h=o.to,c=o.from;l.fn[n]=function(n){if(h&&!this[r]&&(this[r]=h(this._rgba)),n===e)return this[r].slice();var o,a=t.type(n),d="array"===a||"object"===a?n:arguments,u=this[r].slice();return p(s,function(t,e){var n=d["object"===a?t:e.idx];null==n&&(n=u[e.idx]),u[e.idx]=i(n,e)}),c?((o=l(c(u)))[r]=u,o):l(u)},p(s,function(e,i){l.fn[e]||(l.fn[e]=function(o){var s,r=t.type(o),l="alpha"===e?this._hsla?"hsla":"rgba":n,h=this[l](),c=h[i.idx];return"undefined"===r?c:("function"===r&&(o=o.call(this,c),r=t.type(o)),null==o&&i.empty?this:("string"===r&&(s=a.exec(o))&&(o=c+parseFloat(s[2])*("+"===s[1]?1:-1)),h[i.idx]=o,this[l](h)))})})}),l.hook=function(e){p(e.split(" "),function(e,i){t.cssHooks[i]={set:function(e,o){var s,a,r="";if("transparent"!==o&&("string"!==t.type(o)||(s=n(o)))){if(o=l(s||o),!d.rgba&&1!==o._rgba[3]){for(a="backgroundColor"===i?e.parentNode:e;(""===r||"transparent"===r)&&a&&a.style;)try{r=t.css(a,"backgroundColor"),a=a.parentNode}catch(t){}o=o.blend(r&&"transparent"!==r?r:"_default")}o=o.toRgbaString()}try{e.style[i]=o}catch(t){}}},t.fx.step[i]=function(e){e.colorInit||(e.start=l(e.elem,i),e.end=l(e.end),e.colorInit=!0),t.cssHooks[i].set(e.elem,e.start.transition(e.end,e.pos))}})},l.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),t.cssHooks.borderColor={expand:function(t){var e={};return p(["Top","Right","Bottom","Left"],function(i,n){e["border"+n+"Color"]=t}),e}}
4,s=t.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"}}(t),function(){function e(e){var i,n,o=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,s={};if(o&&o.length&&o[0]&&o[o[0]])for(n=o.length;n--;)i=o[n],"string"==typeof o[i]&&(s[t.camelCase(i)]=o[i]);else for(i in o)"string"==typeof o[i]&&(s[i]=o[i]);return s}var i,n,o,s=["add","remove","toggle"],a={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],function(e,i){t.fx.step[i]=function(e){("none"===e.end||e.setAttr)&&(1!==e.pos||e.setAttr)||(t.style(e.elem,i,e.end),e.setAttr=!0)}}),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(i,n,o,r){var l=t.speed(n,o,r);return this.queue(function(){var n,o=t(this),r=o.attr("class")||"",h=l.children?o.find("*").addBack():o;h=h.map(function(){return{el:t(this),start:e(this)}}),(n=function(){t.each(s,function(t,e){i[e]&&o[e+"Class"](i[e])})})(),h=h.map(function(){return this.end=e(this.el[0]),this.diff=function(e,i){var n,o,s={};for(n in i)o=i[n],e[n]!==o&&(a[n]||(t.fx.step[n]||!isNaN(parseFloat(o)))&&(s[n]=o));return s}(this.start,this.end),this}),o.attr("class",r),h=h.map(function(){var e=this,i=t.Deferred(),n=t.extend({},l,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()}),t.when.apply(t,h.get()).done(function(){n(),t.each(arguments,function(){var e=this.el;t.each(this.diff,function(t){e.css(t,"")})}),l.complete.call(o[0])})})},t.fn.extend({addClass:(i=t.fn.addClass,function(e,n,o,s){return n?t.effects.animateClass.call(this,{add:e},n,o,s):i.apply(this,arguments)}),removeClass:(n=t.fn.removeClass,function(e,i,o,s){return arguments.length>1?t.effects.animateClass.call(this,{remove:e},i,o,s):n.apply(this,arguments)}),toggleClass:(o=t.fn.toggleClass,function(e,i,n,s,a){return"boolean"==typeof i||void 0===i?n?t.effects.animateClass.call(this,i?{add:e}:{remove:e},n,s,a):o.apply(this,arguments):t.effects.animateClass.call(this,{toggle:e},i,n,s)}),switchClass:function(e,i,n,o,s){return t.effects.animateClass.call(this,{add:i,remove:e},n,o,s)}})}(),function(){var e,i,n,o;function s(e,i,n,o){return t.isPlainObject(e)&&(i=e,e=e.effect),e={effect:e},null==i&&(i={}),t.isFunction(i)&&(o=i,n=null,i={}),("number"==typeof i||t.fx.speeds[i])&&(o=n,n=i,i={}),t.isFunction(n)&&(o=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=o||i.complete,e}function a(e){return!e||"number"==typeof e||!!t.fx.speeds[e]||"string"==typeof e&&!t.effects.effect[e]||!!t.isFunction(e)||"object"==typeof e&&!e.effect}function r(t,e){var i=e.outerWidth(),n=e.outerHeight(),o=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,n,0];return{top:parseFloat(o[1])||0,right:"auto"===o[2]?i:parseFloat(o[2]),bottom:"auto"===o[3]?n:parseFloat(o[3]),left:parseFloat(o[4])||0}}t.expr&&t.expr.filters&&t.expr.filters.animated&&(t.expr.filters.animated=(e=t.expr.filters.animated,function(i){return!!t(i).data(x)||e(i)})),!1!==t.uiBackCompat&&t.extend(t.effects,{save:function(t,e){for(var i=0,n=e.length;n>i;i++)null!==e[i]&&t.data(b+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,n=0,o=e.length;o>n;n++)null!==e[n]&&(i=t.data(b+e[n]),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e&&(e=t.is(":hidden")?"show":"hide"),e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),o={width:e.width(),height:e.height()},s=document.activeElement;try{s.id}catch(t){s=document.body}return e.wrap(n),(e[0]===s||t.contains(e[0],s))&&t(s).trigger("focus"),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")}),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(o),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),(e[0]===i||t.contains(e[0],i))&&t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.12.1",define:function(e,i,n){return n||(n=i,i="effect"),t.effects.effect[e]=n,t.effects.effect[e].mode=i,n}
vendor: 5,930 bytes, line 4
4,scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(e||100)/100:1,o="vertical"!==i?(e||100)/100:1;return{height:t.height()*o,width:t.width()*n,outerHeight:t.outerHeight()*o,outerWidth:t.outerWidth()*n}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var n=t.queue();e>1&&n.splice.apply(n,[1,0].concat(n.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(w,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(w)||"",t.removeData(w)},mode:function(t,e){var i=t.is(":hidden");return"toggle"===e&&(e=i?"show":"hide"),(i?"hide"===e:"show"===e)&&(e="none"),e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createPlaceholder:function(e){var i,n=e.css("position"),o=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",i=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(b+"placeholder",i)),e.css({position:n,left:o.left,top:o.top}),i},removePlaceholder:function(t){var e=b+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,n,o){return o=o||{},t.each(i,function(t,i){var s=e.cssUnit(i);s[0]>0&&(o[i]=s[0]*n+s[1])}),o}}),t.fn.extend({effect:function(){function e(e){function s(){t.isFunction(l)&&l.call(a[0]),t.isFunction(e)&&e()}var a=t(this);i.mode=c.shift(),!1===t.uiBackCompat||o?"none"===i.mode?(a[h](),s()):n.call(a[0],i,function(){a.removeData(x),t.effects.cleanUp(a),"hide"===i.mode&&a.hide(),s()}):(a.is(":hidden")?"hide"===h:"show"===h)?(a[h](),s()):n.call(a[0],i,s)}var i=s.apply(this,arguments),n=t.effects.effect[i.effect],o=n.mode,a=i.queue,r=a||"fx",l=i.complete,h=i.mode,c=[],d=function(e){var i=t(this),n=t.effects.mode(i,h)||o;i.data(x,!0),c.push(n),o&&("show"===n||n===o&&"hide"===n)&&i.show(),o&&"none"===n||t.effects.saveStyle(i),t.isFunction(e)&&e()};return t.fx.off||!n?h?this[h](i.duration,l):this.each(function(){l&&l.call(this)}):!1===a?this.each(d).each(e):this.queue(r,d).queue(r,e)},show:(i=t.fn.show,function(t){if(a(t))return i.apply(this,arguments);var e=s.apply(this,arguments);return e.mode="show",this.effect.call(this,e)}),hide:(n=t.fn.hide,function(t){if(a(t))return n.apply(this,arguments);var e=s.apply(this,arguments);return e.mode="hide",this.effect.call(this,e)}),toggle:(o=t.fn.toggle,function(t){if(a(t)||"boolean"==typeof t)return o.apply(this,arguments);var e=s.apply(this,arguments);return e.mode="toggle",this.effect.call(this,e)}),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],function(t,e){i.indexOf(e)>0&&(n=[parseFloat(i),e])}),n},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):r(this.css("clip"),this)},transfer:function(e,i){var n=t(this),o=t(e.to),s="fixed"===o.css("position"),a=t("body"),r=s?a.scrollTop():0,l=s?a.scrollLeft():0,h=o.offset(),c={top:h.top-r,left:h.left-l,height:o.innerHeight(),width:o.innerWidth()},d=n.offset(),u=t("<div class='ui-effects-transfer'></div>").appendTo("body").addClass(e.className).css({top:d.top-r,left:d.left-l,height:n.innerHeight(),width:n.innerWidth(),position:s?"fixed":"absolute"}).animate(c,e.duration,e.easing,function(){u.remove(),t.isFunction(i)&&i()})}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=r(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})}}(),u={},t.each(["Quad","Cubic","Quart","Quint","Expo"],function(t,e){u[e]=function(e){return Math.pow(e,t+2)}}),t.extend(u,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;((e=Math.pow(2,--i))-1)/11>t;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(u,function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return .5>t?i(2*t)/2:1-i(-2*t+2)/2}});var f=t.effects;t.effects.define("blind","hide",function(e,i){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},o=t(this),s=e.direction||"up",a=o.cssClip(),r={clip:t.extend({},a)},l=t.effects.createPlaceholder(o);r.clip[n[s][0]]=r.clip[n[s][1]],"show"===e.mode&&(o.cssClip(r.clip),l&&l.css(t.effects.clipToBox(r)),r.clip=a),l&&l.animate(t.effects.clipToBox(r),e.duration,e.easing),o.animate(r,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("bounce",function(e,i){var n,o,s,a=t(this),r=e.mode,l="hide"===r,h="show"===r,c=e.direction||"up",d=e.distance,u=e.times||5,p=2*u+(h||l?1:0),f=e.duration/p,m=e.easing,g="up"===c||"down"===c?"top":"left",v="up"===c||"left"===c,_=0,y=a.queue().length;
4for(t.effects.createPlaceholder(a),s=a.css(g),d||(d=a["top"===g?"outerHeight":"outerWidth"]()/3),h&&((o={opacity:1})[g]=s,a.css("opacity",0).css(g,v?-(2*d):2*d).animate(o,f,m)),l&&(d/=Math.pow(2,u-1)),(o={})[g]=s;u>_;_++)(n={})[g]=(v?"-=":"+=")+d,a.animate(n,f,m).animate(o,f,m),d=l?2*d:d/2;l&&((n={opacity:0})[g]=(v?"-=":"+=")+d,a.animate(n,f,m)),a.queue(i),t.effects.unshift(a,y,p+1)}),t.effects.define("clip","hide",function(e,i){var n,o={},s=t(this),a=e.direction||"vertical",r="both"===a,l=r||"horizontal"===a,h=r||"vertical"===a;n=s.cssClip(),o.clip={top:h?(n.bottom-n.top)/2:n.top,right:l?(n.right-n.left)/2:n.right,bottom:h?(n.bottom-n.top)/2:n.bottom,left:l?(n.right-n.left)/2:n.left},t.effects.createPlaceholder(s),"show"===e.mode&&(s.cssClip(o.clip),o.clip=n),s.animate(o,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("drop","hide",function(e,i){var n,o=t(this),s=e.mode,a=e.direction||"left",r="up"===a||"down"===a?"top":"left",l="up"===a||"left"===a?"-=":"+=",h={opacity:0};t.effects.createPlaceholder(o),n=e.distance||o["top"===r?"outerHeight":"outerWidth"](!0)/2,h[r]=l+n,"show"===s&&(o.css(h),h[r]=("+="===l?"-=":"+=")+n,h.opacity=1),o.animate(h,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("explode","hide",function(e,i){function n(){v.push(this),v.length===c*d&&(u.css({visibility:"visible"}),t(v).remove(),i())}var o,s,a,r,l,h,c=e.pieces?Math.round(Math.sqrt(e.pieces)):3,d=c,u=t(this),p="show"===e.mode,f=u.show().css("visibility","hidden").offset(),m=Math.ceil(u.outerWidth()/d),g=Math.ceil(u.outerHeight()/c),v=[];for(o=0;c>o;o++)for(r=f.top+o*g,h=o-(c-1)/2,s=0;d>s;s++)a=f.left+s*m,l=s-(d-1)/2,u.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*m,top:-o*g}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:m,height:g,left:a+(p?l*m:0),top:r+(p?h*g:0),opacity:p?0:1}).animate({left:a+(p?0:l*m),top:r+(p?0:h*g),opacity:p?1:0},e.duration||500,e.easing,n)}),t.effects.define("fade","toggle",function(e,i){var n="show"===e.mode;t(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("fold","hide",function(e,i){var n=t(this),o=e.mode,s=e.size||15,a=/([0-9]+)%/.exec(s),r=e.horizFirst?["right","bottom"]:["bottom","right"],l=e.duration/2,h=t.effects.createPlaceholder(n),c=n.cssClip(),d={clip:t.extend({},c)},u={clip:t.extend({},c)},p=[c[r[0]],c[r[1]]],f=n.queue().length;a&&(s=parseInt(a[1],10)/100*p["hide"===o?0:1]),d.clip[r[0]]=s,u.clip[r[0]]=s,u.clip[r[1]]=0,"show"===o&&(n.cssClip(u.clip),h&&h.css(t.effects.clipToBox(u)),u.clip=c),n.queue(function(i){h&&h.animate(t.effects.clipToBox(d),l,e.easing).animate(t.effects.clipToBox(u),l,e.easing),i()}).animate(d,l,e.easing).animate(u,l,e.easing).queue(i),t.effects.unshift(n,f,4)}),t.effects.define("highlight","show",function(e,i){var n=t(this),o={backgroundColor:n.css("backgroundColor")};"hide"===e.mode&&(o.opacity=0),t.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(o,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),t.effects.define("size",function(e,i){var n,o,s,a=t(this),r=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],h=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],c=e.mode,d="effect"!==c,u=e.scale||"both",p=e.origin||["middle","center"],f=a.css("position"),m=a.position(),g=t.effects.scaledDimensions(a),v=e.from||g,_=e.to||t.effects.scaledDimensions(a,0);t.effects.createPlaceholder(a),"show"===c&&(s=v,v=_,_=s),o={from:{y:v.height/g.height,x:v.width/g.width},to:{y:_.height/g.height,x:_.width/g.width}},("box"===u||"both"===u)&&(o.from.y!==o.to.y&&(v=t.effects.setTransition(a,l,o.from.y,v),_=t.effects.setTransition(a,l,o.to.y,_)),o.from.x!==o.to.x&&(v=t.effects.setTransition(a,h,o.from.x,v),_=t.effects.setTransition(a,h,o.to.x,_))),("content"===u||"both"===u)&&o.from.y!==o.to.y&&(v=t.effects.setTransition(a,r,o.from.y,v),_=t.effects.setTransition(a,r,o.to.y,_)),p&&(n=t.effects.getBaseline(p,g),v.top=(g.outerHeight-v.outerHeight)*n.y+m.top,v.left=(g.outerWidth-v.outerWidth)*n.x+m.left,_.top=(g.outerHeight-_.outerHeight)*n.y+m.top,_.left=(g.outerWidth-_.outerWidth)*n.x+m.left),a.css(v),("content"===u||"both"===u)&&(l=l.concat(["marginTop","marginBottom"]).concat(r),h=h.concat(["marginLeft","marginRight"]),a.find("*[width]").each(function(){var i=t(this),n=t.effects.scaledDimensions(i),s={height:n.height*o.from.y,width:n.width*o.from.x,outerHeight:n.outerHeight*o.from.y,outerWidth:n.outerWidth*o.from.x}
4,a={height:n.height*o.to.y,width:n.width*o.to.x,outerHeight:n.height*o.to.y,outerWidth:n.width*o.to.x};o.from.y!==o.to.y&&(s=t.effects.setTransition(i,l,o.from.y,s),a=t.effects.setTransition(i,l,o.to.y,a)),o.from.x!==o.to.x&&(s=t.effects.setTransition(i,h,o.from.x,s),a=t.effects.setTransition(i,h,o.to.x,a)),d&&t.effects.saveStyle(i),i.css(s),i.animate(a,e.duration,e.easing,function(){d&&t.effects.restoreStyle(i)})})),a.animate(_,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=a.offset();0===_.opacity&&a.css("opacity",v.opacity),d||(a.css("position","static"===f?"relative":f).offset(e),t.effects.saveStyle(a)),i()}})}),t.effects.define("scale",function(e,i){var n=t(this),o=e.mode,s=parseInt(e.percent,10)||(0===parseInt(e.percent,10)?0:"effect"!==o?0:100),a=t.extend(!0,{from:t.effects.scaledDimensions(n),to:t.effects.scaledDimensions(n,s,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(a.from.opacity=1,a.to.opacity=0),t.effects.effect.size.call(this,a,i)}),t.effects.define("puff","hide",function(e,i){var n=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150});t.effects.effect.scale.call(this,n,i)}),t.effects.define("pulsate","show",function(e,i){var n=t(this),o=e.mode,s="show"===o,a=2*(e.times||5)+(s||"hide"===o?1:0),r=e.duration/a,l=0,h=1,c=n.queue().length;for((s||!n.is(":visible"))&&(n.css("opacity",0).show(),l=1);a>h;h++)n.animate({opacity:l},r,e.easing),l=1-l;n.animate({opacity:l},r,e.easing),n.queue(i),t.effects.unshift(n,c,a+1)}),t.effects.define("shake",function(e,i){var n=1,o=t(this),s=e.direction||"left",a=e.distance||20,r=e.times||3,l=2*r+1,h=Math.round(e.duration/l),c="up"===s||"down"===s?"top":"left",d="up"===s||"left"===s,u={},p={},f={},m=o.queue().length;for(t.effects.createPlaceholder(o),u[c]=(d?"-=":"+=")+a,p[c]=(d?"+=":"-=")+2*a,f[c]=(d?"-=":"+=")+2*a,o.animate(u,h,e.easing);r>n;n++)o.animate(p,h,e.easing).animate(f,h,e.easing);o.animate(p,h,e.easing).animate(u,h/2,e.easing).queue(i),t.effects.unshift(o,m,l+1)}),t.effects.define("slide","show",function(e,i){var n,o,s=t(this),a={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},r=e.mode,l=e.direction||"left",h="up"===l||"down"===l?"top":"left",c=e.distance||s["top"===h?"outerHeight":"outerWidth"](!0),d={};t.effects.createPlaceholder(s),n=s.cssClip(),o=s.position()[h],d[h]=("up"===l||"left"===l?-1:1)*c+o,d.clip=s.cssClip(),d.clip[a[l][1]]=d.clip[a[l][0]],"show"===r&&(s.cssClip(d.clip),s.css(h,d[h]),d.clip=n,d[h]=o),s.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:i})}),!1!==t.uiBackCompat&&t.effects.define("transfer",function(e,i){t(this).transfer(e,i)})}),jQuery.fn.contactNumberWrapper=function(){this.each(function(){console.log("contactNumberWrapper plugin is not needed anymore. Please remove it from theme")})},function(t){t.fn.desktopDropNav=function(e){var i=t.extend({openCloseClass:"open-close",openerClass:"opener",slideClass:"slide"},e);return this.each(function(){t(this).find("ul").length&&t(this).find("ul").each(function(){var e=t(this).closest("li");e.addClass(i.openCloseClass).children("div").addClass(i.slideClass),function(e,i,n){t(e).addClass(i).appendTo(n)}("<span>",i.openerClass,e.children("a"))})})}}(jQuery),function(t){function e(e){this.options=t.extend({dropDown:">li>ul",fitClass:"set-right"},e),this.init()}e.prototype={init:function(){this.findElements(),this.detectOffset()},findElements:function(){this.holder=t(this.options.holder),this.dropdown=this.holder.find(this.options.dropDown),this.dropdownParent=this.dropdown.parents("li")},detectOffset:function(){var e=this,i=e.holder.width(),n=e.holder.offset().left;e.dropdownParent.each(function(){Math.round(t(this).offset().left)>=n&&i<=Math.round(t(this).offset().left)-n+e.dropdown.width()&&t(this).addClass(e.options.fitClass)})},destroy:function(){this.dropdownParent.removeClass(this.options.fitClass),this.holder.removeData("dropdownFit")}},t.fn.dropdownFit=function(i){return this.each(function(){t(this).data("dropdownFit",new e(t.extend(i,{holder:this})))})}}
4(jQuery),function(t,e){function i(t,e){return t.innerHeight()>e.maxHeight}function n(e,i){for(;t.inArray(e.slice(-1),i.lastCharacter.remove)>-1;)e=e.slice(0,-1);return 0>t.inArray(e.slice(-1),i.lastCharacter.noEllipsis)&&(e+=i.ellipsis),e}function o(t){return{width:t.innerWidth(),height:t.innerHeight()}}function s(t,e){t.innerText?t.innerText=e:t.nodeValue?t.nodeValue=e:t.textContent&&(t.textContent=e)}function a(t){return t.innerText?t.innerText:t.nodeValue?t.nodeValue:t.textContent?t.textContent:""}function r(t){do t=t.previousSibling;while(t&&1!==t.nodeType&&3!==t.nodeType);return t}function l(e,i,n){var o,s=e&&e[0];if(s){if(!n){if(3===s.nodeType)return s;if(t.trim(e.text()))return l(e.contents().last(),i)}for(o=r(s);!o;){if((e=e.parent()).is(i)||!e.length)return!1;o=r(e[0])}if(o)return l(t(o),i)}return!1}if(!t.fn.dotdotdot){t.fn.dotdotdot=function(e){if(0==this.length)return t.fn.dotdotdot.debug('No element found for "'+this.selector+'".'),this;if(this.length>1)return this.each(function(){t(this).dotdotdot(e)});var r,c=this,d=c.contents();c.data("dotdotdot")&&c.trigger("destroy.dot"),c.data("dotdotdot-style",c.attr("style")||""),c.css("word-wrap","break-word"),"nowrap"===c.css("white-space")&&c.css("white-space","normal"),c.bind_events=function(){return c.bind("update.dot",function(e,o){switch(c.removeClass("is-truncated"),e.preventDefault(),e.stopPropagation(),typeof u.height){case"number":u.maxHeight=u.height;break;case"function":u.maxHeight=u.height.call(c[0]);break;default:u.maxHeight=function(t){for(var e=t.innerHeight(),i=["paddingTop","paddingBottom"],n=0,o=i.length;o>n;n++){var s=parseInt(t.css(i[n]),10);isNaN(s)&&(s=0),e-=s}return e}(c)}u.maxHeight+=u.tolerance,void 0!==o&&(("string"==typeof o||"nodeType"in o&&1===o.nodeType)&&(o=t("<div />").append(o).contents()),o instanceof t&&(d=o)),(g=c.wrapInner('<div class="dotdotdot" />').children()).contents().detach().end().append(d.clone(!0)).find("br").replaceWith(" <br /> ").end().css({height:"auto",width:"auto",border:"none",padding:0,margin:0});var r=!1,h=!1;return p.afterElement&&((r=p.afterElement.clone(!0)).show(),p.afterElement.detach()),i(g,u)&&(h="children"==u.wrap?function(t,e,n){var o=t.children(),s=!1;t.empty();for(var a=0,r=o.length;r>a;a++){var l=o.eq(a);if(t.append(l),n&&t.append(n),i(t,e)){l.remove(),s=!0;break}n&&n.detach()}return s}(g,u,r):function e(o,r,h,c,d){var u=!1;return o.contents().detach().each(function(){var p=t(this);if(void 0===this)return!0;if(p.is("script, .dotdotdot-keep"))o.append(p);else{if(u)return!0;o.append(p),!d||p.is(c.after)||p.find(c.after).length||o[o.is("a, table, thead, tbody, tfoot, tr, col, colgroup, object, embed, param, ol, ul, dl, blockquote, select, optgroup, option, textarea, script, style")?"after":"append"](d),i(h,c)&&(u=3==this.nodeType?function(e,o,r,h,c){var d=e[0];if(!d)return!1;var u=a(d),p=-1!==u.indexOf(" ")?" ":" ",f="letter"==h.wrap?"":p,m=u.split(f),g=-1,v=-1,_=0,y=m.length-1;for(h.fallbackToLetter&&0==_&&0==y&&(f="",y=(m=u.split(f)).length-1);y>=_&&(0!=_||0!=y);){var b=Math.floor((_+y)/2);if(b==v)break;v=b,s(d,m.slice(0,v+1).join(f)+h.ellipsis),r.children().each(function(){t(this).toggle().toggle()}),i(r,h)?(y=v,h.fallbackToLetter&&0==_&&0==y&&(f="",m=m[0].split(f),g=-1,v=-1,_=0,y=m.length-1)):(g=v,_=v)}if(-1==g||1==m.length&&0==m[0].length){var w=e.parent();e.detach();var x=c&&c.closest(w).length?c.length:0;if(w.contents().length>x?d=l(w.contents().eq(-1-x),o):(d=l(w,o,!0),x||w.detach()),d&&(u=n(a(d),h),s(d,u),x&&c)){var C=c.parent();t(d).parent().append(c),t.trim(C.html())||C.remove()}}else s(d,u=n(m.slice(0,g+1).join(f),h));return!0}(p,r,h,c,d):e(p,r,h,c,d)),u||d&&d.detach()}}),r.addClass("is-truncated"),u}(g,c,g,u,r)),g.replaceWith(g.contents()),g=null,t.isFunction(u.callback)&&u.callback.call(c[0],h,d),p.isTruncated=h,h}).bind("isTruncated.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(c[0],p.isTruncated),p.isTruncated}).bind("originalContent.dot",function(t,e){return t.preventDefault(),t.stopPropagation(),"function"==typeof e&&e.call(c[0],d),d}).bind("destroy.dot",function(t){t.preventDefault(),t.stopPropagation(),c.unwatch().unbind_events().contents().detach().end().append(d).attr("style",c.data("dotdotdot-style")||"").removeClass("is-truncated").data("dotdotdot",!1)}),c},c.unbind_events=function(){return c.unbind(".dot"),c},c.watch=function(){if(c.unwatch(),"window"==u.watch){var e=t(window),i=e.width(),n=e.height();e.bind("resize.dot"+p.dotId,function(){i==e.width()&&n==e.height()&&u.windowResizeFix||(i=e.width(),n=e.height(),m&&clearInterval(m),m=setTimeout(function(){c.trigger("update.dot")},100))})}else f=o(c),m=setInterval(function(){if(c.is(":visible")){var t=o(c);f.width==t.width&&f.height==t.height||(c.trigger("update.dot"),f=t)}},500);return c},c.unwatch=function(){return t(window).unbind("resize.dot"+p.dotId),m&&clearInterval(m),c};var u=t.extend(!0,{},t.fn.dotdotdot.defaults,e),p={},f={},m=null,g=null;return u.lastCharacter.remove instanceof Array||(u.lastCharacter.remove=t.fn.dotdotdot.defaultArrays.lastCharacter.remove),u.lastCharacter.n
4oEllipsis instanceof Array||(u.lastCharacter.noEllipsis=t.fn.dotdotdot.defaultArrays.lastCharacter.noEllipsis),p.afterElement=!!(r=u.after)&&("string"==typeof r?!!(r=t(r,c)).length&&r:!!r.jquery&&r),p.isTruncated=!1,p.dotId=h++,c.data("dotdotdot",!0).bind_events().trigger("update.dot"),u.watch&&c.watch(),c},t.fn.dotdotdot.defaults={ellipsis:"... ",wrap:"word",fallbackToLetter:!0,lastCharacter:{},tolerance:0,callback:null,after:null,height:null,watch:!1,windowResizeFix:!0},t.fn.dotdotdot.defaultArrays={lastCharacter:{remove:[" "," ",",",";",".","!","?"],noEllipsis:[]}},t.fn.dotdotdot.debug=function(t){};var h=1,c=t.fn.html;t.fn.html=function(i){return i!=e&&!t.isFunction(i)&&this.data("dotdotdot")?this.trigger("update",[i]):c.apply(this,arguments)};var d=t.fn.text;t.fn.text=function(i){return i!=e&&!t.isFunction(i)&&this.data("dotdotdot")?(i=t("<div />").text(i).html(),this.trigger("update",[i])):d.apply(this,arguments)}}}(jQuery),jQuery(document).ready(function(t){t(".dot-ellipsis").each(function(){var e=t(this).hasClass("dot-resize-update"),i=t(this).hasClass("dot-timer-update"),n=0,o=t(this).attr("class").split(/\s+/);t.each(o,function(t,e){var i=e.match(/^dot-height-(\d+)$/);null!==i&&(n=Number(i[1]))});var s={};i&&(s.watch=!0),e&&(s.watch="window"),n>0&&(s.height=n),t(this).dotdotdot(s)})}),jQuery(window).on("load",function(){jQuery(".dot-ellipsis.dot-load-update").trigger("update.dot")});var mql=window.matchMedia("(orientation: portrait)");function moreNav(){var t=$(".navigation").find("ul"),e="sublevel-";if(t.length&&t.children(".more").find("ul").parent().is("div")){var i=t.children(".more").find("ul");i.parent("div").children().unwrap(),i.each(function(){var t=$(this),i=t.parents("ul").length;i>0&&t.wrap(function(){return'<div class="'+e+i+'"></div>'})})}else t.length&&!t.children(".more").find("ul").parent().is("div")&&t.children(".more").find("ul").each(function(){var t=$(this),i=t.parents("ul").length;i>0&&t.wrap(function(){return'<div class="'+e+i+'"></div>'})});t.children(".more").on("click","> a",function(t){t.preventDefault()})}function navigationSublevelWrap(t,e){t.each(function(){var t=$(this),i=t.parents("ul").length;i>0&&t.wrap(function(){return'<div class="'+e+i+'"></div>'})})}mql&&mql.addListener(function(t){$(window).trigger("resize")}),function(t){function e(e){this.options=t.extend({place:"",move:"inside",setClass:!1},e),this.init()}e.prototype={init:function(){this.options.holder&&(this.findElements(),this.setAnchor(),this.move(),this.setClass())},findElements:function(){this.elements={holder:t(this.options.holder),place:t(this.options.place)}},setAnchor:function(){this.anchorElem=t("<span>"),this.anchorElem.attr("data-anchor-id",this.elements.holder.data("moved-id")).insertBefore(this.elements.holder).css("display","none")},move:function(){var t=this,e={after:function(){t.elements.holder.insertAfter(t.elements.place)},before:function(){t.elements.holder.insertBefore(t.elements.place)},inside:function(){t.elements.place.prepend(t.elements.holder)}};void 0!==e[this.options.move]?e[this.options.move]():e.inside()},setClass:function(){this.options.setClass&&this.elements.holder.addClass(this.options.setClass)},destroy:function(){this.elements.holder.insertAfter(this.anchorElem).removeClass(this.options.setClass).removeData("moveElement"),this.anchorElem.remove(),i=[]}},t.fn.moveElement=function(n){return this.each(function(){i.push(this),t.each(i,function(e,n){e===i.length-1&&t(n).attr("data-moved-id",e+1)}),t(this).data("moveElement",new e(t.extend(n,{holder:this})))})};var i=[]}(jQuery),function(t){function e(e){this.options=t.extend({hoverElem:">li",setOnElem:"body",hoverClass:"active"},e),this.init()}e.prototype={init:function(){this.findElements(),this.controlClass()},findElements:function(){this.holder=t(this.options.holder),this.hoverElem=this.holder.find(this.options.hoverElem),this.setOnElem=t(this.options.setOnElem)},controlClass:function(){var e=this,i="ontouchstart"in window||window.DocumentTouch&&document instanceof DocumentTouch,n=/Windows Phone/.test(navigator.userAgent),o=i&&"touchstart"||n&&navigator.pointerEnabled&&"pointerdown"||n&&navigator.msPointerEnabled&&"MSPointerDown"||"mouseenter";i||n?(preventHandler=function(t){t.preventDefault()},this.hoverElem.on(o,function(){var i=function(n){var s=t(n.target);s.is(e.hoverElem)||s.closest(e.hoverElem).length||(e.hoverElem.off("click",preventHandler),t(document).off(o,i),e.setOnElem.removeClass(e.options.hoverClass))};e.setOnElem.hasClass(e.options.hoverClass)||(e.hoverElem.one("click",preventHandler),t(document).on(o,i),e.setOnElem.addClass(e.options.hoverClass))})):this.hoverElem.hover(function(){e.setClass()},function(){e.deleteClass()})},setClass:function(){if(!this.setOnElem.hasClass(this.options.hoverClass))return this.setOnElem.addClass(this.options.hoverClass)},deleteClass:function(){if(this.setOnElem.hasClass(this.options.hoverClass))return this.setOnElem.removeClass(this.options.hoverClass)}},t.fn.setClassOnHover=function(i){return this.each(function(){t(this).data("setClassOnHover",new e(t.extend(i,{holder:this})))})}}(jQuery),function(t){t.fn.slideAccordion=function(n){var o=t.extend({addClassBeforeAnimation:!1,allowClickWhenExpanded:!1,activeClass:"active",opener:".opener",slider:".slide",animSpeed:300,collapsible:!0,closeInactive:!1,event:"click"},n);return this.each(function(){t(this).find(":has("+o.slider+")").each(function(){var n=t(this),s=n.find(o.opener),a=n.find(o.slider);s.bind(o.event,function(t){if(!a.is(":animated")){if(n.hasClass(o.activeClass)){if(o.allowClickWhenExpanded)return;
4o.collapsible&&a.slideUp(o.animSpeed,function(){i(a),n.removeClass(o.activeClass)})}else{var s=n.siblings("."+o.activeClass),r=s.find(o.slider);n.addClass(o.activeClass),e(a).hide().slideDown(o.animSpeed),o.closeInactive&&r.slideUp(o.animSpeed,function(){s.removeClass(o.activeClass),i(r)})}}t.preventDefault()}),n.hasClass(o.activeClass)?e(a):i(a)})})};var e=function(t){return t.css({position:"",top:"",left:"",width:""})},i=function(t){return t.show().css({position:"absolute",top:-9999,left:-9999,width:t.width()})}}(jQuery),ResponsiveHelper=function(t){var e,i=[],n=t(window),o=!1;function s(){var o=n.width();o!==e&&(e=o,t.each(i,function(e,i){t.each(i.data,function(t,e){e.currentActive&&!a(e.range[0],e.range[1])&&(e.currentActive=!1,"function"==typeof e.disableCallback&&e.disableCallback())}),t.each(i.data,function(t,e){!e.currentActive&&a(e.range[0],e.range[1])&&(e.currentActive=!0,"function"==typeof e.enableCallback&&e.enableCallback())})}))}function a(t,i){var n,s="";return t>0&&(s+="(min-width: "+t+"px)"),i<1/0&&(s+=(s?" and ":"")+"(max-width: "+i+"px)"),n=s,window.matchMedia&&o?matchMedia(n).matches:window.styleMedia?styleMedia.matchMedium(n):window.media?media.matchMedium(n):e>=t&&e<=i}return window.matchMedia&&(window.Window&&window.matchMedia===Window.prototype.matchMedia?o=!0:window.matchMedia.toString().indexOf("native")>-1&&(o=!0)),n.bind("load resize orientationchange",s),{addRange:function(n){var o={data:{}};t.each(n,function(t,e){var i;o.data[t]={range:[parseInt((i=t.split(".."))[0],10)||-1/0,parseInt(i[1],10)||1/0].sort(function(t,e){return t-e}),enableCallback:e.on,disableCallback:e.off}}),i.push(o),e=null,s()}}}(jQuery),function(t,e,i,n){"use strict";var o=i("html"),s=i(t),a=i(e),r=i.fancybox=function(){r.open.apply(this,arguments)},l=navigator.userAgent.match(/msie/i),h=null,c=n!==e.createTouch,d=function(t){return t&&t.hasOwnProperty&&t instanceof i},u=function(t){return t&&"string"===i.type(t)},p=function(t){return u(t)&&t.indexOf("%")>0},f=function(t,e){var i=parseInt(t,10)||0;return e&&p(t)&&(i=r.getViewport()[e]/100*i),Math.ceil(i)},m=function(t,e){return f(t,e)+"px"};i.extend(r,{version:"2.1.5",defaults:{padding:15,margin:20,width:800,height:600,minWidth:100,minHeight:100,maxWidth:9999,maxHeight:9999,pixelRatio:1,autoSize:!0,autoHeight:!1,autoWidth:!1,autoResize:!0,autoCenter:!c,fitToView:!0,aspectRatio:!1,topRatio:.5,leftRatio:.5,scrolling:"auto",wrapCSS:"",arrows:!0,closeBtn:!0,closeClick:!1,nextClick:!1,mouseWheel:!0,autoPlay:!1,playSpeed:3e3,preload:3,modal:!1,loop:!0,ajax:{dataType:"html",headers:{"X-fancyBox":!0}},iframe:{scrolling:"auto",preload:!0},swf:{wmode:"transparent",allowfullscreen:"true",allowscriptaccess:"always"},keys:{next:{13:"left",34:"up",39:"left",40:"up"},prev:{8:"right",33:"down",37:"right",38:"down"},close:[27],play:[32],toggle:[70]},direction:{next:"left",prev:"right"},scrollOutside:!0,index:0,type:null,href:null,content:null,title:null,tpl:{wrap:'<div class="fancybox-wrap" tabIndex="-1"><div class="fancybox-skin"><div class="fancybox-outer"><div class="fancybox-inner"></div></div></div></div>',image:'<img class="fancybox-image" src="{href}" alt="" />',iframe:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" frameborder="0" vspace="0" hspace="0" webkitAllowFullScreen mozallowfullscreen allowFullScreen'+(l?' allowtransparency="true"':"")+"></iframe>",error:'<p class="fancybox-error">The requested content cannot be loaded.<br/>Please try again later.</p>',closeBtn:'<a title="Close" class="fancybox-item fancybox-close" href="javascript:;"></a>',next:'<a title="Next" class="fancybox-nav fancybox-next" href="javascript:;"><span></span></a>',prev:'<a title="Previous" class="fancybox-nav fancybox-prev" href="javascript:;"><span></span></a>'},openEffect:"fade",openSpeed:250,openEasing:"swing",openOpacity:!0,openMethod:"zoomIn",closeEffect:"fade",closeSpeed:250,closeEasing:"swing",closeOpacity:!0,closeMethod:"zoomOut",nextEffect:"elastic",nextSpeed:250,nextEasing:"swing",nextMethod:"changeIn",prevEffect:"elastic",prevSpeed:250,prevEasing:"swing",prevMethod:"changeOut",helpers:{overlay:!0,title:!0}
4,onCancel:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeChange:i.noop,beforeClose:i.noop,afterClose:i.noop},group:{},opts:{},previous:null,coming:null,current:null,isActive:!1,isOpen:!1,isOpened:!1,wrap:null,skin:null,outer:null,inner:null,player:{timer:null,isActive:!1},ajaxLoad:null,imgPreload:null,transitions:{},helpers:{},open:function(t,e){if(t&&(i.isPlainObject(e)||(e={}),!1!==r.close(!0)))return i.isArray(t)||(t=d(t)?i(t).get():[t]),i.each(t,function(o,s){var a,l,h,c,p,f,m,g={};"object"===i.type(s)&&(s.nodeType&&(s=i(s)),d(s)?(g={href:s.data("fancybox-href")||s.attr("href"),title:s.data("fancybox-title")||s.attr("title"),isDom:!0,element:s},i.metadata&&i.extend(!0,g,s.metadata())):g=s),a=e.href||g.href||(u(s)?s:null),l=n!==e.title?e.title:g.title||"",(c=(h=e.content||g.content)?"html":e.type||g.type)||!g.isDom||(c=s.data("fancybox-type"))||(c=(p=s.prop("class").match(/fancybox\.(\w+)/))?p[1]:null),u(a)&&(!c&&(r.isImage(a)?c="image":r.isSWF(a)?c="swf":"#"===a.charAt(0)?c="inline":u(s)&&(c="html",h=s)),"ajax"===c&&(a=(f=a.split(/\s+/,2)).shift(),m=f.shift())),h||("inline"===c?a?h=i(u(a)?a.replace(/.*(?=#[^\s]+$)/,""):a):g.isDom&&(h=s):"html"===c?h=a:c||a||!g.isDom||(c="inline",h=s)),i.extend(g,{href:a,type:c,content:h,title:l,selector:m}),t[o]=g}),r.opts=i.extend(!0,{},r.defaults,e),n!==e.keys&&(r.opts.keys=!!e.keys&&i.extend({},r.defaults.keys,e.keys)),r.group=t,r._start(r.opts.index)},cancel:function(){var t=r.coming;t&&!1!==r.trigger("onCancel")&&(r.hideLoading(),r.ajaxLoad&&r.ajaxLoad.abort(),r.ajaxLoad=null,r.imgPreload&&(r.imgPreload.onload=r.imgPreload.onerror=null),t.wrap&&t.wrap.stop(!0,!0).trigger("onReset").remove(),r.coming=null,r.current||r._afterZoomOut(t))},close:function(t){r.cancel(),!1!==r.trigger("beforeClose")&&(r.unbindEvents(),r.isActive&&(r.isOpen&&!0!==t?(r.isOpen=r.isOpened=!1,r.isClosing=!0,i(".fancybox-item, .fancybox-nav").remove(),r.wrap.stop(!0,!0).removeClass("fancybox-opened"),r.transitions[r.current.closeMethod]()):(i(".fancybox-wrap").stop(!0).trigger("onReset").remove(),r._afterZoomOut())))},play:function(t){var e=function(){clearTimeout(r.player.timer)},i=function(){e(),r.current&&r.player.isActive&&(r.player.timer=setTimeout(r.next,r.current.playSpeed))},n=function(){e(),a.unbind(".player"),r.player.isActive=!1,r.trigger("onPlayEnd")};!0!==t&&(r.player.isActive||!1===t)?n():r.current&&(r.current.loop||r.current.index<r.group.length-1)&&(r.player.isActive=!0,a.bind({"onCancel.player beforeClose.player":n,"onUpdate.player":i,"beforeLoad.player":e}),i(),r.trigger("onPlayStart"))},next:function(t){var e=r.current;e&&(u(t)||(t=e.direction.next),r.jumpto(e.index+1,t,"next"))},prev:function(t){var e=r.current;e&&(u(t)||(t=e.direction.prev),r.jumpto(e.index-1,t,"prev"))},jumpto:function(t,e,i){var o=r.current;o&&(t=f(t),r.direction=e||o.direction[t>=o.index?"next":"prev"],r.router=i||"jumpto",o.loop&&(t<0&&(t=o.group.length+t%o.group.length),t%=o.group.length),n!==o.group[t]&&(r.cancel(),r._start(t)))},reposition:function(t,e){var n,o=r.current,s=o?o.wrap:null;s&&(n=r._getPosition(e),t&&"scroll"===t.type?(delete n.position,s.stop(!0,!0).animate(n,200)):(s.css(n),o.pos=i.extend({},o.dim,n)))},update:function(t){var e=t&&t.type,i=!e||"orientationchange"===e;i&&(clearTimeout(h),h=null),r.isOpen&&!h&&(h=setTimeout(function(){var n=r.current;n&&!r.isClosing&&(r.wrap.removeClass("fancybox-tmp"),(i||"load"===e||"resize"===e&&n.autoResize)&&r._setDimension(),"scroll"===e&&n.canShrink||r.reposition(t),r.trigger("onUpdate"),h=null)},i&&!c?0:300))},toggle:function(t){r.isOpen&&(r.current.fitToView="boolean"===i.type(t)?t:!r.current.fitToView,c&&(r.wrap.removeAttr("style").addClass("fancybox-tmp"),r.trigger("onUpdate")),r.update())},hideLoading:function(){a.unbind(".loading"),i("#fancybox-loading").remove()},showLoading:function(){var t,e;r.hideLoading(),t=i('<div id="fancybox-loading"><div></div></div>').click(r.cancel).appendTo("body"),a.bind("keydown.loading",function(t){27===(t.which||t.keyCode)&&(t.preventDefault(),r.cancel())}),r.defaults.fixed||(e=r.getViewport(),t.css({position:"absolute",top:.5*e.h+e.y,left
4:.5*e.w+e.x}))},getViewport:function(){var e=r.current&&r.current.locked||!1,i={x:s.scrollLeft(),y:s.scrollTop()};return e?(i.w=e[0].clientWidth,i.h=e[0].clientHeight):(i.w=c&&t.innerWidth?t.innerWidth:s.width(),i.h=c&&t.innerHeight?t.innerHeight:s.height()),i},unbindEvents:function(){r.wrap&&d(r.wrap)&&r.wrap.unbind(".fb"),a.unbind(".fb"),s.unbind(".fb")},bindEvents:function(){var t,e=r.current;e&&(s.bind("orientationchange.fb"+(c?"":" resize.fb")+(e.autoCenter&&!e.locked?" scroll.fb":""),r.update),(t=e.keys)&&a.bind("keydown.fb",function(o){var s=o.which||o.keyCode,a=o.target||o.srcElement;if(27===s&&r.coming)return!1;o.ctrlKey||o.altKey||o.shiftKey||o.metaKey||a&&(a.type||i(a).is("[contenteditable]"))||i.each(t,function(t,a){return e.group.length>1&&n!==a[s]?(r[t](a[s]),o.preventDefault(),!1):i.inArray(s,a)>-1?(r[t](),o.preventDefault(),!1):void 0})}),i.fn.mousewheel&&e.mouseWheel&&r.wrap.bind("mousewheel.fb",function(t,n,o,s){for(var a,l=i(t.target||null),h=!1;l.length&&!(h||l.is(".fancybox-skin")||l.is(".fancybox-wrap"));)h=(a=l[0])&&!(a.style.overflow&&"hidden"===a.style.overflow)&&(a.clientWidth&&a.scrollWidth>a.clientWidth||a.clientHeight&&a.scrollHeight>a.clientHeight),l=i(l).parent();0===n||h||!(r.group.length>1)||e.canShrink||(s>0||o>0?r.prev(s>0?"down":"left"):(s<0||o<0)&&r.next(s<0?"up":"right"),t.preventDefault())}))},trigger:function(t,e){var n,o=e||r.coming||r.current;if(o){if(i.isFunction(o[t])&&(n=o[t].apply(o,Array.prototype.slice.call(arguments,1))),!1===n)return!1;
4o.helpers&&i.each(o.helpers,function(e,n){n&&r.helpers[e]&&i.isFunction(r.helpers[e][t])&&r.helpers[e][t](i.extend(!0,{},r.helpers[e].defaults,n),o)}),a.trigger(t)}},isImage:function(t){return u(t)&&t.match(/(^data:image\/.*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg)((\?|#).*)?$)/i)},isSWF:function(t){return u(t)&&t.match(/\.(swf)((\?|#).*)?$/i)},_start:function(t){var e,n,o,s,a,l={};if(t=f(t),!(e=r.group[t]||null))return!1;if(s=(l=i.extend(!0,{},r.opts,e)).margin,a=l.padding,"number"===i.type(s)&&(l.margin=[s,s,s,s]),"number"===i.type(a)&&(l.padding=[a,a,a,a]),l.modal&&i.extend(!0,l,{closeBtn:!1,closeClick:!1,nextClick:!1,arrows:!1,mouseWheel:!1,keys:null,helpers:{overlay:{closeClick:!1}}}),l.autoSize&&(l.autoWidth=l.autoHeight=!0),"auto"===l.width&&(l.autoWidth=!0),"auto"===l.height&&(l.autoHeight=!0),l.group=r.group,l.index=t,r.coming=l,!1===r.trigger("beforeLoad")){r.coming=null;return}if(o=l.type,n=l.href,!o)return r.coming=null,!!r.current&&!!r.router&&"jumpto"!==r.router&&(r.current.index=t,r[r.router](r.direction));if(r.isActive=!0,("image"===o||"swf"===o)&&(l.autoHeight=l.autoWidth=!1,l.scrolling="visible"),"image"===o&&(l.aspectRatio=!0),"iframe"===o&&c&&(l.scrolling="scroll"),l.wrap=i(l.tpl.wrap).addClass("fancybox-"+(c?"mobile":"desktop")+" fancybox-type-"+o+" fancybox-tmp "+l.wrapCSS).appendTo(l.parent||"body"),i.extend(l,{skin:i(".fancybox-skin",l.wrap),outer:i(".fancybox-outer",l.wrap),inner:i(".fancybox-inner",l.wrap)}),i.each(["Top","Right","Bottom","Left"],function(t,e){l.skin.css("padding"+e,m(l.padding[t]))}),r.trigger("onReady"),"inline"===o||"html"===o){if(!l.content||!l.content.length)return r._error("content")}else if(!n)return r._error("href");"image"===o?r._loadImage():"ajax"===o?r._loadAjax():"iframe"===o?r._loadIframe():r._afterLoad()},_error:function(t){i.extend(r.coming,{type:"html",autoWidth:!0,autoHeight:!0,minWidth:0,minHeight:0,scrolling:"no",hasError:t,content:r.coming.tpl.error}),r._afterLoad()},_loadImage:function(){var t=r.imgPreload=new Image;t.onload=function(){this.onload=this.onerror=null,r.coming.width=this.width/r.opts.pixelRatio,r.coming.height=this.height/r.opts.pixelRatio,r._afterLoad()},t.onerror=function(){this.onload=this.onerror=null,r._error("image")},t.src=r.coming.href,!0!==t.complete&&r.showLoading()},_loadAjax:function(){var t=r.coming;r.showLoading(),r.ajaxLoad=i.ajax(i.extend({},t.ajax,{url:t.href,error:function(t,e){r.coming&&"abort"!==e?r._error("ajax",t):r.hideLoading()},success:function(e,i){"success"===i&&(t.content=e,r._afterLoad())}}))},_loadIframe:function(){var t=r.coming,e=i(t.tpl.iframe.replace(/\{rnd\}/g,new Date().getTime())).attr("scrolling",c?"auto":t.iframe.scrolling).attr("src",t.href);i(t.wrap).bind("onReset",function(){try{i(this).find("iframe").hide().attr("src","//about:blank").end().empty()}catch(t){}}),t.iframe.preload&&(r.showLoading(),e.one("load",function(){i(this).data("ready",1),c||i(this).bind("load.fb",r.update),i(this).parents(".fancybox-wrap").width("100%").removeClass("fancybox-tmp").show(),r._afterLoad()})),t.content=e.appendTo(t.inner),t.iframe.preload||r._afterLoad()},_preloadImages:function(){var t,e,i=r.group,n=r.current,o=i.length,s=n.preload?Math.min(n.preload,o-1):0;for(e=1;e<=s;e+=1)"image"===(t=i[(n.index+e)%o]).type&&t.href&&(new Image().src=t.href)},_afterLoad:function(){var t,e,n,o,s,a=r.coming,l=r.current,h="fancybox-placeholder";if(r.hideLoading(),a&&!1!==r.isActive){if(!1===r.trigger("afterLoad",a,l)){a.wrap.stop(!0).trigger("onReset").remove(),r.coming=null;return}switch(l&&(r.trigger("beforeChange",l),l.wrap.stop(!0).removeClass("fancybox-opened").find(".fancybox-item, .fancybox-nav").remove()),r.unbindEvents(),t=a.content,e=a.type,n=a.scrolling,i.extend(r,{wrap:a.wrap,skin:a.skin,outer:a.outer,inner:a.inner,current:a,previous:l}),o=a.href,e){case"inline":case"ajax":case"html":a.selector?t=i("<div>").html(t).find(a.selector):d(t)&&(t.data(h)||t.data(h,i('<div class="'+h+'"></div>').insertAfter(t).hide()),t=t.show().detach(),a.wrap.bind("onReset",function(){i(this).find(t).length&&t.hide().replaceAll(t.data(h)).data(h,!1)}));break;case"image":t=a.tpl.image.replace("{href}",o);break;case"swf":t='<object id="fancybox-swf" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="100%" height="100%"><param name="movie" value="'+o+'"></param>',s="",i.each(a.swf,function(e,i){t+='<param name="'+e+'" value="'+i+'"></param>',s+=" "+e+'="'+i+'"'}),t+='<embed src="'+o+'" type="application/x-shockwave-flash" width="100%" height="100%"'+s+"></embed></object>"}d(t)&&t.parent().is(a.inner)||a.inner.append(t),r.trigger("beforeShow"),a.inner.css("overflow","yes"===n?"scroll":"no"===n?"hidden":n),r._setDimension(),r.reposition(),r.isOpen=!1,r.coming=null,r.bindEvents(),r.isOpened?l.prevMethod&&r.transitions[l.prevMethod]():i(".fancybox-wrap").not(a.wrap).stop(!0).trigger("onReset").remove(),r.transitions[r.isOpened?a.nextMethod:a.openMethod](),r._preloadImages()}},_setDimension:function(){var t,e,n,o,s,a,l,h,c,d,u,g,v,_,y,b=r.getViewport(),w=0,x=!1,C=!1,T=r.wrap,k=r.skin,S=r.inner,E=r.current,P=E.width,I=E.height,M=E.minWidth,A=E.minHeight,D=E.maxWidth,O=E.maxHeight,N=E.scrolling,z=E.scrollOutside?E.scrollbarWidth:0,H=E.margin,B=f(H[1]+H[3]),j=f(H[0]+H[2]);if(T.add(k).add(S).width("auto").height("auto").removeClass("fancybox-tmp"),t=f(k.outerWidth(!0)-k.width()),e=f(k.outerHeight(!0)-k.height()),n=B+t,o=j+e,s=p(P)?(b.w-n)*f(P)/100:P,a=p(I)?(b.h-o)*f(I
4)/100:I,"iframe"===E.type){if(_=E.content,E.autoHeight&&1===_.data("ready"))try{_[0].contentWindow.document.location&&(S.width(s).height(9999),y=_.contents().find("body"),z&&y.css("overflow-x","hidden"),a=y.outerHeight(!0))}catch(t){}}else(E.autoWidth||E.autoHeight)&&(S.addClass("fancybox-tmp"),E.autoWidth||S.width(s),E.autoHeight||S.height(a),E.autoWidth&&(s=S.width()),E.autoHeight&&(a=S.height()),S.removeClass("fancybox-tmp"));if(P=f(s),I=f(a),c=s/a,M=f(p(M)?f(M,"w")-n:M),D=f(p(D)?f(D,"w")-n:D),A=f(p(A)?f(A,"h")-o:A),O=f(p(O)?f(O,"h")-o:O),l=D,h=O,E.fitToView&&(D=Math.min(b.w-n,D),O=Math.min(b.h-o,O)),g=b.w-B,v=b.h-j,E.aspectRatio?(P>D&&(I=f((P=D)/c)),I>O&&(P=f((I=O)*c)),P<M&&(I=f((P=M)/c)),I<A&&(P=f((I=A)*c))):(P=Math.max(M,Math.min(P,D)),E.autoHeight&&"iframe"!==E.type&&(S.width(P),I=S.height()),I=Math.max(A,Math.min(I,O))),E.fitToView){if(S.width(P).height(I),T.width(P+t),d=T.width(),u=T.height(),E.aspectRatio)for(;(d>g||u>v)&&P>M&&I>A&&!(w++>19);)(P=f((I=Math.max(A,Math.min(O,I-10)))*c))<M&&(I=f((P=M)/c)),P>D&&(I=f((P=D)/c)),S.width(P).height(I),T.width(P+t),d=T.width(),u=T.height();else P=Math.max(M,Math.min(P,P-(d-g))),I=Math.max(A,Math.min(I,I-(u-v)))}z&&"auto"===N&&I<a&&P+t+z<g&&(P+=z),S.width(P).height(I),T.width(P+t),d=T.width(),u=T.height(),x=(d>g||u>v)&&P>M&&I>A,C=E.aspectRatio?P<l&&I<h&&P<s&&I<a:(P<l||I<h)&&(P<s||I<a),i.extend(E,{dim:{width:m(d),height:m(u)},origWidth:s,origHeight:a,canShrink:x,canExpand:C,wPadding:t,hPadding:e,wrapSpace:u-k.outerHeight(!0),skinSpace:k.height()-I}),!_&&E.autoHeight&&I>A&&I<O&&!C&&S.height("auto")},_getPosition:function(t){var e=r.current,i=r.getViewport(),n=e.margin,o=r.wrap.width()+n[1]+n[3],s=r.wrap.height()+n[0]+n[2],a={position:"absolute",top:n[0],left:n[3]};return e.autoCenter&&e.fixed&&!t&&s<=i.h&&o<=i.w?a.position="fixed":e.locked||(a.top+=i.y,a.left+=i.x),a.top=m(Math.max(a.top,a.top+(i.h-s)*e.topRatio)),a.left=m(Math.max(a.left,a.left+(i.w-o)*e.leftRatio)),a},_afterZoomIn:function(){var t=r.current;t&&(r.isOpen=r.isOpened=!0,r.wrap.css("overflow","visible").addClass("fancybox-opened"),r.update(
4),(t.closeClick||t.nextClick&&r.group.length>1)&&r.inner.css("cursor","pointer").bind("click.fb",function(e){i(e.target).is("a")||i(e.target).parent().is("a")||(e.preventDefault(),r[t.closeClick?"close":"next"]())}),t.closeBtn&&i(t.tpl.closeBtn).appendTo(r.skin).bind("click.fb",function(t){t.preventDefault(),r.close()}),t.arrows&&r.group.length>1&&((t.loop||t.index>0)&&i(t.tpl.prev).appendTo(r.outer).bind("click.fb",r.prev),(t.loop||t.index<r.group.length-1)&&i(t.tpl.next).appendTo(r.outer).bind("click.fb",r.next)),r.trigger("afterShow"),t.loop||t.index!==t.group.length-1?r.opts.autoPlay&&!r.player.isActive&&(r.opts.autoPlay=!1,r.play()):r.play(!1))},_afterZoomOut:function(t){t=t||r.current,i(".fancybox-wrap").trigger("onReset").remove(),i.extend(r,{group:{},opts:{},router:!1,current:null,isActive:!1,isOpened:!1,isOpen:!1,isClosing:!1,wrap:null,skin:null,outer:null,inner:null}),r.trigger("afterClose",t)}}),r.transitions={getOrigPosition:function(){var t=r.current,e=t.element,i=t.orig,n={},o=50,s=50,a=t.hPadding,l=t.wPadding,h=r.getViewport();return!i&&t.isDom&&e.is(":visible")&&!(i=e.find("img:first")).length&&(i=e),d(i)?(n=i.offset(),i.is("img")&&(o=i.outerWidth(),s=i.outerHeight())):(n.top=h.y+(h.h-s)*t.topRatio,n.left=h.x+(h.w-o)*t.leftRatio),("fixed"===r.wrap.css("position")||t.locked)&&(n.top-=h.y,n.left-=h.x),n={top:m(n.top-a*t.topRatio),left:m(n.left-l*t.leftRatio),width:m(o+l),height:m(s+a)}},step:function(t,e){var i,n,o=e.prop,s=r.current,a=s.wrapSpace,l=s.skinSpace;("width"===o||"height"===o)&&(i=e.end===e.start?1:(t-e.start)/(e.end-e.start),r.isClosing&&(i=1-i),n=t-("width"===o?s.wPadding:s.hPadding),r.skin[o](f("width"===o?n:n-a*i)),r.inner[o](f("width"===o?n:n-a*i-l*i)))},zoomIn:function(){var t=r.current,e=t.pos,n=t.openEffect,o="elastic"===n,s=i.extend({opacity:1},e);delete s.position,o?(e=this.getOrigPosition(),t.openOpacity&&(e.opacity=.1)):"fade"===n&&(e.opacity=.1),r.wrap.css(e).animate(s,{duration:"none"===n?0:t.openSpeed,easing:t.openEasing,step:o?this.step:null,complete:r._afterZoomIn})},zoomOut:function(){var t=r.current,e=t.closeEffect,i="elastic"===e,n={opacity:.1};i&&(n=this.getOrigPosition(),t.closeOpacity&&(n.opacity=.1)),r.wrap.animate(n,{duration:"none"===e?0:t.closeSpeed,easing:t.closeEasing,step:i?this.step:null,complete:r._afterZoomOut})},changeIn:function(){var t,e=r.current,i=e.nextEffect,n=e.pos,o={opacity:1},s=r.direction;n.opacity=.1,"elastic"===i&&(t="down"===s||"up"===s?"top":"left","down"===s||"right"===s?(n[t]=m(f(n[t])-200),o[t]="+=200px"):(n[t]=m(f(n[t])+200),o[t]="-=200px")),"none"===i?r._afterZoomIn():r.wrap.css(n).animate(o,{duration:e.nextSpeed,easing:e.nextEasing,complete:r._afterZoomIn})},changeOut:function(){var t=r.previous,e=t.prevEffect,n={opacity:.1},o=r.direction;"elastic"===e&&(n["down"===o||"up"===o?"top":"left"]=("up"===o||"left"===o?"-":"+")+"=200px"),t.wrap.animate(n,{duration:"none"===e?0:t.prevSpeed,easing:t.prevEasing,complete:function(){i(this).trigger("onReset").remove()}})}},r.helpers.overlay={defaults:{closeClick:!0,speedOut:200,showEarly:!0,css:{},locked:!c,fixed:!0},overlay:null,fixed:!1,el:i("html"),create:function(t){t=i.extend({},this.defaults,t),this.overlay&&this.close(),this.overlay=i('<div class="fancybox-overlay"></div>').appendTo(r.coming?r.coming.parent:t.parent),this.fixed=!1,t.fixed&&r.defaults.fixed&&(this.overlay.addClass("fancybox-overlay-fixed"),this.fixed=!0)},open:function(t){var e=this;t=i.extend({},this.defaults,t),this.overlay?this.overlay.unbind(".overlay").width("auto").height("auto"):this.create(t),this.fixed||(s.bind("resize.overlay",i.proxy(this.update,this)),this.update()),t.closeClick&&this.overlay.bind("click.overlay",function(t){if(i(t.target).hasClass("fancybox-overlay"))return r.isActive?r.close():e.close(),!1}),this.overlay.css(t.css).show()},close:function(){var t,e;s.unbind("resize.overlay"),this.el.hasClass("fancybox-lock")&&(i(".fancybox-margin").removeClass("fancybox-margin"),t=s.scrollTop(),e=s.scrollLeft(),this.el.removeClass("fancybox-lock"),s.scrollTop(t).scrollLeft(e)),i(".fancybox-overlay").remove().hide(),i.extend(this,{overlay:null,fixed:!1})},update:function(){var t,i="100%";this.overlay.width(i).height("100%"),l?(t=Math.max(e.documentElement.offsetWidth,e.body.offsetWidth),a.width()>t&&(i=a.width())):a.width()>s.width()&&(i=a.width()),this.overlay.width(i).height(a.height())},onReady:function(t,e){var n=this.overlay;i(".fancybox-overlay").stop(!0,!0),n||this.create(t),t.locked&&this.fixed&&e.fixed&&(n||(this.margin=a.height()>s.height()&&i("html").css("margin-right").replace("px","")),e.locked=this.overlay.append(e.wrap),e.fixed=!1),!0===t.showEarly&&this.beforeShow.apply(this,arguments)},beforeShow:function(t,e){var n,o;e.locked&&(!1!==this.margin&&(i("*").filter(function(){return"fixed"===i(this).css("position")&&!i(this).hasClass("fancybox-overlay")&&!i(this).hasClass("fancybox-wrap")}).addClass("fancybox-margin"),this.el.addClass("fancybox-margin")),n=s.scrollTop(),o=s.scrollLeft(),this.el.addClass("fancybox-lock"),s.scrollTop(n).scrollLeft(o)),this.open(t)},onUpdate:function(){this.fixed||this.update()},afterClose:function(t){this.overlay&&!r.coming&&this.overlay.fadeOut(t.speedOut,i.proxy(this.close,this))}},r.helpers.title={defaults:{type:"float",position:"bottom"},beforeShow:function(t){var e,n,o=r.current,s=o.title,a=t.type;if(i.isFunction(s)&&(s=s.call(o.element,o)),u(s)&&""!==i.trim(s)){switch(e=i('<div class="fancybox-title fancybox-title-'+a+'-wrap">'+s+"</div>"),a){case"inside":n=r.skin;break;case"outside":n=r.wrap;break;case"over":n=r.inner;break;default:n=r.skin,e.appendTo("body"),l&&e.width(e.width()),e.wrapInner('<span class="child"></span>'),r.current.margin[2]+=Math.abs(f(e.css("margin-bottom")))}
4e["top"===t.position?"prependTo":"appendTo"](n)}}},i.fn.fancybox=function(t){var e,n=i(this),o=this.selector||"",s=function(s){var a,l,h=i(this).blur(),c=e;s.ctrlKey||s.altKey||s.shiftKey||s.metaKey||h.is(".fancybox-wrap")||(a=t.groupAttr||"data-fancybox-group",(l=h.attr(a))||(a="rel",l=h.get(0)[a]),l&&""!==l&&"nofollow"!==l&&(c=(h=(h=o.length?i(o):n).filter("["+a+'="'+l+'"]')).index(this)),t.index=c,!1!==r.open(h,t)&&s.preventDefault())};return e=(t=t||{}).index||0,o&&!1!==t.live?a.undelegate(o,"click.fb-start").delegate(o+":not('.fancybox-item, .fancybox-nav')","click.fb-start",s):n.unbind("click.fb-start").bind("click.fb-start",s),this.filter("[data-fancybox-start=1]").trigger("click"),this},a.ready(function(){var e,s,a,l;n===i.scrollbarWidth&&(i.scrollbarWidth=function(){var t=i('<div style="width:50px;height:50px;overflow:auto"><div/></div>').appendTo("body"),e=t.children(),n=e.innerWidth()-e.height(99).innerWidth();return t.remove(),n}),n===i.support.fixedPosition&&(i.support.fixedPosition=(l=20===(a=i('<div style="position:fixed;top:20px;"></div>').appendTo("body"))[0].offsetTop||15===a[0].offsetTop,a.remove(),l)),i.extend(r.defaults,{scrollbarWidth:i.scrollbarWidth(),fixed:i.support.fixedPosition,parent:i("body")}),e=i(t).width(),o.addClass("fancybox-lock-test"),s=i(t).width(),o.removeClass("fancybox-lock-test"),i("<style type='text/css'>.fancybox-margin{margin-right:"+(s-e)+"px;}</style>").appendTo("head")})}(window,document,jQuery),/*! 5 Colorbox 1.6.4 6 license: MIT 7 http://www.jacklmoore.com/colorbox 8*/function(t,e,i){function n(i,n,o){var s=e.createElement(i);return n&&(s.id=X+n),o&&(s.style.cssText=o),t(s)}function o(){return i.innerHeight?i.innerHeight:t(i).height()}function s(e,i){i!==Object(i)&&(i={}),this.cache={},this.el=e,this.value=function(e){var n;return void 0===this.cache[e]&&(void 0!==(n=t(this.el).attr("data-cbox-"+e))?this.cache[e]=n:void 0!==i[e]?this.cache[e]=i[e]:void 0!==G[e]&&(this.cache[e]=G[e])),this.cache[e]},this.get=function(e){var i=this.value(e);return t.isFunction(i)?i.call(this.el,this):i}}function a(t){var e=C.length,i=(R+t)%e;return 0>i?e+i:i}function r(t,e){return Math.round((/%/.test(t)?("x"===e?T.width():o())/100:1)*parseInt(t,10))}function l(t,e){return t.get("photo")||t.get("photoRegex").test(e)}function h(t,e){return t.get("retinaUrl")&&i.devicePixelRatio>1?e.replace(t.get("photoRegex"),t.get("retinaSuffix")):e}function c(t){"contains"in g[0]&&!g[0].contains(t.target)&&t.target!==m[0]&&(t.stopPropagation(),g.focus())}function d(t){d.str!==t&&(g.add(m).removeClass(d.str).addClass(t),d.str=t)}function u(i){t(e).trigger(i),ta.triggerHandler(i)}function p(o){var a;if(!V){if(a=t(o).data(Q),z=new s(o,a),R=0,(p=z.get("rel"))&&!1!==p&&"nofollow"!==p?-1===(R=(C=t("."+J).filter(function(){var e=t.data(this,Q);return new s(this,e).get("rel")===p})).index(z.el))&&(R=(C=C.add(z.el)).length-1):C=t(z.el),!q){q=Z=!0,d(z.get("className")),g.css({visibility:"hidden",display:"block",opacity:""}),k=n(tr,"LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden"),_.css({width:"",height:""}).append(k),H=y.height()+x.height()+_.outerHeight(!0)-_.height(),B=b.width()+w.width()+_.outerWidth(!0)-_.width(),j=k.outerHeight(!0),W=k.outerWidth(!0);var p,f=r(z.get("initialWidth"),"x"),v=r(z.get("initialHeight"),"y"),T=z.get("maxWidth"),I=z.get("maxHeight");z.w=Math.max((!1!==T?Math.min(f,r(T,"x")):f)-W-B,0),z.h=Math.max((!1!==I?Math.min(v,r(I,"y")):v)-j-H,0),k.css({width:"",height:z.h}),Y.position(),u(tt),z.get("onOpen"),N.add(P).hide(),g.focus(),z.get("trapFocus")&&e.addEventListener&&(e.addEventListener("focus",c,!0),ta.one(to,function(){e.removeEventListener("focus",c,!0)})),z.get("returnFocus")&&ta.one(to,function(){t(z.el).focus()})}var M=parseFloat(z.get("opacity"));m.css({opacity:M==M?M:"",cursor:z.get("overlayClose")?"pointer":"",visibility:"visible"}).show(),z.get("closeButton")?O.html(z.get("close")).appendTo(_):O.appendTo("<div/>"),function(){var e,o,s,a=Y.prep,c=++tl;if(Z=!0,F=!1,u(ts),u(te),z.get("onLoad"),z.h=z.get("height")?r(z.get("height"),"y")-j-H:z.get("innerHeight")&&r(z.get("innerHeight"),"y"),z.w=z.get("width")?r(z.get("width"),"x")-W-B:z.get("innerWidth")&&r(z.get("innerWidth"),"x"),z.mw=z.w,z.mh=z.h,z.get("maxWidth")&&(z.mw=r(z.get("maxWidth"),"x")-W-B,z.mw=z.w&&z.w<z.mw?z.w:z.mw),z.get("maxHeight")&&(z.mh=r(z.get("maxHeight"),"y")-j-H,z.mh=z.h&&z.h<z.mh?z.h:z.mh),e=z.get("href"),U=setTimeout(function(){E.show()},100),z.get("inline")){var d=t(e).eq(0);s=t("<div>").hide().insertBefore(d),ta.one(ts,function(){s.replaceWith(d)}),a(d)}else z.get("iframe")?a(" "):z.get("html")?a(z.get("html")):l(z,e)?(e=h(z,e),t(F=z.get("createImg")).addClass(X+"Photo").bind("error."+X,function(){a(n(tr,"Error").html(z.get("imgError")))}).one("load",function(){c===tl&&setTimeout(function(){var e;z.get("retinaImage")&&i.devicePixelRatio>1&&(F.height=F.height/i.devicePixelRatio,F.width=F.width/i.devicePixelRatio),z.get("scalePhotos")&&(o=function(){F.height-=F.height*e,F.width-=F.width*e},z.mw&&F.width>z.mw&&(e=(F.width-z.mw)/F.width,o()),z.mh&&F.height>z.mh&&(e=(F.height-z.mh)/F.height,o())),z.h&&(F.style.marginTop=Math.max(z.mh-F.height,0)/2+"px"),C[1]&&(z.get("loop")||C[R+1])&&(F.style.cursor="pointer",t(F).bind("click."+X,function(){Y.next()})),F.style.width=F.width+"px",F.style.height=F.height+"px",a(F)},1)}),F.src=e):e&&S.load(e,z.get("data"),function(e,i){c===tl&&a("error"===i?n(tr,"Error").html(z.get("xhrError")):t(this).contents())})}()}}function f(){g||(K=!1,T=t(i),g=n(tr).attr({id:Q,class:!1===t.support.opacity?X+"IE":"",role:"dialog",tabindex:"-1"}).hide(),m=n(tr,"Overlay").hide(),E=t([n(tr,"LoadingOverlay")[0],n(tr,"LoadingGraphic")[0]]),v=n(tr,"Wrapper"),_=n(tr,"Content").append(P=n(tr,"Title"),I=n(tr,"Current"),D=t('<button type="button"/>').attr({id:X+"Previous"}),A=t('<button type="button"/>').attr({id:X+"Next"}),M=t('<button type="button"/>').attr({id:X+"Slideshow"}),E),O=t('<button type="button"/>').attr({id:X+"Close"}),v.append(n(tr).append(n(tr,"TopLeft"),y=n(tr,"TopCenter"),n(tr,"TopRight")),n(tr,!1,"clear:left").append(b=n(tr,"MiddleLeft"),_,w=n(tr,"MiddleRight")),n(tr,!1,"clear:left").append(n(tr,"BottomLeft"),x=n(tr,"BottomCenter"),n(tr,"BottomRight"))).find("div div").css({float:"left"}),S=n(tr,!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),N=A.add(D).add(I).add(M)),e.body&&!g.parent().length&&t(e.body).append(m,g.append(v,S))}var m,g,v,_,y,b,w,x,C,T,k,S,E,P,I,M,A,D,O,N,z,H,B,j,W,R,F,q,Z,V,U,Y,K,G={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHe
8ight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return t(this).attr("href")},title:function(){return this.title},createImg:function(){var e=new Image,i=t(this).data("cbox-img-attrs");return"object"==typeof i&&t.each(i,function(t,i){e[t]=i}),e},createIframe:function(){var i=e.createElement("iframe"),n=t(this).data("cbox-iframe-attrs");return"object"==typeof n&&t.each(n,function(t,e){i[t]=e}),"frameBorder"in i&&(i.frameBorder=0),"allowTransparency"in i&&(i.allowTransparency="true"),i.name=(new Date).getTime(),i.allowFullscreen=!0,i}},Q="colorbox",X="cbox",J=X+"Element",tt=X+"_open",te=X+"_load",ti=X+"_complete",tn=X+"_cleanup",to=X+"_closed",ts=X+"_purge",ta=t("<a/>"),tr="div",tl=0,th={},tc=function(){function t(){clearTimeout(a)}function e(){(z.get("loop")||C[R+1])&&(t(),a=setTimeout(Y.next,z.get("slideshowSpeed")))}function i(){M.html(z.get("slideshowStop")).unbind(l).one(l,n),ta.bind(ti,e).bind(te,t),g.removeClass(r+"off").addClass(r+"on")}function n(){t(),ta.unbind(ti,e).unbind(te,t),M.html(z.get("slideshowStart")).unbind(l).one(l,function(){Y.next(),i()}),g.removeClass(r+"on").addClass(r+"off")}function o(){s=!1,M.hide(),t(),ta.unbind(ti,e).unbind(te,t),g.removeClass(r+"off "+r+"on")}var s,a,r=X+"Slideshow_",l="click."+X;return function(){s?z.get("slideshow")||(ta.unbind(tn,o),o()):z.get("slideshow")&&C[1]&&(s=!0,ta.one(tn,o),z.get("slideshowAuto")?i():n(),M.show())}}();t[Q]||(t(f),(Y=t.fn[Q]=t[Q]=function(i,n){var o=this;return i=i||{},t.isFunction(o)&&(o=t("<a/>"),i.open=!0),o[0]&&(f(),function(){function i(t){t.which>1||t.shiftKey||t.altKey||t.metaKey||t.ctrlKey||(t.preventDefault(),p(this))}return!!g&&(K||(K=!0,A.click(function(){Y.next()}),D.click(function(){Y.prev()}),O.click(function(){Y.close()}),m.click(function(){z.get("overlayClose")&&Y.close()}),t(e).bind("keydown."+X,function(t){var e=t.keyCode;q&&z.get("escKey")&&27===e&&(t.preventDefault(),Y.close()),q&&z.get("arrowKey")&&C[1]&&!t.altKey&&(37===e?(t.preventDefault(),D.click()):39===e&&(t.preventDefault(),A.click()))}),t.isFunction(t.fn.on)?t(e).on("click."+X,"."+J,i):t("."+J).live("click."+X,i)),!0)}()&&(n&&(i.onComplete=n),o.each(function(){var e=t.data(this,Q)||{};t.data(this,Q,t.extend(e,i))}).addClass(J),new s(o[0],i).get("open")&&p(o[0]))),o}).position=function(e,i){function n(){y[0].style.width=x[0].style.width=_[0].style.width=parseInt(g[0].style.width,10)-B+"px",_[0].style.height=b[0].style.height=w[0].style.height=parseInt(g[0].style.height,10)-H+"px"}var s,a,l,h=0,c=0,d=g.offset();if(T.unbind("resize."+X),g.css({top:-9e4,left:-9e4}),a=T.scrollTop(),l=T.scrollLeft(),z.get("fixed")?(d.top-=a,d.left-=l,g.css({position:"fixed"})):(h=a,c=l,g.css({position:"absolute"})),c+=!1!==z.get("right")?Math.max(T.width()-z.w-W-B-r(z.get("right"),"x"),0):!1!==z.get("left")?r(z.get("left"),"x"):Math.round(Math.max(T.width()-z.w-W-B,0)/2),h+=!1!==z.get("bottom")?Math.max(o()-z.h-j-H-r(z.get("bottom"),"y"),0):!1!==z.get("top")?r(z.get("top"),"y"):Math.round(Math.max(o()-z.h-j-H,0)/2),g.css({top:d.top,left:d.left,visibility:"visible"}),v[0].style.width=v[0].style.height="9999px",s={width:z.w+W+B,height:z.h+j+H,top:h,left:c},e){var u=0;t.each(s,function(t){return s[t]!==th[t]?void(u=e):void 0}),e=u}th=s,e||g.css(s),g.dequeue().animate(s,{duration:e||0,complete:function(){n(),Z=!1,v[0].style.width=z.w+W+B+"px",v[0].style.height=z.h+j+H+"px",z.get("reposition")&&setTimeout(function(){T.bind("resize."+X,Y.position)},1),t.isFunction(i)&&i()},step:n})},Y.resize=function(t){var e;q&&((t=t||{}).width&&(z.w=r(t.width,"x")-W-B),t.innerWidth&&(z.w=r(t.innerWidth,"x")),k.css({width:z.w}
8),t.height&&(z.h=r(t.height,"y")-j-H),t.innerHeight&&(z.h=r(t.innerHeight,"y")),t.innerHeight||t.height||(e=k.scrollTop(),k.css({height:"auto"}),z.h=k.height()),k.css({height:z.h}),e&&k.scrollTop(e),Y.position("none"===z.get("transition")?0:z.get("speed")))},Y.prep=function(i){if(q){var o,r="none"===z.get("transition")?0:z.get("speed");k.remove(),(k=n(tr,"LoadedContent").append(i)).hide().appendTo(S.show()).css({width:(z.w=z.w||k.width(),z.w=z.mw&&z.mw<z.w?z.mw:z.w,z.w),overflow:z.get("scrolling")?"auto":"hidden"}).css({height:(z.h=z.h||k.height(),z.h=z.mh&&z.mh<z.h?z.mh:z.h,z.h)}).prependTo(_),S.hide(),t(F).css({float:"none"}),d(z.get("className")),o=function(){function i(){!1===t.support.opacity&&g[0].style.removeAttribute("filter")}var n,o,c=C.length;q&&(o=function(){clearTimeout(U),E.hide(),u(ti),z.get("onComplete")},P.html(z.get("title")).show(),k.show(),c>1?("string"==typeof z.get("current")&&I.html(z.get("current").replace("{current}",R+1).replace("{total}",c)).show(),A[z.get("loop")||c-1>R?"show":"hide"]().html(z.get("next")),D[z.get("loop")||R?"show":"hide"]().html(z.get("previous")),tc(),z.get("preloading")&&t.each([a(-1),a(1)],function(){var i=C[this],n=new s(i,t.data(i,Q)),o=n.get("href");o&&l(n,o)&&(o=h(n,o),e.createElement("img").src=o)})):N.hide(),z.get("iframe")?(n=z.get("createIframe"),z.get("scrolling")||(n.scrolling="no"),t(n).attr({src:z.get("href"),class:X+"Iframe"}).one("load",o).appendTo(k),ta.one(ts,function(){n.src="//about:blank"}),z.get("fastIframe")&&t(n).trigger("load")):o(),"fade"===z.get("transition")?g.fadeTo(r,1,i):i())},"fade"===z.get("transition")?g.fadeTo(r,0,function(){Y.position(0,o)}):Y.position(r,o)}},Y.next=function(){!Z&&C[1]&&(z.get("loop")||C[R+1])&&p(C[R=a(1)])},Y.prev=function(){!Z&&C[1]&&(z.get("loop")||R)&&p(C[R=a(-1)])},Y.close=function(){q&&!V&&(V=!0,q=!1,u(tn),z.get("onCleanup"),T.unbind("."+X),m.fadeTo(z.get("fadeOut")||0,0),g.stop().fadeTo(z.get("fadeOut")||0,0,function(){g.hide(),m.hide(),u(ts),k.remove(),setTimeout(function(){V=!1,u(to),z.get("onClosed")},1)}))},Y.remove=function(){g&&(g.stop(),t[Q].close(),g.stop(!1,!0).remove(),m.remove(),V=!1,g=null,t("."+J).removeData(Q).removeClass(J),t(e).unbind("click."+X).unbind("keydown."+X))},Y.element=function(){return t(z.el)},Y.settings=G)}(jQuery,document,window);var myTimer,mapModule=document.getElementsByClassName("component map-a"),bannerModule=document.querySelector(".banner .flexslider"),featuredBlocksModule=document.querySelectorAll("[class^=featuredblocks-]"),hoursModule=document.getElementsByClassName("component hours-a"),locationsModule=document.getElementsByClassName("component locations-a"),ctaModule=document.getElementsByClassName("component cta-a"),formModule=document.getElementsByClassName("component form-a"),staffSingleColumnGridModule=document.querySelectorAll(".staff-single-column:not(.staff__slider)"),staffMultipleColumnGridModule=document.querySelectorAll(".staff-multiple-column:not(.staff__slider)"),staffMultipleColumnSliderModule=document.getElementsByClassName("staff-multiple-column staff__slider"),statsModule=document.getElementsByClassName("component stats-a"),testimonialsModule=document.getElementsByClassName("component testimonials");function animateTitleOrSubtitle(t){var e=t.querySelector(".component__title"),i=t.querySelector(".component__subtitle"),n=300;null==e||e.classList.contains("animated")||(setTimeout(function(){e.classList.add("animated")},n),n+=300),null==i||i.classList.contains("animated")||setTimeout(function(){i.classList.add("animated")},n)}function resetTitleOrSubtitle(t){}function animateBanner(t){var e=t.querySelectorAll(".banner__item");null!=e&&setInterval(function(){e.forEach(function(t){isInViewportOnSlide(document.querySelector(".banner .flexslider"),t,animateBannerItem,resetBannerItem)})},666)}function animateBannerItem(t){t.closest(".banner-c")&&t.querySelector(".banner__text-wrapper").classList.add("animated");var e=t.querySelector(".banner__title"),i=t.querySelector(".banner__tc-divider"),n=t.querySelector(".banner__subtitle"),o=t.querySelector(".banner__cta-wrapper");
8null!=e&&t.querySelector(".banner__title").classList.add("animated"),null!=i&&t.querySelector(".banner__tc-divider").classList.add("animated"),null!=n&&t.querySelector(".banner__subtitle").classList.add("animated"),null!=o&&t.querySelector(".banner__cta-wrapper").classList.add("animated")}function resetBannerItem(t){var e=t.querySelector(".banner__title"),i=t.querySelector(".banner__tc-divider"),n=t.querySelector(".banner__subtitle"),o=t.querySelector(".banner__cta-wrapper");setTimeout(function(){t.closest(".banner-c")&&t.querySelector(".banner__text-wrapper").classList.remove("animated"),null!=e&&t.querySelector(".banner__title").classList.remove("animated"),null!=i&&t.querySelector(".banner__tc-divider").classList.remove("animated"),null!=n&&t.querySelector(".banner__subtitle").classList.remove("animated"),null!=o&&t.querySelector(".banner__cta-wrapper").classList.remove("animated")},666)}function resetBanner(t){}function animateMap(t){t.querySelector(".map__col").classList.add("animated")}function resetMap(t){}function animateForm(t){animateTitleOrSubtitle(t)}function resetForm(t){}function animateLocations(t){animateTitleOrSubtitle(t)}function resetLocations(t){}function animateCta(t){var e=t.querySelector(".component__title"),i=t.querySelector(".component__subtitle"),n=t.querySelectorAll("a"),o=300;null==e||e.classList.contains("animated")||(setTimeout(function(){e.classList.add("animated")},o),o+=300),null==i||i.classList.contains("animated")||(setTimeout(function(){i.classList.add("animated")},o),o+=300),null!=n&&setTimeout(function(){for(var t=0;t<n.length;t++)n[t].classList.contains("animated")||n[t].classList.add("animated")},o)}function resetCta(t){}function animateStats(t){var e=t.querySelector(".component__title"),i=t.querySelector(".component__subtitle"),n=t.querySelectorAll("a"),o=$(t).find(".flexslider"),s=300;null==e||e.classList.contains("animated")||(setTimeout(function(){e.classList.add("animated")},s),s+=300),null==i||i.classList.contains("animated")||(setTimeout(function(){i.classList.add("animated")},s),s+=300),t.classList.contains("stats-a--12")?(null!=n&&(setTimeout(function(){for(var t=0;t<n.length;t++)n[t].classList.contains("animated")||n[t].classList.add("animated")},s),s+=300),null!=o&&setTimeout(function(){o.addClass("animated")},s)):(null!=o&&(setTimeout(function(){o.addClass("animated")},s),s+=300),null!=n&&setTimeout(function(){for(var t=0;t<n.length;t++)n[t].classList.contains("animated")||n[t].classList.add("animated")},s))}function resetStats(t){}function animateTestimonials(t){var e,i=t.querySelector(".component__title"),n=t.querySelector(".component__subtitle"),o=t.querySelector(".component__title-caption-wrap"),s=300;null!=o?(e=o.nextElementSibling,null==i||i.classList.contains("animated")||(setTimeout(function(){i.classList.add("animated")},s),s+=300),null==n||n.classList.contains("animated")||(setTimeout(function(){n.classList.add("animated")},s),s+=300),null!=e&&setTimeout(function(){e.classList.add("animated")},s)):null!=(e=t.firstElementChild)&&setTimeout(function(){e.classList.add("animated")},s)}function resetTestimonials(t){}function animateFeaturedBlocks(t){t.classList.contains("animated")||setTimeout(function(){t.classList.add("animated");var e=t.querySelectorAll(".featuredblock__item"),i=0;e.forEach(function(t){setTimeout(function(){t.classList.add("animated")},i+=300)})},666),animateTitleOrSubtitle(t)}function resetFeaturedBlocks(t){}function animateStaffMultipleColumnSlider(t){t.querySelectorAll(".js-staff-layout-settings").forEach(function(t){if("block"==getComputedStyle(t).display){var e=t.querySelectorAll(".staff__item");null!=e&&setInterval(function(){e.forEach(function(t){isInViewportOnSlide(document.querySelector(".staff__slider .flexslider"),t,animateStaffItem,resetStaffItem)})},300)}}),animateTitleOrSubtitle(t)}function animateStaffItem(t){t.classList.contains("animated")||setTimeout(function(){t.classList.add("animated");var e=t.querySelectorAll(".staff-member"),i=0;e.forEach(function(t){setTimeout(function(){t.classList.add("animated")},i+=300)})},666)}function resetStaffMultipleColumnSlider(t){}function resetStaffItem(t){}function animateStaffGrid(t){t.classList.contains("animated")||setTimeout(function(){t.classList.add("animated");var e=t.querySelectorAll(".staff-member"),i=0;e.forEach(function(t){setTimeout(function(){t.classList.add("animated")},i+=300)})},666),animateTitleOrSubtitle(t)}function resetStaffGrid(t){}function animateHours(t){t.classList.contains("animated")||setTimeout(function(){t.classList.add("animated");var e=t.querySelectorAll(".hours__day"),i=0;e.forEach(function(t){setTimeout(function(){t.classList.add("animated")},i+=200)})},666),animateTitleOrSubtitle(t)}function resetHours(t){}function isInViewportOnScroll(t,e,i){var n=t.getBoundingClientRect();n.top-300<=0||n.bottom<=(window.innerHeight||document.documentElement.clientHeight)?t.classList.contains("isInViewport")||(t.classList.add("isInViewport"),e(t)):t.classList.contains("isInViewport")&&(t.classList.remove("isInViewport"),i(t))}function isInViewportOnSlide(t,e,i,n){var o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),a={};a.left=s.left-o.left,0==a.left?e.classList.contains("isSlidingInViewport")||(e.classList.add("isSli
8dingInViewport"),i(e)):e.classList.contains("isSlidingInViewport")&&(e.classList.remove("isSlidingInViewport"),n(e))}function navADropDown2(){$(".navigation-a").on("mouseover",".navigation__list--default li.has-drop-down",function(){$(this).parent().css("overflow","visible")})}$(document).ready(function(){}),$(window).load(function(){if((null!=bannerModule||void 0!=bannerModule)&&isInViewportOnScroll(bannerModule,animateBanner,resetBanner),null!=ctaModule||void 0!=ctaModule)for(var t=0;t<ctaModule.length;t++)isInViewportOnScroll(ctaModule[t],animateCta,resetCta)}),$(window).resize(function(){}),$(window).scroll(function(){if(null!=mapModule||void 0!=mapModule)for(var t=0;t<mapModule.length;t++)isInViewportOnScroll(mapModule[t],animateMap,resetMap);if((null!=bannerModule||void 0!=bannerModule)&&isInViewportOnScroll(bannerModule,animateBanner,resetBanner),null!=featuredBlocksModule||void 0!=featuredBlocksModule)for(var t=0;t<featuredBlocksModule.length;t++)isInViewportOnScroll(featuredBlocksModule[t],animateFeaturedBlocks,resetFeaturedBlocks);if(null!=staffSingleColumnGridModule||void 0!=staffSingleColumnGridModule)for(var t=0;t<staffSingleColumnGridModule.length;t++)isInViewportOnScroll(staffSingleColumnGridModule[t],animateStaffGrid,resetStaffGrid);if(null!=staffMultipleColumnGridModule||void 0!=staffMultipleColumnGridModule)for(var t=0;t<staffMultipleColumnGridModule.length;t++)isInViewportOnScroll(staffMultipleColumnGridModule[t],animateStaffGrid,resetStaffGrid);if(null!=staffMultipleColumnSliderModule||void 0!=staffMultipleColumnSliderModule)for(var t=0;t<staffMultipleColumnSliderModule.length;t++)isInViewportOnScroll(staffMultipleColumnSliderModule[t],animateStaffMultipleColumnSlider,resetStaffMultipleColumnSlider);if(null!=hoursModule||void 0!=hoursModule)for(var t=0;t<hoursModule.length;t++)isInViewportOnScroll(hoursModule[t],animateHours,resetHours);if(null!=locationsModule||void 0!=locationsModule)for(var t=0;t<locationsModule.length;t++);if(null!=ctaModule||void 0!=ctaModule)for(var t=0;t<ctaModule.length;t++)isInViewportOnScroll(ctaModule[t],animateCta,resetCta);if(null!=statsModule||void 0!=statsModule)for(var t=0;t<statsModule.length;t++)isInViewportOnScroll(statsModule[t],animateStats,resetStats);if(null!=testimonialsModule||void 0!=testimonialsModule)for(var t=0;t<testimonialsModule.length;t++)isInViewportOnScroll(testimonialsModule[t],animateTestimonials,resetTestimonials);if(null!=formModule||void 0!=formModule)for(var t=0;t<formModule.length;t++);});var mapModule=document.getElementsByClassName("component map-a"),bannerModule=document.querySelector(".banner .flexslider"),featuredBlocksModule=document.querySelectorAll("[class^=featuredblocks-]"),hoursModule=document.getElementsByClassName("component hours-a"),locationsModule=document.getElementsByClassName("component locations-a"),ctaModule=document.getElementsByClassName("component cta-a"),formModule=document.getElementsByClassName("component form-a"),staffSingleColumnGridModule=document.querySelectorAll(".staff-single-column:not(.staff__slider)"),staffMultipleColumnGridModule=document.querySelectorAll(".staff-multiple-column:not(.staff__slider)"),staffMultipleColumnSliderModule=document.getElementsByClassName("staff-multiple-column staff__slider"),statsModule=document.getElementsByClassName("component stats-a"),testimonialsModule=document.getElementsByClassName("component testimonials");function animateTitleOrSubtitle(t){var e=t.querySelector(".component__title"),i=t.querySelector(".component__subtitle"),n=300;null==e||e.classList.contains("animated")||(setTimeout(function(){e.classList.add("animated")},n),n+=300),null==i||i.classList.contains("animated")||setTimeout(function(){i.classList.add("animated")},n)}function resetTitleOrSubtitle(t){}function animateBanner(t){var e=t.querySelectorAll(".banner__item");null!=e&&setInterval(function(){e.forEach(function(t){isInViewportOnSlide(document.querySelector(".banner .flexslider"),t,animateBannerItem,resetBannerItem)})},300)}function animateBannerItem(t){t.closest(".banner-c")&&t.querySelector(".banner__text-wrapper").classList.add("animated");var e=t.querySelector(".banner__title"),i=t.querySelector(".banner__tc-divider"),n=t.querySelector(".banner__subtitle"),o=t.querySelector(".banner__cta-wrapper");
8null!=e&&t.querySelector(".banner__title").classList.add("animated"),null!=i&&t.querySelector(".banner__tc-divider").classList.add("animated"),null!=n&&t.querySelector(".banner__subtitle").classList.add("animated"),null!=o&&t.querySelector(".banner__cta-wrapper").classList.add("animated")}function resetBannerItem(t){var e=t.querySelector(".banner__title"),i=t.querySelector(".banner__tc-divider"),n=t.querySelector(".banner__subtitle"),o=t.querySelector(".banner__cta-wrapper");setTimeout(function(){t.closest(".banner-c")&&t.querySelector(".banner__text-wrapper").classList.remove("animated"),null!=e&&t.querySelector(".banner__title").classList.remove("animated"),null!=i&&t.querySelector(".banner__tc-divider").classList.remove("animated"),null!=n&&t.querySelector(".banner__subtitle").classList.remove("animated"),null!=o&&t.querySelector(".banner__cta-wrapper").classList.remove("animated")},290)}function resetBanner(t){}function animateMap(t){t.querySelector(".map__col").classList.add("animated")}function resetMap(t){}function animateForm(t){animateTitleOrSubtitle(t)}function resetForm(t){}function animateLocations(t){animateTitleOrSubtitle(t)}function resetLocations(t){}function animateCta(t){var e=t.querySelector(".component__title"),i=t.querySelector(".component__subtitle"),n=t.querySelectorAll("a"),o=300;null==e||e.classList.contains("animated")||(setTimeout(function(){e.classList.add("animated")},o),o+=300),null==i||i.classList.contains("animated")||(setTimeout(function(){i.classList.add("animated")},o),o+=300),null!=n&&setTimeout(function(){for(var t=0;t<n.length;t++)n[t].classList.contains("animated")||n[t].classList.add("animated")},o)}function resetCta(t){}function animateStats(t){var e=t.querySelector(".component__title"),i=t.querySelector(".component__subtitle"),n=t.querySelectorAll("a"),o=$(t).find(".flexslider"),s=300;null==e||e.classList.contains("animated")||(setTimeout(function(){e.classList.add("animated")},s),s+=300),null==i||i.classList.contains("animated")||(setTimeout(function(){i.classList.add("animated")},s),s+=300),t.classList.contains("stats-a--12")?(null!=n&&(setTimeout(function(){for(var t=0;t<n.length;t++)n[t].classList.contains("animated")||n[t].classList.add("animated")},s),s+=300),null!=o&&setTimeout(function(){o.addClass("animated")},s)):(null!=o&&(setTimeout(function(){o.addClass("animated")},s),s+=300),null!=n&&setTimeout(function(){for(var t=0;t<n.length;t++)n[t].classList.contains("animated")||n[t].classList.add("animated")},s))}function resetStats(t){}function animateTestimonials(t){var e,i=t.querySelector(".component__title"),n=t.querySelector(".component__subtitle"),o=t.querySelector(".component__title-caption-wrap"),s=300;null!=o?(e=o.nextElementSibling,null==i||i.classList.contains("animated")||(setTimeout(function(){i.classList.add("animated")},s),s+=300),null==n||n.classList.contains("animated")||(setTimeout(function(){n.classList.add("animated")},s),s+=300),null!=e&&setTimeout(function(){e.classList.add("animated")},s)):null!=(e=t.firstElementChild)&&setTimeout(function(){e.classList.add("animated")},s)}function resetTestimonials(t){}function animateFeaturedBlocks(t){t.classList.contains("animated")||setTimeout(function(){t.classList.add("animated");var e=t.querySelectorAll(".featuredblock__item"),i=0;e.forEach(function(t){setTimeout(function(){t.classList.add("animated")},i+=300)})},300),animateTitleOrSubtitle(t)}function resetFeaturedBlocks(t){}function animateStaffMultipleColumnSlider(t){t.querySelectorAll(".js-staff-layout-settings").forEach(function(t){if("block"==getComputedStyle(t).display){var e=t.querySelectorAll(".staff__item");null!=e&&setInterval(function(){e.forEach(function(t){isInViewportOnSlide(document.querySelector(".staff__slider .flexslider"),t,animateStaffItem,resetStaffItem)})},300)}}),animateTitleOrSubtitle(t)}function animateStaffItem(t){t.classList.contains("animated")||setTimeout(function(){t.classList.add("animated");var e=t.querySelectorAll(".staff-member"),i=0;e.forEach(function(t){setTimeout(function(){t.classList.add("animated")},i+=300)})},300)}function resetStaffMultipleColumnSlider(t){}function resetStaffItem(t){}function animateStaffGrid(t){t.classList.contains("animated")||setTimeout(function(){t.classList.add("animated");var e=t.querySelectorAll(".staff-member"),i=0;e.forEach(function(t){setTimeout(function(){t.classList.add("animated")},i+=300)})},300),animateTitleOrSubtitle(t)}function resetStaffGrid(t){}function animateHours(t){t.classList.contains("animated")||setTimeout(function(){t.classList.add("animated");var e=t.querySelectorAll(".hours__day"),i=0;e.forEach(function(t){setTimeout(function(){t.classList.add("animated")},i+=200)})},200),animateTitleOrSubtitle(t)}function resetHours(t){}function isInViewportOnScroll(t,e,i){var n=t.getBoundingClientRect();n.top-300<=0||n.bottom<=(window.innerHeight||document.documentElement.clientHeight)?t.classList.contains("isInViewport")||(t.classList.add("isInViewport"),e(t)):t.classList.contains("isInViewport")&&(t.classList.remove("isInViewport"),i(t))}function isInViewportOnSlide(t,e,i,n){var o=t.getBoundingClientRect(),s=e.getBoundingClientRect(),a={};a.left=s.left-o.left,0==a.left?e.classList.contains("isSlidingInViewport")||(e.classList.add("isSli
8dingInViewport"),i(e)):e.classList.contains("isSlidingInViewport")&&(e.classList.remove("isSlidingInViewport"),n(e))}function menuPrepare(){origMenuContent.length||(origMenuContent=menu.html()),menuHolder.css("width",menuHolderMaxWidth),allMenus.push([currentMenu.html(),Math.round(calcTotalMenuItemsWidth())]);for(var t=0;t<=menuChildrenCount;t++){moreButton.length&&moreButton.remove();var e=currentMenu.children("li:last").remove();currentMenu.append(moreButton);var i=calcTotalMenuItemsWidth();moreButton.children("ul").prepend($(e)),allMenus.push([currentMenu.html(),Math.round(i)])}menuHolder.css("width","")}function calcTotalMenuItemsWidth(){var t=0;return currentMenu.children().each(function(){t+=$(this)[0].getBoundingClientRect().width}),t}function addMoreButton(){for(var t=0;t<=menuChildrenCount;t++){if(currentMenuWidth<=allMenus[0][1]&¤tMenuWidth>=allMenus[t][1]){currentMenu.empty(),currentMenu.append(allMenus[t][0]);return}if(currentMenuWidth>allMenus[0][1]){currentMenu.empty(),currentMenu.append(origMenuContent);return}}}function navADropDown2(){if($("body").hasClass("isEditor")){var t=$("nav[class^='navigation-']"),e=110;t.length&&(t.closest(".section--inner").addClass("fix-hover"),t.each(function(t){$(this).closest(".section-base-container").css({"z-index":--e})}))}$(".navigation-a").on("mouseover",".navigation__list--default li.has-drop-down",function(){$(this).parent().css("overflow","visible")})}function bannerDSwoop(){$(".section.banner-d-swoop .banner-d .banner__text-overlay--triangle").html('<svg preserveAspectRatio="none" viewBox="0 0 230 640"><path d="M19.0476 320C19.9223 175.303 175 60 200 0H0V640H192.381C175 580 18.1822 463.173 19.0476 320Z"/></svg>')}function bannerFAbstractShape(){$(".section.banner-f-abstract-shape .banner-f .banner__image").append('<svg viewBox="0 0 485 604" preserveAspectRatio="none"><path d="M483.517 276.495C478.395 332.998 417.997 361.109 384.893 407.184C338.52 471.726 330.461 573.271 254.203 595.653C170.328 620.271 61.9045 589.488 14.9268 515.771C-30.1316 445.066 46.0074 360.199 50.8125 276.495C55.053 202.625 -3.38703 122.467 40.9069 63.1982C86.8067 1.78029 178.409 -7.24325 254.203 4.34036C320.879 14.5304 367.485 68.1701 410.947 119.751C449.514 165.523 488.921 216.885 483.517 276.495Z"/></svg>')}function bladeNarrowSbg(){$(".section.blade-narrow-sbg .blade__text-media--swapped").closest(".section").addClass("blade__text-media--swapped")}function featuredBlocksAAccordion(){$(".section.fb-grid-a-accordion .featuredblock__wrap").each(function(){$(this).append('<div class="featuredblock__accordion"></div>');var t=$(this).find(".featuredblock-image-title-wrapper"),e=$(this).find(".featuredblock__accordion"),i=$(this).find(".featuredblock__content"),n=$(this).find(".featuredblock__sub-menu"),o=$(this).find(".featuredblock__cta"),s=t.has(".featuredblock__icon").length,a=t.has(".featuredblock__image").length;e.append(i,n,o),t.click(function(t){t.preventDefault(),$(this).toggleClass("expanded"),e.slideToggle()}),0==s&&0==a&&e.addClass("no-margin")})}function bluredBladeBG(){$(".section.blade-background-blur").each(function(){let t=$(this).find(".blade__media"),e=t.find("img"),i=e.attr("src");t.length&&e.length&&i&&(t.css({backgroundImage:"url("+i+")",backgroundSize:"cover",backgroundPosition:"50% 50%",backgroundRepeat:"no-repeat"}),e.remove())})}function staffOverlapped(){$(".section.staff-overlapped-card .staff-member").each(function(){let t=$(this).find(".staff-member__image-wrapper"),e=t.find("img"),i=e.attr("src");$(this).find(".staff-member__text"),t.length&&e.length&&i&&(t.css({backgroundImage:"url("+i+")",backgroundSize:"cover",backgroundPosition:"50% 50%",backgroundRepeat:"no-repeat"}),e.remove())})}function galleryTitle(){var t=$(".award-banner-1 .gallery .gallery__title").text();$(".award-banner-1 .gallery .gallery__title").replaceWith("<h1></h1>"),$(".award-banner-1 .gallery h1").text(t).addClass("gallery__title component__title")}function navigationVisibility(){if($(".mobileHeader-container").length){var t=$("#tabletHeaderEnabledFlag").val(),e=$(".section-navigation .navigation");1==t?e.addClass("d-none d-lg-block"):e.addClass("d-none d-md-block")}}function bannerOverImage(){"use strict";$(".banner-f-title-over-image").each(function(){$(this).find(".banner__item").each(function(){$(this).find(".banner__text-wrapper, .banner__image-wrapper").wrapAll("<div class='holder'/>")})})}function bannerAboveImage(){"use strict";$(".banner-a-title-above").each(function(){let t=$(this),e=t.find(".banner__title, .banner__tc-divider"),i=t.find(".banner__subtitle, .banner__cta-wrapper");e.wrapAll("<div class='text__holder'/>"),i.wrapAll("<div class='cta__holder'/>")})}function footerParallax(){"use strict";let t=document.querySelector(".footer-parallax");if(!t)return;t.style.transition="background-position .5s";let e=new IntersectionObserver(function(t,e){t.forEach(t=>{let e=t.intersectionRatio;t.target.style.backgroundPosition=`50% ${50+40*e}%`})},{root:null,rootMargin:"0px",threshold:[0,.1,.2,.3,.4,.5,.6,.7,.8,.9,1]});e.observe(t)}function bladeParallax(){let t=document.querySelector(".blade-parallax");if(!t)return;let e=new IntersectionObserver(function(t,e){t.forEach(t=>{let e=t.intersectionRatio,i=t.target.querySelector(".blade__media");i.style.transition="transform .5s",i.style.transform=`translateY(${100*(1-e)}px)`})},{root:null,rootMargin:"0px",threshold:[0,.25,.3,.45,.5,.55,.6,.65,.7,.75,.8,.85,.9,.95,1]});e.observe(t)}function bannerTitleHighlight(){"use strict";let t=document.querySelector(".section.banner-a-highlighted-title");if(!t)return;let e=new IntersectionObserver(function(t,e){t.forEach(t=>{t.isIntersecting?t.target.classList.add("highlighted"):t.target.classList.remove("highlighted")})},{root:null,rootMargin:"0px",threshold:[.75]});t.querySelectorAll(".banner__title").forEach(t=>{e.observe(t);let i=t.textContent.trim();t.innerHTML=`<span>${i}</span>`,t.style.height=`${t.offsetHeight}px`})}function partialTestimonialsSlider(){"use strict";
8let t=$(".partial-testimonials-cta .js-testimonials-layout-settings.flexslider");function e(){return window.innerWidth<768?{itemWidth:75,itemMargin:5}:{itemWidth:98,itemMargin:22}}t&&(t.flexslider({animation:"slide",controlNav:!1,directionNav:!1,maxItems:5,...e(),keyboard:!1,slideshow:!1}),$(window).on("resize",function(){let{itemWidth:i,itemMargin:n}=e();t.flexslider("setOption","itemWidth",i),t.flexslider("setOption","itemMargin",n)}))}function fbFullImage(){"use strict";let t=document.querySelector(".section.fb-grid-a-full-image");t&&t.querySelectorAll(".featuredblock__item").forEach(function(t){let e=t.querySelectorAll(".featuredblock__icon, .featuredblock__title, .featuredblock__content, .featuredblock__sub-menu, .featuredblock__cta"),i=t.querySelector(".featuredblock__wrap"),n=document.createElement("div");n.classList.add("featuredblock__content--holder"),e.forEach(function(t){n.appendChild(t)}),i.appendChild(n)})}function disableLinks(t){$(t).each(function(){("#"===$(this).attr("href")||"javascript.void(0)"===$(this).attr("href"))&&$(this).click(function(t){t.preventDefault()})})}$(document).ready(function(){}),$(window).load(function(){if((null!=bannerModule||void 0!=bannerModule)&&isInViewportOnScroll(bannerModule,animateBanner,resetBanner),null!=ctaModule||void 0!=ctaModule)for(var t=0;t<ctaModule.length;t++)isInViewportOnScroll(ctaModule[t],animateCta,resetCta)}),$(window).resize(function(){}),$(window).scroll(function(){if(null!=mapModule||void 0!=mapModule)for(var t=0;t<mapModule.length;t++)isInViewportOnScroll(mapModule[t],animateMap,resetMap);if((null!=bannerModule||void 0!=bannerModule)&&isInViewportOnScroll(bannerModule,animateBanner,resetBanner),null!=featuredBlocksModule||void 0!=featuredBlocksModule)for(var t=0;t<featuredBlocksModule.length;t++)isInViewportOnScroll(featuredBlocksModule[t],animateFeaturedBlocks,resetFeaturedBlocks);if(null!=staffSingleColumnGridModule||void 0!=staffSingleColumnGridModule)for(var t=0;t<staffSingleColumnGridModule.length;t++)isInViewportOnScroll(staffSingleColumnGridModule[t],animateStaffGrid,resetStaffGrid);if(null!=staffMultipleColumnGridModule||void 0!=staffMultipleColumnGridModule)for(var t=0;t<staffMultipleColumnGridModule.length;t++)isInViewportOnScroll(staffMultipleColumnGridModule[t],animateStaffGrid,resetStaffGrid);if(null!=staffMultipleColumnSliderModule||void 0!=staffMultipleColumnSliderModule)for(var t=0;t<staffMultipleColumnSliderModule.length;t++)isInViewportOnScroll(staffMultipleColumnSliderModule[t],animateStaffMultipleColumnSlider,resetStaffMultipleColumnSlider);if(null!=hoursModule||void 0!=hoursModule)for(var t=0;t<hoursModule.length;t++)isInViewportOnScroll(hoursModule[t],animateHours,resetHours);if(null!=locationsModule||void 0!=locationsModule)for(var t=0;t<locationsModule.length;t++);if(null!=ctaModule||void 0!=ctaModule)for(var t=0;t<ctaModule.length;t++)isInViewportOnScroll(ctaModule[t],animateCta,resetCta);if(null!=statsModule||void 0!=statsModule)for(var t=0;t<statsModule.length;t++)isInViewportOnScroll(statsModule[t],animateStats,resetStats);if(null!=testimonialsModule||void 0!=testimonialsModule)for(var t=0;t<testimonialsModule.length;t++)isInViewportOnScroll(testimonialsModule[t],animateTestimonials,resetTestimonials);if(null!=formModule||void 0!=formModule)for(var t=0;t<formModule.length;t++);}),function(t,e,i){"use strict";var n,o,s,a,r,l,h,c,d,u,p,f,m,g,v,_,y,b={get:function(){return s},init:function(t){return s||new tn(t)},VERSION:"0.6.30"},w=Object.prototype.hasOwnProperty,x=t.Math,C=t.getComputedStyle,T="touchstart",k="touchmove",S="skrollable",E=S+"-before",P=S+"-between",I=S+"-after",M="skrollr",A="no-"+M,D=M+"-desktop",O=M+"-mobile",N="linear",z="center",H="bottom",B="___skrollable_id",j=/^(?:input|textarea|button|select)$/i,W=/^\s+|\s+$/g,R=/^data(?:-(_\w+))?(?:-?(-?\d*\.?\d+p?))?(?:-?(start|end|top|center|bottom))?(?:-?(top|center|bottom))?$/,F=/\s*(@?[\w\-\[\]]+)\s*:\s*(.+?)\s*(?:;|$)/gi,q=/^(@?[a-z\-]+)\[(\w+)\]$/,Z=/-([a-z0-9_])/g,V=function(t,e){return e.toUpperCase()}
8,U=/[\-+]?[\d]*\.?[\d]+/g,Y=/\{\?\}/g,K=/rgba?\(\s*-?\d+\s*,\s*-?\d+\s*,\s*-?\d+/g,G=/[a-z\-]+-gradient/g,Q="",X="",J=function(){var t=/^(?:O|Moz|webkit|ms)|(?:-(?:o|moz|webkit|ms)-)/;if(C){var e=C(o,null);for(var i in e)if(Q=i.match(t)||+i==i&&e[i].match(t))break;if(!Q){Q=X="";return}"-"===(Q=Q[0]).slice(0,1)?(X=Q,Q=({"-webkit-":"webkit","-moz-":"Moz","-ms-":"ms","-o-":"O"})[Q]):X="-"+Q.toLowerCase()+"-"}},tt=function(){var e=t.requestAnimationFrame||t[Q.toLowerCase()+"RequestAnimationFrame"],i=tE();return(tB||!e)&&(e=function(e){var n=tE()-i,o=x.max(0,1e3/60-n);return t.setTimeout(function(){i=tE(),e()},o)}),e},te=function(){var e=t.cancelAnimationFrame||t[Q.toLowerCase()+"CancelAnimationFrame"];return(tB||!e)&&(e=function(e){return t.clearTimeout(e)}),e},ti={begin:function(){return 0},end:function(){return 1},linear:function(t){return t},quadratic:function(t){return t*t},cubic:function(t){return t*t*t},swing:function(t){return-x.cos(t*x.PI)/2+.5},sqrt:function(t){return x.sqrt(t)},outCubic:function(t){return x.pow(t-1,3)+1},bounce:function(t){var e;if(t<=.5083)e=3;else if(t<=.8489)e=9;else if(t<=.96208)e=27;else{if(!(t<=.99981))return 1;e=91}return 1-x.abs(3*x.cos(t*e*1.028)/e)}};function tn(i){if(n=e.documentElement,o=e.body,J(),s=this,c=(i=i||{}).constants||{},i.easing)for(var a in i.easing)ti[a]=i.easing[a];v=i.edgeStrategy||"set",l={beforerender:i.beforerender,render:i.render,keyframe:i.keyframe},(h=!1!==i.forceHeight)&&(tI=i.scale||1),d=i.mobileDeceleration||.004,p=!1!==i.smoothScrolling,f=i.smoothScrollingDuration||200,m={targetTop:s.getScrollTop()},(tB=(i.mobileCheck||function(){return/Android|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent||navigator.vendor||t.opera)})())?((r=e.getElementById(i.skrollrBody||"skrollr-body"))&&tm(),to(),tT(n,[M,O],[A])):tT(n,[M,D],[A]),s.refresh(),tg(t,"resize orientationchange",function(){var t=n.clientWidth,e=n.clientHeight;(e!==tN||t!==tO)&&(tN=e,tO=t,tz=!0)});var u=tt();return function t(){tr(),y=u(t)}(),s}tn.prototype.refresh=function(t){var n=!1;for(i===t?(n=!0,a=[],tH=0,t=e.getElementsByTagName("*")):i===t.length&&(t=[t]),o=0,r=t.length;o<r;o++){var o,r,l,h,c,d=t[o],u=d,f=[],m=p,g=v,_=!1;if(n&&B in d&&delete d[B],d.attributes){for(var y=0,b=d.attributes.length;y<b;y++){var w=d.attributes[y];if("data-anchor-target"===w.name){if(null===(u=e.querySelector(w.value)))throw'Unable to find anchor target "'+w.value+'"';continue}if("data-smooth-scrolling"===w.name){m="off"!==w.value;continue}if("data-edge-strategy"===w.name){g=w.value;continue}if("data-emit-events"===w.name){_=!0;continue}var x=w.name.match(R);if(null!==x){var C={props:w.value,element:d,eventType:w.name.replace(Z,V)};f.push(C);var T=x[1];T&&(C.constant=T.substr(1));var k=x[2];/p$/.test(k)?(C.isPercentage=!0,C.offset=(0|k.slice(0,-1))/100):C.offset=0|k;var E=x[3],P=x[4]||E;E&&"start"!==E&&"end"!==E?(C.mode="relative",C.anchors=[E,P]):(C.mode="absolute","end"===E?C.isEnd=!0:C.isPercentage||(C.offset=C.offset*tI))}}f.length&&(!n&&B in d?(l=a[c=d[B]].styleAttr,h=a[c].classAttr):(c=d[B]=tH++,l=d.style.cssText,h=tC(d)),a[c]={element:d,styleAttr:l,classAttr:h,anchorTarget:u,keyFrames:f,smoothScrolling:m,edgeStrategy:g,emitEvents:_,lastFrameIndex:-1},tT(d,[S],[]))}}for(tb(),o=0,r=t.length;o<r;o++){var I=a[t[o][B]];i!==I&&(tl(I),tc(I))}return s},tn.prototype.relativeToAbsolute=function(t,e,i){var o=n.clientHeight,a=t.getBoundingClientRect(),r=a.top,l=a.bottom-a.top;return e===H?r-=o:e===z&&(r-=o/2),i===H?r+=l:i===z&&(r+=l/2),(r+=s.getScrollTop())+.5|0},tn.prototype.animateTo=function(t,e){e=e||{};var n=tE(),o=s.getScrollTop(),a=i===e.duration?1e3:e.duration;return(u={startTop:o,topDiff:t-o,targetTop:t,duration:a,startTime:n,endTime:n+a,easing:ti[e.easing||N],done:e.done}).topDiff||(u.done&&u.done.call(s,!1),u=i),s},tn.prototype.stopAnimateTo=function(){u&&u.done&&u.done.call(s,!0),u=i},tn.prototype.isAnimatingTo=function(){return!!u},tn.prototype.isMobile=function(){return tB},tn.prototype.setScrollTop=function(e,i){return g=!0===i,tB?tj=x.min(x.max(e,0),tL):t.scrollTo(0,e),s},tn.prototype.getScrollTop=function(){return tB?tj:t.pageYOffset||n.scrollTop||o.scrollTop||0},tn.prototype.getMaxScrollTop=function(){return tL},tn.prototype.on=function(t,e){return l[t]=e,s},tn.prototype.off=function(t){return delete l[t],s},tn.prototype.destroy=function(){te()(y),t_(),tT(n,[A],[M,D,O]);for(var t=0,e=a.length;t<e;t++)tf(a[t].element);n.style.overflow=o.style.overflow="",n.style.height=o.style.height="",r&&b.setStyle(r,"transform","none"),s=i,r=i,l=i,h=i,tL=0,tI=1,c=i,d=i,tM="down",tA=-1,tO=0,tN=0,tz=!1,u=i,p=i,f=i,m=i,g=i,tH=0,v=i,tB=!1,tj=0,_=i};var to=function(){var a,r,l,h,c,u,p,f,m,g,v;tg(n,[T,k,"touchcancel","touchend"].join(" "),function(t){var n=t.changedTouches[0];for(h=t.target;3===h.nodeType;)h=h.parentNode;switch(c=n.clientY,u=n.clientX,m=t.timeStamp,j.test(h.tagName)||t.preventDefault(),t.type){case T:a&&a.blur(),s.stopAnimateTo(),a=h,r=p=c,l=u;break;case k:j.test(h.tagName)&&e.activeElement!==h&&t.preventDefault(),f=c-p,v=m-g,s.setScrollTop(tj-f,!0),p=c,g=m;break;default:var o=r-c,_=l-u;if(_*_+o*o<49){if(!j.test(a.tagName)){a.focus();var y=e.createEvent("MouseEvents");y.initMouseEvent("click",!0,!0,t.view,1,n.screenX,n.screenY,n.clientX,n.clientY,t.ctrlKey,t.altKey,t.shiftKey,t.metaKey,0,null),a.dispatchEvent(y)}return}a=i;var b=f/v;b=x.max(x.min(b,3),-3);var w=x.abs(b/d),C=b*w+.5*d*w*w,S=s.getScrollTop()-C,E=0;S>tL?(E=(tL-S)/C,S=tL):S<0&&(E=-S/C,S=0),w*=1-E,s.animateTo(S+.5|0,{easing:"outCubic",duration:w})}}),t.scrollTo(0,0),n.style.overflow=o.style.overflow="hidden"},ts=function(){var t,e,i,o,r,l,c,d,u,p,f,m=n.clientHeight,g=tw();for(d=0,u=a.length;d<u;d++)for(e=(t=a[d]).element,i=t.anchorTarget,o=t.keyFrames,r=0,l=o.length;r<l;
8r++)p=(c=o[r]).offset,f=g[c.constant]||0,c.frame=p,c.isPercentage&&(p*=m,c.frame=p),"relative"===c.mode&&(tf(e),c.frame=s.relativeToAbsolute(i,c.anchors[0],c.anchors[1])-p,tf(e,!0)),c.frame+=f,h&&!c.isEnd&&c.frame>tL&&(tL=c.frame);for(tL=x.max(tL,tx()),d=0,u=a.length;d<u;d++){for(o=(t=a[d]).keyFrames,r=0,l=o.length;r<l;r++)f=g[(c=o[r]).constant]||0,c.isEnd&&(c.frame=tL-c.offset+f);t.keyFrames.sort(tP)}},ta=function(t,e){for(var i=0,n=a.length;i<n;i++){var o,s,r=a[i],l=r.element,h=r.smoothScrolling?t:e,c=r.keyFrames,d=c.length,u=c[0],p=c[c.length-1],f=h<u.frame,m=h>p.frame,g=f?u:p,v=r.emitEvents,_=r.lastFrameIndex;if(f||m){if(f&&-1===r.edge||m&&1===r.edge)continue;switch(f?(tT(l,[E],[I,P]),v&&_>-1&&(ty(l,u.eventType,tM),r.lastFrameIndex=-1)):(tT(l,[I],[E,P]),v&&_<d&&(ty(l,p.eventType,tM),r.lastFrameIndex=d)),r.edge=f?-1:1,r.edgeStrategy){case"reset":tf(l);continue;case"ease":h=g.frame;break;default:var y=g.props;for(o in y)w.call(y,o)&&(s=tp(y[o].value),0===o.indexOf("@")?l.setAttribute(o.substr(1),s):b.setStyle(l,o,s));continue}}else 0!==r.edge&&(tT(l,[S,P],[E,I]),r.edge=0);for(var x=0;x<d-1;x++)if(h>=c[x].frame&&h<=c[x+1].frame){var C=c[x],T=c[x+1];for(o in C.props)if(w.call(C.props,o)){var k=(h-C.frame)/(T.frame-C.frame);k=C.props[o].easing(k),s=tp(s=tu(C.props[o].value,T.props[o].value,k)),0===o.indexOf("@")?l.setAttribute(o.substr(1),s):b.setStyle(l,o,s)}v&&_!==x&&("down"===tM?ty(l,C.eventType,tM):ty(l,T.eventType,tM),r.lastFrameIndex=x);break}}},tr=function(){tz&&(tz=!1,tb());var t,e,n=s.getScrollTop(),o=tE();if(u?(o>=u.endTime?(n=u.targetTop,t=u.done,u=i):(e=u.easing((o-u.startTime)/u.duration),n=u.startTop+e*u.topDiff|0),s.setScrollTop(n,!0)):!g&&(m.targetTop-n&&(m={startTop:tA,topDiff:n-tA,targetTop:n,startTime:tD,endTime:tD+f}),o<=m.endTime&&(e=ti.sqrt((o-m.startTime)/f),n=m.startTop+e*m.topDiff|0)),g||tA!==n){tM=n>tA?"down":n<tA?"up":tM,g=!1;var a={curTop:n,lastTop:tA,maxTop:tL,direction:tM};!1!==(l.beforerender&&l.beforerender.call(s,a))&&(ta(n,s.getScrollTop()),tB&&r&&b.setStyle(r,"transform","translate(0, "+-tj+"px) "+_),tA=n,l.render&&l.render.call(s,a)),t&&t.call(s,!1)}tD=o},tl=function(t){for(var e=0,i=t.keyFrames.length;e<i;e++){for(var n,o,s,a,r=t.keyFrames[e],l={};null!==(a=F.exec(r.props));)s=a[1],o=a[2],null!==(n=s.match(q))?(s=n[1],n=n[2]):n=N,o=o.indexOf("!")?th(o):[o.slice(1)],l[s]={value:o,easing:ti[n]};r.props=l}},th=function(t){var e=[];return K.lastIndex=0,t=t.replace(K,function(t){return t.replace(U,function(t){return t/255*100+"%"})}),X&&(G.lastIndex=0,t=t.replace(G,function(t){return X+t})),t=t.replace(U,function(t){return e.push(+t),"{?}"}),e.unshift(t),e},tc=function(t){var e,i,n={};for(e=0,i=t.keyFrames.length;e<i;e++)td(t.keyFrames[e],n);for(n={},e=t.keyFrames.length-1;e>=0;e--)td(t.keyFrames[e],n)},td=function(t,e){var i;for(i in e)w.call(t.props,i)||(t.props[i]=e[i]);for(i in t.props)e[i]=t.props[i]},tu=function(t,e,i){var n,o=t.length;if(o!==e.length)throw"Can't interpolate between \""+t[0]+'" and "'+e[0]+'"';var s=[t[0]];for(n=1;n<o;n++)s[n]=t[n]+(e[n]-t[n])*i;return s},tp=function(t){var e=1;return Y.lastIndex=0,t[0].replace(Y,function(){return t[e++]})},tf=function(t,e){t=[].concat(t);for(var i,n,o=0,s=t.length;o<s;o++)(i=a[(n=t[o])[B]])&&(e?(n.style.cssText=i.dirtyStyleAttr,tT(n,i.dirtyClassAttr)):(i.dirtyStyleAttr=n.style.cssText,i.dirtyClassAttr=tC(n),n.style.cssText=i.styleAttr,tT(n,i.classAttr)))},tm=function(){_="translateZ(0)",b.setStyle(r,"transform",_);var t=C(r),e=t.getPropertyValue("transform"),i=t.getPropertyValue(X+"transform");e&&"none"!==e||i&&"none"!==i||(_="")};b.setStyle=function(t,e,i){var n=t.style;if("zIndex"===(e=e.replace(Z,V).replace("-","")))isNaN(i)?n[e]=i:n[e]=""+(0|i);else if("float"===e)n.styleFloat=n.cssFloat=i;else try{Q&&(n[Q+e.slice(0,1).toUpperCase()+e.slice(1)]=i),n[e]=i}catch(t){}};var tg=b.addEvent=function(e,i,n){var o,s=function(e){return(e=e||t.event).target||(e.target=e.srcElement),e.preventDefault||(e.preventDefault=function(){e.returnValue=!1,e.defaultPrevented=!0}),n.call(this,e)};i=i.split(" ");for(var a=0,r=i.length;a<r;a++)o=i[a],e.addEventListener?e.addEventListener(o,n,!1):e.attachEvent("on"+o,s),tW.push({element:e,name:o,listener:n})}
8,tv=b.removeEvent=function(t,e,i){e=e.split(" ");for(var n=0,o=e.length;n<o;n++)t.removeEventListener?t.removeEventListener(e[n],i,!1):t.detachEvent("on"+e[n],i)},t_=function(){for(var t,e=0,i=tW.length;e<i;e++)tv((t=tW[e]).element,t.name,t.listener);tW=[]},ty=function(t,e,i){l.keyframe&&l.keyframe.call(s,t,e,i)},tb=function(){var t=s.getScrollTop();tL=0,h&&!tB&&(o.style.height=""),ts(),h&&!tB&&(o.style.height=tL+n.clientHeight+"px"),tB?s.setScrollTop(x.min(s.getScrollTop(),tL)):s.setScrollTop(t,!0),g=!0},tw=function(){var t,e,i=n.clientHeight,o={};for(t in c)"function"==typeof(e=c[t])?e=e.call(s):/p$/.test(e)&&(e=e.slice(0,-1)/100*i),o[t]=e;return o},tx=function(){var t=0;return r&&(t=x.max(r.offsetHeight,r.scrollHeight)),x.max(t,o.scrollHeight,o.offsetHeight,n.scrollHeight,n.offsetHeight,n.clientHeight)-n.clientHeight},tC=function(e){var i="className";return t.SVGElement&&e instanceof t.SVGElement&&(e=e[i],i="baseVal"),e[i]},tT=function(e,n,o){var s="className";if(t.SVGElement&&e instanceof t.SVGElement&&(e=e[s],s="baseVal"),i===o){e[s]=n;return}for(var a=e[s],r=0,l=o.length;r<l;r++)a=tS(a).replace(tS(o[r])," ");a=tk(a);for(var h=0,c=n.length;h<c;h++)-1===tS(a).indexOf(tS(n[h]))&&(a+=" "+n[h]);e[s]=tk(a)},tk=function(t){return t.replace(W,"")},tS=function(t){return" "+t+" "},tE=Date.now||function(){return+new Date},tP=function(t,e){return t.frame-e.frame},tL=0,tI=1,tM="down",tA=-1,tD=tE(),tO=0,tN=0,tz=!1,tH=0,tB=!1,tj=0,tW=[];"function"==typeof define&&define.amd?define([],function(){return b}):"undefined"!=typeof module&&module.exports?module.exports=b:t.skrollr=b}(window,document),(()=>{"use strict";if(window.PLEStickyState)return;window.PLEStickyElements??=new WeakMap;let t={isSticky:"isSticky"in HTMLElement.prototype||"isSticky"in Element.prototype,exTop:"exTop"in HTMLElement.prototype||"exTop"in Element.prototype};(t.isSticky||t.exTop)&&console.error(` 9<hr/><hr/><hr/> 10exTop and isSticky have been found on HTMLElement or Element, conflicting with our deprecated properties!<br/> 11isSticky: ${t.isSticky}<br/> 12exTop: ${t.exTop}<br/> 13Any Non-migrated Sticky functionallity is now broken!!! 14<hr/><hr/><hr/> 15`);class e{static states=window.PLEStickyElements;static stickySectionSelector=".ple_module_sticky";static containerSelector=".container";static findOrNew=i=>{let n=this.states.get(i);return n||(n=new e,this.states.set(i,n)),"isSticky"in i&&!t.isSticky&&null!=i.isSticky&&(n.isSticky=i.isSticky),"exTop"in i&&!t.exTop&&null!=i.exTop&&(n.top=i.exTop),n};static getStickySectionElements=()=>document.querySelectorAll(this.stickySectionSelector);static getStickySectionsHeight=()=>{let{stickySectionSelector:t,containerSelector:e}=this,{innerHeight:i,innerWidth:n,scrollY:o}=window,s=o-document.documentElement.clientTop,a=!!document.querySelectorAll(".isEditor").length,r=0,l=[];for(let o of document.querySelectorAll(t)){let t=o.querySelectorAll(e),a=PLEStickyState.findOrNew(o);if(a.isSticky)for(let e of t)delete e.dataset.inViewport;else{let e=o.getBoundingClientRect();if(e.top>=0&&e.left>=0&&e.right<=n&&e.bottom<=i){for(let e of t)e.dataset.inViewport="true";a.top=e.top+s,a.isSticky=!0}}a.isSticky&&l.push(...t)}for(let t of l){let e=$(t).outerHeight(!0);r+=e,a&&"true"===t.dataset.inViewport&&(r+=e)}return 0===r?r=$(".mobileHeader-container").height():r+=$(".se__navbar-fixed .nav-bar").outerHeight(!0),r};isSticky=void 0;top=void 0}window.PLEStickyState=e,$(()=>{let i=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),n=$(".isEditor"),o=!n.length,s=e.states,a=e.getStickySectionElements();for(let t of a)s.set(t,new e);if(o)for(let t of a)Object.assign(t.style,{maxHeight:"0",opacity:"0"});let r=null;if("onscrollend"in window)addEventListener("scroll",()=>{l(r??=e.getStickySectionElements())}),addEventListener("scrollend",()=>{r=null});else{let t=0;addEventListener("scroll",()=>{l(r??=e.getStickySectionElements()),t&&clearTimeout(t),t=setTimeout(()=>{r=null,t=0},300)})}let l=n=>{if(!n.length)return;let{scrollY:s}=window,a=s;if(a<=0){let t="",e="",i="";o&&(t="0",e="0",i="opacity 0s linear"),$(n).css({position:"relative",zIndex:"auto",maxHeight:e,transition:i,opacity:t,top:"0px",width:"100%"});return}let r=0,l=s-document.documentElement.clientTop;for(let s of n){let n=r,h=s.getBoundingClientRect(),c=h.height;r+=c;let d=h.top+l,u=e.findOrNew(s),p=u.isSticky&&a<=u.top,f=d<=a,m="",g="",v="",_="",y=1,b=0;o&&(_="0",g="0"),p?(u.isSticky=!1,m="relative",y=1):f&&(u.isSticky||(u.isSticky=!0,u.top=d),y=103,b+=n,o?(m="fixed",_="
151",g="99999px",v="opacity 0.3s linear"):m=i?"-webkit-sticky":"fixed",a+=c),$(s).css({position:m,zIndex:y,maxHeight:g,transition:v,opacity:_,top:`${b}px`,width:"100%"});try{t.isSticky&&(s.isSticky=u.isSticky),t.exTop&&(s.exTop=u.top)}catch(t){console.error(t)}}}});e:{let t=()=>{let t=document.querySelectorAll(".section:not(.ple_module_sticky)");for(let e of t)e.removeAttribute("style")},e=()=>{let e=document.querySelectorAll('button[data-ple-id="$stickyBtnDisable"]');for(let i of e)i.addEventListener("click",t)};addEventListener("load",e,{once:!0})}})(),function(t,e){var i,n,o,s,a,r,l,h,c,d,u,p,f,m,g,v,_,y,b,w;function x(t){if(1/t==-1/0&&(t=0),t>4294967295)throw RangeError("Invalid array length");var e=[];return e.length=t,e}function C(t,e){var i=arguments.length>2?arguments[2]:[];if(!1===k(t))throw TypeError(Object.prototype.toString.call(t)+"is not a function.");return t.apply(e,i)}function T(t){return"[object Array]"===Object.prototype.toString.call(t)}function k(t){return"function"==typeof t}function S(t){if(null==t)throw TypeError();return Object(t)}function E(e){switch(typeof e){case"undefined":return"undefined";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";default:return null===e?"null":"Symbol"in t&&(e instanceof t.Symbol||e.constructor===t.Symbol)?"symbol":"object"}}function P(t){return"object"===E(t)&&"function"==typeof t&&!!t.prototype}function I(t){if("symbol"===E(t))throw TypeError("Cannot convert a Symbol value to a number");var e=Number(t);return isNaN(e)?0:1/e==1/0||1/e==-1/0||e===1/0||e===-1/0?e:(e<0?-1:1)*Math.floor(Math.abs(e))}function M(t){var e=I(t);return e<=0?0:Math.min(e,9007199254740991)}function A(i){var n=arguments.length>1?arguments[1]:e;if("object"===E(i)){if(arguments.length<2)var o="default";else n===String?o="string":n===Number&&(o="number");var s="function"==typeof t.Symbol&&"symbol"==typeof t.Symbol.toPrimitive?function(t,e){var i=S(t)[e];if(null!=i){if(!1===k(i))throw TypeError("Method not callable: "+e);return i}}(i,t.Symbol.toPrimitive):e;if(e!==s){var a=C(s,i,[o]);if("object"!==E(a))return a;throw TypeError("Cannot convert exotic object to primitive.")}return"default"===o&&(o="number"),function(t,e){if("string"===e)var i=["toString","valueOf"];else i=["valueOf","toString"];for(var n=0;n<i.length;++n){var o=t[i[n]];if(k(o)){var s=C(o,t);if("object"!==E(s))return s}}throw TypeError("Cannot convert to primitive.")}(i,o)}return i}function D(t){switch(E(t)){case"symbol":throw TypeError("Cannot convert a Symbol value to a string");case"object":return D(A(t,String));default:return String(t)}}function O(t,e,i){var n=function(t,e,i){try{return Object.defineProperty(t,e,{value:i,writable:!0,enumerable:!0,configurable:!0}),!0}catch(t){return!1}}(t,e,i);if(!n)throw TypeError("Cannot assign value `"+Object.prototype.toString.call(i)+"` to property `"+Object.prototype.toString.call(e)+"` on object `"+Object.prototype.toString.call(t)+"`");return n}function N(t,e,i){Object.defineProperty(t,e,{value:i,writable:!0,enumerable:!1,configurable:!0})}function z(i,n){if(0===n&&1/n==-1/0&&(n=0),!1===T(i))return x(n);var o=i.constructor;if("object"===E(o)&&null===(o="Symbol"in t&&"species"in t.Symbol?o[t.Symbol.species]:e)&&(o=e),e===o)return x(n);if(!P(o))throw TypeError("C must be a constructor");return function(t){var e=arguments.length>2?arguments[2]:t,i=arguments.length>1?arguments[1]:[];if(!P(t))throw TypeError("F must be a constructor.");if(!P(e))throw TypeError("newTarget must be a constructor.");if(e===t)return new(Function.prototype.bind.apply(t,[null].concat(i)));var n=function(t,e){var i,n=arguments[2]||{},o=Object.create(("object"!==E(i=t.prototype)&&(i=e),i));for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&Object.defineProperty(o,s,{configurable:!0,enumerable:!1,writable:!0,value:n[s]});return o}(e,Object.prototype);return C(t,n,i)}(o,[n])}"Date"in t&&"now"in t.Date&&"getTime"in t.Date.prototype||(Date.now=function(){return(new Date).getTime()}),"document"in t||"undefined"!=typeof WorkerGlobalScope||"function"==typeof importScripts||(t.HTMLDocument?t.Document=t.HTMLDocument:(t.Document=t.HTMLDocument=document.constructor=Function("return function Document() {}")(),t.Document.prototype=document)),"Element"in t&&"HTMLElement"in t||function(){function e(){return c--||clearTimeout(i),!(!document.body||document.body.prototype||!/(complete|interactive)/.test(document.readyState))&&(r(document,!0),i&&document.body.prototype&&clearTimeout(i),!!document.body.prototype)}if(!("Element"in t&&"HTMLElement"in t)){if(window.Element&&!window.HTMLElement)return void(window.HTMLElement=window.Element);window.Element=window.HTMLElement=Function("return function Element() {}")();var i,n=document.appendChild(document.createElement("body")),o=n.appendChild(document.createElement("iframe")).contentWindow.document,s=Element.prototype=o.appendChild(o.createElement("*")),a={},r=function(t,e){var i,n,o,s=t.childNodes||[],l=-1;if(1===t.nodeType&&t.constructor!==Element)for(i in t.constructor=Element,a)n=a[i],t[i]=n;for(;o=e&&s[++l];)r(o,e);return t},l=document.getElementsByTagName("*"),h=document.createElement,c=100;s.attachEvent("onpropertychange",function(t){for(var e,i=t.propertyName,n=!Object.prototype.hasOwnProperty.call(a,i),o=s[i],r=a[i],h=-1;e=l[++h];)1===e.nodeType&&(n||e[i]===r)&&(e[i]=o);a[i]=o}),s.constructor=Element,s.hasAttribute||(s.hasAttribute=function(t){return null!==this.getAttribute(t)}),e()||(document.onreadystatechange=e,i=setInterval(e,25)),document.createElement=function(t){return r(h(String(t).toLowerCase()))},document.removeChild(n)}}(),"defineProperty"in Object&&function(){try{return Object.defineProperty({},"test",{value:42}),!0}catch(t){return!1}}()||(i=Object.defineProperty,n=Object.prototype.hasOwnProperty.call(Object.prototype,"__defineGetter__"),o="A property cannot both have accessors and be writable or have a value",Object.defineProperty=function(t,s,a){if(i&&(t===window||t===document||t===Element.prototype||t instanceof Element))return i(t,s,a);if(null===t||!(t instanceof Object||"object"==typeof t))throw TypeError("Object.defineProperty called on non-object");
15if(!(a instanceof Object))throw TypeError("Property description must be an object");var r=String(s),l="value"in a||"writable"in a,h="get"in a&&typeof a.get,c="set"in a&&typeof a.set;if(h){if(e===h)return t;if("function"!==h)throw TypeError("Getter must be a function");if(!n)throw TypeError("Getters & setters cannot be defined on this javascript engine");if(l)throw TypeError(o);Object.__defineGetter__.call(t,r,a.get)}else t[r]=a.value;if(c){if(e===c)return t;if("function"!==c)throw TypeError("Setter must be a function");if(!n)throw TypeError("Getters & setters cannot be defined on this javascript engine");if(l)throw TypeError(o);Object.__defineSetter__.call(t,r,a.set)}return"value"in a&&(t[r]=a.value),t}),"isArray"in Array||N(Array,"isArray",function(t){return T(t)}),"forEach"in Array.prototype||N(Array.prototype,"forEach",function(t){var i=S(this),n=i instanceof String?i.split(""):i,o=M(i.length);if(!1===k(t))throw TypeError(t+" is not a function");for(var s=arguments.length>1?arguments[1]:e,a=0;a<o;){var r=D(a);r in n&&C(t,s,[n[r],a,i]),a+=1}}),"includes"in Array.prototype||N(Array.prototype,"includes",function(t){"use strict";var e,i=S(this),n=M(i.length);if(0===n)return!1;var o=I(arguments[1]);if(o>=0)var s=o;else(s=n+o)<0&&(s=0);for(;s<n;){if(e=i[D(s)],E(t)===E(e)&&("number"===E(t)&&(!(!isNaN(t)||!isNaN(e))||1/t==1/0&&1/e==-1/0||1/t==-1/0&&1/e==1/0)||t===e))return!0;s+=1}return!1}),"indexOf"in Array.prototype||N(Array.prototype,"indexOf",function(t){var e=S(this),i=M(e.length);if(0===i)return -1;var n=I(arguments[1]);if(n>=i)return -1;if(n>=0)var o=1/n==-1/0?0:n;else(o=i+n)<0&&(o=0);for(;o<i;){if(D(o) in e&&t===e[D(o)])return o;o+=1}return -1}),"some"in Array.prototype||N(Array.prototype,"some",function(t){var i=S(this),n=M(i.length);if(!1===k(t))throw TypeError(t+" is not a function");for(var o=arguments.length>1?arguments[1]:e,s=0;s<n;){var a=D(s);if(a in i&&C(t,o,[i[a],s,i]))return!0;s+=1}return!1}),"bind"in Function.prototype||N(Function.prototype,"bind",function(t){var e=Object,i=Array.prototype,n=function(){},o=i.slice,s=i.concat,a=i.push,r=this;if(!k(r))throw TypeError("Function.prototype.bind called on incompatible "+r);for(var l,h=o.call(arguments,1),c=(0,Math.max)(0,r.length-h.length),d=[],u=0;u<c;u++)a.call(d,"$"+u);return l=Function("binder","return function ("+d.join(",")+"){ return binder.apply(this, arguments); }")(function(){if(this instanceof l){var i=r.apply(this,s.call(h,o.call(arguments)));return e(i)===i?i:this}return r.apply(t,s.call(h,o.call(arguments)))}),r.prototype&&(n.prototype=r.prototype,l.prototype=new n,n.prototype=null),l}),"getOwnPropertyDescriptor"in Object&&"function"==typeof Object.getOwnPropertyDescriptor&&function(){try{return"3"===Object.getOwnPropertyDescriptor("13.7",1).value}catch(t){return!1}}()||(s=Object.getOwnPropertyDescriptor,a=function(){try{return 1===Object.defineProperty(document.createElement("div"),"one",{get:function(){return 1}}).one}catch(t){return!1}},r=({}).toString,l="".split,N(Object,"getOwnPropertyDescriptor",function(t,e){var i,n,o=S(t);o=("string"===E(o)||o instanceof String)&&"[object String]"==r.call(t)?l.call(t,""):Object(t);var h="symbol"===E(i=A(e,String))?i:D(i);if(a)try{return s(o,h)}catch(t){}if(n=o,Object.prototype.hasOwnProperty.call(n,h))return{enumerable:!0,configurable:!0,writable:!0,value:o[h]}})),"getPrototypeOf"in Object||N(Object,"getPrototypeOf",function(t){if(t!==Object(t))throw TypeError("Object.getPrototypeOf called on non-object");var e=t.__proto__;return e||null===e?e:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?Object.prototype:null}),"keys"in Object&&function(){return 2===Object.keys(arguments).length}(1,2)&&function(){try{return Object.keys(""),!0}catch(t){return!1}}()||N(Object,"keys",(h=Object.prototype.hasOwnProperty,c=Object.prototype.toString,u=!(d=Object.prototype.propertyIsEnumerable).call({toString:null},"toString"),p=d.call(function(){},"prototype"),f=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],m=function(t){var e=t.constructor;return e&&e.prototype===t},g={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHe
15ight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},v=function(){if("undefined"==typeof window)return!1;for(var t in window)try{if(!g["$"+t]&&h.call(window,t)&&null!==window[t]&&"object"==typeof window[t])try{m(window[t])}catch(t){return!0}}catch(t){return!0}return!1}(),_=function(t){if("undefined"==typeof window||!v)return m(t);try{return m(t)}catch(t){return!1}},function(t){var e,i,n="[object Function]"===c.call(t),o=((i="[object Arguments]"===(e=c.call(t)))||(i="[object Array]"!==e&&null!==t&&"object"==typeof t&&"number"==typeof t.length&&t.length>=0&&"[object Function]"===c.call(t.callee)),i),s="[object String]"===c.call(t),a=[];if(null==t)throw TypeError("Cannot convert undefined or null to object");var r=p&&n;if(s&&t.length>0&&!h.call(t,0))for(var l=0;l<t.length;++l)a.push(String(l));if(o&&t.length>0)for(var m=0;m<t.length;++m)a.push(String(m));else for(var g in t)(function(){var t;try{t=Object.create({})}catch(t){return!0}return d.call(t,"__proto__")})()&&"__proto__"===g||r&&"prototype"===g||!h.call(t,g)||a.push(String(g));if(u)for(var v=_(t),y=0;y<f.length;++y)v&&"constructor"===f[y]||!h.call(t,f[y])||a.push(f[y]);return a})),"defineProperties"in Object||N(Object,"defineProperties",function(t,i){if("object"!==E(t))throw TypeError("Object.defineProperties called on non-object");for(var n=S(i),o=Object.keys(n),s=[],a=0;a<o.length;a++){var r=o[a],l=Object.getOwnPropertyDescriptor(n,r);if(e!==l&&l.enumerable){var h=n[r];s.push([r,h])}}for(var c=0;c<s.length;c++)Object.defineProperty(t,s[c][0],h=s[c][1]);return t}),"create"in Object||function(){var t;function e(){}t=function(){var e=document.createElement("iframe");e.style.display="none";var i=document.body||document.documentElement;i.appendChild(e),e.src="javascript:";var n=e.contentWindow.Object.prototype;i.removeChild(e),e=null,delete n.constructor,delete n.hasOwnProperty,delete n.propertyIsEnumerable,delete n.isPrototypeOf,delete n.toLocaleString,delete n.toString,delete n.valueOf;var o=function(){};return o.prototype=n,t=function(){return new o},new o},N(Object,"create",function(i,n){if("object"!==E(i)&&"null"!==E(i))throw TypeError("Object prototype may only be an Object or null");if("null"===E(i))var o=t();else e.prototype=i,(o=new e).__proto__=i,o.constructor.prototype=i,o.__proto__=i;return 1 in arguments?Object.defineProperties(o,n):o})}(),"filter"in Array.prototype||N(Array.prototype,"filter",function(t){var i=S(this),n=M(i.length);if(!1===k(t))throw TypeError(t+" is not a function");for(var o=arguments.length>1?arguments[1]:e,s=z(i,0),a=0,r=0;a<n;){var l=D(a);if(l in i){var h=i[l];C(t,o,[h,a,i])&&(O(s,D(r),h),r+=1)}a+=1}return s}),"map"in Array.prototype||N(Array.prototype,"map",function(t){var i=S(this),n=M(i.length);if(!1===k(t))throw TypeError(t+" is not a function");for(var o=arguments.length>1?arguments[1]:e,s=z(i,n),a=0;a<n;){var r=D(a);if(r in i){var l=C(t,o,[i[r],a,i]);O(s,r,l)}a+=1}return s}),"performance"in t&&"now"in t.performance||(y=t,b=Date.now(),y.performance||(y.performance={}),y.performance.now=function(){return Date.now()-b}),"Window"in t||"undefined"!=typeof WorkerGlobalScope||"function"==typeof importScripts||((w=t).constructor?w.Window=w.constructor:(w.Window=w.constructor=Function("return function Window() {}")()).prototype=t),!function(t){if(!("Event"in t))return!1;try{return new Event("click"),!0}catch(t){return!1}}(t)&&function(){function t(t,i){if(!t)throw Error("Not enough arguments");if("createEvent"in document){n=document.createEvent("Event");var n,o=!(!i||e===i.bubbles)&&i.bubbles,s=!(!i||e===i.cancelable)&&i.cancelable;return n.initEvent(t,o,s),n}return(n=document.createEventObject()).type=t,n.bubbles=!(!i||e===i.bubbles)&&i.bubbles,n.cancelable=!(!i||e===i.cancelable)&&i.cancelable,n}var i={click:1,dblclick:1,keyup:1,keypress:1,keydown:1,mousedown:1,mouseup:1,mousemove:1,mouseover:1,mouseenter:1,mouseleave:1,mouseout:1,storage:1,storagecommit:1,textinput:1};if("undefined"!=typeof document&&"undefined"!=typeof window){var n=window.Event&&window.Event.prototype||null;t.NONE=0,t.CAPTURING_PHASE=1,t.AT_TARGET=2,t.BUBBLING_PHASE=3,window.Event=Window.prototype.Event=t,n&&Object.defineProperty(window.Event,"prototype",{configurable:!1,enumerable:!1,writable:!0,value:n}),"createEvent"in document||(window.addEventListener=Window.prototype.addEventListener=Document.prototype.addEventListener=Element.prototype.addEventListener=function(){var t=this,e=arguments[0],n=arguments[1];if(t===window&&e in i)throw Error("In IE8 the event: "+e+" is not available on the window object. Please see https://github.com/Financial-Times/polyfill-service/issues/317 for more information.");t._events||(t._events={}),t._events[e]||(t._events[e]=function(e){var i,n=t._events[e.type].list,o=n.slice(),s=-1,a=o.length;for(e.preventDefault=function(){!1!==e.cancelable&&(e.returnValue=!1)},e.stopPropagation=function(){e.cancelBubble=!0},e.stopImmediatePropagation=function(){e.cancelBubble=!0,e.cancelImmediate=!0},e.currentTarget=t,e.relatedTarget=e.fromElement||null,e.target=e.target||e.srcElement||t,e.timeStamp=(new Date).getTime(),e.clientX&&(e.pageX=e.clientX+document.documentElement.scrollLeft,e.pageY=e.clientY+document.documentElement.scrollTop);++s<a&&!e.cancelImmediate;)s in o&&(i=o[s],n.includes(i)&&"function"==typeof i&&i.call(t,e))},t._events[e].list=[],t.attachEvent&&t.attachEvent("on"+e,t._events[e])),t._events[e].list.push(n)},window.removeEventListener=Window.prototype.removeEventListener=Document.prototype.removeEventListener=Element.prototype.removeEventListener=function(){var t,e=arguments[0],i=arguments[1];this._events&&this._events[e]&&this._events[e].list&&-1!==(t=this._events[e].list.indexOf(i))&&(this._events[e].list.splice(t,1),this._events[e].list.length||(this.detachEvent&&this.detachEvent("on"+e,this._events[e]),delete this._events[e]))},window.dispatchEvent=Window.prototype.dispatchEvent=Document.prototype.dispatchEvent=Element.prototype.dispatchEvent=function(t){if(!arguments.length)throw Error("Not enough arguments");if(!t||"string"!=typeof t.type)throw Error("DOM Events Exception 0");var e=this,i=t.type;try{if(!t.bubbles){t.cancelBubble=!0;var n=function(t){t.cancelBubble=!0,(e||window).detachEvent("on"+i,n)};this.attachEvent("on"+i,n)}this.fireEvent("on"+i,t)}catch(n){t.target=e;do t.currentTarget=e,"_events"in e&&"function"==typeof e._events[i]&&e._events[i].call(e,t),"function"==typeof e["on"+i]&&e["on"+i].call(e,t),e=9===e.nodeType?e.parentWindow:e.parentNode;while(e&&!t.cancelBubble)}return!0},document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&document.dispatchEvent(new t("DOMContentLoaded",{bubbles:!0}))}
15))}}(),"getComputedStyle"in t||function(t){function e(t,i,n){var o,s=t.document&&t.currentStyle[i].match(/([\d.]+)(%|cm|em|in|mm|pc|pt|)/)||[0,0,""],a=s[1],r=s[2];return n=n?/%|em/.test(r)&&t.parentElement?e(t.parentElement,"fontSize",null):16:n,o="fontSize"==i?n:/width/i.test(i)?t.clientWidth:t.clientHeight,"%"==r?a/100*o:"cm"==r?.3937*a*96:"em"==r?a*n:"in"==r?96*a:"mm"==r?.3937*a*96/10:"pc"==r?12*a*96/72:"pt"==r?96*a/72:a}function i(t,e){var i="border"==e?"Width":"",n=e+"Top"+i,o=e+"Right"+i,s=e+"Bottom"+i,a=e+"Left"+i;t[e]=(t[n]==t[o]&&t[n]==t[s]&&t[n]==t[a]?[t[n]]:t[n]==t[s]&&t[a]==t[o]?[t[n],t[o]]:t[a]==t[o]?[t[n],t[o],t[s]]:[t[n],t[o],t[s],t[a]]).join(" ")}function n(t){var n,o=this,s=t.currentStyle,a=e(t,"fontSize"),r=function(t){return"-"+t.toLowerCase()};for(n in s)if(Array.prototype.push.call(o,"styleFloat"==n?"float":n.replace(/[A-Z]/,r)),"width"==n)o[n]=t.offsetWidth+"px";else if("height"==n)o[n]=t.offsetHeight+"px";else if("styleFloat"==n)o.float=s[n];else if(/margin.|padding.|border.+W/.test(n)&&"auto"!=o[n])o[n]=Math.round(e(t,n,a))+"px";else if(/^outline/.test(n))try{o[n]=s[n]}catch(t){o.outlineColor=s.color,o.outlineStyle=o.outlineStyle||"none",o.outlineWidth=o.outlineWidth||"0px",o.outline=[o.outlineColor,o.outlineWidth,o.outlineStyle].join(" ")}else o[n]=s[n];i(o,"margin"),i(o,"padding"),i(o,"border"),o.fontSize=Math.round(a)+"px"}n.prototype={constructor:n,getPropertyPriority:function(){throw Error("NotSupportedError: DOM Exception 9")},getPropertyValue:function(t){return this[t.replace(/-\w/g,function(t){return t[1].toUpperCase()})]},item:function(t){return this[t]},removeProperty:function(){throw Error("NoModificationAllowedError: DOM Exception 7")},setProperty:function(){throw Error("NoModificationAllowedError: DOM Exception 7")},getPropertyCSSValue:function(){throw Error("NotSupportedError: DOM Exception 9")}},t.getComputedStyle=function(t){return new n(t)}}(t),"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype||function(t,e){"use strict";function i(t){this.time=t.time,this.target=t.target,this.rootBounds=t.rootBounds,this.boundingClientRect=t.boundingClientRect,this.intersectionRect=t.intersectionRect||r();try{this.isIntersecting=!!t.intersectionRect}catch(t){}var e=this.boundingClientRect,i=e.width*e.height,n=this.intersectionRect,o=n.width*n.height;this.intersectionRatio=i?Number((o/i).toFixed(4)):this.isIntersecting?1:0}function n(t,e){var i,n,o,s=e||{};if("function"!=typeof t)throw Error("callback must be a function");if(s.root&&1!=s.root.nodeType)throw Error("root must be an Element");this._checkForIntersections=(i=this._checkForIntersections.bind(this),n=this.THROTTLE_TIMEOUT,o=null,function(){o||(o=setTimeout(function(){i(),o=null},n))}),this._callback=t,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(s.rootMargin),this.thresholds=this._initThresholds(s.threshold),this.root=s.root||null,this.rootMargin=this._rootMarginValues.map(function(t){return t.value+t.unit}).join(" ")}function o(t,e,i,n){"function"==typeof t.addEventListener?t.addEventListener(e,i,n||!1):"function"==typeof t.attachEvent&&t.attachEvent("on"+e,i)}function s(t,e,i,n){"function"==typeof t.removeEventListener?t.removeEventListener(e,i,n||!1):"function"==typeof t.detatchEvent&&t.detatchEvent("on"+e,i)}function a(t){var e;try{e=t.getBoundingClientRect()}catch(t){}return e?(e.width&&e.height||(e={top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.right-e.left,height:e.bottom-e.top}),e):r()}function r(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function l(t,e){for(var i=e;i;){if(i==t)return!0;i=h(i)}return!1}function h(t){var e=t.parentNode;return e&&11==e.nodeType&&e.host?e.host:e&&e.assignedSlot?e.assignedSlot.parentNode:e}var c=[];n.prototype.THROTTLE_TIMEOUT=100,n.prototype.POLL_INTERVAL=null,n.prototype.USE_MUTATION_OBSERVER=!0,n.prototype.observe=function(t){if(!this._observationTargets.some(function(e){return e.element==t})){if(!t||1!=t.nodeType)throw Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:t,entry:null}),this._monitorIntersections(),this._checkForIntersections()}},n.prototype.unobserve=function(t){this._observationTargets=this._observationTargets.filter(function(e){return e.element!=t}),this._observationTargets.length||(this._unmonitorIntersections(),this._unregisterInstance())},n.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorIntersections(),this._unregisterInstance()},n.prototype.takeRecords=function(){var t=this._queuedEntries.slice();return this._queuedEntries=[],t},n.prototype._initThresholds=function(t){var e=t||[0];
15return Array.isArray(e)||(e=[e]),e.sort().filter(function(t,e,i){if("number"!=typeof t||isNaN(t)||t<0||t>1)throw Error("threshold must be a number between 0 and 1 inclusively");return t!==i[e-1]})},n.prototype._parseRootMargin=function(t){var e=(t||"0px").split(/\s+/).map(function(t){var e=/^(-?\d*\.?\d+)(px|%)$/.exec(t);if(!e)throw Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(e[1]),unit:e[2]}});return e[1]=e[1]||e[0],e[2]=e[2]||e[0],e[3]=e[3]||e[1],e},n.prototype._monitorIntersections=function(){this._monitoringIntersections||(this._monitoringIntersections=!0,this.POLL_INTERVAL?this._monitoringInterval=setInterval(this._checkForIntersections,this.POLL_INTERVAL):(o(t,"resize",this._checkForIntersections,!0),o(e,"scroll",this._checkForIntersections,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in t&&(this._domObserver=new MutationObserver(this._checkForIntersections),this._domObserver.observe(e,{attributes:!0,childList:!0,characterData:!0,subtree:!0}))))},n.prototype._unmonitorIntersections=function(){this._monitoringIntersections&&(this._monitoringIntersections=!1,clearInterval(this._monitoringInterval),this._monitoringInterval=null,s(t,"resize",this._checkForIntersections,!0),s(e,"scroll",this._checkForIntersections,!0),this._domObserver&&(this._domObserver.disconnect(),this._domObserver=null))},n.prototype._checkForIntersections=function(){var e=this._rootIsInDom(),n=e?this._getRootRect():r();this._observationTargets.forEach(function(o){var s=o.element,r=a(s),l=this._rootContainsTarget(s),h=o.entry,c=e&&l&&this._computeTargetAndRootIntersection(s,n),d=o.entry=new i({time:t.performance&&performance.now&&performance.now(),target:s,boundingClientRect:r,rootBounds:n,intersectionRect:c});h?e&&l?this._hasCrossedThreshold(h,d)&&this._queuedEntries.push(d):h&&h.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)},this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)},n.prototype._computeTargetAndRootIntersection=function(i,n){if("none"!=t.getComputedStyle(i).display){for(var o=a(i),s=o,r=h(i),l=!1;!l;){var c=null,d=1==r.nodeType?t.getComputedStyle(r):{};if("none"==d.display)return;if(r==this.root||r==e?(l=!0,c=n):r!=e.body&&r!=e.documentElement&&"visible"!=d.overflow&&(c=a(r)),c&&!(s=function(t,e){var i=Math.max(t.top,e.top),n=Math.min(t.bottom,e.bottom),o=Math.max(t.left,e.left),s=Math.min(t.right,e.right),a=s-o,r=n-i;return a>=0&&r>=0&&{top:i,bottom:n,left:o,right:s,width:a,height:r}}(c,s)))break;r=h(r)}return s}},n.prototype._getRootRect=function(){var t;if(this.root)t=a(this.root);else{var i=e.documentElement,n=e.body;t={top:0,left:0,right:i.clientWidth||n.clientWidth,width:i.clientWidth||n.clientWidth,bottom:i.clientHeight||n.clientHeight,height:i.clientHeight||n.clientHeight}}return this._expandRectByRootMargin(t)},n.prototype._expandRectByRootMargin=function(t){var e=this._rootMarginValues.map(function(e,i){return"px"==e.unit?e.value:e.value*(i%2?t.width:t.height)/100}),i={top:t.top-e[0],right:t.right+e[1],bottom:t.bottom+e[2],left:t.left-e[3]};return i.width=i.right-i.left,i.height=i.bottom-i.top,i},n.prototype._hasCrossedThreshold=function(t,e){var i=t&&t.isIntersecting?t.intersectionRatio||0:-1,n=e.isIntersecting?e.intersectionRatio||0:-1;if(i!==n)for(var o=0;o<this.thresholds.length;o++){var s=this.thresholds[o];if(s==i||s==n||s<i!=s<n)return!0}},n.prototype._rootIsInDom=function(){return!this.root||l(e,this.root)},n.prototype._rootContainsTarget=function(t){return l(this.root||e,t)},n.prototype._registerInstance=function(){0>c.indexOf(this)&&c.push(this)},n.prototype._unregisterInstance=function(){var t=c.indexOf(this);-1!=t&&c.splice(t,1)},t.IntersectionObserver=n,t.IntersectionObserverEntry=i}(window,document)}("object"==typeof window&&window||"object"==typeof self&&self||"object"==typeof global&&global||{}),function(t){"use strict";t(function(){var e,i,n=document.querySelectorAll(".section-lazy");function o(t){t.classList.remove("section-lazy")}("forEach"in n||(n=t.makeArray(n)),"IntersectionObserver"in window)?(e=new IntersectionObserver(function(t,e){t.forEach(function(t){if(t.isIntersecting||0!==t.intersectionRatio){var i=t.target;o(i),e.unobserve(i)}})},{rootMargin:"0px 0px 134% 0px"}),i=function(t){e.observe(t)}):i=function(){var t=0,e=2*window.innerHeight,i=function(t){var o=e>=t.getBoundingClientRect().top;return o||(i=n),o};function n(){return!1}return function(e){i(e)?o(e):setTimeout(function(){o(e)},300*(t+=1))}}
15(),n.forEach(i)})}(window.jQuery),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Sweetalert2=e()}(this,function(){"use strict";var t,e,i="swal2-",n=function(t){var e={};for(var n in t)e[t[n]]=i+t[n];return e},o=n(["container","in","modal","overlay","close","content","spacer","confirm","cancel","icon","image","input","file","range","select","radio","checkbox","textarea","validationerror","progresssteps","activeprogressstep","progresscircle","progressline"]),s=n(["success","warning","info","question","error"]),a={title:"",text:"",html:"",type:null,customClass:"",animation:!0,allowOutsideClick:!0,allowEscapeKey:!0,showConfirmButton:!0,showCancelButton:!1,preConfirm:null,confirmButtonText:"OK",confirmButtonColor:"#3085d6",confirmButtonClass:null,cancelButtonText:"Cancel",cancelButtonColor:"#aaa",cancelButtonClass:null,buttonsStyling:!0,reverseButtons:!1,focusCancel:!1,showCloseButton:!1,showLoaderOnConfirm:!1,imageUrl:null,imageWidth:null,imageHeight:null,imageClass:null,timer:null,width:500,padding:20,background:"#fff",input:null,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputClass:null,inputAttributes:{},inputValidator:null,progressSteps:[],currentProgressStep:null,progressStepsDistance:"40px",onOpen:null,onClose:null},r='<div class="'+o.modal+'" style="display: none" tabIndex="-1"><ul class="'+o.progresssteps+'"></ul><div class="'+o.icon+" "+s.error+'"><span class="x-mark"><span class="line left"></span><span class="line right"></span></span></div><div class="'+o.icon+" "+s.question+'">?</div><div class="'+o.icon+" "+s.warning+'">!</div><div class="'+o.icon+" "+s.info+'">i</div><div class="'+o.icon+" "+s.success+'"><span class="line tip"></span> <span class="line long"></span><div class="placeholder"></div> <div class="fix"></div></div><img class="'+o.image+'"><h2></h2><div class="'+o.content+'"></div><input class="'+o.input+'"><input type="file" class="'+o.file+'"><div class="'+o.range+'"><output></output><input type="range"></div><select class="'+o.select+'"></select><div class="'+o.radio+'"></div><label for="'+o.checkbox+'" class="'+o.checkbox+'"><input type="checkbox"></label><textarea class="'+o.textarea+'"></textarea><div class="'+o.validationerror+'"></div><hr class="'+o.spacer+'"><button type="button" class="'+o.confirm+'">OK</button><button type="button" class="'+o.cancel+'">Cancel</button><span class="'+o.close+'">×</span></div>',l=document.getElementsByClassName(o.container);l.length?t=l[0]:((t=document.createElement("div")).className=o.container,t.innerHTML=r);var h=function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i]);return t},c=function(t,e){(t=String(t).replace(/[^0-9a-f]/gi,"")).length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),e=e||0;for(var i="#",n=0;n<3;n++){var o=parseInt(t.substr(2*n,2),16);i+=("00"+(o=Math.round(Math.min(Math.max(0,o+o*e),255)).toString(16))).substr(o.length)}return i},d={previousWindowKeyDown:null,previousActiveElement:null,previousBodyPadding:null},u=function(){if("undefined"==typeof document){console.error("SweetAlert2 requires document to initialize");return}if(!document.getElementsByClassName(o.container).length){document.body.appendChild(t);var e=f(),i=k(e,o.input),n=k(e,o.file),s=e.querySelector("."+o.range+" input"),a=k(e,o.select),r=e.querySelector("."+o.checkbox+" input"),l=k(e,o.textarea);return i.oninput=function(){sweetAlert.resetValidationError()},i.onkeyup=function(t){t.stopPropagation(),13===t.keyCode&&sweetAlert.clickConfirm()},n.onchange=function(){sweetAlert.resetValidationError()},s.oninput=function(){sweetAlert.resetValidationError(),s.previousSibling.value=s.value},s.onchange=function(){sweetAlert.resetValidationError(),s.previousSibling.value=s.value},a.onchange=function(){sweetAlert.resetValidationError()},r.onchange=function(){sweetAlert.resetValidationError()},l.oninput=function(){sweetAlert.resetValidationError()},e}},p=function(e){return t.querySelector("."+e)},f=function(){return document.body.querySelector("."+o.modal)||u()},m=function(){return p(o.spacer)},g=function(){return p(o.progresssteps)},v=function(){return p(o.validationerror)},_=function(){return p(o.confirm)},y=function(){return p(o.cancel)},b=function(t){var e=[_(),y()];return t&&e.reverse(),e.concat(Array.prototype.slice.call(f().querySelectorAll("button:not([class^="+i+"]), input:not([type=hidden]), textarea, select")))},w=function(t,e){return t.classList.contains(e)},x=function(t){if(t.focus(),"file"!==t.type){var e=t.value;t.value="",t.value=e}}
15,C=function(t,e){t&&e&&e.split(/\s+/).forEach(function(e){t.classList.add(e)})},T=function(t,e){t&&e&&e.split(/\s+/).forEach(function(e){t.classList.remove(e)})},k=function(t,e){for(var i=0;i<t.childNodes.length;i++)if(w(t.childNodes[i],e))return t.childNodes[i]},S=function(t,e){e||(e="block"),t.style.opacity="",t.style.display=e},E=function(t){t.style.opacity="",t.style.display="none"},P=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},I=function(t){return t.offsetWidth||t.offsetHeight||t.getClientRects().length},M=function(t,e){t.style.removeProperty?t.style.removeProperty(e):t.style.removeAttribute(e)},A=function(t){if("function"==typeof MouseEvent){var e=new MouseEvent("click",{view:window,bubbles:!1,cancelable:!0});t.dispatchEvent(e)}else if(document.createEvent){var i=document.createEvent("MouseEvents");i.initEvent("click",!1,!1),t.dispatchEvent(i)}else document.createEventObject?t.fireEvent("onclick"):"function"==typeof t.onclick&&t.onclick()},D=function(t){"function"==typeof t.stopPropagation?(t.stopPropagation(),t.preventDefault()):window.event&&window.event.hasOwnProperty("cancelBubble")&&(window.event.cancelBubble=!0)},O=function(){var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",msAnimation:"MSAnimationEnd",animation:"animationend"};for(var i in e)if(e.hasOwnProperty(i)&&void 0!==t.style[i])return e[i];return!1}(),N=function(){var t=f();window.onkeydown=d.previousWindowKeyDown,d.previousActiveElement&&d.previousActiveElement.focus&&d.previousActiveElement.focus(),clearTimeout(t.timeout)},z=function(){var t=document.createElement("div");t.style.width="50px",t.style.height="50px",t.style.overflow="scroll",document.body.appendChild(t);var e=t.offsetWidth-t.clientWidth;return document.body.removeChild(t),e},H=function(t,e,i){var n;return function(){var o=this,s=arguments,a=i&&!n;clearTimeout(n),n=setTimeout(function(){n=null,i||t.apply(o,s)},e),a&&t.apply(o,s)}},B=h({},a),j=[],W=function(t){var e,i=f();for(var n in t)a.hasOwnProperty(n)||"extraParams"===n||console.warn('SweetAlert2: Unknown parameter "'+n+'"');i.style.width="number"==typeof t.width?t.width+"px":t.width,i.style.padding=t.padding+"px",i.style.background=t.background;var r=i.querySelector("h2"),l=i.querySelector("."+o.content),h=_(),c=y(),d=i.querySelector("."+o.close);if(r.innerHTML=t.title.split("\n").join("<br>"),t.text||t.html){if("object"==typeof t.html){if(l.innerHTML="",0 in t.html)for(e=0;(e in t.html);e++)l.appendChild(t.html[e].cloneNode(!0));else l.appendChild(t.html.cloneNode(!0))}else l.innerHTML=t.html||t.text.split("\n").join("<br>");S(l)}else E(l);t.showCloseButton?S(d):E(d),i.className=o.modal,t.customClass&&C(i,t.customClass);var u=g(),p=parseInt(null===t.currentProgressStep?Z.getQueueStep():t.currentProgressStep,10);t.progressSteps.length?(S(u),P(u),p>=t.progressSteps.length&&console.warn("SweetAlert2: Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),t.progressSteps.forEach(function(e,i){var n=document.createElement("li");if(C(n,o.progresscircle),n.innerHTML=e,i===p&&C(n,o.activeprogressstep),u.appendChild(n),i!==t.progressSteps.length-1){var s=document.createElement("li");C(s,o.progressline),s.style.width=t.progressStepsDistance,u.appendChild(s)}})):E(u);var v=f().querySelectorAll("."+o.icon);for(e=0;e<v.length;e++)E(v[e]);if(t.type){var b=!1;for(var w in s)if(t.type===w){b=!0;break}if(!b)return console.error("SweetAlert2: Unknown alert type: "+t.type),!1;var x=i.querySelector("."+o.icon+"."+s[t.type]);switch(S(x),t.type){case"success":C(x,"animate"),C(x.querySelector(".tip"),"animate-success-tip"),C(x.querySelector(".long"),"animate-success-long");break;case"error":C(x,"animate-error-icon"),C(x.querySelector(".x-mark"),"animate-x-mark");break;case"warning":C(x,"pulse-warning")}}var k=i.querySelector("."+o.image);t.imageUrl?(k.setAttribute("src",t.imageUrl),S(k),t.imageWidth?k.setAttribute("width",t.imageWidth):k.removeAttribute("width"),t.imageHeight?k.setAttribute("height",t.imageHeight):k.removeAttribute("height"),k.className=o.image,t.imageClass&&C(k,t.imageClass)):E(k),t.showCancelButton?c.style.display="inline-block":E(c),t.showConfirmButton?M(h,"display"):E(h);var I=m();t.showConfirmButton||t.showCancelButton?S(I):E(I),h.innerHTML=t.confirmButtonText,c.innerHTML=t.cancelButtonText,t.buttonsStyling&&(h.style.backgroundColor=t.confirmButtonColor,c.style.backgroundColor=t.cancelButtonColor),h.className=o.confirm,C(h,t.confirmButtonClass),c.className=o.cancel,C(c,t.cancelButtonClass),t.buttonsStyling?(C(h,"styled"),C(c,"styled")):(T(h,"styled"),T(c,"styled"),h.style.backgroundColor=h.style.borderLeftColor=h.style.borderRightColor="",c.style.backgroundColor=c.style.borderLeftColor=c.style.borderRightColor=""),!0===t.animation?T(i,"no-animation"):C(i,"no-animation")},R=function(e,i){var n=f();e?(C(n,"show-swal2"),C(t,"fade"),T(n,"hide-swal2")):T(n,"fade"),S(n),t.style.overflowY="hidden",O&&!w(n,"no-animation")?n.addEventListener(O,function e(){n.removeEventListener(O,e),t.style.overflowY="auto"}):t.style.overflowY="auto",C(t,"in"),C(document.body,o.in),null===d.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(d.previousBodyPadding=document.body.style.paddingRight,document.body.style.paddingRight=z()+"px"),d.previousActiveElement=document.activeElement,null!==i&&"function"==typeof i&&i.call(this,n)};function F(){null!==d.previousBodyPadding&&(document.body.style.paddingRight=d.previousBodyPadding,d.previousBodyPadding=null)}function q(){if(void 0===arguments[0])return console.error("SweetAlert2 expects at least 1 attribute!"),!1;var i=h({},B);switch(typeof arguments[0]){case"string":i.title=arguments[0],i.text=arguments[1]||"",i.type=arguments[2]||"";break;case"object":h(i,arguments[0]),i.extraParams=arguments[0].extraParams,"email"===i.input&&null===i.inputValidator&&(i.inputValidator=function(t){return new Promise(function(e,i){/^[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,6}$/.test(t)?e():i("Invalid email address")})});break;default:return console.error('SweetAlert2: Unexpected type of argument! Expected "string" or "object", got '+typeof arguments[0]),!1}W(i);var n=f();return new Promise(function(s,a){i.timer&&(n.timeout=setTimeout(function(){Z.closeModal(i.onClose),a("timer")},i.timer));var r,l,h,u=function(t){switch(t=t||i.input){case"select":case"textarea":case"file":return k(n,o[t]);case"checkbox":return n.querySelector("."+o.checkbox+" input");case"radio":return n.querySelector("."+o.radio+" input:checked")||n.querySelector("."+o.radio+" input:first-child");case"range":return n.querySelector("."+o.range+" input");default:return k(n,o.input)}},w=function(){var t=u();if(!t)return null;switch(i.input){case"checkbox":return t.checked?1:0;case"radio":return t.checked?t.value:null;case"file":return t.files.length?t.files[0]:null;default:return i.inputAutoTrim?t.value.trim():t.value}};i.input&&setTimeout(function(){var t=u();t&&x(t)},0);var P=function(t){i.showLoaderOnConfirm&&Z.showLoading(),i.preConfirm?i.preConfirm(t,i.extraParams).then(function(e){Z.closeModal(i.onClose),s(e||t)},function(t){Z.hideLoading(),t&&Z.showValidationError(t)}):(Z.closeModal(i.onClose),s(t))},M=function(t){var e=t||window.event,n=e.target||e.srcElement,o=_(),s=y(),r=o===n||o.contains(n),l=s===n||s.contains(n);switch(e.type){case"mouseover":case"mouseup":i.buttonsStyling&&(r?o.style.backgroundColor=c(i.confirmButtonColor,-.1):l&&(s.style.backgroundColor=c(i.cancelButtonColor,-.1)));break;case"mouseout":i.buttonsStyling&&(r?o.style.backgroundColor=i.confirmButtonColor:l&&(s.style.backgroundColor=i.cancelButtonColor));break;case"mousedown":i.buttonsStyling&&(r?o.style.backgroundColor=c(i.confirmButtonColor,-.2):l&&(s.style.backgroundColor=c(i.cancelButtonColor,-.2)));break;case"click":if(r&&Z.isVisible()){if(i.input){var h=w();i.inputValidator?(Z.disableInput(),i.inputValidator(h,i.extraParams).then(function(){Z.enableInput(),P(h)},function(t){Z.enableInput(),t&&Z.showValidationError(t)})):P(h)}else P(!0)}else l&&Z.isVisible()&&(Z.closeModal(i.onClose),a("cancel"))}},O=n.querySelectorAll("button");for(r=0;r<O.length;r++)O[r].onclick=M,O[r].onmouseover=M,O[r].onmouseout=M,O[r].onmousedown=M;p(o.close).onclick=function(){Z.closeModal(i.onClose),a("close")},t.onclick=function(e){e.target===t&&i.allowOutsideClick&&(Z.closeModal(i.onClose),a("overlay"))};var N=_(),z=y();function B(t,e){for(var n=b(i.focusCancel),o=0;o<n.length;o++){(t+=e)===n.length?t=0:-1===t&&(t=n.length-1);var s=n[t];if(I(s))return s.focus()}}i.reverseButtons?N.parentNode.insertBefore(z,N):N.parentNode.insertBefore(N,z),d.previousWindowKeyDown=window.onkeydown,window.onkeydown=function(t){var e=t||window.event,n=e.keyCode||e.which;if(-1!==[9,13,32,27].indexOf(n)){for(var o=e.target||e.srcElement,s=b(i.focusCancel),r=-1,l=0;l<s.length;l++)if(o===s[l]){r=l;break}9===n?(e.shiftKey?B(r,-1):B(r,1),D(e)):13===n||32===n?-1===r&&(i.focusCancel?A(z,e):A(N,e)):27===n&&!0===i.allowEscapeKey&&(Z.closeModal(i.onClose),a("esc"))}},i.buttonsStyling&&(N.style.borderLeftColor=i.confirmButtonColor,N.style.borderRightColor=i.confirmButtonColor),Z.showLoading=Z.enableLoading=function(){S(m()),S(N,"inline-block"),C(N,"loading"),C(n,"loading"),N.disabled=!0,z.disabled=!0},Z.hideLoading=Z.disableLoading=function(){i.showConfirmButton||(E(N),i.showCancelButton||E(m())),T(N,"loading"),T(n,"loading"),N.disabled=!1,z.disabled=!1},Z.enableButtons=function(){N.disabled=!1,z.disabled=!1},Z.disableButtons=function(){N.disabled=!0,z.disabled=!0},Z.enableConfirmButton=function(){N.disabled=!1},Z.disableConfirmButton=function(){N.disabled=!0},Z.enableInput=function(){var t=u();if(!t)return!1;if("radio"===t.type)for(var e=t.parentNode.parentNode.querySelectorAll("input"),i=0;i<e.length;i++)e[i].disabled=!1;else t.disabled=!1},Z.disableInput=function(){var t=u();if(!t)return!1;if(t&&"radio"===t.type)for(var e=t.parentNode.parentNode.querySelectorAll("input"),i=0;i<e.length;i++)e[i].disabled=!0;else t.disabled=!0},Z.recalculateHeight=H(function(){var t=f(),e=t.style.display;
15t.style.minHeight="",S(t),t.style.minHeight=t.scrollHeight+1+"px",t.style.display=e},50),Z.showValidationError=function(t){var e=v();e.innerHTML=t,S(e);var i=u();x(i),C(i,"error")},Z.resetValidationError=function(){E(v()),Z.recalculateHeight();var t=u();t&&T(t,"error")},Z.getProgressSteps=function(){return i.progressSteps},Z.setProgressSteps=function(t){i.progressSteps=t,W(i)},Z.showProgressSteps=function(){S(g())},Z.hideProgressSteps=function(){E(g())},Z.enableButtons(),Z.hideLoading(),Z.resetValidationError();var j=["input","file","range","select","radio","checkbox","textarea"];for(r=0;r<j.length;r++){var F=o[j[r]],q=k(n,F);if(l=u(j[r])){for(var V in l.attributes)if(l.attributes.hasOwnProperty(V)){var U=l.attributes[V].name;"type"!==U&&"value"!==U&&l.removeAttribute(U)}for(var Y in i.inputAttributes)l.setAttribute(Y,i.inputAttributes[Y])}q.className=F,i.inputClass&&C(q,i.inputClass),E(q)}switch(i.input){case"text":case"email":case"password":case"number":case"tel":(l=k(n,o.input)).value=i.inputValue,l.placeholder=i.inputPlaceholder,l.type=i.input,S(l);break;case"file":(l=k(n,o.file)).placeholder=i.inputPlaceholder,l.type=i.input,S(l);break;case"range":var K=k(n,o.range),G=K.querySelector("input"),Q=K.querySelector("output");G.value=i.inputValue,G.type=i.input,Q.value=i.inputValue,S(K);break;case"select":var X=k(n,o.select);if(X.innerHTML="",i.inputPlaceholder){var J=document.createElement("option");J.innerHTML=i.inputPlaceholder,J.value="",J.disabled=!0,J.selected=!0,X.appendChild(J)}h=function(t){for(var e in t){var n=document.createElement("option");n.value=e,n.innerHTML=t[e],i.inputValue===e&&(n.selected=!0),X.appendChild(n)}S(X),X.focus()};break;case"radio":var tt=k(n,o.radio);tt.innerHTML="",h=function(t){for(var e in t){var n=1,s=document.createElement("input"),a=document.createElement("label"),r=document.createElement("span");s.type="radio",s.name=o.radio,s.value=e,s.id=o.radio+"-"+n++,i.inputValue===e&&(s.checked=!0),r.innerHTML=t[e],a.appendChild(s),a.appendChild(r),a.for=s.id,tt.appendChild(a)}S(tt);var l=tt.querySelectorAll("input");l.length&&l[0].focus()};break;case"checkbox":var te=k(n,o.checkbox),ti=u("checkbox");ti.type="checkbox",ti.value=1,ti.id=o.checkbox,ti.checked=!!i.inputValue;var tn=te.getElementsByTagName("span");tn.length&&te.removeChild(tn[0]),(tn=document.createElement("span")).innerHTML=i.inputPlaceholder,te.appendChild(tn),S(te);break;case"textarea":var to=k(n,o.textarea);to.value=i.inputValue,to.placeholder=i.inputPlaceholder,S(to);break;case null:break;default:console.error('SweetAlert2: Unexpected type of input! Expected "text" or "email" or "password", "select", "checkbox", "textarea" or "file", got "'+i.input+'"')}("select"===i.input||"radio"===i.input)&&(i.inputOptions instanceof Promise?(Z.showLoading(),i.inputOptions.then(function(t){Z.hideLoading(),h(t)})):"object"==typeof i.inputOptions?h(i.inputOptions):console.error("SweetAlert2: Unexpected type of inputOptions! Expected object or Promise, got "+typeof i.inputOptions)),R(i.animation,i.onOpen),B(-1,1),t.scrollTop=0,"undefined"==typeof MutationObserver||e||(e=new MutationObserver(Z.recalculateHeight)).observe(n,{childList:!0,characterData:!0,subtree:!0})})}function Z(){var t=arguments;return Z.isVisible()&&Z.close(),q.apply(this,t)}return Z.isVisible=function(){return I(f())},Z.queue=function(t){j=t;var e=f(),i=function(){j=[],e.removeAttribute("data-queue-step")};return new Promise(function(t,n){!function o(s,a){s<j.length?(e.setAttribute("data-queue-step",s),Z(j[s]).then(function(){o(s+1,a)},function(t){i(),n(t)})):(i(),t())}(0)})},Z.getQueueStep=function(){return f().getAttribute("data-queue-step")},Z.insertQueueStep=function(t,e){return e&&e<j.length?j.splice(e,0,t):j.push(t)},Z.deleteQueueStep=function(t){void 0!==j[t]&&j.splice(t,1)},Z.close=Z.closeModal=function(e){var i=f();T(i,"show-swal2"),C(i,"hide-swal2");var n=i.querySelector("."+o.icon+"."+s.success);T(n,"animate"),T(n.querySelector(".tip"),"animate-success-tip"),T(n.querySelector(".long"),"animate-success-long");var a=i.querySelector("."+o.icon+"."+s.error);T(a,"animate-error-icon"),T(a.querySelector(".x-mark"),"animate-x-mark"),T(i.querySelector("."+o.icon+"."+s.warning),"pulse-warning"),N(),O&&!w(i,"no-animation")?i.addEventListener(O,function e(){i.removeEventListener(O,e),w(i,"hide-swal2")&&(E(i),T(t,"in"),T(document.body,o.in),F())}):(E(i),T(t,"in"),T(document.body,o.in),F()),null!==e&&"function"==typeof e&&e.call(this,i)},Z.clickConfirm=function(){_().click()},Z.clickCancel=function(){y().click()},Z.setDefaults=function(t){if(!t)throw Error("userParams is required");if("object"!=typeof t)throw Error("userParams has to be a object");h(B,t)},Z.resetDefaults=function(){B=h({},a)},Z.version="",window.sweetAlert=window.swalTwo=Z,"function"==typeof Promise?Promise.prototype.done=Promise.prototype.done||function(){return this.catch(function(){})}:console.warn("SweetAlert2: Please inlude Promise polyfill BEFORE including sweetalert2.js if IE10+ support needed."),Z}),(t=>{"use strict";let e;let i=window.matchMedia("(max-width: 992px)");try{let t=document.createElement("STYLE");document.head.append(t),t.sheet.insertRule(".mm-menu.mm-offcanvas { display: none; }")}catch(t){console.error(t)}let n=new ResizeObserver((t,i)=>{if(e){e=!1;return}s()}),o=0;function s(){if(o)return;let t=o=requestAnimationFrame(()=>{t===o&&(a(),o=0)})}function a(){l.reposition(),d.reposition()}function r(){for(let t of document.querySelectorAll("nav.mm-menu a.mm-prev:not([title])")){let e=t.parentElement.querySelector("a.mm-title")?.textContent;e&&t.setAttribute("title",e)}for(let t of document.querySelectorAll("nav.mm-menu a.mm-next:not([title])")){let e=t.parentElement.querySelector(":scope > a[data-title]"),i=e?.dataset.title;i&&t.setAttribute("title",i)}for(let t of document.querySelectorAll("nav.mm-menu a.mm-close:not([title])"))t.setAttribute("title","Close")}class l{static Templates=new class{#t;get style1(){return this.#t()}#e;get style2(){return this.#e()}#i;get styleDefault(){return this.#i()}constructor(){let t=t=>{let e;return()=>{if(e)return e;
15let i=document.createElement("TEMPLATE");return i.innerHTML=t,e=i.content}};this.#t=t('<li class="navigation__item navigation__item--default has-drop-down show-drop-down drop-down-style--1 more"> <a href="#" class="navigation__item--link navigation__item--expand_more">More<span class="navigation__item--expand" title="View more" aria-expanded="false"></span> </a><ul class="navigation__list navigation__list--default navigation__list--sub"></ul> </li>'),this.#e=t('<li class="navigation__item navigation__item--default has-drop-down show-drop-down drop-down-style--2 more"> <a href="#" class="navigation__item--link navigation__item--expand_more">More<span class="navigation__item--expand" title="View more" aria-expanded="false"></span> </a><ul class="navigation__list navigation__list--default navigation__list--sub"></ul> </li>'),this.#i=t('<li class="navigation__item navigation__item--default has-drop-down more"> <a href="#" class="navigation__item--link navigation__item--expand_more">More<span class="navigation__item--expand" title="View more" aria-expanded="false"></span> </a><ul class="navigation__list navigation__list--default navigation__list--sub"></ul> </li>')}};static unmask(){let t=document.querySelectorAll(".navigation-a > .navigation__list.more_nav--loading");for(let e of t)e.classList.remove("more_nav--loading");return this}static create(t,e){let i=new this(t,e);return this.active.add(i),i}static active=new Set;static reposition(){for(let t of this.active)!1===t.arrange()&&this.active.delete(t)}ref;more;get el(){return this.ref.deref()}initalState;constructor(t,e={}){this.ref=new WeakRef(t);let i=t.parentElement.classList,{Templates:n}=this.constructor;this.initalState=Array.from(t.children).map(t=>new u(t));let o=i.contains("drop-down-style--1")?n.style1:i.contains("drop-down-style--2")?n.style2:n.styleDefault;this.more=new class{el;initalClasses;initalStyles;constructor(t){this.el=t,this.initalClasses=this.el.getAttribute("class")||"",this.initalStyles=this.el.getAttribute("styles")||"",t.querySelector("a.navigation__item.more")?.addEventListener("click",t=>{t.preventDefault()})}reset(){this.el.setAttribute("class",this.initalClasses),this.el.setAttribute("style",this.initalStyles),this.el.hidden=!1}hide(){this.el.hidden=!0}}(o.cloneNode(!0).firstElementChild),this.more.hide(),t.append(this.more.el),this.defaults={...this.constructor.Defaults,...e}}arrange(){let i=this.el;if(!i)return!1;if(!t(this.el).is(":visible"))return;for(let t of i.children)n.unobserve(t);let o=[];for(let t of this.initalState.slice()){let e=t.reset();if(e){o.push(e);continue}let i=this.initalState.indexOf(t);-1!==i&&this.initalState.splice(i,1)}for(let t of(i.replaceChildren(...o),i.children.length&&this.tryToFitMore(),e=!0,i.children))n.observe(t,{box:"border-box"})}static Defaults={menuWidthBuffer:4,menuMaxOtherItemsWhenMore:6};defaults;tryToFitMore(){let e=this.el,i=t(e),{menuWidthBuffer:n,menuMaxOtherItemsWhenMore:o}=this.defaults,s=e.children.length,a=i.closest("div[class*='alias-']"),r=a.is("div[class*='alias-partial-header']")?Math.floor(i.closest(".header-partial-navigation").width()):Math.floor(a.width());if(r<n){console.error("Navigation Error: Menu container width could not be established. Skipped adding the More menu.");return}if(s<=o&&Math.ceil(h(i))+n<=r)return;this.more.reset();let l=this.more.el.querySelector(":scope > ul"),c=document.createDocumentFragment(),d=i.children("li:not(.more)");if(e.append(this.more.el),s>o&&c.append(...d.slice(Math.max(o,0)).detach().toArray()),Math.ceil(h(i))+n<=r){l?.append(c);return}let u=d.slice(0,o).toArray().reverse();for(let t of u)if(c.prepend(t),Math.ceil(h(i))+n<=r)break;l?.append(c)}}function h(e){let i=0;return e.children().each(function(e){i+=Math.ceil(t(this).outerWidth(!0))}),i}let c=(e,i)=>{let n=t(i).outerWidth(!0);return n>e?n:e};class d{static reposition(e){e??=document.querySelectorAll(".navigation__item.mega-menu > ul, .navigation-b .navigation__menu--container, .navigation-c .navigation__menu--container");let i=t(window).width();for(let t of e)this._position(t,i)}static _position(e,i){let n=t(e),o=0;e.parentElement?.classList.contains("mega-menu")&&(o=15);let s=n.closest('[class*="alias-"]').offset().left;n.width(i),n.css("left",(i-n.width())/2-s+o)}}class u{ref;
15classes;styles;constructor(t){this.ref=new WeakRef(t),this.classes=t.getAttribute("class")||"",this.styles=t.getAttribute("style")||""}get el(){return this.ref.deref()}reset(){let t=this.el;return!!t&&(t.setAttribute("class",this.classes),t.setAttribute("style",this.styles),t)}}class p{static initialized=new WeakSet;static initializeAll(){let t=document.querySelectorAll(".component.navigation .navigation-a");for(let e of t)this.initialize(e);return this}static initialize(e){if(this.initialized.has(e))return;this.initialized.add(e);let n=t(e),o=e=>{t(e).toggleClass("expanded").parent().next("ul").slideToggle()},s=t=>{t.preventDefault(),t.stopImmediatePropagation(),o(t.currentTarget.querySelector(":scope > .navigation__item--expand"))},a=t=>{t.preventDefault(),t.stopImmediatePropagation(),o(t.currentTarget)},r=[],h=t=>{for(let t of r.splice(0,r.length))try{t()}catch(t){console.error(t)}if(!document.contains(e)){i.removeEventListener("change",h);return}let o=t.matches?n:n.find(".mega-menu");o.on("click",".navigation__item--expand_more",s),o.on("click","a.navigation__item--link .navigation__item--expand",a),r.push(()=>{o.off("click",".navigation__item--expand_more",s),o.off("click","a.navigation__item--link .navigation__item--expand",a),o.find(".navigation__list--sub").css("display","")})};if(i.addEventListener("change",h),h(i),"1"===e.dataset.moreButton){let t=e.querySelectorAll(".navigation__list.more_nav:not(.mm-listview)");for(let e of t)l.create(e)}let d=e=>{let i=e.currentTarget,n=t(i),o=n.children(".navigation__list--sub"),s=o.find("> .navigation__item.has-drop-down > .navigation__list--sub"),a=s.find("> .navigation__item.has-drop-down > .navigation__list--sub"),r=o.outerWidth(!0),l=n.offset().left,h=s.toArray().reduce(c,0),d=a.toArray().reduce(c,0),u=r+h+d-n.outerWidth(!0),p=t(document).width()-(l+n.outerWidth(!0)+60);i.classList.toggle("near-edge",!(p>u))};n.children(".navigation__list").on("mouseenter mouseleave","> .navigation__item.has-drop-down",d)}}class f{static initializeAll(){let t=document.querySelectorAll(".component.navigation .navigation-b, .component.navigation .navigation-c");for(let e of t)this.initialize(e)}static initialize(e){let i=t(e).children(".navigation__button"),n=t(e).children(".navigation__menu--container"),o=t(e).find(".navigation__item--expand");i.click(function(){i.hasClass("animating")||(i.addClass("animating"),i.children(".navigation__button--icon").toggleClass("is-active"),n.hasClass("animating")||(n.addClass("animating"),n.toggleClass("expanded"),setTimeout(function(){n.removeClass("animating"),i.removeClass("animating")},500)))}),t(document).click(function(t){n.is(t.target)||0!==n.has(t.target).length||i.is(t.target)||0!==i.has(t.target).length||(i.children(".navigation__button--icon").removeClass("is-active"),n.hasClass("animating")||(n.addClass("animating"),n.removeClass("expanded"),setTimeout(function(){n.removeClass("animating"),i.removeClass("animating")},500)))}),o.click(function(){t(this).toggleClass("expanded").next().slideToggle()})}}t(()=>{t("[data-sticky-header]").closest(".js-sticky-nav").sticky({topSpacing:0}),f.initializeAll(),l.unmask(),p.initializeAll(),r(),a(),window.addEventListener("resize",()=>{s()})})})(window.jQuery),function(t){var e=function(e,i){this.$el=t(e),this.inputAttributes=i.attributes,this.options=i||{},this.config={fail:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>Oops! Upload failed</span>',notSupported:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>File type not supported</span>',maxSize:'<span class="error"><i class="la-cicon-exclamation" aria-hidden="true"></i>File exceeds max size</span>',fileSize:10485760,fileTypes:i.fileTypes,defaultLabel:""==this.options.label?this.options.label:this.options.helpText},this.itemInfo={},this.insertHTML(this.inputAttributes),this.$uploadFieldInput=this.$el.find(":file"),this.$label=this.$el.find(".labelHolder"),this.$close=this.$el.find(".la-cicon-close"),this.init(this.$el)};e.prototype.init=function(t){this.attachEvents()},e.prototype.attachEvents=function(){var e=this;e.$el.on("change",":file",function(){var e=t(this),i=e.get(0).files?e.get(0).files.length:1,n=e.val().replace(/\\/g,"/").replace(/.*\//,""),o=document.getElementById(e.attr("id")).files[0];o&&e.trigger("fileselect",[i,n,o])}),e.$uploadFieldInput.on("fileselect",function(t,i,n,o){e.validateFiles(t,i,n,o)}),e.$uploadFieldInput.on("focus",function(){e.$uploadFieldInput.addClass("has-focus")}).on("blur",function(){e.$uploadFieldInput.removeClass("has-focus")}),e.$close.on("click",function(t){t.preventDefault(),e.toggleInputState("reset"),e.uploadItems("removeLastUploaded"),e.$uploadFieldInput.val("")}
15)},e.prototype.uploadItems=function(t){"object"!=typeof t?this.$uploadFieldInput.data("item",""):(this.$uploadFieldInput.data("item",JSON.stringify(t)),this.toggleInputState("close"))},e.prototype.toggleInputState=function(t){"reset"===t&&(t="upload",this.$label.html(this.config.defaultLabel)),this.$el.find(".la-cicon-"+t).show(),this.$el.find(".la-cicon-"+t).siblings("i").hide(),"upload"===t?this.$el.find(".status-label").show():this.$el.find(".status-label").hide()},e.prototype.encodeBaseSF=function(t,e,i){var n=this,o=new FileReader,s={};o.readAsDataURL(t),o.onload=function(){return s.id=e,s.string=o.result,s.size=t.size,s.extension=n.itemInfo.extension,s.icon=n.itemInfo.icon,i(s)},o.onerror=function(t){}},e.prototype.insertHTML=function(e){this.options.required;var i='<label for="'+e.id+'"><span class="labelHolder">'+this.config.defaultLabel+'</span><span class="btnS"><span class=""><i class="la-cicon-spinner icon-pulse icon-fw icon-load" style="display:none;"></i><i class="la-cicon-upload"></i><i class="la-cicon-close" style="display:none;"></i><span class="status-label"> Browse</span></span></span></label><span class="form-input-info">Maximum file size allowed: 10MB</label>',n=t("<input>",e).addClass("fileUpload");this.$el.append(n).append(i)},e.prototype.validateFiles=function(e,i,n,o){var s=this,a=s.$label.html(),r="",l=!1;t("label",s.$el).removeClass("has-error"),t(".error_container",s.$el.parent().parent()).remove(),s.itemInfo.extension=o.name.split(".").pop().toUpperCase(),s.itemInfo.icon="other",t.each(s.options.fileTypes,function(t,e){e.ext===s.itemInfo.extension&&(l=!0,s.itemInfo.icon=e.icon)}),e.target.value&&(r=e.target.value.split("\\").pop());var h='<span class="success"><i class="la-cicon-file-'+s.itemInfo.icon+'"></i>'+r+"</span>";r?(o.size>s.config.fileSize?s.updateLabel(s.config.maxSize):l?s.encodeBaseSF(o,r,function(t){s.uploadItems(t),s.updateLabel(h)}):s.updateLabel(s.config.notSupported),s.toggleInputState("close")):(s.$label.html(a),s.toggleInputState("load"))},e.prototype.updateLabel=function(t){void 0!==t&&this.$label.html(t)}
15;var i=t.fn.uploadField;t.fn.uploadField=function(i){i=t.extend({},t(this).data(),"object"==typeof i&&i),new e(this,i)},t.fn.uploadField.Constructor=e,t.fn.uploadField.noConflict=function(){return t.fn.uploadField=i,this}}(jQuery),function(t){var e=function(e,i){if(this.$form=t(e),this.options=i,this.options.advanceNotice>0){let t=new Date,e=new Date(t.getTime()+1e3*this.options.advanceNotice);this.options.advanceNotice=e}else this.options.advanceNotice=new Date;this.init(),this.attachEvents()};e.prototype.init=function(){this.formOptions()},e.prototype.attachEvents=function(){var e=this;e.$form.on("submit",function(){return e.requestLeadsApi(),!1}),e.$form.find(".fileField").each(function(){t(this).uploadField({attributes:{id:t(this).data("id"),name:t(this).data("name"),type:"file"},fileTypes:e.$form.data("file-types"),label:t(this).data("label"),helpText:t(this).data("placeholder"),required:t(this).data("required")})}),e.$form.find("input:checkbox").each(function(){var e=t(this).data("refName");t(this).attr("required")&&""!=e.trim()&&(this.checkValidity=function(){return t('*[data-ref-name="'+e+'"]:checkbox:checked').length>0})}),e.$form.find("input[data-form-datepicker='default']").each(function(){"preferred_date"==t(this).attr("name")?t(this).datepicker({minDate:e.options.advanceNotice,onSelect:function(){e.fillAvailableHours(t(this).datepicker("getDate"))}}):t(this).datepicker()})},e.prototype.requestLeadsApi=function(){var e=this;if(!this.checkFormValidity())return!1;t(":submit",e.$form).prop("disabled",!0);var i=e.buildPostData();let n=document.getElementById("error-form-dialog"),o=document.getElementById("p-error-message"),s=document.getElementById("close-dialog");function a(t){o.textContent=t,n.showModal(),document.body.style.overflow="hidden",n.style.display="block"}if(s.addEventListener("click",()=>{n.close(),n.style.display="none",document.body.style.overflow="auto"}),this.checkUrlsInComments(i))return a("Error: Your message could not be delivered because it contains a link to an external website. Please review your message and try again."),t(":submit",e.$form).prop("disabled",!1),!1;i.source=window.location.hostname,i.__lf_ref_name="",i.__lf_title_name="",i.__lf__ref_contact_field="",i.mh_template_id=e.$form.data("template-id"),i.mh_orgId=e.$form.data("mhorgid"),t.ajax({url:e.$form.data("submit-url"),type:"POST",dataType:"json",data:i,success:function(t){e.submitSuccessMessage()},error:function(e,i,n){if(e.hasOwnProperty("responseText")){var o=t.parseJSON(e.responseText);if(o.error_message){if("object"==typeof o.error_message)a("Error: "+o.error_message);else if("string"==typeof o.error_message)try{let t=JSON.parse(o.error_message);t=t[0].message,a("Error: "+t)}catch(t){a("Error: "+o.error_message)}}else a("Error: "+e.status+" "+e.statusText),t.support.placeholder||t("[placeholder]").each(function(){this.value=t(this).attr("placeholder")})}else a("Oops! Something went wrong!")},complete:function(){t(":submit",e.$form).prop("disabled",!1)}})},e.prototype.checkFormValidity=function(){var e=this,i=!0;return e.$form.find("input").each(function(){t(this).attr("required")&&(this.checkValidity()||(i=!1),e.$form.addClass("was-validated"))}),i},e.prototype.submitSuccessMessage=function(){"message"==this.options.submitType?(this.$form.hide(),this.$form.parent().find(".div-success-message."+this.$form.data("hash")).show()):"redirect"==this.options.submitType&&window.location.replace(this.options.submitValue)},e.prototype.buildPostData=function(){var e=this,i={},n={},o={};if(i.hash=e.options.hash,t.each(e.$form.find(":input").not(":submit"),function(){n[this.name]=e.$form.find(":input[name='"+this.name+"']"),o[this.getAttribute("data-ref-name")]=this.name}),void 0!=window.CampaignTracker)var s=window.CampaignTracker.readCookie();return s&&(i.source=s.source,i.medium="undefined"!=s.medium?s.medium:"",i.campaign="undefined"!=s.campaign?s.campaign:"",i.content="undefined"!=s.content?s.content:"",i.term="undefined"!=s.term?s.term:""),e.$form.find(":input").each(function(){"submit"!=this.type&&"button"!=this.type&&("tel"==this.getAttribute("type")?i[this.name]=this.value.replace(/[^0-9]/g,""):"date"==this.getAttribute("type")&&"date"!=t(this).prop("type")?i[this.name]=e.convertDate(this.value):"preferred_date"!=this.getAttribute("data-ref-name")||t(this).data("isCustom")?"checkbox"==this.type||"radio"==this.type?i[this.name]=t("input[name="+this.name+"]:checked").map(function(e,i){return t(i).val()}).get():"file"==this.type?i[this.name]=t(this).data("item"):i[this.name]=this.value:i[o.preferred_date]=e.convertDate(this.value))}),i},e.prototype.convertDate=function(t){var e=t.split("/");return e.length>0&&e[0]?e[2]+"-"+e[0]+"-"+e[1]:t},e.prototype.formOptions=function(e){t(".forms-option--b .form-a .form__group label").each(function(){t(this).hasClass("hidden")||t(this).parent().find(".form__input:not([type='radio']):not([type='checkbox']):not(.form__input--file)>:first-child , .form__input--file").addClass("optionB-enabled")})},e.prototype.fillAvailableHours=function(e){var i=this;t(i.$form).find(":submit").attr("disabled",!1);var n=t.datepicker.formatDate("D",e);if(Array.isArray(i.options.availableHours)){var o=[];t.each(i.options.availableHours,function(){if(n===this.day_of_week)return 1==this.closed?o.push("Closed"):t.each(this.hours,function(){var t=i.populateHours(this.from,this.to,i.options.timeInterval,e);o=o.concat(t)}),!1}),0==t(o).length&&o.push("Closed"),i.$form.find("[name='preferred_time']").empty(),t.each(o,function(e,n){i.$form.find("[name='preferred_time']").append(t("<option>",{value:n,text:n})),"Closed"==n&&t(i.$form).find(":submit").attr("disabled",!0)})}}
15,e.prototype.populateHours=function(t,e,i,n){for(var o=[],n=void 0!==n?n:new Date,s=Date.parse(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate()+" "+t),a=Date.parse(n.getFullYear()+"/"+(n.getMonth()+1)+"/"+n.getDate()+" "+e);s<a;){var n=new Date(s),r=n.getHours()>12?n.getHours()-12:n.getHours(),l=n.getHours()>=12?"PM":"AM",h=r+":"+(10>n.getMinutes()?"0"+n.getMinutes():n.getMinutes())+" "+l;o.push(h),s+=1e3*i}return o},e.prototype.checkUrlsInComments=function(t){if(!("comments"in t))return!1;var e=RegExp("((https?|ftp):\\/\\/)?([a-z0-9+!*(),;?&=$_.-]+(:[a-z0-9+!*(),;?&=$_.-]+)?@)?([a-z0-9-.]*)\\.([a-z]{2,3})(:[0-9]{2,5})?(\\/([a-z0-9+$_-]\\.?)+)*\\/?(\\?[a-z+&$_.-][a-z0-9;:@&%=+\\/$_.-]*)?(#[a-z_.-][a-z0-9+$_.-]*)?","i");return!!t.comments.match(e)},e.DEFAULTS={};var i=t.fn.Form;t.fn.Form=function(i){var n;return arguments,this.each(function(){var o=t(this),s=t.extend({},e.DEFAULTS,o.data(),"object"==typeof i&&i);if(o.data("se.form",new e(this,s)),void 0!==n)return!1}),n||this},t.fn.Form.Constructor=e,t.fn.Form.noConflict=function(){return t.fn.Form=i,this},t(window).load(function(){var e=t('[data-control="form"]');e.length&&e.each(function(){t(this).Form({})})})}(jQuery),function(t,e,i){"use strict";let n="math_captcha",o="math_captcha_token",s=new WeakMap;function a(t){return s.get(t)||{loading:!1,loaded:!1,fetchedAt:0,jqxhr:null,submitRetryArmed:!1}}function r(t,e){s.set(t,e)}function l(t){return!t.fetchedAt||Date.now()-t.fetchedAt>=295e3}function h(t){let e=t.find("#data-captcha-question").first(),i=t.find("#math_captcha").first(),s=t.find("#math_captcha_token").first();return i.length&&(i.attr("name")||"")!==n&&i.attr("name",n),s.length&&(s.attr("name")||"")!==o&&s.attr("name",o),{$q:e,$a:i,$t:s}}function c(e,i){let n=e.get(0);if(!n)return null;let o=a(n),s=!!(i&&i.force);if(o.loading||o.loaded&&!s&&!l(o))return o.jqxhr;let c=function(t){let e=t.attr("data-captcha-url");return e?String(e):null}(e);if(!c)return null;let{$q:d,$a:u,$t:p}=h(e);if(!d.length||!u.length||!p.length)return null;if(o.jqxhr&&4!==o.jqxhr.readyState)try{o.jqxhr.abort()}catch(t){}o.loading=!0,r(n,o);let f=t.ajax({url:c,method:"GET",dataType:"json",cache:!1,timeout:8e3,crossDomain:!0});return o.jqxhr=f,f.done(function(t){t&&"string"==typeof t.question&&t.question.trim()&&"string"==typeof t.token&&t.token.trim()?(d.text(t.question),p.val(t.token),o.loaded=!0,o.fetchedAt=Date.now()):o.loaded=!1}).fail(function(t){console.warn("[captcha]",function(t){let e=t&&t.responseJSON;return e&&"string"==typeof e.error&&e.error.trim()?e.error.trim():t&&404===t.status?"Invalid form hash":t&&403===t.status?"Captcha not enabled for this form":"Unable to load captcha"}(t)),o.loaded=!1}).always(function(){o.loading=!1,r(n,o)}),f}t(i).on("pointerdown keydown focusin input",function(e){let i=function(e){let i=t(e).closest("form[data-captcha-url]");if(!i.length)return null;let{$q:n,$a:o,$t:s}=h(i);return n.length&&o.length&&s.length?i:null}(e.target);i&&c(i)}),t(i).on("submit","form[data-captcha-url]",function(e){let i=t(this),{$q:n,$a:o,$t:s}=h(i);if(!n.length||!o.length||!s.length)return;let d=this,u=a(d);if(u.submitRetryArmed){u.submitRetryArmed=!1,r(d,u);return}let p=!s.val();if(p||l(u)){e.preventDefault();let t=c(i,{force:!0});if(!t)return;t.done(function(){let t=a(d);t.submitRetryArmed=!0,r(d,t),"function"==typeof d.requestSubmit?d.requestSubmit():d.submit()})}}),e.refreshMathCaptcha=function(e){let i=t(e);return i.length?c(i,{force:!0}):null}}(jQuery,window,document),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Popper=e()}(this,function(){"use strict";function t(t){return t&&"[object Function]"===({}).toString.call(t)}function e(t,e){if(1!==t.nodeType)return[];var i=window.getComputedStyle(t,null);return e?i[e]:i}function i(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function n(t){if(!t||-1!==["HTML","BODY","#document"].indexOf(t.nodeName))return window.document.body;var o=e(t),s=o.overflow,a=o.overflowX,r=o.overflowY;return/(auto|scroll)/.test(s+r+a)?t:n(i(t))}function o(t){var i=t&&t.offsetParent,n=i&&i.nodeName;return n&&"BODY"!==n&&"HTML"!==n?-1!==["TD","TABLE"].indexOf(i.nodeName)&&"static"===e(i,"position")?o(i):i:window.document.documentElement}function s(t){return null===t.parentNode?t:s(t.parentNode)}function a(t,e){if(!t||!t.nodeType||!e||!e.nodeType)return window.document.documentElement;var i,n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=n?t:e,l=n?e:t,h=document.createRange();h.setStart(r,0),h.setEnd(l,0);var c=h.commonAncestorContainer;if(t!==c&&e!==c||r.contains(l))return"BODY"!==(i=c.nodeName)&&("HTML"===i||o(c.firstElementChild)===c)?c:o(c);var d=s(t);return d.host?a(d.host,e):a(t,s(e).host)}function r(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"top",i="top"===e?"scrollTop":"scrollLeft",n=t.nodeName;if("BODY"===n||"HTML"===n){var o=window.document.documentElement;return(window.document.scrollingElement||o)[i]}return t[i]}function l(t,e){var i="x"===e?"Left":"Top";return+t["border"+i+"Width"].split("px")[0]+ +t["border"+("Left"==i?"Right":"Bottom")+"Width"].split("px")[0]}
15function h(t,e,i,n){return N(e["offset"+t],e["scroll"+t],i["client"+t],i["offset"+t],i["scroll"+t],q()?i["offset"+t]+n["margin"+("Height"===t?"Top":"Left")]+n["margin"+("Height"===t?"Bottom":"Right")]:0)}function c(){var t=window.document.body,e=window.document.documentElement,i=q()&&window.getComputedStyle(e);return{height:h("Height",t,e,i),width:h("Width",t,e,i)}}function d(t){return Y({},t,{right:t.left+t.width,bottom:t.top+t.height})}function u(t){var i={};if(q())try{i=t.getBoundingClientRect();var n=r(t,"top"),o=r(t,"left");i.top+=n,i.left+=o,i.bottom+=n,i.right+=o}catch(t){}else i=t.getBoundingClientRect();var s={left:i.left,top:i.top,width:i.right-i.left,height:i.bottom-i.top},a="HTML"===t.nodeName?c():{},h=a.width||t.clientWidth||s.right-s.left,u=a.height||t.clientHeight||s.bottom-s.top,p=t.offsetWidth-h,f=t.offsetHeight-u;if(p||f){var m=e(t);p-=l(m,"x"),f-=l(m,"y"),s.width-=p,s.height-=f}return d(s)}function p(t,i){var o=q(),s="HTML"===i.nodeName,a=u(t),l=u(i),h=n(t),c=e(i),p=+c.borderTopWidth.split("px")[0],f=+c.borderLeftWidth.split("px")[0],m=d({top:a.top-l.top-p,left:a.left-l.left-f,width:a.width,height:a.height});if(m.marginTop=0,m.marginLeft=0,!o&&s){var g=+c.marginTop.split("px")[0],v=+c.marginLeft.split("px")[0];m.top-=p-g,m.bottom-=p-g,m.left-=f-v,m.right-=f-v,m.marginTop=g,m.marginLeft=v}return(o?i.contains(h):i===h&&"BODY"!==h.nodeName)&&(m=function(t,e){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2],n=r(e,"top"),o=r(e,"left"),s=i?-1:1;return t.top+=n*s,t.bottom+=n*s,t.left+=o*s,t.right+=o*s,t}(m,i)),m}function f(t,o,s,l){var h={top:0,left:0},u=a(t,o);if("viewport"===l)m=p(u,f=window.document.documentElement),g=N(f.clientWidth,window.innerWidth||0),v=N(f.clientHeight,window.innerHeight||0),_=r(f),y=r(f,"left"),h=d({top:_-m.top+m.marginTop,left:y-m.left+m.marginLeft,width:g,height:v});else{"scrollParent"===l?"BODY"===(b=n(i(t))).nodeName&&(b=window.document.documentElement):b="window"===l?window.document.documentElement:l;var f,m,g,v,_,y,b,w=p(b,u);if("HTML"===b.nodeName&&!function t(n){var o=n.nodeName;return"BODY"!==o&&"HTML"!==o&&("fixed"===e(n,"position")||t(i(n)))}(u)){var x=c(),C=x.height,T=x.width;h.top+=w.top-w.marginTop,h.bottom=C+w.top,h.left+=w.left-w.marginLeft,h.right=T+w.left}else h=w}return h.left+=s,h.top+=s,h.right-=s,h.bottom-=s,h}function m(t,e,i,n,o){var s=5<arguments.length&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var a=f(i,n,s,o),r={top:{width:a.width,height:e.top-a.top},right:{width:a.right-e.right,height:a.height},bottom:{width:a.width,height:a.bottom-e.bottom},left:{width:e.left-a.left,height:a.height}},l=Object.keys(r).map(function(t){var e;return Y({key:t},r[t],{area:(e=r[t]).width*e.height})}).sort(function(t,e){return e.area-t.area}),h=l.filter(function(t){var e=t.width,n=t.height;return e>=i.clientWidth&&n>=i.clientHeight}),c=0<h.length?h[0].key:l[0].key,d=t.split("-")[1];return c+(d?"-"+d:"")}function g(t,e,i){var n=a(e,i);return p(i,n)}function v(t){var e=window.getComputedStyle(t),i=parseFloat(e.marginTop)+parseFloat(e.marginBottom),n=parseFloat(e.marginLeft)+parseFloat(e.marginRight);return{width:t.offsetWidth+n,height:t.offsetHeight+i}}function _(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,function(t){return e[t]})}function y(t,e,i){i=i.split("-")[0];var n=v(t),o={width:n.width,height:n.height},s=-1!==["right","left"].indexOf(i),a=s?"top":"left",r=s?"left":"top",l=s?"height":"width";return o[a]=e[a]+e[l]/2-n[l]/2,o[r]=i===r?e[r]-n[s?"width":"height"]:e[_(r)],o}function b(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function w(e,i,n){return(void 0===n?e:e.slice(0,function(t,e,i){if(Array.prototype.findIndex)return t.findIndex(function(t){return t[e]===i});var n=b(t,function(t){return t[e]===i});return t.indexOf(n)}(e,"name",n))).forEach(function(e){e.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=e.function||e.fn;e.enabled&&t(n)&&(i.offsets.popper=d(i.offsets.popper),i.offsets.reference=d(i.offsets.reference),i=n(i,e))}),i}function x(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=g(this.state,this.popper,this.reference),t.placement=m(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.offsets.popper=y(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position="absolute",t=w(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function C(t,e){return t.some(function(t){var i=t.name;return t.enabled&&i===e})}function T(t){for(var e=[!1,"ms","Webkit","Moz","O"],i=t.charAt(0).toUpperCase()+t.slice(1),n=0;n<e.length-1;n++){var o=e[n],s=o?""+o+i:t;if(void 0!==window.document.body.style[s])return s}return null}function k(){return this.state.isDestroyed=!0,C(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.left="",this.popper.style.position="",this.popper.style.top="",this.popper.style[T("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function S(){var t,e,i,o;this.state.eventsEnabled||(this.state=(t=this.reference,this.options,e=this.state,i=this.scheduleUpdate,e.updateBound=i,window.addEventListener("resize",e.updateBound,{passive:!0}),function t(e,i,o,s){var a="BODY"===e.nodeName,r=a?window:e;r.addEventListener(i,o,{passive:!0}),a||t(n(r.parentNode),i,o,s),s.push(r)}(o=n(t),"scroll",e.updateBound,e.scrollParents),e.scrollElement=o,e.eventsEnabled=!0,e))}function E(){var t;this.state.eventsEnabled&&(window.cancelAnimationFrame(this.scheduleUpdate),this.state=(this.reference,t=this.state,window.removeEventListener("resize",t.updateBound),t.scrollParents.forEac
15h(function(e){e.removeEventListener("scroll",t.updateBound)}),t.updateBound=null,t.scrollParents=[],t.scrollElement=null,t.eventsEnabled=!1,t))}function P(t){return""!==t&&!isNaN(parseFloat(t))&&isFinite(t)}function I(t,e){Object.keys(e).forEach(function(i){var n="";-1!==["width","height","top","right","bottom","left"].indexOf(i)&&P(e[i])&&(n="px"),t.style[i]=e[i]+n})}function M(t,e,i){var n=b(t,function(t){return t.name===e}),o=!!n&&t.some(function(t){return t.name===i&&t.enabled&&t.order<n.order});if(!o){var s="`"+e+"`";console.warn("`"+i+"` modifier is required by "+s+" modifier in order to work, be sure to include it before "+s+"!")}return o}function A(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=G.indexOf(t),n=G.slice(i+1).concat(G.slice(0,i));return e?n.reverse():n}for(var D=Math.min,O=Math.floor,N=Math.max,z="undefined"!=typeof window,H=["Edge","Trident","Firefox"],B=0,j=0;j<H.length;j+=1)if(z&&0<=navigator.userAgent.indexOf(H[j])){B=1;break}var W,R,F=z&&(W=window.MutationObserver,["native code","[object MutationObserverConstructor]"].some(function(t){return -1<(W||"").toString().indexOf(t)}))?function(t){var e=!1,i=0,n=document.createElement("span");return new MutationObserver(function(){t(),e=!1}).observe(n,{attributes:!0}),function(){e||(e=!0,n.setAttribute("x-index",i),++i)}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},B))}},q=function(){return void 0==R&&(R=-1!==navigator.appVersion.indexOf("MSIE 10")),R},Z=function(t,e){if(!(t instanceof e))throw TypeError("Cannot call a class as a function")},V=function(){function t(t,e){for(var i,n=0;n<e.length;n++)(i=e[n]).enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),U=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t},Y=Object.assign||function(t){for(var e,i=1;i<arguments.length;i++)for(var n in e=arguments[i])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t},K=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],G=K.slice(3),Q={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"},X=function(){function e(i,n){var o=this,s=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};Z(this,e),this.scheduleUpdate=function(){return requestAnimationFrame(o.update)},this.update=F(this.update.bind(this)),this.options=Y({},e.Defaults,s),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=i.jquery?i[0]:i,this.popper=n.jquery?n[0]:n,this.options.modifiers={},Object.keys(Y({},e.Defaults.modifiers,s.modifiers)).forEach(function(t){o.options.modifiers[t]=Y({},e.Defaults.modifiers[t]||{},s.modifiers?s.modifiers[t]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(t){return Y({name:t},o.options.modifiers[t])}).sort(function(t,e){return t.order-e.order}),this.modifiers.forEach(function(e){e.enabled&&t(e.onLoad)&&e.onLoad(o.reference,o.popper,o.options,e,o.state)}),this.update();var a=this.options.eventsEnabled;a&&this.enableEventListeners(),this.state.eventsEnabled=a}return V(e,[{key:"update",value:function(){return x.call(this)}},{key:"destroy",value:function(){return k.call(this)}},{key:"enableEventListeners",value:function(){return S.call(this)}},{key:"disableEventListeners",value:function(){return E.call(this)}}]),e}();return X.Utils=("undefined"==typeof window?global:window).PopperUtils,X.placements=K,X.Defaults={placement:"bottom",eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,i=e.split("-")[0],n=e.split("-")[1];if(n){var o=t.offsets,s=o.reference,a=o.popper,r=-1!==["bottom","top"].indexOf(i),l=r?"left":"top",h=r?"width":"height",c={start:U({},l,s[l]),end:U({},l,s[l]+s[h]-a[h])};t.offsets.popper=Y({},a,c[n])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var i,n,o,s,a,r,l=e.offset,h=t.placement,c=t.offsets,u=c.popper,p=c.reference,f=h.split("-")[0];return r=P(+l)?[+l,0]:(i=[0,0],n=-1!==["right","left"].indexOf(f),s=(o=l.split(/(\+|\-)/).map(function(t){return t.trim()})).indexOf(b(o,function(t){return -1!==t.search(/,|\s/)})),o[s]&&-1===o[s].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead."),a=/\s*,\s*|\s+/,(-1===s?[o]:[o.slice(0,s).concat([o[s].split(a)[0]]),[o[s].split(a)[1]].concat(o.slice(s+1))]).map(function(t,e){var i=(1===e?!n:n)?"height":"width",o=!1;return t.reduce(function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,o=!0,t):o?(t[t.length-1]+=e,o=!1,t):t.concat(e)},[]).map(function(t){var e,n,o,s;return o=+(n=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/))[1],s=n[2],o?0===s.indexOf("%")?d("%p"===s?u:p)[i]/100*o:"vh"===s||"vw"===s?("vh"===s?N(document.documentElement.clientHeight,window.innerHeight||0):N(document.documentElement.clientWidth,window.innerWidth||0))/100*o:o:t})}
15).forEach(function(t,e){t.forEach(function(n,o){P(n)&&(i[e]+=n*("-"===t[o-1]?-1:1))})}),i),"left"===f?(u.top+=r[0],u.left-=r[1]):"right"===f?(u.top+=r[0],u.left+=r[1]):"top"===f?(u.left+=r[0],u.top-=r[1]):"bottom"===f&&(u.left+=r[0],u.top+=r[1]),t.popper=u,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var i=e.boundariesElement||o(t.instance.popper);t.instance.reference===i&&(i=o(i));var n=f(t.instance.popper,t.instance.reference,e.padding,i);e.boundaries=n;var s=e.priority,a=t.offsets.popper,r={primary:function(t){var i=a[t];return a[t]<n[t]&&!e.escapeWithReference&&(i=N(a[t],n[t])),U({},t,i)},secondary:function(t){var i="right"===t?"left":"top",o=a[i];return a[t]>n[t]&&!e.escapeWithReference&&(o=D(a[i],n[t]-("right"===t?a.width:a.height))),U({},i,o)}};return s.forEach(function(t){a=Y({},a,r[-1===["left","top"].indexOf(t)?"secondary":"primary"](t))}),t.offsets.popper=a,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,i=e.popper,n=e.reference,o=-1!==["top","bottom"].indexOf(t.placement.split("-")[0]),s=o?"right":"bottom",a=o?"left":"top";return i[s]<O(n[a])&&(t.offsets.popper[a]=O(n[a])-i[o?"width":"height"]),i[a]>O(n[s])&&(t.offsets.popper[a]=O(n[s])),t}},arrow:{order:500,enabled:!0,fn:function(t,i){if(!M(t.instance.modifiers,"arrow","keepTogether"))return t;var n=i.element;if("string"==typeof n){if(!(n=t.instance.popper.querySelector(n)))return t}else if(!t.instance.popper.contains(n))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],s=t.offsets,a=s.popper,r=s.reference,l=-1!==["left","right"].indexOf(o),h=l?"height":"width",c=l?"Top":"Left",u=c.toLowerCase(),p=l?"bottom":"right",f=v(n)[h];r[p]-f<a[u]&&(t.offsets.popper[u]-=a[u]-(r[p]-f)),r[u]+f>a[p]&&(t.offsets.popper[u]+=r[u]+f-a[p]);var m=r[u]+r[h]/2-f/2,g=e(t.instance.popper,"margin"+c).replace("px",""),_=m-d(t.offsets.popper)[u]-g;return _=N(D(a[h]-f,_),0),t.arrowElement=n,t.offsets.arrow={},t.offsets.arrow[u]=Math.round(_),t.offsets.arrow[l?"left":"top"]="",t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(C(t.instance.modifiers,"inner")||t.flipped&&t.placement===t.originalPlacement)return t;var i=f(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement),n=t.placement.split("-")[0],o=_(n),s=t.placement.split("-")[1]||"",a=[];switch(e.behavior){case Q.FLIP:a=[n,o];break;case Q.CLOCKWISE:a=A(n);break;case Q.COUNTERCLOCKWISE:a=A(n,!0);break;default:a=e.behavior}return a.forEach(function(r,l){if(n!==r||a.length===l+1)return t;o=_(n=t.placement.split("-")[0]);var h,c=t.offsets.popper,d=t.offsets.reference,u="left"===n&&O(c.right)>O(d.left)||"right"===n&&O(c.left)<O(d.right)||"top"===n&&O(c.bottom)>O(d.top)||"bottom"===n&&O(c.top)<O(d.bottom),p=O(c.left)<O(i.left),f=O(c.right)>O(i.right),m=O(c.top)<O(i.top),g=O(c.bottom)>O(i.bottom),v="left"===n&&p||"right"===n&&f||"top"===n&&m||"bottom"===n&&g,b=-1!==["top","bottom"].indexOf(n),x=!!e.flipVariations&&(b&&"start"===s&&p||b&&"end"===s&&f||!b&&"start"===s&&m||!b&&"end"===s&&g);(u||v||x)&&(t.flipped=!0,(u||v)&&(n=a[l+1]),x&&(s="end"===(h=s)?"start":"start"===h?"end":h),t.placement=n+(s?"-"+s:""),t.offsets.popper=Y({},t.offsets.popper,y(t.instance.popper,t.offsets.reference,t.placement)),t=w(t.instance.modifiers,t,"flip"))}),t},behavior:"flip",padding:5,boundariesElement:"viewport"},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,i=e.split("-")[0],n=t.offsets,o=n.popper,s=n.reference,a=-1!==["left","right"].indexOf(i),r=-1===["top","left"].indexOf(i);return o[a?"left":"top"]=s[i]-(r?o[a?"width":"height"]:0),t.placement=_(e),t.offsets.popper=d(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!M(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,i=b(t.instance.modifiers,function(t){return"preventOverflow"===t.name}).boundaries;if(e.bottom<i.top||e.left>i.right||e.top>i.bottom||e.right<i.left){if(!0===t.hide)return t;t.hide=!0,t.attributes["x-out-of-boundaries"]=""}else{if(!1===t.hide)return t;t.hide=!1,t.attributes["x-out-of-boundaries"]=!1}return t}},computeStyle:{order:850,enabled:!0,fn:function(t,e){var i=e.x,n=e.y,s=t.offsets.popper,a=b(t.instance.modifiers,function(t){return"applyStyle"===t.name}).gpuAcceleration;void 0!==a&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var r,l,h=void 0===a?e.gpuAcceleration:a,c=u(o(t.instance.popper)),d={position:s.position}
15,p={left:O(s.left),top:O(s.top),bottom:O(s.bottom),right:O(s.right)},f="bottom"===i?"top":"bottom",m="right"===n?"left":"right",g=T("transform");(l="bottom"==f?-c.height+p.bottom:p.top,r="right"==m?-c.width+p.right:p.left,h&&g)?(d[g]="translate3d("+r+"px, "+l+"px, 0)",d[f]=0,d[m]=0,d.willChange="transform"):(d[f]=l*("bottom"==f?-1:1),d[m]=r*("right"==m?-1:1),d.willChange=f+", "+m);var v={"x-placement":t.placement};return t.attributes=Y({},v,t.attributes),t.styles=Y({},d,t.styles),t.arrowStyles=Y({},t.offsets.arrow,t.arrowStyles),t},gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:function(t){return I(t.instance.popper,t.styles),function(t,e){Object.keys(e).forEach(function(i){!1===e[i]?t.removeAttribute(i):t.setAttribute(i,e[i])})}(t.instance.popper,t.attributes),t.arrowElement&&Object.keys(t.arrowStyles).length&&I(t.arrowElement,t.arrowStyles),t},onLoad:function(t,e,i,n,o){var s=g(o,e,t),a=m(i.placement,s,e,t,i.modifiers.flip.boundariesElement,i.modifiers.flip.padding);return e.setAttribute("x-placement",a),I(e,{position:"absolute"}),i},gpuAcceleration:void 0}}},X}),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery"),require("popper.js")):"function"==typeof define&&define.amd?define(["exports","jquery","popper.js"],e):e(t.bootstrap={},t.jQuery,t.Popper)}(this,function(t,e,i){"use strict";function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function o(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function s(){return(s=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])}return t}).apply(this,arguments)}e=e&&e.hasOwnProperty("default")?e.default:e,i=i&&i.hasOwnProperty("default")?i.default:i;var a,r,l,h,c,d,u,p,f,m,g,v,_,y,b,w,x,C,T,k,S,E,P,I,M,A,D,O,N,z,H,B,j,W,R,F,q,Z,V,U,Y,K,G,Q,X,J,tt,te,ti,tn,to,ts,ta,tr,tl,th,tc,td,tu,tp,tf,tm,tg,tv,t_,ty,tb,tw,tx,tC,tT,tk,tS,tE,tP,tL,tI,tM,tA,tD,tO,tN,tz,tH,tB,tj,tW,tR,tF,t$,tq,tZ,tV,tU,tY,tK,tG,tQ,tX,tJ,t0,t1,t2,t3,t5,t9,t4,t6,t8,t7,et,ee,ei,en,eo,es,ea,er,el,eh,ec,ed,eu,ep,ef,em,eg=(a=e,r=!1,l={TRANSITION_END:"bsTransitionEnd",getUID:function(t){do t+=~~(1e6*Math.random());while(document.getElementById(t));return t},getSelectorFromElement:function(t){var e,i=t.getAttribute("data-target");i&&"#"!==i||(i=t.getAttribute("href")||""),"#"===i.charAt(0)&&(e=i,i=e="function"==typeof a.escapeSelector?a.escapeSelector(e).substr(1):e.replace(/(:|\.|\[|\]|,|=|@)/g,"\\$1"));try{return a(document).find(i).length>0?i:null}catch(t){return null}},reflow:function(t){return t.offsetHeight},triggerTransitionEnd:function(t){a(t).trigger(r.end)},supportsTransitionEnd:function(){return!!r},isElement:function(t){return(t[0]||t).nodeType},typeCheckConfig:function(t,e,i){for(var n in i)if(Object.prototype.hasOwnProperty.call(i,n)){var o=i[n],s=e[n],a=s&&l.isElement(s)?"element":({}).toString.call(s).match(/\s([a-zA-Z]+)/)[1].toLowerCase();if(!new RegExp(o).test(a))throw Error(t.toUpperCase()+': Option "'+n+'" provided type "'+a+'" but expected type "'+o+'".')}}},r=("undefined"==typeof window||!window.QUnit)&&{end:"transitionend"},a.fn.emulateTransitionEnd=function(t){var e=this,i=!1;return a(this).one(l.TRANSITION_END,function(){i=!0}),setTimeout(function(){i||l.triggerTransitionEnd(e)},t),this},l.supportsTransitionEnd()&&(a.event.special[l.TRANSITION_END]={bindType:r.end,delegateType:r.end,handle:function(t){if(a(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}}),l),ev=(t7="alert",ee="."+(et="bs.alert"),ei=(t8=e).fn[t7],en={CLOSE:"close"+ee,CLOSED:"closed"+ee,CLICK_DATA_API:"click"+ee+".data-api"},eo=function(){function t(t){this._element=t}var e=t.prototype;return e.close=function(t){t=t||this._element;var e=this._getRootElement(t);this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},e.dispose=function(){t8.removeData(this._element,et),this._element=null},e._getRootElement=function(t){var e=eg.getSelectorFromElement(t),i=!1;return e&&(i=t8(e)[0]),i||(i=t8(t).closest(".alert")[0]),i},e._triggerCloseEvent=function(t){var e=t8.Event(en.CLOSE);return t8(t).trigger(e),e},e._removeElement=function(t){var e=this;t8(t).removeClass("show"),eg.supportsTransitionEnd()&&t8(t).hasClass("fade")?t8(t).one(eg.TRANSITION_END,function(i){return e._destroyElement(t,i)}).emulateTransitionEnd(150):this._destroyElement(t)},e._destroyElement=function(t){t8(t).detach().trigger(en.CLOSED).remove()},t._jQueryInterface=function(e){return this.each(function(){var i=t8(this),n=i.data(et);
15n||(n=new t(this),i.data(et,n)),"close"===e&&n[e](this)})},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},o(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),t8(document).on(en.CLICK_DATA_API,'[data-dismiss="alert"]',eo._handleDismiss(new eo)),t8.fn[t7]=eo._jQueryInterface,t8.fn[t7].Constructor=eo,t8.fn[t7].noConflict=function(){return t8.fn[t7]=ei,eo._jQueryInterface},eo),e_=(ea="button",el="."+(er="bs.button"),eh=".data-api",ec=(es=e).fn[ea],ed="active",eu='[data-toggle^="button"]',ep=".btn",ef={CLICK_DATA_API:"click"+el+eh,FOCUS_BLUR_DATA_API:"focus"+el+eh+" blur"+el+eh},em=function(){function t(t){this._element=t}var e=t.prototype;return e.toggle=function(){var t=!0,e=!0,i=es(this._element).closest('[data-toggle="buttons"]')[0];if(i){var n=es(this._element).find("input")[0];if(n){if("radio"===n.type){if(n.checked&&es(this._element).hasClass(ed))t=!1;else{var o=es(i).find(".active")[0];o&&es(o).removeClass(ed)}}if(t){if(n.hasAttribute("disabled")||i.hasAttribute("disabled")||n.classList.contains("disabled")||i.classList.contains("disabled"))return;n.checked=!es(this._element).hasClass(ed),es(n).trigger("change")}n.focus(),e=!1}}e&&this._element.setAttribute("aria-pressed",!es(this._element).hasClass(ed)),t&&es(this._element).toggleClass(ed)},e.dispose=function(){es.removeData(this._element,er),this._element=null},t._jQueryInterface=function(e){return this.each(function(){var i=es(this).data(er);i||(i=new t(this),es(this).data(er,i)),"toggle"===e&&i[e]()})},o(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),es(document).on(ef.CLICK_DATA_API,eu,function(t){t.preventDefault();var e=t.target;es(e).hasClass("btn")||(e=es(e).closest(ep)),em._jQueryInterface.call(es(e),"toggle")}).on(ef.FOCUS_BLUR_DATA_API,eu,function(t){var e=es(t.target).closest(ep)[0];es(e).toggleClass("focus",/^focus(in)?$/.test(t.type))}),es.fn[ea]=em._jQueryInterface,es.fn[ea].Constructor=em,es.fn[ea].noConflict=function(){return es.fn[ea]=ec,em._jQueryInterface},em),ey=(h=e,c="carousel",u="."+(d="bs.carousel"),p=h.fn[c],f={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0},m={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean"},g="next",v="prev",_={SLIDE:"slide"+u,SLID:"slid"+u,KEYDOWN:"keydown"+u,MOUSEENTER:"mouseenter"+u,MOUSELEAVE:"mouseleave"+u,TOUCHEND:"touchend"+u,LOAD_DATA_API:"load"+u+".data-api",CLICK_DATA_API:"click"+u+".data-api"},y="active",b={ACTIVE:".active",ACTIVE_ITEM:".active.carousel-item",ITEM:".carousel-item",NEXT_PREV:".carousel-item-next, .carousel-item-prev",INDICATORS:".carousel-indicators",DATA_SLIDE:"[data-slide], [data-slide-to]",DATA_RIDE:'[data-ride="carousel"]'},w=function(){function t(t,e){this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this._config=this._getConfig(e),this._element=h(t)[0],this._indicatorsElement=h(this._element).find(b.INDICATORS)[0],this._addEventListeners()}var e=t.prototype;return e.next=function(){this._isSliding||this._slide(g)},e.nextWhenVisible=function(){!document.hidden&&h(this._element).is(":visible")&&"hidden"!==h(this._element).css("visibility")&&this.next()},e.prev=function(){this._isSliding||this._slide(v)},e.pause=function(t){t||(this._isPaused=!0),h(this._element).find(b.NEXT_PREV)[0]&&eg.supportsTransitionEnd()&&(eg.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},e.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},e.to=function(t){var e=this;this._activeElement=h(this._element).find(b.ACTIVE_ITEM)[0];var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0)){if(this._isSliding)h(this._element).one(_.SLID,function(){return e.to(t)});else{if(i===t)return this.pause(),void this.cycle();this._slide(t>i?g:v,this._items[t])}}},e.dispose=function(){h(this._element).off(u),h.removeData(this._element,d),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},e._getConfig=function(t){return t=s({},f,t),eg.typeCheckConfig(c,t,m),t},e._addEventListeners=function(){var t=this;this._config.keyboard&&h(this._element).on(_.KEYDOWN,function(e){return t._keydown(e)}),"hover"===this._config.pause&&(h(this._element).on(_.MOUSEENTER,function(e){return t.pause(e)}).on(_.MOUSELEAVE,function(e){return t.cycle(e)}),"ontouchstart"in document.documentElement&&h(this._element).on(_.TOUCHEND,function(){t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout(function(e){return t.cycle(e)},500+t._config.interval)}))},e._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},e._getItemIndex=function(t){return this._items=h.makeArray(h(t).parent().find(b.ITEM)),this._items.indexOf(t)},e._getItemByDirection=function(t,e){var i=this._getItemIndex(e),n=this._items.length-1;if((t===v&&0===i||t===g&&i===n)&&!this._config.wrap)return e;var o=(i+(t===v?-1:1))%this._items.length;return -1===o?this._items[this._items.length-1]:this._items[o]},e._triggerSlideEvent=function(t,e){var i=this._getItemIndex(t),n=this._getItemIndex(h(this._element).find(b.ACTIVE_ITEM)[0]),o=h.Event(_.SLIDE,{relatedTarget:t,direction:e,from:n,to:i});return h(this._element).trigger(o),o},e._setActiveIndicatorElement=function(t){if(this._indicatorsElement){h(this._indicatorsElement).find(b.ACTIVE).removeClass(y);var e=this._indicatorsElement.children[this._getItemIndex(t)];e&&h(e).addClass(y)}},e._slide=function(t,e){var i,n,o,s=this,a=h(this._element).find(b.ACTIVE_ITEM)[0],r=this._getItemIndex(a),l=e||a&&this._getItemByDirection(t,a),c=this._getItemIndex(l),d=!!this._interval;if(t===g?(i="carousel-item-left",n="carousel-item-next",o="left"):(i="carousel-item-right",n="carousel-item-prev",o="right"),l&&h(l).hasClass(y))this._isSliding=!1;else if(!this._triggerSlideEvent(l,o).isDefaultPrevented()&&a&&l){this._isSliding=!0,d&&this.pause(),this._setActiveIndicatorElement(l);var u=h.Event(_.SLID,{relatedTarget:l,direction:o,from:r,to:c});eg.supportsTransitionEnd()&&h(this._element).hasClass("slide")?(h(l).addClass(n),eg.reflow(l),h(a).addClass(i),h(l).addClass(i),h(a).one(eg.TRANSITION_END,function(){h(l).removeClass(i+" "+n).addClass(y),h(a).removeClass(y+" "+n+" "+i),s._isSli
15ding=!1,setTimeout(function(){return h(s._element).trigger(u)},0)}).emulateTransitionEnd(600)):(h(a).removeClass(y),h(l).addClass(y),this._isSliding=!1,h(this._element).trigger(u)),d&&this.cycle()}},t._jQueryInterface=function(e){return this.each(function(){var i=h(this).data(d),n=s({},f,h(this).data());"object"==typeof e&&(n=s({},n,e));var o="string"==typeof e?e:n.slide;if(i||(i=new t(this,n),h(this).data(d,i)),"number"==typeof e)i.to(e);else if("string"==typeof o){if(void 0===i[o])throw TypeError('No method named "'+o+'"');i[o]()}else n.interval&&(i.pause(),i.cycle())})},t._dataApiClickHandler=function(e){var i=eg.getSelectorFromElement(this);if(i){var n=h(i)[0];if(n&&h(n).hasClass("carousel")){var o=s({},h(n).data(),h(this).data()),a=this.getAttribute("data-slide-to");a&&(o.interval=!1),t._jQueryInterface.call(h(n),o),a&&h(n).data(d).to(a),e.preventDefault()}}},o(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return f}}]),t}(),h(document).on(_.CLICK_DATA_API,b.DATA_SLIDE,w._dataApiClickHandler),h(window).on(_.LOAD_DATA_API,function(){h(b.DATA_RIDE).each(function(){var t=h(this);w._jQueryInterface.call(t,t.data())})}),h.fn[c]=w._jQueryInterface,h.fn[c].Constructor=w,h.fn[c].noConflict=function(){return h.fn[c]=p,w._jQueryInterface},w),eb=(x=e,C="collapse",k="."+(T="bs.collapse"),S=x.fn[C],E={toggle:!0,parent:""},P={toggle:"boolean",parent:"(string|element)"},I={SHOW:"show"+k,SHOWN:"shown"+k,HIDE:"hide"+k,HIDDEN:"hidden"+k,CLICK_DATA_API:"click"+k+".data-api"},M="show",A="collapse",D="collapsing",O="collapsed",N="width",z={ACTIVES:".show, .collapsing",DATA_TOGGLE:'[data-toggle="collapse"]'},H=function(){function t(t,e){this._isTransitioning=!1,this._element=t,this._config=this._getConfig(e),this._triggerArray=x.makeArray(x('[data-toggle="collapse"][href="#'+t.id+'"],[data-toggle="collapse"][data-target="#'+t.id+'"]'));for(var i=x(z.DATA_TOGGLE),n=0;n<i.length;n++){var o=i[n],s=eg.getSelectorFromElement(o);null!==s&&x(s).filter(t).length>0&&(this._selector=s,this._triggerArray.push(o))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var e=t.prototype;return e.toggle=function(){x(this._element).hasClass(M)?this.hide():this.show()},e.show=function(){var e,i,n=this;if(!this._isTransitioning&&!x(this._element).hasClass(M)&&(this._parent&&0===(e=x.makeArray(x(this._parent).find(z.ACTIVES).filter('[data-parent="'+this._config.parent+'"]'))).length&&(e=null),!(e&&(i=x(e).not(this._selector).data(T))&&i._isTransitioning))){var o=x.Event(I.SHOW);if(x(this._element).trigger(o),!o.isDefaultPrevented()){e&&(t._jQueryInterface.call(x(e).not(this._selector),"hide"),i||x(e).data(T,null));var s=this._getDimension();x(this._element).removeClass(A).addClass(D),this._element.style[s]=0,this._triggerArray.length>0&&x(this._triggerArray).removeClass(O).attr("aria-expanded",!0),this.setTransitioning(!0);var a=function(){x(n._element).removeClass(D).addClass(A).addClass(M),n._element.style[s]="",n.setTransitioning(!1),x(n._element).trigger(I.SHOWN)};if(eg.supportsTransitionEnd()){var r="scroll"+(s[0].toUpperCase()+s.slice(1));x(this._element).one(eg.TRANSITION_END,a).emulateTransitionEnd(600),this._element.style[s]=this._element[r]+"px"}else a()}}},e.hide=function(){var t=this;if(!this._isTransitioning&&x(this._element).hasClass(M)){var e=x.Event(I.HIDE);if(x(this._element).trigger(e),!e.isDefaultPrevented()){var i=this._getDimension();if(this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",eg.reflow(this._element),x(this._element).addClass(D).removeClass(A).removeClass(M),this._triggerArray.length>0)for(var n=0;n<this._triggerArray.length;n++){var o=this._triggerArray[n],s=eg.getSelectorFromElement(o);null!==s&&(x(s).hasClass(M)||x(o).addClass(O).attr("aria-expanded",!1))}this.setTransitioning(!0);var a=function(){t.setTransitioning(!1),x(t._element).removeClass(D).addClass(A).trigger(I.HIDDEN)};this._element.style[i]="",eg.supportsTransitionEnd()?x(this._element).one(eg.TRANSITION_END,a).emulateTransitionEnd(600):a()}}},e.setTransitioning=function(t){this._isTransitioning=t},e.dispose=function(){x.removeData(this._element,T),this._config=null,this._parent=null,this._element=null,this._triggerArray=null,this._isTransitioning=null},e._getConfig=function(t){return(t=s({},E,t)).toggle=!!t.toggle,eg.typeCheckConfig(C,t,P),t},e._getDimension=function(){return x(this._element).hasClass(N)?N:"height"},e._getParent=function(){var e=this,i=null;eg.isElement(this._config.parent)?(i=this._config.parent,void 0!==this._config.parent.jquery&&(i=this._config.parent[0])):i=x(this._config.parent)[0];var n='[data-toggle="collapse"][data-parent="'+this._config.parent+'"]';return x(i).find(n).each(function(i,n){e._addAriaAndCollapsedClass(t._getTargetFromElement(n),[n])}),i},e._addAriaAndCollapsedClass=function(t,e){if(t){var i=x(t).hasClass(M);e.length>0&&x(e).toggleClass(O,!i).attr("aria-expanded",i)}},t._getTargetFromElement=function(t){var e=eg.getSelectorFromElement(t);return e?x(e)[0]:null},t._jQueryInterface=function(e){return this.each(function(){var i=x(this),n=i.data(T),o=s({},E,i.data(),"object"==typeof e&&e);if(!n&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),n||(n=new t(this,o),i.data(T,n)),"string"==typeof e){if(void 0===n[e])throw TypeError('No method n
15amed "'+e+'"');n[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return E}}]),t}(),x(document).on(I.CLICK_DATA_API,z.DATA_TOGGLE,function(t){"A"===t.currentTarget.tagName&&t.preventDefault();var e=x(this);x(eg.getSelectorFromElement(this)).each(function(){var t=x(this),i=t.data(T)?"toggle":e.data();H._jQueryInterface.call(t,i)})}),x.fn[C]=H._jQueryInterface,x.fn[C].Constructor=H,x.fn[C].noConflict=function(){return x.fn[C]=S,H._jQueryInterface},H),ew=(B=e,j="dropdown",R="."+(W="bs.dropdown"),F=".data-api",q=B.fn[j],Z=RegExp("38|40|27"),V={HIDE:"hide"+R,HIDDEN:"hidden"+R,SHOW:"show"+R,SHOWN:"shown"+R,CLICK:"click"+R,CLICK_DATA_API:"click"+R+F,KEYDOWN_DATA_API:"keydown"+R+F,KEYUP_DATA_API:"keyup"+R+F},U="disabled",Y="show",K="dropup",G="dropdown-menu-right",Q='[data-toggle="dropdown"]',X=".dropdown-menu",J={offset:0,flip:!0,boundary:"scrollParent"},tt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)"},te=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var e=t.prototype;return e.toggle=function(){if(!this._element.disabled&&!B(this._element).hasClass(U)){var e=t._getParentFromElement(this._element),n=B(this._menu).hasClass(Y);if(t._clearMenus(),!n){var o={relatedTarget:this._element},s=B.Event(V.SHOW,o);if(B(e).trigger(s),!s.isDefaultPrevented()){if(!this._inNavbar){if(void 0===i)throw TypeError("Bootstrap dropdown require Popper.js (https://popper.js.org)");var a=this._element;B(e).hasClass(K)&&(B(this._menu).hasClass("dropdown-menu-left")||B(this._menu).hasClass(G))&&(a=e),"scrollParent"!==this._config.boundary&&B(e).addClass("position-static"),this._popper=new i(a,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===B(e).closest(".navbar-nav").length&&B("body").children().on("mouseover",null,B.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),B(this._menu).toggleClass(Y),B(e).toggleClass(Y).trigger(B.Event(V.SHOWN,o))}}}},e.dispose=function(){B.removeData(this._element,W),B(this._element).off(R),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},e.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},e._addEventListeners=function(){var t=this;B(this._element).on(V.CLICK,function(e){e.preventDefault(),e.stopPropagation(),t.toggle()})},e._getConfig=function(t){return t=s({},this.constructor.Default,B(this._element).data(),t),eg.typeCheckConfig(j,t,this.constructor.DefaultType),t},e._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);this._menu=B(e).find(X)[0]}return this._menu},e._getPlacement=function(){var t=B(this._element).parent(),e="bottom-start";return t.hasClass(K)?(e="top-start",B(this._menu).hasClass(G)&&(e="top-end")):t.hasClass("dropright")?e="right-start":t.hasClass("dropleft")?e="left-start":B(this._menu).hasClass(G)&&(e="bottom-end"),e},e._detectNavbar=function(){return B(this._element).closest(".navbar").length>0},e._getPopperConfig=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=s({},e.offsets,t._config.offset(e.offsets)||{}),e}:e.offset=this._config.offset,{placement:this._getPlacement(),modifiers:{offset:e,flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}}},t._jQueryInterface=function(e){return this.each(function(){var i=B(this).data(W);if(i||(i=new t(this,"object"==typeof e?e:null),B(this).data(W,i)),"string"==typeof e){if(void 0===i[e])throw TypeError('No method named "'+e+'"');i[e]()}})},t._clearMenus=function(e){if(!e||3!==e.which&&("keyup"!==e.type||9===e.which))for(var i=B.makeArray(B(Q)),n=0;n<i.length;n++){var o=t._getParentFromElement(i[n]),s=B(i[n]).data(W),a={relatedTarget:i[n]};if(s){var r=s._menu;if(B(o).hasClass(Y)&&!(e&&("click"===e.type&&/input|textarea/i.test(e.target.tagName)||"keyup"===e.type&&9===e.which)&&B.contains(o,e.target))){var l=B.Event(V.HIDE,a);B(o).trigger(l),l.isDefaultPrevented()||("ontouchstart"in document.documentElement&&B("body").children().off("mouseover",null,B.noop),i[n].setAttribute("aria-expanded","fal
15se"),B(r).removeClass(Y),B(o).removeClass(Y).trigger(B.Event(V.HIDDEN,a)))}}}},t._getParentFromElement=function(t){var e,i=eg.getSelectorFromElement(t);return i&&(e=B(i)[0]),e||t.parentNode},t._dataApiKeydownHandler=function(e){if((/input|textarea/i.test(e.target.tagName)?!(32===e.which||27!==e.which&&(40!==e.which&&38!==e.which||B(e.target).closest(X).length)):Z.test(e.which))&&(e.preventDefault(),e.stopPropagation(),!this.disabled&&!B(this).hasClass(U))){var i=t._getParentFromElement(this),n=B(i).hasClass(Y);if((n||27===e.which&&32===e.which)&&(!n||27!==e.which&&32!==e.which)){var o=B(i).find(".dropdown-menu .dropdown-item:not(.disabled)").get();if(0!==o.length){var s=o.indexOf(e.target);38===e.which&&s>0&&s--,40===e.which&&s<o.length-1&&s++,s<0&&(s=0),o[s].focus()}}else{if(27===e.which){var a=B(i).find(Q)[0];B(a).trigger("focus")}B(this).trigger("click")}}},o(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return J}},{key:"DefaultType",get:function(){return tt}}]),t}(),B(document).on(V.KEYDOWN_DATA_API,Q,te._dataApiKeydownHandler).on(V.KEYDOWN_DATA_API,X,te._dataApiKeydownHandler).on(V.CLICK_DATA_API+" "+V.KEYUP_DATA_API,te._clearMenus).on(V.CLICK_DATA_API,Q,function(t){t.preventDefault(),t.stopPropagation(),te._jQueryInterface.call(B(this),"toggle")}).on(V.CLICK_DATA_API,".dropdown form",function(t){t.stopPropagation()}),B.fn[j]=te._jQueryInterface,B.fn[j].Constructor=te,B.fn[j].noConflict=function(){return B.fn[j]=q,te._jQueryInterface},te),ex=(ti=e,to="."+(tn="bs.modal"),ts=ti.fn.modal,ta={backdrop:!0,keyboard:!0,focus:!0,show:!0},tr={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean",show:"boolean"},tl={HIDE:"hide"+to,HIDDEN:"hidden"+to,SHOW:"show"+to,SHOWN:"shown"+to,FOCUSIN:"focusin"+to,RESIZE:"resize"+to,CLICK_DISMISS:"click.dismiss"+to,KEYDOWN_DISMISS:"keydown.dismiss"+to,MOUSEUP_DISMISS:"mouseup.dismiss"+to,MOUSEDOWN_DISMISS:"mousedown.dismiss"+to,CLICK_DATA_API:"click"+to+".data-api"},th="modal-open",tc="fade",td="show",tu={DIALOG:".modal-dialog",DATA_TOGGLE:'[data-toggle="modal"]',DATA_DISMISS:'[data-dismiss="modal"]',FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"},tp=function(){function t(t,e){this._config=this._getConfig(e),this._element=t,this._dialog=ti(t).find(tu.DIALOG)[0],this._backdrop=null,this._isShown=!1,this._isBodyOverflowing=!1,this._ignoreBackdropClick=!1,this._originalBodyPadding=0,this._scrollbarWidth=0}var e=t.prototype;return e.toggle=function(t){return this._isShown?this.hide():this.show(t)},e.show=function(t){var e=this;if(!this._isTransitioning&&!this._isShown){eg.supportsTransitionEnd()&&ti(this._element).hasClass(tc)&&(this._isTransitioning=!0);var i=ti.Event(tl.SHOW,{relatedTarget:t});ti(this._element).trigger(i),this._isShown||i.isDefaultPrevented()||(this._isShown=!0,this._checkScrollbar(),this._setScrollbar(),this._adjustDialog(),ti(document.body).addClass(th),this._setEscapeEvent(),this._setResizeEvent(),ti(this._element).on(tl.CLICK_DISMISS,tu.DATA_DISMISS,function(t){return e.hide(t)}),ti(this._dialog).on(tl.MOUSEDOWN_DISMISS,function(){ti(e._element).one(tl.MOUSEUP_DISMISS,function(t){ti(t.target).is(e._element)&&(e._ignoreBackdropClick=!0)})}),this._showBackdrop(function(){return e._showElement(t)}))}},e.hide=function(t){var e=this;if(t&&t.preventDefault(),!this._isTransitioning&&this._isShown){var i=ti.Event(tl.HIDE);if(ti(this._element).trigger(i),this._isShown&&!i.isDefaultPrevented()){this._isShown=!1;var n=eg.supportsTransitionEnd()&&ti(this._element).hasClass(tc);n&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),ti(document).off(tl.FOCUSIN),ti(this._element).removeClass(td),ti(this._element).off(tl.CLICK_DISMISS),ti(this._dialog).off(tl.MOUSEDOWN_DISMISS),n?ti(this._element).one(eg.TRANSITION_END,function(t){return e._hideModal(t)}).emulateTransitionEnd(300):this._hideModal()}}},e.dispose=function(){ti.removeData(this._element,tn),ti(window,document,this._element,this._backdrop).off(to),this._config=null,this._element=null,this._dialog=null,this._backdrop=null,this._isShown=null,this._isBodyOverflowing=null,this._ignoreBackdropClick=null,this._scrollbarWidth=null},e.handleUpdate=function(){this._adjustDialog()},e._getConfig=function(t){return t=s({},ta,t),eg.typeCheckConfig("modal",t,tr),t},e._showElement=function(t){var e=this,i=eg.supportsTransitionEnd()&&ti(this._element).hasClass(tc);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.appendChild(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.scrollTop=0,i&&eg.reflow(this._element),ti(this._element).addClass(td),this._config.focus&&this._enforceFocus();var n=ti.Event(tl.SHOWN,{relatedTarget:t}),o=function(){e._config.focus&&e._element.focus(),e._isTransitioning=!1,ti(e._element).trigger(n)};i?ti(this._dialog).one(eg.TRANSITION_END,o).emulateTransitionEnd(300):o()},e._enforceFocus=function(){var t=this;ti(document).off(tl.FOCUSIN).on(tl.FOCUSIN,function(e){document!==e.target&&t._element!==e.target&&0===ti(t._element).has(e.target).length&&t._element.focus()})},e._setEscapeEvent=function(){var t=this;this._isShown&&this._config.keyboard?ti(this._element).on(tl.KEYDOWN_DISMISS,function(e){27===e.which&&(e.preventDefault(),t.hide())}):this._isShown||ti(this._element).off(tl.KEYDOWN_DISMISS)},e._setResizeEvent=function(){var t=this;this._isShown?ti(window).on(tl.RESIZE,function(e){return t.handleUpdate(e)}):ti(window).off(tl.RESIZE)},e._hideModal=function(){var t=this;this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._isTransitioning=!1,this._showBackdrop(function(){ti(document.body).removeClass(th),t._resetAdjustments(),t._resetScrollbar(),ti(t._element).trigger(tl.HIDDEN)})},e._removeBackdrop=function(){this._backdrop&&(ti(this._backdrop).remove(),this._backdrop=null)},e._showBackdrop=function(t){var e=this,i=ti(this._element).hasClass(tc)?tc:"";if(this._isShown&&this._config.backdrop){var n=eg.supportsTransitionEnd()&&i;if(this._backdrop=document.createElement("div"),this._backdrop.className="modal-backdrop",i&&ti(this._backdrop).addClass(i),ti(this._backdrop).appendTo(document.body),ti(this._element).on(tl.CLICK_DISMISS,function(t){e._ignoreBackdropClick?e._ignoreBackdropClick=!1:t.target===t.currentTarget&&("static"===e._config.backdrop?e._element.focus():e.hide())}),n&&eg.reflow(this._backdrop),ti(this._backdrop).addClass(td),!t)return;if(!n)return void t();ti(this._backdrop).one(eg.TRANSITION_END,t).emulateTransitionEnd(150)}else if(!this._isShown&&this._backdrop){ti(this._backdrop).removeClass(td);var o=function(){e._removeBackdrop(),t&&t()};eg.supportsTransitionEnd()&&ti(this._element).hasClass(tc)?ti(this._backdrop).one(eg.TRANSITION_END,o).emulateTransitionEnd(150):o()}else t&&t()},e._adjustDialog=function(){var t=this._element.scrollHeight>document.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},e._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},e._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=t.left+t.right<window.innerWidth,this._scrollbarWidth=this._getScrollbarWidth()},e._setScrollbar=function(){var t=this;if(this._isBodyOverflowing){ti(tu.FIXED_CONTENT).each(function(e,i){var n=ti(i)[0].style.paddingRight,o=ti(i).css("padding-right");ti(i).data("padding-right",n).css("padding-right",parseFloat(o)+t._scrollbarWidth+"px")}),ti(tu.STICKY_CONTENT).each(function(e,i){var n=ti(i)[0].style.marginRight,o=ti(i).css("margin-right");ti(i).data("margin-right",n).css("margin-right",parseFloat(o)-t._scrollbarWidth+"px")}),ti(tu.NAVBAR_TOGGLER).each(function(e,i){var n=ti(i)[0].style.marginRight,o=ti(i).css("margin-right");ti(i).data("margin-right",n).css("margin-right",parseFloat(o)+t._scrollbarWidth+"px")});var e=document.body.style.paddingRight,i=ti("body").css("padding-right");ti("body").data("padding-right",e).css("padding-right",parseFloat(i)+this._scrollbarWidth+"px")}},e._resetScrollbar=function(){ti(tu.FIXED_CONTENT).each(function(t,e){var i=ti(e).data("padding-right");void 0!==i&&ti(e).css("padding-right",i).removeData("padding-right")}),ti(tu.STICKY_CONTENT+", "+tu.NAVBAR_TOGGLER).each(function(t,e){var i=ti(e).data("margin-right");void 0!==i&&ti(e).css("margin-right",i).removeData("margin-right")});var t=ti("body").data("padding-right");void 0!==t&&ti("body").css("padding-right",t).removeData("padding-right")},e._getScrollbarWidth=function(){var t=document.createElement("div");t.className="modal-scrollbar-measure",document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e},t._jQueryInterface=function(e,i){return this.each(function(){var n=ti(this).data(tn),o=s({},t.Default,ti(this).data(),"object"==typeof e&&e);if(n||(n=new t(this,o),ti(this).data(tn,n)),"string"==typeof e){if(void 0===n[e])throw TypeError('No method n
15amed "'+e+'"');n[e](i)}else o.show&&n.show(i)})},o(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return ta}}]),t}(),ti(document).on(tl.CLICK_DATA_API,tu.DATA_TOGGLE,function(t){var e,i=this,n=eg.getSelectorFromElement(this);n&&(e=ti(n)[0]);var o=ti(e).data(tn)?"toggle":s({},ti(e).data(),ti(this).data());"A"!==this.tagName&&"AREA"!==this.tagName||t.preventDefault();var a=ti(e).one(tl.SHOW,function(t){t.isDefaultPrevented()||a.one(tl.HIDDEN,function(){ti(i).is(":visible")&&i.focus()})});tp._jQueryInterface.call(ti(e),o,this)}),ti.fn.modal=tp._jQueryInterface,ti.fn.modal.Constructor=tp,ti.fn.modal.noConflict=function(){return ti.fn.modal=ts,tp._jQueryInterface},tp),eC=(tf=e,tm="tooltip",tv="."+(tg="bs.tooltip"),t_=tf.fn[tm],ty=RegExp("(^|\\s)bs-tooltip\\S+","g"),tb={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(number|string)",container:"(string|element|boolean)",fallbackPlacement:"(string|array)",boundary:"(string|element)"},tw={AUTO:"auto",TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},tx={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent"},tC="show",tT={HIDE:"hide"+tv,HIDDEN:"hidden"+tv,SHOW:"show"+tv,SHOWN:"shown"+tv,INSERTED:"inserted"+tv,CLICK:"click"+tv,FOCUSIN:"focusin"+tv,FOCUSOUT:"focusout"+tv,MOUSEENTER:"mouseenter"+tv,MOUSELEAVE:"mouseleave"+tv},tk="fade",tS="show",tE="hover",tP="focus",tL=function(){function t(t,e){if(void 0===i)throw TypeError("Bootstrap tooltips require Popper.js (https://popper.js.org)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var e=t.prototype;return e.enable=function(){this._isEnabled=!0},e.disable=function(){this._isEnabled=!1},e.toggleEnabled=function(){this._isEnabled=!this._isEnabled},e.toggle=function(t){if(this._isEnabled){if(t){var e=this.constructor.DATA_KEY,i=tf(t.currentTarget).data(e);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),tf(t.currentTarget).data(e,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(tf(this.getTipElement()).hasClass(tS))return void this._leave(null,this);this._enter(null,this)}}},e.dispose=function(){clearTimeout(this._timeout),tf.removeData(this.element,this.constructor.DATA_KEY),tf(this.element).off(this.constructor.EVENT_KEY),tf(this.element).closest(".modal").off("hide.bs.modal"),this.tip&&tf(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,null!==this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},e.show=function(){var e=this;if("none"===tf(this.element).css("display"))throw Error("Please use show on visible elements");var n=tf.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){tf(this.element).trigger(n);var o=tf.contains(this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!o)return;var s=this.getTipElement(),a=eg.getUID(this.constructor.NAME);s.setAttribute("id",a),this.element.setAttribute("aria-describedby",a),this.setContent(),this.config.animation&&tf(s).addClass(tk);var r="function"==typeof this.config.placement?this.config.placement.call(this,s,this.element):this.config.placement,l=this._getAttachment(r);this.addAttachmentClass(l);var h=!1===this.config.container?document.body:tf(this.config.container);tf(s).data(this.constructor.DATA_KEY,this),tf.contains(this.element.ownerDocument.documentElement,this.tip)||tf(s).appendTo(h),tf(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new i(this.element,s,{placement:l,modifiers:{offset:{offset:this.config.offset},flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"}
15,preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){e._handlePopperPlacementChange(t)}}),tf(s).addClass(tS),"ontouchstart"in document.documentElement&&tf("body").children().on("mouseover",null,tf.noop);var c=function(){e.config.animation&&e._fixTransition();var t=e._hoverState;e._hoverState=null,tf(e.element).trigger(e.constructor.Event.SHOWN),"out"===t&&e._leave(null,e)};eg.supportsTransitionEnd()&&tf(this.tip).hasClass(tk)?tf(this.tip).one(eg.TRANSITION_END,c).emulateTransitionEnd(t._TRANSITION_DURATION):c()}},e.hide=function(t){var e=this,i=this.getTipElement(),n=tf.Event(this.constructor.Event.HIDE),o=function(){e._hoverState!==tC&&i.parentNode&&i.parentNode.removeChild(i),e._cleanTipClass(),e.element.removeAttribute("aria-describedby"),tf(e.element).trigger(e.constructor.Event.HIDDEN),null!==e._popper&&e._popper.destroy(),t&&t()};tf(this.element).trigger(n),n.isDefaultPrevented()||(tf(i).removeClass(tS),"ontouchstart"in document.documentElement&&tf("body").children().off("mouseover",null,tf.noop),this._activeTrigger.click=!1,this._activeTrigger[tP]=!1,this._activeTrigger[tE]=!1,eg.supportsTransitionEnd()&&tf(this.tip).hasClass(tk)?tf(i).one(eg.TRANSITION_END,o).emulateTransitionEnd(150):o(),this._hoverState="")},e.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},e.isWithContent=function(){return!!this.getTitle()},e.addAttachmentClass=function(t){tf(this.getTipElement()).addClass("bs-tooltip-"+t)},e.getTipElement=function(){return this.tip=this.tip||tf(this.config.template)[0],this.tip},e.setContent=function(){var t=tf(this.getTipElement());this.setElementContent(t.find(".tooltip-inner"),this.getTitle()),t.removeClass(tk+" "+tS)},e.setElementContent=function(t,e){var i=this.config.html;"object"==typeof e&&(e.nodeType||e.jquery)?i?tf(e).parent().is(t)||t.empty().append(e):t.text(tf(e).text()):t[i?"html":"text"](e)},e.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},e._getAttachment=function(t){return tw[t.toUpperCase()]},e._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach(function(e){if("click"===e)tf(t.element).on(t.constructor.Event.CLICK,t.config.selector,function(e){return t.toggle(e)});else if("manual"!==e){var i=e===tE?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,n=e===tE?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;tf(t.element).on(i,t.config.selector,function(e){return t._enter(e)}).on(n,t.config.selector,function(e){return t._leave(e)})}tf(t.element).closest(".modal").on("hide.bs.modal",function(){return t.hide()})}),this.config.selector?this.config=s({},this.config,{trigger:"manual",selector:""}):this._fixTitle()},e._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},e._enter=function(t,e){var i=this.constructor.DATA_KEY;(e=e||tf(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),tf(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusin"===t.type?tP:tE]=!0),tf(e.getTipElement()).hasClass(tS)||e._hoverState===tC?e._hoverState=tC:(clearTimeout(e._timeout),e._hoverState=tC,e.config.delay&&e.config.delay.show?e._timeout=setTimeout(function(){e._hoverState===tC&&e.show()},e.config.delay.show):e.show())},e._leave=function(t,e){var i=this.constructor.DATA_KEY;(e=e||tf(t.currentTarget).data(i))||(e=new this.constructor(t.currentTarget,this._getDelegateConfig()),tf(t.currentTarget).data(i,e)),t&&(e._activeTrigger["focusout"===t.type?tP:tE]=!1),e._isWithActiveTrigger()||(clearTimeout(e._timeout),e._hoverState="out",e.config.delay&&e.config.delay.hide?e._timeout=setTimeout(function(){"out"===e._hoverState&&e.hide()},e.config.delay.hide):e.hide())},e._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},e._getConfig=function(t){return"number"==typeof(t=s({},this.constructor.Default,tf(this.element).data(),t)).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),eg.typeCheckConfig(tm,t,this.constructor.DefaultType),t},e._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},e._cleanTipClass=function(){var t=tf(this.getTipElement()),e=t.attr("class").match(ty);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._handlePopperPlacementChange=function(t){this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},e._fixTransition=function(){var t=this.getTipElement(),e=this.config.animation;null===t.getAttribute("x-placement")&&(tf(t).removeClass(tk),this.config.animation=!1,this.hide(),this.show(),this.config.animation=e)},t._jQueryInterface=function(e){return this.each(function(){var i=tf(this).data(tg);if((i||!/dispose|hide/.test(e))&&(i||(i=new t(this,"object"==typeof e&&e),tf(this).data(tg,i)),"string"==typeof e)){if(void 0===i[e])throw TypeError('No method n
15amed "'+e+'"');i[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return tx}},{key:"NAME",get:function(){return tm}},{key:"DATA_KEY",get:function(){return tg}},{key:"Event",get:function(){return tT}},{key:"EVENT_KEY",get:function(){return tv}},{key:"DefaultType",get:function(){return tb}}]),t}(),tf.fn[tm]=tL._jQueryInterface,tf.fn[tm].Constructor=tL,tf.fn[tm].noConflict=function(){return tf.fn[tm]=t_,tL._jQueryInterface},tL),eT=(tI=e,tM="popover",tD="."+(tA="bs.popover"),tO=tI.fn[tM],tN=RegExp("(^|\\s)bs-popover\\S+","g"),tz=s({},eC.Default,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'}),tH=s({},eC.DefaultType,{content:"(string|element|function)"}),tB={HIDE:"hide"+tD,HIDDEN:"hidden"+tD,SHOW:"show"+tD,SHOWN:"shown"+tD,INSERTED:"inserted"+tD,CLICK:"click"+tD,FOCUSIN:"focusin"+tD,FOCUSOUT:"focusout"+tD,MOUSEENTER:"mouseenter"+tD,MOUSELEAVE:"mouseleave"+tD},tj=function(t){function e(){return t.apply(this,arguments)||this}(i=e).prototype=Object.create(t.prototype),i.prototype.constructor=i,i.__proto__=t;var i,n=e.prototype;return n.isWithContent=function(){return this.getTitle()||this._getContent()},n.addAttachmentClass=function(t){tI(this.getTipElement()).addClass("bs-popover-"+t)},n.getTipElement=function(){return this.tip=this.tip||tI(this.config.template)[0],this.tip},n.setContent=function(){var t=tI(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var e=this._getContent();"function"==typeof e&&(e=e.call(this.element)),this.setElementContent(t.find(".popover-body"),e),t.removeClass("fade show")},n._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},n._cleanTipClass=function(){var t=tI(this.getTipElement()),e=t.attr("class").match(tN);null!==e&&e.length>0&&t.removeClass(e.join(""))},e._jQueryInterface=function(t){return this.each(function(){var i=tI(this).data(tA);if((i||!/destroy|hide/.test(t))&&(i||(i=new e(this,"object"==typeof t?t:null),tI(this).data(tA,i)),"string"==typeof t)){if(void 0===i[t])throw TypeError('No method named "'+t+'"');i[t]()}})},o(e,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return tz}},{key:"NAME",get:function(){return tM}},{key:"DATA_KEY",get:function(){return tA}},{key:"Event",get:function(){return tB}},{key:"EVENT_KEY",get:function(){return tD}},{key:"DefaultType",get:function(){return tH}}]),e}(eC),tI.fn[tM]=tj._jQueryInterface,tI.fn[tM].Constructor=tj,tI.fn[tM].noConflict=function(){return tI.fn[tM]=tO,tj._jQueryInterface},tj),ek=(tW=e,tR="scrollspy",t$="."+(tF="bs.scrollspy"),tq=tW.fn[tR],tZ={offset:10,method:"auto",target:""},tV={offset:"number",method:"string",target:"(string|element)"},tU={ACTIVATE:"activate"+t$,SCROLL:"scroll"+t$,LOAD_DATA_API:"load"+t$+".data-api"},tY="active",tK={DATA_SPY:'[data-spy="scroll"]',ACTIVE:".active",NAV_LIST_GROUP:".nav, .list-group",NAV_LINKS:".nav-link",NAV_ITEMS:".nav-item",LIST_ITEMS:".list-group-item",DROPDOWN:".dropdown",DROPDOWN_ITEMS:".dropdown-item",DROPDOWN_TOGGLE:".dropdown-toggle"},tG="position",tQ=function(){function t(t,e){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(e),this._selector=this._config.target+" "+tK.NAV_LINKS+","+this._config.target+" "+tK.LIST_ITEMS+","+this._config.target+" "+tK.DROPDOWN_ITEMS,this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,tW(this._scrollElement).on(tU.SCROLL,function(t){return i._process(t)}),this.refresh(),this._process()}var e=t.prototype;return e.refresh=function(){var t=this,e=this._scrollElement===this._scrollElement.window?"offset":tG,i="auto"===this._config.method?e:this._config.method,n=i===tG?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),tW.makeArray(tW(this._selector)).map(function(t){var e,o=eg.getSelectorFromElement(t);if(o&&(e=tW(o)[0]),e){var s=e.getBoundingClientRect();if(s.width||s.height)return[tW(e)[i]().top+n,o]}return null}).filter(function(t){return t}).sort(function(t,e){return t[0]-e[0]}
15).forEach(function(e){t._offsets.push(e[0]),t._targets.push(e[1])})},e.dispose=function(){tW.removeData(this._element,tF),tW(this._scrollElement).off(t$),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},e._getConfig=function(t){if("string"!=typeof(t=s({},tZ,t)).target){var e=tW(t.target).attr("id");e||(e=eg.getUID(tR),tW(t.target).attr("id",e)),t.target="#"+e}return eg.typeCheckConfig(tR,t,tV),t},e._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},e._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},e._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},e._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),i=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=i){var n=this._targets[this._targets.length-1];this._activeTarget!==n&&this._activate(n)}else{if(this._activeTarget&&t<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;)this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&(void 0===this._offsets[o+1]||t<this._offsets[o+1])&&this._activate(this._targets[o])}},e._activate=function(t){this._activeTarget=t,this._clear();var e=this._selector.split(","),i=tW((e=e.map(function(e){return e+'[data-target="'+t+'"],'+e+'[href="'+t+'"]'})).join(","));i.hasClass("dropdown-item")?(i.closest(tK.DROPDOWN).find(tK.DROPDOWN_TOGGLE).addClass(tY),i.addClass(tY)):(i.addClass(tY),i.parents(tK.NAV_LIST_GROUP).prev(tK.NAV_LINKS+", "+tK.LIST_ITEMS).addClass(tY),i.parents(tK.NAV_LIST_GROUP).prev(tK.NAV_ITEMS).children(tK.NAV_LINKS).addClass(tY)),tW(this._scrollElement).trigger(tU.ACTIVATE,{relatedTarget:t})},e._clear=function(){tW(this._selector).filter(tK.ACTIVE).removeClass(tY)},t._jQueryInterface=function(e){return this.each(function(){var i=tW(this).data(tF);if(i||(i=new t(this,"object"==typeof e&&e),tW(this).data(tF,i)),"string"==typeof e){if(void 0===i[e])throw TypeError('No method named "'+e+'"');i[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.0.0"}},{key:"Default",get:function(){return tZ}}]),t}(),tW(window).on(tU.LOAD_DATA_API,function(){for(var t=tW.makeArray(tW(tK.DATA_SPY)),e=t.length;e--;){var i=tW(t[e]);tQ._jQueryInterface.call(i,i.data())}}),tW.fn[tR]=tQ._jQueryInterface,tW.fn[tR].Constructor=tQ,tW.fn[tR].noConflict=function(){return tW.fn[tR]=tq,tQ._jQueryInterface},tQ),eS=(tX=e,t0="."+(tJ="bs.tab"),t1=tX.fn.tab,t2={HIDE:"hide"+t0,HIDDEN:"hidden"+t0,SHOW:"show"+t0,SHOWN:"shown"+t0,CLICK_DATA_API:"click.bs.tab.data-api"},t3="active",t5="show",t9=".active",t4="> li > .active",t6=function(){function t(t){this._element=t}var e=t.prototype;return e.show=function(){var t=this;if(!(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&tX(this._element).hasClass(t3)||tX(this._element).hasClass("disabled"))){var e,i,n=tX(this._element).closest(".nav, .list-group")[0],o=eg.getSelectorFromElement(this._element);if(n){var s="UL"===n.nodeName?t4:t9;i=(i=tX.makeArray(tX(n).find(s)))[i.length-1]}var a=tX.Event(t2.HIDE,{relatedTarget:this._element}),r=tX.Event(t2.SHOW,{relatedTarget:i});if(i&&tX(i).trigger(a),tX(this._element).trigger(r),!r.isDefaultPrevented()&&!a.isDefaultPrevented()){o&&(e=tX(o)[0]),this._activate(this._element,n);var l=function(){var e=tX.Event(t2.HIDDEN,{relatedTarget:t._element}),n=tX.Event(t2.SHOWN,{relatedTarget:i});tX(i).trigger(e),tX(t._element).trigger(n)};e?this._activate(e,e.parentNode,l):l()}}},e.dispose=function(){tX.removeData(this._element,tJ),this._element=null},e._activate=function(t,e,i){var n=this,o=("UL"===e.nodeName?tX(e).find(t4):tX(e).children(t9))[0],s=i&&eg.supportsTransitionEnd()&&o&&tX(o).hasClass("fade"),a=function(){return n._transitionComplete(t,o,i)};o&&s?tX(o).one(eg.TRANSITION_END,a).emulateTransitionEnd(150):a()}
15,e._transitionComplete=function(t,e,i){if(e){tX(e).removeClass(t5+" "+t3);var n=tX(e.parentNode).find("> .dropdown-menu .active")[0];n&&tX(n).removeClass(t3),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!1)}if(tX(t).addClass(t3),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),eg.reflow(t),tX(t).addClass(t5),t.parentNode&&tX(t.parentNode).hasClass("dropdown-menu")){var o=tX(t).closest(".dropdown")[0];o&&tX(o).find(".dropdown-toggle").addClass(t3),t.setAttribute("aria-expanded",!0)}i&&i()},t._jQueryInterface=function(e){return this.each(function(){var i=tX(this),n=i.data(tJ);if(n||(n=new t(this),i.data(tJ,n)),"string"==typeof e){if(void 0===n[e])throw TypeError('No method named "'+e+'"');n[e]()}})},o(t,null,[{key:"VERSION",get:function(){return"4.0.0"}}]),t}(),tX(document).on(t2.CLICK_DATA_API,'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',function(t){t.preventDefault(),t6._jQueryInterface.call(tX(this),"show")}),tX.fn.tab=t6._jQueryInterface,tX.fn.tab.Constructor=t6,tX.fn.tab.noConflict=function(){return tX.fn.tab=t1,t6._jQueryInterface},t6);(function(t){if(void 0===t)throw TypeError("Bootstrap's JavaScript requires jQuery. jQuery must be included before Bootstrap's JavaScript.");var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1===e[0]&&9===e[1]&&e[2]<1||e[0]>=4)throw Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")})(e),t.Util=eg,t.Alert=ev,t.Button=e_,t.Carousel=ey,t.Collapse=eb,t.Dropdown=ew,t.Modal=ex,t.Popover=eT,t.Scrollspy=ek,t.Tab=eS,t.Tooltip=eC,Object.defineProperty(t,"__esModule",{value:!0})}),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):"undefined"!=typeof module&&module.exports?module.exports=t(require("jquery")):t(jQuery)}(function(t){var e=-1,i=-1,n=function(t){return parseFloat(t)||0},o=function(e){var i=t(e),o=null,s=[];return i.each(function(){var e=t(this),i=e.offset().top-n(e.css("margin-top")),a=s.length>0?s[s.length-1]:null;null===a?s.push(e):1>=Math.floor(Math.abs(o-i))?s[s.length-1]=a.add(e):s.push(e),o=i}),s},s=function(e){var i={byRow:!0,property:"min-height",target:null,remove:!1};return"object"==typeof e?t.extend(i,e):("boolean"==typeof e?i.byRow=e:"remove"===e&&(i.remove=!0),i)},a=t.fn.matchHeight=function(e){var i=s(e);if(i.remove){var n=this;return this.css(i.property,""),t.each(a._groups,function(t,e){e.elements=e.elements.not(n)}),this}return this.length<=1&&!i.target||(a._groups.push({elements:this,options:i}),a._apply(this,i)),this};a.version="master",a._groups=[],a._throttle=80,a._maintainScroll=!1,a._beforeUpdate=null,a._afterUpdate=null,a._rows=o,a._parse=n,a._parseOptions=s,a._apply=function(e,i){var r=s(i),l=t(e),h=[l],c=t(window).scrollTop(),d=t("html").outerHeight(!0),u=l.parents().filter(":hidden");return u.each(function(){var e=t(this);e.data("style-cache",e.attr("style"))}),u.css("display","block"),r.byRow&&!r.target&&(l.each(function(){var e=t(this),i=e.css("display");"inline-block"!==i&&"flex"!==i&&"inline-flex"!==i&&(i="block"),e.data("style-cache",e.attr("style")),e.css({display:i,"padding-top":"0","padding-bottom":"0","margin-top":"0","margin-bottom":"0","border-top-width":"0","border-bottom-width":"0",height:"100px",overflow:"hidden"})}),h=o(l),l.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||"")})),t.each(h,function(e,i){var o=t(i),s=0;if(r.target)s=r.target.outerHeight(!1);else{if(r.byRow&&o.length<=1){o.css(r.property,"");return}o.each(function(){var e=t(this),i=e.attr("style"),n=e.css("display");"inline-block"!==n&&"flex"!==n&&"inline-flex"!==n&&(n="block");var o={display:n};o[r.property]="",e.css(o),e.outerHeight(!1)>s&&(s=e.outerHeight(!1)),i?e.attr("style",i):e.css("display","")})}o.each(function(){var e=t(this),i=0;!(r.target&&e.is(r.target))&&("border-box"!==e.css("box-sizing")&&(i+=n(e.css("border-top-width"))+n(e.css("border-bottom-width"))+(n(e.css("padding-top"))+n(e.css("padding-bottom")))),e.is("[data-mh-source]")||e.css(r.property,s-i+"px"))})}),u.each(function(){var e=t(this);e.attr("style",e.data("style-cache")||null)}),a._maintainScroll&&t(window).scrollTop(c/d*t("html").outerHeight(!0)),this},a._applyDataApi=function(){var e={};t("[data-match-height], [data-mh]").each(function(){var i=t(this),n=i.attr("data-mh")||i.attr("data-match-height");n in e?e[n]=e[n].add(i):e[n]=i}),t.each(e,function(){this.matchHeight(!0)})};var r=function(e){a._beforeUpdate&&a._beforeUpdate(e,a._groups),t.each(a._groups,function(){a._apply(this.elements,this.options)}),a._afterUpdate&&a._afterUpdate(e,a._groups)};a._update=function(n,o){if(o&&"resize"===o.type){var s=t(window).width();if(s===e)return;e=s}n?-1===i&&(i=setTimeout(function(){r(o),i=-1},a._throttle)):r(o)},t(a._applyDataApi);var l=t.fn.on?"on":"bind";t(window)[l]("load",function(t){a._update(!1,t)}),t(window)[l]("resize orientationchange",function(t){a._update(!0,t)})}),$(document).ready(function(){var t=$(".editable__container");t.length&&t.each(function(){var t=$(this),e=t.find(".contentExpandWrap"),i=t.find("#readMoreLink");i.length&&("SPAN"==i[0].nodeName&&(i.attr("href","#editableAnimateShowLess"),function(t,e){$(t).each(function(){var t=$(e,{html:$
15(this).html()});$.each(this.attributes,function(){t.attr(this.name,this.value)}),$(this).replaceWith(t)})}(i,"<a></a>")),e.add(i).removeClass("expand"),e.hide(),i.text("Show More"),t.on("click","#readMoreLink",function(i){i.preventDefault();var n=$(this),o=$("body .redactor-link-tooltip .redactor-link-tooltip-action:first-child");o.length&&o.parent().css("visibility","hidden"),"Show More"===n.text()?(t.removeAttr("id"),n.text("Show Less")):(t.attr("id","editableAnimateShowLess"),n.text("Show More")),e.add(n).toggleClass("expand")}))})}),(t=>{"use strict";class e{constructor(t){this.$el=t,this.init()}init(){this.bindToOffsetToAnchors()}bindToOffsetToAnchors(){this.$el.on("click",'a[href^="#"]',e=>{let i=e.target;if(!i)return;let n=decodeURI(i.hash).slice(1);if(!n)return;let o=document.getElementById(n);o&&this.animateToAnchor(t(o))})}animateToAnchor(e,i){i??=this.getStickySectionsHeight(),t("html, body").animate({scrollTop:e.offset().top-i},"slow")}getStickySectionsHeight(){return PLEStickyState?.getStickySectionsHeight()??0}static dataAttribute="linkToSection"}t(()=>{for(let i of document.querySelectorAll(".editable__container")){let n=t(i);n.data(e.dataAttribute,new e(n))}})})(window.jQuery),function(t){"use strict";t(window).load(function(){t(".banner.parallax-enabled").each(function(){var e,i=t(this),n=i.find(".banner__text-wrapper");n.length&&(setTimeout(function(){e=i.offset().top},100),t(window).scroll(function(){var i=t(window).scrollTop();window.innerWidth>=992&&n&&(i<=e?n.css({"margin-top":"0px"}):n.css({"margin-top":-((t(window).scrollTop()-e)*1.2)+"px"}))}))}),t(".banner .video-container video").each(function(){t(this).bind("ended",function(){this.load(),this.play()})})});var e=null;function i(i=""){var n=window.matchMedia("(max-width: 575px)").matches;if(e!==n){e=n;var o=t(".banner .video-container img.fallBackImg");o.length&&o.each(function(){var e=t(this),o=e.closest(".video-container").find("img.video--youtube-preview, img.video--vimeo-preview"),s=e.closest(".video-container").find("video"),a=e.closest(".video-container").find("iframe");""==this.getAttribute("src")&&e.css("visibility","hidden");var r=s.add(a);r.each(function(){var e=t(this),i=e.attr("dataSrc");i=(i=i||e.attr("src"))||e.attr("data-src"),e.attr({dataSrc:i})}),n?(r.each(function(){t(this).removeAttr("src").removeAttr("data-src")}),r.hide(),""!=this.getAttribute("src")&&o.css("visibility","hidden")):"init"!==i&&(r.each(function(){var e=t(this);e.attr({src:e.attr("dataSrc")})}),r.show(),""!=this.getAttribute("src")&&o.css("visibility","visible"))})}}i("init"),t(window).resize(function(){i()})}(window.jQuery),function(t){"use strict";var e=function(e,i){var n=this;return n.$element=t(e),n.options=i,t.extend(n.options,{init:function(t){},start:function(e){var i;function o(){n.fixVerticalSlideSmoothHeight(e),t(e).resize(),clearTimeout(i)}n.clearSlidesMaxHeight(),n.fixVerticalSlideSmoothHeight(e),t(window).resize(function(){i=setTimeout(o,600)})},before:function(){},after:function(t){n.resumeAutoplayVideos(t),n.fixVerticalSlideSmoothHeight(t)}}),n.attachEvents(),n.initializeSlider(),n};e.prototype.attachEvents=function(){var e=this;"vertical"===e.options.direction&&t(window).resize(function(){e.fixVerticalSlideHeight()})},e.prototype.initializeSlider=function(){var t=this;t.setSlidesMaxHeight(),t.$bxSlider=t.$element.flexslider(t.options),"vertical"===t.options.direction&&t.fixVerticalSlideHeight(),t.controlsWrap()},e.prototype.controlsWrap=function(){var t=this.$element.find(".flex-control-nav"),e=this.$element.find(".flex-direction-nav .flex-prev"),i=this.$element.find(".flex-direction-nav .flex-next");if(t.length||e.length){this.$element.append("<div class='controls-wrapper'></div>");var n=this.$element.find(".controls-wrapper");t.length?(n.append(t),e.insertBefore(t),i.insertAfter(t)):n.append(e,i),this.$element.find(".flex-direction-nav").remove(),1==this.$element.find(".slides li:not(.clone)").length&&n.remove()}},e.prototype.setSlidesMaxHeight=function(){this.$element.find(".slides").children().each(function(){var e=t(this);e.data("banner-prev-max-height",e.css("max-height")??"none"),e.css("max-height",e.css("height"))})},e.prototype.clearSlidesMaxHeight=function(){this.$element.find(".slides").children().each(function(){var e=t(this),i=e.data("banner-prev-max-height")??!1;i&&e.css("max-height",i)})},e.prototype.fixVerticalSlideHeight=function(){var e=0,i=this.$element.find(".slides");i.children().height("auto").each(function(){e=Math.max(e,t(this).height())}).height(e),i.height(e)},e.prototype.fixVerticalSlideSmoothHeight=function(e){if("vertical"===this.options.direction&&1==this.options.smoothHeight){var i=t(e).find(".flex-active-slide > div").height();t(e).find(".flex-viewport").height(i)}},e.prototype.resumeAutoplayVideos=function(t){let e=t.find("video[muted][autoplay]");e.each((t,e)=>{if(e.src&&e.muted&&e.autoplay)try{e.play()}catch(t){}})},e.DEFAULTS={adaptiveHeight:!0,easing:null,useCSS:!1,smoothHeight:!1,touch:!0,allowOneSlide:!0};var i=t.fn.BannerSlider;t.fn.BannerSlider=function(i){arguments;var n=t(this),o=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i);return new e(this,o)},t.fn.BannerSlider.Constructor=e,t.fn.BannerSlider.noConflict=function(){t.fn.BannerSlider=i},t(window).load(function(){var e=t('.banner .flexslider[data-control
15="flexslider"]:not(.flexslider-single)');e.length&&e.each(function(){t(this).BannerSlider()})})}(window.jQuery),function(t){"use strict";function e(e){e.each(function(){t(this).find(".expander").each(function(){t(this).click(function(){"true"==t(this).attr("aria-expanded")?t(this).attr("aria-expanded","false"):t(this).attr("aria-expanded","true"),t(this).siblings("ul").slideToggle()})})})}t(document).ready(function(){t(".fbF_ShowMoreLess").click(function(){t(this).toggleClass("showMore"),t(this).parent().find(".featuredblocks.row").toggleClass("showMore")}),function(e){e.each(function(){var e=t(this).find(".featuredblock__item"),i=0;e.each(function(){var e=t(this).find(".featuredblock-image-title-wrapper").outerHeight(),n=t(this).find(".featuredblock-content-wrapper").outerHeight();e>=i&&(i=e),n>=i&&(i=n)}),e.each(function(){t(this).height(i)})})}(t(".featuredblocks-grid-b")),e(t(".featuredblocks-flyup-a")),e(t(".featuredblocks-flyup-b")),e(t(".featuredblocks-flyup-c"))})}(window.jQuery),function(t,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e(require,exports,module):t.ScrollReveal=e()}(this,function(t,e,i){return(function(){this.ScrollReveal=function(){function n(e){return window==this?new n(e):(t=this,t.tools=new i,t.tools.extend(t.defaults,e||{}),(!t.tools.isMobile()||!!t.defaults.mobile)&&(t.tools.isSupported("transform")&&t.tools.isSupported("transition")?(t.store={elements:{},containers:[]},t.history=[],t.counter=0,t.running=!1,t.initialized=!1,t):console.warn("ScrollReveal is not supported in this browser.")))}return n.prototype.defaults={origin:"bottom",distance:"20px",duration:500,delay:0,rotate:{x:0,y:0,z:0},opacity:0,scale:.9,easing:"cubic-bezier( 0.6, 0.2, 0.1, 1 )",container:null,mobile:!0,reset:!1,useDelay:"always",viewFactor:.2,viewOffset:{top:0,right:0,bottom:0,left:0},afterReveal:function(t){},afterReset:function(t){}},n.prototype.reveal=function(e,i,n){var o,s,a,r;if(s=i&&i.container?i.container:t.defaults.container?t.defaults.container:window.document.documentElement,!(o=Array.prototype.slice.call(s.querySelectorAll(e))).length)return console.warn("reveal('"+e+"') failed: no elements found."),t;for(var l=0;l<o.length;l++)a={},(r=o[l].getAttribute("data-sr-id"))?a=t.store.elements[r]:(a={id:++t.counter,domEl:o[l],seen:!1,revealed:!1}).domEl.setAttribute("data-sr-id",a.id),t.configure(a,i||{}),t.style(a),t.updateStore(a),a.revealed||a.domEl.setAttribute("style",a.styles.inline+a.styles.transform.initial);return n||(t.record(e,i),t.initTimeout&&window.clearTimeout(t.initTimeout),t.initTimeout=window.setTimeout(t.init,0)),t},n.prototype.configure=function(e,i){e.config?e.config=t.tools.extendClone(e.config,i):e.config=t.tools.extendClone(t.defaults,i),"top"===e.config.origin||"bottom"===e.config.origin?e.config.axis="Y":e.config.axis="X",("top"===e.config.origin||"left"===e.config.origin)&&(e.config.distance="-"+e.config.distance)},n.prototype.style=function(t){function e(e){parseInt(i.distance)&&(e.initial+=" translate"+i.axis+"("+i.distance+")",e.target+=" translate"+i.axis+"(0)"),i.scale&&(e.initial+=" scale("+i.scale+")",e.target+=" scale(1)"),i.rotate.x&&(e.initial+=" rotateX("+i.rotate.x+"deg)",e.target+=" rotateX(0)"),i.rotate.y&&(e.initial+=" rotateY("+i.rotate.y+"deg)",e.target+=" rotateY(0)"),i.rotate.z&&(e.initial+=" rotateZ("+i.rotate.z+"deg)",e.target+=" rotateZ(0)"),e.initial+="; opacity: "+i.opacity+";",e.target+="; opacity: "+t.styles.computed.opacity+";"}var i=t.config,n=window.getComputedStyle(t.domEl);t.styles||(t.styles={transition:{},transform:{},computed:{}},t.styles.inline=t.domEl.getAttribute("style")||"",t.styles.inline+="; visibility: visible; ",t.styles.computed.opacity=n.opacity,n.transition&&"all 0s ease 0s"!=n.transition?t.styles.computed.transition=n.transition+", ":t.styles.computed.transition=""),t.styles.transition.instant="-webkit-transition: "+t.styles.computed.transition+"-webkit-transform "+i.duration/1e3+"s "+i.easing+" 0s, opacity "+i.duration/1e3+"s "+i.easing+" 0s; transition: "+t.styles.computed.transition+"transform "+i.duration/1e3+"s "+i.easing+" 0s, opacity "+i.duration/1e3+"s "+i.easing+" 0s; ",t.styles.transition.delayed="-webkit-transition: "+t.styles.computed.transition+"-webkit-transform "+i.duration/1e3+"s "+i.easing+" "+i.delay/1e3+"s, opacity "+i.duration/1e3+"s "+i.easing+" "+i.delay/1e3+"s; transition: "+t.styles.computed.transition+"transform "+i.duration/1e3+"s "+i.easing+" "+i.delay/1e3+"s, opacity "+i.duration/1e3+"s "+i.easing+" "+i.delay/1e3+"s; ",t.styles.transform.initial=" -webkit-transform:",t.styles.transform.target=" -webkit-transform:",e(t.styles.transform),t.styles.transform.initial+="transform:",t.styles.transform.target+="transform:",e(t.styles.transform)},n.prototype.updateStore=function(e){var i=e.config.container;i&&-1==t.store.containers.indexOf(i)&&t.store.containers.push(e.config.container),t.store.elements[e.id]=e},n.prototype.record=function(e,i){t.history.push({selector:e,config:i})},n.prototype.init=function(){t.animate();for(var e=0;e<t.store.containers.length;e++)t.store.containers[e].addEventListener("scroll",t.handler),t.store.containers[e].addEventListener("resize",t.handler);return t.initialized||(window.addEventListener("scroll",t.handler),window.addEventListener("resize",t.handler),t.initialized=!0),t},n.prototype.handler=function(){t.running||e(function(){t.running=!0,t.animate()})},n.prototype.animate=function(){var e,i;function n(t,e){var i=0,n=0,o="after";switch(t){case"reveal":n=e.config.duration+e.config.delay,o+="Reveal";break;case"reset":n=e.config.duration,o+="Reset"}return e.timer&&(i=Math.abs(e.timer.started-new Date),window.clearTimeout(e.timer.clock)),e.timer={
15started:new Date},e.timer.clock=window.setTimeout(function(){e.config[o](e.domEl),e.timer=null},n-i),"reveal"===t?e.revealed=!0:e.revealed=!1}t.tools.forOwn(t.store.elements,function(o){e=t.store.elements[o],(i=t.isElemVisible(e))&&!e.revealed?("always"!==e.config.useDelay&&("onload"!==e.config.useDelay||t.initialized)&&("once"!==e.config.useDelay||e.seen)?e.domEl.setAttribute("style",e.styles.inline+e.styles.transform.target+e.styles.transition.instant):e.domEl.setAttribute("style",e.styles.inline+e.styles.transform.target+e.styles.transition.delayed),e.seen=!0,n("reveal",e)):!i&&e.config.reset&&e.revealed&&(e.domEl.setAttribute("style",e.styles.inline+e.styles.transform.initial+e.styles.transition.instant),n("reset",e))}),t.running=!1},n.prototype.getContainer=function(t){return t||(t=window.document.documentElement),{width:t.clientWidth,height:t.clientHeight}},n.prototype.getScrolled=function(e){if(e){var i=t.getOffset(e);return{x:e.scrollLeft+i.left,y:e.scrollTop+i.top}}return{x:window.pageXOffset,y:window.pageYOffset}},n.prototype.getOffset=function(t){var e=0,i=0,n=t.offsetHeight,o=t.offsetWidth;do isNaN(t.offsetTop)||(e+=t.offsetTop),isNaN(t.offsetLeft)||(i+=t.offsetLeft);while(t=t.offsetParent);return{top:e,left:i,height:n,width:o}},n.prototype.isElemVisible=function(e){var i,n,o,s,a=t.getOffset(e.domEl),r=t.getContainer(e.config.container),l=t.getScrolled(e.config.container),h=e.config.viewFactor,c=a.height,d=a.width,u=a.top,p=a.left;return i=l.y+e.config.viewOffset.top,n=l.x+e.config.viewOffset.left,o=l.y-e.config.viewOffset.bottom+r.height,s=l.x-e.config.viewOffset.right+r.width,o>u+c*h&&u+c-c*h>i&&p+d*h>n&&s>p+d-d*h||"fixed"===window.getComputedStyle(e.domEl).position},n.prototype.sync=function(){if(t.history.length){for(var e=0;e<t.history.length;e++){var i=t.history[e];t.reveal(i.selector,i.config,!0)}t.init()}else console.warn("sync() failed: no reveals found.");return t},n}();var t,e,i=function(){function t(){}return t.prototype.isObject=function(t){return null!==t&&"object"==typeof t&&t.constructor==Object},t.prototype.forOwn=function(t,e){if(!this.isObject(t))throw TypeError("Expected 'object', but received '"+typeof t+"'.");for(var i in t)t.hasOwnProperty(i)&&e(i)},t.prototype.extend=function(t,e){return this.forOwn(e,(function(i){this.isObject(e[i])?(t[i]&&this.isObject(t[i])||(t[i]={}),this.extend(t[i],e[i])):t[i]=e[i]}).bind(this)),t},t.prototype.extendClone=function(t,e){return this.extend(this.extend({},t),e)},t.prototype.isMobile=function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},t.prototype.isSupported=function(t){for(var e=document.createElement("sensor"),i=(t+"Webkit,Moz,O,".split(",").join(t+",")).split(","),n=0;n<i.length;n++)e.style[i[n]];return!0},t}(),e=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame}).call(this),this.ScrollReveal}),window.sr=new ScrollReveal,function(t){"use strict";t(document).ready(function(){t(function(){t(".staff-content__accordion").accordion({heightStyle:"content",collapsible:!0,icons:!1,active:!1})})})}(window.jQuery),function(t){"use strict";var e=function(e,i){var n=this;return n.$element=t(e),n.options=i,t.extend(n.options,{start:function(e){n.fixVerticalSlideSmoothHeight(e),t(window).resize(function(){n.fixVerticalSlideSmoothHeight(e)})},before:function(){},after:function(t){n.fixVerticalSlideSmoothHeight(t)}}),n.attachEvents(),n.initializeSlider(),n};e.prototype.attachEvents=function(){var e=this;"vertical"===e.options.direction&&t(window).resize(function(){e.fixVerticalSlideHeight()})},e.prototype.initializeSlider=function(){var t=this;t.$bxSlider=t.$element.flexslider(t.options),"vertical"===t.options.direction&&t.fixVerticalSlideHeight()},e.prototype.fixVerticalSlideHeight=function(){var e=0,i=this.$element.find(".slides");i.children().height("auto").each(function(){e=Math.max(e,t(this).height())}).height(e),i.height(e)},e.prototype.fixVerticalSlideSmoothHeight=function(e){if("vertical"===this.options.direction&&1==this.options.smoothHeight){var i=t(e).find(".flex-active-slide > div").height();t(e).find(".flex-viewport").height(i)}},e.DEFAULTS={adaptiveHeight:!0,easing:null,useCSS:!1};var i=t.fn.StaffSlider;t.fn.StaffSlider=function(i){arguments;var n=t(this);e.DEFAULTS.controlsContainer=t(".flex-control-nav",t(this).parent()),e.DEFAULTS.customDirectionNav=t(".controls-wrapper a",t(this).parent());var o=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i);return new e(this,o)},t.fn.StaffSlider.Constructor=e,t.fn.StaffSlider.noConflict=function(){t.fn.StaffSlider=i}
15,t(window).load(function(){var e=t(".js-staff-layout-settings .flexslider");e.length&&e.each(function(){t(this).StaffSlider()})})}(window.jQuery),((t,e)=>{"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).leaflet={})})(this,function(t){let e,i,n,o=0;function s(t){return"_leaflet_id"in t||(t._leaflet_id=++o),t._leaflet_id}function a(t,e,i){let n,o;function s(){n=!1,o&&(a.apply(i,o),o=!1)}function a(...r){n?o=r:(t.apply(i,r),setTimeout(s,e),n=!0)}return a}function r(t,e,i){var n=e[1],e=e[0],o=n-e;return t===n&&i?t:((t-e)%o+o)%o+e}function l(){return!1}function h(t,e){return!1===e?t:Math.round(t*(e=10**(void 0===e?6:e)))/e}function c(t){return t.trim().split(/\s+/)}function d(t,e){for(var i in Object.hasOwn(t,"options")||(t.options=t.options?Object.create(t.options):{}),e)Object.hasOwn(e,i)&&(t.options[i]=e[i]);return t.options}let u=/\{ *([\w_ -]+) *\}/g;function p(t,e){return t.replace(u,(t,i)=>{let n=e[i];if(void 0===n)throw Error("No value provided for variable "+t);return"function"==typeof n?n(e):n})}let f="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",m={__proto__:null,emptyImageUrl:f,falseFn:l,formatNum:h,get lastId(){return o},setOptions:d,splitWords:c,stamp:s,template:p,throttle:a,wrapNum:r};class g{static extend({statics:t,includes:e,...i}){var n=class extends this{},o=(Object.setPrototypeOf(n,this),this.prototype),s=n.prototype;if(t&&Object.assign(n,t),Array.isArray(e))for(var a of e)Object.assign(s,a);else e&&Object.assign(s,e);return Object.assign(s,i),s.options&&(s.options=o.options?Object.create(o.options):{},Object.assign(s.options,i.options)),s._initHooks=[],n}static include(t){var e=this.prototype.options;return Object.assign(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this}static mergeOptions(t){return this.prototype.options??={},Object.assign(this.prototype.options,t),this}static addInitHook(t,...e){return this.prototype._initHooks??=[],this.prototype._initHooks.push("function"==typeof t?t:function(){this[t].apply(this,e)}),this}constructor(...t){this._initHooksCalled=!1,d(this),this.initialize&&this.initialize(...t),this.callInitHooks()}callInitHooks(){if(!this._initHooksCalled){var t,e=[];let n=this;for(;null!==(n=Object.getPrototypeOf(n));)e.push(n);for(t of(e.reverse(),e))for(var i of t._initHooks??[])i.call(this);this._initHooksCalled=!0}}}var v={on(t,e,i){if("object"==typeof t)for(var[n,o]of Object.entries(t))this._on(n,o,e);else for(var s of c(t))this._on(s,e,i);return this},off(t,e,i){if(arguments.length){if("object"==typeof t)for(var[n,o]of Object.entries(t))this._off(n,o,e);else{var s,a=1==arguments.length;for(s of c(t))a?this._off(s):this._off(s,e,i)}}else delete this._events;return this},_on(t,e,i,n){"function"!=typeof e?console.warn("wrong listener type: "+typeof e):!1===this._listens(t,e,i)&&(e={fn:e,ctx:i=i===this?void 0:i},n&&(e.once=!0),this._events??={},this._events[t]??=[],this._events[t].push(e))},_off(t,e,i){if(this._events){let o=this._events[t];if(o){if(1==arguments.length){if(this._firingCount)for(var n of o)n.fn=l;delete this._events[t]}else"function"!=typeof e?console.warn("wrong listener type: "+typeof e):!1!==(e=this._listens(t,e,i))&&(i=o[e],this._firingCount&&(i.fn=l,this._events[t]=o=o.slice()),o.splice(e,1))}}},fire(t,e,i){if(this.listens(t,i)){var n={...e,type:t,target:this,sourceTarget:e?.sourceTarget||this};if(this._events&&(e=this._events[t])){for(var o of(this._firingCount=this._firingCount+1||1,e)){var s=o.fn;o.once&&this.off(t,s,o.ctx),s.call(o.ctx||this,n)}this._firingCount--}i&&this._propagateEvent(n)}return this},listens(t,e,i,n){"string"!=typeof t&&console.warn('"string" type argument expected');let o=e;if("function"!=typeof e&&(n=!!e,i=o=void 0),this._events?.[t]?.length&&!1!==this._listens(t,o,i))return!0;if(n){for(var s of Object.values(this._eventParents??{}))if(s.listens(t,e,i,n))return!0}return!1},_listens(t,e,i){return!!this._events&&((t=this._events[t]??[],e)?(i===this&&(i=void 0),-1!==(t=t.findIndex(t=>t.fn===e&&t.ctx===i))&&t):!!t.length)},once(t,e,i){if("object"==typeof t)for(var[n,o]of Object.entries(t))this._on(n,o,e,!0);else for(var s of c(t))this._on(s,e,i,!0);return this},addEventParent(t){return this._eventParents??={},this._eventParents[s(t)]=t,this},removeEventParent(t){return this._eventParents&&delete this._eventParents[s(t)],this},_propagateEvent(t){for(var e of Object.values(this._eventParents??{}))e.fire(t.type,{propagatedFrom:t.target,...t},!0)}},v=(v.addEventListener=v.on,v.removeEventListener=v.clearAllEventListeners=v.off,v.addOneTimeEventListener=v.once,v.fireEvent=v.fire,v.hasEventListeners=v.listens,g.extend(v));class _{constructor(t,e,i){let n,o;
15if(!_.validate(t,e))throw Error(`Invalid Point object: (${t}, ${e})`);if(t instanceof _)return t;o=Array.isArray(t)?(n=t[0],t[1]):"object"==typeof t&&"x"in t&&"y"in t?(n=t.x,t.y):(n=t,e),this.x=i?Math.round(n):n,this.y=i?Math.round(o):o}static validate(t,e){return!!(t instanceof _||Array.isArray(t))||!!(t&&"object"==typeof t&&"x"in t&&"y"in t)||!(!t&&0!==t||!e&&0!==e)}clone(){var t=new _(0,0);return t.x=this.x,t.y=this.y,t}add(t){return this.clone()._add(new _(t))}_add(t){return this.x+=t.x,this.y+=t.y,this}subtract(t){return this.clone()._subtract(new _(t))}_subtract(t){return this.x-=t.x,this.y-=t.y,this}divideBy(t){return this.clone()._divideBy(t)}_divideBy(t){return this.x/=t,this.y/=t,this}multiplyBy(t){return this.clone()._multiplyBy(t)}_multiplyBy(t){return this.x*=t,this.y*=t,this}scaleBy(t){return new _(this.x*t.x,this.y*t.y)}unscaleBy(t){return new _(this.x/t.x,this.y/t.y)}round(){return this.clone()._round()}_round(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}floor(){return this.clone()._floor()}_floor(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this}ceil(){return this.clone()._ceil()}_ceil(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this}trunc(){return this.clone()._trunc()}_trunc(){return this.x=Math.trunc(this.x),this.y=Math.trunc(this.y),this}distanceTo(t){var e=(t=new _(t)).x-this.x,t=t.y-this.y;return Math.sqrt(e*e+t*t)}equals(t){return(t=new _(t)).x===this.x&&t.y===this.y}contains(t){return Math.abs((t=new _(t)).x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)}toString(){return`Point(${h(this.x)}, ${h(this.y)})`}}class y{constructor(t,e){if(t){var i;if(t instanceof y)return t;for(i of e?[t,e]:t)this.extend(i)}}extend(t){let e,i;if(t){if(t instanceof _||"number"==typeof t[0]||"x"in t)e=i=new _(t);else if(e=(t=new y(t)).min,i=t.max,!e||!i)return this;this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(i.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(i.y,this.max.y)):(this.min=e.clone(),this.max=i.clone())}return this}getCenter(t){return new _((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)}getBottomLeft(){return new _(this.min.x,this.max.y)}getTopRight(){return new _(this.max.x,this.min.y)}getTopLeft(){return this.min}getBottomRight(){return this.max}getSize(){return this.max.subtract(this.min)}contains(t){let e,i;return(t=new("number"==typeof t[0]||t instanceof _?_:y)(t))instanceof y?(e=t.min,i=t.max):e=i=t,e.x>=this.min.x&&i.x<=this.max.x&&e.y>=this.min.y&&i.y<=this.max.y}intersects(t){t=new y(t);var e=this.min,i=this.max,n=t.min,t=t.max,o=t.x>=e.x&&n.x<=i.x,e=e.y<=t.y&&n.y<=i.y;return o&&e}overlaps(t){t=new y(t);var e=this.min,i=this.max,n=t.min,t=t.max,o=t.x>e.x&&n.x<i.x,e=e.y<t.y&&n.y<i.y;return o&&e}isValid(){return!(!this.min||!this.max)}pad(t){var e=this.min,i=this.max,n=Math.abs(e.x-i.x)*t,t=Math.abs(e.y-i.y)*t;return new y(new _(e.x-n,e.y-t),new _(i.x+n,i.y+t))}equals(t){return!!t&&(t=new y(t),this.min.equals(t.getTopLeft()))&&this.max.equals(t.getBottomRight())}}class b{constructor(t,e){if(t){var i;if(t instanceof b)return t;for(i of e?[t,e]:t)this.extend(i)}}extend(t){let e,i;var n=this._southWest,o=this._northEast;if(t instanceof w)e=t,i=t;else{if(!(t instanceof b))return t?w.validate(t)?this.extend(new w(t)):this.extend(new b(t)):this;if(e=t._southWest,i=t._northEast,!e||!i)return this}return n||o?(n.lat=Math.min(e.lat,n.lat),n.lng=Math.min(e.lng,n.lng),o.lat=Math.max(i.lat,o.lat),o.lng=Math.max(i.lng,o.lng)):(this._southWest=new w(e.lat,e.lng),this._northEast=new w(i.lat,i.lng)),this}pad(t){var e=this._southWest,i=this._northEast,n=Math.abs(e.lat-i.lat)*t,t=Math.abs(e.lng-i.lng)*t;return new b(new w(e.lat-n,e.lng-t),new w(i.lat+n,i.lng+t))}getCenter(){return new w((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)}getSouthWest(){return this._southWest}getNorthEast(){return this._northEast}getNorthWest(){return new w(this.getNorth(),this.getWest())}getSouthEast(){return new w(this.getSouth(),this.getEast())}getWest(){return this._southWest.lng}getSouth(){return this._southWest.lat}getEast(){return this._northEast.lng}getNorth(){return this._northEast.lat}contains(t){let e,i;t=new(w.validate(t)?w:b)(t);var n=this._southWest,o=this._northEast;
15return t instanceof b?(e=t.getSouthWest(),i=t.getNorthEast()):e=i=t,e.lat>=n.lat&&i.lat<=o.lat&&e.lng>=n.lng&&i.lng<=o.lng}intersects(t){t=new b(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),t=t.getNorthEast(),o=t.lat>=e.lat&&n.lat<=i.lat,t=t.lng>=e.lng&&n.lng<=i.lng;return o&&t}overlaps(t){t=new b(t);var e=this._southWest,i=this._northEast,n=t.getSouthWest(),t=t.getNorthEast(),o=t.lat>e.lat&&n.lat<i.lat,t=t.lng>e.lng&&n.lng<i.lng;return o&&t}toBBoxString(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")}equals(t,e){return!!t&&(t=new b(t),this._southWest.equals(t.getSouthWest(),e))&&this._northEast.equals(t.getNorthEast(),e)}isValid(){return!(!this._southWest||!this._northEast)}}class w{constructor(t,e,i){let n,o,s;if(!w.validate(t,e,i))throw Error(`Invalid LatLng object: (${t}, ${e})`);if(t instanceof w)return t;Array.isArray(t)&&"object"!=typeof t[0]?3===t.length?(n=t[0],o=t[1],s=t[2]):2===t.length&&(n=t[0],o=t[1]):s="object"==typeof t&&"lat"in t?(n=t.lat,o="lng"in t?t.lng:t.lon,t.alt):(n=t,o=e,i),this.lat=+n,this.lng=+o,void 0!==s&&(this.alt=+s)}static validate(t,e,i){return t instanceof w||"object"==typeof t&&"lat"in t||(t&&Array.isArray(t)&&"object"!=typeof t[0]?3===t.length||2===t.length:!(!t&&0!==t||!e&&0!==e))}equals(t,e){return!!t&&(t=new w(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(e??1e-9))}toString(t){return`LatLng(${h(this.lat,t)}, ${h(this.lng,t)})`}distanceTo(t){return C.distance(this,new w(t))}wrap(){return C.wrapLatLng(this)}toBounds(t){var t=180*t/40075017,e=t/Math.cos(Math.PI/180*this.lat);return new b([this.lat-t,this.lng-e],[this.lat+t,this.lng+e])}clone(){var t=new w(0,0);return t.lat=this.lat,t.lng=this.lng,t.alt=this.alt,t}}class x{static projection=void 0;static transformation=void 0;static latLngToPoint(t,e){return t=this.projection.project(t),e=this.scale(e),this.transformation._transform(t,e)}static pointToLatLng(t,e){return e=this.scale(e),t=this.transformation.untransform(t,e),this.projection.unproject(t)}static project(t){return this.projection.project(t)}static unproject(t){return this.projection.unproject(t)}static scale(t){return 256*2**t}static zoom(t){return Math.log(t/256)/Math.LN2}static getProjectedBounds(t){var e,i;return this.infinite?null:(i=this.projection.bounds,t=this.scale(t),e=this.transformation.transform(i.min,t),i=this.transformation.transform(i.max,t),new y(e,i))}static infinite=!1;static wrapLatLng(t){var e=this.wrapLng?r(t.lng,this.wrapLng,!0):t.lng,i=this.wrapLat?r(t.lat,this.wrapLat,!0):t.lat,t=t.alt;return new w(i,e,t)}static wrapLatLngBounds(t){var e=t.getCenter(),i=this.wrapLatLng(e),n=e.lat-i.lat,e=e.lng-i.lng;
15return 0==n&&0==e?t:(i=t.getSouthWest(),t=t.getNorthEast(),i=new w(i.lat-n,i.lng-e),n=new w(t.lat-n,t.lng-e),new b(i,n))}}class C extends x{static wrapLng=[-180,180];static R=6371e3;static distance(t,e){var i=Math.PI/180,n=t.lat*i,o=e.lat*i,s=Math.sin((e.lat-t.lat)*i/2),e=Math.sin((e.lng-t.lng)*i/2),t=s*s+Math.cos(n)*Math.cos(o)*e*e,i=2*Math.atan2(Math.sqrt(t),Math.sqrt(1-t));return this.R*i}}let T={R:6378137,MAX_LATITUDE:85.0511287798,project(t){var e=Math.PI/180,i=this.MAX_LATITUDE,i=Math.max(Math.min(i,t.lat),-i),i=Math.sin(i*e);return new _(this.R*t.lng*e,this.R*Math.log((1+i)/(1-i))/2)},unproject(t){var e=180/Math.PI;return new w((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(E=6378137*Math.PI,new y([-E,-E],[E,E]))};class k{constructor(t,e,i,n){Array.isArray(t)?(this._a=t[0],this._b=t[1],this._c=t[2],this._d=t[3]):(this._a=t,this._b=e,this._c=i,this._d=n)}transform(t,e){return this._transform(t.clone(),e)}_transform(t,e){return t.x=(e||=1)*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t}untransform(t,e){return e||=1,new _((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}}class S extends C{static code="EPSG:3857";static projection=T;static transformation=(E=.5/(Math.PI*T.R),new k(E,.5,-E,.5))}var E=D("chrome"),P=!E&&D("safari"),I="undefined"!=typeof orientation||D("mobile"),M="undefined"!=typeof window&&!!window.PointerEvent,A="undefined"!=typeof window&&("ontouchstart"in window||!!window.TouchEvent);function D(t){return"undefined"!=typeof navigator&&void 0!==navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t)}var O={chrome:E,safari:P,mobile:I,pointer:M,touch:A||M,touchNative:A,retina:"undefined"!=typeof window&&void 0!==window.devicePixelRatio&&1<window.devicePixelRatio,mac:"undefined"!=typeof navigator&&void 0!==navigator.platform&&navigator.platform.startsWith("Mac"),linux:"undefined"!=typeof navigator&&void 0!==navigator.platform&&navigator.platform.startsWith("Linux")};function N(t){return"string"==typeof t?document.getElementById(t):t}function z(t,e,i){return(t=document.createElement(t)).className=e??"",i&&i.appendChild(t),t}function H(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function B(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function j(t,e,i){e=e??new _(0,0),t.style.transform=`translate3d(${e.x}px,${e.y}px,0)`+(i?` scale(${i})`:"")}let W=new WeakMap;function R(t,e){W.set(t,e),j(t,e)}function F(t){return W.get(t)??new _(0,0)}let q="undefined"==typeof document?{}:document.documentElement.style,Z=["userSelect","WebkitUserSelect"].find(t=>t in q),V;function U(){var t=q[Z];"none"!==t&&(V=t,q[Z]="none")}function Y(){void 0!==V&&(q[Z]=V,V=void 0)}function K(){th(window,"dragstart",ty)}function G(){td(window,"dragstart",ty)}function Q(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(X(),e=t,i=t.style.outlineStyle,t.style.outlineStyle="none",th(window,"keydown",X))}function X(){e&&(e.style.outlineStyle=i,e=void 0,i=void 0,td(window,"keydown",X))}function J(t){for(;!((t=t.parentNode).offsetWidth&&t.offsetHeight||t===document.body););return t}function tt(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}let te={__proto__:null,create:z,disableImageDrag:K,disableTextSelection:U,enableImageDrag:G,enableTextSelection:Y,get:N,getPosition:F,getScale:tt,getSizedParentNode:J,preventOutline:Q,restoreOutline:X,setPosition:R,setTransform:j,toBack:B,toFront:H},ti=new Map,tn=!1;function to(){tn||(tn=!0,document.addEventListener("pointerdown",ts,{capture:!0}),document.addEventListener("pointermove",ta,{capture:!0}),document.addEventListener("pointerup",tr,{capture:!0}),document.addEventListener("pointercancel",tr,{capture:!0}),ti=new Map)}function ts(t){ti.set(t.pointerId,t)}function ta(t){ti.has(t.pointerId)&&ti.set(t.pointerId,t)}function tr(t){ti.delete(t.pointerId)}function tl(){return[...ti.values()]}function th(t,e,i,n){if(e&&"object"==typeof e)for(var[o,s]of Object.entries(e))tf(t,o,s,i);else for(var a of c(e))tf(t,a,i,n);return this}E={__proto__:null,cleanupPointers:function(){ti.clear()},disablePointerDetection:function(){document.removeEventListener("pointerdown",ts,{capture:!0}),document.removeEventListener("pointermove",ta,{capture:!0}),document.removeEventListener("pointerup",tr,{capture:!0}),document.removeEventListener("pointercancel",tr,{capture:!0}),tn=!1},enablePointerDetection:to,getPointers:tl};let tc="_leaflet_events";function td(t,e,i,n){if(1==arguments.length)tu(t),delete t[tc];else if(e&&"object"==typeof e)for(var[o,s]of Object.entries(e))tm(t,o,s,i);else if(e=c(e),2==arguments.length)tu(t,t=>e.includes(t));else for(var a of e)tm(t,a,i,n);return this}function tu(t,e){for(var i of Object.keys(t[tc]??{})){var n=i.split(/\d/)[0];e&&!e(n)||tm(t,n,null,null,i)}}let tp={pointerenter:"pointerover",pointerleave:"pointerout",wheel:"undefined"!=typeof window&&!("onwheel"in window)&&"mousewheel"};function tf(t,e,i,n){var o=e+s(i)+(n?"_"+s(n):"");if(!t[tc]||!t[tc][o]){let s=function(e){return i.call(n||t,e||window.event)},a=s;O.touch&&"dblclick"===e?s=function(t,e){t.addEventListener("dblclick",e);let i=0,n;function o(t){var e;let o;
151!==t.detail?n=t.detail:"mouse"===t.pointerType||t.sourceCapabilities&&!t.sourceCapabilities.firesTouchEvents||(e=tw(t)).some(t=>t instanceof HTMLLabelElement&&t.attributes.for)&&!e.some(t=>t instanceof HTMLInputElement||t instanceof HTMLSelectElement)||((e=Date.now())-i<=200?2==++n&&t.target.dispatchEvent((o={bubbles:t.bubbles,cancelable:t.cancelable,composed:t.composed,detail:2,view:t.view,screenX:t.screenX,screenY:t.screenY,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,button:t.button,buttons:t.buttons,relatedTarget:t.relatedTarget,region:t.region},new(t instanceof PointerEvent?(o={...o,pointerId:t.pointerId,width:t.width,height:t.height,pressure:t.pressure,tangentialPressure:t.tangentialPressure,tiltX:t.tiltX,tiltY:t.tiltY,twist:t.twist,pointerType:t.pointerType,isPrimary:t.isPrimary},PointerEvent):MouseEvent)("dblclick",o))):n=1,i=e)}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}(t,s):"addEventListener"in t?"wheel"===e||"mousewheel"===e?t.addEventListener(tp[e]||e,s,{passive:!1}):"pointerenter"===e||"pointerleave"===e?(s=function(e){tk(t,e??=window.event)&&a(e)},t.addEventListener(tp[e],s,!1)):t.addEventListener(e,a,!1):t.attachEvent("on"+e,s),t[tc]??={},t[tc][o]=s}}function tm(t,e,i,n,o){o??=e+s(i)+(n?"_"+s(n):"");var i=t[tc]&&t[tc][o];i&&(O.touch&&"dblclick"===e?(n=i,t.removeEventListener("dblclick",n.dblclick),t.removeEventListener("click",n.simDblclick)):"removeEventListener"in t?t.removeEventListener(tp[e]||e,i,!1):t.detachEvent("on"+e,i),t[tc][o]=null)}function tg(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function tv(t){return tf(t,"wheel",tg),this}function t_(t){return th(t,"pointerdown dblclick contextmenu",tg),t._leaflet_disable_click=!0,this}function ty(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function tb(t){return ty(t),tg(t),this}function tw(t){return t.composedPath()}function tx(t,e){var i,n;return e?(n=(i=tt(e)).boundingClientRect,new _((t.clientX-n.left)/i.x-e.clientLeft,(t.clientY-n.top)/i.y-e.clientTop)):new _(t.clientX,t.clientY)}function tC(){var t=window.devicePixelRatio;return O.linux&&O.chrome?t:O.mac?3*t:0<t?2*t:1}function tT(t){return t.deltaY&&0===t.deltaMode?-t.deltaY/tC():t.deltaY&&1===t.deltaMode?-(20*t.deltaY):t.deltaY&&2===t.deltaMode?-(60*t.deltaY):(t.deltaX||t.deltaZ,0)}function tk(t,e){let i=e.relatedTarget;if(!i)return!0;try{for(;i&&i!==t;)i=i.parentNode}catch(t){return!1}return i!==t}var tS={__proto__:null,PointerEvents:E,addListener:th,disableClickPropagation:t_,disableScrollPropagation:tv,getPointerPosition:tx,getPropagationPath:tw,getWheelDelta:tT,getWheelPxFactor:tC,isExternalTarget:tk,off:td,on:th,preventDefault:ty,removeListener:td,stop:tb,stopPropagation:tg};let tE=v.extend({run(t,e,i,n){this.stop(),this._el=t,this._inProgress=!0,this._duration=i??.25,this._easeOutPower=1/Math.max(n??.5,.2),this._startPos=F(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop(){this._inProgress&&(this._step(!0),this._complete())},_animate(){this._animId=requestAnimationFrame(this._animate.bind(this)),this._step()},_step(t){var e=+new Date-this._startTime,i=1e3*this._duration;e<i?this._runFrame(this._easeOut(e/i),t):(this._runFrame(1),this._complete())},_runFrame(t,e){t=this._startPos.add(this._offset.multiplyBy(t)),e&&t._round(),R(this._el,t),this.fire("step")},_complete(){cancelAnimationFrame(this._animId),this._inProgress=!1,this.fire("end")},_easeOut(t){return 1-(1-t)**this._easeOutPower}});P=v.extend({options:{crs:S,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize(t,e){e=d(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(new w(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=this.options.zoomAnimation,this._zoomAnimated&&this._createAnimProxy(),this._addLayers(this.options.layers)}
15,setView(t,e,i){return(e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(new w(t),e,this.options.maxBounds),i??={},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom={animate:i.animate,...i.zoom},i.pan={animate:i.animate,duration:i.duration,...i.pan}),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan)))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,i.pan?.noMoveStart),this)},setZoom(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn(t,e){return t??=this.options.zoomDelta,this.setZoom(this._zoom+t,e)},zoomOut(t,e){return t??=this.options.zoomDelta,this.setZoom(this._zoom-t,e)},setZoomAround(t,e,i){var n=this.getZoomScale(e),o=this.getSize().divideBy(2),t=(t instanceof _?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/n),n=this.containerPointToLatLng(o.add(t));return this.setView(n,e,{zoom:i})},_getBoundsCenterZoom(t,e){e??={},t=t.getBounds?t.getBounds():new b(t);var i=new _(e.paddingTopLeft||e.padding||[0,0]),n=new _(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,i.add(n));return(o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0?{center:t.getCenter(),zoom:o}
15:(e=n.subtract(i).divideBy(2),n=this.project(t.getSouthWest(),o),i=this.project(t.getNorthEast(),o),{center:this.unproject(n.add(i).divideBy(2).add(e),o),zoom:o})},fitBounds(t,e){if((t=new b(t)).isValid())return t=this._getBoundsCenterZoom(t,e),this.setView(t.center,t.zoom,e);throw Error("Bounds are not valid.")},fitWorld(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo(t,e){return this.setView(t,this._zoom,{pan:e})},panBy(t,e){var i;return e??={},(t=new _(t).round()).x||t.y?(!0===e.animate||this.getSize().contains(t)?(this._panAnim||(this._panAnim=new tE,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate?(this._mapPane.classList.add("leaflet-pan-anim"),i=this._getMapPanePos().subtract(t).round(),this._panAnim.run(this._mapPane,i,e.duration||.25,e.easeLinearity)):(this._rawPanBy(t),this.fire("move").fire("moveend"))):this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this):this.fire("moveend")},flyTo(t,e,i){if(!1===(i??={}).animate)return this.setView(t,e,i);this._stop();let n=this.project(this.getCenter()),o=this.project(t),s=this.getSize(),a=this._zoom,r=(t=new w(t),e=void 0===e?a:this._limitZoom(e),Math.max(s.x,s.y)),l=r*this.getZoomScale(a,e),h=o.distanceTo(n)||1;function c(t){var e=t?-1:1,t=t?l:r,e=(l*l-r*r+2.0164*e*2.0164*h*h)/(2*t*2.0164*h),t=Math.sqrt(e*e+1)-e;return t<1e-9?-18:Math.log(t)}function d(t){return(Math.exp(t)-Math.exp(-t))/2}function u(t){return(Math.exp(t)+Math.exp(-t))/2}let p=c(0),f=Date.now(),m=(c(1)-p)/1.42,g=i.duration?1e3*i.duration:1e3*m*.8;return this._moveStart(!0,i.noMoveStart),(function i(){var s,l=(Date.now()-f)/g,c=(1-(1-l)**1.5)*m;l<=1?(this._flyToFrame=requestAnimationFrame(i.bind(this)),this._move(this.unproject(n.add(o.subtract(n).multiplyBy((s=c,r*(u(p)*(d(s=p+1.42*s)/u(s))-d(p))/2.0164/h))),a),this.get
15ScaleZoom(r/(l=c,r*(u(p)/u(p+1.42*l))),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}).call(this),this},flyToBounds(t,e){return t=this._getBoundsCenterZoom(t,e),this.flyTo(t.center,t.zoom,e)},setMaxBounds(t){return t=new b(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds(t,e){this._enforcingBounds=!0;var i=this.getCenter(),t=this._limitCenter(i,this._zoom,new b(t));return i.equals(t)||this.panTo(t,e),this._enforcingBounds=!1,this},panInside(t,e){e??={};var i=new _(e.paddingTopLeft||e.padding||[0,0]),n=new _(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),t=this.project(t),s=this.getPixelBounds(),i=new y([s.min.add(i),s.max.subtract(n)]),s=i.getSize();return i.contains(t)||(this._enforcingBounds=!0,n=t.subtract(i.getCenter()),i=i.extend(t).getSize().subtract(s),o.x+=n.x<0?-i.x:i.x,o.y+=n.y<0?-i.y:i.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1),this},invalidateSize(t){if(!this._loaded)return this;t={animate:!1,pan:!0,...!0===t?{animate:!0}:t};var e=this.getSize(),i=(this._sizeChanged=!0,this._lastCenter=null,this.getSize()),n=e.divideBy(2).round(),o=i.divideBy(2).round(),n=n.subtract(o);return n.x||n.y?(t.animate&&t.pan?this.panBy(n):(t.pan&&this._rawPanBy(n),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(this.fire.bind(this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this},stop(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate(t){var e,i;return t=this._locateOptions={timeout:1e4,watch:!1,...t},"geolocation"in navigator?(e=this._handleGeolocationResponse.bind(this),i=this._handleGeolocationError.bind(this),t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t)):this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this},stopLocate(){return navigator.geolocation?.clearWatch?.(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError(t){var e;this._container._leaflet_id&&(e=t.code,t=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout"),this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:`Geolocation error: ${t}.`}))},_handleGeolocationResponse(t){if(this._container._leaflet_id){var e,i,n=t.coords.latitude,o=t.coords.longitude,n=new w(n,o),o=n.toBounds(2*t.coords.accuracy),s=this._locateOptions,a=(s.setView&&(e=this.getBoundsZoom(o),this.setView(n,s.maxZoom?Math.min(e,s.maxZoom):e)),{latlng:n,bounds:o,timestamp:t.timestamp});for(i of Object.keys(t.coords))"number"==typeof t.coords[i]&&(a[i]=t.coords[i]);this.fire("locationfound",a)}},addHandler(t,e){return e&&(e=this[t]=new e(this),this._handlers.push(e),this.options[t])&&e.enable(),this},remove(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}for(var t of(void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),this._mapPane.remove(),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(cancelAnimationFrame(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),clearTimeout(this._transitionEndTimer),clearTimeout(this._sizeTimer),this._loaded&&this.fire("unload"),this._destroyAnimProxy(),Object.values(this._layers)))t.remove();for(var e of Object.values(this._panes))e.remove();return this._layers={},this._panes={},delete this._mapPane,delete this._renderer,this},createPane(t,e){return e=z("div","leaflet-pane"+(t?` leaflet-${t.replace("Pane","")}-pane`:""),e||this._mapPane),t&&(this._panes[t]=e),e},getCenter(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom(){return this._zoom},getBounds(){var t=this.getPixelBounds(),e=this.unproject(t.getBottomLeft()),t=this.unproject(t.getTopRight());return new b(e,t)},getMinZoom(){return this.options.minZoom??this._layersMinZoom??0}
15,getMaxZoom(){return this.options.maxZoom??this._layersMaxZoom??1/0},getBoundsZoom(t,e,i){t=new b(t),i=new _(i??[0,0]);let n=this.getZoom()??0;var o=this.getMinZoom(),s=this.getMaxZoom(),a=t.getNorthWest(),t=t.getSouthEast(),i=this.getSize().subtract(i),t=new y(this.project(t,n),this.project(a,n)).getSize(),a=this.options.zoomSnap,r=i.x/t.x,i=i.y/t.y,t=e?Math.max(r,i):Math.min(r,i);return n=this.getScaleZoom(t,n),a&&(n=Math.round(n/(a/100))*(a/100),n=e?Math.ceil(n/a)*a:Math.floor(n/a)*a),Math.max(o,Math.min(s,n))},getSize(){return this._size&&!this._sizeChanged||(this._size=new _(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds(t,e){return t=this._getTopLeftPoint(t,e),new y(t,t.add(this.getSize()))},getPixelOrigin(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds(t){return this.options.crs.getProjectedBounds(t??this.getZoom())},getPane(t){return"string"==typeof t?this._panes[t]:t},getPanes(){return this._panes},getContainer(){return this._container},getZoomScale(t,e){var i=this.options.crs;return e??=this._zoom,i.scale(t)/i.scale(e)},getScaleZoom(t,e){var i=this.options.crs,t=(e??=this._zoom,i.zoom(t*i.scale(e)));return isNaN(t)?1/0:t},project(t,e){return e??=this._zoom,this.options.crs.latLngToPoint(new w(t),e)},unproject(t,e){return e??=this._zoom,this.options.crs.pointToLatLng(new _(t),e)},layerPointToLatLng(t){return t=new _(t).add(this.getPixelOrigin()),this.unproject(t)},latLngToLayerPoint(t){return this.project(new w(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng(t){return this.options.crs.wrapLatLng(new w(t))},wrapLatLngBounds(t){return this.options.crs.wrapLatLngBounds(new b(t))},distance(t,e){return this.options.crs.distance(new w(t),new w(e))},containerPointToLayerPoint(t){return new _(t).subtract(this._getMapPanePos())},layerPointToContainerPoint(t){return new _(t).add(this._getMapPanePos())},containerPointToLatLng(t){return t=this.containerPointToLayerPoint(new _(t)),this.layerPointToLatLng(t)},latLngToContainerPoint(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(new w(t)))},pointerEventToContainerPoint(t){return tx(t,this._container)},pointerEventToLayerPoint(t){return this.containerPointToLayerPoint(this.pointerEventToContainerPoint(t))},pointerEventToLatLng(t){return this.layerPointToLatLng(this.pointerEventToLayerPoint(t))},_initContainer(t){if(!(t=this._container=N(t)))throw Error("Map container not found.");if(t._leaflet_id)throw Error("Map container is already initialized.");th(t,"scroll",this._onScroll,this),this._containerId=s(t),to()},_initLayout(){var t=this._container,e=(this._fadeAnimated=this.options.fadeAnimation,["leaflet-container"]),e=(O.touch&&e.push("leaflet-touch"),O.retina&&e.push("leaflet-retina"),O.safari&&e.push("leaflet-safari"),this._fadeAnimated&&e.push("leaflet-fade-anim"),t.classList.add(...e),getComputedStyle(t)).position;"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),R(this._mapPane,new _(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(t.markerPane.classList.add("leaflet-zoom-hide"),t.shadowPane.classList.add("leaflet-zoom-hide"))},_resetView(t,e,i){R(this._mapPane,new _(0,0));var n=!this._loaded,o=(this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset"),this._zoom!==e);this._moveStart(o,i)._move(t,e)._moveEnd(o),this.fire("viewreset"),n&&this.fire("load")},_moveStart(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move(t,e,i,n){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),n?i?.pinch&&this.fire("zoom",i):((o||i?.pinch)&&this.fire("zoom",i),this.fire("move",i)),this},_moveEnd(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop(){return cancelAnimationFrame(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy(t){R(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded(){if(!this._loaded)throw Error("Set map center and zoom first.")},_initEvents(t){this._targets={},(t?td:th)((this._targets[s(this._container)]=this)._container,"click dblclick pointerdown pointerup pointerover pointerout pointermove c
15ontextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&(t?this._resizeObserver.disconnect():(this._resizeObserver||(this._resizeObserver=new ResizeObserver(this._onResize.bind(this))),this._resizeObserver.observe(this._container))),this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize(){cancelAnimationFrame(this._resizeRequest),this._resizeRequest=requestAnimationFrame(()=>{this.invalidateSize({debounceMoveend:!0})})},_onScroll(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets(t,e){let i=[],n,o=t.target||t.srcElement,a=!1;for(var r="pointerout"===e||"pointerover"===e;o;){if((n=this._targets[s(o)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){a=!0;break}if(n&&n.listens(e,!0)&&(r&&!tk(o,t)||(i.push(n),r))||o===this._container)break;o=o.parentNode}return i.length||a||r||!this.listens(e,!0)?i:[this]},_isClickDisabled(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click||!t.parentNode)return!0;t=t.parentNode}},_handleDOMEvent(t){var e,i=t.target??t.srcElement;!this._loaded||i._leaflet_disable_events||"click"===t.type&&this._isClickDisabled(i)||("pointerdown"===(e=t.type)&&Q(i),this._fireDOMEvent(t,e))},_pointerEvents:["click","dblclick","pointerover","pointerout","contextmenu"],_fireDOMEvent(t,e,i){"click"===e&&this._fireDOMEvent(t,"preclick",i);let n=this._findEventTargets(t,e);if(i&&(n=(i=i.filter(t=>t.listens(e,!0))).concat(n)),n.length){"contextmenu"===e&&ty(t);var o,s,i=n[0],a={originalEvent:t};for(s of("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type&&(o=i.getLatLng&&(!i._radius||i._radius<=10),a.containerPoint=o?this.latLngToContainerPoint(i.getLatLng()):this.pointerEventToContainerPoint(t),a.layerPoint=this.containerPointToLayerPoint(a.containerPoint),a.latlng=o?i.getLatLng():this.layerPointToLatLng(
15a.layerPoint)),n))if(s.fire(e,a,!0),a.originalEvent._stopped||!1===s.options.bubblingPointerEvents&&this._pointerEvents.includes(e))return}},_draggableMoved(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers(){for(var t of this._handlers)t.disable()},whenReady(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos(){return F(this._mapPane)},_moved(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin(t,e){var i=this.getSize()._divideBy(2);return this.project(t,e)._subtract(i)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint(t,e,i){return i=this._getNewPixelOrigin(i,e),this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds(t,e,i){return i=this._getNewPixelOrigin(i,e),new y([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter(t,e,i){var n,o;return!i||(n=this.project(t,e),o=this.getSize().divideBy(2),o=new y(n.subtract(o),n.add(o)),1>=Math.abs((o=this._getBoundsOffset(o,i,e)).x)&&1>=Math.abs(o.y))?t:this.unproject(n.add(o),e)},_limitOffset(t,e){var i;return e?(i=this.getPixelBounds(),i=new y(i.min.add(t),i.max.add(t)),t.add(this._getBoundsOffset(i,e))):t},_getBoundsOffset(t,e,i){return i=(e=new y(this.project(e.getNorthEast(),i),this.project(e.getSouthWest
15(),i))).min.subtract(t.min),e=e.max.subtract(t.max),t=this._rebound(i.x,-e.x),i=this._rebound(i.y,-e.y),new _(t,i)},_rebound:(t,e)=>0<t+e?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e)),_limitZoom(t){var e=this.getMinZoom(),i=this.getMaxZoom(),n=this.options.zoomSnap;return n&&(t=Math.round(t/n)*n),Math.max(e,Math.min(i,t))},_onPanTransitionStep(){this.fire("move")},_onPanTransitionEnd(){this._mapPane.classList.remove("leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan(t,e){return t=this._getCenterOffset(t)._trunc(),!(!0!==e?.animate&&!this.getSize().contains(t)||(this.panBy(t,e),0))},_createAnimProxy(){this._proxy=z("div","leaflet-proxy leaflet-zoom-animated"),this._panes.mapPane.appendChild(this._proxy),this.on("zoomanim",this._animateProxyZoom,this),this.on("load moveend",this._animMoveEnd,this),th(this._proxy,"transitionend",this._catchTransitionEnd,this)},_animateProxyZoom(t){var e=this._proxy.style.transform;j(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),e===this._proxy.style.transform&&this._animatingZoom&&this._onZoomTransitionEnd()},_animMoveEnd(){var t=this.getCenter(),e=this.getZoom();j(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_destroyAnimProxy(){this._proxy&&(td(this._proxy,"transitionend",this._catchTransitionEnd,this),this._proxy.remove(),this.off("zoomanim",this._animateProxyZoom,this),this.off("load moveend",this._animMoveEnd,this),delete this._proxy)},_catchTransitionEnd(t){this._animatingZoom&&t.propertyName.includes("transform")&&this._onZoomTransitionEnd()},_nothingToAnimate(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom(t,e,i){if(!this._animatingZoom){if(i??={},!this._zoomAnimated||!1===i.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var n=this.getZoomScale(e),n=this._getCenterOffset(t)._divideBy(1-1/n);if(!0!==i.animate&&!this.getSize().contains(n))return!1;requestAnimationFrame(()=>{this._moveStart(!0,i.noMoveStart??!1)._animateZoom(t,e,!0)})}return!0},_animateZoom(t,e,i,n){this._mapPane&&(i&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,this._mapPane.classList.add("leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:n}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._transitionEndTimer=setTimeout(this._onZoomTransitionEnd.bind(this),250))},_onZoomTransitionEnd(){this._animatingZoom&&(this._mapPane&&this._mapPane.classList.remove("leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});let tP=g.extend({options:{position:"topright"},initialize(t){d(this,t)},getPosition(){return this.options.position},setPosition(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer(){return this._container},addTo(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),i=this.getPosition(),t=t._controlCorners[i];return e.classList.add("leaflet-control"),i.includes("bottom")?t.insertBefore(e,t.firstChild):t.appendChild(e),this._map.on("unload",this.remove,this),this},remove(){return this._map&&(this._container.remove(),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null),this},_refocusOnMap(t){this._map&&t&&(0!==t.screenX||0!==t.screenY)&&this._map.getContainer().focus()}});P.include({addControl(t){return t.addTo(this),this},removeControl(t){return t.remove(),this},_initControlPos(){let t=this._controlCorners={},e="leaflet-",i=this._controlContainer=z("div",e+"control-container",this._container);function n(n,o){t[n+o]=z("div",e+n+" "+e+o,i)}n("top","left"),n("top","right"),n("bottom","left"),n("bottom","right")},_clearControlPos(){for(var t of Object.values(this._controlCorners))t.remove();this._controlContainer.remove(),delete this._controlCorners,delete this._controlContainer}}
15),I=tP.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:(t,e,i,n)=>i<n?-1:n<i?1:0},initialize(t,e,i){for(var[n,o]of(d(this,i),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1,Object.entries(t??{})))this._addLayer(o,n);for(var[s,a]of Object.entries(e??{}))this._addLayer(a,s,!0)},onAdd(t){for(var e of(this._initLayout(),this._update(),(this._map=t).on("zoomend",this._checkDisabledLayers,this),this._layers))e.layer.on("add remove",this._onLayerChange,this);return this.options.collapsed||t.on("resize",this._expandIfNotCollapsed,this),this._container},addTo(t){return tP.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove(){for(var t of(this._map.off("zoomend",this._checkDisabledLayers,this),this._layers))t.layer.off("add remove",this._onLayerChange,this);this._map.off("resize",this._expandIfNotCollapsed,this)},addBaseLayer(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer(t){return t.off("add remove",this._onLayerChange,this),(t=this._getLayer(s(t)))&&this._layers.splice(this._layers.indexOf(t),1),this._map?this._update():this},expand(){this._container.classList.add("leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(this._section.classList.add("leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):this._section.classList.remove("leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse(t){return t&&("pointerleave"===t.type||"pointerout"===t.type)&&"touch"===t.pointerType||this._container.classList.remove("leaflet-control-layers-expanded"),this},_initLayout(){var t="leaflet-control-layers",e=this._container=z("div",t),i=this.options.collapsed,n=(t_(e),tv(e),this._section=z("fieldset",t+"-list")),o=(i&&(this._map.on("click",this.collapse,this),th(e,{pointerenter:this._expandSafely,pointerleave:this.collapse},this)),this._layersLink=z("a",t+"-toggle",e));o.href="#",o.title="Layers",o.setAttribute("role","button"),th(o,{keydown(t){"Enter"===t.code&&this._expandSafely()},click(t){ty(t),this._expandSafely()}},this),i||this.expand(),this._baseLayersList=z("div",t+"-base",n),this._separator=z("div",t+"-separator",n),this._overlaysList=z("div",t+"-overlays",n),e.appendChild(n)},_getLayer(t){for(var e of this._layers)if(e&&s(e.layer)===t)return e},_addLayer(t,e,i){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:i}),this.options.sortLayers&&this._layers.sort((t,e)=>this.options.sortFunction(t.layer,e.layer,t.name,e.name)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update(){if(this._container){this._baseLayersList.replaceChildren(),this._overlaysList.replaceChildren(),this._layerControlInputs=[];let e,i,n=0;for(var t of this._layers)this._addItem(t),i||=t.overlay,e||=!t.overlay,n+=t.overlay?0:1;this.options.hideSingleBase&&(e=e&&1<n,this._baseLayersList.style.display=e?"":"none"),this._separator.style.display=i&&e?"":"none"}return this},_onLayerChange(t){this._handlingClick||this._update();var e=this._getLayer(s(t.target)),t=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;t&&this._map.fire(t,e)},_createRadioElement:(t,e)=>(t=`<input type="radio" class="leaflet-control-layers-selector" name="${t}"${e?' checked="checked"':""}/>`,(e=document.createElement("div")).innerHTML=t,e.firstChild),_addItem(t){let e;var i=document.createElement("label"),n=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=n):e=this._createRadioElement("leaflet-base-layers_"+s(this),n),this._layerControlInputs.push(e),e.layerId=s(t.layer),th(e,"click",this._onInputClick,this);var n=document.createElement("span"),o=(n.innerHTML=" "+t.name,document.createElement("span"));return i.appendChild(o),o.appendChild(e),o.appendChild(n),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(i),this._checkDisabledLayers(),i},_onInputClick(t){if(!this._preventClick){var e,i,n,o=this._layerControlInputs,s=[],a=[];for(e of(this._handlingClick=!0,o)){var r=this._getLayer(e.layerId).layer;(e.checked?s:(e.checked,a)).push(r)}for(i of a)this._map.hasLayer(i)&&this._map.removeLayer(i);for(n of s)this._map.hasLayer(n)||this._map.addLayer(n);this._handlingClick=!1,this._refocusOnMap(t)}},_checkDisabledLayers(){var t,e=this._layerControlInputs,i=this._map.getZoom();for(t of e){var n=this._getLayer(t.layerId).layer;t.disabled=void 0!==n.options.minZoom&&i<n.options.minZoom||void 0!==n.options.maxZoom&&i>n.options.maxZoom}},_expandIfNotCollapsed(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely(){let t=this._section;this._preventClick=!0,th(t,"click",ty),this.expand(),setTimeout(()=>{td(t,"click",ty),this._preventClick=!1})}});let tL=tP.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd(t){var e="leaflet-control-zoom",i=z("div",e+" leaflet-bar"),n=this.options;return this._zoomInButton=this._createButton(n.zoomInText,n.zoomInTitle,e+"-in",i,this._zoomIn),this._zoomOutButton=this._createButton(n.zoomOutText,n.zoomOutTitle,e+"-out",i,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),i},onRemove(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable(){return this._disabled=!0,this._updateDisabled(),this},enable(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton(t,e,i,n,o){return(i=z("a",i,n)).innerHTML=t,i.href="#",i.title=e,i.setAttribute("role","button"),i.setAttribute("aria-label",e),t_(i),th(i,"click",tb),th(i,"click",o,this),th(i,"click",this._refocusOnMap,this),i},_updateDisabled(){var t=this._map,e="leaflet-disabled";this._zoomInButton.classList.remove(e),this._zoomOutButton.classList.remove(e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(this._zoomOutButton.classList.add(e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(this._zoomInButton.classList.add(e),this._zoomInButton.setAttribute("aria-disabled","true"))}});P.mergeOptions({zoomControl:!0}),P.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new tL,this.addControl(this.zoomControl))}),M=tP.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd(t){var e="leaflet-control-scale",i=z("div",e),n=this.options;return this._addScales(n,e+"-line",i),t.on(n.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),i},onRemove(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales(t,e,i){t.metric&&(this._mScale=z("div",e,i)),t.imperial&&(this._iScale=z("div",e,i))},_update(){var t=this._map,e=t.getSize().y/2,t=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(t)},_updateScales(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric(t){var e=this._getRoundNum(t);this._updateScale(this._mScale,e<1e3?e+" m":e/1e3+" km",e/t)},_updateImperial(t){var e,i,t=3.2808399*t;5280<t?(i=this._getRoundNum(e=t/5280),this._updateScale(this._iScale,i+" mi",i/e)):(i=this._getRoundNum(t),this._updateScale(this._iScale,i+" ft",i/t))},_updateScale(t,e,i){t.style.width=Math.round(this.options.maxWidth*i)+"px",t.innerHTML=e},_getRoundNum(t){var e=10**((""+Math.floor(t)).length-1),t=t/e;return e*(10<=t?10:5<=t?5:3<=t?3:2<=t?2:1)}});let tI=tP.extend({options:{position:"bottomright",prefix:'<a target="_blank" href="https://leafletjs.com" title="A JavaScript library for interactive maps"><svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>Leaflet</a>'},initialize(t){d(this,t),this._attributions={}}
15,onAdd(t){for(var e of((t.attributionControl=this)._container=z("div","leaflet-control-attribution"),t_(this._container),Object.values(t._layers)))e.getAttribution&&this.addAttribution(e.getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove(t){t.off("layeradd",this._addAttribution,this)},_addAttribution(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",()=>this.removeAttribution(t.layer.getAttribution())))},setPrefix(t){return this.options.prefix=t,this._update(),this},addAttribution(t){return t&&(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update()),this},removeAttribution(t){return t&&this._attributions[t]&&(this._attributions[t]--,this._update()),this},_update(){var t,e;this._map&&(t=Object.keys(this._attributions).filter(t=>this._attributions[t]),e=[],this.options.prefix&&e.push(this.options.prefix),t.length&&e.push(t.join(", ")),this._container.innerHTML=e.join(' <span aria-hidden="true">|</span> '))}});P.mergeOptions({attributionControl:!0}),P.addInitHook(function(){this.options.attributionControl&&(new tI).addTo(this)}),tP.Layers=I,tP.Zoom=tL,tP.Scale=M,tP.Attribution=tI,(A=g.extend({initialize(t){this._map=t},enable(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable(){return this._enabled&&(this._enabled=!1,this.removeHooks()),this},enabled(){return!!this._enabled}})).addTo=function(t,e){return t.addHandler(e,this),this};let tM=v.extend({options:{clickTolerance:3},initialize(t,e,i,n){d(this,n),this._element=t,this._dragStartTarget=e??t,this._preventOutline=i},enable(){this._enabled||(th(this._dragStartTarget,"pointerdown",this._onDown,this),this._enabled=!0)},disable(){this._enabled&&(tM._dragging===this&&this.finishDrag(!0),td(this._dragStartTarget,"pointerdown",this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown(t){var e;this._enabled&&(this._moved=!1,this._element.classList.contains("leaflet-zoom-anim")||(1!==tl().length?tM._dragging===this&&this.finishDrag():tM._dragging||t.shiftKey||0!==t.button&&"touch"!==t.pointerType||((tM._dragging=this)._preventOutline&&Q(this._element),K(),U(),this._moving)||(this.fire("down"),e=J(this._element),this._startPoint=new _(t.clientX,t.clientY),this._startPos=F(this._element),this._parentScale=tt(e),th(document,"pointermove",this._onMove,this),th(document,"pointerup pointercancel",this._onUp,this))))},_onMove(t){var e;this._enabled&&(1<tl().length?this._moved=!0:!(e=new _(t.clientX,t.clientY)._subtract(this._startPoint)).x&&!e.y||Math.abs(e.x)+Math.abs(e.y)<this.options.clickTolerance||(e.x/=this._parentScale.x,e.y/=this._parentScale.y,t.cancelable&&ty(t),this._moved||(this.fire("dragstart"),this._moved=!0,document.body.classList.add("leaflet-dragging"),this._lastTarget=t.target??t.srcElement,this._lastTarget.classList.add("leaflet-drag-target")),this._newPos=this._startPos.add(e),this._moving=!0,this._lastEvent=t,this._updatePosition()))},_updatePosition(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),R(this._element,this._newPos),this.fire("drag",t)},_onUp(){this._enabled&&this.finishDrag()},finishDrag(t){document.body.classList.remove("leaflet-dragging"),this._lastTarget&&(this._lastTarget.classList.remove("leaflet-drag-target"),this._lastTarget=null),td(document,"pointermove",this._onMove,this),td(document,"pointerup pointercancel",this._onUp,this),G(),Y();var e=this._moved&&this._moving;this._moving=!1,tM._dragging=!1,e&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)})}});function tA(t,e,i){let n,o,s,a,r,l,h,c,d;var u=[1,4,2,8];for(o=0,h=t.length;o<h;o++)t[o]._code=tj(t[o],e);for(a=0;a<4;a++){for(c=u[a],n=[],o=0,s=(h=t.length)-1;o<h;s=o++)r=t[o],l=t[s],r._code&c?l._code&c||((d=tB(l,r,c,e,i))._code=tj(d,e),n.push(d)):(l._code&c&&((d=tB(l,r,c,e,i))._code=tj(d,e),n.push(d)),n.push(r));t=n}return t}function tD(t,e){let i,n,o,s,a,r,l,h,c;if(!t||0===t.length)throw Error("latlngs not passed");tR(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);let d=new w([0,0]);
15var u=new b(t),p=(u.getNorthWest().distanceTo(u.getSouthWest())*u.getNorthEast().distanceTo(u.getNorthWest())<1700&&(d=tO(t)),t.length),f=[];for(i=0;i<p;i++){var m=new w(t[i]);f.push(e.project(new w([m.lat-d.lat,m.lng-d.lng])))}for(r=l=h=0,i=0,n=p-1;i<p;n=i++)o=f[i],s=f[n],a=o.y*s.x-s.y*o.x,l+=(o.x+s.x)*a,h+=(o.y+s.y)*a,r+=3*a;return c=0===r?f[0]:[l/r,h/r],u=e.unproject(new _(c)),new w([u.lat+d.lat,u.lng+d.lng])}function tO(t){let e=0,i=0,n=0;for(var o of t)e+=(o=new w(o)).lat,i+=o.lng,n++;return new w([e/n,i/n])}function tN(t,e){if(e&&t.length){e*=e;{var i=t=((t,e)=>{let i=[t[0]],n=0;for(let o=1;o<t.length;o++)((t,e)=>{var i=e.x-t.x;return i*i+(e=e.y-t.y)*e})(t[o],t[n])>e&&(i.push(t[o]),n=o);return n<t.length-1&&i.push(t[t.length-1]),i})(t,e),n=i.length,o=new("undefined"!=typeof Uint8Array?Uint8Array:Array)(n);o[0]=o[n-1]=1,function t(e,i,n,o,s){let a=0,r,l,h;for(l=o+1;l<=s-1;l++)(h=tW(e[l],e[o],e[s],!0))>a&&(r=l,a=h);a>n&&(i[r]=1,t(e,i,n,o,r),t(e,i,n,r,s))}(i,o,e,0,n-1);let s,a=[];for(s=0;s<n;s++)o[s]&&a.push(i[s]);return a}}return t.slice()}function tz(t,e,i){return Math.sqrt(tW(t,e,i,!0))}function tH(t,e,i,o,s){let a=o?n:tj(t,i),r=tj(e,i),l,h,c;for(n=r;;){if(!(a|r))return[t,e];if(a&r)return!1;c=tj(h=tB(t,e,l=a||r,i,s),i),l===a?(t=h,a=c):(e=h,r=c)}}function tB(t,e,i,n,o){let s,a;var r=e.x-t.x,e=e.y-t.y,l=n.min,n=n.max;return 8&i?(s=t.x+r*(n.y-t.y)/e,a=n.y):4&i?(s=t.x+r*(l.y-t.y)/e,a=l.y):2&i?(s=n.x,a=t.y+e*(n.x-t.x)/r):1&i&&(s=l.x,a=t.y+e*(l.x-t.x)/r),new _(s,a,o)}function tj(t,e){let i=0;return t.x<e.min.x?i|=1:t.x>e.max.x&&(i|=2),t.y<e.min.y?i|=4:t.y>e.max.y&&(i|=8),i}function tW(t,e,i,n){let o=e.x,s=e.y,a=i.x-o,r=i.y-s,l;return 0<(e=a*a+r*r)&&(1<(l=((t.x-o)*a+(t.y-s)*r)/e)?(o=i.x,s=i.y):0<l&&(o+=a*l,s+=r*l)),a=t.x-o,r=t.y-s,n?a*a+r*r:new _(o,s)}function tR(t){return!Array.isArray(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function tF(t,e){let i,n,o,s,a,r,l,h;if(!t||0===t.length)throw Error("latlngs not passed");tR(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);let c=new w([0,0]);
15var d=new b(t),u=(d.getNorthWest().distanceTo(d.getSouthWest())*d.getNorthEast().distanceTo(d.getNorthWest())<1700&&(c=tO(t)),t.length),p=[];for(i=0;i<u;i++){var f=new w(t[i]);p.push(e.project(new w([f.lat-c.lat,f.lng-c.lng])))}for(i=0,n=0;i<u-1;i++)n+=p[i].distanceTo(p[i+1])/2;if(0===n)h=p[0];else for(i=0,s=0;i<u-1;i++)if(a=p[i],r=p[i+1],(s+=o=a.distanceTo(r))>n){l=(s-n)/o,h=[r.x-l*(r.x-a.x),r.y-l*(r.y-a.y)];break}return d=e.unproject(new _(h)),new w([d.lat+c.lat,d.lng+c.lng])}E={__proto__:null,centroid:tO,clipPolygon:tA,polygonCenter:tD},I={__proto__:null,_getBitCode:tj,_getEdgeIntersection:tB,_sqClosestPointOnSegment:tW,clipSegment:tH,closestPointOnSegment:function(t,e,i){return tW(t,e,i)},isFlat:tR,pointToSegmentDistance:tz,polylineCenter:tF,simplify:tN},M={project:t=>new _(t.lng,t.lat),unproject:t=>new w(t.y,t.x),bounds:new y([-180,-90],[180,90])};let t$={R:6378137,R_MINOR:6356752.314245179,bounds:new y([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project(t){var e=Math.PI/180,i=this.R,n=this.R_MINOR/i,n=Math.sqrt(1-n*n),o=t.lat*e,s=n*Math.sin(o),s=Math.tan(Math.PI/4-o/2)/((1-s)/(1+s))**(n/2),o=-i*Math.log(Math.max(s,1e-10));return new _(t.lng*e*i,o)},unproject(t){var e=180/Math.PI,i=this.R,n=this.R_MINOR/i,o=Math.sqrt(1-n*n),s=Math.exp(-t.y/i);let a=Math.PI/2-2*Math.atan(s);for(let t=0,e=.1,i;t<15&&1e-7<Math.abs(e);t++)i=o*Math.sin(a),e=Math.PI/2-2*Math.atan(s*((1-i)/(1+i))**(o/2))-a,a+=e;return new w(a*e,t.x*e/i)}},tq={__proto__:null,LonLat:M,Mercator:t$,SphericalMercator:T};class tZ extends C{static code="EPSG:3395";static projection=t$;static transformation=(tY=.5/(Math.PI*t$.R),new k(tY,.5,-tY,.5))}class tV extends C{static code="EPSG:4326";static projection=M;static transformation=new k(1/180,1,-1/180,.5)}class tU extends x{static projection=M;static transformation=new k(1,0,-1,0);static scale(t){return 2**t}static zoom(t){return Math.log(t)/Math.LN2}static distance(t,e){var i=e.lng-t.lng,e=e.lat-t.lat;return Math.sqrt(i*i+e*e)}static infinite=!0}x.Earth=C,x.EPSG3395=tZ,x.EPSG3857=S,x.EPSG900913=class extends S{static code="EPSG:900913"},x.EPSG4326=tV,x.Simple=tU;var tY=v.extend({options:{pane:"overlayPane",attribution:null,bubblingPointerEvents:!0},addTo(t){return t.addLayer(this),this},remove(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom(t){return t&&t.removeLayer(this),this},getPane(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget(t){return this._map._targets[s(t)]=this},removeInteractiveTarget(t){return delete this._map._targets[s(t)],this},getAttribution(){return this.options.attribution},_layerAdd(t){let e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){let t=this.getEvents();e.on(t,this),this.once("remove",()=>e.off(t,this))}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});P.include({addLayer(t){var e;if(t._layerAdd)return e=s(t),this._layers[e]||((this._layers[e]=t)._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this;throw Error("The provided object is not a Layer.")},removeLayer(t){var e=s(t);return this._layers[e]&&(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null),this},hasLayer(t){return s(t) in this._layers},eachLayer(t,e){for(var i of Object.values(this._layers))t.call(e,i);return this},_addLayers(t){for(var e of t=t?Array.isArray(t)?t:[t]:[])this.addLayer(e)},_addZoomLimit(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[s(t)]=t,this._updateZoomLevels())}
15,_removeZoomLimit(t){t=s(t),this._zoomBoundLayers[t]&&(delete this._zoomBoundLayers[t],this._updateZoomLevels())},_updateZoomLevels(){let t=1/0,e=-1/0;var i,n=this._getZoomSpan();for(i of Object.values(this._zoomBoundLayers)){var o=i.options;t=Math.min(t,o.minZoom??1/0),e=Math.max(e,o.maxZoom??-1/0)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});let tK=tY.extend({initialize(t,e){for(var i of(d(this,e),this._layers={},t??[]))this.addLayer(i)},addLayer(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer(t){return t=t in this._layers?t:this.getLayerId(t),this._map&&this._layers[t]&&this._map.removeLayer(this._layers[t]),delete this._layers[t],this},hasLayer(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers(){return this.eachLayer(this.removeLayer,this)},invoke(t,...e){for(var i of Object.values(this._layers))i[t]&&i[t].apply(i,e);return this},onAdd(t){this.eachLayer(t.addLayer,t)},onRemove(t){this.eachLayer(t.removeLayer,t)},eachLayer(t,e){for(var i of Object.values(this._layers))t.call(e,i);return this},getLayer(t){return this._layers[t]},getLayers(){var t=[];return this.eachLayer(t.push,t),t},setZIndex(t){return this.invoke("setZIndex",t)},getLayerId:t=>s(t)}),tG=tK.extend({addLayer(t){return this.hasLayer(t)?this:(t.addEventParent(this),tK.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer(t){return this.hasLayer(t)?((t=t in this._layers?this._layers[t]:t).removeEventParent(this),tK.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle(t){return this.invoke("setStyle",t)},bringToFront(){return this.invoke("bringToFront")},bringToBack(){return this.invoke("bringToBack")},getBounds(){var t,e=new b;for(t of Object.values(this._layers))e.extend(t.getBounds?t.getBounds():t.getLatLng());return e}}),tQ=g.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize(t){d(this,t)},createIcon(t){return this._createIcon("icon",t)},createShadow(t){return this._createIcon("shadow",t)},_createIcon(t,e){var i=this._getIconUrl(t);if(i)return i=this._createImg(i,e&&"IMG"===e.tagName?e:null),this._setIconStyles(i,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i;if("icon"===t)throw Error("iconUrl not set in Icon options (see the docs).");return null},_setIconStyles(t,e){var i=this.options;let n=i[e+"Size"];"number"==typeof n&&(n=[n,n]);var o=_.validate(n)&&new _(n),s="shadow"===e&&i.shadowAnchor||i.iconAnchor||o&&o.divideBy(2,!0),s=_.validate(s)&&new _(s);t.className=`leaflet-marker-${e} `+(i.className||""),s&&(t.style.marginLeft=-s.x+"px",t.style.marginTop=-s.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:(t,e)=>((e??=document.createElement("img")).src=t,e),_getIconUrl(t){return O.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}}),tX=tQ.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl(t){return tX.imagePath||(tX.imagePath=this._detectIconPath()),(t=tQ.prototype._getIconUrl.call(this,t))?(this.options.imagePath||tX.imagePath)+t:null},_stripUrl(t){function e(t,e,i){return(e=e.exec(t))&&e[i]}return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath(){var t=z("div","leaflet-default-icon-path",document.body),e=this._stripUrl(getComputedStyle(t).backgroundImage);return document.body.removeChild(t),e||((t=document.querySelector('link[href$="leaflet.css"]'))?t.href.substring(0,t.href.length-11-1):"")}}),tJ=A.extend({initialize(t){this._marker=t},addHooks(){var t=this._marker._icon;this._draggable||(this._draggable=new tM(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),t.classList.add("leaflet-marker-draggable")},removeHooks(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&this._marker._icon.classList.remove("leaflet-marker-draggable")},moved(){return this._draggable?._moved},_adjustPan(t){var e=this._marker,i=e._map,n=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,s=F(e._icon),a=i.getPixelBounds(),r=i.getPixelOrigin(),r=new y(a.min._subtract(r).add(o),a.max._subtract(r).subtract(o));r.contains(s)||(o=new _((Math.max(r.max.x,s.x)-r.max.x)/(a.max.x-r.max.x)-(Math.min(r.min.x,s.x)-r.min.x)/(a.min.x-r.min.x),(Math.max(r.max.y,s.y)-r.max.y)/(a.max.y-r.max.y)-(Math.min(r.min.y,s.y)-r.min.y)/(a.min.y-r.min.y)).multiplyBy(n),i.panBy(o,{animate:!1}),this._draggable._newPos._add(o),this._draggable._startPos._add(o),R(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=requestAnimationFrame(this._adjustPan.bind(this,t)))},_onDragStart(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag(t){this._marker.options.autoPan&&(cancelAnimationFrame(this._panRequest),this._panRequest=requestAnimationFrame(this._adjustPan.bind(this,t)))},_onDrag(t){var e=this._marker,i=e._shadow,n=F(e._icon),o=e._map.layerPointToLatLng(n);i&&R(i,n),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd(t){cancelAnimationFrame(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),t0=tY.extend({options:{icon:new tX,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingPointerEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize(t,e){d(this,e),this._latlng=new w(t)},onAdd(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents(){return{zoom:this.update,viewreset:this.update}},getLatLng(){return this._latlng},setLatLng(t){var e=this._latlng;return this._latlng=new w(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset(t){return this.options.zIndexOffset=t,this.update()},getIcon(){return this.options.icon},setIcon(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement(){return this._icon},update(){var t;return this._icon&&this._map&&(t=this._map.latLngToLayerPoint(this._latlng).round(),this._setPos(t)),this},_initIcon(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),i=t.icon.createIcon(this._icon);let n=!1;i!==this._icon&&(this._icon&&this._removeIcon(),n=!0,t.title&&(i.title=t.title),"IMG"===i.tagName)&&(i.alt=t.alt??""),i.classList.add(e),t.keyboard&&(i.tabIndex="0",i.setAttribute("role","button")),this._icon=i,t.riseOnHover&&this.on({pointerover:this._bringToFront,pointerout:this._resetZIndex}),this.options.autoPanOnFocus&&th(i,"focus",this._panOnFocus,this);let o=!1;(i=t.icon.createShadow(this._shadow))!==this._shadow&&(this._removeShadow(),o=!0),i&&(i.classList.add(e),i.alt=""),this._shadow=i,t.opacity<1&&this._updateOpacity(),n&&this.getPane().appendChild(this._icon),this._initInteraction(),i&&o&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon(){this.options.riseOnHover&&this.off({pointerover:this._bringToFront,pointerout:this._resetZIndex}
15),this.options.autoPanOnFocus&&td(this._icon,"focus",this._panOnFocus,this),this._icon.remove(),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow(){this._shadow&&this._shadow.remove(),this._shadow=null},_setPos(t){this._icon&&R(this._icon,t),this._shadow&&R(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round(),this._setPos(t)},_initInteraction(){if(this.options.interactive&&(this._icon.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._icon),tJ)){let t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new tJ(this),t&&this.dragging.enable()}},setOpacity(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity(){var t=this.options.opacity;this._icon&&(this._icon.style.opacity=t),this._shadow&&(this._shadow.style.opacity=t)},_bringToFront(){this._updateZIndex(this.options.riseOffset)},_resetZIndex(){this._updateZIndex(0)},_panOnFocus(){var t,e,i=this._map;i&&(t=(e=this.options.icon.options).iconSize?new _(e.iconSize):new _(0,0),e=e.iconAnchor?new _(e.iconAnchor):new _(0,0),i.panInside(this._latlng,{paddingTopLeft:e,paddingBottomRight:t.subtract(e)}))},_getPopupAnchor(){return this.options.icon.options.popupAnchor},_getTooltipAnchor(){return this.options.icon.options.tooltipAnchor}}),t1=tY.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingPointerEvents:!0},beforeAdd(t){this._renderer=t.getRenderer(this)},onAdd(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove(){this._renderer._removePath(this)},redraw(){return this._map&&this._renderer._updatePath(this),this},setStyle(t){return d(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke)&&t&&Object.hasOwn(t,"weight")&&this._updateBounds(),this},bringToFront(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack(){return this._renderer&&this._renderer._bringToBack(this),this},getElement(){return this._path},_reset(){this._project(),this._update()},_clickTolerance(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}});var M=t1.extend({options:{fill:!0,radius:10},initialize(t,e){d(this,e),this._latlng=new w(t),this._radius=this.options.radius},setLatLng(t){var e=this._latlng;return this._latlng=new w(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng(){return this._latlng},setRadius(t){return this.options.radius=this._radius=t,this.redraw()},getRadius(){return this._radius},setStyle(t){var e=t?.radius??this._radius;return t1.prototype.setStyle.call(this,t),this.setRadius(e),this},_project(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds(){var t=this._radius,e=this._radiusY??t,i=this._clickTolerance(),t=[t+i,e+i];this._pxBounds=new y(this._point.subtract(t),this._point.add(t))},_update(){this._map&&this._updatePath()},_updatePath(){this._renderer._updateCircle(this)},_empty(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}}),t2=M.extend({initialize(t,e){if(d(this,e),this._latlng=new w(t),isNaN(this.options.radius))throw Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius(t){return this._mRadius=t,this.redraw()},getRadius(){return this._mRadius},getBounds(){var t=[this._radius,this._radiusY??this._radius];return new b(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:t1.prototype.setStyle,_project(){var t=this._latlng.lng,e=this._latlng.lat,i=this._map,n=i.options.crs;if(n.distance===C.distance){var o=Math.PI/180,s=this._mRadius/C.R/o,a=i.project([e+s,t]),r=i.project([e-s,t]),r=a.add(r).divideBy(2),l=i.unproject(r).lat;let n=Math.acos((Math.cos(s*o)-Math.sin(e*o)*Math.sin(l*o))/(Math.cos(e*o)*Math.cos(l*o)))/o;(isNaN(n)||0===n)&&(n=s/Math.cos(Math.PI/180*e)),this._point=r.subtract(i.getPixelOrigin()),this._radius=isNaN(n)?0:r.x-i.project([l,t-n]).x,this._radiusY=r.y-a.y}else o=n.unproject(n.project(this._latlng).subtract([this._mRadius,0])),this._point=i.latLngToLayerPoint(this._latlng),this._radius=Math.abs(this._point.x-i.latLngToLayerPoint(o).x);this._updateBounds()}});let t3=t1.extend({options:{smoothFactor:1,noClip:!1},initialize(t,e){d(this,e),this._setLatLngs(t)},getLatLngs(){return this._latlngs},setLatLngs(t){return this._setLatLngs(t),this.redraw()},isEmpty(){return!this._latlngs.length},closestLayerPoint(t){let e=1/0,i=null,n,o;var s,a=tW;for(s of this._parts)for(let l=1,h=s.length;l<h;l++){var r=a(t,n=s[l-1],o=s[l],!0);r<e&&(e=r,i=a(t,n,o))}return i&&(i.distance=Math.sqrt(e)),i},getCenter(){if(this._map)return tF(this._defaultShape(),this._map.options.crs);
15throw Error("Must add layer to map before using getCenter()")},getBounds(){return this._bounds},addLatLng(t,e){return e??=this._defaultShape(),t=new w(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs(t){this._bounds=new b,this._latlngs=this._convertLatLngs(t)},_defaultShape(){return tR(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs(t){var e=[],i=tR(t);for(let n=0,o=t.length;n<o;n++)i?(e[n]=new w(t[n]),this._bounds.extend(e[n])):e[n]=this._convertLatLngs(t[n]);return e},_project(){var t=new y;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds(){var t=this._clickTolerance(),t=new _(t,t);this._rawPxBounds&&(this._pxBounds=new y([this._rawPxBounds.min.subtract(t),this._rawPxBounds.max.add(t)]))},_projectLatlngs(t,e,i){var n;t[0]instanceof w?((n=t.map(t=>this._map.latLngToLayerPoint(t))).forEach(t=>i.extend(t)),e.push(n)):t.forEach(t=>this._projectLatlngs(t,e,i))},_clipPoints(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)this._parts=this._rings;else{let i,n,o,s,a,r,l;var e=this._parts;for(i=0,o=0,s=this._rings.length;i<s;i++)for(l=this._rings[i],n=0,a=l.length;n<a-1;n++)(r=tH(l[n],l[n+1],t,n,!0))&&(e[o]??=[],e[o].push(r[0]),r[1]===l[n+1]&&n!==a-2||(e[o].push(r[1]),o++))}}},_simplifyPoints(){var t=this._parts,e=this.options.smoothFactor;for(let i=0,n=t.length;i<n;i++)t[i]=tN(t[i],e)},_update(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath(){this._renderer._updatePoly(this)},_containsPoint(t,e){let i,n,o,s,a,r;var l=this._clickTolerance();if(this._pxBounds&&this._pxBounds.contains(t)){for(i=0,s=this._parts.length;i<s;i++)for(r=this._parts[i],n=0,o=(a=r.length)-1;n<a;o=n++)if((e||0!==n)&&tz(t,r[o],r[n])<=l)return!0}return!1}}),t5=t3.extend({options:{fill:!0},isEmpty(){return!this._latlngs.length||!this._latlngs[0].length},getCenter(){if(this._map)return tD(this._defaultShape(),this._map.options.crs);throw Error("Must add layer to map before using getCenter()")},_convertLatLngs(t){var t=t3.prototype._convertLatLngs.call(this,t),e=t.length;return 2<=e&&t[0]instanceof w&&t[0].equals(t[e-1])&&t.pop(),t},_setLatLngs(t){t3.prototype._setLatLngs.call(this,t),tR(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape(){return(tR(this._latlngs[0])?this._latlngs:this._latlngs[0])[0]},_clipPoints(){let t=this._renderer._bounds;var e=this.options.weight,e=new _(e,e);if(t=new y(t.min.subtract(e),t.max.add(e)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t)){if(this.options.noClip)this._parts=this._rings;else for(var i of this._rings)(i=tA(i,t,!0)).length&&this._parts.push(i)}},_updatePath(){this._renderer._updatePoly(this,!0)},_containsPoint(t){let e=!1,i,n,o,s,a,r,l,h;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(s=0,l=this._parts.length;s<l;s++)for(i=this._parts[s],a=0,r=(h=i.length)-1;a<h;r=a++)n=i[a],o=i[r],n.y>t.y!=o.y>t.y&&t.x<(o.x-n.x)*(t.y-n.y)/(o.y-n.y)+n.x&&(e=!e);return e||t3.prototype._containsPoint.call(this,t,!0)}});var t9=tG.extend({initialize(t,e){d(this,e),this._layers={},t&&this.addData(t)},addData(t){var e=Array.isArray(t)?t:t.features;if(e){for(var i of e)(i.geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var n,e=this.options;return(!e.filter||e.filter(t))&&(n=t4(t,e))?(n.feature=en(t),n.defaultOptions=n.options,this.resetStyle(n),e.onEachFeature&&e.onEachFeature(t,n),this.addLayer(n)):this},resetStyle(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=Object.create(t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle(t){return this.eachLayer(e=>this._setLayerStyle(e,t))},_setLayerStyle(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function t4(t,e){let i,n;var o="Feature"===t.type?t.geometry:t,s=o?.coordinates,a=[],r=e?.pointToLayer,l=e?.coordsToLatLng??t8;if(!s&&!o)return null;switch(o.type){case"Point":return t6(r,t,i=l(s),e);case"MultiPoint":for(var h of s)i=l(h),a.push(t6(r,t,i,e));return new tG(a);case"LineString":case"MultiLineString":return n=t7(s,"LineString"===o.type?0:1,l),new t3(n,e);case"Polygon":case"MultiPolygon":return n=t7(s,"Polygon"===o.type?1:2,l),new t5(n,e);case"GeometryCollection":for(var c of o.geometries)(c=t4({geometry:c,type:"Feature",properties:t.properties},e))&&a.push(c);return new tG(a);case"FeatureCollection":for(var d of o.features)(d=t4(d,e))&&a.push(d);return new tG(a);default:throw Error("Invalid GeoJSON object.")}}function t6(t,e,i,n){return t?t(e,i):new t0(i,n?.markersInheritOptions&&n)}function t8(t){return new w(t[1],t[0],t[2])}
15function t7(t,e,i){return t.map(t=>e?t7(t,e-1,i):(i||t8)(t))}function et(t,e){return void 0!==(t=new w(t)).alt?[h(t.lng,e),h(t.lat,e),h(t.alt,e)]:[h(t.lng,e),h(t.lat,e)]}function ee(t,e,i,n){return t=t.map(t=>e?ee(t,tR(t)?0:e-1,i,n):et(t,n)),!e&&i&&0<t.length&&t.push(t[0].slice()),t}function ei(t,e){return t.feature?{...t.feature,geometry:e}:en(e)}function en(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var eo={toGeoJSON(t){return ei(this,{type:"Point",coordinates:et(this.getLatLng(),t)})}};t0.include(eo),t2.include(eo),M.include(eo),t3.include({toGeoJSON(t){var e=!tR(this._latlngs);return ei(this,{type:`${e?"Multi":""}LineString`,coordinates:ee(this._latlngs,e?1:0,!1,t)})}}),t5.include({toGeoJSON(t){var e=!tR(this._latlngs),i=e&&!tR(this._latlngs[0]);let n=ee(this._latlngs,i?2:e?1:0,!0,t);return ei(this,{type:`${i?"Multi":""}Polygon`,coordinates:n=e?n:[n]})}}),tK.include({toMultiPoint(t){let e=[];return this.eachLayer(i=>{e.push(i.toGeoJSON(t).geometry.coordinates)}),ei(this,{type:"MultiPoint",coordinates:e})},toGeoJSON(t){var e=this.feature?.geometry?.type;if("MultiPoint"===e)return this.toMultiPoint(t);let i="GeometryCollection"===e,n=[];return this.eachLayer(e=>{e.toGeoJSON&&(e=e.toGeoJSON(t),i?n.push(e.geometry):"FeatureCollection"===(e=en(e)).type?n.push.apply(n,e.features):n.push(e))}),i?ei(this,{geometries:n,type:"GeometryCollection"}):{type:"FeatureCollection",features:n}}});let es=tY.extend({options:{padding:.1,continuous:!1},initialize(t){d(this,t)},onAdd(){this._container||(this._initContainer(),this._container.classList.add("leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._resizeContainer(),this._onMoveEnd()},onRemove(){this._destroyContainer()},getEvents(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._onMoveEnd,zoomend:this._onZoomEnd,resize:this._resizeContainer};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),this.options.continuous&&(t.move=this._onMoveEnd),t},_onAnimZoom(t){this._updateTransform(t.center,t.zoom)},_onZoom(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform(t,e){var i=this._map.getZoomScale(e,this._zoom),n=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),n=n.multiplyBy(-i).add(o).subtract(this._map._getNewPixelOrigin(t,e));j(this._container,n,i)},_onMoveEnd(t){var e=this.options.padding,i=this._map.getSize(),n=this._map.containerPointToLayerPoint(i.multiplyBy(-e)).round();this._bounds=new y(n,n.add(i.multiplyBy(1+2*e)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom(),this._updateTransform(this._center,this._zoom),this._onSettled(t)},_reset(){this._onSettled(),this._updateTransform(this._center,this._zoom),this._onViewReset()},_initContainer(){this._container=z("div")},_destroyContainer(){td(this._container),this._container.remove(),delete this._container},_resizeContainer(){var t=this.options.padding,t=this._map.getSize().multiplyBy(1+2*t).round();return this._container.style.width=t.x+"px",this._container.style.height=t.y+"px",t},_onZoomEnd:l,_onViewReset:l,_onSettled:l});var eo=tY.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:"",decoding:"auto"},initialize(t,e,i){this._url=t,this._bounds=new b(e),d(this,i)},onAdd(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(this._image.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove(){this._image.remove(),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront(){return this._map&&H(this._image),this},bringToBack(){return this._map&&B(this._image),this},setUrl(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds(t){return this._bounds=new b(t),this._map&&this._reset(),this},getEvents(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds(){return this._bounds},getElement(){return this._image},_initImage(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:z("img");e.classList.add("leaflet-image-layer"),this._zoomAnimated&&e.classList.add("leaflet-zoom-animated"),this.options.className&&e.classList.add(...c(this.options.className)),e.onselectstart=l,e.onpointermove=l,e.onload=this.fire.bind(this,"load"),e.onerror=this._overlayOnError.bind(this),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),e.decoding=this.options.decoding,this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom(t){var e=this._map.getZoomScale(t.zoom),t=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;j(this._image,t,e)},_reset(){var t=this._image,e=new y(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),i=e.getSize();R(t,e.min),t.style.width=i.x+"px",t.style.height=i.y+"px"},_updateOpacity(){this._image.style.opacity=this.options.opacity},_updateZIndex(){this._image&&null!=this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter(){return this._bounds.getCenter()}}),ea=eo.extend({options:{autoplay:!0,controls:!1,loop:!0,keepAspectRatio:!0,muted:!1,playsInl
15ine:!0},_initImage(){var t,e="VIDEO"===this._url.tagName;let i=this._image=e?this._url:z("video");if(i.classList.add("leaflet-image-layer"),this._zoomAnimated&&i.classList.add("leaflet-zoom-animated"),this.options.className&&i.classList.add(...c(this.options.className)),th(i,"pointerdown",t=>{i.controls&&tg(t)}),i.onloadeddata=this.fire.bind(this,"load"),e)t=(e=i.getElementsByTagName("source")).map(t=>t.src),this._url=0<e.length?t:[i.src];else for(var n of(Array.isArray(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.hasOwn(i.style,"objectFit")&&(i.style.objectFit="fill"),i.autoplay=!!this.options.autoplay,i.controls=!!this.options.controls,i.loop=!!this.options.loop,i.muted=!!this.options.muted,i.playsInline=!!this.options.playsInline,this._url)){var o=z("source");o.src=n,i.appendChild(o)}}}),er=eo.extend({_initImage(){var t=this._image=this._url;t.classList.add("leaflet-image-layer"),this._zoomAnimated&&t.classList.add("leaflet-zoom-animated"),this.options.className&&t.classList.add(...c(this.options.className)),t.onselectstart=l,t.onpointermove=l}});let el=tY.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize(t,e){t instanceof w||Array.isArray(t)?(this._latlng=new w(t),d(this,e)):(d(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close(){return this._map&&this._map.removeLayer(this),this},toggle(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&(this._container.style.opacity=0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&(this._container.style.opacity=1),this.bringToFront(),this.options.interactive&&(this._container.classList.add("leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove(t){t._fadeAnimated?(this._container.style.opacity=0,this._removeTimeout=setTimeout(()=>this._container.remove(),200)):this._container.remove(),this.options.interactive&&(this._container.classList.remove("leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng(){return this._latlng},setLatLng(t){return this._latlng=new w(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent(){return this._content},setContent(t){return this._content=t,this.update(),this},getElement(){return this._container},update(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen(){return!!this._map&&this._map.hasLayer(this)},bringToFront(){return this._map&&H(this._container),this},bringToBack(){return this._map&&B(this._container),this},_prepareOpen(t){let e=this._source;if(!e._map)return!1;if(e instanceof tG){for(var i of(e=null,Object.values(this._source._layers)))if(i._map){e=i;break}if(!e)return!1;this._source=e}if(!t){if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source??this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=this._getAnchor();let i=new _(this.options.offset);this._zoomAnimated?R(this._container,t.add(e)):i=i.add(t).add(e),t=this._containerBottom=-i.y,e=this._containerLeft=-Math.round(this._containerWidth/2)+i.x,this._container.style.bottom=t+"px",this._container.style.left=e+"px"}},_getAnchor:()=>[0,0]}),eh=(P.include({_initOverlay(t,e,i,n){let o=e;return o instanceof t||(o=new t(n).setContent(e)),i&&o.setLatLng(i),o}}),tY.include({_initOverlay(t,e,i,n){let o=i;return o instanceof t?(d(o,n),o._source=this):(o=e&&!n?e:new t(n,this)).setContent(i),o}}),el.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,closeButtonLabel:"Close popup",autoClose:!0,closeOnEscapeKey:!0,className:"",trackResize:!0},openOn(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,el.prototype.openOn.call(this,t)},onAdd(t){el.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof t1||this._source.on("preclick",tg))},onRemove(t){el.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof t1||this._source.off("preclick",tg))},getEvents(){var t=el.prototype.getEvents.call(this);return(this.options.closeOnClick??this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&
15(t.moveend=this._adjustPan),t},_initLayout(){var t="leaflet-popup",e=this._container=z("div",t+` ${this.options.className||""} leaflet-zoom-animated`),i=this._wrapper=z("div",t+"-content-wrapper",e);this._contentNode=z("div",t+"-content",i),t_(e),tv(this._contentNode),th(e,"contextmenu",tg),this._tipContainer=z("div",t+"-tip-container",e),this._tip=z("div",t+"-tip",this._tipContainer),this.options.closeButton&&((i=this._closeButton=z("a",t+"-close-button",e)).setAttribute("role","button"),i.setAttribute("aria-label",this.options.closeButtonLabel),i.href="#close",i.innerHTML='<span aria-hidden="true">×</span>',th(i,"click",t=>{ty(t),this.close()})),this.options.trackResize&&(this._resizeObserver=new ResizeObserver(t=>{this._map&&(this._containerWidth=t[0]?.contentRect?.width,this._containerHeight=t[0]?.contentRect?.height,this._updateLayout(),this._updatePosition(),this._adjustPan())}),this._resizeObserver.observe(this._contentNode))},_updateLayout(){var t=this._contentNode,e=t.style,i=(e.width="",e.whiteSpace="nowrap",e.maxWidth=this.options.maxWidth+"px",e.minWidth=this.options.minWidth+"px",e.whiteSpace="",e.height="",this._containerHeight??t.offsetHeight),n=this.options.maxHeight,o="leaflet-popup-scrolled";n&&n<i?(e.height=n+"px",t.classList.add(o)):t.classList.remove(o),this._containerWidth=this._container.offsetWidth,this._containerHeight=this._container.offsetHeight},_animateZoom(t){var t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),e=this._getAnchor();R(this._container,t.add(e))},_adjustPan(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(getComputedStyle(this._container).marginBottom,10)||0,e=this._containerHeight+e,i=this._containerWidth,n=new _(this._containerLeft,-e-this._containerBottom),n=(n._add(F(this._container)),t.layerPointToContainerPoint(n)),o=new _(this.options.autoPanPadding),s=new _(this.options.autoPanPaddingTopLeft??o),o=new _(this.options.autoPanPaddingBottomRight??o),a=t.getSize();let r=0,l=0;n.x+i+o.x>a.x&&(r=n.x+i-a.x+o.x),n.x-r-s.x<0&&(r=n.x-s.x),n.y+e+o.y>a.y&&(l=n.y+e-a.y+o.y),n.y-l-s.y<0&&(l=n.y-s.y),(r||l)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([r,l]))}}},_getAnchor(){return new _(this._source?._getPopupAnchor?this._source._getPopupAnchor():[0,0])}})),ec=(P.mergeOptions({closePopupOnClick:!0}),P.include({openPopup(t,e,i){return this._initOverlay(eh,t,e,i).openOn(this),this},closePopup(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),tY.include({bindPopup(t,e){return this._popup=this._initOverlay(eh,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup(t){return this._popup&&(this instanceof tG||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng))&&this._popup.openOn(this._map),this},closePopup(){return this._popup&&this._popup.close(),this},togglePopup(){return this._popup&&this._popup.toggle(this),this},isPopupOpen(){return!!this._popup&&this._popup.isOpen()},setPopupContent(t){return this._popup&&this._popup.setContent(t),this},getPopup(){return this._popup},_openPopup(t){var e;this._popup&&this._map&&(tb(t),e=t.propagatedFrom??t.target,this._popup._source!==e||e instanceof t1?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng))},_movePopup(t){this._popup.setLatLng(t.latlng)},_onKeyPress(t){"Enter"===t.originalEvent.code&&this._openPopup(t)}}),el.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd(t){el.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove(t){el.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents(){var t=el.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout(){var t=`leaflet-tooltip ${this.options.className||""} leaflet-zoom-`+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=z("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+s(this))},_updateLayout(){},_adjustPan(){},_setPosition(t){let e,i,n=this.options.direction;var o=this._map,s=this._container,a=o.latLngToContainerPoint(o.getCenter()),o=o.layerPointToContainerPoint(t),r=s.offsetWidth,l=s.offsetHeight,h=new _(this.options.offset),c=this._getAnchor();i="top"===n?(e=r/2,l):"bottom"===n?(e=r/2,0):(e="center"===n?r/2:"right"===n?0:"left"===n?r:o.x<a.x?(n="right",0):(n="left",r+2*(h.x+c.x)),l/2),t=t.subtract(new _(e,i,!0)).add(h).add(c),s.classList.remove("leaflet-tooltip-right","leaflet-tooltip-left","leaflet-tooltip-top","leaflet-tooltip-bottom"),s.classList.add("leaflet-tooltip-"+n),R(s,t)},_updatePosition(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity(t){this.options.opacity=t,this._container&&(this._container.style.opacity=t)},_animateZoom(t){t=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),this._setPosition(t)},_getAnchor(){return new _(this._source?._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}));P.include({openTooltip(t,e,i){return this._initOverlay(ec,t,e,i).openOn(this),this},closeTooltip(t){return t.close(),this}}),tY.include({bindTooltip(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(ec,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions(t){var e;!t&&this._tooltipHandlersAdded||(e={remove:this.closeTooltip,move:this._moveTooltip},this._tooltip.options.permanent?e.add=this._openTooltip:(e.pointerover=this._openTooltip,e.pointerout=this.closeTooltip,e.click=this._openTooltip,this._map?this._addFocusListeners(t):e.add=()=>this._addFocusListeners(t)),this._tooltip.options.sticky&&(e.pointermove=this._moveTooltip),this[t?"off":"on"](e),this._tooltipHandlersAdded=!t)},openTooltip(t){return this._tooltip&&(this instanceof tG||(this._tooltip._source=this),this._tooltip._prepareOpen(t))&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this)),this},closeTooltip(){if(this._tooltip)return this._tooltip.close()},toggleTooltip(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen(){return this._tooltip.isOpen()},setTooltipContent(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip(){return this._tooltip},_addFocusListeners(t){this.getElement?this._addFocusListenersOnLayer(this,t):this.eachLayer&&this.eachLayer(e=>this._addFocusListenersOnLayer(e,t),this)},_addFocusListenersOnLayer(t,e){var i,n="function"==typeof t.getElement&&t.getElement();n&&(i=e?"off":"on",e||(n._leaflet_focus_handler&&td(n,"focus",n._leaflet_focus_handler,this),n._leaflet_focus_handler=()=>{this._tooltip&&(this._tooltip._source=t,this.openTooltip())}),n._leaflet_focus_handler&&tS[i](n,"focus",n._leaflet_focus_handler,this),tS[i](n,"blur",this.closeTooltip,this),e)&&delete n._leaflet_focus_handler},_setAriaDescribedByOnLayer(t){(t="function"==typeof t.getElement&&t.getElement())&&t.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip(t){this._tooltip&&this._map&&(this._map.dragging&&this._map.dragging.moving()?"add"!==t.type||this._moveEndOpensTooltip||(this._moveEndOpensTooltip=!0,this._map.once("moveend",()=>{this._moveEndOpensTooltip=!1,this._openTooltip(t)})):(this._tooltip._source=t.propagatedFrom??t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0)))},_moveTooltip(t){let e=t.latlng,i,n;this._tooltip.options.sticky&&t.originalEvent&&(i=this._map.pointerEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(i),e=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(e)}});var ed=tQ.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon(t){var t=t&&"DIV"===t.tagName?t:document.createElement("div"),e=this.options;return e.html instanceof Element?(t.replaceChildren(),t.appendChild(e.html)):t.innerHTML=!1!==e.html?e.html:"",e.bgPos&&(e=new _(e.bgPos),t.style.backgroundPosition=-e.x+`px ${-e.y}px`),this._setIconStyles(t,"icon"),t},createShadow:()=>null});tQ.Default=tX;let eu=tY.extend({options:{tileSize:256,opacity:1,updateWhenIdle:O.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize(t){d(this,t)},onAdd(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd(t){t._addZoomLimit(this)},onRemove(t){this._removeAllTiles(),this._container.remove(),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0,clearTimeout(this._pruneTimeout)},bringToFront(){return this._map&&(H(this._container),this._setAutoZIndex(Math.max)),this},bringToBack(){return this._map&&(B(this._container),this._setAutoZIndex(Math.min)),this},getContainer(){return this._container},setOpacity(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading(){return this._loading},redraw(){var t;return this._map&&(this._removeAllTiles(),(t=this._clampZoom(this._map.getZoom()))!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()),this},getEvents(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=a(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:()=>document.createElement("div"),getTileSize(){var t=this.options.tileSize;return t instanceof _?t:new _(t,t)},_updateZIndex(){this._container&&null!=this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex(t){var e,i=this.getPane().children;let n=-t(-1/0,1/0);for(e of i){var o=e.style.zIndex;e!==this._container&&o&&(n=t(n,+o))}isFinite(n)&&(this.options.zIndex=n+t(-1,1),this._updateZIndex())},_updateOpacity(){if(this._map){this._container.style.opacity=this.options.opacity;var t,e,i=+new Date;let n=!1,o=!1;
15for(t of Object.values(this._tiles??{}))t.current&&t.loaded&&(e=Math.min(1,(i-t.loaded)/200),(t.el.style.opacity=e)<1?n=!0:(t.active?o=!0:this._onOpaqueTile(t),t.active=!0));o&&!this._noPrune&&this._pruneTiles(),n&&(cancelAnimationFrame(this._fadeFrame),this._fadeFrame=requestAnimationFrame(this._updateOpacity.bind(this)))}},_onOpaqueTile:l,_initContainer(){this._container||(this._container=z("div","leaflet-layer "+(this.options.className??"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var i of Object.keys(this._levels))i=Number(i),this._levels[i].el.children.length||i===t?(this._levels[i].el.style.zIndex=e-Math.abs(t-i),this._onUpdateLevel(i)):(this._levels[i].el.remove(),this._removeTilesAtZoom(i),this._onRemoveLevel(i),delete this._levels[i]);let o=this._levels[t];var n=this._map;return o||((o=this._levels[t]={}).el=z("div","leaflet-tile-container leaflet-zoom-animated",this._container),o.el.style.zIndex=e,o.origin=n.project(n.unproject(n.getPixelOrigin()),t).round(),o.zoom=t,this._setZoomTransform(o,n.getCenter(),n.getZoom()),o.el.offsetWidth,this._onCreateLevel(o)),this._level=o}},_onUpdateLevel:l,_onRemoveLevel:l,_onCreateLevel:l,_pruneTiles(){if(this._map){var t=this._map.getZoom();if(t>this.options.maxZoom||t<this.options.minZoom)this._removeAllTiles();else{for(var e of Object.values(this._tiles))e.retain=e.current;for(var i of Object.values(this._tiles))i.current&&!i.active&&(i=i.coords,this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2));for(var[n,o]of Object.entries(this._tiles))o.retain||this._removeTile(n)}}},_removeTilesAtZoom(t){for(var[e,i]of Object.entries(this._tiles))i.coords.z===t&&this._removeTile(e)},_removeAllTiles(){for(var t of Object.keys(this._tiles))this._removeTile(t)},_invalidateAll(){for(var t of Object.keys(this._levels))this._levels[t].el.remove(),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent(t,e,i,n){var t=Math.floor(t/2),e=Math.floor(e/2),i=i-1,o=new _(+t,+e),o=(o.z=i,this._tileCoordsToKey(o)),o=this._tiles[o];return o?.active?o.retain=!0:(o?.loaded&&(o.retain=!0),n<i&&this._retainParent(t,e,i,n))},_retainChildren(t,e,i,n){for(let s=2*t;s<2*t+2;s++)for(let t=2*e;t<2*e+2;t++){var o=new _(s,t),o=(o.z=i+1,this._tileCoordsToKey(o)),o=this._tiles[o];o?.active?o.retain=!0:(o?.loaded&&(o.retain=!0),i+1<n&&this._retainChildren(s,t,i+1,n))}},_resetView(t){t=t&&(t.pinch||t.flyTo),this._setView(this._map.getCenter(),this._map.getZoom(),t,t)},_animateZoom(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView(t,e,i,n){let o=Math.round(e);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var s=this.options.updateWhenZooming&&o!==this._tileZoom;n&&!s||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),i||this._pruneTiles(),this._noPrune=!!i),this._setZoomTransforms(t,e)},_setZoomTransforms(t,e){for(var i of Object.values(this._levels))this._setZoomTransform(i,t,e)},_setZoomTransform(t,e,i){var n=this._map.getZoomScale(i,t.zoom),e=t.origin.multiplyBy(n).subtract(this._map._getNewPixelOrigin(e,i)).round();j(t.el,e,n)},_resetGrid(){var t=this._map,e=t.options.crs,i=this._tileSize=this.getTileSize(),n=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],n).x/i.x),Math.ceil(t.project([0,e.wrapLng[1]],n).x/i.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],n).y/i.x),Math.ceil(t.project([e.wrapLat[1],0],n).y/i.y)]},_onMoveEnd(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds(t){var e=this._map,i=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(i,this._tileZoom),t=e.project(t,this._tileZoom).floor(),e=e.getSize().divideBy(2*i);return new y(t.subtract(e),t.add(e))},_update(t){var e=this._map;if(e){var i=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){let e=this._getTiledPixelBounds(t),h=this._pxBoundsToTileRange(e),c=h.getCenter(),d=[],u=this.options.keepBuffer,p=new y(h.getBottomLeft().subtract([u,-u]),h.getTopRight().add([u,-u]));if(!(isFinite(h.min.x)&&isFinite(h.min.y)&&isFinite(h.max.x)&&isFinite(h.max.y)))throw Error("Attempted to load an infinite number of tiles");for(var n of Object.values(this._tiles)){var o=n.coords;o.z===this._tileZoom&&p.contains(new _(o.x,o.y))||(n.current=!1)}
15if(1<Math.abs(i-this._tileZoom))this._setView(t,i);else{for(let t=h.min.y;t<=h.max.y;t++)for(let e=h.min.x;e<=h.max.x;e++){var s,a=new _(e,t);a.z=this._tileZoom,this._isValidTile(a)&&((s=this._tiles[this._tileCoordsToKey(a)])?s.current=!0:d.push(a))}if(d.sort((t,e)=>t.distanceTo(c)-e.distanceTo(c)),0!==d.length){this._loading||(this._loading=!0,this.fire("loading"));var r,l=document.createDocumentFragment();for(r of d)this._addTile(r,l);this._level.el.appendChild(l)}}}}},_isValidTile(t){var e=this._map.options.crs;if(!e.infinite){var i=this._globalTileRange;if(!e.wrapLng&&(t.x<i.min.x||t.x>i.max.x)||!e.wrapLat&&(t.y<i.min.y||t.y>i.max.y))return!1}return!this.options.bounds||(e=this._tileCoordsToBounds(t),new b(this.options.bounds).overlaps(e))},_keyToBounds(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe(t){var e=this._map,i=this.getTileSize(),n=t.scaleBy(i),i=n.add(i);return[e.unproject(n,t.z),e.unproject(i,t.z)]},_tileCoordsToBounds(t){t=this._tileCoordsToNwSe(t);let e=new b(t[0],t[1]);return this.options.noWrap?e:this._map.wrapLatLngBounds(e)},_tileCoordsToKey:t=>t.x+`:${t.y}:`+t.z,_keyToTileCoords(t){var t=t.split(":"),e=new _(+t[0],+t[1]);return e.z=+t[2],e},_removeTile(t){var e=this._tiles[t];e&&(e.el.remove(),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile(t){t.classList.add("leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=l,t.onpointermove=l},_addTile(t,e){var i=this._getTilePos(t),n=this._tileCoordsToKey(t),o=this.createTile(this._wrapCoords(t),this._tileReady.bind(this,t));this._initTile(o),this.createTile.length<2&&requestAnimationFrame(this._tileReady.bind(this,t,null,o)),R(o,i),this._tiles[n]={el:o,coords:t,current:!0},e.appendChild(o),this.fire("tileloadstart",{tile:o,coords:t})},_tileReady(t,e,i){e&&this.fire("tileerror",{error:e,tile:i,coords:t});var n=this._tileCoordsToKey(t);(i=this._tiles[n])&&(i.loaded=+new Date,this._map._fadeAnimated?(i.el.style.opacity=0,cancelAnimationFrame(this._fadeFrame),this._fadeFrame=requestAnimationFrame(this._updateOpacity.bind(this))):(i.active=!0,this._pruneTiles()),e||(i.el.classList.add("leaflet-tile-loaded"),this.fire("tileload",{tile:i.el,coords:t})),this._noTilesToLoad())&&(this._loading=!1,this.fire("load"),this._map._fadeAnimated?this._pruneTimeout=setTimeout(this._pruneTiles.bind(this),250):requestAnimationFrame(this._pruneTiles.bind(this)))},_getTilePos(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords(t){var e=new _(this._wrapX?r(t.x,this._wrapX):t.x,this._wrapY?r(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange(t){var e=this.getTileSize();return new y(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad(){return Object.values(this._tiles).every(t=>t.loaded)}}),ep=eu.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize(t,e){if(this._url=t,null===(e=d(this,e)).attribution&&URL.canParse(t)){let i=new URL(t).hostname;["tile.openstreetmap.org","tile.osm.org"].some(t=>i.endsWith(t))&&(e.attribution='© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors')}e.detectRetina&&O.retina&&0<e.maxZoom?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile(t,e){var i=document.createElement("img");return th(i,"load",this._tileOnLoad.bind(this,e,i)),th(i,"error",this._tileOnError.bind(this,e,i)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(i.referrerPolicy=this.options.referrerPolicy),i.alt="",i.src=this.getTileUrl(t),i},getTileUrl(t){var e={...this.options,r:O.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};return this._map&&!this._map.options.crs.infinite&&(t=this._globalTileRange.max.y-t.y,this.options.tms&&(e.y=t),e["-y"]=t),p(this._url,e)},_tileOnLoad(t,e){t(null,e)},_tileOnError(t,e,i){var n=this.options.errorTileUrl;n&&e.getAttribute("src")!==n&&(e.src=n),t(i,e)},_onTileRemove(t){t.tile.onload=null},_getZoomForUrl(){let t=this._tileZoom;var e=this.options.maxZoom,i=this.options.zoomReverse,n=this.options.zoomOffset;return(t=i?e-t:t)+n},_getSubdomain(t){return t=Math.abs(t.x+t.y)%this.options.subdomains.length,this.options.subdomains[t]},_abortLoading(){let t,e;
15for(t of Object.keys(this._tiles)){var i;this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=l,e.onerror=l,e.complete||(e.src=f,i=this._tiles[t].coords,e.remove(),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:i})))}},_removeTile(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",f),eu.prototype._removeTile.call(this,t)},_tileReady(t,e,i){if(this._map&&(!i||i.getAttribute("src")!==f))return eu.prototype._tileReady.call(this,t,e,i)},_clampZoom(t){return Math.round(eu.prototype._clampZoom.call(this,t))}});var ef=ep.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize(t,e){this._url=t;var i,n={...this.defaultWmsParams};for(i of Object.keys(e))i in this.options||(n[i]=e[i]);var t=(e=d(this,e)).detectRetina&&O.retina?2:1,o=this.getTileSize();n.width=o.x*t,n.height=o.y*t,this.wmsParams=n},onAdd(t){this._crs=this.options.crs??t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=1.3<=this._wmsVersion?"crs":"srs";this.wmsParams[e]=this._crs.code,ep.prototype.onAdd.call(this,t)},getTileUrl(t){var e,i,n=this._tileCoordsToNwSe(t),o=this._crs,o=new y(o.project(n[0]),o.project(n[1])),n=o.min,o=o.max,n=(1.3<=this._wmsVersion&&this._crs===tV?[n.y,n.x,o.y,o.x]:[n.x,n.y,o.x,o.y]).join(","),s=new URL(ep.prototype.getTileUrl.call(this,t));for([e,i]of Object.entries({...this.wmsParams,bbox:n}))s.searchParams.append(this.options.uppercase?e.toUpperCase():e,i);return s.toString()},setParams(t,e){return Object.assign(this.wmsParams,t),e||this.redraw(),this}});ep.WMS=ef;let em=es.extend({initialize(t){d(this,{...t,continuous:!1}),s(this),this._layers??={}},onAdd(t){es.prototype.onAdd.call(this,t),this.on("update",this._updatePaths,this)},onRemove(){es.prototype.onRemove.call(this),this.off("update",this._updatePaths,this)},_onZoomEnd(){for(var t of Object.values(this._layers))t._project()},_updatePaths(){for(var t of Object.values(this._layers))t._update()},_onViewReset(){for(var t of Object.values(this._layers))t._reset()},_onSettled(){this._update()},_update:l}),eg=em.extend({options:{tolerance:0},getEvents(){var t=em.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset(){this._postponeUpdatePaths=!0},onAdd(t){em.prototype.onAdd.call(this,t),this._draw()},onRemove(){em.prototype.onRemove.call(this),clearTimeout(this._pointerHoverThrottleTimeout)}
15,_initContainer(){var t=this._container=document.createElement("canvas");th(t,"pointermove",this._onPointerMove,this),th(t,"click dblclick pointerdown pointerup contextmenu",this._onClick,this),th(t,"pointerout",this._handlePointerOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer(){cancelAnimationFrame(this._redrawRequest),this._redrawRequest=null,delete this._ctx,em.prototype._destroyContainer.call(this)},_resizeContainer(){var t=em.prototype._resizeContainer.call(this),e=this._ctxScale=window.devicePixelRatio;this._container.width=e*t.x,this._container.height=e*t.y},_updatePaths(){if(!this._postponeUpdatePaths){for(var t of(this._redrawBounds=null,Object.values(this._layers)))t._update();this._redraw()}},_update(){var t,e;this._map._animatingZoom&&this._bounds||(t=this._bounds,e=this._ctxScale,this._ctx.setTransform(e,0,0,e,-t.min.x*e,-t.min.y*e),this.fire("update"))},_reset(){em.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath(t){this._updateDashArray(t),t=(this._layers[s(t)]=t)._order={layer:t,prev:this._drawLast,next:null},this._drawLast&&(this._drawLast.next=t),this._drawLast=t,this._drawFirst??=this._drawLast},_addPath(t){this._requestRedraw(t)},_removePath(t){var e=t._order,i=e.next,e=e.prev;i?i.prev=e:this._drawLast=e,e?e.next=i:this._drawFirst=i,delete t._order,delete this._layers[s(t)],this._requestRedraw(t)},_updatePath(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray(t){var e;"string"==typeof t.options.dashArray?(e=t.options.dashArray.split(/[, ]+/),t.options._dashArray=e.map(t=>Number(t)).filter(t=>!isNaN(t))):t.options._dashArray=t.options.dashArray},_requestRedraw(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest??=requestAnimationFrame(this._redraw.bind(this)))},_extendRedrawBounds(t){var e;t._pxBounds&&(e=(t.options.weight??0)+1,this._redrawBounds??=new y,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e])))},_redraw(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear(){var t,e=this._redrawBounds;e?(t=e.getSize(),this._ctx.clearRect(e.min.x,e.min.y,t.x,t.y)):(this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore())},_draw(){var t,e,i=this._redrawBounds;this._ctx.save(),i&&(e=i.getSize(),this._ctx.beginPath(),this._ctx.rect(i.min.x,i.min.y,e.x,e.y),this._ctx.clip()),this._drawing=!0;for(let e=this._drawFirst;e;e=e.next)t=e.layer,(!i||t._pxBounds&&t._pxBounds.intersects(i))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly(t,e){if(this._drawing){let i=t._parts,n=this._ctx;i.length&&(n.beginPath(),i.forEach(t=>{t.forEach((t,e)=>{n[e?"lineTo":"moveTo"](t.x,t.y)}),e&&n.closePath()}),this._fillStroke(n,t))}},_updateCircle(t){var e,i,n,o;this._drawing&&!t._empty()&&(e=t._point,i=this._ctx,n=Math.max(Math.round(t._radius),1),1!=(o=(Math.max(Math.round(t._radiusY),1)||n)/n)&&(i.save(),i.scale(1,o)),i.beginPath(),i.arc(e.x,e.y/o,n,0,2*Math.PI,!1),1!=o&&i.restore(),this._fillStroke(i,t))},_fillStroke(t,e){(e=e.options).fill&&(t.globalAlpha=e.fillOpacity,t.fillStyle=e.fillColor??e.color,t.fill(e.fillRule||"evenodd")),e.stroke&&0!==e.weight&&(t.setLineDash&&(t.lineDashOffset=Number(e.dashOffset??0),t.setLineDash(e._dashArray??[])),t.globalAlpha=e.opacity,t.lineWidth=e.weight,t.strokeStyle=e.color,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.stroke())},_onClick(t){let e,i;var n=this._map.pointerEventToLayerPoint(t);for(let o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(n)&&(("click"===t.type||"preclick"===t.type)&&this._map._draggableMoved(e)||(i=e));this._fireEvent(!!i&&[i],t)},_onPointerMove(t){var e;!this._map||this._map.dragging.moving()||this._map._animatingZoom||(e=this._map.pointerEventToLayerPoint(t),this._handlePointerHover(t,e))},_handlePointerOut(t){var e=this._hoveredLayer;e&&(this._container.classList.remove("leaflet-interactive"),this._fireEvent([e],t,"pointerout"),this._hoveredLayer=null,this._pointerHoverThrottled=!1)},_handlePointerHover(t,e){if(!this._pointerHoverThrottled){let i,n;for(let t=this._drawFirst;t;t=t.next)(i=t.layer).options.interactive&&i._containsPoint(e)&&(n=i);n!==this._hoveredLayer&&(this._handlePointerOut(t),n)&&(this._container.classList.add("leaflet-interactive"),this._fireEvent([n],t,"pointerover"),this._hoveredLayer=n),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._pointerHoverThrottled=!0,this._pointerHoverThrottleTimeout=setTimeout(()=>{this._pointerHoverThrottled=!1},32)}},_fireEvent(t,e,i){this._map._fireDOMEvent(e,i||e.type,t)},_bringToFront(t){var e,i,n=t._order;n&&(e=n.next,i=n.prev,e)&&((e.prev=i)?i.next=e:e&&(this._drawFirst=e),n.prev=this._drawLast,(this._drawLast.next=n).next=null,this._drawLast=n,this._requestRedraw(t))},_bringToBack(t){var e,i,n=t._order;n&&(e=n.next,i=n.prev)&&((i.next=e)?e.prev=i:i&&(this._drawLast=i),n.prev=null,n.next=this._drawFirst,this._drawFirst.prev=n,this._drawFirst=n,this._requestRedraw(t))}});function ev(t,e){return t.flatMap(t=>[...t.map((t,e)=>(e?"L":"M")+t.x+" "+t.y),e?"z":""]).join("")||"M0 0"}let e_=function(t){return document.createElementNS("http://www.w3.org/2000/svg",t)},ey=em.extend({_initContainer(){this._container=e_("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=e_("g"),this._container.appendChild(this._rootGroup)},_destroyContainer(){em.prototype._destroyContainer.call(this),delete this._rootGroup,delete this._svgSize},_resizeContainer(){var t=em.prototype._resizeContainer.call(this);this._svgSize&&this._svgSize.equals(t)||(this._svgSize=t,this._container.setAttribute("width",t.x),this._container.setAttribute("height",t.y))},_update(){var t,e;this._map._animatingZoom&&this._bounds||(e=(t=this._bounds).getSize(),this._container.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update"))},_initPath(t){var e=t._path=e_("path");t.options.className&&e.classList.add(...c(t.options.className)),t.options.interactive&&e.classList.add("leaflet-interactive"),this._updateStyle(t),this._layers[s(t)]=t},_addPath(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath(t){t._path.remove(),t.removeInteractiveTarget(t._path),delete this._layers[s(t)]},_updatePath(t){t._project(),t._update()},_updateStyle(t){var e=t._path,t=t.options;e&&(t.stroke?(e.setAttribute("stroke",t.color),e.setAttribute("stroke-opacity",t.opacity),e.setAttribute("stroke-width",t.weight),e.setAttribute("stroke-linecap",t.lineCap),e.setAttribute("stroke-linejoin",t.lineJoin),t.dashArray?e.setAttribute("stroke-dasharray",t.dashArray):e.removeAttribute("stroke-dasharray"),t.dashOffset?e.setAttribute("stroke-dashoffset",t.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),t.fill?(e.setAttribute("fill",t.fillColor||t.color),e.setAttribute("fill-opacity",t.fillOpacity),e.setAttribute("fill-rule",t.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly(t,e){this._setPath(t,ev(t._parts,e))},_updateCircle(t){var e=t._point,i=Math.max(Math.round(t._radius),1),n=`a${i},${Math.max(Math.round(t._radiusY),1)||i} 0 1,0 `,e=t._empty()?"M0 0":`M${e.x-i},${e.y}${n}${2*i},0 ${n}${-(2*i)},0 `;this._setPath(t,e)},_setPath(t,e){t._path.setAttribute("d",e)},_bringToFront(t){H(t._path)},_bringToBack(t){B(t._path)}});P.include({getRenderer(t){let e=t.options.renderer??this._getPaneRenderer(t.options.pane)??this.options.renderer??this._renderer;return e=e||(this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer(t){if("overlayPane"!==t&&void 0!==t){let e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e}},_createRenderer(t){return this.options.preferCanvas&&new eg(t)||new ey(t)}});var ef=t5.extend({initialize(t,e){t5.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:t=>
15[(t=new b(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}),eb=(ey.create=e_,ey.pointsToPath=ev,t9.geometryToLayer=t4,t9.coordsToLatLng=t8,t9.coordsToLatLngs=t7,t9.latLngToCoords=et,t9.latLngsToCoords=ee,t9.getFeature=ei,t9.asFeature=en,P.mergeOptions({boxZoom:!0}),A.extend({initialize(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks(){th(this._container,"pointerdown",this._onPointerDown,this)},removeHooks(){td(this._container,"pointerdown",this._onPointerDown,this)},moved(){return this._moved},_destroy(){this._pane.remove(),delete this._pane},_resetState(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onPointerDown(t){if(!t.shiftKey||0!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),U(),K(),this._startPoint=this._map.pointerEventToContainerPoint(t),th(document,{contextmenu:tb,pointermove:this._onPointerMove,pointerup:this._onPointerUp,keydown:this._onKeyDown},this)},_onPointerMove(t){this._moved||(this._moved=!0,this._box=z("div","leaflet-zoom-box",this._container),this._container.classList.add("leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.pointerEventToContainerPoint(t);var t=new y(this._point,this._startPoint),e=t.getSize();R(this._box,t.min),this._box.style.width=e.x+"px",this._box.style.height=e.y+"px"},_finish(){this._moved&&(this._box.remove(),this._container.classList.remove("leaflet-crosshair")),Y(),G(),td(document,{contextmenu:tb,pointermove:this._onPointerMove,pointerup:this._onPointerUp,keydown:this._onKeyDown},this)},_onPointerUp(t){0===t.button&&(this._finish(),this._moved)&&(this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(this._resetState.bind(this),0),t=new b(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point)),this._map.fitBounds(t).fire("boxzoomend",{boxZoomBounds:t}))},_onKeyDown(t){"Escape"===t.code&&(this._finish(),this._clearDeferredResetState(),this._resetState())}})),ew=(P.addInitHook("addHandler","boxZoom",eb),P.mergeOptions({doubleClickZoom:!0}),A.extend({addHooks(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick(t){var e=this._map,i=e.getZoom(),n=e.options.zoomDelta,i=t.originalEvent.shiftKey?i-n:i+n;"center"===e.options.doubleClickZoom?e.setZoom(i):e.setZoomAround(t.containerPoint,i)}})),ex=(P.addInitHook("addHandler","doubleClickZoom",ew),P.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0}),A.extend({addHooks(){var t;this._draggable||(t=this._map,this._draggable=new tM(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))),this._map._container.classList.add("leaflet-grab","leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks(){this._map._container.classList.remove("leaflet-grab","leaflet-touch-drag"),this._draggable.disable()},moved(){return this._draggable?._moved},moving(){return this._draggable?._moving},_onDragStart(){var t,e=this._map;e._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity?(t=new b(this._map.options.maxBounds),this._offsetLimit=new y(this._map.latLngToContainerPoint(t.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(t.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))):this._offsetLimit=null,e.fire("movestart").fire("dragstart"),e.options.inertia&&(this._positions=[],this._times=[])},_onDrag(t){var e,i;this._map.options.inertia&&(e=this._lastTime=+new Date,i=this._lastPos=this._draggable._absPos||this._draggable._newPos,this._positions.push(i),this._times.push(e),this._prunePositions(e)),this._map.fire("move",t).fire("drag",t)},_prunePositions(t){for(;1<this._positions.length&&50<t-this._times[0];)this._positions.shift(),this._times.shift()},_onZoomEnd(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit(){var t,e;this._viscosity&&this._offsetLimit&&(t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit,t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t))},_onPreDragWrap(){var t=this._worldWidth,e=Math.round(t/2),i=this._initialWorldOffset,n=this._draggable._newPos.x,o=(n-e+i)%t+e-i,n=(n+e+i)%t-e-i,t=Math.abs(o+i)<Math.abs(n+i)?o:n;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=t},_onDragEnd(t){let e=this._map,i=e.options,n=!i.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),n)e.fire("moveend");else{this._prunePositions(+new Date);let t=this._lastPos.subtract(this._positions[0]),n=(this._lastTime-this._times[0])/1e3,o=i.easeLinearity,s=t.multiplyBy(o/n),a=s.distanceTo([0,0]),r=Math.min(i.inertiaMaxSpeed,a),l=s.multiplyBy(r/a),h=r/(i.inertiaDeceleration*o),c=l.multiplyBy(-h
15/2).round();c.x||c.y?(c=e._limitOffset(c,e.options.maxBounds),requestAnimationFrame(()=>{e.panBy(c,{duration:h,easeLinearity:o,noMoveStart:!0,animate:!0})})):e.fire("moveend")}}})),eC=(P.addInitHook("addHandler","dragging",ex),P.mergeOptions({keyboard:!0,keyboardPanDelta:80}),A.extend({keyCodes:{left:["ArrowLeft"],right:["ArrowRight"],down:["ArrowDown"],up:["ArrowUp"],zoomIn:["Equal","NumpadAdd","BracketRight"],zoomOut:["Minus","NumpadSubtract","Digit6","Slash"]},initialize(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),t.ariaKeyShortcuts=Object.values(this.keyCodes).flat().join(" "),th(t,{focus:this._onFocus,blur:this._onBlur,pointerdown:this._onPointerDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks(){this._removeHooks(),td(this._map._container,{focus:this._onFocus,blur:this._onBlur,pointerdown:this._onPointerDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onPointerDown(){var t,e,i;this._focused||(i=document.body,t=document.documentElement,e=i.scrollTop||t.scrollTop,i=i.scrollLeft||t.scrollLeft,this._map._container.focus(),window.scrollTo(i,e))},_onFocus(){this._focused=!0,this._map.fire("focus")},_onBlur(){this._focused=!1,this._map.fire("blur")},_setPanDelta(t){var e,i,n,o,s=this._panKeys={},a=this.keyCodes;for(e of a.left)s[e]=[-1*t,0];for(i of a.right)s[i]=[t,0];for(n of a.down)s[n]=[0,t];for(o of a.up)s[o]=[0,-1*t]},_setZoomDelta(t){var e,i,n=this._zoomKeys={},o=this.keyCodes;for(e of o.zoomIn)n[e]=t;for(i of o.zoomOut)n[i]=-t},_addHooks(){th(document,"keydown",this._onKeyDown,this)},_removeHooks(){td(document,"keydown",this._onKeyDown,this)},_onKeyDown(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){let o;var e,i=t.code,n=this._map;if(i in this._panKeys)n._panAnim&&n._panAnim._inProgress||(o=this._panKeys[i],t.shiftKey&&(o=new _(o).multiplyBy(3)),n.options.maxBounds&&(o=n._limitOffset(new _(o),n.options.maxBounds)),n.options.worldCopyJump?(e=n.wrapLatLng(n.unproject(n.project(n.getCenter()).add(o))),n.panTo(e)):n.panBy(o));else if(i in this._zoomKeys)n.setZoom(n.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[i]);else{if("Escape"!==i||!n._popup||!n._popup.options.closeOnEscapeKey)return;n.closePopup()}tb(t)}}})),eT=(P.addInitHook("addHandler","keyboard",eC),P.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60}),A.extend({addHooks(){th(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks(){td(this._map._container,"wheel",this._onWheelScroll,this),clearTimeout(this._timer)},_onWheelScroll(t){var e=tT(t),i=this._map.options.wheelDebounceTime,e=(this._delta+=e,this._lastMousePos=this._map.pointerEventToContainerPoint(t),this._startTime||(this._startTime=+new Date),Math.max(i-(+new Date-this._startTime),0));clearTimeout(this._timer),this._timer=setTimeout(this._performZoom.bind(this),e),tb(t)},_performZoom(){var t=this._map,e=t.getZoom(),i=this._map.options.zoomSnap??0,n=(t._stop(),this._delta/(4*this._map.options.wheelPxPerZoomLevel)),n=4*Math.log(2/(1+Math.exp(-Math.abs(n))))/Math.LN2,i=i?Math.ceil(n/i)*i:n,n=t._limitZoom(e+(0<this._delta?i:-i))-e;this._delta=0,this._startTime=null,n&&("center"===t.options.scrollWheelZoom?t.setZoom(e+n):t.setZoomAround(this._lastMousePos,e+n))}}));P.addInitHook("addHandler","scrollWheelZoom",eT),P.mergeOptions({tapHold:O.touchNative&&O.safari&&O.mobile,tapTolerance:15});var ek=A.extend({addHooks(){th(this._map._container,"pointerdown",this._onDown,this)},removeHooks(){td(this._map._container,"pointerdown",this._onDown,this),clearTimeout(this._holdTimeout)},_onDown(t){clearTimeout(this._holdTimeout),1===tl().length&&"mouse"!==t.pointerType&&(this._startPos=this._newPos=new _(t.clientX,t.clientY),this._holdTimeout=setTimeout(()=>{this._cancel(),this._isTapValid()&&(th(document,"pointerup",ty),th(document,"pointerup pointercancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",t))},600),th(document,"pointerup pointercancel contextmenu",this._cancel,this),th(document,"pointermove",this._onMove,this))},_cancelClickPrevent:function t(){td(document,"pointerup",ty),td(document,"pointerup pointercancel",t)},_cancel(){clearTimeout(this._holdTimeout),td(document,"pointerup pointercancel contextmenu",this._cancel,this),td(document,"pointermove",this._onMove,this)},_onMove(t){this._newPos=new _(t.clientX,t.clientY)},_isTapValid(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent(t,e){(t=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY}))._simulated=!0,e.target.dispatchEvent(t)}}),eS=(P.addInitHook("addHandler","tapHold",ek),P.mergeOptions({pinchZoom:O.touch,bounceAtZoomLimits:!0}),A.extend({addHooks(){this._map._container.classList.add("leaflet-touch-zoom"),th(this._map._container,"pointerdown",this._onPointerStart,this)},removeHooks(){this._map._container.classList.remove("leaflet-touch-zoom"),td(this._map._container,"pointerdown",this._onPointerStart,this)},_onPointerStart(t){var e,i=this._map,n=tl();2!==n.length||i._animatingZoom||this._zooming||(e=i.pointerEventToContainerPoint(n[0]),n=i.pointerEventToContainerPoint(n[1]),this._centerPoint=i.getSize()._divideBy(2),this._startLatLng=i.containerPointToLatLng(this._centerPoint),"center"!==i.options.pinchZoom&&(this._pinchStartLatLng=i.containerPointToLatLng(e.add(n)._divideBy(2))),this._startDist=e.distanceTo(n),this._startZoom=i.getZoom(),this._moved=!1,this._zooming=!0,i._stop(),th(document,"pointermove",this._onPointerMove,this),th(document,"pointerup pointercancel",this._onPointerEnd,this),ty(t))},_onPointerMove(t){var e=tl();if(2===e.length&&this._zooming){var i=this._map,n=i.pointerEventToContainerPoint(e[0]),e=i.pointerEventToContainerPoint(e[1]),o=n.distanceTo(e)/this._startDist;if(this._zoom=i.getScaleZoom(o,this._startZoom),!i.options.bounceAtZoomLimits&&(this._zoom<i.getMinZoom()&&o<1||this._zoom>i.getMaxZoom()&&1<o)&&(this._zoom=i._limitZoom(this._zoom)),"center"===i.options.pinchZoom){if(this._center=this._startLatLng,1==o)return}else{if(n=n._add(e)._divideBy(2)._subtract(this._centerPoint),1==o&&0===n.x&&0===n.y)return;this._center=i.unproject(i.project(this._pinchStartLatLng,this._zoom).subtract(n),this._zoom)}this._moved||(i._moveStart(!0,!1),this._moved=!0),cancelAnimationFrame(this._animRequest),e=i._move.bind(i,this._center,this._zoom,{pinch:!0,round:!1},void 0),this._animRequest=requestAnimationFrame(e.bind(this)),ty(t)}},_onPointerEnd(){this._moved&&this._zooming?(this._zooming=!1,cancelAnimationFrame(this._animRequest),td(document,"pointermove",this._onPointerMove,this),td(document,"pointerup pointercancel",this._onPointerEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}})),eb=(P.addInitHook("addHandler","pinchZoom",eS),P.addInitHook(function(){this.touchZoom=this.pinchZoom,void 0!==this.options.touchZoom&&(console.warn("Map: touchZoom option is deprecated and will be removed in future versions. Use pinchZoom instead."),this.options.pinchZoom=this.options.touchZoom,delete this.options.touchZoom),this.options.pinchZoom?this.pinchZoom.enable():this.pinchZoom.disable()}),P.BoxZoom=eb,P.DoubleClickZoom=ew,P.Drag=ex,P.Keyboard=eC,P.ScrollWheelZoom=eT,P.TapHold=ek,P.PinchZoom=eS,P.TouchZoom=eS,"2.0.0-alpha"),ew={__proto__:null,BlanketOverlay:es,Bounds:y,Browser:O,CRS:x,Canvas:eg,Circle:t2,CircleMarker:M,Class:g,Control:tP,DivIcon:ed,DivOverlay:el,DomEvent:tS,DomUtil:te,Draggable:tM,Evented:v,FeatureGroup:tG,GeoJSON:t9,GridLayer:eu,Handler:A,Icon:tQ,ImageOverlay:eo,LatLng:w,LatLngBounds:b,Layer:tY,LayerGroup:tK,LineUtil:I,Map:P,Marker:t0,Path:t1,Point:_,PolyUtil:E,Polygon:t5,Polyline:t3,Popup:eh,PosAnimation:tE,Projection:tq,Rectangle:ef,Renderer:em,SVG:ey,SVGOverlay:er,TileLayer:ep,Tooltip:ec,Transformation:k,Util:m,VideoOverlay:ea,version:eb};let eE=eP().L;
15function eP(){if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw Error("Unable to locate global object.")}eP().L=ew,eP().L.noConflict=function(){return eP().L=eE,this},t.BlanketOverlay=es,t.Bounds=y,t.Browser=O,t.CRS=x,t.Canvas=eg,t.Circle=t2,t.CircleMarker=M,t.Class=g,t.Control=tP,t.DivIcon=ed,t.DivOverlay=el,t.DomEvent=tS,t.DomUtil=te,t.Draggable=tM,t.Evented=v,t.FeatureGroup=tG,t.GeoJSON=t9,t.GridLayer=eu,t.Handler=A,t.Icon=tQ,t.ImageOverlay=eo,t.LatLng=w,t.LatLngBounds=b,t.Layer=tY,t.LayerGroup=tK,t.LineUtil=I,t.Map=P,t.Marker=t0,t.Path=t1,t.Point=_,t.PolyUtil=E,t.Polygon=t5,t.Polyline=t3,t.Popup=eh,t.PosAnimation=tE,t.Projection=tq,t.Rectangle=ef,t.Renderer=em,t.SVG=ey,t.SVGOverlay=er,t.TileLayer=ep,t.Tooltip=ec,t.Transformation=k,t.Util=m,t.VideoOverlay=ea,t.default=ew,t.version=eb}),function(t){"use strict";var e=function(){this.confData={},this.selfCount={},this.mapInstance={},this.mapMarkers={},this.activeMap=null,t(".js-mapComponent").length&&this.initialize()};e.prototype.getAddressForPostcode=function(t,e,i){for(var n="",o=this.confData[t].locations,s=0;s<o.length;s++)if(-1!==o[s].address.indexOf(e)){if(null!==i){if(-1!==o[s].address.indexOf(i)){n=o[s].address;break}}else{n=o[s].address;break}}return n},e.prototype.initialize=function(){var e=this;"undefined"!=typeof L&&L&&(!L.map&&L.Map&&(L.map=(t,e)=>new L.Map(t,e)),!L.tileLayer&&L.TileLayer&&(L.tileLayer=(t,e)=>new L.TileLayer(t,e)),!L.marker&&L.Marker&&(L.marker=(t,e)=>new L.Marker(t,e)),!L.polygon&&L.Polygon&&(L.polygon=(t,e)=>new L.Polygon(t,e)),!L.polyline&&L.Polyline&&(L.polyline=(t,e)=>new L.Polyline(t,e)),!L.circle&&L.Circle&&(L.circle=(t,e,i)=>new L.Circle(t,e,i)),!L.circleMarker&&L.CircleMarker&&(L.circleMarker=(t,e)=>new L.CircleMarker(t,e)),!L.rectangle&&L.Rectangle&&(L.rectangle=(t,e)=>new L.Rectangle(t,e)),!L.featureGroup&&L.FeatureGroup&&(L.featureGroup=t=>new L.FeatureGroup(t)),!L.layerGroup&&L.LayerGroup&&(L.layerGroup=t=>new L.LayerGroup(t)),!L.geoJSON&&L.GeoJSON&&(L.geoJSON=(t,e)=>new L.GeoJSON(t,e)),!L.imageOverlay&&L.ImageOverlay&&(L.imageOverlay=(t,e,i)=>new L.ImageOverlay(t,e,i)),!L.videoOverlay&&L.VideoOverlay&&(L.videoOverlay=(t,e,i)=>new L.VideoOverlay(t,e,i)),!L.svgOverlay&&L.SVGOverlay&&(L.svgOverlay=(t,e,i)=>new L.SVGOverlay(t,e,i)),!L.icon&&L.Icon&&(L.icon=t=>new L.Icon(t)),!L.divIcon&&L.DivIcon&&(L.divIcon=t=>new L.DivIcon(t)),L.control=L.control||{},!L.control.zoom&&L.Control?.Zoom&&(L.control.zoom=t=>new L.Control.Zoom(t)),!L.control.layers&&L.Control?.Layers&&(L.control.layers=(t,e,i)=>new L.Control.Layers(t,e,i)),!L.control.scale&&L.Control?.Scale&&(L.control.scale=t=>new L.Control.Scale(t)),!L.control.attribution&&L.Control?.Attribution&&(L.control.attribution=t=>new L.Control.Attribution(t)),!L.popup&&L.Popup&&(L.popup=(t,e)=>new L.Popup(t,e)),!L.tooltip&&L.Tooltip&&(L.tooltip=(t,e)=>new L.Tooltip(t,e)),!L.latLng&&L.LatLng&&(L.latLng=(t,e)=>Array.isArray(t)?new L.LatLng(t[0],t[1],t[2]):new L.LatLng(t,e)),!L.latLngBounds&&L.LatLngBounds&&(L.latLngBounds=(t,e)=>Array.isArray(t)?new L.LatLngBounds(t[0],t[1]??t[0]):new L.LatLngBounds(t,e)),!L.point&&L.Point&&(L.point=(t,e,i)=>Array.isArray(t)?new L.Point(t[0],t[1],e):new L.Point(t,e,i)),!L.bounds&&L.Bounds&&(L.bounds=(t,e)=>Array.isArray(t)?new L.Bounds(t[0],t[1]??t[0]):new L.Bounds(t,e)));var i=t(".js-mapComponent");window.mapPopupTriggered=!1,i.each(function(){var i=t(this).closest("[data-component-name]").data("componentName");e.mapInstance[i]=L.map(this),L.tileLayer("//smbmaps.ibsrv.net/world_tiles/{z}/{x}/{y}.png",{attribution:'Map data provided by <a href="http://www.internetbrands.com/">Internet Brands</a>',maxZoom:18}).addTo(e.mapInstance[i]),e.mapInstance[i].scrollWheelZoom.disable(),e.confData[i]=JSON.parse(t(this).closest("[data-component-name]").find("input[type=hidden]").val()),e.setupMap(e.mapInstance[i],e.confData[i]),e.mapSize(this,e.confData[i],i),e.attachEvents(this,e.confData[i],i),e.searchByZipCode(this,e.confData[i],e.mapInstance[i],i,!1);var n=e.confData[i].locations;n.length>1&&!e.confData[i].fitBounds&&(n=n.reverse());for(var o=0;o<n.length;o++)if(2==n[o].cta.buttonStyle&&(n[o].cta.iconHtm='\n<span aria-label="'+n[o].cta.iconClass.replace(/-/g," ")+'">\n<span class="'+n[o].cta.iconClass+' icon" aria-hidden="true"></span>\n</span>\n'),3==n[o].cta.buttonStyle&&(n[o].cta.iconHtm='\n<span class="'+n[o].cta.iconClass+' icon" aria-hidden="true"></span>\n'+n[o].cta.buttonText+"\n"),null!=n[o].latitude&&null!=n[o].longitude){var s=[{lat:n[o].latitude,lon:n[o].longitude,address:{name:n[o].address}}];e.applyData(s,i,this,o)}else e.geolocateLocation(n[o],i,this);var a=e.confData[i].xaxis,r=e.confData[i].yaxis;t(window).width()>768&&(0!=a||0!=r)&&e.mapInstance[i].panBy([a,r])}),t("body").click(function(i){if(t(i.target).hasClass("js-mapComponent")){var n=t(i.target).closest("[data-component-name]").data("c
15omponentName");null!==e.activeMap&&e.mapInstance[e.activeMap].scrollWheelZoom.disable(),e.activeMap=n,e.confData[n].zoomControl&&e.mapInstance[n].scrollWheelZoom.enable()}else null!==e.activeMap&&(e.mapInstance[e.activeMap].scrollWheelZoom.disable(),e.activeMap=null)})},e.prototype.attachEvents=function(e,i,n){var o,s=this;t(window).resize(function(){s.mapSize(e,i,n),clearTimeout(o),o=setTimeout(function(){if(s.mapMarkers[n].length>1&&s.confData[n].fitBounds){var t=L.featureGroup(s.mapMarkers[n]);s.mapCenter(n,t)}},250)})},e.prototype.setupMap=function(e,i){i.zoomControl||(e.boxZoom.disable(),e.doubleClickZoom.disable(),e.keyboard.disable(),e.scrollWheelZoom.disable(),e.tap&&e.tap.disable(),e.touchZoom.disable(),t(".leaflet-control-zoom").css("visibility","hidden"))},e.prototype.mapCenter=function(t,e){this.mapInstance[t].fitBounds(e.getBounds().pad(.5)),this.confData[t].alwaysShowInfoWindow&&this.mapMarkers[t][this.mapMarkers[t].length-1].isPopupOpen()&&!window.mapPopupTriggered&&(this.mapMarkers[t][this.mapMarkers[t].length-1].closePopup(),this.mapMarkers[t][this.mapMarkers[t].length-1].openPopup(),window.mapPopupTriggered=!0)},e.prototype.mapSize=function(e,i,n){var o=t(e).parent();if(i.autoFit){this.confData[n].isPle?a=o.find(".map__wrap").outerHeight(!0):s=o.children(".component__title-caption-wrap").outerHeight(!0),o.css("height","100%");var s,a,r=o.height();this.confData[n].isPle||null===s?768>=t(window).width()&&null!==a&&(r-=a):r-=s,t(e).css({height:r}),t(e).trigger("map.resize")}else t(e).css({width:i.width,height:i.height})},e.prototype.geocodeURL="https://nominatim.openstreetmap.org/search?[QUERY]&format=json&polygon=1&addressdetails=1&limit=1",e.prototype.geolocateLocation=function(e,i,n){var o=this,s=this.geocodeURL;s=s.replace("[QUERY]",e.query),t.ajax({url:s,dataType:"jsonp",jsonp:"json_callback",success:function(t){o.applyData(t,i,n)}})},e.prototype.searchByZipCode=function(e,i,n,o,s){var a=this,r=this.geocodeURL;t("#location-zip").submit(function(e){e.preventDefault();var l=t("#location-search").val();if(!l||"Enter your zip code and state"==l){alert("Please enter your current city or ZIP code.");return}r="https://nominatim.openstreetmap.org/search?q="+l+"&format=json",t.ajax({url:r,dataType:"jsonp",jsonp:"json_callback",success:function(t){a.getDistance(t,i,n,o,s)}})})},e.prototype.getDistance=function(e,i,n,o,s){var a=this;if(a.markerTemp,0!==Object.keys(e).length){var r=i.locations,l=e[0].lat,h=e[0].lon,c=new L.Icon({iconUrl:i.assetsPath+"css/images/marker-icon-green.png",shadowUrl:i.assetsPath+"images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]}),d=L.marker([l,h],{icon:c});d.addTo(n),void 0!==a.markerTemp&&(a.markerTemp.removeFrom(n),this.mapMarkers[o].pop(d)),null!=d&&(a.markerTemp=d),this.mapMarkers[o].push(d),n.closePopup();var u=L.featureGroup(this.mapMarkers[o]).addTo(n);n.fitBounds(u.getBounds().pad(.5));for(var p=0;p<r.length;p++)if(null!=r[p].latitude&&null!=r[p].longitude)for(var f=Math.round(621371e-9*L.latLng([r[p].latitude,r[p].longitude]).distanceTo([l,h])),m=t(".gmap-location b"),g=t(".gmap-location .gmap-distance"),v=0;v<m.length;v++)-1!==m[v].innerText.indexOf(r[p].title)&&(t(m[v]).closest(".gmap-location").data("distanceMiles",f),f=f.toLocaleString(),g.show(),g[v].innerHTML=f+" mi");t(".gmap-location-list li").sort(function(e,i){return t(i).data("distanceMiles")<t(e).data("distanceMiles")?1:-1}).appendTo(".gmap-location-list"),s=!0,t(".gmap-location-list li").first().children().trigger("click",[s])}else{for(var m=t(".gmap-location b"),_=t(".map-search__location-distance > b"),g=t(".gmap-location .gmap-distance"),p=0;p<g.length;p++)g.show(),g[p].innerHTML=" -- mi";for(var p=0;p<_.length;p++)_.show(),_[p].innerHTML=" -- mi";for(var p=0;p<m.length;p++)t(m[p]).closest(".gmap-location").data("distanceMiles","--")}},e.prototype.applyData=function(e,i,n,o){var s=this;if(e.length>0){s.selfCount[i]=s.selfCount[i]||0;var a=e[0],r=a.lat,l=a.lon;s.mapInstance[i].setView([r,l],s.confData[i].zoom,{animation:!0}),s.selfCount[i]++;var h=[];h.alt="Map Marker";var c=s.confData[i].assetsPath;if(s.confData[i].iconUrl){var d=s.confData[i].iconUrl,u=new L.Icon({iconUrl:d,shadowUrl:c+"images/marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],shadowSize:[41,41]});h.icon=u}var p=L.marker([r,l],h);
15if(s.confData[i].alwaysShowInfoWindow||s.confData[i].showAddressOnHover){var f=a.display_name||null,m=null;if("postcode"in a.address){var g="house_number"in a.address?a.address.house_number:null;f=""!=(m=s.getAddressForPostcode(i,a.address.postcode,g))?m:f}else a.address.name&&(f=a.address.name);f&&p.bindPopup(f)}if(s.mapMarkers[i]=s.mapMarkers[i]||[],s.mapMarkers[i].push(p),s.confData[i].hue){var v=s.confData[i].hue.stylers,_=(v[0].gama,v[1].lightness,v[2].hue);"none"!==_&&(t(n).css("background-color",_),t("div.leaflet-tile-pane",n).css("opacity","0.9"))}if(s.selfCount[i]>=s.confData[i].locations.length){var y=L.featureGroup(s.mapMarkers[i]).addTo(s.mapInstance[i]);s.mapMarkers[i].length>1&&s.confData[i].fitBounds&&s.mapCenter(i,y),s.confData[i].alwaysShowInfoWindow&&(s.mapMarkers[i][s.mapMarkers[i].length-1].closePopup(),s.mapMarkers[i][s.mapMarkers[i].length-1].openPopup())}}else console.log("No data found.")},t(document).ready(function(){if(window.webManagerMap=new e,t(".map-a").length>0){var i;i=[{selector:".map-search__location-distance p",property:"title",type:"text"},{selector:".map-search__location-address p",property:"address_format",type:"text"},{selector:".map-search__location-phone",property:"phone",type:"text"},{selector:".map-search__location-phone2",property:"phone2",type:"text"},{selector:".map-search__location-fax",property:"fax",type:"text"},{selector:".map-search__location-directions a",property:["cta","buttonText"],type:"text"},{selector:".map-search__location-directions a",property:["cta","linkPage"],type:"href"},{selector:".map-search__email",property:"email",type:"text"}],t("#gmap-location-list").on("click",".gmap-location a",function(e,n){e.preventDefault();var o=t(this).closest("[data-component-name]").data("componentName"),s=window.webManagerMap.confData[o].locations,a=t(this).parent().attr("id"),r=s.find(function(t){return t.ID===a}),l=window.webManagerMap.mapMarkers[o].find(function(t){return t._latlng.lat==r.latitude&&t._latlng.lng==r.longitude});if(void 0===n){let t=window.webManagerMap.mapInstance[o],e=window.webManagerMap.confData[o],i=[r.latitude,r.longitude],n=e.xaxis,s=e.yaxis;function h(){l&&l.openPopup()}n>-140&&(n=-140),t.invalidateSize(),t.stop(),window.innerWidth>768?(t.setView(i,e.zoom,{animate:!1}),t.panBy([n,s],{animate:!0}),t.once("moveend",function(){h()})):(t.setView(i,e.zoom,{animate:!1}),h())}var c=t(this).closest(".gmap-location").data("distanceMiles"),d=t(".map-search__location-distance > b");void 0!==c?(d.show(),c=c.toLocaleString(),d[0].innerHTML=c+" mi"):d[0].innerHTML=" -- mi",i.forEach(function(e,i){var n={},o=e.property;if(".map-search__location-directions a"==e.selector){for(var s="",i=0;i<=3;i++)if(r.cta.buttonStyle==i){switch(r.cta.buttonStyle){case"0":s="cta__link component__link--";break;case"1":s="cta__button component__button--";break;case"2":s="cta__link--icon ";break;case"3":s="cta__button--icon component__button--"}2==r.cta.buttonStyle||3==r.cta.buttonStyle?t(e.selector).html(r.cta.iconHtm):t(e.selector).text(r.cta.buttonText),t(e.selector).removeClass().addClass(s+r.cta.displayStyle),2==r.cta.linkType?t(e.selector).attr("href","#"):1==r.cta.linkType?t(e.selector).attr("href",r.cta.linkUrl):t(e.selector).attr("href",r.cta.linkPage),r.cta.openInNew?t(e.selector).attr("target","_blank"):t(e.selector).attr("target",""),r.cta.openInNew&&1==r.cta.linkType?t(e.selector).attr("rel","noopener"):t(e.selector).attr("rel","")}}else{if("string"==typeof o||o instanceof String)n=r[o];else{var a=r;o.forEach(function(t){a=a[t]}),n=a}if("string"==typeof n||n instanceof String)"text"===e.type?(t(e.selector).text(n),(".map-search__location-phone"==e.selector||".map-search__location-phone2"==e.selector)&&t(e.selector).attr("href","tel:"+n)):"href"===e.type&&t(e.selector).attr("href",n),n.length>0?t(e.selector).show():t(e.selector).hide();else{var l=Object.values(Object.keys(r[o]).map(function(t){return r[o][t]}));t(e.selector).html(l.join("<br>"))}}})})}})}(window.jQuery),function(t){"use strict";var e=function(t,e){this.$el=t,this.$parent=t.closest(".cta"),this.options=e,this.ctaVideo="",this.initColorbox()};e.prototype.initColorbox=function(){this.$parent.find(".lb-class").each(function(){t(this).colorbox(t.extend(e.defaults,t(t(this).attr("href")).data()))}),t(document).bind("cbox_complete",{context:this},this.cboxOpenCallBack),t(document).bind("cbox_closed",{context:this},this.cboxClosedCallBack)},e.prototype.cboxOpenCallBack=function(t){t.data.context.formSizeHandler(t),t.data.context.videoLoadHandler(t)},e.prototype.cboxClosedCallBack=function(e){var i=t.colorbox.element
15().attr("href");t(i+" [data-setup-run]").each(function(){t(this).remove()})},e.prototype.formSizeHandler=function(e){var i=t.colorbox.element().attr("href"),n=t(i).find("form"),o=new MutationObserver(function(e){t.colorbox.resize()}),s=document.querySelector(n.selector);null!=s&&o.observe(s,{attributes:!0})},e.prototype.videoLoadHandler=function(e){var i=t.colorbox.element().attr("href");if(t(i+" [data-setup-run]").length&&(e.data.context.ctaVideo=t(i+" [data-setup-run]")[0].outerHTML,t(i+" [data-setup-run]").remove()),e.data.context.ctaVideo){t(i+" .video").append(t(e.data.context.ctaVideo));var n=t(i+" [data-setup-run]");videojs(n[0],n.data("setupRun"),function(){})}},e.defaults={inline:!0,width:"50%",transition:"fade",returnFocus:!1},t.fn.colorBoxModal=function(i){var n;return arguments,this.each(function(){var o=t(this),s=t.extend({},o.data(),"object"==typeof i&&i);if(o.data("ColorBoxModal",new e(o,s)),void 0!==n)return!1}),n||this},t.fn.colorBoxModal.Constructor=e,t.fn.colorBoxModal.noConflict=function(){return t.fn.colorBoxModal=old,this},t(document).ready(function(){t('[data-control="colorbox-modal"]').colorBoxModal({})})}(window.jQuery),function(t){"use strict";var e=function(e,i){var n=this;return n.$element=t(e),n.options=i,t.extend(n.options,{start:function(e){n.fixVerticalSlideSmoothHeight(e),t(window).resize(function(){n.fixVerticalSlideSmoothHeight(e)})},after:function(t){n.fixVerticalSlideSmoothHeight(t)}}),n.attachEvents(),n.initializeSlider(),n};e.prototype.attachEvents=function(){var e=this;"vertical"===e.options.direction&&t(window).resize(function(){e.fixVerticalSlideHeight()})},e.prototype.initializeSlider=function(){var t=this;t.$bxSlider=t.$element.flexslider(t.options),"vertical"===t.options.direction&&t.fixVerticalSlideHeight(),t.controlsWrap()},e.prototype.fixVerticalSlideHeight=function(){var e=0,i=this.$element.find(".slides");i.children().height("auto").each(function(){e=Math.max(e,t(this).height())}).height(e),i.height(e)},e.prototype.fixVerticalSlideSmoothHeight=function(e){if("vertical"===this.options.direction&&1==this.options.smoothHeight){var i=t(e).find(".flex-active-slide > div").height();t(e).find(".flex-viewport").height(i)}},e.prototype.controlsWrap=function(){var t=this.$element.find(".flex-control-nav"),e=this.$element.find(".flex-direction-nav .flex-prev"),i=this.$element.find(".flex-direction-nav .flex-next");this.$element.append("<div class='controls-wrapper'></div>");var n=this.$element.find(".controls-wrapper");t.length?(n.append(t),e.insertBefore(t),i.insertAfter(t)):n.append(e,i),this.$element.find(".flex-direction-nav").remove(),1==this.$element.find(".slides li:not(.clone)").length&&n.remove()},e.DEFAULTS={easing:null,useCSS:!1};var i=t.fn.LocationSlider;t.fn.LocationSlider=function(i){arguments;var n=t(this);e.DEFAULTS.controlsContainer=t(".flex-control-nav",t(this).parent()),e.DEFAULTS.customDirectionNav=t(".controls-wrapper a",t(this).parent());var o=t.extend({},e.DEFAULTS,n.data(),"object"==typeof i&&i);return new e(this,o)},t.fn.LocationSlider.Constructor=e,t.fn.LocationSlider.noConflict=function(){t.fn.LocationSlider=i},t(window).load(function(){var e=t(".locations.slider .flexslider");e.length&&e.each(function(){t(this).LocationSlider()})})}(window.jQuery),function(t){"use strict";var e,i,n,o,s,a,r,l=!0,h="",c=0,d="",u=null,p="",f=!1,m={resize:1,click:1},g=!0,v=1,_="bodyOffset",y=_,b=!0,w="",x={},C=32,T=null,k=!1,S="[iFrameSizer]",E=S.length,P="",I={max:1,min:1,bodyScroll:1,documentElementScroll:1},M="child",A=!0,D=t.parent,O="*",N=0,z=!1,H=null,B=16,j=1,W="scroll",R=W,F=t,q=function(){J("MessageCallback function not defined")},Z=function(){},V=function(){};function U(e,i,n){"addEventListener"in t?e.addEventListener(i,n,!1):"attachEvent"in t&&e.attachEvent("on"+i,n)}function Y(e,i,n){"removeEventListener"in t?e.removeEventListener(i,n,!1):"detachEvent"in t&&e.detachEvent("on"+i,n)}function K(t){return t.charAt(0).toUpperCase()+t.slice(1)}var G=Date.now||function(){return new Date().getTime()};function Q(t){return S+"["+P+"] "+t}function X(e){k&&"object"==typeof t.console&&console.log(Q(e))}function J(e){"object"==typeof t.console&&console.warn(Q(e))}function tt(t,e){void 0!==e&&""!==e&&"null"!==e&&(document.body.style[t]=e,X("Body "+t+' set to "'+e+'"'))}function te(e){function i(){tv(e.eventName,e.eventType)}var n={add:function(e){U(t,e,i)},remove:function(e){Y(t,e,i)}};e.eventNames&&Array.prototype.map?(e.eventName=e.eventNames[0],e.eventNames.map(n[e.method])):n[e.method](e.eventName),X(K(e.method)+" event listener: "+e.eventType)}function ti(t){te({method:t,eventType:"Animation Start",eventNames:["animationstart","webkitAnimationStart"]}),te({method:t,eventType:"Animation Iteration",eventNames:["animationiteration","webkitAnimationIteration"]}),te({method:t,eventType:"Animation End",eventNames:["animationend","webkitAnimationEnd"]}),te({method:t,eventType:"Input",eventName:"input"}),te({method:t,eventType:"Mouse Up",eventName:"mouseup"}),te({method:t,eventType:"Mouse Down",eventName:"mousedown"}),te({method:t,eventType:"Orientation Change",eventName:"orientationchange"}),te({method:t,eventType:"Print",eventName:["afterprint","beforeprint"]}),te({method:t,eventType:"Ready State Change",eventName:"readystatechange"}),te({method:t,eventType:"Touch Start",eventName:"touchstart"}),te({method:t,eventType:"Touch End",eventName:"touchend"}),te({method:t,eventType:"Touch Cancel",eventName:"touchcancel"}),te({method:t,eventType:"Transition Start",eventNames:["transitionstart","webkitTransitionStart","MSTransitionStart","oTransitionStart","otransitionstart"]}),te({method:t,eventType:"Transition Iteration",eventNames:["transitioniteration","webkitTransitionIteration","MSTransitionIteration","oTransitionIteration","otransitioniteration"]}),te({method:t,eventType:"Transition End",eventNames:["transitionend","webkitTransitionEnd","MSTransitionEnd","oTransitionEnd","otransitionend"]}
15),"child"===M&&te({method:t,eventType:"IFrame Resized",eventName:"resize"})}function tn(t,e,i,n){return e!==t&&(t in i||(J(t+" is not a valid option for "+n+"CalculationMethod."),t=e),X(n+' calculation method set to "'+t+'"')),t}function to(){y=tn(y,_,tf,"height")}function ts(){R=tn(R,W,tm,"width")}function ta(){var e;!0===l?(ti("add"),e=0>C,t.MutationObserver||t.WebKitMutationObserver?e?tl():u=function(){function e(t){function e(t){!1===t.complete&&(X("Attach listeners to "+t.src),t.addEventListener("load",o,!1),t.addEventListener("error",s,!1),r.push(t))}"attributes"===t.type&&"src"===t.attributeName?e(t.target):"childList"===t.type&&Array.prototype.forEach.call(t.target.querySelectorAll("img"),e)}function i(t){X("Remove listeners from "+t.src),t.removeEventListener("load",o,!1),t.removeEventListener("error",s,!1),r.splice(r.indexOf(t),1)}function n(t,e,n){i(t.target),tv(e,n+": "+t.target.src,void 0,void 0)}function o(t){n(t,"imageLoad","Image loaded")}function s(t){n(t,"imageLoadFailed","Image load failed")}var a,r=[],l=t.MutationObserver||t.WebKitMutationObserver,h=(a=document.querySelector("body"),h=new l(function(t){tv("mutationObserver","mutationObserver: "+t[0].target+" "+t[0].type),t.forEach(e)}),X("Create body MutationObserver"),h.observe(a,{attributes:!0,attributeOldValue:!1,characterData:!0,characterDataOldValue:!1,childList:!0,subtree:!0}),h);return{disconnect:function(){"disconnect"in h&&(X("Disconnect body MutationObserver"),h.disconnect(),r.forEach(i))}}}():(X("MutationObserver not supported in this browser!"),tl())):X("Auto Resize disabled")}function tr(){ti("remove"),null!==u&&u.disconnect(),clearInterval(T)}function tl(){0!==C&&(X("setInterval: "+C+"ms"),T=setInterval(function(){tv("interval","setInterval: "+C)},Math.abs(C)))}function th(t,e){var i=0;return e=e||document.body,parseInt(i="defaultView"in document&&"getComputedStyle"in document.defaultView?null!==(i=document.defaultView.getComputedStyle(e,null))?i[t]:0:function(t){if(/^\d+(px)?$/i.test(t))return parseInt(t,10);var i=e.style.left,n=e.runtimeStyle.left;return e.runtimeStyle.left=e.currentStyle.left,e.style.left=t||0,t=e.style.pixelLeft,e.style.left=i,e.runtimeStyle.left=n,t}(e.currentStyle[t]),10)}function tc(t,e){for(var i,n=e.length,o=0,s=0,a=K(t),r=G(),l=0;l<n;l++)(o=e[l].getBoundingClientRect()[t]+th("margin"+a,e[l]))>s&&(s=o);return r=G()-r,X("Parsed "+n+" HTML elements"),X("Element position calculated in "+r+"ms"),(i=r)>B/2&&X("Event throttle increased to "+(B=2*i)+"ms"),s}function td(t){return[t.bodyOffset(),t.bodyScroll(),t.documentElementOffset(),t.documentElementScroll()]}function tu(t,e){var i=document.querySelectorAll("["+e+"]");return 0===i.length?(J("No tagged elements ("+e+") found on page"),v):tc(t,i)}function tp(){return document.querySelectorAll("body *")}var tf={bodyOffset:function(){return document.body.offsetHeight+th("marginTop")+th("marginBottom")},offset:function(){return tf.bodyOffset()},bodyScroll:function(){return document.body.scrollHeight},documentElementOffset:function(){return document.documentElement.offsetHeight},documentElementScroll:function(){return document.documentElement.scrollHeight},max:function(){return Math.max.apply(null,td(tf))},min:function(){return Math.min.apply(null,td(tf))},grow:function(){return tf.max()},lowestElement:function(){return Math.max(tf.bodyOffset(),tc("bottom",tp()))},taggedElement:function(){return tu("bottom","data-iframe-height")}},tm={bodyScroll:function(){return document.body.scrollWidth},bodyOffset:function(){return document.body.offsetWidth},documentElementScroll:function(){return document.documentElement.scrollWidth},documentElementOffset:function(){return document.documentElement.offsetWidth},scroll:function(){return Math.max(tm.bodyScroll(),tm.documentElementScroll())},max:function(){return Math.max.apply(null,td(tm))},min:function(){return Math.min.apply(null,td(tm))},rightMostElement:function(){return tc("right",tp())},taggedElement:function(){return tu("right","data-iframe-width")}},tg=(e=function(t,e,i,n){var o,s;(function(){function t(t,e){return!(Math.abs(t-e)<=N)}return o=void 0!==i?i:tf[y](),s=void 0!==n?n:tm[R](),t(v,o)||f&&t(j,s)}
15)()||"init"===t?(t_(),tw(v=o,j=s,t)):!(t in{init:1,interval:1,size:1})&&(y in I||f&&R in I)?tb(e):t in{interval:1}||X("No change in size detected")},s=null,a=0,r=function(){a=G(),s=null,o=e.apply(i,n),s||(i=n=null)},function(){var t=G();a||(a=t);var l=B-(t-a);return i=this,n=arguments,l<=0||l>B?(s&&(clearTimeout(s),s=null),a=t,o=e.apply(i,n),s||(i=n=null)):s||(s=setTimeout(r,l)),o});function tv(t,e,i,n){z&&t in m?X("Trigger event cancelled: "+t):(t in{reset:1,resetPage:1,init:1}||X("Trigger event: "+e),tg(t,e,i,n))}function t_(){z||(z=!0,X("Trigger event lock on")),clearTimeout(H),H=setTimeout(function(){z=!1,X("Trigger event lock off"),X("--")},128)}function ty(t){v=tf[y](),j=tm[R](),tw(v,j,t)}function tb(t){var e=y;y=_,X("Reset trigger event: "+t),t_(),ty("reset"),y=e}function tw(t,e,i,n,o){if(!0===A){var s;void 0===o?o=O:X("Message targetOrigin: "+o),X("Sending message to host page ("+(s=P+":"+t+":"+e+":"+i+(void 0!==n?":"+n:""))+")"),D.postMessage(S+s,o)}}U(t,"message",function e(i){var n,o;function s(){return i.data.split("]")[1].split(":")[0]}function a(){return i.data.substr(i.data.indexOf(":")+1)}function r(){return i.data.split(":")[2]in{true:1,false:1}}S===(""+i.data).substr(0,E)&&(!1===g?function(){var e,n,o;switch(s()){case"reset":b?X("Page reset ignored by init"):(X("Page size reset by host page"),ty("resetPage"));break;case"resize":tv("resizeParent","Parent window requested size check");break;case"moveToAnchor":e=a(),x.findTarget(e);break;case"message":X("MessageCallback called from parent: "+(n=a())),q(JSON.parse(n)),X(" --");break;case"pageInfo":X("PageInfoFromParent called from parent: "+(o=a())),V(JSON.parse(o)),X(" --");break;default:"iFrameResize"in t||r()||J("Unexpected message ("+i.data+")")}}():r()?(w=i.data,D=i.source,function(){function t(t){return"true"===t}var e=w.substr(E).split(":");P=e[0],c=void 0!==e[1]?Number(e[1]):c,f=void 0!==e[2]?t(e[2]):f,k=void 0!==e[3]?t(e[3]):k,C=void 0!==e[4]?Number(e[4]):C,l=void 0!==e[6]?t(e[6]):l,d=e[7],y=void 0!==e[8]?e[8]:y,h=e[9],p=e[10],N=void 0!==e[11]?Number(e[11]):N,x.enable=void 0!==e[12]&&t(e[12]),M=void 0!==e[13]?e[13]:M,R=void 0!==e[14]?e[14]:R}(),X("Initialising iFrame ("+location.href+")"),function(){if("iFrameResizer"in t&&Object===t.iFrameResizer.constructor){var e;X("Reading data from page: "+JSON.stringify(e=t.iFrameResizer)),q="messageCallback"in e?e.messageCallback:q,Z="readyCallback"in e?e.readyCallback:Z,O="targetOrigin"in e?e.targetOrigin:O,y="heightCalculationMethod"in e?e.heightCalculationMethod:y,R="widthCalculationMethod"in e?e.widthCalculationMethod:R}X("TargetOrigin for parent set to: "+O)}(),void 0===d&&(d=c+"px"),tt("margin",(-1!==(n=d).indexOf("-")&&(J("Negative CSS value ignored for margin"),n=""),n)),tt("background",h),tt("padding",p),(o=document.createElement("div")).style.clear="both",o.style.display="block",document.body.appendChild(o),to(),ts(),document.documentElement.style.height="",document.body.style.height="",X('HTML & body height set to "auto"'),X("Enable public methods"),F.parentIFrame={autoResize:function(t){return!0===t&&!1===l?(l=!0,ta()):!1===t&&!0===l&&(l=!1,tr()),l},close:function(){tw(0,0,"close"),X("Disable outgoing messages"),A=!1,X("Remove event listener: Message"),Y(t,"message",e),!0===l&&tr()},getId:function(){return P},getPageInfo:function(t){"function"==typeof t?(V=t,tw(0,0,"pageInfo")):(V=function(){},tw(0,0,"pageInfoStop"))},moveToAnchor:function(t){x.findTarget(t)},reset:function(){tb("parentIFrame.reset")},scrollTo:function(t,e){tw(e,t,"scrollTo")},scrollToOffset:function(t,e){tw(e,t,"scrollToOffset")},sendMessage:function(t,e){tw(0,0,"message",JSON.stringify(t),e)},setHeightCalculationMethod:function(t){y=t,to()},setWidthCalculationMethod:function(t){R=t,ts()},setTargetOrigin:function(t){X("Set targetOrigin: "+t),O=t},size:function(t,e){tv("size","parentIFrame.size("+(t||"")+(e?","+e:"")+")",t,e)}},ta(),x=function(){function e(e){var i,n,o,s=e.split("#")[1]||e,a=decodeURIComponent(s),r=document.getElementById(a)||document.getElementsByName(a)[0];void 0!==r?(i=r.getBoundingClientRect(),n={x:void 0!==t.pageXOffset?t.pageXOffset:document.documentElement.scrollLeft,y:void 0!==t.pageYOffset?t.pageYOffset:document.documentElement.scrollTop},X("Moving to in page link (#"+s+") at x: "+(o={x:parseInt(i.left,10)+parseInt(n.x,10),y:parseInt(i.top,10)+parseInt(n.y,10)}).x+" y: "+o.y),tw(o.y,o.x,"scrollToOffset")):(X("In page link (#"+s+") not found in iFrame, so sending to parent"),tw(0,0,"inPageLink","#"+s))}function i(){""!==location.hash&&"#"!==location.hash&&e(location.href)}return x.enable?Array.prototype.forEach&&document.querySelectorAll?(X("Setting up location.hash handlers"),Array.prototype.forEach.call(document.querySelectorAll('a[href^="#"]'),function(t){"#"!==t.getAttribute("href")&&U(t,"click",function(t){t.preventDefault(),e(this.getAttribute("href"))})}
15),U(t,"hashchange",i),setTimeout(i,128)):J("In page linking not fully supported in this browser! (See README.md for IE8 workaround)"):X("In page linking not enabled"),{findTarget:e}}(),tv("init","Init message from host page"),Z(),g=!1,setTimeout(function(){b=!1},128)):X('Ignored message of type "'+s()+'". Received before initialization.'))}),"loading"!==document.readyState&&t.parent.postMessage("[iFrameResizerChild]Ready","*")}(window||{}),$(document).ready(function(){window.menuHolder=$(".navigation").not(".mm-menu"),window.menuHolderMaxWidth=100,window.menu=$(".more_nav").not(".mm-listview"),window.currentMenu=menu,window.currentMenuWidth=window.menuHolder.outerWidth(),window.menuChildrenCount=currentMenu.children().length,window.origMenuContent="",window.moreButton=$('<li class="navigation__item has-child more"> <a href="#">More</a> <ul class="navigation__list--sub"></ul> </li>'),window.allMenus=[]}),function(t){var e=!1;if("function"==typeof define&&define.amd&&(define(t),e=!0),"object"==typeof exports&&(module.exports=t(),e=!0),!e){var i=window.Cookies,n=window.Cookies=t();n.noConflict=function(){return window.Cookies=i,n}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var i=arguments[t];for(var n in i)e[n]=i[n]}return e}return function e(i){function n(e,o,s){if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(s=t({path:"/"},n.defaults,s)).expires){var a,r=new Date;r.setMilliseconds(r.getMilliseconds()+864e5*s.expires),s.expires=r}try{a=JSON.stringify(o),/^[\{\[]/.test(a)&&(o=a)}catch(t){}return o=i.write?i.write(o,e):encodeURIComponent(String(o)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=(e=(e=encodeURIComponent(String(e))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape),document.cookie=[e,"=",o,s.expires?"; expires="+s.expires.toUTCString():"",s.path?"; path="+s.path:"",s.domain?"; domain="+s.domain:"",s.secure?"; secure":""].join("")}e||(a={});for(var l=document.cookie?document.cookie.split("; "):[],h=/(%[0-9A-Z]{2})+/g,c=0;c<l.length;c++){var d=l[c].split("="),u=d.slice(1).join("=");'"'===u.charAt(0)&&(u=u.slice(1,-1));try{var p=d[0].replace(h,decodeURIComponent);if(u=i.read?i.read(u,p):i(u,p)||u.replace(h,decodeURIComponent),this.json)try{u=JSON.parse(u)}catch(t){}if(e===p){a=u;break}e||(a[p]=u)}catch(t){}}return a}}return n.set=n,n.get=function(t){return n.call(n,t)},n.getJSON=function(){return n.apply({json:!0},[].slice.call(arguments))},n.defaults={},n.remove=function(e,i){n(e,"",t(i,{expires:-1}))},n.withConverter=e,n}(function(){})}),$(()=>{"use strict";let t=document.querySelectorAll("#shapePnl a"),e=({currentTarget:t})=>{let e=t.classList.item(0),i=t.parentElement.querySelectorAll(":scope > .selected");for(let t of i)t.classList.remove("selected");t.classList.add("selected");let n=document.querySelectorAll("#facePnl");for(let t of n)t.setAttribute("class",e);let o=document.querySelectorAll(`#infoPnl div.${e}`);for(let t of o)for(let e of t.parentElement.children)e.style.display=e===t?"block":"none"};for(let i of t)i.addEventListener("click",e);let i=document.querySelectorAll('#framePnl span[class*="frm"]'),n=({currentTarget:t})=>{let e=t.getAttribute("class"),i=document.querySelectorAll("#framePnl a.selected");for(let t of i)t.classList.remove("selected");t.parentElement.classList.add("selected");let n=document.querySelectorAll("#lrgFrame");for(let t of n)t.setAttribute("class",e)};for(let t of i)t.addEventListener("click",n);let o=1,s=document.querySelectorAll("ul#frameSets li").length,a=document.querySelectorAll("a.prvSet"),r=t=>{t.stopPropagation(),t.preventDefault();let e=$("ul#frameSets li");if(o>1){e.animate({left:"+=720px"},500),o-=1;return}e.animate({left:`-${(s-1)*720}px`},500),o=s};for(let t of a)t.addEventListener("click",r);let l=document.querySelectorAll("a.nxtSet"),h=t=>{t.stopPropagation(),t.preventDefault();let e=$("ul#frameSets li");if(o<s){e.animate({left:"-=720px"},500),o+=1;return}e.animate({left:"0px"},500),o=1};for(let t of l)t.addEventListener("click",h);let c=document.querySelectorAll("a.lnchFrmSlctr"),d=t=>{t.preventDefault(),t.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"815",height:"508"})};for(let t of c)t.addEventListener("click",d);let u=document.querySelectorAll("button.lnch3dspine"),p=t=>{t.stopPropagation(),t.preventDefault(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"902",height:"833"})};for(let t of u)t.addEventListener("click",p);let f=document.querySelectorAll("button.lnchpetselector"),m=t=>{t.preventDefault(),t.stopPropagation(),$.fancybox({autoSize:!1,speedIn:600,speedOut:200,transitionIn:"elastic",type:"inline",href:"#frameSelector",width:"940",height:"750"})};for(let t of f)t.addEventListener("click",m)}),function(){"use strict";function t(t){return{enumerable:!0,value:t}}function e(t){return{enumerable:!0,writable:!0,value:t}}function i(t,e){return{enumerable:!0,get:t,set:e}}function n(){throw Error("This method has not been configured!")}window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame,window.cancelAnimationFrame||window.mozCancelAnimationFrame,jQuery(document).ready(function(o){var s,a,r=o("body");(o(window),o("<span></span>")).get(0);var l=o(".contactform").first();function h(t){return function(){o("html, body").animate({scrollTop:t.offset().top},"slow")}}
15function c(t){return t.closest('.section[data-control="section"]')}(function(){var s="navigation-open",a="."+s;function l(t){var e=this,i=!1;this.el=t,this.$el=o(t),1===this.$el.data("more-button")&&this.$el,this.$ul=this.$el.children("ul:first-child");var n=this.$el.children("ul").children("li"),s={prev:function(t){t.parent("li").prev("li").children("a").focus()},next:function(t){t.parent("li").next("li").children("a").focus()},parent:function(t){t.parent("li").parent("ul").siblings("a").focus()},child:function(t){t.siblings("ul").find("> li:first-child > a:first-child").focus()}};function a(t){return e.$ul.children("li").children("a").is(t)}var l={ArrowDown:function(t,e){a(t.target)?s.child(e):s.next(e)},ArrowUp:function(t,e){a(t.target)||s.prev(e)},ArrowLeft:function(t,e){a(t.target)?s.prev(e):s.parent(e)},ArrowRight:function(t,e){a(t.target)?s.next(e):s.child(e)}};function c(t){e.el.contains(t.target)||e.closeAll()}this.$el.on("keydown",".navigation__item--link:focus",function(t){l.hasOwnProperty(t.key)&&l[t.key](t,o(t.target))}),this.subMenuR=n.toArray().map(function(t){return new(t.classList.contains("mega-menu"),h)(t,e)}),this.watchAfterOpen=function(){i||(i=!0,r.on("click touchstart",c))},this.ignoreAfterClose=function(){i&&(i=!1,r.off("click touchstart",c))}}function h(t,e,i){var n=this;this.root=e,this.parent=i||null,this.el=t,this.$el=o(t),this.$a=this.$el.children("a"),this.$ul=this.$el.children("ul"),this.$a.on("focus",function(){n.clearExpand(),n.expand()}),this.$ul.find("a").last().on("blur",function(){n.contract()}),this.$ul.length?(this.$el.hover(function(){n.expand()},function(t){n.contract()}),this.$a.on("touchend",function(t){if(!n.isExpanded)return n.clearExpand(),n.expand(),!1}),this.subMenuR=this.$ul.children("li").toArray().map(function(t){return new h(t,e,n)})):this.subMenuR=[]}o(".component.navigation .navigation-a").each(function(t,e){new l(e)}),Object.defineProperties(l,{}),Object.defineProperties(l.prototype,{hasFocus:i(function(){return!!this.$el.find("a:focus").length}),expandedClass:t(s),expandedSelector:t(a),markOpened:t(function(){this.watchAfterOpen()}),closeAll:t(function(){this.$el.find(this.expandedSelector).removeClass(this.expandedClass),this.ignoreAfterClose()}),watchAfterOpen:e(n),ignoreAfterClose:e(n)}),Object.defineProperties(h,{}),Object.defineProperties(h.prototype,{expandedClass:t(s),expandedSelector:t(a),isExpanded:i(function(){return this.el.classList.contains(this.expandedClass)}),expand:t(function(){this.root.markOpened(),this.$el.addClass(this.expandedClass),this.$a.parents("li").addClass(this.expandedClass)}),contract:t(function(){this.$el.removeClass(this.expandedClass).find(this.expandedSelector).removeClass(this.expandedClass)}),clearExpand:t(function(){this.root.closeAll()})})})(),function(t){var e,i,n,s,a=[],l="mobile-controls",d=o(".section-navigation-mobile, .section-navigation-mobile--no-hide").find(".component.navigation").find(".navigation-a, .navigation-b, .navigation-c").first(),u=o(".section-phone-mobile .phone__container").find(".phone__number").first(),p=o(".map__container").first();function f(t,e,i,n){var s=o('<div class="'+l+"__"+t+'"></div>'),a=o('<a title="'+e+'" class="btn btn-link">'+('<i class="icon '+i)+'" aria-hidden="true"></i><span class="sr-only">'+e+"</span></a>").attr("href",n).appendTo(s);return{$el:s,$link:a}}function m(t,e,i,n){var o=f(e,i,n,"#"+(c(t).attr("id")||""));return o.$link.on("click",h(t)),{$el:o.$el,source:t.get(0)}}![d,u,t,p].every(function(t){return 0===t.length})&&(d.length&&(s=o('<div class="'+l+' d-lg-none sticky-top"></div>').prependTo(r),(e=d.clone()).find("button").remove(),e.removeClass().addClass("d-lg-none").find("ul, li, a").removeClass(),d.addClass("d-none d-lg-block"),i=o('<button type="button" title="Show Navigation Menu"><i aria-hidden="true" class="icon icon-bars"></i><span> Menu</span></button>').appendTo(s),e.mmenu({extensions:["pagedim-black"],counters:!0,navbars:[{position:"top",content:["prev","title","close"]},{position:"top",content:["searchfield"]}]}),n=e.data("mmenu"),i.on("click",function(){n.open()})),u.length&&a.push((c(u).attr("id"),{$el:f("phone","Call","icon-phone","tel:+"+u.text().trim().replace(/([^0123456789\-.()])/g,"")).$el,source:u.get(0)}
15)),p.length&&a.push(m(p,"location","Location","icon icon-location-arrow")),t.length&&a.push(m(t,"contact-us","Contact Us","icon-envelope-o")),a.length&&a.sort(function(t,e){return t.source.compareDocumentPosition(e.source)&Node.DOCUMENT_POSITION_PRECEDING?1:-1}).reduce(function(t,e){return t.append(e.$el)},o('<div class="'+l+'__quick-links"></div>')).appendTo(s))}(l),function(t){if(t.length){var e=o("<div>").addClass("contactform-lock");e.on("click",h(t));var i=o("<div>").addClass("browser-lock").append(e);o("body").prepend(i)}}(l),function(){if(self==top){var t=o("link[rel=canonical]").attr("href");if(void 0!=t){var e=t.split("/"),i=e.indexOf("my.martindalenolo.com");if(i>=0){var n=e[i+1];if(!n)return;var s=o("div[data-component-name=editable] a[data-source-type=my-pages]");if(void 0==s||0==s.length)return;s.each(function(){var t=o(this).attr("href");t.split("/").indexOf(n)>=0||o(this).attr("href","/"+n+t)})}}}}(),function(){var t=JSON.parse(o("#ple-data-json").text()).fixedSection;if(void 0!==t){var e=o("#"+t.id).find(".ple__browserlock-modules"),i=e.find("> .row .row");if("custom"==t.spacing.space&&t.spacing.offsetDistance&&parseInt(t.spacing.offsetDistance)!=NaN&&i.each(function(e,i){o(i).css({marginBottom:t.spacing.offsetDistance})}),null!=t.placement.place)switch(t.placement.place){case"center-right":e.css({top:"50%",transform:"translateY(-50%)"});break;case"bottom-right":e.css({top:"auto"}),parseInt(t.placement.offsetDistance)==NaN||t.placement.useDefaultOffset||e.css({bottom:t.placement.offsetDistance});break;default:parseInt(t.placement.offsetDistance)==NaN||t.placement.useDefaultOffset||e.css({top:t.placement.offsetDistance})}}else console.log("browserlock Settings is undefinded")}(),s=o(".ple__back-to-top"),a="active",s.on("click",function(t){t.preventDefault(),o([document.documentElement,document.body]).animate({scrollTop:0},1e3)}),o(window).scroll(function(){o(window).scrollTop()>=400?s.addClass(a):s.removeClass(a)}),function(){function t(){if(!o(".mobileHeader-form").length&&!o(".mobileHeader-location").length&&!o(".mobileHeader-phone").length&&o("#mobileHeaderNavBtn").length){var t=o(".mobileHeader-navigation #mobileHeaderNavBtn").outerWidth(!0);o(".mobileHeader-logo").css("margin-right",t)}if((o(".mobileHeader-form").length||o(".mobileHeader-location").length||o(".mobileHeader-phone").length)&&!o("#mobileHeaderNavBtn").length){var e=o(".mobileHeader-form").width()+o(".mobileHeader-location").width()+o(".mobileHeader-phone").width();e<46&&o(".mobileHeader-logo").css("margin-left",e)}}function e(t){return function(){var e=o(".ple_module_sticky"),i=0;e.length&&e.each(function(){i+=o(this).find(".container").outerHeight(!0)}),0==i&&(i=o(".mobileHeader-container").height()),o("html, body").animate({scrollTop:t.offset().top-i},"slow")}}o(".mobileHeader-container").length&&function(){var i,n=o(".mobileHeader-container"),s=n.height(),a=o("#mobileHeaderNavBtn"),r=o("#mobileHeaderNav"),l=o(".mobileHeader-homeIcon"),h=o(".formIconLink"),c=o(".locIconLink"),d=o(".phoneIconLinkExpand"),u=o(".map__container").first(),p=o(".form__container").first(),f=o(".location-list"),m=o(".ple_module_sticky");if(p.length||(p=o(".contactform__container").first()),m.length){var g=m.first().find(".container");o(window).resize(function(){s=n.height(),g.css("padding-top",s)})}if(r.children().length&&(r.mmenu({extensions:["pagedim-black"],counters:!0,navbars:[{position:"top",content:["prev","title","close"]}]}),i=r.data("mmenu"),a.on("click",function(){i.open()})),p.length?h.click(e(p)):h.fadeOut(),u.length?c.click(e(u)):c.fadeOut(),d.click(function(){f.addClass("expand")}),o(".mobileHeader-locWrap").find(".icon-times").click(function(){f.removeClass("expand")}),l.length&&o(".mobileHeader-homeIcon .mm-homeIcon").insertBefore(o("#mobileHeaderNav .mm-navbar-top .mm-title")),n.is("[class*=section__bg]")){var v=n.prop("classList");o.each(v,function(t,e){e.startsWith("section__bg")&&r.addClass(e)})}o(window).load(function(){t()}),o(window).resize(function(){t()})}()}()})}(),$(document).ready(function(){featuredBlocksAAccordion(),bluredBladeBG(),staffOverlapped(),galleryTitle(),navigationVisibility(),bannerOverImage(),bannerAboveImage(),bannerFAb
15stractShape(),footerParallax(),bladeParallax(),bannerTitleHighlight(),partialTestimonialsSlider(),fbFullImage()}),$(window).load(function(){navADropDown2(),bannerDSwoop(),bladeNarrowSbg()}),$(window).resize(function(){navADropDown2()}),$(document).ready(function(){disableLinks(".wrap__page-content a, .wrap__editable-content a"),$(".form").length&&$("body").on("SMBLeadsFormReady",function(){void 0!==$("body").data("FixedScrollBlock")&&$("body").data("FixedScrollBlock").refresh()}),setTimeout(function(){$("body").removeClass("mm-slideout mm-page")},1e3),$("a.dd-lightbox").fancybox()});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.