1(function(n,t){"use strict";function ui(n,i){var u,r;if(!n||typeof n!="string")return null;u=i||t;try{return u.querySelector(n)}catch(f){return n.charAt(0)!=="#"||/[\s>+~,'"()\[\].:#]/.test(n.slice(1))?null:(r=t.getElementById(n.slice(1)),!r)?null:!i||i===t||i.contains(r)?r:null}}function et(n,t){var r=ui(n,t);return r?i(r):i()}function h(n,r){if(!n)return i();try{return i(r||t).find(n)}catch(u){return i()}}function w(n,t){return n==null||n===!1?i():typeof n!="string"?i(n):h(n,t)}function fi(n){var t=n.attr("data-target"),i,r;return t||(i=n.attr("href"),r=i?i.match(/#[^\s]*$/):null,t=r?r[0]:null),t&&t!=="#"?t:null}function p(n){return et(fi(n))}function ei(){var r=t.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in n)if(r.style[i]!==undefined)return{end:n[i]};return!1}function li(n,t){var r=n.nodeName.toLowerCase(),i;if(t.indexOf(r)!==-1)return si.indexOf(r)!==-1?Boolean(String(n.nodeValue).match(hi)||String(n.nodeValue).match(ci)):!0;for(i=0;i<t.length;i++)if(t[i]instanceof RegExp&&r.match(t[i]))return!0;return!1}function st(){if(k)try{return k.call(t)}catch(n){}return t.implementation}function ai(n){return String(n).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">")}function d(n,t,i){var f,e,o,c,s,a,r,l,h,v,u,y;if(typeof n!="string"||n.length===0)return n;if(i&&typeof i=="function")return i(n);if(f=st(),!f||typeof f.createHTMLDocument!="function")return ai(n);for(e=t||ot,o=f.createHTMLDocument("sanitization"),o.body.innerHTML=n,c=o.body.querySelectorAll("*"),s=0,a=c.length;s<a;s++){if(r=c[s],l=r.nodeName.toLowerCase(),!Object.prototype.hasOwnProperty.call(e,l)){r.parentNode&&r.parentNode.removeChild(r);continue}for(h=Array.prototype.slice.call(r.attributes),v=[].concat(e["*"]||[],e[l]||[]),u=0,y=h.length;u<y;u++)li(h[u],v)||r.removeAttribute(h[u].nodeName)}return o.body.innerHTML}function vi(n){return this.each(function(){var t=i(this),r=t.data("bs.alert");r||t.data("bs.alert",r=new l(this));typeof n=="string"&&r[n].call(t)})}function ct(n){return this.each(function(){var r=i(this),t=r.data("bs.button"),u=typeof n=="object"&&n;t||r.data("bs.button",t=new a(this,u));n=="toggle"?t.toggle():n&&t.setState(n)})}function nt(n){return this.each(function(){var r=i(this),t=r.data("bs.carousel"),u=i.extend({},f.DEFAULTS,r.data(),typeof n=="object"&&n),e=typeof n=="string"?n:u.slide;t||r.data("bs.carousel",t=new f(this,u));typeof n=="number"?t.to(n):e?t[e]():u.interval&&t.pause().cycle()})}function it(n){return this.each(function(){var r=i(this),t=r.data("bs.collapse"),u=i.extend({},e.DEFAULTS,r.data(),typeof n=="object"&&n);!t&&u.toggle&&/show|hide/.test(n)&&(u.toggle=!1);t||r.data("bs.collapse",t=new e(this,u));typeof n=="string"&&t[n]()})}function rt(n){var t=p(n);return t&&t.length?t:n.parent()}function ut(n){n&&n.which===3||(h(yi).remove(),h(b).each(function(){var r=i(this),t=rt(r),u={relatedTarget:this};t.hasClass("open")&&(n&&n.type=="click"&&/input|textarea/i.test(n.target.tagName)&&i.contains(t[0],n.target)||(t.trigger(n=i.Event("hide.bs.dropdown",u)),n.isDefaultPrevented())||(r.attr("aria-expanded","false"),t.removeClass("open").trigger(i.Event("hidden.bs.dropdown",u))))}))}function pi(n){return this.each(function(){var t=i(this),r=t.data("bs.dropdown");r||t.data("bs.dropdown",r=new v(this));typeof n=="string"&&r[n].call(t)})}function pt(n,t){return this.each(function(){var f=i(this),r=f.data("bs.modal"),e=i.extend({},u.DEFAULTS,f.data(),typeof n=="object"&&n);r||f.data("bs.modal",r=new u(this,e));typeof n=="string"?r[n](t):e.show&&r.show(t)})}function wi(n){return this.each(function(){var u=i(this),t=u.data("bs.tooltip"),f=typeof n=="object"&&n;(t||!/destroy|hide/.test(n))&&(t||u.data("bs.tooltip",t=new r(this,f)),typeof n=="string"&&t[n]())})}function bi(n){return this.each(function(){var r=i(this),t=r.data("bs.popover"),u=typeof n=="object"&&n;(t||!/destroy|hide/.test(n))&&(t||r.data("bs.popover",t=new o(this,u)),typeof n=="string"&&t[n]())})}function dt(n){return this.each(function(){var r=i(this),t=r.data("bs.tab");t||r.data("bs.tab",t=new y(this));typeof n=="string"&&t[n]()})}function c(r,u){this.$body=i(t.body);this.$scrollElement=i(r).is(t.body)?i(n):i(r);this.options=i.extend({},c.DEFAULTS,u);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",i.proxy(this.process,this));this.refresh();this.process()}function ni(n){return this.each(function(){var r=i(this),t=r.data("bs.scrollspy"),u=typeof n=="object"&&n;t||r.data("bs.scrollspy",t=new c(this,u));typeof n=="string"&&t[n]()})}function ii(n){return this.each(function(){var r=i(this),t=r.data("bs.affix"),u=typeof n=="object"&&n;t||r.data("bs.affix",t=new s(this,u));typeof n=="string"&&t[n]()})}var i=n.jQuery,k,g,l,ht,a,lt,f,at,tt,e,vt,yt,u,wt,r,bt,o,kt,y,gt,ft,ti,s,ri;if(i){i.fn.emulateTransitionEnd=function(n){var t=!1,u=this,r;i(this).one("bsTransitionEnd",function(){t=!0});return r=function(){t||i(u).trigger(i.support.transition.end)},setTimeout(r,n),this};i.support.transition=ei();i.support.transition&&(i.event.special.bsTransitionEnd={bindType:i.support.transition.end,delegateType:i.support.transition.end,handle:function(n){if(i(n.target).is(this))return n.handleObj.handler.apply(this,arguments)}});var oi=["sanitize","whiteList","sanitizeFn"],si=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],ot={"*":["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","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},hi=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/i,ci=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i;k=function(){try{var n=Object.getOwnPropertyDescriptor(Document.prototype,"implementation");if(n&&typeof n.get=="function")return n.get}catch(t){}return null}();g='[data-dismiss="alert"]';l=function(n){i(n).on("click",g,this.close)};l.VERSION="3.4.1";l.TRANSITION_DURATION=150;l.prototype.close=function(n){function u(){t.detach().trigger("closed.bs.alert").remove()}var r=i(this),t=p(r);(n&&n.preventDefault(),t.length||(t=r.closest(".alert")),t.trigger(n=i.Event("close.bs.alert")),n.isDefaultPrevented())||(t.removeClass("in"),i.support.transition&&t.hasClass("fade")?t.one("bsTransitionEnd",u).emulateTransitionEnd(l.TRANSITION_DURATION):u())};ht=i.fn.alert;i.fn.alert=vi;i.fn.alert.Constructor=l;i.fn.alert.noConflict=function(){return i.fn.alert=ht,this};i(t).on("click.bs.alert.data-api",g,l.prototype.close);a=function(n,t){this.$element=i(n);this.options=i.extend({},a.DEFAULTS,t);this.isLoading=!1};a.VERSION="3.4.1";a.DEFAULTS={loadingText:"loading..."};a.prototype.setState=function(n){var t="disabled",r=this.$element,f=r.is("input")?"val":"text",u=r.data();n+="Text";u.resetText==null&&r.data("resetText",r[f]());setTimeout(i.proxy(function(){r[f](u[n]==null?this.options[n]:u[n]);n=="loadingText"?(this.isLoading=!0,r.addClass(t).attr(t,t).prop(t,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(t).removeAttr(t).prop(t,!1))},this),0)};a.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),n.prop("type")=="radio"?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):n.prop("type")=="checkbox"&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};lt=i.fn.button;i.fn.button=ct;i.fn.button.Constructor=a;i.fn.button.noConflict=function(){return i.fn.button=lt,this};i(t).on("click.bs.button.data-api",'[data-toggle^="button"]',function(n){var t=i(n.target).closest(".btn");ct.call(t,"toggle");i(n.target).is('input[type="radio"], input[type="checkbox"]')||(n.preventDefault(),t.is("input,button")?t.trigger("focus"):t.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(n){i(n.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(n.type))});f=function(n,r){this.$element=i(n);this.$indicators=this.$element.find(".carousel-indicators");this.options=r;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;
1this.options.keyboard&&this.$element.on("keydown.bs.carousel",i.proxy(this.keydown,this));this.options.pause!="hover"||"ontouchstart"in t.documentElement||this.$element.on("mouseenter.bs.carousel",i.proxy(this.pause,this)).on("mouseleave.bs.carousel",i.proxy(this.cycle,this))};f.VERSION="3.4.1";f.TRANSITION_DURATION=600;f.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};f.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};f.prototype.cycle=function(n){return n||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(i.proxy(this.next,this),this.options.interval)),this};f.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};f.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f=n=="prev"&&i===0||n=="next"&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r=n=="prev"?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};f.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};f.prototype.pause=function(n){return n||(this.paused=!0),this.$element.find(".next, .prev").length&&i.support.transition&&(this.$element.trigger(i.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};f.prototype.next=function(){if(!this.sliding)return this.slide("next")};f.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};f.prototype.slide=function(n,t){var e=this.$element.find(".item.active"),r=t||this.getItemForDirection(n,e),l=this.interval,u=n=="next"?"left":"right",a=this,o,s,h,c;return r.hasClass("active")?this.sliding=!1:(o=r[0],s=i.Event("slide.bs.carousel",{relatedTarget:o,direction:u}),this.$element.trigger(s),s.isDefaultPrevented())?void 0:(this.sliding=!0,l&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),h=i(this.$indicators.children()[this.getItemIndex(r)]),h&&h.addClass("active")),c=i.Event("slid.bs.carousel",{relatedTarget:o,direction:u}),i.support.transition&&this.$element.hasClass("slide")?(r.addClass(n),typeof r=="object"&&r.length&&r[0].offsetWidth,e.addClass(u),r.addClass(u),e.one("bsTransitionEnd",function(){r.removeClass([n,u].join(" ")).addClass("active");e.removeClass(["active",u].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(f.TRANSITION_DURATION)):(e.removeClass("active"),r.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this)};at=i.fn.carousel;i.fn.carousel=nt;i.fn.carousel.Constructor=f;i.fn.carousel.noConflict=function(){return i.fn.carousel=at,this};tt=function(n){var r,t,f,u;(n.preventDefault(),r=i(this),t=p(r),t.hasClass("carousel"))&&(f=i.extend({},t.data(),r.data()),u=r.attr("data-slide-to"),u&&(f.interval=!1),nt.call(t,f),u&&t.data("bs.carousel").to(u))};i(t).on("click.bs.carousel.data-api","[data-slide]",tt).on("click.bs.carousel.data-api","[data-slide-to]",tt);i(n).on("load.bs.carousel.data-api",function(){h('[data-ride="carousel"]').each(function(){var n=i(this);nt.call(n,n.data())})});e=function(n,t){this.$element=i(n);this.options=i.extend({},e.DEFAULTS,t);this.$trigger=h('[data-toggle="collapse"][href="#'+n.id+'"],[data-toggle="collapse"][data-target="#'+n.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()};e.VERSION="3.4.1";e.TRANSITION_DURATION=350;e.DEFAULTS={toggle:!0};e.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};e.prototype.show=function(){var r,n,u,t,f,o;if(!this.transitioning&&!this.$element.hasClass("in")&&(n=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!n||!n.length||(r=n.data("bs.collapse"),!r||!r.transitioning))&&(u=i.Event("show.bs.collapse"),this.$element.trigger(u),!u.isDefaultPrevented())){if(n&&n.length&&(it.call(n,"hide"),r||n.data("bs.collapse",null)),t=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[t](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,f=function(){this.$element.removeClass("collapsing").addClass("collapse in")[t]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!i.support.transition)return f.call(this);o=t=="width"?"scrollWidth":"scrollHeight";this.$element.one("bsTransitionEnd",i.proxy(f,this)).emulateTransitionEnd(e.TRANSITION_DURATION)[t](this.$element[0][o])}};e.prototype.hide=function(){var t,n,r;if(!this.transitioning&&this.$element.hasClass("in")&&(t=i.Event("hide.bs.collapse"),this.$element.trigger(t),!t.isDefaultPrevented())){if(n=this.dimension(),this.$element[n](this.$element[n]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,r=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},!i.support.transition)return r.call(this);this.$element[n](0).one("bsTransitionEnd",i.proxy(r,this)).emulateTransitionEnd(e.TRANSITION_DURATION)}};e.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};e.prototype.getParent=function(){return w(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(i.proxy(function(n,t){var r=i(t);this.addAriaAndCollapsedClass(p(r),r)},this)).end()};e.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};vt=i.fn.collapse;i.fn.collapse=it;i.fn.collapse.Constructor=e;i.fn.collapse.noConflict=function(){return i.fn.collapse=vt,this};i(t).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var t=i(this);t.attr("data-target")||n.preventDefault();var r=p(t),u=r.data("bs.collapse"),f=u?"toggle":t.data();it.call(r,f)});var yi=".dropdown-backdrop",b='[data-toggle="dropdown"]',v=function(n){i(n).on("click.bs.dropdown",this.toggle)};v.VERSION="3.4.1";v.prototype.toggle=function(n){var u=i(this),r,e,f;if(!u.is(".disabled, :disabled")){if(r=rt(u),e=r.hasClass("open"),ut(),!e){if("ontouchstart"in t.documentElement&&!r.closest(".
1navbar-nav").length)i(t.createElement("div")).addClass("dropdown-backdrop").insertAfter(i(this)).on("click",ut);if(f={relatedTarget:this},r.trigger(n=i.Event("show.bs.dropdown",f)),n.isDefaultPrevented())return;u.trigger("focus").attr("aria-expanded","true");r.toggleClass("open").trigger(i.Event("shown.bs.dropdown",f))}return!1}};v.prototype.keydown=function(n){var u,f,e,o,r,t;if(/(38|40|27|32)/.test(n.which)&&!/input|textarea/i.test(n.target.tagName)&&(u=i(this),n.preventDefault(),n.stopPropagation(),!u.is(".disabled, :disabled"))){if(f=rt(u),e=f.hasClass("open"),!e&&n.which!=27||e&&n.which==27)return n.which==27&&f.find(b).trigger("focus"),u.trigger("click");(o=" li:not(.disabled):visible a",r=f.find(".dropdown-menu"+o),r.length)&&(t=r.index(n.target),n.which==38&&t>0&&t--,n.which==40&&t<r.length-1&&t++,~t||(t=0),r.eq(t).trigger("focus"))}};yt=i.fn.dropdown;i.fn.dropdown=pi;i.fn.dropdown.Constructor=v;i.fn.dropdown.noConflict=function(){return i.fn.dropdown=yt,this};i(t).on("click.bs.dropdown.data-api",ut).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",b,v.prototype.toggle).on("keydown.bs.dropdown.data-api",b,v.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",v.prototype.keydown);u=function(n,r){this.options=r;this.$body=i(t.body);this.$element=i(n);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom";this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,i.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};u.VERSION="3.4.1";u.TRANSITION_DURATION=300;u.BACKDROP_TRANSITION_DURATION=150;u.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};u.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};u.prototype.show=function(n){var t=this,r=i.Event("show.bs.modal",{relatedTarget:n});if(this.$element.trigger(r),!this.isShown&&!r.isDefaultPrevented()){this.isShown=!0;this.$element.css("z-index",this.getStackedZIndex());this.checkScrollbar();this.setScrollbar();this.$body.addClass("modal-open");this.escape();this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',i.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){t.$element.one("mouseup.dismiss.bs.modal",function(n){i(n.target).is(t.$element)&&(t.ignoreBackdropClick=!0)})});this.backdrop(function(){var f=i.support.transition&&t.$element.hasClass("fade"),r;t.$element.parent().length||t.$element.appendTo(t.$body);t.$element.show().scrollTop(0);t.adjustDialog();f&&t.$element[0].offsetWidth;t.$element.addClass("in");t.enforceFocus();r=i.Event("shown.bs.modal",{relatedTarget:n});f?t.$dialog.one("bsTransitionEnd",function(){t.$element.trigger("focus").trigger(r)}).emulateTransitionEnd(u.TRANSITION_DURATION):t.$element.trigger("focus").trigger(r)})}};u.prototype.hide=function(n){(n&&n.preventDefault(),n=i.Event("hide.bs.modal"),this.$element.trigger(n),this.isShown&&!n.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),i(t).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),i.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",i.proxy(this.hideModal,this)).emulateTransitionEnd(u.TRANSITION_DURATION):this.hideModal())};u.prototype.enforceFocus=function(){i(t).off("focusin.bs.modal").on("focusin.bs.modal",i.proxy(function(n){t===n.target||this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};u.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",i.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")};u.prototype.resize=function(){if(this.isShown)i(n).on("resize.bs.modal",i.proxy(this.handleUpdate,this));else i(n).off("resize.bs.modal")};u.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.hasOtherOpenModals()||(n.$body.removeClass("modal-open"),n.resetScrollbar());n.resetAdjustments();n.$element.css("z-index","");n.$element.trigger("hidden.bs.modal")})};u.prototype.hasOtherOpenModals=function(){return h(".modal:visible").not(this.$element).length>0};u.prototype.getStackedZIndex=function(){var n=1040;return h(".modal").not(this.$element).each(function(){var r=i(this),u=r.data("bs.modal"),t;(r.hasClass("in")||u&&u.isShown)&&(t=parseInt(r.css("z-index"),10),!isNaN(t)&&t>n&&(n=t))}),n+10};u.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};u.prototype.backdrop=function(n){var h=this,s=this.$element.hasClass("fade")?"fade":"",r,f,e,o;if(this.isShown&&this.options.backdrop){r=i.support.transition&&s;this.$backdrop=i(t.createElement("div")).addClass("modal-backdrop "+s).appendTo(this.$body);f=parseInt(this.$element.css("z-index"),10);isNaN(f)||this.$backdrop.css("z-index",f-1);e=this.$element.attr("id");e&&this.$backdrop.attr("data-modal-id",e);this.$element.on("click.dismiss.bs.modal",i.proxy(function(n){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this));if(r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!n)return;r?this.$backdrop.one("bsTransitionEnd",n).emulateTransitionEnd(u.BACKDROP_TRANSITION_DURATION):n()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),o=function(){h.removeBackdrop();n&&n()},i.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",o).emulateTransitionEnd(u.BACKDROP_TRANSITION_DURATION):o()):n&&n()};u.prototype.handleUpdate=function(){this.adjustDialog()};u.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>t.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};u.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};u.prototype.checkScrollbar=function(){var i=n.innerWidth,r;i||(r=t.documentElement.getBoundingClientRect(),i=r.right-Math.abs(r.left));this.bodyIsOverflowing=t.body.clientWidth<i;this.scrollbarWidth=this.measureScrollbar()};u.prototype.setScrollbar=function(){var r=parseInt(this.$body.css("padding-right")||0,10),n;this.originalBodyPad=t.body.style.paddingRight||"";n=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",r+n),h(this.fixedContent).each(function(t,r){var u=r.style.paddingRight,f=i(r).css("padding-right");i(r).data("padding-right",u).css("padding-right",parseFloat(f)+n+"px")}))};u.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad);h(this.fixedContent).each(function(n,t){var r=i(t).data("padding-right");i(t).removeData("padding-right");t.style.paddingRight=r?r:""})};u.prototype.measureScrollbar=function(){var n,r;return i("html").css("overflow-y")!=="scroll"?0:(n=t.createElement("div"),n.className="modal-scrollbar-measure",this.$body.append(n),r=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),r)};wt=i.fn.modal;i.fn.modal=pt;i.fn.modal.Constructor=u;i.fn.modal.noConflict=function(){return i.fn.modal=wt,this};i(t).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(n){var t=i(this),u=t.attr("href"),r=p(t),f=r.data("bs.modal")?"toggle":i.extend({remote:!/#/.test(u)&&u},r.data(),t.data());t.is("a")&&n.preventDefault();r.one("show.bs.modal",function(n){if(!n.isDefaultPrevented())r.one("hidden.bs.modal",function(){t.is(":visible")&&t.trigger("focus")})});pt.call(r,f,this)});r=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",n,t)};r.VERSION="3.4.1";r.TRANSITION_DURATION=150;r.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:ot};r.prototype.init=function(n,r,u){var e,o,f,s,h;if(this.enabled=!0,this.type=n,this.$element=i(r),this.options=this.getOptions(u),this.$viewport=this.options.viewport&&w(typeof this.options.viewport=="function"?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof t.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(e=this.options.trigger.split(" "),o=e.length;o--;)if(f=e[o],f=="click")this.$element.on("click."+this.type,this.options.selector,i.proxy(this.toggle,this));else if(f!="manual"){s=f=="hover"?"mouseenter":"focusin";h=f=="hover"?"mouseleave":"focusout";this.$element.on(s+"."+this.type,this.options.selector,i.proxy(this.enter,this));this.$element.on(h+"."+this.type,this.options.selector,i.proxy(this.leave,this))}this.options.selector?this._options=i.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};r.prototype.getDefaults=function(){return r.DEFAULTS};r.prototype.getOptions=function(n){var t=this.$element.data(),r,u,f;for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&oi.indexOf(r)!==-1&&delete t[r];return n=i.extend({},this.getDefaults(),t,n),n.delay&&typeof n.delay=="number"&&(n.delay={show:n.delay,hide:n.delay}),n.sanitize&&(u=st(),f=n.sanitizeFn&&typeof n.sanitizeFn=="function"||u&&typeof u.createHTMLDocument=="function",n.template=f?d(n.template,n.whiteList,n.sanitizeFn):this.getDefaults().template),n};r.prototype.getDelegateOptions=function(){var n={},t=this.getDefaults();return this._options&&i.each(this._options,function(i,r){t[i]!=r&&(n[i]=r)}),n};r.prototype.enter=function(n){var t=n instanceof this.constructor?n:i(n.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(n.currentTarget,this.getDelegateOptions()),i(n.currentTarget).data("bs."+this.type,t)),n instanceof i.Event&&(t.inState[n.type=="focusin"?"focus":"hover"]=!0),t.tip().hasClass("in")||t.hoverState=="in"){t.hoverState="in";return}if(clearTimeout(t.timeout),t.hoverState="in",!t.options.delay||!t.options.delay.show)return t.show();t.timeout=setTimeout(function(){t.hoverState=="in"&&t.show()},t.options.delay.show)};r.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};r.prototype.leave=function(n){var t=n instanceof this.constructor?n:i(n.currentTarget).data("bs."+this.type);if(t||(t=new this.constructor(n.currentTarget,this.getDelegateOptions()),i(n.currentTarget).data("bs."+this.type,t)),n instanceof i.Event&&(t.inState[n.type=="focusout"?"focus":"hover"]=!1),!t.isInStateTrue()){if(clearTimeout(t.timeout),t.hoverState="out",!t.options.delay||!t.options.delay.hide)return t.hide();t.timeout=setTimeout(function(){t.hoverState=="out"&&t.hide()},t.options.delay.hide)}};r.prototype.show=function(){var c=i.Event("show.bs."+this.type),l,p,e,b,h;if(this.hasContent()&&this.enabled){if(this.$element.trigger(c),l=i.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),c.isDefaultPrevented()||!l)return;var u=this,t=this.tip(),a=this.getUID(this.type);this.setContent();t.attr("id",a);this.$element.attr("aria-describedby",a);this.options.animation&&t.addClass("fade");var n=typeof this.options.placement=="function"?this.options.placement.call(this,t[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(n);y&&(n=n.replace(v,"")||"top");t.detach().css({top:0,left:0,display:"block"}).addClass(n).data("bs."+this.type,this);this.options.container?t.appendTo(w(this.options.container)):t.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),o=t[0].offsetWidth,s=t[0].offsetHeight;y&&(p=n,e=this.getPosition(this.$viewport),n=n=="bottom"&&f.bottom+s>e.bottom?"top":n=="top"&&f.top-s<e.top?"bottom":n=="right"&&f.right+o>e.width?"left":n=="left"&&f.left-o<e.left?"right":n,t.removeClass(p).addClass(n));b=this.getCalculatedOffset(n,f,o,s);this.applyPlacement(b,n);h=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;n=="out"&&u.leave(u)};i.support.transition&&this.$tip.hasClass("fade")?t.one("bsTransitionEnd",h).emulateTransitionEnd(r.TRANSITION_DURATION):h()}};r.prototype.applyPlacement=function(n,t){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);n.top+=o;n.left+=s;i.offset&&i.offset.setOffset?i.offset.setOffset(r[0],i.extend({using:function(n){r.css({top:Math.round(n.top),left
1:Math.round(n.left)})}},n),0):r.offset({top:Math.round(n.top),left:Math.round(n.left)});r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;t=="top"&&f!=e&&(n.top=n.top+e-f);u=this.getViewportAdjustedDelta(t,n,h,f);u.left?n.left+=u.left:n.top+=u.top;var c=/top|bottom/.test(t),a=c?u.left*2-l+h:u.top*2-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(n);this.replaceArrow(a,r[0][v],c)};r.prototype.replaceArrow=function(n,t,i){this.arrow().css(i?"left":"top",50*(1-n/t)+"%").css(i?"top":"left","")};r.prototype.setContent=function(){var t=this.tip(),n=this.getTitle();this.options.html?(this.options.sanitize&&(n=d(n,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(n)):t.find(".tooltip-inner").text(n);t.removeClass("fade in top bottom left right")};r.prototype.hide=function(n){function e(){t.hoverState!="in"&&u.detach();t.$element&&t.$element.removeAttr("aria-describedby").trigger("hidden.bs."+t.type);n&&n()}var t=this,u=i(this.$tip),f=i.Event("hide.bs."+this.type);if(this.$element.trigger(f),!f.isDefaultPrevented())return u.removeClass("in"),i.support.transition&&u.hasClass("fade")?u.one("bsTransitionEnd",e).emulateTransitionEnd(r.TRANSITION_DURATION):e(),this.hoverState=null,this};r.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};r.prototype.hasContent=function(){return this.getTitle()};r.prototype.getPosition=function(r){r=r||this.$element;var f=r[0],e=f.tagName=="BODY",u=f.getBoundingClientRect();u.width==null&&(u=i.extend({},u,{width:u.right-u.left,height:u.bottom-u.top}));var o=n.SVGElement&&f instanceof n.SVGElement,s=e?{top:0,left:0}:o?null:r.offset(),h={scroll:e?t.documentElement.scrollTop||t.body.scrollTop:r.scrollTop()},c=e?{width:i(n).width(),height:i(n).height()}:null;return i.extend({},u,h,c,s)};r.prototype.getCalculatedOffset=function(n,t,i,r){return n=="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n=="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n=="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};r.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return!this.$viewport||!this.$viewport.length?f:(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f)};r.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};r.prototype.getUID=function(n){do n+=~~(Math.random()*1e6);while(t.getElementById(n));return n};r.prototype.tip=function(){if(!this.$tip&&(this.$tip=i(this.options.template),this.$tip.length!=1))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};r.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};r.prototype.enable=function(){this.enabled=!0};r.prototype.disable=function(){this.enabled=!1};r.prototype.toggleEnabled=function(){this.enabled=!this.enabled};r.prototype.toggle=function(n){var t=this;n&&(t=i(n.currentTarget).data("bs."+this.type),t||(t=new this.constructor(n.currentTarget,this.getDelegateOptions()),i(n.currentTarget).data("bs."+this.type,t)));n?(t.inState.click=!t.inState.click,t.isInStateTrue()?t.enter(t):t.leave(t)):t.tip().hasClass("in")?t.leave(t):t.enter(t)};r.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null;n.$element=null})};r.prototype.sanitizeHtml=function(n){return d(n,this.options.whiteList,this.options.sanitizeFn)};bt=i.fn.tooltip;i.fn.tooltip=wi;i.fn.tooltip.Constructor=r;i.fn.tooltip.noConflict=function(){return i.fn.tooltip=bt,this};o=function(n,t){this.init("popover",n,t)};o.VERSION="3.4.1";o.DEFAULTS=i.extend({},r.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});o.prototype=i.extend({},r.prototype);o.prototype.constructor=o;o.prototype.getDefaults=function(){return o.DEFAULTS};o.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent(),r;this.options.html?(r=typeof t,this.options.sanitize&&(i=this.sanitizeHtml(i),r==="string"&&(t=this.sanitizeHtml(t))),n.find(".popover-title").html(i),n.find(".popover-content").children().detach().end()[r==="string"?"html":"append"](t)):(n.find(".popover-title").text(i),n.find(".popover-content").children().detach().end().text(t));n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};o.prototype.hasContent=function(){return this.getTitle()||this.getContent()};o.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};o.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};kt=i.fn.popover;i.fn.popover=bi;i.fn.popover.Constructor=o;i.fn.popover.noConflict=function(){return i.fn.popover=kt,this};y=function(n){this.element=i(n)};y.VERSION="3.4.1";y.TRANSITION_DURATION=150;y.prototype.show=function(){var n=this.element,r=n.closest("ul:not(.dropdown-menu)"),u=p(n);if(!n.parent("li").hasClass("active")){var t=r.find(".active:last a"),f=i.Event("hide.bs.tab",{relatedTarget:n[0]}),e=i.Event("show.bs.tab",{relatedTarget:t[0]});(t.trigger(f),n.trigger(e),e.isDefaultPrevented()||f.isDefaultPrevented())||(this.activate(n.closest("li"),r),this.activate(u,u.parent(),function(){t.trigger({type:"hidden.bs.tab",relatedTarget:n[0]});n.trigger({type:"shown.bs.tab",relatedTarget:t[0]})}))}};y.prototype.activate=function(n,t,r){function e(){u.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1);n.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0);f?(n[0].offsetWidth,n.addClass("in")):n.removeClass("fade");n.parent(".dropdown-menu").length&&n.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0);r&&r()}var u=t.find("> .active"),f=r&&i.support.transition&&(u.length&&u.hasClass("fade")||!!t.find("> .fade").length);u.length&&f?u.one("bsTransitionEnd",e).emulateTransitionEnd(y.TRANSITION_DURATION):e();u.removeClass("in")};gt=i.fn.tab;i.fn.tab=dt;i.fn.tab.Constructor=y;i.fn.tab.noConflict=function(){return i.fn.tab=gt,this};ft=function(n){n.preventDefault();dt.call(i(this),"show")};i(t).on("click.bs.tab.data-api",'[data-toggle="tab"]',ft).on("click.bs.tab.data-api",'[data-toggle="pill"]',ft);c.VERSION="3.4.1";c.DEFAULTS={offset:10};c.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,t.documentElement.scrollHeight)};c.prototype.refresh=function(){var n=this,t="offset",r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();i.isWindow(this.$scrollElement[0])||(t="position",r=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var f=i(this),u=f.data("target")||f.attr("href"),n=/^#./.test(u)&&et(u);return n&&n.length&&n.is(":visible")&&[[n[t]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){n.offsets.push(this[0]);n.targets.push(this[1])})};c.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(t[n+1]===undefined||i<t[n+1])&&this.activate(r[n])};c.prototype.activate=function(n){this.activeTarget=n;this.clear();var i=this.selector+'[data-target="'+n+'"],'+this.selector+'[href="'+n+'"]',t=h(i).parents("li").addClass("active");t.parent(".dropdown-menu").length&&(t=t.closest("li.dropdown").addClass("active"));t.trigger("activate.bs.scrollspy")};c.prototype.clear=function(){h(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};ti=i.fn.scrollspy;i.fn.scrollspy=ni;i.fn.scrollspy.Constructor=c;i.fn.scrollspy.noConflict=function(){return i.fn.scrollspy=ti,this};i(n).on("load.bs.scrollspy.data-api",function(){h('[data-spy="scroll"]').each(function(){var n=i(this);ni.call(n,n.data())})});s=function(n,t){this.options=i.extend({},s.DEFAULTS,t);var r=this.options.target===s.DEFAULTS.target?i(this.options.target):w(this.options.target);this.$target=r.on("scroll.bs.affix.data-api",i.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",i.proxy(this.checkPositionWithEventLoop,this));this.$element=i(n);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()};s.VERSION="3.4.1";s.RESET="affix affix-top affix-bottom";s.DEFAULTS={offset:0,target:n};s.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(i!=null&&this.affixed=="top")return u<i?"top":!1;if(this.affixed=="bottom")return i!=null?u+this.unpin<=f.top?!1:"bottom":u+e<=n-r?!1:"bottom";var o=this.affixed==null,s=o?u:f.top,h=o?e:t;return i!=null&&u<=i?"top":r!=null&&s+h>=n-r?"bottom":!1};s.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(s.RESET).addClass("affix");var n=this.$target.scrollTop(),t=this.$element.offset();return this.pinnedOffset=t.top-n};s.prototype.checkPositionWithEventLoop=function(){setTimeout(i.proxy(this.checkPosition,this),1)};s.prototype.checkPosition=function(){var n,e,o;if(this.$element.is(":visible")){var h=this.$element.height(),r=this.options.offset,f=r.to
1p,u=r.bottom,c=Math.max(i(t).height(),i(t.body).height());if(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),n=this.getState(c,h,f,u),this.affixed!=n){if(this.unpin!=null&&this.$element.css("top",""),e="affix"+(n?"-"+n:""),o=i.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=n;this.unpin=n=="bottom"?this.getPinnedOffset():null;this.$element.removeClass(s.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}n=="bottom"&&this.$element.offset({top:c-h-u})}};ri=i.fn.affix;i.fn.affix=ii;i.fn.affix.Constructor=s;i.fn.affix.noConflict=function(){return i.fn.affix=ri,this};i(n).on("load.bs.affix.data-api",function(){h('[data-spy="affix"]').each(function(){var t=i(this),n=t.data();n.offset=n.offset||{};n.offsetBottom!=null&&(n.offset.bottom=n.offsetBottom);n.offsetTop!=null&&(n.offset.top=n.offsetTop);ii.call(t,n)})})}})(window,document); 2typeof $().validate&&jQuery.validator.setDefaults({highlight:function(n,t,i){$(n).addClass(t).removeClass(i);$(n).closest(".form-group").removeClass("has-success").addClass("has-error")},unhighlight:function(n,t,i){$(n).removeClass(t).addClass(i);$(n).closest(".form-group").removeClass("has-error").addClass("has-success")}});$(function(){$("span.field-validation-valid, span.field-validation-error").addClass("help-block");$("div.form-group").has("span.field-validation-error").addClass("has-error");$("div.validation-summary-errors").has("li:visible").addClass("alert alert-block alert-danger")}); 3(function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof exports=="object"?n(require("jquery")):n(jQuery)})(function(n,t){function f(){return new Date(Date.UTC.apply(Date,arguments))}function o(){var n=new Date;return f(n.getFullYear(),n.getMonth(),n.getDate())}function l(n,t){return n.getUTCFullYear()===t.getUTCFullYear()&&n.getUTCMonth()===t.getUTCMonth()&&n.getUTCDate()===t.getUTCDate()}function h(i,r){return function(){return r!==t&&n.fn.datepicker.deprecated(r),this[i].apply(this,arguments)}}function p(n){return n&&!isNaN(n.getTime())}function w(t,i){function s(n,t){return t.toLowerCase()}var u=n(t).data(),f={},e,o=new RegExp("^"+i.toLowerCase()+"([A-Z])"),r;i=new RegExp("^"+i.toLowerCase());for(r in u)i.test(r)&&(e=r.replace(o,s),f[e]=u[r]);return f}function b(t){var u={},i;if(r[t]||(t=t.split("-")[0],r[t]))return i=r[t],n.each(y,function(n,t){t in i&&(u[t]=i[t])}),u}var a=function(){var t={get:function(n){return this.slice(n)[0]},contains:function(n){for(var i=n&&n.valueOf(),t=0,r=this.length;t<r;t++)if(0<=this[t].valueOf()-i&&this[t].valueOf()-i<864e5)return t;return-1},remove:function(n){this.splice(n,1)},replace:function(n){n&&(Array.isArray(n)||(n=[n]),this.clear(),this.push.apply(this,n))},clear:function(){this.length=0},copy:function(){var n=new a;return n.replace(this),n}};return function(){var i=[];return i.push.apply(i,arguments),n.extend(i,t),i}}(),u=function(t,r){n.data(t,"datepicker",this);this._events=[];this._secondaryEvents=[];this._process_options(r);this.dates=new a;this.viewDate=this.o.defaultViewDate;this.focusDate=null;this.element=n(t);this.isInput=this.element.is("input");this.inputField=this.isInput?this.element:this.element.find("input");this.component=this.element.hasClass("date")?this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"):!1;this.component&&this.component.length===0&&(this.component=!1);this.isInline=this.o.isInline===null?!this.component&&!this.isInput:this.o.isInline;this.picker=n(i.template);this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow);this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow);this._buildEvents();this._attachEvents();this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu");this.o.rtl&&this.picker.addClass("datepicker-rtl");this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(n,t){return Number(t)+1});
3this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled});this._allow_update=!1;this.setViewMode(this.o.startView);this._allow_update=!0;this.fillDow();this.fillMonths();this.update();this.isInline&&this.show()},c,v,s,e,y,r,i;u.prototype={constructor:u,_resolveViewName:function(t){return n.each(i.viewModes,function(i,r){if(t===i||n.inArray(t,r.names)!==-1)return t=i,!1}),t},_resolveDaysOfWeek:function(t){return Array.isArray(t)||(t=t.split(/[,\s]*/)),n.map(t,Number)},_check_template:function(i){try{if(i===t||i==="")return!1;if((i.match(/[<>]/g)||[]).length<=0)return!0;var r=n(i);return r.length>0}catch(u){return!1}},_process_options:function(t){var u,h,l,s,c;if(this._o=n.extend({},this._o,t),u=this.o=n.extend({},this._o),h=u.language,r[h]||(h=h.split("-")[0],r[h]||(h=e.language)),u.language=h,u.startView=this._resolveViewName(u.startView),u.minViewMode=this._resolveViewName(u.minViewMode),u.maxViewMode=this._resolveViewName(u.maxViewMode),u.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,u.startView)),u.multidate!==!0&&(u.multidate=Number(u.multidate)||!1,u.multidate!==!1&&(u.multidate=Math.max(0,u.multidate))),u.multidateSeparator=String(u.multidateSeparator),u.weekStart%=7,u.weekEnd=(u.weekStart+6)%7,l=i.parseFormat(u.format),u.startDate!==-Infinity&&(u.startDate=u.startDate?u.startDate instanceof Date?this._local_to_utc(this._zero_time(u.startDate)):i.parseDate(u.startDate,l,u.language,u.assumeNearbyYear):-Infinity),u.endDate!==Infinity&&(u.endDate=u.endDate?u.endDate instanceof Date?this._local_to_utc(this._zero_time(u.endDate)):i.parseDate(u.endDate,l,u.language,u.assumeNearbyYear):Infinity),u.daysOfWeekDisabled=this._resolveDaysOfWeek(u.daysOfWeekDisabled||[]),u.daysOfWeekHighlighted=this._resolveDaysOfWeek(u.daysOfWeekHighlighted||[]),u.datesDisabled=u.datesDisabled||[],Array.isArray(u.datesDisabled)||(u.datesDisabled=u.datesDisabled.split(",")),u.datesDisabled=n.map(u.datesDisabled,function(n){return i.parseDate(n,l,u.language,u.assumeNearbyYear)}),s=String(u.orientation).toLowerCase().split(/\s+/g),c=u.orientation.toLowerCase(),s=n.grep(s,function(n){return/^auto|left|right|top|bottom$/.test(n)}),u.orientation={x:"auto",y:"auto"},c&&c!=="auto")if(s.length===1)switch(s[0]){case"top":case"bottom":u.orientation.y=s[0];break;case"left":case"right":u.orientation.x=s[0]}else c=n.grep(s,function(n){return/^left|right$/.test(n)}),u.orientation.x=c[0]||"auto",c=n.grep(s,function(n){return/^top|bottom$/.test(n)}),u.orientation.y=c[0]||"auto";if(u.defaultViewDate instanceof Date||typeof u.defaultViewDate=="string")u.defaultViewDate=i.parseDate(u.defaultViewDate,l,u.language,u.assumeNearbyYear);else if(u.defaultViewDate){var a=u.defaultViewDate.year||(new Date).getFullYear(),v=u.defaultViewDate.month||0,y=u.defaultViewDate.day||1;u.defaultViewDate=f(a,v,y)}else u.defaultViewDate=o()},_applyEvents:function(n){for(var i=0,f,r,u;i<n.length;i++){f=n[i][0];n[i].length===2?(r=t,u=n[i][1]):n[i].length===3&&(r=n[i][1],u=n[i][2]);f.on(u,r)}},_unapplyEvents:function(n){for(var i=0,f,r,u;i<n.length;i++)f=n[i][0],n[i].length===2?(u=t,r=n[i][1]):n[i].length===3&&(u=n[i][1],r=n[i][2]),f.off(r,u)},_buildEvents:function(){var t={keyup:n.proxy(function(t){n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:n.proxy(this.keydown,this),paste:n.proxy(this.paste,this)};this.o.showOnFocus===!0&&(t.focus=n.proxy(this.show,this));this._events=this.isInput?[[this.element,t]]:this.component&&this.inputField.length?[[this.inputField,t],[this.component,{click:n.proxy(this.show,this)}]]:[[this.element,{click:n.proxy(this.show,this),keydown:n.proxy(this.keydown,this)}]];this._events.push([this.element,"*",{blur:n.proxy(function(n){this._focused_from=n.target},this)}],[this.element,{blur:n.proxy(function(n){this._focused_from=n.target},this)}]);this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":n.proxy(function(n){this.update(n.date)},this)}]);this._secondaryEvents=[[this.picker,{click:n.proxy(this.click,this)}],[this.picker,".prev, .next",{click:n.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:n.proxy(this.dayCellClick,this)}],[n(window),{resize:n.proxy(this.place,this)}],[n(document),{"mousedown touchstart":n.proxy(function(n){this.element.is(n.target)||this.element.find(n.target).length||this.picker.is(n.target)||this.picker.find(n.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents();this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents();this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,r){var u=r||this.dates.get(-1),f=this._utc_to_local(u);this.element.trigger({type:t,date:f,viewMode:this.viewMode,dates:n.map(this.dates,this._utc_to_local),format:n.proxy(function(n,t){arguments.length===0?(n=this.dates.length-1,t=this.o.format):typeof n=="string"&&(t=n,n=this.dates.length-1);t=t||this.o.format;var r=this.dates.get(n);return i.formatDate(r,t,this.o.language)},this)})},show:function(){if(!this.inputField.is(":disabled")&&(!this.inputField.prop("readonly")||this.o.enableOnReadonly!==!1))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&n(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(t){var i;if(t.originalEvent.clipboardData&&t.originalEvent.clipboardData.types&&n.inArray("text/plain",t.originalEvent.clipboardData.types)!==-1)i=t.originalEvent.clipboardData.getData("text/plain");else if(window.clipboardData)i=window.clipboardData.getData("Text");else return;this.setDate(i);this.update();t.preventDefault()},_utc_to_local:function(n){if(!n)return n;var t=new Date(n.getTime()+n.getTimezoneOffset()*6e4);return t.getTimezoneOffset()!==n.getTimezoneOffset()&&(t=new Date(n.getTime()+t.getTimezoneOffset()*6e4)),t},_local_to_utc:function(n){return n&&new Date(n.getTime()-n.getTimezoneOffset()*6e4)},_zero_time:function(n){return n&&new Date(n.getFullYear(),n.getMonth(),n.getDate())},_zero_utc_time:function(n){return n&&f(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())},getDates:function(){return n.map(this.dates,this._utc_to_local)},getUTCDates:function(){return n.map(this.dates,function(n){return new Date(n)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var n=this.dates.get(-1);return n!==t?new Date(n):null},clearDates:function(){this.inputField.val("");this._trigger("changeDate");this.update();this.o.autoclose&&this.hide()},setDates:function(){var n=Array.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,n),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=Array.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,n.map(t,this._utc_to_local)),this},setDate:h("setDates"),setUTCDate:h("setUTCDates"),remove:h("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var n=this.getFormattedDate();return this.inputField.val(n),this},getFormattedDate:function(r){r===t&&(r=this.o.format);var u=this.o.language;return n.map(this.dates,function(n){return i.formatDate(n,r,u)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(n){return this._process_options({startDate:n}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(n){return this._process_options({endDate:n}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(n){return this._process_options({daysOfWeekDisabled:n}),this.update(),this},setDaysOfWeekHighlighted:function(n){return this._process_options({daysOfWeekHighlighted:n}),this.update(),this},setDatesDisabled:function(n){return this._process_options({datesDisabled:n}),this.update(),this},place:function(){var r,y,p;if(this.isInline)return this;var f=this.picker.outerWidth(),s=this.picker.outerHeight(),e=n(this.o.container),h=e.width(),c=this.o.container==="body"?n(document).scrollTop():e.scrollTop(),l=e.offset(),a=[0];this.element.parents().each(function(){var t=n(this).css("z-index");t!=="auto"&&Number(t)!==0&&a.push(Number(t))});var v=Math.max.apply(Math,a)+this.o.zIndexOffset,u=this.component?this.component.parent().offset():this.element.offset(),w=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),o=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),t=u.left-l.left,i=u.top-l.top;return this.o.container!=="body"&&(i+=c),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),this.o.orientation.x!=="auto"?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),this.o.orientation.x==="right"&&(t-=f-o)):u.left<0?(this.picker.addClass("datepicker-orient-left"),t-=u.left-10):t+f>h?(this.picker.addClass("datepicker-orient-right"),t+=o-f):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left"),r=this.o.orientation.y,r==="auto"&&(y=-c+i-s,r=y<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+r),r==="top"?i-=s+parseInt(this.picker.css("padding-top")):i+=w,this.o.rtl?(p=h-(t+o),this.picker.css({top:i,right:p,zIndex:v})):this.picker.css({top:i,left:t,zIndex:v}),this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var u=this.dates.copy(),t=[],r=!1;return arguments.length?(n.each(arguments,n.proxy(function(n,i){i instanceof Date&&(i=this._local_to_utc(i));t.push(i)},this)),r=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),t=t&&this.o.multidate?t.split(this.o.multidateSeparator):[t],delete this.element.data().date),t=n.map(t,n.proxy(function(n){return i.parseDate(n,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),t=n.grep(t,n.proxy(function(n){return!this.dateWithinRange(n)||!n},this),!0),this.dates.replace(t),this.o.updateViewDate&&(this.viewDate=this.dates.length?new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?new Date(this.o.startDate):this.viewDate>this.o.endDate?new Date(this.o.endDate):this.o.defaultViewDate),r?(this.setValue(),this.element.change()):this.dates.length&&String(u)!==String(this.dates)&&r&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&u.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var i=this.o.weekStart,t="<tr>";for(this.o.calendarWeeks&&(t+='<th class="cw"> <\/th>');i<this.o.weekStart+7;)t+='<th class="dow',n.inArray(i,this.o.daysOfWeekDisabled)!==-1&&(t+=" disabled"),t+='">'+r[this.o.language].daysMin[i++%7]+"<\/th>";t+="<\/tr>";this.picker.find(".datepicker-days thead").append(t)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),i="",u,n=0;n<12;n++)u=t&&t.getMonth()===n?" focused":"",i+='<span class="month'+u+'">'+r[this.o.language].monthsShort[n]+"<\/span>";this.picker.find(".datepicker-months td").html(i)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range;this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),u=this.viewDate.getUTCMonth(),f=o();return t.getUTCFullYear()<r||t.getUTCFullYear()===r&&t.getUTCMonth()<u?i.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()===r&&t.getUTCMonth()>u)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&l(t,f)&&i.push("today"),this.dates.contains(t)!==-1&&i.push("active"),this.dateWithinRange(t)||i.push("disabled"),this.dateIsDisabled(t)&&i.push("disabled","disabled-date"),n.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)!==-1&&i.push("highlighted"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),n.inArray(t.valueOf(),this.range)!==-1&&i.push("selected"),t.valueOf()===this.range[0]&&i.push("range-start"),t.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,r,u,f,e,o,s){for(var w="",c=u/10,b=this.picker.find(i),v=Math.floor(f/u)*u,p=v+c*9,k=Math.floor(this.viewDate.getFullYear()/c)*c,d=n.map(this.dates,function(n){return Math.floor(n.getUTCFullYear()/c)*c}),l,y,h,a=v-c;a<=p+c;a+=c)l=[r],y=null,a===v-c?l.push("old"):a===p+c&&l.push("new"),n.inArray(a,d)!==-1&&l.push("active"),(a<e||a>o)&&l.push("disabled"),a===k&&l.push("focused"),s!==n.noop&&(h=s(new Date(a,0,1)),h===t?h={}:typeof h=="boolean"?h={enabled:h}:typeof h=="string"&&(h={classes:h}),h.enabled===!1&&l.push("disabled"),h.classes&&(l=l.concat(h.classes.split(/\s+/))),h.tooltip&&(y=h.tooltip)),w+='<span class="'+l.join(" ")+'"'+(y?' title="'+y+'"':"")+">"+a+"<\/span>";b.find(".datepicker-switch").text(v+"-"+p);b.find("td").html(w)},fill:function(){var b=new Date(this.viewDate),s=b.getUTCFullYear(),nt=b.getUTCMonth(),v=this.o.startDate!==-Infinity?this.o.startDate.getUTCFullYear():-Infinity,et=this.o.startDate!==-Infinity?this.o.startDate.getUTCMonth():-Infinity,y=this.o.endDate!==Infinity?this.o.endDate.getUTCFullYear():Infinity,ot=this.o.endDate!==Infinity?this.o.endDate.getUTCMonth():Infinity,st=r[this.o.language].today||r.en.today||"",ht=r[this.o.language].clear||r.en.clear||"",ct=r[this.o.language].titleFormat||r.en.titleFormat,k=o(),lt=(this.o.todayBtn===!0||this.o.todayBtn==="linked")&&k>=this.o.startDate&&k<=this.o.endDate&&!this.weekOfDateIsDisabled(k),p,u,e,tt,c,l,w,h,g,ut,a,ft;if(!isNaN(s)&&!isNaN(nt)){for(this.picker.find(".datepicker-days .datepicker-switch").text(i.formatDate(b,ct,this.o.language)),this.picker.find("tfoot .today").text(st).css("display",lt?"table-cell":"none"),this.picker.find("tfoot .clear").text(ht).css("display",this.o.clearBtn===!0?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display",typeof this.o.title=="string"&&this.o.title!==""?"table-cell":"none"),this.updateNavArrows(),this.fillMonths(),e=f(s,nt,0),tt=e.getUTCDate(),e.setUTCDate(tt-(e.getUTCDay()-this.o.weekStart+7)%7),c=new Date(e),e.getUTCFullYear()<100&&c.setUTCFullYear(e.getUTCFullYear()),c.setUTCDate(c.getUTCDate()+42),c=c.valueOf(),l=[];e.valueOf()<c;){if(w=e.getUTCDay(),w===this.o.weekStart&&(l.push("<tr>"),this.o.calendarWeeks)){var it=new Date(+e+(this.o.weekStart-w-
37)%7*864e5),rt=new Date(Number(it)+(11-it.getUTCDay())%7*864e5),d=new Date(Number(d=f(rt.getUTCFullYear(),0,1))+(11-d.getUTCDay())%7*864e5),at=(rt-d)/6048e5+1;l.push('<td class="cw">'+at+"<\/td>")}h=this.getClassNames(e);h.push("day");g=e.getUTCDate();this.o.beforeShowDay!==n.noop&&(u=this.o.beforeShowDay(this._utc_to_local(e)),u===t?u={}:typeof u=="boolean"?u={enabled:u}:typeof u=="string"&&(u={classes:u}),u.enabled===!1&&h.push("disabled"),u.classes&&(h=h.concat(u.classes.split(/\s+/))),u.tooltip&&(p=u.tooltip),u.content&&(g=u.content));h=typeof n.uniqueSort=="function"?n.uniqueSort(h):n.unique(h);l.push('<td class="'+h.join(" ")+'"'+(p?' title="'+p+'"':"")+' data-date="'+e.getTime().toString()+'">'+g+"<\/td>");p=null;w===this.o.weekEnd&&l.push("<\/tr>");e.setUTCDate(e.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(l.join(""));ut=r[this.o.language].monthsTitle||r.en.monthsTitle||"Months";a=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?ut:s).end().find("tbody span").removeClass("active");n.each(this.dates,function(n,t){t.getUTCFullYear()===s&&a.eq(t.getUTCMonth()).addClass("active")});(s<v||s>y)&&a.addClass("disabled");s===v&&a.slice(0,et).addClass("disabled");s===y&&a.slice(ot+1).addClass("disabled");this.o.beforeShowMonth!==n.noop&&(ft=this,n.each(a,function(i,r){var f=new Date(s,i,1),u=ft.o.beforeShowMonth(f);u===t?u={}:typeof u=="boolean"?u={enabled:u}:typeof u=="string"&&(u={classes:u});u.enabled!==!1||n(r).hasClass("disabled")||n(r).addClass("disabled");u.classes&&n(r).addClass(u.classes);u.tooltip&&n(r).prop("title",u.tooltip)}));this._fill_yearsView(".datepicker-years","year",10,s,v,y,this.o.beforeShowYear);this._fill_yearsView(".datepicker-decades","decade",100,s,v,y,this.o.beforeShowDecade);this._fill_yearsView(".datepicker-centuries","century",1e3,s,v,y,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var u=new Date(this.viewDate),t=u.getUTCFullYear(),f=u.getUTCMonth(),e=this.o.startDate!==-Infinity?this.o.startDate.getUTCFullYear():-Infinity,s=this.o.startDate!==-Infinity?this.o.startDate.getUTCMonth():-Infinity,o=this.o.endDate!==Infinity?this.o.endDate.getUTCFullYear():Infinity,h=this.o.endDate!==Infinity?this.o.endDate.getUTCMonth():Infinity,i,r,n=1;switch(this.viewMode){case 4:n*=10;case 3:n*=10;case 2:n*=10;case 1:i=Math.floor(t/n)*n<=e;r=Math.floor(t/n)*n+n>o;break;case 0:i=t<=e&&f<=s;r=t>=o&&f>=h}this.picker.find(".prev").toggleClass("disabled",i);this.picker.find(".next").toggleClass("disabled",r)}},click:function(t){t.preventDefault();t.stopPropagation();var r,s,u,e;r=n(t.target);r.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1);r.hasClass("today")&&!r.hasClass("day")&&(this.setViewMode(0),this._setDate(o(),this.o.todayBtn==="linked"?null:"view"));r.hasClass("clear")&&this.clearDates();r.hasClass("disabled")||(r.hasClass("month")||r.hasClass("year")||r.hasClass("decade")||r.hasClass("century"))&&(this.viewDate.setUTCDate(1),s=1,this.viewMode===1?(e=r.parent().find("span").index(r),u=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(e)):(e=0,u=Number(r.text()),this.viewDate.setUTCFullYear(u)),this._trigger(i.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(f(u,e,s)):(this.setViewMode(this.viewMode-1),this.fill()));this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus();delete this._focused_from},dayCellClick:function(t){var r=n(t.currentTarget),u=r.data("date"),i=new Date(u);this.o.updateViewDate&&(i.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),i.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate));this._setDate(i)},navArrowsClick:function(t){var u=n(t.currentTarget),r=u.hasClass("prev")?-1:1;this.viewMode!==0&&(r*=i.viewModes[this.viewMode].navStep*12);this.viewDate=this.moveMonth(this.viewDate,r);this._trigger(i.viewModes[this.viewMode].e,this.viewDate);this.fill()},_toggle_multidate:function(n){var t=this.dates.contains(n);if(n||this.dates.clear(),t!==-1?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):this.o.multidate===!1?(this.dates.clear(),this.dates.push(n)):this.dates.push(n),typeof this.o.multidate=="number")while(this.dates.length>this.o.multidate)this.dates.remove(0)},_setDate:function(n,t){t&&t!=="date"||this._toggle_multidate(n&&new Date(n));(!t&&this.o.updateViewDate||t==="view")&&(this.viewDate=n&&new Date(n));this.fill();this.setValue();t&&t==="view"||this._trigger("changeDate");this.inputField.trigger("change");this.o.autoclose&&(!t||t==="date")&&this.hide()},moveDay:function(n,t){var i=new Date(n);return i.setUTCDate(n.getUTCDate()+t),i},moveWeek:function(n,t){return this.moveDay(n,t*7)},moveMonth:function(n,t){var f;if(!p(n))return this.o.defaultViewDate;if(!t)return n;var i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t),r,u;if(t=t>0?1:-1,s===1)u=t===-1?function(){return i.getUTCMonth()===o}:function(){return i.getUTCMonth()!==r},r=o+t,i.setUTCMonth(r),r=(r+12)%12;else{for(f=0;f<s;f++)i=this.moveMonth(i,t);r=i.getUTCMonth();i.setUTCDate(e);u=function(){return r!==i.getUTCMonth()}}while(u())i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,t*12)},moveAvailableDate:function(n,t,i){do{if(n=this[i](n,t),!this.dateWithinRange(n))return!1;i="moveDay"}
3while(this.dateIsDisabled(n));return n},weekOfDateIsDisabled:function(t){return n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)!==-1},dateIsDisabled:function(t){return this.weekOfDateIsDisabled(t)||n.grep(this.o.datesDisabled,function(n){return l(t,n)}).length>0},dateWithinRange:function(n){return n>=this.o.startDate&&n<=this.o.endDate},keydown:function(n){if(!this.picker.is(":visible")){(n.keyCode===40||n.keyCode===27)&&(this.show(),n.stopPropagation());return}var u=!1,t,i,r=this.focusDate||this.viewDate;switch(n.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide();n.preventDefault();n.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||this.o.daysOfWeekDisabled.length===7)break;t=n.keyCode===37||n.keyCode===38?-1:1;this.viewMode===0?n.ctrlKey?(i=this.moveAvailableDate(r,t,"moveYear"),i&&this._trigger("changeYear",this.viewDate)):n.shiftKey?(i=this.moveAvailableDate(r,t,"moveMonth"),i&&this._trigger("changeMonth",this.viewDate)):n.keyCode===37||n.keyCode===39?i=this.moveAvailableDate(r,t,"moveDay"):this.weekOfDateIsDisabled(r)||(i=this.moveAvailableDate(r,t,"moveWeek")):this.viewMode===1?((n.keyCode===38||n.keyCode===40)&&(t=t*4),i=this.moveAvailableDate(r,t,"moveMonth")):this.viewMode===2&&((n.keyCode===38||n.keyCode===40)&&(t=t*4),i=this.moveAvailableDate(r,t,"moveYear"));i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),n.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate;this.o.keyboardNavigation&&(this._toggle_multidate(r),u=!0);this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.setValue();this.fill();this.picker.is(":visible")&&(n.preventDefault(),n.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.fill();this.hide()}u&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(n){this.viewMode=n;this.picker.children("div").hide().filter(".datepicker-"+i.viewModes[this.viewMode].clsName).show();this.updateNavArrows();this._trigger("changeViewMode",new Date(this.viewDate))}};c=function(t,i){n.data(t,"datepicker",this);this.element=n(t);this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n});delete i.inputs;this.keepEmptyValues=i.keepEmptyValues;delete i.keepEmptyValues;s.call(n(this.inputs),i).on("changeDate",n.proxy(this.dateUpdated,this));this.pickers=n.map(this.inputs,function(t){return n.data(t,"datepicker")});this.updateDates()};c.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.getUTCDate()});this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},clearDates:function(){n.each(this.pickers,function(n,t){t.clearDates()})},dateUpdated:function(i){var e;if(!this.updating&&(this.updating=!0,e=n.data(i.target,"datepicker"),e!==t)){var r=e.getUTCDate(),s=this.keepEmptyValues,o=n.inArray(i.target,this.inputs),u=o-1,f=o+1,h=this.inputs.length;if(o!==-1){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t!==e&&s||t.setUTCDate(r)}),r<this.dates[u])while(u>=0&&r<this.dates[u]&&(this.pickers[u].element.val()||"").length>0)this.pickers[u--].setUTCDate(r);else if(r>this.dates[f])while(f<h&&r>this.dates[f]&&(this.pickers[f].element.val()||"").length>0)this.pickers[f++].setUTCDate(r);this.updateDates();delete this.updating}}},destroy:function(){n.map(this.pickers,function(n){n.destroy()});n(this.inputs).off("changeDate",this.dateUpdated);delete this.element.data().datepicker},remove:h("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};v=n.fn.datepicker;s=function(i){var f=Array.apply(null,arguments),r;if(f.shift(),this.each(function(){var s=n(this),t=s.data("datepicker"),h=typeof i=="object"&&i;if(!t){var l=w(this,"date"),a=n.extend({},e,l,h),v=b(a.language),o=n.extend({},e,v,l,h);s.hasClass("input-daterange")||o.inputs?(n.extend(o,{inputs:o.inputs||s.find("input").toArray()}),t=new c(this,o)):t=new u(this,o);s.data("datepicker",t)}typeof i=="string"&&typeof t[i]=="function"&&(r=t[i].apply(t,f))}
3),r===t||r instanceof u||r instanceof c)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");else return r};n.fn.datepicker=s;e=n.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:n.noop,beforeShowMonth:n.noop,beforeShowYear:n.noop,beforeShowDecade:n.noop,beforeShowCentury:n.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:Infinity,forceParse:!0,format:"mm/dd/yyyy",isInline:null,keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-Infinity,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0};y=n.fn.datepicker.locale_opts=["format","rtl","weekStart"];n.fn.datepicker.Constructor=u;r=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}};i={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(n){if(typeof n.toValue=="function"&&typeof n.toDisplay=="function")return n;var t=n.replace(this.validParts,'\0').split('\0'),i=n.match(this.validParts);if(!t||!t.length||!i||i.length===0)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(f,e,s,h){function et(n,t){return t===!0&&(t=10),n<100&&(n+=2e3,n>(new Date).getFullYear()+t&&(n-=100)),n}function ut(){var n=this.slice(0,l[c].length),t=l[c].slice(0,n.length);return n.toLowerCase()===t.toLowerCase()}var tt,g,l,y,it,c,rt,v,ft,d,w;if(!f)return t;if(f instanceof Date)return f;if(typeof e=="string"&&(e=i.parseFormat(e)),e.toValue)return e.toValue(f,e,s);if(tt={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},g={yesterday:"-1d",today:"+0d",tomorrow:"+1d"},f in g&&(f=g[f]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(f)){for(l=f.match(/([\-+]\d+)([dmwy])/gi),f=new Date,c=0;c<l.length;c++)y=l[c].match(/([\-+]\d+)([dmwy])/i),it=Number(y[1]),rt=tt[y[2].toLowerCase()],f=u.prototype[rt](f,it);return u.prototype._zero_utc_time(f)}l=f&&f.match(this.nonpunctuation)||[];var b={},nt=["yyyy","yy","M","MM","m","mm","d","dd"],a={yyyy:function(n,t){return n.setUTCFullYear(h?et(t,h):t)},m:function(n,t){if(isNaN(n))return n;for(t-=1;t<0;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!==t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}},p,k;if(a.yy=a.yyyy,a.M=a.MM=a.mm=a.m,a.dd=a.d,f=o(),v=e.parts.slice(),l.length!==v.length&&(v=n(v).filter(function(t,i){return n.inArray(i,nt)!==-1}).toArray()),l.length===v.length){for(c=0,ft=v.length;c<ft;c++){if(p=parseInt(l[c],10),y=v[c],isNaN(p))switch(y){case"MM":k=n(r[s].months).filter(ut);p=n.inArray(k[0],r[s].months)+1;break;case"M":k=n(r[s].monthsShort).filter(ut);p=n.inArray(k[0],r[s].monthsShort)+1}b[y]=p}for(c=0;c<nt.length;c++)w=nt[c],w in b&&!isNaN(b[w])&&(d=new Date(f),a[w](d,b[w]),isNaN(d)||(f=d))}return f},formatDate:function(t,u,f){var e,s,o,h;if(!t)return"";if(typeof u=="string"&&(u=i.parseFormat(u)),u.toDisplay)return u.toDisplay(t,u,f);for(e={d:t.getUTCDate(),D:r[f].daysShort[t.getUTCDay()],DD:r[f].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:r[f].monthsShort[t.getUTCMonth()],MM:r[f].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()},e.dd=(e.d<10?"0":"")+e.d,e.mm=(e.m<10?"0":"")+e.m,t=[],s=n.extend([],u.separators),o=0,h=u.parts.length;o<=h;o++)s.length&&t.push(s.shift()),t.push(e[u.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"><\/th><\/tr><tr><th class="prev">'+e.templates.leftArrow+'<\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next">'+e.templates.rightArrow+"<\/th><\/tr><\/thead>",contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};i.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+i.headTemplate+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-decades"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-centuries"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=i;n.fn.datepicker.noConflict=function(){return n.fn.datepicker=v,this};n.fn.datepicker.version="1.10.0";n.fn.datepicker.deprecated=function(n){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+n)};n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),s.call(i,"show"))});
3n(function(){s.call(n('[data-provide="datepicker-inline"]'))})}); 4/*! ======================================================= 5 VERSION 11.0.3 6========================================================= */ 7var _typeof,windowIsDefined;_typeof=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n}; 8/*! ========================================================= 9 * bootstrap-slider.js 10 * 11 * Maintainers: 12 * Kyle Kemp 13 * - Twitter: @seiyria 14 * - Github: seiyria 15 * Oleksii Kuznietsov 16 * - Twitter: @utilmind 17 * - Github: utilmind 18 * Rohit Kalkur 19 * - Twitter: @Rovolutionary 20 * - Github: rovolution 21 * 22 * ========================================================= 23 * 24 * bootstrap-slider is released under the MIT License 25 * Copyright (c) 2019 Kyle Kemp, Rohit Kalkur, and contributors 26 * 27 * Permission is hereby granted, free of charge, to any person 28 * obtaining a copy of this software and associated documentation 29 * files (the "Software"), to deal in the Software without 30 * restriction, including without limitation the rights to use, 31 * copy, modify, merge, publish, distribute, sublicense, and/or sell 32 * copies of the Software, and to permit persons to whom the 33 * Software is furnished to do so, subject to the following 34 * conditions: 35 * 36 * The above copyright notice and this permission notice shall be 37 * included in all copies or substantial portions of the Software. 38 * 39 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 40 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 41 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 42 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 43 * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 44 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 45 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 46 * OTHER DEALINGS IN THE SOFTWARE. 47 * 48 * ========================================================= */ 49windowIsDefined=(typeof window=="undefined"?"undefined":_typeof(window))==="object",function(n){if(typeof define=="function"&&define.amd)define(["jquery"],n);else if((typeof module=="undefined"?"undefined":_typeof(module))==="object"&&module.exports){var t;try{t=require("jquery")}catch(i){t=null}module.exports=n(t)}else window&&(window.Slider=n(window.jQuery))}(function(n){var i="slider",r="bootstrapSlider",t;return windowIsDefined&&!window.console&&(window.console={}),windowIsDefined&&!window.console.log&&(window.console.log=function(){}),windowIsDefined&&!window.console.warn&&(window.console.warn=function(){}),function(n){"use strict";function i(){}function r(n){function u(t){t.prototype.option||(t.prototype.option=function(t){n.isPlainObject(t)&&(this.options=n.extend(!0,this.options,t))})}function f(i,u){n.fn[i]=function(f){var c,o,l,a,e,s,h;if(typeof f=="string"){for(c=t.call(arguments,1),o=0,l=this.length;o<l;o++){if(a=this[o],e=n.data(a,i),!e){r("cannot call methods on "+i+" prior to initialization; attempted to call '"+f+"'");continue}if(!n.isFunction(e[f])||f.charAt(0)==="_"){r("no such method '"+f+"' for "+i+" instance");continue}if(s=e[f].apply(e,c),s!==undefined&&s!==e)return s}return this}return(h=this.map(function(){var t=n.data(this,i);return t?(t.option(f),t._init()):(t=new u(this,f),n.data(this,i,t)),n(this)}),h.length===1)?h[0]:h}}if(n){var r=typeof console=="undefined"?i:function(n){console.error(n)};return n.bridget=function(n,t){u(t);f(n,t)},n.bridget}}var t=Array.prototype.slice;r(n)}(n),function(n){function o(t,i){function yt(n,t){var r="data-slider-"+t.replace(/_/g,"-"),i=n.getAttribute(r);try{return JSON.parse(i)}catch(u){return i}}var r,c,o,rt,s,a,k,d,st,g,h,tt,v,y,p,ct,lt;this._state={value:null,enabled:null,offset:null,size:null,percentage:null,inDrag:!1,over:!1,tickIndex:null};this.ticksCallbackMap={};this.handleCallbackMap={};typeof t=="string"?this.element=document.querySelector(t):t instanceof HTMLElement&&(this.element=t);i=i?i:{};var ot=Object.keys(this.defaultOptions),at=i.hasOwnProperty("min"),vt=i.hasOwnProperty("max");for(r=0;r<ot.length;r++)c=ot[r],o=i[c],o=typeof o!="undefined"?o:yt(this.element,c),o=o!==null?o:this.defaultOptions[c],this.options||(this.options={}),this.options[c]=o;this.ticksAreValid=Array.isArray(this.options.ticks)&&this.options.ticks.length>0;this.ticksAreValid||(this.options.lock_to_ticks=!1);this.options.rtl==="auto"&&(rt=window.getComputedStyle(this.element),this.options.rtl=rt!=null?rt.direction==="rtl":this.element.style.direction==="rtl");this.options.orientation==="vertical"&&(this.options.tooltip_position==="top"||this.options.tooltip_position==="bottom")?this.options.tooltip_position=this.options.rtl?"left":"right":this.options.orientation==="horizontal"&&(this.options.tooltip_position==="left"||this.options.tooltip_position==="right")&&(this.options.tooltip_position="top");var pt=this.element.style.width,ut=!1,wt=this.element.parentNode,l,w,b,u,e;if(this.sliderElem)ut=!0;else{if(this.sliderElem=document.createElement("div"),this.sliderElem.className="slider",s=document.createElement("div"),s.className="slider-track",w=document.createElement("div"),w.className="slider-track-low",l=document.createElement("div"),l.className="slider-selection",b=document.createElement("div"),b.className="slider-track-high",u=document.createElement("div"),u.className="slider-handle min-slider-handle",u.setAttribute("role","slider"),u.setAttribute("aria-valuemin",this.options.min),u.setAttribute("aria-valuemax",this.options.max),e=document.createElement("div"),e.className="slider-handle max-slider-handle",e.setAttribute("role","slider"),e.setAttribute("aria-valuemin",this.options.min),e.setAttribute("aria-valuemax",this.options.max),s.appendChild(w),s.appendChild(l),s.appendChild(b),this.rangeHighlightElements=[],a=this.options.rangeHighlights,Array.isArray(a)&&a.length>0)for(k=0;k<a.length;k++)d=document.createElement("div"),st=a[k].class||"",d.className="slider-rangeHighlight slider-selection "+st,this.rangeHighlightElements.push(d),s.appendChild(d);if(g=Array.isArray(this.options.labelledby),g&&this.options.labelledby[0]&&u.setAttribute("aria-labelledby",this.options.labelledby[0]),g&&this.options.labelledby[1]&&e.setAttribute("aria-labelledby",this.options.labelledby[1]),!g&&this.options.labelledby&&(u.setAttribute("aria-labelledby",this.options.labelledby),e.setAttribute("aria-labelledby",this.options.labelledby)),this.ticks=[],Array.isArray(this.options.ticks)&&this.options.ticks.length>0){for(this.ticksContainer=document.createElement("div"),this.ticksContainer.className="slider-tick-container",r=0;r<this.options.ticks.length;r++){if(h=document.createElement("div"),h.className="slider-tick",this.options.ticks_tooltip){var ht=this._addTickListener(),bt=ht.addMouseEnter(this,h,r),kt=ht.addMouseLeave(this,h);this.ticksCallbackMap[r]={mouseEnter:bt,mouseLeave:kt}}this.ticks.push(h);this.ticksContainer.appendChild(h)}l.className+=" tick-slider-selection"}if(this.tickLabels=[],Array.isArray(this.options.ticks_labels)&&this.options.ticks_labels.length>0)for(this.tickLabelContainer=document.createElement("div"),this.tickLabelContainer.className="slider-tick-label-container",r=0;r<this.options.ticks_labels.length;r++){var nt=document.createElement("div"),dt=this.options.ticks_positions.length===0,gt=this.options.reversed&&dt?this.options.ticks_labels.length-(r+1):r;nt.className="slider-tick-label";nt.innerHTML=this.options.ticks_labels[gt];this.tickLabels.push(nt);this.tickLabelContainer.appendChild(nt)}tt=function(n){var i=document.createElement("div"),t;i.className="arrow";t=document.createElement("div");t.className="tooltip-inner";n.appendChild(i);n.appendChild(t)};v=document.createElement("div");v.className="tooltip tooltip-main";v.setAttribute("role","presentation");tt(v);y=document.createElement("div");y.className="tooltip tooltip-min";y.setAttribute("role","presentation");tt(y);p=document.createElement("div");p.className="tooltip tooltip-max";p.setAttribute("role","presentation");tt(p);this.sliderElem.appendChild(s);this.sliderElem.appendChild(v);this.sliderElem.appendChild(y);this.sliderElem.appendChild(p);this.tickLabelContainer&&this.sliderElem.appendChild(this.tickLabelContainer);this.ticksContainer&&this.sliderElem.appendChild(this.ticksContainer);this.sliderElem.appendChild(u);this.sliderElem.appendChild(e);wt.insertBefore(this.sliderElem,this.element);this.element.style.display="none"}if(n&&(this.$element=n(this.element),this.$sliderElem=n(this.sliderElem)),this.eventToCallbackMap={},this.sliderElem.id=this.options.id,this.touchCapable="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,this.touchX=0,this.touchY=0,this.tooltip=this.sliderElem.querySelector(".tooltip-main"),this.tooltipInner=this.tooltip.querySelector(".tooltip-inner"),this.tooltip_min=this.sliderElem.querySelector(".tooltip-min"),this.tooltipInner_min=this.tooltip_min.querySelector(".tooltip-inner"),this.tooltip_max=this.sliderElem.querySelector(".tooltip-max"),this.tooltipInner_max=this.tooltip_max.querySelector(".tooltip-inner"),f[this.options.scale]&&(this.options.scale=f[this.options.scale]),ut===!0&&(this._removeClass(this.sliderElem,"slider-horizontal"),this._removeClass(this.sliderElem,"slider-vertical"),this._removeClass(this.sliderElem,"slider-rtl"),this._removeClass(this.tooltip,"hide"),this._removeClass(this.tooltip_min,"hide"),this._removeClass(this.tooltip_max,"hide"),["left","right","top","width","height"].forEach(function(n){this._removeProperty(this.trackLow,n);this._removeProperty(this.trackSelection,n);this._removeProperty(this.trackHigh,n)},this),[this.handle1,this.handle2].forEach(function(n){this._removeProperty(n,"left");this._removeProperty(n,"right");this._removeProperty(n,"top")}
49,this),[this.tooltip,this.tooltip_min,this.tooltip_max].forEach(function(n){this._removeProperty(n,"bs-tooltip-left");this._removeProperty(n,"bs-tooltip-right");this._removeProperty(n,"bs-tooltip-top");this._removeClass(n,"bs-tooltip-right");this._removeClass(n,"bs-tooltip-left");this._removeClass(n,"bs-tooltip-top")},this)),this.options.orientation==="vertical"?(this._addClass(this.sliderElem,"slider-vertical"),this.stylePos="top",this.mousePos="pageY",this.sizePos="offsetHeight"):(this._addClass(this.sliderElem,"slider-horizontal"),this.sliderElem.style.width=pt,this.options.orientation="horizontal",this.stylePos=this.options.rtl?"right":"left",this.mousePos="clientX",this.sizePos="offsetWidth"),this.options.rtl&&this._addClass(this.sliderElem,"slider-rtl"),this._setTooltipPosition(),Array.isArray(this.options.ticks)&&this.options.ticks.length>0&&(vt||(this.options.max=Math.max.apply(Math,this.options.ticks)),at||(this.options.min=Math.min.apply(Math,this.options.ticks))),Array.isArray(this.options.value)?(this.options.range=!0,this._state.value=this.options.value):this._state.value=this.options.range?[this.options.value,this.options.max]:this.options.value,this.trackLow=w||this.trackLow,this.trackSelection=l||this.trackSelection,this.trackHigh=b||this.trackHigh,this.options.selection==="none"?(this._addClass(this.trackLow,"hide"),this._addClass(this.trackSelection,"hide"),this._addClass(this.trackHigh,"hide")):(this.options.selection==="after"||this.options.selection==="before")&&(this._removeClass(this.trackLow,"hide"),this._removeClass(this.trackSelection,"hide"),this._removeClass(this.trackHigh,"hide")),this.handle1=u||this.handle1,this.handle2=e||this.handle2,ut===!0)for(this._removeClass(this.handle1,"round triangle"),this._removeClass(this.handle2,"round triangle hide"),r=0;r<this.ticks.length;r++)this._removeClass(this.ticks[r],"round triangle hide");if(ct=["round","triangle","custom"],lt=ct.indexOf(this.options.handle)!==-1,lt)for(this._addClass(this.handle1,this.options.handle),this._addClass(this.handle2,this.options.handle),r=0;r<this.ticks.length;r++)this._addClass(this.ticks[r],this.options.handle);if(this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],this.setValue(this._state.value),this.handle1Keydown=this._keydown.bind(this,0),this.handle1.addEventListener("keydown",this.handle1Keydown,!1),this.handle2Keydown=this._keydown.bind(this,1),this.handle2.addEventListener("keydown",this.handle2Keydown,!1),this.mousedown=this._mousedown.bind(this),this.touchstart=this._touchstart.bind(this),this.touchmove=this._touchmove.bind(this),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.touchstart,!1),this.sliderElem.addEventListener("touchmove",this.touchmove,!1)),this.sliderElem.addEventListener("mousedown",this.mousedown,!1),this.resize=this._resize.bind(this),window.addEventListener("resize",this.resize,!1),this.options.tooltip==="hide")this._addClass(this.tooltip,"hide"),this._addClass(this.tooltip_min,"hide"),this._addClass(this.tooltip_max,"hide");else if(this.options.tooltip==="always")this._showTooltip(),this._alwaysShowTooltip=!0;else{if(this.showTooltip=this._showTooltip.bind(this),this.hideTooltip=this._hideTooltip.bind(this),this.options.ticks_tooltip){var it=this._addTickListener(),ft=it.addMouseEnter(this,this.handle1),et=it.addMouseLeave(this,this.handle1);this.handleCallbackMap.handle1={mouseEnter:ft,mouseLeave:et};ft=it.addMouseEnter(this,this.handle2);et=it.addMouseLeave(this,this.handle2);this.handleCallbackMap.handle2={mouseEnter:ft,mouseLeave:et}}else this.sliderElem.addEventListener("mouseenter",this.showTooltip,!1),this.sliderElem.addEventListener("mouseleave",this.hideTooltip,!1),this.touchCapable&&(this.sliderElem.addEventListener("touchstart",this.showTooltip,!1),this.sliderElem.addEventListener("touchmove",this.showTooltip,!1),this.sliderElem.addEventListener("touchend",this.hideTooltip,!1));this.handle1.addEventListener("focus",this.showTooltip,!1);this.handle1.addEventListener("blur",this.hideTooltip,!1);this.handle2.addEventListener("focus",this.showTooltip,!1);this.handle2.addEventListener("blur",this.hideTooltip,!1);this.touchCapable&&(this.handle1.addEventListener("touchstart",this.showTooltip,!1),this.handle1.addEventListener("touchmove",this.showTooltip,!1),this.handle1.addEventListener("touchend",this.hideTooltip,!1),this.handle2.addEventListener("touchstart",this.showTooltip,!1),this.handle2.addEventListener("touchmove",this.showTooltip,!1),this.handle2.addEventListener("touchend",this.hideTooltip,!1))}this.options.enabled?this.enable():this.disable()}var u=void 0,e={formatInvalidInputErrorMsg:function(n){return"Invalid input value '"+n+"' passed in"},callingContextNotSliderInstance:"Calling context element does not have instance of Slider bound to it. Check your code to make sure the JQuery object returned from the call to the slider() initializer is calling the method"},f={linear:{getValue:function(n,t){return n<t.min?t.min:n>t.max?t.max:n},toValue:function(n){var e=n/100*(this.options.max-this.options.min),o=!0,i,s,r,u,t,h,c,l;if(this.options.ticks_positions.length>0){for(u=0,t=1;t<this.options.ticks_positions.length;t++)if(n<=this.options.ticks_positions[t]){i=this.options.ticks[t-1];
49r=this.options.ticks_positions[t-1];s=this.options.ticks[t];u=this.options.ticks_positions[t];break}h=(n-r)/(u-r);e=i+h*(s-i);o=!1}return c=o?this.options.min:0,l=c+Math.round(e/this.options.step)*this.options.step,f.linear.getValue(l,this.options)},toPercentage:function(n){var i,f,r,u,t,e;if(this.options.max===this.options.min)return 0;if(this.options.ticks_positions.length>0){for(u=0,t=0;t<this.options.ticks.length;t++)if(n<=this.options.ticks[t]){i=t>0?this.options.ticks[t-1]:0;r=t>0?this.options.ticks_positions[t-1]:0;f=this.options.ticks[t];u=this.options.ticks_positions[t];break}if(t>0)return e=(n-i)/(f-i),r+e*(u-r)}return 100*(n-this.options.min)/(this.options.max-this.options.min)}},logarithmic:{toValue:function(n){var i=1-this.options.min,u=Math.log(this.options.min+i),r=Math.log(this.options.max+i),t=Math.exp(u+(r-u)*n/100)-i;return Math.round(t)===r?r:(t=this.options.min+Math.round((t-this.options.min)/this.options.step)*this.options.step,f.linear.getValue(t,this.options))},toPercentage:function(n){if(this.options.max===this.options.min)return 0;var t=1-this.options.min,r=Math.log(this.options.max+t),i=Math.log(this.options.min+t),u=Math.log(n+t);return 100*(u-i)/(r-i)}}};t=function(n,t){return o.call(this,n,t),this};t.prototype={_init:function(){},constructor:t,defaultOptions:{id:"",min:0,max:10,step:1,precision:0,orientation:"horizontal",value:5,range:!1,selection:"before",tooltip:"show",tooltip_split:!1,lock_to_ticks:!1,handle:"round",reversed:!1,rtl:"auto",enabled:!0,formatter:function(n){return Array.isArray(n)?n[0]+" : "+n[1]:n},natural_arrow_keys:!1,ticks:[],ticks_positions:[],ticks_labels:[],ticks_snap_bounds:0,ticks_tooltip:!1,scale:"linear",focus:!1,tooltip_position:null,labelledby:null,rangeHighlights:[]},getElement:function(){return this.sliderElem},getValue:function(){return this.options.range?this._state.value:this._state.value[0]},setValue:function(n,t,i){var u,f,r,e;
49return n||(n=0),u=this.getValue(),this._state.value=this._validateInputValue(n),f=this._applyPrecision.bind(this),this.options.range?(this._state.value[0]=f(this._state.value[0]),this._state.value[1]=f(this._state.value[1]),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value[0]=this.options.ticks[this._getClosestTickIndex(this._state.value[0])],this._state.value[1]=this.options.ticks[this._getClosestTickIndex(this._state.value[1])]),this._state.value[0]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[0])),this._state.value[1]=Math.max(this.options.min,Math.min(this.options.max,this._state.value[1]))):(this._state.value=f(this._state.value),this.ticksAreValid&&this.options.lock_to_ticks&&(this._state.value=this.options.ticks[this._getClosestTickIndex(this._state.value)]),this._state.value=[Math.max(this.options.min,Math.min(this.options.max,this._state.value))],this._addClass(this.handle2,"hide"),this._state.value[1]=this.options.selection==="after"?this.options.max:this.options.min),this._setTickIndex(),this._state.percentage=this.options.max>this.options.min?[this._toPercentage(this._state.value[0]),this._toPercentage(this._state.value[1]),this.options.step*100/(this.options.max-this.options.min)]:[0,0,100],this._layout(),r=this.options.range?this._state.value:this._state.value[0],this._setDataVal(r),t===!0&&this._trigger("slide",r),e=!1,e=Array.isArray(r)?u[0]!==r[0]||u[1]!==r[1]:u!==r,e&&i===!0&&this._trigger("change",{oldValue:u,newValue:r}),this},destroy:function(){this._removeSliderEventHandlers();this.sliderElem.parentNode.removeChild(this.sliderElem);this.element.style.display="";this._cleanUpEventCallbacksMap();this.element.removeAttribute("data");n&&(this._unbindJQueryEventHandlers(),u===i&&this.$element.removeData(u),this.$element.removeData(r))},disable:function(){return this._state.enabled=!1,this.handle1.removeAttribute("tabindex"),this.handle2.removeAttribute("tabindex"),this._addClass(this.sliderElem,"slider-disabled"),this._trigger("slideDisabled"),this},enable:function(){return this._state.enabled=!0,this.handle1.setAttribute("tabindex",0),this.handle2.setAttribute("tabindex",0),this._removeClass(this.sliderElem,"slider-disabled"),this._trigger("slideEnabled"),this},toggle:function(){return this._state.enabled?this.disable():this.enable(),this},isEnabled:function(){return this._state.enabled},on:function(n,t){return this._bindNonQueryEventHandler(n,t),this},off:function(t,i){n?(this.$element.off(t,i),this.$sliderElem.off(t,i)):this._unbindNonQueryEventHandler(t,i)},getAttribute:function(n){return n?this.options[n]:this.options},setAttribute:function(n,t){return this.options[n]=t,this},refresh:function(t){var f=this.getValue();return this._removeSliderEventHandlers(),o.call(this,this.element,this.options),t&&t.useCurrentValue===!0&&this.setValue(f),n&&(u===i?(n.data(this.element,i,this),n.data(this.element,r,this)):n.data(this.element,r,this)),this},relayout:function(){return this._resize(),this},_removeTooltipListener:function(n,t){this.handle1.removeEventListener(n,t,!1);this.handle2.removeEventListener(n,t,!1)},_removeSliderEventHandlers:function(){var t,n;if(this.handle1.removeEventListener("keydown",this.handle1Keydown,!1),this.handle2.removeEventListener("keydown",this.handle2Keydown,!1),this.options.ticks_tooltip){for(t=this.ticksContainer.getElementsByClassName("slider-tick"),n=0;n<t.length;n++)t[n].removeEventListener("mouseenter",this.ticksCallbackMap[n].mouseEnter,!1),t[n].removeEventListener("mouseleave",this.ticksCallbackMap[n].mouseLeave,!1);this.handleCallbackMap.handle1&&this.handleCallbackMap.handle2&&(this.handle1.removeEventListener("mouseenter",this.handleCallbackMap.handle1.mouseEnter,!1),this.handle2.removeEventListener("mouseenter",this.handleCallbackMap.handle2.mouseEnter,!1),this.handle1.removeEventListener("mouseleave",this.handleCallbackMap.handle1.mouseLeave,!1),this.handle2.removeEventListener("mouseleave",this.handleCallbackMap.handle2.mouseLeave,!1))}this.handleCallbackMap=null;this.ticksCallbackMap=null;this.showTooltip&&this._removeTooltipListener("focus",this.showTooltip);this.hideTooltip&&this._removeTooltipListener("blur",this.hideTooltip);this.showTooltip&&this.sliderElem.removeEventListener("mouseenter",this.showTooltip,!1);this.hideTooltip&&this.sliderElem.removeEventListener("mouseleave",this.hideTooltip,!1);this.sliderElem.removeEventListener("mousedown",this.mousedown,!1);this.touchCapable&&(this.showTooltip&&(this.handle1.removeEventListener("touchstart",this.showTooltip,!1),this.handle1.removeEventListener("touchmove",this.showTooltip,!1),this.handle2.removeEventListener("touchstart",this.showTooltip,!1),this.handle2.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&(this.handle1.removeEventListener("touchend",this.hideTooltip,!1),this.handle2.removeEventListener("touchend",this.hideTooltip,!1)),this.showTooltip&&(this.sliderElem.removeEventListener("touchstart",this.showTooltip,!1),this.sliderElem.removeEventListener("touchmove",this.showTooltip,!1)),this.hideTooltip&&this.sliderElem.removeEventListener("touchend",this.hideTooltip,!1),this.sliderElem.removeEventListener("touchstart",this.touchstart,!1),this.sliderElem.removeEventListener("touchmove",this.touchmove,!1));window.removeEventListener("resize",this.resize,!1)},_bindNonQueryEventHandler:function(n,t){this.eventToCallbackMap[n]===undefined&&(this.eventToCallbackMap[n]=[]);this.eventToCallbackMap[n].push(t)},_unbindNonQueryEventHandler:function(n,t){var r=this.eventToCallbackMap[n],i;if(r!==undefined)for(i=0;i<r.length;i++)if(r[i]===t){r.splice(i,1);break}},_cleanUpEventCallbacksMap:function(){for(var i,t=Object.keys(this.eventToCallbackMap),n=0;n<t.length;n++)i=t[n],delete this.eventToCallbackMap[i]},_showTooltip:function(){this.options.tooltip_split===!1?(this._addClass(this.tooltip,"show"),this.tooltip_min.style.display="none",this.tooltip_max.style.display="none"):(this._addClass(this.tooltip_min,"show"),this._addClass(this.tooltip_max,"show"),this.tooltip.style.display="none");this._state.over=!0},_hideTooltip:function(){this._state.inDrag===!1&&this._alwaysShowTooltip!==!0&&(this._removeClass(this.tooltip,"show"),this._removeClass(this.tooltip_min,"show"),this._removeClass(this.tooltip_max,"show"));this._state.over=!1},_setToolTipOnMouseOver:function(n){function t(n,t){return t?[100-n.percentage[0],i.options.range?100-n.percentage[1]:n.percentage[1]]:[n.percentage[0],n.percentage[1]]}var i=this,r=this.options.formatter(n?n.value[0]:this._state.value[0]),u=n?t(n,this.options.reversed):t(this._state,this.options.reversed);this._setText(this.tooltipInner,r);this.tooltip.style[this.stylePos]=u[0]+"%"},_copyState:function(){return{value:[this._state.value[0],this._state.value[1]],enabled:this._state.enabled,offset:this._state.offset,size:this._state.size,percentage:[this._state.percentage[0],this._state.percentage[1],this._state.percentage[2]],inDrag:this._state.inDrag,over:this._state.over,dragged:this._state.dragged,keyCtrl:this._state.keyCtrl}},_addTickListener:function(){return{addMouseEnter:function(n,t,i){var r=function(){var r=n._copyState(),u=t===n.handle1?r.value[0]:r.value[1],f=void 0;i!==undefined?(u=n.options.ticks[i],f=n.options.ticks_positions.length>0&&n.options.ticks_positions[i]||n._toPercentage(n.options.ticks[i])):f=n._toPercentage(u);r.value[0]=u;r.percentage[0]=f;n._setToolTipOnMouseOver(r);n._showTooltip()};return t.addEventListener("mouseenter",r,!1),r},addMouseLeave:function(n,t){var i=function(){n._hideTooltip()};return t.addEventListener("mouseleave",i,!1),i}}},_layout:function(){var n,f,r,o,s,y,u,p,h,c,e,t,i,l,w,b,a,v;if(n=this.options.reversed?[100-this._state.percentage[0],this.options.range?100-this._state.percentage[1]:this._state.percentage[1]]:[this._state.percentage[0],this._state.percentage[1]],this.handle1.style[this.stylePos]=n[0]+"%",this.handle1.setAttribute("aria-valuenow",this._state.value[0]),f=this.options.formatter(this._state.value[0]),isNaN(f)?this.handle1.setAttribute("aria-valuetext",f):this.handle1.removeAttribute("aria-valuetext"),this.handle2.style[this.stylePos]=n[1]+"%",this.handle2.setAttribute("aria-valuenow",this._state.value[1]),f=this.options.formatter(this._state.value[1]),isNaN(f)?this.handle2.setAttribute("aria-valuetext",f):this.handle2.removeAttribute("aria-valuetext"),this.rangeHighlightElements.length>0&&Array.isArray(this.options.rangeHighlights)&&this.options.rangeHighlights.length>0)for(r=0;r<this.options.rangeHighlights.length;r++)o=this._toPercentage(this.options.rangeHighlights[r].start),s=this._toPercentage(this.options.rangeHighlights[r].end),this.options.reversed&&(y=100-s,s=100-o,o=y),u=this._createHighlightRange(o,s),u?this.options.orientation==="vertical"?(this.rangeHighlightElements[r].style.top=u.start+"%",this.rangeHighlightElements[r].style.height=u.size+"%"):(this.options.rtl?this.rangeHighlightElements[r].style.right=u.start+"%":this.rangeHighlightElements[r].style.left=u.start+"%",this.rangeHighlightElements[r].style.width=u.size+"%"):this.rangeHighlightElements[r].style.display="none";if(Array.isArray(this.options.ticks)&&this.options.ticks.length>0){if(p=this.options.orientation==="vertical"?"height":"width",h=this.options.orientation==="vertical"?"marginTop":this.options.rtl?"marginRight":"marginLeft",c=this._state.size/(this.options.ticks.length-1),this.tickLabelContainer){if(e=0,this.options.ticks_positions.length===0)this.options.orientation!=="vertical"&&(this.tickLabelContainer.style[h]=-c/2+"px"),e=this.tickLabelContainer.offsetHeight;else for(t=0;t<this.tickLabelContainer.childNodes.length;t++)this.tickLabelContainer.childNodes[t].offsetHeight>e&&(e=this.tickLabelContainer.childNodes[t].offsetHeight);this.options.orientation==="horizontal"&&(this.sliderElem.style.marginBottom=e+"px")}for(t=0;t<this.options.ticks.length;t++)i=this.options.ticks_positions[t]||this._toPercentage(this.options.ticks[t]),this.options.reversed&&(i=100-i),this.ticks[t].style[this.stylePos]=i+"%",this._removeClass(this.ticks[t],"in-selection"),this.options.range?i>=n[0]&&i<=n[1]&&this._addClass(this.ticks[t],"in-selection"):this.options.selection==="after"&&i>=n[0]?this._addClass(this.ticks[t],"in-selection"):this.options.selection==="before"&&i<=n[0]&&this._addClass(this.ticks[t],"in-selection"),this.tickLabels[t]&&(this.tickLabels[t].style[p]=c+"px",this.options.orientation!=="vertical"&&this.options.ticks_positions[t]!==undefined?(this.tickLabels[t].style.position="absolute",this.tickLabels[t].style[this.stylePos]=i+"%",this.tickLabels[t].style[h]=-c/2+"px"):this.options.orientation==="vertical"&&(this.options.rtl?this.tickLabels[t].style.marginRight=this.sliderElem.offsetWidth+"px":this.tickLabels[t].style.marginLeft=this.sliderElem.offsetWidth+"px",this.tickLabelContainer.style[h]=this.sliderElem.offsetWidth/-2+"px"),this._removeClass(this.tickLabels[t],"label-in-selection label-is-selection"),this.options.range?i>=n[0]&&i<=n[1]&&(this._addClass(this.tickLabels[t],"label-in-selection"),(i===n[0]||n[1])&&this._addClass(this.tickLabels[t],"label-is-selection")):(this.options.selection==="after"&&i>=n[0]?this._addClass(this.tickLabels[t],"label-in-selection"):this.options.selection==="before"&&i<=n[0]&&this._addClass(this.tickLabels[t],"label-in-selection"),i===n[0]&&this._addClass(this.tickLabels[t],"label-is-selection")))}this.options.range?(l=this.options.formatter(this._state.value),this._setText(this.tooltipInner,l),this.tooltip.style[this.stylePos]=(n[1]+n[0])/2+"%",w=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner_min,w),b=this.options.formatter(this._state.value[1]),this._setText(this.tooltipInner_max,b),this.tooltip_min.style[this.stylePos]=n[0]+"%",this.tooltip_max.style[this.stylePos]=n[1]+"%"):(l=this.options.formatter(this._state.value[0]),this._setText(this.tooltipInner,l),this.tooltip.style[this.stylePos]=n[0]+"%");this.options.orientation==="vertical"?(this.trackLow.style.top="0",this.trackLow.style.height=Math.min(n[0],n[1])+"%",this.trackSelection.style.top=Math.min(n[0],n[1])+"%",this.trackSelection.style.height=Math.abs(n[0]-n[1])+"%",this.trackHigh.style.bottom="0",this.trackHigh.style.height=100-Math.min(n[0],n[1])-Math.abs(n[0]-n[1])+"%"):(this.stylePos==="right"?this.trackLow.style.right="0":this.trackLow.style.left="0",this.trackLow.style.width=Math.min(n[0],n[1])+"%",this.stylePos==="right"?this.trackSelection.style.right=Math.min(n[0],n[1])+"%":this.trackSelection.style.left=Math.min(n[0],n[1])+"%",this.trackSelection.style.width=Math.abs(n[0]-n[1])+"%",this.stylePos==="right"?this.trackHigh.style.left="0":this.trackHigh.style.right="0",this.trackHigh.style.width=100-Math.min(n[0],n[1])-Math.abs(n[0]-n[1])+"%",a=this.tooltip_min.getBoundingClientRect(),v=this.tooltip_max.getBoundingClientRect(),this.options.tooltip_position==="bottom"?a.r
49ight>v.left?(this._removeClass(this.tooltip_max,"bs-tooltip-bottom"),this._addClass(this.tooltip_max,"bs-tooltip-top"),this.tooltip_max.style.top="",this.tooltip_max.style.bottom="22px"):(this._removeClass(this.tooltip_max,"bs-tooltip-top"),this._addClass(this.tooltip_max,"bs-tooltip-bottom"),this.tooltip_max.style.top=this.tooltip_min.style.top,this.tooltip_max.style.bottom=""):a.right>v.left?(this._removeClass(this.tooltip_max,"bs-tooltip-top"),this._addClass(this.tooltip_max,"bs-tooltip-bottom"),this.tooltip_max.style.top="18px"):(this._removeClass(this.tooltip_max,"bs-tooltip-bottom"),this._addClass(this.tooltip_max,"bs-tooltip-top"),this.tooltip_max.style.top=this.tooltip_min.style.top))},_createHighlightRange:function(n,t){return this._isHighlightRange(n,t)?n>t?{start:t,size:n-t}:{start:n,size:t-n}:null},_isHighlightRange:function(n,t){return 0<=n&&n<=100&&0<=t&&t<=100?!0:!1},_resize:function(){this._state.offset=this._offset(this.sliderElem);this._state.size=this.sliderElem[this.sizePos];this._layout()},_removeProperty:function(n,t){n.style.removeProperty?n.style.removeProperty(t):n.style.removeAttribute(t)},_mousedown:function(n){var t,r,u,i;return this._state.enabled?(n.preventDefault&&n.preventDefault(),this._state.offset=this._offset(this.sliderElem),this._state.size=this.sliderElem[this.sizePos],t=this._getPercentage(n),this.options.range?(r=Math.abs(this._state.percentage[0]-t),u=Math.abs(this._state.percentage[1]-t),this._state.dragged=r<u?0:1,this._adjustPercentageForRangeSliders(t)):this._state.dragged=0,this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),this.mousemove&&document.removeEventListener("mousemove",this.mousemove,!1),this.mouseup&&document.removeEventListener("mouseup",this.mouseup,!1),this.mousemove=this._mousemove.bind(this),this.mouseup=this._mouseup.bind(this),this.touchCapable&&(document.addEventListener("touchmove",this.mousemove,!1),document.addEventListener("touchend",this.mouseup,!1)),document.addEventListener("mousemove",this.mousemove,!1),document.addEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!0,i=this._calculateValue(),this._trigger("slideStart",i),this.setValue(i,!1,!0),n.returnValue=!1,this.options.focus&&this._triggerFocusOnHandle(this._state.dragged),!0):!1},_touchstart:function(n){this._mousedown(n)},_triggerFocusOnHandle:function(n){n===0&&this.handle1.focus();n===1&&this.handle2.focus()},_keydown:function(n,t){var i,r,u,e,o,s;if(!this._state.enabled)return!1;switch(t.keyCode){case 37:case 40:i=-1;break;case 39:case 38:i=1}if(i){if(this.options.natural_arrow_keys){var h=this.options.orientation==="horizontal",c=this.options.orientation==="vertical",l=this.options.rtl,f=this.options.reversed;h?l?f||(i=-i):f&&(i=-i):c&&(f||(i=-i))}return this.ticksAreValid&&this.options.lock_to_ticks?(u=void 0,u=this.options.ticks.indexOf(this._state.value[n]),u===-1&&(u=0,window.console.warn("(lock_to_ticks) _keydown: index should not be -1")),u+=i,u=Math.max(0,Math.min(this.options.ticks.length-1,u)),r=this.options.ticks[u]):r=this._state.value[n]+i*this.options.step,e=this._toPercentage(r),this._state.keyCtrl=n,this.options.range?(this._adjustPercentageForRangeSliders(e),o=this._state.keyCtrl?this._state.value[0]:r,s=this._state.keyCtrl?r:this._state.value[1],r=[Math.max(this.options.min,Math.min(this.options.max,o)),Math.max(this.options.min,Math.min(this.options.max,s))]):r=Math.max(this.options.min,Math.min(this.options.max,r)),this._trigger("slideStart",r),this.setValue(r,!0,!0),this._trigger("slideStop",r),this._pauseEvent(t),delete this._state.keyCtrl,!1}},_pauseEvent:function(n){n.stopPropagation&&n.stopPropagation();n.preventDefault&&n.preventDefault();n.cancelBubble=!0;n.returnValue=!1},_mousemove:function(n){var t,i;return this._state.enabled?(t=this._getPercentage(n),this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,i=this._calculateValue(!0),this.setValue(i,!0,!0),!1):!1},_touchmove:function(n){n.changedTouches!==undefined&&n.preventDefault&&n.preventDefault()},_adjustPercentageForRangeSliders:function(n){var t,i;this.options.range&&(t=this._getNumDigitsAfterDecimalPlace(n),t=t?t-1:0,i=this._applyToFixedAndParseFloat(n,t),this._state.dragged===0&&this._applyToFixedAndParseFloat(this._state.percentage[1],t)<i?(this._state.percentage[0]=this._state.percentage[1],this._state.dragged=1):this._state.dragged===1&&this._applyToFixedAndParseFloat(this._state.percentage[0],t)>i?(this._state.percentage[1]=this._state.percentage[0],this._state.dragged=0):this._state.keyCtrl===0&&this._toPercentage(this._state.value[1])<n?(this._state.percentage[0]=this._state.percentage[1],this._state.keyCtrl=1,this.handle2.focu
49s()):this._state.keyCtrl===1&&this._toPercentage(this._state.value[0])>n&&(this._state.percentage[1]=this._state.percentage[0],this._state.keyCtrl=0,this.handle1.focus()))},_mouseup:function(n){var t,i;return this._state.enabled?(t=this._getPercentage(n),this._adjustPercentageForRangeSliders(t),this._state.percentage[this._state.dragged]=t,this.touchCapable&&(document.removeEventListener("touchmove",this.mousemove,!1),document.removeEventListener("touchend",this.mouseup,!1)),document.removeEventListener("mousemove",this.mousemove,!1),document.removeEventListener("mouseup",this.mouseup,!1),this._state.inDrag=!1,this._state.over===!1&&this._hideTooltip(),i=this._calculateValue(!0),this.setValue(i,!1,!0),this._trigger("slideStop",i),this._state.dragged=null,!1):!1},_setValues:function(n,t){var i=0===n?0:100;this._state.percentage[n]!==i&&(t.data[n]=this._toValue(this._state.percentage[n]),t.data[n]=this._applyPrecision(t.data[n]))},_calculateValue:function(n){var t={};return this.options.range?(t.data=[this.options.min,this.options.max],this._setValues(0,t),this._setValues(1,t),n&&(t.data[0]=this._snapToClosestTick(t.data[0]),t.data[1]=this._snapToClosestTick(t.data[1]))):(t.data=this._toValue(this._state.percentage[0]),t.data=parseFloat(t.data),t.data=this._applyPrecision(t.data),n&&(t.data=this._snapToClosestTick(t.data))),t.data},_snapToClosestTick:function(n){for(var r,t=[n,Infinity],i=0;i<this.options.ticks.length;i++)r=Math.abs(this.options.ticks[i]-n),r<=t[1]&&(t=[this.options.ticks[i],r]);return t[1]<=this.options.ticks_snap_bounds?t[0]:n},_applyPrecision:function(n){return this._applyToFixedAndParseFloat(n,this.options.precision||this._getNumDigitsAfterDecimalPlace(this.options.step))},_getNumDigitsAfterDecimalPlace:function(n){var t=(""+n).match(/(?:\.(\d+))?(?:[eE]([+-]?\d+))?$/);return t?Math.max(0,(t[1]?t[1].length:0)-(t[2]?+t[2]:0)):0},_applyToFixedAndParseFloat:function(n,t){var i=Math.pow(10,t);return Math.round(parseFloat(n)*i*(1+Number.EPSILON))/i},_getPercentage:function(n){var t=this,r=t._state,f=t.options,e="vertical"===f.orientation,o=t.sliderElem,i;t.touchCapable&&("touchstart"===n.type||"touchmove"===n.type||"touchend"===n.type)&&(n=n.changedTouches[0]);var s=n[t.mousePos],h=r.offset[t.stylePos],u=(s-h)/(o.getBoundingClientRect()[e?"height":"width"]/o["offset"+(e?"Height":"Width")]);return"right"===t.stylePos&&(u=-u),i=u/r.size*100,i=Math.round(i/r.percentage[2])*r.percentage[2],Math.max(0,Math.min(100,f.reversed?100-i:i))},_validateInputValue:function(n){if(isNaN(+n)){if(Array.isArray(n))return this._validateArray(n),n;throw new Error(e.formatInvalidInputErrorMsg(n));}else return+n},_validateArray:function(n){for(var i,t=0;t<n.length;t++)if(i=n[t],typeof i!="number")throw new Error(e.formatInvalidInputErrorMsg(i));},_setDataVal:function(n){this.element.setAttribute("data-value",n);this.element.setAttribute("value",n);this.element.value=n},_trigger:function(t,i){var r,u,f;if(i=i||i===0?i:undefined,r=this.eventToCallbackMap[t],r&&r.length)for(u=0;u<r.length;u++)f=r[u],f(i);n&&this._triggerJQueryEvent(t,i)},_triggerJQueryEvent:function(n,t){var i={type:n,value:t};this.$element.trigger(i);this.$sliderElem.trigger(i)},_unbindJQueryEventHandlers:function(){this.$element.off();this.$sliderElem.off()},_setText:function(n,t){typeof n.textContent!="undefined"?n.textContent=t:typeof n.innerText!="undefined"&&(n.innerText=t)},_removeClass:function(n,t){for(var f,e,u=t.split(" "),i=n.className,r=0;r<u.length;r++)f=u[r],e=new RegExp("(?:\\s|^)"+f+"(?:\\s|$)"),i=i.replace(e," ");n.className=i.trim()},_addClass:function(n,t){for(var u=t.split(" "),i=n.className,r=0;r<u.length;r++){var f=u[r],e=new RegExp("(?:\\s|^)"+f+"(?:\\s|$)"),o=e.test(i);o||(i+=" "+f)}n.className=i.trim()},_offsetLeft:function(n){return n.getBoundingClientRect().left},_offsetRight:function(n){return n.getBoundingClientRect().right},_offsetTop:function(n){for(var t=n.offsetTop;(n=n.offsetParent)&&!isNaN(n.offsetTop);)t+=n.offsetTop,n!==document.body&&(t-=n.scrollTop);return t},_offset:function(n){return{left:this._offsetLeft(n),right:this._offsetRight(n),top:this._offsetTop(n)}},_css:function(t,i,r){if(n)n.style(t,i,r);else{var u=i.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(n,t){return t.toUpperCase()});t.style[u]=r}},_toValue:function(n){return this.options.scale.toValue.apply(this,[n])},_toPercentage:function(n){return this.options.scale.toPercentage.apply(this,[n])},_setTooltipPosition:function(){var n=[this.tooltip,this.tooltip_min,this.tooltip_max],t,i;this.options.orientation==="vertical"?(t=this.options.tooltip_position?this.options.tooltip_position:this.options.rtl?"left":"right",i=t==="left"?"right":"left",n.forEac
49h(function(n){this._addClass(n,"bs-tooltip-"+t);n.style[i]="100%"}.bind(this))):this.options.tooltip_position==="bottom"?n.forEach(function(n){this._addClass(n,"bs-tooltip-bottom");n.style.top="22px"}.bind(this)):n.forEach(function(n){this._addClass(n,"bs-tooltip-top");n.style.top=-this.tooltip.outerHeight-14+"px"}.bind(this))},_getClosestTickIndex:function(n){for(var i,r=Math.abs(n-this.options.ticks[0]),u=0,t=0;t<this.options.ticks.length;++t)i=Math.abs(n-this.options.ticks[t]),i<r&&(r=i,u=t);return u},_setTickIndex:function(){this.ticksAreValid&&(this._state.tickIndex=[this.options.ticks.indexOf(this._state.value[0]),this.options.ticks.indexOf(this._state.value[1])])}};n&&n.fn&&(n.fn.slider?(windowIsDefined&&window.console.warn("bootstrap-slider.js - WARNING: $.fn.slider namespace is already bound. Use the $.fn.bootstrapSlider namespace instead."),u=r):(n.bridget(i,t),u=i),n.bridget(r,t),n(function(){n("input[data-provide=slider]")[u]()}))}(n),t});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.