/*! For license information please see vendor.bundle.1697f26639ee588df9ee.js.LICENSE.txt */
(()=>{var __webpack_modules__={7475:(e,t,i)=>{var n,s,o;!function(r){"use strict";s=[i(3193)],n=function(e){var t,i=window.Slick||{};(t=0,i=function(i,n){var s,o=this;o.defaults={adaptiveHeight:!1,appendArrows:e(i),appendDots:e(i),arrows:!0,arrowsPlacement:null,asNavFor:null,prevArrow:'<button class="slick-prev" type="button"><span class="slick-prev-icon" aria-hidden="true"></span><span class="slick-sr-only">Previous</span></button>',nextArrow:'<button class="slick-next" type="button"><span class="slick-next-icon" aria-hidden="true"></span><span class="slick-sr-only">Next</span></button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,i){return e('<button type="button"><span class="slick-dot-icon" aria-hidden="true"></span><span class="slick-sr-only">Go to slide '+(i+1)+"</span></button>")},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,infinite:!0,initialSlide:0,instructionsText:null,lazyLoad:"ondemand",mobileFirst:!1,playIcon:'<span class="slick-play-icon" aria-hidden="true"></span>',pauseIcon:'<span class="slick-pause-icon" aria-hidden="true"></span>',pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,regionLabel:"carousel",respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useAutoplayToggleButton:!0,useCSS:!0,useGroupRole:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},o.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,$instructionsText:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$pauseButton:null,$pauseIcon:null,$playIcon:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(o,o.initials),o.activeBreakpoint=null,o.animType=null,o.animProp=null,o.breakpoints=[],o.breakpointSettings=[],o.cssTransitions=!1,o.focussed=!1,o.interrupted=!1,o.hidden="hidden",o.paused=!0,o.positionProp=null,o.respondTo=null,o.rowCount=1,o.shouldClick=!0,o.$slider=e(i),o.$slidesCache=null,o.transformType=null,o.transitionType=null,o.visibilityChange="visibilitychange",o.windowWidth=0,o.windowTimer=null,s=e(i).data("slick")||{},o.options=e.extend({},o.defaults,n,s),o.currentSlide=o.options.initialSlide,o.originalSettings=o.options,void 0!==document.mozHidden?(o.hidden="mozHidden",o.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(o.hidden="webkitHidden",o.visibilityChange="webkitvisibilitychange"),o.autoPlay=e.proxy(o.autoPlay,o),o.autoPlayClear=e.proxy(o.autoPlayClear,o),o.autoPlayIterator=e.proxy(o.autoPlayIterator,o),o.autoPlayToggleHandler=e.proxy(o.autoPlayToggleHandler,o),o.changeSlide=e.proxy(o.changeSlide,o),o.clickHandler=e.proxy(o.clickHandler,o),o.selectHandler=e.proxy(o.selectHandler,o),o.setPosition=e.proxy(o.setPosition,o),o.swipeHandler=e.proxy(o.swipeHandler,o),o.dragHandler=e.proxy(o.dragHandler,o),o.instanceUid=t++,o.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,o.registerBreakpoints(),o.init(!0)}).prototype.addSlide=i.prototype.slickAdd=function(t,i,n){var s=this;if("boolean"==typeof i)n=i,i=null;else if(i<0||i>=s.slideCount)return!1;s.unload(),"number"==typeof i?0===i&&0===s.$slides.length?e(t).appendTo(s.$slideTrack):n?e(t).insertBefore(s.$slides.eq(i)):e(t).insertAfter(s.$slides.eq(i)):!0===n?e(t).prependTo(s.$slideTrack):e(t).appendTo(s.$slideTrack),s.$slides=s.$slideTrack.children(this.options.slide),s.$slideTrack.children(this.options.slide).detach(),s.$slideTrack.append(s.$slides),s.$slides.each((function(t,i){e(i).attr("data-slick-index",t),e(i).attr("role","group"),e(i).attr("aria-label","slide "+t)})),s.$slidesCache=s.$slides,s.reinit()},i.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},i.prototype.animateSlide=function(t,i){var n={},s=this;s.animateHeight(),!0===s.options.rtl&&!1===s.options.vertical&&(t=-t),!1===s.transformsEnabled?!1===s.options.vertical?s.$slideTrack.animate({left:t},s.options.speed,s.options.easing,i):s.$slideTrack.animate({top:t},s.options.speed,s.options.easing,i):!1===s.cssTransitions?(!0===s.options.rtl&&(s.currentLeft=-s.currentLeft),e({animStart:s.currentLeft}).animate({animStart:t},{duration:s.options.speed,easing:s.options.easing,step:function(e){e=Math.ceil(e),!1===s.options.vertical?(n[s.animType]="translate("+e+"px, 0px)",s.$slideTrack.css(n)):(n[s.animType]="translate(0px,"+e+"px)",s.$slideTrack.css(n))},complete:function(){i&&i.call()}})):(s.applyTransition(),t=Math.ceil(t),!1===s.options.vertical?n[s.animType]="translate3d("+t+"px, 0px, 0px)":n[s.animType]="translate3d(0px,"+t+"px, 0px)",s.$slideTrack.css(n),i&&setTimeout((function(){s.disableTransition(),i.call()}),s.options.speed))},i.prototype.getNavTarget=function(){var t=this.options.asNavFor;return t&&null!==t&&(t=e(t).not(this.$slider)),t},i.prototype.asNavFor=function(t){var i=this.getNavTarget();null!==i&&"object"==typeof i&&i.each((function(){var i=e(this).slick("getSlick");i.unslicked||i.slideHandler(t,!0)}))},i.prototype.applyTransition=function(e){var t=this,i={};!1===t.options.fade?i[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:i[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},i.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},i.prototype.autoPlayClear=function(){this.autoPlayTimer&&clearInterval(this.autoPlayTimer)},i.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},i.prototype.autoPlayToggleHandler=function(){var e=this;e.paused?(e.$playIcon.css("display","none"),e.$pauseIcon.css("display","inline"),e.$pauseButton.find(".slick-play-text").attr("style","display: none"),e.$pauseButton.find(".slick-pause-text").removeAttr("style"),e.slickPlay()):(e.$playIcon.css("display","inline"),e.$pauseIcon.css("display","none"),e.$pauseButton.find(".slick-play-text").removeAttr("style"),e.$pauseButton.find(".slick-pause-text").attr("style","display: none"),e.slickPause())},i.prototype.buildArrows=function(){var t=this;if(!0===t.options.arrows)if(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow){if(t.htmlExpr.test(t.options.prevArrow))if(null!=t.options.arrowsPlacement)switch(t.options.arrowsPlacement){case"beforeSlides":case"split":console.log("test"),t.$prevArrow.prependTo(t.options.appendArrows);break;case"afterSlides":t.$prevArrow.appendTo(t.options.appendArrows)}else t.$prevArrow.prependTo(t.options.appendArrows);if(t.htmlExpr.test(t.options.nextArrow))if(null!=t.options.arrowsPlacement)switch(t.options.arrowsPlacement){case"beforeSlides":console.log("test2"),t.$prevArrow.after(t.$nextArrow);break;case"afterSlides":case"split":t.$nextArrow.appendTo(t.options.appendArrows)}else t.$nextArrow.appendTo(t.options.appendArrows);!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").prop("disabled",!0)}else t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").prop("disabled",!0)},i.prototype.buildDots=function(){var t,i,n=this;if(!0===n.options.dots&&n.slideCount>n.options.slidesToShow){for(n.$slider.addClass("slick-dotted"),i=e("<ul />").addClass(n.options.dotsClass),t=0;t<=n.getDotCount();t+=1)i.append(e("<li />").append(n.options.customPaging.call(this,n,t)));n.$dots=i.appendTo(n.options.appendDots),n.$dots.find("li").first().addClass("slick-active")}},i.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each((function(i,n){e(n).attr("data-slick-index",i).data("originalStyling",e(n).attr("style")||""),t.options.useGroupRole&&e(n).attr("role","group").attr("aria-label","slide "+(i+1))})),t.$slider.addClass("slick-slider"),t.$slider.attr("role","region"),t.$slider.attr("aria-label",t.options.regionLabel),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable"),t.options.autoplay&&t.options.useAutoplayToggleButton&&(t.$pauseIcon=e(t.options.pauseIcon).attr("aria-hidden",!0),t.$playIcon=e(t.options.playIcon).attr("aria-hidden",!0),t.$pauseButton=e('<button type="button" class="slick-autoplay-toggle-button">'),t.$pauseButton.append(t.$pauseIcon),t.$pauseButton.append(t.$playIcon.css("display","none")),t.$pauseButton.append(e('<span class="slick-pause-text slick-sr-only">Pause</span>')),t.$pauseButton.append(e('<span class="slick-play-text slick-sr-only" style="display: none">Play</span>')),t.$pauseButton.prependTo(t.$slider)),null!=t.options.instructionsText&&""!=t.options.instructionsText&&(t.$instructionsText=e('<p class="slick-instructions slick-sr-only">'+t.options.instructionsText+"</p>"),t.$instructionsText.prependTo(t.$slider))},i.prototype.buildRows=function(){var e,t,i,n,s,o,r,a=this;if(n=document.createDocumentFragment(),o=a.$slider.children(),a.options.rows>0){for(r=a.options.slidesPerRow*a.options.rows,s=Math.ceil(o.length/r),e=0;e<s;e++){var l=document.createElement("div");for(t=0;t<a.options.rows;t++){var c=document.createElement("div");for(i=0;i<a.options.slidesPerRow;i++){var d=e*r+(t*a.options.slidesPerRow+i);o.get(d)&&c.appendChild(o.get(d))}l.appendChild(c)}n.appendChild(l)}a.$slider.empty().append(n),a.$slider.children().children().children().css({width:100/a.options.slidesPerRow+"%",display:"inline-block"})}},i.prototype.checkResponsive=function(t,i){var n,s,o,r=this,a=!1,l=r.$slider.width(),c=window.innerWidth||e(window).width();if("window"===r.respondTo?o=c:"slider"===r.respondTo?o=l:"min"===r.respondTo&&(o=Math.min(c,l)),r.options.responsive&&r.options.responsive.length&&null!==r.options.responsive){for(n in s=null,r.breakpoints)r.breakpoints.hasOwnProperty(n)&&(!1===r.originalSettings.mobileFirst?o<r.breakpoints[n]&&(s=r.breakpoints[n]):o>r.breakpoints[n]&&(s=r.breakpoints[n]));null!==s?null!==r.activeBreakpoint?(s!==r.activeBreakpoint||i)&&(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=e.extend({},r.originalSettings,r.breakpointSettings[s]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),a=s):(r.activeBreakpoint=s,"unslick"===r.breakpointSettings[s]?r.unslick(s):(r.options=e.extend({},r.originalSettings,r.breakpointSettings[s]),!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t)),a=s):null!==r.activeBreakpoint&&(r.activeBreakpoint=null,r.options=r.originalSettings,!0===t&&(r.currentSlide=r.options.initialSlide),r.refresh(t),a=s),t||!1===a||r.$slider.trigger("breakpoint",[r,a])}},i.prototype.changeSlide=function(t,i){var n,s,o=this,r=e(t.currentTarget);switch(r.is("a")&&t.preventDefault(),r.is("li")||(r=r.closest("li")),n=o.slideCount%o.options.slidesToScroll!=0?0:(o.slideCount-o.currentSlide)%o.options.slidesToScroll,t.data.message){case"previous":s=0===n?o.options.slidesToScroll:o.options.slidesToShow-n,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide-s,!1,i);break;case"next":s=0===n?o.options.slidesToScroll:n,o.slideCount>o.options.slidesToShow&&o.slideHandler(o.currentSlide+s,!1,i);break;case"index":var a=0===t.data.index?0:t.data.index||r.index()*o.options.slidesToScroll;o.slideHandler(o.checkNavigable(a),!1,i),r.children().trigger("focus");break;default:return}},i.prototype.checkNavigable=function(e){var t,i;if(i=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var n in t){if(e<t[n]){e=i;break}i=t[n]}return e},i.prototype.cleanUpEvents=function(){var t=this;t.options.autoplay&&t.options.useAutoplayToggleButton&&t.$pauseButton.off("click.slick",t.autoPlayToggleHandler),t.options.dots&&null!==t.$dots&&e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide)),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},i.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},i.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>0&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},i.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},i.prototype.destroy=function(t){var i=this;i.autoPlayClear(),i.touchObject={},i.cleanUpEvents(),e(".slick-cloned",i.$slider).detach(),i.options.autoplay&&i.options.useAutoplayToggleButton&&i.$pauseButton.remove(),i.$dots&&i.$dots.remove(),i.$prevArrow&&i.$prevArrow.length&&(i.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").prop("disabled",!1).css("display",""),i.htmlExpr.test(i.options.prevArrow)&&i.$prevArrow.remove()),i.$nextArrow&&i.$nextArrow.length&&(i.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").prop("disabled",!1).css("display",""),i.htmlExpr.test(i.options.nextArrow)&&i.$nextArrow.remove()),i.$slides&&(i.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){e(this).attr("style",e(this).data("originalStyling"))})),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.detach(),i.$list.detach(),i.$slider.append(i.$slides)),i.cleanUpRows(),i.$slider.removeClass("slick-slider"),i.$slider.removeClass("slick-initialized"),i.$slider.removeClass("slick-dotted"),i.unslicked=!0,t||i.$slider.trigger("destroy",[i])},i.prototype.disableTransition=function(e){var t=this,i={};i[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(i):t.$slides.eq(e).css(i)},i.prototype.fadeSlide=function(e,t){var i=this;!1===i.cssTransitions?(i.$slides.eq(e).css({zIndex:i.options.zIndex}),i.$slides.eq(e).animate({opacity:1},i.options.speed,i.options.easing,t)):(i.applyTransition(e),i.$slides.eq(e).css({opacity:1,zIndex:i.options.zIndex}),t&&setTimeout((function(){i.disableTransition(e),t.call()}),i.options.speed))},i.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},i.prototype.filterSlides=i.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},i.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick","*",(function(i){var n=e(this);setTimeout((function(){t.options.pauseOnFocus&&n.is(":focus")&&(t.focussed=!0,t.autoPlay())}),0)})).on("blur.slick","*",(function(i){e(this),t.options.pauseOnFocus&&(t.focussed=!1,t.autoPlay())}))},i.prototype.getCurrent=i.prototype.slickCurrentSlide=function(){return this.currentSlide},i.prototype.getDotCount=function(){var e=this,t=0,i=0,n=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++n;else for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)n=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++n,t=i+e.options.slidesToScroll,i+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else n=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return n-1},i.prototype.getLeft=function(e){var t,i,n,s,o=this,r=0;return o.slideOffset=0,i=o.$slides.first().outerHeight(!0),!0===o.options.infinite?(o.slideCount>o.options.slidesToShow&&(o.slideOffset=o.slideWidth*o.options.slidesToShow*-1,s=-1,!0===o.options.vertical&&!0===o.options.centerMode&&(2===o.options.slidesToShow?s=-1.5:1===o.options.slidesToShow&&(s=-2)),r=i*o.options.slidesToShow*s),o.slideCount%o.options.slidesToScroll!=0&&e+o.options.slidesToScroll>o.slideCount&&o.slideCount>o.options.slidesToShow&&(e>o.slideCount?(o.slideOffset=(o.options.slidesToShow-(e-o.slideCount))*o.slideWidth*-1,r=(o.options.slidesToShow-(e-o.slideCount))*i*-1):(o.slideOffset=o.slideCount%o.options.slidesToScroll*o.slideWidth*-1,r=o.slideCount%o.options.slidesToScroll*i*-1))):e+o.options.slidesToShow>o.slideCount&&(o.slideOffset=(e+o.options.slidesToShow-o.slideCount)*o.slideWidth,r=(e+o.options.slidesToShow-o.slideCount)*i),o.slideCount<=o.options.slidesToShow&&(o.slideOffset=0,r=0),!0===o.options.centerMode&&o.slideCount<=o.options.slidesToShow?o.slideOffset=o.slideWidth*Math.floor(o.options.slidesToShow)/2-o.slideWidth*o.slideCount/2:!0===o.options.centerMode&&!0===o.options.infinite?o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)-o.slideWidth:!0===o.options.centerMode&&(o.slideOffset=0,o.slideOffset+=o.slideWidth*Math.floor(o.options.slidesToShow/2)),t=!1===o.options.vertical?e*o.slideWidth*-1+o.slideOffset:e*i*-1+r,!0===o.options.variableWidth&&(n=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(e):o.$slideTrack.children(".slick-slide").eq(e+o.options.slidesToShow),t=!0===o.options.rtl?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,!0===o.options.centerMode&&(n=o.slideCount<=o.options.slidesToShow||!1===o.options.infinite?o.$slideTrack.children(".slick-slide").eq(e):o.$slideTrack.children(".slick-slide").eq(e+o.options.slidesToShow+1),t=!0===o.options.rtl?n[0]?-1*(o.$slideTrack.width()-n[0].offsetLeft-n.width()):0:n[0]?-1*n[0].offsetLeft:0,t+=(o.$list.width()-n.outerWidth())/2)),t},i.prototype.getOption=i.prototype.slickGetOption=function(e){return this.options[e]},i.prototype.getNavigableIndexes=function(){var e,t=this,i=0,n=0,s=[];for(!1===t.options.infinite?e=t.slideCount:(i=-1*t.options.slidesToScroll,n=-1*t.options.slidesToScroll,e=2*t.slideCount);i<e;)s.push(i),i=n+t.options.slidesToScroll,n+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return s},i.prototype.getSlick=function(){return this},i.prototype.getSlideCount=function(){var t,i,n,s=this;return n=!0===s.options.centerMode?Math.floor(s.$list.width()/2):0,i=-1*s.swipeLeft+n,!0===s.options.swipeToSlide?(s.$slideTrack.find(".slick-slide").each((function(n,o){var r,a;if(r=e(o).outerWidth(),a=o.offsetLeft,!0!==s.options.centerMode&&(a+=r/2),i<a+r)return t=o,!1})),Math.abs(e(t).attr("data-slick-index")-s.currentSlide)||1):s.options.slidesToScroll},i.prototype.goTo=i.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},i.prototype.init=function(t){var i=this;e(i.$slider).hasClass("slick-initialized")||(e(i.$slider).addClass("slick-initialized"),i.buildRows(),i.buildOut(),i.setProps(),i.startLoad(),i.loadSlider(),i.initializeEvents(),i.updateArrows(),i.updateDots(),i.checkResponsive(!0),i.focusHandler()),t&&i.$slider.trigger("init",[i]),i.options.autoplay&&(i.paused=!1,i.autoPlay()),i.updateSlideVisibility(),null!=i.options.accessibility&&console.warn("accessibility setting is no longer supported."),null!=i.options.focusOnChange&&console.warn("focusOnChange is no longer supported."),null!=i.options.focusOnSelect&&console.warn("focusOnSelect is no longer supported.")},i.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide))},i.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},i.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},i.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.options.autoplay&&t.options.useAutoplayToggleButton&&t.$pauseButton.on("click.slick",t.autoPlayToggleHandler),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"},t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(t.setPosition)},i.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},i.prototype.lazyLoad=function(){var t,i,n,s=this;function o(t){e("img[data-lazy]",t).each((function(){var t=e(this),i=e(this).attr("data-lazy"),n=e(this).attr("data-srcset"),o=e(this).attr("data-sizes")||s.$slider.attr("data-sizes"),r=document.createElement("img");r.onload=function(){t.animate({opacity:0},100,(function(){n&&(t.attr("srcset",n),o&&t.attr("sizes",o)),t.attr("src",i).animate({opacity:1},200,(function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),s.$slider.trigger("lazyLoaded",[s,t,i])}))},r.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),s.$slider.trigger("lazyLoadError",[s,t,i])},r.src=i}))}if(!0===s.options.centerMode?!0===s.options.infinite?n=(i=s.currentSlide+(s.options.slidesToShow/2+1))+s.options.slidesToShow+2:(i=Math.max(0,s.currentSlide-(s.options.slidesToShow/2+1)),n=s.options.slidesToShow/2+1+2+s.currentSlide):(i=s.options.infinite?s.options.slidesToShow+s.currentSlide:s.currentSlide,n=Math.ceil(i+s.options.slidesToShow),!0===s.options.fade&&(i>0&&i--,n<=s.slideCount&&n++)),t=s.$slider.find(".slick-slide").slice(i,n),"anticipated"===s.options.lazyLoad)for(var r=i-1,a=n,l=s.$slider.find(".slick-slide"),c=0;c<s.options.slidesToScroll;c++)r<0&&(r=s.slideCount-1),t=(t=t.add(l.eq(r))).add(l.eq(a)),r--,a++;o(t),s.slideCount<=s.options.slidesToShow?o(s.$slider.find(".slick-slide")):s.currentSlide>=s.slideCount-s.options.slidesToShow?o(s.$slider.find(".slick-cloned").slice(0,s.options.slidesToShow)):0===s.currentSlide&&o(s.$slider.find(".slick-cloned").slice(-1*s.options.slidesToShow))},i.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},i.prototype.next=i.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},i.prototype.orientationChange=function(){this.checkResponsive(),this.setPosition()},i.prototype.pause=i.prototype.slickPause=function(){this.autoPlayClear(),this.paused=!0},i.prototype.play=i.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},i.prototype.postSlide=function(e){var t=this;t.unslicked||(t.$slider.trigger("afterChange",[t,e]),t.animating=!1,t.slideCount>t.options.slidesToShow&&t.setPosition(),t.swipeLeft=null,t.options.autoplay&&t.autoPlay(),t.updateSlideVisibility())},i.prototype.prev=i.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},i.prototype.preventDefault=function(e){e.preventDefault()},i.prototype.progressiveLazyLoad=function(t){t=t||1;var i,n,s,o,r,a=this,l=e("img[data-lazy]",a.$slider);l.length?(i=l.first(),n=i.attr("data-lazy"),s=i.attr("data-srcset"),o=i.attr("data-sizes")||a.$slider.attr("data-sizes"),(r=document.createElement("img")).onload=function(){s&&(i.attr("srcset",s),o&&i.attr("sizes",o)),i.attr("src",n).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===a.options.adaptiveHeight&&a.setPosition(),a.$slider.trigger("lazyLoaded",[a,i,n]),a.progressiveLazyLoad()},r.onerror=function(){t<3?setTimeout((function(){a.progressiveLazyLoad(t+1)}),500):(i.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),a.$slider.trigger("lazyLoadError",[a,i,n]),a.progressiveLazyLoad())},r.src=n):a.$slider.trigger("allImagesLoaded",[a])},i.prototype.refresh=function(t){var i,n,s=this;n=s.slideCount-s.options.slidesToShow,!s.options.infinite&&s.currentSlide>n&&(s.currentSlide=n),s.slideCount<=s.options.slidesToShow&&(s.currentSlide=0),i=s.currentSlide,s.destroy(!0),e.extend(s,s.initials,{currentSlide:i}),s.init(),t||s.changeSlide({data:{message:"index",index:i}},!1)},i.prototype.registerBreakpoints=function(){var t,i,n,s=this,o=s.options.responsive||null;if("array"===e.type(o)&&o.length){for(t in s.respondTo=s.options.respondTo||"window",o)if(n=s.breakpoints.length-1,o.hasOwnProperty(t)){for(i=o[t].breakpoint;n>=0;)s.breakpoints[n]&&s.breakpoints[n]===i&&s.breakpoints.splice(n,1),n--;s.breakpoints.push(i),s.breakpointSettings[i]=o[t].settings}s.breakpoints.sort((function(e,t){return s.options.mobileFirst?e-t:t-e}))}},i.prototype.reinit=function(){var e=this;e.$slides=e.$slideTrack.children(e.options.slide).addClass("slick-slide"),e.slideCount=e.$slides.length,e.currentSlide>=e.slideCount&&0!==e.currentSlide&&(e.currentSlide=e.currentSlide-e.options.slidesToScroll),e.slideCount<=e.options.slidesToShow&&(e.currentSlide=0),e.registerBreakpoints(),e.setProps(),e.setupInfinite(),e.buildArrows(),e.updateArrows(),e.initArrowEvents(),e.buildDots(),e.updateDots(),e.initDotEvents(),e.cleanUpSlideEvents(),e.initSlideEvents(),e.checkResponsive(!1,!0),e.setSlideClasses("number"==typeof e.currentSlide?e.currentSlide:0),e.setPosition(),e.focusHandler(),e.paused=!e.options.autoplay,e.autoPlay(),e.$slider.trigger("reInit",[e])},i.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout((function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()}),50))},i.prototype.removeSlide=i.prototype.slickRemove=function(e,t,i){var n=this;if(e="boolean"==typeof e?!0===(t=e)?0:n.slideCount-1:!0===t?--e:e,n.slideCount<1||e<0||e>n.slideCount-1)return!1;n.unload(),!0===i?n.$slideTrack.children().remove():n.$slideTrack.children(this.options.slide).eq(e).remove(),n.$slides=n.$slideTrack.children(this.options.slide),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.append(n.$slides),n.$slidesCache=n.$slides,n.reinit()},i.prototype.setCSS=function(e){var t,i,n=this,s={};!0===n.options.rtl&&(e=-e),t="left"==n.positionProp?Math.ceil(e)+"px":"0px",i="top"==n.positionProp?Math.ceil(e)+"px":"0px",s[n.positionProp]=e,!1===n.transformsEnabled?n.$slideTrack.css(s):(s={},!1===n.cssTransitions?(s[n.animType]="translate("+t+", "+i+")",n.$slideTrack.css(s)):(s[n.animType]="translate3d("+t+", "+i+", 0px)",n.$slideTrack.css(s)))},i.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},i.prototype.setFade=function(){var t,i=this;i.$slides.each((function(n,s){t=i.slideWidth*n*-1,!0===i.options.rtl?e(s).css({position:"relative",right:t,top:0,zIndex:i.options.zIndex-2,opacity:0}):e(s).css({position:"relative",left:t,top:0,zIndex:i.options.zIndex-2,opacity:0})})),i.$slides.eq(i.currentSlide).css({zIndex:i.options.zIndex-1,opacity:1})},i.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},i.prototype.setOption=i.prototype.slickSetOption=function(){var t,i,n,s,o,r=this,a=!1;if("object"===e.type(arguments[0])?(n=arguments[0],a=arguments[1],o="multiple"):"string"===e.type(arguments[0])&&(n=arguments[0],s=arguments[1],a=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?o="responsive":void 0!==arguments[1]&&(o="single")),"single"===o)r.options[n]=s;else if("multiple"===o)e.each(n,(function(e,t){r.options[e]=t}));else if("responsive"===o)for(i in s)if("array"!==e.type(r.options.responsive))r.options.responsive=[s[i]];else{for(t=r.options.responsive.length-1;t>=0;)r.options.responsive[t].breakpoint===s[i].breakpoint&&r.options.responsive.splice(t,1),t--;r.options.responsive.push(s[i])}a&&(r.unload(),r.reinit())},i.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},i.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},i.prototype.setSlideClasses=function(t){var i,n,s,o,r=this;if(n=r.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true").attr("aria-label",(function(){return e(this).attr("aria-label").replace(" (centered)","")})),r.$slides.eq(t).addClass("slick-current"),!0===r.options.centerMode){var a=r.options.slidesToShow%2==0?1:0;i=Math.floor(r.options.slidesToShow/2),!0===r.options.infinite&&(t>=i&&t<=r.slideCount-1-i?r.$slides.slice(t-i+a,t+i+1).addClass("slick-active").removeAttr("aria-hidden"):(s=r.options.slidesToShow+t,n.slice(s-i+1+a,s+i+2).addClass("slick-active").removeAttr("aria-hidden")),0===t?n.eq(r.options.slidesToShow+r.slideCount+1).addClass("slick-center").attr("aria-label",(function(){return e(this).attr("aria-label")+" (centered)"})):t===r.slideCount-1&&n.eq(r.options.slidesToShow).addClass("slick-center").attr("aria-label",(function(){return e(this).attr("aria-label")+" (centered)"}))),r.$slides.eq(t).addClass("slick-center").attr("aria-label",(function(){return e(this).attr("aria-label")+" (centered)"}))}else t>=0&&t<=r.slideCount-r.options.slidesToShow?r.$slides.slice(t,t+r.options.slidesToShow).addClass("slick-active").removeAttr("aria-hidden"):n.length<=r.options.slidesToShow?n.addClass("slick-active").removeAttr("aria-hidden"):(o=r.slideCount%r.options.slidesToShow,s=!0===r.options.infinite?r.options.slidesToShow+t:t,r.options.slidesToShow==r.options.slidesToScroll&&r.slideCount-t<r.options.slidesToShow?n.slice(s-(r.options.slidesToShow-o),s+o).addClass("slick-active").removeAttr("aria-hidden"):n.slice(s,s+r.options.slidesToShow).addClass("slick-active").removeAttr("aria-hidden"));"ondemand"!==r.options.lazyLoad&&"anticipated"!==r.options.lazyLoad||r.lazyLoad()},i.prototype.setupInfinite=function(){var t,i,n,s=this;if(!0===s.options.fade&&(s.options.centerMode=!1),!0===s.options.infinite&&!1===s.options.fade&&(i=null,s.slideCount>s.options.slidesToShow)){for(n=!0===s.options.centerMode?s.options.slidesToShow+1:s.options.slidesToShow,t=s.slideCount;t>s.slideCount-n;t-=1)i=t-1,e(s.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i-s.slideCount).prependTo(s.$slideTrack).addClass("slick-cloned");for(t=0;t<n+s.slideCount;t+=1)i=t,e(s.$slides[i]).clone(!0).attr("id","").attr("data-slick-index",i+s.slideCount).appendTo(s.$slideTrack).addClass("slick-cloned");s.$slideTrack.find(".slick-cloned").find("[id]").each((function(){e(this).attr("id","")}))}},i.prototype.interrupt=function(e){e||this.autoPlay(),this.interrupted=e},i.prototype.selectHandler=function(t){var i=this,n=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),s=parseInt(n.attr("data-slick-index"));s||(s=0),i.slideCount<=i.options.slidesToShow?i.slideHandler(s,!1,!0):i.slideHandler(s)},i.prototype.slideHandler=function(e,t,i){var n,s,o,r,a,l=null,c=this;if(t=t||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===e))if(!1===t&&c.asNavFor(e),n=e,l=c.getLeft(n),r=c.getLeft(c.currentSlide),c.currentLeft=null===c.swipeLeft?r:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(e<0||e>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(r,(function(){c.postSlide(n)})):c.postSlide(n));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(e<0||e>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(n=c.currentSlide,!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(r,(function(){c.postSlide(n)})):c.postSlide(n));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),s=n<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+n:n>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:n-c.slideCount:n,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,s]),o=c.currentSlide,c.currentSlide=s,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(a=(a=c.getNavTarget()).slick("getSlick")).slideCount<=a.options.slidesToShow&&a.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==i?(c.fadeSlideOut(o),c.fadeSlide(s,(function(){c.postSlide(s)}))):c.postSlide(s),void c.animateHeight();!0!==i&&c.slideCount>c.options.slidesToShow?c.animateSlide(l,(function(){c.postSlide(s)})):c.postSlide(s)}},i.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},i.prototype.swipeDirection=function(){var e,t,i,n,s=this;return e=s.touchObject.startX-s.touchObject.curX,t=s.touchObject.startY-s.touchObject.curY,i=Math.atan2(t,e),(n=Math.round(180*i/Math.PI))<0&&(n=360-Math.abs(n)),n<=45&&n>=0||n<=360&&n>=315?!1===s.options.rtl?"left":"right":n>=135&&n<=225?!1===s.options.rtl?"right":"left":!0===s.options.verticalSwiping?n>=35&&n<=135?"down":"up":"vertical"},i.prototype.swipeEnd=function(e){var t,i,n=this;if(n.dragging=!1,n.swiping=!1,n.scrolling)return n.scrolling=!1,!1;if(n.interrupted=!1,n.shouldClick=!(n.touchObject.swipeLength>10),void 0===n.touchObject.curX)return!1;if(!0===n.touchObject.edgeHit&&n.$slider.trigger("edge",[n,n.swipeDirection()]),n.touchObject.swipeLength>=n.touchObject.minSwipe){switch(i=n.swipeDirection()){case"left":case"down":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide+n.getSlideCount()):n.currentSlide+n.getSlideCount(),n.currentDirection=0;break;case"right":case"up":t=n.options.swipeToSlide?n.checkNavigable(n.currentSlide-n.getSlideCount()):n.currentSlide-n.getSlideCount(),n.currentDirection=1}"vertical"!=i&&(n.slideHandler(t),n.touchObject={},n.$slider.trigger("swipe",[n,i]))}else n.touchObject.startX!==n.touchObject.curX&&(n.slideHandler(n.currentSlide),n.touchObject={})},i.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},i.prototype.swipeMove=function(e){var t,i,n,s,o,r,a=this;return o=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!a.dragging||a.scrolling||o&&1!==o.length)&&(t=a.getLeft(a.currentSlide),a.touchObject.curX=void 0!==o?o[0].pageX:e.clientX,a.touchObject.curY=void 0!==o?o[0].pageY:e.clientY,a.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(a.touchObject.curX-a.touchObject.startX,2))),r=Math.round(Math.sqrt(Math.pow(a.touchObject.curY-a.touchObject.startY,2))),!a.options.verticalSwiping&&!a.swiping&&r>4?(a.scrolling=!0,!1):(!0===a.options.verticalSwiping&&(a.touchObject.swipeLength=r),i=a.swipeDirection(),void 0!==e.originalEvent&&a.touchObject.swipeLength>4&&(a.swiping=!0,e.preventDefault()),s=(!1===a.options.rtl?1:-1)*(a.touchObject.curX>a.touchObject.startX?1:-1),!0===a.options.verticalSwiping&&(s=a.touchObject.curY>a.touchObject.startY?1:-1),n=a.touchObject.swipeLength,a.touchObject.edgeHit=!1,!1===a.options.infinite&&(0===a.currentSlide&&"right"===i||a.currentSlide>=a.getDotCount()&&"left"===i)&&(n=a.touchObject.swipeLength*a.options.edgeFriction,a.touchObject.edgeHit=!0),!1===a.options.vertical?a.swipeLeft=t+n*s:a.swipeLeft=t+n*(a.$list.height()/a.listWidth)*s,!0===a.options.verticalSwiping&&(a.swipeLeft=t+n*s),!0!==a.options.fade&&!1!==a.options.touchMove&&(!0===a.animating?(a.swipeLeft=null,!1):void a.setCSS(a.swipeLeft))))},i.prototype.swipeStart=function(e){var t,i=this;if(i.interrupted=!0,1!==i.touchObject.fingerCount||i.slideCount<=i.options.slidesToShow)return i.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),i.touchObject.startX=i.touchObject.curX=void 0!==t?t.pageX:e.clientX,i.touchObject.startY=i.touchObject.curY=void 0!==t?t.pageY:e.clientY,i.dragging=!0},i.prototype.unfilterSlides=i.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},i.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")},i.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},i.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").prop("disabled",!1),e.$nextArrow.removeClass("slick-disabled").prop("disabled",!1),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").prop("disabled",!0),e.$nextArrow.removeClass("slick-disabled").prop("disabled",!1)):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").prop("disabled",!0),e.$prevArrow.removeClass("slick-disabled").prop("disabled",!1)))},i.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").find("button").removeAttr("aria-current").end().end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active").find("button").attr("aria-current",!0).end().end())},i.prototype.updateSlideVisibility=function(){this.$slideTrack.find(".slick-slide").attr("aria-hidden","true").find("a, input, button, select").attr("tabindex","-1"),this.$slideTrack.find(".slick-active").removeAttr("aria-hidden").find("a, input, button, select").removeAttr("tabindex")},i.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,t,n=this,s=arguments[0],o=Array.prototype.slice.call(arguments,1),r=n.length;for(e=0;e<r;e++)if("object"==typeof s||void 0===s?n[e].slick=new i(n[e],s):t=n[e].slick[s].apply(n[e].slick,o),void 0!==t)return t;return n}},void 0===(o=n.apply(t,s))||(e.exports=o)}()},8197:()=>{!function(e){var t={};function i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=0)}([function(e,t,i){"use strict";i.r(t),i.d(t,"AutoComplete",(function(){return l}));var n,s=(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)t.hasOwnProperty(i)&&(e[i]=t[i])})(e,t)},function(e,t){function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(e){function t(t){return e.call(this,t)||this}return s(t,e),t.prototype.getDefaults=function(){return{url:"",method:"get",queryKey:"q",extraData:{},timeout:void 0,requestThrottling:500}},t.prototype.search=function(e,t){var i=this;null!=this.jqXHR&&this.jqXHR.abort();var n={};n[this._settings.queryKey]=e,$.extend(n,this._settings.extraData),this.requestTID&&window.clearTimeout(this.requestTID),this.requestTID=window.setTimeout((function(){i.jqXHR=$.ajax(i._settings.url,{method:i._settings.method,data:n,timeout:i._settings.timeout}),i.jqXHR.done((function(e){t(e)})),i.jqXHR.fail((function(e){var t;null===(t=i._settings)||void 0===t||t.fail(e)})),i.jqXHR.always((function(){i.jqXHR=null}))}),this._settings.requestThrottling)},t}(function(){function e(e){this._settings=$.extend(!0,{},this.getDefaults(),e)}return e.prototype.getDefaults=function(){return{}},e.prototype.getResults=function(e,t,i){return this.results},e.prototype.search=function(e,t){t(this.getResults())},e}()),r=function(){function e(e,t,i,n){this.initialized=!1,this.shown=!1,this.items=[],this.ddMouseover=!1,this._$el=e,this.formatItem=t,this.autoSelect=i,this.noResultsText=n}return e.prototype.init=function(){var e=this,t=$.extend({},this._$el.position(),{height:this._$el[0].offsetHeight});this._dd=$("<ul />"),this._dd.addClass("bootstrap-autocomplete dropdown-menu"),this._dd.insertAfter(this._$el),this._dd.css({top:t.top+this._$el.outerHeight(),left:t.left,width:this._$el.outerWidth()}),this._dd.on("click","li",(function(t){var i=$(t.currentTarget).data("item");e.itemSelectedLaunchEvent(i)})),this._dd.on("keyup",(function(t){if(e.shown)return 27===t.which&&(e.hide(),e._$el.focus()),!1})),this._dd.on("mouseenter",(function(t){e.ddMouseover=!0})),this._dd.on("mouseleave",(function(t){e.ddMouseover=!1})),this._dd.on("mouseenter","li",(function(t){e.haveResults&&($(t.currentTarget).closest("ul").find("li.active").removeClass("active"),$(t.currentTarget).addClass("active"),e.mouseover=!0)})),this._dd.on("mouseleave","li",(function(t){e.mouseover=!1})),this.initialized=!0},e.prototype.checkInitialized=function(){this.initialized||this.init()},Object.defineProperty(e.prototype,"isMouseOver",{get:function(){return this.mouseover},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDdMouseOver",{get:function(){return this.ddMouseover},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"haveResults",{get:function(){return this.items.length>0},enumerable:!1,configurable:!0}),e.prototype.focusNextItem=function(e){if(this.haveResults){var t=this._dd.find("li.active"),i=e?t.prev():t.next();0===i.length&&(i=e?this._dd.find("li").last():this._dd.find("li").first()),t.removeClass("active"),i.addClass("active")}},e.prototype.focusPreviousItem=function(){this.focusNextItem(!0)},e.prototype.selectFocusItem=function(){this._dd.find("li.active").trigger("click")},Object.defineProperty(e.prototype,"isItemFocused",{get:function(){return!!(this.isShown()&&this._dd.find("li.active").length>0)},enumerable:!1,configurable:!0}),e.prototype.show=function(){this.shown||(this._dd.dropdown().show(),this.shown=!0)},e.prototype.isShown=function(){return this.shown},e.prototype.hide=function(){this.shown&&(this._dd.dropdown().hide(),this.shown=!1)},e.prototype.updateItems=function(e,t){this.items=e,this.searchText=t,this.refreshItemList()},e.prototype.showMatchedText=function(e,t){var i=e.toLowerCase().indexOf(t.toLowerCase());if(i>-1){var n=i+t.length;return e.slice(0,i)+"<b>"+e.slice(i,n)+"</b>"+e.slice(n)}return e},e.prototype.refreshItemList=function(){var e=this;this.checkInitialized(),this._dd.empty();var t=[];if(this.items.length>0)this.items.forEach((function(i){var n,s,o=e.formatItem(i);"string"==typeof o&&(o={text:o}),n=e.showMatchedText(o.text,e.searchText),s=void 0!==o.html?o.html:n;var r=o.disabled,a=$("<li >");a.append($("<a>").attr("href","#!").html(s)).data("item",i),r&&a.addClass("disabled"),t.push(a)}));else{var i=$("<li >");i.append($("<a>").attr("href","#!").html(this.noResultsText)).addClass("disabled"),t.push(i)}this._dd.append(t)},e.prototype.itemSelectedLaunchEvent=function(e){this._$el.trigger("autocomplete.select",e)},e}(),a=function(){function e(e,t,i,n){this.initialized=!1,this.shown=!1,this.items=[],this.ddMouseover=!1,this._$el=e,this.formatItem=t,this.autoSelect=i,this.noResultsText=n}return e.prototype.getElPos=function(){return $.extend({},this._$el.position(),{height:this._$el[0].offsetHeight})},e.prototype.init=function(){var e=this,t=this.getElPos();this._dd=$("<div />"),this._dd.addClass("bootstrap-autocomplete dropdown-menu"),this._dd.insertAfter(this._$el),this._dd.css({top:t.top+this._$el.outerHeight(),left:t.left,width:this._$el.outerWidth()}),this._dd.on("click",".dropdown-item",(function(t){var i=$(t.currentTarget).data("item");e.itemSelectedLaunchEvent(i),t.preventDefault()})),this._dd.on("keyup",(function(t){if(e.shown)return 27===t.which&&(e.hide(),e._$el.focus()),!1})),this._dd.on("mouseenter",(function(t){e.ddMouseover=!0})),this._dd.on("mouseleave",(function(t){e.ddMouseover=!1})),this._dd.on("mouseenter",".dropdown-item",(function(t){e.haveResults&&($(t.currentTarget).closest("div").find(".dropdown-item.active").removeClass("active"),$(t.currentTarget).addClass("active"),e.mouseover=!0)})),this._dd.on("mouseleave",".dropdown-item",(function(t){e.mouseover=!1})),this.initialized=!0},e.prototype.checkInitialized=function(){this.initialized||this.init()},Object.defineProperty(e.prototype,"isMouseOver",{get:function(){return this.mouseover},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isDdMouseOver",{get:function(){return this.ddMouseover},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"haveResults",{get:function(){return this.items.length>0},enumerable:!1,configurable:!0}),e.prototype.focusNextItem=function(e){if(this.haveResults){var t=this._dd.find(".dropdown-item.active"),i=e?t.prev():t.next();0===i.length&&(i=e?this._dd.find(".dropdown-item").last():this._dd.find(".dropdown-item").first()),t.removeClass("active"),i.addClass("active")}},e.prototype.focusPreviousItem=function(){this.focusNextItem(!0)},e.prototype.selectFocusItem=function(){this._dd.find(".dropdown-item.active").trigger("click")},Object.defineProperty(e.prototype,"isItemFocused",{get:function(){return!!(this._dd&&this.isShown()&&this._dd.find(".dropdown-item.active").length>0)},enumerable:!1,configurable:!0}),e.prototype.show=function(){this.shown||(this.getElPos(),this._dd.addClass("show"),this.shown=!0,this._$el.trigger("autocomplete.dd.shown"))},e.prototype.isShown=function(){return this.shown},e.prototype.hide=function(){this.shown&&(this._dd.removeClass("show"),this.shown=!1,this._$el.trigger("autocomplete.dd.hidden"))},e.prototype.updateItems=function(e,t){this.items=e,this.searchText=t,this.refreshItemList()},e.prototype.showMatchedText=function(e,t){var i=e.toLowerCase().indexOf(t.toLowerCase());if(i>-1){var n=i+t.length;return e.slice(0,i)+"<b>"+e.slice(i,n)+"</b>"+e.slice(n)}return e},e.prototype.refreshItemList=function(){var e=this;this.checkInitialized(),this._dd.empty();var t=[];if(this.items.length>0)this.items.forEach((function(i){var n,s,o=e.formatItem(i);"string"==typeof o&&(o={text:o}),n=e.showMatchedText(o.text,e.searchText),s=void 0!==o.html?o.html:n;var r=o.disabled,a=$("<a >");a.addClass("dropdown-item").css({overflow:"hidden","text-overflow":"ellipsis"}).html(s).data("item",i),r&&a.addClass("disabled"),t.push(a)})),this._dd.append(t),this.show();else if(""===this.noResultsText)this.hide();else{var i=$("<a >");i.addClass("dropdown-item disabled").html(this.noResultsText),t.push(i),this._dd.append(t),this.show()}},e.prototype.itemSelectedLaunchEvent=function(e){this._$el.trigger("autocomplete.select",e)},e}(),l=function(){function e(e,t){this._selectedItem=null,this._defaultValue=null,this._defaultText=null,this._isSelectElement=!1,this._settings={resolver:"ajax",resolverSettings:{},minLength:3,valueKey:"value",formatResult:this.defaultFormatResult,autoSelect:!0,noResultsText:"No results",bootstrapVersion:"auto",preventEnter:!1,events:{typed:null,searchPre:null,search:null,searchPost:null,select:null,focus:null}},this._el=e,this._$el=$(this._el),this._$el.is("select")&&(this._isSelectElement=!0),this.manageInlineDataAttributes(),"object"==typeof t&&(this._settings=$.extend(!0,{},this.getSettings(),t)),this._isSelectElement&&this.convertSelectToText(),this.init()}return e.prototype.manageInlineDataAttributes=function(){var e=this.getSettings();this._$el.data("url")&&(e.resolverSettings.url=this._$el.data("url")),this._$el.data("default-value")&&(this._defaultValue=this._$el.data("default-value")),this._$el.data("default-text")&&(this._defaultText=this._$el.data("default-text")),void 0!==this._$el.data("noresults-text")&&(e.noResultsText=this._$el.data("noresults-text"))},e.prototype.getSettings=function(){return this._settings},e.prototype.getBootstrapVersion=function(){var e;return"auto"===this._settings.bootstrapVersion?e=$.fn.button.Constructor.VERSION.split(".").map(parseInt):"4"===this._settings.bootstrapVersion?e=[4]:"3"===this._settings.bootstrapVersion?e=[3]:(console.error("INVALID value for 'bootstrapVersion' settings property: "+this._settings.bootstrapVersion+" defaulting to 4"),e=[4]),e},e.prototype.convertSelectToText=function(){var t=$("<input>");t.attr("type","hidden"),t.attr("name",this._$el.attr("name")),this._defaultValue&&t.val(this._defaultValue),this._selectHiddenField=t,t.insertAfter(this._$el);var i=$("<input>");i.attr("type","search"),i.attr("name",this._$el.attr("name")+"_text"),i.attr("id",this._$el.attr("id")),i.attr("disabled",this._$el.attr("disabled")),i.attr("placeholder",this._$el.attr("placeholder")),i.attr("autocomplete","off"),i.addClass(this._$el.attr("class")),this._defaultText&&i.val(this._defaultText);var n=this._$el.attr("required");n&&i.attr("required",n),i.data(e.NAME,this),this._$el.replaceWith(i),this._$el=i,this._el=i.get(0)},e.prototype.init=function(){this.bindDefaultEventListeners(),"ajax"===this._settings.resolver&&(this.resolver=new o(this._settings.resolverSettings)),4===this.getBootstrapVersion()[0]?this._dd=new a(this._$el,this._settings.formatResult,this._settings.autoSelect,this._settings.noResultsText):this._dd=new r(this._$el,this._settings.formatResult,this._settings.autoSelect,this._settings.noResultsText)},e.prototype.bindDefaultEventListeners=function(){var e=this;this._$el.on("keydown",(function(t){switch(t.which){case 9:e._dd.isItemFocused?e._dd.selectFocusItem():e._selectedItem||""!==e._$el.val()&&e._$el.trigger("autocomplete.freevalue",e._$el.val()),e._dd.hide();break;case 13:e._dd.isItemFocused?e._dd.selectFocusItem():e._selectedItem||""!==e._$el.val()&&e._$el.trigger("autocomplete.freevalue",e._$el.val()),e._dd.hide(),e._settings.preventEnter&&t.preventDefault();break;case 40:e._dd.focusNextItem();break;case 38:e._dd.focusPreviousItem()}})),this._$el.on("keyup",(function(t){switch(t.which){case 16:case 17:case 18:case 39:case 37:case 36:case 35:case 40:case 38:break;case 13:case 27:e._dd.hide();break;default:e._selectedItem=null;var i=e._$el.val();e.handlerTyped(i)}})),this._$el.on("blur",(function(t){!e._dd.isMouseOver&&e._dd.isDdMouseOver&&e._dd.isShown()?(setTimeout((function(){e._$el.focus()})),e._$el.focus()):e._dd.isMouseOver||(e._isSelectElement?e._dd.isItemFocused?e._dd.selectFocusItem():null!==e._selectedItem&&""!==e._$el.val()?e._$el.trigger("autocomplete.select",e._selectedItem):""!==e._$el.val()&&null!==e._defaultValue?(e._$el.val(e._defaultText),e._selectHiddenField.val(e._defaultValue),e._selectedItem=null,e._$el.trigger("autocomplete.select",e._selectedItem)):(e._$el.val(""),e._selectHiddenField.val(""),e._selectedItem=null,e._$el.trigger("autocomplete.select",e._selectedItem)):null===e._selectedItem&&e._$el.trigger("autocomplete.freevalue",e._$el.val()),e._dd.hide())})),this._$el.on("autocomplete.select",(function(t,i){e._selectedItem=i,e.itemSelectedDefaultHandler(i)})),this._$el.on("paste",(function(t){setTimeout((function(){e._$el.trigger("keyup",t)}),0)}))},e.prototype.handlerTyped=function(e){(null===this._settings.events.typed||(e=this._settings.events.typed(e,this._$el)))&&(e.length>=this._settings.minLength?(this._searchText=e,this.handlerPreSearch()):this._dd.hide())},e.prototype.handlerPreSearch=function(){if(null!==this._settings.events.searchPre){var e=this._settings.events.searchPre(this._searchText,this._$el);if(!e)return;this._searchText=e}this.handlerDoSearch()},e.prototype.handlerDoSearch=function(){var e=this;null!==this._settings.events.search?this._settings.events.search(this._searchText,(function(t){e.postSearchCallback(t)}),this._$el):this.resolver&&this.resolver.search(this._searchText,(function(t){e.postSearchCallback(t)}))},e.prototype.postSearchCallback=function(e){this._settings.events.searchPost&&"boolean"==typeof(e=this._settings.events.searchPost(e,this._$el))&&!e||this.handlerStartShow(e)},e.prototype.handlerStartShow=function(e){this._dd.updateItems(e,this._searchText)},e.prototype.itemSelectedDefaultHandler=function(e){if(null!=e){var t=this._settings.formatResult(e);"string"==typeof t&&(t={text:t}),this._$el.val(t.text),this._isSelectElement&&this._selectHiddenField.val(t.value)}else this._$el.val(""),this._isSelectElement&&this._selectHiddenField.val("");this._selectedItem=e,this._dd.hide()},e.prototype.defaultFormatResult=function(e){return"string"==typeof e?{text:e}:e.text?e:{text:e.toString()}},e.prototype.manageAPI=function(e,t){"set"===e?this.itemSelectedDefaultHandler(t):"clear"===e?this.itemSelectedDefaultHandler(null):"show"===e?this._$el.trigger("keyup"):"updateResolver"===e&&(this.resolver=new o(t))},e.NAME="autoComplete",e}();!function(e,t,i){e.fn[l.NAME]=function(t,i){return this.each((function(){var n;(n=e(this).data(l.NAME))||(n=new l(this,t),e(this).data(l.NAME,n)),n.manageAPI(t,i)}))}}(jQuery,window,document)}])},5577:function(e){e.exports=function(){"use strict";const e="transitionend",t=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let i=e.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),t=i&&"#"!==i?i.trim():null}return t},i=e=>{const i=t(e);return i&&document.querySelector(i)?i:null},n=e=>{const i=t(e);return i?document.querySelector(i):null},s=t=>{t.dispatchEvent(new Event(e))},o=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),r=e=>o(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(e):null,a=(e,t,i)=>{Object.keys(i).forEach((n=>{const s=i[n],r=t[n],a=r&&o(r)?"element":null==(l=r)?`${l}`:{}.toString.call(l).match(/\s([a-z]+)/i)[1].toLowerCase();var l;if(!new RegExp(s).test(a))throw new TypeError(`${e.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)}))},l=e=>!(!o(e)||0===e.getClientRects().length)&&"visible"===getComputedStyle(e).getPropertyValue("visibility"),c=e=>!e||e.nodeType!==Node.ELEMENT_NODE||!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled")),d=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?d(e.parentNode):null},h=()=>{},u=e=>{e.offsetHeight},p=()=>{const{jQuery:e}=window;return e&&!document.body.hasAttribute("data-bs-no-jquery")?e:null},f=[],g=()=>"rtl"===document.documentElement.dir,m=e=>{var t;t=()=>{const t=p();if(t){const i=e.NAME,n=t.fn[i];t.fn[i]=e.jQueryInterface,t.fn[i].Constructor=e,t.fn[i].noConflict=()=>(t.fn[i]=n,e.jQueryInterface)}},"loading"===document.readyState?(f.length||document.addEventListener("DOMContentLoaded",(()=>{f.forEach((e=>e()))})),f.push(t)):t()},v=e=>{"function"==typeof e&&e()},_=(t,i,n=!0)=>{if(!n)return void v(t);const o=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:i}=window.getComputedStyle(e);const n=Number.parseFloat(t),s=Number.parseFloat(i);return n||s?(t=t.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(i))):0})(i)+5;let r=!1;const a=({target:n})=>{n===i&&(r=!0,i.removeEventListener(e,a),v(t))};i.addEventListener(e,a),setTimeout((()=>{r||s(i)}),o)},y=(e,t,i,n)=>{let s=e.indexOf(t);if(-1===s)return e[!i&&n?e.length-1:0];const o=e.length;return s+=i?1:-1,n&&(s=(s+o)%o),e[Math.max(0,Math.min(s,o-1))]},b=/[^.]*(?=\..*)\.|.*/,w=/\..*/,x=/::\d+$/,k={};let C=1;const E={mouseenter:"mouseover",mouseleave:"mouseout"},S=/^(mouseenter|mouseleave)/i,T=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function O(e,t){return t&&`${t}::${C++}`||e.uidEvent||C++}function A(e){const t=O(e);return e.uidEvent=t,k[t]=k[t]||{},k[t]}function D(e,t,i=null){const n=Object.keys(e);for(let s=0,o=n.length;s<o;s++){const o=e[n[s]];if(o.originalHandler===t&&o.delegationSelector===i)return o}return null}function P(e,t,i){const n="string"==typeof t,s=n?i:t;let o=N(e);return T.has(o)||(o=e),[n,s,o]}function j(e,t,i,n,s){if("string"!=typeof t||!e)return;if(i||(i=n,n=null),S.test(t)){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};n?n=e(n):i=e(i)}const[o,r,a]=P(t,i,n),l=A(e),c=l[a]||(l[a]={}),d=D(c,r,o?i:null);if(d)return void(d.oneOff=d.oneOff&&s);const h=O(r,t.replace(b,"")),u=o?function(e,t,i){return function n(s){const o=e.querySelectorAll(t);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(let a=o.length;a--;)if(o[a]===r)return s.delegateTarget=r,n.oneOff&&L.off(e,s.type,t,i),i.apply(r,[s]);return null}}(e,i,n):function(e,t){return function i(n){return n.delegateTarget=e,i.oneOff&&L.off(e,n.type,t),t.apply(e,[n])}}(e,i);u.delegationSelector=o?i:null,u.originalHandler=r,u.oneOff=s,u.uidEvent=h,c[h]=u,e.addEventListener(a,u,o)}function I(e,t,i,n,s){const o=D(t[i],n,s);o&&(e.removeEventListener(i,o,Boolean(s)),delete t[i][o.uidEvent])}function N(e){return e=e.replace(w,""),E[e]||e}const L={on(e,t,i,n){j(e,t,i,n,!1)},one(e,t,i,n){j(e,t,i,n,!0)},off(e,t,i,n){if("string"!=typeof t||!e)return;const[s,o,r]=P(t,i,n),a=r!==t,l=A(e),c=t.startsWith(".");if(void 0!==o){if(!l||!l[r])return;return void I(e,l,r,o,s?i:null)}c&&Object.keys(l).forEach((i=>{!function(e,t,i,n){const s=t[i]||{};Object.keys(s).forEach((o=>{if(o.includes(n)){const n=s[o];I(e,t,i,n.originalHandler,n.delegationSelector)}}))}(e,l,i,t.slice(1))}));const d=l[r]||{};Object.keys(d).forEach((i=>{const n=i.replace(x,"");if(!a||t.includes(n)){const t=d[i];I(e,l,r,t.originalHandler,t.delegationSelector)}}))},trigger(e,t,i){if("string"!=typeof t||!e)return null;const n=p(),s=N(t),o=t!==s,r=T.has(s);let a,l=!0,c=!0,d=!1,h=null;return o&&n&&(a=n.Event(t,i),n(e).trigger(a),l=!a.isPropagationStopped(),c=!a.isImmediatePropagationStopped(),d=a.isDefaultPrevented()),r?(h=document.createEvent("HTMLEvents"),h.initEvent(s,l,!0)):h=new CustomEvent(t,{bubbles:l,cancelable:!0}),void 0!==i&&Object.keys(i).forEach((e=>{Object.defineProperty(h,e,{get:()=>i[e]})})),d&&h.preventDefault(),c&&e.dispatchEvent(h),h.defaultPrevented&&void 0!==a&&a.preventDefault(),h}},H=new Map,M={set(e,t,i){H.has(e)||H.set(e,new Map);const n=H.get(e);n.has(t)||0===n.size?n.set(t,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(e,t)=>H.has(e)&&H.get(e).get(t)||null,remove(e,t){if(!H.has(e))return;const i=H.get(e);i.delete(t),0===i.size&&H.delete(e)}};class R{constructor(e){(e=r(e))&&(this._element=e,M.set(this._element,this.constructor.DATA_KEY,this))}dispose(){M.remove(this._element,this.constructor.DATA_KEY),L.off(this._element,this.constructor.EVENT_KEY),Object.getOwnPropertyNames(this).forEach((e=>{this[e]=null}))}_queueCallback(e,t,i=!0){_(e,t,i)}static getInstance(e){return M.get(r(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.1.3"}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}}const F=(e,t="hide")=>{const i=`click.dismiss${e.EVENT_KEY}`,s=e.NAME;L.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),c(this))return;const o=n(this)||this.closest(`.${s}`);e.getOrCreateInstance(o)[t]()}))};class Y extends R{static get NAME(){return"alert"}close(){if(L.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),L.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=Y.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}F(Y,"close"),m(Y);const z='[data-bs-toggle="button"]';class W extends R{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=W.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}function q(e){return"true"===e||"false"!==e&&(e===Number(e).toString()?Number(e):""===e||"null"===e?null:e)}function $(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}L.on(document,"click.bs.button.data-api",z,(e=>{e.preventDefault();const t=e.target.closest(z);W.getOrCreateInstance(t).toggle()})),m(W);const B={setDataAttribute(e,t,i){e.setAttribute(`data-bs-${$(t)}`,i)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${$(t)}`)},getDataAttributes(e){if(!e)return{};const t={};return Object.keys(e.dataset).filter((e=>e.startsWith("bs"))).forEach((i=>{let n=i.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=q(e.dataset[i])})),t},getDataAttribute:(e,t)=>q(e.getAttribute(`data-bs-${$(t)}`)),offset(e){const t=e.getBoundingClientRect();return{top:t.top+window.pageYOffset,left:t.left+window.pageXOffset}},position:e=>({top:e.offsetTop,left:e.offsetLeft})},U={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const i=[];let n=e.parentNode;for(;n&&n.nodeType===Node.ELEMENT_NODE&&3!==n.nodeType;)n.matches(t)&&i.push(n),n=n.parentNode;return i},prev(e,t){let i=e.previousElementSibling;for(;i;){if(i.matches(t))return[i];i=i.previousElementSibling}return[]},next(e,t){let i=e.nextElementSibling;for(;i;){if(i.matches(t))return[i];i=i.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(", ");return this.find(t,e).filter((e=>!c(e)&&l(e)))}},V="carousel",X={interval:5e3,keyboard:!0,slide:!1,pause:"hover",wrap:!0,touch:!0},K={interval:"(number|boolean)",keyboard:"boolean",slide:"(boolean|string)",pause:"(string|boolean)",wrap:"boolean",touch:"boolean"},J="next",G="prev",Q="left",Z="right",ee={ArrowLeft:Z,ArrowRight:Q},te="slid.bs.carousel",ie="active",ne=".active.carousel-item";class se extends R{constructor(e,t){super(e),this._items=null,this._interval=null,this._activeElement=null,this._isPaused=!1,this._isSliding=!1,this.touchTimeout=null,this.touchStartX=0,this.touchDeltaX=0,this._config=this._getConfig(t),this._indicatorsElement=U.findOne(".carousel-indicators",this._element),this._touchSupported="ontouchstart"in document.documentElement||navigator.maxTouchPoints>0,this._pointerEvent=Boolean(window.PointerEvent),this._addEventListeners()}static get Default(){return X}static get NAME(){return V}next(){this._slide(J)}nextWhenVisible(){!document.hidden&&l(this._element)&&this.next()}prev(){this._slide(G)}pause(e){e||(this._isPaused=!0),U.findOne(".carousel-item-next, .carousel-item-prev",this._element)&&(s(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null}cycle(e){e||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config&&this._config.interval&&!this._isPaused&&(this._updateInterval(),this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))}to(e){this._activeElement=U.findOne(ne,this._element);const t=this._getItemIndex(this._activeElement);if(e>this._items.length-1||e<0)return;if(this._isSliding)return void L.one(this._element,te,(()=>this.to(e)));if(t===e)return this.pause(),void this.cycle();const i=e>t?J:G;this._slide(i,this._items[e])}_getConfig(e){return e={...X,...B.getDataAttributes(this._element),..."object"==typeof e?e:{}},a(V,e,K),e}_handleSwipe(){const e=Math.abs(this.touchDeltaX);if(e<=40)return;const t=e/this.touchDeltaX;this.touchDeltaX=0,t&&this._slide(t>0?Z:Q)}_addEventListeners(){this._config.keyboard&&L.on(this._element,"keydown.bs.carousel",(e=>this._keydown(e))),"hover"===this._config.pause&&(L.on(this._element,"mouseenter.bs.carousel",(e=>this.pause(e))),L.on(this._element,"mouseleave.bs.carousel",(e=>this.cycle(e)))),this._config.touch&&this._touchSupported&&this._addTouchEventListeners()}_addTouchEventListeners(){const e=e=>this._pointerEvent&&("pen"===e.pointerType||"touch"===e.pointerType),t=t=>{e(t)?this.touchStartX=t.clientX:this._pointerEvent||(this.touchStartX=t.touches[0].clientX)},i=e=>{this.touchDeltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this.touchStartX},n=t=>{e(t)&&(this.touchDeltaX=t.clientX-this.touchStartX),this._handleSwipe(),"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((e=>this.cycle(e)),500+this._config.interval))};U.find(".carousel-item img",this._element).forEach((e=>{L.on(e,"dragstart.bs.carousel",(e=>e.preventDefault()))})),this._pointerEvent?(L.on(this._element,"pointerdown.bs.carousel",(e=>t(e))),L.on(this._element,"pointerup.bs.carousel",(e=>n(e))),this._element.classList.add("pointer-event")):(L.on(this._element,"touchstart.bs.carousel",(e=>t(e))),L.on(this._element,"touchmove.bs.carousel",(e=>i(e))),L.on(this._element,"touchend.bs.carousel",(e=>n(e))))}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ee[e.key];t&&(e.preventDefault(),this._slide(t))}_getItemIndex(e){return this._items=e&&e.parentNode?U.find(".carousel-item",e.parentNode):[],this._items.indexOf(e)}_getItemByOrder(e,t){const i=e===J;return y(this._items,t,i,this._config.wrap)}_triggerSlideEvent(e,t){const i=this._getItemIndex(e),n=this._getItemIndex(U.findOne(ne,this._element));return L.trigger(this._element,"slide.bs.carousel",{relatedTarget:e,direction:t,from:n,to:i})}_setActiveIndicatorElement(e){if(this._indicatorsElement){const t=U.findOne(".active",this._indicatorsElement);t.classList.remove(ie),t.removeAttribute("aria-current");const i=U.find("[data-bs-target]",this._indicatorsElement);for(let t=0;t<i.length;t++)if(Number.parseInt(i[t].getAttribute("data-bs-slide-to"),10)===this._getItemIndex(e)){i[t].classList.add(ie),i[t].setAttribute("aria-current","true");break}}}_updateInterval(){const e=this._activeElement||U.findOne(ne,this._element);if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);t?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=t):this._config.interval=this._config.defaultInterval||this._config.interval}_slide(e,t){const i=this._directionToOrder(e),n=U.findOne(ne,this._element),s=this._getItemIndex(n),o=t||this._getItemByOrder(i,n),r=this._getItemIndex(o),a=Boolean(this._interval),l=i===J,c=l?"carousel-item-start":"carousel-item-end",d=l?"carousel-item-next":"carousel-item-prev",h=this._orderToDirection(i);if(o&&o.classList.contains(ie))return void(this._isSliding=!1);if(this._isSliding)return;if(this._triggerSlideEvent(o,h).defaultPrevented)return;if(!n||!o)return;this._isSliding=!0,a&&this.pause(),this._setActiveIndicatorElement(o),this._activeElement=o;const p=()=>{L.trigger(this._element,te,{relatedTarget:o,direction:h,from:s,to:r})};if(this._element.classList.contains("slide")){o.classList.add(d),u(o),n.classList.add(c),o.classList.add(c);const e=()=>{o.classList.remove(c,d),o.classList.add(ie),n.classList.remove(ie,d,c),this._isSliding=!1,setTimeout(p,0)};this._queueCallback(e,n,!0)}else n.classList.remove(ie),o.classList.add(ie),this._isSliding=!1,p();a&&this.cycle()}_directionToOrder(e){return[Z,Q].includes(e)?g()?e===Q?G:J:e===Q?J:G:e}_orderToDirection(e){return[J,G].includes(e)?g()?e===G?Q:Z:e===G?Z:Q:e}static carouselInterface(e,t){const i=se.getOrCreateInstance(e,t);let{_config:n}=i;"object"==typeof t&&(n={...n,...t});const s="string"==typeof t?t:n.slide;if("number"==typeof t)i.to(t);else if("string"==typeof s){if(void 0===i[s])throw new TypeError(`No method named "${s}"`);i[s]()}else n.interval&&n.ride&&(i.pause(),i.cycle())}static jQueryInterface(e){return this.each((function(){se.carouselInterface(this,e)}))}static dataApiClickHandler(e){const t=n(this);if(!t||!t.classList.contains("carousel"))return;const i={...B.getDataAttributes(t),...B.getDataAttributes(this)},s=this.getAttribute("data-bs-slide-to");s&&(i.interval=!1),se.carouselInterface(t,i),s&&se.getInstance(t).to(s),e.preventDefault()}}L.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",se.dataApiClickHandler),L.on(window,"load.bs.carousel.data-api",(()=>{const e=U.find('[data-bs-ride="carousel"]');for(let t=0,i=e.length;t<i;t++)se.carouselInterface(e[t],se.getInstance(e[t]))})),m(se);const oe="collapse",re="bs.collapse",ae={toggle:!0,parent:null},le={toggle:"boolean",parent:"(null|element)"},ce="show",de="collapse",he="collapsing",ue="collapsed",pe=":scope .collapse .collapse",fe='[data-bs-toggle="collapse"]';class ge extends R{constructor(e,t){super(e),this._isTransitioning=!1,this._config=this._getConfig(t),this._triggerArray=[];const n=U.find(fe);for(let e=0,t=n.length;e<t;e++){const t=n[e],s=i(t),o=U.find(s).filter((e=>e===this._element));null!==s&&o.length&&(this._selector=s,this._triggerArray.push(t))}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return ae}static get NAME(){return oe}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e,t=[];if(this._config.parent){const e=U.find(pe,this._config.parent);t=U.find(".collapse.show, .collapse.collapsing",this._config.parent).filter((t=>!e.includes(t)))}const i=U.findOne(this._selector);if(t.length){const n=t.find((e=>i!==e));if(e=n?ge.getInstance(n):null,e&&e._isTransitioning)return}if(L.trigger(this._element,"show.bs.collapse").defaultPrevented)return;t.forEach((t=>{i!==t&&ge.getOrCreateInstance(t,{toggle:!1}).hide(),e||M.set(t,re,null)}));const n=this._getDimension();this._element.classList.remove(de),this._element.classList.add(he),this._element.style[n]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const s=`scroll${n[0].toUpperCase()+n.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(he),this._element.classList.add(de,ce),this._element.style[n]="",L.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[n]=`${this._element[s]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(L.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,u(this._element),this._element.classList.add(he),this._element.classList.remove(de,ce);const t=this._triggerArray.length;for(let e=0;e<t;e++){const t=this._triggerArray[e],i=n(t);i&&!this._isShown(i)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(he),this._element.classList.add(de),L.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(ce)}_getConfig(e){return(e={...ae,...B.getDataAttributes(this._element),...e}).toggle=Boolean(e.toggle),e.parent=r(e.parent),a(oe,e,le),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=U.find(pe,this._config.parent);U.find(fe,this._config.parent).filter((t=>!e.includes(t))).forEach((e=>{const t=n(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}))}_addAriaAndCollapsedClass(e,t){e.length&&e.forEach((e=>{t?e.classList.remove(ue):e.classList.add(ue),e.setAttribute("aria-expanded",t)}))}static jQueryInterface(e){return this.each((function(){const t={};"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1);const i=ge.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e]()}}))}}L.on(document,"click.bs.collapse.data-api",fe,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();const t=i(this);U.find(t).forEach((e=>{ge.getOrCreateInstance(e,{toggle:!1}).toggle()}))})),m(ge);var me="top",ve="bottom",_e="right",ye="left",be="auto",we=[me,ve,_e,ye],xe="start",ke="end",Ce="clippingParents",Ee="viewport",Se="popper",Te="reference",Oe=we.reduce((function(e,t){return e.concat([t+"-"+xe,t+"-"+ke])}),[]),Ae=[].concat(we,[be]).reduce((function(e,t){return e.concat([t,t+"-"+xe,t+"-"+ke])}),[]),De="beforeRead",Pe="read",je="afterRead",Ie="beforeMain",Ne="main",Le="afterMain",He="beforeWrite",Me="write",Re="afterWrite",Fe=[De,Pe,je,Ie,Ne,Le,He,Me,Re];function Ye(e){return e?(e.nodeName||"").toLowerCase():null}function ze(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function We(e){return e instanceof ze(e).Element||e instanceof Element}function qe(e){return e instanceof ze(e).HTMLElement||e instanceof HTMLElement}function $e(e){return"undefined"!=typeof ShadowRoot&&(e instanceof ze(e).ShadowRoot||e instanceof ShadowRoot)}const Be={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];qe(s)&&Ye(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach((function(e){var n=t.elements[e],s=t.attributes[e]||{},o=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce((function(e,t){return e[t]="",e}),{});qe(n)&&Ye(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(e){n.removeAttribute(e)})))}))}},requires:["computeStyles"]};function Ue(e){return e.split("-")[0]}function Ve(e,t){var i=e.getBoundingClientRect();return{width:i.width/1,height:i.height/1,top:i.top/1,right:i.right/1,bottom:i.bottom/1,left:i.left/1,x:i.left/1,y:i.top/1}}function Xe(e){var t=Ve(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function Ke(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&$e(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Je(e){return ze(e).getComputedStyle(e)}function Ge(e){return["table","td","th"].indexOf(Ye(e))>=0}function Qe(e){return((We(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ze(e){return"html"===Ye(e)?e:e.assignedSlot||e.parentNode||($e(e)?e.host:null)||Qe(e)}function et(e){return qe(e)&&"fixed"!==Je(e).position?e.offsetParent:null}function tt(e){for(var t=ze(e),i=et(e);i&&Ge(i)&&"static"===Je(i).position;)i=et(i);return i&&("html"===Ye(i)||"body"===Ye(i)&&"static"===Je(i).position)?t:i||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&qe(e)&&"fixed"===Je(e).position)return null;for(var i=Ze(e);qe(i)&&["html","body"].indexOf(Ye(i))<0;){var n=Je(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}function it(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var nt=Math.max,st=Math.min,ot=Math.round;function rt(e,t,i){return nt(e,st(t,i))}function at(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function lt(e,t){return t.reduce((function(t,i){return t[i]=e,t}),{})}const ct={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=Ue(i.placement),l=it(a),c=[ye,_e].indexOf(a)>=0?"height":"width";if(o&&r){var d=function(e,t){return at("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:lt(e,we))}(s.padding,i),h=Xe(o),u="y"===l?me:ye,p="y"===l?ve:_e,f=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],g=r[l]-i.rects.reference[l],m=tt(o),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,_=f/2-g/2,y=d[u],b=v-h[c]-d[p],w=v/2-h[c]/2+_,x=rt(y,w,b),k=l;i.modifiersData[n]=((t={})[k]=x,t.centerOffset=x-w,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Ke(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dt(e){return e.split("-")[1]}var ht={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ut(e){var t,i=e.popper,n=e.popperRect,s=e.placement,o=e.variation,r=e.offsets,a=e.position,l=e.gpuAcceleration,c=e.adaptive,d=e.roundOffsets,h=!0===d?function(e){var t=e.x,i=e.y,n=window.devicePixelRatio||1;return{x:ot(ot(t*n)/n)||0,y:ot(ot(i*n)/n)||0}}(r):"function"==typeof d?d(r):r,u=h.x,p=void 0===u?0:u,f=h.y,g=void 0===f?0:f,m=r.hasOwnProperty("x"),v=r.hasOwnProperty("y"),_=ye,y=me,b=window;if(c){var w=tt(i),x="clientHeight",k="clientWidth";w===ze(i)&&"static"!==Je(w=Qe(i)).position&&"absolute"===a&&(x="scrollHeight",k="scrollWidth"),s!==me&&(s!==ye&&s!==_e||o!==ke)||(y=ve,g-=w[x]-n.height,g*=l?1:-1),s!==ye&&(s!==me&&s!==ve||o!==ke)||(_=_e,p-=w[k]-n.width,p*=l?1:-1)}var C,E=Object.assign({position:a},c&&ht);return l?Object.assign({},E,((C={})[y]=v?"0":"",C[_]=m?"0":"",C.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",C)):Object.assign({},E,((t={})[y]=v?g+"px":"",t[_]=m?p+"px":"",t.transform="",t))}const pt={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:Ue(t.placement),variation:dt(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ut(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ut(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var ft={passive:!0};const gt={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=ze(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&c.forEach((function(e){e.addEventListener("scroll",i.update,ft)})),a&&l.addEventListener("resize",i.update,ft),function(){o&&c.forEach((function(e){e.removeEventListener("scroll",i.update,ft)})),a&&l.removeEventListener("resize",i.update,ft)}},data:{}};var mt={left:"right",right:"left",bottom:"top",top:"bottom"};function vt(e){return e.replace(/left|right|bottom|top/g,(function(e){return mt[e]}))}var _t={start:"end",end:"start"};function yt(e){return e.replace(/start|end/g,(function(e){return _t[e]}))}function bt(e){var t=ze(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wt(e){return Ve(Qe(e)).left+bt(e).scrollLeft}function xt(e){var t=Je(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function kt(e){return["html","body","#document"].indexOf(Ye(e))>=0?e.ownerDocument.body:qe(e)&&xt(e)?e:kt(Ze(e))}function Ct(e,t){var i;void 0===t&&(t=[]);var n=kt(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),o=ze(n),r=s?[o].concat(o.visualViewport||[],xt(n)?n:[]):n,a=t.concat(r);return s?a:a.concat(Ct(Ze(r)))}function Et(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function St(e,t){return t===Ee?Et(function(e){var t=ze(e),i=Qe(e),n=t.visualViewport,s=i.clientWidth,o=i.clientHeight,r=0,a=0;return n&&(s=n.width,o=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(r=n.offsetLeft,a=n.offsetTop)),{width:s,height:o,x:r+wt(e),y:a}}(e)):qe(t)?function(e){var t=Ve(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):Et(function(e){var t,i=Qe(e),n=bt(e),s=null==(t=e.ownerDocument)?void 0:t.body,o=nt(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=nt(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+wt(e),l=-n.scrollTop;return"rtl"===Je(s||i).direction&&(a+=nt(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(Qe(e)))}function Tt(e,t,i){var n="clippingParents"===t?function(e){var t=Ct(Ze(e)),i=["absolute","fixed"].indexOf(Je(e).position)>=0&&qe(e)?tt(e):e;return We(i)?t.filter((function(e){return We(e)&&Ke(e,i)&&"body"!==Ye(e)})):[]}(e):[].concat(t),s=[].concat(n,[i]),o=s[0],r=s.reduce((function(t,i){var n=St(e,i);return t.top=nt(n.top,t.top),t.right=st(n.right,t.right),t.bottom=st(n.bottom,t.bottom),t.left=nt(n.left,t.left),t}),St(e,o));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}function Ot(e){var t,i=e.reference,n=e.element,s=e.placement,o=s?Ue(s):null,r=s?dt(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case me:t={x:a,y:i.y-n.height};break;case ve:t={x:a,y:i.y+i.height};break;case _e:t={x:i.x+i.width,y:l};break;case ye:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=o?it(o):null;if(null!=c){var d="y"===c?"height":"width";switch(r){case xe:t[c]=t[c]-(i[d]/2-n[d]/2);break;case ke:t[c]=t[c]+(i[d]/2-n[d]/2)}}return t}function At(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,o=i.boundary,r=void 0===o?Ce:o,a=i.rootBoundary,l=void 0===a?Ee:a,c=i.elementContext,d=void 0===c?Se:c,h=i.altBoundary,u=void 0!==h&&h,p=i.padding,f=void 0===p?0:p,g=at("number"!=typeof f?f:lt(f,we)),m=d===Se?Te:Se,v=e.rects.popper,_=e.elements[u?m:d],y=Tt(We(_)?_:_.contextElement||Qe(e.elements.popper),r,l),b=Ve(e.elements.reference),w=Ot({reference:b,element:v,strategy:"absolute",placement:s}),x=Et(Object.assign({},v,w)),k=d===Se?x:b,C={top:y.top-k.top+g.top,bottom:k.bottom-y.bottom+g.bottom,left:y.left-k.left+g.left,right:k.right-y.right+g.right},E=e.modifiersData.offset;if(d===Se&&E){var S=E[s];Object.keys(C).forEach((function(e){var t=[_e,ve].indexOf(e)>=0?1:-1,i=[me,ve].indexOf(e)>=0?"y":"x";C[e]+=S[i]*t}))}return C}function Dt(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Ae:l,d=dt(n),h=d?a?Oe:Oe.filter((function(e){return dt(e)===d})):we,u=h.filter((function(e){return c.indexOf(e)>=0}));0===u.length&&(u=h);var p=u.reduce((function(t,i){return t[i]=At(e,{placement:i,boundary:s,rootBoundary:o,padding:r})[Ue(i)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}const Pt={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,d=i.boundary,h=i.rootBoundary,u=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=t.options.placement,v=Ue(m),_=l||(v!==m&&f?function(e){if(Ue(e)===be)return[];var t=vt(e);return[yt(e),t,yt(t)]}(m):[vt(m)]),y=[m].concat(_).reduce((function(e,i){return e.concat(Ue(i)===be?Dt(t,{placement:i,boundary:d,rootBoundary:h,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)}),[]),b=t.rects.reference,w=t.rects.popper,x=new Map,k=!0,C=y[0],E=0;E<y.length;E++){var S=y[E],T=Ue(S),O=dt(S)===xe,A=[me,ve].indexOf(T)>=0,D=A?"width":"height",P=At(t,{placement:S,boundary:d,rootBoundary:h,altBoundary:u,padding:c}),j=A?O?_e:ye:O?ve:me;b[D]>w[D]&&(j=vt(j));var I=vt(j),N=[];if(o&&N.push(P[T]<=0),a&&N.push(P[j]<=0,P[I]<=0),N.every((function(e){return e}))){C=S,k=!1;break}x.set(S,N)}if(k)for(var L=function(e){var t=y.find((function(t){var i=x.get(t);if(i)return i.slice(0,e).every((function(e){return e}))}));if(t)return C=t,"break"},H=f?3:1;H>0&&"break"!==L(H);H--);t.placement!==C&&(t.modifiersData[n]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function jt(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function It(e){return[me,_e,ve,ye].some((function(t){return e[t]>=0}))}const Nt={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,r=At(t,{elementContext:"reference"}),a=At(t,{altBoundary:!0}),l=jt(r,n),c=jt(a,s,o),d=It(l),h=It(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:d,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":h})}};const Lt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,o=void 0===s?[0,0]:s,r=Ae.reduce((function(e,i){return e[i]=function(e,t,i){var n=Ue(e),s=[ye,me].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[ye,_e].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,t.rects,o),e}),{}),a=r[t.placement],l=a.x,c=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=r}};const Ht={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Ot({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};const Mt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,d=i.altBoundary,h=i.padding,u=i.tether,p=void 0===u||u,f=i.tetherOffset,g=void 0===f?0:f,m=At(t,{boundary:l,rootBoundary:c,padding:h,altBoundary:d}),v=Ue(t.placement),_=dt(t.placement),y=!_,b=it(v),w="x"===b?"y":"x",x=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,S={x:0,y:0};if(x){if(o||a){var T="y"===b?me:ye,O="y"===b?ve:_e,A="y"===b?"height":"width",D=x[b],P=x[b]+m[T],j=x[b]-m[O],I=p?-C[A]/2:0,N=_===xe?k[A]:C[A],L=_===xe?-C[A]:-k[A],H=t.elements.arrow,M=p&&H?Xe(H):{width:0,height:0},R=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=R[T],Y=R[O],z=rt(0,k[A],M[A]),W=y?k[A]/2-I-z-F-E:N-z-F-E,q=y?-k[A]/2+I+z+Y+E:L+z+Y+E,$=t.elements.arrow&&tt(t.elements.arrow),B=$?"y"===b?$.clientTop||0:$.clientLeft||0:0,U=t.modifiersData.offset?t.modifiersData.offset[t.placement][b]:0,V=x[b]+W-U-B,X=x[b]+q-U;if(o){var K=rt(p?st(P,V):P,D,p?nt(j,X):j);x[b]=K,S[b]=K-D}if(a){var J="x"===b?me:ye,G="x"===b?ve:_e,Q=x[w],Z=Q+m[J],ee=Q-m[G],te=rt(p?st(Z,V):Z,Q,p?nt(ee,X):ee);x[w]=te,S[w]=te-Q}}t.modifiersData[n]=S}},requiresIfExists:["offset"]};function Rt(e,t,i){void 0===i&&(i=!1);var n=qe(t);qe(t)&&function(e){var t=e.getBoundingClientRect(),i=t.width/e.offsetWidth||1,n=t.height/e.offsetHeight||1}(t);var s,o,r=Qe(t),a=Ve(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!i)&&(("body"!==Ye(t)||xt(r))&&(l=(s=t)!==ze(s)&&qe(s)?{scrollLeft:(o=s).scrollLeft,scrollTop:o.scrollTop}:bt(s)),qe(t)?((c=Ve(t)).x+=t.clientLeft,c.y+=t.clientTop):r&&(c.x=wt(r))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Ft(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}})),n.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){i.has(e.name)||s(e)})),n}var Yt={placement:"bottom",modifiers:[],strategy:"absolute"};function zt(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function Wt(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,o=void 0===s?Yt:s;return function(e,t,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},Yt,o),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,d={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;h(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:We(e)?Ct(e):e.contextElement?Ct(e.contextElement):[],popper:Ct(t)};var r,c,u=function(e){var t=Ft(e);return Fe.reduce((function(e,i){return e.concat(t.filter((function(e){return e.phase===i})))}),[])}((r=[].concat(n,a.options.modifiers),c=r.reduce((function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e}),{}),Object.keys(c).map((function(e){return c[e]}))));return a.orderedModifiers=u.filter((function(e){return e.enabled})),a.orderedModifiers.forEach((function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var o=s({state:a,name:t,instance:d,options:n}),r=function(){};l.push(o||r)}})),d.update()},forceUpdate:function(){if(!c){var e=a.elements,t=e.reference,i=e.popper;if(zt(t,i)){a.rects={reference:Rt(t,tt(i),"fixed"===a.options.strategy),popper:Xe(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(e){return a.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,h=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:h,instance:d})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(e){d.forceUpdate(),e(a)}))},function(){return r||(r=new Promise((function(e){Promise.resolve().then((function(){r=void 0,e(s())}))}))),r}),destroy:function(){h(),c=!0}};if(!zt(e,t))return d;function h(){l.forEach((function(e){return e()})),l=[]}return d.setOptions(i).then((function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)})),d}}var qt=Wt(),$t=Wt({defaultModifiers:[gt,Ht,pt,Be]}),Bt=Wt({defaultModifiers:[gt,Ht,pt,Be,Lt,Pt,Mt,ct,Nt]});const Ut=Object.freeze({__proto__:null,popperGenerator:Wt,detectOverflow:At,createPopperBase:qt,createPopper:Bt,createPopperLite:$t,top:me,bottom:ve,right:_e,left:ye,auto:be,basePlacements:we,start:xe,end:ke,clippingParents:Ce,viewport:Ee,popper:Se,reference:Te,variationPlacements:Oe,placements:Ae,beforeRead:De,read:Pe,afterRead:je,beforeMain:Ie,main:Ne,afterMain:Le,beforeWrite:He,write:Me,afterWrite:Re,modifierPhases:Fe,applyStyles:Be,arrow:ct,computeStyles:pt,eventListeners:gt,flip:Pt,hide:Nt,offset:Lt,popperOffsets:Ht,preventOverflow:Mt}),Vt="dropdown",Xt="Escape",Kt="Space",Jt="ArrowUp",Gt="ArrowDown",Qt=new RegExp("ArrowUp|ArrowDown|Escape"),Zt="click.bs.dropdown.data-api",ei="keydown.bs.dropdown.data-api",ti="show",ii='[data-bs-toggle="dropdown"]',ni=".dropdown-menu",si=g()?"top-end":"top-start",oi=g()?"top-start":"top-end",ri=g()?"bottom-end":"bottom-start",ai=g()?"bottom-start":"bottom-end",li=g()?"left-start":"right-start",ci=g()?"right-start":"left-start",di={offset:[0,2],boundary:"clippingParents",reference:"toggle",display:"dynamic",popperConfig:null,autoClose:!0},hi={offset:"(array|string|function)",boundary:"(string|element)",reference:"(string|element|object)",display:"string",popperConfig:"(null|object|function)",autoClose:"(boolean|string)"};class ui extends R{constructor(e,t){super(e),this._popper=null,this._config=this._getConfig(t),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar()}static get Default(){return di}static get DefaultType(){return hi}static get NAME(){return Vt}toggle(){return this._isShown()?this.hide():this.show()}show(){if(c(this._element)||this._isShown(this._menu))return;const e={relatedTarget:this._element};if(L.trigger(this._element,"show.bs.dropdown",e).defaultPrevented)return;const t=ui.getParentFromElement(this._element);this._inNavbar?B.setDataAttribute(this._menu,"popper","none"):this._createPopper(t),"ontouchstart"in document.documentElement&&!t.closest(".navbar-nav")&&[].concat(...document.body.children).forEach((e=>L.on(e,"mouseover",h))),this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(ti),this._element.classList.add(ti),L.trigger(this._element,"shown.bs.dropdown",e)}hide(){if(c(this._element)||!this._isShown(this._menu))return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){L.trigger(this._element,"hide.bs.dropdown",e).defaultPrevented||("ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>L.off(e,"mouseover",h))),this._popper&&this._popper.destroy(),this._menu.classList.remove(ti),this._element.classList.remove(ti),this._element.setAttribute("aria-expanded","false"),B.removeDataAttribute(this._menu,"popper"),L.trigger(this._element,"hidden.bs.dropdown",e))}_getConfig(e){if(e={...this.constructor.Default,...B.getDataAttributes(this._element),...e},a(Vt,e,this.constructor.DefaultType),"object"==typeof e.reference&&!o(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${Vt.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(e){if(void 0===Ut)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=e:o(this._config.reference)?t=r(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const i=this._getPopperConfig(),n=i.modifiers.find((e=>"applyStyles"===e.name&&!1===e.enabled));this._popper=Bt(t,this._menu,i),n&&B.setDataAttribute(this._menu,"popper","static")}_isShown(e=this._element){return e.classList.contains(ti)}_getMenuElement(){return U.next(this._element,ni)[0]}_getPlacement(){const e=this._element.parentNode;if(e.classList.contains("dropend"))return li;if(e.classList.contains("dropstart"))return ci;const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?oi:si:t?ai:ri}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return"static"===this._config.display&&(e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_selectMenuItem({key:e,target:t}){const i=U.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter(l);i.length&&y(i,t,e===Gt,!i.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=ui.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(e&&(2===e.button||"keyup"===e.type&&"Tab"!==e.key))return;const t=U.find(ii);for(let i=0,n=t.length;i<n;i++){const n=ui.getInstance(t[i]);if(!n||!1===n._config.autoClose)continue;if(!n._isShown())continue;const s={relatedTarget:n._element};if(e){const t=e.composedPath(),i=t.includes(n._menu);if(t.includes(n._element)||"inside"===n._config.autoClose&&!i||"outside"===n._config.autoClose&&i)continue;if(n._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;"click"===e.type&&(s.clickEvent=e)}n._completeHide(s)}}static getParentFromElement(e){return n(e)||e.parentNode}static dataApiKeydownHandler(e){if(/input|textarea/i.test(e.target.tagName)?e.key===Kt||e.key!==Xt&&(e.key!==Gt&&e.key!==Jt||e.target.closest(ni)):!Qt.test(e.key))return;const t=this.classList.contains(ti);if(!t&&e.key===Xt)return;if(e.preventDefault(),e.stopPropagation(),c(this))return;const i=this.matches(ii)?this:U.prev(this,ii)[0],n=ui.getOrCreateInstance(i);if(e.key!==Xt)return e.key===Jt||e.key===Gt?(t||n.show(),void n._selectMenuItem(e)):void(t&&e.key!==Kt||ui.clearMenus());n.hide()}}L.on(document,ei,ii,ui.dataApiKeydownHandler),L.on(document,ei,ni,ui.dataApiKeydownHandler),L.on(document,Zt,ui.clearMenus),L.on(document,"keyup.bs.dropdown.data-api",ui.clearMenus),L.on(document,Zt,ii,(function(e){e.preventDefault(),ui.getOrCreateInstance(this).toggle()})),m(ui);const pi=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",fi=".sticky-top";class gi{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,"paddingRight",(t=>t+e)),this._setElementAttributes(pi,"paddingRight",(t=>t+e)),this._setElementAttributes(fi,"marginRight",(t=>t-e))}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,i){const n=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+n)return;this._saveInitialAttribute(e,t);const s=window.getComputedStyle(e)[t];e.style[t]=`${i(Number.parseFloat(s))}px`}))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,"paddingRight"),this._resetElementAttributes(pi,"paddingRight"),this._resetElementAttributes(fi,"marginRight")}_saveInitialAttribute(e,t){const i=e.style[t];i&&B.setDataAttribute(e,t,i)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const i=B.getDataAttribute(e,t);void 0===i?e.style.removeProperty(t):(B.removeDataAttribute(e,t),e.style[t]=i)}))}_applyManipulationCallback(e,t){o(e)?t(e):U.find(e,this._element).forEach(t)}isOverflowing(){return this.getWidth()>0}}const mi={className:"modal-backdrop",isVisible:!0,isAnimated:!1,rootElement:"body",clickCallback:null},vi={className:"string",isVisible:"boolean",isAnimated:"boolean",rootElement:"(element|string)",clickCallback:"(function|null)"},_i="backdrop",yi="show",bi="mousedown.bs.backdrop";class wi{constructor(e){this._config=this._getConfig(e),this._isAppended=!1,this._element=null}show(e){this._config.isVisible?(this._append(),this._config.isAnimated&&u(this._getElement()),this._getElement().classList.add(yi),this._emulateAnimation((()=>{v(e)}))):v(e)}hide(e){this._config.isVisible?(this._getElement().classList.remove(yi),this._emulateAnimation((()=>{this.dispose(),v(e)}))):v(e)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_getConfig(e){return(e={...mi,..."object"==typeof e?e:{}}).rootElement=r(e.rootElement),a(_i,e,vi),e}_append(){this._isAppended||(this._config.rootElement.append(this._getElement()),L.on(this._getElement(),bi,(()=>{v(this._config.clickCallback)})),this._isAppended=!0)}dispose(){this._isAppended&&(L.off(this._element,bi),this._element.remove(),this._isAppended=!1)}_emulateAnimation(e){_(e,this._getElement(),this._config.isAnimated)}}const xi={trapElement:null,autofocus:!0},ki={trapElement:"element",autofocus:"boolean"},Ci=".bs.focustrap",Ei="backward";class Si{constructor(e){this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}activate(){const{trapElement:e,autofocus:t}=this._config;this._isActive||(t&&e.focus(),L.off(document,Ci),L.on(document,"focusin.bs.focustrap",(e=>this._handleFocusin(e))),L.on(document,"keydown.tab.bs.focustrap",(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,L.off(document,Ci))}_handleFocusin(e){const{target:t}=e,{trapElement:i}=this._config;if(t===document||t===i||i.contains(t))return;const n=U.focusableChildren(i);0===n.length?i.focus():this._lastTabNavDirection===Ei?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?Ei:"forward")}_getConfig(e){return e={...xi,..."object"==typeof e?e:{}},a("focustrap",e,ki),e}}const Ti="modal",Oi=".bs.modal",Ai="Escape",Di={backdrop:!0,keyboard:!0,focus:!0},Pi={backdrop:"(boolean|string)",keyboard:"boolean",focus:"boolean"},ji="hidden.bs.modal",Ii="show.bs.modal",Ni="resize.bs.modal",Li="click.dismiss.bs.modal",Hi="keydown.dismiss.bs.modal",Mi="mousedown.dismiss.bs.modal",Ri="modal-open",Fi="show",Yi="modal-static";class zi extends R{constructor(e,t){super(e),this._config=this._getConfig(t),this._dialog=U.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._ignoreBackdropClick=!1,this._isTransitioning=!1,this._scrollBar=new gi}static get Default(){return Di}static get NAME(){return Ti}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||L.trigger(this._element,Ii,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isAnimated()&&(this._isTransitioning=!0),this._scrollBar.hide(),document.body.classList.add(Ri),this._adjustDialog(),this._setEscapeEvent(),this._setResizeEvent(),L.on(this._dialog,Mi,(()=>{L.one(this._element,"mouseup.dismiss.bs.modal",(e=>{e.target===this._element&&(this._ignoreBackdropClick=!0)}))})),this._showBackdrop((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;if(L.trigger(this._element,"hide.bs.modal").defaultPrevented)return;this._isShown=!1;const e=this._isAnimated();e&&(this._isTransitioning=!0),this._setEscapeEvent(),this._setResizeEvent(),this._focustrap.deactivate(),this._element.classList.remove(Fi),L.off(this._element,Li),L.off(this._dialog,Mi),this._queueCallback((()=>this._hideModal()),this._element,e)}dispose(){[window,this._dialog].forEach((e=>L.off(e,Oi))),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new wi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Si({trapElement:this._element})}_getConfig(e){return e={...Di,...B.getDataAttributes(this._element),..."object"==typeof e?e:{}},a(Ti,e,Pi),e}_showElement(e){const t=this._isAnimated(),i=U.findOne(".modal-body",this._dialog);this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0,i&&(i.scrollTop=0),t&&u(this._element),this._element.classList.add(Fi);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,L.trigger(this._element,"shown.bs.modal",{relatedTarget:e})}),this._dialog,t)}_setEscapeEvent(){this._isShown?L.on(this._element,Hi,(e=>{this._config.keyboard&&e.key===Ai?(e.preventDefault(),this.hide()):this._config.keyboard||e.key!==Ai||this._triggerBackdropTransition()})):L.off(this._element,Hi)}_setResizeEvent(){this._isShown?L.on(window,Ni,(()=>this._adjustDialog())):L.off(window,Ni)}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(Ri),this._resetAdjustments(),this._scrollBar.reset(),L.trigger(this._element,ji)}))}_showBackdrop(e){L.on(this._element,Li,(e=>{this._ignoreBackdropClick?this._ignoreBackdropClick=!1:e.target===e.currentTarget&&(!0===this._config.backdrop?this.hide():"static"===this._config.backdrop&&this._triggerBackdropTransition())})),this._backdrop.show(e)}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(L.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const{classList:e,scrollHeight:t,style:i}=this._element,n=t>document.documentElement.clientHeight;!n&&"hidden"===i.overflowY||e.contains(Yi)||(n||(i.overflowY="hidden"),e.add(Yi),this._queueCallback((()=>{e.remove(Yi),n||this._queueCallback((()=>{i.overflowY=""}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),i=t>0;(!i&&e&&!g()||i&&!e&&g())&&(this._element.style.paddingLeft=`${t}px`),(i&&!e&&!g()||!i&&e&&g())&&(this._element.style.paddingRight=`${t}px`)}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const i=zi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===i[e])throw new TypeError(`No method named "${e}"`);i[e](t)}}))}}L.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(e){const t=n(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),L.one(t,Ii,(e=>{e.defaultPrevented||L.one(t,ji,(()=>{l(this)&&this.focus()}))}));const i=U.findOne(".modal.show");i&&zi.getInstance(i).hide(),zi.getOrCreateInstance(t).toggle(this)})),F(zi),m(zi);const Wi="offcanvas",qi={backdrop:!0,keyboard:!0,scroll:!1},$i={backdrop:"boolean",keyboard:"boolean",scroll:"boolean"},Bi="show",Ui=".offcanvas.show",Vi="hidden.bs.offcanvas";class Xi extends R{constructor(e,t){super(e),this._config=this._getConfig(t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get NAME(){return Wi}static get Default(){return qi}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(L.trigger(this._element,"show.bs.offcanvas",{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._element.style.visibility="visible",this._backdrop.show(),this._config.scroll||(new gi).hide(),this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Bi);this._queueCallback((()=>{this._config.scroll||this._focustrap.activate(),L.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:e})}),this._element,!0)}hide(){if(!this._isShown)return;if(L.trigger(this._element,"hide.bs.offcanvas").defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.remove(Bi),this._backdrop.hide();this._queueCallback((()=>{this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._element.style.visibility="hidden",this._config.scroll||(new gi).reset(),L.trigger(this._element,Vi)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_getConfig(e){return e={...qi,...B.getDataAttributes(this._element),..."object"==typeof e?e:{}},a(Wi,e,$i),e}_initializeBackDrop(){return new wi({className:"offcanvas-backdrop",isVisible:this._config.backdrop,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:()=>this.hide()})}_initializeFocusTrap(){return new Si({trapElement:this._element})}_addEventListeners(){L.on(this._element,"keydown.dismiss.bs.offcanvas",(e=>{this._config.keyboard&&"Escape"===e.key&&this.hide()}))}static jQueryInterface(e){return this.each((function(){const t=Xi.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}L.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(e){const t=n(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this))return;L.one(t,Vi,(()=>{l(this)&&this.focus()}));const i=U.findOne(Ui);i&&i!==t&&Xi.getInstance(i).hide(),Xi.getOrCreateInstance(t).toggle(this)})),L.on(window,"load.bs.offcanvas.data-api",(()=>U.find(Ui).forEach((e=>Xi.getOrCreateInstance(e).show())))),F(Xi),m(Xi);const Ki=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Ji=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Gi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Qi=(e,t)=>{const i=e.nodeName.toLowerCase();if(t.includes(i))return!Ki.has(i)||Boolean(Ji.test(e.nodeValue)||Gi.test(e.nodeValue));const n=t.filter((e=>e instanceof RegExp));for(let e=0,t=n.length;e<t;e++)if(n[e].test(i))return!0;return!1};function Zi(e,t,i){if(!e.length)return e;if(i&&"function"==typeof i)return i(e);const n=(new window.DOMParser).parseFromString(e,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(let e=0,i=s.length;e<i;e++){const i=s[e],n=i.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){i.remove();continue}const o=[].concat(...i.attributes),r=[].concat(t["*"]||[],t[n]||[]);o.forEach((e=>{Qi(e,r)||i.removeAttribute(e.nodeName)}))}return n.body.innerHTML}const en="tooltip",tn=new Set(["sanitize","allowList","sanitizeFn"]),nn={animation:"boolean",template:"string",title:"(string|element|function)",trigger:"string",delay:"(number|object)",html:"boolean",selector:"(string|boolean)",placement:"(string|function)",offset:"(array|string|function)",container:"(string|element|boolean)",fallbackPlacements:"array",boundary:"(string|element)",customClass:"(string|function)",sanitize:"boolean",sanitizeFn:"(null|function)",allowList:"object",popperConfig:"(null|object|function)"},sn={AUTO:"auto",TOP:"top",RIGHT:g()?"left":"right",BOTTOM:"bottom",LEFT:g()?"right":"left"},on={animation:!0,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:[0,0],container:!1,fallbackPlacements:["top","right","bottom","left"],boundary:"clippingParents",customClass:"",sanitize:!0,sanitizeFn:null,allowList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},popperConfig:null},rn={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},an="fade",ln="show",cn="show",dn="out",hn=".tooltip-inner",un=".modal",pn="hide.bs.modal",fn="hover",gn="focus";class mn extends R{constructor(e,t){if(void 0===Ut)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e),this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this._config=this._getConfig(t),this.tip=null,this._setListeners()}static get Default(){return on}static get NAME(){return en}static get Event(){return rn}static get DefaultType(){return nn}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(e){if(this._isEnabled)if(e){const t=this._initializeOnDelegatedTarget(e);t._activeTrigger.click=!t._activeTrigger.click,t._isWithActiveTrigger()?t._enter(null,t):t._leave(null,t)}else{if(this.getTipElement().classList.contains(ln))return void this._leave(null,this);this._enter(null,this)}}dispose(){clearTimeout(this._timeout),L.off(this._element.closest(un),pn,this._hideModalHandler),this.tip&&this.tip.remove(),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this.isWithContent()||!this._isEnabled)return;const e=L.trigger(this._element,this.constructor.Event.SHOW),t=d(this._element),i=null===t?this._element.ownerDocument.documentElement.contains(this._element):t.contains(this._element);if(e.defaultPrevented||!i)return;"tooltip"===this.constructor.NAME&&this.tip&&this.getTitle()!==this.tip.querySelector(hn).innerHTML&&(this._disposePopper(),this.tip.remove(),this.tip=null);const n=this.getTipElement(),s=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME);n.setAttribute("id",s),this._element.setAttribute("aria-describedby",s),this._config.animation&&n.classList.add(an);const o="function"==typeof this._config.placement?this._config.placement.call(this,n,this._element):this._config.placement,r=this._getAttachment(o);this._addAttachmentClass(r);const{container:a}=this._config;M.set(n,this.constructor.DATA_KEY,this),this._element.ownerDocument.documentElement.contains(this.tip)||(a.append(n),L.trigger(this._element,this.constructor.Event.INSERTED)),this._popper?this._popper.update():this._popper=Bt(this._element,n,this._getPopperConfig(r)),n.classList.add(ln);const l=this._resolvePossibleFunction(this._config.customClass);l&&n.classList.add(...l.split(" ")),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>{L.on(e,"mouseover",h)}));const c=this.tip.classList.contains(an);this._queueCallback((()=>{const e=this._hoverState;this._hoverState=null,L.trigger(this._element,this.constructor.Event.SHOWN),e===dn&&this._leave(null,this)}),this.tip,c)}hide(){if(!this._popper)return;const e=this.getTipElement();if(L.trigger(this._element,this.constructor.Event.HIDE).defaultPrevented)return;e.classList.remove(ln),"ontouchstart"in document.documentElement&&[].concat(...document.body.children).forEach((e=>L.off(e,"mouseover",h))),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1;const t=this.tip.classList.contains(an);this._queueCallback((()=>{this._isWithActiveTrigger()||(this._hoverState!==cn&&e.remove(),this._cleanTipClass(),this._element.removeAttribute("aria-describedby"),L.trigger(this._element,this.constructor.Event.HIDDEN),this._disposePopper())}),this.tip,t),this._hoverState=""}update(){null!==this._popper&&this._popper.update()}isWithContent(){return Boolean(this.getTitle())}getTipElement(){if(this.tip)return this.tip;const e=document.createElement("div");e.innerHTML=this._config.template;const t=e.children[0];return this.setContent(t),t.classList.remove(an,ln),this.tip=t,this.tip}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),hn)}_sanitizeAndSetContent(e,t,i){const n=U.findOne(i,e);t||!n?this.setElementContent(n,t):n.remove()}setElementContent(e,t){if(null!==e)return o(t)?(t=r(t),void(this._config.html?t.parentNode!==e&&(e.innerHTML="",e.append(t)):e.textContent=t.textContent)):void(this._config.html?(this._config.sanitize&&(t=Zi(t,this._config.allowList,this._config.sanitizeFn)),e.innerHTML=t):e.textContent=t)}getTitle(){const e=this._element.getAttribute("data-bs-original-title")||this._config.title;return this._resolvePossibleFunction(e)}updateAttachment(e){return"right"===e?"end":"left"===e?"start":e}_initializeOnDelegatedTarget(e,t){return t||this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return"function"==typeof e?e.call(this._element):e}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"onChange",enabled:!0,phase:"afterWrite",fn:e=>this._handlePopperPlacementChange(e)}],onFirstUpdate:e=>{e.options.placement!==e.placement&&this._handlePopperPlacementChange(e)}};return{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_addAttachmentClass(e){this.getTipElement().classList.add(`${this._getBasicClassPrefix()}-${this.updateAttachment(e)}`)}_getAttachment(e){return sn[e.toUpperCase()]}_setListeners(){this._config.trigger.split(" ").forEach((e=>{if("click"===e)L.on(this._element,this.constructor.Event.CLICK,this._config.selector,(e=>this.toggle(e)));else if("manual"!==e){const t=e===fn?this.constructor.Event.MOUSEENTER:this.constructor.Event.FOCUSIN,i=e===fn?this.constructor.Event.MOUSELEAVE:this.constructor.Event.FOCUSOUT;L.on(this._element,t,this._config.selector,(e=>this._enter(e))),L.on(this._element,i,this._config.selector,(e=>this._leave(e)))}})),this._hideModalHandler=()=>{this._element&&this.hide()},L.on(this._element.closest(un),pn,this._hideModalHandler),this._config.selector?this._config={...this._config,trigger:"manual",selector:""}:this._fixTitle()}_fixTitle(){const e=this._element.getAttribute("title"),t=typeof this._element.getAttribute("data-bs-original-title");(e||"string"!==t)&&(this._element.setAttribute("data-bs-original-title",e||""),!e||this._element.getAttribute("aria-label")||this._element.textContent||this._element.setAttribute("aria-label",e),this._element.setAttribute("title",""))}_enter(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusin"===e.type?gn:fn]=!0),t.getTipElement().classList.contains(ln)||t._hoverState===cn?t._hoverState=cn:(clearTimeout(t._timeout),t._hoverState=cn,t._config.delay&&t._config.delay.show?t._timeout=setTimeout((()=>{t._hoverState===cn&&t.show()}),t._config.delay.show):t.show())}_leave(e,t){t=this._initializeOnDelegatedTarget(e,t),e&&(t._activeTrigger["focusout"===e.type?gn:fn]=t._element.contains(e.relatedTarget)),t._isWithActiveTrigger()||(clearTimeout(t._timeout),t._hoverState=dn,t._config.delay&&t._config.delay.hide?t._timeout=setTimeout((()=>{t._hoverState===dn&&t.hide()}),t._config.delay.hide):t.hide())}_isWithActiveTrigger(){for(const e in this._activeTrigger)if(this._activeTrigger[e])return!0;return!1}_getConfig(e){const t=B.getDataAttributes(this._element);return Object.keys(t).forEach((e=>{tn.has(e)&&delete t[e]})),(e={...this.constructor.Default,...t,..."object"==typeof e&&e?e:{}}).container=!1===e.container?document.body:r(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),a(en,e,this.constructor.DefaultType),e.sanitize&&(e.template=Zi(e.template,e.allowList,e.sanitizeFn)),e}_getDelegateConfig(){const e={};for(const t in this._config)this.constructor.Default[t]!==this._config[t]&&(e[t]=this._config[t]);return e}_cleanTipClass(){const e=this.getTipElement(),t=new RegExp(`(^|\\s)${this._getBasicClassPrefix()}\\S+`,"g"),i=e.getAttribute("class").match(t);null!==i&&i.length>0&&i.map((e=>e.trim())).forEach((t=>e.classList.remove(t)))}_getBasicClassPrefix(){return"bs-tooltip"}_handlePopperPlacementChange(e){const{state:t}=e;t&&(this.tip=t.elements.popper,this._cleanTipClass(),this._addAttachmentClass(this._getAttachment(t.placement)))}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(e){return this.each((function(){const t=mn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(mn);const vn={...mn.Default,placement:"right",offset:[0,8],trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>'},_n={...mn.DefaultType,content:"(string|element|function)"},yn={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"};class bn extends mn{static get Default(){return vn}static get NAME(){return"popover"}static get Event(){return yn}static get DefaultType(){return _n}isWithContent(){return this.getTitle()||this._getContent()}setContent(e){this._sanitizeAndSetContent(e,this.getTitle(),".popover-header"),this._sanitizeAndSetContent(e,this._getContent(),".popover-body")}_getContent(){return this._resolvePossibleFunction(this._config.content)}_getBasicClassPrefix(){return"bs-popover"}static jQueryInterface(e){return this.each((function(){const t=bn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}m(bn);const wn="scrollspy",xn=".bs.scrollspy",kn={offset:10,method:"auto",target:""},Cn={offset:"number",method:"string",target:"(string|element)"},En="dropdown-item",Sn="active",Tn=".nav-link",On=".nav-link, .list-group-item, .dropdown-item",An="position";class Dn extends R{constructor(e,t){super(e),this._scrollElement="BODY"===this._element.tagName?window:this._element,this._config=this._getConfig(t),this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,L.on(this._scrollElement,"scroll.bs.scrollspy",(()=>this._process())),this.refresh(),this._process()}static get Default(){return kn}static get NAME(){return wn}refresh(){const e=this._scrollElement===this._scrollElement.window?"offset":An,t="auto"===this._config.method?e:this._config.method,n=t===An?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),U.find(On,this._config.target).map((e=>{const s=i(e),o=s?U.findOne(s):null;if(o){const e=o.getBoundingClientRect();if(e.width||e.height)return[B[t](o).top+n,s]}return null})).filter((e=>e)).sort(((e,t)=>e[0]-t[0])).forEach((e=>{this._offsets.push(e[0]),this._targets.push(e[1])}))}dispose(){L.off(this._scrollElement,xn),super.dispose()}_getConfig(e){return(e={...kn,...B.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}}).target=r(e.target)||document.documentElement,a(wn,e,Cn),e}_getScrollTop(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop}_getScrollHeight(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)}_getOffsetHeight(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height}_process(){const e=this._getScrollTop()+this._config.offset,t=this._getScrollHeight(),i=this._config.offset+t-this._getOffsetHeight();if(this._scrollHeight!==t&&this.refresh(),e>=i){const e=this._targets[this._targets.length-1];this._activeTarget!==e&&this._activate(e)}else{if(this._activeTarget&&e<this._offsets[0]&&this._offsets[0]>0)return this._activeTarget=null,void this._clear();for(let t=this._offsets.length;t--;)this._activeTarget!==this._targets[t]&&e>=this._offsets[t]&&(void 0===this._offsets[t+1]||e<this._offsets[t+1])&&this._activate(this._targets[t])}}_activate(e){this._activeTarget=e,this._clear();const t=On.split(",").map((t=>`${t}[data-bs-target="${e}"],${t}[href="${e}"]`)),i=U.findOne(t.join(","),this._config.target);i.classList.add(Sn),i.classList.contains(En)?U.findOne(".dropdown-toggle",i.closest(".dropdown")).classList.add(Sn):U.parents(i,".nav, .list-group").forEach((e=>{U.prev(e,".nav-link, .list-group-item").forEach((e=>e.classList.add(Sn))),U.prev(e,".nav-item").forEach((e=>{U.children(e,Tn).forEach((e=>e.classList.add(Sn)))}))})),L.trigger(this._scrollElement,"activate.bs.scrollspy",{relatedTarget:e})}_clear(){U.find(On,this._config.target).filter((e=>e.classList.contains(Sn))).forEach((e=>e.classList.remove(Sn)))}static jQueryInterface(e){return this.each((function(){const t=Dn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}L.on(window,"load.bs.scrollspy.data-api",(()=>{U.find('[data-bs-spy="scroll"]').forEach((e=>new Dn(e)))})),m(Dn);const Pn="active",jn="fade",In="show",Nn=".active",Ln=":scope > li > .active";class Hn extends R{static get NAME(){return"tab"}show(){if(this._element.parentNode&&this._element.parentNode.nodeType===Node.ELEMENT_NODE&&this._element.classList.contains(Pn))return;let e;const t=n(this._element),i=this._element.closest(".nav, .list-group");if(i){const t="UL"===i.nodeName||"OL"===i.nodeName?Ln:Nn;e=U.find(t,i),e=e[e.length-1]}const s=e?L.trigger(e,"hide.bs.tab",{relatedTarget:this._element}):null;if(L.trigger(this._element,"show.bs.tab",{relatedTarget:e}).defaultPrevented||null!==s&&s.defaultPrevented)return;this._activate(this._element,i);const o=()=>{L.trigger(e,"hidden.bs.tab",{relatedTarget:this._element}),L.trigger(this._element,"shown.bs.tab",{relatedTarget:e})};t?this._activate(t,t.parentNode,o):o()}_activate(e,t,i){const n=(!t||"UL"!==t.nodeName&&"OL"!==t.nodeName?U.children(t,Nn):U.find(Ln,t))[0],s=i&&n&&n.classList.contains(jn),o=()=>this._transitionComplete(e,n,i);n&&s?(n.classList.remove(In),this._queueCallback(o,e,!0)):o()}_transitionComplete(e,t,i){if(t){t.classList.remove(Pn);const e=U.findOne(":scope > .dropdown-menu .active",t.parentNode);e&&e.classList.remove(Pn),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!1)}e.classList.add(Pn),"tab"===e.getAttribute("role")&&e.setAttribute("aria-selected",!0),u(e),e.classList.contains(jn)&&e.classList.add(In);let n=e.parentNode;if(n&&"LI"===n.nodeName&&(n=n.parentNode),n&&n.classList.contains("dropdown-menu")){const t=e.closest(".dropdown");t&&U.find(".dropdown-toggle",t).forEach((e=>e.classList.add(Pn))),e.setAttribute("aria-expanded",!0)}i&&i()}static jQueryInterface(e){return this.each((function(){const t=Hn.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}L.on(document,"click.bs.tab.data-api",'[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),c(this)||Hn.getOrCreateInstance(this).show()})),m(Hn);const Mn="toast",Rn="hide",Fn="show",Yn="showing",zn={animation:"boolean",autohide:"boolean",delay:"number"},Wn={animation:!0,autohide:!0,delay:5e3};class qn extends R{constructor(e,t){super(e),this._config=this._getConfig(t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get DefaultType(){return zn}static get Default(){return Wn}static get NAME(){return Mn}show(){if(L.trigger(this._element,"show.bs.toast").defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(Rn),u(this._element),this._element.classList.add(Fn),this._element.classList.add(Yn),this._queueCallback((()=>{this._element.classList.remove(Yn),L.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this._element.classList.contains(Fn))return;if(L.trigger(this._element,"hide.bs.toast").defaultPrevented)return;this._element.classList.add(Yn),this._queueCallback((()=>{this._element.classList.add(Rn),this._element.classList.remove(Yn),this._element.classList.remove(Fn),L.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this._element.classList.contains(Fn)&&this._element.classList.remove(Fn),super.dispose()}_getConfig(e){return e={...Wn,...B.getDataAttributes(this._element),..."object"==typeof e&&e?e:{}},a(Mn,e,this.constructor.DefaultType),e}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const i=e.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){L.on(this._element,"mouseover.bs.toast",(e=>this._onInteraction(e,!0))),L.on(this._element,"mouseout.bs.toast",(e=>this._onInteraction(e,!1))),L.on(this._element,"focusin.bs.toast",(e=>this._onInteraction(e,!0))),L.on(this._element,"focusout.bs.toast",(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=qn.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}return F(qn),m(qn),{Alert:Y,Button:W,Carousel:se,Collapse:ge,Dropdown:ui,Modal:zi,Offcanvas:Xi,Popover:bn,ScrollSpy:Dn,Tab:Hn,Toast:qn,Tooltip:mn}}()},3193:(e,t,i)=>{var n=i(9755),s=i(7672);void 0===s.$&&(s.$=n),void 0===s.jQuery&&(s.jQuery=n),e.exports=n},8589:(e,t,i)=>{var n=i(5577),s=i(7672);void 0===s.bootstrap&&(s.bootstrap=n),e.exports=n},7672:(e,t,i)=>{"use strict";e.exports=function(){if("object"==typeof globalThis)return globalThis;var e;try{e=this||new Function("return this")()}catch(e){if("object"==typeof window)return window;if("object"==typeof self)return self;if(void 0!==i.g)return i.g}return e}()},5400:function(e,t,i){var n,s,o,r;"undefined"!=typeof window&&window,"function"==typeof(s=function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return-1==n.indexOf(t)&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return-1!=n&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],s=0;s<i.length;s++){var o=i[s];n&&n[o]&&(this.off(e,o),delete n[o]),o.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?(n=s.call((o={id:"ev-emitter/ev-emitter",exports:{},loaded:!1}).exports,i,o.exports,o),o.loaded=!0,void 0===n&&(n=o.exports)):n=s,function(i,s){"use strict";r=function(e){return function(e,t){var i=e.jQuery,n=e.console;function s(e,t){for(var i in t)e[i]=t[i];return e}var o=Array.prototype.slice;function r(e,t,a){if(!(this instanceof r))return new r(e,t,a);var l,c=e;"string"==typeof e&&(c=document.querySelectorAll(e)),c?(this.elements=(l=c,Array.isArray(l)?l:"object"==typeof l&&"number"==typeof l.length?o.call(l):[l]),this.options=s({},this.options),"function"==typeof t?a=t:s(this.options,t),a&&this.on("always",a),this.getImages(),i&&(this.jqDeferred=new i.Deferred),setTimeout(this.check.bind(this))):n.error("Bad element for imagesLoaded "+(c||e))}r.prototype=Object.create(t.prototype),r.prototype.options={},r.prototype.getImages=function(){this.images=[],this.elements.forEach(this.addElementImages,this)},r.prototype.addElementImages=function(e){"IMG"==e.nodeName&&this.addImage(e),!0===this.options.background&&this.addElementBackgroundImages(e);var t=e.nodeType;if(t&&a[t]){for(var i=e.querySelectorAll("img"),n=0;n<i.length;n++){var s=i[n];this.addImage(s)}if("string"==typeof this.options.background){var o=e.querySelectorAll(this.options.background);for(n=0;n<o.length;n++){var r=o[n];this.addElementBackgroundImages(r)}}}};var a={1:!0,9:!0,11:!0};function l(e){this.img=e}function c(e,t){this.url=e,this.element=t,this.img=new Image}return r.prototype.addElementBackgroundImages=function(e){var t=getComputedStyle(e);if(t)for(var i=/url\((['"])?(.*?)\1\)/gi,n=i.exec(t.backgroundImage);null!==n;){var s=n&&n[2];s&&this.addBackground(s,e),n=i.exec(t.backgroundImage)}},r.prototype.addImage=function(e){var t=new l(e);this.images.push(t)},r.prototype.addBackground=function(e,t){var i=new c(e,t);this.images.push(i)},r.prototype.check=function(){var e=this;function t(t,i,n){setTimeout((function(){e.progress(t,i,n)}))}this.progressedCount=0,this.hasAnyBroken=!1,this.images.length?this.images.forEach((function(e){e.once("progress",t),e.check()})):this.complete()},r.prototype.progress=function(e,t,i){this.progressedCount++,this.hasAnyBroken=this.hasAnyBroken||!e.isLoaded,this.emitEvent("progress",[this,e,t]),this.jqDeferred&&this.jqDeferred.notify&&this.jqDeferred.notify(this,e),this.progressedCount==this.images.length&&this.complete(),this.options.debug&&n&&n.log("progress: "+i,e,t)},r.prototype.complete=function(){var e=this.hasAnyBroken?"fail":"done";if(this.isComplete=!0,this.emitEvent(e,[this]),this.emitEvent("always",[this]),this.jqDeferred){var t=this.hasAnyBroken?"reject":"resolve";this.jqDeferred[t](this)}},l.prototype=Object.create(t.prototype),l.prototype.check=function(){this.getIsImageComplete()?this.confirm(0!==this.img.naturalWidth,"naturalWidth"):(this.proxyImage=new Image,this.proxyImage.addEventListener("load",this),this.proxyImage.addEventListener("error",this),this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.proxyImage.src=this.img.src)},l.prototype.getIsImageComplete=function(){return this.img.complete&&this.img.naturalWidth},l.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.img,t])},l.prototype.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.prototype.onload=function(){this.confirm(!0,"onload"),this.unbindEvents()},l.prototype.onerror=function(){this.confirm(!1,"onerror"),this.unbindEvents()},l.prototype.unbindEvents=function(){this.proxyImage.removeEventListener("load",this),this.proxyImage.removeEventListener("error",this),this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype=Object.create(l.prototype),c.prototype.check=function(){this.img.addEventListener("load",this),this.img.addEventListener("error",this),this.img.src=this.url,this.getIsImageComplete()&&(this.confirm(0!==this.img.naturalWidth,"naturalWidth"),this.unbindEvents())},c.prototype.unbindEvents=function(){this.img.removeEventListener("load",this),this.img.removeEventListener("error",this)},c.prototype.confirm=function(e,t){this.isLoaded=e,this.emitEvent("progress",[this,this.element,t])},r.makeJQueryPlugin=function(t){(t=t||e.jQuery)&&((i=t).fn.imagesLoaded=function(e,t){return new r(this,e,t).jqDeferred.promise(i(this))})},r.makeJQueryPlugin(),r}(i,e)}.apply(t,[n]),void 0===r||(e.exports=r)}("undefined"!=typeof window?window:this)},2807:(e,t,i)=>{var n,s,o;s=[i(3193)],void 0===(o="function"==typeof(n=function(e){e.expander={version:"2.0.2",defaults:{slicePoint:100,sliceOn:null,preserveWords:!0,normalizeWhitespace:!0,showWordCount:!1,detailPrefix:" ",wordCountText:" ({{count}} words)",widow:4,expandText:"read more",expandPrefix:"&hellip; ",expandAfterSummary:!1,wordEnd:/(&(?:[^;]+;)?|[0-9a-zA-Z\u00C0-\u0100]+|[^\u0000-\u007F]+)$/,summaryClass:"summary",detailClass:"details",moreClass:"read-more",lessClass:"read-less",moreLinkClass:"more-link",lessLinkClass:"less-link",collapseTimer:0,expandEffect:"slideDown",expandSpeed:250,collapseEffect:"slideUp",collapseSpeed:200,userCollapse:!0,userCollapseText:"read less",userCollapsePrefix:" ",onSlice:null,beforeExpand:null,afterExpand:null,onCollapse:null,afterCollapse:null}},e.fn.expander=function(t){var i="init";"string"==typeof t&&(i=t,t={});var n,s=e.extend({},e.expander.defaults,t),o=/^<(?:area|br|col|embed|hr|img|input|link|meta|param).*>$/i,r=s.wordEnd,a=/<\/?(\w+)[^>]*>/g,l=/<(\w+)[^>]*>/g,c=/<\/(\w+)>/g,d=/(<\/([^>]+)>)\s*$/,h=/^(<[^>]+>)+.?/,u=/(?:^\s+|\s+$)/g,p=/\s\s+/g,f={init:function(){this.each((function(){var t,i,r,f,v,_,y,b,w,x,k,C,E,S,T,O,A,D,P,j,I=[],N=[],L="",H={},M=this,R=e(this),F=e([]),Y=e.extend({},s,R.data("expander")||{}),z=!!R.find("."+Y.detailClass).length,W=!!R.find("*").filter((function(){var t=e(this).css("display");return/^block|table|list/.test(t)})).length,q=(W?"div":"span")+"."+Y.detailClass,$=Y.moreClass+"",B=Y.lessClass+"",U=Y.expandSpeed||0,V=(T=R.html(),s.normalizeWhitespace?(T||"").replace(u,"").replace(p," "):T),X=V.slice(0,Y.slicePoint);if(Y.moreSelector="span."+$.split(" ").join("."),Y.lessSelector="span."+B.split(" ").join("."),!e.data(this,"expanderInit")){for(e.data(this,"expanderInit",!0),e.data(this,"expander",Y),e.each(["onSlice","beforeExpand","afterExpand","onCollapse","afterCollapse"],(function(t,i){H[i]=e.isFunction(Y[i])})),v=(X=g(X)).replace(a,"").length;v<Y.slicePoint;)"<"===(f=V.charAt(X.length))&&(f=V.slice(X.length).match(h)[0]),X+=f,v++;for(Y.sliceOn&&(X=(O={sliceOn:Y.sliceOn,slicePoint:Y.slicePoint,allHtml:V,summaryText:X},A=void 0,D=void 0,P=void 0,j=void 0,A="ExpandMoreHere374216623",D=O.summaryText.replace(O.sliceOn,A),P=(D=e("<div>"+D+"</div>").text()).indexOf(A),j=O.summaryText.indexOf(O.sliceOn),-1!==P&&P<O.slicePoint&&(O.summaryText=O.allHtml.slice(0,j)),O).summaryText),_=(X=g(X,Y.preserveWords&&V.slice(X.length).length)).match(l)||[],y=X.match(c)||[],r=[],e.each(_,(function(e,t){o.test(t)||r.push(t)})),_=r,i=y.length,t=0;t<i;t++)y[t]=y[t].replace(c,"$1");if(e.each(_,(function(t,i){var n=i.replace(l,"$1"),s=e.inArray(n,y);-1===s?(I.push(i),N.push("</"+n+">")):y.splice(s,1)})),N.reverse(),z)w=R.find(q).remove().html(),V=(X=R.html())+w,b="";else{if(""===(x=(w=V.slice(X.length)).replace(a,"").replace(u,""))||x.split(/\s+/).length<Y.widow)return;b=N.pop()||"",X+=N.join(""),w=I.join("")+w}Y.moreLabel=R.find(Y.moreSelector).length?"":function(e,t){var i='<span class="'+e.moreClass+'">'+e.expandPrefix;return e.showWordCount?e.wordCountText=e.wordCountText.replace(/\{\{count\}\}/,t.replace(a,"").replace(/&(?:amp|nbsp);/g,"").replace(/(?:^\s+|\s+$)/,"").match(/\w+/g).length):e.wordCountText="",i+'<a href="#" class="'+e.moreLinkClass+'">'+e.expandText+e.wordCountText+"</a></span>"}(Y,w),W?w=V:"&"===X.charAt(X.length-1)&&(L=/^[#\w\d\\]+;/.exec(w))&&(w=w.slice(L[0].length),X+=L[0]),X+=b,Y.summary=X,Y.details=w,Y.lastCloseTag=b,H.onSlice&&(r=Y.onSlice.call(M,Y),Y=r&&r.details?r:Y),k=function(e,t){var i="span",n=e.summary,s=d.exec(n),o=s?s[2].toLowerCase():"";return t?(i="div",s&&"a"!==o&&!e.expandAfterSummary?n=n.replace(d,e.moreLabel+"$1"):n+=e.moreLabel,n='<div class="'+e.summaryClass+'">'+n+"</div>"):n+=e.moreLabel,[n,e.detailPrefix||"","<",i+' class="'+e.detailClass+'"',">",e.details,"</"+i+">"].join("")}(Y,W),R.empty().append(k),E=R.find(q),S=R.find(Y.moreSelector),"slideUp"===Y.collapseEffect&&"slideDown"!==Y.expandEffect||R.is(":hidden")?E.css({display:"none"}):E[Y.collapseEffect](0),F=R.find("div."+Y.summaryClass),C=function(t){t.preventDefault();var i=t.startExpanded?0:U;S.hide(),F.hide(),H.beforeExpand&&Y.beforeExpand.call(M),E.stop(!1,!0)[Y.expandEffect](i,(function(){E.css({zoom:""}),H.afterExpand&&Y.afterExpand.call(M),function(t,i,s){t.collapseTimer&&(n=setTimeout((function(){m(t,i),e.isFunction(t.onCollapse)&&t.onCollapse.call(s,!1)}),t.collapseTimer))}(Y,E,M)}))},S.find("a").off("click.expander").on("click.expander",C),Y.userCollapse&&!R.find(Y.lessSelector).length&&R.find(q).append('<span class="'+Y.lessClass+'">'+Y.userCollapsePrefix+'<a href="#" class="'+Y.lessLinkClass+'">'+Y.userCollapseText+"</a></span>"),R.find(Y.lessSelector+" a").off("click.expander").on("click.expander",(function(t){t.preventDefault(),clearTimeout(n);var i=e(this).closest(q);m(Y,i),H.onCollapse&&Y.onCollapse.call(M,!0)})),Y.startExpanded&&C({preventDefault:function(){},startExpanded:!0})}}))},destroy:function(){this.each((function(){var t,i,n=e(this);n.data("expanderInit")&&(t=e.extend({},n.data("expander")||{},s),i=n.find("."+t.detailClass).contents(),n.removeData("expanderInit"),n.removeData("expander"),n.find(t.moreSelector).remove(),n.find("."+t.summaryClass).remove(),n.find("."+t.detailClass).after(i).remove(),n.find(t.lessSelector).remove())}))}};function g(e,t){return e.lastIndexOf("<")>e.lastIndexOf(">")&&(e=e.slice(0,e.lastIndexOf("<"))),t&&(e=e.replace(r,"")),e.replace(u,"")}function m(e,t){t.stop(!0,!0)[e.collapseEffect](e.collapseSpeed,(function(){t.prev("span."+e.moreClass).show().length||t.parent().children("div."+e.summaryClass).show().find("span."+e.moreClass).show(),e.afterCollapse&&e.afterCollapse.call(t)}))}return f[i]&&f[i].call(this),this},e.fn.expander.defaults=e.expander.defaults})?n.apply(t,s):n)||(e.exports=o)},450:(e,t,i)=>{var n,s;n=[i(3193)],void 0===(s=function(e){var t,i,n=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],s="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],o=Array.prototype.slice;if(e.event.fixHooks)for(var r=n.length;r;)e.event.fixHooks[n[--r]]=e.event.mouseHooks;var a=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var t=s.length;t;)this.addEventListener(s[--t],l,!1);else this.onmousewheel=l;e.data(this,"mousewheel-line-height",a.getLineHeight(this)),e.data(this,"mousewheel-page-height",a.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var t=s.length;t;)this.removeEventListener(s[--t],l,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var i=e(t),n=i["offsetParent"in e.fn?"offsetParent":"parent"]();return n.length||(n=e("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};function l(n){var s=n||window.event,r=o.call(arguments,1),l=0,h=0,u=0,p=0,f=0,g=0;if((n=e.event.fix(s)).type="mousewheel","detail"in s&&(u=-1*s.detail),"wheelDelta"in s&&(u=s.wheelDelta),"wheelDeltaY"in s&&(u=s.wheelDeltaY),"wheelDeltaX"in s&&(h=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(h=-1*u,u=0),l=0===u?h:u,"deltaY"in s&&(l=u=-1*s.deltaY),"deltaX"in s&&(h=s.deltaX,0===u&&(l=-1*h)),0!==u||0!==h){if(1===s.deltaMode){var m=e.data(this,"mousewheel-line-height");l*=m,u*=m,h*=m}else if(2===s.deltaMode){var v=e.data(this,"mousewheel-page-height");l*=v,u*=v,h*=v}if(p=Math.max(Math.abs(u),Math.abs(h)),(!i||p<i)&&(i=p,d(s,p)&&(i/=40)),d(s,p)&&(l/=40,h/=40,u/=40),l=Math[l>=1?"floor":"ceil"](l/i),h=Math[h>=1?"floor":"ceil"](h/i),u=Math[u>=1?"floor":"ceil"](u/i),a.settings.normalizeOffset&&this.getBoundingClientRect){var _=this.getBoundingClientRect();f=n.clientX-_.left,g=n.clientY-_.top}return n.deltaX=h,n.deltaY=u,n.deltaFactor=i,n.offsetX=f,n.offsetY=g,n.deltaMode=0,r.unshift(n,l,h,u),t&&clearTimeout(t),t=setTimeout(c,200),(e.event.dispatch||e.event.handle).apply(this,r)}}function c(){i=null}function d(e,t){return a.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120==0}e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}.apply(t,n))||(e.exports=s)},1704:(e,t,i)=>{var n,s,o;!function(r){"use strict";s=[i(3193)],n=function(e){e.ui=e.ui||{},e.ui.version="1.13.2";var t,i=0,n=Array.prototype.hasOwnProperty,s=Array.prototype.slice;e.cleanData=(t=e.cleanData,function(i){var n,s,o;for(o=0;null!=(s=i[o]);o++)(n=e._data(s,"events"))&&n.remove&&e(s).triggerHandler("remove");t(i)}),e.widget=function(t,i,n){var s,o,r,a={},l=t.split(".")[0],c=l+"-"+(t=t.split(".")[1]);return n||(n=i,i=e.Widget),Array.isArray(n)&&(n=e.extend.apply(null,[{}].concat(n))),e.expr.pseudos[c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},s=e[l][t],o=e[l][t]=function(e,t){if(!this||!this._createWidget)return new o(e,t);arguments.length&&this._createWidget(e,t)},e.extend(o,s,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),(r=new i).options=e.widget.extend({},r.options),e.each(n,(function(e,t){a[e]="function"==typeof t?function(){function n(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,o=this._superApply;return this._super=n,this._superApply=s,e=t.apply(this,arguments),this._super=i,this._superApply=o,e}}():t})),o.prototype=e.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||t},a,{constructor:o,namespace:l,widgetName:t,widgetFullName:c}),s?(e.each(s._childConstructors,(function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,o,i._proto)})),delete s._childConstructors):i._childConstructors.push(o),e.widget.bridge(t,o),o},e.widget.extend=function(t){for(var i,o,r=s.call(arguments,1),a=0,l=r.length;a<l;a++)for(i in r[a])o=r[a][i],n.call(r[a],i)&&void 0!==o&&(e.isPlainObject(o)?t[i]=e.isPlainObject(t[i])?e.widget.extend({},t[i],o):e.widget.extend({},o):t[i]=o);return t},e.widget.bridge=function(t,i){var n=i.prototype.widgetFullName||t;e.fn[t]=function(o){var r="string"==typeof o,a=s.call(arguments,1),l=this;return r?this.length||"instance"!==o?this.each((function(){var i,s=e.data(this,n);return"instance"===o?(l=s,!1):s?"function"!=typeof s[o]||"_"===o.charAt(0)?e.error("no such method '"+o+"' for "+t+" widget instance"):(i=s[o].apply(s,a))!==s&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+o+"'")})):l=void 0:(a.length&&(o=e.widget.extend.apply(null,[o].concat(a))),this.each((function(){var t=e.data(this,n);t?(t.option(o||{}),t._init&&t._init()):e.data(this,n,new i(o,this))}))),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,(function(e,i){t._removeClass(i,e)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var n,s,o,r=t;if(0===arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(r={},n=t.split("."),t=n.shift(),n.length){for(s=r[t]=e.widget.extend({},this.options[t]),o=0;o<n.length-1;o++)s[n[o]]=s[n[o]]||{},s=s[n[o]];if(t=n.pop(),1===arguments.length)return void 0===s[t]?null:s[t];s[t]=i}else{if(1===arguments.length)return void 0===this.options[t]?null:this.options[t];r[t]=i}return this._setOptions(r),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,n,s;for(i in t)s=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&s&&s.length&&(n=e(s.get()),this._removeClass(s,i),n.addClass(this._classes({element:n,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(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(t){var i=[],n=this;function s(){var i=[];t.element.each((function(t,s){e.map(n.classesElementLookup,(function(e){return e})).some((function(e){return e.is(s)}))||i.push(s)})),n._on(e(i),{remove:"_untrackClassesElement"})}function o(o,r){var a,l;for(l=0;l<o.length;l++)a=n.classesElementLookup[o[l]]||e(),t.add?(s(),a=e(e.uniqueSort(a.get().concat(t.element.get())))):a=e(a.not(t.element).get()),n.classesElementLookup[o[l]]=a,i.push(o[l]),r&&t.classes[o[l]]&&i.push(t.classes[o[l]])}return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&o(t.keys.match(/\S+/g)||[],!0),t.extra&&o(t.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(t){var i=this;e.each(i.classesElementLookup,(function(n,s){-1!==e.inArray(t.target,s)&&(i.classesElementLookup[n]=e(s.not(t.target).get()))})),this._off(e(t.target))},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof e||null===e,o={extra:s?t:i,keys:s?e:t,element:s?this.element:e,add:n};return o.element.toggleClass(this._classes(o),n),this},_on:function(t,i,n){var s,o=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=s=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),e.each(n,(function(n,r){function a(){if(t||!0!==o.options.disabled&&!e(this).hasClass("ui-state-disabled"))return("string"==typeof r?o[r]:r).apply(o,arguments)}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||e.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+o.eventNamespace,d=l[2];d?s.on(c,d,a):i.on(c,a)}))},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var i=this;return setTimeout((function(){return("string"==typeof e?i[e]:e).apply(i,arguments)}),t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,n){var s,o,r=this.options[t];if(n=n||{},(i=e.Event(i)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(s in o)s in i||(i[s]=o[s]);return this.element.trigger(i,n),!("function"==typeof r&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},(function(t,i){e.Widget.prototype["_"+t]=function(n,s,o){var r;"string"==typeof s&&(s={effect:s});var a=s?!0===s||"number"==typeof s?i:s.effect||i:t;"number"==typeof(s=s||{})?s={duration:s}:!0===s&&(s={}),r=!e.isEmptyObject(s),s.complete=o,s.delay&&n.delay(s.delay),r&&e.effects&&e.effects.effect[a]?n[t](s):a!==t&&n[a]?n[a](s.duration,s.easing,o):n.queue((function(i){e(this)[t](),o&&o.call(n[0]),i()}))}})),e.widget,function(){var t,i=Math.max,n=Math.abs,s=/left|center|right/,o=/top|center|bottom/,r=/[\+\-]\d+(\.[\d]+)?%?/,a=/^\w+/,l=/%$/,c=e.fn.position;function d(e,t,i){return[parseFloat(e[0])*(l.test(e[0])?t/100:1),parseFloat(e[1])*(l.test(e[1])?i/100:1)]}function h(t,i){return parseInt(e.css(t,i),10)||0}function u(e){return null!=e&&e===e.window}function p(e){var t=e[0];return 9===t.nodeType?{width:e.width(),height:e.height(),offset:{top:0,left:0}}:u(t)?{width:e.width(),height:e.height(),offset:{top:e.scrollTop(),left:e.scrollLeft()}}:t.preventDefault?{width:0,height:0,offset:{top:t.pageY,left:t.pageX}}:{width:e.outerWidth(),height:e.outerHeight(),offset:e.offset()}}e.position={scrollbarWidth:function(){if(void 0!==t)return t;var i,n,s=e("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),o=s.children()[0];return e("body").append(s),i=o.offsetWidth,s.css("overflow","scroll"),i===(n=o.offsetWidth)&&(n=s[0].clientWidth),s.remove(),t=i-n},getScrollInfo:function(t){var i=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),n=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),s="scroll"===i||"auto"===i&&t.width<t.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&t.height<t.element[0].scrollHeight?e.position.scrollbarWidth():0,height:s?e.position.scrollbarWidth():0}},getWithinInfo:function(t){var i=e(t||window),n=u(i[0]),s=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:s,offset:n||s?{left:0,top:0}:e(t).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},e.fn.position=function(t){if(!t||!t.of)return c.apply(this,arguments);var l,u,f,g,m,v,_="string"==typeof(t=e.extend({},t)).of?e(document).find(t.of):e(t.of),y=e.position.getWithinInfo(t.within),b=e.position.getScrollInfo(y),w=(t.collision||"flip").split(" "),x={};return v=p(_),_[0].preventDefault&&(t.at="left top"),u=v.width,f=v.height,g=v.offset,m=e.extend({},g),e.each(["my","at"],(function(){var e,i,n=(t[this]||"").split(" ");1===n.length&&(n=s.test(n[0])?n.concat(["center"]):o.test(n[0])?["center"].concat(n):["center","center"]),n[0]=s.test(n[0])?n[0]:"center",n[1]=o.test(n[1])?n[1]:"center",e=r.exec(n[0]),i=r.exec(n[1]),x[this]=[e?e[0]:0,i?i[0]:0],t[this]=[a.exec(n[0])[0],a.exec(n[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===t.at[0]?m.left+=u:"center"===t.at[0]&&(m.left+=u/2),"bottom"===t.at[1]?m.top+=f:"center"===t.at[1]&&(m.top+=f/2),l=d(x.at,u,f),m.left+=l[0],m.top+=l[1],this.each((function(){var s,o,r=e(this),a=r.outerWidth(),c=r.outerHeight(),p=h(this,"marginLeft"),v=h(this,"marginTop"),k=a+p+h(this,"marginRight")+b.width,C=c+v+h(this,"marginBottom")+b.height,E=e.extend({},m),S=d(x.my,r.outerWidth(),r.outerHeight());"right"===t.my[0]?E.left-=a:"center"===t.my[0]&&(E.left-=a/2),"bottom"===t.my[1]?E.top-=c:"center"===t.my[1]&&(E.top-=c/2),E.left+=S[0],E.top+=S[1],s={marginLeft:p,marginTop:v},e.each(["left","top"],(function(i,n){e.ui.position[w[i]]&&e.ui.position[w[i]][n](E,{targetWidth:u,targetHeight:f,elemWidth:a,elemHeight:c,collisionPosition:s,collisionWidth:k,collisionHeight:C,offset:[l[0]+S[0],l[1]+S[1]],my:t.my,at:t.at,within:y,elem:r})})),t.using&&(o=function(e){var s=g.left-E.left,o=s+u-a,l=g.top-E.top,d=l+f-c,h={target:{element:_,left:g.left,top:g.top,width:u,height:f},element:{element:r,left:E.left,top:E.top,width:a,height:c},horizontal:o<0?"left":s>0?"right":"center",vertical:d<0?"top":l>0?"bottom":"middle"};u<a&&n(s+o)<u&&(h.horizontal="center"),f<c&&n(l+d)<f&&(h.vertical="middle"),i(n(s),n(o))>i(n(l),n(d))?h.important="horizontal":h.important="vertical",t.using.call(this,e,h)}),r.offset(e.extend(E,{using:o}))}))},e.ui.position={fit:{left:function(e,t){var n,s=t.within,o=s.isWindow?s.scrollLeft:s.offset.left,r=s.width,a=e.left-t.collisionPosition.marginLeft,l=o-a,c=a+t.collisionWidth-r-o;t.collisionWidth>r?l>0&&c<=0?(n=e.left+l+t.collisionWidth-r-o,e.left+=l-n):e.left=c>0&&l<=0?o:l>c?o+r-t.collisionWidth:o:l>0?e.left+=l:c>0?e.left-=c:e.left=i(e.left-a,e.left)},top:function(e,t){var n,s=t.within,o=s.isWindow?s.scrollTop:s.offset.top,r=t.within.height,a=e.top-t.collisionPosition.marginTop,l=o-a,c=a+t.collisionHeight-r-o;t.collisionHeight>r?l>0&&c<=0?(n=e.top+l+t.collisionHeight-r-o,e.top+=l-n):e.top=c>0&&l<=0?o:l>c?o+r-t.collisionHeight:o:l>0?e.top+=l:c>0?e.top-=c:e.top=i(e.top-a,e.top)}},flip:{left:function(e,t){var i,s,o=t.within,r=o.offset.left+o.scrollLeft,a=o.width,l=o.isWindow?o.scrollLeft:o.offset.left,c=e.left-t.collisionPosition.marginLeft,d=c-l,h=c+t.collisionWidth-a-l,u="left"===t.my[0]?-t.elemWidth:"right"===t.my[0]?t.elemWidth:0,p="left"===t.at[0]?t.targetWidth:"right"===t.at[0]?-t.targetWidth:0,f=-2*t.offset[0];d<0?((i=e.left+u+p+f+t.collisionWidth-a-r)<0||i<n(d))&&(e.left+=u+p+f):h>0&&((s=e.left-t.collisionPosition.marginLeft+u+p+f-l)>0||n(s)<h)&&(e.left+=u+p+f)},top:function(e,t){var i,s,o=t.within,r=o.offset.top+o.scrollTop,a=o.height,l=o.isWindow?o.scrollTop:o.offset.top,c=e.top-t.collisionPosition.marginTop,d=c-l,h=c+t.collisionHeight-a-l,u="top"===t.my[1]?-t.elemHeight:"bottom"===t.my[1]?t.elemHeight:0,p="top"===t.at[1]?t.targetHeight:"bottom"===t.at[1]?-t.targetHeight:0,f=-2*t.offset[1];d<0?((s=e.top+u+p+f+t.collisionHeight-a-r)<0||s<n(d))&&(e.top+=u+p+f):h>0&&((i=e.top-t.collisionPosition.marginTop+u+p+f-l)>0||n(i)<h)&&(e.top+=u+p+f)}},flipfit:{left:function(){e.ui.position.flip.left.apply(this,arguments),e.ui.position.fit.left.apply(this,arguments)},top:function(){e.ui.position.flip.top.apply(this,arguments),e.ui.position.fit.top.apply(this,arguments)}}}}(),e.ui.position,e.extend(e.expr.pseudos,{data:e.expr.createPseudo?e.expr.createPseudo((function(t){return function(i){return!!e.data(i,t)}})):function(t,i,n){return!!e.data(t,n[3])}}),e.fn.extend({disableSelection:(r="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(r+".ui-disableSelection",(function(e){e.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var o,r,a=e,l={},c=l.toString,d=/^([\-+])=\s*(\d+\.?\d*)/,h=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[e[1],e[2],e[3],e[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(e){return[2.55*e[1],2.55*e[2],2.55*e[3],e[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(e){return[parseInt(e[1],16),parseInt(e[2],16),parseInt(e[3],16),e[4]?(parseInt(e[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(e){return[parseInt(e[1]+e[1],16),parseInt(e[2]+e[2],16),parseInt(e[3]+e[3],16),e[4]?(parseInt(e[4]+e[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(e){return[e[1],e[2]/100,e[3]/100,e[4]]}}],u=a.Color=function(e,t,i,n){return new a.Color.fn.parse(e,t,i,n)},p={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"}}}},f={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},g=u.support={},m=a("<p>")[0],v=a.each;function _(e){return null==e?e+"":"object"==typeof e?l[c.call(e)]||"object":typeof e}function y(e,t,i){var n=f[t.type]||{};return null==e?i||!t.def?null:t.def:(e=n.floor?~~e:parseFloat(e),isNaN(e)?t.def:n.mod?(e+n.mod)%n.mod:Math.min(n.max,Math.max(0,e)))}function b(e){var t=u(),i=t._rgba=[];return e=e.toLowerCase(),v(h,(function(n,s){var o,r=s.re.exec(e),a=r&&s.parse(r),l=s.space||"rgba";if(a)return o=t[l](a),t[p[l].cache]=o[p[l].cache],i=t._rgba=o._rgba,!1})),i.length?("0,0,0,0"===i.join()&&a.extend(i,o.transparent),t):o[e]}function w(e,t,i){return 6*(i=(i+1)%1)<1?e+(t-e)*i*6:2*i<1?t:3*i<2?e+(t-e)*(2/3-i)*6:e}m.style.cssText="background-color:rgba(1,1,1,.5)",g.rgba=m.style.backgroundColor.indexOf("rgba")>-1,v(p,(function(e,t){t.cache="_"+e,t.props.alpha={idx:3,type:"percent",def:1}})),a.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){l["[object "+t+"]"]=t.toLowerCase()})),u.fn=a.extend(u.prototype,{parse:function(e,t,i,n){if(void 0===e)return this._rgba=[null,null,null,null],this;(e.jquery||e.nodeType)&&(e=a(e).css(t),t=void 0);var s=this,r=_(e),l=this._rgba=[];return void 0!==t&&(e=[e,t,i,n],r="array"),"string"===r?this.parse(b(e)||o._default):"array"===r?(v(p.rgba.props,(function(t,i){l[i.idx]=y(e[i.idx],i)})),this):"object"===r?(v(p,e instanceof u?function(t,i){e[i.cache]&&(s[i.cache]=e[i.cache].slice())}:function(t,i){var n=i.cache;v(i.props,(function(t,o){if(!s[n]&&i.to){if("alpha"===t||null==e[t])return;s[n]=i.to(s._rgba)}s[n][o.idx]=y(e[t],o,!0)})),s[n]&&a.inArray(null,s[n].slice(0,3))<0&&(null==s[n][3]&&(s[n][3]=1),i.from&&(s._rgba=i.from(s[n])))}),this):void 0},is:function(e){var t=u(e),i=!0,n=this;return v(p,(function(e,s){var o,r=t[s.cache];return r&&(o=n[s.cache]||s.to&&s.to(n._rgba)||[],v(s.props,(function(e,t){if(null!=r[t.idx])return i=r[t.idx]===o[t.idx]}))),i})),i},_space:function(){var e=[],t=this;return v(p,(function(i,n){t[n.cache]&&e.push(i)})),e.pop()},transition:function(e,t){var i=u(e),n=i._space(),s=p[n],o=0===this.alpha()?u("transparent"):this,r=o[s.cache]||s.to(o._rgba),a=r.slice();return i=i[s.cache],v(s.props,(function(e,n){var s=n.idx,o=r[s],l=i[s],c=f[n.type]||{};null!==l&&(null===o?a[s]=l:(c.mod&&(l-o>c.mod/2?o+=c.mod:o-l>c.mod/2&&(o-=c.mod)),a[s]=y((l-o)*t+o,n)))})),this[n](a)},blend:function(e){if(1===this._rgba[3])return this;var t=this._rgba.slice(),i=t.pop(),n=u(e)._rgba;return u(a.map(t,(function(e,t){return(1-i)*n[t]+i*e})))},toRgbaString:function(){var e="rgba(",t=a.map(this._rgba,(function(e,t){return null!=e?e:t>2?1:0}));return 1===t[3]&&(t.pop(),e="rgb("),e+t.join()+")"},toHslaString:function(){var e="hsla(",t=a.map(this.hsla(),(function(e,t){return null==e&&(e=t>2?1:0),t&&t<3&&(e=Math.round(100*e)+"%"),e}));return 1===t[3]&&(t.pop(),e="hsl("),e+t.join()+")"},toHexString:function(e){var t=this._rgba.slice(),i=t.pop();return e&&t.push(~~(255*i)),"#"+a.map(t,(function(e){return 1===(e=(e||0).toString(16)).length?"0"+e:e})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}}),u.fn.parse.prototype=u.fn,p.hsla.to=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t,i,n=e[0]/255,s=e[1]/255,o=e[2]/255,r=e[3],a=Math.max(n,s,o),l=Math.min(n,s,o),c=a-l,d=a+l,h=.5*d;return t=l===a?0:n===a?60*(s-o)/c+360:s===a?60*(o-n)/c+120:60*(n-s)/c+240,i=0===c?0:h<=.5?c/d:c/(2-d),[Math.round(t)%360,i,h,null==r?1:r]},p.hsla.from=function(e){if(null==e[0]||null==e[1]||null==e[2])return[null,null,null,e[3]];var t=e[0]/360,i=e[1],n=e[2],s=e[3],o=n<=.5?n*(1+i):n+i-n*i,r=2*n-o;return[Math.round(255*w(r,o,t+1/3)),Math.round(255*w(r,o,t)),Math.round(255*w(r,o,t-1/3)),s]},v(p,(function(e,t){var i=t.props,n=t.cache,s=t.to,o=t.from;u.fn[e]=function(e){if(s&&!this[n]&&(this[n]=s(this._rgba)),void 0===e)return this[n].slice();var t,r=_(e),a="array"===r||"object"===r?e:arguments,l=this[n].slice();return v(i,(function(e,t){var i=a["object"===r?e:t.idx];null==i&&(i=l[t.idx]),l[t.idx]=y(i,t)})),o?((t=u(o(l)))[n]=l,t):u(l)},v(i,(function(t,i){u.fn[t]||(u.fn[t]=function(n){var s,o,r,a,l=_(n);return o=(s=this[a="alpha"===t?this._hsla?"hsla":"rgba":e]())[i.idx],"undefined"===l?o:("function"===l&&(l=_(n=n.call(this,o))),null==n&&i.empty?this:("string"===l&&(r=d.exec(n))&&(n=o+parseFloat(r[2])*("+"===r[1]?1:-1)),s[i.idx]=n,this[a](s)))})}))})),u.hook=function(e){var t=e.split(" ");v(t,(function(e,t){a.cssHooks[t]={set:function(e,i){var n,s,o="";if("transparent"!==i&&("string"!==_(i)||(n=b(i)))){if(i=u(n||i),!g.rgba&&1!==i._rgba[3]){for(s="backgroundColor"===t?e.parentNode:e;(""===o||"transparent"===o)&&s&&s.style;)try{o=a.css(s,"backgroundColor"),s=s.parentNode}catch(e){}i=i.blend(o&&"transparent"!==o?o:"_default")}i=i.toRgbaString()}try{e.style[t]=i}catch(e){}}},a.fx.step[t]=function(e){e.colorInit||(e.start=u(e.elem,t),e.end=u(e.end),e.colorInit=!0),a.cssHooks[t].set(e.elem,e.start.transition(e.end,e.pos))}}))},u.hook("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),a.cssHooks.borderColor={expand:function(e){var t={};return v(["Top","Right","Bottom","Left"],(function(i,n){t["border"+n+"Color"]=e})),t}},o=a.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"};var x,k,C="ui-effects-",E="ui-effects-style",S="ui-effects-animated";if(e.effects={effect:{}},function(){var t=["add","remove","toggle"],i={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1};function n(e){var t,i,n,s=e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,null):e.currentStyle,o={};if(s&&s.length&&s[0]&&s[s[0]])for(i=s.length;i--;)"string"==typeof s[t=s[i]]&&(o[(n=t,n.replace(/-([\da-z])/gi,(function(e,t){return t.toUpperCase()})))]=s[t]);else for(t in s)"string"==typeof s[t]&&(o[t]=s[t]);return o}e.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(t,i){e.fx.step[i]=function(e){("none"!==e.end&&!e.setAttr||1===e.pos&&!e.setAttr)&&(a.style(e.elem,i,e.end),e.setAttr=!0)}})),e.fn.addBack||(e.fn.addBack=function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}),e.effects.animateClass=function(s,o,r,a){var l=e.speed(o,r,a);return this.queue((function(){var o,r=e(this),a=r.attr("class")||"",c=l.children?r.find("*").addBack():r;c=c.map((function(){return{el:e(this),start:n(this)}})),(o=function(){e.each(t,(function(e,t){s[t]&&r[t+"Class"](s[t])}))})(),c=c.map((function(){return this.end=n(this.el[0]),this.diff=function(t,n){var s,o,r={};for(s in n)o=n[s],t[s]!==o&&(i[s]||!e.fx.step[s]&&isNaN(parseFloat(o))||(r[s]=o));return r}(this.start,this.end),this})),r.attr("class",a),c=c.map((function(){var t=this,i=e.Deferred(),n=e.extend({},l,{queue:!1,complete:function(){i.resolve(t)}});return this.el.animate(this.diff,n),i.promise()})),e.when.apply(e,c.get()).done((function(){o(),e.each(arguments,(function(){var t=this.el;e.each(this.diff,(function(e){t.css(e,"")}))})),l.complete.call(r[0])}))}))},e.fn.extend({addClass:function(t){return function(i,n,s,o){return n?e.effects.animateClass.call(this,{add:i},n,s,o):t.apply(this,arguments)}}(e.fn.addClass),removeClass:function(t){return function(i,n,s,o){return arguments.length>1?e.effects.animateClass.call(this,{remove:i},n,s,o):t.apply(this,arguments)}}(e.fn.removeClass),toggleClass:function(t){return function(i,n,s,o,r){return"boolean"==typeof n||void 0===n?s?e.effects.animateClass.call(this,n?{add:i}:{remove:i},s,o,r):t.apply(this,arguments):e.effects.animateClass.call(this,{toggle:i},n,s,o)}}(e.fn.toggleClass),switchClass:function(t,i,n,s,o){return e.effects.animateClass.call(this,{add:i,remove:t},n,s,o)}})}(),function(){function t(t,i,n,s){return e.isPlainObject(t)&&(i=t,t=t.effect),t={effect:t},null==i&&(i={}),"function"==typeof i&&(s=i,n=null,i={}),("number"==typeof i||e.fx.speeds[i])&&(s=n,n=i,i={}),"function"==typeof n&&(s=n,n=null),i&&e.extend(t,i),n=n||i.duration,t.duration=e.fx.off?0:"number"==typeof n?n:n in e.fx.speeds?e.fx.speeds[n]:e.fx.speeds._default,t.complete=s||i.complete,t}function i(t){return!(t&&"number"!=typeof t&&!e.fx.speeds[t])||"string"==typeof t&&!e.effects.effect[t]||"function"==typeof t||"object"==typeof t&&!t.effect}function n(e,t){var i=t.outerWidth(),n=t.outerHeight(),s=/^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(e)||["",0,i,n,0];return{top:parseFloat(s[1])||0,right:"auto"===s[2]?i:parseFloat(s[2]),bottom:"auto"===s[3]?n:parseFloat(s[3]),left:parseFloat(s[4])||0}}e.expr&&e.expr.pseudos&&e.expr.pseudos.animated&&(e.expr.pseudos.animated=function(t){return function(i){return!!e(i).data(S)||t(i)}}(e.expr.pseudos.animated)),!1!==e.uiBackCompat&&e.extend(e.effects,{save:function(e,t){for(var i=0,n=t.length;i<n;i++)null!==t[i]&&e.data(C+t[i],e[0].style[t[i]])},restore:function(e,t){for(var i,n=0,s=t.length;n<s;n++)null!==t[n]&&(i=e.data(C+t[n]),e.css(t[n],i))},setMode:function(e,t){return"toggle"===t&&(t=e.is(":hidden")?"show":"hide"),t},createWrapper:function(t){if(t.parent().is(".ui-effects-wrapper"))return t.parent();var i={width:t.outerWidth(!0),height:t.outerHeight(!0),float:t.css("float")},n=e("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),s={width:t.width(),height:t.height()},o=document.activeElement;try{o.id}catch(e){o=document.body}return t.wrap(n),(t[0]===o||e.contains(t[0],o))&&e(o).trigger("focus"),n=t.parent(),"static"===t.css("position")?(n.css({position:"relative"}),t.css({position:"relative"})):(e.extend(i,{position:t.css("position"),zIndex:t.css("z-index")}),e.each(["top","left","bottom","right"],(function(e,n){i[n]=t.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")})),t.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),t.css(s),n.css(i).show()},removeWrapper:function(t){var i=document.activeElement;return t.parent().is(".ui-effects-wrapper")&&(t.parent().replaceWith(t),(t[0]===i||e.contains(t[0],i))&&e(i).trigger("focus")),t}}),e.extend(e.effects,{version:"1.13.2",define:function(t,i,n){return n||(n=i,i="effect"),e.effects.effect[t]=n,e.effects.effect[t].mode=i,n},scaledDimensions:function(e,t,i){if(0===t)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(t||100)/100:1,s="vertical"!==i?(t||100)/100:1;return{height:e.height()*s,width:e.width()*n,outerHeight:e.outerHeight()*s,outerWidth:e.outerWidth()*n}},clipToBox:function(e){return{width:e.clip.right-e.clip.left,height:e.clip.bottom-e.clip.top,left:e.clip.left,top:e.clip.top}},unshift:function(e,t,i){var n=e.queue();t>1&&n.splice.apply(n,[1,0].concat(n.splice(t,i))),e.dequeue()},saveStyle:function(e){e.data(E,e[0].style.cssText)},restoreStyle:function(e){e[0].style.cssText=e.data(E)||"",e.removeData(E)},mode:function(e,t){var i=e.is(":hidden");return"toggle"===t&&(t=i?"show":"hide"),(i?"hide"===t:"show"===t)&&(t="none"),t},getBaseline:function(e,t){var i,n;switch(e[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=e[0]/t.height}switch(e[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=e[1]/t.width}return{x:n,y:i}},createPlaceholder:function(t){var i,n=t.css("position"),s=t.position();return t.css({marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",i=e("<"+t[0].nodeName+">").insertAfter(t).css({display:/^(inline|ruby)/.test(t.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:t.css("marginTop"),marginBottom:t.css("marginBottom"),marginLeft:t.css("marginLeft"),marginRight:t.css("marginRight"),float:t.css("float")}).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).addClass("ui-effects-placeholder"),t.data(C+"placeholder",i)),t.css({position:n,left:s.left,top:s.top}),i},removePlaceholder:function(e){var t=C+"placeholder",i=e.data(t);i&&(i.remove(),e.removeData(t))},cleanUp:function(t){e.effects.restoreStyle(t),e.effects.removePlaceholder(t)},setTransition:function(t,i,n,s){return s=s||{},e.each(i,(function(e,i){var o=t.cssUnit(i);o[0]>0&&(s[i]=o[0]*n+o[1])})),s}}),e.fn.extend({effect:function(){var i=t.apply(this,arguments),n=e.effects.effect[i.effect],s=n.mode,o=i.queue,r=o||"fx",a=i.complete,l=i.mode,c=[],d=function(t){var i=e(this),n=e.effects.mode(i,l)||s;i.data(S,!0),c.push(n),s&&("show"===n||n===s&&"hide"===n)&&i.show(),s&&"none"===n||e.effects.saveStyle(i),"function"==typeof t&&t()};if(e.fx.off||!n)return l?this[l](i.duration,a):this.each((function(){a&&a.call(this)}));function h(t){var o=e(this);function r(){"function"==typeof a&&a.call(o[0]),"function"==typeof t&&t()}i.mode=c.shift(),!1===e.uiBackCompat||s?"none"===i.mode?(o[l](),r()):n.call(o[0],i,(function(){o.removeData(S),e.effects.cleanUp(o),"hide"===i.mode&&o.hide(),r()})):(o.is(":hidden")?"hide"===l:"show"===l)?(o[l](),r()):n.call(o[0],i,r)}return!1===o?this.each(d).each(h):this.queue(r,d).queue(r,h)},show:function(e){return function(n){if(i(n))return e.apply(this,arguments);var s=t.apply(this,arguments);return s.mode="show",this.effect.call(this,s)}}(e.fn.show),hide:function(e){return function(n){if(i(n))return e.apply(this,arguments);var s=t.apply(this,arguments);return s.mode="hide",this.effect.call(this,s)}}(e.fn.hide),toggle:function(e){return function(n){if(i(n)||"boolean"==typeof n)return e.apply(this,arguments);var s=t.apply(this,arguments);return s.mode="toggle",this.effect.call(this,s)}}(e.fn.toggle),cssUnit:function(t){var i=this.css(t),n=[];return e.each(["em","px","%","pt"],(function(e,t){i.indexOf(t)>0&&(n=[parseFloat(i),t])})),n},cssClip:function(e){return e?this.css("clip","rect("+e.top+"px "+e.right+"px "+e.bottom+"px "+e.left+"px)"):n(this.css("clip"),this)},transfer:function(t,i){var n=e(this),s=e(t.to),o="fixed"===s.css("position"),r=e("body"),a=o?r.scrollTop():0,l=o?r.scrollLeft():0,c=s.offset(),d={top:c.top-a,left:c.left-l,height:s.innerHeight(),width:s.innerWidth()},h=n.offset(),u=e("<div class='ui-effects-transfer'></div>");u.appendTo("body").addClass(t.className).css({top:h.top-a,left:h.left-l,height:n.innerHeight(),width:n.innerWidth(),position:o?"fixed":"absolute"}).animate(d,t.duration,t.easing,(function(){u.remove(),"function"==typeof i&&i()}))}}),e.fx.step.clip=function(t){t.clipInit||(t.start=e(t.elem).cssClip(),"string"==typeof t.end&&(t.end=n(t.end,t.elem)),t.clipInit=!0),e(t.elem).cssClip({top:t.pos*(t.end.top-t.start.top)+t.start.top,right:t.pos*(t.end.right-t.start.right)+t.start.right,bottom:t.pos*(t.end.bottom-t.start.bottom)+t.start.bottom,left:t.pos*(t.end.left-t.start.left)+t.start.left})}}(),x={},e.each(["Quad","Cubic","Quart","Quint","Expo"],(function(e,t){x[t]=function(t){return Math.pow(t,e+2)}})),e.extend(x,{Sine:function(e){return 1-Math.cos(e*Math.PI/2)},Circ:function(e){return 1-Math.sqrt(1-e*e)},Elastic:function(e){return 0===e||1===e?e:-Math.pow(2,8*(e-1))*Math.sin((80*(e-1)-7.5)*Math.PI/15)},Back:function(e){return e*e*(3*e-2)},Bounce:function(e){for(var t,i=4;e<((t=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*t-2)/22-e,2)}}),e.each(x,(function(t,i){e.easing["easeIn"+t]=i,e.easing["easeOut"+t]=function(e){return 1-i(1-e)},e.easing["easeInOut"+t]=function(e){return e<.5?i(2*e)/2:1-i(-2*e+2)/2}})),e.effects,e.effects.define("blind","hide",(function(t,i){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=e(this),o=t.direction||"up",r=s.cssClip(),a={clip:e.extend({},r)},l=e.effects.createPlaceholder(s);a.clip[n[o][0]]=a.clip[n[o][1]],"show"===t.mode&&(s.cssClip(a.clip),l&&l.css(e.effects.clipToBox(a)),a.clip=r),l&&l.animate(e.effects.clipToBox(a),t.duration,t.easing),s.animate(a,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("bounce",(function(t,i){var n,s,o,r=e(this),a=t.mode,l="hide"===a,c="show"===a,d=t.direction||"up",h=t.distance,u=t.times||5,p=2*u+(c||l?1:0),f=t.duration/p,g=t.easing,m="up"===d||"down"===d?"top":"left",v="up"===d||"left"===d,_=0,y=r.queue().length;for(e.effects.createPlaceholder(r),o=r.css(m),h||(h=r["top"===m?"outerHeight":"outerWidth"]()/3),c&&((s={opacity:1})[m]=o,r.css("opacity",0).css(m,v?2*-h:2*h).animate(s,f,g)),l&&(h/=Math.pow(2,u-1)),(s={})[m]=o;_<u;_++)(n={})[m]=(v?"-=":"+=")+h,r.animate(n,f,g).animate(s,f,g),h=l?2*h:h/2;l&&((n={opacity:0})[m]=(v?"-=":"+=")+h,r.animate(n,f,g)),r.queue(i),e.effects.unshift(r,y,p+1)})),e.effects.define("clip","hide",(function(t,i){var n,s={},o=e(this),r=t.direction||"vertical",a="both"===r,l=a||"horizontal"===r,c=a||"vertical"===r;n=o.cssClip(),s.clip={top:c?(n.bottom-n.top)/2:n.top,right:l?(n.right-n.left)/2:n.right,bottom:c?(n.bottom-n.top)/2:n.bottom,left:l?(n.right-n.left)/2:n.left},e.effects.createPlaceholder(o),"show"===t.mode&&(o.cssClip(s.clip),s.clip=n),o.animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("drop","hide",(function(t,i){var n,s=e(this),o="show"===t.mode,r=t.direction||"left",a="up"===r||"down"===r?"top":"left",l="up"===r||"left"===r?"-=":"+=",c="+="===l?"-=":"+=",d={opacity:0};e.effects.createPlaceholder(s),n=t.distance||s["top"===a?"outerHeight":"outerWidth"](!0)/2,d[a]=l+n,o&&(s.css(d),d[a]=c+n,d.opacity=1),s.animate(d,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("explode","hide",(function(t,i){var n,s,o,r,a,l,c=t.pieces?Math.round(Math.sqrt(t.pieces)):3,d=c,h=e(this),u="show"===t.mode,p=h.show().css("visibility","hidden").offset(),f=Math.ceil(h.outerWidth()/d),g=Math.ceil(h.outerHeight()/c),m=[];function v(){m.push(this),m.length===c*d&&(h.css({visibility:"visible"}),e(m).remove(),i())}for(n=0;n<c;n++)for(r=p.top+n*g,l=n-(c-1)/2,s=0;s<d;s++)o=p.left+s*f,a=s-(d-1)/2,h.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*f,top:-n*g}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:g,left:o+(u?a*f:0),top:r+(u?l*g:0),opacity:u?0:1}).animate({left:o+(u?0:a*f),top:r+(u?0:l*g),opacity:u?1:0},t.duration||500,t.easing,v)})),e.effects.define("fade","toggle",(function(t,i){var n="show"===t.mode;e(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("fold","hide",(function(t,i){var n=e(this),s=t.mode,o="show"===s,r="hide"===s,a=t.size||15,l=/([0-9]+)%/.exec(a),c=t.horizFirst?["right","bottom"]:["bottom","right"],d=t.duration/2,h=e.effects.createPlaceholder(n),u=n.cssClip(),p={clip:e.extend({},u)},f={clip:e.extend({},u)},g=[u[c[0]],u[c[1]]],m=n.queue().length;l&&(a=parseInt(l[1],10)/100*g[r?0:1]),p.clip[c[0]]=a,f.clip[c[0]]=a,f.clip[c[1]]=0,o&&(n.cssClip(f.clip),h&&h.css(e.effects.clipToBox(f)),f.clip=u),n.queue((function(i){h&&h.animate(e.effects.clipToBox(p),d,t.easing).animate(e.effects.clipToBox(f),d,t.easing),i()})).animate(p,d,t.easing).animate(f,d,t.easing).queue(i),e.effects.unshift(n,m,4)})),e.effects.define("highlight","show",(function(t,i){var n=e(this),s={backgroundColor:n.css("backgroundColor")};"hide"===t.mode&&(s.opacity=0),e.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:t.color||"#ffff99"}).animate(s,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),e.effects.define("size",(function(t,i){var n,s,o,r=e(this),a=["fontSize"],l=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],c=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],d=t.mode,h="effect"!==d,u=t.scale||"both",p=t.origin||["middle","center"],f=r.css("position"),g=r.position(),m=e.effects.scaledDimensions(r),v=t.from||m,_=t.to||e.effects.scaledDimensions(r,0);e.effects.createPlaceholder(r),"show"===d&&(o=v,v=_,_=o),s={from:{y:v.height/m.height,x:v.width/m.width},to:{y:_.height/m.height,x:_.width/m.width}},"box"!==u&&"both"!==u||(s.from.y!==s.to.y&&(v=e.effects.setTransition(r,l,s.from.y,v),_=e.effects.setTransition(r,l,s.to.y,_)),s.from.x!==s.to.x&&(v=e.effects.setTransition(r,c,s.from.x,v),_=e.effects.setTransition(r,c,s.to.x,_))),"content"!==u&&"both"!==u||s.from.y!==s.to.y&&(v=e.effects.setTransition(r,a,s.from.y,v),_=e.effects.setTransition(r,a,s.to.y,_)),p&&(n=e.effects.getBaseline(p,m),v.top=(m.outerHeight-v.outerHeight)*n.y+g.top,v.left=(m.outerWidth-v.outerWidth)*n.x+g.left,_.top=(m.outerHeight-_.outerHeight)*n.y+g.top,_.left=(m.outerWidth-_.outerWidth)*n.x+g.left),delete v.outerHeight,delete v.outerWidth,r.css(v),"content"!==u&&"both"!==u||(l=l.concat(["marginTop","marginBottom"]).concat(a),c=c.concat(["marginLeft","marginRight"]),r.find("*[width]").each((function(){var i=e(this),n=e.effects.scaledDimensions(i),o={height:n.height*s.from.y,width:n.width*s.from.x,outerHeight:n.outerHeight*s.from.y,outerWidth:n.outerWidth*s.from.x},r={height:n.height*s.to.y,width:n.width*s.to.x,outerHeight:n.height*s.to.y,outerWidth:n.width*s.to.x};s.from.y!==s.to.y&&(o=e.effects.setTransition(i,l,s.from.y,o),r=e.effects.setTransition(i,l,s.to.y,r)),s.from.x!==s.to.x&&(o=e.effects.setTransition(i,c,s.from.x,o),r=e.effects.setTransition(i,c,s.to.x,r)),h&&e.effects.saveStyle(i),i.css(o),i.animate(r,t.duration,t.easing,(function(){h&&e.effects.restoreStyle(i)}))}))),r.animate(_,{queue:!1,duration:t.duration,easing:t.easing,complete:function(){var t=r.offset();0===_.opacity&&r.css("opacity",v.opacity),h||(r.css("position","static"===f?"relative":f).offset(t),e.effects.saveStyle(r)),i()}})})),e.effects.define("scale",(function(t,i){var n=e(this),s=t.mode,o=parseInt(t.percent,10)||(0===parseInt(t.percent,10)||"effect"!==s?0:100),r=e.extend(!0,{from:e.effects.scaledDimensions(n),to:e.effects.scaledDimensions(n,o,t.direction||"both"),origin:t.origin||["middle","center"]},t);t.fade&&(r.from.opacity=1,r.to.opacity=0),e.effects.effect.size.call(this,r,i)})),e.effects.define("puff","hide",(function(t,i){var n=e.extend(!0,{},t,{fade:!0,percent:parseInt(t.percent,10)||150});e.effects.effect.scale.call(this,n,i)})),e.effects.define("pulsate","show",(function(t,i){var n=e(this),s=t.mode,o="show"===s,r=o||"hide"===s,a=2*(t.times||5)+(r?1:0),l=t.duration/a,c=0,d=1,h=n.queue().length;for(!o&&n.is(":visible")||(n.css("opacity",0).show(),c=1);d<a;d++)n.animate({opacity:c},l,t.easing),c=1-c;n.animate({opacity:c},l,t.easing),n.queue(i),e.effects.unshift(n,h,a+1)})),e.effects.define("shake",(function(t,i){var n=1,s=e(this),o=t.direction||"left",r=t.distance||20,a=t.times||3,l=2*a+1,c=Math.round(t.duration/l),d="up"===o||"down"===o?"top":"left",h="up"===o||"left"===o,u={},p={},f={},g=s.queue().length;for(e.effects.createPlaceholder(s),u[d]=(h?"-=":"+=")+r,p[d]=(h?"+=":"-=")+2*r,f[d]=(h?"-=":"+=")+2*r,s.animate(u,c,t.easing);n<a;n++)s.animate(p,c,t.easing).animate(f,c,t.easing);s.animate(p,c,t.easing).animate(u,c/2,t.easing).queue(i),e.effects.unshift(s,g,l+1)})),e.effects.define("slide","show",(function(t,i){var n,s,o=e(this),r={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},a=t.mode,l=t.direction||"left",c="up"===l||"down"===l?"top":"left",d="up"===l||"left"===l,h=t.distance||o["top"===c?"outerHeight":"outerWidth"](!0),u={};e.effects.createPlaceholder(o),n=o.cssClip(),s=o.position()[c],u[c]=(d?-1:1)*h+s,u.clip=o.cssClip(),u.clip[r[l][1]]=u.clip[r[l][0]],"show"===a&&(o.cssClip(u.clip),o.css(c,u[c]),u.clip=n,u[c]=s),o.animate(u,{queue:!1,duration:t.duration,easing:t.easing,complete:i})})),!1!==e.uiBackCompat&&e.effects.define("transfer",(function(t,i){e(this).transfer(t,i)})),e.ui.focusable=function(t,i){var n,s,o,r,a,l=t.nodeName.toLowerCase();return"area"===l?(s=(n=t.parentNode).name,!(!t.href||!s||"map"!==n.nodeName.toLowerCase())&&(o=e("img[usemap='#"+s+"']")).length>0&&o.is(":visible")):(/^(input|select|textarea|button|object)$/.test(l)?(r=!t.disabled)&&(a=e(t).closest("fieldset")[0])&&(r=!a.disabled):r="a"===l&&t.href||i,r&&e(t).is(":visible")&&function(e){for(var t=e.css("visibility");"inherit"===t;)t=(e=e.parent()).css("visibility");return"visible"===t}(e(t)))},e.extend(e.expr.pseudos,{focusable:function(t){return e.ui.focusable(t,null!=e.attr(t,"tabindex"))}}),e.ui.focusable,e.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):e(this[0].form)},e.ui.formResetMixin={_formResetHandler:function(){var t=e(this);setTimeout((function(){var i=t.data("ui-form-reset-instances");e.each(i,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){if(this.form=this.element._form(),this.form.length){var e=this.form.data("ui-form-reset-instances")||[];e.length||this.form.on("reset.ui-form-reset",this._formResetHandler),e.push(this),this.form.data("ui-form-reset-instances",e)}},_unbindFormResetHandler:function(){if(this.form.length){var t=this.form.data("ui-form-reset-instances");t.splice(e.inArray(this,t),1),t.length?this.form.data("ui-form-reset-instances",t):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset")}}},e.expr.pseudos||(e.expr.pseudos=e.expr[":"]),e.uniqueSort||(e.uniqueSort=e.unique),!e.escapeSelector){var T=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,O=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e};e.escapeSelector=function(e){return(e+"").replace(T,O)}}e.fn.even&&e.fn.odd||e.fn.extend({even:function(){return this.filter((function(e){return e%2==0}))},odd:function(){return this.filter((function(e){return e%2==1}))}}),e.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},e.fn.labels=function(){var t,i,n,s,o;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(s=this.eq(0).parents("label"),(n=this.attr("id"))&&(o=(t=this.eq(0).parents().last()).add(t.length?t.siblings():this.siblings()),i="label[for='"+e.escapeSelector(n)+"']",s=s.add(o.find(i).addBack(i))),this.pushStack(s)):this.pushStack([])},e.fn.scrollParent=function(t){var i=this.css("position"),n="absolute"===i,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,o=this.parents().filter((function(){var t=e(this);return(!n||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))})).eq(0);return"fixed"!==i&&o.length?o:e(this[0].ownerDocument||document)},e.extend(e.expr.pseudos,{tabbable:function(t){var i=e.attr(t,"tabindex"),n=null!=i;return(!n||i>=0)&&e.ui.focusable(t,n)}}),e.fn.extend({uniqueId:(k=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++k)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&e(this).removeAttr("id")}))}}),e.widget("ui.accordion",{version:"1.13.2",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:function(e){return e.find("> li > :first-child").add(e.find("> :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 t=this.options;this.prevShow=this.prevHide=e(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),t.collapsible||!1!==t.active&&null!=t.active||(t.active=0),this._processPanels(),t.active<0&&(t.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():e()}},_createIcons:function(){var t,i,n=this.options.icons;n&&(t=e("<span>"),this._addClass(t,"ui-accordion-header-icon","ui-icon "+n.header),t.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 e;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),e=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&e.css("height","")},_setOption:function(e,t){"active"!==e?("event"===e&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(t)),this._super(e,t),"collapsible"!==e||t||!1!==this.options.active||this._activate(0),"icons"===e&&(this._destroyIcons(),t&&this._createIcons())):this._activate(t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!e)},_keydown:function(t){if(!t.altKey&&!t.ctrlKey){var i=e.ui.keyCode,n=this.headers.length,s=this.headers.index(t.target),o=!1;switch(t.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(s+1)%n];break;case i.LEFT:case i.UP:o=this.headers[(s-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(t);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[n-1]}o&&(e(t.target).attr("tabIndex",-1),e(o).attr("tabIndex",0),e(o).trigger("focus"),t.preventDefault())}},_panelKeyDown:function(t){t.keyCode===e.ui.keyCode.UP&&t.ctrlKey&&e(t.currentTarget).prev().trigger("focus")},refresh:function(){var t=this.options;this._processPanels(),!1===t.active&&!0===t.collapsible||!this.headers.length?(t.active=!1,this.active=e()):!1===t.active?this._activate(0):this.active.length&&!e.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(t.active=!1,this.active=e()):this._activate(Math.max(0,t.active-1)):t.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){var e=this.headers,t=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):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"),t&&(this._off(e.not(this.headers)),this._off(t.not(this.panels)))},_refresh:function(){var t,i=this.options,n=i.heightStyle,s=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 t=e(this),i=t.uniqueId().attr("id"),n=t.next(),s=n.uniqueId().attr("id");t.attr("aria-controls",s),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?(t=s.height(),this.element.siblings(":visible").each((function(){var i=e(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(t-=i.outerHeight(!0))})),this.headers.each((function(){t-=e(this).outerHeight(!0)})),this.headers.next().each((function(){e(this).height(Math.max(0,t-e(this).innerHeight()+e(this).height()))})).css("overflow","auto")):"auto"===n&&(t=0,this.headers.next().each((function(){var i=e(this).is(":visible");i||e(this).show(),t=Math.max(t,e(this).css("height","").height()),i||e(this).hide()})).height(t))},_activate:function(t){var i=this._findActive(t)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return"number"==typeof t?this.headers.eq(t):e()},_setupEvents:function(t){var i={keydown:"_keydown"};t&&e.each(t.split(" "),(function(e,t){i[t]="_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(t){var i,n,s=this.options,o=this.active,r=e(t.currentTarget),a=r[0]===o[0],l=a&&s.collapsible,c=l?e():r.next(),d=o.next(),h={oldHeader:o,oldPanel:d,newHeader:l?e():r,newPanel:c};t.preventDefault(),a&&!s.collapsible||!1===this._trigger("beforeActivate",t,h)||(s.active=!l&&this.headers.index(r),this.active=a?e():r,this._toggle(h),this._removeClass(o,"ui-accordion-header-active","ui-state-active"),s.icons&&(i=o.children(".ui-accordion-header-icon"),this._removeClass(i,null,s.icons.activeHeader)._addClass(i,null,s.icons.header)),a||(this._removeClass(r,"ui-accordion-header-collapsed")._addClass(r,"ui-accordion-header-active","ui-state-active"),s.icons&&(n=r.children(".ui-accordion-header-icon"),this._removeClass(n,null,s.icons.header)._addClass(n,null,s.icons.activeHeader)),this._addClass(r.next(),"ui-accordion-content-active")))},_toggle:function(t){var i=t.newPanel,n=this.prevShow.length?this.prevShow:t.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,t):(n.hide(),i.show(),this._toggleComplete(t)),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(e(this).attr("tabIndex"),10)})).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(e,t,i){var n,s,o,r=this,a=0,l=e.css("box-sizing"),c=e.length&&(!t.length||e.index()<t.index()),d=this.options.animate||{},h=c&&d.down||d,u=function(){r._toggleComplete(i)};return"number"==typeof h&&(o=h),"string"==typeof h&&(s=h),s=s||h.easing||d.easing,o=o||h.duration||d.duration,t.length?e.length?(n=e.show().outerHeight(),t.animate(this.hideProps,{duration:o,easing:s,step:function(e,t){t.now=Math.round(e)}}),void e.hide().animate(this.showProps,{duration:o,easing:s,complete:u,step:function(e,i){i.now=Math.round(e),"height"!==i.prop?"content-box"===l&&(a+=i.now):"content"!==r.options.heightStyle&&(i.now=Math.round(n-t.outerHeight()-a),a=0)}})):t.animate(this.hideProps,o,s,u):e.animate(this.showProps,o,s,u)},_toggleComplete:function(e){var t=e.oldPanel,i=t.prev();this._removeClass(t,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),t.length&&(t.parent()[0].className=t.parent()[0].className),this._trigger("activate",null,e)}}),e.ui.safeActiveElement=function(e){var t;try{t=e.activeElement}catch(i){t=e.body}return t||(t=e.body),t.nodeName||(t=e.body),t},e.widget("ui.menu",{version:"1.13.2",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.lastMousePosition={x:null,y:null},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(e){e.preventDefault(),this._activateItem(e)},"click .ui-menu-item":function(t){var i=e(t.target),n=e(e.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(t):!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":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(e,t){var i=this.active||this._menuItems().first();t||this.focus(e,i)},blur:function(t){this._delay((function(){!e.contains(this.element[0],e.ui.safeActiveElement(this.document[0]))&&this.collapseAll(t)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(e){this._closeOnDocumentClick(e)&&this.collapseAll(e,!0),this.mouseHandled=!1}})},_activateItem:function(t){if(!this.previousFilter&&(t.clientX!==this.lastMousePosition.x||t.clientY!==this.lastMousePosition.y)){this.lastMousePosition={x:t.clientX,y:t.clientY};var i=e(t.target).closest(".ui-menu-item"),n=e(t.currentTarget);i[0]===n[0]&&(n.is(".ui-state-active")||(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,n)))}},_destroy:function(){var t=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(),t.children().each((function(){var t=e(this);t.data("ui-menu-submenu-caret")&&t.remove()}))},_keydown:function(t){var i,n,s,o,r=!0;switch(t.keyCode){case e.ui.keyCode.PAGE_UP:this.previousPage(t);break;case e.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case e.ui.keyCode.HOME:this._move("first","first",t);break;case e.ui.keyCode.END:this._move("last","last",t);break;case e.ui.keyCode.UP:this.previous(t);break;case e.ui.keyCode.DOWN:this.next(t);break;case e.ui.keyCode.LEFT:this.collapse(t);break;case e.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case e.ui.keyCode.ENTER:case e.ui.keyCode.SPACE:this._activate(t);break;case e.ui.keyCode.ESCAPE:this.collapse(t);break;default:r=!1,n=this.previousFilter||"",o=!1,s=t.keyCode>=96&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),s===n?o=!0:s=n+s,i=this._filterMenuItems(s),(i=o&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(s=String.fromCharCode(t.keyCode),i=this._filterMenuItems(s)),i.length?(this.focus(t,i),this.previousFilter=s,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}r&&t.preventDefault()},_activate:function(e){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(e):this.select(e))},refresh:function(){var t,i,n,s,o=this,r=this.options.icons.submenu,a=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=a.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var t=e(this),i=t.prev(),n=e("<span>").data("ui-menu-submenu-caret",!0);o._addClass(n,"ui-menu-icon","ui-icon "+r),i.attr("aria-haspopup","true").prepend(n),t.attr("aria-labelledby",i.attr("id"))})),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(t=a.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var t=e(this);o._isDivider(t)&&o._addClass(t,"ui-menu-divider","ui-widget-content")})),s=(n=t.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(s,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!e.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(e,t){if("icons"===e){var i=this.element.find(".ui-menu-icon");this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,t.submenu)}this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",String(e)),this._toggleClass(null,"ui-state-disabled",!!e)},focus:function(e,t){var i,n,s;this.blur(e,e&&"focus"===e.type),this._scrollIntoView(t),this.active=t.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")),s=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(s,null,"ui-state-active"),e&&"keydown"===e.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=t.children(".ui-menu")).length&&e&&/^mouse/.test(e.type)&&this._startOpening(i),this.activeMenu=t.parent(),this._trigger("focus",e,{item:t})},_scrollIntoView:function(t){var i,n,s,o,r,a;this._hasScroll()&&(i=parseFloat(e.css(this.activeMenu[0],"borderTopWidth"))||0,n=parseFloat(e.css(this.activeMenu[0],"paddingTop"))||0,s=t.offset().top-this.activeMenu.offset().top-i-n,o=this.activeMenu.scrollTop(),r=this.activeMenu.height(),a=t.outerHeight(),s<0?this.activeMenu.scrollTop(o+s):s+a>r&&this.activeMenu.scrollTop(o+s-r+a))},blur:function(e,t){t||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",e,{item:this.active}),this.active=null)},_startOpening:function(e){clearTimeout(this.timer),"true"===e.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(e)}),this.delay))},_open:function(t){var i=e.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(t.parents(".ui-menu")).hide().attr("aria-hidden","true"),t.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(t,i){clearTimeout(this.timer),this.timer=this._delay((function(){var n=i?this.element:e(t&&t.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(t),this._removeClass(n.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=n}),i?0:this.delay)},_close:function(e){e||(e=this.active?this.active.parent():this.element),e.find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(t){return!e(t.target).closest(".ui-menu").length},_isDivider:function(e){return!/[^\-\u2014\u2013\s]/.test(e.text())},collapse:function(e){var t=this.active&&this.active.parent().closest(".ui-menu-item",this.element);t&&t.length&&(this._close(),this.focus(e,t))},expand:function(e){var t=this.active&&this._menuItems(this.active.children(".ui-menu")).first();t&&t.length&&(this._open(t.parent()),this._delay((function(){this.focus(e,t)})))},next:function(e){this._move("next","first",e)},previous:function(e){this._move("prev","last",e)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(e){return(e||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(e,t,i){var n;this.active&&(n="first"===e||"last"===e?this.active["first"===e?"prevAll":"nextAll"](".ui-menu-item").last():this.active[e+"All"](".ui-menu-item").first()),n&&n.length&&this.active||(n=this._menuItems(this.activeMenu)[t]()),this.focus(i,n)},nextPage:function(t){var i,n,s;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each((function(){return(i=e(this)).offset().top-n-s<0})),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(t)},previousPage:function(t){var i,n,s;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.innerHeight(),0===e.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each((function(){return(i=e(this)).offset().top-n+s>0})),this.focus(t,i)):this.focus(t,this._menuItems(this.activeMenu).first())):this.next(t)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(t){this.active=this.active||e(t.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(t,!0),this._trigger("select",t,i)},_filterMenuItems:function(t){var i=t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&"),n=new RegExp("^"+i,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter((function(){return n.test(String.prototype.trim.call(e(this).children(".ui-menu-item-wrapper").text()))}))}}),e.widget("ui.autocomplete",{version:"1.13.2",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,liveRegionTimer:null,_create:function(){var t,i,n,s=this.element[0].nodeName.toLowerCase(),o="textarea"===s,r="input"===s;this.isMultiLine=o||!r&&this._isContentEditable(this.element),this.valueMethod=this.element[o||r?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))return t=!0,n=!0,void(i=!0);t=!1,n=!1,i=!1;var o=e.ui.keyCode;switch(s.keyCode){case o.PAGE_UP:t=!0,this._move("previousPage",s);break;case o.PAGE_DOWN:t=!0,this._move("nextPage",s);break;case o.UP:t=!0,this._keyEvent("previous",s);break;case o.DOWN:t=!0,this._keyEvent("next",s);break;case o.ENTER:this.menu.active&&(t=!0,s.preventDefault(),this.menu.select(s));break;case o.TAB:this.menu.active&&this.menu.select(s);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(s),s.preventDefault());break;default:i=!0,this._searchTimeout(s)}},keypress:function(n){if(t)return t=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var s=e.ui.keyCode;switch(n.keyCode){case s.PAGE_UP:this._move("previousPage",n);break;case s.PAGE_DOWN:this._move("nextPage",n);break;case s.UP:this._keyEvent("previous",n);break;case s.DOWN:this._keyEvent("next",n)}}},input:function(e){if(n)return n=!1,void e.preventDefault();this._searchTimeout(e)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(e){clearTimeout(this.searching),this.close(e),this._change(e)}}),this._initSource(),this.menu=e("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(e){e.preventDefault()},menufocus:function(t,i){var n,s;if(this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent&&/^mouse/.test(t.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",(function(){e(t.target).trigger(t.originalEvent)}));s=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:s})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value),(n=i.item.attr("aria-label")||s.value)&&String.prototype.trim.call(n).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(e("<div>").text(n))}),100))},menuselect:function(t,i){var n=i.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==e.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay((function(){this.previous=s,this.selectedItem=n}))),!1!==this._trigger("select",t,{item:n})&&this._value(n.value),this.term=this._value(),this.close(t),this.selectedItem=n}}),this.liveRegion=e("<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(e,t){this._super(e,t),"source"===e&&this._initSource(),"appendTo"===e&&this.menu.element.appendTo(this._appendTo()),"disabled"===e&&t&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var i=this.menu.element[0];return t.target===this.element[0]||t.target===i||e.contains(i,t.target)},_closeOnClickOutside:function(e){this._isEventTargetInWidget(e)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_initSource:function(){var t,i,n=this;Array.isArray(this.options.source)?(t=this.options.source,this.source=function(i,n){n(e.ui.autocomplete.filter(t,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(t,s){n.xhr&&n.xhr.abort(),n.xhr=e.ajax({url:i,data:t,dataType:"json",success:function(e){s(e)},error:function(){s([])}})}):this.source=this.options.source},_searchTimeout:function(e){clearTimeout(this.searching),this.searching=this._delay((function(){var t=this.term===this._value(),i=this.menu.element.is(":visible"),n=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;t&&(!t||i||n)||(this.selectedItem=null,this.search(null,e))}),this.options.delay)},search:function(e,t){return e=null!=e?e:this._value(),this.term=this._value(),e.length<this.options.minLength?this.close(t):!1!==this._trigger("search",t)?this._search(e):void 0},_search:function(e){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:e},this._response())},_response:function(){var e=++this.requestIndex;return function(t){e===this.requestIndex&&this.__response(t),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(e){e&&(e=this._normalize(e)),this._trigger("response",null,{content:e}),!this.options.disabled&&e&&e.length&&!this.cancelSearch?(this._suggest(e),this._trigger("open")):this._close()},close:function(e){this.cancelSearch=!0,this._close(e)},_close:function(e){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",e))},_change:function(e){this.previous!==this._value()&&this._trigger("change",e,{item:this.selectedItem})},_normalize:function(t){return t.length&&t[0].label&&t[0].value?t:e.map(t,(function(t){return"string"==typeof t?{label:t,value:t}:e.extend({},t,{label:t.label||t.value,value:t.value||t.label})}))},_suggest:function(t){var i=this.menu.element.empty();this._renderMenu(i,t),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(e.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var e=this.menu.element;e.outerWidth(Math.max(e.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(t,i){var n=this;e.each(i,(function(e,i){n._renderItemData(t,i)}))},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-autocomplete-item",t)},_renderItem:function(t,i){return e("<li>").append(e("<div>").text(i.label)).appendTo(t)},_move:function(e,t){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(e)||this.menu.isLastItem()&&/^next/.test(e)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[e](t);this.search(null,t)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(e,t){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(e,t),t.preventDefault())},_isContentEditable:function(e){if(!e.length)return!1;var t=e.prop("contentEditable");return"inherit"===t?this._isContentEditable(e.parent()):"true"===t}}),e.extend(e.ui.autocomplete,{escapeRegex:function(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,i){var n=new RegExp(e.ui.autocomplete.escapeRegex(i),"i");return e.grep(t,(function(e){return n.test(e.label||e.value||e)}))}}),e.widget("ui.autocomplete",e.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(e){return e+(e>1?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(t){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=t&&t.length?this.options.messages.results(t.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(e("<div>").text(i))}),100))}}),e.ui.autocomplete;var A,D=/ui-corner-([a-z]){2,6}/g;function P(){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:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},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,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=j(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function j(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,(function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",i,I)}function I(){e.datepicker._isDisabledDatepicker(A.inline?A.dpDiv.parent()[0]:A.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function N(t,i){for(var n in e.extend(t,i),i)null==i[n]&&(t[n]=i[n]);return t}e.widget("ui.controlgroup",{version:"1.13.2",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 t=this,i=[];e.each(this.options.items,(function(n,s){var o,r={};if(s)return"controlgroupLabel"===n?((o=t.element.find(s)).each((function(){var t=e(this);t.children(".ui-controlgroup-label-contents").length||t.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")})),t._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(o.get()))):void(e.fn[n]&&(r=t["_"+n+"Options"]?t["_"+n+"Options"]("middle"):{classes:{}},t.element.find(s).each((function(){var s=e(this),o=s[n]("instance"),a=e.widget.extend({},r);if("button"!==n||!s.parent(".ui-spinner").length){o||(o=s[n]()[n]("instance")),o&&(a.classes=t._resolveClassesValues(a.classes,o)),s[n](a);var l=s[n]("widget");e.data(l[0],"ui-controlgroup-data",o||s[n]("instance")),i.push(l[0])}}))))})),this.childWidgets=e(e.uniqueSort(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(t){this.childWidgets.each((function(){var i=e(this).data("ui-controlgroup-data");i&&i[t]&&i[t]()}))},_updateCornerClass:function(e,t){var i=this._buildSimpleOptions(t,"label").classes.label;this._removeClass(e,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(e,null,i)},_buildSimpleOptions:function(e,t){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[t]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[e],n},_spinnerOptions:function(e){var t=this._buildSimpleOptions(e,"ui-spinner");return t.classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(e){return this._buildSimpleOptions(e,"ui-button")},_checkboxradioOptions:function(e){return this._buildSimpleOptions(e,"ui-checkboxradio-label")},_selectmenuOptions:function(e){var t="vertical"===this.options.direction;return{width:!!t&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(t?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(t?"top":"left")},last:{"ui-selectmenu-button-open":t?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(t?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[e]}},_resolveClassesValues:function(t,i){var n={};return e.each(t,(function(e){var s=i.options.classes[e]||"";s=String.prototype.trim.call(s.replace(D,"")),n[e]=(s+" "+t[e]).replace(/\s+/g," ")})),n},_setOption:function(e,t){"direction"===e&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(e,t),"disabled"!==e?this.refresh():this._callChildMethod(t?"disable":"enable")},refresh:function(){var t,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),t=this.childWidgets,this.options.onlyVisible&&(t=t.filter(":visible")),t.length&&(e.each(["first","last"],(function(e,n){var s=t[n]().data("ui-controlgroup-data");if(s&&i["_"+s.widgetName+"Options"]){var o=i["_"+s.widgetName+"Options"](1===t.length?"only":n);o.classes=i._resolveClassesValues(o.classes,s),s.element[s.widgetName](o)}else i._updateCornerClass(t[n](),n)})),this._callChildMethod("refresh"))}}),e.widget("ui.checkboxradio",[e.ui.formResetMixin,{version:"1.13.2",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var t,i,n,s=this._super()||{};return this._readType(),i=this.element.labels(),this.label=e(i[i.length-1]),this.label.length||e.error("No label found for checkboxradio widget"),this.originalLabel="",(n=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=n.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(s.label=this.originalLabel),null!=(t=this.element[0].disabled)&&(s.disabled=t),s},_create:function(){var e=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(),e&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),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 t=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===t&&/radio|checkbox/.test(this.type)||e.error("Can't create checkboxradio on element.nodeName="+t+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var t=this.element[0].name,i="input[name='"+e.escapeSelector(t)+"']";return t?(this.form.length?e(this.form[0].elements).filter(i):e(i).filter((function(){return 0===e(this)._form().length}))).not(this.element):e([])},_toggleClasses:function(){var t=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",t)._toggleClass(this.icon,null,"ui-icon-blank",!t),"radio"===this.type&&this._getRadioGroup().each((function(){var t=e(this).checkboxradio("instance");t&&t._removeClass(t.label,"ui-checkboxradio-checked","ui-state-active")}))},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(e,t){if("label"!==e||t){if(this._super(e,t),"disabled"===e)return this._toggleClass(this.label,null,"ui-state-disabled",t),void(this.element[0].disabled=t);this.refresh()}},_updateIcon:function(t){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=e("<span>"),this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=t?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,t?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),t||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 e=this.label.contents().not(this.element[0]);this.icon&&(e=e.not(this.icon[0])),this.iconSpace&&(e=e.not(this.iconSpace[0])),e.remove(),this.label.append(this.options.label)},refresh:function(){var e=this.element[0].checked,t=this.element[0].disabled;this._updateIcon(e),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),null!==this.options.label&&this._updateLabel(),t!==this.options.disabled&&this._setOptions({disabled:t})}}]),e.ui.checkboxradio,e.widget("ui.button",{version:"1.13.2",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var e,t=this._super()||{};return this.isInput=this.element.is("input"),null!=(e=this.element[0].disabled)&&(t.disabled=e),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(t.label=this.originalLabel),t},_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(t){t.keyCode===e.ui.keyCode.SPACE&&(t.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(t,i){var n="iconPosition"!==t,s=n?this.options.iconPosition:i,o="top"===s||"bottom"===s;this.icon?n&&this._removeClass(this.icon,null,this.options.icon):(this.icon=e("<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(s),o?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=e("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(s))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(e){this.icon[/^(?:end|bottom)/.test(e)?"before":"after"](this.iconSpace)},_attachIcon:function(e){this.element[/^(?:end|bottom)/.test(e)?"append":"prepend"](this.icon)},_setOptions:function(e){var t=void 0===e.showLabel?this.options.showLabel:e.showLabel,i=void 0===e.icon?this.options.icon:e.icon;t||i||(e.showLabel=!0),this._super(e)},_setOption:function(e,t){"icon"===e&&(t?this._updateIcon(e,t):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===e&&this._updateIcon(e,t),"showLabel"===e&&(this._toggleClass("ui-button-icon-only",null,!t),this._updateTooltip()),"label"===e&&(this.isInput?this.element.val(t):(this.element.html(t),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(e,t),"disabled"===e&&(this._toggleClass(null,"ui-state-disabled",t),this.element[0].disabled=t,t&&this.element.trigger("blur"))},refresh:function(){var e=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");e!==this.options.disabled&&this._setOptions({disabled:e}),this._updateTooltip()}}),!1!==e.uiBackCompat&&(e.widget("ui.button",e.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.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(e,t){"text"!==e?("showLabel"===e&&(this.options.text=t),"icon"===e&&(this.options.icons.primary=t),"icons"===e&&(t.primary?(this._super("icon",t.primary),this._super("iconPosition","beginning")):t.secondary&&(this._super("icon",t.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",t)}}),e.fn.button=function(t){return function(i){var n="string"==typeof i,s=Array.prototype.slice.call(arguments,1),o=this;return n?this.length||"instance"!==i?this.each((function(){var t,n=e(this).attr("type"),r="checkbox"!==n&&"radio"!==n?"button":"checkboxradio",a=e.data(this,"ui-"+r);return"instance"===i?(o=a,!1):a?"function"!=typeof a[i]||"_"===i.charAt(0)?e.error("no such method '"+i+"' for button widget instance"):(t=a[i].apply(a,s))!==a&&void 0!==t?(o=t&&t.jquery?o.pushStack(t.get()):t,!1):void 0:e.error("cannot call methods on button prior to initialization; attempted to call method '"+i+"'")})):o=void 0:(s.length&&(i=e.widget.extend.apply(null,[i].concat(s))),this.each((function(){var n=e(this).attr("type"),s="checkbox"!==n&&"radio"!==n?"button":"checkboxradio",o=e.data(this,"ui-"+s);if(o)o.option(i||{}),o._init&&o._init();else{if("button"===s)return void t.call(e(this),i);e(this).checkboxradio(e.extend({icon:!1},i))}}))),o}}(e.fn.button),e.fn.buttonset=function(){return e.ui.controlgroup||e.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))}),e.ui.button,e.extend(e.ui,{datepicker:{version:"1.13.2"}}),e.extend(P.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return N(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var n,s,o;s="div"===(n=t.nodeName.toLowerCase())||"span"===n,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(o=this._newInst(e(t),s)).settings=e.extend({},i||{}),"input"===n?this._connectDatepicker(t,o):s&&this._inlineDatepicker(t,o)},_newInst:function(t,i){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?j(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var n=e(t);i.append=e([]),i.trigger=e([]),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),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var n,s,o,r=this._get(i,"appendText"),a=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=e("<span>").addClass(this._appendClass).text(r),t[a?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||t.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(s=this._get(i,"buttonText"),o=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=e("<img>").addClass(this._triggerClass).attr({src:o,alt:s,title:s}):(i.trigger=e("<button type='button'>").addClass(this._triggerClass),o?i.trigger.html(e("<img>").attr({src:o,alt:s,title:s})):i.trigger.text(s)),t[a?"before":"after"](i.trigger),i.trigger.on("click",(function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1})))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,s,o=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(i=0,n=0,s=0;s<e.length;s++)e[s].length>i&&(i=e[s].length,n=s);return n},o.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),e.input.attr("size",this._formatDate(e,o).length)}},_inlineDatepicker:function(t,i){var n=e(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,n,s,o){var r,a,l,c,d,h=this._dialogInst;return h||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",h)),N(h.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(h,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(a=document.documentElement.clientWidth,l=document.documentElement.clientHeight,c=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[a/2-100+c,l/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(t){var i,n=e(t),s=e.data(t,"datepicker");n.hasClass(this.markerClassName)&&(i=t.nodeName.toLowerCase(),e.removeData(t,"datepicker"),"input"===i?(s.append.remove(),s.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(),A===s&&(A=null,this._curInst=null))},_enableDatepicker:function(t){var i,n,s=e(t),o=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!1,o.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})))},_disableDatepicker:function(t){var i,n,s=e(t),o=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!0,o.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,(function(e){return e===t?null:e})),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,n){var s,o,r,a,l=this._getInst(t);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?e.extend({},e.datepicker._defaults):l?"all"===i?e.extend({},l.settings):this._get(l,i):null;s=i||{},"string"==typeof i&&((s={})[i]=n),l&&(this._curInst===l&&this._hideDatepicker(),o=this._getDateDatepicker(t,!0),r=this._getMinMaxDate(l,"min"),a=this._getMinMaxDate(l,"max"),N(l.settings,s),null!==r&&void 0!==s.dateFormat&&void 0===s.minDate&&(l.settings.minDate=this._formatDate(l,r)),null!==a&&void 0!==s.dateFormat&&void 0===s.maxDate&&(l.settings.maxDate=this._formatDate(l,a)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),l),this._autoSize(l),this._setDate(l,o),this._updateAlternate(l),this._updateDatepicker(l))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,n,s,o=e.datepicker._getInst(t.target),r=!0,a=o.dpDiv.is(".ui-datepicker-rtl");if(o._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),r=!1;break;case 13:return(s=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",o.dpDiv))[0]&&e.datepicker._selectDay(t.target,o.selectedMonth,o.selectedYear,s[0]),(i=e.datepicker._get(o,"onSelect"))?(n=e.datepicker._formatDate(o),i.apply(o.input?o.input[0]:null,[n,o])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(o,"stepBigMonths"):-e.datepicker._get(o,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(o,"stepBigMonths"):+e.datepicker._get(o,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,a?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(o,"stepBigMonths"):-e.datepicker._get(o,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,a?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(o,"stepBigMonths"):+e.datepicker._get(o,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,n,s=e.datepicker._getInst(t.target);if(e.datepicker._get(s,"constrainInput"))return i=e.datepicker._possibleChars(e.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(t){var i=e.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{e.datepicker.parseDate(e.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,e.datepicker._getFormatConfig(i))&&(e.datepicker._setDateFromField(i),e.datepicker._updateAlternate(i),e.datepicker._updateDatepicker(i))}catch(e){}return!0},_showDatepicker:function(t){var i,n,s,o,r,a,l;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t||(i=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==i&&(e.datepicker._curInst.dpDiv.stop(!0,!0),i&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(s=(n=e.datepicker._get(i,"beforeShow"))?n.apply(t,[t,i]):{})&&(N(i.settings,s),i.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(i),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),o=!1,e(t).parents().each((function(){return!(o|="fixed"===e(this).css("position"))})),r={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(i),r=e.datepicker._checkOffset(i,r,o),i.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":o?"fixed":"absolute",display:"none",left:r.left+"px",top:r.top+"px"}),i.inline||(a=e.datepicker._get(i,"showAnim"),l=e.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[a]?i.dpDiv.show(a,e.datepicker._get(i,"showOptions"),l):i.dpDiv[a||"show"](a?l:null),e.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),e.datepicker._curInst=i)))},_updateDatepicker:function(t){this.maxRows=4,A=t,t.dpDiv.empty().append(this._generateHTML(t)),this._attachHandlers(t);var i,n=this._getNumberOfMonths(t),s=n[1],o=t.dpDiv.find("."+this._dayOverClass+" a"),r=e.datepicker._get(t,"onUpdateDatepicker");o.length>0&&I.apply(o.get(0)),t.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),s>1&&t.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"em"),t.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),t.dpDiv[(this._get(t,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),t===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(t)&&t.input.trigger("focus"),t.yearshtml&&(i=t.yearshtml,setTimeout((function(){i===t.yearshtml&&t.yearshtml&&t.dpDiv.find("select.ui-datepicker-year").first().replaceWith(t.yearshtml),i=t.yearshtml=null}),0)),r&&r.apply(t.input?t.input[0]:null,[t])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,i,n){var s=t.dpDiv.outerWidth(),o=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,a=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?s-r:0,i.left-=n&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=n&&i.top===t.input.offset().top+a?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+o>c&&c>o?Math.abs(o+a):0),i},_findPos:function(t){for(var i,n=this._getInst(t),s=this._get(n,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[s?"previousSibling":"nextSibling"];return[(i=e(t).offset()).left,i.top]},_hideDatepicker:function(t){var i,n,s,o,r=this._curInst;!r||t&&r!==e.data(t,"datepicker")||this._datepickerShowing&&(i=this._get(r,"showAnim"),n=this._get(r,"duration"),s=function(){e.datepicker._tidyDialog(r)},e.effects&&(e.effects.effect[i]||e.effects[i])?r.dpDiv.hide(i,e.datepicker._get(r,"showOptions"),n,s):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,(o=this._get(r,"onClose"))&&o.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),n=e.datepicker._getInst(i[0]);(i[0].id===e.datepicker._mainDivId||0!==i.parents("#"+e.datepicker._mainDivId).length||i.hasClass(e.datepicker.markerClassName)||i.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!i.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===n)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,n){var s=e(t),o=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(o,i,n),this._updateDatepicker(o))},_gotoToday:function(t){var i,n=e(t),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(t,i,n){var s=e(t),o=this._getInst(s[0]);o["selected"+("M"===n?"Month":"Year")]=o["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(o),this._adjustDate(s)},_selectDay:function(t,i,n,s){var o,r=e(t);e(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((o=this._getInst(r[0])).selectedDay=o.currentDay=parseInt(e("a",s).attr("data-date")),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=n,this._selectDate(t,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var n,s=e(t),o=this._getInst(s[0]);i=null!=i?i:this._formatDate(o),o.input&&o.input.val(i),this._updateAlternate(o),(n=this._get(o,"onSelect"))?n.apply(o.input?o.input[0]:null,[i,o]):o.input&&o.input.trigger("change"),o.inline?this._updateDatepicker(o):(this._hideDatepicker(),this._lastInput=o.input[0],"object"!=typeof o.input[0]&&o.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,n,s,o=this._get(t,"altField");o&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),s=this.formatDate(i,n,this._getFormatConfig(t)),e(document).find(o).val(s))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,n){if(null==t||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var s,o,r,a,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,d="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),h=(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,g=-1,m=-1,v=-1,_=-1,y=!1,b=function(e){var i=s+1<t.length&&t.charAt(s+1)===e;return i&&s++,i},w=function(e){var t=b(e),n="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,s=new RegExp("^\\d{"+("y"===e?n:1)+","+n+"}"),o=i.substring(l).match(s);if(!o)throw"Missing number at position "+l;return l+=o[0].length,parseInt(o[0],10)},x=function(t,n,s){var o=-1,r=e.map(b(t)?s:n,(function(e,t){return[[t,e]]})).sort((function(e,t){return-(e[1].length-t[1].length)}));if(e.each(r,(function(e,t){var n=t[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return o=t[0],l+=n.length,!1})),-1!==o)return o+1;throw"Unknown name at position "+l},k=function(){if(i.charAt(l)!==t.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<t.length;s++)if(y)"'"!==t.charAt(s)||b("'")?k():y=!1;else switch(t.charAt(s)){case"d":v=w("d");break;case"D":x("D",h,u);break;case"o":_=w("o");break;case"m":m=w("m");break;case"M":m=x("M",p,f);break;case"y":g=w("y");break;case"@":g=(a=new Date(w("@"))).getFullYear(),m=a.getMonth()+1,v=a.getDate();break;case"!":g=(a=new Date((w("!")-this._ticksTo1970)/1e4)).getFullYear(),m=a.getMonth()+1,v=a.getDate();break;case"'":b("'")?k():y=!0;break;default:k()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=d?0:-100)),_>-1)for(m=1,v=_;!(v<=(o=this._getDaysInMonth(g,m-1)));)m++,v-=o;if((a=this._daylightSavingAdjust(new Date(g,m-1,v))).getFullYear()!==g||a.getMonth()+1!==m||a.getDate()!==v)throw"Invalid date";return a},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:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(e,t,i){if(!t)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,o=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,a=(i?i.monthNames:null)||this._defaults.monthNames,l=function(t){var i=n+1<e.length&&e.charAt(n+1)===t;return i&&n++,i},c=function(e,t,i){var n=""+t;if(l(e))for(;n.length<i;)n="0"+n;return n},d=function(e,t,i,n){return l(e)?n[t]:i[t]},h="",u=!1;if(t)for(n=0;n<e.length;n++)if(u)"'"!==e.charAt(n)||l("'")?h+=e.charAt(n):u=!1;else switch(e.charAt(n)){case"d":h+=c("d",t.getDate(),2);break;case"D":h+=d("D",t.getDay(),s,o);break;case"o":h+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=c("m",t.getMonth()+1,2);break;case"M":h+=d("M",t.getMonth(),r,a);break;case"y":h+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":h+=t.getTime();break;case"!":h+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":u=!0;break;default:h+=e.charAt(n)}return h},_possibleChars:function(e){var t,i="",n=!1,s=function(i){var n=t+1<e.length&&e.charAt(t+1)===i;return n&&t++,n};for(t=0;t<e.length;t++)if(n)"'"!==e.charAt(t)||s("'")?i+=e.charAt(t):n=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),o=s,r=this._getFormatConfig(e);try{o=this.parseDate(i,n,r)||s}catch(e){n=t?"":n}e.selectedDay=o.getDate(),e.drawMonth=e.selectedMonth=o.getMonth(),e.drawYear=e.selectedYear=o.getFullYear(),e.currentDay=n?o.getDate():0,e.currentMonth=n?o.getMonth():0,e.currentYear=n?o.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,n){var s=null==i||""===i?n:"string"==typeof i?function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(e){}for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,s=n.getFullYear(),o=n.getMonth(),r=n.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=a.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,o));break;case"y":case"Y":s+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,o))}l=a.exec(i)}return new Date(s,o,r)}(i):"number"==typeof i?isNaN(i)?n:function(e){var t=new Date;return t.setDate(t.getDate()+e),t}(i):new Date(i.getTime());return(s=s&&"Invalid Date"===s.toString()?n:s)&&(s.setHours(0),s.setMinutes(0),s.setSeconds(0),s.setMilliseconds(0)),this._daylightSavingAdjust(s)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,s=e.selectedMonth,o=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),s===e.selectedMonth&&o===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map((function(){var t={prev:function(){e.datepicker._adjustDate(n,-i,"M")},next:function(){e.datepicker._adjustDate(n,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(n)},selectDay:function(){return e.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(n,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])}))},_generateHTML:function(t){var i,n,s,o,r,a,l,c,d,h,u,p,f,g,m,v,_,y,b,w,x,k,C,E,S,T,O,A,D,P,j,I,N,L,H,M,R,F,Y,z=new Date,W=this._daylightSavingAdjust(new Date(z.getFullYear(),z.getMonth(),z.getDate())),q=this._get(t,"isRTL"),$=this._get(t,"showButtonPanel"),B=this._get(t,"hideIfNoPrevNext"),U=this._get(t,"navigationAsDateFormat"),V=this._getNumberOfMonths(t),X=this._get(t,"showCurrentAtPos"),K=this._get(t,"stepMonths"),J=1!==V[0]||1!==V[1],G=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),Q=this._getMinMaxDate(t,"min"),Z=this._getMinMaxDate(t,"max"),ee=t.drawMonth-X,te=t.drawYear;if(ee<0&&(ee+=12,te--),Z)for(i=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-V[0]*V[1]+1,Z.getDate())),i=Q&&i<Q?Q:i;this._daylightSavingAdjust(new Date(te,ee,1))>i;)--ee<0&&(ee=11,te--);for(t.drawMonth=ee,t.drawYear=te,n=this._get(t,"prevText"),n=U?this.formatDate(n,this._daylightSavingAdjust(new Date(te,ee-K,1)),this._getFormatConfig(t)):n,s=this._canAdjustMonth(t,-1,te,ee)?e("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(q?"e":"w")).text(n))[0].outerHTML:B?"":e("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(q?"e":"w")).text(n))[0].outerHTML,o=this._get(t,"nextText"),o=U?this.formatDate(o,this._daylightSavingAdjust(new Date(te,ee+K,1)),this._getFormatConfig(t)):o,r=this._canAdjustMonth(t,1,te,ee)?e("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:o}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(q?"w":"e")).text(o))[0].outerHTML:B?"":e("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:o}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(q?"w":"e")).text(o))[0].outerHTML,a=this._get(t,"currentText"),l=this._get(t,"gotoCurrent")&&t.currentDay?G:W,a=U?this.formatDate(a,l,this._getFormatConfig(t)):a,c="",t.inline||(c=e("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),d="",$&&(d=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(q?c:"").append(this._isInRange(t,l)?e("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(a):"").append(q?"":c)[0].outerHTML),h=parseInt(this._get(t,"firstDay"),10),h=isNaN(h)?0:h,u=this._get(t,"showWeek"),p=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),g=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),v=this._get(t,"beforeShowDay"),_=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),b=this._getDefaultDate(t),w="",k=0;k<V[0];k++){for(C="",this.maxRows=4,E=0;E<V[1];E++){if(S=this._daylightSavingAdjust(new Date(te,ee,t.selectedDay)),T=" ui-corner-all",O="",J){if(O+="<div class='ui-datepicker-group",V[1]>1)switch(E){case 0:O+=" ui-datepicker-group-first",T=" ui-corner-"+(q?"right":"left");break;case V[1]-1:O+=" ui-datepicker-group-last",T=" ui-corner-"+(q?"left":"right");break;default:O+=" ui-datepicker-group-middle",T=""}O+="'>"}for(O+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+T+"'>"+(/all|left/.test(T)&&0===k?q?r:s:"")+(/all|right/.test(T)&&0===k?q?s:r:"")+this._generateMonthYearHeader(t,ee,te,Q,Z,k>0||E>0,g,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",A=u?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",x=0;x<7;x++)A+="<th scope='col'"+((x+h+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[D=(x+h)%7]+"'>"+f[D]+"</span></th>";for(O+=A+"</tr></thead><tbody>",P=this._getDaysInMonth(te,ee),te===t.selectedYear&&ee===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,P)),j=(this._getFirstDayOfMonth(te,ee)-h+7)%7,I=Math.ceil((j+P)/7),N=J&&this.maxRows>I?this.maxRows:I,this.maxRows=N,L=this._daylightSavingAdjust(new Date(te,ee,1-j)),H=0;H<N;H++){for(O+="<tr>",M=u?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(L)+"</td>":"",x=0;x<7;x++)R=v?v.apply(t.input?t.input[0]:null,[L]):[!0,""],Y=(F=L.getMonth()!==ee)&&!y||!R[0]||Q&&L<Q||Z&&L>Z,M+="<td class='"+((x+h+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(L.getTime()===S.getTime()&&ee===t.selectedMonth&&t._keyEvent||b.getTime()===L.getTime()&&b.getTime()===S.getTime()?" "+this._dayOverClass:"")+(Y?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!_?"":" "+R[1]+(L.getTime()===G.getTime()?" "+this._currentClass:"")+(L.getTime()===W.getTime()?" ui-datepicker-today":""))+"'"+(F&&!_||!R[2]?"":" title='"+R[2].replace(/'/g,"&#39;")+"'")+(Y?"":" data-handler='selectDay' data-event='click' data-month='"+L.getMonth()+"' data-year='"+L.getFullYear()+"'")+">"+(F&&!_?"&#xa0;":Y?"<span class='ui-state-default'>"+L.getDate()+"</span>":"<a class='ui-state-default"+(L.getTime()===W.getTime()?" ui-state-highlight":"")+(L.getTime()===G.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#' aria-current='"+(L.getTime()===G.getTime()?"true":"false")+"' data-date='"+L.getDate()+"'>"+L.getDate()+"</a>")+"</td>",L.setDate(L.getDate()+1),L=this._daylightSavingAdjust(L);O+=M+"</tr>"}++ee>11&&(ee=0,te++),C+=O+="</tbody></table>"+(J?"</div>"+(V[0]>0&&E===V[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}w+=C}return w+=d,t._keyEvent=!1,w},_generateMonthYearHeader:function(e,t,i,n,s,o,r,a){var l,c,d,h,u,p,f,g,m=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),_=this._get(e,"showMonthAfterYear"),y=this._get(e,"selectMonthLabel"),b=this._get(e,"selectYearLabel"),w="<div class='ui-datepicker-title'>",x="";if(o||!m)x+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,x+="<select class='ui-datepicker-month' aria-label='"+y+"' data-handler='selectMonth' data-event='change'>",d=0;d<12;d++)(!l||d>=n.getMonth())&&(!c||d<=s.getMonth())&&(x+="<option value='"+d+"'"+(d===t?" selected='selected'":"")+">"+a[d]+"</option>");x+="</select>"}if(_||(w+=x+(!o&&m&&v?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",o||!v)w+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(h=this._get(e,"yearRange").split(":"),u=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?u+parseInt(e,10):parseInt(e,10);return isNaN(t)?u:t},f=p(h[0]),g=Math.max(f,p(h[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=s?Math.min(g,s.getFullYear()):g,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+b+"' data-handler='selectYear' data-event='change'>";f<=g;f++)e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",w+=e.yearshtml,e.yearshtml=null}return w+=this._get(e,"yearSuffix"),_&&(w+=(!o&&m&&v?"":"&#xa0;")+x),w+"</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),s=e.selectedMonth+("M"===i?t:0),o=Math.min(e.selectedDay,this._getDaysInMonth(n,s))+("D"===i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,s,o)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),s=i&&t<i?i:t;return n&&s>n?n:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var s=this._getNumberOfMonths(e),o=this._daylightSavingAdjust(new Date(i,n+(t<0?t:s[0]*s[1]),1));return t<0&&o.setDate(this._getDaysInMonth(o.getFullYear(),o.getMonth())),this._isInRange(e,o)},_isInRange:function(e,t){var i,n,s=this._getMinMaxDate(e,"min"),o=this._getMinMaxDate(e,"max"),r=null,a=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),r=parseInt(i[0],10),a=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(a+=n)),(!s||t.getTime()>=s.getTime())&&(!o||t.getTime()<=o.getTime())&&(!r||t.getFullYear()>=r)&&(!a||t.getFullYear()<=a)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each((function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)})):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new P,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.13.2",e.datepicker,e.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var L,H=!1;function M(e){return function(){var t=this.element.val();e.apply(this,arguments),this._refresh(),t!==this.element.val()&&this._trigger("change")}}e(document).on("mouseup",(function(){H=!1})),e.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,(function(e){return t._mouseDown(e)})).on("click."+this.widgetName,(function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),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(t){if(!H){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(t),this._mouseDownEvent=t;var i=this,n=1===t.which,s=!("string"!=typeof this.options.cancel||!t.target.nodeName)&&e(t.target).closest(this.options.cancel).length;return!(n&&!s&&this._mouseCapture(t)&&(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(t),!this._mouseStarted)?(t.preventDefault(),0):(!0===e.data(t.target,this.widgetName+".preventClickEvent")&&e.removeData(t.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return i._mouseMove(e)},this._mouseUpDelegate=function(e){return i._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),t.preventDefault(),H=!0,0)))}},_mouseMove:function(t){if(this._mouseMoved){if(e.ui.ie&&(!document.documentMode||document.documentMode<9)&&!t.button)return this._mouseUp(t);if(!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t)}return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(t){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,t.target===this._mouseDownEvent.target&&e.data(t.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(t)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,H=!1,t.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}}),e.ui.plugin={add:function(t,i,n){var s,o=e.ui[t].prototype;for(s in n)o.plugins[s]=o.plugins[s]||[],o.plugins[s].push([i,n[s]])},call:function(e,t,i,n){var s,o=e.plugins[t];if(o&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;s<o.length;s++)e.options[o[s][0]]&&o[s][1].apply(e.element,i)}},e.ui.safeBlur=function(t){t&&"body"!==t.nodeName.toLowerCase()&&e(t).trigger("blur")},e.widget("ui.draggable",e.ui.mouse,{version:"1.13.2",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(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(t){var i=this.options;return!(this.helper||i.disabled||e(t.target).closest(".ui-resizable-handle").length>0||(this.handle=this._getHandle(t),!this.handle||(this._blurActiveElement(t),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),0)))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map((function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=e.ui.safeActiveElement(this.document[0]);e(t.target).closest(i).length||e.ui.safeBlur(i)},_mouseStart:function(t){var i=this.options;return this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.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"===e(this).css("position")})).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t)?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){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:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",t,n))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,n=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,n)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",t)&&i._clear()})):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.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(t){var i=this.options,n="function"==typeof i.helper,s=n?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_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(" ")),Array.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)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?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 t,i,n,s=this.options,o=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(n=(i=e(s.containment))[0])&&(t=/(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),(t?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,(t?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)):this.containment=s.containment:this.containment=[0,0,e(o).width()-this.helperProportions.width-this.margins.left,(e(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.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:t.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(e,t){var i,n,s,o,r=this.options,a=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;return a&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(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,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),r.grid&&(s=r.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/r.grid[1])*r.grid[1]:this.originalPageY,c=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-r.grid[1]:s+r.grid[1]:s,o=r.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/r.grid[0])*r.grid[0]:this.originalPageX,l=i?o-this.offset.click.left>=i[0]||o-this.offset.click.left>i[2]?o:o-this.offset.click.left>=i[0]?o-r.grid[0]:o+r.grid[0]:o),"y"===r.axis&&(l=this.originalPageX),"x"===r.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:a?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:a?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(t,i,n){return n=n||this._uiHash(),e.ui.plugin.call(this,t,[i,n,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,n){var s=e.extend({},i,{item:n.element});n.sortables=[],e(n.options.connectToSortable).each((function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,s))}))},stop:function(t,i,n){var s=e.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,e.each(n.sortables,(function(){var e=this;e.isOver?(e.isOver=0,n.cancelHelperRemoval=!0,e.cancelHelperRemoval=!1,e._storedCSS={position:e.placeholder.css("position"),top:e.placeholder.css("top"),left:e.placeholder.css("left")},e._mouseStop(t),e.options.helper=e.options._helper):(e.cancelHelperRemoval=!0,e._trigger("deactivate",t,s))}))},drag:function(t,i,n){e.each(n.sortables,(function(){var s=!1,o=this;o.positionAbs=n.positionAbs,o.helperProportions=n.helperProportions,o.offset.click=n.offset.click,o._intersectsWith(o.containerCache)&&(s=!0,e.each(n.sortables,(function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==o&&this._intersectsWith(this.containerCache)&&e.contains(o.element[0],this.element[0])&&(s=!1),s}))),s?(o.isOver||(o.isOver=1,n._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},t.target=o.currentItem[0],o._mouseCapture(t,!0),o._mouseStart(t,!0,!0),o.offset.click.top=n.offset.click.top,o.offset.click.left=n.offset.click.left,o.offset.parent.left-=n.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=n.offset.parent.top-o.offset.parent.top,n._trigger("toSortable",t),n.dropped=o.element,e.each(n.sortables,(function(){this.refreshPositions()})),n.currentItem=n.element,o.fromOutside=n),o.currentItem&&(o._mouseDrag(t),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",t,o._uiHash(o)),o._mouseStop(t,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(t),i.position=n._generatePosition(t,!0),n._trigger("fromSortable",t),n.dropped=!1,e.each(n.sortables,(function(){this.refreshPositions()})))}))}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,n){var s=e("body"),o=n.options;s.css("cursor")&&(o._cursor=s.css("cursor")),s.css("cursor",o.cursor)},stop:function(t,i,n){var s=n.options;s._cursor&&e("body").css("cursor",s._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,n){var s=e(i.helper),o=n.options;s.css("opacity")&&(o._opacity=s.css("opacity")),s.css("opacity",o.opacity)},stop:function(t,i,n){var s=n.options;s._opacity&&e(i.helper).css("opacity",s._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,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(t,i,n){var s=n.options,o=!1,r=n.scrollParentNotHidden[0],a=n.document[0];r!==a&&"HTML"!==r.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+r.offsetHeight-t.pageY<s.scrollSensitivity?r.scrollTop=o=r.scrollTop+s.scrollSpeed:t.pageY-n.overflowOffset.top<s.scrollSensitivity&&(r.scrollTop=o=r.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(n.overflowOffset.left+r.offsetWidth-t.pageX<s.scrollSensitivity?r.scrollLeft=o=r.scrollLeft+s.scrollSpeed:t.pageX-n.overflowOffset.left<s.scrollSensitivity&&(r.scrollLeft=o=r.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(t.pageY-e(a).scrollTop()<s.scrollSensitivity?o=e(a).scrollTop(e(a).scrollTop()-s.scrollSpeed):e(window).height()-(t.pageY-e(a).scrollTop())<s.scrollSensitivity&&(o=e(a).scrollTop(e(a).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(t.pageX-e(a).scrollLeft()<s.scrollSensitivity?o=e(a).scrollLeft(e(a).scrollLeft()-s.scrollSpeed):e(window).width()-(t.pageX-e(a).scrollLeft())<s.scrollSensitivity&&(o=e(a).scrollLeft(e(a).scrollLeft()+s.scrollSpeed)))),!1!==o&&e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(n,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,i,n){var s=n.options;n.snapElements=[],e(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each((function(){var t=e(this),i=t.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})}))},drag:function(t,i,n){var s,o,r,a,l,c,d,h,u,p,f=n.options,g=f.snapTolerance,m=i.offset.left,v=m+n.helperProportions.width,_=i.offset.top,y=_+n.helperProportions.height;for(u=n.snapElements.length-1;u>=0;u--)c=(l=n.snapElements[u].left-n.margins.left)+n.snapElements[u].width,h=(d=n.snapElements[u].top-n.margins.top)+n.snapElements[u].height,v<l-g||m>c+g||y<d-g||_>h+g||!e.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,t,e.extend(n._uiHash(),{snapItem:n.snapElements[u].item})),n.snapElements[u].snapping=!1):("inner"!==f.snapMode&&(s=Math.abs(d-y)<=g,o=Math.abs(h-_)<=g,r=Math.abs(l-v)<=g,a=Math.abs(c-m)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:d-n.helperProportions.height,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:h,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c}).left)),p=s||o||r||a,"outer"!==f.snapMode&&(s=Math.abs(d-_)<=g,o=Math.abs(h-y)<=g,r=Math.abs(l-m)<=g,a=Math.abs(c-v)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:d,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left)),!n.snapElements[u].snapping&&(s||o||r||a||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[u].item})),n.snapElements[u].snapping=s||o||r||a||p)}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,n){var s,o=n.options,r=e.makeArray(e(o.stack)).sort((function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)}));r.length&&(s=parseInt(e(r[0]).css("zIndex"),10)||0,e(r).each((function(t){e(this).css("zIndex",s+t)})),this.css("zIndex",s+r.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,n){var s=e(i.helper),o=n.options;s.css("zIndex")&&(o._zIndex=s.css("zIndex")),s.css("zIndex",o.zIndex)},stop:function(t,i,n){var s=n.options;s._zIndex&&e(i.helper).css("zIndex",s._zIndex)}}),e.ui.draggable,e.widget("ui.resizable",e.ui.mouse,{version:"1.13.2",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(e){return parseFloat(e)||0},_isNumber:function(e){return!isNaN(parseFloat(e))},_hasScroll:function(t,i){if("hidden"===e(t).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",s=!1;if(t[n]>0)return!0;try{t[n]=1,s=t[n]>0,t[n]=0}catch(e){}return s},_create:function(){var t,i=this.options,n=this;this._addClass("ui-resizable"),e.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(e("<div class='ui-wrapper'></div>").css({overflow:"hidden",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,t={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(t),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(t),this._proportionallyResize()),this._setupHandles(),i.autoHide&&e(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(),this._addedHandles.remove();var t,i=function(t){e(t).removeData("resizable").removeData("ui-resizable").off(".resizable")};return this.elementIsWrapper&&(i(this.element),t=this.element,this.originalElement.css({position:t.css("position"),width:t.outerWidth(),height:t.outerHeight(),top:t.css("top"),left:t.css("left")}).insertAfter(t),t.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_setOption:function(e,t){switch(this._super(e,t),e){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!t}},_setupHandles:function(){var t,i,n,s,o,r=this.options,a=this;if(this.handles=r.handles||(e(".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=e(),this._addedHandles=e(),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;i<n.length;i++)s="ui-resizable-"+(t=String.prototype.trim.call(n[i])),o=e("<div>"),this._addClass(o,"ui-resizable-handle "+s),o.css({zIndex:r.zIndex}),this.handles[t]=".ui-resizable-"+t,this.element.children(this.handles[t]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(t){var i,n,s,o;for(i in t=t||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]=e(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=e(this.handles[i],this.element),o=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),s=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),t.css(s,o),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(){a.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=o&&o[1]?o[1]:"se")})),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(t){var i,n,s=!1;for(i in this.handles)((n=e(this.handles[i])[0])===t.target||e.contains(n,t.target))&&(s=!0);return!this.options.disabled&&s},_mouseStart:function(t){var i,n,s,o=this.options,r=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),o.containment&&(i+=e(o.containment).scrollLeft()||0,n+=e(o.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:r.width(),height:r.height()},this.originalSize=this._helper?{width:r.outerWidth(),height:r.outerHeight()}:{width:r.width(),height:r.height()},this.sizeDiff={width:r.outerWidth()-r.width(),height:r.outerHeight()-r.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:t.pageX,top:t.pageY},this.aspectRatio="number"==typeof o.aspectRatio?o.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=e(".ui-resizable-"+this.axis).css("cursor"),e("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",t),!0},_mouseDrag:function(t){var i,n,s=this.originalMousePosition,o=this.axis,r=t.pageX-s.left||0,a=t.pageY-s.top||0,l=this._change[o];return this._updatePrevProperties(),!!l&&(i=l.apply(this,[t,r,a]),this._updateVirtualBoundaries(t.shiftKey),(this._aspectRatio||t.shiftKey)&&(i=this._updateRatio(i,t)),i=this._respectSize(i,t),this._updateCache(i),this._propagate("resize",t),n=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),e.isEmptyObject(n)||(this._updatePrevProperties(),this._trigger("resize",t,this.ui()),this._applyChanges()),!1)},_mouseStop:function(t){this.resizing=!1;var i,n,s,o,r,a,l,c=this.options,d=this;return this._helper&&(s=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&this._hasScroll(i[0],"left")?0:d.sizeDiff.height,o=n?0:d.sizeDiff.width,r={width:d.helper.width()-o,height:d.helper.height()-s},a=parseFloat(d.element.css("left"))+(d.position.left-d.originalPosition.left)||null,l=parseFloat(d.element.css("top"))+(d.position.top-d.originalPosition.top)||null,c.animate||this.element.css(e.extend(r,{top:l,left:a})),d.helper.height(d.size.height),d.helper.width(d.size.width),this._helper&&!c.animate&&this._proportionallyResize()),e("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",t),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 e={};return this.position.top!==this.prevPosition.top&&(e.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(e.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(e.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(e.height=this.size.height+"px"),this.helper.css(e),e},_updateVirtualBoundaries:function(e){var t,i,n,s,o,r=this.options;o={minWidth:this._isNumber(r.minWidth)?r.minWidth:0,maxWidth:this._isNumber(r.maxWidth)?r.maxWidth:1/0,minHeight:this._isNumber(r.minHeight)?r.minHeight:0,maxHeight:this._isNumber(r.maxHeight)?r.maxHeight:1/0},(this._aspectRatio||e)&&(t=o.minHeight*this.aspectRatio,n=o.minWidth/this.aspectRatio,i=o.maxHeight*this.aspectRatio,s=o.maxWidth/this.aspectRatio,t>o.minWidth&&(o.minWidth=t),n>o.minHeight&&(o.minHeight=n),i<o.maxWidth&&(o.maxWidth=i),s<o.maxHeight&&(o.maxHeight=s)),this._vBoundaries=o},_updateCache:function(e){this.offset=this.helper.offset(),this._isNumber(e.left)&&(this.position.left=e.left),this._isNumber(e.top)&&(this.position.top=e.top),this._isNumber(e.height)&&(this.size.height=e.height),this._isNumber(e.width)&&(this.size.width=e.width)},_updateRatio:function(e){var t=this.position,i=this.size,n=this.axis;return this._isNumber(e.height)?e.width=e.height*this.aspectRatio:this._isNumber(e.width)&&(e.height=e.width/this.aspectRatio),"sw"===n&&(e.left=t.left+(i.width-e.width),e.top=null),"nw"===n&&(e.top=t.top+(i.height-e.height),e.left=t.left+(i.width-e.width)),e},_respectSize:function(e){var t=this._vBoundaries,i=this.axis,n=this._isNumber(e.width)&&t.maxWidth&&t.maxWidth<e.width,s=this._isNumber(e.height)&&t.maxHeight&&t.maxHeight<e.height,o=this._isNumber(e.width)&&t.minWidth&&t.minWidth>e.width,r=this._isNumber(e.height)&&t.minHeight&&t.minHeight>e.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(i),d=/nw|ne|n/.test(i);return o&&(e.width=t.minWidth),r&&(e.height=t.minHeight),n&&(e.width=t.maxWidth),s&&(e.height=t.maxHeight),o&&c&&(e.left=a-t.minWidth),n&&c&&(e.left=a-t.maxWidth),r&&d&&(e.top=l-t.minHeight),s&&d&&(e.top=l-t.maxHeight),e.width||e.height||e.left||!e.top?e.width||e.height||e.top||!e.left||(e.left=null):e.top=null,e},_getPaddingPlusBorderDimensions:function(e){for(var t=0,i=[],n=[e.css("borderTopWidth"),e.css("borderRightWidth"),e.css("borderBottomWidth"),e.css("borderLeftWidth")],s=[e.css("paddingTop"),e.css("paddingRight"),e.css("paddingBottom"),e.css("paddingLeft")];t<4;t++)i[t]=parseFloat(n[t])||0,i[t]+=parseFloat(s[t])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var e,t=0,i=this.helper||this.element;t<this._proportionallyResizeElements.length;t++)e=this._proportionallyResizeElements[t],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(e)),e.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var t=this.element,i=this.options;this.elementOffset=t.offset(),this._helper?(this.helper=this.helper||e("<div></div>").css({overflow:"hidden"}),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(e,t){return{width:this.originalSize.width+t}},w:function(e,t){var i=this.originalSize;return{left:this.originalPosition.left+t,width:i.width-t}},n:function(e,t,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(e,t,i){return{height:this.originalSize.height+i}},se:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},sw:function(t,i,n){return e.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[t,i,n]))},ne:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[t,i,n]))},nw:function(t,i,n){return e.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[t,i,n]))}},_propagate:function(t,i){e.ui.plugin.call(this,t,[i,this.ui()]),"resize"!==t&&this._trigger(t,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}}}),e.ui.plugin.add("resizable","animate",{stop:function(t){var i=e(this).resizable("instance"),n=i.options,s=i._proportionallyResizeElements,o=s.length&&/textarea/i.test(s[0].nodeName),r=o&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,a=o?0:i.sizeDiff.width,l={width:i.size.width-a,height:i.size.height-r},c=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,d=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(e.extend(l,d&&c?{top:d,left:c}:{}),{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"))};s&&s.length&&e(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",t)}})}}),e.ui.plugin.add("resizable","containment",{start:function(){var t,i,n,s,o,r,a,l=e(this).resizable("instance"),c=l.options,d=l.element,h=c.containment,u=h instanceof e?h.get(0):/parent/.test(h)?d.parent().get(0):h;u&&(l.containerElement=e(u),/document/.test(h)||h===document?(l.containerOffset={left:0,top:0},l.containerPosition={left:0,top:0},l.parentData={element:e(document),left:0,top:0,width:e(document).width(),height:e(document).height()||document.body.parentNode.scrollHeight}):(t=e(u),i=[],e(["Top","Right","Left","Bottom"]).each((function(e,n){i[e]=l._num(t.css("padding"+n))})),l.containerOffset=t.offset(),l.containerPosition=t.position(),l.containerSize={height:t.innerHeight()-i[3],width:t.innerWidth()-i[1]},n=l.containerOffset,s=l.containerSize.height,o=l.containerSize.width,r=l._hasScroll(u,"left")?u.scrollWidth:o,a=l._hasScroll(u)?u.scrollHeight:s,l.parentData={element:u,left:n.left,top:n.top,width:r,height:a}))},resize:function(t){var i,n,s,o,r=e(this).resizable("instance"),a=r.options,l=r.containerOffset,c=r.position,d=r._aspectRatio||t.shiftKey,h={top:0,left:0},u=r.containerElement,p=!0;u[0]!==document&&/static/.test(u.css("position"))&&(h=l),c.left<(r._helper?l.left:0)&&(r.size.width=r.size.width+(r._helper?r.position.left-l.left:r.position.left-h.left),d&&(r.size.height=r.size.width/r.aspectRatio,p=!1),r.position.left=a.helper?l.left:0),c.top<(r._helper?l.top:0)&&(r.size.height=r.size.height+(r._helper?r.position.top-l.top:r.position.top),d&&(r.size.width=r.size.height*r.aspectRatio,p=!1),r.position.top=r._helper?l.top:0),s=r.containerElement.get(0)===r.element.parent().get(0),o=/relative|absolute/.test(r.containerElement.css("position")),s&&o?(r.offset.left=r.parentData.left+r.position.left,r.offset.top=r.parentData.top+r.position.top):(r.offset.left=r.element.offset().left,r.offset.top=r.element.offset().top),i=Math.abs(r.sizeDiff.width+(r._helper?r.offset.left-h.left:r.offset.left-l.left)),n=Math.abs(r.sizeDiff.height+(r._helper?r.offset.top-h.top:r.offset.top-l.top)),i+r.size.width>=r.parentData.width&&(r.size.width=r.parentData.width-i,d&&(r.size.height=r.size.width/r.aspectRatio,p=!1)),n+r.size.height>=r.parentData.height&&(r.size.height=r.parentData.height-n,d&&(r.size.width=r.size.height*r.aspectRatio,p=!1)),p||(r.position.left=r.prevPosition.left,r.position.top=r.prevPosition.top,r.size.width=r.prevSize.width,r.size.height=r.prevSize.height)},stop:function(){var t=e(this).resizable("instance"),i=t.options,n=t.containerOffset,s=t.containerPosition,o=t.containerElement,r=e(t.helper),a=r.offset(),l=r.outerWidth()-t.sizeDiff.width,c=r.outerHeight()-t.sizeDiff.height;t._helper&&!i.animate&&/relative/.test(o.css("position"))&&e(this).css({left:a.left-s.left-n.left,width:l,height:c}),t._helper&&!i.animate&&/static/.test(o.css("position"))&&e(this).css({left:a.left-s.left-n.left,width:l,height:c})}}),e.ui.plugin.add("resizable","alsoResize",{start:function(){var t=e(this).resizable("instance").options;e(t.alsoResize).each((function(){var t=e(this);t.data("ui-resizable-alsoresize",{width:parseFloat(t.width()),height:parseFloat(t.height()),left:parseFloat(t.css("left")),top:parseFloat(t.css("top"))})}))},resize:function(t,i){var n=e(this).resizable("instance"),s=n.options,o=n.originalSize,r=n.originalPosition,a={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0};e(s.alsoResize).each((function(){var t=e(this),n=e(this).data("ui-resizable-alsoresize"),s={},o=t.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];e.each(o,(function(e,t){var i=(n[t]||0)+(a[t]||0);i&&i>=0&&(s[t]=i||null)})),t.css(s)}))},stop:function(){e(this).removeData("ui-resizable-alsoresize")}}),e.ui.plugin.add("resizable","ghost",{start:function(){var t=e(this).resizable("instance"),i=t.size;t.ghost=t.originalElement.clone(),t.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),t._addClass(t.ghost,"ui-resizable-ghost"),!1!==e.uiBackCompat&&"string"==typeof t.options.ghost&&t.ghost.addClass(this.options.ghost),t.ghost.appendTo(t.helper)},resize:function(){var t=e(this).resizable("instance");t.ghost&&t.ghost.css({position:"relative",height:t.size.height,width:t.size.width})},stop:function(){var t=e(this).resizable("instance");t.ghost&&t.helper&&t.helper.get(0).removeChild(t.ghost.get(0))}}),e.ui.plugin.add("resizable","grid",{resize:function(){var t,i=e(this).resizable("instance"),n=i.options,s=i.size,o=i.originalSize,r=i.originalPosition,a=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,c=l[0]||1,d=l[1]||1,h=Math.round((s.width-o.width)/c)*c,u=Math.round((s.height-o.height)/d)*d,p=o.width+h,f=o.height+u,g=n.maxWidth&&n.maxWidth<p,m=n.maxHeight&&n.maxHeight<f,v=n.minWidth&&n.minWidth>p,_=n.minHeight&&n.minHeight>f;n.grid=l,v&&(p+=c),_&&(f+=d),g&&(p-=c),m&&(f-=d),/^(se|s|e)$/.test(a)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.top=r.top-u):/^(sw)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.left=r.left-h):((f-d<=0||p-c<=0)&&(t=i._getPaddingPlusBorderDimensions(this)),f-d>0?(i.size.height=f,i.position.top=r.top-u):(f=d-t.height,i.size.height=f,i.position.top=r.top+o.height-f),p-c>0?(i.size.width=p,i.position.left=r.left-h):(p=c-t.width,i.size.width=p,i.position.left=r.left+o.width-p))}}),e.ui.resizable,e.widget("ui.dialog",{version:"1.13.2",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(t){var i=e(this).css(t).offset().top;i<0&&e(this).css("top",t.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&&e.fn.draggable&&this._makeDraggable(),this.options.resizable&&e.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var t=this.options.appendTo;return t&&(t.jquery||t.nodeType)?e(t):this.document.find(t||"body").eq(0)},_destroy:function(){var e,t=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(e=t.parent.children().eq(t.index)).length&&e[0]!==this.element[0]?e.before(this.element):t.parent.append(this.element)},widget:function(){return this.uiDialog},disable:e.noop,enable:e.noop,close:function(t){var i=this;this._isOpen&&!1!==this._trigger("beforeClose",t)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||e.ui.safeBlur(e.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,(function(){i._trigger("close",t)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(t,i){var n=!1,s=this.uiDialog.siblings(".ui-front:visible").map((function(){return+e(this).css("z-index")})).get(),o=Math.max.apply(null,s);return o>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",o+1),n=!0),n&&!i&&this._trigger("focus",t),n},open:function(){var t=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=e(e.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(){t._focusTabbable(),t._trigger("focus")})),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var e=this._focusedElement;e||(e=this.element.find("[autofocus]")),e.length||(e=this.element.find(":tabbable")),e.length||(e=this.uiDialogButtonPane.find(":tabbable")),e.length||(e=this.uiDialogTitlebarClose.filter(":tabbable")),e.length||(e=this.uiDialog),e.eq(0).trigger("focus")},_restoreTabbableFocus:function(){var t=e.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===t||e.contains(this.uiDialog[0],t)||this._focusTabbable()},_keepFocus:function(e){e.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=e("<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(t){if(this.options.closeOnEscape&&!t.isDefaultPrevented()&&t.keyCode&&t.keyCode===e.ui.keyCode.ESCAPE)return t.preventDefault(),void this.close(t);if(t.keyCode===e.ui.keyCode.TAB&&!t.isDefaultPrevented()){var i=this.uiDialog.find(":tabbable"),n=i.first(),s=i.last();t.target!==s[0]&&t.target!==this.uiDialog[0]||t.shiftKey?t.target!==n[0]&&t.target!==this.uiDialog[0]||!t.shiftKey||(this._delay((function(){s.trigger("focus")})),t.preventDefault()):(this._delay((function(){n.trigger("focus")})),t.preventDefault())}},mousedown:function(e){this._moveToTop(e)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var t;this.uiDialogTitlebar=e("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(t){e(t.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=e("<button type='button'></button>").button({label:e("<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(e){e.preventDefault(),this.close(e)}}),t=e("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(t,"ui-dialog-title"),this._title(t),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":t.attr("id")})},_title:function(e){this.options.title?e.text(this.options.title):e.html("&#160;")},_createButtonPane:function(){this.uiDialogButtonPane=e("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=e("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var t=this,i=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),e.isEmptyObject(i)||Array.isArray(i)&&!i.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(e.each(i,(function(i,n){var s,o;n="function"==typeof n?{click:n,text:i}:n,n=e.extend({type:"button"},n),s=n.click,o={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,e("<button></button>",n).button(o).appendTo(t.uiButtonSet).on("click",(function(){s.apply(t.element[0],arguments)}))})),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var t=this,i=this.options;function n(e){return{position:e.position,offset:e.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,s){t._addClass(e(this),"ui-dialog-dragging"),t._blockFrames(),t._trigger("dragStart",i,n(s))},drag:function(e,i){t._trigger("drag",e,n(i))},stop:function(s,o){var r=o.offset.left-t.document.scrollLeft(),a=o.offset.top-t.document.scrollTop();i.position={my:"left top",at:"left"+(r>=0?"+":"")+r+" top"+(a>=0?"+":"")+a,of:t.window},t._removeClass(e(this),"ui-dialog-dragging"),t._unblockFrames(),t._trigger("dragStop",s,n(o))}})},_makeResizable:function(){var t=this,i=this.options,n=i.resizable,s=this.uiDialog.css("position"),o="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";function r(e){return{originalPosition:e.originalPosition,originalSize:e.originalSize,position:e.position,size:e.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:o,start:function(i,n){t._addClass(e(this),"ui-dialog-resizing"),t._blockFrames(),t._trigger("resizeStart",i,r(n))},resize:function(e,i){t._trigger("resize",e,r(i))},stop:function(n,s){var o=t.uiDialog.offset(),a=o.left-t.document.scrollLeft(),l=o.top-t.document.scrollTop();i.height=t.uiDialog.height(),i.width=t.uiDialog.width(),i.position={my:"left top",at:"left"+(a>=0?"+":"")+a+" top"+(l>=0?"+":"")+l,of:t.window},t._removeClass(e(this),"ui-dialog-resizing"),t._unblockFrames(),t._trigger("resizeStop",n,r(s))}}).css("position",s)},_trackFocus:function(){this._on(this.widget(),{focusin:function(t){this._makeFocusTarget(),this._focusedElement=e(t.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var t=this._trackingInstances(),i=e.inArray(this,t);-1!==i&&t.splice(i,1)},_trackingInstances:function(){var e=this.document.data("ui-dialog-instances");return e||(e=[],this.document.data("ui-dialog-instances",e)),e},_minHeight:function(){var e=this.options;return"auto"===e.height?e.minHeight:Math.min(e.minHeight,e.height)},_position:function(){var e=this.uiDialog.is(":visible");e||this.uiDialog.show(),this.uiDialog.position(this.options.position),e||this.uiDialog.hide()},_setOptions:function(t){var i=this,n=!1,s={};e.each(t,(function(e,t){i._setOption(e,t),e in i.sizeRelatedOptions&&(n=!0),e in i.resizableRelatedOptions&&(s[e]=t)})),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(t,i){var n,s,o=this.uiDialog;"disabled"!==t&&(this._super(t,i),"appendTo"===t&&this.uiDialog.appendTo(this._appendTo()),"buttons"===t&&this._createButtons(),"closeText"===t&&this.uiDialogTitlebarClose.button({label:e("<a>").text(""+this.options.closeText).html()}),"draggable"===t&&((n=o.is(":data(ui-draggable)"))&&!i&&o.draggable("destroy"),!n&&i&&this._makeDraggable()),"position"===t&&this._position(),"resizable"===t&&((s=o.is(":data(ui-resizable)"))&&!i&&o.resizable("destroy"),s&&"string"==typeof i&&o.resizable("option","handles",i),s||!1===i||this._makeResizable()),"title"===t&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var e,t,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),e=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),t=Math.max(0,n.minHeight-e),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-e):"none","auto"===n.height?this.element.css({minHeight:t,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-e)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var t=e(this);return e("<div>").css({position:"absolute",width:t.outerWidth(),height:t.outerHeight()}).appendTo(t.parent()).offset(t.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(t){return!!e(t.target).closest(".ui-dialog").length||!!e(t.target).closest(".ui-datepicker").length},_createOverlay:function(){if(this.options.modal){var t=e.fn.jquery.substring(0,4),i=!0;this._delay((function(){i=!1})),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(e){if(!i){var n=this._trackingInstances()[0];n._allowInteraction(e)||(e.preventDefault(),n._focusTabbable(),"3.4."!==t&&"3.5."!==t||n._delay(n._restoreTabbableFocus))}}.bind(this)),this.overlay=e("<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 e=this.document.data("ui-dialog-overlays")-1;e?this.document.data("ui-dialog-overlays",e):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null}}}),!1!==e.uiBackCompat&&e.widget("ui.dialog",e.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(e,t){"dialogClass"===e&&this.uiDialog.removeClass(this.options.dialogClass).addClass(t),this._superApply(arguments)}}),e.ui.dialog,e.widget("ui.droppable",{version:"1.13.2",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,t=this.options,i=t.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(e){return e.is(i)},this.proportions=function(){if(!arguments.length)return e||(e={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight});e=arguments[0]},this._addToManager(t.scope),t.addClasses&&this._addClass("ui-droppable")},_addToManager:function(t){e.ui.ddmanager.droppables[t]=e.ui.ddmanager.droppables[t]||[],e.ui.ddmanager.droppables[t].push(this)},_splice:function(e){for(var t=0;t<e.length;t++)e[t]===this&&e.splice(t,1)},_destroy:function(){var t=e.ui.ddmanager.droppables[this.options.scope];this._splice(t)},_setOption:function(t,i){if("accept"===t)this.accept="function"==typeof i?i:function(e){return e.is(i)};else if("scope"===t){var n=e.ui.ddmanager.droppables[this.options.scope];this._splice(n),this._addToManager(i)}this._super(t,i)},_activate:function(t){var i=e.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",t,this.ui(i))},_deactivate:function(t){var i=e.ui.ddmanager.current;this._removeActiveClass(),i&&this._trigger("deactivate",t,this.ui(i))},_over:function(t){var i=e.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",t,this.ui(i)))},_out:function(t){var i=e.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",t,this.ui(i)))},_drop:function(t,i){var n=i||e.ui.ddmanager.current,s=!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=e(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&e.ui.intersect(n,e.extend(i,{offset:i.element.offset()}),i.options.tolerance,t))return s=!0,!1})),!s&&!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeActiveClass(),this._removeHoverClass(),this._trigger("drop",t,this.ui(n)),this.element))},ui:function(e){return{draggable:e.currentItem||e.element,helper:e.helper,position:e.position,offset:e.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")}}),e.ui.intersect=function(){function e(e,t,i){return e>=t&&e<t+i}return function(t,i,n,s){if(!i.offset)return!1;var o=(t.positionAbs||t.position.absolute).left+t.margins.left,r=(t.positionAbs||t.position.absolute).top+t.margins.top,a=o+t.helperProportions.width,l=r+t.helperProportions.height,c=i.offset.left,d=i.offset.top,h=c+i.proportions().width,u=d+i.proportions().height;switch(n){case"fit":return c<=o&&a<=h&&d<=r&&l<=u;case"intersect":return c<o+t.helperProportions.width/2&&a-t.helperProportions.width/2<h&&d<r+t.helperProportions.height/2&&l-t.helperProportions.height/2<u;case"pointer":return e(s.pageY,d,i.proportions().height)&&e(s.pageX,c,i.proportions().width);case"touch":return(r>=d&&r<=u||l>=d&&l<=u||r<d&&l>u)&&(o>=c&&o<=h||a>=c&&a<=h||o<c&&a>h);default:return!1}}}(),e.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(t,i){var n,s,o=e.ui.ddmanager.droppables[t.options.scope]||[],r=i?i.type:null,a=(t.currentItem||t.element).find(":data(ui-droppable)").addBack();e:for(n=0;n<o.length;n++)if(!(o[n].options.disabled||t&&!o[n].accept.call(o[n].element[0],t.currentItem||t.element))){for(s=0;s<a.length;s++)if(a[s]===o[n].element[0]){o[n].proportions().height=0;continue e}o[n].visible="none"!==o[n].element.css("display"),o[n].visible&&("mousedown"===r&&o[n]._activate.call(o[n],i),o[n].offset=o[n].element.offset(),o[n].proportions({width:o[n].element[0].offsetWidth,height:o[n].element[0].offsetHeight}))}},drop:function(t,i){var n=!1;return e.each((e.ui.ddmanager.droppables[t.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&e.ui.intersect(t,this,this.options.tolerance,i)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],t.currentItem||t.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))})),n},dragStart:function(t,i){t.element.parentsUntil("body").on("scroll.droppable",(function(){t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}))},drag:function(t,i){t.options.refreshPositions&&e.ui.ddmanager.prepareOffsets(t,i),e.each(e.ui.ddmanager.droppables[t.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,s,o,r=e.ui.intersect(t,this,this.options.tolerance,i),a=!r&&this.isover?"isout":r&&!this.isover?"isover":null;a&&(this.options.greedy&&(s=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter((function(){return e(this).droppable("instance").options.scope===s}))).length&&((n=e(o[0]).droppable("instance")).greedyChild="isover"===a)),n&&"isover"===a&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[a]=!0,this["isout"===a?"isover":"isout"]=!1,this["isover"===a?"_over":"_out"].call(this,i),n&&"isout"===a&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}}))},dragStop:function(t,i){t.element.parentsUntil("body").off("scroll.droppable"),t.options.refreshPositions||e.ui.ddmanager.prepareOffsets(t,i)}},!1!==e.uiBackCompat&&e.widget("ui.droppable",e.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_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)}}),e.ui.droppable,e.widget("ui.progressbar",{version:"1.13.2",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=e("<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(e){if(void 0===e)return this.options.value;this.options.value=this._constrainedValue(e),this._refreshValue()},_constrainedValue:function(e){return void 0===e&&(e=this.options.value),this.indeterminate=!1===e,"number"!=typeof e&&(e=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,e))},_setOptions:function(e){var t=e.value;delete e.value,this._super(e),this.options.value=this._constrainedValue(t),this._refreshValue()},_setOption:function(e,t){"max"===e&&(t=Math.max(this.min,t)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this.element.attr("aria-disabled",e),this._toggleClass(null,"ui-state-disabled",!!e)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var t=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||t>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,t===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=e("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":t}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==t&&(this.oldValue=t,this._trigger("change")),t===this.options.max&&this._trigger("complete")}}),e.widget("ui.selectable",e.ui.mouse,{version:"1.13.2",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 t=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){t.elementPos=e(t.element[0]).offset(),t.selectees=e(t.options.filter,t.element[0]),t._addClass(t.selectees,"ui-selectee"),t.selectees.each((function(){var i=e(this),n=i.offset(),s={left:n.left-t.elementPos.left,top:n.top-t.elementPos.top};e.data(this,"selectable-item",{element:this,$element:i,left:s.left,top:s.top,right:s.left+i.outerWidth(),bottom:s.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=e("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(t){var i=this,n=this.options;this.opos=[t.pageX,t.pageY],this.elementPos=e(this.element[0]).offset(),this.options.disabled||(this.selectees=e(n.filter,this.element[0]),this._trigger("start",t),e(n.appendTo).append(this.helper),this.helper.css({left:t.pageX,top:t.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var n=e.data(this,"selectable-item");n.startselected=!0,t.metaKey||t.ctrlKey||(i._removeClass(n.$element,"ui-selected"),n.selected=!1,i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",t,{unselecting:n.element}))})),e(t.target).parents().addBack().each((function(){var n,s=e.data(this,"selectable-item");if(s)return n=!t.metaKey&&!t.ctrlKey||!s.$element.hasClass("ui-selected"),i._removeClass(s.$element,n?"ui-unselecting":"ui-selected")._addClass(s.$element,n?"ui-selecting":"ui-unselecting"),s.unselecting=!n,s.selecting=n,s.selected=n,n?i._trigger("selecting",t,{selecting:s.element}):i._trigger("unselecting",t,{unselecting:s.element}),!1})))},_mouseDrag:function(t){if(this.dragged=!0,!this.options.disabled){var i,n=this,s=this.options,o=this.opos[0],r=this.opos[1],a=t.pageX,l=t.pageY;return o>a&&(i=a,a=o,o=i),r>l&&(i=l,l=r,r=i),this.helper.css({left:o,top:r,width:a-o,height:l-r}),this.selectees.each((function(){var i=e.data(this,"selectable-item"),c=!1,d={};i&&i.element!==n.element[0]&&(d.left=i.left+n.elementPos.left,d.right=i.right+n.elementPos.left,d.top=i.top+n.elementPos.top,d.bottom=i.bottom+n.elementPos.top,"touch"===s.tolerance?c=!(d.left>a||d.right<o||d.top>l||d.bottom<r):"fit"===s.tolerance&&(c=d.left>o&&d.right<a&&d.top>r&&d.bottom<l),c?(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",t,{selecting:i.element}))):(i.selecting&&((t.metaKey||t.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",t,{unselecting:i.element}))),i.selected&&(t.metaKey||t.ctrlKey||i.startselected||(n._removeClass(i.$element,"ui-selected"),i.selected=!1,n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",t,{unselecting:i.element})))))})),!1}},_mouseStop:function(t){var i=this;return this.dragged=!1,e(".ui-unselecting",this.element[0]).each((function(){var n=e.data(this,"selectable-item");i._removeClass(n.$element,"ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",t,{unselected:n.element})})),e(".ui-selecting",this.element[0]).each((function(){var n=e.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",t,{selected:n.element})})),this._trigger("stop",t),this.helper.remove(),!1}}),e.widget("ui.selectmenu",[e.ui.formResetMixin,{version:"1.13.2",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 t=this.element.uniqueId().attr("id");this.ids={element:t,button:t+"-button",menu:t+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=e()},_drawButton:function(){var t,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(e){this.button.trigger("focus"),e.preventDefault()}}),this.element.hide(),this.button=e("<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"),t=e("<span>").appendTo(this.button),this._addClass(t,"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 t=this;this.menu=e("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=e("<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(e,i){e.preventDefault(),t._setSelection(),t._select(i.item.data("ui-selectmenu-item"),e)},focus:function(e,i){var n=i.item.data("ui-selectmenu-item");null!=t.focusIndex&&n.index!==t.focusIndex&&(t._trigger("focus",e,{item:n}),t.isOpen||t._select(n,e)),t.focusIndex=n.index,t.button.attr("aria-activedescendant",t.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 e,t=this.element.find("option");this.menu.empty(),this._parseOptions(t),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,t.length&&(e=this._getSelectedItem(),this.menuInstance.focus(null,e),this._setAria(e.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(e){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",e)))},_position:function(){this.menuWrap.position(e.extend({of:this.button},this.options.position))},close:function(e){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",e))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(t){var i=e("<span>");return this._setText(i,t.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(t,i){var n=this,s="";e.each(i,(function(i,o){var r;o.optgroup!==s&&(r=e("<li>",{text:o.optgroup}),n._addClass(r,"ui-selectmenu-optgroup","ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),r.appendTo(t),s=o.optgroup),n._renderItemData(t,o)}))},_renderItemData:function(e,t){return this._renderItem(e,t).data("ui-selectmenu-item",t)},_renderItem:function(t,i){var n=e("<li>"),s=e("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(n,null,"ui-state-disabled"),this._setText(s,i.label),n.append(s).appendTo(t)},_setText:function(e,t){t?e.text(t):e.html("&#160;")},_move:function(e,t){var i,n,s=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),s+=":not(.ui-state-disabled)"),(n="first"===e||"last"===e?i["first"===e?"prevAll":"nextAll"](s).eq(-1):i[e+"All"](s).eq(0)).length&&this.menuInstance.focus(t,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(e){this[this.isOpen?"close":"open"](e)},_setSelection:function(){var e;this.range&&(window.getSelection?((e=window.getSelection()).removeAllRanges(),e.addRange(this.range)):this.range.select(),this.button.trigger("focus"))},_documentClick:{mousedown:function(t){this.isOpen&&(e(t.target).closest(".ui-selectmenu-menu, #"+e.escapeSelector(this.ids.button)).length||this.close(t))}},_buttonEvents:{mousedown:function(){var e;window.getSelection?(e=window.getSelection()).rangeCount&&(this.range=e.getRangeAt(0)):this.range=document.selection.createRange()},click:function(e){this._setSelection(),this._toggle(e)},keydown:function(t){var i=!0;switch(t.keyCode){case e.ui.keyCode.TAB:case e.ui.keyCode.ESCAPE:this.close(t),i=!1;break;case e.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(t);break;case e.ui.keyCode.UP:t.altKey?this._toggle(t):this._move("prev",t);break;case e.ui.keyCode.DOWN:t.altKey?this._toggle(t):this._move("next",t);break;case e.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(t):this._toggle(t);break;case e.ui.keyCode.LEFT:this._move("prev",t);break;case e.ui.keyCode.RIGHT:this._move("next",t);break;case e.ui.keyCode.HOME:case e.ui.keyCode.PAGE_UP:this._move("first",t);break;case e.ui.keyCode.END:case e.ui.keyCode.PAGE_DOWN:this._move("last",t);break;default:this.menu.trigger(t),i=!1}i&&t.preventDefault()}},_selectFocusedItem:function(e){var t=this.menuItems.eq(this.focusIndex).parent("li");t.hasClass("ui-state-disabled")||this._select(t.data("ui-selectmenu-item"),e)},_select:function(e,t){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=e.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(e)),this._setAria(e),this._trigger("select",t,{item:e}),e.index!==i&&this._trigger("change",t,{item:e}),this.close(t)},_setAria:function(e){var t=this.menuItems.eq(e.index).attr("id");this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(e,t){if("icons"===e){var i=this.button.find("span.ui-icon");this._removeClass(i,null,this.options.icons.button)._addClass(i,null,t.button)}this._super(e,t),"appendTo"===e&&this.menuWrap.appendTo(this._appendTo()),"width"===e&&this._resizeButton()},_setOptionDisabled:function(e){this._super(e),this.menuInstance.option("disabled",e),this.button.attr("aria-disabled",e),this._toggleClass(this.button,null,"ui-state-disabled",e),this.element.prop("disabled",e),e?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var t=this.options.appendTo;return t&&(t=t.jquery||t.nodeType?e(t):this.document.find(t).eq(0)),t&&t[0]||(t=this.element.closest(".ui-front, dialog")),t.length||(t=this.document[0].body),t},_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 e=this.options.width;!1!==e?(null===e&&(e=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(e)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var e=this._super();return e.disabled=this.element.prop("disabled"),e},_parseOptions:function(t){var i=this,n=[];t.each((function(t,s){s.hidden||n.push(i._parseOption(e(s),t))})),this.items=n},_parseOption:function(e,t){var i=e.parent("optgroup");return{element:e,index:t,value:e.val(),label:e.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||e.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)}}]),e.widget("ui.slider",e.ui.mouse,{version:"1.13.2",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 t,i,n=this.options,s=this.element.find(".ui-slider-handle"),o=[];for(i=n.values&&n.values.length||1,s.length>i&&(s.slice(i).remove(),s=s.slice(0,i)),t=s.length;t<i;t++)o.push("<span tabindex='0'></span>");this.handles=s.add(e(o.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(t){e(this).data("ui-slider-handle-index",t).attr("tabIndex",0)}))},_createRange:function(){var t=this.options;t.range?(!0===t.range&&(t.values?t.values.length&&2!==t.values.length?t.values=[t.values[0],t.values[0]]:Array.isArray(t.values)&&(t.values=t.values.slice(0)):t.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=e("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==t.range&&"max"!==t.range||this._addClass(this.range,"ui-slider-range-"+t.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(t){var i,n,s,o,r,a,l,c=this,d=this.options;return!d.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),i={x:t.pageX,y:t.pageY},n=this._normValueFromMouse(i),s=this._valueMax()-this._valueMin()+1,this.handles.each((function(t){var i=Math.abs(n-c.values(t));(s>i||s===i&&(t===c._lastChangedValue||c.values(t)===d.min))&&(s=i,o=e(this),r=t)})),!1!==this._start(t,r)&&(this._mouseSliding=!0,this._handleIndex=r,this._addClass(o,null,"ui-state-active"),o.trigger("focus"),a=o.offset(),l=!e(t.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=l?{left:0,top:0}:{left:t.pageX-a.left-o.width()/2,top:t.pageY-a.top-o.height()/2-(parseInt(o.css("borderTopWidth"),10)||0)-(parseInt(o.css("borderBottomWidth"),10)||0)+(parseInt(o.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(t,r,n),this._animateOff=!0,!0))},_mouseStart:function(){return!0},_mouseDrag:function(e){var t={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(t);return this._slide(e,this._handleIndex,i),!1},_mouseStop:function(e){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(e,this._handleIndex),this._change(e,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1,!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(e){var t,i,n,s,o;return"horizontal"===this.orientation?(t=this.elementSize.width,i=e.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(t=this.elementSize.height,i=e.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)),(n=i/t)>1&&(n=1),n<0&&(n=0),"vertical"===this.orientation&&(n=1-n),s=this._valueMax()-this._valueMin(),o=this._valueMin()+n*s,this._trimAlignValue(o)},_uiHash:function(e,t,i){var n={handle:this.handles[e],handleIndex:e,value:void 0!==t?t:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==t?t:this.values(e),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(e,t){return this._trigger("start",e,this._uiHash(t))},_slide:function(e,t,i){var n,s=this.value(),o=this.values();this._hasMultipleValues()&&(n=this.values(t?0:1),s=this.values(t),2===this.options.values.length&&!0===this.options.range&&(i=0===t?Math.min(n,i):Math.max(n,i)),o[t]=i),i!==s&&!1!==this._trigger("slide",e,this._uiHash(t,i,o))&&(this._hasMultipleValues()?this.values(t,i):this.value(i))},_stop:function(e,t){this._trigger("stop",e,this._uiHash(t))},_change:function(e,t){this._keySliding||this._mouseSliding||(this._lastChangedValue=t,this._trigger("change",e,this._uiHash(t)))},value:function(e){return arguments.length?(this.options.value=this._trimAlignValue(e),this._refreshValue(),void this._change(null,0)):this._value()},values:function(e,t){var i,n,s;if(arguments.length>1)return this.options.values[e]=this._trimAlignValue(t),this._refreshValue(),void this._change(null,e);if(!arguments.length)return this._values();if(!Array.isArray(arguments[0]))return this._hasMultipleValues()?this._values(e):this.value();for(i=this.options.values,n=arguments[0],s=0;s<i.length;s+=1)i[s]=this._trimAlignValue(n[s]),this._change(null,s);this._refreshValue()},_setOption:function(e,t){var i,n=0;switch("range"===e&&!0===this.options.range&&("min"===t?(this.options.value=this._values(0),this.options.values=null):"max"===t&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(n=this.options.values.length),this._super(e,t),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(t),this.handles.css("horizontal"===t?"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(),i=n-1;i>=0;i--)this._change(null,i);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(e){this._super(e),this._toggleClass(null,"ui-state-disabled",!!e)},_value:function(){var e=this.options.value;return this._trimAlignValue(e)},_values:function(e){var t,i,n;if(arguments.length)return t=this.options.values[e],this._trimAlignValue(t);if(this._hasMultipleValues()){for(i=this.options.values.slice(),n=0;n<i.length;n+=1)i[n]=this._trimAlignValue(i[n]);return i}return[]},_trimAlignValue:function(e){if(e<=this._valueMin())return this._valueMin();if(e>=this._valueMax())return this._valueMax();var t=this.options.step>0?this.options.step:1,i=(e-this._valueMin())%t,n=e-i;return 2*Math.abs(i)>=t&&(n+=i>0?t:-t),parseFloat(n.toFixed(5))},_calculateNewMax:function(){var e=this.options.max,t=this._valueMin(),i=this.options.step;(e=Math.round((e-t)/i)*i+t)>this.options.max&&(e-=i),this.max=parseFloat(e.toFixed(this._precision()))},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(e){"vertical"===e&&this.range.css({width:"",left:""}),"horizontal"===e&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var t,i,n,s,o,r=this.options.range,a=this.options,l=this,c=!this._animateOff&&a.animate,d={};this._hasMultipleValues()?this.handles.each((function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,d["horizontal"===l.orientation?"left":"bottom"]=i+"%",e(this).stop(1,1)[c?"animate":"css"](d,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},a.animate),1===n&&l.range[c?"animate":"css"]({width:i-t+"%"},{queue:!1,duration:a.animate})):(0===n&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},a.animate),1===n&&l.range[c?"animate":"css"]({height:i-t+"%"},{queue:!1,duration:a.animate}))),t=i})):(n=this.value(),s=this._valueMin(),o=this._valueMax(),i=o!==s?(n-s)/(o-s)*100:0,d["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](d,a.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},a.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-i+"%"},a.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},a.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(t){var i,n,s,o=e(t.target).data("ui-slider-handle-index");switch(t.keyCode){case e.ui.keyCode.HOME:case e.ui.keyCode.END:case e.ui.keyCode.PAGE_UP:case e.ui.keyCode.PAGE_DOWN:case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(t.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(e(t.target),null,"ui-state-active"),!1===this._start(t,o)))return}switch(s=this.options.step,i=n=this._hasMultipleValues()?this.values(o):this.value(),t.keyCode){case e.ui.keyCode.HOME:n=this._valueMin();break;case e.ui.keyCode.END:n=this._valueMax();break;case e.ui.keyCode.PAGE_UP:n=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case e.ui.keyCode.UP:case e.ui.keyCode.RIGHT:if(i===this._valueMax())return;n=this._trimAlignValue(i+s);break;case e.ui.keyCode.DOWN:case e.ui.keyCode.LEFT:if(i===this._valueMin())return;n=this._trimAlignValue(i-s)}this._slide(t,o,n)},keyup:function(t){var i=e(t.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(t,i),this._change(t,i),this._removeClass(e(t.target),null,"ui-state-active"))}}}),e.widget("ui.sortable",e.ui.mouse,{version:"1.13.2",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},_isOverAxis:function(e,t,i){return e>=t&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.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(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,(function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var n=null,s=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(t),e(t.target).parents().each((function(){if(e.data(this,o.widgetName+"-item")===o)return n=e(this),!1})),e.data(t.target,o.widgetName+"-item")===o&&(n=e(t.target)),!n||this.options.handle&&!i&&(e(this.options.handle,n).find("*").addBack().each((function(){this===t.target&&(s=!0)})),!s)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(t,i,n){var s,o,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),e.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=e("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+t.scrollSpeed:e.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+t.scrollSpeed:e.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(e.pageY-this.document.scrollTop()<t.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<t.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),e.pageX-this.document.scrollLeft()<t.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),i},_mouseDrag:function(t){var i,n,s,o,r=this.options;for(this.position=this._generatePosition(t),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"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if(s=(n=this.items[i]).item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===s||e.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],s))){if(this.direction=1===o?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(t,n),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var n=this,s=this.placeholder.offset(),o=this.options.axis,r={};o&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,(function(){n._clear(t)}))}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.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 t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].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(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(i).each((function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&n.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))})),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},i.each((function(){n.push(e(t.item||this).attr(t.attribute||"id")||"")})),n},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,o=e.left,r=o+e.width,a=e.top,l=a+e.height,c=this.offset.click.top,d=this.offset.click.left,h="x"===this.options.axis||n+c>a&&n+c<l,u="y"===this.options.axis||t+d>o&&t+d<r,p=h&&u;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?p:o<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&a<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!(!n||!s)&&(t=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&t||"up"===n&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var i,n,s,o,r=[],a=[],l=this._connectWith();if(l&&t)for(i=l.length-1;i>=0;i--)for(n=(s=e(l[i],this.document[0])).length-1;n>=0;n--)(o=e.data(s[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&a.push(["function"==typeof o.options.items?o.options.items.call(o.element):e(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function c(){r.push(this)}for(a.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=a.length-1;i>=0;i--)a[i][0].each(c);return e(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,(function(e){for(var i=0;i<t.length;i++)if(t[i]===e.item[0])return!1;return!0}))},_refreshItems:function(t){this.items=[],this.containers=[this];var i,n,s,o,r,a,l,c,d=this.items,h=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],u=this._connectWith();if(u&&this.ready)for(i=u.length-1;i>=0;i--)for(n=(s=e(u[i],this.document[0])).length-1;n>=0;n--)(o=e.data(s[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(h.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],t,{item:this.currentItem}):e(o.options.items,o.element),o]),this.containers.push(o));for(i=h.length-1;i>=0;i--)for(r=h[i][1],n=0,c=(a=h[i][0]).length;n<c;n++)(l=e(a[n])).data(this.widgetName+"-item",r),d.push({item:l,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){var i,n,s,o;for(i=this.items.length-1;i>=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?e(this.options.toleranceElement,n.item):n.item,t||(n.width=s.outerWidth(),n.height=s.outerHeight()),o=s.offset(),n.left=o.left,n.top=o.top)},refreshPositions:function(e){var t,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var i,n,s=(t=t||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,n=t.currentItem[0].nodeName.toLowerCase(),s.placeholder={element:function(){var s=e("<"+n+">",t.document[0]);return t._addClass(s,"ui-sortable-placeholder",i||t.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(s)):"tr"===n?t._createTrPlaceholder(t.currentItem,s):"img"===n&&s.attr("src",t.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(e,o){i&&!s.forcePlaceholderSize||(o.height()&&(!s.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||o.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(s.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),s.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var n=this;t.children().each((function(){e("<td>&#160;</td>",n.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(t){var i,n,s,o,r,a,l,c,d,h,u=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(u&&e.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",t,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",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,o=null,r=(d=u.floating||this._isFloating(this.currentItem))?"left":"top",a=d?"width":"height",h=d?"pageX":"pageY",n=this.items.length-1;n>=0;n--)e.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()[r],c=!1,t[h]-l>this.items[n][a]/2&&(c=!0),Math.abs(t[h]-l)<s&&(s=Math.abs(t[h]-l),o=this.items[n],this.direction=c?"up":"down"));if(!o&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));o?this._rearrange(t,o,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",t,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(t){var i=this.options,n="function"==typeof i.helper?e(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||this.appendTo[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(" ")),Array.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 t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.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 t,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.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(s.containment)||(t=e(s.containment)[0],i=e(s.containment).offset(),n="hidden"!==e(t).css("overflow"),this.containment=[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var n="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,o=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():o?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():o?0:s.scrollLeft())*n}},_generatePosition:function(t){var i,n,s=this.options,o=t.pageX,r=t.pageY,a="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(a[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&&(t.pageX-this.offset.click.left<this.containment[0]&&(o=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(o=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=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-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((o-this.originalPageX)/s.grid[0])*s.grid[0],o=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-s.grid[0]:n+s.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:a.scrollTop()),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:a.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay((function(){s===this.counter&&this.refreshPositions(!n)}))},_clear:function(e,t){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(e,t,i){return function(n){i._trigger(e,n,t._uiHash(t))}}for(this.fromOutside&&!t&&n.push((function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||n.push((function(e){this._trigger("update",e,this._uiHash())})),this!==this.currentContainer&&(t||(n.push((function(e){this._trigger("remove",e,this._uiHash())})),n.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("out",this,this.containers[i])),this.containers[i].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,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<n.length;i++)n[i].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}}),e.widget("ui.spinner",{version:"1.13.2",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 t=this._super(),i=this.element;return e.each(["min","max","step"],(function(e,n){var s=i.attr(n);null!=s&&s.length&&(t[n]=s)})),t},_events:{keydown:function(e){this._start(e)&&this._keydown(e)&&e.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(e){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",e))},mousewheel:function(t,i){var n=e.ui.safeActiveElement(this.document[0]);if(this.element[0]===n&&i){if(!this.spinning&&!this._start(t))return!1;this._spin((i>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(t){var i;function n(){this.element[0]===e.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=i,this._delay((function(){this.previous=i})))}i=this.element[0]===e.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),t.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,n.call(this)})),!1!==this._start(t)&&this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(t){if(e(t.currentTarget).hasClass("ui-state-active"))return!1!==this._start(t)&&void this._repeat(null,e(t.currentTarget).hasClass("ui-spinner-up")?1:-1,t)},"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(t){var i=this.options,n=e.ui.keyCode;switch(t.keyCode){case n.UP:return this._repeat(null,1,t),!0;case n.DOWN:return this._repeat(null,-1,t),!0;case n.PAGE_UP:return this._repeat(null,i.page,t),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,t),!0}return!1},_start:function(e){return!(!this.spinning&&!1===this._trigger("start",e)||(this.counter||(this.counter=1),this.spinning=!0,0))},_repeat:function(e,t,i){e=e||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,t,i)}),e),this._spin(t*this.options.step,i)},_spin:function(e,t){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+e*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",t,{value:i})||(this._value(i),this.counter++)},_increment:function(e){var t=this.options.incremental;return t?"function"==typeof t?t(e):Math.floor(e*e*e/5e4-e*e/500+17*e/200+1):1},_precision:function(){var e=this._precisionOf(this.options.step);return null!==this.options.min&&(e=Math.max(e,this._precisionOf(this.options.min))),e},_precisionOf:function(e){var t=e.toString(),i=t.indexOf(".");return-1===i?0:t.length-i-1},_adjustValue:function(e){var t,i,n=this.options;return i=e-(t=null!==n.min?n.min:0),e=t+(i=Math.round(i/n.step)*n.step),e=parseFloat(e.toFixed(this._precision())),null!==n.max&&e>n.max?n.max:null!==n.min&&e<n.min?n.min:e},_stop:function(e){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",e))},_setOption:function(e,t){var i,n,s;if("culture"===e||"numberFormat"===e)return i=this._parse(this.element.val()),this.options[e]=t,void this.element.val(this._format(i));"max"!==e&&"min"!==e&&"step"!==e||"string"==typeof t&&(t=this._parse(t)),"icons"===e&&(n=this.buttons.first().find(".ui-icon"),this._removeClass(n,null,this.options.icons.up),this._addClass(n,null,t.up),s=this.buttons.last().find(".ui-icon"),this._removeClass(s,null,this.options.icons.down),this._addClass(s,null,t.down)),this._super(e,t)},_setOptionDisabled:function(e){this._super(e),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!e),this.element.prop("disabled",!!e),this.buttons.button(e?"disable":"enable")},_setOptions:M((function(e){this._super(e)})),_parse:function(e){return"string"==typeof e&&""!==e&&(e=window.Globalize&&this.options.numberFormat?Globalize.parseFloat(e,10,this.options.culture):+e),""===e||isNaN(e)?null:e},_format:function(e){return""===e?"":window.Globalize&&this.options.numberFormat?Globalize.format(e,this.options.numberFormat,this.options.culture):e},_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 e=this.value();return null!==e&&e===this._adjustValue(e)},_value:function(e,t){var i;""!==e&&null!==(i=this._parse(e))&&(t||(i=this._adjustValue(i)),e=this._format(i)),this.element.val(e),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:M((function(e){this._stepUp(e)})),_stepUp:function(e){this._start()&&(this._spin((e||1)*this.options.step),this._stop())},stepDown:M((function(e){this._stepDown(e)})),_stepDown:function(e){this._start()&&(this._spin((e||1)*-this.options.step),this._stop())},pageUp:M((function(e){this._stepUp((e||1)*this.options.page)})),pageDown:M((function(e){this._stepDown((e||1)*this.options.page)})),value:function(e){if(!arguments.length)return this._parse(this.element.val());M(this._value).call(this,e)},widget:function(){return this.uiSpinner}}),!1!==e.uiBackCompat&&e.widget("ui.spinner",e.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>"}}),e.ui.spinner,e.widget("ui.tabs",{version:"1.13.2",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:(L=/#.*$/,function(e){var t,i;t=e.href.replace(L,""),i=location.href.replace(L,"");try{t=decodeURIComponent(t)}catch(e){}try{i=decodeURIComponent(i)}catch(e){}return e.hash.length>1&&t===i}),_create:function(){var t=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(),Array.isArray(i.disabled)&&(i.disabled=e.uniqueSort(i.disabled.concat(e.map(this.tabs.filter(".ui-state-disabled"),(function(e){return t.tabs.index(e)})))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(i.active):this.active=e(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var t=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===t&&(n&&this.tabs.each((function(i,s){if(e(s).attr("aria-controls")===n)return t=i,!1})),null===t&&(t=this.tabs.index(this.tabs.filter(".ui-tabs-active"))),null!==t&&-1!==t||(t=!!this.tabs.length&&0)),!1!==t&&-1===(t=this.tabs.index(this.tabs.eq(t)))&&(t=!i&&0),!i&&!1===t&&this.anchors.length&&(t=0),t},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):e()}},_tabKeydown:function(t){var i=e(e.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(i),s=!0;if(!this._handlePageNav(t)){switch(t.keyCode){case e.ui.keyCode.RIGHT:case e.ui.keyCode.DOWN:n++;break;case e.ui.keyCode.UP:case e.ui.keyCode.LEFT:s=!1,n--;break;case e.ui.keyCode.END:n=this.anchors.length-1;break;case e.ui.keyCode.HOME:n=0;break;case e.ui.keyCode.SPACE:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n);case e.ui.keyCode.ENTER:return t.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}t.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,s),t.ctrlKey||t.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(t){this._handlePageNav(t)||t.ctrlKey&&t.keyCode===e.ui.keyCode.UP&&(t.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(t){return t.altKey&&t.keyCode===e.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):t.altKey&&t.keyCode===e.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(t,i){var n=this.tabs.length-1;for(;-1!==e.inArray((t>n&&(t=0),t<0&&(t=n),t),this.options.disabled);)t=i?t+1:t-1;return t},_focusNextTab:function(e,t){return e=this._findNextTab(e,t),this.tabs.eq(e).trigger("focus"),e},_setOption:function(e,t){"active"!==e?(this._super(e,t),"collapsible"===e&&(this._toggleClass("ui-tabs-collapsible",null,t),t||!1!==this.options.active||this._activate(0)),"event"===e&&this._setupEvents(t),"heightStyle"===e&&this._setupHeightStyle(t)):this._activate(t)},_sanitizeSelector:function(e){return e?e.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var t=this.options,i=this.tablist.children(":has(a[href])");t.disabled=e.map(i.filter(".ui-state-disabled"),(function(e){return i.index(e)})),this._processTabs(),!1!==t.active&&this.anchors.length?this.active.length&&!e.contains(this.tablist[0],this.active[0])?this.tabs.length===t.disabled.length?(t.active=!1,this.active=e()):this._activate(this._findNextTab(Math.max(0,t.active-1),!1)):t.active=this.tabs.index(this.active):(t.active=!1,this.active=e()),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 t=this,i=this.tabs,n=this.anchors,s=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(t){e(this).is(".ui-state-disabled")&&t.preventDefault()})).on("focus"+this.eventNamespace,".ui-tabs-anchor",(function(){e(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 e("a",this)[0]})).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=e(),this.anchors.each((function(i,n){var s,o,r,a=e(n).uniqueId().attr("id"),l=e(n).closest("li"),c=l.attr("aria-controls");t._isLocal(n)?(r=(s=n.hash).substring(1),o=t.element.find(t._sanitizeSelector(s))):(s="#"+(r=l.attr("aria-controls")||e({}).uniqueId()[0].id),(o=t.element.find(s)).length||(o=t._createPanel(r)).insertAfter(t.panels[i-1]||t.tablist),o.attr("aria-live","polite")),o.length&&(t.panels=t.panels.add(o)),c&&l.data("ui-tabs-aria-controls",c),l.attr({"aria-controls":r,"aria-labelledby":a}),o.attr("aria-labelledby",a)})),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(s.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(t){return e("<div>").attr("id",t).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(t){var i,n,s;for(Array.isArray(t)&&(t.length?t.length===this.anchors.length&&(t=!0):t=!1),s=0;n=this.tabs[s];s++)i=e(n),!0===t||-1!==e.inArray(s,t)?(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=t,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===t)},_setupEvents:function(t){var i={};t&&e.each(t.split(" "),(function(e,t){i[t]="_eventHandler"})),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(e){e.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(t){var i,n=this.element.parent();"fill"===t?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each((function(){var t=e(this),n=t.css("position");"absolute"!==n&&"fixed"!==n&&(i-=t.outerHeight(!0))})),this.element.children().not(this.panels).each((function(){i-=e(this).outerHeight(!0)})),this.panels.each((function(){e(this).height(Math.max(0,i-e(this).innerHeight()+e(this).height()))})).css("overflow","auto")):"auto"===t&&(i=0,this.panels.each((function(){i=Math.max(i,e(this).height("").height())})).height(i))},_eventHandler:function(t){var i=this.options,n=this.active,s=e(t.currentTarget).closest("li"),o=s[0]===n[0],r=o&&i.collapsible,a=r?e():this._getPanelForTab(s),l=n.length?this._getPanelForTab(n):e(),c={oldTab:n,oldPanel:l,newTab:r?e():s,newPanel:a};t.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||o&&!i.collapsible||!1===this._trigger("beforeActivate",t,c)||(i.active=!r&&this.tabs.index(s),this.active=o?e():s,this.xhr&&this.xhr.abort(),l.length||a.length||e.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),t),this._toggle(t,c))},_toggle:function(t,i){var n=this,s=i.newPanel,o=i.oldPanel;function r(){n.running=!1,n._trigger("activate",t,i)}function a(){n._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),s.length&&n.options.show?n._show(s,n.options.show,r):(s.show(),r())}this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,(function(){n._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a()})):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),o.hide(),a()),o.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),s.length&&o.length?i.oldTab.attr("tabIndex",-1):s.length&&this.tabs.filter((function(){return 0===e(this).attr("tabIndex")})).attr("tabIndex",-1),s.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(t){var i,n=this._findActive(t);n[0]!==this.active[0]&&(n.length||(n=this.active),i=n.find(".ui-tabs-anchor")[0],this._eventHandler({target:i,currentTarget:i,preventDefault:e.noop}))},_findActive:function(t){return!1===t?e():this.tabs.eq(t)},_getIndex:function(t){return"string"==typeof t&&(t=this.anchors.index(this.anchors.filter("[href$='"+e.escapeSelector(t)+"']"))),t},_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(){e.data(this,"ui-tabs-destroy")?e(this).remove():e(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")})),this.tabs.each((function(){var t=e(this),i=t.data("ui-tabs-aria-controls");i?t.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):t.removeAttr("aria-controls")})),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(t){var i=this.options.disabled;!1!==i&&(void 0===t?i=!1:(t=this._getIndex(t),i=Array.isArray(i)?e.map(i,(function(e){return e!==t?e:null})):e.map(this.tabs,(function(e,i){return i!==t?i:null}))),this._setOptionDisabled(i))},disable:function(t){var i=this.options.disabled;if(!0!==i){if(void 0===t)i=!0;else{if(t=this._getIndex(t),-1!==e.inArray(t,i))return;i=Array.isArray(i)?e.merge([t],i).sort():[t]}this._setOptionDisabled(i)}},load:function(t,i){t=this._getIndex(t);var n=this,s=this.tabs.eq(t),o=s.find(".ui-tabs-anchor"),r=this._getPanelForTab(s),a={tab:s,panel:r},l=function(e,t){"abort"===t&&n.panels.stop(!1,!0),n._removeClass(s,"ui-tabs-loading"),r.removeAttr("aria-busy"),e===n.xhr&&delete n.xhr};this._isLocal(o[0])||(this.xhr=e.ajax(this._ajaxSettings(o,i,a)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(s,"ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done((function(e,t,s){setTimeout((function(){r.html(e),n._trigger("load",i,a),l(s,t)}),1)})).fail((function(e,t){setTimeout((function(){l(e,t)}),1)}))))},_ajaxSettings:function(t,i,n){var s=this;return{url:t.attr("href").replace(/#.*$/,""),beforeSend:function(t,o){return s._trigger("beforeLoad",i,e.extend({jqXHR:t,ajaxSettings:o},n))}}},_getPanelForTab:function(t){var i=e(t).attr("aria-controls");return this.element.find(this._sanitizeSelector("#"+i))}}),!1!==e.uiBackCompat&&e.widget("ui.tabs",e.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),e.ui.tabs,e.widget("ui.tooltip",{version:"1.13.2",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var t=e(this).attr("title");return e("<a>").text(t).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,t){var i=(e.attr("aria-describedby")||"").split(/\s+/);i.push(t),e.data("ui-tooltip-id",t).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(t){var i=t.data("ui-tooltip-id"),n=(t.attr("aria-describedby")||"").split(/\s+/),s=e.inArray(i,n);-1!==s&&n.splice(s,1),t.removeData("ui-tooltip-id"),(n=String.prototype.trim.call(n.join(" ")))?t.attr("aria-describedby",n):t.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=e("<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=e([])},_setOption:function(t,i){var n=this;this._super(t,i),"content"===t&&e.each(this.tooltips,(function(e,t){n._updateContent(t.element)}))},_setOptionDisabled:function(e){this[e?"_disable":"_enable"]()},_disable:function(){var t=this;e.each(this.tooltips,(function(i,n){var s=e.Event("blur");s.target=s.currentTarget=n.element[0],t.close(s,!0)})),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter((function(){var t=e(this);if(t.is("[title]"))return t.data("ui-tooltip-title",t.attr("title")).removeAttr("title")})))},_enable:function(){this.disabledTitles.each((function(){var t=e(this);t.data("ui-tooltip-title")&&t.attr("title",t.data("ui-tooltip-title"))})),this.disabledTitles=e([])},open:function(t){var i=this,n=e(t?t.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),t&&"mouseover"===t.type&&n.parents().each((function(){var t,n=e(this);n.data("ui-tooltip-open")&&((t=e.Event("blur")).target=t.currentTarget=this,i.close(t,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))})),this._registerCloseHandlers(t,n),this._updateContent(n,t))},_updateContent:function(e,t){var i,n=this.options.content,s=this,o=t?t.type:null;if("string"==typeof n||n.nodeType||n.jquery)return this._open(t,e,n);(i=n.call(e[0],(function(i){s._delay((function(){e.data("ui-tooltip-open")&&(t&&(t.type=o),this._open(t,e,i))}))})))&&this._open(t,e,i)},_open:function(t,i,n){var s,o,r,a,l=e.extend({},this.options.position);function c(e){l.of=e,o.is(":hidden")||o.position(l)}n&&((s=this._find(i))?s.tooltip.find(".ui-tooltip-content").html(n):(i.is("[title]")&&(t&&"mouseover"===t.type?i.attr("title",""):i.removeAttr("title")),s=this._tooltip(i),o=s.tooltip,this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),(a=e("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),a.removeAttr("id").find("[id]").removeAttr("id"),a.appendTo(this.liveRegion),this.options.track&&t&&/^mouse/.test(t.type)?(this._on(this.document,{mousemove:c}),c(t)):o.position(e.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval((function(){o.is(":visible")&&(c(l.of),clearInterval(r))}),13)),this._trigger("open",t,{tooltip:o})))},_registerCloseHandlers:function(t,i){var n={keyup:function(t){if(t.keyCode===e.ui.keyCode.ESCAPE){var n=e.Event(t);n.currentTarget=i[0],this.close(n,!0)}}};i[0]!==this.element[0]&&(n.remove=function(){var e=this._find(i);e&&this._removeTooltip(e.tooltip)}),t&&"mouseover"!==t.type||(n.mouseleave="close"),t&&"focusin"!==t.type||(n.focusout="close"),this._on(!0,i,n)},close:function(t){var i,n=this,s=e(t?t.currentTarget:this.element),o=this._find(s);o?(i=o.tooltip,o.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),o.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,(function(){n._removeTooltip(e(this))})),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),t&&"mouseleave"===t.type&&e.each(this.parents,(function(t,i){e(i.element).attr("title",i.title),delete n.parents[t]})),o.closing=!0,this._trigger("close",t,{tooltip:i}),o.hiding||(o.closing=!1))):s.removeData("ui-tooltip-open")},_tooltip:function(t){var i=e("<div>").attr("role","tooltip"),n=e("<div>").appendTo(i),s=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(t)),this.tooltips[s]={element:t,tooltip:i}},_find:function(e){var t=e.data("ui-tooltip-id");return t?this.tooltips[t]:null},_removeTooltip:function(e){clearInterval(this.delayedShow),e.remove(),delete this.tooltips[e.attr("id")]},_appendTo:function(e){var t=e.closest(".ui-front, dialog");return t.length||(t=this.document[0].body),t},_destroy:function(){var t=this;e.each(this.tooltips,(function(i,n){var s=e.Event("blur"),o=n.element;s.target=s.currentTarget=o[0],t.close(s,!0),e("#"+i).remove(),o.data("ui-tooltip-title")&&(o.attr("title")||o.attr("title",o.data("ui-tooltip-title")),o.removeData("ui-tooltip-title"))})),this.liveRegion.remove()}}),!1!==e.uiBackCompat&&e.widget("ui.tooltip",e.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var e=this._superApply(arguments);return this.options.tooltipClass&&e.tooltip.addClass(this.options.tooltipClass),e}}),e.ui.tooltip},void 0===(o=n.apply(t,s))||(e.exports=o)}()},9755:function(e,t){var i;!function(t,i){"use strict";"object"==typeof e.exports?e.exports=t.document?i(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return i(e)}:i(t)}("undefined"!=typeof window?window:this,(function(n,s){"use strict";var o=[],r=Object.getPrototypeOf,a=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},c=o.push,d=o.indexOf,h={},u=h.toString,p=h.hasOwnProperty,f=p.toString,g=f.call(Object),m={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},_=function(e){return null!=e&&e===e.window},y=n.document,b={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,i){var n,s,o=(i=i||y).createElement("script");if(o.text=e,t)for(n in b)(s=t[n]||t.getAttribute&&t.getAttribute(n))&&o.setAttribute(n,s);i.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?h[u.call(e)]||"object":typeof e}var k="3.6.0",C=function(e,t){return new C.fn.init(e,t)};function E(e){var t=!!e&&"length"in e&&e.length,i=x(e);return!v(e)&&!_(e)&&("array"===i||0===t||"number"==typeof t&&t>0&&t-1 in e)}C.fn=C.prototype={jquery:k,constructor:C,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=C.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return C.each(this,e)},map:function(e){return this.pushStack(C.map(this,(function(t,i){return e.call(t,i,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(C.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(C.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,i=+e+(e<0?t:0);return this.pushStack(i>=0&&i<t?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:o.sort,splice:o.splice},C.extend=C.fn.extend=function(){var e,t,i,n,s,o,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||v(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)n=e[t],"__proto__"!==t&&r!==n&&(c&&n&&(C.isPlainObject(n)||(s=Array.isArray(n)))?(i=r[t],o=s&&!Array.isArray(i)?[]:s||C.isPlainObject(i)?i:{},s=!1,r[t]=C.extend(c,o,n)):void 0!==n&&(r[t]=n));return r},C.extend({expando:"jQuery"+(k+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,i;return!(!e||"[object Object]"!==u.call(e)||(t=r(e))&&("function"!=typeof(i=p.call(t,"constructor")&&t.constructor)||f.call(i)!==g))},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,i){w(e,{nonce:t&&t.nonce},i)},each:function(e,t){var i,n=0;if(E(e))for(i=e.length;n<i&&!1!==t.call(e[n],n,e[n]);n++);else for(n in e)if(!1===t.call(e[n],n,e[n]))break;return e},makeArray:function(e,t){var i=t||[];return null!=e&&(E(Object(e))?C.merge(i,"string"==typeof e?[e]:e):c.call(i,e)),i},inArray:function(e,t,i){return null==t?-1:d.call(t,e,i)},merge:function(e,t){for(var i=+t.length,n=0,s=e.length;n<i;n++)e[s++]=t[n];return e.length=s,e},grep:function(e,t,i){for(var n=[],s=0,o=e.length,r=!i;s<o;s++)!t(e[s],s)!==r&&n.push(e[s]);return n},map:function(e,t,i){var n,s,o=0,r=[];if(E(e))for(n=e.length;o<n;o++)null!=(s=t(e[o],o,i))&&r.push(s);else for(o in e)null!=(s=t(e[o],o,i))&&r.push(s);return l(r)},guid:1,support:m}),"function"==typeof Symbol&&(C.fn[Symbol.iterator]=o[Symbol.iterator]),C.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){h["[object "+t+"]"]=t.toLowerCase()}));var S=function(e){var t,i,n,s,o,r,a,l,c,d,h,u,p,f,g,m,v,_,y,b="sizzle"+1*new Date,w=e.document,x=0,k=0,C=le(),E=le(),S=le(),T=le(),O=function(e,t){return e===t&&(h=!0),0},A={}.hasOwnProperty,D=[],P=D.pop,j=D.push,I=D.push,N=D.slice,L=function(e,t){for(var i=0,n=e.length;i<n;i++)if(e[i]===t)return i;return-1},H="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",M="[\\x20\\t\\r\\n\\f]",R="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",F="\\[[\\x20\\t\\r\\n\\f]*("+R+")(?:"+M+"*([*^$|!~]?=)"+M+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+R+"))|)"+M+"*\\]",Y=":("+R+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+F+")*)|.*)\\)|)",z=new RegExp(M+"+","g"),W=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g"),q=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),$=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),B=new RegExp(M+"|>"),U=new RegExp(Y),V=new RegExp("^"+R+"$"),X={ID:new RegExp("^#("+R+")"),CLASS:new RegExp("^\\.("+R+")"),TAG:new RegExp("^("+R+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+Y),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+H+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},K=/HTML$/i,J=/^(?:input|select|textarea|button)$/i,G=/^h\d$/i,Q=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),ie=function(e,t){var i="0x"+e.slice(1)-65536;return t||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},ne=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,se=function(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){u()},re=be((function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{I.apply(D=N.call(w.childNodes),w.childNodes),D[w.childNodes.length].nodeType}catch(e){I={apply:D.length?function(e,t){j.apply(e,N.call(t))}:function(e,t){for(var i=e.length,n=0;e[i++]=t[n++];);e.length=i-1}}}function ae(e,t,n,s){var o,a,c,d,h,f,v,_=t&&t.ownerDocument,w=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==w&&9!==w&&11!==w)return n;if(!s&&(u(t),t=t||p,g)){if(11!==w&&(h=Z.exec(e)))if(o=h[1]){if(9===w){if(!(c=t.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(_&&(c=_.getElementById(o))&&y(t,c)&&c.id===o)return n.push(c),n}else{if(h[2])return I.apply(n,t.getElementsByTagName(e)),n;if((o=h[3])&&i.getElementsByClassName&&t.getElementsByClassName)return I.apply(n,t.getElementsByClassName(o)),n}if(i.qsa&&!T[e+" "]&&(!m||!m.test(e))&&(1!==w||"object"!==t.nodeName.toLowerCase())){if(v=e,_=t,1===w&&(B.test(e)||$.test(e))){for((_=ee.test(e)&&ve(t.parentNode)||t)===t&&i.scope||((d=t.getAttribute("id"))?d=d.replace(ne,se):t.setAttribute("id",d=b)),a=(f=r(e)).length;a--;)f[a]=(d?"#"+d:":scope")+" "+ye(f[a]);v=f.join(",")}try{return I.apply(n,_.querySelectorAll(v)),n}catch(t){T(e,!0)}finally{d===b&&t.removeAttribute("id")}}}return l(e.replace(W,"$1"),t,n,s)}function le(){var e=[];return function t(i,s){return e.push(i+" ")>n.cacheLength&&delete t[e.shift()],t[i+" "]=s}}function ce(e){return e[b]=!0,e}function de(e){var t=p.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function he(e,t){for(var i=e.split("|"),s=i.length;s--;)n.attrHandle[i[s]]=t}function ue(e,t){var i=t&&e,n=i&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===t)return-1;return e?1:-1}function pe(e){return function(t){return"input"===t.nodeName.toLowerCase()&&t.type===e}}function fe(e){return function(t){var i=t.nodeName.toLowerCase();return("input"===i||"button"===i)&&t.type===e}}function ge(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&re(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function me(e){return ce((function(t){return t=+t,ce((function(i,n){for(var s,o=e([],i.length,t),r=o.length;r--;)i[s=o[r]]&&(i[s]=!(n[s]=i[s]))}))}))}function ve(e){return e&&void 0!==e.getElementsByTagName&&e}for(t in i=ae.support={},o=ae.isXML=function(e){var t=e&&e.namespaceURI,i=e&&(e.ownerDocument||e).documentElement;return!K.test(t||i&&i.nodeName||"HTML")},u=ae.setDocument=function(e){var t,s,r=e?e.ownerDocument||e:w;return r!=p&&9===r.nodeType&&r.documentElement?(f=(p=r).documentElement,g=!o(p),w!=p&&(s=p.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",oe,!1):s.attachEvent&&s.attachEvent("onunload",oe)),i.scope=de((function(e){return f.appendChild(e).appendChild(p.createElement("div")),void 0!==e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length})),i.attributes=de((function(e){return e.className="i",!e.getAttribute("className")})),i.getElementsByTagName=de((function(e){return e.appendChild(p.createComment("")),!e.getElementsByTagName("*").length})),i.getElementsByClassName=Q.test(p.getElementsByClassName),i.getById=de((function(e){return f.appendChild(e).id=b,!p.getElementsByName||!p.getElementsByName(b).length})),i.getById?(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){return e.getAttribute("id")===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var i=t.getElementById(e);return i?[i]:[]}}):(n.filter.ID=function(e){var t=e.replace(te,ie);return function(e){var i=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return i&&i.value===t}},n.find.ID=function(e,t){if(void 0!==t.getElementById&&g){var i,n,s,o=t.getElementById(e);if(o){if((i=o.getAttributeNode("id"))&&i.value===e)return[o];for(s=t.getElementsByName(e),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===e)return[o]}return[]}}),n.find.TAG=i.getElementsByTagName?function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):i.qsa?t.querySelectorAll(e):void 0}:function(e,t){var i,n=[],s=0,o=t.getElementsByTagName(e);if("*"===e){for(;i=o[s++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(e,t){if(void 0!==t.getElementsByClassName&&g)return t.getElementsByClassName(e)},v=[],m=[],(i.qsa=Q.test(p.querySelectorAll))&&(de((function(e){var t;f.appendChild(e).innerHTML="<a id='"+b+"'></a><select id='"+b+"-\r\\' msallowcapture=''><option selected=''></option></select>",e.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll("[selected]").length||m.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+H+")"),e.querySelectorAll("[id~="+b+"-]").length||m.push("~="),(t=p.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||m.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")"),e.querySelectorAll(":checked").length||m.push(":checked"),e.querySelectorAll("a#"+b+"+*").length||m.push(".#.+[+~]"),e.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),de((function(e){e.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var t=p.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&m.push("name[\\x20\\t\\r\\n\\f]*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),f.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),m.push(",.*:")}))),(i.matchesSelector=Q.test(_=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&de((function(e){i.disconnectedMatch=_.call(e,"*"),_.call(e,"[s!='']:x"),v.push("!=",Y)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.join("|")),t=Q.test(f.compareDocumentPosition),y=t||Q.test(f.contains)?function(e,t){var i=9===e.nodeType?e.documentElement:e,n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))}:function(e,t){if(t)for(;t=t.parentNode;)if(t===e)return!0;return!1},O=t?function(e,t){if(e===t)return h=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!i.sortDetached&&t.compareDocumentPosition(e)===n?e==p||e.ownerDocument==w&&y(w,e)?-1:t==p||t.ownerDocument==w&&y(w,t)?1:d?L(d,e)-L(d,t):0:4&n?-1:1)}:function(e,t){if(e===t)return h=!0,0;var i,n=0,s=e.parentNode,o=t.parentNode,r=[e],a=[t];if(!s||!o)return e==p?-1:t==p?1:s?-1:o?1:d?L(d,e)-L(d,t):0;if(s===o)return ue(e,t);for(i=e;i=i.parentNode;)r.unshift(i);for(i=t;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?ue(r[n],a[n]):r[n]==w?-1:a[n]==w?1:0},p):p},ae.matches=function(e,t){return ae(e,null,null,t)},ae.matchesSelector=function(e,t){if(u(e),i.matchesSelector&&g&&!T[t+" "]&&(!v||!v.test(t))&&(!m||!m.test(t)))try{var n=_.call(e,t);if(n||i.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){T(t,!0)}return ae(t,p,null,[e]).length>0},ae.contains=function(e,t){return(e.ownerDocument||e)!=p&&u(e),y(e,t)},ae.attr=function(e,t){(e.ownerDocument||e)!=p&&u(e);var s=n.attrHandle[t.toLowerCase()],o=s&&A.call(n.attrHandle,t.toLowerCase())?s(e,t,!g):void 0;return void 0!==o?o:i.attributes||!g?e.getAttribute(t):(o=e.getAttributeNode(t))&&o.specified?o.value:null},ae.escape=function(e){return(e+"").replace(ne,se)},ae.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},ae.uniqueSort=function(e){var t,n=[],s=0,o=0;if(h=!i.detectDuplicates,d=!i.sortStable&&e.slice(0),e.sort(O),h){for(;t=e[o++];)t===e[o]&&(s=n.push(o));for(;s--;)e.splice(n[s],1)}return d=null,e},s=ae.getText=function(e){var t,i="",n=0,o=e.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof e.textContent)return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)i+=s(e)}else if(3===o||4===o)return e.nodeValue}else for(;t=e[n++];)i+=s(t);return i},n=ae.selectors={cacheLength:50,createPseudo:ce,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ie),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ie),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||ae.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&ae.error(e[0]),e},PSEUDO:function(e){var t,i=!e[6]&&e[2];return X.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":i&&U.test(i)&&(t=r(i,!0))&&(t=i.indexOf(")",i.length-t)-i.length)&&(e[0]=e[0].slice(0,t),e[2]=i.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ie).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=C[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+M+"|$)"))&&C(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,i){return function(n){var s=ae.attr(n,e);return null==s?"!="===t:!t||(s+="","="===t?s===i:"!="===t?s!==i:"^="===t?i&&0===s.indexOf(i):"*="===t?i&&s.indexOf(i)>-1:"$="===t?i&&s.slice(-i.length)===i:"~="===t?(" "+s.replace(z," ")+" ").indexOf(i)>-1:"|="===t&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(e,t,i,n,s){var o="nth"!==e.slice(0,3),r="last"!==e.slice(-4),a="of-type"===t;return 1===n&&0===s?function(e){return!!e.parentNode}:function(t,i,l){var c,d,h,u,p,f,g=o!==r?"nextSibling":"previousSibling",m=t.parentNode,v=a&&t.nodeName.toLowerCase(),_=!l&&!a,y=!1;if(m){if(o){for(;g;){for(u=t;u=u[g];)if(a?u.nodeName.toLowerCase()===v:1===u.nodeType)return!1;f=g="only"===e&&!f&&"nextSibling"}return!0}if(f=[r?m.firstChild:m.lastChild],r&&_){for(y=(p=(c=(d=(h=(u=m)[b]||(u[b]={}))[u.uniqueID]||(h[u.uniqueID]={}))[e]||[])[0]===x&&c[1])&&c[2],u=p&&m.childNodes[p];u=++p&&u&&u[g]||(y=p=0)||f.pop();)if(1===u.nodeType&&++y&&u===t){d[e]=[x,p,y];break}}else if(_&&(y=p=(c=(d=(h=(u=t)[b]||(u[b]={}))[u.uniqueID]||(h[u.uniqueID]={}))[e]||[])[0]===x&&c[1]),!1===y)for(;(u=++p&&u&&u[g]||(y=p=0)||f.pop())&&((a?u.nodeName.toLowerCase()!==v:1!==u.nodeType)||!++y||(_&&((d=(h=u[b]||(u[b]={}))[u.uniqueID]||(h[u.uniqueID]={}))[e]=[x,y]),u!==t)););return(y-=s)===n||y%n==0&&y/n>=0}}},PSEUDO:function(e,t){var i,s=n.pseudos[e]||n.setFilters[e.toLowerCase()]||ae.error("unsupported pseudo: "+e);return s[b]?s(t):s.length>1?(i=[e,e,"",t],n.setFilters.hasOwnProperty(e.toLowerCase())?ce((function(e,i){for(var n,o=s(e,t),r=o.length;r--;)e[n=L(e,o[r])]=!(i[n]=o[r])})):function(e){return s(e,0,i)}):s}},pseudos:{not:ce((function(e){var t=[],i=[],n=a(e.replace(W,"$1"));return n[b]?ce((function(e,t,i,s){for(var o,r=n(e,null,s,[]),a=e.length;a--;)(o=r[a])&&(e[a]=!(t[a]=o))})):function(e,s,o){return t[0]=e,n(t,null,o,i),t[0]=null,!i.pop()}})),has:ce((function(e){return function(t){return ae(e,t).length>0}})),contains:ce((function(e){return e=e.replace(te,ie),function(t){return(t.textContent||s(t)).indexOf(e)>-1}})),lang:ce((function(e){return V.test(e||"")||ae.error("unsupported lang: "+e),e=e.replace(te,ie).toLowerCase(),function(t){var i;do{if(i=g?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(i=i.toLowerCase())===e||0===i.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(t){var i=e.location&&e.location.hash;return i&&i.slice(1)===t.id},root:function(e){return e===f},focus:function(e){return e===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:ge(!1),disabled:ge(!0),checked:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&!!e.checked||"option"===t&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!n.pseudos.empty(e)},header:function(e){return G.test(e.nodeName)},input:function(e){return J.test(e.nodeName)},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},text:function(e){var t;return"input"===e.nodeName.toLowerCase()&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:me((function(){return[0]})),last:me((function(e,t){return[t-1]})),eq:me((function(e,t,i){return[i<0?i+t:i]})),even:me((function(e,t){for(var i=0;i<t;i+=2)e.push(i);return e})),odd:me((function(e,t){for(var i=1;i<t;i+=2)e.push(i);return e})),lt:me((function(e,t,i){for(var n=i<0?i+t:i>t?t:i;--n>=0;)e.push(n);return e})),gt:me((function(e,t,i){for(var n=i<0?i+t:i;++n<t;)e.push(n);return e}))}},n.pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[t]=pe(t);for(t in{submit:!0,reset:!0})n.pseudos[t]=fe(t);function _e(){}function ye(e){for(var t=0,i=e.length,n="";t<i;t++)n+=e[t].value;return n}function be(e,t,i){var n=t.dir,s=t.next,o=s||n,r=i&&"parentNode"===o,a=k++;return t.first?function(t,i,s){for(;t=t[n];)if(1===t.nodeType||r)return e(t,i,s);return!1}:function(t,i,l){var c,d,h,u=[x,a];if(l){for(;t=t[n];)if((1===t.nodeType||r)&&e(t,i,l))return!0}else for(;t=t[n];)if(1===t.nodeType||r)if(d=(h=t[b]||(t[b]={}))[t.uniqueID]||(h[t.uniqueID]={}),s&&s===t.nodeName.toLowerCase())t=t[n]||t;else{if((c=d[o])&&c[0]===x&&c[1]===a)return u[2]=c[2];if(d[o]=u,u[2]=e(t,i,l))return!0}return!1}}function we(e){return e.length>1?function(t,i,n){for(var s=e.length;s--;)if(!e[s](t,i,n))return!1;return!0}:e[0]}function xe(e,t,i,n,s){for(var o,r=[],a=0,l=e.length,c=null!=t;a<l;a++)(o=e[a])&&(i&&!i(o,n,s)||(r.push(o),c&&t.push(a)));return r}function ke(e,t,i,n,s,o){return n&&!n[b]&&(n=ke(n)),s&&!s[b]&&(s=ke(s,o)),ce((function(o,r,a,l){var c,d,h,u=[],p=[],f=r.length,g=o||function(e,t,i){for(var n=0,s=t.length;n<s;n++)ae(e,t[n],i);return i}(t||"*",a.nodeType?[a]:a,[]),m=!e||!o&&t?g:xe(g,u,e,a,l),v=i?s||(o?e:f||n)?[]:r:m;if(i&&i(m,v,a,l),n)for(c=xe(v,p),n(c,[],a,l),d=c.length;d--;)(h=c[d])&&(v[p[d]]=!(m[p[d]]=h));if(o){if(s||e){if(s){for(c=[],d=v.length;d--;)(h=v[d])&&c.push(m[d]=h);s(null,v=[],c,l)}for(d=v.length;d--;)(h=v[d])&&(c=s?L(o,h):u[d])>-1&&(o[c]=!(r[c]=h))}}else v=xe(v===r?v.splice(f,v.length):v),s?s(null,r,v,l):I.apply(r,v)}))}function Ce(e){for(var t,i,s,o=e.length,r=n.relative[e[0].type],a=r||n.relative[" "],l=r?1:0,d=be((function(e){return e===t}),a,!0),h=be((function(e){return L(t,e)>-1}),a,!0),u=[function(e,i,n){var s=!r&&(n||i!==c)||((t=i).nodeType?d(e,i,n):h(e,i,n));return t=null,s}];l<o;l++)if(i=n.relative[e[l].type])u=[be(we(u),i)];else{if((i=n.filter[e[l].type].apply(null,e[l].matches))[b]){for(s=++l;s<o&&!n.relative[e[s].type];s++);return ke(l>1&&we(u),l>1&&ye(e.slice(0,l-1).concat({value:" "===e[l-2].type?"*":""})).replace(W,"$1"),i,l<s&&Ce(e.slice(l,s)),s<o&&Ce(e=e.slice(s)),s<o&&ye(e))}u.push(i)}return we(u)}return _e.prototype=n.filters=n.pseudos,n.setFilters=new _e,r=ae.tokenize=function(e,t){var i,s,o,r,a,l,c,d=E[e+" "];if(d)return t?0:d.slice(0);for(a=e,l=[],c=n.preFilter;a;){for(r in i&&!(s=q.exec(a))||(s&&(a=a.slice(s[0].length)||a),l.push(o=[])),i=!1,(s=$.exec(a))&&(i=s.shift(),o.push({value:i,type:s[0].replace(W," ")}),a=a.slice(i.length)),n.filter)!(s=X[r].exec(a))||c[r]&&!(s=c[r](s))||(i=s.shift(),o.push({value:i,type:r,matches:s}),a=a.slice(i.length));if(!i)break}return t?a.length:a?ae.error(e):E(e,l).slice(0)},a=ae.compile=function(e,t){var i,s=[],o=[],a=S[e+" "];if(!a){for(t||(t=r(e)),i=t.length;i--;)(a=Ce(t[i]))[b]?s.push(a):o.push(a);a=S(e,function(e,t){var i=t.length>0,s=e.length>0,o=function(o,r,a,l,d){var h,f,m,v=0,_="0",y=o&&[],b=[],w=c,k=o||s&&n.find.TAG("*",d),C=x+=null==w?1:Math.random()||.1,E=k.length;for(d&&(c=r==p||r||d);_!==E&&null!=(h=k[_]);_++){if(s&&h){for(f=0,r||h.ownerDocument==p||(u(h),a=!g);m=e[f++];)if(m(h,r||p,a)){l.push(h);break}d&&(x=C)}i&&((h=!m&&h)&&v--,o&&y.push(h))}if(v+=_,i&&_!==v){for(f=0;m=t[f++];)m(y,b,r,a);if(o){if(v>0)for(;_--;)y[_]||b[_]||(b[_]=P.call(l));b=xe(b)}I.apply(l,b),d&&!o&&b.length>0&&v+t.length>1&&ae.uniqueSort(l)}return d&&(x=C,c=w),y};return i?ce(o):o}(o,s)),a.selector=e}return a},l=ae.select=function(e,t,i,s){var o,l,c,d,h,u="function"==typeof e&&e,p=!s&&r(e=u.selector||e);if(i=i||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===t.nodeType&&g&&n.relative[l[1].type]){if(!(t=(n.find.ID(c.matches[0].replace(te,ie),t)||[])[0]))return i;u&&(t=t.parentNode),e=e.slice(l.shift().value.length)}for(o=X.needsContext.test(e)?0:l.length;o--&&(c=l[o],!n.relative[d=c.type]);)if((h=n.find[d])&&(s=h(c.matches[0].replace(te,ie),ee.test(l[0].type)&&ve(t.parentNode)||t))){if(l.splice(o,1),!(e=s.length&&ye(l)))return I.apply(i,s),i;break}}return(u||a(e,p))(s,t,!g,i,!t||ee.test(e)&&ve(t.parentNode)||t),i},i.sortStable=b.split("").sort(O).join("")===b,i.detectDuplicates=!!h,u(),i.sortDetached=de((function(e){return 1&e.compareDocumentPosition(p.createElement("fieldset"))})),de((function(e){return e.innerHTML="<a href='#'></a>","#"===e.firstChild.getAttribute("href")}))||he("type|href|height|width",(function(e,t,i){if(!i)return e.getAttribute(t,"type"===t.toLowerCase()?1:2)})),i.attributes&&de((function(e){return e.innerHTML="<input/>",e.firstChild.setAttribute("value",""),""===e.firstChild.getAttribute("value")}))||he("value",(function(e,t,i){if(!i&&"input"===e.nodeName.toLowerCase())return e.defaultValue})),de((function(e){return null==e.getAttribute("disabled")}))||he(H,(function(e,t,i){var n;if(!i)return!0===e[t]?t.toLowerCase():(n=e.getAttributeNode(t))&&n.specified?n.value:null})),ae}(n);C.find=S,C.expr=S.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=S.uniqueSort,C.text=S.getText,C.isXMLDoc=S.isXML,C.contains=S.contains,C.escapeSelector=S.escape;var T=function(e,t,i){for(var n=[],s=void 0!==i;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(s&&C(e).is(i))break;n.push(e)}return n},O=function(e,t){for(var i=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&i.push(e);return i},A=C.expr.match.needsContext;function D(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}var P=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function j(e,t,i){return v(t)?C.grep(e,(function(e,n){return!!t.call(e,n,e)!==i})):t.nodeType?C.grep(e,(function(e){return e===t!==i})):"string"!=typeof t?C.grep(e,(function(e){return d.call(t,e)>-1!==i})):C.filter(t,e,i)}C.filter=function(e,t,i){var n=t[0];return i&&(e=":not("+e+")"),1===t.length&&1===n.nodeType?C.find.matchesSelector(n,e)?[n]:[]:C.find.matches(e,C.grep(t,(function(e){return 1===e.nodeType})))},C.fn.extend({find:function(e){var t,i,n=this.length,s=this;if("string"!=typeof e)return this.pushStack(C(e).filter((function(){for(t=0;t<n;t++)if(C.contains(s[t],this))return!0})));for(i=this.pushStack([]),t=0;t<n;t++)C.find(e,s[t],i);return n>1?C.uniqueSort(i):i},filter:function(e){return this.pushStack(j(this,e||[],!1))},not:function(e){return this.pushStack(j(this,e||[],!0))},is:function(e){return!!j(this,"string"==typeof e&&A.test(e)?C(e):e||[],!1).length}});var I,N=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(e,t,i){var n,s;if(!e)return this;if(i=i||I,"string"==typeof e){if(!(n="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:N.exec(e))||!n[1]&&t)return!t||t.jquery?(t||i).find(e):this.constructor(t).find(e);if(n[1]){if(t=t instanceof C?t[0]:t,C.merge(this,C.parseHTML(n[1],t&&t.nodeType?t.ownerDocument||t:y,!0)),P.test(n[1])&&C.isPlainObject(t))for(n in t)v(this[n])?this[n](t[n]):this.attr(n,t[n]);return this}return(s=y.getElementById(n[2]))&&(this[0]=s,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==i.ready?i.ready(e):e(C):C.makeArray(e,this)}).prototype=C.fn,I=C(y);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function M(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}C.fn.extend({has:function(e){var t=C(e,this),i=t.length;return this.filter((function(){for(var e=0;e<i;e++)if(C.contains(this,t[e]))return!0}))},closest:function(e,t){var i,n=0,s=this.length,o=[],r="string"!=typeof e&&C(e);if(!A.test(e))for(;n<s;n++)for(i=this[n];i&&i!==t;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&C.find.matchesSelector(i,e))){o.push(i);break}return this.pushStack(o.length>1?C.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?d.call(C(e),this[0]):d.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),C.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return T(e,"parentNode")},parentsUntil:function(e,t,i){return T(e,"parentNode",i)},next:function(e){return M(e,"nextSibling")},prev:function(e){return M(e,"previousSibling")},nextAll:function(e){return T(e,"nextSibling")},prevAll:function(e){return T(e,"previousSibling")},nextUntil:function(e,t,i){return T(e,"nextSibling",i)},prevUntil:function(e,t,i){return T(e,"previousSibling",i)},siblings:function(e){return O((e.parentNode||{}).firstChild,e)},children:function(e){return O(e.firstChild)},contents:function(e){return null!=e.contentDocument&&r(e.contentDocument)?e.contentDocument:(D(e,"template")&&(e=e.content||e),C.merge([],e.childNodes))}},(function(e,t){C.fn[e]=function(i,n){var s=C.map(this,t,i);return"Until"!==e.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=C.filter(n,s)),this.length>1&&(H[e]||C.uniqueSort(s),L.test(e)&&s.reverse()),this.pushStack(s)}}));var R=/[^\x20\t\r\n\f]+/g;function F(e){return e}function Y(e){throw e}function z(e,t,i,n){var s;try{e&&v(s=e.promise)?s.call(e).done(t).fail(i):e&&v(s=e.then)?s.call(e,t,i):t.apply(void 0,[e].slice(n))}catch(e){i.apply(void 0,[e])}}C.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return C.each(e.match(R)||[],(function(e,i){t[i]=!0})),t}(e):C.extend({},e);var t,i,n,s,o=[],r=[],a=-1,l=function(){for(s=s||e.once,n=t=!0;r.length;a=-1)for(i=r.shift();++a<o.length;)!1===o[a].apply(i[0],i[1])&&e.stopOnFalse&&(a=o.length,i=!1);e.memory||(i=!1),t=!1,s&&(o=i?[]:"")},c={add:function(){return o&&(i&&!t&&(a=o.length-1,r.push(i)),function t(i){C.each(i,(function(i,n){v(n)?e.unique&&c.has(n)||o.push(n):n&&n.length&&"string"!==x(n)&&t(n)}))}(arguments),i&&!t&&l()),this},remove:function(){return C.each(arguments,(function(e,t){for(var i;(i=C.inArray(t,o,i))>-1;)o.splice(i,1),i<=a&&a--})),this},has:function(e){return e?C.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=r=[],o=i="",this},disabled:function(){return!o},lock:function(){return s=r=[],i||t||(o=i=""),this},locked:function(){return!!s},fireWith:function(e,i){return s||(i=[e,(i=i||[]).slice?i.slice():i],r.push(i),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},C.extend({Deferred:function(e){var t=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],i="pending",s={state:function(){return i},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return s.then(null,e)},pipe:function(){var e=arguments;return C.Deferred((function(i){C.each(t,(function(t,n){var s=v(e[n[4]])&&e[n[4]];o[n[1]]((function(){var e=s&&s.apply(this,arguments);e&&v(e.promise)?e.promise().progress(i.notify).done(i.resolve).fail(i.reject):i[n[0]+"With"](this,s?[e]:arguments)}))})),e=null})).promise()},then:function(e,i,s){var o=0;function r(e,t,i,s){return function(){var a=this,l=arguments,c=function(){var n,c;if(!(e<o)){if((n=i.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");c=n&&("object"==typeof n||"function"==typeof n)&&n.then,v(c)?s?c.call(n,r(o,t,F,s),r(o,t,Y,s)):(o++,c.call(n,r(o,t,F,s),r(o,t,Y,s),r(o,t,F,t.notifyWith))):(i!==F&&(a=void 0,l=[n]),(s||t.resolveWith)(a,l))}},d=s?c:function(){try{c()}catch(n){C.Deferred.exceptionHook&&C.Deferred.exceptionHook(n,d.stackTrace),e+1>=o&&(i!==Y&&(a=void 0,l=[n]),t.rejectWith(a,l))}};e?d():(C.Deferred.getStackHook&&(d.stackTrace=C.Deferred.getStackHook()),n.setTimeout(d))}}return C.Deferred((function(n){t[0][3].add(r(0,n,v(s)?s:F,n.notifyWith)),t[1][3].add(r(0,n,v(e)?e:F)),t[2][3].add(r(0,n,v(i)?i:Y))})).promise()},promise:function(e){return null!=e?C.extend(e,s):s}},o={};return C.each(t,(function(e,n){var r=n[2],a=n[5];s[n[1]]=r.add,a&&r.add((function(){i=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),r.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=r.fireWith})),s.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,i=t,n=Array(i),s=a.call(arguments),o=C.Deferred(),r=function(e){return function(i){n[e]=this,s[e]=arguments.length>1?a.call(arguments):i,--t||o.resolveWith(n,s)}};if(t<=1&&(z(e,o.done(r(i)).resolve,o.reject,!t),"pending"===o.state()||v(s[i]&&s[i].then)))return o.then();for(;i--;)z(s[i],r(i),o.reject);return o.promise()}});var W=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(e,t){n.console&&n.console.warn&&e&&W.test(e.name)&&n.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},C.readyException=function(e){n.setTimeout((function(){throw e}))};var q=C.Deferred();function $(){y.removeEventListener("DOMContentLoaded",$),n.removeEventListener("load",$),C.ready()}C.fn.ready=function(e){return q.then(e).catch((function(e){C.readyException(e)})),this},C.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==e&&--C.readyWait>0||q.resolveWith(y,[C]))}}),C.ready.then=q.then,"complete"===y.readyState||"loading"!==y.readyState&&!y.documentElement.doScroll?n.setTimeout(C.ready):(y.addEventListener("DOMContentLoaded",$),n.addEventListener("load",$));var B=function(e,t,i,n,s,o,r){var a=0,l=e.length,c=null==i;if("object"===x(i))for(a in s=!0,i)B(e,t,a,i[a],!0,o,r);else if(void 0!==n&&(s=!0,v(n)||(r=!0),c&&(r?(t.call(e,n),t=null):(c=t,t=function(e,t,i){return c.call(C(e),i)})),t))for(;a<l;a++)t(e[a],i,r?n:n.call(e[a],a,t(e[a],i)));return s?e:c?t.call(e):l?t(e[0],i):o},U=/^-ms-/,V=/-([a-z])/g;function X(e,t){return t.toUpperCase()}function K(e){return e.replace(U,"ms-").replace(V,X)}var J=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function G(){this.expando=C.expando+G.uid++}G.uid=1,G.prototype={cache:function(e){var t=e[this.expando];return t||(t={},J(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,i){var n,s=this.cache(e);if("string"==typeof t)s[K(t)]=i;else for(n in t)s[K(n)]=t[n];return s},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][K(t)]},access:function(e,t,i){return void 0===t||t&&"string"==typeof t&&void 0===i?this.get(e,t):(this.set(e,t,i),void 0!==i?i:t)},remove:function(e,t){var i,n=e[this.expando];if(void 0!==n){if(void 0!==t){i=(t=Array.isArray(t)?t.map(K):(t=K(t))in n?[t]:t.match(R)||[]).length;for(;i--;)delete n[t[i]]}(void 0===t||C.isEmptyObject(n))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!C.isEmptyObject(t)}};var Q=new G,Z=new G,ee=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,te=/[A-Z]/g;function ie(e,t,i){var n;if(void 0===i&&1===e.nodeType)if(n="data-"+t.replace(te,"-$&").toLowerCase(),"string"==typeof(i=e.getAttribute(n))){try{i=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ee.test(e)?JSON.parse(e):e)}(i)}catch(e){}Z.set(e,t,i)}else i=void 0;return i}C.extend({hasData:function(e){return Z.hasData(e)||Q.hasData(e)},data:function(e,t,i){return Z.access(e,t,i)},removeData:function(e,t){Z.remove(e,t)},_data:function(e,t,i){return Q.access(e,t,i)},_removeData:function(e,t){Q.remove(e,t)}}),C.fn.extend({data:function(e,t){var i,n,s,o=this[0],r=o&&o.attributes;if(void 0===e){if(this.length&&(s=Z.get(o),1===o.nodeType&&!Q.get(o,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&(n=K(n.slice(5)),ie(o,n,s[n]));Q.set(o,"hasDataAttrs",!0)}return s}return"object"==typeof e?this.each((function(){Z.set(this,e)})):B(this,(function(t){var i;if(o&&void 0===t)return void 0!==(i=Z.get(o,e))||void 0!==(i=ie(o,e))?i:void 0;this.each((function(){Z.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){Z.remove(this,e)}))}}),C.extend({queue:function(e,t,i){var n;if(e)return t=(t||"fx")+"queue",n=Q.get(e,t),i&&(!n||Array.isArray(i)?n=Q.access(e,t,C.makeArray(i)):n.push(i)),n||[]},dequeue:function(e,t){t=t||"fx";var i=C.queue(e,t),n=i.length,s=i.shift(),o=C._queueHooks(e,t);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===t&&i.unshift("inprogress"),delete o.stop,s.call(e,(function(){C.dequeue(e,t)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(e,t){var i=t+"queueHooks";return Q.get(e,i)||Q.access(e,i,{empty:C.Callbacks("once memory").add((function(){Q.remove(e,[t+"queue",i])}))})}}),C.fn.extend({queue:function(e,t){var i=2;return"string"!=typeof e&&(t=e,e="fx",i--),arguments.length<i?C.queue(this[0],e):void 0===t?this:this.each((function(){var i=C.queue(this,e,t);C._queueHooks(this,e),"fx"===e&&"inprogress"!==i[0]&&C.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){C.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var i,n=1,s=C.Deferred(),o=this,r=this.length,a=function(){--n||s.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";r--;)(i=Q.get(o[r],e+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(t)}});var ne=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,se=new RegExp("^(?:([+-])=|)("+ne+")([a-z%]*)$","i"),oe=["Top","Right","Bottom","Left"],re=y.documentElement,ae=function(e){return C.contains(e.ownerDocument,e)},le={composed:!0};re.getRootNode&&(ae=function(e){return C.contains(e.ownerDocument,e)||e.getRootNode(le)===e.ownerDocument});var ce=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ae(e)&&"none"===C.css(e,"display")};function de(e,t,i,n){var s,o,r=20,a=n?function(){return n.cur()}:function(){return C.css(e,t,"")},l=a(),c=i&&i[3]||(C.cssNumber[t]?"":"px"),d=e.nodeType&&(C.cssNumber[t]||"px"!==c&&+l)&&se.exec(C.css(e,t));if(d&&d[3]!==c){for(l/=2,c=c||d[3],d=+l||1;r--;)C.style(e,t,d+c),(1-o)*(1-(o=a()/l||.5))<=0&&(r=0),d/=o;d*=2,C.style(e,t,d+c),i=i||[]}return i&&(d=+d||+l||0,s=i[1]?d+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=d,n.end=s)),s}var he={};function ue(e){var t,i=e.ownerDocument,n=e.nodeName,s=he[n];return s||(t=i.body.appendChild(i.createElement(n)),s=C.css(t,"display"),t.parentNode.removeChild(t),"none"===s&&(s="block"),he[n]=s,s)}function pe(e,t){for(var i,n,s=[],o=0,r=e.length;o<r;o++)(n=e[o]).style&&(i=n.style.display,t?("none"===i&&(s[o]=Q.get(n,"display")||null,s[o]||(n.style.display="")),""===n.style.display&&ce(n)&&(s[o]=ue(n))):"none"!==i&&(s[o]="none",Q.set(n,"display",i)));for(o=0;o<r;o++)null!=s[o]&&(e[o].style.display=s[o]);return e}C.fn.extend({show:function(){return pe(this,!0)},hide:function(){return pe(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ce(this)?C(this).show():C(this).hide()}))}});var fe,ge,me=/^(?:checkbox|radio)$/i,ve=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,_e=/^$|^module$|\/(?:java|ecma)script/i;fe=y.createDocumentFragment().appendChild(y.createElement("div")),(ge=y.createElement("input")).setAttribute("type","radio"),ge.setAttribute("checked","checked"),ge.setAttribute("name","t"),fe.appendChild(ge),m.checkClone=fe.cloneNode(!0).cloneNode(!0).lastChild.checked,fe.innerHTML="<textarea>x</textarea>",m.noCloneChecked=!!fe.cloneNode(!0).lastChild.defaultValue,fe.innerHTML="<option></option>",m.option=!!fe.lastChild;var ye={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function be(e,t){var i;return i=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&D(e,t)?C.merge([e],i):i}function we(e,t){for(var i=0,n=e.length;i<n;i++)Q.set(e[i],"globalEval",!t||Q.get(t[i],"globalEval"))}ye.tbody=ye.tfoot=ye.colgroup=ye.caption=ye.thead,ye.th=ye.td,m.option||(ye.optgroup=ye.option=[1,"<select multiple='multiple'>","</select>"]);var xe=/<|&#?\w+;/;function ke(e,t,i,n,s){for(var o,r,a,l,c,d,h=t.createDocumentFragment(),u=[],p=0,f=e.length;p<f;p++)if((o=e[p])||0===o)if("object"===x(o))C.merge(u,o.nodeType?[o]:o);else if(xe.test(o)){for(r=r||h.appendChild(t.createElement("div")),a=(ve.exec(o)||["",""])[1].toLowerCase(),l=ye[a]||ye._default,r.innerHTML=l[1]+C.htmlPrefilter(o)+l[2],d=l[0];d--;)r=r.lastChild;C.merge(u,r.childNodes),(r=h.firstChild).textContent=""}else u.push(t.createTextNode(o));for(h.textContent="",p=0;o=u[p++];)if(n&&C.inArray(o,n)>-1)s&&s.push(o);else if(c=ae(o),r=be(h.appendChild(o),"script"),c&&we(r),i)for(d=0;o=r[d++];)_e.test(o.type||"")&&i.push(o);return h}var Ce=/^([^.]*)(?:\.(.+)|)/;function Ee(){return!0}function Se(){return!1}function Te(e,t){return e===function(){try{return y.activeElement}catch(e){}}()==("focus"===t)}function Oe(e,t,i,n,s,o){var r,a;if("object"==typeof t){for(a in"string"!=typeof i&&(n=n||i,i=void 0),t)Oe(e,a,i,n,t[a],o);return e}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=Se;else if(!s)return e;return 1===o&&(r=s,s=function(e){return C().off(e),r.apply(this,arguments)},s.guid=r.guid||(r.guid=C.guid++)),e.each((function(){C.event.add(this,t,s,n,i)}))}function Ae(e,t,i){i?(Q.set(e,t,!1),C.event.add(e,t,{namespace:!1,handler:function(e){var n,s,o=Q.get(this,t);if(1&e.isTrigger&&this[t]){if(o.length)(C.event.special[t]||{}).delegateType&&e.stopPropagation();else if(o=a.call(arguments),Q.set(this,t,o),n=i(this,t),this[t](),o!==(s=Q.get(this,t))||n?Q.set(this,t,!1):s={},o!==s)return e.stopImmediatePropagation(),e.preventDefault(),s&&s.value}else o.length&&(Q.set(this,t,{value:C.event.trigger(C.extend(o[0],C.Event.prototype),o.slice(1),this)}),e.stopImmediatePropagation())}})):void 0===Q.get(e,t)&&C.event.add(e,t,Ee)}C.event={global:{},add:function(e,t,i,n,s){var o,r,a,l,c,d,h,u,p,f,g,m=Q.get(e);if(J(e))for(i.handler&&(i=(o=i).handler,s=o.selector),s&&C.find.matchesSelector(re,s),i.guid||(i.guid=C.guid++),(l=m.events)||(l=m.events=Object.create(null)),(r=m.handle)||(r=m.handle=function(t){return void 0!==C&&C.event.triggered!==t.type?C.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(R)||[""]).length;c--;)p=g=(a=Ce.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(h=C.event.special[p]||{},p=(s?h.delegateType:h.bindType)||p,h=C.event.special[p]||{},d=C.extend({type:p,origType:g,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&C.expr.match.needsContext.test(s),namespace:f.join(".")},o),(u=l[p])||((u=l[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(e,n,f,r)||e.addEventListener&&e.addEventListener(p,r)),h.add&&(h.add.call(e,d),d.handler.guid||(d.handler.guid=i.guid)),s?u.splice(u.delegateCount++,0,d):u.push(d),C.event.global[p]=!0)},remove:function(e,t,i,n,s){var o,r,a,l,c,d,h,u,p,f,g,m=Q.hasData(e)&&Q.get(e);if(m&&(l=m.events)){for(c=(t=(t||"").match(R)||[""]).length;c--;)if(p=g=(a=Ce.exec(t[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(h=C.event.special[p]||{},u=l[p=(n?h.delegateType:h.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=u.length;o--;)d=u[o],!s&&g!==d.origType||i&&i.guid!==d.guid||a&&!a.test(d.namespace)||n&&n!==d.selector&&("**"!==n||!d.selector)||(u.splice(o,1),d.selector&&u.delegateCount--,h.remove&&h.remove.call(e,d));r&&!u.length&&(h.teardown&&!1!==h.teardown.call(e,f,m.handle)||C.removeEvent(e,p,m.handle),delete l[p])}else for(p in l)C.event.remove(e,p+t[c],i,n,!0);C.isEmptyObject(l)&&Q.remove(e,"handle events")}},dispatch:function(e){var t,i,n,s,o,r,a=new Array(arguments.length),l=C.event.fix(e),c=(Q.get(this,"events")||Object.create(null))[l.type]||[],d=C.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!d.preDispatch||!1!==d.preDispatch.call(this,l)){for(r=C.event.handlers.call(this,l,c),t=0;(s=r[t++])&&!l.isPropagationStopped();)for(l.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(n=((C.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,a))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return d.postDispatch&&d.postDispatch.call(this,l),l.result}},handlers:function(e,t){var i,n,s,o,r,a=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(o=[],r={},i=0;i<l;i++)void 0===r[s=(n=t[i]).selector+" "]&&(r[s]=n.needsContext?C(s,this).index(c)>-1:C.find(s,this,null,[c]).length),r[s]&&o.push(n);o.length&&a.push({elem:c,handlers:o})}return c=this,l<t.length&&a.push({elem:c,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(C.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[C.expando]?e:new C.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return me.test(t.type)&&t.click&&D(t,"input")&&Ae(t,"click",Ee),!1},trigger:function(e){var t=this||e;return me.test(t.type)&&t.click&&D(t,"input")&&Ae(t,"click"),!0},_default:function(e){var t=e.target;return me.test(t.type)&&t.click&&D(t,"input")&&Q.get(t,"click")||D(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},C.removeEvent=function(e,t,i){e.removeEventListener&&e.removeEventListener(t,i)},C.Event=function(e,t){if(!(this instanceof C.Event))return new C.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Ee:Se,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&C.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[C.expando]=!0},C.Event.prototype={constructor:C.Event,isDefaultPrevented:Se,isPropagationStopped:Se,isImmediatePropagationStopped:Se,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Ee,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Ee,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Ee,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},C.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},C.event.addProp),C.each({focus:"focusin",blur:"focusout"},(function(e,t){C.event.special[e]={setup:function(){return Ae(this,e,Te),!1},trigger:function(){return Ae(this,e),!0},_default:function(){return!0},delegateType:t}})),C.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){C.event.special[e]={delegateType:t,bindType:t,handle:function(e){var i,n=this,s=e.relatedTarget,o=e.handleObj;return s&&(s===n||C.contains(n,s))||(e.type=o.origType,i=o.handler.apply(this,arguments),e.type=t),i}}})),C.fn.extend({on:function(e,t,i,n){return Oe(this,e,t,i,n)},one:function(e,t,i,n){return Oe(this,e,t,i,n,1)},off:function(e,t,i){var n,s;if(e&&e.preventDefault&&e.handleObj)return n=e.handleObj,C(e.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof e){for(s in e)this.off(s,t,e[s]);return this}return!1!==t&&"function"!=typeof t||(i=t,t=void 0),!1===i&&(i=Se),this.each((function(){C.event.remove(this,e,i,t)}))}});var De=/<script|<style|<link/i,Pe=/checked\s*(?:[^=]|=\s*.checked.)/i,je=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Ie(e,t){return D(e,"table")&&D(11!==t.nodeType?t:t.firstChild,"tr")&&C(e).children("tbody")[0]||e}function Ne(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function Le(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function He(e,t){var i,n,s,o,r,a;if(1===t.nodeType){if(Q.hasData(e)&&(a=Q.get(e).events))for(s in Q.remove(t,"handle events"),a)for(i=0,n=a[s].length;i<n;i++)C.event.add(t,s,a[s][i]);Z.hasData(e)&&(o=Z.access(e),r=C.extend({},o),Z.set(t,r))}}function Me(e,t){var i=t.nodeName.toLowerCase();"input"===i&&me.test(e.type)?t.checked=e.checked:"input"!==i&&"textarea"!==i||(t.defaultValue=e.defaultValue)}function Re(e,t,i,n){t=l(t);var s,o,r,a,c,d,h=0,u=e.length,p=u-1,f=t[0],g=v(f);if(g||u>1&&"string"==typeof f&&!m.checkClone&&Pe.test(f))return e.each((function(s){var o=e.eq(s);g&&(t[0]=f.call(this,s,o.html())),Re(o,t,i,n)}));if(u&&(o=(s=ke(t,e[0].ownerDocument,!1,e,n)).firstChild,1===s.childNodes.length&&(s=o),o||n)){for(a=(r=C.map(be(s,"script"),Ne)).length;h<u;h++)c=s,h!==p&&(c=C.clone(c,!0,!0),a&&C.merge(r,be(c,"script"))),i.call(e[h],c,h);if(a)for(d=r[r.length-1].ownerDocument,C.map(r,Le),h=0;h<a;h++)c=r[h],_e.test(c.type||"")&&!Q.access(c,"globalEval")&&C.contains(d,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?C._evalUrl&&!c.noModule&&C._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},d):w(c.textContent.replace(je,""),c,d))}return e}function Fe(e,t,i){for(var n,s=t?C.filter(t,e):e,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||C.cleanData(be(n)),n.parentNode&&(i&&ae(n)&&we(be(n,"script")),n.parentNode.removeChild(n));return e}C.extend({htmlPrefilter:function(e){return e},clone:function(e,t,i){var n,s,o,r,a=e.cloneNode(!0),l=ae(e);if(!(m.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||C.isXMLDoc(e)))for(r=be(a),n=0,s=(o=be(e)).length;n<s;n++)Me(o[n],r[n]);if(t)if(i)for(o=o||be(e),r=r||be(a),n=0,s=o.length;n<s;n++)He(o[n],r[n]);else He(e,a);return(r=be(a,"script")).length>0&&we(r,!l&&be(e,"script")),a},cleanData:function(e){for(var t,i,n,s=C.event.special,o=0;void 0!==(i=e[o]);o++)if(J(i)){if(t=i[Q.expando]){if(t.events)for(n in t.events)s[n]?C.event.remove(i,n):C.removeEvent(i,n,t.handle);i[Q.expando]=void 0}i[Z.expando]&&(i[Z.expando]=void 0)}}}),C.fn.extend({detach:function(e){return Fe(this,e,!0)},remove:function(e){return Fe(this,e)},text:function(e){return B(this,(function(e){return void 0===e?C.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return Re(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Ie(this,e).appendChild(e)}))},prepend:function(){return Re(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Ie(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return Re(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return Re(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(C.cleanData(be(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return C.clone(this,e,t)}))},html:function(e){return B(this,(function(e){var t=this[0]||{},i=0,n=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!De.test(e)&&!ye[(ve.exec(e)||["",""])[1].toLowerCase()]){e=C.htmlPrefilter(e);try{for(;i<n;i++)1===(t=this[i]||{}).nodeType&&(C.cleanData(be(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return Re(this,arguments,(function(t){var i=this.parentNode;C.inArray(this,e)<0&&(C.cleanData(be(this)),i&&i.replaceChild(t,this))}),e)}}),C.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){C.fn[e]=function(e){for(var i,n=[],s=C(e),o=s.length-1,r=0;r<=o;r++)i=r===o?this:this.clone(!0),C(s[r])[t](i),c.apply(n,i.get());return this.pushStack(n)}}));var Ye=new RegExp("^("+ne+")(?!px)[a-z%]+$","i"),ze=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=n),t.getComputedStyle(e)},We=function(e,t,i){var n,s,o={};for(s in t)o[s]=e.style[s],e.style[s]=t[s];for(s in n=i.call(e),t)e.style[s]=o[s];return n},qe=new RegExp(oe.join("|"),"i");function $e(e,t,i){var n,s,o,r,a=e.style;return(i=i||ze(e))&&(""!==(r=i.getPropertyValue(t)||i[t])||ae(e)||(r=C.style(e,t)),!m.pixelBoxStyles()&&Ye.test(r)&&qe.test(t)&&(n=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=s,a.maxWidth=o)),void 0!==r?r+"":r}function Be(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(d){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",d.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",re.appendChild(c).appendChild(d);var e=n.getComputedStyle(d);i="1%"!==e.top,l=12===t(e.marginLeft),d.style.right="60%",r=36===t(e.right),s=36===t(e.width),d.style.position="absolute",o=12===t(d.offsetWidth/3),re.removeChild(c),d=null}}function t(e){return Math.round(parseFloat(e))}var i,s,o,r,a,l,c=y.createElement("div"),d=y.createElement("div");d.style&&(d.style.backgroundClip="content-box",d.cloneNode(!0).style.backgroundClip="",m.clearCloneStyle="content-box"===d.style.backgroundClip,C.extend(m,{boxSizingReliable:function(){return e(),s},pixelBoxStyles:function(){return e(),r},pixelPosition:function(){return e(),i},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,i,s;return null==a&&(e=y.createElement("table"),t=y.createElement("tr"),i=y.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="border:1px solid",t.style.height="1px",i.style.height="9px",i.style.display="block",re.appendChild(e).appendChild(t).appendChild(i),s=n.getComputedStyle(t),a=parseInt(s.height,10)+parseInt(s.borderTopWidth,10)+parseInt(s.borderBottomWidth,10)===t.offsetHeight,re.removeChild(e)),a}}))}();var Ue=["Webkit","Moz","ms"],Ve=y.createElement("div").style,Xe={};function Ke(e){return C.cssProps[e]||Xe[e]||(e in Ve?e:Xe[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),i=Ue.length;i--;)if((e=Ue[i]+t)in Ve)return e}(e)||e)}var Je=/^(none|table(?!-c[ea]).+)/,Ge=/^--/,Qe={position:"absolute",visibility:"hidden",display:"block"},Ze={letterSpacing:"0",fontWeight:"400"};function et(e,t,i){var n=se.exec(t);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):t}function tt(e,t,i,n,s,o){var r="width"===t?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(l+=C.css(e,i+oe[r],!0,s)),n?("content"===i&&(l-=C.css(e,"padding"+oe[r],!0,s)),"margin"!==i&&(l-=C.css(e,"border"+oe[r]+"Width",!0,s))):(l+=C.css(e,"padding"+oe[r],!0,s),"padding"!==i?l+=C.css(e,"border"+oe[r]+"Width",!0,s):a+=C.css(e,"border"+oe[r]+"Width",!0,s));return!n&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l}function it(e,t,i){var n=ze(e),s=(!m.boxSizingReliable()||i)&&"border-box"===C.css(e,"boxSizing",!1,n),o=s,r=$e(e,t,n),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ye.test(r)){if(!i)return r;r="auto"}return(!m.boxSizingReliable()&&s||!m.reliableTrDimensions()&&D(e,"tr")||"auto"===r||!parseFloat(r)&&"inline"===C.css(e,"display",!1,n))&&e.getClientRects().length&&(s="border-box"===C.css(e,"boxSizing",!1,n),(o=a in e)&&(r=e[a])),(r=parseFloat(r)||0)+tt(e,t,i||(s?"border":"content"),o,n,r)+"px"}function nt(e,t,i,n,s){return new nt.prototype.init(e,t,i,n,s)}C.extend({cssHooks:{opacity:{get:function(e,t){if(t){var i=$e(e,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(e,t,i,n){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var s,o,r,a=K(t),l=Ge.test(t),c=e.style;if(l||(t=Ke(a)),r=C.cssHooks[t]||C.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(e,!1,n))?s:c[t];"string"==(o=typeof i)&&(s=se.exec(i))&&s[1]&&(i=de(e,t,s),o="number"),null!=i&&i==i&&("number"!==o||l||(i+=s&&s[3]||(C.cssNumber[a]?"":"px")),m.clearCloneStyle||""!==i||0!==t.indexOf("background")||(c[t]="inherit"),r&&"set"in r&&void 0===(i=r.set(e,i,n))||(l?c.setProperty(t,i):c[t]=i))}},css:function(e,t,i,n){var s,o,r,a=K(t);return Ge.test(t)||(t=Ke(a)),(r=C.cssHooks[t]||C.cssHooks[a])&&"get"in r&&(s=r.get(e,!0,i)),void 0===s&&(s=$e(e,t,n)),"normal"===s&&t in Ze&&(s=Ze[t]),""===i||i?(o=parseFloat(s),!0===i||isFinite(o)?o||0:s):s}}),C.each(["height","width"],(function(e,t){C.cssHooks[t]={get:function(e,i,n){if(i)return!Je.test(C.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?it(e,t,n):We(e,Qe,(function(){return it(e,t,n)}))},set:function(e,i,n){var s,o=ze(e),r=!m.scrollboxSize()&&"absolute"===o.position,a=(r||n)&&"border-box"===C.css(e,"boxSizing",!1,o),l=n?tt(e,t,n,a,o):0;return a&&r&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-tt(e,t,"border",!1,o)-.5)),l&&(s=se.exec(i))&&"px"!==(s[3]||"px")&&(e.style[t]=i,i=C.css(e,t)),et(0,i,l)}}})),C.cssHooks.marginLeft=Be(m.reliableMarginLeft,(function(e,t){if(t)return(parseFloat($e(e,"marginLeft"))||e.getBoundingClientRect().left-We(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),C.each({margin:"",padding:"",border:"Width"},(function(e,t){C.cssHooks[e+t]={expand:function(i){for(var n=0,s={},o="string"==typeof i?i.split(" "):[i];n<4;n++)s[e+oe[n]+t]=o[n]||o[n-2]||o[0];return s}},"margin"!==e&&(C.cssHooks[e+t].set=et)})),C.fn.extend({css:function(e,t){return B(this,(function(e,t,i){var n,s,o={},r=0;if(Array.isArray(t)){for(n=ze(e),s=t.length;r<s;r++)o[t[r]]=C.css(e,t[r],!1,n);return o}return void 0!==i?C.style(e,t,i):C.css(e,t)}),e,t,arguments.length>1)}}),C.Tween=nt,nt.prototype={constructor:nt,init:function(e,t,i,n,s,o){this.elem=e,this.prop=i,this.easing=s||C.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=n,this.unit=o||(C.cssNumber[i]?"":"px")},cur:function(){var e=nt.propHooks[this.prop];return e&&e.get?e.get(this):nt.propHooks._default.get(this)},run:function(e){var t,i=nt.propHooks[this.prop];return this.options.duration?this.pos=t=C.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):nt.propHooks._default.set(this),this}},nt.prototype.init.prototype=nt.prototype,nt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=C.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){C.fx.step[e.prop]?C.fx.step[e.prop](e):1!==e.elem.nodeType||!C.cssHooks[e.prop]&&null==e.elem.style[Ke(e.prop)]?e.elem[e.prop]=e.now:C.style(e.elem,e.prop,e.now+e.unit)}}},nt.propHooks.scrollTop=nt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},C.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},C.fx=nt.prototype.init,C.fx.step={};var st,ot,rt=/^(?:toggle|show|hide)$/,at=/queueHooks$/;function lt(){ot&&(!1===y.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(lt):n.setTimeout(lt,C.fx.interval),C.fx.tick())}function ct(){return n.setTimeout((function(){st=void 0})),st=Date.now()}function dt(e,t){var i,n=0,s={height:e};for(t=t?1:0;n<4;n+=2-t)s["margin"+(i=oe[n])]=s["padding"+i]=e;return t&&(s.opacity=s.width=e),s}function ht(e,t,i){for(var n,s=(ut.tweeners[t]||[]).concat(ut.tweeners["*"]),o=0,r=s.length;o<r;o++)if(n=s[o].call(i,t,e))return n}function ut(e,t,i){var n,s,o=0,r=ut.prefilters.length,a=C.Deferred().always((function(){delete l.elem})),l=function(){if(s)return!1;for(var t=st||ct(),i=Math.max(0,c.startTime+c.duration-t),n=1-(i/c.duration||0),o=0,r=c.tweens.length;o<r;o++)c.tweens[o].run(n);return a.notifyWith(e,[c,n,i]),n<1&&r?i:(r||a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c]),!1)},c=a.promise({elem:e,props:C.extend({},t),opts:C.extend(!0,{specialEasing:{},easing:C.easing._default},i),originalProperties:t,originalOptions:i,startTime:st||ct(),duration:i.duration,tweens:[],createTween:function(t,i){var n=C.Tween(e,c.opts,t,i,c.opts.specialEasing[t]||c.opts.easing);return c.tweens.push(n),n},stop:function(t){var i=0,n=t?c.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)c.tweens[i].run(1);return t?(a.notifyWith(e,[c,1,0]),a.resolveWith(e,[c,t])):a.rejectWith(e,[c,t]),this}}),d=c.props;for(function(e,t){var i,n,s,o,r;for(i in e)if(s=t[n=K(i)],o=e[i],Array.isArray(o)&&(s=o[1],o=e[i]=o[0]),i!==n&&(e[n]=o,delete e[i]),(r=C.cssHooks[n])&&"expand"in r)for(i in o=r.expand(o),delete e[n],o)i in e||(e[i]=o[i],t[i]=s);else t[n]=s}(d,c.opts.specialEasing);o<r;o++)if(n=ut.prefilters[o].call(c,e,d,c.opts))return v(n.stop)&&(C._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return C.map(d,ht,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),C.fx.timer(C.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}C.Animation=C.extend(ut,{tweeners:{"*":[function(e,t){var i=this.createTween(e,t);return de(i.elem,e,se.exec(t),i),i}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(R);for(var i,n=0,s=e.length;n<s;n++)i=e[n],ut.tweeners[i]=ut.tweeners[i]||[],ut.tweeners[i].unshift(t)},prefilters:[function(e,t,i){var n,s,o,r,a,l,c,d,h="width"in t||"height"in t,u=this,p={},f=e.style,g=e.nodeType&&ce(e),m=Q.get(e,"fxshow");for(n in i.queue||(null==(r=C._queueHooks(e,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,u.always((function(){u.always((function(){r.unqueued--,C.queue(e,"fx").length||r.empty.fire()}))}))),t)if(s=t[n],rt.test(s)){if(delete t[n],o=o||"toggle"===s,s===(g?"hide":"show")){if("show"!==s||!m||void 0===m[n])continue;g=!0}p[n]=m&&m[n]||C.style(e,n)}if((l=!C.isEmptyObject(t))||!C.isEmptyObject(p))for(n in h&&1===e.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=m&&m.display)&&(c=Q.get(e,"display")),"none"===(d=C.css(e,"display"))&&(c?d=c:(pe([e],!0),c=e.style.display||c,d=C.css(e,"display"),pe([e]))),("inline"===d||"inline-block"===d&&null!=c)&&"none"===C.css(e,"float")&&(l||(u.done((function(){f.display=c})),null==c&&(d=f.display,c="none"===d?"":d)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",u.always((function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}))),l=!1,p)l||(m?"hidden"in m&&(g=m.hidden):m=Q.access(e,"fxshow",{display:c}),o&&(m.hidden=!g),g&&pe([e],!0),u.done((function(){for(n in g||pe([e]),Q.remove(e,"fxshow"),p)C.style(e,n,p[n])}))),l=ht(g?m[n]:0,n,u),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?ut.prefilters.unshift(e):ut.prefilters.push(e)}}),C.speed=function(e,t,i){var n=e&&"object"==typeof e?C.extend({},e):{complete:i||!i&&t||v(e)&&e,duration:e,easing:i&&t||t&&!v(t)&&t};return C.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in C.fx.speeds?n.duration=C.fx.speeds[n.duration]:n.duration=C.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){v(n.old)&&n.old.call(this),n.queue&&C.dequeue(this,n.queue)},n},C.fn.extend({fadeTo:function(e,t,i,n){return this.filter(ce).css("opacity",0).show().end().animate({opacity:t},e,i,n)},animate:function(e,t,i,n){var s=C.isEmptyObject(e),o=C.speed(t,i,n),r=function(){var t=ut(this,C.extend({},e),o);(s||Q.get(this,"finish"))&&t.stop(!0)};return r.finish=r,s||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(e,t,i){var n=function(e){var t=e.stop;delete e.stop,t(i)};return"string"!=typeof e&&(i=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,s=null!=e&&e+"queueHooks",o=C.timers,r=Q.get(this);if(s)r[s]&&r[s].stop&&n(r[s]);else for(s in r)r[s]&&r[s].stop&&at.test(s)&&n(r[s]);for(s=o.length;s--;)o[s].elem!==this||null!=e&&o[s].queue!==e||(o[s].anim.stop(i),t=!1,o.splice(s,1));!t&&i||C.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,i=Q.get(this),n=i[e+"queue"],s=i[e+"queueHooks"],o=C.timers,r=n?n.length:0;for(i.finish=!0,C.queue(this,e,[]),s&&s.stop&&s.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<r;t++)n[t]&&n[t].finish&&n[t].finish.call(this);delete i.finish}))}}),C.each(["toggle","show","hide"],(function(e,t){var i=C.fn[t];C.fn[t]=function(e,n,s){return null==e||"boolean"==typeof e?i.apply(this,arguments):this.animate(dt(t,!0),e,n,s)}})),C.each({slideDown:dt("show"),slideUp:dt("hide"),slideToggle:dt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){C.fn[e]=function(e,i,n){return this.animate(t,e,i,n)}})),C.timers=[],C.fx.tick=function(){var e,t=0,i=C.timers;for(st=Date.now();t<i.length;t++)(e=i[t])()||i[t]!==e||i.splice(t--,1);i.length||C.fx.stop(),st=void 0},C.fx.timer=function(e){C.timers.push(e),C.fx.start()},C.fx.interval=13,C.fx.start=function(){ot||(ot=!0,lt())},C.fx.stop=function(){ot=null},C.fx.speeds={slow:600,fast:200,_default:400},C.fn.delay=function(e,t){return e=C.fx&&C.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,i){var s=n.setTimeout(t,e);i.stop=function(){n.clearTimeout(s)}}))},function(){var e=y.createElement("input"),t=y.createElement("select").appendChild(y.createElement("option"));e.type="checkbox",m.checkOn=""!==e.value,m.optSelected=t.selected,(e=y.createElement("input")).value="t",e.type="radio",m.radioValue="t"===e.value}();var pt,ft=C.expr.attrHandle;C.fn.extend({attr:function(e,t){return B(this,C.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){C.removeAttr(this,e)}))}}),C.extend({attr:function(e,t,i){var n,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?C.prop(e,t,i):(1===o&&C.isXMLDoc(e)||(s=C.attrHooks[t.toLowerCase()]||(C.expr.match.bool.test(t)?pt:void 0)),void 0!==i?null===i?void C.removeAttr(e,t):s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:(e.setAttribute(t,i+""),i):s&&"get"in s&&null!==(n=s.get(e,t))?n:null==(n=C.find.attr(e,t))?void 0:n)},attrHooks:{type:{set:function(e,t){if(!m.radioValue&&"radio"===t&&D(e,"input")){var i=e.value;return e.setAttribute("type",t),i&&(e.value=i),t}}}},removeAttr:function(e,t){var i,n=0,s=t&&t.match(R);if(s&&1===e.nodeType)for(;i=s[n++];)e.removeAttribute(i)}}),pt={set:function(e,t,i){return!1===t?C.removeAttr(e,i):e.setAttribute(i,i),i}},C.each(C.expr.match.bool.source.match(/\w+/g),(function(e,t){var i=ft[t]||C.find.attr;ft[t]=function(e,t,n){var s,o,r=t.toLowerCase();return n||(o=ft[r],ft[r]=s,s=null!=i(e,t,n)?r:null,ft[r]=o),s}}));var gt=/^(?:input|select|textarea|button)$/i,mt=/^(?:a|area)$/i;function vt(e){return(e.match(R)||[]).join(" ")}function _t(e){return e.getAttribute&&e.getAttribute("class")||""}function yt(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(R)||[]}C.fn.extend({prop:function(e,t){return B(this,C.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[C.propFix[e]||e]}))}}),C.extend({prop:function(e,t,i){var n,s,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(e)||(t=C.propFix[t]||t,s=C.propHooks[t]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(e,i,t))?n:e[t]=i:s&&"get"in s&&null!==(n=s.get(e,t))?n:e[t]},propHooks:{tabIndex:{get:function(e){var t=C.find.attr(e,"tabindex");return t?parseInt(t,10):gt.test(e.nodeName)||mt.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),m.optSelected||(C.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){C.propFix[this.toLowerCase()]=this})),C.fn.extend({addClass:function(e){var t,i,n,s,o,r,a,l=0;if(v(e))return this.each((function(t){C(this).addClass(e.call(this,t,_t(this)))}));if((t=yt(e)).length)for(;i=this[l++];)if(s=_t(i),n=1===i.nodeType&&" "+vt(s)+" "){for(r=0;o=t[r++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");s!==(a=vt(n))&&i.setAttribute("class",a)}return this},removeClass:function(e){var t,i,n,s,o,r,a,l=0;if(v(e))return this.each((function(t){C(this).removeClass(e.call(this,t,_t(this)))}));if(!arguments.length)return this.attr("class","");if((t=yt(e)).length)for(;i=this[l++];)if(s=_t(i),n=1===i.nodeType&&" "+vt(s)+" "){for(r=0;o=t[r++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");s!==(a=vt(n))&&i.setAttribute("class",a)}return this},toggleClass:function(e,t){var i=typeof e,n="string"===i||Array.isArray(e);return"boolean"==typeof t&&n?t?this.addClass(e):this.removeClass(e):v(e)?this.each((function(i){C(this).toggleClass(e.call(this,i,_t(this),t),t)})):this.each((function(){var t,s,o,r;if(n)for(s=0,o=C(this),r=yt(e);t=r[s++];)o.hasClass(t)?o.removeClass(t):o.addClass(t);else void 0!==e&&"boolean"!==i||((t=_t(this))&&Q.set(this,"__className__",t),this.setAttribute&&this.setAttribute("class",t||!1===e?"":Q.get(this,"__className__")||""))}))},hasClass:function(e){var t,i,n=0;for(t=" "+e+" ";i=this[n++];)if(1===i.nodeType&&(" "+vt(_t(i))+" ").indexOf(t)>-1)return!0;return!1}});var bt=/\r/g;C.fn.extend({val:function(e){var t,i,n,s=this[0];return arguments.length?(n=v(e),this.each((function(i){var s;1===this.nodeType&&(null==(s=n?e.call(this,i,C(this).val()):e)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=C.map(s,(function(e){return null==e?"":e+""}))),(t=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,s,"value")||(this.value=s))}))):s?(t=C.valHooks[s.type]||C.valHooks[s.nodeName.toLowerCase()])&&"get"in t&&void 0!==(i=t.get(s,"value"))?i:"string"==typeof(i=s.value)?i.replace(bt,""):null==i?"":i:void 0}}),C.extend({valHooks:{option:{get:function(e){var t=C.find.attr(e,"value");return null!=t?t:vt(C.text(e))}},select:{get:function(e){var t,i,n,s=e.options,o=e.selectedIndex,r="select-one"===e.type,a=r?null:[],l=r?o+1:s.length;for(n=o<0?l:r?o:0;n<l;n++)if(((i=s[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!D(i.parentNode,"optgroup"))){if(t=C(i).val(),r)return t;a.push(t)}return a},set:function(e,t){for(var i,n,s=e.options,o=C.makeArray(t),r=s.length;r--;)((n=s[r]).selected=C.inArray(C.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(e.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],(function(){C.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=C.inArray(C(e).val(),t)>-1}},m.checkOn||(C.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})})),m.focusin="onfocusin"in n;var wt=/^(?:focusinfocus|focusoutblur)$/,xt=function(e){e.stopPropagation()};C.extend(C.event,{trigger:function(e,t,i,s){var o,r,a,l,c,d,h,u,f=[i||y],g=p.call(e,"type")?e.type:e,m=p.call(e,"namespace")?e.namespace.split("."):[];if(r=u=a=i=i||y,3!==i.nodeType&&8!==i.nodeType&&!wt.test(g+C.event.triggered)&&(g.indexOf(".")>-1&&(m=g.split("."),g=m.shift(),m.sort()),c=g.indexOf(":")<0&&"on"+g,(e=e[C.expando]?e:new C.Event(g,"object"==typeof e&&e)).isTrigger=s?2:3,e.namespace=m.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+m.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=i),t=null==t?[e]:C.makeArray(t,[e]),h=C.event.special[g]||{},s||!h.trigger||!1!==h.trigger.apply(i,t))){if(!s&&!h.noBubble&&!_(i)){for(l=h.delegateType||g,wt.test(l+g)||(r=r.parentNode);r;r=r.parentNode)f.push(r),a=r;a===(i.ownerDocument||y)&&f.push(a.defaultView||a.parentWindow||n)}for(o=0;(r=f[o++])&&!e.isPropagationStopped();)u=r,e.type=o>1?l:h.bindType||g,(d=(Q.get(r,"events")||Object.create(null))[e.type]&&Q.get(r,"handle"))&&d.apply(r,t),(d=c&&r[c])&&d.apply&&J(r)&&(e.result=d.apply(r,t),!1===e.result&&e.preventDefault());return e.type=g,s||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(f.pop(),t)||!J(i)||c&&v(i[g])&&!_(i)&&((a=i[c])&&(i[c]=null),C.event.triggered=g,e.isPropagationStopped()&&u.addEventListener(g,xt),i[g](),e.isPropagationStopped()&&u.removeEventListener(g,xt),C.event.triggered=void 0,a&&(i[c]=a)),e.result}},simulate:function(e,t,i){var n=C.extend(new C.Event,i,{type:e,isSimulated:!0});C.event.trigger(n,null,t)}}),C.fn.extend({trigger:function(e,t){return this.each((function(){C.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var i=this[0];if(i)return C.event.trigger(e,t,i,!0)}}),m.focusin||C.each({focus:"focusin",blur:"focusout"},(function(e,t){var i=function(e){C.event.simulate(t,e.target,C.event.fix(e))};C.event.special[t]={setup:function(){var n=this.ownerDocument||this.document||this,s=Q.access(n,t);s||n.addEventListener(e,i,!0),Q.access(n,t,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,s=Q.access(n,t)-1;s?Q.access(n,t,s):(n.removeEventListener(e,i,!0),Q.remove(n,t))}}}));var kt=n.location,Ct={guid:Date.now()},Et=/\?/;C.parseXML=function(e){var t,i;if(!e||"string"!=typeof e)return null;try{t=(new n.DOMParser).parseFromString(e,"text/xml")}catch(e){}return i=t&&t.getElementsByTagName("parsererror")[0],t&&!i||C.error("Invalid XML: "+(i?C.map(i.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var St=/\[\]$/,Tt=/\r?\n/g,Ot=/^(?:submit|button|image|reset|file)$/i,At=/^(?:input|select|textarea|keygen)/i;function Dt(e,t,i,n){var s;if(Array.isArray(t))C.each(t,(function(t,s){i||St.test(e)?n(e,s):Dt(e+"["+("object"==typeof s&&null!=s?t:"")+"]",s,i,n)}));else if(i||"object"!==x(t))n(e,t);else for(s in t)Dt(e+"["+s+"]",t[s],i,n)}C.param=function(e,t){var i,n=[],s=function(e,t){var i=v(t)?t():t;n[n.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==i?"":i)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!C.isPlainObject(e))C.each(e,(function(){s(this.name,this.value)}));else for(i in e)Dt(i,e[i],t,s);return n.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=C.prop(this,"elements");return e?C.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!C(this).is(":disabled")&&At.test(this.nodeName)&&!Ot.test(e)&&(this.checked||!me.test(e))})).map((function(e,t){var i=C(this).val();return null==i?null:Array.isArray(i)?C.map(i,(function(e){return{name:t.name,value:e.replace(Tt,"\r\n")}})):{name:t.name,value:i.replace(Tt,"\r\n")}})).get()}});var Pt=/%20/g,jt=/#.*$/,It=/([?&])_=[^&]*/,Nt=/^(.*?):[ \t]*([^\r\n]*)$/gm,Lt=/^(?:GET|HEAD)$/,Ht=/^\/\//,Mt={},Rt={},Ft="*/".concat("*"),Yt=y.createElement("a");function zt(e){return function(t,i){"string"!=typeof t&&(i=t,t="*");var n,s=0,o=t.toLowerCase().match(R)||[];if(v(i))for(;n=o[s++];)"+"===n[0]?(n=n.slice(1)||"*",(e[n]=e[n]||[]).unshift(i)):(e[n]=e[n]||[]).push(i)}}function Wt(e,t,i,n){var s={},o=e===Rt;function r(a){var l;return s[a]=!0,C.each(e[a]||[],(function(e,a){var c=a(t,i,n);return"string"!=typeof c||o||s[c]?o?!(l=c):void 0:(t.dataTypes.unshift(c),r(c),!1)})),l}return r(t.dataTypes[0])||!s["*"]&&r("*")}function qt(e,t){var i,n,s=C.ajaxSettings.flatOptions||{};for(i in t)void 0!==t[i]&&((s[i]?e:n||(n={}))[i]=t[i]);return n&&C.extend(!0,e,n),e}Yt.href=kt.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:kt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(kt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Ft,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?qt(qt(e,C.ajaxSettings),t):qt(C.ajaxSettings,e)},ajaxPrefilter:zt(Mt),ajaxTransport:zt(Rt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var i,s,o,r,a,l,c,d,h,u,p=C.ajaxSetup({},t),f=p.context||p,g=p.context&&(f.nodeType||f.jquery)?C(f):C.event,m=C.Deferred(),v=C.Callbacks("once memory"),_=p.statusCode||{},b={},w={},x="canceled",k={readyState:0,getResponseHeader:function(e){var t;if(c){if(!r)for(r={};t=Nt.exec(o);)r[t[1].toLowerCase()+" "]=(r[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=r[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?o:null},setRequestHeader:function(e,t){return null==c&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,b[e]=t),this},overrideMimeType:function(e){return null==c&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)k.always(e[k.status]);else for(t in e)_[t]=[_[t],e[t]];return this},abort:function(e){var t=e||x;return i&&i.abort(t),E(0,t),this}};if(m.promise(k),p.url=((e||p.url||kt.href)+"").replace(Ht,kt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(R)||[""],null==p.crossDomain){l=y.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Yt.protocol+"//"+Yt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=C.param(p.data,p.traditional)),Wt(Mt,p,t,k),c)return k;for(h in(d=C.event&&p.global)&&0==C.active++&&C.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Lt.test(p.type),s=p.url.replace(jt,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Pt,"+")):(u=p.url.slice(s.length),p.data&&(p.processData||"string"==typeof p.data)&&(s+=(Et.test(s)?"&":"?")+p.data,delete p.data),!1===p.cache&&(s=s.replace(It,"$1"),u=(Et.test(s)?"&":"?")+"_="+Ct.guid+++u),p.url=s+u),p.ifModified&&(C.lastModified[s]&&k.setRequestHeader("If-Modified-Since",C.lastModified[s]),C.etag[s]&&k.setRequestHeader("If-None-Match",C.etag[s])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&k.setRequestHeader("Content-Type",p.contentType),k.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Ft+"; q=0.01":""):p.accepts["*"]),p.headers)k.setRequestHeader(h,p.headers[h]);if(p.beforeSend&&(!1===p.beforeSend.call(f,k,p)||c))return k.abort();if(x="abort",v.add(p.complete),k.done(p.success),k.fail(p.error),i=Wt(Rt,p,t,k)){if(k.readyState=1,d&&g.trigger("ajaxSend",[k,p]),c)return k;p.async&&p.timeout>0&&(a=n.setTimeout((function(){k.abort("timeout")}),p.timeout));try{c=!1,i.send(b,E)}catch(e){if(c)throw e;E(-1,e)}}else E(-1,"No Transport");function E(e,t,r,l){var h,u,y,b,w,x=t;c||(c=!0,a&&n.clearTimeout(a),i=void 0,o=l||"",k.readyState=e>0?4:0,h=e>=200&&e<300||304===e,r&&(b=function(e,t,i){for(var n,s,o,r,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=e.mimeType||t.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||e.converters[s+" "+l[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(p,k,r)),!h&&C.inArray("script",p.dataTypes)>-1&&C.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),b=function(e,t,i,n){var s,o,r,a,l,c={},d=e.dataTypes.slice();if(d[1])for(r in e.converters)c[r.toLowerCase()]=e.converters[r];for(o=d.shift();o;)if(e.responseFields[o]&&(i[e.responseFields[o]]=t),!l&&n&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=d.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(s in c)if((a=s.split(" "))[1]===o&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[s]:!0!==c[s]&&(o=a[0],d.unshift(a[1]));break}if(!0!==r)if(r&&e.throws)t=r(t);else try{t=r(t)}catch(e){return{state:"parsererror",error:r?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,b,k,h),h?(p.ifModified&&((w=k.getResponseHeader("Last-Modified"))&&(C.lastModified[s]=w),(w=k.getResponseHeader("etag"))&&(C.etag[s]=w)),204===e||"HEAD"===p.type?x="nocontent":304===e?x="notmodified":(x=b.state,u=b.data,h=!(y=b.error))):(y=x,!e&&x||(x="error",e<0&&(e=0))),k.status=e,k.statusText=(t||x)+"",h?m.resolveWith(f,[u,x,k]):m.rejectWith(f,[k,x,y]),k.statusCode(_),_=void 0,d&&g.trigger(h?"ajaxSuccess":"ajaxError",[k,p,h?u:y]),v.fireWith(f,[k,x]),d&&(g.trigger("ajaxComplete",[k,p]),--C.active||C.event.trigger("ajaxStop")))}return k},getJSON:function(e,t,i){return C.get(e,t,i,"json")},getScript:function(e,t){return C.get(e,void 0,t,"script")}}),C.each(["get","post"],(function(e,t){C[t]=function(e,i,n,s){return v(i)&&(s=s||n,n=i,i=void 0),C.ajax(C.extend({url:e,type:t,dataType:s,data:i,success:n},C.isPlainObject(e)&&e))}})),C.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),C._evalUrl=function(e,t,i){return C.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){C.globalEval(e,t,i)}})},C.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=C(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){C(this).wrapInner(e.call(this,t))})):this.each((function(){var t=C(this),i=t.contents();i.length?i.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(i){C(this).wrapAll(t?e.call(this,i):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){C(this).replaceWith(this.childNodes)})),this}}),C.expr.pseudos.hidden=function(e){return!C.expr.pseudos.visible(e)},C.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(e){}};var $t={0:200,1223:204},Bt=C.ajaxSettings.xhr();m.cors=!!Bt&&"withCredentials"in Bt,m.ajax=Bt=!!Bt,C.ajaxTransport((function(e){var t,i;if(m.cors||Bt&&!e.crossDomain)return{send:function(s,o){var r,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];for(r in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)a.setRequestHeader(r,s[r]);t=function(e){return function(){t&&(t=i=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o($t[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),i=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=i:a.onreadystatechange=function(){4===a.readyState&&n.setTimeout((function(){t&&i()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),C.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return C.globalEval(e),e}}}),C.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),C.ajaxTransport("script",(function(e){var t,i;if(e.crossDomain||e.scriptAttrs)return{send:function(n,s){t=C("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",i=function(e){t.remove(),i=null,e&&s("error"===e.type?404:200,e.type)}),y.head.appendChild(t[0])},abort:function(){i&&i()}}}));var Ut,Vt=[],Xt=/(=)\?(?=&|$)|\?\?/;C.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Vt.pop()||C.expando+"_"+Ct.guid++;return this[e]=!0,e}}),C.ajaxPrefilter("json jsonp",(function(e,t,i){var s,o,r,a=!1!==e.jsonp&&(Xt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Xt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Xt,"$1"+s):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return r||C.error(s+" was not called"),r[0]},e.dataTypes[0]="json",o=n[s],n[s]=function(){r=arguments},i.always((function(){void 0===o?C(n).removeProp(s):n[s]=o,e[s]&&(e.jsonpCallback=t.jsonpCallback,Vt.push(s)),r&&v(o)&&o(r[0]),r=o=void 0})),"script"})),m.createHTMLDocument=((Ut=y.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===Ut.childNodes.length),C.parseHTML=function(e,t,i){return"string"!=typeof e?[]:("boolean"==typeof t&&(i=t,t=!1),t||(m.createHTMLDocument?((n=(t=y.implementation.createHTMLDocument("")).createElement("base")).href=y.location.href,t.head.appendChild(n)):t=y),o=!i&&[],(s=P.exec(e))?[t.createElement(s[1])]:(s=ke([e],t,o),o&&o.length&&C(o).remove(),C.merge([],s.childNodes)));var n,s,o},C.fn.load=function(e,t,i){var n,s,o,r=this,a=e.indexOf(" ");return a>-1&&(n=vt(e.slice(a)),e=e.slice(0,a)),v(t)?(i=t,t=void 0):t&&"object"==typeof t&&(s="POST"),r.length>0&&C.ajax({url:e,type:s||"GET",dataType:"html",data:t}).done((function(e){o=arguments,r.html(n?C("<div>").append(C.parseHTML(e)).find(n):e)})).always(i&&function(e,t){r.each((function(){i.apply(this,o||[e.responseText,t,e])}))}),this},C.expr.pseudos.animated=function(e){return C.grep(C.timers,(function(t){return e===t.elem})).length},C.offset={setOffset:function(e,t,i){var n,s,o,r,a,l,c=C.css(e,"position"),d=C(e),h={};"static"===c&&(e.style.position="relative"),a=d.offset(),o=C.css(e,"top"),l=C.css(e,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(r=(n=d.position()).top,s=n.left):(r=parseFloat(o)||0,s=parseFloat(l)||0),v(t)&&(t=t.call(e,i,C.extend({},a))),null!=t.top&&(h.top=t.top-a.top+r),null!=t.left&&(h.left=t.left-a.left+s),"using"in t?t.using.call(e,h):d.css(h)}},C.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){C.offset.setOffset(this,e,t)}));var t,i,n=this[0];return n?n.getClientRects().length?(t=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:t.top+i.pageYOffset,left:t.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,i,n=this[0],s={top:0,left:0};if("fixed"===C.css(n,"position"))t=n.getBoundingClientRect();else{for(t=this.offset(),i=n.ownerDocument,e=n.offsetParent||i.documentElement;e&&(e===i.body||e===i.documentElement)&&"static"===C.css(e,"position");)e=e.parentNode;e&&e!==n&&1===e.nodeType&&((s=C(e).offset()).top+=C.css(e,"borderTopWidth",!0),s.left+=C.css(e,"borderLeftWidth",!0))}return{top:t.top-s.top-C.css(n,"marginTop",!0),left:t.left-s.left-C.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===C.css(e,"position");)e=e.offsetParent;return e||re}))}}),C.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var i="pageYOffset"===t;C.fn[e]=function(n){return B(this,(function(e,n,s){var o;if(_(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===s)return o?o[t]:e[n];o?o.scrollTo(i?o.pageXOffset:s,i?s:o.pageYOffset):e[n]=s}),e,n,arguments.length)}})),C.each(["top","left"],(function(e,t){C.cssHooks[t]=Be(m.pixelPosition,(function(e,i){if(i)return i=$e(e,t),Ye.test(i)?C(e).position()[t]+"px":i}))})),C.each({Height:"height",Width:"width"},(function(e,t){C.each({padding:"inner"+e,content:t,"":"outer"+e},(function(i,n){C.fn[n]=function(s,o){var r=arguments.length&&(i||"boolean"!=typeof s),a=i||(!0===s||!0===o?"margin":"border");return B(this,(function(t,i,s){var o;return _(t)?0===n.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===s?C.css(t,i,a):C.style(t,i,s,a)}),t,r?s:void 0,r)}}))})),C.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){C.fn[t]=function(e){return this.on(t,e)}})),C.fn.extend({bind:function(e,t,i){return this.on(e,null,t,i)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,i,n){return this.on(t,e,i,n)},undelegate:function(e,t,i){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",i)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),C.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){C.fn[t]=function(e,i){return arguments.length>0?this.on(t,null,e,i):this.trigger(t)}}));var Kt=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;C.proxy=function(e,t){var i,n,s;if("string"==typeof t&&(i=e[t],t=e,e=i),v(e))return n=a.call(arguments,2),s=function(){return e.apply(t||this,n.concat(a.call(arguments)))},s.guid=e.guid=e.guid||C.guid++,s},C.holdReady=function(e){e?C.readyWait++:C.ready(!0)},C.isArray=Array.isArray,C.parseJSON=JSON.parse,C.nodeName=D,C.isFunction=v,C.isWindow=_,C.camelCase=K,C.type=x,C.now=Date.now,C.isNumeric=function(e){var t=C.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},C.trim=function(e){return null==e?"":(e+"").replace(Kt,"")},void 0===(i=function(){return C}.apply(t,[]))||(e.exports=i);var Jt=n.jQuery,Gt=n.$;return C.noConflict=function(e){return n.$===C&&(n.$=Gt),e&&n.jQuery===C&&(n.jQuery=Jt),C},void 0===s&&(n.jQuery=n.$=C),C}))},7568:(e,t,i)=>{var n,s,o;!function(r){"use strict";s=[i(3193)],n=function(e,t){if(!e.jstree){var i=0,n=!1,s=!1,o=!1,r=[],a=e("script:last").attr("src"),l=window.document,c=window.setImmediate,d=window.Promise;!c&&d&&(c=function(e,t){d.resolve(t).then(e)}),e.jstree={version:"3.3.12",defaults:{plugins:[]},plugins:{},path:a&&-1!==a.indexOf("/")?a.replace(/\/[^\/]+$/,""):"",idregex:/[\\:&!^|()\[\]<>@*'+~#";.,=\- \/${}%?`]/g,root:"#"},e.jstree.create=function(t,n){var s=new e.jstree.core(++i),o=n;return n=e.extend(!0,{},e.jstree.defaults,n),o&&o.plugins&&(n.plugins=o.plugins),e.each(n.plugins,(function(e,t){"core"!==e&&(s=s.plugin(t,n[t]))})),e(t).data("jstree",s),s.init(t,n),s},e.jstree.destroy=function(){e(".jstree:jstree").jstree("destroy"),e(l).off(".jstree")},e.jstree.core=function(e){this._id=e,this._cnt=0,this._wrk=null,this._data={core:{themes:{name:!1,dots:!1,icons:!1,ellipsis:!1},selected:[],last_error:{},working:!1,worker_queue:[],focused:null}}},e.jstree.reference=function(t){var i=null,n=null;if(!t||!t.id||t.tagName&&t.nodeType||(t=t.id),!n||!n.length)try{n=e(t)}catch(e){}if(!n||!n.length)try{n=e("#"+t.replace(e.jstree.idregex,"\\$&"))}catch(e){}return n&&n.length&&(n=n.closest(".jstree")).length&&(n=n.data("jstree"))?i=n:e(".jstree").each((function(){var n=e(this).data("jstree");if(n&&n._model.data[t])return i=n,!1})),i},e.fn.jstree=function(i){var n="string"==typeof i,s=Array.prototype.slice.call(arguments,1),o=null;return!(!0===i&&!this.length)&&(this.each((function(){var r=e.jstree.reference(this),a=n&&r?r[i]:null;if(o=n&&a?a.apply(r,s):null,r||n||i!==t&&!e.isPlainObject(i)||e.jstree.create(this,i),(r&&!n||!0===i)&&(o=r||!1),null!==o&&o!==t)return!1})),null!==o&&o!==t?o:this)},e.expr.pseudos.jstree=e.expr.createPseudo((function(i){return function(i){return e(i).hasClass("jstree")&&e(i).data("jstree")!==t}})),e.jstree.defaults.core={data:!1,strings:!1,check_callback:!1,error:e.noop,animation:200,multiple:!0,themes:{name:!1,url:!1,dir:!1,dots:!0,icons:!0,ellipsis:!1,stripes:!1,variant:!1,responsive:!1},expand_selected_onload:!0,worker:!0,force_text:!1,dblclick_toggle:!0,loaded_state:!1,restore_focus:!0,compute_elements_positions:!1,keyboard:{"ctrl-space":function(t){t.type="click",e(t.currentTarget).trigger(t)},enter:function(t){t.type="click",e(t.currentTarget).trigger(t)},left:function(t){if(t.preventDefault(),this.is_open(t.currentTarget))this.close_node(t.currentTarget);else{var i=this.get_parent(t.currentTarget);i&&i.id!==e.jstree.root&&this.get_node(i,!0).children(".jstree-anchor").trigger("focus")}},up:function(e){e.preventDefault();var t=this.get_prev_dom(e.currentTarget);t&&t.length&&t.children(".jstree-anchor").trigger("focus")},right:function(t){if(t.preventDefault(),this.is_closed(t.currentTarget))this.open_node(t.currentTarget,(function(e){this.get_node(e,!0).children(".jstree-anchor").trigger("focus")}));else if(this.is_open(t.currentTarget)){var i=this.get_node(t.currentTarget,!0).children(".jstree-children")[0];i&&e(this._firstChild(i)).children(".jstree-anchor").trigger("focus")}},down:function(e){e.preventDefault();var t=this.get_next_dom(e.currentTarget);t&&t.length&&t.children(".jstree-anchor").trigger("focus")},"*":function(e){this.open_all()},home:function(t){t.preventDefault();var i=this._firstChild(this.get_container_ul()[0]);i&&e(i).children(".jstree-anchor").filter(":visible").trigger("focus")},end:function(e){e.preventDefault(),this.element.find(".jstree-anchor").filter(":visible").last().trigger("focus")},f2:function(e){e.preventDefault(),this.edit(e.currentTarget)}}},e.jstree.core.prototype={plugin:function(t,i){var n=e.jstree.plugins[t];return n?(this._data[t]={},n.prototype=this,new n(i,this)):this},init:function(t,i){this._model={data:{},changed:[],force_full_redraw:!1,redraw_timeout:!1,default_state:{loaded:!0,opened:!1,selected:!1,disabled:!1}},this._model.data[e.jstree.root]={id:e.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}},this.element=e(t).addClass("jstree jstree-"+this._id),this.settings=i,this._data.core.ready=!1,this._data.core.loaded=!1,this._data.core.rtl="rtl"===this.element.css("direction"),this.element[this._data.core.rtl?"addClass":"removeClass"]("jstree-rtl"),this.element.attr("role","tree"),this.settings.core.multiple&&this.element.attr("aria-multiselectable",!0),this.element.attr("tabindex")||this.element.attr("tabindex","0"),this.bind(),this.trigger("init"),this._data.core.original_container_html=this.element.find(" > ul > li").clone(!0),this._data.core.original_container_html.find("li").addBack().contents().filter((function(){return 3===this.nodeType&&(!this.nodeValue||/^\s+$/.test(this.nodeValue))})).remove(),this.element.html("<ul class='jstree-container-ul jstree-children' role='group'><li id='j"+this._id+"_loading' class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='none'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' role='treeitem' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>"+this.get_string("Loading ...")+"</a></li></ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading"),this._data.core.li_height=this.get_container_ul().children("li").first().outerHeight()||24,this._data.core.node=this._create_prototype_node(),this.trigger("loading"),this.load_node(e.jstree.root)},destroy:function(e){if(this.trigger("destroy"),this._wrk)try{window.URL.revokeObjectURL(this._wrk),this._wrk=null}catch(e){}e||this.element.empty(),this.teardown()},_create_prototype_node:function(){var e,t,i=l.createElement("LI");return i.setAttribute("role","none"),(e=l.createElement("I")).className="jstree-icon jstree-ocl",e.setAttribute("role","presentation"),i.appendChild(e),(e=l.createElement("A")).className="jstree-anchor",e.setAttribute("href","#"),e.setAttribute("tabindex","-1"),e.setAttribute("role","treeitem"),(t=l.createElement("I")).className="jstree-icon jstree-themeicon",t.setAttribute("role","presentation"),e.appendChild(t),i.appendChild(e),e=t=null,i},_kbevent_to_func:function(e){var t=[];if(e.ctrlKey&&t.push("ctrl"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),t.push({8:"Backspace",9:"Tab",13:"Enter",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock",16:"Shift",17:"Ctrl",18:"Alt",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*",173:"-"}[e.which]||e.which),"shift-shift"===(t=t.sort().join("-").toLowerCase())||"ctrl-ctrl"===t||"alt-alt"===t)return null;var i,n,s=this.settings.core.keyboard;for(i in s)if(s.hasOwnProperty(i)&&("-"!==(n=i)&&"+"!==n&&(n=(n=n.replace("--","-MINUS").replace("+-","-MINUS").replace("++","-PLUS").replace("-+","-PLUS")).split(/-|\+/).sort().join("-").replace("MINUS","-").replace("PLUS","+").toLowerCase()),n===t))return s[i];return null},teardown:function(){this.unbind(),this.element.removeClass("jstree").removeData("jstree").find("[class^='jstree']").addBack().attr("class",(function(){return this.className.replace(/jstree[^ ]*|$/gi,"")})),this.element=null},bind:function(){var t="",i=null,n=0;this.element.on("dblclick.jstree",(function(e){if(e.target.tagName&&"input"===e.target.tagName.toLowerCase())return!0;if(l.selection&&l.selection.empty)l.selection.empty();else if(window.getSelection){var t=window.getSelection();try{t.removeAllRanges(),t.collapse()}catch(e){}}})).on("mousedown.jstree",function(e){e.target===this.element[0]&&(e.preventDefault(),n=+new Date)}.bind(this)).on("mousedown.jstree",".jstree-ocl",(function(e){e.preventDefault()})).on("click.jstree",".jstree-ocl",function(e){this.toggle_node(e.target)}.bind(this)).on("dblclick.jstree",".jstree-anchor",function(e){if(e.target.tagName&&"input"===e.target.tagName.toLowerCase())return!0;this.settings.core.dblclick_toggle&&this.toggle_node(e.target)}.bind(this)).on("click.jstree",".jstree-anchor",function(t){t.preventDefault(),t.currentTarget!==l.activeElement&&e(t.currentTarget).trigger("focus"),this.activate_node(t.currentTarget,t)}.bind(this)).on("keydown.jstree",".jstree-anchor",function(e){if(e.target.tagName&&"input"===e.target.tagName.toLowerCase())return!0;this._data.core.rtl&&(37===e.which?e.which=39:39===e.which&&(e.which=37));var t=this._kbevent_to_func(e);if(t){var i=t.call(this,e);if(!1===i||!0===i)return i}}.bind(this)).on("load_node.jstree",function(t,i){i.status&&(i.node.id!==e.jstree.root||this._data.core.loaded||(this._data.core.loaded=!0,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.trigger("loaded")),this._data.core.ready||setTimeout(function(){if(this.element&&!this.get_container_ul().find(".jstree-loading").length){if(this._data.core.ready=!0,this._data.core.selected.length){if(this.settings.core.expand_selected_onload){var t,i,n=[];for(t=0,i=this._data.core.selected.length;t<i;t++)n=n.concat(this._model.data[this._data.core.selected[t]].parents);for(t=0,i=(n=e.vakata.array_unique(n)).length;t<i;t++)this.open_node(n[t],!1,0)}this.trigger("changed",{action:"ready",selected:this._data.core.selected})}this.trigger("ready")}}.bind(this),0))}.bind(this)).on("keypress.jstree",function(n){if(n.target.tagName&&"input"===n.target.tagName.toLowerCase())return!0;i&&clearTimeout(i),i=setTimeout((function(){t=""}),500);var s=String.fromCharCode(n.which).toLowerCase(),o=this.element.find(".jstree-anchor").filter(":visible"),r=o.index(l.activeElement)||0,a=!1;if((t+=s).length>1){if(o.slice(r).each(function(i,n){if(0===e(n).text().toLowerCase().indexOf(t))return e(n).trigger("focus"),a=!0,!1}.bind(this)),a)return;if(o.slice(0,r).each(function(i,n){if(0===e(n).text().toLowerCase().indexOf(t))return e(n).trigger("focus"),a=!0,!1}.bind(this)),a)return}if(new RegExp("^"+s.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")+"+$").test(t)){if(o.slice(r+1).each(function(t,i){if(e(i).text().toLowerCase().charAt(0)===s)return e(i).trigger("focus"),a=!0,!1}.bind(this)),a)return;if(o.slice(0,r+1).each(function(t,i){if(e(i).text().toLowerCase().charAt(0)===s)return e(i).trigger("focus"),a=!0,!1}.bind(this)),a)return}}.bind(this)).on("init.jstree",function(){var e=this.settings.core.themes;this._data.core.themes.dots=e.dots,this._data.core.themes.stripes=e.stripes,this._data.core.themes.icons=e.icons,this._data.core.themes.ellipsis=e.ellipsis,this.set_theme(e.name||"default",e.url),this.set_theme_variant(e.variant)}.bind(this)).on("loading.jstree",function(){this[this._data.core.themes.dots?"show_dots":"hide_dots"](),this[this._data.core.themes.icons?"show_icons":"hide_icons"](),this[this._data.core.themes.stripes?"show_stripes":"hide_stripes"](),this[this._data.core.themes.ellipsis?"show_ellipsis":"hide_ellipsis"]()}.bind(this)).on("blur.jstree",".jstree-anchor",function(t){this._data.core.focused=null,e(t.currentTarget).filter(".jstree-hovered").trigger("mouseleave"),this.element.attr("tabindex","0")}.bind(this)).on("focus.jstree",".jstree-anchor",function(t){var i=this.get_node(t.currentTarget);i&&i.id&&(this._data.core.focused=i.id),this.element.find(".jstree-hovered").not(t.currentTarget).trigger("mouseleave"),e(t.currentTarget).trigger("mouseenter"),this.element.attr("tabindex","-1")}.bind(this)).on("focus.jstree",function(){if(+new Date-n>500&&!this._data.core.focused&&this.settings.core.restore_focus){n=0;var e=this.get_node(this.element.attr("aria-activedescendant"),!0);e&&e.find("> .jstree-anchor").trigger("focus")}}.bind(this)).on("mouseenter.jstree",".jstree-anchor",function(e){this.hover_node(e.currentTarget)}.bind(this)).on("mouseleave.jstree",".jstree-anchor",function(e){this.dehover_node(e.currentTarget)}.bind(this))},unbind:function(){this.element.off(".jstree"),e(l).off(".jstree-"+this._id)},trigger:function(e,t){t||(t={}),t.instance=this,this.element.triggerHandler(e.replace(".jstree","")+".jstree",t)},get_container:function(){return this.element},get_container_ul:function(){return this.element.children(".jstree-children").first()},get_string:function(t){var i=this.settings.core.strings;return e.vakata.is_function(i)?i.call(this,t):i&&i[t]?i[t]:t},_firstChild:function(e){for(e=e?e.firstChild:null;null!==e&&1!==e.nodeType;)e=e.nextSibling;return e},_nextSibling:function(e){for(e=e?e.nextSibling:null;null!==e&&1!==e.nodeType;)e=e.nextSibling;return e},_previousSibling:function(e){for(e=e?e.previousSibling:null;null!==e&&1!==e.nodeType;)e=e.previousSibling;return e},get_node:function(t,i){var n;t&&t.id&&(t=t.id),t instanceof e&&t.length&&t[0].id&&(t=t[0].id);try{if(this._model.data[t])t=this._model.data[t];else if("string"==typeof t&&this._model.data[t.replace(/^#/,"")])t=this._model.data[t.replace(/^#/,"")];else if("string"==typeof t&&(n=e("#"+t.replace(e.jstree.idregex,"\\$&"),this.element)).length&&this._model.data[n.closest(".jstree-node").attr("id")])t=this._model.data[n.closest(".jstree-node").attr("id")];else if((n=this.element.find(t)).length&&this._model.data[n.closest(".jstree-node").attr("id")])t=this._model.data[n.closest(".jstree-node").attr("id")];else{if(!(n=this.element.find(t)).length||!n.hasClass("jstree"))return!1;t=this._model.data[e.jstree.root]}return i&&(t=t.id===e.jstree.root?this.element:e("#"+t.id.replace(e.jstree.idregex,"\\$&"),this.element)),t}catch(e){return!1}},get_path:function(t,i,n){if(!(t=t.parents?t:this.get_node(t))||t.id===e.jstree.root||!t.parents)return!1;var s,o,r=[];for(r.push(n?t.id:t.text),s=0,o=t.parents.length;s<o;s++)r.push(n?t.parents[s]:this.get_text(t.parents[s]));return r=r.reverse().slice(1),i?r.join(i):r},get_next_dom:function(t,i){var n;if((t=this.get_node(t,!0))[0]===this.element[0]){for(n=this._firstChild(this.get_container_ul()[0]);n&&0===n.offsetHeight;)n=this._nextSibling(n);return!!n&&e(n)}if(!t||!t.length)return!1;if(i){n=t[0];do{n=this._nextSibling(n)}while(n&&0===n.offsetHeight);return!!n&&e(n)}if(t.hasClass("jstree-open")){for(n=this._firstChild(t.children(".jstree-children")[0]);n&&0===n.offsetHeight;)n=this._nextSibling(n);if(null!==n)return e(n)}n=t[0];do{n=this._nextSibling(n)}while(n&&0===n.offsetHeight);return null!==n?e(n):t.parentsUntil(".jstree",".jstree-node").nextAll(".jstree-node:visible").first()},get_prev_dom:function(t,i){var n;if((t=this.get_node(t,!0))[0]===this.element[0]){for(n=this.get_container_ul()[0].lastChild;n&&0===n.offsetHeight;)n=this._previousSibling(n);return!!n&&e(n)}if(!t||!t.length)return!1;if(i){n=t[0];do{n=this._previousSibling(n)}while(n&&0===n.offsetHeight);return!!n&&e(n)}n=t[0];do{n=this._previousSibling(n)}while(n&&0===n.offsetHeight);if(null!==n){for(t=e(n);t.hasClass("jstree-open");)t=t.children(".jstree-children").first().children(".jstree-node:visible:last");return t}return!(!(n=t[0].parentNode.parentNode)||!n.className||-1===n.className.indexOf("jstree-node"))&&e(n)},get_parent:function(t){return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.parent},get_children_dom:function(e){return(e=this.get_node(e,!0))[0]===this.element[0]?this.get_container_ul().children(".jstree-node"):!(!e||!e.length)&&e.children(".jstree-children").children(".jstree-node")},is_parent:function(e){return(e=this.get_node(e))&&(!1===e.state.loaded||e.children.length>0)},is_loaded:function(e){return(e=this.get_node(e))&&e.state.loaded},is_loading:function(e){return(e=this.get_node(e))&&e.state&&e.state.loading},is_open:function(e){return(e=this.get_node(e))&&e.state.opened},is_closed:function(e){return(e=this.get_node(e))&&this.is_parent(e)&&!e.state.opened},is_leaf:function(e){return!this.is_parent(e)},load_node:function(t,i){var n,s,o,r,a;if(e.vakata.is_array(t))return this._load_nodes(t.slice(),i),!0;if(!(t=this.get_node(t)))return i&&i.call(this,t,!1),!1;if(t.state.loaded){for(t.state.loaded=!1,o=0,r=t.parents.length;o<r;o++)this._model.data[t.parents[o]].children_d=e.vakata.array_filter(this._model.data[t.parents[o]].children_d,(function(i){return-1===e.inArray(i,t.children_d)}));for(n=0,s=t.children_d.length;n<s;n++)this._model.data[t.children_d[n]].state.selected&&(a=!0),delete this._model.data[t.children_d[n]];a&&(this._data.core.selected=e.vakata.array_filter(this._data.core.selected,(function(i){return-1===e.inArray(i,t.children_d)}))),t.children=[],t.children_d=[],a&&this.trigger("changed",{action:"load_node",node:t,selected:this._data.core.selected})}return t.state.failed=!1,t.state.loading=!0,this.get_node(t,!0).addClass("jstree-loading").attr("aria-busy",!0),this._load_node(t,function(e){(t=this._model.data[t.id]).state.loading=!1,t.state.loaded=e,t.state.failed=!t.state.loaded;var n,s=this.get_node(t,!0),o=0,r=this._model.data,a=!1;for(o=0,n=t.children.length;o<n;o++)if(r[t.children[o]]&&!r[t.children[o]].state.hidden){a=!0;break}t.state.loaded&&s&&s.length&&(s.removeClass("jstree-closed jstree-open jstree-leaf"),a?"#"!==t.id&&s.addClass(t.state.opened?"jstree-open":"jstree-closed"):s.addClass("jstree-leaf")),s.removeClass("jstree-loading").attr("aria-busy",!1),this.trigger("load_node",{node:t,status:e}),i&&i.call(this,t,e)}.bind(this)),!0},_load_nodes:function(e,t,i,n){var s,o,r=!0,a=function(){this._load_nodes(e,t,!0)},l=this._model.data,c=[];for(s=0,o=e.length;s<o;s++)l[e[s]]&&(!l[e[s]].state.loaded&&!l[e[s]].state.failed||!i&&n)&&(this.is_loading(e[s])||this.load_node(e[s],a),r=!1);if(r){for(s=0,o=e.length;s<o;s++)l[e[s]]&&l[e[s]].state.loaded&&c.push(e[s]);t&&!t.done&&(t.call(this,c),t.done=!0)}},load_all:function(t,i){if(t||(t=e.jstree.root),!(t=this.get_node(t)))return!1;var n,s,o=[],r=this._model.data,a=r[t.id].children_d;for(t.state&&!t.state.loaded&&o.push(t.id),n=0,s=a.length;n<s;n++)r[a[n]]&&r[a[n]].state&&!r[a[n]].state.loaded&&o.push(a[n]);o.length?this._load_nodes(o,(function(){this.load_all(t,i)})):(i&&i.call(this,t),this.trigger("load_all",{node:t}))},_load_node:function(t,i){var n,s=this.settings.core.data,o=function(){return 3!==this.nodeType&&8!==this.nodeType};return s?e.vakata.is_function(s)?s.call(this,t,function(n){!1===n?i.call(this,!1):this["string"==typeof n?"_append_html_data":"_append_json_data"](t,"string"==typeof n?e(e.parseHTML(n)).filter(o):n,(function(e){i.call(this,e)}))}.bind(this)):"object"==typeof s?s.url?(s=e.extend(!0,{},s),e.vakata.is_function(s.url)&&(s.url=s.url.call(this,t)),e.vakata.is_function(s.data)&&(s.data=s.data.call(this,t)),e.ajax(s).done(function(n,s,r){var a=r.getResponseHeader("Content-Type");return a&&-1!==a.indexOf("json")||"object"==typeof n?this._append_json_data(t,n,(function(e){i.call(this,e)})):a&&-1!==a.indexOf("html")||"string"==typeof n?this._append_html_data(t,e(e.parseHTML(n)).filter(o),(function(e){i.call(this,e)})):(this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:t.id,xhr:r})},this.settings.core.error.call(this,this._data.core.last_error),i.call(this,!1))}.bind(this)).fail(function(e){this._data.core.last_error={error:"ajax",plugin:"core",id:"core_04",reason:"Could not load node",data:JSON.stringify({id:t.id,xhr:e})},i.call(this,!1),this.settings.core.error.call(this,this._data.core.last_error)}.bind(this))):(n=e.vakata.is_array(s)?e.extend(!0,[],s):e.isPlainObject(s)?e.extend(!0,{},s):s,t.id===e.jstree.root?this._append_json_data(t,n,(function(e){i.call(this,e)})):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_05",reason:"Could not load node",data:JSON.stringify({id:t.id})},this.settings.core.error.call(this,this._data.core.last_error),i.call(this,!1))):"string"==typeof s?t.id===e.jstree.root?this._append_html_data(t,e(e.parseHTML(s)).filter(o),(function(e){i.call(this,e)})):(this._data.core.last_error={error:"nodata",plugin:"core",id:"core_06",reason:"Could not load node",data:JSON.stringify({id:t.id})},this.settings.core.error.call(this,this._data.core.last_error),i.call(this,!1)):i.call(this,!1):t.id===e.jstree.root?this._append_html_data(t,this._data.core.original_container_html.clone(!0),(function(e){i.call(this,e)})):i.call(this,!1)},_node_changed:function(t){(t=this.get_node(t))&&-1===e.inArray(t.id,this._model.changed)&&this._model.changed.push(t.id)},_append_html_data:function(t,i,n){(t=this.get_node(t)).children=[],t.children_d=[];var s,o,r,a=i.is("ul")?i.children():i,l=t.id,c=[],d=[],h=this._model.data,u=h[l],p=this._data.core.selected.length;for(a.each(function(t,i){(s=this._parse_model_from_html(e(i),l,u.parents.concat()))&&(c.push(s),d.push(s),h[s].children_d.length&&(d=d.concat(h[s].children_d)))}.bind(this)),u.children=c,u.children_d=d,o=0,r=u.parents.length;o<r;o++)h[u.parents[o]].children_d=h[u.parents[o]].children_d.concat(d);this.trigger("model",{nodes:d,parent:l}),l!==e.jstree.root?(this._node_changed(l),this.redraw()):(this.get_container_ul().children(".jstree-initial-node").remove(),this.redraw(!0)),this._data.core.selected.length!==p&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),n.call(this,!0)},_append_json_data:function(t,i,n,s){if(null!==this.element){(t=this.get_node(t)).children=[],t.children_d=[],i.d&&"string"==typeof(i=i.d)&&(i=JSON.parse(i)),e.vakata.is_array(i)||(i=[i]);var o=null,r={df:this._model.default_state,dat:i,par:t.id,m:this._model.data,t_id:this._id,t_cnt:this._cnt,sel:this._data.core.selected},a=this,l=function(e,t){e.data&&(e=e.data);var i,n,s,o,r=e.dat,l=e.par,c=[],d=[],h=[],u=e.df,p=e.t_id,f=e.t_cnt,g=e.m,m=g[l],v=e.sel,_=function(e,i,n){n=n?n.concat():[],i&&n.unshift(i);var s,o,r,a,l=e.id.toString(),c={id:l,text:e.text||"",icon:e.icon===t||e.icon,parent:i,parents:n,children:e.children||[],children_d:e.children_d||[],data:e.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(s in u)u.hasOwnProperty(s)&&(c.state[s]=u[s]);if(e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(c.icon=e.data.jstree.icon),c.icon!==t&&null!==c.icon&&""!==c.icon||(c.icon=!0),e&&e.data&&(c.data=e.data,e.data.jstree))for(s in e.data.jstree)e.data.jstree.hasOwnProperty(s)&&(c.state[s]=e.data.jstree[s]);if(e&&"object"==typeof e.state)for(s in e.state)e.state.hasOwnProperty(s)&&(c.state[s]=e.state[s]);if(e&&"object"==typeof e.li_attr)for(s in e.li_attr)e.li_attr.hasOwnProperty(s)&&(c.li_attr[s]=e.li_attr[s]);if(c.li_attr.id||(c.li_attr.id=l),e&&"object"==typeof e.a_attr)for(s in e.a_attr)e.a_attr.hasOwnProperty(s)&&(c.a_attr[s]=e.a_attr[s]);for(e&&e.children&&!0===e.children&&(c.state.loaded=!1,c.children=[],c.children_d=[]),g[c.id]=c,s=0,o=c.children.length;s<o;s++)r=_(g[c.children[s]],c.id,n),a=g[r],c.children_d.push(r),a.children_d.length&&(c.children_d=c.children_d.concat(a.children_d));return delete e.data,delete e.children,g[c.id].original=e,c.state.selected&&h.push(c.id),c.id},y=function(e,i,n){n=n?n.concat():[],i&&n.unshift(i);var s,o,r,a,l,c=!1;do{c="j"+p+"_"+ ++f}while(g[c]);for(s in l={id:!1,text:"string"==typeof e?e:"",icon:"object"!=typeof e||e.icon===t||e.icon,parent:i,parents:n,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1},u)u.hasOwnProperty(s)&&(l.state[s]=u[s]);if(e&&e.id&&(l.id=e.id.toString()),e&&e.text&&(l.text=e.text),e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(l.icon=e.data.jstree.icon),l.icon!==t&&null!==l.icon&&""!==l.icon||(l.icon=!0),e&&e.data&&(l.data=e.data,e.data.jstree))for(s in e.data.jstree)e.data.jstree.hasOwnProperty(s)&&(l.state[s]=e.data.jstree[s]);if(e&&"object"==typeof e.state)for(s in e.state)e.state.hasOwnProperty(s)&&(l.state[s]=e.state[s]);if(e&&"object"==typeof e.li_attr)for(s in e.li_attr)e.li_attr.hasOwnProperty(s)&&(l.li_attr[s]=e.li_attr[s]);if(l.li_attr.id&&!l.id&&(l.id=l.li_attr.id.toString()),l.id||(l.id=c),l.li_attr.id||(l.li_attr.id=l.id),e&&"object"==typeof e.a_attr)for(s in e.a_attr)e.a_attr.hasOwnProperty(s)&&(l.a_attr[s]=e.a_attr[s]);if(e&&e.children&&e.children.length){for(s=0,o=e.children.length;s<o;s++)r=y(e.children[s],l.id,n),a=g[r],l.children.push(r),a.children_d.length&&(l.children_d=l.children_d.concat(a.children_d));l.children_d=l.children_d.concat(l.children)}return e&&e.children&&!0===e.children&&(l.state.loaded=!1,l.children=[],l.children_d=[]),delete e.data,delete e.children,l.original=e,g[l.id]=l,l.state.selected&&h.push(l.id),l.id};if(r.length&&r[0].id!==t&&r[0].parent!==t){for(n=0,s=r.length;n<s;n++)r[n].children||(r[n].children=[]),r[n].state||(r[n].state={}),g[r[n].id.toString()]=r[n];for(n=0,s=r.length;n<s;n++)g[r[n].parent.toString()]?(g[r[n].parent.toString()].children.push(r[n].id.toString()),m.children_d.push(r[n].id.toString())):void 0!==a&&(a._data.core.last_error={error:"parse",plugin:"core",id:"core_07",reason:"Node with invalid parent",data:JSON.stringify({id:r[n].id.toString(),parent:r[n].parent.toString()})},a.settings.core.error.call(a,a._data.core.last_error));for(n=0,s=m.children.length;n<s;n++)i=_(g[m.children[n]],l,m.parents.concat()),d.push(i),g[i].children_d.length&&(d=d.concat(g[i].children_d));for(n=0,s=m.parents.length;n<s;n++)g[m.parents[n]].children_d=g[m.parents[n]].children_d.concat(d);o={cnt:f,mod:g,sel:v,par:l,dpc:d,add:h}}else{for(n=0,s=r.length;n<s;n++)(i=y(r[n],l,m.parents.concat()))&&(c.push(i),d.push(i),g[i].children_d.length&&(d=d.concat(g[i].children_d)));for(m.children=c,m.children_d=d,n=0,s=m.parents.length;n<s;n++)g[m.parents[n]].children_d=g[m.parents[n]].children_d.concat(d);o={cnt:f,mod:g,sel:v,par:l,dpc:d,add:h}}if("undefined"!=typeof window&&void 0!==window.document)return o;postMessage(o)},d=function(t,i){if(null!==this.element){this._cnt=t.cnt;var s,o=this._model.data;for(s in o)o.hasOwnProperty(s)&&o[s].state&&o[s].state.loading&&t.mod[s]&&(t.mod[s].state.loading=!0);if(this._model.data=t.mod,i){var r,l=t.add,d=t.sel,h=this._data.core.selected.slice();if(o=this._model.data,d.length!==h.length||e.vakata.array_unique(d.concat(h)).length!==d.length){for(s=0,r=d.length;s<r;s++)-1===e.inArray(d[s],l)&&-1===e.inArray(d[s],h)&&(o[d[s]].state.selected=!1);for(s=0,r=h.length;s<r;s++)-1===e.inArray(h[s],d)&&(o[h[s]].state.selected=!0)}}t.add.length&&(this._data.core.selected=this._data.core.selected.concat(t.add)),this.trigger("model",{nodes:t.dpc,parent:t.par}),t.par!==e.jstree.root?(this._node_changed(t.par),this.redraw()):this.redraw(!0),t.add.length&&this.trigger("changed",{action:"model",selected:this._data.core.selected}),!i&&c?c((function(){n.call(a,!0)})):n.call(a,!0)}};if(this.settings.core.worker&&window.Blob&&window.URL&&window.Worker)try{null===this._wrk&&(this._wrk=window.URL.createObjectURL(new window.Blob(["self.onmessage = "+l.toString()],{type:"text/javascript"}))),!this._data.core.working||s?(this._data.core.working=!0,(o=new window.Worker(this._wrk)).onmessage=function(e){d.call(this,e.data,!0);try{o.terminate(),o=null}catch(e){}this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1}.bind(this),r.par?o.postMessage(r):this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1):this._data.core.worker_queue.push([t,i,n,!0])}catch(e){d.call(this,l(r),!1),this._data.core.worker_queue.length?this._append_json_data.apply(this,this._data.core.worker_queue.shift()):this._data.core.working=!1}else d.call(this,l(r),!1)}},_parse_model_from_html:function(i,n,s){s=s?[].concat(s):[],n&&s.unshift(n);var o,r,a,l,c,d=this._model.data,h={id:!1,text:!1,icon:!0,parent:n,parents:s,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(a in this._model.default_state)this._model.default_state.hasOwnProperty(a)&&(h.state[a]=this._model.default_state[a]);if(l=e.vakata.attributes(i,!0),e.each(l,(function(t,i){if(!(i=e.vakata.trim(i)).length)return!0;h.li_attr[t]=i,"id"===t&&(h.id=i.toString())})),(l=i.children("a").first()).length&&(l=e.vakata.attributes(l,!0),e.each(l,(function(t,i){(i=e.vakata.trim(i)).length&&(h.a_attr[t]=i)}))),(l=i.children("a").first().length?i.children("a").first().clone():i.clone()).children("ins, i, ul").remove(),l=l.html(),l=e("<div></div>").html(l),h.text=this.settings.core.force_text?l.text():l.html(),l=i.data(),h.data=l?e.extend(!0,{},l):null,h.state.opened=i.hasClass("jstree-open"),h.state.selected=i.children("a").hasClass("jstree-clicked"),h.state.disabled=i.children("a").hasClass("jstree-disabled"),h.data&&h.data.jstree)for(a in h.data.jstree)h.data.jstree.hasOwnProperty(a)&&(h.state[a]=h.data.jstree[a]);(l=i.children("a").children(".jstree-themeicon")).length&&(h.icon=!l.hasClass("jstree-themeicon-hidden")&&l.attr("rel")),h.state.icon!==t&&(h.icon=h.state.icon),h.icon!==t&&null!==h.icon&&""!==h.icon||(h.icon=!0),l=i.children("ul").children("li");do{c="j"+this._id+"_"+ ++this._cnt}while(d[c]);return h.id=h.li_attr.id?h.li_attr.id.toString():c,l.length?(l.each(function(t,i){o=this._parse_model_from_html(e(i),h.id,s),r=this._model.data[o],h.children.push(o),r.children_d.length&&(h.children_d=h.children_d.concat(r.children_d))}.bind(this)),h.children_d=h.children_d.concat(h.children)):i.hasClass("jstree-closed")&&(h.state.loaded=!1),h.li_attr.class&&(h.li_attr.class=h.li_attr.class.replace("jstree-closed","").replace("jstree-open","")),h.a_attr.class&&(h.a_attr.class=h.a_attr.class.replace("jstree-clicked","").replace("jstree-disabled","")),d[h.id]=h,h.state.selected&&this._data.core.selected.push(h.id),h.id},_parse_model_from_flat_json:function(e,i,n){n=n?n.concat():[],i&&n.unshift(i);var s,o,r,a,l=e.id.toString(),c=this._model.data,d=this._model.default_state,h={id:l,text:e.text||"",icon:e.icon===t||e.icon,parent:i,parents:n,children:e.children||[],children_d:e.children_d||[],data:e.data,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1};for(s in d)d.hasOwnProperty(s)&&(h.state[s]=d[s]);if(e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(h.icon=e.data.jstree.icon),h.icon!==t&&null!==h.icon&&""!==h.icon||(h.icon=!0),e&&e.data&&(h.data=e.data,e.data.jstree))for(s in e.data.jstree)e.data.jstree.hasOwnProperty(s)&&(h.state[s]=e.data.jstree[s]);if(e&&"object"==typeof e.state)for(s in e.state)e.state.hasOwnProperty(s)&&(h.state[s]=e.state[s]);if(e&&"object"==typeof e.li_attr)for(s in e.li_attr)e.li_attr.hasOwnProperty(s)&&(h.li_attr[s]=e.li_attr[s]);if(h.li_attr.id||(h.li_attr.id=l),e&&"object"==typeof e.a_attr)for(s in e.a_attr)e.a_attr.hasOwnProperty(s)&&(h.a_attr[s]=e.a_attr[s]);for(e&&e.children&&!0===e.children&&(h.state.loaded=!1,h.children=[],h.children_d=[]),c[h.id]=h,s=0,o=h.children.length;s<o;s++)a=c[r=this._parse_model_from_flat_json(c[h.children[s]],h.id,n)],h.children_d.push(r),a.children_d.length&&(h.children_d=h.children_d.concat(a.children_d));return delete e.data,delete e.children,c[h.id].original=e,h.state.selected&&this._data.core.selected.push(h.id),h.id},_parse_model_from_json:function(e,i,n){n=n?n.concat():[],i&&n.unshift(i);var s,o,r,a,l,c=!1,d=this._model.data,h=this._model.default_state;do{c="j"+this._id+"_"+ ++this._cnt}while(d[c]);for(s in l={id:!1,text:"string"==typeof e?e:"",icon:"object"!=typeof e||e.icon===t||e.icon,parent:i,parents:n,children:[],children_d:[],data:null,state:{},li_attr:{id:!1},a_attr:{href:"#"},original:!1},h)h.hasOwnProperty(s)&&(l.state[s]=h[s]);if(e&&e.id&&(l.id=e.id.toString()),e&&e.text&&(l.text=e.text),e&&e.data&&e.data.jstree&&e.data.jstree.icon&&(l.icon=e.data.jstree.icon),l.icon!==t&&null!==l.icon&&""!==l.icon||(l.icon=!0),e&&e.data&&(l.data=e.data,e.data.jstree))for(s in e.data.jstree)e.data.jstree.hasOwnProperty(s)&&(l.state[s]=e.data.jstree[s]);if(e&&"object"==typeof e.state)for(s in e.state)e.state.hasOwnProperty(s)&&(l.state[s]=e.state[s]);if(e&&"object"==typeof e.li_attr)for(s in e.li_attr)e.li_attr.hasOwnProperty(s)&&(l.li_attr[s]=e.li_attr[s]);if(l.li_attr.id&&!l.id&&(l.id=l.li_attr.id.toString()),l.id||(l.id=c),l.li_attr.id||(l.li_attr.id=l.id),e&&"object"==typeof e.a_attr)for(s in e.a_attr)e.a_attr.hasOwnProperty(s)&&(l.a_attr[s]=e.a_attr[s]);if(e&&e.children&&e.children.length){for(s=0,o=e.children.length;s<o;s++)a=d[r=this._parse_model_from_json(e.children[s],l.id,n)],l.children.push(r),a.children_d.length&&(l.children_d=l.children_d.concat(a.children_d));l.children_d=l.children.concat(l.children_d)}return e&&e.children&&!0===e.children&&(l.state.loaded=!1,l.children=[],l.children_d=[]),delete e.data,delete e.children,l.original=e,d[l.id]=l,l.state.selected&&this._data.core.selected.push(l.id),l.id},_redraw:function(){var t,i,n,s=this._model.force_full_redraw?this._model.data[e.jstree.root].children.concat([]):this._model.changed.concat([]),o=l.createElement("UL"),r=this._data.core.focused;for(i=0,n=s.length;i<n;i++)(t=this.redraw_node(s[i],!0,this._model.force_full_redraw))&&this._model.force_full_redraw&&o.appendChild(t);this._model.force_full_redraw&&(o.className=this.get_container_ul()[0].className,o.setAttribute("role","group"),this.element.empty().append(o)),null!==r&&this.settings.core.restore_focus&&((t=this.get_node(r,!0))&&t.length&&t.children(".jstree-anchor")[0]!==l.activeElement?t.children(".jstree-anchor").trigger("focus"):this._data.core.focused=null),this._model.force_full_redraw=!1,this._model.changed=[],this.trigger("redraw",{nodes:s})},redraw:function(e){e&&(this._model.force_full_redraw=!0),this._redraw()},draw_children:function(t){var i=this.get_node(t),n=!1,s=!1,o=!1,r=l;if(!i)return!1;if(i.id===e.jstree.root)return this.redraw(!0);if(!(t=this.get_node(t,!0))||!t.length)return!1;if(t.children(".jstree-children").remove(),t=t[0],i.children.length&&i.state.loaded){for((o=r.createElement("UL")).setAttribute("role","group"),o.className="jstree-children",n=0,s=i.children.length;n<s;n++)o.appendChild(this.redraw_node(i.children[n],!0,!0));t.appendChild(o)}},redraw_node:function(t,i,n,s){var o=this.get_node(t),r=!1,a=!1,c=!1,d=!1,h=!1,u=!1,p="",f=l,g=this._model.data,m=!1,v=null,_=0,y=0,b=!1,w=!1;if(!o)return!1;if(o.id===e.jstree.root)return this.redraw(!0);if(i=i||0===o.children.length,t=l.querySelector?this.element[0].querySelector("#"+(-1!=="0123456789".indexOf(o.id[0])?"\\3"+o.id[0]+" "+o.id.substr(1).replace(e.jstree.idregex,"\\$&"):o.id.replace(e.jstree.idregex,"\\$&"))):l.getElementById(o.id))t=e(t),n||((r=t.parent().parent()[0])===this.element[0]&&(r=null),a=t.index()),i||!o.children.length||t.children(".jstree-children").length||(i=!0),i||(c=t.children(".jstree-children")[0]),m=t.children(".jstree-anchor")[0]===l.activeElement,t.remove();else if(i=!0,!n){if(!(null===(r=o.parent!==e.jstree.root?e("#"+o.parent.replace(e.jstree.idregex,"\\$&"),this.element)[0]:null)||r&&g[o.parent].state.opened))return!1;a=e.inArray(o.id,null===r?g[e.jstree.root].children:g[o.parent].children)}for(d in t=this._data.core.node.cloneNode(!0),p="jstree-node ",o.li_attr)if(o.li_attr.hasOwnProperty(d)){if("id"===d)continue;"class"!==d?t.setAttribute(d,o.li_attr[d]):p+=o.li_attr[d]}for(o.a_attr.id||(o.a_attr.id=o.id+"_anchor"),t.childNodes[1].setAttribute("aria-selected",!!o.state.selected),t.childNodes[1].setAttribute("aria-level",o.parents.length),this.settings.core.compute_elements_positions&&(t.childNodes[1].setAttribute("aria-setsize",g[o.parent].children.length),t.childNodes[1].setAttribute("aria-posinset",g[o.parent].children.indexOf(o.id)+1)),o.state.disabled&&t.childNodes[1].setAttribute("aria-disabled",!0),d=0,h=o.children.length;d<h;d++)if(!g[o.children[d]].state.hidden){b=!0;break}if(null!==o.parent&&g[o.parent]&&!o.state.hidden&&(d=e.inArray(o.id,g[o.parent].children),w=o.id,-1!==d))for(d++,h=g[o.parent].children.length;d<h&&(g[g[o.parent].children[d]].state.hidden||(w=g[o.parent].children[d]),w===o.id);d++);for(h in o.state.hidden&&(p+=" jstree-hidden"),o.state.loading&&(p+=" jstree-loading"),o.state.loaded&&!b?p+=" jstree-leaf":(p+=o.state.opened&&o.state.loaded?" jstree-open":" jstree-closed",t.childNodes[1].setAttribute("aria-expanded",o.state.opened&&o.state.loaded)),w===o.id&&(p+=" jstree-last"),t.id=o.id,t.className=p,p=(o.state.selected?" jstree-clicked":"")+(o.state.disabled?" jstree-disabled":""),o.a_attr)if(o.a_attr.hasOwnProperty(h)){if("href"===h&&"#"===o.a_attr[h])continue;"class"!==h?t.childNodes[1].setAttribute(h,o.a_attr[h]):p+=" "+o.a_attr[h]}if(p.length&&(t.childNodes[1].className="jstree-anchor "+p),(o.icon&&!0!==o.icon||!1===o.icon)&&(!1===o.icon?t.childNodes[1].childNodes[0].className+=" jstree-themeicon-hidden":-1===o.icon.indexOf("/")&&-1===o.icon.indexOf(".")?t.childNodes[1].childNodes[0].className+=" "+o.icon+" jstree-themeicon-custom":(t.childNodes[1].childNodes[0].style.backgroundImage='url("'+o.icon+'")',t.childNodes[1].childNodes[0].style.backgroundPosition="center center",t.childNodes[1].childNodes[0].style.backgroundSize="auto",t.childNodes[1].childNodes[0].className+=" jstree-themeicon-custom")),this.settings.core.force_text?t.childNodes[1].appendChild(f.createTextNode(o.text)):t.childNodes[1].innerHTML+=o.text,i&&o.children.length&&(o.state.opened||s)&&o.state.loaded){for((u=f.createElement("UL")).setAttribute("role","group"),u.className="jstree-children",d=0,h=o.children.length;d<h;d++)u.appendChild(this.redraw_node(o.children[d],i,!0));t.appendChild(u)}if(c&&t.appendChild(c),!n){for(r||(r=this.element[0]),d=0,h=r.childNodes.length;d<h;d++)if(r.childNodes[d]&&r.childNodes[d].className&&-1!==r.childNodes[d].className.indexOf("jstree-children")){v=r.childNodes[d];break}v||((v=f.createElement("UL")).setAttribute("role","group"),v.className="jstree-children",r.appendChild(v)),a<(r=v).childNodes.length?r.insertBefore(t,r.childNodes[a]):r.appendChild(t),m&&(_=this.element[0].scrollTop,y=this.element[0].scrollLeft,t.childNodes[1].focus(),this.element[0].scrollTop=_,this.element[0].scrollLeft=y)}return o.state.opened&&!o.state.loaded&&(o.state.opened=!1,setTimeout(function(){this.open_node(o.id,!1,0)}.bind(this),0)),t},open_node:function(i,n,s){var o,r,a,l;if(e.vakata.is_array(i)){for(o=0,r=(i=i.slice()).length;o<r;o++)this.open_node(i[o],n,s);return!0}return!(!(i=this.get_node(i))||i.id===e.jstree.root)&&(s=s===t?this.settings.core.animation:s,this.is_closed(i)?this.is_loaded(i)?(a=this.get_node(i,!0),l=this,a.length&&(s&&a.children(".jstree-children").length&&a.children(".jstree-children").stop(!0,!0),i.children.length&&!this._firstChild(a.children(".jstree-children")[0])&&this.draw_children(i),s?(this.trigger("before_open",{node:i}),a.children(".jstree-children").css("display","none").end().removeClass("jstree-closed").addClass("jstree-open").children(".jstree-anchor").attr("aria-expanded",!0).end().children(".jstree-children").stop(!0,!0).slideDown(s,(function(){this.style.display="",l.element&&l.trigger("after_open",{node:i})}))):(this.trigger("before_open",{node:i}),a[0].className=a[0].className.replace("jstree-closed","jstree-open"),a[0].childNodes[1].setAttribute("aria-expanded",!0))),i.state.opened=!0,n&&n.call(this,i,!0),a.length||this.trigger("before_open",{node:i}),this.trigger("open_node",{node:i}),s&&a.length||this.trigger("after_open",{node:i}),!0):this.is_loading(i)?setTimeout(function(){this.open_node(i,n,s)}.bind(this),500):void this.load_node(i,(function(e,t){return t?this.open_node(e,n,s):!!n&&n.call(this,e,!1)})):(n&&n.call(this,i,!1),!1))},_open_to:function(t){if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;var i,n,s=t.parents;for(i=0,n=s.length;i<n;i+=1)i!==e.jstree.root&&this.open_node(s[i],!1,0);return e("#"+t.id.replace(e.jstree.idregex,"\\$&"),this.element)},close_node:function(i,n){var s,o,r,a;if(e.vakata.is_array(i)){for(s=0,o=(i=i.slice()).length;s<o;s++)this.close_node(i[s],n);return!0}return!(!(i=this.get_node(i))||i.id===e.jstree.root)&&!this.is_closed(i)&&(n=n===t?this.settings.core.animation:n,r=this,a=this.get_node(i,!0),i.state.opened=!1,this.trigger("close_node",{node:i}),void(a.length?n?a.children(".jstree-children").attr("style","display:block !important").end().removeClass("jstree-open").addClass("jstree-closed").children(".jstree-anchor").attr("aria-expanded",!1).end().children(".jstree-children").stop(!0,!0).slideUp(n,(function(){this.style.display="",a.children(".jstree-children").remove(),r.element&&r.trigger("after_close",{node:i})})):(a[0].className=a[0].className.replace("jstree-open","jstree-closed"),a.children(".jstree-anchor").attr("aria-expanded",!1),a.children(".jstree-children").remove(),this.trigger("after_close",{node:i})):this.trigger("after_close",{node:i})))},toggle_node:function(t){var i,n;if(e.vakata.is_array(t)){for(i=0,n=(t=t.slice()).length;i<n;i++)this.toggle_node(t[i]);return!0}return this.is_closed(t)?this.open_node(t):this.is_open(t)?this.close_node(t):void 0},open_all:function(t,i,n){if(t||(t=e.jstree.root),!(t=this.get_node(t)))return!1;var s,o,r,a=t.id===e.jstree.root?this.get_container_ul():this.get_node(t,!0);if(!a.length){for(s=0,o=t.children_d.length;s<o;s++)this.is_closed(this._model.data[t.children_d[s]])&&(this._model.data[t.children_d[s]].state.opened=!0);return this.trigger("open_all",{node:t})}n=n||a,r=this,(a=this.is_closed(t)?a.find(".jstree-closed").addBack():a.find(".jstree-closed")).each((function(){r.open_node(this,(function(e,t){t&&this.is_parent(e)&&this.open_all(e,i,n)}),i||0)})),0===n.find(".jstree-closed").length&&this.trigger("open_all",{node:this.get_node(n)})},close_all:function(t,i){if(t||(t=e.jstree.root),!(t=this.get_node(t)))return!1;var n,s,o=t.id===e.jstree.root?this.get_container_ul():this.get_node(t,!0),r=this;for(o.length&&(o=this.is_open(t)?o.find(".jstree-open").addBack():o.find(".jstree-open"),e(o.get().reverse()).each((function(){r.close_node(this,i||0)}))),n=0,s=t.children_d.length;n<s;n++)this._model.data[t.children_d[n]].state.opened=!1;this.trigger("close_all",{node:t})},is_disabled:function(e){return(e=this.get_node(e))&&e.state&&e.state.disabled},enable_node:function(t){var i,n;if(e.vakata.is_array(t)){for(i=0,n=(t=t.slice()).length;i<n;i++)this.enable_node(t[i]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;t.state.disabled=!1,this.get_node(t,!0).children(".jstree-anchor").removeClass("jstree-disabled").attr("aria-disabled",!1),this.trigger("enable_node",{node:t})},disable_node:function(t){var i,n;if(e.vakata.is_array(t)){for(i=0,n=(t=t.slice()).length;i<n;i++)this.disable_node(t[i]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;t.state.disabled=!0,this.get_node(t,!0).children(".jstree-anchor").addClass("jstree-disabled").attr("aria-disabled",!0),this.trigger("disable_node",{node:t})},is_hidden:function(e){return!0===(e=this.get_node(e)).state.hidden},hide_node:function(t,i){var n,s;if(e.vakata.is_array(t)){for(n=0,s=(t=t.slice()).length;n<s;n++)this.hide_node(t[n],!0);return i||this.redraw(),!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;t.state.hidden||(t.state.hidden=!0,this._node_changed(t.parent),i||this.redraw(),this.trigger("hide_node",{node:t}))},show_node:function(t,i){var n,s;if(e.vakata.is_array(t)){for(n=0,s=(t=t.slice()).length;n<s;n++)this.show_node(t[n],!0);return i||this.redraw(),!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;t.state.hidden&&(t.state.hidden=!1,this._node_changed(t.parent),i||this.redraw(),this.trigger("show_node",{node:t}))},hide_all:function(t){var i,n=this._model.data,s=[];for(i in n)n.hasOwnProperty(i)&&i!==e.jstree.root&&!n[i].state.hidden&&(n[i].state.hidden=!0,s.push(i));return this._model.force_full_redraw=!0,t||this.redraw(),this.trigger("hide_all",{nodes:s}),s},show_all:function(t){var i,n=this._model.data,s=[];for(i in n)n.hasOwnProperty(i)&&i!==e.jstree.root&&n[i].state.hidden&&(n[i].state.hidden=!1,s.push(i));return this._model.force_full_redraw=!0,t||this.redraw(),this.trigger("show_all",{nodes:s}),s},activate_node:function(e,i){if(this.is_disabled(e))return!1;if(i&&"object"==typeof i||(i={}),this._data.core.last_clicked=this._data.core.last_clicked&&this._data.core.last_clicked.id!==t?this.get_node(this._data.core.last_clicked.id):null,this._data.core.last_clicked&&!this._data.core.last_clicked.state.selected&&(this._data.core.last_clicked=null),!this._data.core.last_clicked&&this._data.core.selected.length&&(this._data.core.last_clicked=this.get_node(this._data.core.selected[this._data.core.selected.length-1])),this.settings.core.multiple&&(i.metaKey||i.ctrlKey||i.shiftKey)&&(!i.shiftKey||this._data.core.last_clicked&&this.get_parent(e)&&this.get_parent(e)===this._data.core.last_clicked.parent))if(i.shiftKey){var n,s,o=this.get_node(e).id,r=this._data.core.last_clicked.id,a=this.get_node(this._data.core.last_clicked.parent).children,l=!1;for(n=0,s=a.length;n<s;n+=1)a[n]===o&&(l=!l),a[n]===r&&(l=!l),this.is_disabled(a[n])||!l&&a[n]!==o&&a[n]!==r?this.deselect_node(a[n],!0,i):this.is_hidden(a[n])||this.select_node(a[n],!0,!1,i);this.trigger("changed",{action:"select_node",node:this.get_node(e),selected:this._data.core.selected,event:i})}else this.is_selected(e)?this.deselect_node(e,!1,i):this.select_node(e,!1,!1,i);else!this.settings.core.multiple&&(i.metaKey||i.ctrlKey||i.shiftKey)&&this.is_selected(e)?this.deselect_node(e,!1,i):(this.deselect_all(!0),this.select_node(e,!1,!1,i),this._data.core.last_clicked=this.get_node(e));this.trigger("activate_node",{node:this.get_node(e),event:i})},hover_node:function(e){if(!(e=this.get_node(e,!0))||!e.length||e.children(".jstree-hovered").length)return!1;var t=this.element.find(".jstree-hovered"),i=this.element;t&&t.length&&this.dehover_node(t),e.children(".jstree-anchor").addClass("jstree-hovered"),this.trigger("hover_node",{node:this.get_node(e)}),setTimeout((function(){i.attr("aria-activedescendant",e[0].id)}),0)},dehover_node:function(e){if(!(e=this.get_node(e,!0))||!e.length||!e.children(".jstree-hovered").length)return!1;e.children(".jstree-anchor").removeClass("jstree-hovered"),this.trigger("dehover_node",{node:this.get_node(e)})},select_node:function(t,i,n,s){var o,r,a;if(e.vakata.is_array(t)){for(r=0,a=(t=t.slice()).length;r<a;r++)this.select_node(t[r],i,n,s);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;o=this.get_node(t,!0),t.state.selected||(t.state.selected=!0,this._data.core.selected.push(t.id),n||(o=this._open_to(t)),o&&o.length&&o.children(".jstree-anchor").addClass("jstree-clicked").attr("aria-selected",!0),this.trigger("select_node",{node:t,selected:this._data.core.selected,event:s}),i||this.trigger("changed",{action:"select_node",node:t,selected:this._data.core.selected,event:s}))},deselect_node:function(t,i,n){var s,o,r;if(e.vakata.is_array(t)){for(s=0,o=(t=t.slice()).length;s<o;s++)this.deselect_node(t[s],i,n);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;r=this.get_node(t,!0),t.state.selected&&(t.state.selected=!1,this._data.core.selected=e.vakata.array_remove_item(this._data.core.selected,t.id),r.length&&r.children(".jstree-anchor").removeClass("jstree-clicked").attr("aria-selected",!1),this.trigger("deselect_node",{node:t,selected:this._data.core.selected,event:n}),i||this.trigger("changed",{action:"deselect_node",node:t,selected:this._data.core.selected,event:n}))},select_all:function(t){var i,n,s=this._data.core.selected.concat([]);for(this._data.core.selected=this._model.data[e.jstree.root].children_d.concat(),i=0,n=this._data.core.selected.length;i<n;i++)this._model.data[this._data.core.selected[i]]&&(this._model.data[this._data.core.selected[i]].state.selected=!0);this.redraw(!0),this.trigger("select_all",{selected:this._data.core.selected}),t||this.trigger("changed",{action:"select_all",selected:this._data.core.selected,old_selection:s})},deselect_all:function(e){var t,i,n=this._data.core.selected.concat([]);for(t=0,i=this._data.core.selected.length;t<i;t++)this._model.data[this._data.core.selected[t]]&&(this._model.data[this._data.core.selected[t]].state.selected=!1);this._data.core.selected=[],this.element.find(".jstree-clicked").removeClass("jstree-clicked").attr("aria-selected",!1),this.trigger("deselect_all",{selected:this._data.core.selected,node:n}),e||this.trigger("changed",{action:"deselect_all",selected:this._data.core.selected,old_selection:n})},is_selected:function(t){return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.state.selected},get_selected:function(t){return t?e.map(this._data.core.selected,function(e){return this.get_node(e)}.bind(this)):this._data.core.selected.slice()},get_top_selected:function(t){var i,n,s,o,r=this.get_selected(!0),a={};for(i=0,n=r.length;i<n;i++)a[r[i].id]=r[i];for(i=0,n=r.length;i<n;i++)for(s=0,o=r[i].children_d.length;s<o;s++)a[r[i].children_d[s]]&&delete a[r[i].children_d[s]];for(i in r=[],a)a.hasOwnProperty(i)&&r.push(i);return t?e.map(r,function(e){return this.get_node(e)}.bind(this)):r},get_bottom_selected:function(t){var i,n,s=this.get_selected(!0),o=[];for(i=0,n=s.length;i<n;i++)s[i].children.length||o.push(s[i].id);return t?e.map(o,function(e){return this.get_node(e)}.bind(this)):o},get_state:function(){var t,i={core:{open:[],loaded:[],scroll:{left:this.element.scrollLeft(),top:this.element.scrollTop()},selected:[]}};for(t in this._model.data)this._model.data.hasOwnProperty(t)&&t!==e.jstree.root&&(this._model.data[t].state.loaded&&this.settings.core.loaded_state&&i.core.loaded.push(t),this._model.data[t].state.opened&&i.core.open.push(t),this._model.data[t].state.selected&&i.core.selected.push(t));return i},set_state:function(i,n){if(i){if(i.core&&i.core.selected&&i.core.initial_selection===t&&(i.core.initial_selection=this._data.core.selected.concat([]).sort().join(",")),i.core){var s,o;if(i.core.loaded)return this.settings.core.loaded_state&&e.vakata.is_array(i.core.loaded)&&i.core.loaded.length?this._load_nodes(i.core.loaded,(function(e){delete i.core.loaded,this.set_state(i,n)})):(delete i.core.loaded,this.set_state(i,n)),!1;if(i.core.open)return e.vakata.is_array(i.core.open)&&i.core.open.length?this._load_nodes(i.core.open,(function(e){this.open_node(e,!1,0),delete i.core.open,this.set_state(i,n)})):(delete i.core.open,this.set_state(i,n)),!1;if(i.core.scroll)return i.core.scroll&&i.core.scroll.left!==t&&this.element.scrollLeft(i.core.scroll.left),i.core.scroll&&i.core.scroll.top!==t&&this.element.scrollTop(i.core.scroll.top),delete i.core.scroll,this.set_state(i,n),!1;if(i.core.selected)return s=this,i.core.initial_selection!==t&&i.core.initial_selection!==this._data.core.selected.concat([]).sort().join(",")||(this.deselect_all(),e.each(i.core.selected,(function(e,t){s.select_node(t,!1,!0)}))),delete i.core.initial_selection,delete i.core.selected,this.set_state(i,n),!1;for(o in i)i.hasOwnProperty(o)&&"core"!==o&&-1===e.inArray(o,this.settings.plugins)&&delete i[o];if(e.isEmptyObject(i.core))return delete i.core,this.set_state(i,n),!1}return!e.isEmptyObject(i)||(i=null,n&&n.call(this),this.trigger("set_state"),!1)}return!1},refresh:function(t,i){this._data.core.state=!0===i?{}:this.get_state(),i&&e.vakata.is_function(i)&&(this._data.core.state=i.call(this,this._data.core.state)),this._cnt=0,this._model.data={},this._model.data[e.jstree.root]={id:e.jstree.root,parent:null,parents:[],children:[],children_d:[],state:{loaded:!1}},this._data.core.selected=[],this._data.core.last_clicked=null,this._data.core.focused=null;var n=this.get_container_ul()[0].className;t||(this.element.html("<ul class='"+n+"' role='group'><li class='jstree-initial-node jstree-loading jstree-leaf jstree-last' role='none' id='j"+this._id+"_loading'><i class='jstree-icon jstree-ocl'></i><a class='jstree-anchor' role='treeitem' href='#'><i class='jstree-icon jstree-themeicon-hidden'></i>"+this.get_string("Loading ...")+"</a></li></ul>"),this.element.attr("aria-activedescendant","j"+this._id+"_loading")),this.load_node(e.jstree.root,(function(t,i){i&&(this.get_container_ul()[0].className=n,this._firstChild(this.get_container_ul()[0])&&this.element.attr("aria-activedescendant",this._firstChild(this.get_container_ul()[0]).id),this.set_state(e.extend(!0,{},this._data.core.state),(function(){this.trigger("refresh")}))),this._data.core.state=null}))},refresh_node:function(t){if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;var i=[],n=[],s=this._data.core.selected.concat([]);n.push(t.id),!0===t.state.opened&&i.push(t.id),this.get_node(t,!0).find(".jstree-open").each((function(){n.push(this.id),i.push(this.id)})),this._load_nodes(n,function(e){this.open_node(i,!1,0),this.select_node(s),this.trigger("refresh_node",{node:t,nodes:e})}.bind(this),!1,!0)},set_id:function(t,i){if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;var n,s,o=this._model.data,r=t.id;for(i=i.toString(),o[t.parent].children[e.inArray(t.id,o[t.parent].children)]=i,n=0,s=t.parents.length;n<s;n++)o[t.parents[n]].children_d[e.inArray(t.id,o[t.parents[n]].children_d)]=i;for(n=0,s=t.children.length;n<s;n++)o[t.children[n]].parent=i;for(n=0,s=t.children_d.length;n<s;n++)o[t.children_d[n]].parents[e.inArray(t.id,o[t.children_d[n]].parents)]=i;return-1!==(n=e.inArray(t.id,this._data.core.selected))&&(this._data.core.selected[n]=i),(n=this.get_node(t.id,!0))&&(n.attr("id",i),this.element.attr("aria-activedescendant")===t.id&&this.element.attr("aria-activedescendant",i)),delete o[t.id],t.id=i,t.li_attr.id=i,o[i]=t,this.trigger("set_id",{node:t,new:t.id,old:r}),!0},get_text:function(t){return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.text},set_text:function(t,i){var n,s;if(e.vakata.is_array(t)){for(n=0,s=(t=t.slice()).length;n<s;n++)this.set_text(t[n],i);return!0}return!(!(t=this.get_node(t))||t.id===e.jstree.root||(t.text=i,this.get_node(t,!0).length&&this.redraw_node(t.id),this.trigger("set_text",{obj:t,text:i}),0))},get_json:function(t,i,n){if(!(t=this.get_node(t||e.jstree.root)))return!1;i&&i.flat&&!n&&(n=[]);var s,o,r={id:t.id,text:t.text,icon:this.get_icon(t),li_attr:e.extend(!0,{},t.li_attr),a_attr:e.extend(!0,{},t.a_attr),state:{},data:(!i||!i.no_data)&&e.extend(!0,e.vakata.is_array(t.data)?[]:{},t.data)};if(i&&i.flat?r.parent=t.parent:r.children=[],i&&i.no_state)delete r.state;else for(s in t.state)t.state.hasOwnProperty(s)&&(r.state[s]=t.state[s]);if(i&&i.no_li_attr&&delete r.li_attr,i&&i.no_a_attr&&delete r.a_attr,i&&i.no_id&&(delete r.id,r.li_attr&&r.li_attr.id&&delete r.li_attr.id,r.a_attr&&r.a_attr.id&&delete r.a_attr.id),i&&i.flat&&t.id!==e.jstree.root&&n.push(r),!i||!i.no_children)for(s=0,o=t.children.length;s<o;s++)i&&i.flat?this.get_json(t.children[s],i,n):r.children.push(this.get_json(t.children[s],i));return i&&i.flat?n:t.id===e.jstree.root?r.children:r},create_node:function(i,n,s,o,r){if(null===i&&(i=e.jstree.root),!(i=this.get_node(i)))return!1;if(!(s=s===t?"last":s).toString().match(/^(before|after)$/)&&!r&&!this.is_loaded(i))return this.load_node(i,(function(){this.create_node(i,n,s,o,!0)}));var a,l,c,d;switch(n||(n={text:this.get_string("New node")}),(n="string"==typeof n?{text:n}:e.extend(!0,{},n)).text===t&&(n.text=this.get_string("New node")),i.id===e.jstree.root&&("before"===s&&(s="first"),"after"===s&&(s="last")),s){case"before":a=this.get_node(i.parent),s=e.inArray(i.id,a.children),i=a;break;case"after":a=this.get_node(i.parent),s=e.inArray(i.id,a.children)+1,i=a;break;case"inside":case"first":s=0;break;case"last":s=i.children.length;break;default:s||(s=0)}if(s>i.children.length&&(s=i.children.length),n.id||(n.id=!0),!this.check("create_node",n,i,s))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(!0===n.id&&delete n.id,!(n=this._parse_model_from_json(n,i.id,i.parents.concat())))return!1;for(a=this.get_node(n),(l=[]).push(n),l=l.concat(a.children_d),this.trigger("model",{nodes:l,parent:i.id}),i.children_d=i.children_d.concat(l),c=0,d=i.parents.length;c<d;c++)this._model.data[i.parents[c]].children_d=this._model.data[i.parents[c]].children_d.concat(l);for(n=a,a=[],c=0,d=i.children.length;c<d;c++)a[c>=s?c+1:c]=i.children[c];return a[s]=n.id,i.children=a,this.redraw_node(i,!0),this.trigger("create_node",{node:this.get_node(n),parent:i.id,position:s}),o&&o.call(this,this.get_node(n)),n.id},rename_node:function(t,i){var n,s,o;if(e.vakata.is_array(t)){for(n=0,s=(t=t.slice()).length;n<s;n++)this.rename_node(t[n],i);return!0}return!(!(t=this.get_node(t))||t.id===e.jstree.root||(o=t.text,this.check("rename_node",t,this.get_parent(t),i)?(this.set_text(t,i),this.trigger("rename_node",{node:t,text:i,old:o}),0):(this.settings.core.error.call(this,this._data.core.last_error),1)))},delete_node:function(t){var i,n,s,o,r,a,l,c,d,h,u,p;if(e.vakata.is_array(t)){for(i=0,n=(t=t.slice()).length;i<n;i++)this.delete_node(t[i]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;if(s=this.get_node(t.parent),o=e.inArray(t.id,s.children),h=!1,!this.check("delete_node",t,s,o))return this.settings.core.error.call(this,this._data.core.last_error),!1;for(-1!==o&&(s.children=e.vakata.array_remove(s.children,o)),(r=t.children_d.concat([])).push(t.id),a=0,l=t.parents.length;a<l;a++)this._model.data[t.parents[a]].children_d=e.vakata.array_filter(this._model.data[t.parents[a]].children_d,(function(t){return-1===e.inArray(t,r)}));for(c=0,d=r.length;c<d;c++)if(this._model.data[r[c]].state.selected){h=!0;break}for(h&&(this._data.core.selected=e.vakata.array_filter(this._data.core.selected,(function(t){return-1===e.inArray(t,r)}))),this.trigger("delete_node",{node:t,parent:s.id}),h&&this.trigger("changed",{action:"delete_node",node:t,selected:this._data.core.selected,parent:s.id}),c=0,d=r.length;c<d;c++)delete this._model.data[r[c]];return-1!==e.inArray(this._data.core.focused,r)&&(this._data.core.focused=null,u=this.element[0].scrollTop,p=this.element[0].scrollLeft,s.id===e.jstree.root?this._model.data[e.jstree.root].children[0]&&this.get_node(this._model.data[e.jstree.root].children[0],!0).children(".jstree-anchor").triger("focus"):this.get_node(s,!0).children(".jstree-anchor").trigger("focus"),this.element[0].scrollTop=u,this.element[0].scrollLeft=p),this.redraw_node(s,!0),!0},check:function(t,i,n,s,o){i=i&&i.id?i:this.get_node(i),n=n&&n.id?n:this.get_node(n);var r=t.match(/^move_node|copy_node|create_node$/i)?n:i,a=this.settings.core.check_callback;if("move_node"===t||"copy_node"===t){if(!(o&&o.is_multi||"move_node"!==t||e.inArray(i.id,n.children)!==s))return this._data.core.last_error={error:"check",plugin:"core",id:"core_08",reason:"Moving node to its current position",data:JSON.stringify({chk:t,pos:s,obj:!(!i||!i.id)&&i.id,par:!(!n||!n.id)&&n.id})},!1;if(!(o&&o.is_multi||i.id!==n.id&&("move_node"!==t||e.inArray(i.id,n.children)!==s)&&-1===e.inArray(n.id,i.children_d)))return this._data.core.last_error={error:"check",plugin:"core",id:"core_01",reason:"Moving parent inside child",data:JSON.stringify({chk:t,pos:s,obj:!(!i||!i.id)&&i.id,par:!(!n||!n.id)&&n.id})},!1}return r&&r.data&&(r=r.data),r&&r.functions&&(!1===r.functions[t]||!0===r.functions[t])?(!1===r.functions[t]&&(this._data.core.last_error={error:"check",plugin:"core",id:"core_02",reason:"Node data prevents function: "+t,data:JSON.stringify({chk:t,pos:s,obj:!(!i||!i.id)&&i.id,par:!(!n||!n.id)&&n.id})}),r.functions[t]):!(!1===a||e.vakata.is_function(a)&&!1===a.call(this,t,i,n,s,o)||a&&!1===a[t])||(this._data.core.last_error={error:"check",plugin:"core",id:"core_03",reason:"User config for core.check_callback prevents function: "+t,data:JSON.stringify({chk:t,pos:s,obj:!(!i||!i.id)&&i.id,par:!(!n||!n.id)&&n.id})},!1)},last_error:function(){return this._data.core.last_error},move_node:function(i,n,s,o,r,a,l){var c,d,h,u,p,f,g,m,v,_,y,b,w,x;if(n=this.get_node(n),s=s===t?0:s,!n)return!1;if(!s.toString().match(/^(before|after)$/)&&!r&&!this.is_loaded(n))return this.load_node(n,(function(){this.move_node(i,n,s,o,!0,!1,l)}));if(e.vakata.is_array(i)){if(1!==i.length){for(c=0,d=i.length;c<d;c++)(v=this.move_node(i[c],n,s,o,r,!1,l))&&(n=v,s="after");return this.redraw(),!0}i=i[0]}if(!(i=i&&i.id?i:this.get_node(i))||i.id===e.jstree.root)return!1;if(h=(i.parent||e.jstree.root).toString(),p=s.toString().match(/^(before|after)$/)&&n.id!==e.jstree.root?this.get_node(n.parent):n,g=!(f=l||(this._model.data[i.id]?this:e.jstree.reference(i.id)))||!f._id||this._id!==f._id,u=f&&f._id&&h&&f._model.data[h]&&f._model.data[h].children?e.inArray(i.id,f._model.data[h].children):-1,f&&f._id&&(i=f._model.data[i.id]),g)return!!(v=this.copy_node(i,n,s,o,r,!1,l))&&(f&&f.delete_node(i),v);switch(n.id===e.jstree.root&&("before"===s&&(s="first"),"after"===s&&(s="last")),s){case"before":s=e.inArray(n.id,p.children);break;case"after":s=e.inArray(n.id,p.children)+1;break;case"inside":case"first":s=0;break;case"last":s=p.children.length;break;default:s||(s=0)}if(s>p.children.length&&(s=p.children.length),!this.check("move_node",i,p,s,{core:!0,origin:l,is_multi:f&&f._id&&f._id!==this._id,is_foreign:!f||!f._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(i.parent===p.id){for(m=p.children.concat(),-1!==(v=e.inArray(i.id,m))&&(m=e.vakata.array_remove(m,v),s>v&&s--),v=[],_=0,y=m.length;_<y;_++)v[_>=s?_+1:_]=m[_];v[s]=i.id,p.children=v,this._node_changed(p.id),this.redraw(p.id===e.jstree.root)}else{for((v=i.children_d.concat()).push(i.id),_=0,y=i.parents.length;_<y;_++){for(m=[],b=0,w=(x=f._model.data[i.parents[_]].children_d).length;b<w;b++)-1===e.inArray(x[b],v)&&m.push(x[b]);f._model.data[i.parents[_]].children_d=m}for(f._model.data[h].children=e.vakata.array_remove_item(f._model.data[h].children,i.id),_=0,y=p.parents.length;_<y;_++)this._model.data[p.parents[_]].children_d=this._model.data[p.parents[_]].children_d.concat(v);for(m=[],_=0,y=p.children.length;_<y;_++)m[_>=s?_+1:_]=p.children[_];for(m[s]=i.id,p.children=m,p.children_d.push(i.id),p.children_d=p.children_d.concat(i.children_d),i.parent=p.id,(v=p.parents.concat()).unshift(p.id),x=i.parents.length,i.parents=v,v=v.concat(),_=0,y=i.children_d.length;_<y;_++)this._model.data[i.children_d[_]].parents=this._model.data[i.children_d[_]].parents.slice(0,-1*x),Array.prototype.push.apply(this._model.data[i.children_d[_]].parents,v);h!==e.jstree.root&&p.id!==e.jstree.root||(this._model.force_full_redraw=!0),this._model.force_full_redraw||(this._node_changed(h),this._node_changed(p.id)),a||this.redraw()}return o&&o.call(this,i,p,s),this.trigger("move_node",{node:i,parent:p.id,position:s,old_parent:h,old_position:u,is_multi:f&&f._id&&f._id!==this._id,is_foreign:!f||!f._id,old_instance:f,new_instance:this}),i.id},copy_node:function(i,n,s,o,r,a,l){var c,d,h,u,p,f,g,m,v,_;if(n=this.get_node(n),s=s===t?0:s,!n)return!1;if(!s.toString().match(/^(before|after)$/)&&!r&&!this.is_loaded(n))return this.load_node(n,(function(){this.copy_node(i,n,s,o,!0,!1,l)}));if(e.vakata.is_array(i)){if(1!==i.length){for(c=0,d=i.length;c<d;c++)(u=this.copy_node(i[c],n,s,o,r,!0,l))&&(n=u,s="after");return this.redraw(),!0}i=i[0]}if(!(i=i&&i.id?i:this.get_node(i))||i.id===e.jstree.root)return!1;switch(m=(i.parent||e.jstree.root).toString(),v=s.toString().match(/^(before|after)$/)&&n.id!==e.jstree.root?this.get_node(n.parent):n,!(_=l||(this._model.data[i.id]?this:e.jstree.reference(i.id)))||!_._id||(this._id,_._id),_&&_._id&&(i=_._model.data[i.id]),n.id===e.jstree.root&&("before"===s&&(s="first"),"after"===s&&(s="last")),s){case"before":s=e.inArray(n.id,v.children);break;case"after":s=e.inArray(n.id,v.children)+1;break;case"inside":case"first":s=0;break;case"last":s=v.children.length;break;default:s||(s=0)}if(s>v.children.length&&(s=v.children.length),!this.check("copy_node",i,v,s,{core:!0,origin:l,is_multi:_&&_._id&&_._id!==this._id,is_foreign:!_||!_._id}))return this.settings.core.error.call(this,this._data.core.last_error),!1;if(!(g=_?_.get_json(i,{no_id:!0,no_data:!0,no_state:!0}):i))return!1;if(!0===g.id&&delete g.id,!(g=this._parse_model_from_json(g,v.id,v.parents.concat())))return!1;for(u=this.get_node(g),i&&i.state&&!1===i.state.loaded&&(u.state.loaded=!1),(h=[]).push(g),h=h.concat(u.children_d),this.trigger("model",{nodes:h,parent:v.id}),p=0,f=v.parents.length;p<f;p++)this._model.data[v.parents[p]].children_d=this._model.data[v.parents[p]].children_d.concat(h);for(h=[],p=0,f=v.children.length;p<f;p++)h[p>=s?p+1:p]=v.children[p];return h[s]=u.id,v.children=h,v.children_d.push(u.id),v.children_d=v.children_d.concat(u.children_d),v.id===e.jstree.root&&(this._model.force_full_redraw=!0),this._model.force_full_redraw||this._node_changed(v.id),a||this.redraw(v.id===e.jstree.root),o&&o.call(this,u,v,s),this.trigger("copy_node",{node:u,original:i,parent:v.id,position:s,old_parent:m,old_position:_&&_._id&&m&&_._model.data[m]&&_._model.data[m].children?e.inArray(i.id,_._model.data[m].children):-1,is_multi:_&&_._id&&_._id!==this._id,is_foreign:!_||!_._id,old_instance:_,new_instance:this}),u.id},cut:function(t){if(t||(t=this._data.core.selected.concat()),e.vakata.is_array(t)||(t=[t]),!t.length)return!1;var i,r,a,l=[];for(r=0,a=t.length;r<a;r++)(i=this.get_node(t[r]))&&i.id&&i.id!==e.jstree.root&&l.push(i);if(!l.length)return!1;n=l,o=this,s="move_node",this.trigger("cut",{node:t})},copy:function(t){if(t||(t=this._data.core.selected.concat()),e.vakata.is_array(t)||(t=[t]),!t.length)return!1;var i,r,a,l=[];for(r=0,a=t.length;r<a;r++)(i=this.get_node(t[r]))&&i.id&&i.id!==e.jstree.root&&l.push(i);if(!l.length)return!1;n=l,o=this,s="copy_node",this.trigger("copy",{node:t})},get_buffer:function(){return{mode:s,node:n,inst:o}},can_paste:function(){return!1!==s&&!1!==n},paste:function(e,t){if(!((e=this.get_node(e))&&s&&s.match(/^(copy_node|move_node)$/)&&n))return!1;this[s](n,e,t,!1,!1,!1,o)&&this.trigger("paste",{parent:e.id,node:n,mode:s}),n=!1,s=!1,o=!1},clear_buffer:function(){n=!1,s=!1,o=!1,this.trigger("clear_buffer")},edit:function(t,i,n){var s,o,r,a,c,d,h,u,p,f=!1;return!!(t=this.get_node(t))&&(this.check("edit",t,this.get_parent(t))?(p=t,i="string"==typeof i?i:t.text,this.set_text(t,""),t=this._open_to(t),p.text=i,s=this._data.core.rtl,o=this.element.width(),this._data.core.focused=p.id,r=t.children(".jstree-anchor").trigger("focus"),a=e("<span></span>"),c=i,d=e("<div></div>",{css:{position:"absolute",top:"-200px",left:s?"0px":"-1000px",visibility:"hidden"}}).appendTo(l.body),h=e("<input />",{value:c,class:"jstree-rename-input",css:{padding:"0",border:"1px solid silver","box-sizing":"border-box",display:"inline-block",height:this._data.core.li_height+"px",lineHeight:this._data.core.li_height+"px",width:"150px"},blur:function(i){i.stopImmediatePropagation(),i.preventDefault();var s,o=a.children(".jstree-rename-input").val(),l=this.settings.core.force_text;""===o&&(o=c),d.remove(),a.replaceWith(r),a.remove(),c=l?c:e("<div></div>").append(e.parseHTML(c)).html(),t=this.get_node(t),this.set_text(t,c),(s=!!this.rename_node(t,l?e("<div></div>").text(o).text():e("<div></div>").append(e.parseHTML(o)).html()))||this.set_text(t,c),this._data.core.focused=p.id,setTimeout(function(){var e=this.get_node(p.id,!0);e.length&&(this._data.core.focused=p.id,e.children(".jstree-anchor").trigger("focus"))}.bind(this),0),n&&n.call(this,p,s,f,o),h=null}.bind(this),keydown:function(e){var t=e.which;27===t&&(f=!0,this.value=c),27!==t&&13!==t&&37!==t&&38!==t&&39!==t&&40!==t&&32!==t||e.stopImmediatePropagation(),27!==t&&13!==t||(e.preventDefault(),this.blur())},click:function(e){e.stopImmediatePropagation()},mousedown:function(e){e.stopImmediatePropagation()},keyup:function(e){h.width(Math.min(d.text("pW"+this.value).width(),o))},keypress:function(e){if(13===e.which)return!1}}),u={fontFamily:r.css("fontFamily")||"",fontSize:r.css("fontSize")||"",fontWeight:r.css("fontWeight")||"",fontStyle:r.css("fontStyle")||"",fontStretch:r.css("fontStretch")||"",fontVariant:r.css("fontVariant")||"",letterSpacing:r.css("letterSpacing")||"",wordSpacing:r.css("wordSpacing")||""},a.attr("class",r.attr("class")).append(r.contents().clone()).append(h),r.replaceWith(a),d.css(u),h.css(u).width(Math.min(d.text("pW"+h[0].value).width(),o))[0].select(),void e(l).one("mousedown.jstree touchstart.jstree dnd_start.vakata",(function(t){h&&t.target!==h&&e(h).trigger("blur")}))):(this.settings.core.error.call(this,this._data.core.last_error),!1))},set_theme:function(t,i){if(!t)return!1;if(!0===i){var n=this.settings.core.themes.dir;n||(n=e.jstree.path+"/themes"),i=n+"/"+t+"/style.css"}i&&-1===e.inArray(i,r)&&(e("head").append('<link rel="stylesheet" href="'+i+'" type="text/css" />'),r.push(i)),this._data.core.themes.name&&this.element.removeClass("jstree-"+this._data.core.themes.name),this._data.core.themes.name=t,this.element.addClass("jstree-"+t),this.element[this.settings.core.themes.responsive?"addClass":"removeClass"]("jstree-"+t+"-responsive"),this.trigger("set_theme",{theme:t})},get_theme:function(){return this._data.core.themes.name},set_theme_variant:function(e){this._data.core.themes.variant&&this.element.removeClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant),this._data.core.themes.variant=e,e&&this.element.addClass("jstree-"+this._data.core.themes.name+"-"+this._data.core.themes.variant)},get_theme_variant:function(){return this._data.core.themes.variant},show_stripes:function(){this._data.core.themes.stripes=!0,this.get_container_ul().addClass("jstree-striped"),this.trigger("show_stripes")},hide_stripes:function(){this._data.core.themes.stripes=!1,this.get_container_ul().removeClass("jstree-striped"),this.trigger("hide_stripes")},toggle_stripes:function(){this._data.core.themes.stripes?this.hide_stripes():this.show_stripes()},show_dots:function(){this._data.core.themes.dots=!0,this.get_container_ul().removeClass("jstree-no-dots"),this.trigger("show_dots")},hide_dots:function(){this._data.core.themes.dots=!1,this.get_container_ul().addClass("jstree-no-dots"),this.trigger("hide_dots")},toggle_dots:function(){this._data.core.themes.dots?this.hide_dots():this.show_dots()},show_icons:function(){this._data.core.themes.icons=!0,this.get_container_ul().removeClass("jstree-no-icons"),this.trigger("show_icons")},hide_icons:function(){this._data.core.themes.icons=!1,this.get_container_ul().addClass("jstree-no-icons"),this.trigger("hide_icons")},toggle_icons:function(){this._data.core.themes.icons?this.hide_icons():this.show_icons()},show_ellipsis:function(){this._data.core.themes.ellipsis=!0,this.get_container_ul().addClass("jstree-ellipsis"),this.trigger("show_ellipsis")},hide_ellipsis:function(){this._data.core.themes.ellipsis=!1,this.get_container_ul().removeClass("jstree-ellipsis"),this.trigger("hide_ellipsis")},toggle_ellipsis:function(){this._data.core.themes.ellipsis?this.hide_ellipsis():this.show_ellipsis()},set_icon:function(i,n){var s,o,r,a;if(e.vakata.is_array(i)){for(s=0,o=(i=i.slice()).length;s<o;s++)this.set_icon(i[s],n);return!0}return!(!(i=this.get_node(i))||i.id===e.jstree.root||(a=i.icon,i.icon=!0===n||null===n||n===t||""===n||n,r=this.get_node(i,!0).children(".jstree-anchor").children(".jstree-themeicon"),!1===n?(r.removeClass("jstree-themeicon-custom "+a).css("background","").removeAttr("rel"),this.hide_icon(i)):!0===n||null===n||n===t||""===n?(r.removeClass("jstree-themeicon-custom "+a).css("background","").removeAttr("rel"),!1===a&&this.show_icon(i)):-1===n.indexOf("/")&&-1===n.indexOf(".")?(r.removeClass(a).css("background",""),r.addClass(n+" jstree-themeicon-custom").attr("rel",n),!1===a&&this.show_icon(i)):(r.removeClass(a).css("background",""),r.addClass("jstree-themeicon-custom").css("background","url('"+n+"') center center no-repeat").attr("rel",n),!1===a&&this.show_icon(i)),0))},get_icon:function(t){return!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.icon},hide_icon:function(t){var i,n;if(e.vakata.is_array(t)){for(i=0,n=(t=t.slice()).length;i<n;i++)this.hide_icon(t[i]);return!0}return!(!(t=this.get_node(t))||t===e.jstree.root||(t.icon=!1,this.get_node(t,!0).children(".jstree-anchor").children(".jstree-themeicon").addClass("jstree-themeicon-hidden"),0))},show_icon:function(t){var i,n,s;if(e.vakata.is_array(t)){for(i=0,n=(t=t.slice()).length;i<n;i++)this.show_icon(t[i]);return!0}return!(!(t=this.get_node(t))||t===e.jstree.root||(s=this.get_node(t,!0),t.icon=!s.length||s.children(".jstree-anchor").children(".jstree-themeicon").attr("rel"),t.icon||(t.icon=!0),s.children(".jstree-anchor").children(".jstree-themeicon").removeClass("jstree-themeicon-hidden"),0))}},e.vakata={},e.vakata.attributes=function(t,i){t=e(t)[0];var n=i?{}:[];return t&&t.attributes&&e.each(t.attributes,(function(t,s){-1===e.inArray(s.name.toLowerCase(),["style","contenteditable","hasfocus","tabindex"])&&null!==s.value&&""!==e.vakata.trim(s.value)&&(i?n[s.name]=s.value:n.push(s.name))})),n},e.vakata.array_unique=function(e){var i,n,s=[],o={};for(i=0,n=e.length;i<n;i++)o[e[i]]===t&&(s.push(e[i]),o[e[i]]=!0);return s},e.vakata.array_remove=function(e,t){return e.splice(t,1),e},e.vakata.array_remove_item=function(t,i){var n=e.inArray(i,t);return-1!==n?e.vakata.array_remove(t,n):t},e.vakata.array_filter=function(e,t,i,n,s){if(e.filter)return e.filter(t,i);for(s in n=[],e)~~s+""==s+""&&s>=0&&t.call(i,e[s],+s,e)&&n.push(e[s]);return n},e.vakata.trim=function(e){return String.prototype.trim?String.prototype.trim.call(e.toString()):e.toString().replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},e.vakata.is_function=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},e.vakata.is_array=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},Function.prototype.bind||(Function.prototype.bind=function(){var e=this,t=arguments[0],i=Array.prototype.slice.call(arguments,1);if("function"!=typeof e)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");return function(){var n=i.concat(Array.prototype.slice.call(arguments));return e.apply(t,n)}}),e.jstree.plugins.changed=function(e,t){var i=[];this.trigger=function(e,n){var s,o;if(n||(n={}),"changed"===e.replace(".jstree","")){n.changed={selected:[],deselected:[]};var r={};for(s=0,o=i.length;s<o;s++)r[i[s]]=1;for(s=0,o=n.selected.length;s<o;s++)r[n.selected[s]]?r[n.selected[s]]=2:n.changed.selected.push(n.selected[s]);for(s=0,o=i.length;s<o;s++)1===r[i[s]]&&n.changed.deselected.push(i[s]);i=n.selected.slice()}t.trigger.call(this,e,n)},this.refresh=function(e,n){return i=[],t.refresh.apply(this,arguments)}};var h,u,p=l.createElement("I");p.className="jstree-icon jstree-checkbox",p.setAttribute("role","presentation"),e.jstree.defaults.checkbox={visible:!0,three_state:!0,whole_node:!0,keep_selected_style:!0,cascade:"",tie_selection:!0,cascade_to_disabled:!0,cascade_to_hidden:!0},e.jstree.plugins.checkbox=function(i,n){this.bind=function(){n.bind.call(this),this._data.checkbox.uto=!1,this._data.checkbox.selected=[],this.settings.checkbox.three_state&&(this.settings.checkbox.cascade="up+down+undetermined"),this.element.on("init.jstree",function(){this._data.checkbox.visible=this.settings.checkbox.visible,this.settings.checkbox.keep_selected_style||this.element.addClass("jstree-checkbox-no-clicked"),this.settings.checkbox.tie_selection&&this.element.addClass("jstree-checkbox-selection")}.bind(this)).on("loading.jstree",function(){this[this._data.checkbox.visible?"show_checkboxes":"hide_checkboxes"]()}.bind(this)),-1!==this.settings.checkbox.cascade.indexOf("undetermined")&&this.element.on("changed.jstree uncheck_node.jstree check_node.jstree uncheck_all.jstree check_all.jstree move_node.jstree copy_node.jstree redraw.jstree open_node.jstree",function(){this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(this._undetermined.bind(this),50)}.bind(this)),this.settings.checkbox.tie_selection||this.element.on("model.jstree",function(e,t){var i,n,s=this._model.data,o=(s[t.parent],t.nodes);for(i=0,n=o.length;i<n;i++)s[o[i]].state.checked=s[o[i]].state.checked||s[o[i]].original&&s[o[i]].original.state&&s[o[i]].original.state.checked,s[o[i]].state.checked&&this._data.checkbox.selected.push(o[i])}.bind(this)),-1===this.settings.checkbox.cascade.indexOf("up")&&-1===this.settings.checkbox.cascade.indexOf("down")||this.element.on("model.jstree",function(t,i){var n,s,o,r,a,l,c=this._model.data,d=c[i.parent],h=i.nodes,u=[],p=this.settings.checkbox.cascade,f=this.settings.checkbox.tie_selection;if(-1!==p.indexOf("down"))if(d.state[f?"selected":"checked"]){for(s=0,o=h.length;s<o;s++)c[h[s]].state[f?"selected":"checked"]=!0;this._data[f?"core":"checkbox"].selected=this._data[f?"core":"checkbox"].selected.concat(h)}else for(s=0,o=h.length;s<o;s++)if(c[h[s]].state[f?"selected":"checked"]){for(r=0,a=c[h[s]].children_d.length;r<a;r++)c[c[h[s]].children_d[r]].state[f?"selected":"checked"]=!0;this._data[f?"core":"checkbox"].selected=this._data[f?"core":"checkbox"].selected.concat(c[h[s]].children_d)}if(-1!==p.indexOf("up")){for(s=0,o=d.children_d.length;s<o;s++)c[d.children_d[s]].children.length||u.push(c[d.children_d[s]].parent);for(r=0,a=(u=e.vakata.array_unique(u)).length;r<a;r++)for(d=c[u[r]];d&&d.id!==e.jstree.root;){for(n=0,s=0,o=d.children.length;s<o;s++)n+=c[d.children[s]].state[f?"selected":"checked"];if(n!==o)break;d.state[f?"selected":"checked"]=!0,this._data[f?"core":"checkbox"].selected.push(d.id),(l=this.get_node(d,!0))&&l.length&&l.attr("aria-selected",!0).children(".jstree-anchor").addClass(f?"jstree-clicked":"jstree-checked"),d=this.get_node(d.parent)}}this._data[f?"core":"checkbox"].selected=e.vakata.array_unique(this._data[f?"core":"checkbox"].selected)}.bind(this)).on(this.settings.checkbox.tie_selection?"select_node.jstree":"check_node.jstree",function(t,i){var n,s,o,r,a=i.node,l=this._model.data,c=this.get_node(a.parent),d=this.settings.checkbox.cascade,h=this.settings.checkbox.tie_selection,u={},p=this._data[h?"core":"checkbox"].selected;for(n=0,s=p.length;n<s;n++)u[p[n]]=!0;if(-1!==d.indexOf("down")){var f=this._cascade_new_checked_state(a.id,!0),g=a.children_d.concat(a.id);for(n=0,s=g.length;n<s;n++)f.indexOf(g[n])>-1?u[g[n]]=!0:delete u[g[n]]}if(-1!==d.indexOf("up"))for(;c&&c.id!==e.jstree.root;){for(o=0,n=0,s=c.children.length;n<s;n++)o+=l[c.children[n]].state[h?"selected":"checked"];if(o!==s)break;c.state[h?"selected":"checked"]=!0,u[c.id]=!0,(r=this.get_node(c,!0))&&r.length&&r.attr("aria-selected",!0).children(".jstree-anchor").addClass(h?"jstree-clicked":"jstree-checked"),c=this.get_node(c.parent)}for(n in p=[],u)u.hasOwnProperty(n)&&p.push(n);this._data[h?"core":"checkbox"].selected=p}.bind(this)).on(this.settings.checkbox.tie_selection?"deselect_all.jstree":"uncheck_all.jstree",function(t,i){var n,s,o,r=this.get_node(e.jstree.root),a=this._model.data;for(n=0,s=r.children_d.length;n<s;n++)(o=a[r.children_d[n]])&&o.original&&o.original.state&&o.original.state.undetermined&&(o.original.state.undetermined=!1)}.bind(this)).on(this.settings.checkbox.tie_selection?"deselect_node.jstree":"uncheck_node.jstree",function(t,i){var n,s,o,r=i.node,a=(this.get_node(r,!0),this.settings.checkbox.cascade),l=this.settings.checkbox.tie_selection,c=this._data[l?"core":"checkbox"].selected,d=r.children_d.concat(r.id);if(-1!==a.indexOf("down")){var h=this._cascade_new_checked_state(r.id,!1);c=e.vakata.array_filter(c,(function(e){return-1===d.indexOf(e)||h.indexOf(e)>-1}))}if(-1!==a.indexOf("up")&&-1===c.indexOf(r.id)){for(n=0,s=r.parents.length;n<s;n++)(o=this._model.data[r.parents[n]]).state[l?"selected":"checked"]=!1,o&&o.original&&o.original.state&&o.original.state.undetermined&&(o.original.state.undetermined=!1),(o=this.get_node(r.parents[n],!0))&&o.length&&o.attr("aria-selected",!1).children(".jstree-anchor").removeClass(l?"jstree-clicked":"jstree-checked");c=e.vakata.array_filter(c,(function(e){return-1===r.parents.indexOf(e)}))}this._data[l?"core":"checkbox"].selected=c}.bind(this)),-1!==this.settings.checkbox.cascade.indexOf("up")&&this.element.on("delete_node.jstree",function(t,i){for(var n,s,o,r,a=this.get_node(i.parent),l=this._model.data,c=this.settings.checkbox.tie_selection;a&&a.id!==e.jstree.root&&!a.state[c?"selected":"checked"];){for(o=0,n=0,s=a.children.length;n<s;n++)o+=l[a.children[n]].state[c?"selected":"checked"];if(!(s>0&&o===s))break;a.state[c?"selected":"checked"]=!0,this._data[c?"core":"checkbox"].selected.push(a.id),(r=this.get_node(a,!0))&&r.length&&r.attr("aria-selected",!0).children(".jstree-anchor").addClass(c?"jstree-clicked":"jstree-checked"),a=this.get_node(a.parent)}}.bind(this)).on("move_node.jstree",function(t,i){var n,s,o,r,a,l=i.is_multi,c=i.old_parent,d=this.get_node(i.parent),h=this._model.data,u=this.settings.checkbox.tie_selection;if(!l)for(n=this.get_node(c);n&&n.id!==e.jstree.root&&!n.state[u?"selected":"checked"];){for(s=0,o=0,r=n.children.length;o<r;o++)s+=h[n.children[o]].state[u?"selected":"checked"];if(!(r>0&&s===r))break;n.state[u?"selected":"checked"]=!0,this._data[u?"core":"checkbox"].selected.push(n.id),(a=this.get_node(n,!0))&&a.length&&a.attr("aria-selected",!0).children(".jstree-anchor").addClass(u?"jstree-clicked":"jstree-checked"),n=this.get_node(n.parent)}for(n=d;n&&n.id!==e.jstree.root;){for(s=0,o=0,r=n.children.length;o<r;o++)s+=h[n.children[o]].state[u?"selected":"checked"];if(s===r)n.state[u?"selected":"checked"]||(n.state[u?"selected":"checked"]=!0,this._data[u?"core":"checkbox"].selected.push(n.id),(a=this.get_node(n,!0))&&a.length&&a.attr("aria-selected",!0).children(".jstree-anchor").addClass(u?"jstree-clicked":"jstree-checked"));else{if(!n.state[u?"selected":"checked"])break;n.state[u?"selected":"checked"]=!1,this._data[u?"core":"checkbox"].selected=e.vakata.array_remove_item(this._data[u?"core":"checkbox"].selected,n.id),(a=this.get_node(n,!0))&&a.length&&a.attr("aria-selected",!1).children(".jstree-anchor").removeClass(u?"jstree-clicked":"jstree-checked")}n=this.get_node(n.parent)}}.bind(this))},this.get_undetermined=function(i){if(-1===this.settings.checkbox.cascade.indexOf("undetermined"))return[];var n,s,o,r,a={},l=this._model.data,c=this.settings.checkbox.tie_selection,d=this._data[c?"core":"checkbox"].selected,h=[],u=this,p=[];for(n=0,s=d.length;n<s;n++)if(l[d[n]]&&l[d[n]].parents)for(o=0,r=l[d[n]].parents.length;o<r&&a[l[d[n]].parents[o]]===t;o++)l[d[n]].parents[o]!==e.jstree.root&&(a[l[d[n]].parents[o]]=!0,h.push(l[d[n]].parents[o]));for(this.element.find(".jstree-closed").not(":has(.jstree-children)").each((function(){var i,c=u.get_node(this);if(c)if(c.state.loaded){for(n=0,s=c.children_d.length;n<s;n++)if(!(i=l[c.children_d[n]]).state.loaded&&i.original&&i.original.state&&i.original.state.undetermined&&!0===i.original.state.undetermined)for(a[i.id]===t&&i.id!==e.jstree.root&&(a[i.id]=!0,h.push(i.id)),o=0,r=i.parents.length;o<r;o++)a[i.parents[o]]===t&&i.parents[o]!==e.jstree.root&&(a[i.parents[o]]=!0,h.push(i.parents[o]))}else if(c.original&&c.original.state&&c.original.state.undetermined&&!0===c.original.state.undetermined)for(a[c.id]===t&&c.id!==e.jstree.root&&(a[c.id]=!0,h.push(c.id)),o=0,r=c.parents.length;o<r;o++)a[c.parents[o]]===t&&c.parents[o]!==e.jstree.root&&(a[c.parents[o]]=!0,h.push(c.parents[o]))})),n=0,s=h.length;n<s;n++)l[h[n]].state[c?"selected":"checked"]||p.push(i?l[h[n]]:h[n]);return p},this._undetermined=function(){if(null!==this.element){var e,t,i,n=this.get_undetermined(!1);for(this.element.find(".jstree-undetermined").removeClass("jstree-undetermined"),e=0,t=n.length;e<t;e++)(i=this.get_node(n[e],!0))&&i.length&&i.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-undetermined")}},this.redraw_node=function(e,t,i,s){if(e=n.redraw_node.apply(this,arguments)){var o,r,a=null,l=null;for(o=0,r=e.childNodes.length;o<r;o++)if(e.childNodes[o]&&e.childNodes[o].className&&-1!==e.childNodes[o].className.indexOf("jstree-anchor")){a=e.childNodes[o];break}a&&(!this.settings.checkbox.tie_selection&&this._model.data[e.id].state.checked&&(a.className+=" jstree-checked"),l=p.cloneNode(!1),this._model.data[e.id].state.checkbox_disabled&&(l.className+=" jstree-checkbox-disabled"),a.insertBefore(l,a.childNodes[0]))}return i||-1===this.settings.checkbox.cascade.indexOf("undetermined")||(this._data.checkbox.uto&&clearTimeout(this._data.checkbox.uto),this._data.checkbox.uto=setTimeout(this._undetermined.bind(this),50)),e},this.show_checkboxes=function(){this._data.core.themes.checkboxes=!0,this.get_container_ul().removeClass("jstree-no-checkboxes")},this.hide_checkboxes=function(){this._data.core.themes.checkboxes=!1,this.get_container_ul().addClass("jstree-no-checkboxes")},this.toggle_checkboxes=function(){this._data.core.themes.checkboxes?this.hide_checkboxes():this.show_checkboxes()},this.is_undetermined=function(t){t=this.get_node(t);var i,n,s=this.settings.checkbox.cascade,o=this.settings.checkbox.tie_selection,r=this._data[o?"core":"checkbox"].selected,a=this._model.data;if(!t||!0===t.state[o?"selected":"checked"]||-1===s.indexOf("undetermined")||-1===s.indexOf("down")&&-1===s.indexOf("up"))return!1;if(!t.state.loaded&&!0===t.original.state.undetermined)return!0;for(i=0,n=t.children_d.length;i<n;i++)if(-1!==e.inArray(t.children_d[i],r)||!a[t.children_d[i]].state.loaded&&a[t.children_d[i]].original.state.undetermined)return!0;return!1},this.disable_checkbox=function(t){var i,n,s;if(e.vakata.is_array(t)){for(i=0,n=(t=t.slice()).length;i<n;i++)this.disable_checkbox(t[i]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;s=this.get_node(t,!0),t.state.checkbox_disabled||(t.state.checkbox_disabled=!0,s&&s.length&&s.children(".jstree-anchor").children(".jstree-checkbox").addClass("jstree-checkbox-disabled"),this.trigger("disable_checkbox",{node:t}))},this.enable_checkbox=function(t){var i,n,s;if(e.vakata.is_array(t)){for(i=0,n=(t=t.slice()).length;i<n;i++)this.enable_checkbox(t[i]);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;s=this.get_node(t,!0),t.state.checkbox_disabled&&(t.state.checkbox_disabled=!1,s&&s.length&&s.children(".jstree-anchor").children(".jstree-checkbox").removeClass("jstree-checkbox-disabled"),this.trigger("enable_checkbox",{node:t}))},this.activate_node=function(t,i){return!e(i.target).hasClass("jstree-checkbox-disabled")&&(this.settings.checkbox.tie_selection&&(this.settings.checkbox.whole_node||e(i.target).hasClass("jstree-checkbox"))&&(i.ctrlKey=!0),this.settings.checkbox.tie_selection||!this.settings.checkbox.whole_node&&!e(i.target).hasClass("jstree-checkbox")?n.activate_node.call(this,t,i):!this.is_disabled(t)&&(this.is_checked(t)?this.uncheck_node(t,i):this.check_node(t,i),void this.trigger("activate_node",{node:this.get_node(t)})))},this._cascade_new_checked_state=function(e,t){var i,n,s,o=this.settings.checkbox.tie_selection,r=this._model.data[e],a=[],l=[];if(!this.settings.checkbox.cascade_to_disabled&&r.state.disabled||!this.settings.checkbox.cascade_to_hidden&&r.state.hidden)s=this.get_checked_descendants(e),r.state[o?"selected":"checked"]&&s.push(r.id),a=a.concat(s);else{if(r.children)for(i=0,n=r.children.length;i<n;i++){var c=r.children[i];s=this._cascade_new_checked_state(c,t),a=a.concat(s),s.indexOf(c)>-1&&l.push(c)}var d=this.get_node(r,!0),h=l.length>0&&l.length<r.children.length;r.original&&r.original.state&&r.original.state.undetermined&&(r.original.state.undetermined=h),h?(r.state[o?"selected":"checked"]=!1,d.attr("aria-selected",!1).children(".jstree-anchor").removeClass(o?"jstree-clicked":"jstree-checked")):t&&l.length===r.children.length?(r.state[o?"selected":"checked"]=t,a.push(r.id),d.attr("aria-selected",!0).children(".jstree-anchor").addClass(o?"jstree-clicked":"jstree-checked")):(r.state[o?"selected":"checked"]=!1,d.attr("aria-selected",!1).children(".jstree-anchor").removeClass(o?"jstree-clicked":"jstree-checked"))}return a},this.get_checked_descendants=function(t){var i=this,n=i.settings.checkbox.tie_selection,s=i._model.data[t];return e.vakata.array_filter(s.children_d,(function(e){return i._model.data[e].state[n?"selected":"checked"]}))},this.check_node=function(t,i){if(this.settings.checkbox.tie_selection)return this.select_node(t,!1,!0,i);var n,s,o;if(e.vakata.is_array(t)){for(s=0,o=(t=t.slice()).length;s<o;s++)this.check_node(t[s],i);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;n=this.get_node(t,!0),t.state.checked||(t.state.checked=!0,this._data.checkbox.selected.push(t.id),n&&n.length&&n.children(".jstree-anchor").addClass("jstree-checked"),this.trigger("check_node",{node:t,selected:this._data.checkbox.selected,event:i}))},this.uncheck_node=function(t,i){if(this.settings.checkbox.tie_selection)return this.deselect_node(t,!1,i);var n,s,o;if(e.vakata.is_array(t)){for(n=0,s=(t=t.slice()).length;n<s;n++)this.uncheck_node(t[n],i);return!0}if(!(t=this.get_node(t))||t.id===e.jstree.root)return!1;o=this.get_node(t,!0),t.state.checked&&(t.state.checked=!1,this._data.checkbox.selected=e.vakata.array_remove_item(this._data.checkbox.selected,t.id),o.length&&o.children(".jstree-anchor").removeClass("jstree-checked"),this.trigger("uncheck_node",{node:t,selected:this._data.checkbox.selected,event:i}))},this.check_all=function(){if(this.settings.checkbox.tie_selection)return this.select_all();var t,i;for(this._data.checkbox.selected.concat([]),this._data.checkbox.selected=this._model.data[e.jstree.root].children_d.concat(),t=0,i=this._data.checkbox.selected.length;t<i;t++)this._model.data[this._data.checkbox.selected[t]]&&(this._model.data[this._data.checkbox.selected[t]].state.checked=!0);this.redraw(!0),this.trigger("check_all",{selected:this._data.checkbox.selected})},this.uncheck_all=function(){if(this.settings.checkbox.tie_selection)return this.deselect_all();var e,t,i=this._data.checkbox.selected.concat([]);for(e=0,t=this._data.checkbox.selected.length;e<t;e++)this._model.data[this._data.checkbox.selected[e]]&&(this._model.data[this._data.checkbox.selected[e]].state.checked=!1);this._data.checkbox.selected=[],this.element.find(".jstree-checked").removeClass("jstree-checked"),this.trigger("uncheck_all",{selected:this._data.checkbox.selected,node:i})},this.is_checked=function(t){return this.settings.checkbox.tie_selection?this.is_selected(t):!(!(t=this.get_node(t))||t.id===e.jstree.root)&&t.state.checked},this.get_checked=function(t){return this.settings.checkbox.tie_selection?this.get_selected(t):t?e.map(this._data.checkbox.selected,function(e){return this.get_node(e)}.bind(this)):this._data.checkbox.selected.slice()},this.get_top_checked=function(t){if(this.settings.checkbox.tie_selection)return this.get_top_selected(t);var i,n,s,o,r=this.get_checked(!0),a={};for(i=0,n=r.length;i<n;i++)a[r[i].id]=r[i];for(i=0,n=r.length;i<n;i++)for(s=0,o=r[i].children_d.length;s<o;s++)a[r[i].children_d[s]]&&delete a[r[i].children_d[s]];for(i in r=[],a)a.hasOwnProperty(i)&&r.push(i);return t?e.map(r,function(e){return this.get_node(e)}.bind(this)):r},this.get_bottom_checked=function(t){if(this.settings.checkbox.tie_selection)return this.get_bottom_selected(t);var i,n,s=this.get_checked(!0),o=[];for(i=0,n=s.length;i<n;i++)s[i].children.length||o.push(s[i].id);return t?e.map(o,function(e){return this.get_node(e)}.bind(this)):o},this.load_node=function(t,i){var s,o,r;if(!e.vakata.is_array(t)&&!this.settings.checkbox.tie_selection&&(r=this.get_node(t))&&r.state.loaded)for(s=0,o=r.children_d.length;s<o;s++)this._model.data[r.children_d[s]].state.checked&&(this._data.checkbox.selected=e.vakata.array_remove_item(this._data.checkbox.selected,r.children_d[s]));return n.load_node.apply(this,arguments)},this.get_state=function(){var e=n.get_state.apply(this,arguments);return this.settings.checkbox.tie_selection||(e.checkbox=this._data.checkbox.selected.slice()),e},this.set_state=function(t,i){var s=n.set_state.apply(this,arguments);if(s&&t.checkbox){if(!this.settings.checkbox.tie_selection){this.uncheck_all();var o=this;e.each(t.checkbox,(function(e,t){o.check_node(t)}))}return delete t.checkbox,this.set_state(t,i),!1}return s},this.refresh=function(e,t){return this.settings.checkbox.tie_selection&&(this._data.checkbox.selected=[]),n.refresh.apply(this,arguments)}},e.jstree.defaults.conditionalselect=function(){return!0},e.jstree.plugins.conditionalselect=function(e,t){this.activate_node=function(e,i){if(this.settings.conditionalselect.call(this,this.get_node(e),i))return t.activate_node.call(this,e,i)}},e.jstree.defaults.contextmenu={select_node:!0,show_at_node:!0,items:function(t,i){return{create:{separator_before:!1,separator_after:!0,_disabled:!1,label:"Create",action:function(t){var i=e.jstree.reference(t.reference),n=i.get_node(t.reference);i.create_node(n,{},"last",(function(e){try{i.edit(e)}catch(t){setTimeout((function(){i.edit(e)}),0)}}))}},rename:{separator_before:!1,separator_after:!1,_disabled:!1,label:"Rename",action:function(t){var i=e.jstree.reference(t.reference),n=i.get_node(t.reference);i.edit(n)}},remove:{separator_before:!1,icon:!1,separator_after:!1,_disabled:!1,label:"Delete",action:function(t){var i=e.jstree.reference(t.reference),n=i.get_node(t.reference);i.is_selected(n)?i.delete_node(i.get_selected()):i.delete_node(n)}},ccp:{separator_before:!0,icon:!1,separator_after:!1,label:"Edit",action:!1,submenu:{cut:{separator_before:!1,separator_after:!1,label:"Cut",action:function(t){var i=e.jstree.reference(t.reference),n=i.get_node(t.reference);i.is_selected(n)?i.cut(i.get_top_selected()):i.cut(n)}},copy:{separator_before:!1,icon:!1,separator_after:!1,label:"Copy",action:function(t){var i=e.jstree.reference(t.reference),n=i.get_node(t.reference);i.is_selected(n)?i.copy(i.get_top_selected()):i.copy(n)}},paste:{separator_before:!1,icon:!1,_disabled:function(t){return!e.jstree.reference(t.reference).can_paste()},separator_after:!1,label:"Paste",action:function(t){var i=e.jstree.reference(t.reference),n=i.get_node(t.reference);i.paste(n)}}}}}}},e.jstree.plugins.contextmenu=function(i,n){this.bind=function(){n.bind.call(this);var t,i,s=0,o=null;this.element.on("init.jstree loading.jstree ready.jstree",function(){this.get_container_ul().addClass("jstree-contextmenu")}.bind(this)).on("contextmenu.jstree",".jstree-anchor",function(e,t){"input"!==e.target.tagName.toLowerCase()&&(e.preventDefault(),s=e.ctrlKey?+new Date:0,(t||o)&&(s=+new Date+1e4),o&&clearTimeout(o),this.is_loading(e.currentTarget)||this.show_contextmenu(e.currentTarget,e.pageX,e.pageY,e))}.bind(this)).on("click.jstree",".jstree-anchor",function(t){this._data.contextmenu.visible&&(!s||+new Date-s>250)&&e.vakata.context.hide(),s=0}.bind(this)).on("touchstart.jstree",".jstree-anchor",(function(n){n.originalEvent&&n.originalEvent.changedTouches&&n.originalEvent.changedTouches[0]&&(t=n.originalEvent.changedTouches[0].clientX,i=n.originalEvent.changedTouches[0].clientY,o=setTimeout((function(){e(n.currentTarget).trigger("contextmenu",!0)}),750))})).on("touchmove.vakata.jstree",(function(n){o&&n.originalEvent&&n.originalEvent.changedTouches&&n.originalEvent.changedTouches[0]&&(Math.abs(t-n.originalEvent.changedTouches[0].clientX)>10||Math.abs(i-n.originalEvent.changedTouches[0].clientY)>10)&&(clearTimeout(o),e.vakata.context.hide())})).on("touchend.vakata.jstree",(function(e){o&&clearTimeout(o)})),e(l).on("context_hide.vakata.jstree",function(t,i){this._data.contextmenu.visible=!1,e(i.reference).removeClass("jstree-context")}.bind(this))},this.teardown=function(){this._data.contextmenu.visible&&e.vakata.context.hide(),e(l).off("context_hide.vakata.jstree"),n.teardown.call(this)},this.show_contextmenu=function(i,n,s,o){if(!(i=this.get_node(i))||i.id===e.jstree.root)return!1;var r=this.settings.contextmenu,a=this.get_node(i,!0).children(".jstree-anchor"),l=!1,c=!1;(r.show_at_node||n===t||s===t)&&(l=a.offset(),n=l.left,s=l.top+this._data.core.li_height),this.settings.contextmenu.select_node&&!this.is_selected(i)&&this.activate_node(i,o),c=r.items,e.vakata.is_function(c)&&(c=c.call(this,i,function(e){this._show_contextmenu(i,n,s,e)}.bind(this))),e.isPlainObject(c)&&this._show_contextmenu(i,n,s,c)},this._show_contextmenu=function(t,i,n,s){var o=this.get_node(t,!0).children(".jstree-anchor");e(l).one("context_show.vakata.jstree",function(t,i){var n="jstree-contextmenu jstree-"+this.get_theme()+"-contextmenu";e(i.element).addClass(n),o.addClass("jstree-context")}.bind(this)),this._data.contextmenu.visible=!0,e.vakata.context.show(o,{x:i,y:n},s),this.trigger("show_contextmenu",{node:t,x:i,y:n})}},function(e){var t=!1,i={element:!1,reference:!1,position_x:0,position_y:0,items:[],html:"",is_visible:!1};e.vakata.context={settings:{hide_onmouseleave:0,icons:!0},_trigger:function(t){e(l).triggerHandler("context_"+t+".vakata",{reference:i.reference,element:i.element,position:{x:i.position_x,y:i.position_y}})},_execute:function(t){return!(!(t=i.items[t])||t._disabled&&(!e.vakata.is_function(t._disabled)||t._disabled({item:t,reference:i.reference,element:i.element}))||!t.action)&&t.action.call(null,{item:t,reference:i.reference,element:i.element,position:{x:i.position_x,y:i.position_y}})},_parse:function(t,n){if(!t)return!1;n||(i.html="",i.items=[]);var s,o="",r=!1;return n&&(o+="<ul>"),e.each(t,(function(t,n){if(!n)return!0;i.items.push(n),!r&&n.separator_before&&(o+="<li class='vakata-context-separator'><a href='#' "+(e.vakata.context.settings.icons?"":'class="vakata-context-no-icons"')+">&#160;</a></li>"),r=!1,o+="<li class='"+(n._class||"")+(!0===n._disabled||e.vakata.is_function(n._disabled)&&n._disabled({item:n,reference:i.reference,element:i.element})?" vakata-contextmenu-disabled ":"")+"' "+(n.shortcut?" data-shortcut='"+n.shortcut+"' ":"")+">",o+="<a href='#' rel='"+(i.items.length-1)+"' "+(n.title?"title='"+n.title+"'":"")+">",e.vakata.context.settings.icons&&(o+="<i ",n.icon&&(-1!==n.icon.indexOf("/")||-1!==n.icon.indexOf(".")?o+=" style='background:url(\""+n.icon+"\") center center no-repeat' ":o+=" class='"+n.icon+"' "),o+="></i><span class='vakata-contextmenu-sep'>&#160;</span>"),o+=(e.vakata.is_function(n.label)?n.label({item:t,reference:i.reference,element:i.element}):n.label)+(n.shortcut?' <span class="vakata-contextmenu-shortcut vakata-contextmenu-shortcut-'+n.shortcut+'">'+(n.shortcut_label||"")+"</span>":"")+"</a>",n.submenu&&(s=e.vakata.context._parse(n.submenu,!0))&&(o+=s),o+="</li>",n.separator_after&&(o+="<li class='vakata-context-separator'><a href='#' "+(e.vakata.context.settings.icons?"":'class="vakata-context-no-icons"')+">&#160;</a></li>",r=!0)})),o=o.replace(/<li class\='vakata-context-separator'\><\/li\>$/,""),n&&(o+="</ul>"),n||(i.html=o,e.vakata.context._trigger("parse")),o.length>10&&o},_show_submenu:function(i){if((i=e(i)).length&&i.children("ul").length){var n=i.children("ul"),s=i.offset().left,o=s+i.outerWidth(),r=i.offset().top,a=n.width(),l=n.height(),c=e(window).width()+e(window).scrollLeft(),d=e(window).height()+e(window).scrollTop();t?i[o-(a+10+i.outerWidth())<0?"addClass":"removeClass"]("vakata-context-left"):i[o+a>c&&s>c-o?"addClass":"removeClass"]("vakata-context-right"),r+l+10>d&&n.css("bottom","-1px"),i.hasClass("vakata-context-right")?s<a&&n.css("margin-right",s-a):c-o<a&&n.css("margin-left",c-o-a),n.show()}},show:function(n,s,o){var r,a,c,d,h,u,p,f;switch(i.element&&i.element.length&&i.element.width(""),!0){case!s&&!n:return!1;case!!s&&!!n:i.reference=n,i.position_x=s.x,i.position_y=s.y;break;case!s&&!!n:i.reference=n,r=n.offset(),i.position_x=r.left+n.outerHeight(),i.position_y=r.top;break;case!!s&&!n:i.position_x=s.x,i.position_y=s.y}n&&!o&&e(n).data("vakata_contextmenu")&&(o=e(n).data("vakata_contextmenu")),e.vakata.context._parse(o)&&i.element.html(i.html),i.items.length&&(i.element.appendTo(l.body),a=i.element,c=i.position_x,d=i.position_y,h=a.width(),u=a.height(),p=e(window).width()+e(window).scrollLeft(),f=e(window).height()+e(window).scrollTop(),t&&(c-=a.outerWidth()-e(n).outerWidth())<e(window).scrollLeft()+20&&(c=e(window).scrollLeft()+20),c+h+20>p&&(c=p-(h+20)),d+u+20>f&&(d=f-(u+20)),i.element.css({left:c,top:d}).show().find("a").first().trigger("focus").parent().addClass("vakata-context-hover"),i.is_visible=!0,e.vakata.context._trigger("show"))},hide:function(){i.is_visible&&(i.element.hide().find("ul").hide().end().find(":focus").trigger("blur").end().detach(),i.is_visible=!1,e.vakata.context._trigger("hide"))}},e((function(){t="rtl"===e(l.body).css("direction");var n=!1;i.element=e("<ul class='vakata-context'></ul>"),i.element.on("mouseenter","li",(function(t){t.stopImmediatePropagation(),e.contains(this,t.relatedTarget)||(n&&clearTimeout(n),i.element.find(".vakata-context-hover").removeClass("vakata-context-hover").end(),e(this).siblings().find("ul").hide().end().end().parentsUntil(".vakata-context","li").addBack().addClass("vakata-context-hover"),e.vakata.context._show_submenu(this))})).on("mouseleave","li",(function(t){e.contains(this,t.relatedTarget)||e(this).find(".vakata-context-hover").addBack().removeClass("vakata-context-hover")})).on("mouseleave",(function(t){e(this).find(".vakata-context-hover").removeClass("vakata-context-hover"),e.vakata.context.settings.hide_onmouseleave&&(n=setTimeout((function(){e.vakata.context.hide()}),e.vakata.context.settings.hide_onmouseleave))})).on("click","a",(function(t){t.preventDefault(),e(this).trigger("blur").parent().hasClass("vakata-context-disabled")||!1===e.vakata.context._execute(e(this).attr("rel"))||e.vakata.context.hide()})).on("keydown","a",(function(t){var n=null;switch(t.which){case 13:case 32:t.type="click",t.preventDefault(),e(t.currentTarget).trigger(t);break;case 37:i.is_visible&&(i.element.find(".vakata-context-hover").last().closest("li").first().find("ul").hide().find(".vakata-context-hover").removeClass("vakata-context-hover").end().end().children("a").trigger("focus"),t.stopImmediatePropagation(),t.preventDefault());break;case 38:i.is_visible&&((n=i.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").prevAll("li:not(.vakata-context-separator)").first()).length||(n=i.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").last()),n.addClass("vakata-context-hover").children("a").trigger("focus"),t.stopImmediatePropagation(),t.preventDefault());break;case 39:i.is_visible&&(i.element.find(".vakata-context-hover").last().children("ul").show().children("li:not(.vakata-context-separator)").removeClass("vakata-context-hover").first().addClass("vakata-context-hover").children("a").trigger("focus"),t.stopImmediatePropagation(),t.preventDefault());break;case 40:i.is_visible&&((n=i.element.find("ul:visible").addBack().last().children(".vakata-context-hover").removeClass("vakata-context-hover").nextAll("li:not(.vakata-context-separator)").first()).length||(n=i.element.find("ul:visible").addBack().last().children("li:not(.vakata-context-separator)").first()),n.addClass("vakata-context-hover").children("a").trigger("focus"),t.stopImmediatePropagation(),t.preventDefault());break;case 27:e.vakata.context.hide(),t.preventDefault()}})).on("keydown",(function(e){e.preventDefault();var t=i.element.find(".vakata-contextmenu-shortcut-"+e.which).parent();t.parent().not(".vakata-context-disabled")&&t.trigger("click")})),e(l).on("mousedown.vakata.jstree",(function(t){i.is_visible&&i.element[0]!==t.target&&!e.contains(i.element[0],t.target)&&e.vakata.context.hide()})).on("context_show.vakata.jstree",(function(e,n){i.element.find("li:has(ul)").children("a").addClass("vakata-context-parent"),t&&i.element.addClass("vakata-context-rtl").css("direction","rtl"),i.element.find("ul").hide().end()}))}))}(e),e.jstree.defaults.dnd={copy:!0,open_timeout:500,is_draggable:!0,check_while_dragging:!0,always_copy:!1,inside_pos:0,drag_selection:!0,touch:!0,large_drop_target:!1,large_drag_target:!1,use_html5:!1},e.jstree.plugins.dnd=function(t,i){this.init=function(e,t){i.init.call(this,e,t),this.settings.dnd.use_html5=this.settings.dnd.use_html5&&"draggable"in l.createElement("span")},this.bind=function(){i.bind.call(this),this.element.on(this.settings.dnd.use_html5?"dragstart.jstree":"mousedown.jstree touchstart.jstree",this.settings.dnd.large_drag_target?".jstree-node":".jstree-anchor",function(t){if(this.settings.dnd.large_drag_target&&e(t.target).closest(".jstree-node")[0]!==t.currentTarget)return!0;if("touchstart"===t.type&&(!this.settings.dnd.touch||"selected"===this.settings.dnd.touch&&!e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").hasClass("jstree-clicked")))return!0;var i=this.get_node(t.target),n=this.is_selected(i)&&this.settings.dnd.drag_selection?this.get_top_selected().length:1,s=n>1?n+" "+this.get_string("nodes"):this.get_text(t.currentTarget);if(this.settings.core.force_text&&(s=e.vakata.html.escape(s)),i&&i.id&&i.id!==e.jstree.root&&(1===t.which||"touchstart"===t.type||"dragstart"===t.type)&&(!0===this.settings.dnd.is_draggable||e.vakata.is_function(this.settings.dnd.is_draggable)&&this.settings.dnd.is_draggable.call(this,n>1?this.get_top_selected(!0):[i],t))){if(h={jstree:!0,origin:this,obj:this.get_node(i,!0),nodes:n>1?this.get_top_selected():[i.id]},u=t.currentTarget,!this.settings.dnd.use_html5)return this.element.trigger("mousedown.jstree"),e.vakata.dnd.start(t,h,'<div id="jstree-dnd" class="jstree-'+this.get_theme()+" jstree-"+this.get_theme()+"-"+this.get_theme_variant()+" "+(this.settings.core.themes.responsive?" jstree-dnd-responsive":"")+'"><i class="jstree-icon jstree-er"></i>'+s+'<ins class="jstree-copy">+</ins></div>');e.vakata.dnd._trigger("start",t,{helper:e(),element:u,data:h})}}.bind(this)),this.settings.dnd.use_html5&&this.element.on("dragover.jstree",(function(t){return t.preventDefault(),e.vakata.dnd._trigger("move",t,{helper:e(),element:u,data:h}),!1})).on("drop.jstree",function(t){return t.preventDefault(),e.vakata.dnd._trigger("stop",t,{helper:e(),element:u,data:h}),!1}.bind(this))},this.redraw_node=function(e,t,n,s){if((e=i.redraw_node.apply(this,arguments))&&this.settings.dnd.use_html5)if(this.settings.dnd.large_drag_target)e.setAttribute("draggable",!0);else{var o,r,a=null;for(o=0,r=e.childNodes.length;o<r;o++)if(e.childNodes[o]&&e.childNodes[o].className&&-1!==e.childNodes[o].className.indexOf("jstree-anchor")){a=e.childNodes[o];break}a&&a.setAttribute("draggable",!0)}return e}},e((function(){var i=!1,n=!1,s=!1,o=!1,r=e('<div id="jstree-marker">&#160;</div>').hide();e(l).on("dragover.vakata.jstree",(function(t){u&&e.vakata.dnd._trigger("move",t,{helper:e(),element:u,data:h})})).on("drop.vakata.jstree",(function(t){u&&(e.vakata.dnd._trigger("stop",t,{helper:e(),element:u,data:h}),u=null,h=null)})).on("dnd_start.vakata.jstree",(function(e,t){i=!1,s=!1,t&&t.data&&t.data.jstree&&r.appendTo(l.body)})).on("dnd_move.vakata.jstree",(function(a,l){var c=l.event.target!==s.target;if(o&&(l.event&&"dragover"===l.event.type&&!c||clearTimeout(o)),l&&l.data&&l.data.jstree&&(!l.event.target.id||"jstree-marker"!==l.event.target.id)){s=l.event;var d,h,u,p,f,g,m,v,_,y,b,w,x,k,C,E,S,T=e.jstree.reference(l.event.target),O=!1,A=!1,D=!1;if(T&&T._data&&T._data.dnd)if(r.attr("class","jstree-"+T.get_theme()+(T.settings.core.themes.responsive?" jstree-dnd-responsive":"")),C=l.data.origin&&(l.data.origin.settings.dnd.always_copy||l.data.origin.settings.dnd.copy&&(l.event.metaKey||l.event.ctrlKey)),l.helper.children().attr("class","jstree-"+T.get_theme()+" jstree-"+T.get_theme()+"-"+T.get_theme_variant()+" "+(T.settings.core.themes.responsive?" jstree-dnd-responsive":"")).find(".jstree-copy").first()[C?"show":"hide"](),l.event.target!==T.element[0]&&l.event.target!==T.get_container_ul()[0]||0!==T.get_container_ul().children().length){if((O=T.settings.dnd.large_drop_target?e(l.event.target).closest(".jstree-node").children(".jstree-anchor"):e(l.event.target).closest(".jstree-anchor"))&&O.length&&O.parent().is(".jstree-closed, .jstree-open, .jstree-leaf")&&(A=O.offset(),D=(l.event.pageY!==t?l.event.pageY:l.event.originalEvent.pageY)-A.top,u=O.outerHeight(),g=D<u/3?["b","i","a"]:D>u-u/3?["a","i","b"]:D>u/2?["i","a","b"]:["i","b","a"],e.each(g,(function(t,s){switch(s){case"b":d=A.left-6,h=A.top,p=T.get_parent(O),f=O.parent().index(),S="jstree-below";break;case"i":x=T.settings.dnd.inside_pos,k=T.get_node(O.parent()),d=A.left-2,h=A.top+u/2+1,p=k.id,f="first"===x?0:"last"===x?k.children.length:Math.min(x,k.children.length),S="jstree-inside";break;case"a":d=A.left-6,h=A.top+u,p=T.get_parent(O),f=O.parent().index()+1,S="jstree-above"}for(m=!0,v=0,_=l.data.nodes.length;v<_;v++)if(y=l.data.origin&&(l.data.origin.settings.dnd.always_copy||l.data.origin.settings.dnd.copy&&(l.event.metaKey||l.event.ctrlKey))?"copy_node":"move_node",b=f,"move_node"===y&&"a"===s&&l.data.origin&&l.data.origin===T&&p===T.get_parent(l.data.nodes[v])&&(w=T.get_node(p),b>e.inArray(l.data.nodes[v],w.children)&&(b-=1)),!(m=m&&(T&&T.settings&&T.settings.dnd&&!1===T.settings.dnd.check_while_dragging||T.check(y,l.data.origin&&l.data.origin!==T?l.data.origin.get_node(l.data.nodes[v]):l.data.nodes[v],p,b,{dnd:!0,ref:T.get_node(O.parent()),pos:s,origin:l.data.origin,is_multi:l.data.origin&&l.data.origin!==T,is_foreign:!l.data.origin})))){T&&T.last_error&&(n=T.last_error());break}var a,D;if("i"===s&&O.parent().is(".jstree-closed")&&T.settings.dnd.open_timeout&&(l.event&&"dragover"===l.event.type&&!c||(o&&clearTimeout(o),o=setTimeout((a=T,D=O,function(){a.open_node(D)}),T.settings.dnd.open_timeout))),m)return(E=T.get_node(p,!0)).hasClass(".jstree-dnd-parent")||(e(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),E.addClass("jstree-dnd-parent")),i={ins:T,par:p,pos:"i"!==s||"last"!==x||0!==f||T.is_loaded(k)?f:"last"},r.css({left:d+"px",top:h+"px"}).show(),r.removeClass("jstree-above jstree-inside jstree-below").addClass(S),l.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),l.event.originalEvent&&l.event.originalEvent.dataTransfer&&(l.event.originalEvent.dataTransfer.dropEffect=C?"copy":"move"),n={},g=!0,!1})),!0===g))return}else{for(m=!0,v=0,_=l.data.nodes.length;v<_&&(m=m&&T.check(l.data.origin&&(l.data.origin.settings.dnd.always_copy||l.data.origin.settings.dnd.copy&&(l.event.metaKey||l.event.ctrlKey))?"copy_node":"move_node",l.data.origin&&l.data.origin!==T?l.data.origin.get_node(l.data.nodes[v]):l.data.nodes[v],e.jstree.root,"last",{dnd:!0,ref:T.get_node(e.jstree.root),pos:"i",origin:l.data.origin,is_multi:l.data.origin&&l.data.origin!==T,is_foreign:!l.data.origin}));v++);if(m)return i={ins:T,par:e.jstree.root,pos:"last"},r.hide(),l.helper.find(".jstree-icon").first().removeClass("jstree-er").addClass("jstree-ok"),void(l.event.originalEvent&&l.event.originalEvent.dataTransfer&&(l.event.originalEvent.dataTransfer.dropEffect=C?"copy":"move"))}e(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),i=!1,l.helper.find(".jstree-icon").removeClass("jstree-ok").addClass("jstree-er"),l.event.originalEvent&&l.event.originalEvent.dataTransfer,r.hide()}})).on("dnd_scroll.vakata.jstree",(function(e,t){t&&t.data&&t.data.jstree&&(r.hide(),i=!1,s=!1,t.helper.find(".jstree-icon").first().removeClass("jstree-ok").addClass("jstree-er"))})).on("dnd_stop.vakata.jstree",(function(t,a){if(e(".jstree-dnd-parent").removeClass("jstree-dnd-parent"),o&&clearTimeout(o),a&&a.data&&a.data.jstree){r.hide().detach();var l,c,d=[];if(i){for(l=0,c=a.data.nodes.length;l<c;l++)d[l]=a.data.origin?a.data.origin.get_node(a.data.nodes[l]):a.data.nodes[l];i.ins[a.data.origin&&(a.data.origin.settings.dnd.always_copy||a.data.origin.settings.dnd.copy&&(a.event.metaKey||a.event.ctrlKey))?"copy_node":"move_node"](d,i.par,i.pos,!1,!1,!1,a.data.origin)}else(l=e(a.event.target).closest(".jstree")).length&&n&&n.error&&"check"===n.error&&(l=l.jstree(!0))&&l.settings.core.error.call(this,n);s=!1,i=!1}})).on("keyup.jstree keydown.jstree",(function(t,a){(a=e.vakata.dnd._get())&&a.data&&a.data.jstree&&("keyup"===t.type&&27===t.which?(o&&clearTimeout(o),i=!1,n=!1,s=!1,o=!1,r.hide().detach(),e.vakata.dnd._clean()):(a.helper.find(".jstree-copy").first()[a.data.origin&&(a.data.origin.settings.dnd.always_copy||a.data.origin.settings.dnd.copy&&(t.metaKey||t.ctrlKey))?"show":"hide"](),s&&(s.metaKey=t.metaKey,s.ctrlKey=t.ctrlKey,e.vakata.dnd._trigger("move",s))))}))})),function(e){e.vakata.html={div:e("<div></div>"),escape:function(t){return e.vakata.html.div.text(t).html()},strip:function(t){return e.vakata.html.div.empty().append(e.parseHTML(t)).text()}};var i={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1};e.vakata.dnd={settings:{scroll_speed:10,scroll_proximity:20,helper_left:5,helper_top:10,threshold:5,threshold_touch:10},_trigger:function(i,n,s){s===t&&(s=e.vakata.dnd._get()),s.event=n,e(l).triggerHandler("dnd_"+i+".vakata",s)},_get:function(){return{data:i.data,element:i.element,helper:i.helper}},_clean:function(){i.helper&&i.helper.remove(),i.scroll_i&&(clearInterval(i.scroll_i),i.scroll_i=!1),i={element:!1,target:!1,is_down:!1,is_drag:!1,helper:!1,helper_w:0,data:!1,init_x:0,init_y:0,scroll_l:0,scroll_t:0,scroll_e:!1,scroll_i:!1,is_touch:!1},u=null,e(l).off("mousemove.vakata.jstree touchmove.vakata.jstree",e.vakata.dnd.drag),e(l).off("mouseup.vakata.jstree touchend.vakata.jstree",e.vakata.dnd.stop)},_scroll:function(t){if(!i.scroll_e||!i.scroll_l&&!i.scroll_t)return i.scroll_i&&(clearInterval(i.scroll_i),i.scroll_i=!1),!1;if(!i.scroll_i)return i.scroll_i=setInterval(e.vakata.dnd._scroll,100),!1;if(!0===t)return!1;var n=i.scroll_e.scrollTop(),s=i.scroll_e.scrollLeft();i.scroll_e.scrollTop(n+i.scroll_t*e.vakata.dnd.settings.scroll_speed),i.scroll_e.scrollLeft(s+i.scroll_l*e.vakata.dnd.settings.scroll_speed),n===i.scroll_e.scrollTop()&&s===i.scroll_e.scrollLeft()||e.vakata.dnd._trigger("scroll",i.scroll_e)},start:function(t,n,s){"touchstart"===t.type&&t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches[0]&&(t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,t.target=l.elementFromPoint(t.originalEvent.changedTouches[0].pageX-window.pageXOffset,t.originalEvent.changedTouches[0].pageY-window.pageYOffset)),i.is_drag&&e.vakata.dnd.stop({});try{t.currentTarget.unselectable="on",t.currentTarget.onselectstart=function(){return!1},t.currentTarget.style&&(t.currentTarget.style.touchAction="none",t.currentTarget.style.msTouchAction="none",t.currentTarget.style.MozUserSelect="none")}catch(e){}return i.init_x=t.pageX,i.init_y=t.pageY,i.data=n,i.is_down=!0,i.element=t.currentTarget,i.target=t.target,i.is_touch="touchstart"===t.type,!1!==s&&(i.helper=e("<div id='vakata-dnd'></div>").html(s).css({display:"block",margin:"0",padding:"0",position:"absolute",top:"-2000px",lineHeight:"16px",zIndex:"10000"})),e(l).on("mousemove.vakata.jstree touchmove.vakata.jstree",e.vakata.dnd.drag),e(l).on("mouseup.vakata.jstree touchend.vakata.jstree",e.vakata.dnd.stop),!1},drag:function(t){if("touchmove"===t.type&&t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches[0]&&(t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,t.target=l.elementFromPoint(t.originalEvent.changedTouches[0].pageX-window.pageXOffset,t.originalEvent.changedTouches[0].pageY-window.pageYOffset)),i.is_down){if(!i.is_drag){if(!(Math.abs(t.pageX-i.init_x)>(i.is_touch?e.vakata.dnd.settings.threshold_touch:e.vakata.dnd.settings.threshold)||Math.abs(t.pageY-i.init_y)>(i.is_touch?e.vakata.dnd.settings.threshold_touch:e.vakata.dnd.settings.threshold)))return;i.helper&&(i.helper.appendTo(l.body),i.helper_w=i.helper.outerWidth()),i.is_drag=!0,e(i.target).one("click.vakata",!1),e.vakata.dnd._trigger("start",t)}var n=!1,s=!1,o=!1,r=!1,a=!1,c=!1,d=!1,h=!1,u=!1,p=!1;return i.scroll_t=0,i.scroll_l=0,i.scroll_e=!1,e(e(t.target).parentsUntil("body").addBack().get().reverse()).filter((function(){return/^auto|scroll$/.test(e(this).css("overflow"))&&(this.scrollHeight>this.offsetHeight||this.scrollWidth>this.offsetWidth)})).each((function(){var n=e(this),s=n.offset();if(this.scrollHeight>this.offsetHeight&&(s.top+n.height()-t.pageY<e.vakata.dnd.settings.scroll_proximity&&(i.scroll_t=1),t.pageY-s.top<e.vakata.dnd.settings.scroll_proximity&&(i.scroll_t=-1)),this.scrollWidth>this.offsetWidth&&(s.left+n.width()-t.pageX<e.vakata.dnd.settings.scroll_proximity&&(i.scroll_l=1),t.pageX-s.left<e.vakata.dnd.settings.scroll_proximity&&(i.scroll_l=-1)),i.scroll_t||i.scroll_l)return i.scroll_e=e(this),!1})),i.scroll_e||(n=e(l),s=e(window),o=n.height(),r=s.height(),a=n.width(),c=s.width(),d=n.scrollTop(),h=n.scrollLeft(),o>r&&t.pageY-d<e.vakata.dnd.settings.scroll_proximity&&(i.scroll_t=-1),o>r&&r-(t.pageY-d)<e.vakata.dnd.settings.scroll_proximity&&(i.scroll_t=1),a>c&&t.pageX-h<e.vakata.dnd.settings.scroll_proximity&&(i.scroll_l=-1),a>c&&c-(t.pageX-h)<e.vakata.dnd.settings.scroll_proximity&&(i.scroll_l=1),(i.scroll_t||i.scroll_l)&&(i.scroll_e=n)),i.scroll_e&&e.vakata.dnd._scroll(!0),i.helper&&(u=parseInt(t.pageY+e.vakata.dnd.settings.helper_top,10),p=parseInt(t.pageX+e.vakata.dnd.settings.helper_left,10),o&&u+25>o&&(u=o-50),a&&p+i.helper_w>a&&(p=a-(i.helper_w+2)),i.helper.css({left:p+"px",top:u+"px"})),e.vakata.dnd._trigger("move",t),!1}},stop:function(t){if("touchend"===t.type&&t.originalEvent&&t.originalEvent.changedTouches&&t.originalEvent.changedTouches[0]&&(t.pageX=t.originalEvent.changedTouches[0].pageX,t.pageY=t.originalEvent.changedTouches[0].pageY,t.target=l.elementFromPoint(t.originalEvent.changedTouches[0].pageX-window.pageXOffset,t.originalEvent.changedTouches[0].pageY-window.pageYOffset)),i.is_drag)t.target!==i.target&&e(i.target).off("click.vakata"),e.vakata.dnd._trigger("stop",t);else if("touchend"===t.type&&t.target===i.target){var n=setTimeout((function(){e(t.target).trigger("click")}),100);e(t.target).one("click",(function(){n&&clearTimeout(n)}))}return e.vakata.dnd._clean(),!1}}}(e),e.jstree.defaults.massload=null,e.jstree.plugins.massload=function(t,i){this.init=function(e,t){this._data.massload={},i.init.call(this,e,t)},this._load_nodes=function(t,n,s,o){var r,a,l,c=this.settings.massload,d=[],h=this._model.data;if(!s){for(r=0,a=t.length;r<a;r++)h[t[r]]&&(h[t[r]].state.loaded||h[t[r]].state.failed)&&!o||(d.push(t[r]),(l=this.get_node(t[r],!0))&&l.length&&l.addClass("jstree-loading").attr("aria-busy",!0));if(this._data.massload={},d.length){if(e.vakata.is_function(c))return c.call(this,d,function(e){var r,a;if(e)for(r in e)e.hasOwnProperty(r)&&(this._data.massload[r]=e[r]);for(r=0,a=t.length;r<a;r++)(l=this.get_node(t[r],!0))&&l.length&&l.removeClass("jstree-loading").attr("aria-busy",!1);i._load_nodes.call(this,t,n,s,o)}.bind(this));if("object"==typeof c&&c&&c.url)return c=e.extend(!0,{},c),e.vakata.is_function(c.url)&&(c.url=c.url.call(this,d)),e.vakata.is_function(c.data)&&(c.data=c.data.call(this,d)),e.ajax(c).done(function(e,r,a){var c,d;if(e)for(c in e)e.hasOwnProperty(c)&&(this._data.massload[c]=e[c]);for(c=0,d=t.length;c<d;c++)(l=this.get_node(t[c],!0))&&l.length&&l.removeClass("jstree-loading").attr("aria-busy",!1);i._load_nodes.call(this,t,n,s,o)}.bind(this)).fail(function(e){i._load_nodes.call(this,t,n,s,o)}.bind(this))}}return i._load_nodes.call(this,t,n,s,o)},this._load_node=function(t,n){var s,o=this._data.massload[t.id],r=null;return o?(r=this["string"==typeof o?"_append_html_data":"_append_json_data"](t,"string"==typeof o?e(e.parseHTML(o)).filter((function(){return 3!==this.nodeType})):o,(function(e){n.call(this,e)})),(s=this.get_node(t.id,!0))&&s.length&&s.removeClass("jstree-loading").attr("aria-busy",!1),delete this._data.massload[t.id],r):i._load_node.call(this,t,n)}},e.jstree.defaults.search={ajax:!1,fuzzy:!1,case_sensitive:!1,show_only_matches:!1,show_only_matches_children:!1,close_opened_onclear:!0,search_leaves_only:!1,search_callback:!1},e.jstree.plugins.search=function(i,n){this.bind=function(){n.bind.call(this),this._data.search.str="",this._data.search.dom=e(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=!1,this._data.search.smc=!1,this._data.search.hdn=[],this.element.on("search.jstree",function(t,i){if(this._data.search.som&&i.res.length){var n,s,o,r,a=this._model.data,l=[];for(n=0,s=i.res.length;n<s;n++)if(a[i.res[n]]&&!a[i.res[n]].state.hidden&&(l.push(i.res[n]),l=l.concat(a[i.res[n]].parents),this._data.search.smc))for(o=0,r=a[i.res[n]].children_d.length;o<r;o++)a[a[i.res[n]].children_d[o]]&&!a[a[i.res[n]].children_d[o]].state.hidden&&l.push(a[i.res[n]].children_d[o]);l=e.vakata.array_remove_item(e.vakata.array_unique(l),e.jstree.root),this._data.search.hdn=this.hide_all(!0),this.show_node(l,!0),this.redraw(!0)}}.bind(this)).on("clear_search.jstree",function(e,t){this._data.search.som&&t.res.length&&(this.show_node(this._data.search.hdn,!0),this.redraw(!0))}.bind(this))},this.search=function(i,n,s,o,r,a){if(!1===i||""===e.vakata.trim(i.toString()))return this.clear_search();o=(o=this.get_node(o))&&o.id?o.id:null,i=i.toString();var l,c,d=this.settings.search,h=!!d.ajax&&d.ajax,u=this._model.data,p=null,f=[],g=[];if(this._data.search.res.length&&!r&&this.clear_search(),s===t&&(s=d.show_only_matches),a===t&&(a=d.show_only_matches_children),!n&&!1!==h)return e.vakata.is_function(h)?h.call(this,i,function(t){t&&t.d&&(t=t.d),this._load_nodes(e.vakata.is_array(t)?e.vakata.array_unique(t):[],(function(){this.search(i,!0,s,o,r,a)}))}.bind(this),o):((h=e.extend({},h)).data||(h.data={}),h.data.str=i,o&&(h.data.inside=o),this._data.search.lastRequest&&this._data.search.lastRequest.abort(),this._data.search.lastRequest=e.ajax(h).fail(function(){this._data.core.last_error={error:"ajax",plugin:"search",id:"search_01",reason:"Could not load search parents",data:JSON.stringify(h)},this.settings.core.error.call(this,this._data.core.last_error)}.bind(this)).done(function(t){t&&t.d&&(t=t.d),this._load_nodes(e.vakata.is_array(t)?e.vakata.array_unique(t):[],(function(){this.search(i,!0,s,o,r,a)}))}.bind(this)),this._data.search.lastRequest);if(r||(this._data.search.str=i,this._data.search.dom=e(),this._data.search.res=[],this._data.search.opn=[],this._data.search.som=s,this._data.search.smc=a),p=new e.vakata.search(i,!0,{caseSensitive:d.case_sensitive,fuzzy:d.fuzzy}),e.each(u[o||e.jstree.root].children_d,(function(e,t){var n=u[t];n.text&&!n.state.hidden&&(!d.search_leaves_only||n.state.loaded&&0===n.children.length)&&(d.search_callback&&d.search_callback.call(this,i,n)||!d.search_callback&&p.search(n.text).isMatch)&&(f.push(t),g=g.concat(n.parents))})),f.length){for(l=0,c=(g=e.vakata.array_unique(g)).length;l<c;l++)g[l]!==e.jstree.root&&u[g[l]]&&!0===this.open_node(g[l],null,0)&&this._data.search.opn.push(g[l]);r?(this._data.search.dom=this._data.search.dom.add(e(this.element[0].querySelectorAll("#"+e.map(f,(function(t){return-1!=="0123456789".indexOf(t[0])?"\\3"+t[0]+" "+t.substr(1).replace(e.jstree.idregex,"\\$&"):t.replace(e.jstree.idregex,"\\$&")})).join(", #")))),this._data.search.res=e.vakata.array_unique(this._data.search.res.concat(f))):(this._data.search.dom=e(this.element[0].querySelectorAll("#"+e.map(f,(function(t){return-1!=="0123456789".indexOf(t[0])?"\\3"+t[0]+" "+t.substr(1).replace(e.jstree.idregex,"\\$&"):t.replace(e.jstree.idregex,"\\$&")})).join(", #"))),this._data.search.res=f),this._data.search.dom.children(".jstree-anchor").addClass("jstree-search")}this.trigger("search",{nodes:this._data.search.dom,str:i,res:this._data.search.res,show_only_matches:s})},this.clear_search=function(){this.settings.search.close_opened_onclear&&this.close_node(this._data.search.opn,0),this.trigger("clear_search",{nodes:this._data.search.dom,str:this._data.search.str,res:this._data.search.res}),this._data.search.res.length&&(this._data.search.dom=e(this.element[0].querySelectorAll("#"+e.map(this._data.search.res,(function(t){return-1!=="0123456789".indexOf(t[0])?"\\3"+t[0]+" "+t.substr(1).replace(e.jstree.idregex,"\\$&"):t.replace(e.jstree.idregex,"\\$&")})).join(", #"))),this._data.search.dom.children(".jstree-anchor").removeClass("jstree-search")),this._data.search.str="",this._data.search.res=[],this._data.search.opn=[],this._data.search.dom=e()},this.redraw_node=function(t,i,s,o){if((t=n.redraw_node.apply(this,arguments))&&-1!==e.inArray(t.id,this._data.search.res)){var r,a,l=null;for(r=0,a=t.childNodes.length;r<a;r++)if(t.childNodes[r]&&t.childNodes[r].className&&-1!==t.childNodes[r].className.indexOf("jstree-anchor")){l=t.childNodes[r];break}l&&(l.className+=" jstree-search")}return t}},function(e){e.vakata.search=function(t,i,n){n=n||{},!1!==(n=e.extend({},e.vakata.search.defaults,n)).fuzzy&&(n.fuzzy=!0),t=n.caseSensitive?t:t.toLowerCase();var s,o,r,a,l=n.location,c=n.distance,d=n.threshold,h=t.length;return h>32&&(n.fuzzy=!1),n.fuzzy&&(s=1<<h-1,o=function(){var e={},i=0;for(i=0;i<h;i++)e[t.charAt(i)]=0;for(i=0;i<h;i++)e[t.charAt(i)]|=1<<h-i-1;return e}(),r=function(e,t){var i=e/h,n=Math.abs(l-t);return c?i+n/c:n?1:i}),a=function(e){if(e=n.caseSensitive?e:e.toLowerCase(),t===e||-1!==e.indexOf(t))return{isMatch:!0,score:0};if(!n.fuzzy)return{isMatch:!1,score:1};var i,a,c,u,p,f,g,m,v,_=e.length,y=d,b=e.indexOf(t,l),w=h+_,x=1,k=[];for(-1!==b&&(y=Math.min(r(0,b),y),-1!==(b=e.lastIndexOf(t,l+h))&&(y=Math.min(r(0,b),y))),b=-1,i=0;i<h;i++){for(c=0,u=w;c<u;)r(i,l+u)<=y?c=u:w=u,u=Math.floor((w-c)/2+c);for(w=u,f=Math.max(1,l-u+1),g=Math.min(l+u,_)+h,(m=new Array(g+2))[g+1]=(1<<i)-1,a=g;a>=f;a--)if(v=o[e.charAt(a-1)],m[a]=0===i?(m[a+1]<<1|1)&v:(m[a+1]<<1|1)&v|(p[a+1]|p[a])<<1|1|p[a+1],m[a]&s&&(x=r(i,a-1))<=y){if(y=x,b=a-1,k.push(b),!(b>l))break;f=Math.max(1,2*l-b)}if(r(i+1,l)>y)break;p=m}return{isMatch:b>=0,score:x}},!0===i?{search:a}:a(i)},e.vakata.search.defaults={location:0,distance:100,threshold:.6,fuzzy:!1,caseSensitive:!1}}(e),e.jstree.defaults.sort=function(e,t){return this.get_text(e)>this.get_text(t)?1:-1},e.jstree.plugins.sort=function(e,t){this.bind=function(){t.bind.call(this),this.element.on("model.jstree",function(e,t){this.sort(t.parent,!0)}.bind(this)).on("rename_node.jstree create_node.jstree",function(e,t){this.sort(t.parent||t.node.parent,!1),this.redraw_node(t.parent||t.node.parent,!0)}.bind(this)).on("move_node.jstree copy_node.jstree",function(e,t){this.sort(t.parent,!1),this.redraw_node(t.parent,!0)}.bind(this))},this.sort=function(e,t){var i,n;if((e=this.get_node(e))&&e.children&&e.children.length&&(e.children.sort(this.settings.sort.bind(this)),t))for(i=0,n=e.children_d.length;i<n;i++)this.sort(e.children_d[i],!1)}};var f=!1;e.jstree.defaults.state={key:"jstree",events:"changed.jstree open_node.jstree close_node.jstree check_node.jstree uncheck_node.jstree",ttl:!1,filter:!1,preserve_loaded:!1},e.jstree.plugins.state=function(t,i){this.bind=function(){i.bind.call(this);var e=function(){this.element.on(this.settings.state.events,function(){f&&clearTimeout(f),f=setTimeout(function(){this.save_state()}.bind(this),100)}.bind(this)),this.trigger("state_ready")}.bind(this);this.element.on("ready.jstree",function(t,i){this.element.one("restore_state.jstree",e),this.restore_state()||e()}.bind(this))},this.save_state=function(){var t=this.get_state();this.settings.state.preserve_loaded||delete t.core.loaded;var i={state:t,ttl:this.settings.state.ttl,sec:+new Date};e.vakata.storage.set(this.settings.state.key,JSON.stringify(i))},this.restore_state=function(){var t=e.vakata.storage.get(this.settings.state.key);if(t)try{t=JSON.parse(t)}catch(e){return!1}return!(t&&t.ttl&&t.sec&&+new Date-t.sec>t.ttl||(t&&t.state&&(t=t.state),t&&e.vakata.is_function(this.settings.state.filter)&&(t=this.settings.state.filter.call(this,t)),!t||(this.settings.state.preserve_loaded||delete t.core.loaded,this.element.one("set_state.jstree",(function(i,n){n.instance.trigger("restore_state",{state:e.extend(!0,{},t)})})),this.set_state(t),0)))},this.clear_state=function(){return e.vakata.storage.del(this.settings.state.key)}},function(e,t){e.vakata.storage={set:function(e,t){return window.localStorage.setItem(e,t)},get:function(e){return window.localStorage.getItem(e)},del:function(e){return window.localStorage.removeItem(e)}}}(e),e.jstree.defaults.types={default:{}},e.jstree.defaults.types[e.jstree.root]={},e.jstree.plugins.types=function(i,n){this.init=function(i,s){var o,r;if(s&&s.types&&s.types.default)for(o in s.types)if("default"!==o&&o!==e.jstree.root&&s.types.hasOwnProperty(o))for(r in s.types.default)s.types.default.hasOwnProperty(r)&&s.types[o][r]===t&&(s.types[o][r]=s.types.default[r]);n.init.call(this,i,s),this._model.data[e.jstree.root].type=e.jstree.root},this.refresh=function(t,i){n.refresh.call(this,t,i),this._model.data[e.jstree.root].type=e.jstree.root},this.bind=function(){this.element.on("model.jstree",function(i,n){var s,o,r,a=this._model.data,l=n.nodes,c=this.settings.types,d="default";for(s=0,o=l.length;s<o;s++){if(d="default",a[l[s]].original&&a[l[s]].original.type&&c[a[l[s]].original.type]&&(d=a[l[s]].original.type),a[l[s]].data&&a[l[s]].data.jstree&&a[l[s]].data.jstree.type&&c[a[l[s]].data.jstree.type]&&(d=a[l[s]].data.jstree.type),a[l[s]].type=d,!0===a[l[s]].icon&&c[d].icon!==t&&(a[l[s]].icon=c[d].icon),c[d].li_attr!==t&&"object"==typeof c[d].li_attr)for(r in c[d].li_attr)if(c[d].li_attr.hasOwnProperty(r)){if("id"===r)continue;a[l[s]].li_attr[r]===t?a[l[s]].li_attr[r]=c[d].li_attr[r]:"class"===r&&(a[l[s]].li_attr.class=c[d].li_attr.class+" "+a[l[s]].li_attr.class)}if(c[d].a_attr!==t&&"object"==typeof c[d].a_attr)for(r in c[d].a_attr)if(c[d].a_attr.hasOwnProperty(r)){if("id"===r)continue;a[l[s]].a_attr[r]===t?a[l[s]].a_attr[r]=c[d].a_attr[r]:"href"===r&&"#"===a[l[s]].a_attr[r]?a[l[s]].a_attr.href=c[d].a_attr.href:"class"===r&&(a[l[s]].a_attr.class=c[d].a_attr.class+" "+a[l[s]].a_attr.class)}}a[e.jstree.root].type=e.jstree.root}.bind(this)),n.bind.call(this)},this.get_json=function(t,i,s){var o,r,a=this._model.data,l=i?e.extend(!0,{},i,{no_id:!1}):{},c=n.get_json.call(this,t,l,s);if(!1===c)return!1;if(e.vakata.is_array(c))for(o=0,r=c.length;o<r;o++)c[o].type=c[o].id&&a[c[o].id]&&a[c[o].id].type?a[c[o].id].type:"default",i&&i.no_id&&(delete c[o].id,c[o].li_attr&&c[o].li_attr.id&&delete c[o].li_attr.id,c[o].a_attr&&c[o].a_attr.id&&delete c[o].a_attr.id);else c.type=c.id&&a[c.id]&&a[c.id].type?a[c.id].type:"default",i&&i.no_id&&(c=this._delete_ids(c));return c},this._delete_ids=function(t){if(e.vakata.is_array(t)){for(var i=0,n=t.length;i<n;i++)t[i]=this._delete_ids(t[i]);return t}return delete t.id,t.li_attr&&t.li_attr.id&&delete t.li_attr.id,t.a_attr&&t.a_attr.id&&delete t.a_attr.id,t.children&&e.vakata.is_array(t.children)&&(t.children=this._delete_ids(t.children)),t},this.check=function(i,s,o,r,a){if(!1===n.check.call(this,i,s,o,r,a))return!1;s=s&&s.id?s:this.get_node(s),o=o&&o.id?o:this.get_node(o);var l,c,d,h,u=s&&s.id?a&&a.origin?a.origin:e.jstree.reference(s.id):null;switch(u=u&&u._model&&u._model.data?u._model.data:null,i){case"create_node":case"move_node":case"copy_node":if("move_node"!==i||-1===e.inArray(s.id,o.children)){if((l=this.get_rules(o)).max_children!==t&&-1!==l.max_children&&l.max_children===o.children.length)return this._data.core.last_error={error:"check",plugin:"types",id:"types_01",reason:"max_children prevents function: "+i,data:JSON.stringify({chk:i,pos:r,obj:!(!s||!s.id)&&s.id,par:!(!o||!o.id)&&o.id})},!1;if(l.valid_children!==t&&-1!==l.valid_children&&-1===e.inArray(s.type||"default",l.valid_children))return this._data.core.last_error={error:"check",plugin:"types",id:"types_02",reason:"valid_children prevents function: "+i,data:JSON.stringify({chk:i,pos:r,obj:!(!s||!s.id)&&s.id,par:!(!o||!o.id)&&o.id})},!1;if(u&&s.children_d&&s.parents){for(c=0,d=0,h=s.children_d.length;d<h;d++)c=Math.max(c,u[s.children_d[d]].parents.length);c=c-s.parents.length+1}(c<=0||c===t)&&(c=1);do{if(l.max_depth!==t&&-1!==l.max_depth&&l.max_depth<c)return this._data.core.last_error={error:"check",plugin:"types",id:"types_03",reason:"max_depth prevents function: "+i,data:JSON.stringify({chk:i,pos:r,obj:!(!s||!s.id)&&s.id,par:!(!o||!o.id)&&o.id})},!1;o=this.get_node(o.parent),l=this.get_rules(o),c++}while(o)}}return!0},this.get_rules=function(e){if(!(e=this.get_node(e)))return!1;var i=this.get_type(e,!0);return i.max_depth===t&&(i.max_depth=-1),i.max_children===t&&(i.max_children=-1),i.valid_children===t&&(i.valid_children=-1),i},this.get_type=function(t,i){return!!(t=this.get_node(t))&&(i?e.extend({type:t.type},this.settings.types[t.type]):t.type)},this.set_type=function(i,n){var s,o,r,a,l,c,d,h,u=this._model.data;if(e.vakata.is_array(i)){for(o=0,r=(i=i.slice()).length;o<r;o++)this.set_type(i[o],n);return!0}if(s=this.settings.types,i=this.get_node(i),!s[n]||!i)return!1;if((d=this.get_node(i,!0))&&d.length&&(h=d.children(".jstree-anchor")),a=i.type,l=this.get_icon(i),i.type=n,(!0===l||!s[a]||s[a].icon!==t&&l===s[a].icon)&&this.set_icon(i,s[n].icon===t||s[n].icon),s[a]&&s[a].li_attr!==t&&"object"==typeof s[a].li_attr)for(c in s[a].li_attr)if(s[a].li_attr.hasOwnProperty(c)){if("id"===c)continue;"class"===c?(u[i.id].li_attr.class=(u[i.id].li_attr.class||"").replace(s[a].li_attr[c],""),d&&d.removeClass(s[a].li_attr[c])):u[i.id].li_attr[c]===s[a].li_attr[c]&&(u[i.id].li_attr[c]=null,d&&d.removeAttr(c))}if(s[a]&&s[a].a_attr!==t&&"object"==typeof s[a].a_attr)for(c in s[a].a_attr)if(s[a].a_attr.hasOwnProperty(c)){if("id"===c)continue;"class"===c?(u[i.id].a_attr.class=(u[i.id].a_attr.class||"").replace(s[a].a_attr[c],""),h&&h.removeClass(s[a].a_attr[c])):u[i.id].a_attr[c]===s[a].a_attr[c]&&("href"===c?(u[i.id].a_attr[c]="#",h&&h.attr("href","#")):(delete u[i.id].a_attr[c],h&&h.removeAttr(c)))}if(s[n].li_attr!==t&&"object"==typeof s[n].li_attr)for(c in s[n].li_attr)if(s[n].li_attr.hasOwnProperty(c)){if("id"===c)continue;u[i.id].li_attr[c]===t?(u[i.id].li_attr[c]=s[n].li_attr[c],d&&("class"===c?d.addClass(s[n].li_attr[c]):d.attr(c,s[n].li_attr[c]))):"class"===c&&(u[i.id].li_attr.class=s[n].li_attr[c]+" "+u[i.id].li_attr.class,d&&d.addClass(s[n].li_attr[c]))}if(s[n].a_attr!==t&&"object"==typeof s[n].a_attr)for(c in s[n].a_attr)if(s[n].a_attr.hasOwnProperty(c)){if("id"===c)continue;u[i.id].a_attr[c]===t?(u[i.id].a_attr[c]=s[n].a_attr[c],h&&("class"===c?h.addClass(s[n].a_attr[c]):h.attr(c,s[n].a_attr[c]))):"href"===c&&"#"===u[i.id].a_attr[c]?(u[i.id].a_attr.href=s[n].a_attr.href,h&&h.attr("href",s[n].a_attr.href)):"class"===c&&(u[i.id].a_attr.class=s[n].a_attr.class+" "+u[i.id].a_attr.class,h&&h.addClass(s[n].a_attr[c]))}return!0}},e.jstree.defaults.unique={case_sensitive:!1,trim_whitespace:!1,duplicate:function(e,t){return e+" ("+t+")"}},e.jstree.plugins.unique=function(i,n){this.check=function(t,i,s,o,r){if(!1===n.check.call(this,t,i,s,o,r))return!1;if(i=i&&i.id?i:this.get_node(i),!(s=s&&s.id?s:this.get_node(s))||!s.children)return!0;var a,l,c,d="rename_node"===t?o:i.text,h=[],u=this.settings.unique.case_sensitive,p=this.settings.unique.trim_whitespace,f=this._model.data;for(a=0,l=s.children.length;a<l;a++)c=f[s.children[a]].text,u||(c=c.toLowerCase()),p&&(c=c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),h.push(c);switch(u||(d=d.toLowerCase()),p&&(d=d.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),t){case"delete_node":return!0;case"rename_node":return c=i.text||"",u||(c=c.toLowerCase()),p&&(c=c.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),(a=-1===e.inArray(d,h)||i.text&&c===d)||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_01",reason:"Child with name "+d+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:o,obj:!(!i||!i.id)&&i.id,par:!(!s||!s.id)&&s.id})}),a;case"create_node":return(a=-1===e.inArray(d,h))||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_04",reason:"Child with name "+d+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:o,obj:!(!i||!i.id)&&i.id,par:!(!s||!s.id)&&s.id})}),a;case"copy_node":return(a=-1===e.inArray(d,h))||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_02",reason:"Child with name "+d+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:o,obj:!(!i||!i.id)&&i.id,par:!(!s||!s.id)&&s.id})}),a;case"move_node":return(a=i.parent===s.id&&(!r||!r.is_multi)||-1===e.inArray(d,h))||(this._data.core.last_error={error:"check",plugin:"unique",id:"unique_03",reason:"Child with name "+d+" already exists. Preventing: "+t,data:JSON.stringify({chk:t,pos:o,obj:!(!i||!i.id)&&i.id,par:!(!s||!s.id)&&s.id})}),a}return!0},this.create_node=function(i,s,o,r,a){if(!s||s.text===t){if(null===i&&(i=e.jstree.root),!(i=this.get_node(i)))return n.create_node.call(this,i,s,o,r,a);if(!(o=o===t?"last":o).toString().match(/^(before|after)$/)&&!a&&!this.is_loaded(i))return n.create_node.call(this,i,s,o,r,a);s||(s={});var l,c,d,h,u,p,f=this._model.data,g=this.settings.unique.case_sensitive,m=this.settings.unique.trim_whitespace,v=this.settings.unique.duplicate;for(c=l=this.get_string("New node"),d=[],h=0,u=i.children.length;h<u;h++)p=f[i.children[h]].text,g||(p=p.toLowerCase()),m&&(p=p.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")),d.push(p);for(h=1,p=c,g||(p=p.toLowerCase()),m&&(p=p.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));-1!==e.inArray(p,d);)p=c=v.call(this,l,++h).toString(),g||(p=p.toLowerCase()),m&&(p=p.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""));s.text=c}return n.create_node.call(this,i,s,o,r,a)}};var g=l.createElement("DIV");if(g.setAttribute("unselectable","on"),g.setAttribute("role","presentation"),g.className="jstree-wholerow",g.innerHTML="&#160;",e.jstree.plugins.wholerow=function(t,i){this.bind=function(){i.bind.call(this),this.element.on("ready.jstree set_state.jstree",function(){this.hide_dots()}.bind(this)).on("init.jstree loading.jstree ready.jstree",function(){this.get_container_ul().addClass("jstree-wholerow-ul")}.bind(this)).on("deselect_all.jstree",function(e,t){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked")}.bind(this)).on("changed.jstree",function(e,t){this.element.find(".jstree-wholerow-clicked").removeClass("jstree-wholerow-clicked");var i,n,s=!1;for(i=0,n=t.selected.length;i<n;i++)(s=this.get_node(t.selected[i],!0))&&s.length&&s.children(".jstree-wholerow").addClass("jstree-wholerow-clicked")}.bind(this)).on("open_node.jstree",function(e,t){this.get_node(t.node,!0).find(".jstree-clicked").parent().children(".jstree-wholerow").addClass("jstree-wholerow-clicked")}.bind(this)).on("hover_node.jstree dehover_node.jstree",function(e,t){"hover_node"===e.type&&this.is_disabled(t.node)||this.get_node(t.node,!0).children(".jstree-wholerow")["hover_node"===e.type?"addClass":"removeClass"]("jstree-wholerow-hovered")}.bind(this)).on("contextmenu.jstree",".jstree-wholerow",function(t){if(this._data.contextmenu){t.preventDefault();var i=e.Event("contextmenu",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey,pageX:t.pageX,pageY:t.pageY});e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(i)}}.bind(this)).on("click.jstree",".jstree-wholerow",(function(t){t.stopImmediatePropagation();var i=e.Event("click",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey});e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(i).trigger("focus")})).on("dblclick.jstree",".jstree-wholerow",(function(t){t.stopImmediatePropagation();var i=e.Event("dblclick",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey});e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(i).trigger("focus")})).on("click.jstree",".jstree-leaf > .jstree-ocl",function(t){t.stopImmediatePropagation();var i=e.Event("click",{metaKey:t.metaKey,ctrlKey:t.ctrlKey,altKey:t.altKey,shiftKey:t.shiftKey});e(t.currentTarget).closest(".jstree-node").children(".jstree-anchor").first().trigger(i).trigger("focus")}.bind(this)).on("mouseover.jstree",".jstree-wholerow, .jstree-icon",function(e){return e.stopImmediatePropagation(),this.is_disabled(e.currentTarget)||this.hover_node(e.currentTarget),!1}.bind(this)).on("mouseleave.jstree",".jstree-node",function(e){this.dehover_node(e.currentTarget)}.bind(this))},this.teardown=function(){this.settings.wholerow&&this.element.find(".jstree-wholerow").remove(),i.teardown.call(this)},this.redraw_node=function(t,n,s,o){if(t=i.redraw_node.apply(this,arguments)){var r=g.cloneNode(!0);-1!==e.inArray(t.id,this._data.core.selected)&&(r.className+=" jstree-wholerow-clicked"),this._data.core.focused&&this._data.core.focused===t.id&&(r.className+=" jstree-wholerow-hovered"),t.insertBefore(r,t.childNodes[0])}return t}},window.customElements&&Object&&Object.create){var m=Object.create(HTMLElement.prototype);m.createdCallback=function(){var t,i={core:{},plugins:[]};for(t in e.jstree.plugins)e.jstree.plugins.hasOwnProperty(t)&&this.attributes[t]&&(i.plugins.push(t),this.getAttribute(t)&&JSON.parse(this.getAttribute(t))&&(i[t]=JSON.parse(this.getAttribute(t))));for(t in e.jstree.defaults.core)e.jstree.defaults.core.hasOwnProperty(t)&&this.attributes[t]&&(i.core[t]=JSON.parse(this.getAttribute(t))||this.getAttribute(t));e(this).jstree(i)};try{window.customElements.define("vakata-jstree",(function(){}),{prototype:m})}catch(e){}}}},void 0===(o=n.apply(t,s))||(e.exports=o)}()},8688:function(e,t,i){var n,s,o,r,a,l,c,d,h,u,p,f,g,m,v,_,y,b,w;!function(n,s){b=[i(3193)],w=function(e){return function(e,t){"use strict";var i=Array.prototype.slice,n=e.console,s=void 0===n?function(){}:function(e){n.error(e)};function o(n,o,a){function l(e,t,i){var o,r="$()."+n+'("'+t+'")';return e.each((function(e,l){var c=a.data(l,n);if(c){var d=c[t];if(d&&"_"!=t.charAt(0)){var h=d.apply(c,i);o=void 0===o?h:o}else s(r+" is not a valid method")}else s(n+" not initialized. Cannot call methods, i.e. "+r)})),void 0!==o?o:e}function c(e,t){e.each((function(e,i){var s=a.data(i,n);s?(s.option(t),s._init()):(s=new o(i,t),a.data(i,n,s))}))}(a=a||t||e.jQuery)&&(o.prototype.option||(o.prototype.option=function(e){a.isPlainObject(e)&&(this.options=a.extend(!0,this.options,e))}),a.fn[n]=function(e){return"string"==typeof e?l(this,e,i.call(arguments,1)):(c(this,e),this)},r(a))}function r(e){!e||e&&e.bridget||(e.bridget=o)}return r(t||e.jQuery),o}(n,e)}.apply(t,b),void 0===w||(e.exports=w)}(window),"undefined"!=typeof window&&window,"function"==typeof(s=function(){function e(){}var t=e.prototype;return t.on=function(e,t){if(e&&t){var i=this._events=this._events||{},n=i[e]=i[e]||[];return-1==n.indexOf(t)&&n.push(t),this}},t.once=function(e,t){if(e&&t){this.on(e,t);var i=this._onceEvents=this._onceEvents||{};return(i[e]=i[e]||{})[t]=!0,this}},t.off=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){var n=i.indexOf(t);return-1!=n&&i.splice(n,1),this}},t.emitEvent=function(e,t){var i=this._events&&this._events[e];if(i&&i.length){i=i.slice(0),t=t||[];for(var n=this._onceEvents&&this._onceEvents[e],s=0;s<i.length;s++){var o=i[s];n&&n[o]&&(this.off(e,o),delete n[o]),o.apply(this,t)}return this}},t.allOff=function(){delete this._events,delete this._onceEvents},e})?(n=s.call((o={id:"ev-emitter/ev-emitter",exports:{},loaded:!1}).exports,i,o.exports,o),o.loaded=!0,void 0===n&&(n=o.exports)):n=s,window,"function"==typeof(a=function(){"use strict";function e(e){var t=parseFloat(e);return-1==e.indexOf("%")&&!isNaN(t)&&t}var t="undefined"==typeof console?function(){}:function(e){console.error(e)},i=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],n=i.length;function s(e){var i=getComputedStyle(e);return i||t("Style returned "+i+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),i}var o,r=!1;function a(t){if(function(){if(!r){r=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var i=document.body||document.documentElement;i.appendChild(t);var n=s(t);o=200==Math.round(e(n.width)),a.isBoxSizeOuter=o,i.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var l=s(t);if("none"==l.display)return function(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t<n;t++)e[i[t]]=0;return e}();var c={};c.width=t.offsetWidth,c.height=t.offsetHeight;for(var d=c.isBorderBox="border-box"==l.boxSizing,h=0;h<n;h++){var u=i[h],p=l[u],f=parseFloat(p);c[u]=isNaN(f)?0:f}var g=c.paddingLeft+c.paddingRight,m=c.paddingTop+c.paddingBottom,v=c.marginLeft+c.marginRight,_=c.marginTop+c.marginBottom,y=c.borderLeftWidth+c.borderRightWidth,b=c.borderTopWidth+c.borderBottomWidth,w=d&&o,x=e(l.width);!1!==x&&(c.width=x+(w?0:g+y));var k=e(l.height);return!1!==k&&(c.height=k+(w?0:m+b)),c.innerWidth=c.width-(g+y),c.innerHeight=c.height-(m+b),c.outerWidth=c.width+v,c.outerHeight=c.height+_,c}}return a})?(r=a.call((l={id:"get-size/get-size",exports:{},loaded:!1}).exports,i,l.exports,l),l.loaded=!0,void 0===r&&(r=l.exports)):r=a,function(e,t){"use strict";"function"==typeof(d=t)?(h={id:"desandro-matches-selector/matches-selector",exports:{},loaded:!1},c=d.call(h.exports,i,h.exports,h),h.loaded=!0,void 0===c&&(c=h.exports)):c=d}(window,(function(){"use strict";var e=function(){var e=window.Element.prototype;if(e.matches)return"matches";if(e.matchesSelector)return"matchesSelector";for(var t=["webkit","moz","ms","o"],i=0;i<t.length;i++){var n=t[i]+"MatchesSelector";if(e[n])return n}}();return function(t,i){return t[e](i)}})),function(e,t){u=function(t){return function(e,t){var i={extend:function(e,t){for(var i in t)e[i]=t[i];return e},modulo:function(e,t){return(e%t+t)%t}},n=Array.prototype.slice;i.makeArray=function(e){return Array.isArray(e)?e:null==e?[]:"object"==typeof e&&"number"==typeof e.length?n.call(e):[e]},i.removeFrom=function(e,t){var i=e.indexOf(t);-1!=i&&e.splice(i,1)},i.getParent=function(e,i){for(;e.parentNode&&e!=document.body;)if(e=e.parentNode,t(e,i))return e},i.getQueryElement=function(e){return"string"==typeof e?document.querySelector(e):e},i.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.filterFindElements=function(e,n){e=i.makeArray(e);var s=[];return e.forEach((function(e){if(e instanceof HTMLElement)if(n){t(e,n)&&s.push(e);for(var i=e.querySelectorAll(n),o=0;o<i.length;o++)s.push(i[o])}else s.push(e)})),s},i.debounceMethod=function(e,t,i){i=i||100;var n=e.prototype[t],s=t+"Timeout";e.prototype[t]=function(){var e=this[s];clearTimeout(e);var t=arguments,o=this;this[s]=setTimeout((function(){n.apply(o,t),delete o[s]}),i)}},i.docReady=function(e){var t=document.readyState;"complete"==t||"interactive"==t?setTimeout(e):document.addEventListener("DOMContentLoaded",e)},i.toDashed=function(e){return e.replace(/(.)([A-Z])/g,(function(e,t,i){return t+"-"+i})).toLowerCase()};var s=e.console;return i.htmlInit=function(t,n){i.docReady((function(){var o=i.toDashed(n),r="data-"+o,a=document.querySelectorAll("["+r+"]"),l=document.querySelectorAll(".js-"+o),c=i.makeArray(a).concat(i.makeArray(l)),d=r+"-options",h=e.jQuery;c.forEach((function(e){var i,o=e.getAttribute(r)||e.getAttribute(d);try{i=o&&JSON.parse(o)}catch(t){return void(s&&s.error("Error parsing "+r+" on "+e.className+": "+t))}var a=new t(e,i);h&&h.data(e,n,a)}))}))},i}(e,t)}.apply(p={},b=[c]),void 0!==u||(u=p)}(window),window,"function"==typeof(f=function(e,t){"use strict";var i=document.documentElement.style,n="string"==typeof i.transition?"transition":"WebkitTransition",s="string"==typeof i.transform?"transform":"WebkitTransform",o={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],r={transform:s,transition:n,transitionDuration:n+"Duration",transitionProperty:n+"Property",transitionDelay:n+"Delay"};function a(e,t){e&&(this.element=e,this.layout=t,this.position={x:0,y:0},this._create())}var l=a.prototype=Object.create(e.prototype);l.constructor=a,l._create=function(){this._transn={ingProperties:{},clean:{},onEnd:{}},this.css({position:"absolute"})},l.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},l.getSize=function(){this.size=t(this.element)},l.css=function(e){var t=this.element.style;for(var i in e)t[r[i]||i]=e[i]},l.getPosition=function(){var e=getComputedStyle(this.element),t=this.layout._getOption("originLeft"),i=this.layout._getOption("originTop"),n=e[t?"left":"right"],s=e[i?"top":"bottom"],o=parseFloat(n),r=parseFloat(s),a=this.layout.size;-1!=n.indexOf("%")&&(o=o/100*a.width),-1!=s.indexOf("%")&&(r=r/100*a.height),o=isNaN(o)?0:o,r=isNaN(r)?0:r,o-=t?a.paddingLeft:a.paddingRight,r-=i?a.paddingTop:a.paddingBottom,this.position.x=o,this.position.y=r},l.layoutPosition=function(){var e=this.layout.size,t={},i=this.layout._getOption("originLeft"),n=this.layout._getOption("originTop"),s=i?"paddingLeft":"paddingRight",o=i?"left":"right",r=i?"right":"left",a=this.position.x+e[s];t[o]=this.getXValue(a),t[r]="";var l=n?"paddingTop":"paddingBottom",c=n?"top":"bottom",d=n?"bottom":"top",h=this.position.y+e[l];t[c]=this.getYValue(h),t[d]="",this.css(t),this.emitEvent("layout",[this])},l.getXValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&!t?e/this.layout.size.width*100+"%":e+"px"},l.getYValue=function(e){var t=this.layout._getOption("horizontal");return this.layout.options.percentPosition&&t?e/this.layout.size.height*100+"%":e+"px"},l._transitionTo=function(e,t){this.getPosition();var i=this.position.x,n=this.position.y,s=e==this.position.x&&t==this.position.y;if(this.setPosition(e,t),!s||this.isTransitioning){var o=e-i,r=t-n,a={};a.transform=this.getTranslate(o,r),this.transition({to:a,onTransitionEnd:{transform:this.layoutPosition},isCleaning:!0})}else this.layoutPosition()},l.getTranslate=function(e,t){return"translate3d("+(e=this.layout._getOption("originLeft")?e:-e)+"px, "+(t=this.layout._getOption("originTop")?t:-t)+"px, 0)"},l.goTo=function(e,t){this.setPosition(e,t),this.layoutPosition()},l.moveTo=l._transitionTo,l.setPosition=function(e,t){this.position.x=parseFloat(e),this.position.y=parseFloat(t)},l._nonTransition=function(e){for(var t in this.css(e.to),e.isCleaning&&this._removeStyles(e.to),e.onTransitionEnd)e.onTransitionEnd[t].call(this)},l.transition=function(e){if(parseFloat(this.layout.options.transitionDuration)){var t=this._transn;for(var i in e.onTransitionEnd)t.onEnd[i]=e.onTransitionEnd[i];for(i in e.to)t.ingProperties[i]=!0,e.isCleaning&&(t.clean[i]=!0);e.from&&(this.css(e.from),this.element.offsetHeight),this.enableTransition(e.to),this.css(e.to),this.isTransitioning=!0}else this._nonTransition(e)};var c="opacity,"+s.replace(/([A-Z])/g,(function(e){return"-"+e.toLowerCase()}));l.enableTransition=function(){if(!this.isTransitioning){var e=this.layout.options.transitionDuration;e="number"==typeof e?e+"ms":e,this.css({transitionProperty:c,transitionDuration:e,transitionDelay:this.staggerDelay||0}),this.element.addEventListener(o,this,!1)}},l.onwebkitTransitionEnd=function(e){this.ontransitionend(e)},l.onotransitionend=function(e){this.ontransitionend(e)};var d={"-webkit-transform":"transform"};l.ontransitionend=function(e){if(e.target===this.element){var t=this._transn,i=d[e.propertyName]||e.propertyName;delete t.ingProperties[i],function(e){for(var t in e)return!1;return!0}(t.ingProperties)&&this.disableTransition(),i in t.clean&&(this.element.style[e.propertyName]="",delete t.clean[i]),i in t.onEnd&&(t.onEnd[i].call(this),delete t.onEnd[i]),this.emitEvent("transitionEnd",[this])}},l.disableTransition=function(){this.removeTransitionStyles(),this.element.removeEventListener(o,this,!1),this.isTransitioning=!1},l._removeStyles=function(e){var t={};for(var i in e)t[i]="";this.css(t)};var h={transitionProperty:"",transitionDuration:"",transitionDelay:""};return l.removeTransitionStyles=function(){this.css(h)},l.stagger=function(e){e=isNaN(e)?0:e,this.staggerDelay=e+"ms"},l.removeElem=function(){this.element.parentNode.removeChild(this.element),this.css({display:""}),this.emitEvent("remove",[this])},l.remove=function(){n&&parseFloat(this.layout.options.transitionDuration)?(this.once("transitionEnd",(function(){this.removeElem()})),this.hide()):this.removeElem()},l.reveal=function(){delete this.isHidden,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("visibleStyle")]=this.onRevealTransitionEnd,this.transition({from:e.hiddenStyle,to:e.visibleStyle,isCleaning:!0,onTransitionEnd:t})},l.onRevealTransitionEnd=function(){this.isHidden||this.emitEvent("reveal")},l.getHideRevealTransitionEndProperty=function(e){var t=this.layout.options[e];if(t.opacity)return"opacity";for(var i in t)return i},l.hide=function(){this.isHidden=!0,this.css({display:""});var e=this.layout.options,t={};t[this.getHideRevealTransitionEndProperty("hiddenStyle")]=this.onHideTransitionEnd,this.transition({from:e.visibleStyle,to:e.hiddenStyle,isCleaning:!0,onTransitionEnd:t})},l.onHideTransitionEnd=function(){this.isHidden&&(this.css({display:"none"}),this.emitEvent("hide"))},l.destroy=function(){this.css({position:"",left:"",right:"",top:"",bottom:"",transition:"",transform:""})},a})?void 0===(m=f.apply(g={},[n,r]))&&(m=g):m=f,function(e,t){"use strict";v=function(t,i,n,s){return function(e,t,i,n,s){var o=e.console,r=e.jQuery,a=function(){},l=0,c={};function d(e,t){var i=n.getQueryElement(e);if(i){this.element=i,r&&(this.$element=r(this.element)),this.options=n.extend({},this.constructor.defaults),this.option(t);var s=++l;this.element.outlayerGUID=s,c[s]=this,this._create(),this._getOption("initLayout")&&this.layout()}else o&&o.error("Bad element for "+this.constructor.namespace+": "+(i||e))}d.namespace="outlayer",d.Item=s,d.defaults={containerStyle:{position:"relative"},initLayout:!0,originLeft:!0,originTop:!0,resize:!0,resizeContainer:!0,transitionDuration:"0.4s",hiddenStyle:{opacity:0,transform:"scale(0.001)"},visibleStyle:{opacity:1,transform:"scale(1)"}};var h=d.prototype;function u(e){function t(){e.apply(this,arguments)}return t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t}n.extend(h,t.prototype),h.option=function(e){n.extend(this.options,e)},h._getOption=function(e){var t=this.constructor.compatOptions[e];return t&&void 0!==this.options[t]?this.options[t]:this.options[e]},d.compatOptions={initLayout:"isInitLayout",horizontal:"isHorizontal",layoutInstant:"isLayoutInstant",originLeft:"isOriginLeft",originTop:"isOriginTop",resize:"isResizeBound",resizeContainer:"isResizingContainer"},h._create=function(){this.reloadItems(),this.stamps=[],this.stamp(this.options.stamp),n.extend(this.element.style,this.options.containerStyle),this._getOption("resize")&&this.bindResize()},h.reloadItems=function(){this.items=this._itemize(this.element.children)},h._itemize=function(e){for(var t=this._filterFindItemElements(e),i=this.constructor.Item,n=[],s=0;s<t.length;s++){var o=new i(t[s],this);n.push(o)}return n},h._filterFindItemElements=function(e){return n.filterFindElements(e,this.options.itemSelector)},h.getItemElements=function(){return this.items.map((function(e){return e.element}))},h.layout=function(){this._resetLayout(),this._manageStamps();var e=this._getOption("layoutInstant"),t=void 0!==e?e:!this._isLayoutInited;this.layoutItems(this.items,t),this._isLayoutInited=!0},h._init=h.layout,h._resetLayout=function(){this.getSize()},h.getSize=function(){this.size=i(this.element)},h._getMeasurement=function(e,t){var n,s=this.options[e];s?("string"==typeof s?n=this.element.querySelector(s):s instanceof HTMLElement&&(n=s),this[e]=n?i(n)[t]:s):this[e]=0},h.layoutItems=function(e,t){e=this._getItemsForLayout(e),this._layoutItems(e,t),this._postLayout()},h._getItemsForLayout=function(e){return e.filter((function(e){return!e.isIgnored}))},h._layoutItems=function(e,t){if(this._emitCompleteOnItems("layout",e),e&&e.length){var i=[];e.forEach((function(e){var n=this._getItemLayoutPosition(e);n.item=e,n.isInstant=t||e.isLayoutInstant,i.push(n)}),this),this._processLayoutQueue(i)}},h._getItemLayoutPosition=function(){return{x:0,y:0}},h._processLayoutQueue=function(e){this.updateStagger(),e.forEach((function(e,t){this._positionItem(e.item,e.x,e.y,e.isInstant,t)}),this)},h.updateStagger=function(){var e=this.options.stagger;if(null!=e)return this.stagger=function(e){if("number"==typeof e)return e;var t=e.match(/(^\d*\.?\d*)(\w*)/),i=t&&t[1],n=t&&t[2];return i.length?(i=parseFloat(i))*(p[n]||1):0}(e),this.stagger;this.stagger=0},h._positionItem=function(e,t,i,n,s){n?e.goTo(t,i):(e.stagger(s*this.stagger),e.moveTo(t,i))},h._postLayout=function(){this.resizeContainer()},h.resizeContainer=function(){if(this._getOption("resizeContainer")){var e=this._getContainerSize();e&&(this._setContainerMeasure(e.width,!0),this._setContainerMeasure(e.height,!1))}},h._getContainerSize=a,h._setContainerMeasure=function(e,t){if(void 0!==e){var i=this.size;i.isBorderBox&&(e+=t?i.paddingLeft+i.paddingRight+i.borderLeftWidth+i.borderRightWidth:i.paddingBottom+i.paddingTop+i.borderTopWidth+i.borderBottomWidth),e=Math.max(e,0),this.element.style[t?"width":"height"]=e+"px"}},h._emitCompleteOnItems=function(e,t){var i=this;function n(){i.dispatchEvent(e+"Complete",null,[t])}var s=t.length;if(t&&s){var o=0;t.forEach((function(t){t.once(e,r)}))}else n();function r(){++o==s&&n()}},h.dispatchEvent=function(e,t,i){var n=t?[t].concat(i):i;if(this.emitEvent(e,n),r)if(this.$element=this.$element||r(this.element),t){var s=r.Event(t);s.type=e,this.$element.trigger(s,i)}else this.$element.trigger(e,i)},h.ignore=function(e){var t=this.getItem(e);t&&(t.isIgnored=!0)},h.unignore=function(e){var t=this.getItem(e);t&&delete t.isIgnored},h.stamp=function(e){(e=this._find(e))&&(this.stamps=this.stamps.concat(e),e.forEach(this.ignore,this))},h.unstamp=function(e){(e=this._find(e))&&e.forEach((function(e){n.removeFrom(this.stamps,e),this.unignore(e)}),this)},h._find=function(e){if(e)return"string"==typeof e&&(e=this.element.querySelectorAll(e)),n.makeArray(e)},h._manageStamps=function(){this.stamps&&this.stamps.length&&(this._getBoundingRect(),this.stamps.forEach(this._manageStamp,this))},h._getBoundingRect=function(){var e=this.element.getBoundingClientRect(),t=this.size;this._boundingRect={left:e.left+t.paddingLeft+t.borderLeftWidth,top:e.top+t.paddingTop+t.borderTopWidth,right:e.right-(t.paddingRight+t.borderRightWidth),bottom:e.bottom-(t.paddingBottom+t.borderBottomWidth)}},h._manageStamp=a,h._getElementOffset=function(e){var t=e.getBoundingClientRect(),n=this._boundingRect,s=i(e);return{left:t.left-n.left-s.marginLeft,top:t.top-n.top-s.marginTop,right:n.right-t.right-s.marginRight,bottom:n.bottom-t.bottom-s.marginBottom}},h.handleEvent=n.handleEvent,h.bindResize=function(){e.addEventListener("resize",this),this.isResizeBound=!0},h.unbindResize=function(){e.removeEventListener("resize",this),this.isResizeBound=!1},h.onresize=function(){this.resize()},n.debounceMethod(d,"onresize",100),h.resize=function(){this.isResizeBound&&this.needsResizeLayout()&&this.layout()},h.needsResizeLayout=function(){var e=i(this.element);return this.size&&e&&e.innerWidth!==this.size.innerWidth},h.addItems=function(e){var t=this._itemize(e);return t.length&&(this.items=this.items.concat(t)),t},h.appended=function(e){var t=this.addItems(e);t.length&&(this.layoutItems(t,!0),this.reveal(t))},h.prepended=function(e){var t=this._itemize(e);if(t.length){var i=this.items.slice(0);this.items=t.concat(i),this._resetLayout(),this._manageStamps(),this.layoutItems(t,!0),this.reveal(t),this.layoutItems(i)}},h.reveal=function(e){if(this._emitCompleteOnItems("reveal",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,i){e.stagger(i*t),e.reveal()}))}},h.hide=function(e){if(this._emitCompleteOnItems("hide",e),e&&e.length){var t=this.updateStagger();e.forEach((function(e,i){e.stagger(i*t),e.hide()}))}},h.revealItemElements=function(e){var t=this.getItems(e);this.reveal(t)},h.hideItemElements=function(e){var t=this.getItems(e);this.hide(t)},h.getItem=function(e){for(var t=0;t<this.items.length;t++){var i=this.items[t];if(i.element==e)return i}},h.getItems=function(e){e=n.makeArray(e);var t=[];return e.forEach((function(e){var i=this.getItem(e);i&&t.push(i)}),this),t},h.remove=function(e){var t=this.getItems(e);this._emitCompleteOnItems("remove",t),t&&t.length&&t.forEach((function(e){e.remove(),n.removeFrom(this.items,e)}),this)},h.destroy=function(){var e=this.element.style;e.height="",e.position="",e.width="",this.items.forEach((function(e){e.destroy()})),this.unbindResize();var t=this.element.outlayerGUID;delete c[t],delete this.element.outlayerGUID,r&&r.removeData(this.element,this.constructor.namespace)},d.data=function(e){var t=(e=n.getQueryElement(e))&&e.outlayerGUID;return t&&c[t]},d.create=function(e,t){var i=u(d);return i.defaults=n.extend({},d.defaults),n.extend(i.defaults,t),i.compatOptions=n.extend({},d.compatOptions),i.namespace=e,i.data=d.data,i.Item=u(s),n.htmlInit(i,e),r&&r.bridget&&r.bridget(e,i),i};var p={ms:1,s:1e3};return d.Item=s,d}(e,t,i,n,s)}.apply(_={},b=[n,r,u,m]),void 0!==v||(v=_)}(window),window,b=[v,r],void 0===(w="function"==typeof(y=function(e,t){var i=e.create("masonry");i.compatOptions.fitWidth="isFitWidth";var n=i.prototype;return n._resetLayout=function(){this.getSize(),this._getMeasurement("columnWidth","outerWidth"),this._getMeasurement("gutter","outerWidth"),this.measureColumns(),this.colYs=[];for(var e=0;e<this.cols;e++)this.colYs.push(0);this.maxY=0,this.horizontalColIndex=0},n.measureColumns=function(){if(this.getContainerWidth(),!this.columnWidth){var e=this.items[0],i=e&&e.element;this.columnWidth=i&&t(i).outerWidth||this.containerWidth}var n=this.columnWidth+=this.gutter,s=this.containerWidth+this.gutter,o=s/n,r=n-s%n;o=Math[r&&r<1?"round":"floor"](o),this.cols=Math.max(o,1)},n.getContainerWidth=function(){var e=this._getOption("fitWidth")?this.element.parentNode:this.element,i=t(e);this.containerWidth=i&&i.innerWidth},n._getItemLayoutPosition=function(e){e.getSize();var t=e.size.outerWidth%this.columnWidth,i=Math[t&&t<1?"round":"ceil"](e.size.outerWidth/this.columnWidth);i=Math.min(i,this.cols);for(var n=this[this.options.horizontalOrder?"_getHorizontalColPosition":"_getTopColPosition"](i,e),s={x:this.columnWidth*n.col,y:n.y},o=n.y+e.size.outerHeight,r=i+n.col,a=n.col;a<r;a++)this.colYs[a]=o;return s},n._getTopColPosition=function(e){var t=this._getTopColGroup(e),i=Math.min.apply(Math,t);return{col:t.indexOf(i),y:i}},n._getTopColGroup=function(e){if(e<2)return this.colYs;for(var t=[],i=this.cols+1-e,n=0;n<i;n++)t[n]=this._getColGroupY(n,e);return t},n._getColGroupY=function(e,t){if(t<2)return this.colYs[e];var i=this.colYs.slice(e,e+t);return Math.max.apply(Math,i)},n._getHorizontalColPosition=function(e,t){var i=this.horizontalColIndex%this.cols;i=e>1&&i+e>this.cols?0:i;var n=t.size.outerWidth&&t.size.outerHeight;return this.horizontalColIndex=n?i+e:this.horizontalColIndex,{col:i,y:this._getColGroupY(i,e)}},n._manageStamp=function(e){var i=t(e),n=this._getElementOffset(e),s=this._getOption("originLeft")?n.left:n.right,o=s+i.outerWidth,r=Math.floor(s/this.columnWidth);r=Math.max(0,r);var a=Math.floor(o/this.columnWidth);a-=o%this.columnWidth?0:1,a=Math.min(this.cols-1,a);for(var l=(this._getOption("originTop")?n.top:n.bottom)+i.outerHeight,c=r;c<=a;c++)this.colYs[c]=Math.max(l,this.colYs[c])},n._getContainerSize=function(){this.maxY=Math.max.apply(Math,this.colYs);var e={height:this.maxY};return this._getOption("fitWidth")&&(e.width=this._getContainerFitWidth()),e},n._getContainerFitWidth=function(){for(var e=0,t=this.cols;--t&&0===this.colYs[t];)e++;return(this.cols-e)*this.columnWidth-this.gutter},n.needsResizeLayout=function(){var e=this.containerWidth;return this.getContainerWidth(),e!=this.containerWidth},i})?y.apply(t,b):y)||(e.exports=w)},6946:(e,t,i)=>{!function e(t,i,n){function s(r,a){if(!i[r]){if(!t[r]){if(o)return o(r,!0);var l=new Error("Cannot find module '"+r+"'");throw l.code="MODULE_NOT_FOUND",l}var c=i[r]={exports:{}};t[r][0].call(c.exports,(function(e){return s(t[r][1][e]||e)}),c,c.exports,e,t,i,n)}return i[r].exports}for(var o=void 0,r=0;r<n.length;r++)s(n[r]);return s}({1:[function(e,t,i){},{}],2:[function(e,t,n){(function(i){var n,s=void 0!==i?i:"undefined"!=typeof window?window:{},o=e(1);"undefined"!=typeof document?n=document:(n=s["__GLOBAL_DOCUMENT_CACHE@4"])||(n=s["__GLOBAL_DOCUMENT_CACHE@4"]=o),t.exports=n}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{1:1}],3:[function(e,t,n){(function(e){var i;i="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},t.exports=i}).call(this,void 0!==i.g?i.g:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,t,i){!function(e){var i=setTimeout;function n(){}function s(e){if("object"!=typeof this)throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(e,this)}function o(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,s._immediateFn((function(){var i=1===e._state?t.onFulfilled:t.onRejected;if(null!==i){var n;try{n=i(e._value)}catch(e){return void a(t.promise,e)}r(t.promise,n)}else(1===e._state?r:a)(t.promise,e._value)}))):e._deferreds.push(t)}function r(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var i=t.then;if(t instanceof s)return e._state=3,e._value=t,void l(e);if("function"==typeof i)return void d((n=i,o=t,function(){n.apply(o,arguments)}),e)}e._state=1,e._value=t,l(e)}catch(t){a(e,t)}var n,o}function a(e,t){e._state=2,e._value=t,l(e)}function l(e){2===e._state&&0===e._deferreds.length&&s._immediateFn((function(){e._handled||s._unhandledRejectionFn(e._value)}));for(var t=0,i=e._deferreds.length;t<i;t++)o(e,e._deferreds[t]);e._deferreds=null}function c(e,t,i){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=i}function d(e,t){var i=!1;try{e((function(e){i||(i=!0,r(t,e))}),(function(e){i||(i=!0,a(t,e))}))}catch(e){if(i)return;i=!0,a(t,e)}}s.prototype.catch=function(e){return this.then(null,e)},s.prototype.then=function(e,t){var i=new this.constructor(n);return o(this,new c(e,t,i)),i},s.all=function(e){var t=Array.prototype.slice.call(e);return new s((function(e,i){if(0===t.length)return e([]);var n=t.length;function s(o,r){try{if(r&&("object"==typeof r||"function"==typeof r)){var a=r.then;if("function"==typeof a)return void a.call(r,(function(e){s(o,e)}),i)}t[o]=r,0==--n&&e(t)}catch(e){i(e)}}for(var o=0;o<t.length;o++)s(o,t[o])}))},s.resolve=function(e){return e&&"object"==typeof e&&e.constructor===s?e:new s((function(t){t(e)}))},s.reject=function(e){return new s((function(t,i){i(e)}))},s.race=function(e){return new s((function(t,i){for(var n=0,s=e.length;n<s;n++)e[n].then(t,i)}))},s._immediateFn="function"==typeof setImmediate&&function(e){setImmediate(e)}||function(e){i(e,0)},s._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},s._setImmediateFn=function(e){s._immediateFn=e},s._setUnhandledRejectionFn=function(e){s._unhandledRejectionFn=e},void 0!==t&&t.exports?t.exports=s:e.Promise||(e.Promise=s)}(this)},{}],5:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=(n=e(7))&&n.__esModule?n:{default:n},r=e(15),a=e(27),l={lang:"en",en:r.EN,language:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];if(null!=t&&t.length){if("string"!=typeof t[0])throw new TypeError("Language code must be a string value");if(!/^[a-z]{2,3}((\-|_)[a-z]{2})?$/i.test(t[0]))throw new TypeError("Language code must have format 2-3 letters and. optionally, hyphen, underscore followed by 2 more letters");l.lang=t[0],void 0===l[t[0]]?(t[1]=null!==t[1]&&void 0!==t[1]&&"object"===s(t[1])?t[1]:{},l[t[0]]=(0,a.isObjectEmpty)(t[1])?r.EN:t[1]):null!==t[1]&&void 0!==t[1]&&"object"===s(t[1])&&(l[t[0]]=t[1])}return l.lang},t:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e&&e.length){var i=void 0,n=void 0,o=l.language(),r=function(e,t,i){if("object"!==(void 0===e?"undefined":s(e))||"number"!=typeof t||"number"!=typeof i)return e;return[function(){return arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 0===(arguments.length<=0?void 0:arguments[0])||1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:0!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])||11===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])||12===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>0&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:[3]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1&&(arguments.length<=0?void 0:arguments[0])%100!=11?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])>=2&&(arguments.length<=0?void 0:arguments[0])<=4?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return(arguments.length<=0?void 0:arguments[0])%100==1?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100==2?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100==3||(arguments.length<=0?void 0:arguments[0])%100==4?arguments.length<=4?void 0:arguments[4]:arguments.length<=1?void 0:arguments[1]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])>2&&(arguments.length<=0?void 0:arguments[0])<7?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])>6&&(arguments.length<=0?void 0:arguments[0])<11?arguments.length<=4?void 0:arguments[4]:arguments.length<=5?void 0:arguments[5]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:(arguments.length<=0?void 0:arguments[0])%100>=3&&(arguments.length<=0?void 0:arguments[0])%100<=10?arguments.length<=4?void 0:arguments[4]:(arguments.length<=0?void 0:arguments[0])%100>=11?arguments.length<=5?void 0:arguments[5]:arguments.length<=6?void 0:arguments[6]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:0===(arguments.length<=0?void 0:arguments[0])||(arguments.length<=0?void 0:arguments[0])%100>1&&(arguments.length<=0?void 0:arguments[0])%100<11?arguments.length<=2?void 0:arguments[2]:(arguments.length<=0?void 0:arguments[0])%100>10&&(arguments.length<=0?void 0:arguments[0])%100<20?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10==2?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 11!==(arguments.length<=0?void 0:arguments[0])&&(arguments.length<=0?void 0:arguments[0])%10==1?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:(arguments.length<=0?void 0:arguments[0])%10>=2&&(arguments.length<=0?void 0:arguments[0])%10<=4&&((arguments.length<=0?void 0:arguments[0])%100<10||(arguments.length<=0?void 0:arguments[0])%100>=20)?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:8!==(arguments.length<=0?void 0:arguments[0])&&11!==(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:arguments.length<=2?void 0:arguments[2]},function(){return 1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:2===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:3===(arguments.length<=0?void 0:arguments[0])?arguments.length<=3?void 0:arguments[3]:arguments.length<=4?void 0:arguments[4]},function(){return 0===(arguments.length<=0?void 0:arguments[0])?arguments.length<=1?void 0:arguments[1]:1===(arguments.length<=0?void 0:arguments[0])?arguments.length<=2?void 0:arguments[2]:arguments.length<=3?void 0:arguments[3]}][i].apply(null,[t].concat(e))};return void 0!==l[o]&&(i=l[o][e],null!==t&&"number"==typeof t&&(n=l[o]["mejs.plural-form"],i=r.apply(null,[i,t,n]))),!i&&l.en&&(i=l.en[e],null!==t&&"number"==typeof t&&(n=l.en["mejs.plural-form"],i=r.apply(null,[i,t,n]))),i=i||e,null!==t&&"number"==typeof t&&(i=i.replace("%1",t)),(0,a.escapeHTML)(i)}return e}};o.default.i18n=l,"undefined"!=typeof mejsL10n&&o.default.i18n.language(mejsL10n.language,mejsL10n.strings),i.default=l},{15:15,27:27,7:7}],6:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=h(e(3)),o=h(e(2)),r=h(e(7)),a=e(27),l=e(28),c=e(8),d=e(25);function h(e){return e&&e.__esModule?e:{default:e}}var u=function e(t,i,h){var u=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var p=this;h=Array.isArray(h)?h:null,p.defaults={renderers:[],fakeNodeName:"mediaelementwrapper",pluginPath:"build/",shimScriptAccess:"sameDomain"},i=Object.assign(p.defaults,i),p.mediaElement=o.default.createElement(i.fakeNodeName);var f=t,g=!1;if("string"==typeof t?p.mediaElement.originalNode=o.default.getElementById(t):(p.mediaElement.originalNode=t,f=t.id),void 0===p.mediaElement.originalNode||null===p.mediaElement.originalNode)return null;p.mediaElement.options=i,f=f||"mejs_"+Math.random().toString().slice(2),p.mediaElement.originalNode.setAttribute("id",f+"_from_mejs");var m=p.mediaElement.originalNode.tagName.toLowerCase();["video","audio"].indexOf(m)>-1&&!p.mediaElement.originalNode.getAttribute("preload")&&p.mediaElement.originalNode.setAttribute("preload","none"),p.mediaElement.originalNode.parentNode.insertBefore(p.mediaElement,p.mediaElement.originalNode),p.mediaElement.appendChild(p.mediaElement.originalNode);var v=function(e,t){if("https:"===s.default.location.protocol&&0===e.indexOf("http:")&&d.IS_IOS&&r.default.html5media.mediaTypes.indexOf(t)>-1){var i=new XMLHttpRequest;i.onreadystatechange=function(){if(4===this.readyState&&200===this.status){var t=(s.default.URL||s.default.webkitURL).createObjectURL(this.response);return p.mediaElement.originalNode.setAttribute("src",t),t}return e},i.open("GET",e),i.responseType="blob",i.send()}return e},_=void 0;if(null!==h)_=h;else if(null!==p.mediaElement.originalNode)switch(_=[],p.mediaElement.originalNode.nodeName.toLowerCase()){case"iframe":_.push({type:"",src:p.mediaElement.originalNode.getAttribute("src")});break;case"audio":case"video":var y=p.mediaElement.originalNode.children.length,b=p.mediaElement.originalNode.getAttribute("src");if(b){var w=p.mediaElement.originalNode,x=(0,l.formatType)(b,w.getAttribute("type"));_.push({type:x,src:v(b,x)})}for(var k=0;k<y;k++){var C=p.mediaElement.originalNode.children[k];if("source"===C.tagName.toLowerCase()){var E=C.getAttribute("src"),S=(0,l.formatType)(E,C.getAttribute("type"));_.push({type:S,src:v(E,S)})}}}p.mediaElement.id=f,p.mediaElement.renderers={},p.mediaElement.events={},p.mediaElement.promises=[],p.mediaElement.renderer=null,p.mediaElement.rendererName=null,p.mediaElement.changeRenderer=function(e,t){var i=u,n=Object.keys(t[0]).length>2?t[0]:t[0].src;if(void 0!==i.mediaElement.renderer&&null!==i.mediaElement.renderer&&i.mediaElement.renderer.name===e)return i.mediaElement.renderer.pause(),i.mediaElement.renderer.stop&&i.mediaElement.renderer.stop(),i.mediaElement.renderer.show(),i.mediaElement.renderer.setSrc(n),!0;void 0!==i.mediaElement.renderer&&null!==i.mediaElement.renderer&&(i.mediaElement.renderer.pause(),i.mediaElement.renderer.stop&&i.mediaElement.renderer.stop(),i.mediaElement.renderer.hide());var s=i.mediaElement.renderers[e],o=null;if(null!=s)return s.show(),s.setSrc(n),i.mediaElement.renderer=s,i.mediaElement.rendererName=e,!0;for(var r=i.mediaElement.options.renderers.length?i.mediaElement.options.renderers:c.renderer.order,a=0,l=r.length;a<l;a++){var d=r[a];if(d===e){o=c.renderer.renderers[d];var h=Object.assign(o.options,i.mediaElement.options);return(s=o.create(i.mediaElement,h,t)).name=e,i.mediaElement.renderers[o.name]=s,i.mediaElement.renderer=s,i.mediaElement.rendererName=e,s.show(),!0}}return!1},p.mediaElement.setSize=function(e,t){void 0!==p.mediaElement.renderer&&null!==p.mediaElement.renderer&&p.mediaElement.renderer.setSize(e,t)},p.mediaElement.generateError=function(e,t){e=e||"",t=Array.isArray(t)?t:[];var i=(0,a.createEvent)("error",p.mediaElement);i.message=e,i.urls=t,p.mediaElement.dispatchEvent(i),g=!0};var T=r.default.html5media.properties,O=r.default.html5media.methods,A=function(e,t,i,n){var s=e[t];Object.defineProperty(e,t,{get:function(){return i.apply(e,[s])},set:function(t){return s=n.apply(e,[t])}})},D=function(e){if("src"!==e){var t=""+e.substring(0,1).toUpperCase()+e.substring(1),i=function(){return void 0!==p.mediaElement.renderer&&null!==p.mediaElement.renderer&&"function"==typeof p.mediaElement.renderer["get"+t]?p.mediaElement.renderer["get"+t]():null},n=function(e){void 0!==p.mediaElement.renderer&&null!==p.mediaElement.renderer&&"function"==typeof p.mediaElement.renderer["set"+t]&&p.mediaElement.renderer["set"+t](e)};A(p.mediaElement,e,i,n),p.mediaElement["get"+t]=i,p.mediaElement["set"+t]=n}},P=function(){return void 0!==p.mediaElement.renderer&&null!==p.mediaElement.renderer?p.mediaElement.renderer.getSrc():null},j=function(e){var t=[];if("string"==typeof e)t.push({src:e,type:e?(0,l.getTypeFromFile)(e):""});else if("object"===(void 0===e?"undefined":n(e))&&void 0!==e.src){var i=(0,l.absolutizeUrl)(e.src),s=e.type,o=Object.assign(e,{src:i,type:""!==s&&null!=s||!i?s:(0,l.getTypeFromFile)(i)});t.push(o)}else if(Array.isArray(e))for(var r=0,d=e.length;r<d;r++){var h=(0,l.absolutizeUrl)(e[r].src),u=e[r].type,f=Object.assign(e[r],{src:h,type:""!==u&&null!=u||!h?u:(0,l.getTypeFromFile)(h)});t.push(f)}var g=c.renderer.select(t,p.mediaElement.options.renderers.length?p.mediaElement.options.renderers:[]),m=void 0;if(p.mediaElement.paused||null==p.mediaElement.src||""===p.mediaElement.src||(p.mediaElement.pause(),m=(0,a.createEvent)("pause",p.mediaElement),p.mediaElement.dispatchEvent(m)),p.mediaElement.originalNode.src=t[0].src||"",null!==g||!t[0].src)return null!=t[0].src&&""!==t[0].src?p.mediaElement.changeRenderer(g.rendererName,t):null;p.mediaElement.generateError("No renderer found",t)},I=function(e,t){try{if("play"!==e||"native_dash"!==p.mediaElement.rendererName&&"native_hls"!==p.mediaElement.rendererName&&"vimeo_iframe"!==p.mediaElement.rendererName)p.mediaElement.renderer[e](t);else{var i=p.mediaElement.renderer[e](t);i&&"function"==typeof i.then&&i.catch((function(){p.mediaElement.paused&&setTimeout((function(){var e=p.mediaElement.renderer.play();void 0!==e&&e.catch((function(){p.mediaElement.renderer.paused||p.mediaElement.renderer.pause()}))}),150)}))}}catch(e){p.mediaElement.generateError(e,_)}},N=function(e){p.mediaElement[e]=function(){for(var t=arguments.length,i=Array(t),n=0;n<t;n++)i[n]=arguments[n];return void 0!==p.mediaElement.renderer&&null!==p.mediaElement.renderer&&"function"==typeof p.mediaElement.renderer[e]&&(p.mediaElement.promises.length?Promise.all(p.mediaElement.promises).then((function(){I(e,i)})).catch((function(e){p.mediaElement.generateError(e,_)})):I(e,i)),null}};A(p.mediaElement,"src",P,j),p.mediaElement.getSrc=P,p.mediaElement.setSrc=j;for(var L=0,H=T.length;L<H;L++)D(T[L]);for(var M=0,R=O.length;M<R;M++)N(O[M]);return p.mediaElement.addEventListener=function(e,t){p.mediaElement.events[e]=p.mediaElement.events[e]||[],p.mediaElement.events[e].push(t)},p.mediaElement.removeEventListener=function(e,t){if(!e)return p.mediaElement.events={},!0;var i=p.mediaElement.events[e];if(!i)return!0;if(!t)return p.mediaElement.events[e]=[],!0;for(var n=0;n<i.length;n++)if(i[n]===t)return p.mediaElement.events[e].splice(n,1),!0;return!1},p.mediaElement.dispatchEvent=function(e){var t=p.mediaElement.events[e.type];if(t)for(var i=0;i<t.length;i++)t[i].apply(null,[e])},p.mediaElement.destroy=function(){var e=p.mediaElement.originalNode.cloneNode(!0),t=p.mediaElement.parentElement;e.removeAttribute("id"),e.remove(),p.mediaElement.remove(),t.appendChild(e)},_.length&&(p.mediaElement.src=_),p.mediaElement.promises.length?Promise.all(p.mediaElement.promises).then((function(){p.mediaElement.options.success&&p.mediaElement.options.success(p.mediaElement,p.mediaElement.originalNode)})).catch((function(){g&&p.mediaElement.options.error&&p.mediaElement.options.error(p.mediaElement,p.mediaElement.originalNode)})):(p.mediaElement.options.success&&p.mediaElement.options.success(p.mediaElement,p.mediaElement.originalNode),g&&p.mediaElement.options.error&&p.mediaElement.options.error(p.mediaElement,p.mediaElement.originalNode)),p.mediaElement};s.default.MediaElement=u,r.default.MediaElement=u,i.default=u},{2:2,25:25,27:27,28:28,3:3,7:7,8:8}],7:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n,s={version:"4.2.17",html5media:{properties:["volume","src","currentTime","muted","duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable","currentSrc","preload","bufferedBytes","bufferedTime","initialTime","startOffsetTime","defaultPlaybackRate","playbackRate","played","autoplay","loop","controls"],readOnlyProperties:["duration","paused","ended","buffered","error","networkState","readyState","seeking","seekable"],methods:["load","play","pause","canPlayType"],events:["loadstart","durationchange","loadedmetadata","loadeddata","progress","canplay","canplaythrough","suspend","abort","error","emptied","stalled","play","playing","pause","waiting","seeking","seeked","timeupdate","ended","ratechange","volumechange"],mediaTypes:["audio/mp3","audio/ogg","audio/oga","audio/wav","audio/x-wav","audio/wave","audio/x-pn-wav","audio/mpeg","audio/mp4","video/mp4","video/webm","video/ogg","video/ogv"]}};((n=e(3))&&n.__esModule?n:{default:n}).default.mejs=s,i.default=s},{3:3}],8:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.renderer=void 0;var n,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),r=(n=e(7))&&n.__esModule?n:{default:n},a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.renderers={},this.order=[]}return o(e,[{key:"add",value:function(e){if(void 0===e.name)throw new TypeError("renderer must contain at least `name` property");this.renderers[e.name]=e,this.order.push(e.name)}},{key:"select",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=t.length;if(t=t.length?t:this.order,!i){var n=[/^(html5|native)/i,/^flash/i,/iframe$/i],s=function(e){for(var t=0,i=n.length;t<i;t++)if(n[t].test(e))return t;return n.length};t.sort((function(e,t){return s(e)-s(t)}))}for(var o=0,r=t.length;o<r;o++){var a=t[o],l=this.renderers[a];if(null!=l)for(var c=0,d=e.length;c<d;c++)if("function"==typeof l.canPlayType&&"string"==typeof e[c].type&&l.canPlayType(e[c].type))return{rendererName:l.name,src:e[c].src}}return null}},{key:"order",set:function(e){if(!Array.isArray(e))throw new TypeError("order must be an array of strings.");this._order=e},get:function(){return this._order}},{key:"renderers",set:function(e){if(null!==e&&"object"!==(void 0===e?"undefined":s(e)))throw new TypeError("renderers must be an array of objects.");this._renderers=e},get:function(){return this._renderers}}]),e}(),l=i.renderer=new a;r.default.Renderers=l},{7:7}],9:[function(e,t,i){"use strict";var n=u(e(3)),s=u(e(2)),o=u(e(5)),r=e(16),a=u(r),l=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(e(25)),c=e(27),d=e(26),h=e(28);function u(e){return e&&e.__esModule?e:{default:e}}Object.assign(r.config,{usePluginFullScreen:!0,fullscreenText:null,useFakeFullscreen:!1}),Object.assign(a.default.prototype,{isFullScreen:!1,isNativeFullScreen:!1,isInIframe:!1,isPluginClickThroughCreated:!1,fullscreenMode:"",containerSizeTimeout:null,buildfullscreen:function(e){if(e.isVideo){e.isInIframe=n.default.location!==n.default.parent.location,e.detectFullscreenMode();var t=this,i=(0,c.isString)(t.options.fullscreenText)?t.options.fullscreenText:o.default.t("mejs.fullscreen"),r=s.default.createElement("div");r.className=t.options.classPrefix+"button "+t.options.classPrefix+"fullscreen-button",r.innerHTML='<button type="button" aria-controls="'+t.id+'" title="'+i+'" aria-label="'+i+'" tabindex="0"></button>',t.addControlElement(r,"fullscreen"),r.addEventListener("click",(function(){l.HAS_TRUE_NATIVE_FULLSCREEN&&l.IS_FULLSCREEN||e.isFullScreen?e.exitFullScreen():e.enterFullScreen()})),e.fullscreenBtn=r,t.options.keyActions.push({keys:[70],action:function(e,t,i,n){n.ctrlKey||void 0!==e.enterFullScreen&&(e.isFullScreen?e.exitFullScreen():e.enterFullScreen())}}),t.exitFullscreenCallback=function(i){var n=i.which||i.keyCode||0;t.options.enableKeyboard&&27===n&&(l.HAS_TRUE_NATIVE_FULLSCREEN&&l.IS_FULLSCREEN||t.isFullScreen)&&e.exitFullScreen()},t.globalBind("keydown",t.exitFullscreenCallback),t.normalHeight=0,t.normalWidth=0,l.HAS_TRUE_NATIVE_FULLSCREEN&&e.globalBind(l.FULLSCREEN_EVENT_NAME,(function(){e.isFullScreen&&(l.isFullScreen()?(e.isNativeFullScreen=!0,e.setControlsSize()):(e.isNativeFullScreen=!1,e.exitFullScreen()))}))}},cleanfullscreen:function(e){e.exitFullScreen(),e.globalUnbind("keydown",e.exitFullscreenCallback)},detectFullscreenMode:function(){var e=this,t=null!==e.media.rendererName&&/(native|html5)/i.test(e.media.rendererName),i="";return l.HAS_TRUE_NATIVE_FULLSCREEN&&t?i="native-native":l.HAS_TRUE_NATIVE_FULLSCREEN&&!t?i="plugin-native":e.usePluginFullScreen&&l.SUPPORT_POINTER_EVENTS&&(i="plugin-click"),e.fullscreenMode=i,i},enterFullScreen:function(){var e=this,t=null!==e.media.rendererName&&/(html5|native)/i.test(e.media.rendererName),i=getComputedStyle(e.getElement(e.container));if(e.isVideo)if(!1===e.options.useFakeFullscreen&&(l.IS_IOS||l.IS_SAFARI)&&l.HAS_IOS_FULLSCREEN&&"function"==typeof e.media.originalNode.webkitEnterFullscreen&&e.media.originalNode.canPlayType((0,h.getTypeFromFile)(e.media.getSrc())))e.media.originalNode.webkitEnterFullscreen();else{if((0,d.addClass)(s.default.documentElement,e.options.classPrefix+"fullscreen"),(0,d.addClass)(e.getElement(e.container),e.options.classPrefix+"container-fullscreen"),e.normalHeight=parseFloat(i.height),e.normalWidth=parseFloat(i.width),"native-native"!==e.fullscreenMode&&"plugin-native"!==e.fullscreenMode||(l.requestFullScreen(e.getElement(e.container)),e.isInIframe&&setTimeout((function t(){if(e.isNativeFullScreen){var i=n.default.innerWidth||s.default.documentElement.clientWidth||s.default.body.clientWidth,o=screen.width;Math.abs(o-i)>.002*o?e.exitFullScreen():setTimeout(t,500)}}),1e3)),e.getElement(e.container).style.width="100%",e.getElement(e.container).style.height="100%",e.containerSizeTimeout=setTimeout((function(){e.getElement(e.container).style.width="100%",e.getElement(e.container).style.height="100%",e.setControlsSize()}),500),t)e.node.style.width="100%",e.node.style.height="100%";else for(var o=e.getElement(e.container).querySelectorAll("embed, object, video"),r=o.length,a=0;a<r;a++)o[a].style.width="100%",o[a].style.height="100%";e.options.setDimensions&&"function"==typeof e.media.setSize&&e.media.setSize(screen.width,screen.height);for(var u=e.getElement(e.layers).children,p=u.length,f=0;f<p;f++)u[f].style.width="100%",u[f].style.height="100%";e.fullscreenBtn&&((0,d.removeClass)(e.fullscreenBtn,e.options.classPrefix+"fullscreen"),(0,d.addClass)(e.fullscreenBtn,e.options.classPrefix+"unfullscreen")),e.setControlsSize(),e.isFullScreen=!0;var g=Math.min(screen.width/e.width,screen.height/e.height),m=e.getElement(e.container).querySelector("."+e.options.classPrefix+"captions-text");m&&(m.style.fontSize=100*g+"%",m.style.lineHeight="normal",e.getElement(e.container).querySelector("."+e.options.classPrefix+"captions-position").style.bottom=(screen.height-e.normalHeight)/2-e.getElement(e.controls).offsetHeight/2+g+15+"px");var v=(0,c.createEvent)("enteredfullscreen",e.getElement(e.container));e.getElement(e.container).dispatchEvent(v)}},exitFullScreen:function(){var e=this,t=null!==e.media.rendererName&&/(native|html5)/i.test(e.media.rendererName);if(e.isVideo){if(clearTimeout(e.containerSizeTimeout),l.HAS_TRUE_NATIVE_FULLSCREEN&&(l.IS_FULLSCREEN||e.isFullScreen)&&l.cancelFullScreen(),(0,d.removeClass)(s.default.documentElement,e.options.classPrefix+"fullscreen"),(0,d.removeClass)(e.getElement(e.container),e.options.classPrefix+"container-fullscreen"),e.options.setDimensions){if(e.getElement(e.container).style.width=e.normalWidth+"px",e.getElement(e.container).style.height=e.normalHeight+"px",t)e.node.style.width=e.normalWidth+"px",e.node.style.height=e.normalHeight+"px";else for(var i=e.getElement(e.container).querySelectorAll("embed, object, video"),n=i.length,o=0;o<n;o++)i[o].style.width=e.normalWidth+"px",i[o].style.height=e.normalHeight+"px";"function"==typeof e.media.setSize&&e.media.setSize(e.normalWidth,e.normalHeight);for(var r=e.getElement(e.layers).children,a=r.length,h=0;h<a;h++)r[h].style.width=e.normalWidth+"px",r[h].style.height=e.normalHeight+"px"}e.fullscreenBtn&&((0,d.removeClass)(e.fullscreenBtn,e.options.classPrefix+"unfullscreen"),(0,d.addClass)(e.fullscreenBtn,e.options.classPrefix+"fullscreen")),e.setControlsSize(),e.isFullScreen=!1;var u=e.getElement(e.container).querySelector("."+e.options.classPrefix+"captions-text");u&&(u.style.fontSize="",u.style.lineHeight="",e.getElement(e.container).querySelector("."+e.options.classPrefix+"captions-position").style.bottom="");var p=(0,c.createEvent)("exitedfullscreen",e.getElement(e.container));e.getElement(e.container).dispatchEvent(p)}}})},{16:16,2:2,25:25,26:26,27:27,28:28,3:3,5:5}],10:[function(e,t,i){"use strict";var n=c(e(2)),s=e(16),o=c(s),r=c(e(5)),a=e(27),l=e(26);function c(e){return e&&e.__esModule?e:{default:e}}Object.assign(s.config,{playText:null,pauseText:null}),Object.assign(o.default.prototype,{buildplaypause:function(e,t,i,s){var o=this,c=o.options,d=(0,a.isString)(c.playText)?c.playText:r.default.t("mejs.play"),h=(0,a.isString)(c.pauseText)?c.pauseText:r.default.t("mejs.pause"),u=n.default.createElement("div");u.className=o.options.classPrefix+"button "+o.options.classPrefix+"playpause-button "+o.options.classPrefix+"play",u.innerHTML='<button type="button" aria-controls="'+o.id+'" title="'+d+'" aria-label="'+h+'" tabindex="0"></button>',u.addEventListener("click",(function(){o.paused?o.play():o.pause()}));var p=u.querySelector("button");function f(e){"play"===e?((0,l.removeClass)(u,o.options.classPrefix+"play"),(0,l.removeClass)(u,o.options.classPrefix+"replay"),(0,l.addClass)(u,o.options.classPrefix+"pause"),p.setAttribute("title",h),p.setAttribute("aria-label",h)):((0,l.removeClass)(u,o.options.classPrefix+"pause"),(0,l.removeClass)(u,o.options.classPrefix+"replay"),(0,l.addClass)(u,o.options.classPrefix+"play"),p.setAttribute("title",d),p.setAttribute("aria-label",d))}o.addControlElement(u,"playpause"),f("pse"),s.addEventListener("loadedmetadata",(function(){-1===s.rendererName.indexOf("flash")&&f("pse")})),s.addEventListener("play",(function(){f("play")})),s.addEventListener("playing",(function(){f("play")})),s.addEventListener("pause",(function(){f("pse")})),s.addEventListener("ended",(function(){e.options.loop||((0,l.removeClass)(u,o.options.classPrefix+"pause"),(0,l.removeClass)(u,o.options.classPrefix+"play"),(0,l.addClass)(u,o.options.classPrefix+"replay"),p.setAttribute("title",d),p.setAttribute("aria-label",d))}))}})},{16:16,2:2,26:26,27:27,5:5}],11:[function(e,t,i){"use strict";var n=d(e(2)),s=e(16),o=d(s),r=d(e(5)),a=e(25),l=e(30),c=e(26);function d(e){return e&&e.__esModule?e:{default:e}}Object.assign(s.config,{enableProgressTooltip:!0,useSmoothHover:!0,forceLive:!1}),Object.assign(o.default.prototype,{buildprogress:function(e,t,i,s){var o=0,d=!1,h=!1,u=this,p=e.options.autoRewind,f=e.options.enableProgressTooltip?'<span class="'+u.options.classPrefix+'time-float"><span class="'+u.options.classPrefix+'time-float-current">00:00</span><span class="'+u.options.classPrefix+'time-float-corner"></span></span>':"",g=n.default.createElement("div");g.className=u.options.classPrefix+"time-rail",g.innerHTML='<span class="'+u.options.classPrefix+"time-total "+u.options.classPrefix+'time-slider"><span class="'+u.options.classPrefix+'time-buffering"></span><span class="'+u.options.classPrefix+'time-loaded"></span><span class="'+u.options.classPrefix+'time-current"></span><span class="'+u.options.classPrefix+'time-hovered no-hover"></span><span class="'+u.options.classPrefix+'time-handle"><span class="'+u.options.classPrefix+'time-handle-content"></span></span>'+f+"</span>",u.addControlElement(g,"progress"),u.options.keyActions.push({keys:[37,227],action:function(e){if(!isNaN(e.duration)&&e.duration>0){e.isVideo&&(e.showControls(),e.startControlsTimer());var t=e.getElement(e.container).querySelector("."+u.options.classPrefix+"time-total");t&&t.focus();var i=Math.max(e.currentTime-e.options.defaultSeekBackwardInterval(e),0);e.paused||e.pause(),setTimeout((function(){e.setCurrentTime(i)}),0),setTimeout((function(){e.play()}),0)}}},{keys:[39,228],action:function(e){if(!isNaN(e.duration)&&e.duration>0){e.isVideo&&(e.showControls(),e.startControlsTimer());var t=e.getElement(e.container).querySelector("."+u.options.classPrefix+"time-total");t&&t.focus();var i=Math.min(e.currentTime+e.options.defaultSeekForwardInterval(e),e.duration);e.paused||e.pause(),setTimeout((function(){e.setCurrentTime(i)}),0),setTimeout((function(){e.play()}),0)}}}),u.rail=t.querySelector("."+u.options.classPrefix+"time-rail"),u.total=t.querySelector("."+u.options.classPrefix+"time-total"),u.loaded=t.querySelector("."+u.options.classPrefix+"time-loaded"),u.current=t.querySelector("."+u.options.classPrefix+"time-current"),u.handle=t.querySelector("."+u.options.classPrefix+"time-handle"),u.timefloat=t.querySelector("."+u.options.classPrefix+"time-float"),u.timefloatcurrent=t.querySelector("."+u.options.classPrefix+"time-float-current"),u.slider=t.querySelector("."+u.options.classPrefix+"time-slider"),u.hovered=t.querySelector("."+u.options.classPrefix+"time-hovered"),u.buffer=t.querySelector("."+u.options.classPrefix+"time-buffering"),u.newTime=0,u.forcedHandlePause=!1,u.setTransformStyle=function(e,t){e.style.transform=t,e.style.webkitTransform=t,e.style.MozTransform=t,e.style.msTransform=t,e.style.OTransform=t},u.buffer.style.display="none";var m=function(t){var i=getComputedStyle(u.total),n=(0,c.offset)(u.total),s=u.total.offsetWidth,o=void 0!==i.webkitTransform?"webkitTransform":void 0!==i.mozTransform?"mozTransform ":void 0!==i.oTransform?"oTransform":void 0!==i.msTransform?"msTransform":"transform",r="WebKitCSSMatrix"in window?"WebKitCSSMatrix":"MSCSSMatrix"in window?"MSCSSMatrix":"CSSMatrix"in window?"CSSMatrix":void 0,h=0,p=0,f=0,g=void 0;if(g=t.originalEvent&&t.originalEvent.changedTouches?t.originalEvent.changedTouches[0].pageX:t.changedTouches?t.changedTouches[0].pageX:t.pageX,u.getDuration()){if(g<n.left?g=n.left:g>s+n.left&&(g=s+n.left),h=(f=g-n.left)/s,u.newTime=h*u.getDuration(),d&&null!==u.getCurrentTime()&&u.newTime.toFixed(4)!==u.getCurrentTime().toFixed(4)&&(u.setCurrentRailHandle(u.newTime),u.updateCurrent(u.newTime)),!a.IS_IOS&&!a.IS_ANDROID){if(f<0&&(f=0),u.options.useSmoothHover&&null!==r&&void 0!==window[r]){var m=new window[r](getComputedStyle(u.handle)[o]).m41,v=f/parseFloat(getComputedStyle(u.total).width)-m/parseFloat(getComputedStyle(u.total).width);u.hovered.style.left=m+"px",u.setTransformStyle(u.hovered,"scaleX("+v+")"),u.hovered.setAttribute("pos",f),v>=0?(0,c.removeClass)(u.hovered,"negative"):(0,c.addClass)(u.hovered,"negative")}if(u.timefloat){var _=u.timefloat.offsetWidth/2,y=mejs.Utils.offset(u.getElement(u.container)),b=getComputedStyle(u.timefloat);p=g-y.left<u.timefloat.offsetWidth?_:g-y.left>=u.getElement(u.container).offsetWidth-_?u.total.offsetWidth-_:f,(0,c.hasClass)(u.getElement(u.container),u.options.classPrefix+"long-video")&&(p+=parseFloat(b.marginLeft)/2+u.timefloat.offsetWidth/2),u.timefloat.style.left=p+"px",u.timefloatcurrent.innerHTML=(0,l.secondsToTimeCode)(u.newTime,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat),u.timefloat.style.display="block"}}}else a.IS_IOS||a.IS_ANDROID||!u.timefloat||(p=u.timefloat.offsetWidth+s>=u.getElement(u.container).offsetWidth?u.timefloat.offsetWidth/2:0,u.timefloat.style.left=p+"px",u.timefloat.style.left=p+"px",u.timefloat.style.display="block")},v=function(){new Date-o>=1e3&&u.play()};u.slider.addEventListener("focus",(function(){e.options.autoRewind=!1})),u.slider.addEventListener("blur",(function(){e.options.autoRewind=p})),u.slider.addEventListener("keydown",(function(t){if(new Date-o>=1e3&&(h=u.paused),u.options.enableKeyboard&&u.options.keyActions.length){var i=t.which||t.keyCode||0,n=u.getDuration(),r=e.options.defaultSeekForwardInterval(s),l=e.options.defaultSeekBackwardInterval(s),c=u.getCurrentTime(),d=u.getElement(u.container).querySelector("."+u.options.classPrefix+"volume-slider");if(38===i||40===i){d&&(d.style.display="block"),u.isVideo&&(u.showControls(),u.startControlsTimer());var p=38===i?Math.min(u.volume+.1,1):Math.max(u.volume-.1,0),f=p<=0;return u.setVolume(p),void u.setMuted(f)}switch(d&&(d.style.display="none"),i){case 37:u.getDuration()!==1/0&&(c-=l);break;case 39:u.getDuration()!==1/0&&(c+=r);break;case 36:c=0;break;case 35:c=n;break;case 13:case 32:return void(a.IS_FIREFOX&&(u.paused?u.play():u.pause()));default:return}c=c<0||isNaN(c)?0:c>=n?n:Math.floor(c),o=new Date,h||e.pause(),setTimeout((function(){u.setCurrentTime(c)}),0),c<u.getDuration()&&!h&&setTimeout(v,1100),e.showControls(),t.preventDefault(),t.stopPropagation()}}));var _=["mousedown","touchstart"];u.slider.addEventListener("dragstart",(function(){return!1}));for(var y=0,b=_.length;y<b;y++)u.slider.addEventListener(_[y],(function(e){if(u.forcedHandlePause=!1,u.getDuration()!==1/0&&(1===e.which||0===e.which)){u.paused||(u.pause(),u.forcedHandlePause=!0),d=!0,m(e);for(var t=["mouseup","touchend"],i=0,n=t.length;i<n;i++)u.getElement(u.container).addEventListener(t[i],(function(e){var t=e.target;(t===u.slider||t.closest("."+u.options.classPrefix+"time-slider"))&&m(e)}));u.globalBind("mouseup.dur touchend.dur",(function(){d&&null!==u.getCurrentTime()&&u.newTime.toFixed(4)!==u.getCurrentTime().toFixed(4)&&(u.setCurrentTime(u.newTime),u.setCurrentRailHandle(u.newTime),u.updateCurrent(u.newTime)),u.forcedHandlePause&&(u.slider.focus(),u.play()),u.forcedHandlePause=!1,d=!1,u.timefloat&&(u.timefloat.style.display="none")}))}}),!(!a.SUPPORT_PASSIVE_EVENT||"touchstart"!==_[y])&&{passive:!0});u.slider.addEventListener("mouseenter",(function(e){e.target===u.slider&&u.getDuration()!==1/0&&(u.getElement(u.container).addEventListener("mousemove",(function(e){var t=e.target;(t===u.slider||t.closest("."+u.options.classPrefix+"time-slider"))&&m(e)})),!u.timefloat||a.IS_IOS||a.IS_ANDROID||(u.timefloat.style.display="block"),u.hovered&&!a.IS_IOS&&!a.IS_ANDROID&&u.options.useSmoothHover&&(0,c.removeClass)(u.hovered,"no-hover"))})),u.slider.addEventListener("mouseleave",(function(){u.getDuration()!==1/0&&(d||(u.timefloat&&(u.timefloat.style.display="none"),u.hovered&&u.options.useSmoothHover&&(0,c.addClass)(u.hovered,"no-hover")))})),u.broadcastCallback=function(i){var o,a,c,d,h=t.querySelector("."+u.options.classPrefix+"broadcast");if(u.options.forceLive||u.getDuration()===1/0){if(!h&&u.options.forceLive){var p=n.default.createElement("span");p.className=u.options.classPrefix+"broadcast",p.innerText=r.default.t("mejs.live-broadcast"),u.slider.style.display="none",u.rail.appendChild(p)}}else h&&(u.slider.style.display="",h.remove()),e.setProgressRail(i),u.forcedHandlePause||e.setCurrentRail(i),o=u.getCurrentTime(),a=r.default.t("mejs.time-slider"),c=(0,l.secondsToTimeCode)(o,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat),d=u.getDuration(),u.slider.setAttribute("role","slider"),u.slider.tabIndex=0,s.paused?(u.slider.setAttribute("aria-label",a),u.slider.setAttribute("aria-valuemin",0),u.slider.setAttribute("aria-valuemax",isNaN(d)?0:d),u.slider.setAttribute("aria-valuenow",o),u.slider.setAttribute("aria-valuetext",c)):(u.slider.removeAttribute("aria-label"),u.slider.removeAttribute("aria-valuemin"),u.slider.removeAttribute("aria-valuemax"),u.slider.removeAttribute("aria-valuenow"),u.slider.removeAttribute("aria-valuetext"))},s.addEventListener("progress",u.broadcastCallback),s.addEventListener("timeupdate",u.broadcastCallback),s.addEventListener("play",(function(){u.buffer.style.display="none"})),s.addEventListener("playing",(function(){u.buffer.style.display="none"})),s.addEventListener("seeking",(function(){u.buffer.style.display=""})),s.addEventListener("seeked",(function(){u.buffer.style.display="none"})),s.addEventListener("pause",(function(){u.buffer.style.display="none"})),s.addEventListener("waiting",(function(){u.buffer.style.display=""})),s.addEventListener("loadeddata",(function(){u.buffer.style.display=""})),s.addEventListener("canplay",(function(){u.buffer.style.display="none"})),s.addEventListener("error",(function(){u.buffer.style.display="none"})),u.getElement(u.container).addEventListener("controlsresize",(function(t){u.getDuration()!==1/0&&(e.setProgressRail(t),u.forcedHandlePause||e.setCurrentRail(t))}))},cleanprogress:function(e,t,i,n){n.removeEventListener("progress",e.broadcastCallback),n.removeEventListener("timeupdate",e.broadcastCallback),e.rail&&e.rail.remove()},setProgressRail:function(e){var t=this,i=void 0!==e?e.detail.target||e.target:t.media,n=null;i&&i.buffered&&i.buffered.length>0&&i.buffered.end&&t.getDuration()?n=i.buffered.end(i.buffered.length-1)/t.getDuration():i&&void 0!==i.bytesTotal&&i.bytesTotal>0&&void 0!==i.bufferedBytes?n=i.bufferedBytes/i.bytesTotal:e&&e.lengthComputable&&0!==e.total&&(n=e.loaded/e.total),null!==n&&(n=Math.min(1,Math.max(0,n)),t.loaded&&t.setTransformStyle(t.loaded,"scaleX("+n+")"))},setCurrentRailHandle:function(e){this.setCurrentRailMain(this,e)},setCurrentRail:function(){this.setCurrentRailMain(this)},setCurrentRailMain:function(e,t){if(void 0!==e.getCurrentTime()&&e.getDuration()){var i=void 0===t?e.getCurrentTime():t;if(e.total&&e.handle){var n=parseFloat(getComputedStyle(e.total).width),s=Math.round(n*i/e.getDuration()),o=s-Math.round(e.handle.offsetWidth/2);if(o=o<0?0:o,e.setTransformStyle(e.current,"scaleX("+s/n+")"),e.setTransformStyle(e.handle,"translateX("+o+"px)"),e.options.useSmoothHover&&!(0,c.hasClass)(e.hovered,"no-hover")){var r=parseInt(e.hovered.getAttribute("pos"),10),a=(r=isNaN(r)?0:r)/n-o/n;e.hovered.style.left=o+"px",e.setTransformStyle(e.hovered,"scaleX("+a+")"),a>=0?(0,c.removeClass)(e.hovered,"negative"):(0,c.addClass)(e.hovered,"negative")}}}}})},{16:16,2:2,25:25,26:26,30:30,5:5}],12:[function(e,t,i){"use strict";var n=l(e(2)),s=e(16),o=l(s),r=e(30),a=e(26);function l(e){return e&&e.__esModule?e:{default:e}}Object.assign(s.config,{duration:0,timeAndDurationSeparator:"<span> | </span>"}),Object.assign(o.default.prototype,{buildcurrent:function(e,t,i,s){var o=this,a=n.default.createElement("div");a.className=o.options.classPrefix+"time",a.setAttribute("role","timer"),a.setAttribute("aria-live","off"),a.innerHTML='<span class="'+o.options.classPrefix+'currenttime">'+(0,r.secondsToTimeCode)(0,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat)+"</span>",o.addControlElement(a,"current"),e.updateCurrent(),o.updateTimeCallback=function(){o.controlsAreVisible&&e.updateCurrent()},s.addEventListener("timeupdate",o.updateTimeCallback)},cleancurrent:function(e,t,i,n){n.removeEventListener("timeupdate",e.updateTimeCallback)},buildduration:function(e,t,i,s){var o=this;if(t.lastChild.querySelector("."+o.options.classPrefix+"currenttime"))t.querySelector("."+o.options.classPrefix+"time").innerHTML+=o.options.timeAndDurationSeparator+'<span class="'+o.options.classPrefix+'duration">'+(0,r.secondsToTimeCode)(o.options.duration,o.options.alwaysShowHours,o.options.showTimecodeFrameCount,o.options.framesPerSecond,o.options.secondsDecimalLength,o.options.timeFormat)+"</span>";else{t.querySelector("."+o.options.classPrefix+"currenttime")&&(0,a.addClass)(t.querySelector("."+o.options.classPrefix+"currenttime").parentNode,o.options.classPrefix+"currenttime-container");var l=n.default.createElement("div");l.className=o.options.classPrefix+"time "+o.options.classPrefix+"duration-container",l.innerHTML='<span class="'+o.options.classPrefix+'duration">'+(0,r.secondsToTimeCode)(o.options.duration,o.options.alwaysShowHours,o.options.showTimecodeFrameCount,o.options.framesPerSecond,o.options.secondsDecimalLength,o.options.timeFormat)+"</span>",o.addControlElement(l,"duration")}o.updateDurationCallback=function(){o.controlsAreVisible&&e.updateDuration()},s.addEventListener("timeupdate",o.updateDurationCallback)},cleanduration:function(e,t,i,n){n.removeEventListener("timeupdate",e.updateDurationCallback)},updateCurrent:function(){var e=this,t=e.getCurrentTime();isNaN(t)&&(t=0);var i=(0,r.secondsToTimeCode)(t,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat);i.length>5?(0,a.addClass)(e.getElement(e.container),e.options.classPrefix+"long-video"):(0,a.removeClass)(e.getElement(e.container),e.options.classPrefix+"long-video"),e.getElement(e.controls).querySelector("."+e.options.classPrefix+"currenttime")&&(e.getElement(e.controls).querySelector("."+e.options.classPrefix+"currenttime").innerText=i)},updateDuration:function(){var e=this,t=e.getDuration();void 0!==e.media&&(isNaN(t)||t===1/0||t<0)&&(e.media.duration=e.options.duration=t=0),e.options.duration>0&&(t=e.options.duration);var i=(0,r.secondsToTimeCode)(t,e.options.alwaysShowHours,e.options.showTimecodeFrameCount,e.options.framesPerSecond,e.options.secondsDecimalLength,e.options.timeFormat);i.length>5?(0,a.addClass)(e.getElement(e.container),e.options.classPrefix+"long-video"):(0,a.removeClass)(e.getElement(e.container),e.options.classPrefix+"long-video"),e.getElement(e.controls).querySelector("."+e.options.classPrefix+"duration")&&t>0&&(e.getElement(e.controls).querySelector("."+e.options.classPrefix+"duration").innerHTML=i)}})},{16:16,2:2,26:26,30:30}],13:[function(e,t,i){"use strict";var n=h(e(2)),s=h(e(7)),o=h(e(5)),r=e(16),a=h(r),l=e(30),c=e(27),d=e(26);function h(e){return e&&e.__esModule?e:{default:e}}Object.assign(r.config,{startLanguage:"",tracksText:null,chaptersText:null,tracksAriaLive:!1,hideCaptionsButtonWhenEmpty:!0,toggleCaptionsButtonWhenOnlyOne:!1,slidesSelector:""}),Object.assign(a.default.prototype,{hasChapters:!1,buildtracks:function(e,t,i,s){if(this.findTracks(),e.tracks.length||e.trackFiles&&0!==!e.trackFiles.length){var r=this,a=r.options.tracksAriaLive?' role="log" aria-live="assertive" aria-atomic="false"':"",l=(0,c.isString)(r.options.tracksText)?r.options.tracksText:o.default.t("mejs.captions-subtitles"),h=(0,c.isString)(r.options.chaptersText)?r.options.chaptersText:o.default.t("mejs.captions-chapters"),u=null===e.trackFiles?e.tracks.length:e.trackFiles.length;if(r.domNode.textTracks)for(var p=r.domNode.textTracks.length-1;p>=0;p--)r.domNode.textTracks[p].mode="hidden";r.cleartracks(e),e.captions=n.default.createElement("div"),e.captions.className=r.options.classPrefix+"captions-layer "+r.options.classPrefix+"layer",e.captions.innerHTML='<div class="'+r.options.classPrefix+"captions-position "+r.options.classPrefix+'captions-position-hover"'+a+'><span class="'+r.options.classPrefix+'captions-text"></span></div>',e.captions.style.display="none",i.insertBefore(e.captions,i.firstChild),e.captionsText=e.captions.querySelector("."+r.options.classPrefix+"captions-text"),e.captionsButton=n.default.createElement("div"),e.captionsButton.className=r.options.classPrefix+"button "+r.options.classPrefix+"captions-button",e.captionsButton.innerHTML='<button type="button" aria-controls="'+r.id+'" title="'+l+'" aria-label="'+l+'" tabindex="0"></button><div class="'+r.options.classPrefix+"captions-selector "+r.options.classPrefix+'offscreen"><ul class="'+r.options.classPrefix+'captions-selector-list"><li class="'+r.options.classPrefix+'captions-selector-list-item"><input type="radio" class="'+r.options.classPrefix+'captions-selector-input" name="'+e.id+'_captions" id="'+e.id+'_captions_none" value="none" checked disabled><label class="'+r.options.classPrefix+"captions-selector-label "+r.options.classPrefix+'captions-selected" for="'+e.id+'_captions_none">'+o.default.t("mejs.none")+"</label></li></ul></div>",r.addControlElement(e.captionsButton,"tracks"),e.captionsButton.querySelector("."+r.options.classPrefix+"captions-selector-input").disabled=!1,e.chaptersButton=n.default.createElement("div"),e.chaptersButton.className=r.options.classPrefix+"button "+r.options.classPrefix+"chapters-button",e.chaptersButton.innerHTML='<button type="button" aria-controls="'+r.id+'" title="'+h+'" aria-label="'+h+'" tabindex="0"></button><div class="'+r.options.classPrefix+"chapters-selector "+r.options.classPrefix+'offscreen"><ul class="'+r.options.classPrefix+'chapters-selector-list"></ul></div>';for(var f=0,g=0;g<u;g++){var m=e.tracks[g].kind;e.tracks[g].src.trim()&&("subtitles"===m||"captions"===m?f++:"chapters"!==m||t.querySelector("."+r.options.classPrefix+"chapter-selector")||e.captionsButton.parentNode.insertBefore(e.chaptersButton,e.captionsButton))}e.trackToLoad=-1,e.selectedTrack=null,e.isLoadingTrack=!1;for(var v=0;v<u;v++){var _=e.tracks[v].kind;!e.tracks[v].src.trim()||"subtitles"!==_&&"captions"!==_||e.addTrackButton(e.tracks[v].trackId,e.tracks[v].srclang,e.tracks[v].label)}e.loadNextTrack();var y=["mouseenter","focusin"],b=["mouseleave","focusout"];if(r.options.toggleCaptionsButtonWhenOnlyOne&&1===f)e.captionsButton.addEventListener("click",(function(t){var i="none";null===e.selectedTrack&&(i=e.tracks[0].trackId);var n=t.keyCode||t.which;e.setTrack(i,void 0!==n)}));else{for(var w=e.captionsButton.querySelectorAll("."+r.options.classPrefix+"captions-selector-label"),x=e.captionsButton.querySelectorAll("input[type=radio]"),k=0,C=y.length;k<C;k++)e.captionsButton.addEventListener(y[k],(function(){(0,d.removeClass)(this.querySelector("."+r.options.classPrefix+"captions-selector"),r.options.classPrefix+"offscreen")}));for(var E=0,S=b.length;E<S;E++)e.captionsButton.addEventListener(b[E],(function(){(0,d.addClass)(this.querySelector("."+r.options.classPrefix+"captions-selector"),r.options.classPrefix+"offscreen")}));for(var T=0,O=x.length;T<O;T++)x[T].addEventListener("click",(function(t){var i=t.keyCode||t.which;e.setTrack(this.value,void 0!==i)}));for(var A=0,D=w.length;A<D;A++)w[A].addEventListener("click",(function(e){var t=(0,d.siblings)(this,(function(e){return"INPUT"===e.tagName}))[0],i=(0,c.createEvent)("click",t);t.dispatchEvent(i),e.preventDefault()}));e.captionsButton.addEventListener("keydown",(function(e){e.stopPropagation()}))}for(var P=0,j=y.length;P<j;P++)e.chaptersButton.addEventListener(y[P],(function(){this.querySelector("."+r.options.classPrefix+"chapters-selector-list").children.length&&(0,d.removeClass)(this.querySelector("."+r.options.classPrefix+"chapters-selector"),r.options.classPrefix+"offscreen")}));for(var I=0,N=b.length;I<N;I++)e.chaptersButton.addEventListener(b[I],(function(){(0,d.addClass)(this.querySelector("."+r.options.classPrefix+"chapters-selector"),r.options.classPrefix+"offscreen")}));e.chaptersButton.addEventListener("keydown",(function(e){e.stopPropagation()})),e.options.alwaysShowControls?(0,d.addClass)(e.getElement(e.container).querySelector("."+r.options.classPrefix+"captions-position"),r.options.classPrefix+"captions-position-hover"):(e.getElement(e.container).addEventListener("controlsshown",(function(){(0,d.addClass)(e.getElement(e.container).querySelector("."+r.options.classPrefix+"captions-position"),r.options.classPrefix+"captions-position-hover")})),e.getElement(e.container).addEventListener("controlshidden",(function(){s.paused||(0,d.removeClass)(e.getElement(e.container).querySelector("."+r.options.classPrefix+"captions-position"),r.options.classPrefix+"captions-position-hover")}))),s.addEventListener("timeupdate",(function(){e.displayCaptions()})),""!==e.options.slidesSelector&&(e.slidesContainer=n.default.querySelectorAll(e.options.slidesSelector),s.addEventListener("timeupdate",(function(){e.displaySlides()})))}},cleartracks:function(e){e&&(e.captions&&e.captions.remove(),e.chapters&&e.chapters.remove(),e.captionsText&&e.captionsText.remove(),e.captionsButton&&e.captionsButton.remove(),e.chaptersButton&&e.chaptersButton.remove())},rebuildtracks:function(){var e=this;e.findTracks(),e.buildtracks(e,e.getElement(e.controls),e.getElement(e.layers),e.media)},findTracks:function(){var e=this,t=null===e.trackFiles?e.node.querySelectorAll("track"):e.trackFiles,i=t.length;e.tracks=[];for(var n=0;n<i;n++){var s=t[n],o=s.getAttribute("srclang").toLowerCase()||"",r=e.id+"_track_"+n+"_"+s.getAttribute("kind")+"_"+o;e.tracks.push({trackId:r,srclang:o,src:s.getAttribute("src"),kind:s.getAttribute("kind"),label:s.getAttribute("label")||"",entries:[],isLoaded:!1})}},setTrack:function(e,t){for(var i=this,n=i.captionsButton.querySelectorAll('input[type="radio"]'),s=i.captionsButton.querySelectorAll("."+i.options.classPrefix+"captions-selected"),o=i.captionsButton.querySelector('input[value="'+e+'"]'),r=0,a=n.length;r<a;r++)n[r].checked=!1;for(var l=0,h=s.length;l<h;l++)(0,d.removeClass)(s[l],i.options.classPrefix+"captions-selected");o.checked=!0;for(var u=(0,d.siblings)(o,(function(e){return(0,d.hasClass)(e,i.options.classPrefix+"captions-selector-label")})),p=0,f=u.length;p<f;p++)(0,d.addClass)(u[p],i.options.classPrefix+"captions-selected");if("none"===e)i.selectedTrack=null,(0,d.removeClass)(i.captionsButton,i.options.classPrefix+"captions-enabled");else for(var g=0,m=i.tracks.length;g<m;g++){var v=i.tracks[g];if(v.trackId===e){null===i.selectedTrack&&(0,d.addClass)(i.captionsButton,i.options.classPrefix+"captions-enabled"),i.selectedTrack=v,i.captions.setAttribute("lang",i.selectedTrack.srclang),i.displayCaptions();break}}var _=(0,c.createEvent)("captionschange",i.media);_.detail.caption=i.selectedTrack,i.media.dispatchEvent(_),t||setTimeout((function(){i.getElement(i.container).focus()}),500)},loadNextTrack:function(){var e=this;e.trackToLoad++,e.trackToLoad<e.tracks.length?(e.isLoadingTrack=!0,e.loadTrack(e.trackToLoad)):(e.isLoadingTrack=!1,e.checkForTracks())},loadTrack:function(e){var t=this,i=t.tracks[e];void 0===i||void 0===i.src&&""===i.src||(0,d.ajax)(i.src,"text",(function(e){i.entries="string"==typeof e&&/<tt\s+xml/gi.exec(e)?s.default.TrackFormatParser.dfxp.parse(e):s.default.TrackFormatParser.webvtt.parse(e),i.isLoaded=!0,t.enableTrackButton(i),t.loadNextTrack(),"slides"===i.kind?t.setupSlides(i):"chapters"!==i.kind||t.hasChapters||(t.drawChapters(i),t.hasChapters=!0)}),(function(){t.removeTrackButton(i.trackId),t.loadNextTrack()}))},enableTrackButton:function(e){var t=this,i=e.srclang,r=n.default.getElementById(""+e.trackId);if(r){var a=e.label;""===a&&(a=o.default.t(s.default.language.codes[i])||i),r.disabled=!1;for(var l=(0,d.siblings)(r,(function(e){return(0,d.hasClass)(e,t.options.classPrefix+"captions-selector-label")})),h=0,u=l.length;h<u;h++)l[h].innerHTML=a;if(t.options.startLanguage===i){r.checked=!0;var p=(0,c.createEvent)("click",r);r.dispatchEvent(p)}}},removeTrackButton:function(e){var t=n.default.getElementById(""+e);if(t){var i=t.closest("li");i&&i.remove()}},addTrackButton:function(e,t,i){var n=this;""===i&&(i=o.default.t(s.default.language.codes[t])||t),n.captionsButton.querySelector("ul").innerHTML+='<li class="'+n.options.classPrefix+'captions-selector-list-item"><input type="radio" class="'+n.options.classPrefix+'captions-selector-input" name="'+n.id+'_captions" id="'+e+'" value="'+e+'" disabled><label class="'+n.options.classPrefix+'captions-selector-label"for="'+e+'">'+i+" (loading)</label></li>"},checkForTracks:function(){var e=this,t=!1;if(e.options.hideCaptionsButtonWhenEmpty){for(var i=0,n=e.tracks.length;i<n;i++){var s=e.tracks[i].kind;if(("subtitles"===s||"captions"===s)&&e.tracks[i].isLoaded){t=!0;break}}e.captionsButton.style.display=t?"":"none",e.setControlsSize()}},displayCaptions:function(){if(void 0!==this.tracks){var e=this,t=e.selectedTrack;if(null!==t&&t.isLoaded){var i=e.searchTrackPosition(t.entries,e.media.currentTime);if(i>-1){var s=t.entries[i].text;return"function"==typeof e.options.captionTextPreprocessor&&(s=e.options.captionTextPreprocessor(s)),e.captionsText.innerHTML=function(e){var t=n.default.createElement("div");t.innerHTML=e;for(var i=t.getElementsByTagName("script"),s=i.length;s--;)i[s].remove();for(var o=t.getElementsByTagName("*"),r=0,a=o.length;r<a;r++)for(var l=o[r].attributes,c=Array.prototype.slice.call(l),d=0,h=c.length;d<h;d++)c[d].name.startsWith("on")||c[d].value.startsWith("javascript")?o[r].remove():"style"===c[d].name&&o[r].removeAttribute(c[d].name);return t.innerHTML}(s),e.captionsText.className=e.options.classPrefix+"captions-text "+(t.entries[i].identifier||""),e.captions.style.display="",void(e.captions.style.height="0px")}e.captions.style.display="none"}else e.captions.style.display="none"}},setupSlides:function(e){var t=this;t.slides=e,t.slides.entries.imgs=[t.slides.entries.length],t.showSlide(0)},showSlide:function(e){var t=this,i=this;if(void 0!==i.tracks&&void 0!==i.slidesContainer){var s=i.slides.entries[e].text,o=i.slides.entries[e].imgs;if(void 0===o||void 0===o.fadeIn){var r=n.default.createElement("img");r.src=s,r.addEventListener("load",(function(){var e=t,n=(0,d.siblings)(e,(function(e){return n(e)}));e.style.display="none",i.slidesContainer.innerHTML+=e.innerHTML,(0,d.fadeIn)(i.slidesContainer.querySelector(r));for(var s=0,o=n.length;s<o;s++)(0,d.fadeOut)(n[s],400)})),i.slides.entries[e].imgs=o=r}else if(!(0,d.visible)(o)){var a=(0,d.siblings)(self,(function(e){return a(e)}));(0,d.fadeIn)(i.slidesContainer.querySelector(o));for(var l=0,c=a.length;l<c;l++)(0,d.fadeOut)(a[l])}}},displaySlides:function(){var e=this;if(void 0!==this.slides){var t=e.slides,i=e.searchTrackPosition(t.entries,e.media.currentTime);i>-1&&e.showSlide(i)}},drawChapters:function(e){var t=this,i=e.entries.length;if(i){t.chaptersButton.querySelector("ul").innerHTML="";for(var n=0;n<i;n++)t.chaptersButton.querySelector("ul").innerHTML+='<li class="'+t.options.classPrefix+'chapters-selector-list-item" role="menuitemcheckbox" aria-live="polite" aria-disabled="false" aria-checked="false"><input type="radio" class="'+t.options.classPrefix+'captions-selector-input" name="'+t.id+'_chapters" id="'+t.id+"_chapters_"+n+'" value="'+e.entries[n].start+'" disabled><label class="'+t.options.classPrefix+'chapters-selector-label"for="'+t.id+"_chapters_"+n+'">'+e.entries[n].text+"</label></li>";for(var s=t.chaptersButton.querySelectorAll('input[type="radio"]'),o=t.chaptersButton.querySelectorAll("."+t.options.classPrefix+"chapters-selector-label"),r=0,a=s.length;r<a;r++)s[r].disabled=!1,s[r].checked=!1,s[r].addEventListener("click",(function(e){var i=this,n=t.chaptersButton.querySelectorAll("li"),s=(0,d.siblings)(i,(function(e){return(0,d.hasClass)(e,t.options.classPrefix+"chapters-selector-label")}))[0];i.checked=!0,i.parentNode.setAttribute("aria-checked",!0),(0,d.addClass)(s,t.options.classPrefix+"chapters-selected"),(0,d.removeClass)(t.chaptersButton.querySelector("."+t.options.classPrefix+"chapters-selected"),t.options.classPrefix+"chapters-selected");for(var o=0,r=n.length;o<r;o++)n[o].setAttribute("aria-checked",!1);void 0===(e.keyCode||e.which)&&setTimeout((function(){t.getElement(t.container).focus()}),500),t.media.setCurrentTime(parseFloat(i.value)),t.media.paused&&t.media.play()}));for(var l=0,h=o.length;l<h;l++)o[l].addEventListener("click",(function(e){var t=(0,d.siblings)(this,(function(e){return"INPUT"===e.tagName}))[0],i=(0,c.createEvent)("click",t);t.dispatchEvent(i),e.preventDefault()}))}},searchTrackPosition:function(e,t){for(var i=0,n=e.length-1,s=void 0,o=void 0,r=void 0;i<=n;){if(o=e[s=i+n>>1].start,r=e[s].stop,t>=o&&t<r)return s;o<t?i=s+1:o>t&&(n=s-1)}return-1}}),s.default.language={codes:{af:"mejs.afrikaans",sq:"mejs.albanian",ar:"mejs.arabic",be:"mejs.belarusian",bg:"mejs.bulgarian",ca:"mejs.catalan",zh:"mejs.chinese","zh-cn":"mejs.chinese-simplified","zh-tw":"mejs.chines-traditional",hr:"mejs.croatian",cs:"mejs.czech",da:"mejs.danish",nl:"mejs.dutch",en:"mejs.english",et:"mejs.estonian",fl:"mejs.filipino",fi:"mejs.finnish",fr:"mejs.french",gl:"mejs.galician",de:"mejs.german",el:"mejs.greek",ht:"mejs.haitian-creole",iw:"mejs.hebrew",hi:"mejs.hindi",hu:"mejs.hungarian",is:"mejs.icelandic",id:"mejs.indonesian",ga:"mejs.irish",it:"mejs.italian",ja:"mejs.japanese",ko:"mejs.korean",lv:"mejs.latvian",lt:"mejs.lithuanian",mk:"mejs.macedonian",ms:"mejs.malay",mt:"mejs.maltese",no:"mejs.norwegian",fa:"mejs.persian",pl:"mejs.polish",pt:"mejs.portuguese",ro:"mejs.romanian",ru:"mejs.russian",sr:"mejs.serbian",sk:"mejs.slovak",sl:"mejs.slovenian",es:"mejs.spanish",sw:"mejs.swahili",sv:"mejs.swedish",tl:"mejs.tagalog",th:"mejs.thai",tr:"mejs.turkish",uk:"mejs.ukrainian",vi:"mejs.vietnamese",cy:"mejs.welsh",yi:"mejs.yiddish"}},s.default.TrackFormatParser={webvtt:{pattern:/^((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{1,3})?) --\> ((?:[0-9]{1,2}:)?[0-9]{2}:[0-9]{2}([,.][0-9]{3})?)(.*)$/,parse:function(e){for(var t=e.split(/\r?\n/),i=[],n=void 0,s=void 0,o=void 0,r=0,a=t.length;r<a;r++){if((n=this.pattern.exec(t[r]))&&r<t.length){for(r-1>=0&&""!==t[r-1]&&(o=t[r-1]),s=t[++r],r++;""!==t[r]&&r<t.length;)s=s+"\n"+t[r],r++;s=null===s?"":s.trim().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1</a>"),i.push({identifier:o,start:0===(0,l.convertSMPTEtoSeconds)(n[1])?.2:(0,l.convertSMPTEtoSeconds)(n[1]),stop:(0,l.convertSMPTEtoSeconds)(n[3]),text:s,settings:n[5]})}o=""}return i}},dfxp:{parse:function(e){var t=n.default.adoptNode((new DOMParser).parseFromString(e,"application/xml").documentElement).querySelector("div"),i=t.querySelectorAll("p"),s=n.default.getElementById(t.getAttribute("style")),o=[],r=void 0;if(s){s.removeAttribute("id");var a=s.attributes;if(a.length){r={};for(var c=0,d=a.length;c<d;c++)r[a[c].name.split(":")[1]]=a[c].value}}for(var h=0,u=i.length;h<u;h++){var p=void 0,f={start:null,stop:null,style:null,text:null};if(i[h].getAttribute("begin")&&(f.start=(0,l.convertSMPTEtoSeconds)(i[h].getAttribute("begin"))),!f.start&&i[h-1].getAttribute("end")&&(f.start=(0,l.convertSMPTEtoSeconds)(i[h-1].getAttribute("end"))),i[h].getAttribute("end")&&(f.stop=(0,l.convertSMPTEtoSeconds)(i[h].getAttribute("end"))),!f.stop&&i[h+1].getAttribute("begin")&&(f.stop=(0,l.convertSMPTEtoSeconds)(i[h+1].getAttribute("begin"))),r)for(var g in p="",r)p+=g+": "+r[g]+";";p&&(f.style=p),0===f.start&&(f.start=.2),f.text=i[h].innerHTML.trim().replace(/(\b(https?|ftp|file):\/\/[-A-Z0-9+&@#\/%?=~_| !:, .; ]*[-A-Z0-9+&@#\/%=~_|])/gi,"<a href='$1' target='_blank'>$1</a>"),o.push(f)}return o}}}},{16:16,2:2,26:26,27:27,30:30,5:5,7:7}],14:[function(e,t,i){"use strict";var n=d(e(2)),s=e(16),o=d(s),r=d(e(5)),a=e(25),l=e(27),c=e(26);function d(e){return e&&e.__esModule?e:{default:e}}Object.assign(s.config,{muteText:null,unmuteText:null,allyVolumeControlText:null,hideVolumeOnTouchDevices:!0,audioVolume:"horizontal",videoVolume:"vertical",startVolume:.8}),Object.assign(o.default.prototype,{buildvolume:function(e,t,i,s){if(!a.IS_ANDROID&&!a.IS_IOS||!this.options.hideVolumeOnTouchDevices){var o=this,d=o.isVideo?o.options.videoVolume:o.options.audioVolume,h=(0,l.isString)(o.options.muteText)?o.options.muteText:r.default.t("mejs.mute"),u=(0,l.isString)(o.options.unmuteText)?o.options.unmuteText:r.default.t("mejs.unmute"),p=(0,l.isString)(o.options.allyVolumeControlText)?o.options.allyVolumeControlText:r.default.t("mejs.volume-help-text"),f=n.default.createElement("div");if(f.className=o.options.classPrefix+"button "+o.options.classPrefix+"volume-button "+o.options.classPrefix+"mute",f.innerHTML="horizontal"===d?'<button type="button" aria-controls="'+o.id+'" title="'+h+'" aria-label="'+h+'" tabindex="0"></button>':'<button type="button" aria-controls="'+o.id+'" title="'+h+'" aria-label="'+h+'" tabindex="0"></button><a href="javascript:void(0);" class="'+o.options.classPrefix+'volume-slider" aria-label="'+r.default.t("mejs.volume-slider")+'" aria-valuemin="0" aria-valuemax="100" role="slider" aria-orientation="vertical"><span class="'+o.options.classPrefix+'offscreen">'+p+'</span><div class="'+o.options.classPrefix+'volume-total"><div class="'+o.options.classPrefix+'volume-current"></div><div class="'+o.options.classPrefix+'volume-handle"></div></div></a>',o.addControlElement(f,"volume"),o.options.keyActions.push({keys:[38],action:function(e){var t=e.getElement(e.container).querySelector("."+o.options.classPrefix+"volume-slider");t&&t.matches(":focus")&&(t.style.display="block"),e.isVideo&&(e.showControls(),e.startControlsTimer());var i=Math.min(e.volume+.1,1);e.setVolume(i),i>0&&e.setMuted(!1)}},{keys:[40],action:function(e){var t=e.getElement(e.container).querySelector("."+o.options.classPrefix+"volume-slider");t&&(t.style.display="block"),e.isVideo&&(e.showControls(),e.startControlsTimer());var i=Math.max(e.volume-.1,0);e.setVolume(i),i<=.1&&e.setMuted(!0)}},{keys:[77],action:function(e){var t=e.getElement(e.container).querySelector("."+o.options.classPrefix+"volume-slider");t&&(t.style.display="block"),e.isVideo&&(e.showControls(),e.startControlsTimer()),e.media.muted?e.setMuted(!1):e.setMuted(!0)}}),"horizontal"===d){var g=n.default.createElement("a");g.className=o.options.classPrefix+"horizontal-volume-slider",g.href="javascript:void(0);",g.setAttribute("aria-label",r.default.t("mejs.volume-slider")),g.setAttribute("aria-valuemin",0),g.setAttribute("aria-valuemax",100),g.setAttribute("aria-valuenow",100),g.setAttribute("role","slider"),g.innerHTML+='<span class="'+o.options.classPrefix+'offscreen">'+p+'</span><div class="'+o.options.classPrefix+'horizontal-volume-total"><div class="'+o.options.classPrefix+'horizontal-volume-current"></div><div class="'+o.options.classPrefix+'horizontal-volume-handle"></div></div>',f.parentNode.insertBefore(g,f.nextSibling)}var m=!1,v=!1,_=!1,y="vertical"===d?o.getElement(o.container).querySelector("."+o.options.classPrefix+"volume-slider"):o.getElement(o.container).querySelector("."+o.options.classPrefix+"horizontal-volume-slider"),b="vertical"===d?o.getElement(o.container).querySelector("."+o.options.classPrefix+"volume-total"):o.getElement(o.container).querySelector("."+o.options.classPrefix+"horizontal-volume-total"),w="vertical"===d?o.getElement(o.container).querySelector("."+o.options.classPrefix+"volume-current"):o.getElement(o.container).querySelector("."+o.options.classPrefix+"horizontal-volume-current"),x="vertical"===d?o.getElement(o.container).querySelector("."+o.options.classPrefix+"volume-handle"):o.getElement(o.container).querySelector("."+o.options.classPrefix+"horizontal-volume-handle"),k=function(e){if(null!==e&&!isNaN(e)&&void 0!==e){if(e=Math.max(0,e),0===(e=Math.min(e,1))){(0,c.removeClass)(f,o.options.classPrefix+"mute"),(0,c.addClass)(f,o.options.classPrefix+"unmute");var t=f.firstElementChild;t.setAttribute("title",u),t.setAttribute("aria-label",u)}else{(0,c.removeClass)(f,o.options.classPrefix+"unmute"),(0,c.addClass)(f,o.options.classPrefix+"mute");var i=f.firstElementChild;i.setAttribute("title",h),i.setAttribute("aria-label",h)}var n=100*e+"%",s=getComputedStyle(x);"vertical"===d?(w.style.bottom=0,w.style.height=n,x.style.bottom=n,x.style.marginBottom=-parseFloat(s.height)/2+"px"):(w.style.left=0,w.style.width=n,x.style.left=n,x.style.marginLeft=-parseFloat(s.width)/2+"px")}},C=function(e){var t=(0,c.offset)(b),i=getComputedStyle(b);_=!0;var n=null;if("vertical"===d){var s=parseFloat(i.height);if(n=(s-(e.pageY-t.top))/s,0===t.top||0===t.left)return}else{var r=parseFloat(i.width);n=(e.pageX-t.left)/r}n=Math.max(0,n),n=Math.min(n,1),k(n),o.setMuted(0===n),o.setVolume(n),e.preventDefault(),e.stopPropagation()},E=function(){o.muted?(k(0),(0,c.removeClass)(f,o.options.classPrefix+"mute"),(0,c.addClass)(f,o.options.classPrefix+"unmute")):(k(s.volume),(0,c.removeClass)(f,o.options.classPrefix+"unmute"),(0,c.addClass)(f,o.options.classPrefix+"mute"))};e.getElement(e.container).addEventListener("keydown",(function(e){e.target.closest("."+o.options.classPrefix+"container")||"vertical"!==d||(y.style.display="none")})),f.addEventListener("mouseenter",(function(e){e.target===f&&(y.style.display="block",v=!0,e.preventDefault(),e.stopPropagation())})),f.addEventListener("focusin",(function(){y.style.display="block",v=!0})),f.addEventListener("focusout",(function(e){e.relatedTarget&&(!e.relatedTarget||e.relatedTarget.matches("."+o.options.classPrefix+"volume-slider"))||"vertical"!==d||(y.style.display="none")})),f.addEventListener("mouseleave",(function(){v=!1,m||"vertical"!==d||(y.style.display="none")})),f.addEventListener("focusout",(function(){v=!1})),f.addEventListener("keydown",(function(e){if(o.options.enableKeyboard&&o.options.keyActions.length){var t=e.which||e.keyCode||0,i=s.volume;switch(t){case 38:i=Math.min(i+.1,1);break;case 40:i=Math.max(0,i-.1);break;default:return!0}m=!1,k(i),s.setVolume(i),e.preventDefault(),e.stopPropagation()}})),f.querySelector("button").addEventListener("click",(function(){s.setMuted(!s.muted);var e=(0,l.createEvent)("volumechange",s);s.dispatchEvent(e)})),y.addEventListener("dragstart",(function(){return!1})),y.addEventListener("mouseover",(function(){v=!0})),y.addEventListener("focusin",(function(){y.style.display="block",v=!0})),y.addEventListener("focusout",(function(){v=!1,m||"vertical"!==d||(y.style.display="none")})),y.addEventListener("mousedown",(function(e){C(e),o.globalBind("mousemove.vol",(function(e){var t=e.target;m&&(t===y||t.closest("vertical"===d?"."+o.options.classPrefix+"volume-slider":"."+o.options.classPrefix+"horizontal-volume-slider"))&&C(e)})),o.globalBind("mouseup.vol",(function(){m=!1,v||"vertical"!==d||(y.style.display="none")})),m=!0,e.preventDefault(),e.stopPropagation()})),s.addEventListener("volumechange",(function(e){var t;m||E(),t=Math.floor(100*s.volume),y.setAttribute("aria-valuenow",t),y.setAttribute("aria-valuetext",t+"%")}));var S=!1;s.addEventListener("rendererready",(function(){_||setTimeout((function(){S=!0,(0===e.options.startVolume||s.originalNode.muted)&&s.setMuted(!0),s.setVolume(e.options.startVolume),o.setControlsSize()}),250)})),s.addEventListener("loadedmetadata",(function(){setTimeout((function(){_||S||((0===e.options.startVolume||s.originalNode.muted)&&s.setMuted(!0),0===e.options.startVolume&&(e.options.startVolume=0),s.setVolume(e.options.startVolume),o.setControlsSize()),S=!1}),250)})),(0===e.options.startVolume||s.originalNode.muted)&&(s.setMuted(!0),0===e.options.startVolume&&(e.options.startVolume=0),E()),o.getElement(o.container).addEventListener("controlsresize",(function(){E()}))}}})},{16:16,2:2,25:25,26:26,27:27,5:5}],15:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.EN={"mejs.plural-form":1,"mejs.download-file":"Download File","mejs.install-flash":"You are using a browser that does not have Flash player enabled or installed. Please turn on your Flash player plugin or download the latest version from https://get.adobe.com/flashplayer/","mejs.fullscreen":"Fullscreen","mejs.play":"Play","mejs.pause":"Pause","mejs.time-slider":"Time Slider","mejs.time-help-text":"Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.","mejs.live-broadcast":"Live Broadcast","mejs.volume-help-text":"Use Up/Down Arrow keys to increase or decrease volume.","mejs.unmute":"Unmute","mejs.mute":"Mute","mejs.volume-slider":"Volume Slider","mejs.video-player":"Video Player","mejs.audio-player":"Audio Player","mejs.captions-subtitles":"Captions/Subtitles","mejs.captions-chapters":"Chapters","mejs.none":"None","mejs.afrikaans":"Afrikaans","mejs.albanian":"Albanian","mejs.arabic":"Arabic","mejs.belarusian":"Belarusian","mejs.bulgarian":"Bulgarian","mejs.catalan":"Catalan","mejs.chinese":"Chinese","mejs.chinese-simplified":"Chinese (Simplified)","mejs.chinese-traditional":"Chinese (Traditional)","mejs.croatian":"Croatian","mejs.czech":"Czech","mejs.danish":"Danish","mejs.dutch":"Dutch","mejs.english":"English","mejs.estonian":"Estonian","mejs.filipino":"Filipino","mejs.finnish":"Finnish","mejs.french":"French","mejs.galician":"Galician","mejs.german":"German","mejs.greek":"Greek","mejs.haitian-creole":"Haitian Creole","mejs.hebrew":"Hebrew","mejs.hindi":"Hindi","mejs.hungarian":"Hungarian","mejs.icelandic":"Icelandic","mejs.indonesian":"Indonesian","mejs.irish":"Irish","mejs.italian":"Italian","mejs.japanese":"Japanese","mejs.korean":"Korean","mejs.latvian":"Latvian","mejs.lithuanian":"Lithuanian","mejs.macedonian":"Macedonian","mejs.malay":"Malay","mejs.maltese":"Maltese","mejs.norwegian":"Norwegian","mejs.persian":"Persian","mejs.polish":"Polish","mejs.portuguese":"Portuguese","mejs.romanian":"Romanian","mejs.russian":"Russian","mejs.serbian":"Serbian","mejs.slovak":"Slovak","mejs.slovenian":"Slovenian","mejs.spanish":"Spanish","mejs.swahili":"Swahili","mejs.swedish":"Swedish","mejs.tagalog":"Tagalog","mejs.thai":"Thai","mejs.turkish":"Turkish","mejs.ukrainian":"Ukrainian","mejs.vietnamese":"Vietnamese","mejs.welsh":"Welsh","mejs.yiddish":"Yiddish"}},{}],16:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.config=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=m(e(3)),r=m(e(2)),a=m(e(7)),l=m(e(6)),c=m(e(17)),d=m(e(5)),h=e(25),u=e(27),p=e(30),f=e(28),g=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(e(26));function m(e){return e&&e.__esModule?e:{default:e}}a.default.mepIndex=0,a.default.players={};var v=i.config={poster:"",showPosterWhenEnded:!1,showPosterWhenPaused:!1,defaultVideoWidth:480,defaultVideoHeight:270,videoWidth:-1,videoHeight:-1,defaultAudioWidth:400,defaultAudioHeight:40,defaultSeekBackwardInterval:function(e){return.05*e.getDuration()},defaultSeekForwardInterval:function(e){return.05*e.getDuration()},setDimensions:!0,audioWidth:-1,audioHeight:-1,loop:!1,autoRewind:!0,enableAutosize:!0,timeFormat:"",alwaysShowHours:!1,showTimecodeFrameCount:!1,framesPerSecond:25,alwaysShowControls:!1,hideVideoControlsOnLoad:!1,hideVideoControlsOnPause:!1,clickToPlayPause:!0,controlsTimeoutDefault:1500,controlsTimeoutMouseEnter:2500,controlsTimeoutMouseLeave:1e3,iPadUseNativeControls:!1,iPhoneUseNativeControls:!1,AndroidUseNativeControls:!1,features:["playpause","current","progress","duration","tracks","volume","fullscreen"],useDefaultControls:!1,isVideo:!0,stretching:"auto",classPrefix:"mejs__",enableKeyboard:!0,pauseOtherPlayers:!0,secondsDecimalLength:0,customError:null,keyActions:[{keys:[32,179],action:function(e){h.IS_FIREFOX||(e.paused||e.ended?e.play():e.pause())}}]};a.default.MepDefaults=v;var _=function(){function e(t,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var n=this,s="string"==typeof t?r.default.getElementById(t):t;if(!(n instanceof e))return new e(s,i);if(n.node=n.media=s,n.node){if(n.media.player)return n.media.player;if(n.hasFocus=!1,n.controlsAreVisible=!0,n.controlsEnabled=!0,n.controlsTimer=null,n.currentMediaTime=0,n.proxy=null,void 0===i){var o=n.node.getAttribute("data-mejsoptions");i=o?JSON.parse(o):{}}return n.options=Object.assign({},v,i),n.options.loop&&!n.media.getAttribute("loop")?(n.media.loop=!0,n.node.loop=!0):n.media.loop&&(n.options.loop=!0),n.options.timeFormat||(n.options.timeFormat="mm:ss",n.options.alwaysShowHours&&(n.options.timeFormat="hh:mm:ss"),n.options.showTimecodeFrameCount&&(n.options.timeFormat+=":ff")),(0,p.calculateTimeFormat)(0,n.options,n.options.framesPerSecond||25),n.id="mep_"+a.default.mepIndex++,a.default.players[n.id]=n,n.init(),n}}return s(e,[{key:"getElement",value:function(e){return e}},{key:"init",value:function(){var e=this,t=Object.assign({},e.options,{success:function(t,i){e._meReady(t,i)},error:function(t){e._handleError(t)}}),i=e.node.tagName.toLowerCase();if(e.isDynamic="audio"!==i&&"video"!==i&&"iframe"!==i,e.isVideo=(e.isDynamic||"audio"!==i)&&e.options.isVideo,e.mediaFiles=null,e.trackFiles=null,h.IS_IPAD&&e.options.iPadUseNativeControls||h.IS_IPHONE&&e.options.iPhoneUseNativeControls)e.node.setAttribute("controls",!0),h.IS_IPAD&&e.node.getAttribute("autoplay")&&e.play();else if(!e.isVideo&&(e.isVideo||!e.options.features.length&&!e.options.useDefaultControls)||h.IS_ANDROID&&e.options.AndroidUseNativeControls)e.isVideo||e.options.features.length||e.options.useDefaultControls||(e.node.style.display="none");else{e.node.removeAttribute("controls");var n=e.isVideo?d.default.t("mejs.video-player"):d.default.t("mejs.audio-player"),s=r.default.createElement("span");if(s.className=e.options.classPrefix+"offscreen",s.innerText=n,e.media.parentNode.insertBefore(s,e.media),e.container=r.default.createElement("div"),e.getElement(e.container).id=e.id,e.getElement(e.container).className=e.options.classPrefix+"container "+e.options.classPrefix+"container-keyboard-inactive "+e.media.className,e.getElement(e.container).tabIndex=0,e.getElement(e.container).setAttribute("role","application"),e.getElement(e.container).setAttribute("aria-label",n),e.getElement(e.container).innerHTML='<div class="'+e.options.classPrefix+'inner"><div class="'+e.options.classPrefix+'mediaelement"></div><div class="'+e.options.classPrefix+'layers"></div><div class="'+e.options.classPrefix+'controls"></div></div>',e.getElement(e.container).addEventListener("focus",(function(t){if(!e.controlsAreVisible&&!e.hasFocus&&e.controlsEnabled){e.showControls(!0);var i=(0,u.isNodeAfter)(t.relatedTarget,e.getElement(e.container))?"."+e.options.classPrefix+"controls ."+e.options.classPrefix+"button:last-child > button":"."+e.options.classPrefix+"playpause-button > button";e.getElement(e.container).querySelector(i).focus()}})),e.node.parentNode.insertBefore(e.getElement(e.container),e.node),e.options.features.length||e.options.useDefaultControls||(e.getElement(e.container).style.background="transparent",e.getElement(e.container).querySelector("."+e.options.classPrefix+"controls").style.display="none"),e.isVideo&&"fill"===e.options.stretching&&!g.hasClass(e.getElement(e.container).parentNode,e.options.classPrefix+"fill-container")){e.outerContainer=e.media.parentNode;var o=r.default.createElement("div");o.className=e.options.classPrefix+"fill-container",e.getElement(e.container).parentNode.insertBefore(o,e.getElement(e.container)),o.appendChild(e.getElement(e.container))}h.IS_ANDROID&&g.addClass(e.getElement(e.container),e.options.classPrefix+"android"),h.IS_IOS&&g.addClass(e.getElement(e.container),e.options.classPrefix+"ios"),h.IS_IPAD&&g.addClass(e.getElement(e.container),e.options.classPrefix+"ipad"),h.IS_IPHONE&&g.addClass(e.getElement(e.container),e.options.classPrefix+"iphone"),g.addClass(e.getElement(e.container),e.isVideo?e.options.classPrefix+"video":e.options.classPrefix+"audio"),e.getElement(e.container).querySelector("."+e.options.classPrefix+"mediaelement").appendChild(e.node),e.media.player=e,e.controls=e.getElement(e.container).querySelector("."+e.options.classPrefix+"controls"),e.layers=e.getElement(e.container).querySelector("."+e.options.classPrefix+"layers");var c=e.isVideo?"video":"audio",p=c.substring(0,1).toUpperCase()+c.substring(1);e.options[c+"Width"]>0||e.options[c+"Width"].toString().indexOf("%")>-1?e.width=e.options[c+"Width"]:""!==e.node.style.width&&null!==e.node.style.width?e.width=e.node.style.width:e.node.getAttribute("width")?e.width=e.node.getAttribute("width"):e.width=e.options["default"+p+"Width"],e.options[c+"Height"]>0||e.options[c+"Height"].toString().indexOf("%")>-1?e.height=e.options[c+"Height"]:""!==e.node.style.height&&null!==e.node.style.height?e.height=e.node.style.height:e.node.getAttribute("height")?e.height=e.node.getAttribute("height"):e.height=e.options["default"+p+"Height"],e.initialAspectRatio=e.height>=e.width?e.width/e.height:e.height/e.width,e.setPlayerSize(e.width,e.height),t.pluginWidth=e.width,t.pluginHeight=e.height}if(a.default.MepDefaults=t,new l.default(e.media,t,e.mediaFiles),void 0!==e.getElement(e.container)&&e.options.features.length&&e.controlsAreVisible&&!e.options.hideVideoControlsOnLoad){var f=(0,u.createEvent)("controlsshown",e.getElement(e.container));e.getElement(e.container).dispatchEvent(f)}}},{key:"showControls",value:function(e){var t=this;if(e=void 0===e||e,!t.controlsAreVisible&&t.isVideo){if(e)!function(){g.fadeIn(t.getElement(t.controls),200,(function(){g.removeClass(t.getElement(t.controls),t.options.classPrefix+"offscreen");var e=(0,u.createEvent)("controlsshown",t.getElement(t.container));t.getElement(t.container).dispatchEvent(e)}));for(var e=t.getElement(t.container).querySelectorAll("."+t.options.classPrefix+"control"),i=function(i,n){g.fadeIn(e[i],200,(function(){g.removeClass(e[i],t.options.classPrefix+"offscreen")}))},n=0,s=e.length;n<s;n++)i(n)}();else{g.removeClass(t.getElement(t.controls),t.options.classPrefix+"offscreen"),t.getElement(t.controls).style.display="",t.getElement(t.controls).style.opacity=1;for(var i=t.getElement(t.container).querySelectorAll("."+t.options.classPrefix+"control"),n=0,s=i.length;n<s;n++)g.removeClass(i[n],t.options.classPrefix+"offscreen"),i[n].style.display="";var o=(0,u.createEvent)("controlsshown",t.getElement(t.container));t.getElement(t.container).dispatchEvent(o)}t.controlsAreVisible=!0,t.setControlsSize()}}},{key:"hideControls",value:function(e,t){var i=this;if(e=void 0===e||e,!0===t||!(!i.controlsAreVisible||i.options.alwaysShowControls||i.paused&&4===i.readyState&&(!i.options.hideVideoControlsOnLoad&&i.currentTime<=0||!i.options.hideVideoControlsOnPause&&i.currentTime>0)||i.isVideo&&!i.options.hideVideoControlsOnLoad&&!i.readyState||i.ended)){if(e)!function(){g.fadeOut(i.getElement(i.controls),200,(function(){g.addClass(i.getElement(i.controls),i.options.classPrefix+"offscreen"),i.getElement(i.controls).style.display="";var e=(0,u.createEvent)("controlshidden",i.getElement(i.container));i.getElement(i.container).dispatchEvent(e)}));for(var e=i.getElement(i.container).querySelectorAll("."+i.options.classPrefix+"control"),t=function(t,n){g.fadeOut(e[t],200,(function(){g.addClass(e[t],i.options.classPrefix+"offscreen"),e[t].style.display=""}))},n=0,s=e.length;n<s;n++)t(n)}();else{g.addClass(i.getElement(i.controls),i.options.classPrefix+"offscreen"),i.getElement(i.controls).style.display="",i.getElement(i.controls).style.opacity=0;for(var n=i.getElement(i.container).querySelectorAll("."+i.options.classPrefix+"control"),s=0,o=n.length;s<o;s++)g.addClass(n[s],i.options.classPrefix+"offscreen"),n[s].style.display="";var r=(0,u.createEvent)("controlshidden",i.getElement(i.container));i.getElement(i.container).dispatchEvent(r)}i.controlsAreVisible=!1}}},{key:"startControlsTimer",value:function(e){var t=this;e=void 0!==e?e:t.options.controlsTimeoutDefault,t.killControlsTimer("start"),t.controlsTimer=setTimeout((function(){t.hideControls(),t.killControlsTimer("hide")}),e)}},{key:"killControlsTimer",value:function(){var e=this;null!==e.controlsTimer&&(clearTimeout(e.controlsTimer),delete e.controlsTimer,e.controlsTimer=null)}},{key:"disableControls",value:function(){var e=this;e.killControlsTimer(),e.controlsEnabled=!1,e.hideControls(!1,!0)}},{key:"enableControls",value:function(){this.controlsEnabled=!0,this.showControls(!1)}},{key:"_setDefaultPlayer",value:function(){var e=this;e.proxy&&e.proxy.pause(),e.proxy=new c.default(e),e.media.addEventListener("loadedmetadata",(function(){e.getCurrentTime()>0&&e.currentMediaTime>0&&(e.setCurrentTime(e.currentMediaTime),h.IS_IOS||h.IS_ANDROID||e.play())}))}},{key:"_meReady",value:function(e,t){var i=this,n=t.getAttribute("autoplay"),s=!(null==n||"false"===n),l=null!==e.rendererName&&/(native|html5)/i.test(e.rendererName);if(i.getElement(i.controls)&&i.enableControls(),i.getElement(i.container)&&i.getElement(i.container).querySelector("."+i.options.classPrefix+"overlay-play")&&(i.getElement(i.container).querySelector("."+i.options.classPrefix+"overlay-play").style.display=""),!i.created){if(i.created=!0,i.media=e,i.domNode=t,!(h.IS_ANDROID&&i.options.AndroidUseNativeControls||h.IS_IPAD&&i.options.iPadUseNativeControls||h.IS_IPHONE&&i.options.iPhoneUseNativeControls)){if(!i.isVideo&&!i.options.features.length&&!i.options.useDefaultControls)return s&&l&&i.play(),void(i.options.success&&("string"==typeof i.options.success?o.default[i.options.success](i.media,i.domNode,i):i.options.success(i.media,i.domNode,i)));if(i.featurePosition={},i._setDefaultPlayer(),i.buildposter(i,i.getElement(i.controls),i.getElement(i.layers),i.media),i.buildkeyboard(i,i.getElement(i.controls),i.getElement(i.layers),i.media),i.buildoverlays(i,i.getElement(i.controls),i.getElement(i.layers),i.media),i.options.useDefaultControls){var c=["playpause","current","progress","duration","tracks","volume","fullscreen"];i.options.features=c.concat(i.options.features.filter((function(e){return-1===c.indexOf(e)})))}i.buildfeatures(i,i.getElement(i.controls),i.getElement(i.layers),i.media);var d=(0,u.createEvent)("controlsready",i.getElement(i.container));i.getElement(i.container).dispatchEvent(d),i.setPlayerSize(i.width,i.height),i.setControlsSize(),i.isVideo&&(i.clickToPlayPauseCallback=function(){if(i.options.clickToPlayPause){var e=i.getElement(i.container).querySelector("."+i.options.classPrefix+"overlay-button"),t=e.getAttribute("aria-pressed");i.paused&&t?i.pause():i.paused?i.play():i.pause(),e.setAttribute("aria-pressed",!t),i.getElement(i.container).focus()}},i.createIframeLayer(),i.media.addEventListener("click",i.clickToPlayPauseCallback),!h.IS_ANDROID&&!h.IS_IOS||i.options.alwaysShowControls?(i.getElement(i.container).addEventListener("mouseenter",(function(){i.controlsEnabled&&(i.options.alwaysShowControls||(i.killControlsTimer("enter"),i.showControls(),i.startControlsTimer(i.options.controlsTimeoutMouseEnter)))})),i.getElement(i.container).addEventListener("mousemove",(function(){i.controlsEnabled&&(i.controlsAreVisible||i.showControls(),i.options.alwaysShowControls||i.startControlsTimer(i.options.controlsTimeoutMouseEnter))})),i.getElement(i.container).addEventListener("mouseleave",(function(){i.controlsEnabled&&(i.paused||i.options.alwaysShowControls||i.startControlsTimer(i.options.controlsTimeoutMouseLeave))}))):i.node.addEventListener("touchstart",(function(){i.controlsAreVisible?i.hideControls(!1):i.controlsEnabled&&i.showControls(!1)}),!!h.SUPPORT_PASSIVE_EVENT&&{passive:!0}),i.options.hideVideoControlsOnLoad&&i.hideControls(!1),i.options.enableAutosize&&i.media.addEventListener("loadedmetadata",(function(e){var t=void 0!==e?e.detail.target||e.target:i.media;i.options.videoHeight<=0&&!i.domNode.getAttribute("height")&&!i.domNode.style.height&&null!==t&&!isNaN(t.videoHeight)&&(i.setPlayerSize(t.videoWidth,t.videoHeight),i.setControlsSize(),i.media.setSize(t.videoWidth,t.videoHeight))}))),i.media.addEventListener("play",(function(){for(var e in i.hasFocus=!0,a.default.players)if(a.default.players.hasOwnProperty(e)){var t=a.default.players[e];t.id===i.id||!i.options.pauseOtherPlayers||t.paused||t.ended||!0===t.options.ignorePauseOtherPlayersOption||(t.pause(),t.hasFocus=!1)}h.IS_ANDROID||h.IS_IOS||i.options.alwaysShowControls||!i.isVideo||i.hideControls()})),i.media.addEventListener("ended",(function(){if(i.options.autoRewind)try{i.setCurrentTime(0),setTimeout((function(){var e=i.getElement(i.container).querySelector("."+i.options.classPrefix+"overlay-loading");e&&e.parentNode&&(e.parentNode.style.display="none")}),20)}catch(e){}"function"==typeof i.media.renderer.stop?i.media.renderer.stop():i.pause(),i.setProgressRail&&i.setProgressRail(),i.setCurrentRail&&i.setCurrentRail(),i.options.loop?i.play():!i.options.alwaysShowControls&&i.controlsEnabled&&i.showControls()})),i.media.addEventListener("loadedmetadata",(function(){(0,p.calculateTimeFormat)(i.getDuration(),i.options,i.options.framesPerSecond||25),i.updateDuration&&i.updateDuration(),i.updateCurrent&&i.updateCurrent(),i.isFullScreen||(i.setPlayerSize(i.width,i.height),i.setControlsSize())}));var f=null;i.media.addEventListener("timeupdate",(function(){isNaN(i.getDuration())||f===i.getDuration()||(f=i.getDuration(),(0,p.calculateTimeFormat)(f,i.options,i.options.framesPerSecond||25),i.updateDuration&&i.updateDuration(),i.updateCurrent&&i.updateCurrent(),i.setControlsSize())})),i.getElement(i.container).addEventListener("click",(function(e){g.addClass(e.currentTarget,i.options.classPrefix+"container-keyboard-inactive")})),i.getElement(i.container).addEventListener("focusin",(function(e){g.removeClass(e.currentTarget,i.options.classPrefix+"container-keyboard-inactive"),!i.isVideo||h.IS_ANDROID||h.IS_IOS||!i.controlsEnabled||i.options.alwaysShowControls||(i.killControlsTimer("enter"),i.showControls(),i.startControlsTimer(i.options.controlsTimeoutMouseEnter))})),i.getElement(i.container).addEventListener("focusout",(function(e){setTimeout((function(){e.relatedTarget&&i.keyboardAction&&!e.relatedTarget.closest("."+i.options.classPrefix+"container")&&(i.keyboardAction=!1,!i.isVideo||i.options.alwaysShowControls||i.paused||i.startControlsTimer(i.options.controlsTimeoutMouseLeave))}),0)})),setTimeout((function(){i.setPlayerSize(i.width,i.height),i.setControlsSize()}),0),i.globalResizeCallback=function(){i.isFullScreen||h.HAS_TRUE_NATIVE_FULLSCREEN&&r.default.webkitIsFullScreen||i.setPlayerSize(i.width,i.height),i.setControlsSize()},i.globalBind("resize",i.globalResizeCallback)}s&&l&&i.play(),i.options.success&&("string"==typeof i.options.success?o.default[i.options.success](i.media,i.domNode,i):i.options.success(i.media,i.domNode,i))}}},{key:"_handleError",value:function(e,t,i){var n=this,s=n.getElement(n.layers).querySelector("."+n.options.classPrefix+"overlay-play");s&&(s.style.display="none"),n.options.error&&n.options.error(e,t,i),n.getElement(n.container).querySelector("."+n.options.classPrefix+"cannotplay")&&n.getElement(n.container).querySelector("."+n.options.classPrefix+"cannotplay").remove();var o=r.default.createElement("div");o.className=n.options.classPrefix+"cannotplay",o.style.width="100%",o.style.height="100%";var l="function"==typeof n.options.customError?n.options.customError(n.media,n.media.originalNode):n.options.customError,c="";if(!l){var d=n.media.originalNode.getAttribute("poster");if(d&&(c='<img src="'+d+'" alt="'+a.default.i18n.t("mejs.download-file")+'">'),e.message&&(l="<p>"+e.message+"</p>"),e.urls)for(var h=0,u=e.urls.length;h<u;h++){var p=e.urls[h];l+='<a href="'+p.src+'" data-type="'+p.type+'"><span>'+a.default.i18n.t("mejs.download-file")+": "+p.src+"</span></a>"}}l&&n.getElement(n.layers).querySelector("."+n.options.classPrefix+"overlay-error")&&(o.innerHTML=l,n.getElement(n.layers).querySelector("."+n.options.classPrefix+"overlay-error").innerHTML=""+c+o.outerHTML,n.getElement(n.layers).querySelector("."+n.options.classPrefix+"overlay-error").parentNode.style.display="block"),n.controlsEnabled&&n.disableControls()}},{key:"setPlayerSize",value:function(e,t){var i=this;if(!i.options.setDimensions)return!1;switch(void 0!==e&&(i.width=e),void 0!==t&&(i.height=t),i.options.stretching){case"fill":i.isVideo?i.setFillMode():i.setDimensions(i.width,i.height);break;case"responsive":i.setResponsiveMode();break;case"none":i.setDimensions(i.width,i.height);break;default:!0===i.hasFluidMode()?i.setResponsiveMode():i.setDimensions(i.width,i.height)}}},{key:"hasFluidMode",value:function(){var e=this;return-1!==e.height.toString().indexOf("%")||e.node&&e.node.style.maxWidth&&"none"!==e.node.style.maxWidth&&e.node.style.maxWidth!==e.width||e.node&&e.node.currentStyle&&"100%"===e.node.currentStyle.maxWidth}},{key:"setResponsiveMode",value:function(){var e=this,t=function(){for(var t=void 0,i=e.getElement(e.container);i;){try{if(h.IS_FIREFOX&&"html"===i.tagName.toLowerCase()&&o.default.self!==o.default.top&&null!==o.default.frameElement)return o.default.frameElement;t=i.parentElement}catch(e){t=i.parentElement}if(t&&g.visible(t))return t;i=t}return null}(),i=t?getComputedStyle(t,null):getComputedStyle(r.default.body,null),n=e.isVideo?e.node.videoWidth&&e.node.videoWidth>0?e.node.videoWidth:e.node.getAttribute("width")?e.node.getAttribute("width"):e.options.defaultVideoWidth:e.options.defaultAudioWidth,s=e.isVideo?e.node.videoHeight&&e.node.videoHeight>0?e.node.videoHeight:e.node.getAttribute("height")?e.node.getAttribute("height"):e.options.defaultVideoHeight:e.options.defaultAudioHeight,a=function(){if(!e.options.enableAutosize)return e.initialAspectRatio;var t=1;return e.isVideo?(t=e.node.videoWidth&&e.node.videoWidth>0&&e.node.videoHeight&&e.node.videoHeight>0?e.height>=e.width?e.node.videoWidth/e.node.videoHeight:e.node.videoHeight/e.node.videoWidth:e.initialAspectRatio,(isNaN(t)||t<.01||t>100)&&(t=1),t):t}(),l=parseFloat(i.height),c=void 0,d=parseFloat(i.width);if(c=e.isVideo?"100%"===e.height?parseFloat(d*s/n,10):e.height>=e.width?parseFloat(d/a,10):parseFloat(d*a,10):s,isNaN(c)&&(c=l),e.getElement(e.container).parentNode.length>0&&"body"===e.getElement(e.container).parentNode.tagName.toLowerCase()&&(d=o.default.innerWidth||r.default.documentElement.clientWidth||r.default.body.clientWidth,c=o.default.innerHeight||r.default.documentElement.clientHeight||r.default.body.clientHeight),c&&d){e.getElement(e.container).style.width=d+"px",e.getElement(e.container).style.height=c+"px",e.node.style.width="100%",e.node.style.height="100%",e.isVideo&&e.media.setSize&&e.media.setSize(d,c);for(var u=e.getElement(e.layers).children,p=0,f=u.length;p<f;p++)u[p].style.width="100%",u[p].style.height="100%"}}},{key:"setFillMode",value:function(){var e=this,t=o.default.self!==o.default.top&&null!==o.default.frameElement,i=function(){for(var t=void 0,i=e.getElement(e.container);i;){try{if(h.IS_FIREFOX&&"html"===i.tagName.toLowerCase()&&o.default.self!==o.default.top&&null!==o.default.frameElement)return o.default.frameElement;t=i.parentElement}catch(e){t=i.parentElement}if(t&&g.visible(t))return t;i=t}return null}(),n=i?getComputedStyle(i,null):getComputedStyle(r.default.body,null);"none"!==e.node.style.height&&e.node.style.height!==e.height&&(e.node.style.height="auto"),"none"!==e.node.style.maxWidth&&e.node.style.maxWidth!==e.width&&(e.node.style.maxWidth="none"),"none"!==e.node.style.maxHeight&&e.node.style.maxHeight!==e.height&&(e.node.style.maxHeight="none"),e.node.currentStyle&&("100%"===e.node.currentStyle.height&&(e.node.currentStyle.height="auto"),"100%"===e.node.currentStyle.maxWidth&&(e.node.currentStyle.maxWidth="none"),"100%"===e.node.currentStyle.maxHeight&&(e.node.currentStyle.maxHeight="none")),t||parseFloat(n.width)||(i.style.width=e.media.offsetWidth+"px"),t||parseFloat(n.height)||(i.style.height=e.media.offsetHeight+"px"),n=getComputedStyle(i);var s=parseFloat(n.width),a=parseFloat(n.height);e.setDimensions("100%","100%");var l=e.getElement(e.container).querySelector("."+e.options.classPrefix+"poster>img");l&&(l.style.display="");for(var c=e.getElement(e.container).querySelectorAll("object, embed, iframe, video"),d=e.height,u=e.width,p=s,f=d*s/u,m=u*a/d,v=a,_=m>s==0,y=_?Math.floor(p):Math.floor(m),b=_?Math.floor(f):Math.floor(v),w=_?s+"px":y+"px",x=_?b+"px":a+"px",k=0,C=c.length;k<C;k++)c[k].style.height=x,c[k].style.width=w,e.media.setSize&&e.media.setSize(w,x),c[k].style.marginLeft=Math.floor((s-y)/2)+"px",c[k].style.marginTop=0}},{key:"setDimensions",value:function(e,t){var i=this;e=(0,u.isString)(e)&&e.indexOf("%")>-1?e:parseFloat(e)+"px",t=(0,u.isString)(t)&&t.indexOf("%")>-1?t:parseFloat(t)+"px",i.getElement(i.container).style.width=e,i.getElement(i.container).style.height=t;for(var n=i.getElement(i.layers).children,s=0,o=n.length;s<o;s++)n[s].style.width=e,n[s].style.height=t}},{key:"setControlsSize",value:function(){var e=this;if(g.visible(e.getElement(e.container)))if(e.rail&&g.visible(e.rail)){for(var t=e.total?getComputedStyle(e.total,null):null,i=t?parseFloat(t.marginLeft)+parseFloat(t.marginRight):0,n=getComputedStyle(e.rail),s=parseFloat(n.marginLeft)+parseFloat(n.marginRight),o=0,r=g.siblings(e.rail,(function(t){return t!==e.rail})),a=r.length,l=0;l<a;l++)o+=r[l].offsetWidth;o+=i+(0===i?2*s:s)+1,e.getElement(e.container).style.minWidth=o+"px";var c=(0,u.createEvent)("controlsresize",e.getElement(e.container));e.getElement(e.container).dispatchEvent(c)}else{for(var d=e.getElement(e.controls).children,h=0,p=0,f=d.length;p<f;p++)h+=d[p].offsetWidth;e.getElement(e.container).style.minWidth=h+"px"}}},{key:"addControlElement",value:function(e,t){var i=this;if(void 0!==i.featurePosition[t]){var n=i.getElement(i.controls).children[i.featurePosition[t]-1];n.parentNode.insertBefore(e,n.nextSibling)}else{i.getElement(i.controls).appendChild(e);for(var s=i.getElement(i.controls).children,o=0,r=s.length;o<r;o++)if(e===s[o]){i.featurePosition[t]=o;break}}}},{key:"createIframeLayer",value:function(){var e=this;if(e.isVideo&&null!==e.media.rendererName&&e.media.rendererName.indexOf("iframe")>-1&&!r.default.getElementById(e.media.id+"-iframe-overlay")){var t=r.default.createElement("div"),i=r.default.getElementById(e.media.id+"_"+e.media.rendererName);t.id=e.media.id+"-iframe-overlay",t.className=e.options.classPrefix+"iframe-overlay",t.addEventListener("click",(function(t){e.options.clickToPlayPause&&(e.paused?e.play():e.pause(),t.preventDefault(),t.stopPropagation())})),i.parentNode.insertBefore(t,i)}}},{key:"resetSize",value:function(){var e=this;setTimeout((function(){e.setPlayerSize(e.width,e.height),e.setControlsSize()}),50)}},{key:"setPoster",value:function(e){var t=this;if(t.getElement(t.container)){var i=t.getElement(t.container).querySelector("."+t.options.classPrefix+"poster");i||((i=r.default.createElement("div")).className=t.options.classPrefix+"poster "+t.options.classPrefix+"layer",t.getElement(t.layers).appendChild(i));var n=i.querySelector("img");!n&&e&&((n=r.default.createElement("img")).className=t.options.classPrefix+"poster-img",n.width="100%",n.height="100%",i.style.display="",i.appendChild(n)),e?(n.setAttribute("src",e),i.style.backgroundImage='url("'+e+'")',i.style.display=""):n?(i.style.backgroundImage="none",i.style.display="none",n.remove()):i.style.display="none"}else(h.IS_IPAD&&t.options.iPadUseNativeControls||h.IS_IPHONE&&t.options.iPhoneUseNativeControls||h.IS_ANDROID&&t.options.AndroidUseNativeControls)&&(t.media.originalNode.poster=e)}},{key:"changeSkin",value:function(e){var t=this;t.getElement(t.container).className=t.options.classPrefix+"container "+e,t.setPlayerSize(t.width,t.height),t.setControlsSize()}},{key:"globalBind",value:function(e,t){var i=this,n=i.node?i.node.ownerDocument:r.default;if((e=(0,u.splitEvents)(e,i.id)).d)for(var s=e.d.split(" "),a=0,l=s.length;a<l;a++)s[a].split(".").reduce((function(e,i){return n.addEventListener(i,t,!1),i}),"");if(e.w)for(var c=e.w.split(" "),d=0,h=c.length;d<h;d++)c[d].split(".").reduce((function(e,i){return o.default.addEventListener(i,t,!1),i}),"")}},{key:"globalUnbind",value:function(e,t){var i=this,n=i.node?i.node.ownerDocument:r.default;if((e=(0,u.splitEvents)(e,i.id)).d)for(var s=e.d.split(" "),a=0,l=s.length;a<l;a++)s[a].split(".").reduce((function(e,i){return n.removeEventListener(i,t,!1),i}),"");if(e.w)for(var c=e.w.split(" "),d=0,h=c.length;d<h;d++)c[d].split(".").reduce((function(e,i){return o.default.removeEventListener(i,t,!1),i}),"")}},{key:"buildfeatures",value:function(e,t,i,n){for(var s=this,o=0,r=s.options.features.length;o<r;o++){var a=s.options.features[o];if(s["build"+a])try{s["build"+a](e,t,i,n)}catch(e){console.error("error building "+a,e)}}}},{key:"buildposter",value:function(e,t,i,n){var s=this,o=r.default.createElement("div");o.className=s.options.classPrefix+"poster "+s.options.classPrefix+"layer",i.appendChild(o);var a=n.originalNode.getAttribute("poster");""!==e.options.poster&&(a&&h.IS_IOS&&n.originalNode.removeAttribute("poster"),a=e.options.poster),a?s.setPoster(a):null!==s.media.renderer&&"function"==typeof s.media.renderer.getPosterUrl?s.setPoster(s.media.renderer.getPosterUrl()):o.style.display="none",n.addEventListener("play",(function(){o.style.display="none"})),n.addEventListener("playing",(function(){o.style.display="none"})),e.options.showPosterWhenEnded&&e.options.autoRewind&&n.addEventListener("ended",(function(){o.style.display=""})),n.addEventListener("error",(function(){o.style.display="none"})),e.options.showPosterWhenPaused&&n.addEventListener("pause",(function(){e.ended||(o.style.display="")}))}},{key:"buildoverlays",value:function(e,t,i,n){if(e.isVideo){var s=this,o=r.default.createElement("div"),a=r.default.createElement("div"),l=r.default.createElement("div");o.style.display="none",o.className=s.options.classPrefix+"overlay "+s.options.classPrefix+"layer",o.innerHTML='<div class="'+s.options.classPrefix+'overlay-loading"><span class="'+s.options.classPrefix+'overlay-loading-bg-img"></span></div>',i.appendChild(o),a.style.display="none",a.className=s.options.classPrefix+"overlay "+s.options.classPrefix+"layer",a.innerHTML='<div class="'+s.options.classPrefix+'overlay-error"></div>',i.appendChild(a),l.className=s.options.classPrefix+"overlay "+s.options.classPrefix+"layer "+s.options.classPrefix+"overlay-play",l.innerHTML='<div class="'+s.options.classPrefix+'overlay-button" role="button" tabindex="0" aria-label="'+d.default.t("mejs.play")+'" aria-pressed="false"></div>',l.addEventListener("click",(function(){if(s.options.clickToPlayPause){var e=s.getElement(s.container).querySelector("."+s.options.classPrefix+"overlay-button"),t=e.getAttribute("aria-pressed");s.paused?s.play():s.pause(),e.setAttribute("aria-pressed",!!t),s.getElement(s.container).focus()}})),l.addEventListener("keydown",(function(e){var t=e.keyCode||e.which||0;if(13===t||h.IS_FIREFOX&&32===t){var i=(0,u.createEvent)("click",l);return l.dispatchEvent(i),!1}})),i.appendChild(l),null!==s.media.rendererName&&(/(youtube|facebook)/i.test(s.media.rendererName)&&!(s.media.originalNode.getAttribute("poster")||e.options.poster||"function"==typeof s.media.renderer.getPosterUrl&&s.media.renderer.getPosterUrl())||h.IS_STOCK_ANDROID||s.media.originalNode.getAttribute("autoplay"))&&(l.style.display="none");var c=!1;n.addEventListener("play",(function(){l.style.display="none",o.style.display="none",a.style.display="none",c=!1})),n.addEventListener("playing",(function(){l.style.display="none",o.style.display="none",a.style.display="none",c=!1})),n.addEventListener("seeking",(function(){l.style.display="none",o.style.display="",c=!1})),n.addEventListener("seeked",(function(){l.style.display=s.paused&&!h.IS_STOCK_ANDROID?"":"none",o.style.display="none",c=!1})),n.addEventListener("pause",(function(){o.style.display="none",h.IS_STOCK_ANDROID||c||(l.style.display=""),c=!1})),n.addEventListener("waiting",(function(){o.style.display="",c=!1})),n.addEventListener("loadeddata",(function(){o.style.display="",h.IS_ANDROID&&(n.canplayTimeout=setTimeout((function(){if(r.default.createEvent){var e=r.default.createEvent("HTMLEvents");return e.initEvent("canplay",!0,!0),n.dispatchEvent(e)}}),300)),c=!1})),n.addEventListener("canplay",(function(){o.style.display="none",clearTimeout(n.canplayTimeout),c=!1})),n.addEventListener("error",(function(e){s._handleError(e,s.media,s.node),o.style.display="none",l.style.display="none",c=!0})),n.addEventListener("loadedmetadata",(function(){s.controlsEnabled||s.enableControls()})),n.addEventListener("keydown",(function(t){s.onkeydown(e,n,t),c=!1}))}}},{key:"buildkeyboard",value:function(e,t,i,n){var s=this;s.getElement(s.container).addEventListener("keydown",(function(){s.keyboardAction=!0})),s.globalKeydownCallback=function(t){var i=r.default.activeElement.closest("."+s.options.classPrefix+"container"),o=s.media.closest("."+s.options.classPrefix+"container");return s.hasFocus=!(!i||!o||i.id!==o.id),s.onkeydown(e,n,t)},s.globalClickCallback=function(e){s.hasFocus=!!e.target.closest("."+s.options.classPrefix+"container")},s.globalBind("keydown",s.globalKeydownCallback),s.globalBind("click",s.globalClickCallback)}},{key:"onkeydown",value:function(e,t,i){if(e.hasFocus&&e.options.enableKeyboard)for(var n=0,s=e.options.keyActions.length;n<s;n++)for(var o=e.options.keyActions[n],r=0,a=o.keys.length;r<a;r++)if(i.keyCode===o.keys[r])return o.action(e,t,i.keyCode,i),i.preventDefault(),void i.stopPropagation();return!0}},{key:"play",value:function(){this.proxy.play()}},{key:"pause",value:function(){this.proxy.pause()}},{key:"load",value:function(){this.proxy.load()}},{key:"setCurrentTime",value:function(e){this.proxy.setCurrentTime(e)}},{key:"getCurrentTime",value:function(){return this.proxy.currentTime}},{key:"getDuration",value:function(){return this.proxy.duration}},{key:"setVolume",value:function(e){this.proxy.volume=e}},{key:"getVolume",value:function(){return this.proxy.getVolume()}},{key:"setMuted",value:function(e){this.proxy.setMuted(e)}},{key:"setSrc",value:function(e){this.controlsEnabled||this.enableControls(),this.proxy.setSrc(e)}},{key:"getSrc",value:function(){return this.proxy.getSrc()}},{key:"canPlayType",value:function(e){return this.proxy.canPlayType(e)}},{key:"remove",value:function(){var e=this,t=e.media.rendererName,i=e.media.originalNode.src;for(var s in e.options.features){var o=e.options.features[s];if(e["clean"+o])try{e["clean"+o](e,e.getElement(e.layers),e.getElement(e.controls),e.media)}catch(e){console.error("error cleaning "+o,e)}}var l=e.node.getAttribute("width"),c=e.node.getAttribute("height");if(l?-1===l.indexOf("%")&&(l+="px"):l="auto",c?-1===c.indexOf("%")&&(c+="px"):c="auto",e.node.style.width=l,e.node.style.height=c,e.setPlayerSize(0,0),e.isDynamic?e.getElement(e.container).parentNode.insertBefore(e.node,e.getElement(e.container)):function(){e.node.setAttribute("controls",!0),e.node.setAttribute("id",e.node.getAttribute("id").replace("_"+t,"").replace("_from_mejs",""));var n=e.getElement(e.container).querySelector("."+e.options.classPrefix+"poster>img");n&&e.node.setAttribute("poster",n.src),delete e.node.autoplay,e.node.setAttribute("src",""),""!==e.media.canPlayType((0,f.getTypeFromFile)(i))&&e.node.setAttribute("src",i),t&&t.indexOf("iframe")>-1&&r.default.getElementById(e.media.id+"-iframe-overlay").remove();var s=e.node.cloneNode();if(s.style.display="",e.getElement(e.container).parentNode.insertBefore(s,e.getElement(e.container)),e.node.remove(),e.mediaFiles)for(var o=0,a=e.mediaFiles.length;o<a;o++){var l=r.default.createElement("source");l.setAttribute("src",e.mediaFiles[o].src),l.setAttribute("type",e.mediaFiles[o].type),s.appendChild(l)}if(e.trackFiles)for(var c=function(t,i){var n=e.trackFiles[t],o=r.default.createElement("track");o.kind=n.kind,o.label=n.label,o.srclang=n.srclang,o.src=n.src,s.appendChild(o),o.addEventListener("load",(function(){this.mode="showing",s.textTracks[t].mode="showing"}))},d=0,h=e.trackFiles.length;d<h;d++)c(d);delete e.node,delete e.mediaFiles,delete e.trackFiles}(),e.media.renderer&&"function"==typeof e.media.renderer.destroy&&e.media.renderer.destroy(),delete a.default.players[e.id],"object"===n(e.getElement(e.container))){var d=e.getElement(e.container).parentNode.querySelector("."+e.options.classPrefix+"offscreen");d&&d.remove(),e.getElement(e.container).remove()}e.globalUnbind("resize",e.globalResizeCallback),e.globalUnbind("keydown",e.globalKeydownCallback),e.globalUnbind("click",e.globalClickCallback),delete e.media.player}},{key:"paused",get:function(){return this.proxy.paused}},{key:"muted",get:function(){return this.proxy.muted},set:function(e){this.setMuted(e)}},{key:"ended",get:function(){return this.proxy.ended}},{key:"readyState",get:function(){return this.proxy.readyState}},{key:"currentTime",set:function(e){this.setCurrentTime(e)},get:function(){return this.getCurrentTime()}},{key:"duration",get:function(){return this.getDuration()}},{key:"volume",set:function(e){this.setVolume(e)},get:function(){return this.getVolume()}},{key:"src",set:function(e){this.setSrc(e)},get:function(){return this.getSrc()}}]),e}();o.default.MediaElementPlayer=_,a.default.MediaElementPlayer=_,i.default=_},{17:17,2:2,25:25,26:26,27:27,28:28,3:3,30:30,5:5,6:6,7:7}],17:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var n,s=function(){function e(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),o=(n=e(3))&&n.__esModule?n:{default:n},r=function(){function e(t){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.media=t.media,this.isVideo=t.isVideo,this.classPrefix=t.options.classPrefix,this.createIframeLayer=function(){return t.createIframeLayer()},this.setPoster=function(e){return t.setPoster(e)},this}return s(e,[{key:"play",value:function(){this.media.play()}},{key:"pause",value:function(){this.media.pause()}},{key:"load",value:function(){var e=this;e.isLoaded||e.media.load(),e.isLoaded=!0}},{key:"setCurrentTime",value:function(e){this.media.setCurrentTime(e)}},{key:"getCurrentTime",value:function(){return this.media.currentTime}},{key:"getDuration",value:function(){var e=this.media.getDuration();return e===1/0&&this.media.seekable&&this.media.seekable.length&&(e=this.media.seekable.end(0)),e}},{key:"setVolume",value:function(e){this.media.setVolume(e)}},{key:"getVolume",value:function(){return this.media.getVolume()}},{key:"setMuted",value:function(e){this.media.setMuted(e)}},{key:"setSrc",value:function(e){var t=this,i=document.getElementById(t.media.id+"-iframe-overlay");i&&i.remove(),t.media.setSrc(e),t.createIframeLayer(),null!==t.media.renderer&&"function"==typeof t.media.renderer.getPosterUrl&&t.setPoster(t.media.renderer.getPosterUrl())}},{key:"getSrc",value:function(){return this.media.getSrc()}},{key:"canPlayType",value:function(e){return this.media.canPlayType(e)}},{key:"paused",get:function(){return this.media.paused}},{key:"muted",set:function(e){this.setMuted(e)},get:function(){return this.media.muted}},{key:"ended",get:function(){return this.media.ended}},{key:"readyState",get:function(){return this.media.readyState}},{key:"currentTime",set:function(e){this.setCurrentTime(e)},get:function(){return this.getCurrentTime()}},{key:"duration",get:function(){return this.getDuration()}},{key:"remainingTime",get:function(){return this.getDuration()-this.currentTime()}},{key:"volume",set:function(e){this.setVolume(e)},get:function(){return this.getVolume()}},{key:"src",set:function(e){this.setSrc(e)},get:function(){return this.getSrc()}}]),e}();i.default=r,o.default.DefaultPlayer=r},{3:3}],18:[function(e,t,i){"use strict";o(e(3));var n=o(e(7)),s=o(e(16));function o(e){return e&&e.__esModule?e:{default:e}}"undefined"!=typeof jQuery?n.default.$=jQuery:"undefined"!=typeof Zepto?n.default.$=Zepto:"undefined"!=typeof ender&&(n.default.$=ender),function(e){void 0!==e&&(e.fn.mediaelementplayer=function(t){return!1===t?this.each((function(){var t=e(this).data("mediaelementplayer");t&&t.remove(),e(this).removeData("mediaelementplayer")})):this.each((function(){e(this).data("mediaelementplayer",new s.default(this,t))})),this},e(document).ready((function(){e("."+n.default.MepDefaults.classPrefix+"player").mediaelementplayer()})))}(n.default.$)},{16:16,3:3,7:7}],19:[function(e,t,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=h(e(3)),o=h(e(7)),r=e(8),a=e(27),l=e(28),c=e(25),d=e(26);function h(e){return e&&e.__esModule?e:{default:e}}var u={promise:null,load:function(e){return"undefined"!=typeof dashjs?u.promise=new Promise((function(e){e()})).then((function(){u._createPlayer(e)})):(e.options.path="string"==typeof e.options.path?e.options.path:"https://cdn.dashjs.org/latest/dash.all.min.js",u.promise=u.promise||(0,d.loadScript)(e.options.path),u.promise.then((function(){u._createPlayer(e)}))),u.promise},_createPlayer:function(e){var t=dashjs.MediaPlayer().create();return s.default["__ready__"+e.id](t),t}},p={name:"native_dash",options:{prefix:"native_dash",dash:{path:"https://cdn.dashjs.org/latest/dash.all.min.js",debug:!1,drm:{},robustnessLevel:""}},canPlayType:function(e){return c.HAS_MSE&&["application/dash+xml"].indexOf(e.toLowerCase())>-1},create:function(e,t,i){var l=e.originalNode,c=e.id+"_"+t.prefix,d=l.autoplay,h=l.children,p=null,f=null;l.removeAttribute("type");for(var g=0,m=h.length;g<m;g++)h[g].removeAttribute("type");p=l.cloneNode(!0),t=Object.assign(t,e.options);for(var v=o.default.html5media.properties,_=o.default.html5media.events.concat(["click","mouseover","mouseout"]).filter((function(e){return"error"!==e})),y=function(t){var i=(0,a.createEvent)(t.type,e);e.dispatchEvent(i)},b=function(e){var i=""+e.substring(0,1).toUpperCase()+e.substring(1);p["get"+i]=function(){return null!==f?p[e]:null},p["set"+i]=function(i){if(-1===o.default.html5media.readOnlyProperties.indexOf(e))if("src"===e){var s="object"===(void 0===i?"undefined":n(i))&&i.src?i.src:i;if(p[e]=s,null!==f){f.reset();for(var r=0,l=_.length;r<l;r++)p.removeEventListener(_[r],y);f=u._createPlayer({options:t.dash,id:c}),i&&"object"===(void 0===i?"undefined":n(i))&&"object"===n(i.drm)&&(f.setProtectionData(i.drm),(0,a.isString)(t.dash.robustnessLevel)&&t.dash.robustnessLevel&&f.getProtectionController().setRobustnessLevel(t.dash.robustnessLevel)),f.attachSource(s),d&&f.play()}}else p[e]=i}},w=0,x=v.length;w<x;w++)b(v[w]);if(s.default["__ready__"+c]=function(i){e.dashPlayer=f=i;for(var s,r=dashjs.MediaPlayer.events,l=0,c=_.length;l<c;l++)"loadedmetadata"===(s=_[l])&&(f.initialize(),f.attachView(p),f.setAutoPlay(!1),"object"!==n(t.dash.drm)||o.default.Utils.isObjectEmpty(t.dash.drm)||(f.setProtectionData(t.dash.drm),(0,a.isString)(t.dash.robustnessLevel)&&t.dash.robustnessLevel&&f.getProtectionController().setRobustnessLevel(t.dash.robustnessLevel)),f.attachSource(p.getSrc())),p.addEventListener(s,y);var d=function(t){if("error"===t.type.toLowerCase())e.generateError(t.message,p.src),console.error(t);else{var i=(0,a.createEvent)(t.type,e);i.data=t,e.dispatchEvent(i)}};for(var h in r)r.hasOwnProperty(h)&&f.on(r[h],(function(e){return d(e)}))},i&&i.length>0)for(var k=0,C=i.length;k<C;k++)if(r.renderer.renderers[t.prefix].canPlayType(i[k].type)){p.setAttribute("src",i[k].src),void 0!==i[k].drm&&(t.dash.drm=i[k].drm);break}p.setAttribute("id",c),l.parentNode.insertBefore(p,l),l.autoplay=!1,l.style.display="none",p.setSize=function(e,t){return p.style.width=e+"px",p.style.height=t+"px",p},p.hide=function(){return p.pause(),p.style.display="none",p},p.show=function(){return p.style.display="",p},p.destroy=function(){null!==f&&f.reset()};var E=(0,a.createEvent)("rendererready",p);return e.dispatchEvent(E),e.promises.push(u.load({options:t.dash,id:c})),p}};l.typeChecks.push((function(e){return~e.toLowerCase().indexOf(".mpd")?"application/dash+xml":null})),r.renderer.add(p)},{25:25,26:26,27:27,28:28,3:3,7:7,8:8}],20:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.PluginDetector=void 0;var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=u(e(3)),o=u(e(2)),r=u(e(7)),a=u(e(5)),l=e(8),c=e(27),d=e(25),h=e(28);function u(e){return e&&e.__esModule?e:{default:e}}var p=i.PluginDetector={plugins:[],hasPluginVersion:function(e,t){var i=p.plugins[e];return t[1]=t[1]||0,t[2]=t[2]||0,i[0]>t[0]||i[0]===t[0]&&i[1]>t[1]||i[0]===t[0]&&i[1]===t[1]&&i[2]>=t[2]},addPlugin:function(e,t,i,n,s){p.plugins[e]=p.detectPlugin(t,i,n,s)},detectPlugin:function(e,t,i,o){var r=[0,0,0],a=void 0,l=void 0;if(null!==d.NAV.plugins&&void 0!==d.NAV.plugins&&"object"===n(d.NAV.plugins[e])){if((a=d.NAV.plugins[e].description)&&(void 0===d.NAV.mimeTypes||!d.NAV.mimeTypes[t]||d.NAV.mimeTypes[t].enabledPlugin))for(var c=0,h=(r=a.replace(e,"").replace(/^\s+/,"").replace(/\sr/gi,".").split(".")).length;c<h;c++)r[c]=parseInt(r[c].match(/\d+/),10)}else if(void 0!==s.default.ActiveXObject)try{(l=new ActiveXObject(i))&&(r=o(l))}catch(e){}return r}};p.addPlugin("flash","Shockwave Flash","application/x-shockwave-flash","ShockwaveFlash.ShockwaveFlash",(function(e){var t=[],i=e.GetVariable("$version");return i&&(i=i.split(" ")[1].split(","),t=[parseInt(i[0],10),parseInt(i[1],10),parseInt(i[2],10)]),t}));var f={create:function(e,t,i){var n={},u=!1;n.options=t,n.id=e.id+"_"+n.options.prefix,n.mediaElement=e,n.flashState={},n.flashApi=null,n.flashApiStack=[];for(var p=r.default.html5media.properties,f=function(e){n.flashState[e]=null;var t=""+e.substring(0,1).toUpperCase()+e.substring(1);n["get"+t]=function(){if(null!==n.flashApi){if("function"==typeof n.flashApi["get_"+e]){var t=n.flashApi["get_"+e]();return"buffered"===e?{start:function(){return 0},end:function(){return t},length:1}:t}return null}return null},n["set"+t]=function(t){if("src"===e&&(t=(0,h.absolutizeUrl)(t)),null!==n.flashApi&&void 0!==n.flashApi["set_"+e])try{n.flashApi["set_"+e](t)}catch(e){}else n.flashApiStack.push({type:"set",propName:e,value:t})}},g=0,m=p.length;g<m;g++)f(p[g]);var v=r.default.html5media.methods,_=function(e){n[e]=function(){if(u)if(null!==n.flashApi){if(n.flashApi["fire_"+e])try{n.flashApi["fire_"+e]()}catch(e){}}else n.flashApiStack.push({type:"call",methodName:e})}};v.push("stop");for(var y=0,b=v.length;y<b;y++)_(v[y]);for(var w=["rendererready"],x=0,k=w.length;x<k;x++){var C=(0,c.createEvent)(w[x],n);e.dispatchEvent(C)}s.default["__ready__"+n.id]=function(){if(n.flashReady=!0,n.flashApi=o.default.getElementById("__"+n.id),n.flashApiStack.length)for(var e=0,t=n.flashApiStack.length;e<t;e++){var i=n.flashApiStack[e];if("set"===i.type){var s=i.propName,r=""+s.substring(0,1).toUpperCase()+s.substring(1);n["set"+r](i.value)}else"call"===i.type&&n[i.methodName]()}},s.default["__event__"+n.id]=function(e,t){var i=(0,c.createEvent)(e,n);if(t)try{i.data=JSON.parse(t),i.details.data=JSON.parse(t)}catch(e){i.message=t}n.mediaElement.dispatchEvent(i)},n.flashWrapper=o.default.createElement("div"),-1===["always","sameDomain"].indexOf(n.options.shimScriptAccess)&&(n.options.shimScriptAccess="sameDomain");var E=e.originalNode.autoplay,S=["uid="+n.id,"autoplay="+E,"allowScriptAccess="+n.options.shimScriptAccess,"preload="+(e.originalNode.getAttribute("preload")||"")],T=null!==e.originalNode&&"video"===e.originalNode.tagName.toLowerCase(),O=T?e.originalNode.height:1,A=T?e.originalNode.width:1;e.originalNode.getAttribute("src")&&S.push("src="+e.originalNode.getAttribute("src")),!0===n.options.enablePseudoStreaming&&(S.push("pseudostreamstart="+n.options.pseudoStreamingStartQueryParam),S.push("pseudostreamtype="+n.options.pseudoStreamingType)),n.options.streamDelimiter&&S.push("streamdelimiter="+encodeURIComponent(n.options.streamDelimiter)),n.options.proxyType&&S.push("proxytype="+n.options.proxyType),e.appendChild(n.flashWrapper),e.originalNode.style.display="none";var D=[];if(d.IS_IE||d.IS_EDGE){var P=o.default.createElement("div");n.flashWrapper.appendChild(P),D=d.IS_EDGE?['type="application/x-shockwave-flash"','data="'+n.options.pluginPath+n.options.filename+'"','id="__'+n.id+'"','width="'+A+'"','height="'+O+"'\""]:['classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"','codebase="//download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab"','id="__'+n.id+'"','width="'+A+'"','height="'+O+'"'],T||D.push('style="clip: rect(0 0 0 0); position: absolute;"'),P.outerHTML="<object "+D.join(" ")+'><param name="movie" value="'+n.options.pluginPath+n.options.filename+"?x="+new Date+'" /><param name="flashvars" value="'+S.join("&amp;")+'" /><param name="quality" value="high" /><param name="bgcolor" value="#000000" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="'+n.options.shimScriptAccess+'" /><param name="allowFullScreen" value="true" /><div>'+a.default.t("mejs.install-flash")+"</div></object>"}else D=['id="__'+n.id+'"','name="__'+n.id+'"','play="true"','loop="false"','quality="high"','bgcolor="#000000"','wmode="transparent"','allowScriptAccess="'+n.options.shimScriptAccess+'"','allowFullScreen="true"','type="application/x-shockwave-flash"','pluginspage="//www.macromedia.com/go/getflashplayer"','src="'+n.options.pluginPath+n.options.filename+'"','flashvars="'+S.join("&")+'"'],T?(D.push('width="'+A+'"'),D.push('height="'+O+'"')):D.push('style="position: fixed; left: -9999em; top: -9999em;"'),n.flashWrapper.innerHTML="<embed "+D.join(" ")+">";if(n.flashNode=n.flashWrapper.lastChild,n.hide=function(){u=!1,T&&(n.flashNode.style.display="none")},n.show=function(){u=!0,T&&(n.flashNode.style.display="")},n.setSize=function(e,t){n.flashNode.style.width=e+"px",n.flashNode.style.height=t+"px",null!==n.flashApi&&"function"==typeof n.flashApi.fire_setSize&&n.flashApi.fire_setSize(e,t)},n.destroy=function(){n.flashNode.remove()},i&&i.length>0)for(var j=0,I=i.length;j<I;j++)if(l.renderer.renderers[t.prefix].canPlayType(i[j].type)){n.setSrc(i[j].src);break}return n}};if(p.hasPluginVersion("flash",[10,0,0])){h.typeChecks.push((function(e){return(e=e.toLowerCase()).startsWith("rtmp")?~e.indexOf(".mp3")?"audio/rtmp":"video/rtmp":/\.og(a|g)/i.test(e)?"audio/ogg":~e.indexOf(".m3u8")?"application/x-mpegURL":~e.indexOf(".mpd")?"application/dash+xml":~e.indexOf(".flv")?"video/flv":null}));var g={name:"flash_video",options:{prefix:"flash_video",filename:"mediaelement-flash-video.swf",enablePseudoStreaming:!1,pseudoStreamingStartQueryParam:"start",pseudoStreamingType:"byte",proxyType:"",streamDelimiter:""},canPlayType:function(e){return~["video/mp4","video/rtmp","audio/rtmp","rtmp/mp4","audio/mp4","video/flv","video/x-flv"].indexOf(e.toLowerCase())},create:f.create};l.renderer.add(g);var m={name:"flash_hls",options:{prefix:"flash_hls",filename:"mediaelement-flash-video-hls.swf"},canPlayType:function(e){return~["application/x-mpegurl","application/vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(e.toLowerCase())},create:f.create};l.renderer.add(m);var v={name:"flash_dash",options:{prefix:"flash_dash",filename:"mediaelement-flash-video-mdash.swf"},canPlayType:function(e){return~["application/dash+xml"].indexOf(e.toLowerCase())},create:f.create};l.renderer.add(v);var _={name:"flash_audio",options:{prefix:"flash_audio",filename:"mediaelement-flash-audio.swf"},canPlayType:function(e){return~["audio/mp3"].indexOf(e.toLowerCase())},create:f.create};l.renderer.add(_);var y={name:"flash_audio_ogg",options:{prefix:"flash_audio_ogg",filename:"mediaelement-flash-audio-ogg.swf"},canPlayType:function(e){return~["audio/ogg","audio/oga","audio/ogv"].indexOf(e.toLowerCase())},create:f.create};l.renderer.add(y)}},{2:2,25:25,27:27,28:28,3:3,5:5,7:7,8:8}],21:[function(e,t,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=h(e(3)),o=h(e(7)),r=e(8),a=e(27),l=e(25),c=e(28),d=e(26);function h(e){return e&&e.__esModule?e:{default:e}}var u={promise:null,load:function(e){return"undefined"!=typeof flvjs?u.promise=new Promise((function(e){e()})).then((function(){u._createPlayer(e)})):(e.options.path="string"==typeof e.options.path?e.options.path:"https://cdn.jsdelivr.net/npm/flv.js@latest",u.promise=u.promise||(0,d.loadScript)(e.options.path),u.promise.then((function(){u._createPlayer(e)}))),u.promise},_createPlayer:function(e){flvjs.LoggingControl.enableDebug=e.options.debug,flvjs.LoggingControl.enableVerbose=e.options.debug;var t=flvjs.createPlayer(e.options,e.configs);return s.default["__ready__"+e.id](t),t}},p={name:"native_flv",options:{prefix:"native_flv",flv:{path:"https://cdn.jsdelivr.net/npm/flv.js@latest",cors:!0,debug:!1}},canPlayType:function(e){return l.HAS_MSE&&["video/x-flv","video/flv"].indexOf(e.toLowerCase())>-1},create:function(e,t,i){var l=e.originalNode,c=e.id+"_"+t.prefix,d=null,h=null;d=l.cloneNode(!0),t=Object.assign(t,e.options);for(var p=o.default.html5media.properties,f=o.default.html5media.events.concat(["click","mouseover","mouseout"]).filter((function(e){return"error"!==e})),g=function(t){var i=(0,a.createEvent)(t.type,e);e.dispatchEvent(i)},m=function(e){var i=""+e.substring(0,1).toUpperCase()+e.substring(1);d["get"+i]=function(){return null!==h?d[e]:null},d["set"+i]=function(i){if(-1===o.default.html5media.readOnlyProperties.indexOf(e))if("src"===e){if(d[e]="object"===(void 0===i?"undefined":n(i))&&i.src?i.src:i,null!==h){var s={type:"flv"};s.url=i,s.cors=t.flv.cors,s.debug=t.flv.debug,s.path=t.flv.path;var r=t.flv.configs;h.destroy();for(var a=0,l=f.length;a<l;a++)d.removeEventListener(f[a],g);(h=u._createPlayer({options:s,configs:r,id:c})).attachMediaElement(d),h.load()}}else d[e]=i}},v=0,_=p.length;v<_;v++)m(p[v]);if(s.default["__ready__"+c]=function(t){e.flvPlayer=h=t;for(var i,n=flvjs.Events,s=0,o=f.length;s<o;s++)"loadedmetadata"===(i=f[s])&&(h.unload(),h.detachMediaElement(),h.attachMediaElement(d),h.load()),d.addEventListener(i,g);var r=function(t,i){if("error"===t){var n=i[0]+": "+i[1]+" "+i[2].msg;e.generateError(n,d.src)}else{var s=(0,a.createEvent)(t,e);s.data=i,e.dispatchEvent(s)}},l=function(e){n.hasOwnProperty(e)&&h.on(n[e],(function(){for(var t=arguments.length,i=Array(t),s=0;s<t;s++)i[s]=arguments[s];return r(n[e],i)}))};for(var c in n)l(c)},i&&i.length>0)for(var y=0,b=i.length;y<b;y++)if(r.renderer.renderers[t.prefix].canPlayType(i[y].type)){d.setAttribute("src",i[y].src);break}d.setAttribute("id",c),l.parentNode.insertBefore(d,l),l.autoplay=!1,l.style.display="none";var w={type:"flv"};w.url=d.src,w.cors=t.flv.cors,w.debug=t.flv.debug,w.path=t.flv.path;var x=t.flv.configs;d.setSize=function(e,t){return d.style.width=e+"px",d.style.height=t+"px",d},d.hide=function(){return null!==h&&h.pause(),d.style.display="none",d},d.show=function(){return d.style.display="",d},d.destroy=function(){null!==h&&h.destroy()};var k=(0,a.createEvent)("rendererready",d);return e.dispatchEvent(k),e.promises.push(u.load({options:w,configs:x,id:c})),d}};c.typeChecks.push((function(e){return~e.toLowerCase().indexOf(".flv")?"video/flv":null})),r.renderer.add(p)},{25:25,26:26,27:27,28:28,3:3,7:7,8:8}],22:[function(e,t,i){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=h(e(3)),o=h(e(7)),r=e(8),a=e(27),l=e(25),c=e(28),d=e(26);function h(e){return e&&e.__esModule?e:{default:e}}var u={promise:null,load:function(e){return"undefined"!=typeof Hls?u.promise=new Promise((function(e){e()})).then((function(){u._createPlayer(e)})):(e.options.path="string"==typeof e.options.path?e.options.path:"https://cdn.jsdelivr.net/npm/hls.js@latest",u.promise=u.promise||(0,d.loadScript)(e.options.path),u.promise.then((function(){u._createPlayer(e)}))),u.promise},_createPlayer:function(e){var t=new Hls(e.options);return s.default["__ready__"+e.id](t),t}},p={name:"native_hls",options:{prefix:"native_hls",hls:{path:"https://cdn.jsdelivr.net/npm/hls.js@latest",autoStartLoad:!1,debug:!1}},canPlayType:function(e){return l.HAS_MSE&&["application/x-mpegurl","application/vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(e.toLowerCase())>-1},create:function(e,t,i){var l=e.originalNode,c=e.id+"_"+t.prefix,d=l.getAttribute("preload"),h=l.autoplay,p=null,f=null,g=0,m=i.length;f=l.cloneNode(!0),(t=Object.assign(t,e.options)).hls.autoStartLoad=d&&"none"!==d||h;for(var v=o.default.html5media.properties,_=o.default.html5media.events.concat(["click","mouseover","mouseout"]).filter((function(e){return"error"!==e})),y=function(t){var i=(0,a.createEvent)(t.type,e);e.dispatchEvent(i)},b=function(e){var i=""+e.substring(0,1).toUpperCase()+e.substring(1);f["get"+i]=function(){return null!==p?f[e]:null},f["set"+i]=function(i){if(-1===o.default.html5media.readOnlyProperties.indexOf(e))if("src"===e){if(f[e]="object"===(void 0===i?"undefined":n(i))&&i.src?i.src:i,null!==p){p.destroy();for(var s=0,r=_.length;s<r;s++)f.removeEventListener(_[s],y);(p=u._createPlayer({options:t.hls,id:c})).loadSource(i),p.attachMedia(f)}}else f[e]=i}},w=0,x=v.length;w<x;w++)b(v[w]);if(s.default["__ready__"+c]=function(t){e.hlsPlayer=p=t;for(var n=Hls.Events,s=function(t){if("loadedmetadata"===t){var i=e.originalNode.src;p.detachMedia(),p.loadSource(i),p.attachMedia(f)}f.addEventListener(t,y)},o=0,r=_.length;o<r;o++)s(_[o]);var l=void 0,c=void 0,d=function(t,n){if("hlsError"===t&&(console.warn(n),(n=n[1]).fatal))switch(n.type){case"mediaError":var s=(new Date).getTime();if(!l||s-l>3e3)l=(new Date).getTime(),p.recoverMediaError();else if(!c||s-c>3e3)c=(new Date).getTime(),console.warn("Attempting to swap Audio Codec and recover from media error"),p.swapAudioCodec(),p.recoverMediaError();else{var o="Cannot recover, last media error recovery failed";e.generateError(o,f.src),console.error(o)}break;case"networkError":if("manifestLoadError"===n.details)if(g<m&&void 0!==i[g+1])f.setSrc(i[g++].src),f.load(),f.play();else{var r="Network error";e.generateError(r,i),console.error(r)}else{var d="Network error";e.generateError(d,i),console.error(d)}break;default:p.destroy()}else{var h=(0,a.createEvent)(t,e);h.data=n,e.dispatchEvent(h)}},h=function(e){n.hasOwnProperty(e)&&p.on(n[e],(function(){for(var t=arguments.length,i=Array(t),s=0;s<t;s++)i[s]=arguments[s];return d(n[e],i)}))};for(var u in n)h(u)},m>0)for(;g<m;g++)if(r.renderer.renderers[t.prefix].canPlayType(i[g].type)){f.setAttribute("src",i[g].src);break}"auto"===d||h||(f.addEventListener("play",(function(){null!==p&&p.startLoad()})),f.addEventListener("pause",(function(){null!==p&&p.stopLoad()}))),f.setAttribute("id",c),l.parentNode.insertBefore(f,l),l.autoplay=!1,l.style.display="none",f.setSize=function(e,t){return f.style.width=e+"px",f.style.height=t+"px",f},f.hide=function(){return f.pause(),f.style.display="none",f},f.show=function(){return f.style.display="",f},f.destroy=function(){null!==p&&(p.stopLoad(),p.destroy())};var k=(0,a.createEvent)("rendererready",f);return e.dispatchEvent(k),e.promises.push(u.load({options:t.hls,id:c})),f}};c.typeChecks.push((function(e){return~e.toLowerCase().indexOf(".m3u8")?"application/x-mpegURL":null})),r.renderer.add(p)},{25:25,26:26,27:27,28:28,3:3,7:7,8:8}],23:[function(e,t,i){"use strict";var n=c(e(3)),s=c(e(2)),o=c(e(7)),r=e(8),a=e(27),l=e(25);function c(e){return e&&e.__esModule?e:{default:e}}var d={name:"html5",options:{prefix:"html5"},canPlayType:function(e){var t=s.default.createElement("video");return l.IS_ANDROID&&/\/mp(3|4)$/i.test(e)||~["application/x-mpegurl","vnd.apple.mpegurl","audio/mpegurl","audio/hls","video/hls"].indexOf(e.toLowerCase())&&l.SUPPORTS_NATIVE_HLS?"yes":t.canPlayType?t.canPlayType(e.toLowerCase()).replace(/no/,""):""},create:function(e,t,i){var n=e.id+"_"+t.prefix,l=!1,c=null;void 0===e.originalNode||null===e.originalNode?(c=s.default.createElement("audio"),e.appendChild(c)):c=e.originalNode,c.setAttribute("id",n);for(var d=o.default.html5media.properties,h=function(e){var t=""+e.substring(0,1).toUpperCase()+e.substring(1);c["get"+t]=function(){return c[e]},c["set"+t]=function(t){-1===o.default.html5media.readOnlyProperties.indexOf(e)&&(c[e]=t)}},u=0,p=d.length;u<p;u++)h(d[u]);for(var f,g=o.default.html5media.events.concat(["click","mouseover","mouseout"]).filter((function(e){return"error"!==e})),m=0,v=g.length;m<v;m++)f=g[m],c.addEventListener(f,(function(t){if(l){var i=(0,a.createEvent)(t.type,t.target);e.dispatchEvent(i)}}));c.setSize=function(e,t){return c.style.width=e+"px",c.style.height=t+"px",c},c.hide=function(){return l=!1,c.style.display="none",c},c.show=function(){return l=!0,c.style.display="",c};var _=0,y=i.length;if(y>0)for(;_<y;_++)if(r.renderer.renderers[t.prefix].canPlayType(i[_].type)){c.setAttribute("src",i[_].src);break}c.addEventListener("error",(function(t){t&&t.target&&t.target.error&&4===t.target.error.code&&l&&(_<y&&void 0!==i[_+1]?(c.src=i[_++].src,c.load(),c.play()):e.generateError("Media error: Format(s) not supported or source(s) not found",i))}));var b=(0,a.createEvent)("rendererready",c);return e.dispatchEvent(b),c}};n.default.HtmlMediaElement=o.default.HtmlMediaElement=d,r.renderer.add(d)},{2:2,25:25,27:27,3:3,7:7,8:8}],24:[function(e,t,i){"use strict";var n=d(e(3)),s=d(e(2)),o=d(e(7)),r=e(8),a=e(27),l=e(28),c=e(26);function d(e){return e&&e.__esModule?e:{default:e}}var h={isIframeStarted:!1,isIframeLoaded:!1,iframeQueue:[],enqueueIframe:function(e){h.isLoaded="undefined"!=typeof YT&&YT.loaded,h.isLoaded?h.createIframe(e):(h.loadIframeApi(),h.iframeQueue.push(e))},loadIframeApi:function(){h.isIframeStarted||((0,c.loadScript)("https://www.youtube.com/player_api"),h.isIframeStarted=!0)},iFrameReady:function(){for(h.isLoaded=!0,h.isIframeLoaded=!0;h.iframeQueue.length>0;){var e=h.iframeQueue.pop();h.createIframe(e)}},createIframe:function(e){return new YT.Player(e.containerId,e)},getYouTubeId:function(e){var t="";e.indexOf("?")>0?""===(t=h.getYouTubeIdFromParam(e))&&(t=h.getYouTubeIdFromUrl(e)):t=h.getYouTubeIdFromUrl(e);var i=t.substring(t.lastIndexOf("/")+1);return(t=i.split("?"))[0]},getYouTubeIdFromParam:function(e){if(null==e||!e.trim().length)return null;for(var t=e.split("?")[1].split("&"),i="",n=0,s=t.length;n<s;n++){var o=t[n].split("=");if("v"===o[0]){i=o[1];break}}return i},getYouTubeIdFromUrl:function(e){if(null==e||!e.trim().length)return null;var t=e.split("?");return(e=t[0]).substring(e.lastIndexOf("/")+1)},getYouTubeNoCookieUrl:function(e){if(null==e||!e.trim().length||-1===e.indexOf("//www.youtube"))return e;var t=e.split("/");return t[2]=t[2].replace(".com","-nocookie.com"),t.join("/")}},u={name:"youtube_iframe",options:{prefix:"youtube_iframe",youtube:{autoplay:0,controls:0,disablekb:1,end:0,loop:0,modestbranding:0,playsinline:0,rel:0,showinfo:0,start:0,iv_load_policy:3,nocookie:!1,imageQuality:null}},canPlayType:function(e){return~["video/youtube","video/x-youtube"].indexOf(e.toLowerCase())},create:function(e,t,i){var r={},l=[],c=null,d=!0,u=!1,p=null;r.options=t,r.id=e.id+"_"+t.prefix,r.mediaElement=e;for(var f=o.default.html5media.properties,g=function(t){var i=""+t.substring(0,1).toUpperCase()+t.substring(1);r["get"+i]=function(){if(null!==c){switch(t){case"currentTime":return c.getCurrentTime();case"duration":return c.getDuration();case"volume":return c.getVolume()/100;case"playbackRate":return c.getPlaybackRate();case"paused":return d;case"ended":return u;case"muted":return c.isMuted();case"buffered":var e=c.getVideoLoadedFraction(),i=c.getDuration();return{start:function(){return 0},end:function(){return e*i},length:1};case"src":return c.getVideoUrl();case"readyState":return 4}return null}return null},r["set"+i]=function(i){if(null!==c)switch(t){case"src":var n="string"==typeof i?i:i[0].src,s=h.getYouTubeId(n);e.originalNode.autoplay?c.loadVideoById(s):c.cueVideoById(s);break;case"currentTime":c.seekTo(i);break;case"muted":i?c.mute():c.unMute(),setTimeout((function(){var t=(0,a.createEvent)("volumechange",r);e.dispatchEvent(t)}),50);break;case"volume":c.setVolume(100*i),setTimeout((function(){var t=(0,a.createEvent)("volumechange",r);e.dispatchEvent(t)}),50);break;case"playbackRate":c.setPlaybackRate(i),setTimeout((function(){var t=(0,a.createEvent)("ratechange",r);e.dispatchEvent(t)}),50);break;case"readyState":var o=(0,a.createEvent)("canplay",r);e.dispatchEvent(o)}else l.push({type:"set",propName:t,value:i})}},m=0,v=f.length;m<v;m++)g(f[m]);for(var _=o.default.html5media.methods,y=function(e){r[e]=function(){if(null!==c)switch(e){case"play":return d=!1,c.playVideo();case"pause":return d=!0,c.pauseVideo();case"load":return null}else l.push({type:"call",methodName:e})}},b=0,w=_.length;b<w;b++)y(_[b]);var x=s.default.createElement("div");x.id=r.id,r.options.youtube.nocookie&&(e.originalNode.src=h.getYouTubeNoCookieUrl(i[0].src)),e.originalNode.parentNode.insertBefore(x,e.originalNode),e.originalNode.style.display="none";var k="audio"===e.originalNode.tagName.toLowerCase(),C=k?"1":e.originalNode.height,E=k?"1":e.originalNode.width,S=h.getYouTubeId(i[0].src),T={id:r.id,containerId:x.id,videoId:S,height:C,width:E,host:r.options.youtube&&r.options.youtube.nocookie?"https://www.youtube-nocookie.com":void 0,playerVars:Object.assign({controls:0,rel:0,disablekb:1,showinfo:0,modestbranding:0,html5:1,iv_load_policy:3},r.options.youtube),origin:n.default.location.host,events:{onReady:function(t){if(e.youTubeApi=c=t.target,e.youTubeState={paused:!0,ended:!1},l.length)for(var i=0,n=l.length;i<n;i++){var s=l[i];if("set"===s.type){var o=s.propName,d=""+o.substring(0,1).toUpperCase()+o.substring(1);r["set"+d](s.value)}else"call"===s.type&&r[s.methodName]()}p=c.getIframe(),e.originalNode.muted&&c.mute();for(var h=["mouseover","mouseout"],u=function(t){var i=(0,a.createEvent)(t.type,r);e.dispatchEvent(i)},f=0,g=h.length;f<g;f++)p.addEventListener(h[f],u,!1);for(var m=["rendererready","loadedmetadata","loadeddata","canplay"],v=0,_=m.length;v<_;v++){var y=(0,a.createEvent)(m[v],r);e.dispatchEvent(y)}},onStateChange:function(t){var i=[];switch(t.data){case-1:i=["loadedmetadata"],d=!0,u=!1;break;case 0:i=["ended"],d=!1,u=!r.options.youtube.loop,r.options.youtube.loop||r.stopInterval();break;case 1:i=["play","playing"],d=!1,u=!1,r.startInterval();break;case 2:i=["pause"],d=!0,u=!1,r.stopInterval();break;case 3:i=["progress"],u=!1;break;case 5:i=["loadeddata","loadedmetadata","canplay"],d=!0,u=!1}for(var n=0,s=i.length;n<s;n++){var o=(0,a.createEvent)(i[n],r);e.dispatchEvent(o)}},onError:function(t){return function(t){var n="";switch(t.data){case 2:n="The request contains an invalid parameter value. Verify that video ID has 11 characters and that contains no invalid characters, such as exclamation points or asterisks.";break;case 5:n="The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.";break;case 100:n="The video requested was not found. Either video has been removed or has been marked as private.";break;case 101:case 105:n="The owner of the requested video does not allow it to be played in embedded players.";break;default:n="Unknown error."}e.generateError("Code "+t.data+": "+n,i)}(t)}}};return(k||e.originalNode.hasAttribute("playsinline"))&&(T.playerVars.playsinline=1),e.originalNode.controls&&(T.playerVars.controls=1),e.originalNode.autoplay&&(T.playerVars.autoplay=1),e.originalNode.loop&&(T.playerVars.loop=1),(T.playerVars.loop&&1===parseInt(T.playerVars.loop,10)||e.originalNode.src.indexOf("loop=")>-1)&&!T.playerVars.playlist&&-1===e.originalNode.src.indexOf("playlist=")&&(T.playerVars.playlist=h.getYouTubeId(e.originalNode.src)),h.enqueueIframe(T),r.onEvent=function(t,i,n){null!=n&&(e.youTubeState=n)},r.setSize=function(e,t){null!==c&&c.setSize(e,t)},r.hide=function(){r.stopInterval(),r.pause(),p&&(p.style.display="none")},r.show=function(){p&&(p.style.display="")},r.destroy=function(){c.destroy()},r.interval=null,r.startInterval=function(){r.interval=setInterval((function(){var t=(0,a.createEvent)("timeupdate",r);e.dispatchEvent(t)}),250)},r.stopInterval=function(){r.interval&&clearInterval(r.interval)},r.getPosterUrl=function(){var i=t.youtube.imageQuality,n=h.getYouTubeId(e.originalNode.src);return i&&["default","hqdefault","mqdefault","sddefault","maxresdefault"].indexOf(i)>-1&&n?"https://img.youtube.com/vi/"+n+"/"+i+".jpg":""},r}};n.default.onYouTubePlayerAPIReady=function(){h.iFrameReady()},l.typeChecks.push((function(e){return/\/\/(www\.youtube|youtu\.?be)/i.test(e)?"video/x-youtube":null})),r.renderer.add(u)},{2:2,26:26,27:27,28:28,3:3,7:7,8:8}],25:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.cancelFullScreen=i.requestFullScreen=i.isFullScreen=i.FULLSCREEN_EVENT_NAME=i.HAS_NATIVE_FULLSCREEN_ENABLED=i.HAS_TRUE_NATIVE_FULLSCREEN=i.HAS_IOS_FULLSCREEN=i.HAS_MS_NATIVE_FULLSCREEN=i.HAS_MOZ_NATIVE_FULLSCREEN=i.HAS_WEBKIT_NATIVE_FULLSCREEN=i.HAS_NATIVE_FULLSCREEN=i.SUPPORTS_NATIVE_HLS=i.SUPPORT_PASSIVE_EVENT=i.SUPPORT_POINTER_EVENTS=i.HAS_MSE=i.IS_STOCK_ANDROID=i.IS_SAFARI=i.IS_FIREFOX=i.IS_CHROME=i.IS_EDGE=i.IS_IE=i.IS_ANDROID=i.IS_IOS=i.IS_IPOD=i.IS_IPHONE=i.IS_IPAD=i.UA=i.NAV=void 0;var n=r(e(3)),s=r(e(2)),o=r(e(7));function r(e){return e&&e.__esModule?e:{default:e}}for(var a=i.NAV=n.default.navigator,l=i.UA=a.userAgent.toLowerCase(),c=i.IS_IPAD=/ipad/i.test(l)&&!n.default.MSStream,d=i.IS_IPHONE=/iphone/i.test(l)&&!n.default.MSStream,h=i.IS_IPOD=/ipod/i.test(l)&&!n.default.MSStream,u=(i.IS_IOS=/ipad|iphone|ipod/i.test(l)&&!n.default.MSStream,i.IS_ANDROID=/android/i.test(l)),p=i.IS_IE=/(trident|microsoft)/i.test(a.appName),f=(i.IS_EDGE="msLaunchUri"in a&&!("documentMode"in s.default)),g=i.IS_CHROME=/chrome/i.test(l),m=i.IS_FIREFOX=/firefox/i.test(l),v=i.IS_SAFARI=/safari/i.test(l)&&!g,_=i.IS_STOCK_ANDROID=/^mozilla\/\d+\.\d+\s\(linux;\su;/i.test(l),y=(i.HAS_MSE="MediaSource"in n.default),b=i.SUPPORT_POINTER_EVENTS=function(){var e=s.default.createElement("x"),t=s.default.documentElement,i=n.default.getComputedStyle;if(!("pointerEvents"in e.style))return!1;e.style.pointerEvents="auto",e.style.pointerEvents="x",t.appendChild(e);var o=i&&"auto"===(i(e,"")||{}).pointerEvents;return e.remove(),!!o}(),w=i.SUPPORT_PASSIVE_EVENT=function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});n.default.addEventListener("test",null,t)}catch(e){}return e}(),x=["source","track","audio","video"],k=void 0,C=0,E=x.length;C<E;C++)k=s.default.createElement(x[C]);var S=i.SUPPORTS_NATIVE_HLS=v||p&&/edge/i.test(l),T=void 0!==k.webkitEnterFullscreen,O=void 0!==k.requestFullscreen;T&&/mac os x 10_5/i.test(l)&&(O=!1,T=!1);var A=void 0!==k.webkitRequestFullScreen,D=void 0!==k.mozRequestFullScreen,P=void 0!==k.msRequestFullscreen,j=A||D||P,I=j,N="",L=void 0,H=void 0,M=void 0;D?I=s.default.mozFullScreenEnabled:P&&(I=s.default.msFullscreenEnabled),g&&(T=!1),j&&(A?N="webkitfullscreenchange":D?N="fullscreenchange":P&&(N="MSFullscreenChange"),i.isFullScreen=L=function(){return D?s.default.mozFullScreen:A?s.default.webkitIsFullScreen:P?null!==s.default.msFullscreenElement:void 0},i.requestFullScreen=H=function(e){A?e.webkitRequestFullScreen():D?e.mozRequestFullScreen():P&&e.msRequestFullscreen()},i.cancelFullScreen=M=function(){A?s.default.webkitCancelFullScreen():D?s.default.mozCancelFullScreen():P&&s.default.msExitFullscreen()});var R=i.HAS_NATIVE_FULLSCREEN=O,F=i.HAS_WEBKIT_NATIVE_FULLSCREEN=A,Y=i.HAS_MOZ_NATIVE_FULLSCREEN=D,z=i.HAS_MS_NATIVE_FULLSCREEN=P,W=i.HAS_IOS_FULLSCREEN=T,q=i.HAS_TRUE_NATIVE_FULLSCREEN=j,$=i.HAS_NATIVE_FULLSCREEN_ENABLED=I,B=i.FULLSCREEN_EVENT_NAME=N;i.isFullScreen=L,i.requestFullScreen=H,i.cancelFullScreen=M,o.default.Features=o.default.Features||{},o.default.Features.isiPad=c,o.default.Features.isiPod=h,o.default.Features.isiPhone=d,o.default.Features.isiOS=o.default.Features.isiPhone||o.default.Features.isiPad,o.default.Features.isAndroid=u,o.default.Features.isIE=p,o.default.Features.isEdge=f,o.default.Features.isChrome=g,o.default.Features.isFirefox=m,o.default.Features.isSafari=v,o.default.Features.isStockAndroid=_,o.default.Features.hasMSE=y,o.default.Features.supportsNativeHLS=S,o.default.Features.supportsPointerEvents=b,o.default.Features.supportsPassiveEvent=w,o.default.Features.hasiOSFullScreen=W,o.default.Features.hasNativeFullscreen=R,o.default.Features.hasWebkitNativeFullScreen=F,o.default.Features.hasMozNativeFullScreen=Y,o.default.Features.hasMsNativeFullScreen=z,o.default.Features.hasTrueNativeFullScreen=q,o.default.Features.nativeFullScreenEnabled=$,o.default.Features.fullScreenEventName=B,o.default.Features.isFullScreen=L,o.default.Features.requestFullScreen=H,o.default.Features.cancelFullScreen=M},{2:2,3:3,7:7}],26:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.removeClass=i.addClass=i.hasClass=void 0,i.loadScript=a,i.offset=l,i.toggleClass=g,i.fadeOut=m,i.fadeIn=v,i.siblings=_,i.visible=y,i.ajax=b;var n=r(e(3)),s=r(e(2)),o=r(e(7));function r(e){return e&&e.__esModule?e:{default:e}}function a(e){return new Promise((function(t,i){var n=s.default.createElement("script");n.src=e,n.async=!0,n.onload=function(){n.remove(),t()},n.onerror=function(){n.remove(),i()},s.default.head.appendChild(n)}))}function l(e){var t=e.getBoundingClientRect(),i=n.default.pageXOffset||s.default.documentElement.scrollLeft,o=n.default.pageYOffset||s.default.documentElement.scrollTop;return{top:t.top+o,left:t.left+i}}var c=void 0,d=void 0,h=void 0;"classList"in s.default.documentElement?(c=function(e,t){return void 0!==e.classList&&e.classList.contains(t)},d=function(e,t){return e.classList.add(t)},h=function(e,t){return e.classList.remove(t)}):(c=function(e,t){return new RegExp("\\b"+t+"\\b").test(e.className)},d=function(e,t){u(e,t)||(e.className+=" "+t)},h=function(e,t){e.className=e.className.replace(new RegExp("\\b"+t+"\\b","g"),"")});var u=i.hasClass=c,p=i.addClass=d,f=i.removeClass=h;function g(e,t){u(e,t)?f(e,t):p(e,t)}function m(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,i=arguments[2];e.style.opacity||(e.style.opacity=1);var s=null;n.default.requestAnimationFrame((function o(r){var a=r-(s=s||r),l=parseFloat(1-a/t,2);e.style.opacity=l<0?0:l,a>t?i&&"function"==typeof i&&i():n.default.requestAnimationFrame(o)}))}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:400,i=arguments[2];e.style.opacity||(e.style.opacity=0);var s=null;n.default.requestAnimationFrame((function o(r){var a=r-(s=s||r),l=parseFloat(a/t,2);e.style.opacity=l>1?1:l,a>t?i&&"function"==typeof i&&i():n.default.requestAnimationFrame(o)}))}function _(e,t){var i=[];e=e.parentNode.firstChild;do{t&&!t(e)||i.push(e)}while(e=e.nextSibling);return i}function y(e){return void 0!==e.getClientRects&&"function"===e.getClientRects?!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length):!(!e.offsetWidth&&!e.offsetHeight)}function b(e,t,i,s){var o=n.default.XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("Microsoft.XMLHTTP"),r="application/x-www-form-urlencoded; charset=UTF-8",a=!1,l="*/".concat("*");switch(t){case"text":r="text/plain";break;case"json":r="application/json, text/javascript";break;case"html":r="text/html";break;case"xml":r="application/xml, text/xml"}"application/x-www-form-urlencoded"!==r&&(l=r+", */*; q=0.01"),o&&(o.open("GET",e,!0),o.setRequestHeader("Accept",l),o.onreadystatechange=function(){if(!a&&4===o.readyState)if(200===o.status){a=!0;var e=void 0;switch(t){case"json":e=JSON.parse(o.responseText);break;case"xml":e=o.responseXML;break;default:e=o.responseText}i(e)}else"function"==typeof s&&s(o.status)},o.send())}o.default.Utils=o.default.Utils||{},o.default.Utils.offset=l,o.default.Utils.hasClass=u,o.default.Utils.addClass=p,o.default.Utils.removeClass=f,o.default.Utils.toggleClass=g,o.default.Utils.fadeIn=v,o.default.Utils.fadeOut=m,o.default.Utils.siblings=_,o.default.Utils.visible=y,o.default.Utils.ajax=b,o.default.Utils.loadScript=a},{2:2,3:3,7:7}],27:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.escapeHTML=o,i.debounce=r,i.isObjectEmpty=a,i.splitEvents=l,i.createEvent=c,i.isNodeAfter=d,i.isString=h;var n,s=(n=e(7))&&n.__esModule?n:{default:n};function o(e){if("string"!=typeof e)throw new Error("Argument passed must be a string");var t={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};return e.replace(/[&<>"]/g,(function(e){return t[e]}))}function r(e,t){var i=this,n=arguments,s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("function"!=typeof e)throw new Error("First argument must be a function");if("number"!=typeof t)throw new Error("Second argument must be a numeric value");var o=void 0;return function(){var r=i,a=n,l=s&&!o;clearTimeout(o),o=setTimeout((function(){o=null,s||e.apply(r,a)}),t),l&&e.apply(r,a)}}function a(e){return Object.getOwnPropertyNames(e).length<=0}function l(e,t){var i=/^((after|before)print|(before)?unload|hashchange|message|o(ff|n)line|page(hide|show)|popstate|resize|storage)\b/,n={d:[],w:[]};return(e||"").split(" ").forEach((function(e){var s=e+(t?"."+t:"");s.startsWith(".")?(n.d.push(s),n.w.push(s)):n[i.test(e)?"w":"d"].push(s)})),n.d=n.d.join(" "),n.w=n.w.join(" "),n}function c(e,t){if("string"!=typeof e)throw new Error("Event name must be a string");var i=e.match(/([a-z]+\.([a-z]+))/i),n={target:t};return null!==i&&(e=i[1],n.namespace=i[2]),new window.CustomEvent(e,{detail:n})}function d(e,t){return!!(e&&t&&2&e.compareDocumentPosition(t))}function h(e){return"string"==typeof e}s.default.Utils=s.default.Utils||{},s.default.Utils.escapeHTML=o,s.default.Utils.debounce=r,s.default.Utils.isObjectEmpty=a,s.default.Utils.splitEvents=l,s.default.Utils.createEvent=c,s.default.Utils.isNodeAfter=d,s.default.Utils.isString=h},{7:7}],28:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.typeChecks=void 0,i.absolutizeUrl=a,i.formatType=l,i.getMimeFromType=c,i.getTypeFromFile=d,i.getExtension=h,i.normalizeExtension=u;var n,s=(n=e(7))&&n.__esModule?n:{default:n},o=e(27),r=i.typeChecks=[];function a(e){if("string"!=typeof e)throw new Error("`url` argument must be a string");var t=document.createElement("div");return t.innerHTML='<a href="'+(0,o.escapeHTML)(e)+'">x</a>',t.firstChild.href}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e&&!t?d(e):t}function c(e){if("string"!=typeof e)throw new Error("`type` argument must be a string");return e&&e.indexOf(";")>-1?e.substr(0,e.indexOf(";")):e}function d(e){if("string"!=typeof e)throw new Error("`url` argument must be a string");for(var t=0,i=r.length;t<i;t++){var n=r[t](e);if(n)return n}var s=u(h(e)),o="video/mp4";return s&&(~["mp4","m4v","ogg","ogv","webm","flv","mpeg"].indexOf(s)?o="video/"+s:"mov"===s?o="video/quicktime":~["mp3","oga","wav","mid","midi"].indexOf(s)&&(o="audio/"+s)),o}function h(e){if("string"!=typeof e)throw new Error("`url` argument must be a string");var t=e.split("?")[0].split("\\").pop().split("/").pop();return~t.indexOf(".")?t.substring(t.lastIndexOf(".")+1):""}function u(e){if("string"!=typeof e)throw new Error("`extension` argument must be a string");switch(e){case"mp4":case"m4v":return"mp4";case"webm":case"webma":case"webmv":return"webm";case"ogg":case"oga":case"ogv":return"ogg";default:return e}}s.default.Utils=s.default.Utils||{},s.default.Utils.typeChecks=r,s.default.Utils.absolutizeUrl=a,s.default.Utils.formatType=l,s.default.Utils.getMimeFromType=c,s.default.Utils.getTypeFromFile=d,s.default.Utils.getExtension=h,s.default.Utils.normalizeExtension=u},{27:27,7:7}],29:[function(e,t,i){"use strict";var n,s=r(e(2)),o=r(e(4));function r(e){return e&&e.__esModule?e:{default:e}}if([Element.prototype,CharacterData.prototype,DocumentType.prototype].forEach((function(e){e.hasOwnProperty("remove")||Object.defineProperty(e,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode.removeChild(this)}})})),function(){if("function"==typeof window.CustomEvent)return!1;function e(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=s.default.createEvent("CustomEvent");return i.initCustomEvent(e,t.bubbles,t.cancelable,t.detail),i}e.prototype=window.Event.prototype,window.CustomEvent=e}(),"function"!=typeof Object.assign&&(Object.assign=function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),i=1,n=arguments.length;i<n;i++){var s=arguments[i];if(null!==s)for(var o in s)Object.prototype.hasOwnProperty.call(s,o)&&(t[o]=s[o])}return t}),String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(e){for(var t=(this.document||this.ownerDocument).querySelectorAll(e),i=t.length-1;--i>=0&&t.item(i)!==this;);return i>-1}),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t=(this.document||this.ownerDocument).querySelectorAll(e),i=void 0,n=this;do{for(i=t.length;--i>=0&&t.item(i)!==n;);}while(i<0&&(n=n.parentElement));return n}),function(){for(var e=0,t=["ms","moz","webkit","o"],i=0;i<t.length&&!window.requestAnimationFrame;++i)window.requestAnimationFrame=window[t[i]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[i]+"CancelAnimationFrame"]||window[t[i]+"CancelRequestAnimationFrame"];window.requestAnimationFrame||(window.requestAnimationFrame=function(t){var i=(new Date).getTime(),n=Math.max(0,16-(i-e)),s=window.setTimeout((function(){t(i+n)}),n);return e=i+n,s}),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),/firefox/i.test(navigator.userAgent)){var a=window.getComputedStyle;window.getComputedStyle=function(e,t){var i=a(e,t);return null===i?{getPropertyValue:function(){}}:i}}window.Promise||(window.Promise=o.default),(n=window.Node||window.Element)&&n.prototype&&null===n.prototype.children&&Object.defineProperty(n.prototype,"children",{get:function(){for(var e=0,t=void 0,i=this.childNodes,n=[];t=i[e++];)1===t.nodeType&&n.push(t);return n}})},{2:2,4:4}],30:[function(e,t,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0}),i.isDropFrame=o,i.secondsToTimeCode=r,i.timeCodeToSeconds=a,i.calculateTimeFormat=l,i.convertSMPTEtoSeconds=c;var n,s=(n=e(7))&&n.__esModule?n:{default:n};function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:25;return!(e%1==0)}function r(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2&&void 0!==arguments[2]&&arguments[2],n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:25,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:"hh:mm:ss";e=!e||"number"!=typeof e||e<0?0:e;var a=Math.round(.066666*n),l=Math.round(n),c=24*Math.round(3600*n),d=Math.round(600*n),h=o(n)?";":":",u=void 0,p=void 0,f=void 0,g=void 0,m=Math.round(e*n);if(o(n)){m<0&&(m=c+m),m%=c;var v=Math.floor(m/d),_=m%d;m+=9*a*v,_>a&&(m+=a*Math.floor((_-a)/Math.round(60*l-a)));var y=Math.floor(m/l);u=Math.floor(Math.floor(y/60)/60),p=Math.floor(y/60)%60,f=i?y%60:Math.floor(m/l%60).toFixed(s)}else u=Math.floor(e/3600)%24,p=Math.floor(e/60)%60,f=i?Math.floor(e%60):Math.floor(e%60).toFixed(s);u=u<=0?0:u,f=60===(f=f<=0?0:f)?0:f,p=60===(p=p<=0?0:p)?0:p;for(var b=r.split(":"),w={},x=0,k=b.length;x<k;++x){for(var C="",E=0,S=b[x].length;E<S;E++)C.indexOf(b[x][E])<0&&(C+=b[x][E]);~["f","s","m","h"].indexOf(C)&&(w[C]=b[x].length)}var T=t||u>0?(u<10&&w.h>1?"0"+u:u)+":":"";return T+=(p<10&&w.m>1?"0"+p:p)+":",T+=""+(f<10&&w.s>1?"0"+f:f),i&&(T+=(g=(g=(m%l).toFixed(0))<=0?0:g)<10&&w.f?h+"0"+g:""+h+g),T}function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:25;if("string"!=typeof e)throw new TypeError("Time must be a string");if(e.indexOf(";")>0&&(e=e.replace(";",":")),!/\d{2}(\:\d{2}){0,3}/i.test(e))throw new TypeError("Time code must have the format `00:00:00`");var i=e.split(":"),n=void 0,s=0,r=0,a=0,l=0,c=0,d=Math.round(.066666*t),h=Math.round(t),u=3600*h,p=60*h;switch(i.length){default:case 1:a=parseInt(i[0],10);break;case 2:r=parseInt(i[0],10),a=parseInt(i[1],10);break;case 3:s=parseInt(i[0],10),r=parseInt(i[1],10),a=parseInt(i[2],10);break;case 4:s=parseInt(i[0],10),r=parseInt(i[1],10),a=parseInt(i[2],10),l=parseInt(i[3],10)}return n=o(t)?u*s+p*r+h*a+l-d*((c=60*s+r)-Math.floor(c/10)):(u*s+p*r+t*a+l)/t,parseFloat(n.toFixed(3))}function l(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:25;e=!e||"number"!=typeof e||e<0?0:e;for(var n=Math.floor(e/3600)%24,s=Math.floor(e/60)%60,o=Math.floor(e%60),r=Math.floor((e%1*i).toFixed(3)),a=[[r,"f"],[o,"s"],[s,"m"],[n,"h"]],l=t.timeFormat,c=l[1]===l[0],d=c?2:1,h=l.length<d?l[d]:":",u=l[0],p=!1,f=0,g=a.length;f<g;f++)if(~l.indexOf(a[f][1]))p=!0;else if(p){for(var m=!1,v=f;v<g;v++)if(a[v][0]>0){m=!0;break}if(!m)break;c||(l=u+l),l=a[f][1]+h+l,c&&(l=a[f][1]+l),u=a[f][1]}t.timeFormat=l}function c(e){if("string"!=typeof e)throw new TypeError("Argument must be a string value");for(var t=~(e=e.replace(",",".")).indexOf(".")?e.split(".")[1].length:0,i=0,n=1,s=0,o=(e=e.split(":").reverse()).length;s<o;s++)n=1,s>0&&(n=Math.pow(60,s)),i+=Number(e[s])*n;return Number(i.toFixed(t))}s.default.Utils=s.default.Utils||{},s.default.Utils.secondsToTimeCode=r,s.default.Utils.timeCodeToSeconds=a,s.default.Utils.calculateTimeFormat=l,s.default.Utils.convertSMPTEtoSeconds=c},{7:7}]},{},[29,6,5,15,23,20,19,21,22,24,16,18,17,9,10,11,12,13,14])},3:()=>{YAHOO.widget.DS_JSArray=YAHOO.util.LocalDataSource,YAHOO.widget.DS_JSFunction=YAHOO.util.FunctionDataSource,YAHOO.widget.DS_XHR=function(e,t,i){var n=new YAHOO.util.XHRDataSource(e,i);return n._aDeprecatedSchema=t,n},YAHOO.widget.DS_ScriptNode=function(e,t,i){var n=new YAHOO.util.ScriptNodeDataSource(e,i);return n._aDeprecatedSchema=t,n},YAHOO.widget.DS_XHR.TYPE_JSON=YAHOO.util.DataSourceBase.TYPE_JSON,YAHOO.widget.DS_XHR.TYPE_XML=YAHOO.util.DataSourceBase.TYPE_XML,YAHOO.widget.DS_XHR.TYPE_FLAT=YAHOO.util.DataSourceBase.TYPE_TEXT,YAHOO.widget.AutoComplete=function(e,t,i,n){if(e&&t&&i){if(!(i instanceof YAHOO.util.DataSourceBase))return;this.dataSource=i,this.key=0;var s=i.responseSchema;if(i._aDeprecatedSchema){var o=i._aDeprecatedSchema;YAHOO.lang.isArray(o)&&(i.responseType===YAHOO.util.DataSourceBase.TYPE_JSON||i.responseType===YAHOO.util.DataSourceBase.TYPE_UNKNOWN?(s.resultsList=o[0],this.key=o[1],s.fields=o.length<3?null:o.slice(1)):i.responseType===YAHOO.util.DataSourceBase.TYPE_XML?(s.resultNode=o[0],this.key=o[1],s.fields=o.slice(1)):i.responseType===YAHOO.util.DataSourceBase.TYPE_TEXT&&(s.recordDelim=o[0],s.fieldDelim=o[1]),i.responseSchema=s)}if(!YAHOO.util.Dom.inDocument(e))return;if(YAHOO.lang.isString(e)?(this._sName="instance"+YAHOO.widget.AutoComplete._nIndex+" "+e,this._elTextbox=document.getElementById(e)):(this._sName=e.id?"instance"+YAHOO.widget.AutoComplete._nIndex+" "+e.id:"instance"+YAHOO.widget.AutoComplete._nIndex,this._elTextbox=e),YAHOO.util.Dom.addClass(this._elTextbox,"yui-ac-input"),!YAHOO.util.Dom.inDocument(t))return;YAHOO.lang.isString(t)?this._elContainer=document.getElementById(t):this._elContainer=t,this._elContainer.style.display;var r=this._elContainer.parentNode;if("div"==r.tagName.toLowerCase()&&YAHOO.util.Dom.addClass(r,"yui-ac"),this.dataSource.dataType===YAHOO.util.DataSourceBase.TYPE_LOCAL&&(this.applyLocalFilter=!0),n&&n.constructor==Object)for(var a in n)a&&(this[a]=n[a]);this._initContainerEl(),this._initProps(),this._initListEl(),this._initContainerHelperEls();var l=this,c=this._elTextbox;YAHOO.util.Event.addListener(c,"keyup",l._onTextboxKeyUp,l),YAHOO.util.Event.addListener(c,"keydown",l._onTextboxKeyDown,l),YAHOO.util.Event.addListener(c,"focus",l._onTextboxFocus,l),YAHOO.util.Event.addListener(c,"blur",l._onTextboxBlur,l),YAHOO.util.Event.addListener(t,"mouseover",l._onContainerMouseover,l),YAHOO.util.Event.addListener(t,"mouseout",l._onContainerMouseout,l),YAHOO.util.Event.addListener(t,"click",l._onContainerClick,l),YAHOO.util.Event.addListener(t,"scroll",l._onContainerScroll,l),YAHOO.util.Event.addListener(t,"resize",l._onContainerResize,l),YAHOO.util.Event.addListener(c,"keypress",l._onTextboxKeyPress,l),YAHOO.util.Event.addListener(window,"unload",l._onWindowUnload,l),this.textboxFocusEvent=new YAHOO.util.CustomEvent("textboxFocus",this),this.textboxKeyEvent=new YAHOO.util.CustomEvent("textboxKey",this),this.dataRequestEvent=new YAHOO.util.CustomEvent("dataRequest",this),this.dataReturnEvent=new YAHOO.util.CustomEvent("dataReturn",this),this.dataErrorEvent=new YAHOO.util.CustomEvent("dataError",this),this.containerPopulateEvent=new YAHOO.util.CustomEvent("containerPopulate",this),this.containerExpandEvent=new YAHOO.util.CustomEvent("containerExpand",this),this.typeAheadEvent=new YAHOO.util.CustomEvent("typeAhead",this),this.itemMouseOverEvent=new YAHOO.util.CustomEvent("itemMouseOver",this),this.itemMouseOutEvent=new YAHOO.util.CustomEvent("itemMouseOut",this),this.itemArrowToEvent=new YAHOO.util.CustomEvent("itemArrowTo",this),this.itemArrowFromEvent=new YAHOO.util.CustomEvent("itemArrowFrom",this),this.itemSelectEvent=new YAHOO.util.CustomEvent("itemSelect",this),this.unmatchedItemSelectEvent=new YAHOO.util.CustomEvent("unmatchedItemSelect",this),this.selectionEnforceEvent=new YAHOO.util.CustomEvent("selectionEnforce",this),this.containerCollapseEvent=new YAHOO.util.CustomEvent("containerCollapse",this),this.textboxBlurEvent=new YAHOO.util.CustomEvent("textboxBlur",this),this.textboxChangeEvent=new YAHOO.util.CustomEvent("textboxChange",this),c.setAttribute("autocomplete","off"),YAHOO.widget.AutoComplete._nIndex++}},YAHOO.widget.AutoComplete.prototype.dataSource=null,YAHOO.widget.AutoComplete.prototype.applyLocalFilter=null,YAHOO.widget.AutoComplete.prototype.queryMatchCase=!1,YAHOO.widget.AutoComplete.prototype.queryMatchContains=!1,YAHOO.widget.AutoComplete.prototype.queryMatchSubset=!1,YAHOO.widget.AutoComplete.prototype.minQueryLength=1,YAHOO.widget.AutoComplete.prototype.maxResultsDisplayed=10,YAHOO.widget.AutoComplete.prototype.queryDelay=.2,YAHOO.widget.AutoComplete.prototype.typeAheadDelay=.5,YAHOO.widget.AutoComplete.prototype.queryInterval=500,YAHOO.widget.AutoComplete.prototype.highlightClassName="yui-ac-highlight",YAHOO.widget.AutoComplete.prototype.prehighlightClassName=null,YAHOO.widget.AutoComplete.prototype.delimChar=null,YAHOO.widget.AutoComplete.prototype.autoHighlight=!0,YAHOO.widget.AutoComplete.prototype.typeAhead=!1,YAHOO.widget.AutoComplete.prototype.animHoriz=!1,YAHOO.widget.AutoComplete.prototype.animVert=!0,YAHOO.widget.AutoComplete.prototype.animSpeed=.3,YAHOO.widget.AutoComplete.prototype.forceSelection=!1,YAHOO.widget.AutoComplete.prototype.allowBrowserAutocomplete=!0,YAHOO.widget.AutoComplete.prototype.alwaysShowContainer=!1,YAHOO.widget.AutoComplete.prototype.useIFrame=!1,YAHOO.widget.AutoComplete.prototype.useShadow=!1,YAHOO.widget.AutoComplete.prototype.suppressInputUpdate=!1,YAHOO.widget.AutoComplete.prototype.resultTypeList=!0,YAHOO.widget.AutoComplete.prototype.queryQuestionMark=!0,YAHOO.widget.AutoComplete.prototype.autoSnapContainer=!0,YAHOO.widget.AutoComplete.prototype.toString=function(){return"AutoComplete "+this._sName},YAHOO.widget.AutoComplete.prototype.getInputEl=function(){return this._elTextbox},YAHOO.widget.AutoComplete.prototype.getContainerEl=function(){return this._elContainer},YAHOO.widget.AutoComplete.prototype.isFocused=function(){return null!==this._bFocused&&this._bFocused},YAHOO.widget.AutoComplete.prototype.isContainerOpen=function(){return this._bContainerOpen},YAHOO.widget.AutoComplete.prototype.getListEl=function(){return this._elList},YAHOO.widget.AutoComplete.prototype.getListItemMatch=function(e){return e._sResultMatch?e._sResultMatch:null},YAHOO.widget.AutoComplete.prototype.getListItemData=function(e){return e._oResultData?e._oResultData:null},YAHOO.widget.AutoComplete.prototype.getListItemIndex=function(e){return YAHOO.lang.isNumber(e._nItemIndex)?e._nItemIndex:null},YAHOO.widget.AutoComplete.prototype.setHeader=function(e){if(this._elHeader){var t=this._elHeader;e?(t.innerHTML=e,t.style.display="block"):(t.innerHTML="",t.style.display="none")}},YAHOO.widget.AutoComplete.prototype.setFooter=function(e){if(this._elFooter){var t=this._elFooter;e?(t.innerHTML=e,t.style.display="block"):(t.innerHTML="",t.style.display="none")}},YAHOO.widget.AutoComplete.prototype.setBody=function(e){if(this._elBody){var t=this._elBody;YAHOO.util.Event.purgeElement(t,!0),e?(t.innerHTML=e,t.style.display="block"):(t.innerHTML="",t.style.display="none"),this._elList=null}},YAHOO.widget.AutoComplete.prototype.generateRequest=function(e){var t=this.dataSource.dataType;return t===YAHOO.util.DataSourceBase.TYPE_XHR?e=this.dataSource.connMethodPost?(this.dataSource.scriptQueryParam||"query")+"="+e+(this.dataSource.scriptQueryAppend?"&"+this.dataSource.scriptQueryAppend:""):(this.queryQuestionMark?"?":"")+(this.dataSource.scriptQueryParam||"query")+"="+e+(this.dataSource.scriptQueryAppend?"&"+this.dataSource.scriptQueryAppend:""):t===YAHOO.util.DataSourceBase.TYPE_SCRIPTNODE&&(e="&"+(this.dataSource.scriptQueryParam||"query")+"="+e+(this.dataSource.scriptQueryAppend?"&"+this.dataSource.scriptQueryAppend:"")),e},YAHOO.widget.AutoComplete.prototype.sendQuery=function(e){this._bFocused=null;var t=this.delimChar?this._elTextbox.value+e:e;this._sendQuery(t)},YAHOO.widget.AutoComplete.prototype.snapContainer=function(){var e=this._elTextbox,t=YAHOO.util.Dom.getXY(e);t[1]+=YAHOO.util.Dom.get(e).offsetHeight+2,YAHOO.util.Dom.setXY(this._elContainer,t)},YAHOO.widget.AutoComplete.prototype.collapseContainer=function(){this._toggleContainer(!1)},YAHOO.widget.AutoComplete.prototype.getSubsetMatches=function(e){for(var t,i,n=e.length;n>=this.minQueryLength;n--)if(i=this.generateRequest(e.substr(0,n)),this.dataRequestEvent.fire(this,void 0,i),t=this.dataSource.getCachedResponse(i))return this.filterResults.apply(this.dataSource,[e,t,t,{scope:this}]);return null},YAHOO.widget.AutoComplete.prototype.preparseRawResponse=function(e,t,i){var n=""!==this.responseStripAfter&&t.indexOf?t.indexOf(this.responseStripAfter):-1;return-1!=n&&(t=t.substring(0,n)),t},YAHOO.widget.AutoComplete.prototype.filterResults=function(e,t,i,n){if(n&&n.argument&&n.argument.query&&(e=n.argument.query),e&&""!==e){i=YAHOO.widget.AutoComplete._cloneObject(i);for(var s=n.scope,o=i.results,r=[],a=this.queryMatchCase||s.queryMatchCase,l=this.queryMatchContains||s.queryMatchContains,c=o.length-1;c>=0;c--){var d=o[c],h=null;if(YAHOO.lang.isString(d)?h=d:YAHOO.lang.isArray(d)?h=d[0]:this.responseSchema.fields?h=d[this.responseSchema.fields[0].key||this.responseSchema.fields[0]]:this.key&&(h=d[this.key]),YAHOO.lang.isString(h)){var u=a?h.indexOf(decodeURIComponent(e)):h.toLowerCase().indexOf(decodeURIComponent(e).toLowerCase());(!l&&0===u||l&&u>-1)&&r.unshift(d)}}i.results=r}return i},YAHOO.widget.AutoComplete.prototype.handleResponse=function(e,t,i){this instanceof YAHOO.widget.AutoComplete&&this._sName&&this._populateList(e,t,i)},YAHOO.widget.AutoComplete.prototype.doBeforeLoadData=function(e,t,i){return!0},YAHOO.widget.AutoComplete.prototype.formatResult=function(e,t,i){return i||""},YAHOO.widget.AutoComplete.prototype.doBeforeExpandContainer=function(e,t,i,n){return!0},YAHOO.widget.AutoComplete.prototype.destroy=function(){this.toString();var e=this._elTextbox,t=this._elContainer;for(var i in this.textboxFocusEvent.unsubscribeAll(),this.textboxKeyEvent.unsubscribeAll(),this.dataRequestEvent.unsubscribeAll(),this.dataReturnEvent.unsubscribeAll(),this.dataErrorEvent.unsubscribeAll(),this.containerPopulateEvent.unsubscribeAll(),this.containerExpandEvent.unsubscribeAll(),this.typeAheadEvent.unsubscribeAll(),this.itemMouseOverEvent.unsubscribeAll(),this.itemMouseOutEvent.unsubscribeAll(),this.itemArrowToEvent.unsubscribeAll(),this.itemArrowFromEvent.unsubscribeAll(),this.itemSelectEvent.unsubscribeAll(),this.unmatchedItemSelectEvent.unsubscribeAll(),this.selectionEnforceEvent.unsubscribeAll(),this.containerCollapseEvent.unsubscribeAll(),this.textboxBlurEvent.unsubscribeAll(),this.textboxChangeEvent.unsubscribeAll(),YAHOO.util.Event.purgeElement(e,!0),YAHOO.util.Event.purgeElement(t,!0),t.innerHTML="",this)YAHOO.lang.hasOwnProperty(this,i)&&(this[i]=null)},YAHOO.widget.AutoComplete.prototype.textboxFocusEvent=null,YAHOO.widget.AutoComplete.prototype.textboxKeyEvent=null,YAHOO.widget.AutoComplete.prototype.dataRequestEvent=null,YAHOO.widget.AutoComplete.prototype.dataReturnEvent=null,YAHOO.widget.AutoComplete.prototype.dataErrorEvent=null,YAHOO.widget.AutoComplete.prototype.containerPopulateEvent=null,YAHOO.widget.AutoComplete.prototype.containerExpandEvent=null,YAHOO.widget.AutoComplete.prototype.typeAheadEvent=null,YAHOO.widget.AutoComplete.prototype.itemMouseOverEvent=null,YAHOO.widget.AutoComplete.prototype.itemMouseOutEvent=null,YAHOO.widget.AutoComplete.prototype.itemArrowToEvent=null,YAHOO.widget.AutoComplete.prototype.itemArrowFromEvent=null,YAHOO.widget.AutoComplete.prototype.itemSelectEvent=null,YAHOO.widget.AutoComplete.prototype.unmatchedItemSelectEvent=null,YAHOO.widget.AutoComplete.prototype.selectionEnforceEvent=null,YAHOO.widget.AutoComplete.prototype.containerCollapseEvent=null,YAHOO.widget.AutoComplete.prototype.textboxBlurEvent=null,YAHOO.widget.AutoComplete.prototype.textboxChangeEvent=null,YAHOO.widget.AutoComplete._nIndex=0,YAHOO.widget.AutoComplete.prototype._sName=null,YAHOO.widget.AutoComplete.prototype._elTextbox=null,YAHOO.widget.AutoComplete.prototype._elContainer=null,YAHOO.widget.AutoComplete.prototype._elContent=null,YAHOO.widget.AutoComplete.prototype._elHeader=null,YAHOO.widget.AutoComplete.prototype._elBody=null,YAHOO.widget.AutoComplete.prototype._elFooter=null,YAHOO.widget.AutoComplete.prototype._elShadow=null,YAHOO.widget.AutoComplete.prototype._elIFrame=null,YAHOO.widget.AutoComplete.prototype._bFocused=null,YAHOO.widget.AutoComplete.prototype._oAnim=null,YAHOO.widget.AutoComplete.prototype._bContainerOpen=!1,YAHOO.widget.AutoComplete.prototype._bOverContainer=!1,YAHOO.widget.AutoComplete.prototype._elList=null,YAHOO.widget.AutoComplete.prototype._nDisplayedItems=0,YAHOO.widget.AutoComplete.prototype._sCurQuery=null,YAHOO.widget.AutoComplete.prototype._sPastSelections="",YAHOO.widget.AutoComplete.prototype._sInitInputValue=null,YAHOO.widget.AutoComplete.prototype._elCurListItem=null,YAHOO.widget.AutoComplete.prototype._bItemSelected=!1,YAHOO.widget.AutoComplete.prototype._nKeyCode=null,YAHOO.widget.AutoComplete.prototype._nDelayID=-1,YAHOO.widget.AutoComplete.prototype._nTypeAheadDelayID=-1,YAHOO.widget.AutoComplete.prototype._iFrameSrc="javascript:false;",YAHOO.widget.AutoComplete.prototype._queryInterval=null,YAHOO.widget.AutoComplete.prototype._sLastTextboxValue=null,YAHOO.widget.AutoComplete.prototype._initProps=function(){var e=this.minQueryLength;YAHOO.lang.isNumber(e)||(this.minQueryLength=1);var t=this.maxResultsDisplayed;(!YAHOO.lang.isNumber(t)||t<1)&&(this.maxResultsDisplayed=10);var i=this.queryDelay;(!YAHOO.lang.isNumber(i)||i<0)&&(this.queryDelay=.2);var n=this.typeAheadDelay;(!YAHOO.lang.isNumber(n)||n<0)&&(this.typeAheadDelay=.2);var s=this.delimChar;YAHOO.lang.isString(s)&&s.length>0?this.delimChar=[s]:YAHOO.lang.isArray(s)||(this.delimChar=null);var o=this.animSpeed;(this.animHoriz||this.animVert)&&YAHOO.util.Anim&&((!YAHOO.lang.isNumber(o)||o<0)&&(this.animSpeed=.3),this._oAnim?this._oAnim.duration=this.animSpeed:this._oAnim=new YAHOO.util.Anim(this._elContent,{},this.animSpeed)),this.forceSelection},YAHOO.widget.AutoComplete.prototype._initContainerHelperEls=function(){if(this.useShadow&&!this._elShadow){var e=document.createElement("div");e.className="yui-ac-shadow",e.style.width=0,e.style.height=0,this._elShadow=this._elContainer.appendChild(e)}if(this.useIFrame&&!this._elIFrame){var t=document.createElement("iframe");t.src=this._iFrameSrc,t.frameBorder=0,t.scrolling="no",t.style.position="absolute",t.style.width=0,t.style.height=0,t.style.padding=0,t.tabIndex=-1,t.role="presentation",t.title="Presentational iframe shim",this._elIFrame=this._elContainer.appendChild(t)}},YAHOO.widget.AutoComplete.prototype._initContainerEl=function(){if(YAHOO.util.Dom.addClass(this._elContainer,"yui-ac-container"),!this._elContent){var e=document.createElement("div");e.className="yui-ac-content",e.style.display="none",this._elContent=this._elContainer.appendChild(e);var t=document.createElement("div");t.className="yui-ac-hd",t.style.display="none",this._elHeader=this._elContent.appendChild(t);var i=document.createElement("div");i.className="yui-ac-bd",this._elBody=this._elContent.appendChild(i);var n=document.createElement("div");n.className="yui-ac-ft",n.style.display="none",this._elFooter=this._elContent.appendChild(n)}},YAHOO.widget.AutoComplete.prototype._initListEl=function(){for(var e,t=this.maxResultsDisplayed,i=this._elList||document.createElement("ul");i.childNodes.length<t;)(e=document.createElement("li")).style.display="none",e._nItemIndex=i.childNodes.length,i.appendChild(e);if(!this._elList){var n=this._elBody;YAHOO.util.Event.purgeElement(n,!0),n.innerHTML="",this._elList=n.appendChild(i)}},YAHOO.widget.AutoComplete.prototype._focus=function(){var e=this;setTimeout((function(){try{e._elTextbox.focus()}catch(e){}}),0)},YAHOO.widget.AutoComplete.prototype._enableIntervalDetection=function(){var e=this;!e._queryInterval&&e.queryInterval&&(e._queryInterval=setInterval((function(){e._onInterval()}),e.queryInterval))},YAHOO.widget.AutoComplete.prototype._onInterval=function(){var e=this._elTextbox.value;e!=this._sLastTextboxValue&&(this._sLastTextboxValue=e,this._sendQuery(e))},YAHOO.widget.AutoComplete.prototype._clearInterval=function(){this._queryInterval&&(clearInterval(this._queryInterval),this._queryInterval=null)},YAHOO.widget.AutoComplete.prototype._isIgnoreKey=function(e){return 9==e||13==e||16==e||17==e||e>=18&&e<=20||27==e||e>=33&&e<=35||e>=36&&e<=40||e>=44&&e<=45||229==e},YAHOO.widget.AutoComplete.prototype._sendQuery=function(e){if(this.minQueryLength<0)this._toggleContainer(!1);else{if(this.delimChar){var t=this._extractQuery(e);e=t.query,this._sPastSelections=t.previous}if(e&&e.length<this.minQueryLength||!e&&this.minQueryLength>0)return-1!=this._nDelayID&&clearTimeout(this._nDelayID),void this._toggleContainer(!1);if(e=encodeURIComponent(e),this._nDelayID=-1,this.dataSource.queryMatchSubset||this.queryMatchSubset){var i=this.getSubsetMatches(e);if(i)return void this.handleResponse(e,i,{query:e})}this.responseStripAfter&&(this.dataSource.doBeforeParseData=this.preparseRawResponse),this.applyLocalFilter&&(this.dataSource.doBeforeCallback=this.filterResults);var n=this.generateRequest(e);this.dataRequestEvent.fire(this,e,n),this.dataSource.sendRequest(n,{success:this.handleResponse,failure:this.handleResponse,scope:this,argument:{query:e}})}},YAHOO.widget.AutoComplete.prototype._populateList=function(e,t,i){-1!=this._nTypeAheadDelayID&&clearTimeout(this._nTypeAheadDelayID),e=i&&i.query?i.query:e;var n=this.doBeforeLoadData(e,t,i);if(n&&!t.error){if(this.dataReturnEvent.fire(this,e,t.results),this._bFocused||null===this._bFocused){var s=decodeURIComponent(e);this._sCurQuery=s,this._bItemSelected=!1;var o=t.results,r=Math.min(o.length,this.maxResultsDisplayed),a=this.dataSource.responseSchema.fields?this.dataSource.responseSchema.fields[0].key||this.dataSource.responseSchema.fields[0]:0;if(r>0){(!this._elList||this._elList.childNodes.length<r)&&this._initListEl(),this._initContainerHelperEls();for(var l=this._elList.childNodes,c=r-1;c>=0;c--){var d=l[c],h=o[c];if(this.resultTypeList){var u=[];u[0]=YAHOO.lang.isString(h)?h:h[a]||h[this.key];var p=this.dataSource.responseSchema.fields;if(YAHOO.lang.isArray(p)&&p.length>1)for(var f=1,g=p.length;f<g;f++)u[u.length]=h[p[f].key||p[f]];else YAHOO.lang.isArray(h)?u=h:YAHOO.lang.isString(h)?u=[h]:u[1]=h;h=u}d._sResultMatch=YAHOO.lang.isString(h)?h:YAHOO.lang.isArray(h)?h[0]:h[a]||"",d._oResultData=h,d.innerHTML=this.formatResult(h,s,d._sResultMatch),d.style.display=""}if(r<l.length)for(var m=l.length-1;m>=r;m--)l[m].style.display="none";if(this._nDisplayedItems=r,this.containerPopulateEvent.fire(this,e,o),this.autoHighlight){var v=this._elList.firstChild;this._toggleHighlight(v,"to"),this.itemArrowToEvent.fire(this,v),this._typeAhead(v,e)}else this._toggleHighlight(this._elCurListItem,"from");n=this._doBeforeExpandContainer(this._elTextbox,this._elContainer,e,o),this._toggleContainer(n)}else this._toggleContainer(!1);return}}else this.dataErrorEvent.fire(this,e)},YAHOO.widget.AutoComplete.prototype._doBeforeExpandContainer=function(e,t,i,n){return this.autoSnapContainer&&this.snapContainer(),this.doBeforeExpandContainer(e,t,i,n)},YAHOO.widget.AutoComplete.prototype._clearSelection=function(){var e=this.delimChar?this._extractQuery(this._elTextbox.value):{previous:"",query:this._elTextbox.value};this._elTextbox.value=e.previous,this.selectionEnforceEvent.fire(this,e.query)},YAHOO.widget.AutoComplete.prototype._textMatchesOption=function(){for(var e=null,t=0;t<this._nDisplayedItems;t++){var i=this._elList.childNodes[t];if((""+i._sResultMatch).toLowerCase()==this._sCurQuery.toLowerCase()){e=i;break}}return e},YAHOO.widget.AutoComplete.prototype._typeAhead=function(e,t){if(this.typeAhead&&8!=this._nKeyCode){var i=this,n=this._elTextbox;(n.setSelectionRange||n.createTextRange)&&(this._nTypeAheadDelayID=setTimeout((function(){var s=n.value.length;i._updateValue(e);var o=n.value.length;i._selectText(n,s,o);var r=n.value.substr(s,o);i.typeAheadEvent.fire(i,t,r)}),1e3*this.typeAheadDelay))}},YAHOO.widget.AutoComplete.prototype._selectText=function(e,t,i){if(e.setSelectionRange)e.setSelectionRange(t,i);else if(e.createTextRange){var n=e.createTextRange();n.moveStart("character",t),n.moveEnd("character",i-e.value.length),n.select()}else e.select()},YAHOO.widget.AutoComplete.prototype._extractQuery=function(e){for(var t,i,n,s=this.delimChar,o=-1,r=s.length-1;r>=0;r--)(t=e.lastIndexOf(s[r]))>o&&(o=t);if(" "==s[r])for(var a=s.length-1;a>=0;a--)if(e[o-1]==s[a]){o--;break}if(o>-1){for(i=o+1;" "==e.charAt(i);)i+=1;n=e.substring(0,i),e=e.substr(i)}else n="";return{previous:n,query:e}},YAHOO.widget.AutoComplete.prototype._toggleContainerHelpers=function(e){var t=this._elContent.offsetWidth+"px",i=this._elContent.offsetHeight+"px";if(this.useIFrame&&this._elIFrame){var n=this._elIFrame;e?(n.style.width=t,n.style.height=i,n.style.padding=""):(n.style.width=0,n.style.height=0,n.style.padding=0)}if(this.useShadow&&this._elShadow){var s=this._elShadow;e?(s.style.width=t,s.style.height=i):(s.style.width=0,s.style.height=0)}},YAHOO.widget.AutoComplete.prototype._toggleContainer=function(e){var t=this._elContainer;if((!this.alwaysShowContainer||!this._bContainerOpen)&&(e||(this._toggleHighlight(this._elCurListItem,"from"),this._nDisplayedItems=0,this._sCurQuery=null,"none"!=this._elContent.style.display))){var i=this._oAnim;if(i&&i.getEl()&&(this.animHoriz||this.animVert)){i.isAnimated()&&i.stop(!0);var n=this._elContent.cloneNode(!0);t.appendChild(n),n.style.top="-9000px",n.style.width="",n.style.height="",n.style.display="";var s=n.offsetWidth,o=n.offsetHeight,r=this.animHoriz?0:s,a=this.animVert?0:o;i.attributes=e?{width:{to:s},height:{to:o}}:{width:{to:r},height:{to:a}},e&&!this._bContainerOpen?(this._elContent.style.width=r+"px",this._elContent.style.height=a+"px"):(this._elContent.style.width=s+"px",this._elContent.style.height=o+"px"),t.removeChild(n),n=null;var l=this;this._toggleContainerHelpers(!1),this._elContent.style.display="",i.onComplete.subscribe((function(){i.onComplete.unsubscribeAll(),e?(l._toggleContainerHelpers(!0),l._bContainerOpen=e,l.containerExpandEvent.fire(l)):(l._elContent.style.display="none",l._bContainerOpen=e,l.containerCollapseEvent.fire(l))})),i.animate()}else e?(this._elContent.style.display="",this._toggleContainerHelpers(!0),this._bContainerOpen=e,this.containerExpandEvent.fire(this)):(this._toggleContainerHelpers(!1),this._elContent.style.display="none",this._bContainerOpen=e,this.containerCollapseEvent.fire(this))}},YAHOO.widget.AutoComplete.prototype._toggleHighlight=function(e,t){if(e){var i=this.highlightClassName;this._elCurListItem&&(YAHOO.util.Dom.removeClass(this._elCurListItem,i),this._elCurListItem=null),"to"==t&&i&&(YAHOO.util.Dom.addClass(e,i),this._elCurListItem=e)}},YAHOO.widget.AutoComplete.prototype._togglePrehighlight=function(e,t){if(e!=this._elCurListItem){var i=this.prehighlightClassName;"mouseover"==t&&i?YAHOO.util.Dom.addClass(e,i):YAHOO.util.Dom.removeClass(e,i)}},YAHOO.widget.AutoComplete.prototype._updateValue=function(e){if(!this.suppressInputUpdate){var t=this._elTextbox,i=this.delimChar?this.delimChar[0]||this.delimChar:null,n=e._sResultMatch,s="";i?(s=this._sPastSelections,s+=n+i," "!=i&&(s+=" ")):s=n,t.value=s,"textarea"==t.type&&(t.scrollTop=t.scrollHeight);var o=t.value.length;this._selectText(t,o,o),this._elCurListItem=e}},YAHOO.widget.AutoComplete.prototype._selectItem=function(e){this._bItemSelected=!0,this._updateValue(e),this._sPastSelections=this._elTextbox.value,this._clearInterval(),this.itemSelectEvent.fire(this,e,e._oResultData),this._toggleContainer(!1)},YAHOO.widget.AutoComplete.prototype._jumpSelection=function(){this._elCurListItem?this._selectItem(this._elCurListItem):this._toggleContainer(!1)},YAHOO.widget.AutoComplete.prototype._moveSelection=function(e){if(this._bContainerOpen){var t=this._elCurListItem,i=-1;t&&(i=t._nItemIndex);var n=40==e?i+1:i-1;if(n<-2||n>=this._nDisplayedItems)return;if(t&&(this._toggleHighlight(t,"from"),this.itemArrowFromEvent.fire(this,t)),-1==n)return void(this.delimChar?this._elTextbox.value=this._sPastSelections+this._sCurQuery:this._elTextbox.value=this._sCurQuery);if(-2==n)return void this._toggleContainer(!1);var s=this._elList.childNodes[n],o=this._elContent,r=YAHOO.util.Dom.getStyle(o,"overflow"),a=YAHOO.util.Dom.getStyle(o,"overflowY");("auto"==r||"scroll"==r||"auto"==a||"scroll"==a)&&n>-1&&n<this._nDisplayedItems&&(40==e?s.offsetTop+s.offsetHeight>o.scrollTop+o.offsetHeight?o.scrollTop=s.offsetTop+s.offsetHeight-o.offsetHeight:s.offsetTop+s.offsetHeight<o.scrollTop&&(o.scrollTop=s.offsetTop):s.offsetTop<o.scrollTop?this._elContent.scrollTop=s.offsetTop:s.offsetTop>o.scrollTop+o.offsetHeight&&(this._elContent.scrollTop=s.offsetTop+s.offsetHeight-o.offsetHeight)),this._toggleHighlight(s,"to"),this.itemArrowToEvent.fire(this,s),this.typeAhead&&this._updateValue(s)}},YAHOO.widget.AutoComplete.prototype._onContainerMouseover=function(e,t){for(var i=YAHOO.util.Event.getTarget(e),n=i.nodeName.toLowerCase();i&&"table"!=n;){switch(n){case"body":return;case"li":t.prehighlightClassName?t._togglePrehighlight(i,"mouseover"):t._toggleHighlight(i,"to"),t.itemMouseOverEvent.fire(t,i);break;case"div":if(YAHOO.util.Dom.hasClass(i,"yui-ac-container"))return void(t._bOverContainer=!0)}(i=i.parentNode)&&(n=i.nodeName.toLowerCase())}},YAHOO.widget.AutoComplete.prototype._onContainerMouseout=function(e,t){for(var i=YAHOO.util.Event.getTarget(e),n=i.nodeName.toLowerCase();i&&"table"!=n;){switch(n){case"body":return;case"li":t.prehighlightClassName?t._togglePrehighlight(i,"mouseout"):t._toggleHighlight(i,"from"),t.itemMouseOutEvent.fire(t,i);break;case"ul":t._toggleHighlight(t._elCurListItem,"to");break;case"div":if(YAHOO.util.Dom.hasClass(i,"yui-ac-container"))return void(t._bOverContainer=!1)}(i=i.parentNode)&&(n=i.nodeName.toLowerCase())}},YAHOO.widget.AutoComplete.prototype._onContainerClick=function(e,t){for(var i=YAHOO.util.Event.getTarget(e),n=i.nodeName.toLowerCase();i&&"table"!=n;){switch(n){case"body":return;case"li":return t._toggleHighlight(i,"to"),void t._selectItem(i)}(i=i.parentNode)&&(n=i.nodeName.toLowerCase())}},YAHOO.widget.AutoComplete.prototype._onContainerScroll=function(e,t){t._focus()},YAHOO.widget.AutoComplete.prototype._onContainerResize=function(e,t){t._toggleContainerHelpers(t._bContainerOpen)},YAHOO.widget.AutoComplete.prototype._onTextboxKeyDown=function(e,t){var i=e.keyCode;switch(-1!=t._nTypeAheadDelayID&&clearTimeout(t._nTypeAheadDelayID),i){case 9:(!YAHOO.env.ua.opera&&-1==navigator.userAgent.toLowerCase().indexOf("mac")||YAHOO.env.ua.webkit>420)&&(t._elCurListItem?(t.delimChar&&t._nKeyCode!=i&&t._bContainerOpen&&YAHOO.util.Event.stopEvent(e),t._selectItem(t._elCurListItem)):t._toggleContainer(!1));break;case 13:(!YAHOO.env.ua.opera&&-1==navigator.userAgent.toLowerCase().indexOf("mac")||YAHOO.env.ua.webkit>420)&&(t._elCurListItem?(t._nKeyCode!=i&&t._bContainerOpen&&YAHOO.util.Event.stopEvent(e),t._selectItem(t._elCurListItem)):t._toggleContainer(!1));break;case 27:return void t._toggleContainer(!1);case 39:t._jumpSelection();break;case 38:case 40:t._bContainerOpen&&(YAHOO.util.Event.stopEvent(e),t._moveSelection(i));break;default:t._bItemSelected=!1,t._toggleHighlight(t._elCurListItem,"from"),t.textboxKeyEvent.fire(t,i)}18===i&&t._enableIntervalDetection(),t._nKeyCode=i},YAHOO.widget.AutoComplete.prototype._onTextboxKeyPress=function(e,t){var i=e.keyCode;if(YAHOO.env.ua.opera||-1!=navigator.userAgent.toLowerCase().indexOf("mac")&&YAHOO.env.ua.webkit<420)switch(i){case 9:t._bContainerOpen&&(t.delimChar&&YAHOO.util.Event.stopEvent(e),t._elCurListItem?t._selectItem(t._elCurListItem):t._toggleContainer(!1));break;case 13:t._bContainerOpen&&(YAHOO.util.Event.stopEvent(e),t._elCurListItem?t._selectItem(t._elCurListItem):t._toggleContainer(!1))}else 229==i&&t._enableIntervalDetection()},YAHOO.widget.AutoComplete.prototype._onTextboxKeyUp=function(e,t){var i=this.value;t._initProps();var n=e.keyCode;t._isIgnoreKey(n)||(-1!=t._nDelayID&&clearTimeout(t._nDelayID),t._nDelayID=setTimeout((function(){t._sendQuery(i)}),1e3*t.queryDelay))},YAHOO.widget.AutoComplete.prototype._onTextboxFocus=function(e,t){t._bFocused||(t._elTextbox.setAttribute("autocomplete","off"),t._bFocused=!0,t._sInitInputValue=t._elTextbox.value,t.textboxFocusEvent.fire(t))},YAHOO.widget.AutoComplete.prototype._onTextboxBlur=function(e,t){if(t._bOverContainer&&9!=t._nKeyCode)t._focus();else{if(!t._bItemSelected){var i=t._textMatchesOption();!t._bContainerOpen||t._bContainerOpen&&null===i?t.forceSelection?t._clearSelection():t.unmatchedItemSelectEvent.fire(t,t._sCurQuery):t.forceSelection&&t._selectItem(i)}t._clearInterval(),t._bFocused=!1,t._sInitInputValue!==t._elTextbox.value&&t.textboxChangeEvent.fire(t),t.textboxBlurEvent.fire(t),t._toggleContainer(!1)}},YAHOO.widget.AutoComplete.prototype._onWindowUnload=function(e,t){t&&t._elTextbox&&t.allowBrowserAutocomplete&&t._elTextbox.setAttribute("autocomplete","on")},YAHOO.widget.AutoComplete.prototype.doBeforeSendQuery=function(e){return this.generateRequest(e)},YAHOO.widget.AutoComplete.prototype.getListItems=function(){for(var e=[],t=this._elList.childNodes,i=t.length-1;i>=0;i--)e[i]=t[i];return e},YAHOO.widget.AutoComplete._cloneObject=function(e){if(!YAHOO.lang.isValue(e))return e;var t={};if(YAHOO.lang.isFunction(e))t=e;else if(YAHOO.lang.isArray(e)){for(var i=[],n=0,s=e.length;n<s;n++)i[n]=YAHOO.widget.AutoComplete._cloneObject(e[n]);t=i}else if(YAHOO.lang.isObject(e))for(var o in e)YAHOO.lang.hasOwnProperty(e,o)&&(YAHOO.lang.isValue(e[o])&&YAHOO.lang.isObject(e[o])||YAHOO.lang.isArray(e[o])?t[o]=YAHOO.widget.AutoComplete._cloneObject(e[o]):t[o]=e[o]);else t=e;return t},YAHOO.register("autocomplete",YAHOO.widget.AutoComplete,{version:"@VERSION@",build:"@BUILD@"})},2252:()=>{YAHOO.util.Connect={_msxml_progid:["Microsoft.XMLHTTP","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP"],_http_headers:{},_has_http_headers:!1,_use_default_post_header:!0,_default_post_header:"application/x-www-form-urlencoded; charset=UTF-8",_default_form_header:"application/x-www-form-urlencoded",_use_default_xhr_header:!0,_default_xhr_header:"XMLHttpRequest",_has_default_headers:!0,_default_headers:{},_isFormSubmit:!1,_isFileUpload:!1,_formNode:null,_sFormData:null,_poll:{},_timeOut:{},_polling_interval:50,_transaction_id:0,_submitElementValue:null,_hasSubmitListener:!!YAHOO.util.Event&&(YAHOO.util.Event.addListener(document,"click",(function(e){var t=YAHOO.util.Event.getTarget(e),i=t.nodeName.toLowerCase();"input"!==i&&"button"!==i||!t.type||"submit"!=t.type.toLowerCase()||(YAHOO.util.Connect._submitElementValue=encodeURIComponent(t.name)+"="+encodeURIComponent(t.value))})),!0),startEvent:new YAHOO.util.CustomEvent("start"),completeEvent:new YAHOO.util.CustomEvent("complete"),successEvent:new YAHOO.util.CustomEvent("success"),failureEvent:new YAHOO.util.CustomEvent("failure"),uploadEvent:new YAHOO.util.CustomEvent("upload"),abortEvent:new YAHOO.util.CustomEvent("abort"),_customEvents:{onStart:["startEvent","start"],onComplete:["completeEvent","complete"],onSuccess:["successEvent","success"],onFailure:["failureEvent","failure"],onUpload:["uploadEvent","upload"],onAbort:["abortEvent","abort"]},setProgId:function(e){this._msxml_progid.unshift(e)},setDefaultPostHeader:function(e){"string"==typeof e?this._default_post_header=e:"boolean"==typeof e&&(this._use_default_post_header=e)},setDefaultXhrHeader:function(e){"string"==typeof e?this._default_xhr_header=e:this._use_default_xhr_header=e},setPollingInterval:function(e){"number"==typeof e&&isFinite(e)&&(this._polling_interval=e)},createXhrObject:function(e){var t;try{t={conn:new XMLHttpRequest,tId:e}}catch(n){for(var i=0;i<this._msxml_progid.length;++i)try{t={conn:new ActiveXObject(this._msxml_progid[i]),tId:e};break}catch(e){}}finally{return t}},getConnectionObject:function(e){var t,i=this._transaction_id;try{e?((t={}).tId=i,t.isUpload=!0):t=this.createXhrObject(i),t&&this._transaction_id++}catch(e){}finally{return t}},asyncRequest:function(e,t,i,n){var s=this._isFileUpload?this.getConnectionObject(!0):this.getConnectionObject(),o=i&&i.argument?i.argument:null;if(s){if(i&&i.customevents&&this.initCustomEvents(s,i),this._isFormSubmit){if(this._isFileUpload)return this.uploadFile(s,i,t,n),s;"GET"==e.toUpperCase()?0!==this._sFormData.length&&(t+=(-1==t.indexOf("?")?"?":"&")+this._sFormData):"POST"==e.toUpperCase()&&(n=n?this._sFormData+"&"+n:this._sFormData)}return"GET"==e.toUpperCase()&&i&&!1===i.cache&&(t+=(-1==t.indexOf("?")?"?":"&")+"rnd="+(new Date).valueOf().toString()),s.conn.open(e,t,!0),this._use_default_xhr_header&&(this._default_headers["X-Requested-With"]||this.initHeader("X-Requested-With",this._default_xhr_header,!0)),"POST"===e.toUpperCase()&&this._use_default_post_header&&!1===this._isFormSubmit&&this.initHeader("Content-Type",this._default_post_header),(this._has_default_headers||this._has_http_headers)&&this.setHeader(s),this.handleReadyState(s,i),s.conn.send(n||""),!0===this._isFormSubmit&&this.resetFormState(),this.startEvent.fire(s,o),s.startEvent&&s.startEvent.fire(s,o),s}return null},initCustomEvents:function(e,t){var i;for(i in t.customevents)this._customEvents[i][0]&&(e[this._customEvents[i][0]]=new YAHOO.util.CustomEvent(this._customEvents[i][1],t.scope?t.scope:null),e[this._customEvents[i][0]].subscribe(t.customevents[i]))},handleReadyState:function(e,t){var i=this,n=t&&t.argument?t.argument:null;t&&t.timeout&&(this._timeOut[e.tId]=window.setTimeout((function(){i.abort(e,t,!0)}),t.timeout)),this._poll[e.tId]=window.setInterval((function(){e.conn&&4===e.conn.readyState&&(window.clearInterval(i._poll[e.tId]),delete i._poll[e.tId],t&&t.timeout&&(window.clearTimeout(i._timeOut[e.tId]),delete i._timeOut[e.tId]),i.completeEvent.fire(e,n),e.completeEvent&&e.completeEvent.fire(e,n),i.handleTransactionResponse(e,t))}),this._polling_interval)},handleTransactionResponse:function(e,t,i){var n,s,o=t&&t.argument?t.argument:null;try{n=void 0!==e.conn.status&&0!==e.conn.status?e.conn.status:13030}catch(e){n=13030}if(n>=200&&n<300||1223===n)s=this.createResponseObject(e,o),t&&t.success&&(t.scope?t.success.apply(t.scope,[s]):t.success(s)),this.successEvent.fire(s),e.successEvent&&e.successEvent.fire(s);else{switch(n){case 12002:case 12029:case 12030:case 12031:case 12152:case 13030:s=this.createExceptionObject(e.tId,o,i||!1),t&&t.failure&&(t.scope?t.failure.apply(t.scope,[s]):t.failure(s));break;default:s=this.createResponseObject(e,o),t&&t.failure&&(t.scope?t.failure.apply(t.scope,[s]):t.failure(s))}this.failureEvent.fire(s),e.failureEvent&&e.failureEvent.fire(s)}this.releaseObject(e),s=null},createResponseObject:function(e,t){var i={},n={};try{for(var s=e.conn.getAllResponseHeaders(),o=s.split("\n"),r=0;r<o.length;r++){var a=o[r].indexOf(":");-1!=a&&(n[o[r].substring(0,a)]=o[r].substring(a+2))}}catch(e){}return i.tId=e.tId,i.status=1223==e.conn.status?204:e.conn.status,i.statusText=1223==e.conn.status?"No Content":e.conn.statusText,i.getResponseHeader=n,i.getAllResponseHeaders=s,i.responseText=e.conn.responseText,i.responseXML=e.conn.responseXML,t&&(i.argument=t),i},createExceptionObject:function(e,t,i){var n={};return n.tId=e,i?(n.status=-1,n.statusText="transaction aborted"):(n.status=0,n.statusText="communication failure"),t&&(n.argument=t),n},initHeader:function(e,t,i){(i?this._default_headers:this._http_headers)[e]=t,i?this._has_default_headers=!0:this._has_http_headers=!0},setHeader:function(e){var t;if(this._has_default_headers)for(t in this._default_headers)YAHOO.lang.hasOwnProperty(this._default_headers,t)&&e.conn.setRequestHeader(t,this._default_headers[t]);if(this._has_http_headers){for(t in this._http_headers)YAHOO.lang.hasOwnProperty(this._http_headers,t)&&e.conn.setRequestHeader(t,this._http_headers[t]);delete this._http_headers,this._http_headers={},this._has_http_headers=!1}},resetDefaultHeaders:function(){delete this._default_headers,this._default_headers={},this._has_default_headers=!1},setForm:function(e,t,i){var n,s,o,r,a,l,c,d,h,u,p=!1,f=[],g=0;if(this.resetFormState(),"string"==typeof e)n=document.getElementById(e)||document.forms[e];else{if("object"!=typeof e)return;n=e}if(t)return this.createFrame(i||null),this._isFormSubmit=!0,this._isFileUpload=!0,void(this._formNode=n);for(l=0,c=n.elements.length;l<c;++l)if(a=(s=n.elements[l]).disabled,o=s.name,!a&&o)switch(o=encodeURIComponent(o)+"=",r=encodeURIComponent(s.value),s.type){case"select-one":s.selectedIndex>-1&&(u=s.options[s.selectedIndex],f[g++]=o+encodeURIComponent(u.attributes.value&&u.attributes.value.specified?u.value:u.text));break;case"select-multiple":if(s.selectedIndex>-1)for(d=s.selectedIndex,h=s.options.length;d<h;++d)(u=s.options[d]).selected&&(f[g++]=o+encodeURIComponent(u.attributes.value&&u.attributes.value.specified?u.value:u.text));break;case"radio":case"checkbox":s.checked&&(f[g++]=o+r);break;case"file":case void 0:case"reset":case"button":break;case"submit":!1===p&&(this._hasSubmitListener&&this._submitElementValue&&(f[g++]=this._submitElementValue),p=!0);break;default:f[g++]=o+r}return this._isFormSubmit=!0,this._sFormData=f.join("&"),this.initHeader("Content-Type",this._default_form_header),this._sFormData},resetFormState:function(){this._isFormSubmit=!1,this._isFileUpload=!1,this._formNode=null,this._sFormData=""},createFrame:function(e){var t,i="yuiIO"+this._transaction_id;YAHOO.env.ua.ie?(t=document.createElement('<iframe id="'+i+'" name="'+i+'" />'),"boolean"==typeof e&&(t.src="javascript:false")):((t=document.createElement("iframe")).id=i,t.name=i),t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",document.body.appendChild(t)},appendPostData:function(e){var t,i,n=[],s=e.split("&");for(t=0;t<s.length;t++)-1!=(i=s[t].indexOf("="))&&(n[t]=document.createElement("input"),n[t].type="hidden",n[t].name=decodeURIComponent(s[t].substring(0,i)),n[t].value=decodeURIComponent(s[t].substring(i+1)),this._formNode.appendChild(n[t]));return n},uploadFile:function(e,t,i,n){var s,o,r,a,l="yuiIO"+e.tId,c="multipart/form-data",d=document.getElementById(l),h=this,u=t&&t.argument?t.argument:null,p={action:this._formNode.getAttribute("action"),method:this._formNode.getAttribute("method"),target:this._formNode.getAttribute("target")};if(this._formNode.setAttribute("action",i),this._formNode.setAttribute("method","POST"),this._formNode.setAttribute("target",l),YAHOO.env.ua.ie?this._formNode.setAttribute("encoding",c):this._formNode.setAttribute("enctype",c),n&&(s=this.appendPostData(n)),this._formNode.submit(),this.startEvent.fire(e,u),e.startEvent&&e.startEvent.fire(e,u),t&&t.timeout&&(this._timeOut[e.tId]=window.setTimeout((function(){h.abort(e,t,!0)}),t.timeout)),s&&s.length>0)for(o=0;o<s.length;o++)this._formNode.removeChild(s[o]);for(r in p)YAHOO.lang.hasOwnProperty(p,r)&&(p[r]?this._formNode.setAttribute(r,p[r]):this._formNode.removeAttribute(r));this.resetFormState();var f=function(){t&&t.timeout&&(window.clearTimeout(h._timeOut[e.tId]),delete h._timeOut[e.tId]),h.completeEvent.fire(e,u),e.completeEvent&&e.completeEvent.fire(e,u),a={tId:e.tId,argument:t.argument};try{a.responseText=d.contentWindow.document.body?d.contentWindow.document.body.innerHTML:d.contentWindow.document.documentElement.textContent,a.responseXML=d.contentWindow.document.XMLDocument?d.contentWindow.document.XMLDocument:d.contentWindow.document}catch(e){}t&&t.upload&&(t.scope?t.upload.apply(t.scope,[a]):t.upload(a)),h.uploadEvent.fire(a),e.uploadEvent&&e.uploadEvent.fire(a),YAHOO.util.Event.removeListener(d,"load",f),setTimeout((function(){document.body.removeChild(d),h.releaseObject(e)}),100)};YAHOO.util.Event.addListener(d,"load",f)},abort:function(e,t,i){var n,s=t&&t.argument?t.argument:null;if(e&&e.conn)this.isCallInProgress(e)&&(e.conn.abort(),window.clearInterval(this._poll[e.tId]),delete this._poll[e.tId],i&&(window.clearTimeout(this._timeOut[e.tId]),delete this._timeOut[e.tId]),n=!0);else if(e&&!0===e.isUpload){var o="yuiIO"+e.tId,r=document.getElementById(o);r&&(YAHOO.util.Event.removeListener(r,"load"),document.body.removeChild(r),i&&(window.clearTimeout(this._timeOut[e.tId]),delete this._timeOut[e.tId]),n=!0)}else n=!1;return!0===n&&(this.abortEvent.fire(e,s),e.abortEvent&&e.abortEvent.fire(e,s),this.handleTransactionResponse(e,t,!0)),n},isCallInProgress:function(e){if(e&&e.conn)return 4!==e.conn.readyState&&0!==e.conn.readyState;if(e&&!0===e.isUpload){var t="yuiIO"+e.tId;return!!document.getElementById(t)}return!1},releaseObject:function(e){e&&e.conn&&(e.conn=null,e=null)}},YAHOO.register("connection",YAHOO.util.Connect,{version:"@VERSION@",build:"@BUILD@"})},9448:()=>{var xPad,Dt;(function(){var lang=YAHOO.lang,util=YAHOO.util,Ev=util.Event;util.DataSourceBase=function(e,t){if(null!=e){if(this.liveData=e,this._oQueue={interval:null,conn:null,requests:[]},this.responseSchema={},t&&t.constructor==Object)for(var i in t)i&&(this[i]=t[i]);var n=this.maxCacheEntries;(!lang.isNumber(n)||n<0)&&(n=0),this._aIntervals=[],this.createEvent("cacheRequestEvent"),this.createEvent("cacheResponseEvent"),this.createEvent("requestEvent"),this.createEvent("responseEvent"),this.createEvent("responseParseEvent"),this.createEvent("responseCacheEvent"),this.createEvent("dataErrorEvent"),this.createEvent("cacheFlushEvent");var s=util.DataSourceBase;this._sName="DataSource instance"+s._nIndex,s._nIndex++}};var DS=util.DataSourceBase;lang.augmentObject(DS,{TYPE_UNKNOWN:-1,TYPE_JSARRAY:0,TYPE_JSFUNCTION:1,TYPE_XHR:2,TYPE_JSON:3,TYPE_XML:4,TYPE_TEXT:5,TYPE_HTMLTABLE:6,TYPE_SCRIPTNODE:7,TYPE_LOCAL:8,ERROR_DATAINVALID:"Invalid data",ERROR_DATANULL:"Null data",_nIndex:0,_nTransactionId:0,issueCallback:function(e,t,i,n){if(lang.isFunction(e))e.apply(n,t);else if(lang.isObject(e)){n=e.scope||n||window;var s=e.success;i&&(s=e.failure),s&&s.apply(n,t.concat([e.argument]))}},parseString:function(e){if(!lang.isValue(e))return null;var t=e+"";return lang.isString(t)?t:null},parseNumber:function(e){if(!lang.isValue(e)||""===e)return null;var t=1*e;return lang.isNumber(t)?t:null},convertNumber:function(e){return DS.parseNumber(e)},parseDate:function(e){var t=null;return e instanceof Date?e:(t=new Date(e))instanceof Date?t:null},convertDate:function(e){return DS.parseDate(e)}}),DS.Parser={string:DS.parseString,number:DS.parseNumber,date:DS.parseDate},DS.prototype={_sName:null,_aCache:null,_oQueue:null,_aIntervals:null,maxCacheEntries:0,liveData:null,dataType:DS.TYPE_UNKNOWN,responseType:DS.TYPE_UNKNOWN,responseSchema:null,toString:function(){return this._sName},getCachedResponse:function(e,t,i){var n=this._aCache;if(this.maxCacheEntries>0)if(n){var s=n.length;if(s>0){var o=null;this.fireEvent("cacheRequestEvent",{request:e,callback:t,caller:i});for(var r=s-1;r>=0;r--){var a=n[r];if(this.isCacheHit(e,a.request)){o=a.response,this.fireEvent("cacheResponseEvent",{request:e,response:o,callback:t,caller:i}),r<s-1&&(n.splice(r,1),this.addToCache(e,o)),o.cached=!0;break}}return o}}else this._aCache=[];else n&&(this._aCache=null);return null},isCacheHit:function(e,t){return e===t},addToCache:function(e,t){var i=this._aCache;if(i){for(;i.length>=this.maxCacheEntries;)i.shift();var n={request:e,response:t};i[i.length]=n,this.fireEvent("responseCacheEvent",{request:e,response:t})}},flushCache:function(){this._aCache&&(this._aCache=[],this.fireEvent("cacheFlushEvent"))},setInterval:function(e,t,i,n){if(lang.isNumber(e)&&e>=0){var s=this,o=setInterval((function(){s.makeConnection(t,i,n)}),e);return this._aIntervals.push(o),o}},clearInterval:function(e){for(var t=this._aIntervals||[],i=t.length-1;i>-1;i--)t[i]===e&&(t.splice(i,1),clearInterval(e))},clearAllIntervals:function(){for(var e=this._aIntervals||[],t=e.length-1;t>-1;t--)clearInterval(e[t]);e=[]},sendRequest:function(e,t,i){var n=this.getCachedResponse(e,t,i);return n?(DS.issueCallback(t,[e,n],!1,i),null):this.makeConnection(e,t,i)},makeConnection:function(e,t,i){var n=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:n,request:e,callback:t,caller:i});var s=this.liveData;return this.handleResponse(e,s,t,i,n),n},handleResponse:function(oRequest,oRawResponse,oCallback,oCaller,tId){this.fireEvent("responseEvent",{tId,request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller});var xhr=this.dataType==DS.TYPE_XHR,oParsedResponse=null,oFullResponse=oRawResponse;if(this.responseType===DS.TYPE_UNKNOWN){var ctype=oRawResponse&&oRawResponse.getResponseHeader?oRawResponse.getResponseHeader["Content-Type"]:null;ctype?ctype.indexOf("text/xml")>-1?this.responseType=DS.TYPE_XML:ctype.indexOf("application/json")>-1?this.responseType=DS.TYPE_JSON:ctype.indexOf("text/plain")>-1&&(this.responseType=DS.TYPE_TEXT):YAHOO.lang.isArray(oRawResponse)?this.responseType=DS.TYPE_JSARRAY:oRawResponse&&oRawResponse.nodeType&&9==oRawResponse.nodeType?this.responseType=DS.TYPE_XML:oRawResponse&&oRawResponse.nodeName&&"table"==oRawResponse.nodeName.toLowerCase()?this.responseType=DS.TYPE_HTMLTABLE:YAHOO.lang.isObject(oRawResponse)?this.responseType=DS.TYPE_JSON:YAHOO.lang.isString(oRawResponse)&&(this.responseType=DS.TYPE_TEXT)}switch(this.responseType){case DS.TYPE_JSARRAY:xhr&&oRawResponse&&oRawResponse.responseText&&(oFullResponse=oRawResponse.responseText);try{if(lang.isString(oFullResponse)){var parseArgs=[oFullResponse].concat(this.parseJSONArgs);if(lang.JSON)oFullResponse=lang.JSON.parse.apply(lang.JSON,parseArgs);else if(window.JSON&&JSON.parse)oFullResponse=JSON.parse.apply(JSON,parseArgs);else if(oFullResponse.parseJSON)oFullResponse=oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));else{for(;oFullResponse.length>0&&"{"!=oFullResponse.charAt(0)&&"["!=oFullResponse.charAt(0);)oFullResponse=oFullResponse.substring(1,oFullResponse.length);if(oFullResponse.length>0){var arrayEnd=Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));oFullResponse=oFullResponse.substring(0,arrayEnd+1),oFullResponse=eval("("+oFullResponse+")")}}}}catch(e){}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback),oParsedResponse=this.parseArrayData(oRequest,oFullResponse);break;case DS.TYPE_JSON:xhr&&oRawResponse&&oRawResponse.responseText&&(oFullResponse=oRawResponse.responseText);try{if(lang.isString(oFullResponse)){var parseArgs=[oFullResponse].concat(this.parseJSONArgs);if(lang.JSON)oFullResponse=lang.JSON.parse.apply(lang.JSON,parseArgs);else if(window.JSON&&JSON.parse)oFullResponse=JSON.parse.apply(JSON,parseArgs);else if(oFullResponse.parseJSON)oFullResponse=oFullResponse.parseJSON.apply(oFullResponse,parseArgs.slice(1));else{for(;oFullResponse.length>0&&"{"!=oFullResponse.charAt(0)&&"["!=oFullResponse.charAt(0);)oFullResponse=oFullResponse.substring(1,oFullResponse.length);if(oFullResponse.length>0){var objEnd=Math.max(oFullResponse.lastIndexOf("]"),oFullResponse.lastIndexOf("}"));oFullResponse=oFullResponse.substring(0,objEnd+1),oFullResponse=eval("("+oFullResponse+")")}}}}catch(e){}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback),oParsedResponse=this.parseJSONData(oRequest,oFullResponse);break;case DS.TYPE_HTMLTABLE:if(xhr&&oRawResponse.responseText){var el=document.createElement("div");el.innerHTML=oRawResponse.responseText,oFullResponse=el.getElementsByTagName("table")[0]}oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback),oParsedResponse=this.parseHTMLTableData(oRequest,oFullResponse);break;case DS.TYPE_XML:xhr&&oRawResponse.responseXML&&(oFullResponse=oRawResponse.responseXML),oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback),oParsedResponse=this.parseXMLData(oRequest,oFullResponse);break;case DS.TYPE_TEXT:xhr&&lang.isString(oRawResponse.responseText)&&(oFullResponse=oRawResponse.responseText),oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback),oParsedResponse=this.parseTextData(oRequest,oFullResponse);break;default:oFullResponse=this.doBeforeParseData(oRequest,oFullResponse,oCallback),oParsedResponse=this.parseData(oRequest,oFullResponse)}oParsedResponse=oParsedResponse||{},oParsedResponse.results||(oParsedResponse.results=[]),oParsedResponse.meta||(oParsedResponse.meta={}),oParsedResponse&&!oParsedResponse.error?(oParsedResponse=this.doBeforeCallback(oRequest,oFullResponse,oParsedResponse,oCallback),this.fireEvent("responseParseEvent",{request:oRequest,response:oParsedResponse,callback:oCallback,caller:oCaller}),this.addToCache(oRequest,oParsedResponse)):(oParsedResponse.error=!0,this.fireEvent("dataErrorEvent",{request:oRequest,response:oRawResponse,callback:oCallback,caller:oCaller,message:DS.ERROR_DATANULL})),oParsedResponse.tId=tId,DS.issueCallback(oCallback,[oRequest,oParsedResponse],oParsedResponse.error,oCaller)},doBeforeParseData:function(e,t,i){return t},doBeforeCallback:function(e,t,i,n){return i},parseData:function(e,t){return lang.isValue(t)?{results:t,meta:{}}:null},parseArrayData:function(e,t){if(lang.isArray(t)){var i,n,s,o,r,a=[];if(lang.isArray(this.responseSchema.fields)){var l=this.responseSchema.fields;for(i=l.length-1;i>=0;--i)"object"!=typeof l[i]&&(l[i]={key:l[i]});var c,d={};for(i=l.length-1;i>=0;--i)(c=("function"==typeof l[i].parser?l[i].parser:DS.Parser[l[i].parser+""])||l[i].converter)&&(d[l[i].key]=c);var h=lang.isArray(t[0]);for(i=t.length-1;i>-1;i--){var u={};if("object"==typeof(s=t[i]))for(n=l.length-1;n>-1;n--)o=l[n],r=h?s[n]:s[o.key],d[o.key]&&(r=d[o.key].call(this,r)),void 0===r&&(r=null),u[o.key]=r;else if(lang.isString(s))for(n=l.length-1;n>-1;n--)r=s,d[(o=l[n]).key]&&(r=d[o.key].call(this,r)),void 0===r&&(r=null),u[o.key]=r;a[i]=u}}else a=t;return{results:a}}return null},parseTextData:function(e,t){if(lang.isString(t)&&lang.isString(this.responseSchema.recordDelim)&&lang.isString(this.responseSchema.fieldDelim)){var i={results:[]},n=this.responseSchema.recordDelim,s=this.responseSchema.fieldDelim;if(t.length>0){var o=t.length-n.length;if(t.substr(o)==n&&(t=t.substr(0,o)),t.length>0)for(var r=t.split(n),a=0,l=r.length,c=0;a<l;++a){var d=!1,h=r[a];if(lang.isString(h)&&h.length>0){var u=r[a].split(s),p={};if(lang.isArray(this.responseSchema.fields))for(var f=this.responseSchema.fields,g=f.length-1;g>-1;g--)try{var m=u[g];if(lang.isString(m)){'"'==m.charAt(0)&&(m=m.substr(1)),'"'==m.charAt(m.length-1)&&(m=m.substr(0,m.length-1));var v=f[g],_=lang.isValue(v.key)?v.key:v;!v.parser&&v.converter&&(v.parser=v.converter);var y="function"==typeof v.parser?v.parser:DS.Parser[v.parser+""];y&&(m=y.call(this,m)),void 0===m&&(m=null),p[_]=m}else d=!0}catch(e){d=!0}else p=u;d||(i.results[c++]=p)}}}return i}return null},parseXMLResult:function(e){var t={},i=this.responseSchema;try{for(var n=i.fields.length-1;n>=0;n--){var s=i.fields[n],o=lang.isValue(s.key)?s.key:s,r=null,a=e.attributes.getNamedItem(o);if(a)r=a.value;else{var l=e.getElementsByTagName(o);if(l&&l.item(0)){var c=l.item(0);if(!(r=c?c.text?c.text:c.textContent?c.textContent:null:null)){for(var d=[],h=0,u=c.childNodes.length;h<u;h++)c.childNodes[h].nodeValue&&(d[d.length]=c.childNodes[h].nodeValue);d.length>0&&(r=d.join(""))}}}null===r&&(r=""),!s.parser&&s.converter&&(s.parser=s.converter);var p="function"==typeof s.parser?s.parser:DS.Parser[s.parser+""];p&&(r=p.call(this,r)),void 0===r&&(r=null),t[o]=r}}catch(e){}return t},parseXMLData:function(e,t){var i,n,s,o,r=!1,a=this.responseSchema,l={meta:{}},c=null,d=a.metaNode,h=a.metaFields||{};try{if(c=a.resultNode?t.getElementsByTagName(a.resultNode):null,d=d?t.getElementsByTagName(d)[0]:t)for(n in h)lang.hasOwnProperty(h,n)&&(s=h[n],(o=d.getElementsByTagName(s)[0])?o=o.firstChild.nodeValue:(o=d.attributes.getNamedItem(s))&&(o=o.value),lang.isValue(o)&&(l.meta[n]=o))}catch(e){}if(c&&lang.isArray(a.fields))for(l.results=[],i=c.length-1;i>=0;--i){var u=this.parseXMLResult(c.item(i));l.results[i]=u}else r=!0;return r&&(l.error=!0),l},parseJSONData:function(e,t){var i={results:[],meta:{}};if(lang.isObject(t)&&this.responseSchema.resultsList){var n,s,o,r,a,l,c,d=this.responseSchema,h=d.fields,u=t,p=[],f=d.metaFields||{},g=[],m=[],v=[],_=!1,y=function(e){var t=null,i=[],n=0;if(e&&(e=e.replace(/\[(['"])(.*?)\1\]/g,(function(e,t,s){return i[n]=s,".@"+n++})).replace(/\[(\d+)\]/g,(function(e,t){return i[n]=0|parseInt(t,10),".@"+n++})).replace(/^\./,""),!/[^\w\.\$@]/.test(e)))for(t=e.split("."),n=t.length-1;n>=0;--n)"@"===t[n].charAt(0)&&(t[n]=i[parseInt(t[n].substr(1),10)]);return t},b=function(e,t){for(var i=t,n=0,s=e.length;n<s&&i;++n)i=i[e[n]];return i};if((c=y(d.resultsList))?void 0===(u=b(c,t))&&(_=!0):_=!0,u||(u=[]),lang.isArray(u)||(u=[u]),_)i.error=!0;else{if(d.fields){var w;for(n=0,s=h.length;n<s;n++)a=(w=h[n]).key||w,l=("function"==typeof w.parser?w.parser:DS.Parser[w.parser+""])||w.converter,c=y(a),l&&(g[g.length]={key:a,parser:l}),c&&(c.length>1?m[m.length]={key:a,path:c}:v[v.length]={key:a,path:c[0]});for(n=u.length-1;n>=0;--n){var x=u[n],k={};if(x){for(o=v.length-1;o>=0;--o)k[v[o].key]=void 0!==x[v[o].path]?x[v[o].path]:x[o];for(o=m.length-1;o>=0;--o)k[m[o].key]=b(m[o].path,x);for(o=g.length-1;o>=0;--o){var C=g[o].key;k[C]=g[o].parser(k[C]),void 0===k[C]&&(k[C]=null)}}p[n]=k}}else p=u;for(a in f)lang.hasOwnProperty(f,a)&&(c=y(f[a]))&&(r=b(c,t),i.meta[a]=r)}i.results=p}else i.error=!0;return i},parseHTMLTableData:function(e,t){var i=!1,n=t,s=this.responseSchema.fields,o={results:[]};if(lang.isArray(s))for(var r=0;r<n.tBodies.length;r++)for(var a=n.tBodies[r],l=a.rows.length-1;l>-1;l--){for(var c=a.rows[l],d={},h=s.length-1;h>-1;h--){var u=s[h],p=lang.isValue(u.key)?u.key:u,f=c.cells[h].innerHTML;!u.parser&&u.converter&&(u.parser=u.converter);var g="function"==typeof u.parser?u.parser:DS.Parser[u.parser+""];g&&(f=g.call(this,f)),void 0===f&&(f=null),d[p]=f}o.results[l]=d}else i=!0;return i&&(o.error=!0),o}},lang.augmentProto(DS,util.EventProvider),util.LocalDataSource=function(e,t){this.dataType=DS.TYPE_LOCAL,e?YAHOO.lang.isArray(e)?this.responseType=DS.TYPE_JSARRAY:e.nodeType&&9==e.nodeType?this.responseType=DS.TYPE_XML:e.nodeName&&"table"==e.nodeName.toLowerCase()?(this.responseType=DS.TYPE_HTMLTABLE,e=e.cloneNode(!0)):YAHOO.lang.isString(e)?this.responseType=DS.TYPE_TEXT:YAHOO.lang.isObject(e)&&(this.responseType=DS.TYPE_JSON):(e=[],this.responseType=DS.TYPE_JSARRAY),util.LocalDataSource.superclass.constructor.call(this,e,t)},lang.extend(util.LocalDataSource,DS),lang.augmentObject(util.LocalDataSource,DS),util.FunctionDataSource=function(e,t){this.dataType=DS.TYPE_JSFUNCTION,e=e||function(){},util.FunctionDataSource.superclass.constructor.call(this,e,t)},lang.extend(util.FunctionDataSource,DS,{scope:null,makeConnection:function(e,t,i){var n=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:n,request:e,callback:t,caller:i});var s=this.scope?this.liveData.call(this.scope,e,this):this.liveData(e);return this.responseType===DS.TYPE_UNKNOWN&&(YAHOO.lang.isArray(s)?this.responseType=DS.TYPE_JSARRAY:s&&s.nodeType&&9==s.nodeType?this.responseType=DS.TYPE_XML:s&&s.nodeName&&"table"==s.nodeName.toLowerCase()?this.responseType=DS.TYPE_HTMLTABLE:YAHOO.lang.isObject(s)?this.responseType=DS.TYPE_JSON:YAHOO.lang.isString(s)&&(this.responseType=DS.TYPE_TEXT)),this.handleResponse(e,s,t,i,n),n}}),lang.augmentObject(util.FunctionDataSource,DS),util.ScriptNodeDataSource=function(e,t){this.dataType=DS.TYPE_SCRIPTNODE,e=e||"",util.ScriptNodeDataSource.superclass.constructor.call(this,e,t)},lang.extend(util.ScriptNodeDataSource,DS,{getUtility:util.Get,asyncMode:"allowAll",scriptCallbackParam:"callback",generateRequestCallback:function(e){return"&"+this.scriptCallbackParam+"=YAHOO.util.ScriptNodeDataSource.callbacks["+e+"]"},doBeforeGetScriptNode:function(e){return e},makeConnection:function(e,t,i){var n=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:n,request:e,callback:t,caller:i}),0===util.ScriptNodeDataSource._nPending&&(util.ScriptNodeDataSource.callbacks=[],util.ScriptNodeDataSource._nId=0);var s=util.ScriptNodeDataSource._nId;util.ScriptNodeDataSource._nId++;var o=this;util.ScriptNodeDataSource.callbacks[s]=function(r){"ignoreStaleResponses"===o.asyncMode&&s!==util.ScriptNodeDataSource.callbacks.length-1||(o.responseType===DS.TYPE_UNKNOWN&&(YAHOO.lang.isArray(r)?o.responseType=DS.TYPE_JSARRAY:r.nodeType&&9==r.nodeType?o.responseType=DS.TYPE_XML:r.nodeName&&"table"==r.nodeName.toLowerCase()?o.responseType=DS.TYPE_HTMLTABLE:YAHOO.lang.isObject(r)?o.responseType=DS.TYPE_JSON:YAHOO.lang.isString(r)&&(o.responseType=DS.TYPE_TEXT)),o.handleResponse(e,r,t,i,n)),delete util.ScriptNodeDataSource.callbacks[s]},util.ScriptNodeDataSource._nPending++;var r=this.liveData+e+this.generateRequestCallback(s);return r=this.doBeforeGetScriptNode(r),this.getUtility.script(r,{autopurge:!0,onsuccess:util.ScriptNodeDataSource._bumpPendingDown,onfail:util.ScriptNodeDataSource._bumpPendingDown}),n}}),lang.augmentObject(util.ScriptNodeDataSource,DS),lang.augmentObject(util.ScriptNodeDataSource,{_nId:0,_nPending:0,callbacks:[]}),util.XHRDataSource=function(e,t){this.dataType=DS.TYPE_XHR,this.connMgr=this.connMgr||util.Connect,e=e||"",util.XHRDataSource.superclass.constructor.call(this,e,t)},lang.extend(util.XHRDataSource,DS,{connMgr:null,connXhrMode:"allowAll",connMethodPost:!1,connTimeout:0,makeConnection:function(e,t,i){var n=DS._nTransactionId++;this.fireEvent("requestEvent",{tId:n,request:e,callback:t,caller:i});var s=this.connMgr,o=this._oQueue,r={success:function(s){if(s&&"ignoreStaleResponses"==this.connXhrMode&&s.tId!=o.conn.tId)return null;if(!s)return this.fireEvent("dataErrorEvent",{request:e,callback:t,caller:i,message:DS.ERROR_DATANULL}),DS.issueCallback(t,[e,{error:!0}],!0,i),null;if(this.responseType===DS.TYPE_UNKNOWN){var r=s.getResponseHeader?s.getResponseHeader["Content-Type"]:null;r&&(r.indexOf("text/xml")>-1?this.responseType=DS.TYPE_XML:r.indexOf("application/json")>-1?this.responseType=DS.TYPE_JSON:r.indexOf("text/plain")>-1&&(this.responseType=DS.TYPE_TEXT))}this.handleResponse(e,s,t,i,n)},failure:function(n){return this.fireEvent("dataErrorEvent",{request:e,callback:t,caller:i,message:DS.ERROR_DATAINVALID}),lang.isString(this.liveData)&&lang.isString(e)&&this.liveData.lastIndexOf("?")!==this.liveData.length-1&&e.indexOf("?"),(n=n||{}).error=!0,DS.issueCallback(t,[e,n],!0,i),null},scope:this};if(lang.isNumber(this.connTimeout)&&(r.timeout=this.connTimeout),"cancelStaleRequests"==this.connXhrMode&&o.conn&&s.abort&&(s.abort(o.conn),o.conn=null),s&&s.asyncRequest){var a=this.liveData,l=this.connMethodPost,c=l?"POST":"GET",d=l||!lang.isValue(e)?a:a+e,h=l?e:null;if("queueRequests"!=this.connXhrMode)o.conn=s.asyncRequest(c,d,r,h);else if(o.conn){var u=o.requests;u.push({request:e,callback:r}),o.interval||(o.interval=setInterval((function(){s.isCallInProgress(o.conn)||(u.length>0?(d=l||!lang.isValue(u[0].request)?a:a+u[0].request,h=l?u[0].request:null,o.conn=s.asyncRequest(c,d,u[0].callback,h),u.shift()):(clearInterval(o.interval),o.interval=null))}),50))}else o.conn=s.asyncRequest(c,d,r,h)}else DS.issueCallback(t,[e,{error:!0}],!0,i);return n}}),lang.augmentObject(util.XHRDataSource,DS),util.DataSource=function(e,t){var i=(t=t||{}).dataType;if(i){if(i==DS.TYPE_LOCAL)return lang.augmentObject(util.DataSource,util.LocalDataSource),new util.LocalDataSource(e,t);if(i==DS.TYPE_XHR)return lang.augmentObject(util.DataSource,util.XHRDataSource),new util.XHRDataSource(e,t);if(i==DS.TYPE_SCRIPTNODE)return lang.augmentObject(util.DataSource,util.ScriptNodeDataSource),new util.ScriptNodeDataSource(e,t);if(i==DS.TYPE_JSFUNCTION)return lang.augmentObject(util.DataSource,util.FunctionDataSource),new util.FunctionDataSource(e,t)}return YAHOO.lang.isString(e)?(lang.augmentObject(util.DataSource,util.XHRDataSource),new util.XHRDataSource(e,t)):YAHOO.lang.isFunction(e)?(lang.augmentObject(util.DataSource,util.FunctionDataSource),new util.FunctionDataSource(e,t)):(lang.augmentObject(util.DataSource,util.LocalDataSource),new util.LocalDataSource(e,t))},lang.augmentObject(util.DataSource,DS)})(),YAHOO.util.Number={format:function(e,t){var i=YAHOO.lang;if(!i.isValue(e)||""===e)return"";if(t=t||{},i.isNumber(e)||(e*=1),i.isNumber(e)){var n,s=e<0,o=e+"",r=t.decimalSeparator?t.decimalSeparator:".";if(i.isNumber(t.decimalPlaces)){var a=t.decimalPlaces,l=Math.pow(10,a);if(n=(o=Math.round(e*l)/l+"").lastIndexOf("."),a>0)for(n<0?n=(o+=r).length-1:"."!==r&&(o=o.replace(".",r));o.length-1-n<a;)o+="0"}if(t.thousandsSeparator){var c=t.thousandsSeparator;n=(n=o.lastIndexOf(r))>-1?n:o.length;for(var d=o.substring(n),h=-1,u=n;u>0;u--)++h%3==0&&u!==n&&(!s||u>1)&&(d=c+d),d=o.charAt(u-1)+d;o=d}return o=t.prefix?t.prefix+o:o,t.suffix?o+t.suffix:o}return e}},xPad=function(e,t,i){for(void 0===i&&(i=10);parseInt(e,10)<i&&i>1;i/=10)e=t.toString()+e;return e.toString()},Dt={formats:{a:function(e,t){return t.a[e.getDay()]},A:function(e,t){return t.A[e.getDay()]},b:function(e,t){return t.b[e.getMonth()]},B:function(e,t){return t.B[e.getMonth()]},C:function(e){return xPad(parseInt(e.getFullYear()/100,10),0)},d:["getDate","0"],e:["getDate"," "],g:function(e){return xPad(parseInt(Dt.formats.G(e)%100,10),0)},G:function(e){var t=e.getFullYear(),i=parseInt(Dt.formats.V(e),10),n=parseInt(Dt.formats.W(e),10);return n>i?t++:0===n&&i>=52&&t--,t},H:["getHours","0"],I:function(e){var t=e.getHours()%12;return xPad(0===t?12:t,0)},j:function(e){var t=new Date(e.getFullYear()+"/1/1 GMT"),i=new Date(e.getFullYear()+"/"+(e.getMonth()+1)+"/"+e.getDate()+" GMT"),n=parseInt((i-t)/6e4/60/24,10)+1;return xPad(n,0,100)},k:["getHours"," "],l:function(e){var t=e.getHours()%12;return xPad(0===t?12:t," ")},m:function(e){return xPad(e.getMonth()+1,0)},M:["getMinutes","0"],p:function(e,t){return t.p[e.getHours()>=12?1:0]},P:function(e,t){return t.P[e.getHours()>=12?1:0]},s:function(e,t){return parseInt(e.getTime()/1e3,10)},S:["getSeconds","0"],u:function(e){var t=e.getDay();return 0===t?7:t},U:function(e){var t=parseInt(Dt.formats.j(e),10),i=6-e.getDay(),n=parseInt((t+i)/7,10);return xPad(n,0)},V:function(e){var t=parseInt(Dt.formats.W(e),10),i=new Date(e.getFullYear()+"/1/1").getDay(),n=t+(i>4||i<=1?0:1);return 53===n&&new Date(e.getFullYear()+"/12/31").getDay()<4?n=1:0===n&&(n=Dt.formats.V(new Date(e.getFullYear()-1+"/12/31"))),xPad(n,0)},w:"getDay",W:function(e){var t=parseInt(Dt.formats.j(e),10),i=7-Dt.formats.u(e),n=parseInt((t+i)/7,10);return xPad(n,0,10)},y:function(e){return xPad(e.getFullYear()%100,0)},Y:"getFullYear",z:function(e){var t=e.getTimezoneOffset();return(t>0?"-":"+")+xPad(parseInt(Math.abs(t/60),10),0)+xPad(Math.abs(t%60),0)},Z:function(e){var t=e.toString().replace(/^.*:\d\d( GMT[+-]\d+)? \(?([A-Za-z ]+)\)?\d*$/,"$2").replace(/[a-z ]/g,"");return t.length>4&&(t=Dt.formats.z(e)),t},"%":function(e){return"%"}},aggregates:{c:"locale",D:"%m/%d/%y",F:"%Y-%m-%d",h:"%b",n:"\n",r:"locale",R:"%H:%M",t:"\t",T:"%H:%M:%S",x:"locale",X:"locale"},format:function(e,t,i){if(t=t||{},!(e instanceof Date))return YAHOO.lang.isValue(e)?e:"";var n=t.format||"%m/%d/%Y";"YYYY/MM/DD"===n?n="%Y/%m/%d":"DD/MM/YYYY"===n?n="%d/%m/%Y":"MM/DD/YYYY"===n&&(n="%m/%d/%Y"),(i=i||"en")in YAHOO.util.DateLocale||(i=i.replace(/-[a-zA-Z]+$/,"")in YAHOO.util.DateLocale?i.replace(/-[a-zA-Z]+$/,""):"en");for(var s=YAHOO.util.DateLocale[i],o=function(e,t){var i=Dt.aggregates[t];return"locale"===i?s[t]:i},r=function(t,i){var n=Dt.formats[i];return"string"==typeof n?e[n]():"function"==typeof n?n.call(e,e,s):"object"==typeof n&&"string"==typeof n[0]?xPad(e[n[0]](),n[1]):i};n.match(/%[cDFhnrRtTxX]/);)n=n.replace(/%([cDFhnrRtTxX])/g,o);var a=n.replace(/%([aAbBCdegGHIjklmMpPsSuUVwWyYzZ%])/g,r);return o=r=void 0,a}},YAHOO.namespace("YAHOO.util"),YAHOO.util.Date=Dt,YAHOO.util.DateLocale={a:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],A:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],b:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],B:["January","February","March","April","May","June","July","August","September","October","November","December"],c:"%a %d %b %Y %T %Z",p:["AM","PM"],P:["am","pm"],r:"%I:%M:%S %p",x:"%d/%m/%y",X:"%T"},YAHOO.util.DateLocale.en=YAHOO.lang.merge(YAHOO.util.DateLocale,{}),YAHOO.util.DateLocale["en-US"]=YAHOO.lang.merge(YAHOO.util.DateLocale.en,{c:"%a %d %b %Y %I:%M:%S %p %Z",x:"%m/%d/%Y",X:"%I:%M:%S %p"}),YAHOO.util.DateLocale["en-GB"]=YAHOO.lang.merge(YAHOO.util.DateLocale.en,{r:"%l:%M:%S %P %Z"}),YAHOO.util.DateLocale["en-AU"]=YAHOO.lang.merge(YAHOO.util.DateLocale.en),YAHOO.register("datasource",YAHOO.util.DataSource,{version:"@VERSION@",build:"@BUILD@"})},4711:()=>{if(void 0===e||!e)var e={};var t,i,n;e.namespace=function(){var t,i,n,s=arguments,o=null;for(t=0;t<s.length;t+=1)for(n=(""+s[t]).split("."),o=e,i="YAHOO"==n[0]?1:0;i<n.length;i+=1)o[n[i]]=o[n[i]]||{},o=o[n[i]];return o},e.log=function(t,i,n){var s=e.widget.Logger;return!(!s||!s.log)&&s.log(t,i,n)},e.register=function(t,i,n){var s,o,r,a,l,c=e.env.modules;for(c[t]||(c[t]={versions:[],builds:[]}),s=c[t],o=n.version,r=n.build,a=e.env.listeners,s.name=t,s.version=o,s.build=r,s.versions.push(o),s.builds.push(r),s.mainClass=i,l=0;l<a.length;l+=1)a[l](s);i?(i.VERSION=o,i.BUILD=r):e.log("mainClass is undefined for module "+t,"warn")},e.env=e.env||{modules:[],listeners:[]},e.env.getVersion=function(t){return e.env.modules[t]||null},e.env.ua=(i={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:0},n=navigator.userAgent,/KHTML/.test(n)&&(i.webkit=1),(t=n.match(/AppleWebKit\/([^\s]*)/))&&t[1]&&(i.webkit=parseFloat(t[1]),/ Mobile\//.test(n)?i.mobile="Apple":(t=n.match(/NokiaN[^\/]*/))&&(i.mobile=t[0]),(t=n.match(/AdobeAIR\/([^\s]*)/))&&(i.air=t[0])),i.webkit||((t=n.match(/Opera[\s\/]([^\s]*)/))&&t[1]?(i.opera=parseFloat(t[1]),(t=n.match(/Opera Mini[^;]*/))&&(i.mobile=t[0])):(t=n.match(/MSIE\s([^;]*)/))&&t[1]?i.ie=parseFloat(t[1]):(t=n.match(/Gecko\/([^\s]*)/))&&(i.gecko=1,(t=n.match(/rv:([^\s\)]*)/))&&t[1]&&(i.gecko=parseFloat(t[1])))),(t=n.match(/Caja\/([^\s]*)/))&&t[1]&&(i.caja=parseFloat(t[1])),i),function(){if(e.namespace("util","widget","example"),"undefined"!=typeof YAHOO_config){var t,i=YAHOO_config.listener,n=e.env.listeners,s=!0;if(i){for(t=0;t<n.length;t+=1)if(n[t]==i){s=!1;break}s&&n.push(i)}}}(),e.lang=e.lang||{},function(){var t=e.lang,i=Object.prototype,n=["toString","valueOf"],s={isArray:function(e){return"[object Array]"===i.toString.apply(e)},isBoolean:function(e){return"boolean"==typeof e},isFunction:function(e){return"[object Function]"===i.toString.apply(e)},isNull:function(e){return null===e},isNumber:function(e){return"number"==typeof e&&isFinite(e)},isObject:function(e){return e&&("object"==typeof e||t.isFunction(e))||!1},isString:function(e){return"string"==typeof e},isUndefined:function(e){return void 0===e},_IEEnumFix:e.env.ua.ie?function(e,s){var o,r,a;for(o=0;o<n.length;o+=1)a=s[r=n[o]],t.isFunction(a)&&a!=i[r]&&(e[r]=a)}:function(){},extend:function(e,n,s){if(!n||!e)throw new Error("extend failed, please check that all dependencies are included.");var o,r=function(){};if(r.prototype=n.prototype,e.prototype=new r,e.prototype.constructor=e,e.superclass=n.prototype,n.prototype.constructor==i.constructor&&(n.prototype.constructor=n),s){for(o in s)t.hasOwnProperty(s,o)&&(e.prototype[o]=s[o]);t._IEEnumFix(e.prototype,s)}},augmentObject:function(e,i){if(!i||!e)throw new Error("Absorb failed, verify dependencies.");var n,s,o=arguments,r=o[2];if(r&&!0!==r)for(n=2;n<o.length;n+=1)e[o[n]]=i[o[n]];else{for(s in i)!r&&s in e||(e[s]=i[s]);t._IEEnumFix(e,i)}},augmentProto:function(e,i){if(!i||!e)throw new Error("Augment failed, verify dependencies.");var n,s=[e.prototype,i.prototype];for(n=2;n<arguments.length;n+=1)s.push(arguments[n]);t.augmentObject.apply(this,s)},dump:function(e,i){var n,s,o=[],r="{...}";if(!t.isObject(e))return e+"";if(e instanceof Date||"nodeType"in e&&"tagName"in e)return e;if(t.isFunction(e))return"f(){...}";if(i=t.isNumber(i)?i:3,t.isArray(e)){for(o.push("["),n=0,s=e.length;n<s;n+=1)t.isObject(e[n])?o.push(i>0?t.dump(e[n],i-1):r):o.push(e[n]),o.push(", ");o.length>1&&o.pop(),o.push("]")}else{for(n in o.push("{"),e)t.hasOwnProperty(e,n)&&(o.push(n+" => "),t.isObject(e[n])?o.push(i>0?t.dump(e[n],i-1):r):o.push(e[n]),o.push(", "));o.length>1&&o.pop(),o.push("}")}return o.join("")},substitute:function(e,n,s){for(var o,r,a,l,c,d,h,u,p=[];!((o=e.lastIndexOf("{"))<0||o+1>=(r=e.indexOf("}",o)));)d=null,(a=(l=h=e.substring(o+1,r)).indexOf(" "))>-1&&(d=l.substring(a+1),l=l.substring(0,a)),c=n[l],s&&(c=s(l,c,d)),t.isObject(c)?t.isArray(c)?c=t.dump(c,parseInt(d,10)):((u=(d=d||"").indexOf("dump"))>-1&&(d=d.substring(4)),c=c.toString===i.toString||u>-1?t.dump(c,parseInt(d,10)):c.toString()):t.isString(c)||t.isNumber(c)||(c="~-"+p.length+"-~",p[p.length]=h),e=e.substring(0,o)+c+e.substring(r+1);for(o=p.length-1;o>=0;o-=1)e=e.replace(new RegExp("~-"+o+"-~"),"{"+p[o]+"}","g");return e},trim:function(e){try{return e.replace(/^\s+|\s+$/g,"")}catch(t){return e}},merge:function(){var e,i={},n=arguments,s=n.length;for(e=0;e<s;e+=1)t.augmentObject(i,n[e],!0);return i},later:function(e,i,n,s,o){e=e||0,i=i||{};var r,a,l=n,c=s;if(t.isString(n)&&(l=i[n]),!l)throw new TypeError("method undefined");return t.isArray(c)||(c=[s]),r=function(){l.apply(i,c)},a=o?setInterval(r,e):setTimeout(r,e),{interval:o,cancel:function(){this.interval?clearInterval(a):clearTimeout(a)}}},isValue:function(e){return t.isObject(e)||t.isString(e)||t.isNumber(e)||t.isBoolean(e)}};t.hasOwnProperty=i.hasOwnProperty?function(e,t){return e&&e.hasOwnProperty(t)}:function(e,i){return!t.isUndefined(e[i])&&e.constructor.prototype[i]!==e[i]},s.augmentObject(t,s,!0),e.util.Lang=t,t.augment=t.augmentProto,e.augment=t.augmentProto,e.extend=t.extend}(),e.register("yahoo",e,{version:"@VERSION@",build:"@BUILD@"}),function(){e.env._id_counter=e.env._id_counter||0;var t=e.util,i=e.lang,n=e.env.ua,s=e.lang.trim,o={},r={},a=/^t(?:able|d|h)$/i,l=/color$/i,c=window.document,d=c.documentElement,h="ownerDocument",u="defaultView",p="documentElement",f="compatMode",g="offsetLeft",m="offsetTop",v="parentNode",_="nodeType",y="tagName",b="getBoundingClientRect",w="getComputedStyle",x="currentStyle",k="CSS1Compat",C="BackCompat",E="class",S="className",T="",O=" ",A="position",D="relative",P="left",j="top",I="medium",N="borderLeftWidth",L="borderTopWidth",H=n.opera,M=n.webkit,R=n.gecko,F=n.ie;t.Dom={CUSTOM_ATTRIBUTES:d.hasAttribute?{htmlFor:"for",className:E}:{for:"htmlFor",class:S},get:function(i){var n,s,o,r,a;if(i){if(i[_]||i.item)return i;if("string"==typeof i){if(n=i,(i=c.getElementById(i))&&i.id===n)return i;if(i&&c.all)for(i=null,r=0,a=(s=c.all[n]).length;r<a;++r)if(s[r].id===n)return s[r];return i}if(e.util.Element&&i instanceof e.util.Element&&(i=i.get("element")),"length"in i){for(o=[],r=0,a=i.length;r<a;++r)o[o.length]=t.Dom.get(i[r]);return o}return i}return null},getComputedStyle:function(e,i){return window[w]?e[h][u][w](e,null)[i]:e[x]?t.Dom.IE_ComputedStyle.get(e,i):void 0},getStyle:function(e,i){return t.Dom.batch(e,t.Dom._getStyle,i)},_getStyle:window[w]?function(e,i){i="float"===i?i="cssFloat":t.Dom._toCamel(i);var n,s=e.style[i];return s||(n=e[h][u][w](e,null))&&(s=n[i]),s}:d[x]?function(e,i){var n;switch(i){case"opacity":n=100;try{n=e.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(t){try{n=e.filters("alpha").opacity}catch(e){}}return n/100;case"float":i="styleFloat";default:return i=t.Dom._toCamel(i),n=e[x]?e[x][i]:null,e.style[i]||n}}:void 0,setStyle:function(e,i,n){t.Dom.batch(e,t.Dom._setStyle,{prop:i,val:n})},_setStyle:F?function(e,n){var s=t.Dom._toCamel(n.prop),o=n.val;if(e)switch(s){case"opacity":i.isString(e.style.filter)&&(e.style.filter="alpha(opacity="+100*o+")",e[x]&&e[x].hasLayout||(e.style.zoom=1));break;case"float":s="styleFloat";default:e.style[s]=o}}:function(e,i){var n=t.Dom._toCamel(i.prop),s=i.val;e&&("float"==n&&(n="cssFloat"),e.style[n]=s)},getXY:function(e){return t.Dom.batch(e,t.Dom._getXY)},_canPosition:function(e){return"none"!==t.Dom._getStyle(e,"display")&&t.Dom._inDoc(e)},_getXY:c[p][b]?function(e){var i,s,o,r,a,l,c,d,u,g=Math.floor,m=!1;return t.Dom._canPosition(e)&&(o=e[b](),r=e[h],i=t.Dom.getDocumentScrollLeft(r),s=t.Dom.getDocumentScrollTop(r),m=[g(o[P]),g(o[j])],F&&n.ie<8&&(a=2,l=2,c=r[f],6===n.ie&&c!==C&&(a=0,l=0),c===C&&(d=Y(r[p],N),u=Y(r[p],L),d!==I&&(a=parseInt(d,10)),u!==I&&(l=parseInt(u,10))),m[0]-=a,m[1]-=l),(s||i)&&(m[0]+=i,m[1]+=s),m[0]=g(m[0]),m[1]=g(m[1])),m}:function(e){var i,s,o,r,a,l=!1,c=e;if(t.Dom._canPosition(e)){for(l=[e[g],e[m]],i=t.Dom.getDocumentScrollLeft(e[h]),s=t.Dom.getDocumentScrollTop(e[h]),a=!!(R||n.webkit>519);c=c.offsetParent;)l[0]+=c[g],l[1]+=c[m],a&&(l=t.Dom._calcBorders(c,l));if("fixed"!==t.Dom._getStyle(e,A)){for(c=e;(c=c[v])&&c[y];)o=c.scrollTop,r=c.scrollLeft,R&&"visible"!==t.Dom._getStyle(c,"overflow")&&(l=t.Dom._calcBorders(c,l)),(o||r)&&(l[0]-=r,l[1]-=o);l[0]+=i,l[1]+=s}else H?(l[0]-=i,l[1]-=s):(M||R)&&(l[0]+=i,l[1]+=s);l[0]=Math.floor(l[0]),l[1]=Math.floor(l[1])}return l},getX:function(e){return t.Dom.batch(e,(function(e){return t.Dom.getXY(e)[0]}),t.Dom,!0)},getY:function(e){return t.Dom.batch(e,(function(e){return t.Dom.getXY(e)[1]}),t.Dom,!0)},setXY:function(e,i,n){t.Dom.batch(e,t.Dom._setXY,{pos:i,noRetry:n})},_setXY:function(e,i){var n,s,o=t.Dom._getStyle(e,A),r=t.Dom.setStyle,a=i.pos,l=i.noRetry,c=[parseInt(t.Dom.getComputedStyle(e,P),10),parseInt(t.Dom.getComputedStyle(e,j),10)];if("static"==o&&r(e,A,o=D),n=t.Dom._getXY(e),!a||!1===n)return!1;isNaN(c[0])&&(c[0]=o==D?0:e[g]),isNaN(c[1])&&(c[1]=o==D?0:e[m]),null!==a[0]&&r(e,P,a[0]-n[0]+c[0]+"px"),null!==a[1]&&r(e,j,a[1]-n[1]+c[1]+"px"),l||(s=t.Dom._getXY(e),(null!==a[0]&&s[0]!=a[0]||null!==a[1]&&s[1]!=a[1])&&t.Dom._setXY(e,{pos:a,noRetry:!0}))},setX:function(e,i){t.Dom.setXY(e,[i,null])},setY:function(e,i){t.Dom.setXY(e,[null,i])},getRegion:function(e){return t.Dom.batch(e,(function(e){var i=!1;return t.Dom._canPosition(e)&&(i=t.Region.getRegion(e)),i}),t.Dom,!0)},getClientWidth:function(){return t.Dom.getViewportWidth()},getClientHeight:function(){return t.Dom.getViewportHeight()},getElementsByClassName:function(e,n,s,o,r,a){if(e=i.trim(e),n=n||"*",!(s=s?t.Dom.get(s):c))return[];for(var l=[],d=s.getElementsByTagName(n),h=t.Dom.hasClass,u=0,p=d.length;u<p;++u)h(d[u],e)&&(l[l.length]=d[u]);return o&&t.Dom.batch(l,o,r,a),l},hasClass:function(e,i){return t.Dom.batch(e,t.Dom._hasClass,i)},_hasClass:function(e,i){var n,s=!1;return e&&i&&(n=t.Dom._getAttribute(e,S)||T,s=i.exec?i.test(n):i&&(O+n+O).indexOf(O+i+O)>-1),s},addClass:function(e,i){return t.Dom.batch(e,t.Dom._addClass,i)},_addClass:function(e,i){var n,o=!1;return e&&i&&(n=t.Dom._getAttribute(e,S)||T,t.Dom._hasClass(e,i)||(t.Dom.setAttribute(e,S,s(n+O+i)),o=!0)),o},removeClass:function(e,i){return t.Dom.batch(e,t.Dom._removeClass,i)},_removeClass:function(e,i){var n,o,r,a=!1;return e&&i&&(n=t.Dom._getAttribute(e,S)||T,t.Dom.setAttribute(e,S,n.replace(t.Dom._getClassRegex(i),T)),n!==(o=t.Dom._getAttribute(e,S))&&(t.Dom.setAttribute(e,S,s(o)),a=!0,""===t.Dom._getAttribute(e,S)&&(r=e.hasAttribute&&e.hasAttribute(E)?E:S,e.removeAttribute(r)))),a},replaceClass:function(e,i,n){return t.Dom.batch(e,t.Dom._replaceClass,{from:i,to:n})},_replaceClass:function(e,i){var n,o,r,a,l=!1;return e&&i&&(o=i.from,(r=i.to)?o?o!==r&&(a=t.Dom._getAttribute(e,S)||T,(n=(O+a.replace(t.Dom._getClassRegex(o),O+r)).split(t.Dom._getClassRegex(r))).splice(1,0,O+r),t.Dom.setAttribute(e,S,s(n.join(T))),l=!0):l=t.Dom._addClass(e,i.to):l=!1),l},generateId:function(i,n){n=n||"yui-gen";var s=function(i){if(i&&i.id)return i.id;var s=n+e.env._id_counter++;if(i){if(i[h]&&i[h].getElementById(s))return t.Dom.generateId(i,s+n);i.id=s}return s};return t.Dom.batch(i,s,t.Dom,!0)||s.apply(t.Dom,arguments)},isAncestor:function(e,i){e=t.Dom.get(e),i=t.Dom.get(i);var n=!1;return e&&i&&e[_]&&i[_]&&(e.contains&&e!==i?n=e.contains(i):e.compareDocumentPosition&&(n=!!(16&e.compareDocumentPosition(i)))),n},inDocument:function(e,i){return t.Dom._inDoc(t.Dom.get(e),i)},_inDoc:function(e,i){var n=!1;return e&&e[y]&&(i=i||e[h],n=t.Dom.isAncestor(i[p],e)),n},getElementsBy:function(e,i,n,s,o,r,a){if(i=i||"*",!(n=n?t.Dom.get(n):c))return[];for(var l=[],d=n.getElementsByTagName(i),h=0,u=d.length;h<u;++h)if(e(d[h])){if(a){l=d[h];break}l[l.length]=d[h]}return s&&t.Dom.batch(l,s,o,r),l},getElementBy:function(e,i,n){return t.Dom.getElementsBy(e,i,n,null,null,null,!0)},batch:function(e,i,n,s){var o=[],r=s?n:window;if(!(e=e&&(e[y]||e.item)?e:t.Dom.get(e))||!i)return!1;if(e[y]||void 0===e.length)return i.call(r,e,n);for(var a=0;a<e.length;++a)o[o.length]=i.call(r,e[a],n);return o},getDocumentHeight:function(){var e=c[f]!=k||M?c.body.scrollHeight:d.scrollHeight;return Math.max(e,t.Dom.getViewportHeight())},getDocumentWidth:function(){var e=c[f]!=k||M?c.body.scrollWidth:d.scrollWidth;return Math.max(e,t.Dom.getViewportWidth())},getViewportHeight:function(){var e=self.innerHeight,t=c[f];return!t&&!F||H||(e=t==k?d.clientHeight:c.body.clientHeight),e},getViewportWidth:function(){var e=self.innerWidth,t=c[f];return(t||F)&&(e=t==k?d.clientWidth:c.body.clientWidth),e},getAncestorBy:function(e,i){for(;e=e[v];)if(t.Dom._testElement(e,i))return e;return null},getAncestorByClassName:function(e,i){return(e=t.Dom.get(e))?t.Dom.getAncestorBy(e,(function(e){return t.Dom.hasClass(e,i)})):null},getAncestorByTagName:function(e,i){return(e=t.Dom.get(e))?t.Dom.getAncestorBy(e,(function(e){return e[y]&&e[y].toUpperCase()==i.toUpperCase()})):null},getPreviousSiblingBy:function(e,i){for(;e;)if(e=e.previousSibling,t.Dom._testElement(e,i))return e;return null},getPreviousSibling:function(e){return(e=t.Dom.get(e))?t.Dom.getPreviousSiblingBy(e):null},getNextSiblingBy:function(e,i){for(;e;)if(e=e.nextSibling,t.Dom._testElement(e,i))return e;return null},getNextSibling:function(e){return(e=t.Dom.get(e))?t.Dom.getNextSiblingBy(e):null},getFirstChildBy:function(e,i){return(t.Dom._testElement(e.firstChild,i)?e.firstChild:null)||t.Dom.getNextSiblingBy(e.firstChild,i)},getFirstChild:function(e,i){return(e=t.Dom.get(e))?t.Dom.getFirstChildBy(e):null},getLastChildBy:function(e,i){return e?(t.Dom._testElement(e.lastChild,i)?e.lastChild:null)||t.Dom.getPreviousSiblingBy(e.lastChild,i):null},getLastChild:function(e){return e=t.Dom.get(e),t.Dom.getLastChildBy(e)},getChildrenBy:function(e,i){var n=t.Dom.getFirstChildBy(e,i),s=n?[n]:[];return t.Dom.getNextSiblingBy(n,(function(e){return i&&!i(e)||(s[s.length]=e),!1})),s},getChildren:function(e){return e=t.Dom.get(e),t.Dom.getChildrenBy(e)},getDocumentScrollLeft:function(e){return e=e||c,Math.max(e[p].scrollLeft,e.body.scrollLeft)},getDocumentScrollTop:function(e){return e=e||c,Math.max(e[p].scrollTop,e.body.scrollTop)},insertBefore:function(e,i){return e=t.Dom.get(e),i=t.Dom.get(i),e&&i&&i[v]?i[v].insertBefore(e,i):null},insertAfter:function(e,i){return e=t.Dom.get(e),i=t.Dom.get(i),e&&i&&i[v]?i.nextSibling?i[v].insertBefore(e,i.nextSibling):i[v].appendChild(e):null},getClientRegion:function(){var e=t.Dom.getDocumentScrollTop(),i=t.Dom.getDocumentScrollLeft(),n=t.Dom.getViewportWidth()+i,s=t.Dom.getViewportHeight()+e;return new t.Region(e,n,s,i)},setAttribute:function(e,i,n){t.Dom.batch(e,t.Dom._setAttribute,{attr:i,val:n})},_setAttribute:function(e,i){var n=t.Dom._toCamel(i.attr),s=i.val;e&&e.setAttribute&&(n=t.Dom.CUSTOM_ATTRIBUTES[n]||n,e.setAttribute(n,s))},getAttribute:function(e,i){return t.Dom.batch(e,t.Dom._getAttribute,i)},_getAttribute:function(e,i){var n;return i=t.Dom.CUSTOM_ATTRIBUTES[i]||i,e&&e.getAttribute&&(n=e.getAttribute(i)),n},_toCamel:function(e){var t=o;return t[e]||(t[e]=-1===e.indexOf("-")?e:e.replace(/-([a-z])/gi,(function(e,t){return t.toUpperCase()})))},_getClassRegex:function(e){var i;return void 0!==e&&(e.exec?i=e:(i=r[e])||(e=e.replace(t.Dom._patterns.CLASS_RE_TOKENS,"\\$1"),i=r[e]=new RegExp("(?:^|\\s)"+e+"(?= |$)","g"))),i},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}])/g},_testElement:function(e,t){return e&&1==e[_]&&(!t||t(e))},_calcBorders:function(e,i){var n=parseInt(t.Dom[w](e,L),10)||0,s=parseInt(t.Dom[w](e,N),10)||0;return R&&a.test(e[y])&&(n=0,s=0),i[0]+=s,i[1]+=n,i}};var Y=t.Dom[w];n.opera&&(t.Dom[w]=function(e,i){var n=Y(e,i);return l.test(i)&&(n=t.Dom.Color.toRGB(n)),n}),n.webkit&&(t.Dom[w]=function(e,t){var i=Y(e,t);return"rgba(0, 0, 0, 0)"===i&&(i="transparent"),i})}(),e.util.Region=function(e,t,i,n){this.top=e,this.y=e,this[1]=e,this.right=t,this.bottom=i,this.left=n,this.x=n,this[0]=n,this.width=this.right-this.left,this.height=this.bottom-this.top},e.util.Region.prototype.contains=function(e){return e.left>=this.left&&e.right<=this.right&&e.top>=this.top&&e.bottom<=this.bottom},e.util.Region.prototype.getArea=function(){return(this.bottom-this.top)*(this.right-this.left)},e.util.Region.prototype.intersect=function(t){var i=Math.max(this.top,t.top),n=Math.min(this.right,t.right),s=Math.min(this.bottom,t.bottom),o=Math.max(this.left,t.left);return s>=i&&n>=o?new e.util.Region(i,n,s,o):null},e.util.Region.prototype.union=function(t){var i=Math.min(this.top,t.top),n=Math.max(this.right,t.right),s=Math.max(this.bottom,t.bottom),o=Math.min(this.left,t.left);return new e.util.Region(i,n,s,o)},e.util.Region.prototype.toString=function(){return"Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}"},e.util.Region.getRegion=function(t){var i=e.util.Dom.getXY(t),n=i[1],s=i[0]+t.offsetWidth,o=i[1]+t.offsetHeight,r=i[0];return new e.util.Region(n,s,o,r)},e.util.Point=function(t,i){e.lang.isArray(t)&&(i=t[1],t=t[0]),e.util.Point.superclass.constructor.call(this,i,t,i,t)},e.extend(e.util.Point,e.util.Region),function(){var t=e.util,i="clientTop",n="clientLeft",s="right",o="px",r="opacity",a="auto",l="borderLeftWidth",c="borderTopWidth",d="borderRightWidth",h="borderBottomWidth",u="style",p="currentStyle",f=/^width|height$/,g=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,m={get:function(e,i){var n=e[p][i];return i===r?t.Dom.getStyle(e,r):!n||n.indexOf&&n.indexOf(o)>-1?n:t.Dom.IE_COMPUTED[i]?t.Dom.IE_COMPUTED[i](e,i):g.test(n)?t.Dom.IE.ComputedStyle.getPixel(e,i):n},getOffset:function(e,t){var i,n=e[p][t],s=t.charAt(0).toUpperCase()+t.substr(1),r="offset"+s,l="pixel"+s,c="";return n==a?(void 0===(i=e[r])&&(c=0),c=i,f.test(t)&&(e[u][t]=i,e[r]>i&&(c=i-(e[r]-i)),e[u][t]=a)):(e[u][l]||e[u][t]||(e[u][t]=n),c=e[u][l]),c+o},getBorderWidth:function(e,t){var s=null;switch(e[p].hasLayout||(e[u].zoom=1),t){case c:s=e[i];break;case h:s=e.offsetHeight-e.clientHeight-e[i];break;case l:s=e[n];break;case d:s=e.offsetWidth-e.clientWidth-e[n]}return s+o},getPixel:function(e,t){var i,n=e[p][s],r=e[p][t];return e[u][s]=r,i=e[u].pixelRight,e[u][s]=n,i+o},getMargin:function(e,i){return e[p][i]==a?0+o:t.Dom.IE.ComputedStyle.getPixel(e,i)},getVisibility:function(e,t){for(var i;(i=e[p])&&"inherit"==i[t];)e=e.parentNode;return i?i[t]:"visible"},getColor:function(e,i){return t.Dom.Color.toRGB(e[p][i])||"transparent"},getBorderColor:function(e,i){var n=e[p],s=n[i]||n.color;return t.Dom.Color.toRGB(t.Dom.Color.toHex(s))}},v={};v.top=v.right=v.bottom=v.left=v.width=v.height=m.getOffset,v.color=m.getColor,v[c]=v[d]=v[h]=v[l]=m.getBorderWidth,v.marginTop=v.marginRight=v.marginBottom=v.marginLeft=m.getMargin,v.visibility=m.getVisibility,v.borderColor=v.borderTopColor=v.borderRightColor=v.borderBottomColor=v.borderLeftColor=m.getBorderColor,t.Dom.IE_COMPUTED=v,t.Dom.IE_ComputedStyle=m}(),function(){var t="toString",i=parseInt,n=RegExp,s=e.util;s.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(e){return s.Dom.Color.re_RGB.test(e)||(e=s.Dom.Color.toHex(e)),s.Dom.Color.re_hex.exec(e)&&(e="rgb("+[i(n.$1,16),i(n.$2,16),i(n.$3,16)].join(", ")+")"),e},toHex:function(e){if(e=s.Dom.Color.KEYWORDS[e]||e,s.Dom.Color.re_RGB.exec(e)){var i=1===n.$1.length?"0"+n.$1:Number(n.$1),o=1===n.$2.length?"0"+n.$2:Number(n.$2),r=1===n.$3.length?"0"+n.$3:Number(n.$3);e=[i[t](16),o[t](16),r[t](16)].join("")}return e.length<6&&(e=e.replace(s.Dom.Color.re_hex3,"$1$1")),"transparent"!==e&&e.indexOf("#")<0&&(e="#"+e),e.toLowerCase()}}}(),e.register("dom",e.util.Dom,{version:"@VERSION@",build:"@BUILD@"}),e.util.CustomEvent=function(t,i,n,s){this.type=t,this.scope=i||window,this.silent=n,this.signature=s||e.util.CustomEvent.LIST,this.subscribers=[],this.silent;var o="_YUICEOnSubscribe";t!==o&&(this.subscribeEvent=new e.util.CustomEvent(o,this,!0)),this.lastError=null},e.util.CustomEvent.LIST=0,e.util.CustomEvent.FLAT=1,e.util.CustomEvent.prototype={subscribe:function(t,i,n){if(!t)throw new Error("Invalid callback for subscriber to '"+this.type+"'");this.subscribeEvent&&this.subscribeEvent.fire(t,i,n),this.subscribers.push(new e.util.Subscriber(t,i,n))},unsubscribe:function(e,t){if(!e)return this.unsubscribeAll();for(var i=!1,n=0,s=this.subscribers.length;n<s;++n){var o=this.subscribers[n];o&&o.contains(e,t)&&(this._delete(n),i=!0)}return i},fire:function(){this.lastError=null;var t=this.subscribers.length;if(!t&&this.silent)return!0;var i,n=[].slice.call(arguments,0),s=!0;this.silent;var o=this.subscribers.slice(),r=e.util.Event.throwErrors;for(i=0;i<t;++i){var a=o[i];if(a){this.silent;var l=a.getScope(this.scope);if(this.signature==e.util.CustomEvent.FLAT){var c=null;n.length>0&&(c=n[0]);try{s=a.fn.call(l,c,a.obj)}catch(e){if(this.lastError=e,r)throw e}}else try{s=a.fn.call(l,this.type,n,a.obj)}catch(e){if(this.lastError=e,r)throw e}if(!1===s){this.silent;break}}}return!1!==s},unsubscribeAll:function(){var e,t=this.subscribers.length;for(e=t-1;e>-1;e--)this._delete(e);return this.subscribers=[],t},_delete:function(e){var t=this.subscribers[e];t&&(delete t.fn,delete t.obj),this.subscribers.splice(e,1)},toString:function(){return"CustomEvent: '"+this.type+"', context: "+this.scope}},e.util.Subscriber=function(t,i,n){this.fn=t,this.obj=e.lang.isUndefined(i)?null:i,this.overrideContext=n},e.util.Subscriber.prototype.getScope=function(e){return this.overrideContext?!0===this.overrideContext?this.obj:this.overrideContext:e},e.util.Subscriber.prototype.contains=function(e,t){return t?this.fn==e&&this.obj==t:this.fn==e},e.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }"},e.util.Event||(e.util.Event=function(){var t=!1,i=[],n=[],s=[],o=[],r=0,a=[],l=[],c=0,d={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9},h=e.env.ua.ie?"focusin":"focus",u=e.env.ua.ie?"focusout":"blur";return{POLL_RETRYS:2e3,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:e.env.ua.webkit,webkit:e.env.ua.webkit,isIE:e.env.ua.ie,_interval:null,_dri:null,DOMReady:!1,throwErrors:!1,startInterval:function(){if(!this._interval){var e=this;this._interval=setInterval((function(){e._tryPreloadAttach()}),this.POLL_INTERVAL)}},onAvailable:function(t,i,n,s,o){for(var l=e.lang.isString(t)?[t]:t,c=0;c<l.length;c+=1)a.push({id:l[c],fn:i,obj:n,overrideContext:s,checkReady:o});r=this.POLL_RETRYS,this.startInterval()},onContentReady:function(e,t,i,n){this.onAvailable(e,t,i,n,!0)},onDOMReady:function(e,t,i){this.DOMReady?setTimeout((function(){var n=window;i&&(n=!0===i?t:i),e.call(n,"DOMReady",[],t)}),0):this.DOMReadyEvent.subscribe(e,t,i)},_addListener:function(t,r,a,c,d,h){if(!a||!a.call)return!1;if(this._isValidCollection(t)){for(var u=!0,p=0,f=t.length;p<f;++p)u=this.on(t[p],r,a,c,d)&&u;return u}if(e.lang.isString(t)){var g=this.getEl(t);if(!g)return this.onAvailable(t,(function(){e.util.Event.on(t,r,a,c,d)})),!0;t=g}if(!t)return!1;if("unload"==r&&c!==this)return n[n.length]=[t,r,a,c,d],!0;var m=t;d&&(m=!0===d?c:d);var v=function(i){return a.call(m,e.util.Event.getEvent(i,t),c)},_=[t,r,a,v,m,c,d],y=i.length;if(i[y]=_,this.useLegacyEvent(t,r)){var b=this.getLegacyIndex(t,r);-1!=b&&t==s[b][0]||(b=s.length,l[t.id+r]=b,s[b]=[t,r,t["on"+r]],o[b]=[],t["on"+r]=function(t){e.util.Event.fireLegacyEvent(e.util.Event.getEvent(t),b)}),o[b].push(_)}else try{this._simpleAdd(t,r,v,h)}catch(e){return this.lastError=e,this.removeListener(t,r,a),!1}return!0},addListener:function(e,t,i,n,s){return this._addListener(e,t,i,n,s,!1)},addFocusListener:function(e,t,i,n){return this._addListener(e,h,t,i,n,!0)},removeFocusListener:function(e,t){return this.removeListener(e,h,t)},addBlurListener:function(e,t,i,n){return this._addListener(e,u,t,i,n,!0)},removeBlurListener:function(e,t){return this.removeListener(e,u,t)},fireLegacyEvent:function(e,t){for(var i,n,r,a,l,c=!0,d=0,h=(n=o[t].slice()).length;d<h;++d)(r=n[d])&&r[this.WFN]&&(a=r[this.ADJ_SCOPE],l=r[this.WFN].call(a,e),c=c&&l);return(i=s[t])&&i[2]&&i[2](e),c},getLegacyIndex:function(e,t){var i=this.generateId(e)+t;return void 0===l[i]?-1:l[i]},useLegacyEvent:function(e,t){return this.webkit&&this.webkit<419&&("click"==t||"dblclick"==t)},removeListener:function(e,t,s){var r,a,l;if("string"==typeof e)e=this.getEl(e);else if(this._isValidCollection(e)){var c=!0;for(r=e.length-1;r>-1;r--)c=this.removeListener(e[r],t,s)&&c;return c}if(!s||!s.call)return this.purgeElement(e,!1,t);if("unload"==t){for(r=n.length-1;r>-1;r--)if((l=n[r])&&l[0]==e&&l[1]==t&&l[2]==s)return n.splice(r,1),!0;return!1}var d=null,h=arguments[3];if(void 0===h&&(h=this._getCacheIndex(e,t,s)),h>=0&&(d=i[h]),!e||!d)return!1;if(this.useLegacyEvent(e,t)){var u=this.getLegacyIndex(e,t),p=o[u];if(p)for(r=0,a=p.length;r<a;++r)if((l=p[r])&&l[this.EL]==e&&l[this.TYPE]==t&&l[this.FN]==s){p.splice(r,1);break}}else try{this._simpleRemove(e,t,d[this.WFN],!1)}catch(e){return this.lastError=e,!1}return delete i[h][this.WFN],delete i[h][this.FN],i.splice(h,1),!0},getTarget:function(e,t){var i=e.target||e.srcElement;return this.resolveTextNode(i)},resolveTextNode:function(e){try{if(e&&3==e.nodeType)return e.parentNode}catch(e){}return e},getPageX:function(e){var t=e.pageX;return t||0===t||(t=e.clientX||0,this.isIE&&(t+=this._getScrollLeft())),t},getPageY:function(e){var t=e.pageY;return t||0===t||(t=e.clientY||0,this.isIE&&(t+=this._getScrollTop())),t},getXY:function(e){return[this.getPageX(e),this.getPageY(e)]},getRelatedTarget:function(e){var t=e.relatedTarget;return t||("mouseout"==e.type?t=e.toElement:"mouseover"==e.type&&(t=e.fromElement)),this.resolveTextNode(t)},getTime:function(e){if(!e.time){var t=(new Date).getTime();try{e.time=t}catch(e){return this.lastError=e,t}}return e.time},stopEvent:function(e){this.stopPropagation(e),this.preventDefault(e)},stopPropagation:function(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},preventDefault:function(e){e.preventDefault?e.preventDefault():e.returnValue=!1},getEvent:function(e,t){var i=e||window.event;if(!i)for(var n=this.getEvent.caller;n&&(!(i=n.arguments[0])||Event!=i.constructor);)n=n.caller;return i},getCharCode:function(t){var i=t.keyCode||t.charCode||0;return e.env.ua.webkit&&i in d&&(i=d[i]),i},_getCacheIndex:function(e,t,n){for(var s=0,o=i.length;s<o;s+=1){var r=i[s];if(r&&r[this.FN]==n&&r[this.EL]==e&&r[this.TYPE]==t)return s}return-1},generateId:function(e){var t=e.id;return t||(t="yuievtautoid-"+c,++c,e.id=t),t},_isValidCollection:function(e){try{return e&&"string"!=typeof e&&e.length&&!e.tagName&&!e.alert&&void 0!==e[0]}catch(e){return!1}},elCache:{},getEl:function(e){return"string"==typeof e?document.getElementById(e):e},clearCache:function(){},DOMReadyEvent:new e.util.CustomEvent("DOMReady",this),_load:function(i){if(!t){t=!0;var n=e.util.Event;n._ready(),n._tryPreloadAttach()}},_ready:function(t){var i=e.util.Event;i.DOMReady||(i.DOMReady=!0,i.DOMReadyEvent.fire(),i._simpleRemove(document,"DOMContentLoaded",i._ready))},_tryPreloadAttach:function(){if(0===a.length)return r=0,void(this._interval&&(clearInterval(this._interval),this._interval=null));if(!this.locked)if(!this.isIE||this.DOMReady){this.locked=!0;var e=!t;e||(e=r>0&&a.length>0);var i,n,s,o,l=[],c=function(e,t){var i=e;t.overrideContext&&(i=!0===t.overrideContext?t.obj:t.overrideContext),t.fn.call(i,t.obj)},d=[];for(i=0,n=a.length;i<n;i+=1)(s=a[i])&&((o=this.getEl(s.id))?s.checkReady?(t||o.nextSibling||!e)&&(d.push(s),a[i]=null):(c(o,s),a[i]=null):l.push(s));for(i=0,n=d.length;i<n;i+=1)s=d[i],c(this.getEl(s.id),s);if(r--,e){for(i=a.length-1;i>-1;i--)(s=a[i])&&s.id||a.splice(i,1);this.startInterval()}else this._interval&&(clearInterval(this._interval),this._interval=null);this.locked=!1}else this.startInterval()},purgeElement:function(t,i,n){var s,o,r=e.lang.isString(t)?this.getEl(t):t,a=this.getListeners(r,n);if(a)for(s=a.length-1;s>-1;s--){var l=a[s];this.removeListener(r,l.type,l.fn)}if(i&&r&&r.childNodes)for(s=0,o=r.childNodes.length;s<o;++s)this.purgeElement(r.childNodes[s],i,n)},getListeners:function(t,s){var o,r=[];o=s?"unload"===s?[n]:[i]:[i,n];for(var a=e.lang.isString(t)?this.getEl(t):t,l=0;l<o.length;l+=1){var c=o[l];if(c)for(var d=0,h=c.length;d<h;++d){var u=c[d];!u||u[this.EL]!==a||s&&s!==u[this.TYPE]||r.push({type:u[this.TYPE],fn:u[this.FN],obj:u[this.OBJ],adjust:u[this.OVERRIDE],scope:u[this.ADJ_SCOPE],index:d})}}return r.length?r:null},_unload:function(t){var o,r,a,l,c,d=e.util.Event,h=n.slice();for(o=0,l=n.length;o<l;++o)(a=h[o])&&(c=window,a[d.ADJ_SCOPE]&&(c=!0===a[d.ADJ_SCOPE]?a[d.UNLOAD_OBJ]:a[d.ADJ_SCOPE]),a[d.FN].call(c,d.getEvent(t,a[d.EL]),a[d.UNLOAD_OBJ]),h[o]=null);if(a=null,c=null,n=null,i){for(r=i.length-1;r>-1;r--)(a=i[r])&&d.removeListener(a[d.EL],a[d.TYPE],a[d.FN],r);a=null}s=null,d._simpleRemove(window,"unload",d._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var e=document.documentElement,t=document.body;return e&&(e.scrollTop||e.scrollLeft)?[e.scrollTop,e.scrollLeft]:t?[t.scrollTop,t.scrollLeft]:[0,0]},regCE:function(){},_simpleAdd:window.addEventListener?function(e,t,i,n){e.addEventListener(t,i,n)}:window.attachEvent?function(e,t,i,n){e.attachEvent("on"+t,i)}:function(){},_simpleRemove:window.removeEventListener?function(e,t,i,n){e.removeEventListener(t,i,n)}:window.detachEvent?function(e,t,i){e.detachEvent("on"+t,i)}:function(){}}}(),function(){var t=e.util.Event;if(t.on=t.addListener,t.onFocus=t.addFocusListener,t.onBlur=t.addBlurListener,t.isIE){e.util.Event.onDOMReady(e.util.Event._tryPreloadAttach,e.util.Event,!0);var i=document.createElement("p");t._dri=setInterval((function(){try{i.doScroll("left"),clearInterval(t._dri),t._dri=null,t._ready(),i=null}catch(e){}}),t.POLL_INTERVAL)}else t.webkit&&t.webkit<525?t._dri=setInterval((function(){var e=document.readyState;"loaded"!=e&&"complete"!=e||(clearInterval(t._dri),t._dri=null,t._ready())}),t.POLL_INTERVAL):t._simpleAdd(document,"DOMContentLoaded",t._ready);t._simpleAdd(window,"load",t._load),t._simpleAdd(window,"unload",t._unload),t._tryPreloadAttach()}()),e.util.EventProvider=function(){},e.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(e,t,i,n){this.__yui_events=this.__yui_events||{};var s=this.__yui_events[e];if(s)s.subscribe(t,i,n);else{this.__yui_subscribers=this.__yui_subscribers||{};var o=this.__yui_subscribers;o[e]||(o[e]=[]),o[e].push({fn:t,obj:i,overrideContext:n})}},unsubscribe:function(t,i,n){this.__yui_events=this.__yui_events||{};var s=this.__yui_events;if(!t){var o=!0;for(var r in s)e.lang.hasOwnProperty(s,r)&&(o=o&&s[r].unsubscribe(i,n));return o}var a=s[t];return!!a&&a.unsubscribe(i,n)},unsubscribeAll:function(e){return this.unsubscribe(e)},createEvent:function(t,i){this.__yui_events=this.__yui_events||{};var n=i||{},s=this.__yui_events;if(s[t]);else{var o=n.scope||this,r=n.silent,a=new e.util.CustomEvent(t,o,r,e.util.CustomEvent.FLAT);s[t]=a,n.onSubscribeCallback&&a.subscribeEvent.subscribe(n.onSubscribeCallback),this.__yui_subscribers=this.__yui_subscribers||{};var l=this.__yui_subscribers[t];if(l)for(var c=0;c<l.length;++c)a.subscribe(l[c].fn,l[c].obj,l[c].overrideContext)}return s[t]},fireEvent:function(e,t,i,n){this.__yui_events=this.__yui_events||{};var s=this.__yui_events[e];if(!s)return null;for(var o=[],r=1;r<arguments.length;++r)o.push(arguments[r]);return s.fire.apply(s,o)},hasEvent:function(e){return!(!this.__yui_events||!this.__yui_events[e])}},function(){var t=e.util.Event,i=e.lang;e.util.KeyListener=function(n,s,o,r){r||(r=e.util.KeyListener.KEYDOWN);var a=new e.util.CustomEvent("keyPressed");function l(i,n){if(s.shift||(s.shift=!1),s.alt||(s.alt=!1),s.ctrl||(s.ctrl=!1),i.shiftKey==s.shift&&i.altKey==s.alt&&i.ctrlKey==s.ctrl){var o,r=s.keys;if(e.lang.isArray(r)){for(var l=0;l<r.length;l++)if(r[l]==(o=t.getCharCode(i))){a.fire(o,i);break}}else r==(o=t.getCharCode(i))&&a.fire(o,i)}}this.enabledEvent=new e.util.CustomEvent("enabled"),this.disabledEvent=new e.util.CustomEvent("disabled"),i.isString(n)&&(n=document.getElementById(n)),i.isFunction(o)?a.subscribe(o):a.subscribe(o.fn,o.scope,o.correctScope),this.enable=function(){this.enabled||(t.on(n,r,l),this.enabledEvent.fire(s)),this.enabled=!0},this.disable=function(){this.enabled&&(t.removeListener(n,r,l),this.disabledEvent.fire(s)),this.enabled=!1},this.toString=function(){return"KeyListener ["+s.keys+"] "+n.tagName+(n.id?"["+n.id+"]":"")}};var n=e.util.KeyListener;n.KEYDOWN="keydown",n.KEYUP="keyup",n.KEY={ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38}}(),e.register("event",e.util.Event,{version:"@VERSION@",build:"@BUILD@"}),e.register("yahoo-dom-event",e,{version:"@VERSION@",build:"@BUILD@"}),window.YAHOO=e}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var i=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(i.exports,i,i.exports,__webpack_require__),i.exports}__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__(3193),__webpack_require__(8589),__webpack_require__(8197),__webpack_require__(5400),__webpack_require__(8688),__webpack_require__(6946),__webpack_require__(7475),__webpack_require__(2807),__webpack_require__(450),__webpack_require__(1704),__webpack_require__(7568),__webpack_require__(4711),__webpack_require__(2252),__webpack_require__(9448);var __webpack_exports__=__webpack_require__(3)})();
//# sourceMappingURL=vendor.bundle.1697f26639ee588df9ee.js.map