
/*!
 * Bootstrap v3.1.0 (http://getbootstrap.com)
 * Copyright 2011-2014 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 */
if("undefined"==typeof jQuery){throw new Error("Bootstrap requires jQuery")}+function(d){function c(){var f=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var g in e){if(void 0!==f.style[g]){return{end:e[g]}}}return !1}d.fn.emulateTransitionEnd=function(a){var h=!1,g=this;d(this).one(d.support.transition.end,function(){h=!0});var f=function(){h||d(g).trigger(d.support.transition.end)};return setTimeout(f,a),this},d(function(){d.support.transition=c()})}(jQuery),+function(f){var e='[data-dismiss="alert"]',h=function(a){f(a).on("click",e,this.close)};h.prototype.close=function(a){function l(){i.trigger("closed.bs.alert").remove()}var k=f(this),j=k.attr("data-target");j||(j=k.attr("href"),j=j&&j.replace(/.*(?=#[^\s]*$)/,""));var i=f(j);a&&a.preventDefault(),i.length||(i=k.hasClass("alert")?k:k.parent()),i.trigger(a=f.Event("close.bs.alert")),a.isDefaultPrevented()||(i.removeClass("in"),f.support.transition&&i.hasClass("fade")?i.one(f.support.transition.end,l).emulateTransitionEnd(150):l())};var g=f.fn.alert;f.fn.alert=function(a){return this.each(function(){var c=f(this),b=c.data("bs.alert");b||c.data("bs.alert",b=new h(this)),"string"==typeof a&&b[a].call(c)})},f.fn.alert.Constructor=h,f.fn.alert.noConflict=function(){return f.fn.alert=g,this},f(document).on("click.bs.alert.data-api",e,h.prototype.close)}(jQuery),+function(e){var d=function(b,a){this.$element=e(b),this.options=e.extend({},d.DEFAULTS,a),this.isLoading=!1};d.DEFAULTS={loadingText:"loading..."},d.prototype.setState=function(a){var j="disabled",i=this.$element,h=i.is("input")?"val":"html",g=i.data();a+="Text",g.resetText||i.data("resetText",i[h]()),i[h](g[a]||this.options[a]),setTimeout(e.proxy(function(){"loadingText"==a?(this.isLoading=!0,i.addClass(j).attr(j,j)):this.isLoading&&(this.isLoading=!1,i.removeClass(j).removeAttr(j))},this),0)},d.prototype.toggle=function(){var h=!0,g=this.$element.closest('[data-toggle="buttons"]');if(g.length){var i=this.$element.find("input");"radio"==i.prop("type")&&(i.prop("checked")&&this.$element.hasClass("active")?h=!1:g.find(".active").removeClass("active")),h&&i.prop("checked",!this.$element.hasClass("active")).trigger("change")}h&&this.$element.toggleClass("active")};var f=e.fn.button;e.fn.button=function(a){return this.each(function(){var g=e(this),c=g.data("bs.button"),b="object"==typeof a&&a;c||g.data("bs.button",c=new d(this,b)),"toggle"==a?c.toggle():a&&c.setState(a)})},e.fn.button.Constructor=d,e.fn.button.noConflict=function(){return e.fn.button=f,this},e(document).on("click.bs.button.data-api","[data-toggle^=button]",function(a){var g=e(a.target);g.hasClass("btn")||(g=g.closest(".btn")),g.button("toggle"),a.preventDefault()})}(jQuery),+function(e){var d=function(a,g){this.$element=e(a),this.$indicators=this.$element.find(".carousel-indicators"),this.options=g,this.paused=this.sliding=this.interval=this.$active=this.$items=null,"hover"==this.options.pause&&this.$element.on("mouseenter",e.proxy(this.pause,this)).on("mouseleave",e.proxy(this.cycle,this))};d.DEFAULTS={interval:5000,pause:"hover",wrap:!0},d.prototype.cycle=function(a){return a||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(e.proxy(this.next,this),this.options.interval)),this},d.prototype.getActiveIndex=function(){return this.$active=this.$element.find(".item.active"),this.$items=this.$active.parent().children(),this.$items.index(this.$active)},d.prototype.to=function(a){var h=this,g=this.getActiveIndex();return a>this.$items.length-1||0>a?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){h.to(a)}):g==a?this.pause().cycle():this.slide(a>g?"next":"prev",e(this.$items[a]))},d.prototype.pause=function(a){return a||(this.paused=!0),this.$element.find(".next, .prev").length&&e.support.transition&&(this.$element.trigger(e.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},d.prototype.next=function(){return this.sliding?void 0:this.slide("next")},d.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},d.prototype.slide=function(r,q){var p=this.$element.find(".item.active"),o=q||p[r](),n=this.interval,m="next"==r?"left":"right",l="next"==r?"first":"last",k=this;if(!o.length){if(!this.options.wrap){return}o=this.$element.find(".item")[l]()}if(o.hasClass("active")){return this.sliding=!1}var a=e.Event("slide.bs.carousel",{relatedTarget:o[0],direction:m});return this.$element.trigger(a),a.isDefaultPrevented()?void 0:(this.sliding=!0,n&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),this.$element.one("slid.bs.carousel",function(){var c=e(k.$indicators.children()[k.getActiveIndex()]);c&&c.addClass("active")})),e.support.transition&&this.$element.hasClass("slide")?(o.addClass(r),o[0].offsetWidth,p.addClass(m),o.addClass(m),p.one(e.support.transition.end,function(){o.removeClass([r,m].join(" ")).addClass("active"),p.removeClass(["active",m].join(" ")),k.sliding=!1,setTimeout(function(){k.$element.trigger("slid.bs.carousel")},0)}).emulateTransitionEnd(1000*p.css("transition-duration").slice(0,-1))):(p.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger("slid.bs.carousel")),n&&this.cycle(),this)};var f=e.fn.carousel;e.fn.carousel=function(a){return this.each(function(){var i=e(this),h=i.data("bs.carousel"),c=e.extend({},d.DEFAULTS,i.data(),"object"==typeof a&&a),b="string"==typeof a?a:c.slide;h||i.data("bs.carousel",h=new d(this,c)),"number"==typeof a?h.to(a):b?h[b]():c.interval&&h.pause().cycle()})},e.fn.carousel.Constructor=d,e.fn.carousel.noConflict=function(){return e.fn.carousel=f,this},e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",function(a){var l,k=e(this),j=e(k.attr("data-target")||(l=k.attr("href"))&&l.replace(/.*(?=#[^\s]+$)/,"")),i=e.extend({},j.data(),k.data()),h=k.attr("data-slide-to");h&&(i.interval=!1),j.carousel(i),(h=k.attr("data-slide-to"))&&j.data("bs.carousel").to(h),a.preventDefault()}),e(window).on("load",function(){e('[data-ride="carousel"]').each(function(){var a=e(this);a.carousel(a.data())})})}(jQuery),+function(e){var d=function(b,a){this.$element=e(b),this.options=e.extend({},d.DEFAULTS,a),this.transitioning=null,this.options.parent&&(this.$parent=e(this.options.parent)),this.options.toggle&&this.toggle()};d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var b=this.$element.hasClass("width");return b?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var a=e.Event("show.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){var l=this.$parent&&this.$parent.find("> .panel > .in");if(l&&l.length){var k=l.data("bs.collapse");if(k&&k.transitioning){return}l.collapse("hide"),k||l.data("bs.collapse",null)}var j=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[j](0),this.transitioning=1;var i=function(){this.$element.removeClass("collapsing").addClass("collapse in")[j]("auto"),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!e.support.transition){return i.call(this)}var h=e.camelCase(["scroll",j].join("-"));this.$element.one(e.support.transition.end,e.proxy(i,this)).emulateTransitionEnd(350)[j](this.$element[0][h])}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var a=e.Event("hide.bs.collapse");if(this.$element.trigger(a),!a.isDefaultPrevented()){var h=this.dimension();this.$element[h](this.$element[h]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse").removeClass("in"),this.transitioning=1;var g=function(){this.transitioning=0,this.$element.trigger("hidden.bs.collapse").removeClass("collapsing").addClass("collapse")};return e.support.transition?void this.$element[h](0).one(e.support.transition.end,e.proxy(g,this)).emulateTransitionEnd(350):g.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};var f=e.fn.collapse;e.fn.collapse=function(a){return this.each(function(){var g=e(this),c=g.data("bs.collapse"),b=e.extend({},d.DEFAULTS,g.data(),"object"==typeof a&&a);!c&&b.toggle&&"show"==a&&(a=!a),c||g.data("bs.collapse",c=new d(this,b)),"string"==typeof a&&c[a]()})},e.fn.collapse.Constructor=d,e.fn.collapse.noConflict=function(){return e.fn.collapse=f,this},e(document).on("click.bs.collapse.data-api","[data-toggle=collapse]",function(r){var q,p=e(this),o=p.attr("data-target")||r.preventDefault()||(q=p.attr("href"))&&q.replace(/.*(?=#[^\s]+$)/,""),n=e(o),m=n.data("bs.collapse"),l=m?"toggle":p.data(),k=p.attr("data-parent"),a=k&&e(k);m&&m.transitioning||(a&&a.find('[data-toggle=collapse][data-parent="'+k+'"]').not(p).addClass("collapsed"),p[n.hasClass("in")?"addClass":"removeClass"]("collapsed")),n.collapse(l)})}(jQuery),+function(i){function h(a){i(m).remove(),i(l).each(function(){var c=n(i(this)),b={relatedTarget:this};c.hasClass("open")&&(c.trigger(a=i.Event("hide.bs.dropdown",b)),a.isDefaultPrevented()||c.removeClass("open").trigger("hidden.bs.dropdown",b))})}function n(a){var f=a.attr("data-target");f||(f=a.attr("href"),f=f&&/#[A-Za-z]/.test(f)&&f.replace(/.*(?=#[^\s]*$)/,""));var e=f&&i(f);return e&&e.length?e:a.parent()}var m=".dropdown-backdrop",l="#estimation_popup [data-toggle=dropdown]",k=function(a){i(a).on("click.bs.dropdown",this.toggle)};k.prototype.toggle=function(p){var o=i(this);if(!o.is(".disabled, :disabled")){var c=n(o),b=c.hasClass("open");if(h(),!b){"ontouchstart" in document.documentElement&&!c.closest(".navbar-nav").length&&i('<div class="dropdown-backdrop"/>').insertAfter(i(this)).on("click",h);var a={relatedTarget:this};if(c.trigger(p=i.Event("show.bs.dropdown",a)),p.isDefaultPrevented()){return}c.toggleClass("open").trigger("shown.bs.dropdown",a),o.focus()}return !1}},k.prototype.keydown=function(a){if(/(38|40|27)/.test(a.keyCode)){var r=i(this);if(a.preventDefault(),a.stopPropagation(),!r.is(".disabled, :disabled")){var q=n(r),p=q.hasClass("open");if(!p||p&&27==a.keyCode){return 27==a.which&&q.find(l).focus(),r.click()}var o=" li:not(.divider):visible a",e=q.find("[role=menu]"+o+", [role=listbox]"+o);if(e.length){var c=e.index(e.filter(":focus"));38==a.keyCode&&c>0&&c--,40==a.keyCode&&c<e.length-1&&c++,~c||(c=0),e.eq(c).focus()}}}};var j=i.fn.dropdown;i.fn.dropdown=function(a){return this.each(function(){var e=i(this),b=e.data("bs.dropdown");b||e.data("bs.dropdown",b=new k(this)),"string"==typeof a&&b[a].call(e)})},i.fn.dropdown.Constructor=k,i.fn.dropdown.noConflict=function(){return i.fn.dropdown=j,this},i(document).on("click.bs.dropdown.data-api",h).on("click.bs.dropdown.data-api",".dropdown form",function(b){b.stopPropagation()}).on("click.bs.dropdown.data-api",l,k.prototype.toggle).on("keydown.bs.dropdown.data-api",l+", [role=menu], [role=listbox]",k.prototype.keydown)}(jQuery),+function(e){var d=function(a,g){this.options=g,this.$element=e(a),this.$backdrop=this.isShown=null,this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,e.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))};d.DEFAULTS={backdrop:!0,keyboard:!0,show:!0},d.prototype.toggle=function(b){return this[this.isShown?"hide":"show"](b)},d.prototype.show=function(a){var h=this,g=e.Event("show.bs.modal",{relatedTarget:a});this.$element.trigger(g),this.isShown||g.isDefaultPrevented()||(this.isShown=!0,this.escape(),this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',e.proxy(this.hide,this)),this.backdrop(function(){var c=e.support.transition&&h.$element.hasClass("fade");h.$element.parent().length||h.$element.appendTo(document.body),h.$element.show().scrollTop(0),c&&h.$element[0].offsetWidth,h.$element.addClass("in").attr("aria-hidden",!1),h.enforceFocus();var b=e.Event("shown.bs.modal",{relatedTarget:a});c?h.$element.find(".modal-dialog").one(e.support.transition.end,function(){h.$element.focus().trigger(b)}).emulateTransitionEnd(300):h.$element.focus().trigger(b)}))},d.prototype.hide=function(a){a&&a.preventDefault(),a=e.Event("hide.bs.modal"),this.$element.trigger(a),this.isShown&&!a.isDefaultPrevented()&&(this.isShown=!1,this.escape(),e(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),e.support.transition&&this.$element.hasClass("fade")?this.$element.one(e.support.transition.end,e.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal())},d.prototype.enforceFocus=function(){e(document).off("focusin.bs.modal").on("focusin.bs.modal",e.proxy(function(b){this.$element[0]===b.target||this.$element.has(b.target).length||this.$element.focus()},this))},d.prototype.escape=function(){this.isShown&&this.options.keyboard?this.$element.on("keyup.dismiss.bs.modal",e.proxy(function(b){27==b.which&&this.hide()},this)):this.isShown||this.$element.off("keyup.dismiss.bs.modal")},d.prototype.hideModal=function(){var b=this;this.$element.hide(),this.backdrop(function(){b.removeBackdrop(),b.$element.trigger("hidden.bs.modal")})},d.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove(),this.$backdrop=null},d.prototype.backdrop=function(a){var h=this.$element.hasClass("fade")?"fade":"";if(this.isShown&&this.options.backdrop){var g=e.support.transition&&h;if(this.$backdrop=e('<div class="modal-backdrop '+h+'" />').appendTo(document.body),this.$element.on("click.dismiss.bs.modal",e.proxy(function(b){b.target===b.currentTarget&&("static"==this.options.backdrop?this.$element[0].focus.call(this.$element[0]):this.hide.call(this))},this)),g&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!a){return}g?this.$backdrop.one(e.support.transition.end,a).emulateTransitionEnd(150):a()}else{!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),e.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one(e.support.transition.end,a).emulateTransitionEnd(150):a()):a&&a()}};var f=e.fn.modal;e.fn.modal=function(b,a){return this.each(function(){var i=e(this),h=i.data("bs.modal"),c=e.extend({},d.DEFAULTS,i.data(),"object"==typeof b&&b);h||i.data("bs.modal",h=new d(this,c)),"string"==typeof b?h[b](a):c.show&&h.show(a)})},e.fn.modal.Constructor=d,e.fn.modal.noConflict=function(){return e.fn.modal=f,this},e(document).on("click.bs.modal.data-api",'#estimation_popup [data-toggle="modal"]',function(a){var j=e(this),i=j.attr("href"),h=e(j.attr("data-target")||i&&i.replace(/.*(?=#[^\s]+$)/,"")),g=h.data("bs.modal")?"toggle":e.extend({remote:!/#/.test(i)&&i},h.data(),j.data());j.is("a")&&a.preventDefault(),h.modal(g,this).one("hide",function(){j.is(":visible")&&j.focus()})}),e(document).on("show.bs.modal",".modal",function(){e(document.body).addClass("modal-open")}).on("hidden.bs.modal",".modal",function(){e(document.body).removeClass("modal-open")})}(jQuery),+function(e){var d=function(g,c){this.type=this.options=this.enabled=this.timeout=this.hoverState=this.$element=null,this.init("b_tooltip",g,c)};d.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1},d.prototype.init=function(a,p,o){this.enabled=!0,this.type=a,this.$element=e(p),this.options=this.getOptions(o);for(var n=this.options.trigger.split(" "),m=n.length;m--;){var l=n[m];if("click"==l){this.$element.on("click."+this.type,this.options.selector,e.proxy(this.toggle,this))}else{if("manual"!=l){var k="hover"==l?"mouseenter":"focusin",j="hover"==l?"mouseleave":"focusout";this.$element.on(k+"."+this.type,this.options.selector,e.proxy(this.enter,this)),this.$element.on(j+"."+this.type,this.options.selector,e.proxy(this.leave,this))}}}this.options.selector?this._options=e.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},d.prototype.getDefaults=function(){return d.DEFAULTS},d.prototype.getOptions=function(a){return a=e.extend({},this.getDefaults(),this.$element.data(),a),a.delay&&"number"==typeof a.delay&&(a.delay={show:a.delay,hide:a.delay}),a},d.prototype.getDelegateOptions=function(){var a={},g=this.getDefaults();return this._options&&e.each(this._options,function(b,c){g[b]!=c&&(a[b]=c)}),a},d.prototype.enter=function(a){var g=a instanceof this.constructor?a:e(a.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(g.timeout),g.hoverState="in",g.options.delay&&g.options.delay.show?void (g.timeout=setTimeout(function(){"in"==g.hoverState&&g.show()},g.options.delay.show)):g.show()},d.prototype.leave=function(a){var g=a instanceof this.constructor?a:e(a.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type);return clearTimeout(g.timeout),g.hoverState="out",g.options.delay&&g.options.delay.hide?void (g.timeout=setTimeout(function(){"out"==g.hoverState&&g.hide()},g.options.delay.hide)):g.hide()},d.prototype.show=function(){var H=e.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){if(this.$element.trigger(H),H.isDefaultPrevented()){return}var G=this,F=this.tip();this.setContent(),this.options.animation&&F.addClass("fade");var E="function"==typeof this.options.placement?this.options.placement.call(this,F[0],this.$element[0]):this.options.placement,D=/\s?auto?\s?/i,C=D.test(E);C&&(E=E.replace(D,"")||"top"),F.detach().css({top:0,left:0,display:"block"}).addClass(E),this.options.container?F.appendTo(this.options.container):F.insertAfter(this.$element);var B=this.getPosition(),A=F[0].offsetWidth,z=F[0].offsetHeight;if(C){var y=this.$element.parent(),x=E,w=document.documentElement.scrollTop||document.body.scrollTop,v="body"==this.options.container?window.innerWidth:y.outerWidth(),u="body"==this.options.container?window.innerHeight:y.outerHeight(),t="body"==this.options.container?0:y.offset().left;E="bottom"==E&&B.top+B.height+z-w>u?"top":"top"==E&&B.top-w-z<0?"bottom":"right"==E&&B.right+A>v?"left":"left"==E&&B.left-A<t?"right":E,F.removeClass(x).addClass(E)}var s=this.getCalculatedOffset(E,B,A,z);this.applyPlacement(s,E),this.hoverState=null;var a=function(){G.$element.trigger("shown.bs."+G.type)};e.support.transition&&this.$tip.hasClass("fade")?F.one(e.support.transition.end,a).emulateTransitionEnd(150):a()}},d.prototype.applyPlacement=function(v,u){var t,s=this.tip(),r=s[0].offsetWidth,q=s[0].offsetHeight,p=parseInt(s.css("margin-top"),10),o=parseInt(s.css("margin-left"),10);isNaN(p)&&(p=0),isNaN(o)&&(o=0),v.top=v.top+p,v.left=v.left+o,e.offset.setOffset(s[0],e.extend({using:function(b){s.css({top:Math.round(b.top),left:Math.round(b.left)})}},v),0),s.addClass("in");var n=s[0].offsetWidth,m=s[0].offsetHeight;if("top"==u&&m!=q&&(t=!0,v.top=v.top+q-m),/bottom|top/.test(u)){var a=0;v.left<0&&(a=-2*v.left,v.left=0,s.offset(v),n=s[0].offsetWidth,m=s[0].offsetHeight),this.replaceArrow(a-r+n,n,"left")}else{this.replaceArrow(m-q,m,"top")}t&&s.offset(v)},d.prototype.replaceArrow=function(h,g,i){this.arrow().css(i,h?50*(1-h/g)+"%":"")},d.prototype.setContent=function(){var g=this.tip(),c=this.getTitle();g.find(".tooltip-inner")[this.options.html?"html":"text"](c),g.removeClass("fade in top bottom left right")},d.prototype.hide=function(){function a(){"in"!=i.hoverState&&h.detach(),i.$element.trigger("hidden.bs."+i.type)}var i=this,h=this.tip(),g=e.Event("hide.bs."+this.type);return this.$element.trigger(g),g.isDefaultPrevented()?void 0:(h.removeClass("in"),e.support.transition&&this.$tip.hasClass("fade")?h.one(e.support.transition.end,a).emulateTransitionEnd(150):a(),this.hoverState=null,this)},d.prototype.fixTitle=function(){var b=this.$element;if(b.is("[data-tooltiptext]")){b.attr("data-original-title",b.attr("data-tooltiptext"))}else{(b.attr("title")||"string"!=typeof b.attr("data-original-title"))&&b.attr("data-original-title",b.attr("title")||"").attr("title","")}},d.prototype.hasContent=function(){return this.getTitle()},d.prototype.getPosition=function(){var a=this.$element[0];return e.extend({},"function"==typeof a.getBoundingClientRect?a.getBoundingClientRect():{width:a.offsetWidth,height:a.offsetHeight},this.$element.offset())},d.prototype.getCalculatedOffset=function(h,g,j,i){return"bottom"==h?{top:g.top+g.height,left:g.left+g.width/2-j/2}:"top"==h?{top:g.top-i,left:g.left+g.width/2-j/2}:"left"==h?{top:g.top+g.height/2-i/2,left:g.left-j}:{top:g.top+g.height/2-i/2,left:g.left+g.width}},d.prototype.getTitle=function(){var h,g=this.$element,i=this.options;return h=g.attr("data-original-title")||("function"==typeof i.title?i.title.call(g[0]):i.title)},d.prototype.tip=function(){return this.$tip=this.$tip||e(this.options.template)},d.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},d.prototype.validate=function(){this.$element[0].parentNode||(this.hide(),this.$element=null,this.options=null)},d.prototype.enable=function(){this.enabled=!0},d.prototype.disable=function(){this.enabled=!1},d.prototype.toggleEnabled=function(){this.enabled=!this.enabled},d.prototype.toggle=function(a){var g=a?e(a.currentTarget)[this.type](this.getDelegateOptions()).data("bs."+this.type):this;g.tip().hasClass("in")?g.leave(g):g.enter(g)},d.prototype.destroy=function(){clearTimeout(this.timeout),this.hide().$element.off("."+this.type).removeData("bs."+this.type)};var f=e.fn.b_tooltip;e.fn.b_tooltip=function(a){return this.each(function(){var g=e(this),c=g.data("bs.b_tooltip"),b="object"==typeof a&&a;(c||"destroy"!=a)&&(c||g.data("bs.b_tooltip",c=new d(this,b)),"string"==typeof a&&c[a]())})},e.fn.b_tooltip.Constructor=d,e.fn.b_tooltip.noConflict=function(){return e.fn.b_tooltip=f,this}}(jQuery),+function(e){var d=function(g,c){this.init("popover",g,c)};if(!e.fn.b_tooltip){throw new Error("Popover requires tooltip.js")}d.DEFAULTS=e.extend({},e.fn.b_tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover"><div class="arrow"></div><h3 class="popover-title"></h3><div class="popover-content"></div></div>'}),d.prototype=e.extend({},e.fn.b_tooltip.Constructor.prototype),d.prototype.constructor=d,d.prototype.getDefaults=function(){return d.DEFAULTS},d.prototype.setContent=function(){var h=this.tip(),g=this.getTitle(),i=this.getContent();h.find(".popover-title")[this.options.html?"html":"text"](g),h.find(".popover-content")[this.options.html?"string"==typeof i?"html":"append":"text"](i),h.removeClass("fade top bottom left right in"),h.find(".popover-title").html()||h.find(".popover-title").hide()},d.prototype.hasContent=function(){return this.getTitle()||this.getContent()},d.prototype.getContent=function(){var g=this.$element,c=this.options;return g.attr("data-content")||("function"==typeof c.content?c.content.call(g[0]):c.content)},d.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")},d.prototype.tip=function(){return this.$tip||(this.$tip=e(this.options.template)),this.$tip};var f=e.fn.popover;e.fn.popover=function(a){return this.each(function(){var g=e(this),c=g.data("bs.popover"),b="object"==typeof a&&a;(c||"destroy"!=a)&&(c||g.data("bs.popover",c=new d(this,b)),"string"==typeof a&&c[a]())})},e.fn.popover.Constructor=d,e.fn.popover.noConflict=function(){return e.fn.popover=f,this}}(jQuery),+function(e){function d(h,g){var b,a=e.proxy(this.process,this);this.$element=e(e(h).is("body")?window:h),this.$body=e("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",a),this.options=e.extend({},d.DEFAULTS,g),this.selector=(this.options.target||(b=e(h).attr("href"))&&b.replace(/.*(?=#[^\s]+$)/,"")||"")+" .nav li > a",this.offsets=e([]),this.targets=e([]),this.activeTarget=null,this.refresh(),this.process()}d.DEFAULTS={offset:10},d.prototype.refresh=function(){var a=this.$element[0]==window?"offset":"position";this.offsets=e([]),this.targets=e([]);var g=this;this.$body.find(this.selector).map(function(){var h=e(this),c=h.data("target")||h.attr("href"),b=/^#./.test(c)&&e(c);return b&&b.length&&b.is(":visible")&&[[b[a]().top+(!e.isWindow(g.$scrollElement.get(0))&&g.$scrollElement.scrollTop()),c]]||null}).sort(function(h,c){return h[0]-c[0]}).each(function(){g.offsets.push(this[0]),g.targets.push(this[1])})},d.prototype.process=function(){var i,h=this.$scrollElement.scrollTop()+this.options.offset,n=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,m=n-this.$scrollElement.height(),l=this.offsets,k=this.targets,j=this.activeTarget;if(h>=m){return j!=(i=k.last()[0])&&this.activate(i)}if(j&&h<=l[0]){return j!=(i=k[0])&&this.activate(i)}for(i=l.length;i--;){j!=k[i]&&h>=l[i]&&(!l[i+1]||h<=l[i+1])&&this.activate(k[i])}},d.prototype.activate=function(a){this.activeTarget=a,e(this.selector).parentsUntil(this.options.target,".active").removeClass("active");var h=this.selector+'[data-target="'+a+'"],'+this.selector+'[href="'+a+'"]',g=e(h).parents("li").addClass("active");g.parent(".dropdown-menu").length&&(g=g.closest("li.dropdown").addClass("active")),g.trigger("activate.bs.scrollspy")};var f=e.fn.scrollspy;e.fn.scrollspy=function(a){return this.each(function(){var g=e(this),c=g.data("bs.scrollspy"),b="object"==typeof a&&a;c||g.data("bs.scrollspy",c=new d(this,b)),"string"==typeof a&&c[a]()})},e.fn.scrollspy.Constructor=d,e.fn.scrollspy.noConflict=function(){return e.fn.scrollspy=f,this},e(window).on("load",function(){e('[data-spy="scroll"]').each(function(){var a=e(this);a.scrollspy(a.data())})})}(jQuery),+function(e){var d=function(a){this.element=e(a)};d.prototype.show=function(){var a=this.element,l=a.closest("ul:not(.dropdown-menu)"),k=a.data("target");if(k||(k=a.attr("href"),k=k&&k.replace(/.*(?=#[^\s]*$)/,"")),!a.parent("li").hasClass("active")){var j=l.find(".active:last a")[0],i=e.Event("show.bs.tab",{relatedTarget:j});if(a.trigger(i),!i.isDefaultPrevented()){var h=e(k);this.activate(a.parent("li"),l),this.activate(h,h.parent(),function(){a.trigger({type:"shown.bs.tab",relatedTarget:j})})}}},d.prototype.activate=function(a,l,k){function j(){i.removeClass("active").find("> .dropdown-menu > .active").removeClass("active"),a.addClass("active"),h?(a[0].offsetWidth,a.addClass("in")):a.removeClass("fade"),a.parent(".dropdown-menu")&&a.closest("li.dropdown").addClass("active"),k&&k()}var i=l.find("> .active"),h=k&&e.support.transition&&i.hasClass("fade");h?i.one(e.support.transition.end,j).emulateTransitionEnd(150):j(),i.removeClass("in")};var f=e.fn.tab;e.fn.tab=function(a){return this.each(function(){var c=e(this),b=c.data("bs.tab");b||c.data("bs.tab",b=new d(this)),"string"==typeof a&&b[a]()})},e.fn.tab.Constructor=d,e.fn.tab.noConflict=function(){return e.fn.tab=f,this},e(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"]',function(a){a.preventDefault(),e(this).tab("show")})}(jQuery),+function(e){var d=function(b,a){this.options=e.extend({},d.DEFAULTS,a),this.$window=e(window).on("scroll.bs.affix.data-api",e.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",e.proxy(this.checkPositionWithEventLoop,this)),this.$element=e(b),this.affixed=this.unpin=this.pinnedOffset=null,this.checkPosition()};d.RESET="affix affix-top affix-bottom",d.DEFAULTS={offset:0},d.prototype.getPinnedOffset=function(){if(this.pinnedOffset){return this.pinnedOffset}this.$element.removeClass(d.RESET).addClass("affix");var b=this.$window.scrollTop(),g=this.$element.offset();return this.pinnedOffset=g.top-b},d.prototype.checkPositionWithEventLoop=function(){setTimeout(e.proxy(this.checkPosition,this),1)},d.prototype.checkPosition=function(){if(this.$element.is(":visible")){var r=e(document).height(),q=this.$window.scrollTop(),p=this.$element.offset(),o=this.options.offset,n=o.top,m=o.bottom;"top"==this.affixed&&(p.top+=q),"object"!=typeof o&&(m=n=o),"function"==typeof n&&(n=o.top(this.$element)),"function"==typeof m&&(m=o.bottom(this.$element));var l=null!=this.unpin&&q+this.unpin<=p.top?!1:null!=m&&p.top+this.$element.height()>=r-m?"bottom":null!=n&&n>=q?"top":!1;if(this.affixed!==l){this.unpin&&this.$element.css("top","");var b="affix"+(l?"-"+l:""),a=e.Event(b+".bs.affix");this.$element.trigger(a),a.isDefaultPrevented()||(this.affixed=l,this.unpin="bottom"==l?this.getPinnedOffset():null,this.$element.removeClass(d.RESET).addClass(b).trigger(e.Event(b.replace("affix","affixed"))),"bottom"==l&&this.$element.offset({top:r-m-this.$element.height()}))}}};var f=e.fn.affix;e.fn.affix=function(a){return this.each(function(){var g=e(this),c=g.data("bs.affix"),b="object"==typeof a&&a;c||g.data("bs.affix",c=new d(this,b)),"string"==typeof a&&c[a]()})},e.fn.affix.Constructor=d,e.fn.affix.noConflict=function(){return e.fn.affix=f,this},e(window).on("load",function(){e('[data-spy="affix"]').each(function(){var a=e(this),g=a.data();g.offset=g.offset||{},g.offsetBottom&&(g.offset.bottom=g.offsetBottom),g.offsetTop&&(g.offset.top=g.offsetTop),a.affix(g)})})}(jQuery);

/* ============================================================
 * bootstrapSwitch v1.3 by Larentis Mattia @spiritualGuru
 * http://www.larentis.eu/switch/
 * ============================================================
 * Licensed under the Apache License, Version 2.0
 * http://www.apache.org/licenses/LICENSE-2.0
 * ============================================================ */
!function(a){a.fn.bootstrapSwitch=function(c){var b={init:function(){return this.each(function(){var p=a(this),m,f,l,o,h="",g=p.attr("class"),i,d,j="ON",e="OFF",n=false;a.each(["switch-mini","switch-small","switch-large"],function(q,r){if(g.indexOf(r)>=0){h=r}});p.addClass("has-switch");if(p.data("on")!==undefined){i="switch-"+p.data("on")}if(p.data("on-label")!==undefined){j=p.data("on-label")}if(p.data("off-label")!==undefined){e=p.data("off-label")}if(p.data("icon")!==undefined){n=p.data("icon")}f=a("<span>").addClass("switch-left").addClass(h).addClass(i).html(j);i="";if(p.data("off")!==undefined){i="switch-"+p.data("off")}l=a("<span>").addClass("switch-right").addClass(h).addClass(i).html(e);o=a("<label>").html("&nbsp;").addClass(h).attr("for",p.find("input").attr("id"));if(n){o.html('<i class="'+n+'"></i>')}m=p.find(":checkbox").wrap(a("<div>")).parent().data("animated",false);if(p.data("animated")!==false){m.addClass("switch-animate").data("animated",true)}m.append(f).append(o).append(l);p.find(">div").addClass(p.find("input").is(":checked")?"switch-on":"switch-off");if(p.find("input").is(":disabled")){a(this).addClass("deactivate")}var k=function(q){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){q.siblings("label").trigger("mousedown").trigger("mouseup").trigger("click")}};p.on("keydown",function(q){if(q.keyCode===32){q.stopImmediatePropagation();q.preventDefault();k(a(q.target).find("span:first"))}});f.on("click",function(q){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){k(a(this))}});l.on("click",function(q){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){k(a(this))}});p.find("input").on("change",function(u){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var t=a(this),r=t.parent(),q=t.is(":checked"),s=r.is(".switch-off");u.preventDefault();r.css("left","");if(s===q){if(q){r.removeClass("switch-off").addClass("switch-on")}else{r.removeClass("switch-on").addClass("switch-off")}if(r.data("animated")!==false){r.addClass("switch-animate")}r.parent().trigger("switch-change",{el:t,value:q})}}});p.find("label").on("mousedown touchstart",function(r){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var q=a(this);d=false;r.preventDefault();r.stopImmediatePropagation();q.closest("div").removeClass("switch-animate");if(q.closest(".has-switch").is(".deactivate")){q.unbind("click")}else{q.on("mousemove touchmove",function(x){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var s=a(this).closest(".switch"),u=(x.pageX||x.originalEvent.targetTouches[0].pageX)-s.offset().left,v=(u/s.width())*100,w=25,t=75;d=true;if(v<w){v=w}else{if(v>t){v=t}}s.find(">div").css("left",(v-t)+"%")}});q.on("click touchend",function(u){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var t=a(this),s=a(u.target),v=s.siblings("input");u.stopImmediatePropagation();u.preventDefault();t.unbind("mouseleave");if(d){v.prop("checked",!(parseInt(t.parent().css("left"))<-25))}else{v.prop("checked",!v.is(":checked"))}d=false;v.trigger("change")}});q.on("mouseleave",function(t){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var s=a(this),u=s.siblings("input");t.preventDefault();t.stopImmediatePropagation();s.unbind("mouseleave");s.trigger("mouseup");u.prop("checked",!(parseInt(s.parent().css("left"))<-25)).trigger("change")}});q.on("mouseup",function(s){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){s.stopImmediatePropagation();s.preventDefault();a(this).unbind("mousemove")}})}}})})},toggleActivation:function(){a(this).toggleClass("deactivate")},isActive:function(){return !a(this).hasClass("deactivate")},setActive:function(d){if(d){a(this).removeClass("deactivate")}else{a(this).addClass("deactivate")}},toggleState:function(d){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var e=a(this).find("input:checkbox");e.prop("checked",!e.is(":checked")).trigger("change",d)}},setState:function(e,d){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){a(this).find("input:checkbox").prop("checked",e).trigger("change",d)}},status:function(){return a(this).find("input:checkbox").is(":checked")},destroy:function(){var d=a(this).find("div"),e;d.find(":not(input:checkbox)").remove();e=d.children();e.unwrap().unwrap();e.unbind("change");return e}};if(b[c]){return b[c].apply(this,Array.prototype.slice.call(arguments,1))}else{if(typeof c==="object"||!c){return b.init.apply(this,arguments)}else{a.error("Method "+c+" does not exist!")}}}}(window.jQuery);


/*!
 * Bootstrap-select v1.11.2 (http://silviomoreto.github.io/bootstrap-select)
 *
 * Copyright 2013-2016 bootstrap-select
 * Licensed under MIT (https://github.com/silviomoreto/bootstrap-select/blob/master/LICENSE)
 */
(function(a,b){if(typeof define==="function"&&define.amd){define(["jquery"],function(c){return(b(c))})}else{if(typeof exports==="object"){module.exports=b(require("jquery"))}else{b(jQuery)}}}(this,function(a){(function(f){if(!String.prototype.includes){(function(){var m={}.toString;var j=(function(){try{var q={};var p=Object.defineProperty;var n=p(q,q,q)&&p}catch(o){}return n}());var l="".indexOf;var k=function(s){if(this==null){throw new TypeError()}var q=String(this);if(s&&m.call(s)=="[object RegExp]"){throw new TypeError()}var o=q.length;var p=String(s);var r=p.length;var n=arguments.length>1?arguments[1]:undefined;var u=n?Number(n):0;if(u!=u){u=0}var t=Math.min(Math.max(u,0),o);if(r+t>o){return false}return l.call(q,p,u)!=-1};if(j){j(String.prototype,"includes",{value:k,configurable:true,writable:true})}else{String.prototype.includes=k}}())}if(!String.prototype.startsWith){(function(){var j=(function(){try{var p={};var o=Object.defineProperty;var m=o(p,p,p)&&o}catch(n){}return m}());var l={}.toString;var k=function(t){if(this==null){throw new TypeError()}var q=String(this);if(t&&l.call(t)=="[object RegExp]"){throw new TypeError()}var m=q.length;var u=String(t);var o=u.length;var p=arguments.length>1?arguments[1]:undefined;var s=p?Number(p):0;if(s!=s){s=0}var n=Math.min(Math.max(s,0),m);if(o+n>m){return false}var r=-1;while(++r<o){if(q.charCodeAt(n+r)!=u.charCodeAt(r)){return false}}return true};if(j){j(String.prototype,"startsWith",{value:k,configurable:true,writable:true})}else{String.prototype.startsWith=k}}())}if(!Object.keys){Object.keys=function(m,j,l){l=[];for(j in m){l.hasOwnProperty.call(m,j)&&l.push(j)}return l}}var i={useDefault:false,_set:f.valHooks.select.set};f.valHooks.select.set=function(j,k){if(k&&!i.useDefault){f(j).data("selected",true)}return i._set.apply(this,arguments)};var e=null;f.fn.triggerNative=function(j){var k=this[0],l;if(k.dispatchEvent){if(typeof Event==="function"){l=new Event(j,{bubbles:true})}else{l=document.createEvent("Event");l.initEvent(j,true,false)}k.dispatchEvent(l)}else{if(k.fireEvent){l=document.createEventObject();l.eventType=j;k.fireEvent("on"+j,l)}else{this.trigger(j)}}};f.expr.pseudos.icontains=function(m,j,l){var n=f(m);var k=(n.data("tokens")||n.text()).toString().toUpperCase();return k.includes(l[3].toUpperCase())};f.expr.pseudos.ibegins=function(m,j,l){var n=f(m);var k=(n.data("tokens")||n.text()).toString().toUpperCase();return k.startsWith(l[3].toUpperCase())};f.expr.pseudos.aicontains=function(m,j,l){var n=f(m);var k=(n.data("tokens")||n.data("normalizedText")||n.text()).toString().toUpperCase();return k.includes(l[3].toUpperCase())};f.expr.pseudos.aibegins=function(m,j,l){var n=f(m);var k=(n.data("tokens")||n.data("normalizedText")||n.text()).toString().toUpperCase();return k.startsWith(l[3].toUpperCase())};function h(k){var j=[{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}];f.each(j,function(){k=k.replace(this.re,this.ch)});return k}function g(k){var m={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"};var o="(?:"+Object.keys(m).join("|")+")",n=new RegExp(o),l=new RegExp(o,"g"),j=k==null?"":""+k;return n.test(j)?j.replace(l,function(p){return m[p]}):j}var c=function(k,j,l){if(!i.useDefault){f.valHooks.select.set=i._set;i.useDefault=true}if(l){l.stopPropagation();l.preventDefault()}this.$element=f(k);this.$newElement=null;this.$button=null;this.$menu=null;this.$lis=null;this.options=j;if(this.options.title===null){this.options.title=this.$element.attr("title")}this.val=c.prototype.val;this.render=c.prototype.render;this.refresh=c.prototype.refresh;this.setStyle=c.prototype.setStyle;this.selectAll=c.prototype.selectAll;this.deselectAll=c.prototype.deselectAll;this.destroy=c.prototype.destroy;this.remove=c.prototype.remove;this.show=c.prototype.show;this.hide=c.prototype.hide;this.init()};c.VERSION="1.11.2";c.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(k,j){return(k==1)?"{0} item selected":"{0} items selected"},maxOptionsText:function(j,k){return[(j==1)?"Limit reached ({n} item max)":"Limit reached ({n} items max)",(k==1)?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:false,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:false,container:false,hideDisabled:false,showSubtext:false,showIcon:true,showContent:true,dropupAuto:true,header:false,liveSearch:false,liveSearchPlaceholder:null,liveSearchNormalize:false,liveSearchStyle:"contains",actionsBox:false,iconBase:"glyphicon",tickIcon:"glyphicon-ok",showTick:false,template:{caret:'<span class="caret"></span>'},maxOptions:false,mobile:false,selectOnTab:false,dropdownAlignRight:false};c.prototype={constructor:c,init:function(){var j=this,k=this.$element.attr("id");this.$element.addClass("bs-select-hidden");this.liObj={};this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");this.$newElement=this.createView();this.$element.after(this.$newElement).appendTo(this.$newElement);this.$button=this.$newElement.children("button");this.$menu=this.$newElement.children(".dropdown-menu");this.$menuInner=this.$menu.children(".inner");this.$searchbox=this.$menu.find("input");this.$element.removeClass("bs-select-hidden");if(this.options.dropdownAlignRight===true){this.$menu.addClass("dropdown-menu-right")}if(typeof k!=="undefined"){this.$button.attr("data-id",k);f('label[for="'+k+'"]').click(function(l){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){l.preventDefault();j.$button.focus()}})}this.checkDisabled();this.clickListener();if(this.options.liveSearch){this.liveSearchListener()}this.render();this.setStyle();this.setWidth();if(this.options.container){this.selectPosition()}this.$menu.data("this",this);this.$newElement.data("this",this);if(this.options.mobile){this.mobile()}this.$newElement.on({"hide.bs.dropdown":function(l){j.$menuInner.attr("aria-expanded",false);j.$element.trigger("hide.bs.select",l)},"hidden.bs.dropdown":function(l){j.$element.trigger("hidden.bs.select",l)},"show.bs.dropdown":function(l){j.$menuInner.attr("aria-expanded",true);j.$element.trigger("show.bs.select",l)},"shown.bs.dropdown":function(l){j.$element.trigger("shown.bs.select",l)}});if(j.$element[0].hasAttribute("required")){this.$element.on("invalid",function(){j.$button.addClass("bs-invalid").focus();j.$element.on({"focus.bs.select":function(){j.$button.focus();j.$element.off("focus.bs.select")},"shown.bs.select":function(){j.$element.val(j.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){if(this.validity.valid){j.$button.removeClass("bs-invalid")}j.$element.off("rendered.bs.select")}})})}setTimeout(function(){j.$element.trigger("loaded.bs.select")})},createDropdown:function(){var o=(this.multiple||this.options.showTick)?" show-tick":"",k=this.$element.parent().hasClass("input-group")?" input-group-btn":"",q=this.autofocus?" autofocus":"";var p=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;</button>'+this.options.header+"</div>":"";var n=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+g(this.options.liveSearchPlaceholder)+'"')+' role="textbox" aria-label="Search"></div>':"";var m=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn btn-default">'+this.options.selectAllText+'</button><button type="button" class="actions-btn bs-deselect-all btn btn-default">'+this.options.deselectAllText+"</button></div></div>":"";var j=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm btn-default">'+this.options.doneButtonText+"</button></div></div>":"";var l='<div class="btn-group lfb_bootstrap-select'+o+k+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" data-toggle="dropdown"'+q+' role="button"><span class="filter-option pull-left"></span>&nbsp;<span class="bs-caret">'+this.options.template.caret+'</span></button><div class="dropdown-menu open" role="combobox">'+p+n+m+'<ul class="dropdown-menu inner" role="listbox" aria-expanded="false"></ul>'+j+"</div></div>";return f(l)},createView:function(){var k=this.createDropdown(),j=this.createLi();k.find("ul")[0].innerHTML=j;return k},reloadLi:function(){this.destroyLi();var j=this.createLi();this.$menuInner[0].innerHTML=j},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var o=this,n=[],r=0,j=document.createElement("option"),l=-1;var q=function(v,t,u,s){return"<li"+((typeof u!=="undefined"&""!==u)?' class="'+u+'"':"")+((typeof t!=="undefined"&null!==t)?' data-original-index="'+t+'"':"")+((typeof s!=="undefined"&null!==s)?'data-optgroup="'+s+'"':"")+">"+v+"</li>"};var k=function(v,s,u,t){return'<a tabindex="0"'+(typeof s!=="undefined"?' class="'+s+'"':"")+(typeof u!=="undefined"?' style="'+u+'"':"")+(o.options.liveSearchNormalize?' data-normalized-text="'+h(g(v))+'"':"")+(typeof t!=="undefined"||t!==null?' data-tokens="'+t+'"':"")+' role="option">'+v+'<span class="'+o.options.iconBase+" "+o.options.tickIcon+' check-mark"></span></a>'};if(this.options.title&&!this.multiple){l--;if(!this.$element.find(".bs-title-option").length){var m=this.$element[0];j.className="bs-title-option";j.appendChild(document.createTextNode(this.options.title));j.value="";m.insertBefore(j,m.firstChild);var p=f(m.options[m.selectedIndex]);if(p.attr("selected")===undefined&&this.$element.data("selected")===undefined){j.selected=true}}}this.$element.find("option").each(function(v){var u=f(this);l++;if(u.hasClass("bs-title-option")){return}var y=this.className||"",t=this.style.cssText,z=u.data("content")?u.data("content"):u.html(),B=u.data("tokens")?u.data("tokens"):null,O=typeof u.data("subtext")!=="undefined"?'<small class="text-muted">'+u.data("subtext")+"</small>":"",K=typeof u.data("icon")!=="undefined"?'<span class="'+o.options.iconBase+" "+u.data("icon")+'"></span> ':"",D=u.parent(),s=D[0].tagName==="OPTGROUP",G=s&&D[0].disabled,A=this.disabled||G;if(K!==""&&A){K="<span>"+K+"</span>"}if(o.options.hideDisabled&&(A&&!s||G)){l--;return}if(!u.data("content")){z=K+'<span class="text">'+z+O+"</span>"}if(s&&u.data("divider")!==true){if(o.options.hideDisabled&&A){if(D.data("allOptionsDisabled")===undefined){var H=D.children();D.data("allOptionsDisabled",H.filter(":disabled").length===H.length)}if(D.data("allOptionsDisabled")){l--;return}}var M=" "+D[0].className||"";if(u.index()===0){r+=1;var w=D[0].label,N=typeof D.data("subtext")!=="undefined"?'<small class="text-muted">'+D.data("subtext")+"</small>":"",F=D.data("icon")?'<span class="'+o.options.iconBase+" "+D.data("icon")+'"></span> ':"";w=F+'<span class="text">'+w+N+"</span>";if(v!==0&&n.length>0){l++;n.push(q("",null,"divider",r+"div"))}l++;n.push(q(w,null,"dropdown-header"+M,r))}if(o.options.hideDisabled&&A){l--;return}n.push(q(k(z,"opt "+y+M,t,B),v,"",r))}else{if(u.data("divider")===true){n.push(q("",v,"divider"))}else{if(u.data("hidden")===true){n.push(q(k(z,y,t,B),v,"hidden is-hidden"))}else{var C=this.previousElementSibling&&this.previousElementSibling.tagName==="OPTGROUP";if(!C&&o.options.hideDisabled){var J=f(this).prevAll();for(var I=0;I<J.length;I++){if(J[I].tagName==="OPTGROUP"){var E=0;for(var L=0;L<I;L++){var x=J[L];if(x.disabled||f(x).data("hidden")===true){E++}}if(E===I){C=true}break}}}if(C){l++;n.push(q("",null,"divider",r+"div"))}n.push(q(k(z,y,t,B),v))}}}o.liObj[v]=l});if(!this.multiple&&this.$element.find("option:selected").length===0&&!this.options.title){this.$element.find("option").eq(0).prop("selected",true).attr("selected","selected")}return n.join("")},findLis:function(){if(this.$lis==null){this.$lis=this.$menu.find("li")}return this.$lis},render:function(m){var l=this,o;if(m!==false){this.$element.find("option").each(function(r){var s=l.findLis().eq(l.liObj[r]);l.setDisabled(r,this.disabled||this.parentNode.tagName==="OPTGROUP"&&this.parentNode.disabled,s);l.setSelected(r,this.selected,s)})}this.togglePlaceholder();this.tabIndex();var q=this.$element.find("option").map(function(){if(this.selected){if(l.options.hideDisabled&&(this.disabled||this.parentNode.tagName==="OPTGROUP"&&this.parentNode.disabled)){return}var t=f(this),s=t.data("icon")&&l.options.showIcon?'<i class="'+l.options.iconBase+" "+t.data("icon")+'"></i> ':"",r;if(l.options.showSubtext&&t.data("subtext")&&!l.multiple){r=' <small class="text-muted">'+t.data("subtext")+"</small>"}else{r=""}if(typeof t.attr("title")!=="undefined"){return t.attr("title")}else{if(t.data("content")&&l.options.showContent){return t.data("content")}else{return s+t.html()+r}}}}).toArray();var n=!this.multiple?q[0]:q.join(this.options.multipleSeparator);if(this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1){var j=this.options.selectedTextFormat.split(">");if((j.length>1&&q.length>j[1])||(j.length==1&&q.length>=2)){o=this.options.hideDisabled?", [disabled]":"";var k=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+o).length,p=(typeof this.options.countSelectedText==="function")?this.options.countSelectedText(q.length,k):this.options.countSelectedText;n=p.replace("{0}",q.length.toString()).replace("{1}",k.toString())}}if(this.options.title==undefined){this.options.title=this.$element.attr("title")}if(this.options.selectedTextFormat=="static"){n=this.options.title}if(!n){n=typeof this.options.title!=="undefined"?this.options.title:this.options.noneSelectedText}this.$button.attr("title",f.trim(n.replace(/<[^>]*>?/g,"")));this.$button.children(".filter-option").html(n);this.$element.trigger("rendered.bs.select")},setStyle:function(l,k){if(this.$element.attr("class")){this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""))}var j=l?l:this.options.style;if(k=="add"){this.$button.addClass(j)}else{if(k=="remove"){this.$button.removeClass(j)}else{this.$button.removeClass(this.options.style);this.$button.addClass(j)}}},liHeight:function(p){if(!p&&(this.options.size===false||this.sizeInfo)){return}var n=document.createElement("div"),j=document.createElement("div"),t=document.createElement("ul"),B=document.createElement("li"),A=document.createElement("li"),F=document.createElement("a"),z=document.createElement("span"),E=this.options.header&&this.$menu.find(".popover-title").length>0?this.$menu.find(".popover-title")[0].cloneNode(true):null,u=this.options.liveSearch?document.createElement("div"):null,v=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(true):null,m=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(true):null;z.className="text";n.className=this.$menu[0].parentNode.className+" open";j.className="dropdown-menu open";t.className="dropdown-menu inner";B.className="divider";z.appendChild(document.createTextNode("Inner text"));F.appendChild(z);A.appendChild(F);t.appendChild(A);t.appendChild(B);if(E){j.appendChild(E)}if(u){var x=document.createElement("span");u.className="bs-searchbox";x.className="form-control";u.appendChild(x);j.appendChild(u)}if(v){j.appendChild(v)}j.appendChild(t);if(m){j.appendChild(m)}n.appendChild(j);document.body.appendChild(n);var l=F.offsetHeight,D=E?E.offsetHeight:0,w=u?u.offsetHeight:0,s=v?v.offsetHeight:0,o=m?m.offsetHeight:0,y=f(B).outerHeight(true),k=typeof getComputedStyle==="function"?getComputedStyle(j):false,q=k?null:f(j),C={vert:parseInt(k?k.paddingTop:q.css("paddingTop"))+parseInt(k?k.paddingBottom:q.css("paddingBottom"))+parseInt(k?k.borderTopWidth:q.css("borderTopWidth"))+parseInt(k?k.borderBottomWidth:q.css("borderBottomWidth")),horiz:parseInt(k?k.paddingLeft:q.css("paddingLeft"))+parseInt(k?k.paddingRight:q.css("paddingRight"))+parseInt(k?k.borderLeftWidth:q.css("borderLeftWidth"))+parseInt(k?k.borderRightWidth:q.css("borderRightWidth"))},r={vert:C.vert+parseInt(k?k.marginTop:q.css("marginTop"))+parseInt(k?k.marginBottom:q.css("marginBottom"))+2,horiz:C.horiz+parseInt(k?k.marginLeft:q.css("marginLeft"))+parseInt(k?k.marginRight:q.css("marginRight"))+2};document.body.removeChild(n);this.sizeInfo={liHeight:l,headerHeight:D,searchHeight:w,actionsHeight:s,doneButtonHeight:o,dividerHeight:y,menuPadding:C,menuExtras:r}},setSize:function(){this.findLis();this.liHeight();if(this.options.header){this.$menu.css("padding-top",0)}if(this.options.size===false){return}var u=this,r=this.$menu,n=this.$menuInner,z=f(window),H=this.$newElement[0].offsetHeight,J=this.$newElement[0].offsetWidth,o=this.sizeInfo.liHeight,D=this.sizeInfo.headerHeight,w=this.sizeInfo.searchHeight,t=this.sizeInfo.actionsHeight,p=this.sizeInfo.doneButtonHeight,v=this.sizeInfo.dividerHeight,C=this.sizeInfo.menuPadding,s=this.sizeInfo.menuExtras,A=this.options.hideDisabled?".disabled":"",B,j,x,l,I,G,q,F,E=function(){var M=u.$newElement.offset(),K=f(u.options.container),L;if(u.options.container&&!K.is("body")){L=K.offset();L.top+=parseInt(K.css("borderTopWidth"));L.left+=parseInt(K.css("borderLeftWidth"))}else{L={top:0,left:0}}I=M.top-L.top-z.scrollTop();G=z.height()-I-H-L.top;q=M.left-L.left-z.scrollLeft();F=z.width()-q-J-L.left};E();if(this.options.size==="auto"){var m=function(){var N,M=function(Q,P){return function(R){if(P){return(R.classList?R.classList.contains(Q):f(R).hasClass(Q))}else{return !(R.classList?R.classList.contains(Q):f(R).hasClass(Q))}}},L=u.$menuInner[0].getElementsByTagName("li"),K=Array.prototype.filter?Array.prototype.filter.call(L,M("hidden",false)):u.$lis.not(".hidden"),O=Array.prototype.filter?Array.prototype.filter.call(K,M("dropdown-header",true)):K.filter(".dropdown-header");E();B=G-s.vert;j=F-s.horiz;if(u.options.container){if(!r.data("height")){r.data("height",r.height())}x=r.data("height");if(!r.data("width")){r.data("width",r.width())}l=r.data("width")}else{x=r.height();l=r.width()}if(u.options.dropupAuto){u.$newElement.toggleClass("dropup",I>G&&(B-s.vert)<x)}if(u.$newElement.hasClass("dropup")){B=I-s.vert}if(u.options.dropdownAlignRight==="auto"){r.toggleClass("dropdown-menu-right",q>F&&(j-s.horiz)<(l-J))}if((K.length+O.length)>3){N=o*3+s.vert-2}else{N=0}r.css({"max-height":B+"px",overflow:"hidden","min-height":N+D+w+t+p+"px"});n.css({"max-height":B-D-w-t-p-C.vert+"px","overflow-y":"auto","min-height":Math.max(N-C.vert,0)+"px"})};m();this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",m);z.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",m)}else{if(this.options.size&&this.options.size!="auto"&&this.$lis.not(A).length>this.options.size){var y=this.$lis.not(".divider").not(A).children().slice(0,this.options.size).last().parent().index(),k=this.$lis.slice(0,y+1).filter(".divider").length;B=o*this.options.size+k*v+C.vert;if(u.options.container){if(!r.data("height")){r.data("height",r.height())}x=r.data("height")}else{x=r.height()}if(u.options.dropupAuto){this.$newElement.toggleClass("dropup",I>G&&(B-s.vert)<x)}r.css({"max-height":B+D+w+t+p+"px",overflow:"hidden","min-height":""});n.css({"max-height":B-C.vert+"px","overflow-y":"auto","min-height":""})}}},setWidth:function(){if(this.options.width==="auto"){this.$menu.css("min-width","0");var k=this.$menu.parent().clone().appendTo("body"),j=this.options.container?this.$newElement.clone().appendTo("body"):k,l=k.children(".dropdown-menu").outerWidth(),m=j.css("width","auto").children("button").outerWidth();k.remove();j.remove();this.$newElement.css("width",Math.max(l,m)+"px")}else{if(this.options.width==="fit"){this.$menu.css("min-width","");this.$newElement.css("width","").addClass("fit-width")}else{if(this.options.width){this.$menu.css("min-width","");this.$newElement.css("width",this.options.width)}else{this.$menu.css("min-width","");this.$newElement.css("width","")}}}if(this.$newElement.hasClass("fit-width")&&this.options.width!=="fit"){this.$newElement.removeClass("fit-width")}},selectPosition:function(){this.$bsContainer=f('<div class="bs-container" />');var k=this,l=f(this.options.container),o,n,m,j=function(p){k.$bsContainer.addClass(p.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",p.hasClass("dropup"));o=p.offset();if(!l.is("body")){n=l.offset();n.top+=parseInt(l.css("borderTopWidth"))-l.scrollTop();n.left+=parseInt(l.css("borderLeftWidth"))-l.scrollLeft()}else{n={top:0,left:0}}m=p.hasClass("dropup")?0:p[0].offsetHeight;k.$bsContainer.css({top:o.top-n.top+m,left:o.left-n.left,width:p[0].offsetWidth})};this.$button.on("click",function(){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var p=f(this);if(k.isDisabled()){return}j(k.$newElement);k.$bsContainer.appendTo(k.options.container).toggleClass("open",!p.hasClass("open")).append(k.$menu)}});f(window).on("resize scroll",function(){j(k.$newElement)});this.$element.on("hide.bs.select",function(){k.$menu.data("height",k.$menu.height());k.$bsContainer.detach()})},setSelected:function(j,l,k){if(!k){this.togglePlaceholder();k=this.findLis().eq(this.liObj[j])}k.toggleClass("selected",l).find("a").attr("aria-selected",l)},setDisabled:function(j,l,k){if(!k){k=this.findLis().eq(this.liObj[j])}if(l){k.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1).attr("aria-disabled",true)}else{k.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0).attr("aria-disabled",false)}},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var j=this;if(this.isDisabled()){this.$newElement.addClass("disabled");this.$button.addClass("disabled").attr("tabindex",-1)}else{if(this.$button.hasClass("disabled")){this.$newElement.removeClass("disabled");this.$button.removeClass("disabled")}if(this.$button.attr("tabindex")==-1&&!this.$element.data("tabindex")){this.$button.removeAttr("tabindex")}}this.$button.click(function(){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){return !j.isDisabled()}})},togglePlaceholder:function(){var j=this.$element.val();this.$button.toggleClass("bs-placeholder",j===null||j==="")},tabIndex:function(){if(this.$element.data("tabindex")!==this.$element.attr("tabindex")&&(this.$element.attr("tabindex")!==-98&&this.$element.attr("tabindex")!=="-98")){this.$element.data("tabindex",this.$element.attr("tabindex"));this.$button.attr("tabindex",this.$element.data("tabindex"))}this.$element.attr("tabindex",-98)},clickListener:function(){var j=this,k=f(document);this.$newElement.on("touchstart.dropdown",".dropdown-menu",function(l){l.stopPropagation()});k.data("spaceSelect",false);this.$button.on("keyup",function(l){if(/(32)/.test(l.keyCode.toString(10))&&k.data("spaceSelect")){l.preventDefault();k.data("spaceSelect",false)}});this.$button.on("click",function(){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){j.setSize()}});this.$element.on("shown.bs.select",function(){if(!j.options.liveSearch&&!j.multiple){j.$menuInner.find(".selected a").focus()}else{if(!j.multiple){var l=j.liObj[j.$element[0].selectedIndex];if(typeof l!=="number"||j.options.size===false){return}var m=j.$lis.eq(l)[0].offsetTop-j.$menuInner[0].offsetTop;m=m-j.$menuInner[0].offsetHeight/2+j.sizeInfo.liHeight/2;j.$menuInner[0].scrollTop=m}}});this.$menuInner.on("click","li a",function(C){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){var r=f(this),m=r.parent().data("originalIndex"),A=j.$element.val(),t=j.$element.prop("selectedIndex"),u=true;if(j.multiple&&j.options.maxOptions!==1){C.stopPropagation()}C.preventDefault();if(!j.isDisabled()&&!r.parent().hasClass("disabled")){var y=j.$element.find("option"),z=y.eq(m),o=z.prop("selected"),x=z.parent("optgroup"),E=j.options.maxOptions,v=x.data("maxOptions")||false;if(!j.multiple){y.prop("selected",false);z.prop("selected",true);j.$menuInner.find(".selected").removeClass("selected").find("a").attr("aria-selected",false);j.setSelected(m,true)}else{z.prop("selected",!o);j.setSelected(m,!o);r.blur();if(E!==false||v!==false){var n=E<y.filter(":selected").length,q=v<x.find("option:selected").length;if((E&&n)||(v&&q)){if(E&&E==1){y.prop("selected",false);z.prop("selected",true);j.$menuInner.find(".selected").removeClass("selected");j.setSelected(m,true)}else{if(v&&v==1){x.find("option:selected").prop("selected",false);z.prop("selected",true);var B=r.parent().data("optgroup");j.$menuInner.find('[data-optgroup="'+B+'"]').removeClass("selected");j.setSelected(m,true)}else{var l=typeof j.options.maxOptionsText==="string"?[j.options.maxOptionsText,j.options.maxOptionsText]:j.options.maxOptionsText,p=typeof l==="function"?l(E,v):l,D=p[0].replace("{n}",E),s=p[1].replace("{n}",v),w=f('<div class="notify"></div>');if(p[2]){D=D.replace("{var}",p[2][E>1?0:1]);s=s.replace("{var}",p[2][v>1?0:1])}z.prop("selected",false);j.$menu.append(w);if(E&&n){w.append(f("<div>"+D+"</div>"));u=false;j.$element.trigger("maxReached.bs.select")}if(v&&q){w.append(f("<div>"+s+"</div>"));u=false;j.$element.trigger("maxReachedGrp.bs.select")}setTimeout(function(){j.setSelected(m,false)},10);w.delay(750).fadeOut(300,function(){f(this).remove()})}}}}}if(!j.multiple||(j.multiple&&j.options.maxOptions===1)){j.$button.focus()}else{if(j.options.liveSearch){j.$searchbox.focus()}}if(u){if((A!=j.$element.val()&&j.multiple)||(t!=j.$element.prop("selectedIndex")&&!j.multiple)){e=[m,z.prop("selected"),o];j.$element.triggerNative("change")}}}}});this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(l){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){if(l.currentTarget==this){l.preventDefault();l.stopPropagation();if(j.options.liveSearch&&!f(l.target).hasClass("close")){j.$searchbox.focus()}else{j.$button.focus()}}}});this.$menuInner.on("click",".divider, .dropdown-header",function(l){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){l.preventDefault();l.stopPropagation();if(j.options.liveSearch){j.$searchbox.focus()}else{j.$button.focus()}}});this.$menu.on("click",".popover-title .close",function(){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){j.$button.click()}});this.$searchbox.on("click",function(l){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){l.stopPropagation()}});this.$menu.on("click",".actions-btn",function(l){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){if(j.options.liveSearch){j.$searchbox.focus()}else{j.$button.focus()}l.preventDefault();l.stopPropagation();if(f(this).hasClass("bs-select-all")){j.selectAll()}else{j.deselectAll()}}});this.$element.change(function(){j.render(false);j.$element.trigger("changed.bs.select",e);e=null})},liveSearchListener:function(){var k=this,j=f('<li class="no-results"></li>');this.$button.on("click.dropdown.data-api touchstart.dropdown.data-api",function(){if(typeof tld_selectionMode==="undefined"||!tld_selectionMode){k.$menuInner.find(".active").removeClass("active");if(!!k.$searchbox.val()){k.$searchbox.val("");k.$lis.not(".is-hidden").removeClass("hidden");if(!!j.parent().length){j.remove()}}if(!k.multiple){k.$menuInner.find(".selected").addClass("active")}setTimeout(function(){k.$searchbox.focus()},10)}});this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(l){l.stopPropagation()});this.$searchbox.on("input propertychange",function(){if(k.$searchbox.val()){var l=k.$lis.not(".is-hidden").removeClass("hidden").children("a");if(k.options.liveSearchNormalize){l=l.not(":a"+k._searchStyle()+'("'+h(k.$searchbox.val())+'")')}else{l=l.not(":"+k._searchStyle()+'("'+k.$searchbox.val()+'")')}l.parent().addClass("hidden");k.$lis.filter(".dropdown-header").each(function(){var o=f(this),n=o.data("optgroup");if(k.$lis.filter("[data-optgroup="+n+"]").not(o).not(".hidden").length===0){o.addClass("hidden");k.$lis.filter("[data-optgroup="+n+"div]").addClass("hidden")}});var m=k.$lis.not(".hidden");m.each(function(n){var o=f(this);if(o.hasClass("divider")&&(o.index()===m.first().index()||o.index()===m.last().index()||m.eq(n+1).hasClass("divider"))){o.addClass("hidden")}});if(!k.$lis.not(".hidden, .no-results").length){if(!!j.parent().length){j.remove()}j.html(k.options.noneResultsText.replace("{0}",'"'+g(k.$searchbox.val())+'"')).show();k.$menuInner.append(j)}else{if(!!j.parent().length){j.remove()}}}else{k.$lis.not(".is-hidden").removeClass("hidden");if(!!j.parent().length){j.remove()}}k.$lis.filter(".active").removeClass("active");if(k.$searchbox.val()){k.$lis.not(".hidden, .divider, .dropdown-header").eq(0).addClass("active").children("a").focus()}f(this).focus()})},_searchStyle:function(){var j={begins:"ibegins",startsWith:"ibegins"};return j[this.options.liveSearchStyle]||"icontains"},val:function(j){if(typeof j!=="undefined"){this.$element.val(j);this.render();return this.$element}else{return this.$element.val()}},changeAll:function(k){if(!this.multiple){return}if(typeof k==="undefined"){k=true}this.findLis();var j=this.$element.find("option"),p=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden"),l=p.length,o=[];if(k){if(p.filter(".selected").length===p.length){return}}else{if(p.filter(".selected").length===0){return}}p.toggleClass("selected",k);for(var m=0;m<l;m++){var n=p[m].getAttribute("data-original-index");o[o.length]=j.eq(n)[0]}f(o).prop("selected",k);this.render(false);this.togglePlaceholder();this.$element.triggerNative("change")},selectAll:function(){return this.changeAll(true)},deselectAll:function(){return this.changeAll(false)},toggle:function(j){j=j||window.event;if(j){j.stopPropagation()}this.$button.trigger("click")},keydown:function(A){var l=f(this),u=l.is("input")?l.parent().parent():l.parent(),k,p=u.data("this"),m,w,o,s,v,j,q,y,x=":not(.disabled, .hidden, .dropdown-header, .divider)",t={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"};if(p.options.liveSearch){u=l.parent().parent()}if(p.options.container){u=p.$menu}k=f('[role="listbox"] li',u);y=p.$newElement.hasClass("open");if(!y&&(A.keyCode>=48&&A.keyCode<=57||A.keyCode>=96&&A.keyCode<=105||A.keyCode>=65&&A.keyCode<=90)){if(!p.options.container){p.setSize();p.$menu.parent().addClass("open");y=true}else{p.$button.trigger("click")}p.$searchbox.focus();return}if(p.options.liveSearch){if(/(^9$|27)/.test(A.keyCode.toString(10))&&y){A.preventDefault();A.stopPropagation();p.$button.click().focus()}k=f('[role="listbox"] li'+x,u);if(!l.val()&&!/(38|40)/.test(A.keyCode.toString(10))){if(k.filter(".active").length===0){k=p.$menuInner.find("li");if(p.options.liveSearchNormalize){k=k.filter(":a"+p._searchStyle()+"("+h(t[A.keyCode])+")")}else{k=k.filter(":"+p._searchStyle()+"("+t[A.keyCode]+")")}}}}if(!k.length){return}if(/(38|40)/.test(A.keyCode.toString(10))){m=k.index(k.find("a").filter(":focus").parent());o=k.filter(x).first().index();s=k.filter(x).last().index();w=k.eq(m).nextAll(x).eq(0).index();v=k.eq(m).prevAll(x).eq(0).index();j=k.eq(w).prevAll(x).eq(0).index();if(p.options.liveSearch){k.each(function(C){if(!f(this).hasClass("disabled")){f(this).data("index",C)}});m=k.index(k.filter(".active"));o=k.first().data("index");s=k.last().data("index");w=k.eq(m).nextAll().eq(0).data("index");v=k.eq(m).prevAll().eq(0).data("index");j=k.eq(w).prevAll().eq(0).data("index")}q=l.data("prevIndex");if(A.keyCode==38){if(p.options.liveSearch){m--}if(m!=j&&m>v){m=v}if(m<o){m=o}if(m==q){m=s}}else{if(A.keyCode==40){if(p.options.liveSearch){m++}if(m==-1){m=0}if(m!=j&&m<w){m=w}if(m>s){m=s}if(m==q){m=o}}}l.data("prevIndex",m);if(!p.options.liveSearch){k.eq(m).children("a").focus()}else{A.preventDefault();if(!l.hasClass("dropdown-toggle")){k.removeClass("active").eq(m).addClass("active").children("a").focus();l.focus()}}}else{if(!l.is("input")){var r=[],n,B;k.each(function(){if(!f(this).hasClass("disabled")){if(f.trim(f(this).children("a").text().toLowerCase()).substring(0,1)==t[A.keyCode]){r.push(f(this).index())}}});n=f(document).data("keycount");n++;f(document).data("keycount",n);B=f.trim(f(":focus").text().toLowerCase()).substring(0,1);if(B!=t[A.keyCode]){n=1;f(document).data("keycount",n)}else{if(n>=r.length){f(document).data("keycount",0);if(n>r.length){n=1}}}k.eq(r[n-1]).children("a").focus()}}if((/(13|32)/.test(A.keyCode.toString(10))||(/(^9$)/.test(A.keyCode.toString(10))&&p.options.selectOnTab))&&y){if(!/(32)/.test(A.keyCode.toString(10))){A.preventDefault()}if(!p.options.liveSearch){var z=f(":focus");z.click();z.focus();A.preventDefault();f(document).data("spaceSelect",true)}else{if(!/(32)/.test(A.keyCode.toString(10))){p.$menuInner.find(".active a").click();l.focus()}}f(document).data("keycount",0)}if((/(^9$|27)/.test(A.keyCode.toString(10))&&y&&(p.multiple||p.options.liveSearch))||(/(27)/.test(A.keyCode.toString(10))&&!y)){p.$menu.parent().removeClass("open");if(p.options.container){p.$newElement.removeClass("open")}p.$button.focus()}},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null;this.liObj={};this.reloadLi();this.render();this.checkDisabled();this.liHeight(true);this.setStyle();this.setWidth();if(this.$lis){this.$searchbox.trigger("propertychange")}this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove();this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove();if(this.$bsContainer){this.$bsContainer.remove()}else{this.$menu.remove()}this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};function d(m,n){var k=arguments;var p=m,j=n;[].shift.apply(k);var o;var l=this.each(function(){var u=f(this);if(u.is("select")){var t=u.data("selectpicker"),r=typeof p=="object"&&p;if(!t){var q=f.extend({},c.DEFAULTS,f.fn.selectpicker.defaults||{},u.data(),r);q.template=f.extend({},c.DEFAULTS.template,(f.fn.selectpicker.defaults?f.fn.selectpicker.defaults.template:{}),u.data().template,r.template);u.data("selectpicker",(t=new c(this,q,j)))}else{if(r){for(var s in r){if(r.hasOwnProperty(s)){t.options[s]=r[s]}}}}if(typeof p=="string"){if(t[p] instanceof Function){o=t[p].apply(t,k)}else{o=t.options[p]}}}});if(typeof o!=="undefined"){return o}else{return l}}var b=f.fn.selectpicker;f.fn.selectpicker=d;f.fn.selectpicker.Constructor=c;f.fn.selectpicker.noConflict=function(){f.fn.selectpicker=b;return this};f(document).data("keycount",0).on("keydown.bs.select",'.lfb_bootstrap-select [data-toggle=dropdown], .lfb_bootstrap-select [role="listbox"], .bs-searchbox input',c.prototype.keydown).on("focusin.modal",'.lfb_bootstrap-select [data-toggle=dropdown], .lfb_bootstrap-select [role="listbox"], .bs-searchbox input',function(j){j.stopPropagation()})})(a)}));      
/*
 colpick Color Picker
 Copyright 2013 Jose Vargas. Licensed under GPL license. Based on Stefan Petre's Color Picker www.eyecon.ro, dual licensed under the MIT and GPL licenses
 
 For usage and examples: colpick.com/plugin
 */

(function(e){var h=function(){var K='<div class="colpick"><div class="colpick_color"><div class="colpick_color_overlay1"><div class="colpick_color_overlay2"><div class="colpick_selector_outer"><div class="colpick_selector_inner"></div></div></div></div></div><div class="colpick_hue"><div class="colpick_hue_arrs"><div class="colpick_hue_larr"></div><div class="colpick_hue_rarr"></div></div></div><div class="colpick_new_color"></div><div class="colpick_current_color"></div><div class="colpick_hex_field"><div class="colpick_field_letter">#</div><input type="text" maxlength="6" size="6" /></div><div class="colpick_rgb_r colpick_field"><div class="colpick_field_letter">R</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_rgb_g colpick_field"><div class="colpick_field_letter">G</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_rgb_b colpick_field"><div class="colpick_field_letter">B</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_hsb_h colpick_field"><div class="colpick_field_letter">H</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_hsb_s colpick_field"><div class="colpick_field_letter">S</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_hsb_b colpick_field"><div class="colpick_field_letter">B</div><input type="text" maxlength="3" size="3" /><div class="colpick_field_arrs"><div class="colpick_field_uarr"></div><div class="colpick_field_darr"></div></div></div><div class="colpick_submit"></div></div>',p={showEvent:"click",onShow:function(){},onBeforeShow:function(){},onHide:function(){},onChange:function(){},onSubmit:function(){},colorScheme:"light",color:"00ff62",livePreview:true,flat:false,layout:"full",submit:1,submitText:"OK",height:156,parent:"body"},C=function(L,N){var M=f(L);e(N).data("colpick").fields.eq(1).val(M.r).end().eq(2).val(M.g).end().eq(3).val(M.b).end()},o=function(L,M){e(M).data("colpick").fields.eq(4).val(Math.round(L.h)).end().eq(5).val(Math.round(L.s)).end().eq(6).val(Math.round(L.b)).end()},r=function(L,M){e(M).data("colpick").fields.eq(0).val(a(L))},G=function(L,M){e(M).data("colpick").selector.css("backgroundColor","#"+a({h:L.h,s:100,b:100}));e(M).data("colpick").selectorIndic.css({left:parseInt(e(M).data("colpick").height*L.s/100,10),top:parseInt(e(M).data("colpick").height*(100-L.b)/100,10)})},l=function(L,M){e(M).data("colpick").hue.css("top",parseInt(e(M).data("colpick").height-e(M).data("colpick").height*L.h/360,10))},k=function(L,M){e(M).data("colpick").currentColor.css("backgroundColor","#"+a(L))},v=function(L,M){e(M).data("colpick").newColor.css("backgroundColor","#"+a(L))},t=function(M){var N=e(this).parent().parent(),L;if(this.parentNode.className.indexOf("_hex")>0){N.data("colpick").color=L=g(z(this.value));C(L,N.get(0));o(L,N.get(0))}else{if(this.parentNode.className.indexOf("_hsb")>0){N.data("colpick").color=L=A({h:parseInt(N.data("colpick").fields.eq(4).val(),10),s:parseInt(N.data("colpick").fields.eq(5).val(),10),b:parseInt(N.data("colpick").fields.eq(6).val(),10)});C(L,N.get(0));r(L,N.get(0))}else{N.data("colpick").color=L=b(m({r:parseInt(N.data("colpick").fields.eq(1).val(),10),g:parseInt(N.data("colpick").fields.eq(2).val(),10),b:parseInt(N.data("colpick").fields.eq(3).val(),10)}));r(L,N.get(0));o(L,N.get(0))}}G(L,N.get(0));l(L,N.get(0));v(L,N.get(0));N.data("colpick").onChange.apply(N.parent(),[L,a(L),f(L),N.data("colpick").el,0])},y=function(L){e(this).parent().removeClass("colpick_focus")},u=function(){e(this).parent().parent().data("colpick").fields.parent().removeClass("colpick_focus");e(this).parent().addClass("colpick_focus")},j=function(L){L.preventDefault?L.preventDefault():L.returnValue=false;var N=e(this).parent().find("input").focus();var M={el:e(this).parent().addClass("colpick_slider"),max:this.parentNode.className.indexOf("_hsb_h")>0?360:(this.parentNode.className.indexOf("_hsb")>0?100:255),y:L.pageY,field:N,val:parseInt(N.val(),10),preview:e(this).parent().parent().data("colpick").livePreview};e(document).mouseup(M,x);e(document).mousemove(M,D)},D=function(L){L.data.field.val(Math.max(0,Math.min(L.data.max,parseInt(L.data.val-L.pageY+L.data.y,10))));if(L.data.preview){t.apply(L.data.field.get(0),[true])}return false},x=function(L){t.apply(L.data.field.get(0),[true]);L.data.el.removeClass("colpick_slider").find("input").focus();e(document).off("mouseup",x);e(document).off("mousemove",D);return false},J=function(M){M.preventDefault?M.preventDefault():M.returnValue=false;var N={cal:e(this).parent(),y:e(this).offset().top};e(document).on("mouseup touchend",N,n);e(document).on("mousemove touchmove",N,q);var L=((M.type=="touchstart")?M.originalEvent.changedTouches[0].pageY:M.pageY);t.apply(N.cal.data("colpick").fields.eq(4).val(parseInt(360*(N.cal.data("colpick").height-(L-N.y))/N.cal.data("colpick").height,10)).get(0),[N.cal.data("colpick").livePreview]);return false},q=function(M){var L=((M.type=="touchmove")?M.originalEvent.changedTouches[0].pageY:M.pageY);t.apply(M.data.cal.data("colpick").fields.eq(4).val(parseInt(360*(M.data.cal.data("colpick").height-Math.max(0,Math.min(M.data.cal.data("colpick").height,(L-M.data.y))))/M.data.cal.data("colpick").height,10)).get(0),[M.data.preview]);return false},n=function(L){C(L.data.cal.data("colpick").color,L.data.cal.get(0));r(L.data.cal.data("colpick").color,L.data.cal.get(0));e(document).off("mouseup touchend",n);e(document).off("mousemove touchmove",q);return false},E=function(M){M.preventDefault?M.preventDefault():M.returnValue=false;var N={cal:e(this).parent(),pos:e(this).offset()};N.preview=N.cal.data("colpick").livePreview;e(document).on("mouseup touchend",N,I);e(document).on("mousemove touchmove",N,i);var O,L;if(M.type=="touchstart"){pageX=M.originalEvent.changedTouches[0].pageX,L=M.originalEvent.changedTouches[0].pageY}else{pageX=M.pageX;L=M.pageY}t.apply(N.cal.data("colpick").fields.eq(6).val(parseInt(100*(N.cal.data("colpick").height-(L-N.pos.top))/N.cal.data("colpick").height,10)).end().eq(5).val(parseInt(100*(pageX-N.pos.left)/N.cal.data("colpick").height,10)).get(0),[N.preview]);return false},i=function(M){var N,L;if(M.type=="touchmove"){pageX=M.originalEvent.changedTouches[0].pageX,L=M.originalEvent.changedTouches[0].pageY}else{pageX=M.pageX;L=M.pageY}t.apply(M.data.cal.data("colpick").fields.eq(6).val(parseInt(100*(M.data.cal.data("colpick").height-Math.max(0,Math.min(M.data.cal.data("colpick").height,(L-M.data.pos.top))))/M.data.cal.data("colpick").height,10)).end().eq(5).val(parseInt(100*(Math.max(0,Math.min(M.data.cal.data("colpick").height,(pageX-M.data.pos.left))))/M.data.cal.data("colpick").height,10)).get(0),[M.data.preview]);return false},I=function(L){C(L.data.cal.data("colpick").color,L.data.cal.get(0));r(L.data.cal.data("colpick").color,L.data.cal.get(0));e(document).off("mouseup touchend",I);e(document).off("mousemove touchmove",i);return false},w=function(M){var N=e(this).parent();var L=N.data("colpick").color;N.data("colpick").origColor=L;k(L,N.get(0));N.data("colpick").onSubmit(L,a(L),f(L),N.data("colpick").el)},H=function(M){M.stopPropagation();var Q=e("#"+e(this).data("colpickId"));Q.data("colpick").onBeforeShow.apply(this,[Q.get(0)]);var R=e(this).offset();var P=R.top+this.offsetHeight;var O=R.left;var N=B();var L=Q.width();if(O+L>N.l+N.w){O-=L}Q.css({left:O+"px",top:P+"px"});if(Q.data("colpick").onShow.apply(this,[Q.get(0)])!=false){Q.fadeIn()}e("html").mousedown({cal:Q},s);Q.mousedown(function(S){S.stopPropagation()})},s=function(L){if(L.data.cal.data("colpick").onHide.apply(this,[L.data.cal.get(0)])!=false){L.data.cal.hide()}e("html").off("mousedown",s)},B=function(){var L=document.compatMode=="CSS1Compat";return{l:window.pageXOffset||(L?document.documentElement.scrollLeft:document.body.scrollLeft),w:window.innerWidth||(L?document.documentElement.clientWidth:document.body.clientWidth)}},A=function(L){return{h:Math.min(360,Math.max(0,L.h)),s:Math.min(100,Math.max(0,L.s)),b:Math.min(100,Math.max(0,L.b))}},m=function(L){return{r:Math.min(255,Math.max(0,L.r)),g:Math.min(255,Math.max(0,L.g)),b:Math.min(255,Math.max(0,L.b))}},z=function(N){var L=6-N.length;if(L>0){var O=[];for(var M=0;M<L;M++){O.push("0")}O.push(N);N=O.join("")}return N},F=function(){var M=e(this).parent();var L=M.data("colpick").origColor;M.data("colpick").color=L;C(L,M.get(0));r(L,M.get(0));o(L,M.get(0));G(L,M.get(0));l(L,M.get(0));v(L,M.get(0))};return{init:function(L){L=e.extend({},p,L||{});if(typeof L.color=="string"){L.color=g(L.color)}else{if(L.color.r!=undefined&&L.color.g!=undefined&&L.color.b!=undefined){L.color=b(L.color)}else{if(L.color.h!=undefined&&L.color.s!=undefined&&L.color.b!=undefined){L.color=A(L.color)}else{return this}}}return this.each(function(){if(!e(this).data("colpickId")){var V=e.extend({},L);V.origColor=L.color;var O="collorpicker_"+parseInt(Math.random()*1000);e(this).data("colpickId",O);var N=e(K).attr("id",O);N.addClass("colpick_"+V.layout+(V.submit?"":" colpick_"+V.layout+"_ns"));if(V.colorScheme!="light"){N.addClass("colpick_"+V.colorScheme)}N.find("div.colpick_submit").html(V.submitText).click(w);V.fields=N.find("input").change(t).blur(y).focus(u);N.find("div.colpick_field_arrs").mousedown(j).end().find("div.colpick_current_color").click(F);V.selector=N.find("div.colpick_color").on("mousedown touchstart",E);V.selectorIndic=V.selector.find("div.colpick_selector_outer");V.el=this;V.hue=N.find("div.colpick_hue_arrs");huebar=V.hue.parent();var T=navigator.userAgent.toLowerCase();var P=navigator.appName==="Microsoft Internet Explorer";var Q=P?parseFloat(T.match(/msie ([0-9]{1,}[\.0-9]{0,})/)[1]):0;var R=(P&&Q<10);var U=["#ff0000","#ff0080","#ff00ff","#8000ff","#0000ff","#0080ff","#00ffff","#00ff80","#00ff00","#80ff00","#ffff00","#ff8000","#ff0000"];if(R){var S,M;for(S=0;S<=11;S++){M=e("<div></div>").attr("style","height:8.333333%; filter:progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr="+U[S]+", endColorstr="+U[S+1]+'); -ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='+U[S]+", endColorstr="+U[S+1]+')";');huebar.append(M)}}else{stopList=U.join(",");huebar.attr("style","background:-webkit-linear-gradient(top,"+stopList+"); background: -o-linear-gradient(top,"+stopList+"); background: -ms-linear-gradient(top,"+stopList+"); background:-moz-linear-gradient(top,"+stopList+"); -webkit-linear-gradient(top,"+stopList+"); background:linear-gradient(to bottom,"+stopList+"); ")}N.find("div.colpick_hue").on("mousedown touchstart",J);V.newColor=N.find("div.colpick_new_color");V.currentColor=N.find("div.colpick_current_color");N.data("colpick",V);C(V.color,N.get(0));o(V.color,N.get(0));r(V.color,N.get(0));l(V.color,N.get(0));G(V.color,N.get(0));k(V.color,N.get(0));v(V.color,N.get(0));if(V.flat){N.appendTo(this).show();N.css({position:"relative",display:"block"})}else{if(V.parent=="body"){N.appendTo(document.body)}else{N.appendTo(V.parent)}e(this).on(V.showEvent,H);N.css({position:"absolute"})}}})},showPicker:function(){return this.each(function(){if(e(this).data("colpickId")){H.apply(this)}})},hidePicker:function(){return this.each(function(){if(e(this).data("colpickId")){e("#"+e(this).data("colpickId")).hide()}})},setColor:function(L,M){M=(typeof M==="undefined")?1:M;if(typeof L=="string"){L=g(L)}else{if(L.r!=undefined&&L.g!=undefined&&L.b!=undefined){L=b(L)}else{if(L.h!=undefined&&L.s!=undefined&&L.b!=undefined){L=A(L)}else{return this}}}return this.each(function(){if(e(this).data("colpickId")){var N=e("#"+e(this).data("colpickId"));N.data("colpick").color=L;N.data("colpick").origColor=L;C(L,N.get(0));o(L,N.get(0));r(L,N.get(0));l(L,N.get(0));G(L,N.get(0));v(L,N.get(0));N.data("colpick").onChange.apply(N.parent(),[L,a(L),f(L),N.data("colpick").el,1]);if(M){k(L,N.get(0))}}})}}}();var c=function(i){var i=parseInt(((i.indexOf("#")>-1)?i.substring(1):i),16);return{r:i>>16,g:(i&65280)>>8,b:(i&255)}};var g=function(i){return b(c(i))};var b=function(k){var j={h:0,s:0,b:0};var l=Math.min(k.r,k.g,k.b);var i=Math.max(k.r,k.g,k.b);var m=i-l;j.b=i;j.s=i!=0?255*m/i:0;if(j.s!=0){if(k.r==i){j.h=(k.g-k.b)/m}else{if(k.g==i){j.h=2+(k.b-k.r)/m}else{j.h=4+(k.r-k.g)/m}}}else{j.h=-1}j.h*=60;if(j.h<0){j.h+=360}j.s*=100/255;j.b*=100/255;return j};var f=function(i){var k={};var o=i.h;var n=i.s*255/100;var j=i.b*255/100;if(n==0){k.r=k.g=k.b=j}else{var p=j;var m=(255-n)*j/255;var l=(p-m)*(o%60)/60;if(o==360){o=0}if(o<60){k.r=p;k.b=m;k.g=m+l}else{if(o<120){k.g=p;k.b=m;k.r=p-l}else{if(o<180){k.g=p;k.r=m;k.b=m+l}else{if(o<240){k.b=p;k.r=m;k.g=p-l}else{if(o<300){k.b=p;k.g=m;k.r=m+l}else{if(o<360){k.r=p;k.g=m;k.b=p-l}else{k.r=0;k.g=0;k.b=0}}}}}}}return{r:Math.round(k.r),g:Math.round(k.g),b:Math.round(k.b)}};var d=function(i){var j=[i.r.toString(16),i.g.toString(16),i.b.toString(16)];e.each(j,function(k,l){if(l.length==1){j[k]="0"+l}});return j.join("")};var a=function(i){return d(f(i))};e.fn.extend({colpick:h.init,colpickHide:h.hidePicker,colpickShow:h.showPicker,colpickSetColor:h.setColor});e.extend({colpick:{rgbToHex:d,rgbToHsb:b,hsbToHex:a,hsbToRgb:f,hexToHsb:g,hexToRgb:c}})})(jQuery);


/* Dropzone*/
(function(){var g,i,b,d,a,e,k,j,f=[].slice,h={}.hasOwnProperty,c=function(o,m){for(var l in m){if(h.call(m,l)){o[l]=m[l]}}function n(){this.constructor=o}n.prototype=m.prototype;o.prototype=new n();o.__super__=m.prototype;return o};k=function(){};i=(function(){function l(){}l.prototype.addEventListener=l.prototype.on;l.prototype.on=function(n,m){this._callbacks=this._callbacks||{};if(!this._callbacks[n]){this._callbacks[n]=[]}this._callbacks[n].push(m);return this};l.prototype.emit=function(){var n,r,p,o,q,m;o=arguments[0],n=2<=arguments.length?f.call(arguments,1):[];this._callbacks=this._callbacks||{};p=this._callbacks[o];if(p){for(q=0,m=p.length;q<m;q++){r=p[q];r.apply(this,n)}}return this};l.prototype.removeListener=l.prototype.off;l.prototype.removeAllListeners=l.prototype.off;l.prototype.removeEventListener=l.prototype.off;l.prototype.off=function(q,o){var s,p,n,r,m;if(!this._callbacks||arguments.length===0){this._callbacks={};return this}p=this._callbacks[q];if(!p){return this}if(arguments.length===1){delete this._callbacks[q];return this}for(n=r=0,m=p.length;r<m;n=++r){s=p[n];if(s===o){p.splice(n,1);break}}return this};return l})();g=(function(n){var o,l;c(m,n);m.prototype.Emitter=i;m.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"];m.prototype.defaultOptions={url:null,method:"post",withCredentials:false,parallelUploads:2,uploadMultiple:false,maxFilesize:256,paramName:"file",createImageThumbnails:true,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,filesizeBase:1000,maxFiles:null,params:{},clickable:true,ignoreHiddenFiles:true,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:true,autoQueue:true,addRemoveLinks:false,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",accept:function(q,p){return p()},init:function(){return k},forceFallback:false,fallback:function(){var u,q,r,t,p,s;this.element.className=""+this.element.className+" dz-browser-not-supported";s=this.element.getElementsByTagName("div");for(t=0,p=s.length;t<p;t++){u=s[t];if(/(^| )dz-message($| )/.test(u.className)){q=u;u.className="dz-message";continue}}if(!q){q=m.createElement('<div class="dz-message"><span></span></div>');this.element.appendChild(q)}r=q.getElementsByTagName("span")[0];if(r){if(r.textContent!=null){r.textContent=this.options.dictFallbackMessage}else{if(r.innerText!=null){r.innerText=this.options.dictFallbackMessage}}}return this.element.appendChild(this.getFallbackForm())},resize:function(q){var s,r,p;s={srcX:0,srcY:0,srcWidth:q.width,srcHeight:q.height};r=q.width/q.height;s.optWidth=this.options.thumbnailWidth;s.optHeight=this.options.thumbnailHeight;if((s.optWidth==null)&&(s.optHeight==null)){s.optWidth=s.srcWidth;s.optHeight=s.srcHeight}else{if(s.optWidth==null){s.optWidth=r*s.optHeight}else{if(s.optHeight==null){s.optHeight=(1/r)*s.optWidth}}}p=s.optWidth/s.optHeight;if(q.height<s.optHeight||q.width<s.optWidth){s.trgHeight=s.srcHeight;s.trgWidth=s.srcWidth}else{if(r>p){s.srcHeight=q.height;s.srcWidth=s.srcHeight*p}else{s.srcWidth=q.width;s.srcHeight=s.srcWidth/p}}s.srcX=(q.width-s.srcWidth)/2;s.srcY=(q.height-s.srcHeight)/2;return s},drop:function(p){return this.element.classList.remove("dz-drag-hover")},dragstart:k,dragend:function(p){return this.element.classList.remove("dz-drag-hover")},dragenter:function(p){return this.element.classList.add("dz-drag-hover")},dragover:function(p){return this.element.classList.add("dz-drag-hover")},dragleave:function(p){return this.element.classList.remove("dz-drag-hover")},paste:k,reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(s){var r,A,B,y,x,u,C,q,p,z,w,t,v;if(this.element===this.previewsContainer){this.element.classList.add("dz-started")}if(this.previewsContainer){s.previewElement=m.createElement(this.options.previewTemplate.trim());s.previewTemplate=s.previewElement;this.previewsContainer.appendChild(s.previewElement);z=s.previewElement.querySelectorAll("[data-dz-name]");for(y=0,C=z.length;y<C;y++){r=z[y];r.textContent=this._renameFilename(s.name)}w=s.previewElement.querySelectorAll("[data-dz-size]");for(x=0,q=w.length;x<q;x++){r=w[x];r.innerHTML=this.filesize(s.size)}if(this.options.addRemoveLinks){s._removeLink=m.createElement('<a class="dz-remove glyphicon glyphicon-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>");s.previewElement.appendChild(s._removeLink)}A=(function(D){return function(E){E.preventDefault();E.stopPropagation();if(s.status===m.UPLOADING){return m.confirm(D.options.dictCancelUploadConfirmation,function(){return D.removeFile(s)})}else{if(D.options.dictRemoveFileConfirmation){return m.confirm(D.options.dictRemoveFileConfirmation,function(){return D.removeFile(s)})}else{return D.removeFile(s)}}}})(this);t=s.previewElement.querySelectorAll("[data-dz-remove]");v=[];for(u=0,p=t.length;u<p;u++){B=t[u];v.push(B.addEventListener("click",A))}return v}},removedfile:function(p){var q;if(p.previewElement){if((q=p.previewElement)!=null){q.parentNode.removeChild(p.previewElement)}}return this._updateMaxFilesReachedClass()},thumbnail:function(r,u){var q,t,p,s;if(r.previewElement){r.previewElement.classList.remove("dz-file-preview");s=r.previewElement.querySelectorAll("[data-dz-thumbnail]");for(t=0,p=s.length;t<p;t++){q=s[t];q.alt=r.name;q.src=u}return setTimeout(((function(v){return function(){return r.previewElement.classList.add("dz-image-preview")}})(this)),1)}},error:function(r,t){var s,v,q,u,p;if(r.previewElement){r.previewElement.classList.add("dz-error");if(typeof t!=="String"&&t.error){t=t.error}u=r.previewElement.querySelectorAll("[data-dz-errormessage]");p=[];for(v=0,q=u.length;v<q;v++){s=u[v];p.push(s.textContent=t)}return p}},errormultiple:k,processing:function(p){if(p.previewElement){p.previewElement.classList.add("dz-processing");if(p._removeLink){return p._removeLink.textContent=this.options.dictCancelUpload}}},processingmultiple:k,uploadprogress:function(t,r,s){var u,w,q,v,p;if(t.previewElement){v=t.previewElement.querySelectorAll("[data-dz-uploadprogress]");p=[];for(w=0,q=v.length;w<q;w++){u=v[w];if(u.nodeName==="PROGRESS"){p.push(u.value=r)}else{p.push(u.style.width=""+r+"%")}}return p}},totaluploadprogress:k,sending:k,sendingmultiple:k,success:function(p){if(p.previewElement){return p.previewElement.classList.add("dz-success")}},successmultiple:k,canceled:function(p){return this.emit("error",p,"Upload canceled.")},canceledmultiple:k,complete:function(p){if(p._removeLink){p._removeLink.textContent=this.options.dictRemoveFile}if(p.previewElement){return p.previewElement.classList.add("dz-complete")}},completemultiple:k,maxfilesexceeded:k,maxfilesreached:k,queuecomplete:k,addedfiles:k,previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /></div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size></span></div>\n    <div class="dz-filename"><span data-dz-name></span></div>\n  </div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n  <div class="dz-error-message"><span data-dz-errormessage></span></div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Check</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n      </g>\n    </svg>\n  </div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Error</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n        </g>\n      </g>\n    </svg>\n  </div>\n</div>'};o=function(){var r,q,t,u,v,s,p;u=arguments[0],t=2<=arguments.length?f.call(arguments,1):[];for(s=0,p=t.length;s<p;s++){q=t[s];for(r in q){v=q[r];u[r]=v}}return u};function m(r,q){var p,t,s;this.element=r;this.version=m.version;this.defaultOptions.previewTemplate=this.defaultOptions.previewTemplate.replace(/\n*/g,"");this.clickableElements=[];this.listeners=[];this.files=[];if(typeof this.element==="string"){this.element=document.querySelector(this.element)}if(!(this.element&&(this.element.nodeType!=null))){throw new Error("Invalid dropzone element.")}if(this.element.dropzone){throw new Error("Dropzone already attached.")}m.instances.push(this);this.element.dropzone=this;p=(s=m.optionsForElement(this.element))!=null?s:{};this.options=o({},this.defaultOptions,p,q!=null?q:{});if(this.options.forceFallback||!m.isBrowserSupported()){return this.options.fallback.call(this)}if(this.options.url==null){this.options.url=this.element.getAttribute("action")}if(!this.options.url){throw new Error("No URL provided.")}if(this.options.acceptedFiles&&this.options.acceptedMimeTypes){throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.")}if(this.options.acceptedMimeTypes){this.options.acceptedFiles=this.options.acceptedMimeTypes;delete this.options.acceptedMimeTypes}this.options.method=this.options.method.toUpperCase();if((t=this.getExistingFallback())&&t.parentNode){t.parentNode.removeChild(t)}if(this.options.previewsContainer!==false){if(this.options.previewsContainer){this.previewsContainer=m.getElement(this.options.previewsContainer,"previewsContainer")}else{this.previewsContainer=this.element}}if(this.options.clickable){if(this.options.clickable===true){this.clickableElements=[this.element]}else{this.clickableElements=m.getElements(this.options.clickable,"clickable")}}this.init()}m.prototype.getAcceptedFiles=function(){var r,t,q,s,p;s=this.files;p=[];for(t=0,q=s.length;t<q;t++){r=s[t];if(r.accepted){p.push(r)}}return p};m.prototype.getRejectedFiles=function(){var r,t,q,s,p;s=this.files;p=[];for(t=0,q=s.length;t<q;t++){r=s[t];if(!r.accepted){p.push(r)}}return p};m.prototype.getFilesWithStatus=function(r){var s,u,q,t,p;t=this.files;p=[];for(u=0,q=t.length;u<q;u++){s=t[u];if(s.status===r){p.push(s)}}return p};m.prototype.getQueuedFiles=function(){return this.getFilesWithStatus(m.QUEUED)};m.prototype.getUploadingFiles=function(){return this.getFilesWithStatus(m.UPLOADING)};m.prototype.getAddedFiles=function(){return this.getFilesWithStatus(m.ADDED)};m.prototype.getActiveFiles=function(){var r,t,q,s,p;s=this.files;p=[];for(t=0,q=s.length;t<q;t++){r=s[t];if(r.status===m.UPLOADING||r.status===m.QUEUED){p.push(r)}}return p};m.prototype.init=function(){var r,v,u,t,q,s,p;if(this.element.tagName==="form"){this.element.setAttribute("enctype","multipart/form-data")}if(this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")){this.element.appendChild(m.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>"))}if(this.clickableElements.length){u=(function(w){return function(){if(w.hiddenFileInput){w.hiddenFileInput.parentNode.removeChild(w.hiddenFileInput)}w.hiddenFileInput=document.createElement("input");w.hiddenFileInput.setAttribute("type","file");if((w.options.maxFiles==null)||w.options.maxFiles>1){w.hiddenFileInput.setAttribute("multiple","multiple")}w.hiddenFileInput.className="dz-hidden-input";if(w.options.acceptedFiles!=null){w.hiddenFileInput.setAttribute("accept",w.options.acceptedFiles)}if(w.options.capture!=null){w.hiddenFileInput.setAttribute("capture",w.options.capture)}w.hiddenFileInput.style.visibility="hidden";w.hiddenFileInput.style.position="absolute";w.hiddenFileInput.style.top="0";w.hiddenFileInput.style.left="0";w.hiddenFileInput.style.height="0";w.hiddenFileInput.style.width="0";document.querySelector(w.options.hiddenInputContainer).appendChild(w.hiddenFileInput);return w.hiddenFileInput.addEventListener("change",function(){var y,z,A,x;z=w.hiddenFileInput.files;if(z.length){for(A=0,x=z.length;A<x;A++){y=z[A];w.addFile(y)}}w.emit("addedfiles",z);return u()})}})(this);u()}this.URL=(s=window.URL)!=null?s:window.webkitURL;p=this.events;for(t=0,q=p.length;t<q;t++){r=p[t];this.on(r,this.options[r])}this.on("uploadprogress",(function(w){return function(){return w.updateTotalUploadProgress()}})(this));this.on("removedfile",(function(w){return function(){return w.updateTotalUploadProgress()}})(this));this.on("canceled",(function(w){return function(x){return w.emit("complete",x)}})(this));this.on("complete",(function(w){return function(x){if(w.getAddedFiles().length===0&&w.getUploadingFiles().length===0&&w.getQueuedFiles().length===0){return setTimeout((function(){return w.emit("queuecomplete")}),0)}}})(this));v=function(w){w.stopPropagation();if(w.preventDefault){return w.preventDefault()}else{return w.returnValue=false}};this.listeners=[{element:this.element,events:{dragstart:(function(w){return function(x){return w.emit("dragstart",x)}})(this),dragenter:(function(w){return function(x){v(x);return w.emit("dragenter",x)}})(this),dragover:(function(w){return function(y){var x;try{x=y.dataTransfer.effectAllowed}catch(z){}y.dataTransfer.dropEffect="move"===x||"linkMove"===x?"move":"copy";v(y);return w.emit("dragover",y)}})(this),dragleave:(function(w){return function(x){return w.emit("dragleave",x)}})(this),drop:(function(w){return function(x){v(x);return w.drop(x)}})(this),dragend:(function(w){return function(x){return w.emit("dragend",x)}})(this)}}];this.clickableElements.forEach((function(w){return function(x){return w.listeners.push({element:x,events:{click:function(y){if((x!==w.element)||(y.target===w.element||m.elementInside(y.target,w.element.querySelector(".dz-message")))){w.hiddenFileInput.click()}return true}}})}})(this));this.enable();return this.options.init.call(this)};m.prototype.destroy=function(){var p;this.disable();this.removeAllFiles(true);if((p=this.hiddenFileInput)!=null?p.parentNode:void 0){this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput);this.hiddenFileInput=null}delete this.element.dropzone;return m.instances.splice(m.instances.indexOf(this),1)};m.prototype.updateTotalUploadProgress=function(){var r,s,w,p,v,u,q,t;p=0;w=0;r=this.getActiveFiles();if(r.length){t=this.getActiveFiles();for(u=0,q=t.length;u<q;u++){s=t[u];p+=s.upload.bytesSent;w+=s.upload.total}v=100*p/w}else{v=100}return this.emit("totaluploadprogress",v,w,p)};m.prototype._getParamName=function(p){if(typeof this.options.paramName==="function"){return this.options.paramName(p)}else{return""+this.options.paramName+(this.options.uploadMultiple?"["+p+"]":"")}};m.prototype._renameFilename=function(p){if(typeof this.options.renameFilename!=="function"){return p}return this.options.renameFilename(p)};m.prototype.getFallbackForm=function(){var q,p,s,r;if(q=this.getExistingFallback()){return q}s='<div class="dz-fallback">';if(this.options.dictFallbackText){s+="<p>"+this.options.dictFallbackText+"</p>"}s+='<input type="file" name="'+(this._getParamName(0))+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';p=m.createElement(s);if(this.element.tagName!=="FORM"){r=m.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>');r.appendChild(p)}else{this.element.setAttribute("enctype","multipart/form-data");this.element.setAttribute("method",this.options.method)}return r!=null?r:p};m.prototype.getExistingFallback=function(){var u,r,q,t,p,s;r=function(y){var w,x,v;for(x=0,v=y.length;x<v;x++){w=y[x];if(/(^| )fallback($| )/.test(w.className)){return w}}};s=["div","form"];for(t=0,p=s.length;t<p;t++){q=s[t];if(u=r(this.element.getElementsByTagName(q))){return u}}};m.prototype.setupEventListeners=function(){var s,r,v,u,q,t,p;t=this.listeners;p=[];for(u=0,q=t.length;u<q;u++){s=t[u];p.push((function(){var w,x;w=s.events;x=[];for(r in w){v=w[r];x.push(s.element.addEventListener(r,v,false))}return x})())}return p};m.prototype.removeEventListeners=function(){var s,r,v,u,q,t,p;t=this.listeners;p=[];for(u=0,q=t.length;u<q;u++){s=t[u];p.push((function(){var w,x;w=s.events;x=[];for(r in w){v=w[r];x.push(s.element.removeEventListener(r,v,false))}return x})())}return p};m.prototype.disable=function(){var r,t,q,s,p;this.clickableElements.forEach(function(u){return u.classList.remove("dz-clickable")});this.removeEventListeners();s=this.files;p=[];for(t=0,q=s.length;t<q;t++){r=s[t];p.push(this.cancelUpload(r))}return p};m.prototype.enable=function(){this.clickableElements.forEach(function(p){return p.classList.add("dz-clickable")});return this.setupEventListeners()};m.prototype.filesize=function(x){var q,t,r,p,w,u,s,v;r=0;p="b";if(x>0){u=["TB","GB","MB","KB","b"];for(t=s=0,v=u.length;s<v;t=++s){w=u[t];q=Math.pow(this.options.filesizeBase,4-t)/10;if(x>=q){r=x/Math.pow(this.options.filesizeBase,4-t);p=w;break}}r=Math.round(10*r)/10}return"<strong>"+r+"</strong> "+p};m.prototype._updateMaxFilesReachedClass=function(){if((this.options.maxFiles!=null)&&this.getAcceptedFiles().length>=this.options.maxFiles){if(this.getAcceptedFiles().length===this.options.maxFiles){this.emit("maxfilesreached",this.files)}return this.element.classList.add("dz-max-files-reached")}else{return this.element.classList.remove("dz-max-files-reached")}};m.prototype.drop=function(r){var q,p;if(!r.dataTransfer){return}this.emit("drop",r);q=r.dataTransfer.files;this.emit("addedfiles",q);if(q.length){p=r.dataTransfer.items;if(p&&p.length&&(p[0].webkitGetAsEntry!=null)){this._addFilesFromItems(p)}else{this.handleFiles(q)}}};m.prototype.paste=function(r){var p,q;if((r!=null?(q=r.clipboardData)!=null?q.items:void 0:void 0)==null){return}this.emit("paste",r);p=r.clipboardData.items;if(p.length){return this._addFilesFromItems(p)}};m.prototype.handleFiles=function(s){var r,t,q,p;p=[];for(t=0,q=s.length;t<q;t++){r=s[t];p.push(this.addFile(r))}return p};m.prototype._addFilesFromItems=function(r){var t,s,u,q,p;p=[];for(u=0,q=r.length;u<q;u++){s=r[u];if((s.webkitGetAsEntry!=null)&&(t=s.webkitGetAsEntry())){if(t.isFile){p.push(this.addFile(s.getAsFile()))}else{if(t.isDirectory){p.push(this._addFilesFromDirectory(t,t.name))}else{p.push(void 0)}}}else{if(s.getAsFile!=null){if((s.kind==null)||s.kind==="file"){p.push(this.addFile(s.getAsFile()))}else{p.push(void 0)}}else{p.push(void 0)}}}return p};m.prototype._addFilesFromDirectory=function(p,t){var s,r,q;s=p.createReader();r=function(u){return typeof console!=="undefined"&&console!==null?typeof console.log==="function"?console.log(u):void 0:void 0};q=(function(u){return function(){return s.readEntries(function(v){var x,y,w;if(v.length>0){for(y=0,w=v.length;y<w;y++){x=v[y];if(x.isFile){x.file(function(z){if(u.options.ignoreHiddenFiles&&z.name.substring(0,1)==="."){return}z.fullPath=""+t+"/"+z.name;return u.addFile(z)})}else{if(x.isDirectory){u._addFilesFromDirectory(x,""+t+"/"+x.name)}}}q()}return null},r)}})(this);return q()};m.prototype.accept=function(q,p){if(q.size>this.options.maxFilesize*1024*1024){return p(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(q.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize))}else{if(!m.isValidFile(q,this.options.acceptedFiles)){return p(this.options.dictInvalidFileType)}else{if((this.options.maxFiles!=null)&&this.getAcceptedFiles().length>=this.options.maxFiles){p(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles));return this.emit("maxfilesexceeded",q)}else{return this.options.accept.call(this,q,p)}}}};m.prototype.addFile=function(p){p.upload={progress:0,total:p.size,bytesSent:0};this.files.push(p);p.status=m.ADDED;this.emit("addedfile",p);this._enqueueThumbnail(p);return this.accept(p,(function(q){return function(r){if(r){p.accepted=false;q._errorProcessing([p],r)}else{p.accepted=true;if(q.options.autoQueue){q.enqueueFile(p)}}return q._updateMaxFilesReachedClass()}})(this))};m.prototype.enqueueFiles=function(r){var q,s,p;for(s=0,p=r.length;s<p;s++){q=r[s];this.enqueueFile(q)}return null};m.prototype.enqueueFile=function(p){if(p.status===m.ADDED&&p.accepted===true){p.status=m.QUEUED;if(this.options.autoProcessQueue){return setTimeout(((function(q){return function(){return q.processQueue()}})(this)),0)}}else{throw new Error("This file can't be queued because it has already been processed or was rejected.")}};m.prototype._thumbnailQueue=[];m.prototype._processingThumbnail=false;m.prototype._enqueueThumbnail=function(p){if(this.options.createImageThumbnails&&p.type.match(/image.*/)&&p.size<=this.options.maxThumbnailFilesize*1024*1024){this._thumbnailQueue.push(p);return setTimeout(((function(q){return function(){return q._processThumbnailQueue()}})(this)),0)}};m.prototype._processThumbnailQueue=function(){if(this._processingThumbnail||this._thumbnailQueue.length===0){return}this._processingThumbnail=true;return this.createThumbnail(this._thumbnailQueue.shift(),(function(p){return function(){p._processingThumbnail=false;return p._processThumbnailQueue()}})(this))};m.prototype.removeFile=function(p){if(p.status===m.UPLOADING){this.cancelUpload(p)}this.files=j(this.files,p);this.emit("removedfile",p);if(this.files.length===0){return this.emit("reset")}};m.prototype.removeAllFiles=function(t){var q,s,p,r;if(t==null){t=false}r=this.files.slice();for(s=0,p=r.length;s<p;s++){q=r[s];if(q.status!==m.UPLOADING||t){this.removeFile(q)}}return null};m.prototype.createThumbnail=function(q,r){var p;p=new FileReader;p.onload=(function(s){return function(){if(q.type==="image/svg+xml"){s.emit("thumbnail",q,p.result);if(r!=null){r()}return}return s.createThumbnailFromUrl(q,p.result,r)}})(this);return p.readAsDataURL(q)};m.prototype.createThumbnailFromUrl=function(s,r,t,q){var p;p=document.createElement("img");if(q){p.crossOrigin=q}p.onload=(function(u){return function(){var x,w,A,C,y,v,B,z;s.width=p.width;s.height=p.height;A=u.options.resize.call(u,s);if(A.trgWidth==null){A.trgWidth=A.optWidth}if(A.trgHeight==null){A.trgHeight=A.optHeight}x=document.createElement("canvas");w=x.getContext("2d");x.width=A.trgWidth;x.height=A.trgHeight;e(w,p,(y=A.srcX)!=null?y:0,(v=A.srcY)!=null?v:0,A.srcWidth,A.srcHeight,(B=A.trgX)!=null?B:0,(z=A.trgY)!=null?z:0,A.trgWidth,A.trgHeight);C=x.toDataURL("image/png");u.emit("thumbnail",s,C);if(t!=null){return t()}}})(this);if(t!=null){p.onerror=t}return p.src=r};m.prototype.processQueue=function(){var q,s,p,r;s=this.options.parallelUploads;p=this.getUploadingFiles().length;q=p;if(p>=s){return}r=this.getQueuedFiles();if(!(r.length>0)){return}if(this.options.uploadMultiple){return this.processFiles(r.slice(0,s-p))}else{while(q<s){if(!r.length){return}this.processFile(r.shift());q++}}};m.prototype.processFile=function(p){return this.processFiles([p])};m.prototype.processFiles=function(r){var q,s,p;for(s=0,p=r.length;s<p;s++){q=r[s];q.processing=true;q.status=m.UPLOADING;this.emit("processing",q)}if(this.options.uploadMultiple){this.emit("processingmultiple",r)}return this.uploadFiles(r)};m.prototype._getFilesWithXhr=function(r){var p,q;return q=(function(){var v,t,u,s;u=this.files;s=[];for(v=0,t=u.length;v<t;v++){p=u[v];if(p.xhr===r){s.push(p)}}return s}).call(this)};m.prototype.cancelUpload=function(t){var r,s,w,u,q,p,v;if(t.status===m.UPLOADING){s=this._getFilesWithXhr(t.xhr);for(w=0,q=s.length;w<q;w++){r=s[w];r.status=m.CANCELED}t.xhr.abort();for(u=0,p=s.length;u<p;u++){r=s[u];this.emit("canceled",r)}if(this.options.uploadMultiple){this.emit("canceledmultiple",s)}}else{if((v=t.status)===m.ADDED||v===m.QUEUED){t.status=m.CANCELED;this.emit("canceled",t);if(this.options.uploadMultiple){this.emit("canceledmultiple",[t])}}}if(this.options.autoProcessQueue){return this.processQueue()}};l=function(){var p,q;q=arguments[0],p=2<=arguments.length?f.call(arguments,1):[];if(typeof q==="function"){return q.apply(this,p)}return q};m.prototype.uploadFile=function(p){return this.uploadFiles([p])};m.prototype.uploadFiles=function(D){var S,Q,I,N,F,y,R,L,H,O,X,B,M,E,r,J,C,P,G,x,v,t,q,U,W,V,T,p,K,A,z,w,u,s;G=new XMLHttpRequest();for(x=0,U=D.length;x<U;x++){S=D[x];S.xhr=G}B=l(this.options.method,D);C=l(this.options.url,D);G.open(B,C,true);G.withCredentials=!!this.options.withCredentials;r=null;I=(function(Y){return function(){var ab,aa,Z;Z=[];for(ab=0,aa=D.length;ab<aa;ab++){S=D[ab];Z.push(Y._errorProcessing(D,r||Y.options.dictResponseError.replace("{{statusCode}}",G.status),G))}return Z}})(this);J=(function(Y){return function(ai){var ad,aa,ah,af,ae,ac,ab,Z,ag;if(ai!=null){aa=100*ai.loaded/ai.total;for(ah=0,ac=D.length;ah<ac;ah++){S=D[ah];S.upload={progress:aa,total:ai.total,bytesSent:ai.loaded}}}else{ad=true;aa=100;for(af=0,ab=D.length;af<ab;af++){S=D[af];if(!(S.upload.progress===100&&S.upload.bytesSent===S.upload.total)){ad=false}S.upload.progress=aa;S.upload.bytesSent=S.upload.total}if(ad){return}}ag=[];for(ae=0,Z=D.length;ae<Z;ae++){S=D[ae];ag.push(Y.emit("uploadprogress",S,aa,S.upload.bytesSent))}return ag}})(this);G.onload=(function(Y){return function(aa){var Z;if(D[0].status===m.CANCELED){return}if(G.readyState!==4){return}r=G.responseText;if(G.getResponseHeader("content-type")&&~G.getResponseHeader("content-type").indexOf("application/json")){try{r=JSON.parse(r)}catch(ab){aa=ab;r="Invalid JSON response from server."}}J();if(!((200<=(Z=G.status)&&Z<300))){return I()}else{return Y._finished(D,r,aa)}}})(this);G.onerror=(function(Y){return function(){if(D[0].status===m.CANCELED){return}return I()}})(this);E=(K=G.upload)!=null?K:G;E.onprogress=J;y={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};if(this.options.headers){o(y,this.options.headers)}for(N in y){F=y[N];if(F){G.setRequestHeader(N,F)}}Q=new FormData();if(this.options.params){A=this.options.params;for(X in A){P=A[X];Q.append(X,P)}}for(v=0,W=D.length;v<W;v++){S=D[v];this.emit("sending",S,G,Q)}if(this.options.uploadMultiple){this.emit("sendingmultiple",D,G,Q)}if(this.element.tagName==="FORM"){z=this.element.querySelectorAll("input, textarea, select, button");for(t=0,V=z.length;t<V;t++){L=z[t];H=L.getAttribute("name");O=L.getAttribute("type");if(L.tagName==="SELECT"&&L.hasAttribute("multiple")){w=L.options;for(q=0,T=w.length;q<T;q++){M=w[q];if(M.selected){Q.append(H,M.value)}}}else{if(!O||((u=O.toLowerCase())!=="checkbox"&&u!=="radio")||L.checked){Q.append(H,L.value)}}}}for(R=p=0,s=D.length-1;0<=s?p<=s:p>=s;R=0<=s?++p:--p){Q.append(this._getParamName(R),D[R],this._renameFilename(D[R].name))}return this.submitRequest(G,Q,D)};m.prototype.submitRequest=function(r,q,p){return r.send(q)};m.prototype._finished=function(r,t,u){var q,s,p;for(s=0,p=r.length;s<p;s++){q=r[s];q.status=m.SUCCESS;this.emit("success",q,t,u);this.emit("complete",q)}if(this.options.uploadMultiple){this.emit("successmultiple",r,t,u);this.emit("completemultiple",r)}if(this.options.autoProcessQueue){return this.processQueue()}};m.prototype._errorProcessing=function(s,r,u){var q,t,p;for(t=0,p=s.length;t<p;t++){q=s[t];q.status=m.ERROR;this.emit("error",q,r,u);this.emit("complete",q)}if(this.options.uploadMultiple){this.emit("errormultiple",s,r,u);this.emit("completemultiple",s)}if(this.options.autoProcessQueue){return this.processQueue()}};return m})(i);g.version="4.3.0";g.options={};g.optionsForElement=function(l){if(l.getAttribute("id")){return g.options[b(l.getAttribute("id"))]}else{return void 0}};g.instances=[];g.forElement=function(l){if(typeof l==="string"){l=document.querySelector(l)}if((l!=null?l.dropzone:void 0)==null){throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.")}return l.dropzone};g.autoDiscover=false;g.discover=function(){var q,n,o,p,m,l;if(document.querySelectorAll){o=document.querySelectorAll(".dropzone")}else{o=[];q=function(v){var t,u,s,r;r=[];for(u=0,s=v.length;u<s;u++){t=v[u];if(/(^| )dropzone($| )/.test(t.className)){r.push(o.push(t))}else{r.push(void 0)}}return r};q(document.getElementsByTagName("div"));q(document.getElementsByTagName("form"))}l=[];for(p=0,m=o.length;p<m;p++){n=o[p];if(g.optionsForElement(n)!==false){l.push(new g(n))}else{l.push(void 0)}}return l};g.blacklistedBrowsers=[/opera.*Macintosh.*version\/12/i];g.isBrowserSupported=function(){var m,n,p,l,o;m=true;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector){if(!("classList" in document.createElement("a"))){m=false}else{o=g.blacklistedBrowsers;for(p=0,l=o.length;p<l;p++){n=o[p];if(n.test(navigator.userAgent)){m=false;continue}}}}else{m=false}return m};j=function(q,n){var o,p,m,l;l=[];for(p=0,m=q.length;p<m;p++){o=q[p];if(o!==n){l.push(o)}}return l};b=function(l){return l.replace(/[\-_](\w)/g,function(m){return m.charAt(1).toUpperCase()})};g.createElement=function(l){var m;m=document.createElement("div");m.innerHTML=l;return m.childNodes[0]};g.elementInside=function(m,l){if(m===l){return true}while(m=m.parentNode){if(m===l){return true}}return false};g.getElement=function(n,l){var m;if(typeof n==="string"){m=document.querySelector(n)}else{if(n.nodeType!=null){m=n}}if(m==null){throw new Error("Invalid `"+l+"` option provided. Please provide a CSS selector or a plain HTML element.")}return m};g.getElements=function(r,m){var t,o,l,q,p,u,n,s;if(r instanceof Array){l=[];try{for(q=0,u=r.length;q<u;q++){o=r[q];l.push(this.getElement(o,m))}}catch(v){t=v;l=null}}else{if(typeof r==="string"){l=[];s=document.querySelectorAll(r);for(p=0,n=s.length;p<n;p++){o=s[p];l.push(o)}}else{if(r.nodeType!=null){l=[r]}}}if(!((l!=null)&&l.length)){throw new Error("Invalid `"+m+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.")}return l};g.confirm=function(l,n,m){if(window.confirm(l)){return n()}else{if(m!=null){return m()}}};g.isValidFile=function(o,l){var n,r,p,q,m;if(!l){return true}l=l.split(",");r=o.type;n=r.replace(/\/.*$/,"");for(q=0,m=l.length;q<m;q++){p=l[q];p=p.trim();if(p.charAt(0)==="."){if(o.name.toLowerCase().indexOf(p.toLowerCase(),o.name.length-p.length)!==-1){return true}}else{if(/\/\*$/.test(p)){if(n===p.replace(/\/.*$/,"")){return true}}else{if(r===p){return true}}}}return false};if(typeof jQuery!=="undefined"&&jQuery!==null){jQuery.fn.dropzone=function(l){return this.each(function(){return new g(this,l)})}}if(typeof module!=="undefined"&&module!==null){module.exports=g}else{window.Dropzone=g}g.ADDED="added";g.QUEUED="queued";g.ACCEPTED=g.QUEUED;g.UPLOADING="uploading";g.PROCESSING=g.UPLOADING;g.CANCELED="canceled";g.ERROR="error";g.SUCCESS="success";a=function(p){var n,l,v,o,q,u,m,t,r,s;m=p.naturalWidth;u=p.naturalHeight;l=document.createElement("canvas");l.width=1;l.height=u;v=l.getContext("2d");v.drawImage(p,0,0);o=v.getImageData(0,0,1,u).data;s=0;q=u;t=u;while(t>s){n=o[(t-1)*4+3];if(n===0){q=t}else{s=t}t=(q+s)>>1}r=t/u;if(r===0){return 1}else{return r}};e=function(t,m,r,q,s,n,v,u,l,p){var o;o=a(m);return t.drawImage(m,r,q,s,n,v,u,l,p/o)};d=function(n,r){var w,s,m,v,o,l,u,q,p;m=false;p=true;s=n.document;q=s.documentElement;w=(s.addEventListener?"addEventListener":"attachEvent");u=(s.addEventListener?"removeEventListener":"detachEvent");l=(s.addEventListener?"":"on");v=function(x){if(x.type==="readystatechange"&&s.readyState!=="complete"){return}(x.type==="load"?n:s)[u](l+x.type,v,false);if(!m&&(m=true)){return r.call(n,x.type||x)}};o=function(){var x;try{q.doScroll("left")}catch(y){x=y;setTimeout(o,50);return}return v("poll")};if(s.readyState!=="complete"){if(s.createEventObject&&q.doScroll){try{p=!n.frameElement}catch(t){}if(p){o()}}s[w](l+"DOMContentLoaded",v,false);s[w](l+"readystatechange",v,false);return n[w](l+"load",v,false)}};g._autoDiscoverFunction=function(){if(g.autoDiscover){return g.discover()}};d(window,g._autoDiscoverFunction)}).call(this);



/*!
 * jQuery UI Touch Punch 0.2.3
 *
 * Copyright 2011–2014, Dave Furfero
 * Dual licensed under the MIT or GPL Version 2 licenses.
 *
 * Depends:
 *  jquery.ui.widget.js
 *  jquery.ui.mouse.js
 */
(function(b){b.support.touch="ontouchend" in document;if(!b.support.touch){return}var d=b.ui.mouse.prototype,f=d._mouseInit,c=d._mouseDestroy,a;function e(h,i){if(h.originalEvent.touches.length>1){return}h.preventDefault();var j=h.originalEvent.changedTouches[0],g=document.createEvent("MouseEvents");g.initMouseEvent(i,true,true,window,1,j.screenX,j.screenY,j.clientX,j.clientY,false,false,false,false,0,null);h.target.dispatchEvent(g)}d._touchStart=function(h){var g=this;if(a||!g._mouseCapture(h.originalEvent.changedTouches[0])){}a=true;g._touchMoved=false;e(h,"mouseover");e(h,"mousemove");e(h,"mousedown")};d._touchMove=function(g){if(!a){return}this._touchMoved=true;e(g,"mousemove")};d._touchEnd=function(g){if(!a){return}e(g,"mouseup");e(g,"mouseout");if(!this._touchMoved){e(g,"click")}a=false};d._mouseInit=function(){var g=this;g.element.bind({touchstart:b.proxy(g,"_touchStart"),touchmove:b.proxy(g,"_touchMove"),touchend:b.proxy(g,"_touchEnd")});f.call(g)};d._mouseDestroy=function(){var g=this;g.element.unbind({touchstart:b.proxy(g,"_touchStart"),touchmove:b.proxy(g,"_touchMove"),touchend:b.proxy(g,"_touchEnd")});c.call(g)}})(jQuery);

/*!
 DataTables 1.10.15
 ©2008-2017 SpryMedia Ltd - datatables.net/license
*/
(function(h){"function"===typeof define&&define.amd?define(["jquery"],function(E){return h(E,window,document)}):"object"===typeof exports?module.exports=function(E,H){E||(E=window);H||(H="undefined"!==typeof window?require("jquery"):require("jquery")(E));return h(H,E,E.document)}:h(jQuery,window,document)})(function(h,E,H,k){function Y(a){var b,c,d={};h.each(a,function(e){if((b=e.match(/^([^A-Z]+?)([A-Z])/))&&-1!=="a aa ai ao as b fn i m o s ".indexOf(b[1]+" "))c=e.replace(b[0],b[2].toLowerCase()),
d[c]=e,"o"===b[1]&&Y(a[e])});a._hungarianMap=d}function J(a,b,c){a._hungarianMap||Y(a);var d;h.each(b,function(e){d=a._hungarianMap[e];if(d!==k&&(c||b[d]===k))"o"===d.charAt(0)?(b[d]||(b[d]={}),h.extend(!0,b[d],b[e]),J(a[d],b[d],c)):b[d]=b[e]})}function Fa(a){var b=m.defaults.oLanguage,c=a.sZeroRecords;!a.sEmptyTable&&(c&&"No data available in table"===b.sEmptyTable)&&F(a,a,"sZeroRecords","sEmptyTable");!a.sLoadingRecords&&(c&&"Loading..."===b.sLoadingRecords)&&F(a,a,"sZeroRecords","sLoadingRecords");
a.sInfoThousands&&(a.sThousands=a.sInfoThousands);(a=a.sDecimal)&&fb(a)}function gb(a){A(a,"ordering","bSort");A(a,"orderMulti","bSortMulti");A(a,"orderClasses","bSortClasses");A(a,"orderCellsTop","bSortCellsTop");A(a,"order","aaSorting");A(a,"orderFixed","aaSortingFixed");A(a,"paging","bPaginate");A(a,"pagingType","sPaginationType");A(a,"pageLength","iDisplayLength");A(a,"searching","bFilter");"boolean"===typeof a.sScrollX&&(a.sScrollX=a.sScrollX?"100%":"");"boolean"===typeof a.scrollX&&(a.scrollX=
a.scrollX?"100%":"");if(a=a.aoSearchCols)for(var b=0,c=a.length;b<c;b++)a[b]&&J(m.models.oSearch,a[b])}function hb(a){A(a,"orderable","bSortable");A(a,"orderData","aDataSort");A(a,"orderSequence","asSorting");A(a,"orderDataType","sortDataType");var b=a.aDataSort;"number"===typeof b&&!h.isArray(b)&&(a.aDataSort=[b])}function ib(a){if(!m.__browser){var b={};m.__browser=b;var c=h("<div/>").css({position:"fixed",top:0,left:-1*h(E).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(h("<div/>").css({position:"absolute",
top:1,left:1,width:100,overflow:"scroll"}).append(h("<div/>").css({width:"100%",height:10}))).appendTo("body"),d=c.children(),e=d.children();b.barWidth=d[0].offsetWidth-d[0].clientWidth;b.bScrollOversize=100===e[0].offsetWidth&&100!==d[0].clientWidth;b.bScrollbarLeft=1!==Math.round(e.offset().left);b.bBounding=c[0].getBoundingClientRect().width?!0:!1;c.remove()}h.extend(a.oBrowser,m.__browser);a.oScroll.iBarWidth=m.__browser.barWidth}function jb(a,b,c,d,e,f){var g,j=!1;c!==k&&(g=c,j=!0);for(;d!==
e;)a.hasOwnProperty(d)&&(g=j?b(g,a[d],d,a):a[d],j=!0,d+=f);return g}function Ga(a,b){var c=m.defaults.column,d=a.aoColumns.length,c=h.extend({},m.models.oColumn,c,{nTh:b?b:H.createElement("th"),sTitle:c.sTitle?c.sTitle:b?b.innerHTML:"",aDataSort:c.aDataSort?c.aDataSort:[d],mData:c.mData?c.mData:d,idx:d});a.aoColumns.push(c);c=a.aoPreSearchCols;c[d]=h.extend({},m.models.oSearch,c[d]);la(a,d,h(b).data())}function la(a,b,c){var b=a.aoColumns[b],d=a.oClasses,e=h(b.nTh);if(!b.sWidthOrig){b.sWidthOrig=
e.attr("width")||null;var f=(e.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);f&&(b.sWidthOrig=f[1])}c!==k&&null!==c&&(hb(c),J(m.defaults.column,c),c.mDataProp!==k&&!c.mData&&(c.mData=c.mDataProp),c.sType&&(b._sManualType=c.sType),c.className&&!c.sClass&&(c.sClass=c.className),h.extend(b,c),F(b,c,"sWidth","sWidthOrig"),c.iDataSort!==k&&(b.aDataSort=[c.iDataSort]),F(b,c,"aDataSort"));var g=b.mData,j=R(g),i=b.mRender?R(b.mRender):null,c=function(a){return"string"===typeof a&&-1!==a.indexOf("@")};
b._bAttrSrc=h.isPlainObject(g)&&(c(g.sort)||c(g.type)||c(g.filter));b._setter=null;b.fnGetData=function(a,b,c){var d=j(a,b,k,c);return i&&b?i(d,b,a,c):d};b.fnSetData=function(a,b,c){return S(g)(a,b,c)};"number"!==typeof g&&(a._rowReadObject=!0);a.oFeatures.bSort||(b.bSortable=!1,e.addClass(d.sSortableNone));a=-1!==h.inArray("asc",b.asSorting);c=-1!==h.inArray("desc",b.asSorting);!b.bSortable||!a&&!c?(b.sSortingClass=d.sSortableNone,b.sSortingClassJUI=""):a&&!c?(b.sSortingClass=d.sSortableAsc,b.sSortingClassJUI=
d.sSortJUIAscAllowed):!a&&c?(b.sSortingClass=d.sSortableDesc,b.sSortingClassJUI=d.sSortJUIDescAllowed):(b.sSortingClass=d.sSortable,b.sSortingClassJUI=d.sSortJUI)}function Z(a){if(!1!==a.oFeatures.bAutoWidth){var b=a.aoColumns;Ha(a);for(var c=0,d=b.length;c<d;c++)b[c].nTh.style.width=b[c].sWidth}b=a.oScroll;(""!==b.sY||""!==b.sX)&&ma(a);s(a,null,"column-sizing",[a])}function $(a,b){var c=na(a,"bVisible");return"number"===typeof c[b]?c[b]:null}function aa(a,b){var c=na(a,"bVisible"),c=h.inArray(b,
c);return-1!==c?c:null}function ba(a){var b=0;h.each(a.aoColumns,function(a,d){d.bVisible&&"none"!==h(d.nTh).css("display")&&b++});return b}function na(a,b){var c=[];h.map(a.aoColumns,function(a,e){a[b]&&c.push(e)});return c}function Ia(a){var b=a.aoColumns,c=a.aoData,d=m.ext.type.detect,e,f,g,j,i,h,l,q,r;e=0;for(f=b.length;e<f;e++)if(l=b[e],r=[],!l.sType&&l._sManualType)l.sType=l._sManualType;else if(!l.sType){g=0;for(j=d.length;g<j;g++){i=0;for(h=c.length;i<h;i++){r[i]===k&&(r[i]=B(a,i,e,"type"));
q=d[g](r[i],a);if(!q&&g!==d.length-1)break;if("html"===q)break}if(q){l.sType=q;break}}l.sType||(l.sType="string")}}function kb(a,b,c,d){var e,f,g,j,i,n,l=a.aoColumns;if(b)for(e=b.length-1;0<=e;e--){n=b[e];var q=n.targets!==k?n.targets:n.aTargets;h.isArray(q)||(q=[q]);f=0;for(g=q.length;f<g;f++)if("number"===typeof q[f]&&0<=q[f]){for(;l.length<=q[f];)Ga(a);d(q[f],n)}else if("number"===typeof q[f]&&0>q[f])d(l.length+q[f],n);else if("string"===typeof q[f]){j=0;for(i=l.length;j<i;j++)("_all"==q[f]||h(l[j].nTh).hasClass(q[f]))&&
d(j,n)}}if(c){e=0;for(a=c.length;e<a;e++)d(e,c[e])}}function N(a,b,c,d){var e=a.aoData.length,f=h.extend(!0,{},m.models.oRow,{src:c?"dom":"data",idx:e});f._aData=b;a.aoData.push(f);for(var g=a.aoColumns,j=0,i=g.length;j<i;j++)g[j].sType=null;a.aiDisplayMaster.push(e);b=a.rowIdFn(b);b!==k&&(a.aIds[b]=f);(c||!a.oFeatures.bDeferRender)&&Ja(a,e,c,d);return e}function oa(a,b){var c;b instanceof h||(b=h(b));return b.map(function(b,e){c=Ka(a,e);return N(a,c.data,e,c.cells)})}function B(a,b,c,d){var e=a.iDraw,
f=a.aoColumns[c],g=a.aoData[b]._aData,j=f.sDefaultContent,i=f.fnGetData(g,d,{settings:a,row:b,col:c});if(i===k)return a.iDrawError!=e&&null===j&&(K(a,0,"Requested unknown parameter "+("function"==typeof f.mData?"{function}":"'"+f.mData+"'")+" for row "+b+", column "+c,4),a.iDrawError=e),j;if((i===g||null===i)&&null!==j&&d!==k)i=j;else if("function"===typeof i)return i.call(g);return null===i&&"display"==d?"":i}function lb(a,b,c,d){a.aoColumns[c].fnSetData(a.aoData[b]._aData,d,{settings:a,row:b,col:c})}
function La(a){return h.map(a.match(/(\\.|[^\.])+/g)||[""],function(a){return a.replace(/\\\./g,".")})}function R(a){if(h.isPlainObject(a)){var b={};h.each(a,function(a,c){c&&(b[a]=R(c))});return function(a,c,f,g){var j=b[c]||b._;return j!==k?j(a,c,f,g):a}}if(null===a)return function(a){return a};if("function"===typeof a)return function(b,c,f,g){return a(b,c,f,g)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var c=function(a,b,f){var g,j;if(""!==f){j=La(f);
for(var i=0,n=j.length;i<n;i++){f=j[i].match(ca);g=j[i].match(V);if(f){j[i]=j[i].replace(ca,"");""!==j[i]&&(a=a[j[i]]);g=[];j.splice(0,i+1);j=j.join(".");if(h.isArray(a)){i=0;for(n=a.length;i<n;i++)g.push(c(a[i],b,j))}a=f[0].substring(1,f[0].length-1);a=""===a?g:g.join(a);break}else if(g){j[i]=j[i].replace(V,"");a=a[j[i]]();continue}if(null===a||a[j[i]]===k)return k;a=a[j[i]]}}return a};return function(b,e){return c(b,e,a)}}return function(b){return b[a]}}function S(a){if(h.isPlainObject(a))return S(a._);
if(null===a)return function(){};if("function"===typeof a)return function(b,d,e){a(b,"set",d,e)};if("string"===typeof a&&(-1!==a.indexOf(".")||-1!==a.indexOf("[")||-1!==a.indexOf("("))){var b=function(a,d,e){var e=La(e),f;f=e[e.length-1];for(var g,j,i=0,n=e.length-1;i<n;i++){g=e[i].match(ca);j=e[i].match(V);if(g){e[i]=e[i].replace(ca,"");a[e[i]]=[];f=e.slice();f.splice(0,i+1);g=f.join(".");if(h.isArray(d)){j=0;for(n=d.length;j<n;j++)f={},b(f,d[j],g),a[e[i]].push(f)}else a[e[i]]=d;return}j&&(e[i]=e[i].replace(V,
""),a=a[e[i]](d));if(null===a[e[i]]||a[e[i]]===k)a[e[i]]={};a=a[e[i]]}if(f.match(V))a[f.replace(V,"")](d);else a[f.replace(ca,"")]=d};return function(c,d){return b(c,d,a)}}return function(b,d){b[a]=d}}function Ma(a){return D(a.aoData,"_aData")}function pa(a){a.aoData.length=0;a.aiDisplayMaster.length=0;a.aiDisplay.length=0;a.aIds={}}function qa(a,b,c){for(var d=-1,e=0,f=a.length;e<f;e++)a[e]==b?d=e:a[e]>b&&a[e]--; -1!=d&&c===k&&a.splice(d,1)}function da(a,b,c,d){var e=a.aoData[b],f,g=function(c,d){for(;c.childNodes.length;)c.removeChild(c.firstChild);
c.innerHTML=B(a,b,d,"display")};if("dom"===c||(!c||"auto"===c)&&"dom"===e.src)e._aData=Ka(a,e,d,d===k?k:e._aData).data;else{var j=e.anCells;if(j)if(d!==k)g(j[d],d);else{c=0;for(f=j.length;c<f;c++)g(j[c],c)}}e._aSortData=null;e._aFilterData=null;g=a.aoColumns;if(d!==k)g[d].sType=null;else{c=0;for(f=g.length;c<f;c++)g[c].sType=null;Na(a,e)}}function Ka(a,b,c,d){var e=[],f=b.firstChild,g,j,i=0,n,l=a.aoColumns,q=a._rowReadObject,d=d!==k?d:q?{}:[],r=function(a,b){if("string"===typeof a){var c=a.indexOf("@");
-1!==c&&(c=a.substring(c+1),S(a)(d,b.getAttribute(c)))}},m=function(a){if(c===k||c===i)j=l[i],n=h.trim(a.innerHTML),j&&j._bAttrSrc?(S(j.mData._)(d,n),r(j.mData.sort,a),r(j.mData.type,a),r(j.mData.filter,a)):q?(j._setter||(j._setter=S(j.mData)),j._setter(d,n)):d[i]=n;i++};if(f)for(;f;){g=f.nodeName.toUpperCase();if("TD"==g||"TH"==g)m(f),e.push(f);f=f.nextSibling}else{e=b.anCells;f=0;for(g=e.length;f<g;f++)m(e[f])}if(b=b.firstChild?b:b.nTr)(b=b.getAttribute("id"))&&S(a.rowId)(d,b);return{data:d,cells:e}}
function Ja(a,b,c,d){var e=a.aoData[b],f=e._aData,g=[],j,i,n,l,q;if(null===e.nTr){j=c||H.createElement("tr");e.nTr=j;e.anCells=g;j._DT_RowIndex=b;Na(a,e);l=0;for(q=a.aoColumns.length;l<q;l++){n=a.aoColumns[l];i=c?d[l]:H.createElement(n.sCellType);i._DT_CellIndex={row:b,column:l};g.push(i);if((!c||n.mRender||n.mData!==l)&&(!h.isPlainObject(n.mData)||n.mData._!==l+".display"))i.innerHTML=B(a,b,l,"display");n.sClass&&(i.className+=" "+n.sClass);n.bVisible&&!c?j.appendChild(i):!n.bVisible&&c&&i.parentNode.removeChild(i);
n.fnCreatedCell&&n.fnCreatedCell.call(a.oInstance,i,B(a,b,l),f,b,l)}s(a,"aoRowCreatedCallback",null,[j,f,b])}e.nTr.setAttribute("role","row")}function Na(a,b){var c=b.nTr,d=b._aData;if(c){var e=a.rowIdFn(d);e&&(c.id=e);d.DT_RowClass&&(e=d.DT_RowClass.split(" "),b.__rowc=b.__rowc?sa(b.__rowc.concat(e)):e,h(c).removeClass(b.__rowc.join(" ")).addClass(d.DT_RowClass));d.DT_RowAttr&&h(c).attr(d.DT_RowAttr);d.DT_RowData&&h(c).data(d.DT_RowData)}}function mb(a){var b,c,d,e,f,g=a.nTHead,j=a.nTFoot,i=0===
h("th, td",g).length,n=a.oClasses,l=a.aoColumns;i&&(e=h("<tr/>").appendTo(g));b=0;for(c=l.length;b<c;b++)f=l[b],d=h(f.nTh).addClass(f.sClass),i&&d.appendTo(e),a.oFeatures.bSort&&(d.addClass(f.sSortingClass),!1!==f.bSortable&&(d.attr("tabindex",a.iTabIndex).attr("aria-controls",a.sTableId),Oa(a,f.nTh,b))),f.sTitle!=d[0].innerHTML&&d.html(f.sTitle),Pa(a,"header")(a,d,f,n);i&&ea(a.aoHeader,g);h(g).find(">tr").attr("role","row");h(g).find(">tr>th, >tr>td").addClass(n.sHeaderTH);h(j).find(">tr>th, >tr>td").addClass(n.sFooterTH);
if(null!==j){a=a.aoFooter[0];b=0;for(c=a.length;b<c;b++)f=l[b],f.nTf=a[b].cell,f.sClass&&h(f.nTf).addClass(f.sClass)}}function fa(a,b,c){var d,e,f,g=[],j=[],i=a.aoColumns.length,n;if(b){c===k&&(c=!1);d=0;for(e=b.length;d<e;d++){g[d]=b[d].slice();g[d].nTr=b[d].nTr;for(f=i-1;0<=f;f--)!a.aoColumns[f].bVisible&&!c&&g[d].splice(f,1);j.push([])}d=0;for(e=g.length;d<e;d++){if(a=g[d].nTr)for(;f=a.firstChild;)a.removeChild(f);f=0;for(b=g[d].length;f<b;f++)if(n=i=1,j[d][f]===k){a.appendChild(g[d][f].cell);
for(j[d][f]=1;g[d+i]!==k&&g[d][f].cell==g[d+i][f].cell;)j[d+i][f]=1,i++;for(;g[d][f+n]!==k&&g[d][f].cell==g[d][f+n].cell;){for(c=0;c<i;c++)j[d+c][f+n]=1;n++}h(g[d][f].cell).attr("rowspan",i).attr("colspan",n)}}}}function O(a){var b=s(a,"aoPreDrawCallback","preDraw",[a]);if(-1!==h.inArray(!1,b))C(a,!1);else{var b=[],c=0,d=a.asStripeClasses,e=d.length,f=a.oLanguage,g=a.iInitDisplayStart,j="ssp"==y(a),i=a.aiDisplay;a.bDrawing=!0;g!==k&&-1!==g&&(a._iDisplayStart=j?g:g>=a.fnRecordsDisplay()?0:g,a.iInitDisplayStart=
-1);var g=a._iDisplayStart,n=a.fnDisplayEnd();if(a.bDeferLoading)a.bDeferLoading=!1,a.iDraw++,C(a,!1);else if(j){if(!a.bDestroying&&!nb(a))return}else a.iDraw++;if(0!==i.length){f=j?a.aoData.length:n;for(j=j?0:g;j<f;j++){var l=i[j],q=a.aoData[l];null===q.nTr&&Ja(a,l);l=q.nTr;if(0!==e){var r=d[c%e];q._sRowStripe!=r&&(h(l).removeClass(q._sRowStripe).addClass(r),q._sRowStripe=r)}s(a,"aoRowCallback",null,[l,q._aData,c,j]);b.push(l);c++}}else c=f.sZeroRecords,1==a.iDraw&&"ajax"==y(a)?c=f.sLoadingRecords:
f.sEmptyTable&&0===a.fnRecordsTotal()&&(c=f.sEmptyTable),b[0]=h("<tr/>",{"class":e?d[0]:""}).append(h("<td />",{valign:"top",colSpan:ba(a),"class":a.oClasses.sRowEmpty}).html(c))[0];s(a,"aoHeaderCallback","header",[h(a.nTHead).children("tr")[0],Ma(a),g,n,i]);s(a,"aoFooterCallback","footer",[h(a.nTFoot).children("tr")[0],Ma(a),g,n,i]);d=h(a.nTBody);d.children().detach();d.append(h(b));s(a,"aoDrawCallback","draw",[a]);a.bSorted=!1;a.bFiltered=!1;a.bDrawing=!1}}function T(a,b){var c=a.oFeatures,d=c.bFilter;
c.bSort&&ob(a);d?ga(a,a.oPreviousSearch):a.aiDisplay=a.aiDisplayMaster.slice();!0!==b&&(a._iDisplayStart=0);a._drawHold=b;O(a);a._drawHold=!1}function pb(a){var b=a.oClasses,c=h(a.nTable),c=h("<div/>").insertBefore(c),d=a.oFeatures,e=h("<div/>",{id:a.sTableId+"_wrapper","class":b.sWrapper+(a.nTFoot?"":" "+b.sNoFooter)});a.nHolding=c[0];a.nTableWrapper=e[0];a.nTableReinsertBefore=a.nTable.nextSibling;for(var f=a.sDom.split(""),g,j,i,n,l,q,k=0;k<f.length;k++){g=null;j=f[k];if("<"==j){i=h("<div/>")[0];
n=f[k+1];if("'"==n||'"'==n){l="";for(q=2;f[k+q]!=n;)l+=f[k+q],q++;"H"==l?l=b.sJUIHeader:"F"==l&&(l=b.sJUIFooter);-1!=l.indexOf(".")?(n=l.split("."),i.id=n[0].substr(1,n[0].length-1),i.className=n[1]):"#"==l.charAt(0)?i.id=l.substr(1,l.length-1):i.className=l;k+=q}e.append(i);e=h(i)}else if(">"==j)e=e.parent();else if("l"==j&&d.bPaginate&&d.bLengthChange)g=qb(a);else if("f"==j&&d.bFilter)g=rb(a);else if("r"==j&&d.bProcessing)g=sb(a);else if("t"==j)g=tb(a);else if("i"==j&&d.bInfo)g=ub(a);else if("p"==
j&&d.bPaginate)g=vb(a);else if(0!==m.ext.feature.length){i=m.ext.feature;q=0;for(n=i.length;q<n;q++)if(j==i[q].cFeature){g=i[q].fnInit(a);break}}g&&(i=a.aanFeatures,i[j]||(i[j]=[]),i[j].push(g),e.append(g))}c.replaceWith(e);a.nHolding=null}function ea(a,b){var c=h(b).children("tr"),d,e,f,g,j,i,n,l,q,k;a.splice(0,a.length);f=0;for(i=c.length;f<i;f++)a.push([]);f=0;for(i=c.length;f<i;f++){d=c[f];for(e=d.firstChild;e;){if("TD"==e.nodeName.toUpperCase()||"TH"==e.nodeName.toUpperCase()){l=1*e.getAttribute("colspan");
q=1*e.getAttribute("rowspan");l=!l||0===l||1===l?1:l;q=!q||0===q||1===q?1:q;g=0;for(j=a[f];j[g];)g++;n=g;k=1===l?!0:!1;for(j=0;j<l;j++)for(g=0;g<q;g++)a[f+g][n+j]={cell:e,unique:k},a[f+g].nTr=d}e=e.nextSibling}}}function ta(a,b,c){var d=[];c||(c=a.aoHeader,b&&(c=[],ea(c,b)));for(var b=0,e=c.length;b<e;b++)for(var f=0,g=c[b].length;f<g;f++)if(c[b][f].unique&&(!d[f]||!a.bSortCellsTop))d[f]=c[b][f].cell;return d}function ua(a,b,c){s(a,"aoServerParams","serverParams",[b]);if(b&&h.isArray(b)){var d={},
e=/(.*?)\[\]$/;h.each(b,function(a,b){var c=b.name.match(e);c?(c=c[0],d[c]||(d[c]=[]),d[c].push(b.value)):d[b.name]=b.value});b=d}var f,g=a.ajax,j=a.oInstance,i=function(b){s(a,null,"xhr",[a,b,a.jqXHR]);c(b)};if(h.isPlainObject(g)&&g.data){f=g.data;var n=h.isFunction(f)?f(b,a):f,b=h.isFunction(f)&&n?n:h.extend(!0,b,n);delete g.data}n={data:b,success:function(b){var c=b.error||b.sError;c&&K(a,0,c);a.json=b;i(b)},dataType:"json",cache:!1,type:a.sServerMethod,error:function(b,c){var d=s(a,null,"xhr",
[a,null,a.jqXHR]);-1===h.inArray(!0,d)&&("parsererror"==c?K(a,0,"Invalid JSON response",1):4===b.readyState&&K(a,0,"Ajax error",7));C(a,!1)}};a.oAjaxData=b;s(a,null,"preXhr",[a,b]);a.fnServerData?a.fnServerData.call(j,a.sAjaxSource,h.map(b,function(a,b){return{name:b,value:a}}),i,a):a.sAjaxSource||"string"===typeof g?a.jqXHR=h.ajax(h.extend(n,{url:g||a.sAjaxSource})):h.isFunction(g)?a.jqXHR=g.call(j,b,i,a):(a.jqXHR=h.ajax(h.extend(n,g)),g.data=f)}function nb(a){return a.bAjaxDataGet?(a.iDraw++,C(a,
!0),ua(a,wb(a),function(b){xb(a,b)}),!1):!0}function wb(a){var b=a.aoColumns,c=b.length,d=a.oFeatures,e=a.oPreviousSearch,f=a.aoPreSearchCols,g,j=[],i,n,l,k=W(a);g=a._iDisplayStart;i=!1!==d.bPaginate?a._iDisplayLength:-1;var r=function(a,b){j.push({name:a,value:b})};r("sEcho",a.iDraw);r("iColumns",c);r("sColumns",D(b,"sName").join(","));r("iDisplayStart",g);r("iDisplayLength",i);var ra={draw:a.iDraw,columns:[],order:[],start:g,length:i,search:{value:e.sSearch,regex:e.bRegex}};for(g=0;g<c;g++)n=b[g],
l=f[g],i="function"==typeof n.mData?"function":n.mData,ra.columns.push({data:i,name:n.sName,searchable:n.bSearchable,orderable:n.bSortable,search:{value:l.sSearch,regex:l.bRegex}}),r("mDataProp_"+g,i),d.bFilter&&(r("sSearch_"+g,l.sSearch),r("bRegex_"+g,l.bRegex),r("bSearchable_"+g,n.bSearchable)),d.bSort&&r("bSortable_"+g,n.bSortable);d.bFilter&&(r("sSearch",e.sSearch),r("bRegex",e.bRegex));d.bSort&&(h.each(k,function(a,b){ra.order.push({column:b.col,dir:b.dir});r("iSortCol_"+a,b.col);r("sSortDir_"+
a,b.dir)}),r("iSortingCols",k.length));b=m.ext.legacy.ajax;return null===b?a.sAjaxSource?j:ra:b?j:ra}function xb(a,b){var c=va(a,b),d=b.sEcho!==k?b.sEcho:b.draw,e=b.iTotalRecords!==k?b.iTotalRecords:b.recordsTotal,f=b.iTotalDisplayRecords!==k?b.iTotalDisplayRecords:b.recordsFiltered;if(d){if(1*d<a.iDraw)return;a.iDraw=1*d}pa(a);a._iRecordsTotal=parseInt(e,10);a._iRecordsDisplay=parseInt(f,10);d=0;for(e=c.length;d<e;d++)N(a,c[d]);a.aiDisplay=a.aiDisplayMaster.slice();a.bAjaxDataGet=!1;O(a);a._bInitComplete||
wa(a,b);a.bAjaxDataGet=!0;C(a,!1)}function va(a,b){var c=h.isPlainObject(a.ajax)&&a.ajax.dataSrc!==k?a.ajax.dataSrc:a.sAjaxDataProp;return"data"===c?b.aaData||b[c]:""!==c?R(c)(b):b}function rb(a){var b=a.oClasses,c=a.sTableId,d=a.oLanguage,e=a.oPreviousSearch,f=a.aanFeatures,g='<input type="search" class="'+b.sFilterInput+'"/>',j=d.sSearch,j=j.match(/_INPUT_/)?j.replace("_INPUT_",g):j+g,b=h("<div/>",{id:!f.f?c+"_filter":null,"class":b.sFilter}).append(h("<label/>").append(j)),f=function(){var b=!this.value?
"":this.value;b!=e.sSearch&&(ga(a,{sSearch:b,bRegex:e.bRegex,bSmart:e.bSmart,bCaseInsensitive:e.bCaseInsensitive}),a._iDisplayStart=0,O(a))},g=null!==a.searchDelay?a.searchDelay:"ssp"===y(a)?400:0,i=h("input",b).val(e.sSearch).attr("placeholder",d.sSearchPlaceholder).on("keyup.DT search.DT input.DT paste.DT cut.DT",g?Qa(f,g):f).on("keypress.DT",function(a){if(13==a.keyCode)return!1}).attr("aria-controls",c);h(a.nTable).on("search.dt.DT",function(b,c){if(a===c)try{i[0]!==H.activeElement&&i.val(e.sSearch)}catch(d){}});
return b[0]}function ga(a,b,c){var d=a.oPreviousSearch,e=a.aoPreSearchCols,f=function(a){d.sSearch=a.sSearch;d.bRegex=a.bRegex;d.bSmart=a.bSmart;d.bCaseInsensitive=a.bCaseInsensitive};Ia(a);if("ssp"!=y(a)){yb(a,b.sSearch,c,b.bEscapeRegex!==k?!b.bEscapeRegex:b.bRegex,b.bSmart,b.bCaseInsensitive);f(b);for(b=0;b<e.length;b++)zb(a,e[b].sSearch,b,e[b].bEscapeRegex!==k?!e[b].bEscapeRegex:e[b].bRegex,e[b].bSmart,e[b].bCaseInsensitive);Ab(a)}else f(b);a.bFiltered=!0;s(a,null,"search",[a])}function Ab(a){for(var b=
m.ext.search,c=a.aiDisplay,d,e,f=0,g=b.length;f<g;f++){for(var j=[],i=0,n=c.length;i<n;i++)e=c[i],d=a.aoData[e],b[f](a,d._aFilterData,e,d._aData,i)&&j.push(e);c.length=0;h.merge(c,j)}}function zb(a,b,c,d,e,f){if(""!==b){for(var g=[],j=a.aiDisplay,d=Ra(b,d,e,f),e=0;e<j.length;e++)b=a.aoData[j[e]]._aFilterData[c],d.test(b)&&g.push(j[e]);a.aiDisplay=g}}function yb(a,b,c,d,e,f){var d=Ra(b,d,e,f),f=a.oPreviousSearch.sSearch,g=a.aiDisplayMaster,j,e=[];0!==m.ext.search.length&&(c=!0);j=Bb(a);if(0>=b.length)a.aiDisplay=
g.slice();else{if(j||c||f.length>b.length||0!==b.indexOf(f)||a.bSorted)a.aiDisplay=g.slice();b=a.aiDisplay;for(c=0;c<b.length;c++)d.test(a.aoData[b[c]]._sFilterRow)&&e.push(b[c]);a.aiDisplay=e}}function Ra(a,b,c,d){a=b?a:Sa(a);c&&(a="^(?=.*?"+h.map(a.match(/"[^"]+"|[^ ]+/g)||[""],function(a){if('"'===a.charAt(0))var b=a.match(/^"(.*)"$/),a=b?b[1]:a;return a.replace('"',"")}).join(")(?=.*?")+").*$");return RegExp(a,d?"i":"")}function Bb(a){var b=a.aoColumns,c,d,e,f,g,j,i,h,l=m.ext.type.search;c=!1;
d=0;for(f=a.aoData.length;d<f;d++)if(h=a.aoData[d],!h._aFilterData){j=[];e=0;for(g=b.length;e<g;e++)c=b[e],c.bSearchable?(i=B(a,d,e,"filter"),l[c.sType]&&(i=l[c.sType](i)),null===i&&(i=""),"string"!==typeof i&&i.toString&&(i=i.toString())):i="",i.indexOf&&-1!==i.indexOf("&")&&(xa.innerHTML=i,i=$b?xa.textContent:xa.innerText),i.replace&&(i=i.replace(/[\r\n]/g,"")),j.push(i);h._aFilterData=j;h._sFilterRow=j.join("  ");c=!0}return c}function Cb(a){return{search:a.sSearch,smart:a.bSmart,regex:a.bRegex,
caseInsensitive:a.bCaseInsensitive}}function Db(a){return{sSearch:a.search,bSmart:a.smart,bRegex:a.regex,bCaseInsensitive:a.caseInsensitive}}function ub(a){var b=a.sTableId,c=a.aanFeatures.i,d=h("<div/>",{"class":a.oClasses.sInfo,id:!c?b+"_info":null});c||(a.aoDrawCallback.push({fn:Eb,sName:"information"}),d.attr("role","status").attr("aria-live","polite"),h(a.nTable).attr("aria-describedby",b+"_info"));return d[0]}function Eb(a){var b=a.aanFeatures.i;if(0!==b.length){var c=a.oLanguage,d=a._iDisplayStart+
1,e=a.fnDisplayEnd(),f=a.fnRecordsTotal(),g=a.fnRecordsDisplay(),j=g?c.sInfo:c.sInfoEmpty;g!==f&&(j+=" "+c.sInfoFiltered);j+=c.sInfoPostFix;j=Fb(a,j);c=c.fnInfoCallback;null!==c&&(j=c.call(a.oInstance,a,d,e,f,g,j));h(b).html(j)}}function Fb(a,b){var c=a.fnFormatNumber,d=a._iDisplayStart+1,e=a._iDisplayLength,f=a.fnRecordsDisplay(),g=-1===e;return b.replace(/_START_/g,c.call(a,d)).replace(/_END_/g,c.call(a,a.fnDisplayEnd())).replace(/_MAX_/g,c.call(a,a.fnRecordsTotal())).replace(/_TOTAL_/g,c.call(a,
f)).replace(/_PAGE_/g,c.call(a,g?1:Math.ceil(d/e))).replace(/_PAGES_/g,c.call(a,g?1:Math.ceil(f/e)))}function ha(a){var b,c,d=a.iInitDisplayStart,e=a.aoColumns,f;c=a.oFeatures;var g=a.bDeferLoading;if(a.bInitialised){pb(a);mb(a);fa(a,a.aoHeader);fa(a,a.aoFooter);C(a,!0);c.bAutoWidth&&Ha(a);b=0;for(c=e.length;b<c;b++)f=e[b],f.sWidth&&(f.nTh.style.width=v(f.sWidth));s(a,null,"preInit",[a]);T(a);e=y(a);if("ssp"!=e||g)"ajax"==e?ua(a,[],function(c){var f=va(a,c);for(b=0;b<f.length;b++)N(a,f[b]);a.iInitDisplayStart=
d;T(a);C(a,!1);wa(a,c)},a):(C(a,!1),wa(a))}else setTimeout(function(){ha(a)},200)}function wa(a,b){a._bInitComplete=!0;(b||a.oInit.aaData)&&Z(a);s(a,null,"plugin-init",[a,b]);s(a,"aoInitComplete","init",[a,b])}function Ta(a,b){var c=parseInt(b,10);a._iDisplayLength=c;Ua(a);s(a,null,"length",[a,c])}function qb(a){for(var b=a.oClasses,c=a.sTableId,d=a.aLengthMenu,e=h.isArray(d[0]),f=e?d[0]:d,d=e?d[1]:d,e=h("<select/>",{name:c+"_length","aria-controls":c,"class":b.sLengthSelect}),g=0,j=f.length;g<j;g++)e[0][g]=
new Option(d[g],f[g]);var i=h("<div><label/></div>").addClass(b.sLength);a.aanFeatures.l||(i[0].id=c+"_length");i.children().append(a.oLanguage.sLengthMenu.replace("_MENU_",e[0].outerHTML));h("select",i).val(a._iDisplayLength).on("change.DT",function(){Ta(a,h(this).val());O(a)});h(a.nTable).on("length.dt.DT",function(b,c,d){a===c&&h("select",i).val(d)});return i[0]}function vb(a){var b=a.sPaginationType,c=m.ext.pager[b],d="function"===typeof c,e=function(a){O(a)},b=h("<div/>").addClass(a.oClasses.sPaging+
b)[0],f=a.aanFeatures;d||c.fnInit(a,b,e);f.p||(b.id=a.sTableId+"_paginate",a.aoDrawCallback.push({fn:function(a){if(d){var b=a._iDisplayStart,i=a._iDisplayLength,h=a.fnRecordsDisplay(),l=-1===i,b=l?0:Math.ceil(b/i),i=l?1:Math.ceil(h/i),h=c(b,i),k,l=0;for(k=f.p.length;l<k;l++)Pa(a,"pageButton")(a,f.p[l],l,h,b,i)}else c.fnUpdate(a,e)},sName:"pagination"}));return b}function Va(a,b,c){var d=a._iDisplayStart,e=a._iDisplayLength,f=a.fnRecordsDisplay();0===f||-1===e?d=0:"number"===typeof b?(d=b*e,d>f&&
(d=0)):"first"==b?d=0:"previous"==b?(d=0<=e?d-e:0,0>d&&(d=0)):"next"==b?d+e<f&&(d+=e):"last"==b?d=Math.floor((f-1)/e)*e:K(a,0,"Unknown paging action: "+b,5);b=a._iDisplayStart!==d;a._iDisplayStart=d;b&&(s(a,null,"page",[a]),c&&O(a));return b}function sb(a){return h("<div/>",{id:!a.aanFeatures.r?a.sTableId+"_processing":null,"class":a.oClasses.sProcessing}).html(a.oLanguage.sProcessing).insertBefore(a.nTable)[0]}function C(a,b){a.oFeatures.bProcessing&&h(a.aanFeatures.r).css("display",b?"block":"none");
s(a,null,"processing",[a,b])}function tb(a){var b=h(a.nTable);b.attr("role","grid");var c=a.oScroll;if(""===c.sX&&""===c.sY)return a.nTable;var d=c.sX,e=c.sY,f=a.oClasses,g=b.children("caption"),j=g.length?g[0]._captionSide:null,i=h(b[0].cloneNode(!1)),n=h(b[0].cloneNode(!1)),l=b.children("tfoot");l.length||(l=null);i=h("<div/>",{"class":f.sScrollWrapper}).append(h("<div/>",{"class":f.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:d?!d?null:v(d):"100%"}).append(h("<div/>",
{"class":f.sScrollHeadInner}).css({"box-sizing":"content-box",width:c.sXInner||"100%"}).append(i.removeAttr("id").css("margin-left",0).append("top"===j?g:null).append(b.children("thead"))))).append(h("<div/>",{"class":f.sScrollBody}).css({position:"relative",overflow:"auto",width:!d?null:v(d)}).append(b));l&&i.append(h("<div/>",{"class":f.sScrollFoot}).css({overflow:"hidden",border:0,width:d?!d?null:v(d):"100%"}).append(h("<div/>",{"class":f.sScrollFootInner}).append(n.removeAttr("id").css("margin-left",
0).append("bottom"===j?g:null).append(b.children("tfoot")))));var b=i.children(),k=b[0],f=b[1],r=l?b[2]:null;if(d)h(f).on("scroll.DT",function(){var a=this.scrollLeft;k.scrollLeft=a;l&&(r.scrollLeft=a)});h(f).css(e&&c.bCollapse?"max-height":"height",e);a.nScrollHead=k;a.nScrollBody=f;a.nScrollFoot=r;a.aoDrawCallback.push({fn:ma,sName:"scrolling"});return i[0]}function ma(a){var b=a.oScroll,c=b.sX,d=b.sXInner,e=b.sY,b=b.iBarWidth,f=h(a.nScrollHead),g=f[0].style,j=f.children("div"),i=j[0].style,n=j.children("table"),
j=a.nScrollBody,l=h(j),q=j.style,r=h(a.nScrollFoot).children("div"),m=r.children("table"),p=h(a.nTHead),o=h(a.nTable),t=o[0],s=t.style,u=a.nTFoot?h(a.nTFoot):null,x=a.oBrowser,U=x.bScrollOversize,ac=D(a.aoColumns,"nTh"),P,L,Q,w,Wa=[],y=[],z=[],A=[],B,C=function(a){a=a.style;a.paddingTop="0";a.paddingBottom="0";a.borderTopWidth="0";a.borderBottomWidth="0";a.height=0};L=j.scrollHeight>j.clientHeight;if(a.scrollBarVis!==L&&a.scrollBarVis!==k)a.scrollBarVis=L,Z(a);else{a.scrollBarVis=L;o.children("thead, tfoot").remove();
u&&(Q=u.clone().prependTo(o),P=u.find("tr"),Q=Q.find("tr"));w=p.clone().prependTo(o);p=p.find("tr");L=w.find("tr");w.find("th, td").removeAttr("tabindex");c||(q.width="100%",f[0].style.width="100%");h.each(ta(a,w),function(b,c){B=$(a,b);c.style.width=a.aoColumns[B].sWidth});u&&I(function(a){a.style.width=""},Q);f=o.outerWidth();if(""===c){s.width="100%";if(U&&(o.find("tbody").height()>j.offsetHeight||"scroll"==l.css("overflow-y")))s.width=v(o.outerWidth()-b);f=o.outerWidth()}else""!==d&&(s.width=
v(d),f=o.outerWidth());I(C,L);I(function(a){z.push(a.innerHTML);Wa.push(v(h(a).css("width")))},L);I(function(a,b){if(h.inArray(a,ac)!==-1)a.style.width=Wa[b]},p);h(L).height(0);u&&(I(C,Q),I(function(a){A.push(a.innerHTML);y.push(v(h(a).css("width")))},Q),I(function(a,b){a.style.width=y[b]},P),h(Q).height(0));I(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+z[b]+"</div>";a.style.width=Wa[b]},L);u&&I(function(a,b){a.innerHTML='<div class="dataTables_sizing" style="height:0;overflow:hidden;">'+
A[b]+"</div>";a.style.width=y[b]},Q);if(o.outerWidth()<f){P=j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")?f+b:f;if(U&&(j.scrollHeight>j.offsetHeight||"scroll"==l.css("overflow-y")))s.width=v(P-b);(""===c||""!==d)&&K(a,1,"Possible column misalignment",6)}else P="100%";q.width=v(P);g.width=v(P);u&&(a.nScrollFoot.style.width=v(P));!e&&U&&(q.height=v(t.offsetHeight+b));c=o.outerWidth();n[0].style.width=v(c);i.width=v(c);d=o.height()>j.clientHeight||"scroll"==l.css("overflow-y");e="padding"+
(x.bScrollbarLeft?"Left":"Right");i[e]=d?b+"px":"0px";u&&(m[0].style.width=v(c),r[0].style.width=v(c),r[0].style[e]=d?b+"px":"0px");o.children("colgroup").insertBefore(o.children("thead"));l.scroll();if((a.bSorted||a.bFiltered)&&!a._drawHold)j.scrollTop=0}}function I(a,b,c){for(var d=0,e=0,f=b.length,g,j;e<f;){g=b[e].firstChild;for(j=c?c[e].firstChild:null;g;)1===g.nodeType&&(c?a(g,j,d):a(g,d),d++),g=g.nextSibling,j=c?j.nextSibling:null;e++}}function Ha(a){var b=a.nTable,c=a.aoColumns,d=a.oScroll,
e=d.sY,f=d.sX,g=d.sXInner,j=c.length,i=na(a,"bVisible"),n=h("th",a.nTHead),l=b.getAttribute("width"),k=b.parentNode,r=!1,m,p,o=a.oBrowser,d=o.bScrollOversize;(m=b.style.width)&&-1!==m.indexOf("%")&&(l=m);for(m=0;m<i.length;m++)p=c[i[m]],null!==p.sWidth&&(p.sWidth=Gb(p.sWidthOrig,k),r=!0);if(d||!r&&!f&&!e&&j==ba(a)&&j==n.length)for(m=0;m<j;m++)i=$(a,m),null!==i&&(c[i].sWidth=v(n.eq(m).width()));else{j=h(b).clone().css("visibility","hidden").removeAttr("id");j.find("tbody tr").remove();var t=h("<tr/>").appendTo(j.find("tbody"));
j.find("thead, tfoot").remove();j.append(h(a.nTHead).clone()).append(h(a.nTFoot).clone());j.find("tfoot th, tfoot td").css("width","");n=ta(a,j.find("thead")[0]);for(m=0;m<i.length;m++)p=c[i[m]],n[m].style.width=null!==p.sWidthOrig&&""!==p.sWidthOrig?v(p.sWidthOrig):"",p.sWidthOrig&&f&&h(n[m]).append(h("<div/>").css({width:p.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(a.aoData.length)for(m=0;m<i.length;m++)r=i[m],p=c[r],h(Hb(a,r)).clone(!1).append(p.sContentPadding).appendTo(t);h("[name]",
j).removeAttr("name");p=h("<div/>").css(f||e?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(j).appendTo(k);f&&g?j.width(g):f?(j.css("width","auto"),j.removeAttr("width"),j.width()<k.clientWidth&&l&&j.width(k.clientWidth)):e?j.width(k.clientWidth):l&&j.width(l);for(m=e=0;m<i.length;m++)k=h(n[m]),g=k.outerWidth()-k.width(),k=o.bBounding?Math.ceil(n[m].getBoundingClientRect().width):k.outerWidth(),e+=k,c[i[m]].sWidth=v(k-g);b.style.width=v(e);p.remove()}l&&(b.style.width=
v(l));if((l||f)&&!a._reszEvt)b=function(){h(E).on("resize.DT-"+a.sInstance,Qa(function(){Z(a)}))},d?setTimeout(b,1E3):b(),a._reszEvt=!0}function Gb(a,b){if(!a)return 0;var c=h("<div/>").css("width",v(a)).appendTo(b||H.body),d=c[0].offsetWidth;c.remove();return d}function Hb(a,b){var c=Ib(a,b);if(0>c)return null;var d=a.aoData[c];return!d.nTr?h("<td/>").html(B(a,c,b,"display"))[0]:d.anCells[b]}function Ib(a,b){for(var c,d=-1,e=-1,f=0,g=a.aoData.length;f<g;f++)c=B(a,f,b,"display")+"",c=c.replace(bc,
""),c=c.replace(/&nbsp;/g," "),c.length>d&&(d=c.length,e=f);return e}function v(a){return null===a?"0px":"number"==typeof a?0>a?"0px":a+"px":a.match(/\d$/)?a+"px":a}function W(a){var b,c,d=[],e=a.aoColumns,f,g,j,i;b=a.aaSortingFixed;c=h.isPlainObject(b);var n=[];f=function(a){a.length&&!h.isArray(a[0])?n.push(a):h.merge(n,a)};h.isArray(b)&&f(b);c&&b.pre&&f(b.pre);f(a.aaSorting);c&&b.post&&f(b.post);for(a=0;a<n.length;a++){i=n[a][0];f=e[i].aDataSort;b=0;for(c=f.length;b<c;b++)g=f[b],j=e[g].sType||
"string",n[a]._idx===k&&(n[a]._idx=h.inArray(n[a][1],e[g].asSorting)),d.push({src:i,col:g,dir:n[a][1],index:n[a]._idx,type:j,formatter:m.ext.type.order[j+"-pre"]})}return d}function ob(a){var b,c,d=[],e=m.ext.type.order,f=a.aoData,g=0,j,i=a.aiDisplayMaster,h;Ia(a);h=W(a);b=0;for(c=h.length;b<c;b++)j=h[b],j.formatter&&g++,Jb(a,j.col);if("ssp"!=y(a)&&0!==h.length){b=0;for(c=i.length;b<c;b++)d[i[b]]=b;g===h.length?i.sort(function(a,b){var c,e,g,j,i=h.length,k=f[a]._aSortData,m=f[b]._aSortData;for(g=
0;g<i;g++)if(j=h[g],c=k[j.col],e=m[j.col],c=c<e?-1:c>e?1:0,0!==c)return"asc"===j.dir?c:-c;c=d[a];e=d[b];return c<e?-1:c>e?1:0}):i.sort(function(a,b){var c,g,j,i,k=h.length,m=f[a]._aSortData,p=f[b]._aSortData;for(j=0;j<k;j++)if(i=h[j],c=m[i.col],g=p[i.col],i=e[i.type+"-"+i.dir]||e["string-"+i.dir],c=i(c,g),0!==c)return c;c=d[a];g=d[b];return c<g?-1:c>g?1:0})}a.bSorted=!0}function Kb(a){for(var b,c,d=a.aoColumns,e=W(a),a=a.oLanguage.oAria,f=0,g=d.length;f<g;f++){c=d[f];var j=c.asSorting;b=c.sTitle.replace(/<.*?>/g,
"");var i=c.nTh;i.removeAttribute("aria-sort");c.bSortable&&(0<e.length&&e[0].col==f?(i.setAttribute("aria-sort","asc"==e[0].dir?"ascending":"descending"),c=j[e[0].index+1]||j[0]):c=j[0],b+="asc"===c?a.sSortAscending:a.sSortDescending);i.setAttribute("aria-label",b)}}function Xa(a,b,c,d){var e=a.aaSorting,f=a.aoColumns[b].asSorting,g=function(a,b){var c=a._idx;c===k&&(c=h.inArray(a[1],f));return c+1<f.length?c+1:b?null:0};"number"===typeof e[0]&&(e=a.aaSorting=[e]);c&&a.oFeatures.bSortMulti?(c=h.inArray(b,
D(e,"0")),-1!==c?(b=g(e[c],!0),null===b&&1===e.length&&(b=0),null===b?e.splice(c,1):(e[c][1]=f[b],e[c]._idx=b)):(e.push([b,f[0],0]),e[e.length-1]._idx=0)):e.length&&e[0][0]==b?(b=g(e[0]),e.length=1,e[0][1]=f[b],e[0]._idx=b):(e.length=0,e.push([b,f[0]]),e[0]._idx=0);T(a);"function"==typeof d&&d(a)}function Oa(a,b,c,d){var e=a.aoColumns[c];Ya(b,{},function(b){!1!==e.bSortable&&(a.oFeatures.bProcessing?(C(a,!0),setTimeout(function(){Xa(a,c,b.shiftKey,d);"ssp"!==y(a)&&C(a,!1)},0)):Xa(a,c,b.shiftKey,d))})}
function ya(a){var b=a.aLastSort,c=a.oClasses.sSortColumn,d=W(a),e=a.oFeatures,f,g;if(e.bSort&&e.bSortClasses){e=0;for(f=b.length;e<f;e++)g=b[e].src,h(D(a.aoData,"anCells",g)).removeClass(c+(2>e?e+1:3));e=0;for(f=d.length;e<f;e++)g=d[e].src,h(D(a.aoData,"anCells",g)).addClass(c+(2>e?e+1:3))}a.aLastSort=d}function Jb(a,b){var c=a.aoColumns[b],d=m.ext.order[c.sSortDataType],e;d&&(e=d.call(a.oInstance,a,b,aa(a,b)));for(var f,g=m.ext.type.order[c.sType+"-pre"],j=0,i=a.aoData.length;j<i;j++)if(c=a.aoData[j],
c._aSortData||(c._aSortData=[]),!c._aSortData[b]||d)f=d?e[j]:B(a,j,b,"sort"),c._aSortData[b]=g?g(f):f}function za(a){if(a.oFeatures.bStateSave&&!a.bDestroying){var b={time:+new Date,start:a._iDisplayStart,length:a._iDisplayLength,order:h.extend(!0,[],a.aaSorting),search:Cb(a.oPreviousSearch),columns:h.map(a.aoColumns,function(b,d){return{visible:b.bVisible,search:Cb(a.aoPreSearchCols[d])}})};s(a,"aoStateSaveParams","stateSaveParams",[a,b]);a.oSavedState=b;a.fnStateSaveCallback.call(a.oInstance,a,
b)}}function Lb(a,b,c){var d,e,f=a.aoColumns,b=function(b){if(b&&b.time){var g=s(a,"aoStateLoadParams","stateLoadParams",[a,b]);if(-1===h.inArray(!1,g)&&(g=a.iStateDuration,!(0<g&&b.time<+new Date-1E3*g)&&!(b.columns&&f.length!==b.columns.length))){a.oLoadedState=h.extend(!0,{},b);b.start!==k&&(a._iDisplayStart=b.start,a.iInitDisplayStart=b.start);b.length!==k&&(a._iDisplayLength=b.length);b.order!==k&&(a.aaSorting=[],h.each(b.order,function(b,c){a.aaSorting.push(c[0]>=f.length?[0,c[1]]:c)}));b.search!==
k&&h.extend(a.oPreviousSearch,Db(b.search));if(b.columns){d=0;for(e=b.columns.length;d<e;d++)g=b.columns[d],g.visible!==k&&(f[d].bVisible=g.visible),g.search!==k&&h.extend(a.aoPreSearchCols[d],Db(g.search))}s(a,"aoStateLoaded","stateLoaded",[a,b])}}c()};if(a.oFeatures.bStateSave){var g=a.fnStateLoadCallback.call(a.oInstance,a,b);g!==k&&b(g)}else c()}function Aa(a){var b=m.settings,a=h.inArray(a,D(b,"nTable"));return-1!==a?b[a]:null}function K(a,b,c,d){c="DataTables warning: "+(a?"table id="+a.sTableId+
" - ":"")+c;d&&(c+=". For more information about this error, please see http://datatables.net/tn/"+d);if(b)E.console&&console.log&&console.log(c);else if(b=m.ext,b=b.sErrMode||b.errMode,a&&s(a,null,"error",[a,d,c]),"alert"==b)alert(c);else{if("throw"==b)throw Error(c);"function"==typeof b&&b(a,d,c)}}function F(a,b,c,d){h.isArray(c)?h.each(c,function(c,d){h.isArray(d)?F(a,b,d[0],d[1]):F(a,b,d)}):(d===k&&(d=c),b[c]!==k&&(a[d]=b[c]))}function Mb(a,b,c){var d,e;for(e in b)b.hasOwnProperty(e)&&(d=b[e],
h.isPlainObject(d)?(h.isPlainObject(a[e])||(a[e]={}),h.extend(!0,a[e],d)):a[e]=c&&"data"!==e&&"aaData"!==e&&h.isArray(d)?d.slice():d);return a}function Ya(a,b,c){h(a).on("click.DT",b,function(b){a.blur();c(b)}).on("keypress.DT",b,function(a){13===a.which&&(a.preventDefault(),c(a))}).on("selectstart.DT",function(){return!1})}function z(a,b,c,d){c&&a[b].push({fn:c,sName:d})}function s(a,b,c,d){var e=[];b&&(e=h.map(a[b].slice().reverse(),function(b){return b.fn.apply(a.oInstance,d)}));null!==c&&(b=h.Event(c+
".dt"),h(a.nTable).trigger(b,d),e.push(b.result));return e}function Ua(a){var b=a._iDisplayStart,c=a.fnDisplayEnd(),d=a._iDisplayLength;b>=c&&(b=c-d);b-=b%d;if(-1===d||0>b)b=0;a._iDisplayStart=b}function Pa(a,b){var c=a.renderer,d=m.ext.renderer[b];return h.isPlainObject(c)&&c[b]?d[c[b]]||d._:"string"===typeof c?d[c]||d._:d._}function y(a){return a.oFeatures.bServerSide?"ssp":a.ajax||a.sAjaxSource?"ajax":"dom"}function ia(a,b){var c=[],c=Nb.numbers_length,d=Math.floor(c/2);b<=c?c=X(0,b):a<=d?(c=X(0,
c-2),c.push("ellipsis"),c.push(b-1)):(a>=b-1-d?c=X(b-(c-2),b):(c=X(a-d+2,a+d-1),c.push("ellipsis"),c.push(b-1)),c.splice(0,0,"ellipsis"),c.splice(0,0,0));c.DT_el="span";return c}function fb(a){h.each({num:function(b){return Ba(b,a)},"num-fmt":function(b){return Ba(b,a,Za)},"html-num":function(b){return Ba(b,a,Ca)},"html-num-fmt":function(b){return Ba(b,a,Ca,Za)}},function(b,c){x.type.order[b+a+"-pre"]=c;b.match(/^html\-/)&&(x.type.search[b+a]=x.type.search.html)})}function Ob(a){return function(){var b=
[Aa(this[m.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return m.ext.internal[a].apply(this,b)}}var m=function(a){this.$=function(a,b){return this.api(!0).$(a,b)};this._=function(a,b){return this.api(!0).rows(a,b).data()};this.api=function(a){return a?new t(Aa(this[x.iApiIndex])):new t(this)};this.fnAddData=function(a,b){var c=this.api(!0),d=h.isArray(a)&&(h.isArray(a[0])||h.isPlainObject(a[0]))?c.rows.add(a):c.row.add(a);(b===k||b)&&c.draw();return d.flatten().toArray()};this.fnAdjustColumnSizing=
function(a){var b=this.api(!0).columns.adjust(),c=b.settings()[0],d=c.oScroll;a===k||a?b.draw(!1):(""!==d.sX||""!==d.sY)&&ma(c)};this.fnClearTable=function(a){var b=this.api(!0).clear();(a===k||a)&&b.draw()};this.fnClose=function(a){this.api(!0).row(a).child.hide()};this.fnDeleteRow=function(a,b,c){var d=this.api(!0),a=d.rows(a),e=a.settings()[0],h=e.aoData[a[0][0]];a.remove();b&&b.call(this,e,h);(c===k||c)&&d.draw();return h};this.fnDestroy=function(a){this.api(!0).destroy(a)};this.fnDraw=function(a){this.api(!0).draw(a)};
this.fnFilter=function(a,b,c,d,e,h){e=this.api(!0);null===b||b===k?e.search(a,c,d,h):e.column(b).search(a,c,d,h);e.draw()};this.fnGetData=function(a,b){var c=this.api(!0);if(a!==k){var d=a.nodeName?a.nodeName.toLowerCase():"";return b!==k||"td"==d||"th"==d?c.cell(a,b).data():c.row(a).data()||null}return c.data().toArray()};this.fnGetNodes=function(a){var b=this.api(!0);return a!==k?b.row(a).node():b.rows().nodes().flatten().toArray()};this.fnGetPosition=function(a){var b=this.api(!0),c=a.nodeName.toUpperCase();
return"TR"==c?b.row(a).index():"TD"==c||"TH"==c?(a=b.cell(a).index(),[a.row,a.columnVisible,a.column]):null};this.fnIsOpen=function(a){return this.api(!0).row(a).child.isShown()};this.fnOpen=function(a,b,c){return this.api(!0).row(a).child(b,c).show().child()[0]};this.fnPageChange=function(a,b){var c=this.api(!0).page(a);(b===k||b)&&c.draw(!1)};this.fnSetColumnVis=function(a,b,c){a=this.api(!0).column(a).visible(b);(c===k||c)&&a.columns.adjust().draw()};this.fnSettings=function(){return Aa(this[x.iApiIndex])};
this.fnSort=function(a){this.api(!0).order(a).draw()};this.fnSortListener=function(a,b,c){this.api(!0).order.listener(a,b,c)};this.fnUpdate=function(a,b,c,d,e){var h=this.api(!0);c===k||null===c?h.row(b).data(a):h.cell(b,c).data(a);(e===k||e)&&h.columns.adjust();(d===k||d)&&h.draw();return 0};this.fnVersionCheck=x.fnVersionCheck;var b=this,c=a===k,d=this.length;c&&(a={});this.oApi=this.internal=x.internal;for(var e in m.ext.internal)e&&(this[e]=Ob(e));this.each(function(){var e={},g=1<d?Mb(e,a,!0):
a,j=0,i,e=this.getAttribute("id"),n=!1,l=m.defaults,q=h(this);if("table"!=this.nodeName.toLowerCase())K(null,0,"Non-table node initialisation ("+this.nodeName+")",2);else{gb(l);hb(l.column);J(l,l,!0);J(l.column,l.column,!0);J(l,h.extend(g,q.data()));var r=m.settings,j=0;for(i=r.length;j<i;j++){var p=r[j];if(p.nTable==this||p.nTHead.parentNode==this||p.nTFoot&&p.nTFoot.parentNode==this){var t=g.bRetrieve!==k?g.bRetrieve:l.bRetrieve;if(c||t)return p.oInstance;if(g.bDestroy!==k?g.bDestroy:l.bDestroy){p.oInstance.fnDestroy();
break}else{K(p,0,"Cannot reinitialise DataTable",3);return}}if(p.sTableId==this.id){r.splice(j,1);break}}if(null===e||""===e)this.id=e="DataTables_Table_"+m.ext._unique++;var o=h.extend(!0,{},m.models.oSettings,{sDestroyWidth:q[0].style.width,sInstance:e,sTableId:e});o.nTable=this;o.oApi=b.internal;o.oInit=g;r.push(o);o.oInstance=1===b.length?b:q.dataTable();gb(g);g.oLanguage&&Fa(g.oLanguage);g.aLengthMenu&&!g.iDisplayLength&&(g.iDisplayLength=h.isArray(g.aLengthMenu[0])?g.aLengthMenu[0][0]:g.aLengthMenu[0]);
g=Mb(h.extend(!0,{},l),g);F(o.oFeatures,g,"bPaginate bLengthChange bFilter bSort bSortMulti bInfo bProcessing bAutoWidth bSortClasses bServerSide bDeferRender".split(" "));F(o,g,["asStripeClasses","ajax","fnServerData","fnFormatNumber","sServerMethod","aaSorting","aaSortingFixed","aLengthMenu","sPaginationType","sAjaxSource","sAjaxDataProp","iStateDuration","sDom","bSortCellsTop","iTabIndex","fnStateLoadCallback","fnStateSaveCallback","renderer","searchDelay","rowId",["iCookieDuration","iStateDuration"],
["oSearch","oPreviousSearch"],["aoSearchCols","aoPreSearchCols"],["iDisplayLength","_iDisplayLength"],["bJQueryUI","bJUI"]]);F(o.oScroll,g,[["sScrollX","sX"],["sScrollXInner","sXInner"],["sScrollY","sY"],["bScrollCollapse","bCollapse"]]);F(o.oLanguage,g,"fnInfoCallback");z(o,"aoDrawCallback",g.fnDrawCallback,"user");z(o,"aoServerParams",g.fnServerParams,"user");z(o,"aoStateSaveParams",g.fnStateSaveParams,"user");z(o,"aoStateLoadParams",g.fnStateLoadParams,"user");z(o,"aoStateLoaded",g.fnStateLoaded,
"user");z(o,"aoRowCallback",g.fnRowCallback,"user");z(o,"aoRowCreatedCallback",g.fnCreatedRow,"user");z(o,"aoHeaderCallback",g.fnHeaderCallback,"user");z(o,"aoFooterCallback",g.fnFooterCallback,"user");z(o,"aoInitComplete",g.fnInitComplete,"user");z(o,"aoPreDrawCallback",g.fnPreDrawCallback,"user");o.rowIdFn=R(g.rowId);ib(o);var u=o.oClasses;g.bJQueryUI?(h.extend(u,m.ext.oJUIClasses,g.oClasses),g.sDom===l.sDom&&"lfrtip"===l.sDom&&(o.sDom='<"H"lfr>t<"F"ip>'),o.renderer)?h.isPlainObject(o.renderer)&&
!o.renderer.header&&(o.renderer.header="jqueryui"):o.renderer="jqueryui":h.extend(u,m.ext.classes,g.oClasses);q.addClass(u.sTable);o.iInitDisplayStart===k&&(o.iInitDisplayStart=g.iDisplayStart,o._iDisplayStart=g.iDisplayStart);null!==g.iDeferLoading&&(o.bDeferLoading=!0,e=h.isArray(g.iDeferLoading),o._iRecordsDisplay=e?g.iDeferLoading[0]:g.iDeferLoading,o._iRecordsTotal=e?g.iDeferLoading[1]:g.iDeferLoading);var v=o.oLanguage;h.extend(!0,v,g.oLanguage);v.sUrl&&(h.ajax({dataType:"json",url:v.sUrl,success:function(a){Fa(a);
J(l.oLanguage,a);h.extend(true,v,a);ha(o)},error:function(){ha(o)}}),n=!0);null===g.asStripeClasses&&(o.asStripeClasses=[u.sStripeOdd,u.sStripeEven]);var e=o.asStripeClasses,x=q.children("tbody").find("tr").eq(0);-1!==h.inArray(!0,h.map(e,function(a){return x.hasClass(a)}))&&(h("tbody tr",this).removeClass(e.join(" ")),o.asDestroyStripes=e.slice());e=[];r=this.getElementsByTagName("thead");0!==r.length&&(ea(o.aoHeader,r[0]),e=ta(o));if(null===g.aoColumns){r=[];j=0;for(i=e.length;j<i;j++)r.push(null)}else r=
g.aoColumns;j=0;for(i=r.length;j<i;j++)Ga(o,e?e[j]:null);kb(o,g.aoColumnDefs,r,function(a,b){la(o,a,b)});if(x.length){var w=function(a,b){return a.getAttribute("data-"+b)!==null?b:null};h(x[0]).children("th, td").each(function(a,b){var c=o.aoColumns[a];if(c.mData===a){var d=w(b,"sort")||w(b,"order"),e=w(b,"filter")||w(b,"search");if(d!==null||e!==null){c.mData={_:a+".display",sort:d!==null?a+".@data-"+d:k,type:d!==null?a+".@data-"+d:k,filter:e!==null?a+".@data-"+e:k};la(o,a)}}})}var U=o.oFeatures,
e=function(){if(g.aaSorting===k){var a=o.aaSorting;j=0;for(i=a.length;j<i;j++)a[j][1]=o.aoColumns[j].asSorting[0]}ya(o);U.bSort&&z(o,"aoDrawCallback",function(){if(o.bSorted){var a=W(o),b={};h.each(a,function(a,c){b[c.src]=c.dir});s(o,null,"order",[o,a,b]);Kb(o)}});z(o,"aoDrawCallback",function(){(o.bSorted||y(o)==="ssp"||U.bDeferRender)&&ya(o)},"sc");var a=q.children("caption").each(function(){this._captionSide=h(this).css("caption-side")}),b=q.children("thead");b.length===0&&(b=h("<thead/>").appendTo(q));
o.nTHead=b[0];b=q.children("tbody");b.length===0&&(b=h("<tbody/>").appendTo(q));o.nTBody=b[0];b=q.children("tfoot");if(b.length===0&&a.length>0&&(o.oScroll.sX!==""||o.oScroll.sY!==""))b=h("<tfoot/>").appendTo(q);if(b.length===0||b.children().length===0)q.addClass(u.sNoFooter);else if(b.length>0){o.nTFoot=b[0];ea(o.aoFooter,o.nTFoot)}if(g.aaData)for(j=0;j<g.aaData.length;j++)N(o,g.aaData[j]);else(o.bDeferLoading||y(o)=="dom")&&oa(o,h(o.nTBody).children("tr"));o.aiDisplay=o.aiDisplayMaster.slice();
o.bInitialised=true;n===false&&ha(o)};g.bStateSave?(U.bStateSave=!0,z(o,"aoDrawCallback",za,"state_save"),Lb(o,g,e)):e()}});b=null;return this},x,t,p,u,$a={},Pb=/[\r\n]/g,Ca=/<.*?>/g,cc=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,dc=RegExp("(\\/|\\.|\\*|\\+|\\?|\\||\\(|\\)|\\[|\\]|\\{|\\}|\\\\|\\$|\\^|\\-)","g"),Za=/[',$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfk]/gi,M=function(a){return!a||!0===a||"-"===a?!0:!1},Qb=function(a){var b=parseInt(a,10);return!isNaN(b)&&
isFinite(a)?b:null},Rb=function(a,b){$a[b]||($a[b]=RegExp(Sa(b),"g"));return"string"===typeof a&&"."!==b?a.replace(/\./g,"").replace($a[b],"."):a},ab=function(a,b,c){var d="string"===typeof a;if(M(a))return!0;b&&d&&(a=Rb(a,b));c&&d&&(a=a.replace(Za,""));return!isNaN(parseFloat(a))&&isFinite(a)},Sb=function(a,b,c){return M(a)?!0:!(M(a)||"string"===typeof a)?null:ab(a.replace(Ca,""),b,c)?!0:null},D=function(a,b,c){var d=[],e=0,f=a.length;if(c!==k)for(;e<f;e++)a[e]&&a[e][b]&&d.push(a[e][b][c]);else for(;e<
f;e++)a[e]&&d.push(a[e][b]);return d},ja=function(a,b,c,d){var e=[],f=0,g=b.length;if(d!==k)for(;f<g;f++)a[b[f]][c]&&e.push(a[b[f]][c][d]);else for(;f<g;f++)e.push(a[b[f]][c]);return e},X=function(a,b){var c=[],d;b===k?(b=0,d=a):(d=b,b=a);for(var e=b;e<d;e++)c.push(e);return c},Tb=function(a){for(var b=[],c=0,d=a.length;c<d;c++)a[c]&&b.push(a[c]);return b},sa=function(a){var b;a:{if(!(2>a.length)){b=a.slice().sort();for(var c=b[0],d=1,e=b.length;d<e;d++){if(b[d]===c){b=!1;break a}c=b[d]}}b=!0}if(b)return a.slice();
b=[];var e=a.length,f,g=0,d=0;a:for(;d<e;d++){c=a[d];for(f=0;f<g;f++)if(b[f]===c)continue a;b.push(c);g++}return b};m.util={throttle:function(a,b){var c=b!==k?b:200,d,e;return function(){var b=this,g=+new Date,h=arguments;d&&g<d+c?(clearTimeout(e),e=setTimeout(function(){d=k;a.apply(b,h)},c)):(d=g,a.apply(b,h))}},escapeRegex:function(a){return a.replace(dc,"\\$1")}};var A=function(a,b,c){a[b]!==k&&(a[c]=a[b])},ca=/\[.*?\]$/,V=/\(\)$/,Sa=m.util.escapeRegex,xa=h("<div>")[0],$b=xa.textContent!==k,bc=
/<.*?>/g,Qa=m.util.throttle,Ub=[],w=Array.prototype,ec=function(a){var b,c,d=m.settings,e=h.map(d,function(a){return a.nTable});if(a){if(a.nTable&&a.oApi)return[a];if(a.nodeName&&"table"===a.nodeName.toLowerCase())return b=h.inArray(a,e),-1!==b?[d[b]]:null;if(a&&"function"===typeof a.settings)return a.settings().toArray();"string"===typeof a?c=h(a):a instanceof h&&(c=a)}else return[];if(c)return c.map(function(){b=h.inArray(this,e);return-1!==b?d[b]:null}).toArray()};t=function(a,b){if(!(this instanceof
t))return new t(a,b);var c=[],d=function(a){(a=ec(a))&&(c=c.concat(a))};if(h.isArray(a))for(var e=0,f=a.length;e<f;e++)d(a[e]);else d(a);this.context=sa(c);b&&h.merge(this,b);this.selector={rows:null,cols:null,opts:null};t.extend(this,this,Ub)};m.Api=t;h.extend(t.prototype,{any:function(){return 0!==this.count()},concat:w.concat,context:[],count:function(){return this.flatten().length},each:function(a){for(var b=0,c=this.length;b<c;b++)a.call(this,this[b],b,this);return this},eq:function(a){var b=
this.context;return b.length>a?new t(b[a],this[a]):null},filter:function(a){var b=[];if(w.filter)b=w.filter.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)a.call(this,this[c],c,this)&&b.push(this[c]);return new t(this.context,b)},flatten:function(){var a=[];return new t(this.context,a.concat.apply(a,this.toArray()))},join:w.join,indexOf:w.indexOf||function(a,b){for(var c=b||0,d=this.length;c<d;c++)if(this[c]===a)return c;return-1},iterator:function(a,b,c,d){var e=[],f,g,h,i,n,l=this.context,
m,p,u=this.selector;"string"===typeof a&&(d=c,c=b,b=a,a=!1);g=0;for(h=l.length;g<h;g++){var s=new t(l[g]);if("table"===b)f=c.call(s,l[g],g),f!==k&&e.push(f);else if("columns"===b||"rows"===b)f=c.call(s,l[g],this[g],g),f!==k&&e.push(f);else if("column"===b||"column-rows"===b||"row"===b||"cell"===b){p=this[g];"column-rows"===b&&(m=Da(l[g],u.opts));i=0;for(n=p.length;i<n;i++)f=p[i],f="cell"===b?c.call(s,l[g],f.row,f.column,g,i):c.call(s,l[g],f,g,i,m),f!==k&&e.push(f)}}return e.length||d?(a=new t(l,a?
e.concat.apply([],e):e),b=a.selector,b.rows=u.rows,b.cols=u.cols,b.opts=u.opts,a):this},lastIndexOf:w.lastIndexOf||function(a,b){return this.indexOf.apply(this.toArray.reverse(),arguments)},length:0,map:function(a){var b=[];if(w.map)b=w.map.call(this,a,this);else for(var c=0,d=this.length;c<d;c++)b.push(a.call(this,this[c],c));return new t(this.context,b)},pluck:function(a){return this.map(function(b){return b[a]})},pop:w.pop,push:w.push,reduce:w.reduce||function(a,b){return jb(this,a,b,0,this.length,
1)},reduceRight:w.reduceRight||function(a,b){return jb(this,a,b,this.length-1,-1,-1)},reverse:w.reverse,selector:null,shift:w.shift,slice:function(){return new t(this.context,this)},sort:w.sort,splice:w.splice,toArray:function(){return w.slice.call(this)},to$:function(){return h(this)},toJQuery:function(){return h(this)},unique:function(){return new t(this.context,sa(this))},unshift:w.unshift});t.extend=function(a,b,c){if(c.length&&b&&(b instanceof t||b.__dt_wrapper)){var d,e,f,g=function(a,b,c){return function(){var d=
b.apply(a,arguments);t.extend(d,d,c.methodExt);return d}};d=0;for(e=c.length;d<e;d++)f=c[d],b[f.name]="function"===typeof f.val?g(a,f.val,f):h.isPlainObject(f.val)?{}:f.val,b[f.name].__dt_wrapper=!0,t.extend(a,b[f.name],f.propExt)}};t.register=p=function(a,b){if(h.isArray(a))for(var c=0,d=a.length;c<d;c++)t.register(a[c],b);else for(var e=a.split("."),f=Ub,g,j,c=0,d=e.length;c<d;c++){g=(j=-1!==e[c].indexOf("()"))?e[c].replace("()",""):e[c];var i;a:{i=0;for(var n=f.length;i<n;i++)if(f[i].name===g){i=
f[i];break a}i=null}i||(i={name:g,val:{},methodExt:[],propExt:[]},f.push(i));c===d-1?i.val=b:f=j?i.methodExt:i.propExt}};t.registerPlural=u=function(a,b,c){t.register(a,c);t.register(b,function(){var a=c.apply(this,arguments);return a===this?this:a instanceof t?a.length?h.isArray(a[0])?new t(a.context,a[0]):a[0]:k:a})};p("tables()",function(a){var b;if(a){b=t;var c=this.context;if("number"===typeof a)a=[c[a]];else var d=h.map(c,function(a){return a.nTable}),a=h(d).filter(a).map(function(){var a=h.inArray(this,
d);return c[a]}).toArray();b=new b(a)}else b=this;return b});p("table()",function(a){var a=this.tables(a),b=a.context;return b.length?new t(b[0]):a});u("tables().nodes()","table().node()",function(){return this.iterator("table",function(a){return a.nTable},1)});u("tables().body()","table().body()",function(){return this.iterator("table",function(a){return a.nTBody},1)});u("tables().header()","table().header()",function(){return this.iterator("table",function(a){return a.nTHead},1)});u("tables().footer()",
"table().footer()",function(){return this.iterator("table",function(a){return a.nTFoot},1)});u("tables().containers()","table().container()",function(){return this.iterator("table",function(a){return a.nTableWrapper},1)});p("draw()",function(a){return this.iterator("table",function(b){"page"===a?O(b):("string"===typeof a&&(a="full-hold"===a?!1:!0),T(b,!1===a))})});p("page()",function(a){return a===k?this.page.info().page:this.iterator("table",function(b){Va(b,a)})});p("page.info()",function(){if(0===
this.context.length)return k;var a=this.context[0],b=a._iDisplayStart,c=a.oFeatures.bPaginate?a._iDisplayLength:-1,d=a.fnRecordsDisplay(),e=-1===c;return{page:e?0:Math.floor(b/c),pages:e?1:Math.ceil(d/c),start:b,end:a.fnDisplayEnd(),length:c,recordsTotal:a.fnRecordsTotal(),recordsDisplay:d,serverSide:"ssp"===y(a)}});p("page.len()",function(a){return a===k?0!==this.context.length?this.context[0]._iDisplayLength:k:this.iterator("table",function(b){Ta(b,a)})});var Vb=function(a,b,c){if(c){var d=new t(a);
d.one("draw",function(){c(d.ajax.json())})}if("ssp"==y(a))T(a,b);else{C(a,!0);var e=a.jqXHR;e&&4!==e.readyState&&e.abort();ua(a,[],function(c){pa(a);for(var c=va(a,c),d=0,e=c.length;d<e;d++)N(a,c[d]);T(a,b);C(a,!1)})}};p("ajax.json()",function(){var a=this.context;if(0<a.length)return a[0].json});p("ajax.params()",function(){var a=this.context;if(0<a.length)return a[0].oAjaxData});p("ajax.reload()",function(a,b){return this.iterator("table",function(c){Vb(c,!1===b,a)})});p("ajax.url()",function(a){var b=
this.context;if(a===k){if(0===b.length)return k;b=b[0];return b.ajax?h.isPlainObject(b.ajax)?b.ajax.url:b.ajax:b.sAjaxSource}return this.iterator("table",function(b){h.isPlainObject(b.ajax)?b.ajax.url=a:b.ajax=a})});p("ajax.url().load()",function(a,b){return this.iterator("table",function(c){Vb(c,!1===b,a)})});var bb=function(a,b,c,d,e){var f=[],g,j,i,n,l,m;i=typeof b;if(!b||"string"===i||"function"===i||b.length===k)b=[b];i=0;for(n=b.length;i<n;i++){j=b[i]&&b[i].split&&!b[i].match(/[\[\(:]/)?b[i].split(","):
[b[i]];l=0;for(m=j.length;l<m;l++)(g=c("string"===typeof j[l]?h.trim(j[l]):j[l]))&&g.length&&(f=f.concat(g))}a=x.selector[a];if(a.length){i=0;for(n=a.length;i<n;i++)f=a[i](d,e,f)}return sa(f)},cb=function(a){a||(a={});a.filter&&a.search===k&&(a.search=a.filter);return h.extend({search:"none",order:"current",page:"all"},a)},db=function(a){for(var b=0,c=a.length;b<c;b++)if(0<a[b].length)return a[0]=a[b],a[0].length=1,a.length=1,a.context=[a.context[b]],a;a.length=0;return a},Da=function(a,b){var c,
d,e,f=[],g=a.aiDisplay;c=a.aiDisplayMaster;var j=b.search;d=b.order;e=b.page;if("ssp"==y(a))return"removed"===j?[]:X(0,c.length);if("current"==e){c=a._iDisplayStart;for(d=a.fnDisplayEnd();c<d;c++)f.push(g[c])}else if("current"==d||"applied"==d)f="none"==j?c.slice():"applied"==j?g.slice():h.map(c,function(a){return-1===h.inArray(a,g)?a:null});else if("index"==d||"original"==d){c=0;for(d=a.aoData.length;c<d;c++)"none"==j?f.push(c):(e=h.inArray(c,g),(-1===e&&"removed"==j||0<=e&&"applied"==j)&&f.push(c))}return f};
p("rows()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=cb(b),c=this.iterator("table",function(c){var e=b,f;return bb("row",a,function(a){var b=Qb(a);if(b!==null&&!e)return[b];f||(f=Da(c,e));if(b!==null&&h.inArray(b,f)!==-1)return[b];if(a===null||a===k||a==="")return f;if(typeof a==="function")return h.map(f,function(b){var e=c.aoData[b];return a(b,e._aData,e.nTr)?b:null});b=Tb(ja(c.aoData,f,"nTr"));if(a.nodeName){if(a._DT_RowIndex!==k)return[a._DT_RowIndex];if(a._DT_CellIndex)return[a._DT_CellIndex.row];
b=h(a).closest("*[data-dt-row]");return b.length?[b.data("dt-row")]:[]}if(typeof a==="string"&&a.charAt(0)==="#"){var i=c.aIds[a.replace(/^#/,"")];if(i!==k)return[i.idx]}return h(b).filter(a).map(function(){return this._DT_RowIndex}).toArray()},c,e)},1);c.selector.rows=a;c.selector.opts=b;return c});p("rows().nodes()",function(){return this.iterator("row",function(a,b){return a.aoData[b].nTr||k},1)});p("rows().data()",function(){return this.iterator(!0,"rows",function(a,b){return ja(a.aoData,b,"_aData")},
1)});u("rows().cache()","row().cache()",function(a){return this.iterator("row",function(b,c){var d=b.aoData[c];return"search"===a?d._aFilterData:d._aSortData},1)});u("rows().invalidate()","row().invalidate()",function(a){return this.iterator("row",function(b,c){da(b,c,a)})});u("rows().indexes()","row().index()",function(){return this.iterator("row",function(a,b){return b},1)});u("rows().ids()","row().id()",function(a){for(var b=[],c=this.context,d=0,e=c.length;d<e;d++)for(var f=0,g=this[d].length;f<
g;f++){var h=c[d].rowIdFn(c[d].aoData[this[d][f]]._aData);b.push((!0===a?"#":"")+h)}return new t(c,b)});u("rows().remove()","row().remove()",function(){var a=this;this.iterator("row",function(b,c,d){var e=b.aoData,f=e[c],g,h,i,n,l;e.splice(c,1);g=0;for(h=e.length;g<h;g++)if(i=e[g],l=i.anCells,null!==i.nTr&&(i.nTr._DT_RowIndex=g),null!==l){i=0;for(n=l.length;i<n;i++)l[i]._DT_CellIndex.row=g}qa(b.aiDisplayMaster,c);qa(b.aiDisplay,c);qa(a[d],c,!1);Ua(b);c=b.rowIdFn(f._aData);c!==k&&delete b.aIds[c]});
this.iterator("table",function(a){for(var c=0,d=a.aoData.length;c<d;c++)a.aoData[c].idx=c});return this});p("rows.add()",function(a){var b=this.iterator("table",function(b){var c,f,g,h=[];f=0;for(g=a.length;f<g;f++)c=a[f],c.nodeName&&"TR"===c.nodeName.toUpperCase()?h.push(oa(b,c)[0]):h.push(N(b,c));return h},1),c=this.rows(-1);c.pop();h.merge(c,b);return c});p("row()",function(a,b){return db(this.rows(a,b))});p("row().data()",function(a){var b=this.context;if(a===k)return b.length&&this.length?b[0].aoData[this[0]]._aData:
k;b[0].aoData[this[0]]._aData=a;da(b[0],this[0],"data");return this});p("row().node()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]].nTr||null:null});p("row.add()",function(a){a instanceof h&&a.length&&(a=a[0]);var b=this.iterator("table",function(b){return a.nodeName&&"TR"===a.nodeName.toUpperCase()?oa(b,a)[0]:N(b,a)});return this.row(b[0])});var eb=function(a,b){var c=a.context;if(c.length&&(c=c[0].aoData[b!==k?b:a[0]])&&c._details)c._details.remove(),c._detailsShow=
k,c._details=k},Wb=function(a,b){var c=a.context;if(c.length&&a.length){var d=c[0].aoData[a[0]];if(d._details){(d._detailsShow=b)?d._details.insertAfter(d.nTr):d._details.detach();var e=c[0],f=new t(e),g=e.aoData;f.off("draw.dt.DT_details column-visibility.dt.DT_details destroy.dt.DT_details");0<D(g,"_details").length&&(f.on("draw.dt.DT_details",function(a,b){e===b&&f.rows({page:"current"}).eq(0).each(function(a){a=g[a];a._detailsShow&&a._details.insertAfter(a.nTr)})}),f.on("column-visibility.dt.DT_details",
function(a,b){if(e===b)for(var c,d=ba(b),f=0,h=g.length;f<h;f++)c=g[f],c._details&&c._details.children("td[colspan]").attr("colspan",d)}),f.on("destroy.dt.DT_details",function(a,b){if(e===b)for(var c=0,d=g.length;c<d;c++)g[c]._details&&eb(f,c)}))}}};p("row().child()",function(a,b){var c=this.context;if(a===k)return c.length&&this.length?c[0].aoData[this[0]]._details:k;if(!0===a)this.child.show();else if(!1===a)eb(this);else if(c.length&&this.length){var d=c[0],c=c[0].aoData[this[0]],e=[],f=function(a,
b){if(h.isArray(a)||a instanceof h)for(var c=0,k=a.length;c<k;c++)f(a[c],b);else a.nodeName&&"tr"===a.nodeName.toLowerCase()?e.push(a):(c=h("<tr><td/></tr>").addClass(b),h("td",c).addClass(b).html(a)[0].colSpan=ba(d),e.push(c[0]))};f(a,b);c._details&&c._details.detach();c._details=h(e);c._detailsShow&&c._details.insertAfter(c.nTr)}return this});p(["row().child.show()","row().child().show()"],function(){Wb(this,!0);return this});p(["row().child.hide()","row().child().hide()"],function(){Wb(this,!1);
return this});p(["row().child.remove()","row().child().remove()"],function(){eb(this);return this});p("row().child.isShown()",function(){var a=this.context;return a.length&&this.length?a[0].aoData[this[0]]._detailsShow||!1:!1});var fc=/^([^:]+):(name|visIdx|visible)$/,Xb=function(a,b,c,d,e){for(var c=[],d=0,f=e.length;d<f;d++)c.push(B(a,e[d],b));return c};p("columns()",function(a,b){a===k?a="":h.isPlainObject(a)&&(b=a,a="");var b=cb(b),c=this.iterator("table",function(c){var e=a,f=b,g=c.aoColumns,
j=D(g,"sName"),i=D(g,"nTh");return bb("column",e,function(a){var b=Qb(a);if(a==="")return X(g.length);if(b!==null)return[b>=0?b:g.length+b];if(typeof a==="function"){var e=Da(c,f);return h.map(g,function(b,f){return a(f,Xb(c,f,0,0,e),i[f])?f:null})}var k=typeof a==="string"?a.match(fc):"";if(k)switch(k[2]){case "visIdx":case "visible":b=parseInt(k[1],10);if(b<0){var m=h.map(g,function(a,b){return a.bVisible?b:null});return[m[m.length+b]]}return[$(c,b)];case "name":return h.map(j,function(a,b){return a===
k[1]?b:null});default:return[]}if(a.nodeName&&a._DT_CellIndex)return[a._DT_CellIndex.column];b=h(i).filter(a).map(function(){return h.inArray(this,i)}).toArray();if(b.length||!a.nodeName)return b;b=h(a).closest("*[data-dt-column]");return b.length?[b.data("dt-column")]:[]},c,f)},1);c.selector.cols=a;c.selector.opts=b;return c});u("columns().header()","column().header()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTh},1)});u("columns().footer()","column().footer()",
function(){return this.iterator("column",function(a,b){return a.aoColumns[b].nTf},1)});u("columns().data()","column().data()",function(){return this.iterator("column-rows",Xb,1)});u("columns().dataSrc()","column().dataSrc()",function(){return this.iterator("column",function(a,b){return a.aoColumns[b].mData},1)});u("columns().cache()","column().cache()",function(a){return this.iterator("column-rows",function(b,c,d,e,f){return ja(b.aoData,f,"search"===a?"_aFilterData":"_aSortData",c)},1)});u("columns().nodes()",
"column().nodes()",function(){return this.iterator("column-rows",function(a,b,c,d,e){return ja(a.aoData,e,"anCells",b)},1)});u("columns().visible()","column().visible()",function(a,b){var c=this.iterator("column",function(b,c){if(a===k)return b.aoColumns[c].bVisible;var f=b.aoColumns,g=f[c],j=b.aoData,i,n,l;if(a!==k&&g.bVisible!==a){if(a){var m=h.inArray(!0,D(f,"bVisible"),c+1);i=0;for(n=j.length;i<n;i++)l=j[i].nTr,f=j[i].anCells,l&&l.insertBefore(f[c],f[m]||null)}else h(D(b.aoData,"anCells",c)).detach();
g.bVisible=a;fa(b,b.aoHeader);fa(b,b.aoFooter);za(b)}});a!==k&&(this.iterator("column",function(c,e){s(c,null,"column-visibility",[c,e,a,b])}),(b===k||b)&&this.columns.adjust());return c});u("columns().indexes()","column().index()",function(a){return this.iterator("column",function(b,c){return"visible"===a?aa(b,c):c},1)});p("columns.adjust()",function(){return this.iterator("table",function(a){Z(a)},1)});p("column.index()",function(a,b){if(0!==this.context.length){var c=this.context[0];if("fromVisible"===
a||"toData"===a)return $(c,b);if("fromData"===a||"toVisible"===a)return aa(c,b)}});p("column()",function(a,b){return db(this.columns(a,b))});p("cells()",function(a,b,c){h.isPlainObject(a)&&(a.row===k?(c=a,a=null):(c=b,b=null));h.isPlainObject(b)&&(c=b,b=null);if(null===b||b===k)return this.iterator("table",function(b){var d=a,e=cb(c),f=b.aoData,g=Da(b,e),j=Tb(ja(f,g,"anCells")),i=h([].concat.apply([],j)),l,n=b.aoColumns.length,m,p,u,t,s,v;return bb("cell",d,function(a){var c=typeof a==="function";
if(a===null||a===k||c){m=[];p=0;for(u=g.length;p<u;p++){l=g[p];for(t=0;t<n;t++){s={row:l,column:t};if(c){v=f[l];a(s,B(b,l,t),v.anCells?v.anCells[t]:null)&&m.push(s)}else m.push(s)}}return m}if(h.isPlainObject(a))return[a];c=i.filter(a).map(function(a,b){return{row:b._DT_CellIndex.row,column:b._DT_CellIndex.column}}).toArray();if(c.length||!a.nodeName)return c;v=h(a).closest("*[data-dt-row]");return v.length?[{row:v.data("dt-row"),column:v.data("dt-column")}]:[]},b,e)});var d=this.columns(b,c),e=this.rows(a,
c),f,g,j,i,n,l=this.iterator("table",function(a,b){f=[];g=0;for(j=e[b].length;g<j;g++){i=0;for(n=d[b].length;i<n;i++)f.push({row:e[b][g],column:d[b][i]})}return f},1);h.extend(l.selector,{cols:b,rows:a,opts:c});return l});u("cells().nodes()","cell().node()",function(){return this.iterator("cell",function(a,b,c){return(a=a.aoData[b])&&a.anCells?a.anCells[c]:k},1)});p("cells().data()",function(){return this.iterator("cell",function(a,b,c){return B(a,b,c)},1)});u("cells().cache()","cell().cache()",function(a){a=
"search"===a?"_aFilterData":"_aSortData";return this.iterator("cell",function(b,c,d){return b.aoData[c][a][d]},1)});u("cells().render()","cell().render()",function(a){return this.iterator("cell",function(b,c,d){return B(b,c,d,a)},1)});u("cells().indexes()","cell().index()",function(){return this.iterator("cell",function(a,b,c){return{row:b,column:c,columnVisible:aa(a,c)}},1)});u("cells().invalidate()","cell().invalidate()",function(a){return this.iterator("cell",function(b,c,d){da(b,c,a,d)})});p("cell()",
function(a,b,c){return db(this.cells(a,b,c))});p("cell().data()",function(a){var b=this.context,c=this[0];if(a===k)return b.length&&c.length?B(b[0],c[0].row,c[0].column):k;lb(b[0],c[0].row,c[0].column,a);da(b[0],c[0].row,"data",c[0].column);return this});p("order()",function(a,b){var c=this.context;if(a===k)return 0!==c.length?c[0].aaSorting:k;"number"===typeof a?a=[[a,b]]:a.length&&!h.isArray(a[0])&&(a=Array.prototype.slice.call(arguments));return this.iterator("table",function(b){b.aaSorting=a.slice()})});
p("order.listener()",function(a,b,c){return this.iterator("table",function(d){Oa(d,a,b,c)})});p("order.fixed()",function(a){if(!a){var b=this.context,b=b.length?b[0].aaSortingFixed:k;return h.isArray(b)?{pre:b}:b}return this.iterator("table",function(b){b.aaSortingFixed=h.extend(!0,{},a)})});p(["columns().order()","column().order()"],function(a){var b=this;return this.iterator("table",function(c,d){var e=[];h.each(b[d],function(b,c){e.push([c,a])});c.aaSorting=e})});p("search()",function(a,b,c,d){var e=
this.context;return a===k?0!==e.length?e[0].oPreviousSearch.sSearch:k:this.iterator("table",function(e){e.oFeatures.bFilter&&ga(e,h.extend({},e.oPreviousSearch,{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?!0:c,bCaseInsensitive:null===d?!0:d}),1)})});u("columns().search()","column().search()",function(a,b,c,d){return this.iterator("column",function(e,f){var g=e.aoPreSearchCols;if(a===k)return g[f].sSearch;e.oFeatures.bFilter&&(h.extend(g[f],{sSearch:a+"",bRegex:null===b?!1:b,bSmart:null===c?
!0:c,bCaseInsensitive:null===d?!0:d}),ga(e,e.oPreviousSearch,1))})});p("state()",function(){return this.context.length?this.context[0].oSavedState:null});p("state.clear()",function(){return this.iterator("table",function(a){a.fnStateSaveCallback.call(a.oInstance,a,{})})});p("state.loaded()",function(){return this.context.length?this.context[0].oLoadedState:null});p("state.save()",function(){return this.iterator("table",function(a){za(a)})});m.versionCheck=m.fnVersionCheck=function(a){for(var b=m.version.split("."),
a=a.split("."),c,d,e=0,f=a.length;e<f;e++)if(c=parseInt(b[e],10)||0,d=parseInt(a[e],10)||0,c!==d)return c>d;return!0};m.isDataTable=m.fnIsDataTable=function(a){var b=h(a).get(0),c=!1;if(a instanceof m.Api)return!0;h.each(m.settings,function(a,e){var f=e.nScrollHead?h("table",e.nScrollHead)[0]:null,g=e.nScrollFoot?h("table",e.nScrollFoot)[0]:null;if(e.nTable===b||f===b||g===b)c=!0});return c};m.tables=m.fnTables=function(a){var b=!1;h.isPlainObject(a)&&(b=a.api,a=a.visible);var c=h.map(m.settings,
function(b){if(!a||a&&h(b.nTable).is(":visible"))return b.nTable});return b?new t(c):c};m.camelToHungarian=J;p("$()",function(a,b){var c=this.rows(b).nodes(),c=h(c);return h([].concat(c.filter(a).toArray(),c.find(a).toArray()))});h.each(["on","one","off"],function(a,b){p(b+"()",function(){var a=Array.prototype.slice.call(arguments);a[0]=h.map(a[0].split(/\s/),function(a){return!a.match(/\.dt\b/)?a+".dt":a}).join(" ");var d=h(this.tables().nodes());d[b].apply(d,a);return this})});p("clear()",function(){return this.iterator("table",
function(a){pa(a)})});p("settings()",function(){return new t(this.context,this.context)});p("init()",function(){var a=this.context;return a.length?a[0].oInit:null});p("data()",function(){return this.iterator("table",function(a){return D(a.aoData,"_aData")}).flatten()});p("destroy()",function(a){a=a||!1;return this.iterator("table",function(b){var c=b.nTableWrapper.parentNode,d=b.oClasses,e=b.nTable,f=b.nTBody,g=b.nTHead,j=b.nTFoot,i=h(e),f=h(f),k=h(b.nTableWrapper),l=h.map(b.aoData,function(a){return a.nTr}),
p;b.bDestroying=!0;s(b,"aoDestroyCallback","destroy",[b]);a||(new t(b)).columns().visible(!0);k.off(".DT").find(":not(tbody *)").off(".DT");h(E).off(".DT-"+b.sInstance);e!=g.parentNode&&(i.children("thead").detach(),i.append(g));j&&e!=j.parentNode&&(i.children("tfoot").detach(),i.append(j));b.aaSorting=[];b.aaSortingFixed=[];ya(b);h(l).removeClass(b.asStripeClasses.join(" "));h("th, td",g).removeClass(d.sSortable+" "+d.sSortableAsc+" "+d.sSortableDesc+" "+d.sSortableNone);b.bJUI&&(h("th span."+d.sSortIcon+
", td span."+d.sSortIcon,g).detach(),h("th, td",g).each(function(){var a=h("div."+d.sSortJUIWrapper,this);h(this).append(a.contents());a.detach()}));f.children().detach();f.append(l);g=a?"remove":"detach";i[g]();k[g]();!a&&c&&(c.insertBefore(e,b.nTableReinsertBefore),i.css("width",b.sDestroyWidth).removeClass(d.sTable),(p=b.asDestroyStripes.length)&&f.children().each(function(a){h(this).addClass(b.asDestroyStripes[a%p])}));c=h.inArray(b,m.settings);-1!==c&&m.settings.splice(c,1)})});h.each(["column",
"row","cell"],function(a,b){p(b+"s().every()",function(a){var d=this.selector.opts,e=this;return this.iterator(b,function(f,g,h,i,m){a.call(e[b](g,"cell"===b?h:d,"cell"===b?d:k),g,h,i,m)})})});p("i18n()",function(a,b,c){var d=this.context[0],a=R(a)(d.oLanguage);a===k&&(a=b);c!==k&&h.isPlainObject(a)&&(a=a[c]!==k?a[c]:a._);return a.replace("%d",c)});m.version="1.10.15";m.settings=[];m.models={};m.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0};m.models.oRow={nTr:null,anCells:null,
_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1};m.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null};m.defaults=
{aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bJQueryUI:!1,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(a){return a.toString().replace(/\B(?=(\d{3})+(?!\d))/g,
this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(a){try{return JSON.parse((-1===a.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+a.sInstance+"_"+location.pathname))}catch(b){}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(a,b){try{(-1===a.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+a.sInstance+
"_"+location.pathname,JSON.stringify(b))}catch(c){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",
sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:h.extend({},m.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"};
Y(m.defaults);m.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null};Y(m.defaults.column);m.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,
bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],
aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,bAjaxDataGet:!0,jqXHR:null,json:k,oAjaxData:k,fnServerData:null,
aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,bJUI:null,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==y(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==y(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var a=
this._iDisplayLength,b=this._iDisplayStart,c=b+a,d=this.aiDisplay.length,e=this.oFeatures,f=e.bPaginate;return e.bServerSide?!1===f||-1===a?b+d:Math.min(b+a,this._iRecordsDisplay):!f||c>d||-1===a?d:c},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null};m.ext=x={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},
header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:m.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:m.version};h.extend(x,{afnFiltering:x.search,aTypes:x.type.detect,ofnSearch:x.type.search,oSort:x.type.order,afnSortData:x.order,aoFeatures:x.feature,oApi:x.internal,oStdClasses:x.classes,oPagination:x.pager});h.extend(m.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",
sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_asc_disabled",sSortableDesc:"sorting_desc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",
sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Ea="",Ea="",G=Ea+"ui-state-default",ka=Ea+"css_right ui-icon ui-icon-",Yb=Ea+"fg-toolbar ui-toolbar ui-widget-header ui-helper-clearfix";h.extend(m.ext.oJUIClasses,
m.ext.classes,{sPageButton:"fg-button ui-button "+G,sPageButtonActive:"ui-state-disabled",sPageButtonDisabled:"ui-state-disabled",sPaging:"dataTables_paginate fg-buttonset ui-buttonset fg-buttonset-multi ui-buttonset-multi paging_",sSortAsc:G+" sorting_asc",sSortDesc:G+" sorting_desc",sSortable:G+" sorting",sSortableAsc:G+" sorting_asc_disabled",sSortableDesc:G+" sorting_desc_disabled",sSortableNone:G+" sorting_disabled",sSortJUIAsc:ka+"triangle-1-n",sSortJUIDesc:ka+"triangle-1-s",sSortJUI:ka+"carat-2-n-s",
sSortJUIAscAllowed:ka+"carat-1-n",sSortJUIDescAllowed:ka+"carat-1-s",sSortJUIWrapper:"DataTables_sort_wrapper",sSortIcon:"DataTables_sort_icon",sScrollHead:"dataTables_scrollHead "+G,sScrollFoot:"dataTables_scrollFoot "+G,sHeaderTH:G,sFooterTH:G,sJUIHeader:Yb+" ui-corner-tl ui-corner-tr",sJUIFooter:Yb+" ui-corner-bl ui-corner-br"});var Nb=m.ext.pager;h.extend(Nb,{simple:function(){return["previous","next"]},full:function(){return["first","previous","next","last"]},numbers:function(a,b){return[ia(a,
b)]},simple_numbers:function(a,b){return["previous",ia(a,b),"next"]},full_numbers:function(a,b){return["first","previous",ia(a,b),"next","last"]},first_last_numbers:function(a,b){return["first",ia(a,b),"last"]},_numbers:ia,numbers_length:7});h.extend(!0,m.ext.renderer,{pageButton:{_:function(a,b,c,d,e,f){var g=a.oClasses,j=a.oLanguage.oPaginate,i=a.oLanguage.oAria.paginate||{},m,l,p=0,r=function(b,d){var k,t,u,s,v=function(b){Va(a,b.data.action,true)};k=0;for(t=d.length;k<t;k++){s=d[k];if(h.isArray(s)){u=
h("<"+(s.DT_el||"div")+"/>").appendTo(b);r(u,s)}else{m=null;l="";switch(s){case "ellipsis":b.append('<span class="ellipsis">&#x2026;</span>');break;case "first":m=j.sFirst;l=s+(e>0?"":" "+g.sPageButtonDisabled);break;case "previous":m=j.sPrevious;l=s+(e>0?"":" "+g.sPageButtonDisabled);break;case "next":m=j.sNext;l=s+(e<f-1?"":" "+g.sPageButtonDisabled);break;case "last":m=j.sLast;l=s+(e<f-1?"":" "+g.sPageButtonDisabled);break;default:m=s+1;l=e===s?g.sPageButtonActive:""}if(m!==null){u=h("<a>",{"class":g.sPageButton+
" "+l,"aria-controls":a.sTableId,"aria-label":i[s],"data-dt-idx":p,tabindex:a.iTabIndex,id:c===0&&typeof s==="string"?a.sTableId+"_"+s:null}).html(m).appendTo(b);Ya(u,{action:s},v);p++}}}},t;try{t=h(b).find(H.activeElement).data("dt-idx")}catch(u){}r(h(b).empty(),d);t!==k&&h(b).find("[data-dt-idx="+t+"]").focus()}}});h.extend(m.ext.type.detect,[function(a,b){var c=b.oLanguage.sDecimal;return ab(a,c)?"num"+c:null},function(a){if(a&&!(a instanceof Date)&&!cc.test(a))return null;var b=Date.parse(a);
return null!==b&&!isNaN(b)||M(a)?"date":null},function(a,b){var c=b.oLanguage.sDecimal;return ab(a,c,!0)?"num-fmt"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Sb(a,c)?"html-num"+c:null},function(a,b){var c=b.oLanguage.sDecimal;return Sb(a,c,!0)?"html-num-fmt"+c:null},function(a){return M(a)||"string"===typeof a&&-1!==a.indexOf("<")?"html":null}]);h.extend(m.ext.type.search,{html:function(a){return M(a)?a:"string"===typeof a?a.replace(Pb," ").replace(Ca,""):""},string:function(a){return M(a)?
a:"string"===typeof a?a.replace(Pb," "):a}});var Ba=function(a,b,c,d){if(0!==a&&(!a||"-"===a))return-Infinity;b&&(a=Rb(a,b));a.replace&&(c&&(a=a.replace(c,"")),d&&(a=a.replace(d,"")));return 1*a};h.extend(x.type.order,{"date-pre":function(a){return Date.parse(a)||-Infinity},"html-pre":function(a){return M(a)?"":a.replace?a.replace(/<.*?>/g,"").toLowerCase():a+""},"string-pre":function(a){return M(a)?"":"string"===typeof a?a.toLowerCase():!a.toString?"":a.toString()},"string-asc":function(a,b){return a<
b?-1:a>b?1:0},"string-desc":function(a,b){return a<b?1:a>b?-1:0}});fb("");h.extend(!0,m.ext.renderer,{header:{_:function(a,b,c,d){h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(c.sSortingClass+" "+d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass)}})},jqueryui:function(a,b,c,d){h("<div/>").addClass(d.sSortJUIWrapper).append(b.contents()).append(h("<span/>").addClass(d.sSortIcon+" "+c.sSortingClassJUI)).appendTo(b);
h(a.nTable).on("order.dt.DT",function(e,f,g,h){if(a===f){e=c.idx;b.removeClass(d.sSortAsc+" "+d.sSortDesc).addClass(h[e]=="asc"?d.sSortAsc:h[e]=="desc"?d.sSortDesc:c.sSortingClass);b.find("span."+d.sSortIcon).removeClass(d.sSortJUIAsc+" "+d.sSortJUIDesc+" "+d.sSortJUI+" "+d.sSortJUIAscAllowed+" "+d.sSortJUIDescAllowed).addClass(h[e]=="asc"?d.sSortJUIAsc:h[e]=="desc"?d.sSortJUIDesc:c.sSortingClassJUI)}})}}});var Zb=function(a){return"string"===typeof a?a.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,
"&quot;"):a};m.render={number:function(a,b,c,d,e){return{display:function(f){if("number"!==typeof f&&"string"!==typeof f)return f;var g=0>f?"-":"",h=parseFloat(f);if(isNaN(h))return Zb(f);h=h.toFixed(c);f=Math.abs(h);h=parseInt(f,10);f=c?b+(f-h).toFixed(c).substring(2):"";return g+(d||"")+h.toString().replace(/\B(?=(\d{3})+(?!\d))/g,a)+f+(e||"")}}},text:function(){return{display:Zb}}};h.extend(m.ext.internal,{_fnExternApiFunc:Ob,_fnBuildAjax:ua,_fnAjaxUpdate:nb,_fnAjaxParameters:wb,_fnAjaxUpdateDraw:xb,
_fnAjaxDataSrc:va,_fnAddColumn:Ga,_fnColumnOptions:la,_fnAdjustColumnSizing:Z,_fnVisibleToColumnIndex:$,_fnColumnIndexToVisible:aa,_fnVisbleColumns:ba,_fnGetColumns:na,_fnColumnTypes:Ia,_fnApplyColumnDefs:kb,_fnHungarianMap:Y,_fnCamelToHungarian:J,_fnLanguageCompat:Fa,_fnBrowserDetect:ib,_fnAddData:N,_fnAddTr:oa,_fnNodeToDataIndex:function(a,b){return b._DT_RowIndex!==k?b._DT_RowIndex:null},_fnNodeToColumnIndex:function(a,b,c){return h.inArray(c,a.aoData[b].anCells)},_fnGetCellData:B,_fnSetCellData:lb,
_fnSplitObjNotation:La,_fnGetObjectDataFn:R,_fnSetObjectDataFn:S,_fnGetDataMaster:Ma,_fnClearTable:pa,_fnDeleteIndex:qa,_fnInvalidate:da,_fnGetRowElements:Ka,_fnCreateTr:Ja,_fnBuildHead:mb,_fnDrawHead:fa,_fnDraw:O,_fnReDraw:T,_fnAddOptionsHtml:pb,_fnDetectHeader:ea,_fnGetUniqueThs:ta,_fnFeatureHtmlFilter:rb,_fnFilterComplete:ga,_fnFilterCustom:Ab,_fnFilterColumn:zb,_fnFilter:yb,_fnFilterCreateSearch:Ra,_fnEscapeRegex:Sa,_fnFilterData:Bb,_fnFeatureHtmlInfo:ub,_fnUpdateInfo:Eb,_fnInfoMacros:Fb,_fnInitialise:ha,
_fnInitComplete:wa,_fnLengthChange:Ta,_fnFeatureHtmlLength:qb,_fnFeatureHtmlPaginate:vb,_fnPageChange:Va,_fnFeatureHtmlProcessing:sb,_fnProcessingDisplay:C,_fnFeatureHtmlTable:tb,_fnScrollDraw:ma,_fnApplyToChildren:I,_fnCalculateColumnWidths:Ha,_fnThrottle:Qa,_fnConvertToWidth:Gb,_fnGetWidestNode:Hb,_fnGetMaxLenString:Ib,_fnStringToCss:v,_fnSortFlatten:W,_fnSort:ob,_fnSortAria:Kb,_fnSortListener:Xa,_fnSortAttachListener:Oa,_fnSortingClasses:ya,_fnSortData:Jb,_fnSaveState:za,_fnLoadState:Lb,_fnSettingsFromNode:Aa,
_fnLog:K,_fnMap:F,_fnBindAction:Ya,_fnCallbackReg:z,_fnCallbackFire:s,_fnLengthOverflow:Ua,_fnRenderer:Pa,_fnDataSource:y,_fnRowAttributes:Na,_fnCalculateEnd:function(){}});h.fn.dataTable=m;m.$=h;h.fn.dataTableSettings=m.settings;h.fn.dataTableExt=m.ext;h.fn.DataTable=function(a){return h(this).dataTable(a).api()};h.each(m,function(a,b){h.fn.DataTable[a]=b});return h.fn.dataTable});

﻿/* =========================================================
 * bootstrap-datetimepicker.js
 * =========================================================
 * Copyright 2012 Stefan Petre
 *
 * Improvements by Andrew Rowls
 * Improvements by Sébastien Malot
 * Improvements by Yun Lai
 * Improvements by Kenneth Henderick
 * Improvements by CuGBabyBeaR
 * Improvements by Christian Vaas <auspex@auspex.eu>
 *
 * Project URL : http://www.malot.fr/bootstrap-datetimepicker
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * ========================================================= */
(function(a){if(typeof define==="function"&&define.amd){define(["jquery"],a)}else{if(typeof exports==="object"){a(require("jquery"))}else{a(jQuery)}}}(function(d,f){if(!("indexOf" in Array.prototype)){Array.prototype.indexOf=function(k,j){if(j===f){j=0}if(j<0){j+=this.length}if(j<0){j=0}for(var l=this.length;j<l;j++){if(j in this&&this[j]===k){return j}}return -1}}function a(){var q,k,p,l,j,n,m,o;k=(new Date()).toString();p=((m=k.split("(")[1])!=null?m.slice(0,-1):0)||k.split(" ");if(p instanceof Array){n=[];for(var l=0,j=p.length;l<j;l++){o=p[l];if((q=(m=o.match(/\b[A-Z]+\b/))!==null)?m[0]:0){n.push(q)}}p=n.pop()}return p}function h(){return new Date(Date.UTC.apply(Date,arguments))}var g=function(k,j){var m=this;this.element=d(k);this.container=j.container||"body";this.language=j.language||this.element.data("date-language")||"en";this.language=this.language in e?this.language:this.language.split("-")[0];this.language=this.language in e?this.language:"en";this.isRTL=e[this.language].rtl||false;this.formatType=j.formatType||this.element.data("format-type")||"standard";this.format=c.parseFormat(j.format||this.element.data("date-format")||e[this.language].format||c.getDefaultFormat(this.formatType,"input"),this.formatType);this.isInline=false;this.isVisible=false;this.isInput=this.element.is("input");this.fontAwesome=j.fontAwesome||this.element.data("font-awesome")||false;this.bootcssVer=j.bootcssVer||(this.isInput?(this.element.is(".form-control")?3:2):(this.bootcssVer=this.element.is(".input-group")?3:2));this.component=this.element.is(".date")?(this.bootcssVer===3?this.element.find(".input-group-addon .glyphicon-th, .input-group-addon .glyphicon-time, .input-group-addon .glyphicon-remove, .input-group-addon .glyphicon-calendar, .input-group-addon .fa-calendar, .input-group-addon .fa-clock-o").parent():this.element.find(".add-on .icon-th, .add-on .icon-time, .add-on .icon-calendar, .add-on .fa-calendar, .add-on .fa-clock-o").parent()):false;this.componentReset=this.element.is(".date")?(this.bootcssVer===3?this.element.find(".input-group-addon .glyphicon-remove, .input-group-addon .fa-times").parent():this.element.find(".add-on .icon-remove, .add-on .fa-times").parent()):false;this.hasInput=this.component&&this.element.find("input").length;if(this.component&&this.component.length===0){this.component=false}this.linkField=j.linkField||this.element.data("link-field")||false;this.linkFormat=c.parseFormat(j.linkFormat||this.element.data("link-format")||c.getDefaultFormat(this.formatType,"link"),this.formatType);this.minuteStep=j.minuteStep||this.element.data("minute-step")||5;this.pickerPosition=j.pickerPosition||this.element.data("picker-position")||"bottom-right";this.showMeridian=j.showMeridian||this.element.data("show-meridian")||false;this.initialDate=j.initialDate||new Date();this.zIndex=j.zIndex||this.element.data("z-index")||f;this.title=typeof j.title==="undefined"?false:j.title;this.timezone=j.timezone||a();this.icons={leftArrow:this.fontAwesome?"fa-arrow-left":(this.bootcssVer===3?"glyphicon-arrow-left":"icon-arrow-left"),rightArrow:this.fontAwesome?"fa-arrow-right":(this.bootcssVer===3?"glyphicon-arrow-right":"icon-arrow-right")};this.icontype=this.fontAwesome?"fa":"glyphicon";this._attachEvents();this.clickedOutside=function(n){if(d(n.target).closest(".datetimepicker").length===0){m.hide()}};this.formatViewType="datetime";if("formatViewType" in j){this.formatViewType=j.formatViewType}else{if("formatViewType" in this.element.data()){this.formatViewType=this.element.data("formatViewType")}}this.minView=0;if("minView" in j){this.minView=j.minView}else{if("minView" in this.element.data()){this.minView=this.element.data("min-view")}}this.minView=c.convertViewMode(this.minView);this.maxView=c.modes.length-1;if("maxView" in j){this.maxView=j.maxView}else{if("maxView" in this.element.data()){this.maxView=this.element.data("max-view")}}this.maxView=c.convertViewMode(this.maxView);this.wheelViewModeNavigation=false;if("wheelViewModeNavigation" in j){this.wheelViewModeNavigation=j.wheelViewModeNavigation}else{if("wheelViewModeNavigation" in this.element.data()){this.wheelViewModeNavigation=this.element.data("view-mode-wheel-navigation")}}this.wheelViewModeNavigationInverseDirection=false;if("wheelViewModeNavigationInverseDirection" in j){this.wheelViewModeNavigationInverseDirection=j.wheelViewModeNavigationInverseDirection}else{if("wheelViewModeNavigationInverseDirection" in this.element.data()){this.wheelViewModeNavigationInverseDirection=this.element.data("view-mode-wheel-navigation-inverse-dir")}}this.wheelViewModeNavigationDelay=100;if("wheelViewModeNavigationDelay" in j){this.wheelViewModeNavigationDelay=j.wheelViewModeNavigationDelay}else{if("wheelViewModeNavigationDelay" in this.element.data()){this.wheelViewModeNavigationDelay=this.element.data("view-mode-wheel-navigation-delay")}}this.startViewMode=2;if("startView" in j){this.startViewMode=j.startView}else{if("startView" in this.element.data()){this.startViewMode=this.element.data("start-view")}}this.startViewMode=c.convertViewMode(this.startViewMode);this.viewMode=this.startViewMode;this.viewSelect=this.minView;if("viewSelect" in j){this.viewSelect=j.viewSelect}else{if("viewSelect" in this.element.data()){this.viewSelect=this.element.data("view-select")}}this.viewSelect=c.convertViewMode(this.viewSelect);this.forceParse=true;if("forceParse" in j){this.forceParse=j.forceParse}else{if("dateForceParse" in this.element.data()){this.forceParse=this.element.data("date-force-parse")}}var l=this.bootcssVer===3?c.templateV3:c.template;while(l.indexOf("{iconType}")!==-1){l=l.replace("{iconType}",this.icontype)}while(l.indexOf("{leftArrow}")!==-1){l=l.replace("{leftArrow}",this.icons.leftArrow)}while(l.indexOf("{rightArrow}")!==-1){l=l.replace("{rightArrow}",this.icons.rightArrow)}this.picker=d(l).appendTo(this.isInline?this.element:this.container).on({click:d.proxy(this.click,this),mousedown:d.proxy(this.mousedown,this)});if(this.wheelViewModeNavigation){if(d.fn.mousewheel){this.picker.on({mousewheel:d.proxy(this.mousewheel,this)})}else{console.log("Mouse Wheel event is not supported. Please include the jQuery Mouse Wheel plugin before enabling this option")}}if(this.isInline){this.picker.addClass("datetimepicker-inline")}else{this.picker.addClass("datetimepicker-dropdown-"+this.pickerPosition+" dropdown-menu")}if(this.isRTL){this.picker.addClass("datetimepicker-rtl");var i=this.bootcssVer===3?".prev span, .next span":".prev i, .next i";this.picker.find(i).toggleClass(this.icons.leftArrow+" "+this.icons.rightArrow)}d(document).on("mousedown touchend",this.clickedOutside);this.autoclose=false;if("autoclose" in j){this.autoclose=j.autoclose}else{if("dateAutoclose" in this.element.data()){this.autoclose=this.element.data("date-autoclose")}}this.keyboardNavigation=true;if("keyboardNavigation" in j){this.keyboardNavigation=j.keyboardNavigation}else{if("dateKeyboardNavigation" in this.element.data()){this.keyboardNavigation=this.element.data("date-keyboard-navigation")}}this.todayBtn=(j.todayBtn||this.element.data("date-today-btn")||false);this.clearBtn=(j.clearBtn||this.element.data("date-clear-btn")||false);this.todayHighlight=(j.todayHighlight||this.element.data("date-today-highlight")||false);this.weekStart=0;if(typeof j.weekStart!=="undefined"){this.weekStart=j.weekStart}else{if(typeof this.element.data("date-weekstart")!=="undefined"){this.weekStart=this.element.data("date-weekstart")}else{if(typeof e[this.language].weekStart!=="undefined"){this.weekStart=e[this.language].weekStart}}}this.weekStart=this.weekStart%7;this.weekEnd=((this.weekStart+6)%7);this.onRenderDay=function(n){var p=(j.onRenderDay||function(){return[]})(n);if(typeof p==="string"){p=[p]}var o=["day"];return o.concat((p?p:[]))};this.onRenderHour=function(n){var p=(j.onRenderHour||function(){return[]})(n);var o=["hour"];if(typeof p==="string"){p=[p]}return o.concat((p?p:[]))};this.onRenderMinute=function(n){var p=(j.onRenderMinute||function(){return[]})(n);var o=["minute"];if(typeof p==="string"){p=[p]}if(n<this.startDate||n>this.endDate){o.push("disabled")}else{if(Math.floor(this.date.getUTCMinutes()/this.minuteStep)===Math.floor(n.getUTCMinutes()/this.minuteStep)){o.push("active")}}return o.concat((p?p:[]))};this.onRenderYear=function(o){var q=(j.onRenderYear||function(){return[]})(o);var p=["year"];if(typeof q==="string"){q=[q]}if(this.date.getUTCFullYear()===o.getUTCFullYear()){p.push("active")}var n=o.getUTCFullYear();var r=this.endDate.getUTCFullYear();if(o<this.startDate||n>r){p.push("disabled")}return p.concat((q?q:[]))};this.onRenderMonth=function(n){var p=(j.onRenderMonth||function(){return[]})(n);var o=["month"];if(typeof p==="string"){p=[p]}return o.concat((p?p:[]))};this.startDate=new Date(-8639968443048000);this.endDate=new Date(8639968443048000);this.datesDisabled=[];this.daysOfWeekDisabled=[];this.setStartDate(j.startDate||this.element.data("date-startdate"));this.setEndDate(j.endDate||this.element.data("date-enddate"));this.setDatesDisabled(j.datesDisabled||this.element.data("date-dates-disabled"));this.setDaysOfWeekDisabled(j.daysOfWeekDisabled||this.element.data("date-days-of-week-disabled"));this.setMinutesDisabled(j.minutesDisabled||this.element.data("date-minute-disabled"));this.setHoursDisabled(j.hoursDisabled||this.element.data("date-hour-disabled"));this.fillDow();this.fillMonths();this.update();this.showMode();if(this.isInline){this.show()}};g.prototype={constructor:g,_events:[],_attachEvents:function(){this._detachEvents();if(this.isInput){this._events=[[this.element,{focus:d.proxy(this.show,this),keyup:d.proxy(this.update,this),keydown:d.proxy(this.keydown,this)}]]}else{if(this.component&&this.hasInput){this._events=[[this.element.find("input"),{focus:d.proxy(this.show,this),keyup:d.proxy(this.update,this),keydown:d.proxy(this.keydown,this)}],[this.component,{click:d.proxy(this.show,this)}]];if(this.componentReset){this._events.push([this.componentReset,{click:d.proxy(this.reset,this)}])}}else{if(this.element.is("div")){this.isInline=true}else{this._events=[[this.element,{click:d.proxy(this.show,this)}]]}}}for(var j=0,k,l;j<this._events.length;j++){k=this._events[j][0];l=this._events[j][1];k.on(l)}},_detachEvents:function(){for(var j=0,k,l;j<this._events.length;j++){k=this._events[j][0];l=this._events[j][1];k.off(l)}this._events=[]},show:function(i){this.picker.show();this.height=this.component?this.component.outerHeight():this.element.outerHeight();if(this.forceParse){this.update()}this.place();d(window).on("resize",d.proxy(this.place,this));if(i){i.stopPropagation();i.preventDefault()}this.isVisible=true;this.element.trigger({type:"show",date:this.date})},hide:function(){if(!this.isVisible){return}if(this.isInline){return}this.picker.hide();d(window).off("resize",this.place);this.viewMode=this.startViewMode;this.showMode();if(!this.isInput){d(document).off("mousedown",this.hide)}if(this.forceParse&&(this.isInput&&this.element.val()||this.hasInput&&this.element.find("input").val())){this.setValue()}this.isVisible=false;this.element.trigger({type:"hide",date:this.date})},remove:function(){this._detachEvents();d(document).off("mousedown",this.clickedOutside);this.picker.remove();delete this.picker;delete this.element.data().datetimepicker},getViewDate:function(){return this.viewDate},getDate:function(){var i=this.getUTCDate();if(i===null){return null}return new Date(i.getTime()+(i.getTimezoneOffset()*60000))},getUTCDate:function(){return this.date},getInitialDate:function(){return this.initialDate},setInitialDate:function(i){this.initialDate=i},setDate:function(i){this.setUTCDate(new Date(i.getTime()-(i.getTimezoneOffset()*60000)))},setUTCDate:function(i){if(i>=this.startDate&&i<=this.endDate){this.date=i;this.setValue();this.viewDate=this.date;this.fill()}else{this.element.trigger({type:"outOfRange",date:i,startDate:this.startDate,endDate:this.endDate})}},setFormat:function(j){this.format=c.parseFormat(j,this.formatType);var i;if(this.isInput){i=this.element}else{if(this.component){i=this.element.find("input")}}if(i&&i.val()){this.setValue()}},setValue:function(){var i=this.getFormattedDate();if(!this.isInput){if(this.component){this.element.find("input").val(i)}this.element.data("date",i)}else{this.element.val(i)}if(this.linkField){d("#"+this.linkField).val(this.getFormattedDate(this.linkFormat))}},getFormattedDate:function(i){i=i||this.format;return c.formatDate(this.date,i,this.language,this.formatType,this.timezone)},setStartDate:function(i){this.startDate=i||this.startDate;if(this.startDate.valueOf()!==8639968443048000){this.startDate=c.parseDate(this.startDate,this.format,this.language,this.formatType,this.timezone)}this.update();this.updateNavArrows()},setEndDate:function(i){this.endDate=i||this.endDate;if(this.endDate.valueOf()!==8639968443048000){this.endDate=c.parseDate(this.endDate,this.format,this.language,this.formatType,this.timezone)}this.update();this.updateNavArrows()},setDatesDisabled:function(j){this.datesDisabled=j||[];if(!d.isArray(this.datesDisabled)){this.datesDisabled=this.datesDisabled.split(/,\s*/)}var i=this;this.datesDisabled=d.map(this.datesDisabled,function(k){return c.parseDate(k,i.format,i.language,i.formatType,i.timezone).toDateString()});this.update();this.updateNavArrows()},setTitle:function(i,j){return this.picker.find(i).find("th:eq(1)").text(this.title===false?j:this.title)},setDaysOfWeekDisabled:function(i){this.daysOfWeekDisabled=i||[];if(!d.isArray(this.daysOfWeekDisabled)){this.daysOfWeekDisabled=this.daysOfWeekDisabled.split(/,\s*/)}this.daysOfWeekDisabled=d.map(this.daysOfWeekDisabled,function(j){return parseInt(j,10)});this.update();this.updateNavArrows()},setMinutesDisabled:function(i){this.minutesDisabled=i||[];if(!d.isArray(this.minutesDisabled)){this.minutesDisabled=this.minutesDisabled.split(/,\s*/)}this.minutesDisabled=d.map(this.minutesDisabled,function(j){return parseInt(j,10)});this.update();this.updateNavArrows()},setHoursDisabled:function(i){this.hoursDisabled=i||[];if(!d.isArray(this.hoursDisabled)){this.hoursDisabled=this.hoursDisabled.split(/,\s*/)}this.hoursDisabled=d.map(this.hoursDisabled,function(j){return parseInt(j,10)});this.update();this.updateNavArrows()},place:function(){if(this.isInline){return}if(!this.zIndex){var j=0;d("div").each(function(){var o=parseInt(d(this).css("zIndex"),10);if(o>j){j=o}});this.zIndex=j+10}var n,m,l,k;if(this.container instanceof d){k=this.container.offset()}else{k=d(this.container).offset()}if(this.component){n=this.component.offset();l=n.left;if(this.pickerPosition==="bottom-left"||this.pickerPosition==="top-left"){l+=this.component.outerWidth()-this.picker.outerWidth()}}else{n=this.element.offset();l=n.left;if(this.pickerPosition==="bottom-left"||this.pickerPosition==="top-left"){l+=this.element.outerWidth()-this.picker.outerWidth()}}var i=document.body.clientWidth||window.innerWidth;if(l+220>i){l=i-220}if(this.pickerPosition==="top-left"||this.pickerPosition==="top-right"){m=n.top-this.picker.outerHeight()}else{m=n.top+this.height}m=m-k.top;l=l-k.left;this.picker.css({top:m,left:l,zIndex:this.zIndex})},hour_minute:"^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]",update:function(){var i,j=false;if(arguments&&arguments.length&&(typeof arguments[0]==="string"||arguments[0] instanceof Date)){i=arguments[0];j=true}else{i=(this.isInput?this.element.val():this.element.find("input").val())||this.element.data("date")||this.initialDate;if(typeof i==="string"){i=i.replace(/^\s+|\s+$/g,"")}}if(!i){i=new Date();j=false}if(typeof i==="string"){if(new RegExp(this.hour_minute).test(i)||new RegExp(this.hour_minute+":[0-5][0-9]").test(i)){i=this.getDate()}}this.date=c.parseDate(i,this.format,this.language,this.formatType,this.timezone);if(j){this.setValue()}if(this.date<this.startDate){this.viewDate=new Date(this.startDate)}else{if(this.date>this.endDate){this.viewDate=new Date(this.endDate)}else{this.viewDate=new Date(this.date)}}this.fill()},fillDow:function(){var i=this.weekStart,j="<tr>";while(i<this.weekStart+7){j+='<th class="dow">'+e[this.language].daysMin[(i++)%7]+"</th>"}j+="</tr>";this.picker.find(".datetimepicker-days thead").append(j)},fillMonths:function(){var l="";var m=new Date(this.viewDate);for(var k=0;k<12;k++){m.setUTCMonth(k);var j=this.onRenderMonth(m);l+='<span class="'+j.join(" ")+'">'+e[this.language].monthsShort[k]+"</span>"}this.picker.find(".datetimepicker-months td").html(l)},fill:function(){if(!this.date||!this.viewDate){return}var E=new Date(this.viewDate),t=E.getUTCFullYear(),G=E.getUTCMonth(),n=E.getUTCDate(),A=E.getUTCHours(),w=this.startDate.getUTCFullYear(),B=this.startDate.getUTCMonth(),p=this.endDate.getUTCFullYear(),x=this.endDate.getUTCMonth()+1,q=(new h(this.date.getUTCFullYear(),this.date.getUTCMonth(),this.date.getUTCDate())).valueOf(),D=new Date();this.setTitle(".datetimepicker-days",e[this.language].months[G]+" "+t);if(this.formatViewType==="time"){var k=this.getFormattedDate();this.setTitle(".datetimepicker-hours",k);this.setTitle(".datetimepicker-minutes",k)}else{this.setTitle(".datetimepicker-hours",n+" "+e[this.language].months[G]+" "+t);this.setTitle(".datetimepicker-minutes",n+" "+e[this.language].months[G]+" "+t)}this.picker.find("tfoot th.today").text(e[this.language].today||e.en.today).toggle(this.todayBtn!==false);this.picker.find("tfoot th.clear").text(e[this.language].clear||e.en.clear).toggle(this.clearBtn!==false);this.updateNavArrows();this.fillMonths();var I=h(t,G-1,28,0,0,0,0),z=c.getDaysInMonth(I.getUTCFullYear(),I.getUTCMonth());I.setUTCDate(z);I.setUTCDate(z-(I.getUTCDay()-this.weekStart+7)%7);var j=new Date(I);j.setUTCDate(j.getUTCDate()+42);j=j.valueOf();var r=[];var F;while(I.valueOf()<j){if(I.getUTCDay()===this.weekStart){r.push("<tr>")}F=this.onRenderDay(I);if(I.getUTCFullYear()<t||(I.getUTCFullYear()===t&&I.getUTCMonth()<G)){F.push("old")}else{if(I.getUTCFullYear()>t||(I.getUTCFullYear()===t&&I.getUTCMonth()>G)){F.push("new")}}if(this.todayHighlight&&I.getUTCFullYear()===D.getFullYear()&&I.getUTCMonth()===D.getMonth()&&I.getUTCDate()===D.getDate()){F.push("today")}if(I.valueOf()===q){F.push("active")}if((I.valueOf()+86400000)<=this.startDate||I.valueOf()>this.endDate||d.inArray(I.getUTCDay(),this.daysOfWeekDisabled)!==-1||d.inArray(I.toDateString(),this.datesDisabled)!==-1){F.push("disabled")}r.push('<td class="'+F.join(" ")+'">'+I.getUTCDate()+"</td>");if(I.getUTCDay()===this.weekEnd){r.push("</tr>")}I.setUTCDate(I.getUTCDate()+1)}this.picker.find(".datetimepicker-days tbody").empty().append(r.join(""));r=[];var u="",C="",s="";var l=this.hoursDisabled||[];E=new Date(this.viewDate);for(var y=0;y<24;y++){E.setUTCHours(y);F=this.onRenderHour(E);if(l.indexOf(y)!==-1){F.push("disabled")}var v=h(t,G,n,y);if((v.valueOf()+3600000)<=this.startDate||v.valueOf()>this.endDate){F.push("disabled")}else{if(A===y){F.push("active")}}if(this.showMeridian&&e[this.language].meridiem.length===2){C=(y<12?e[this.language].meridiem[0]:e[this.language].meridiem[1]);if(C!==s){if(s!==""){r.push("</fieldset>")}r.push('<fieldset class="hour"><legend>'+C.toUpperCase()+"</legend>")}s=C;u=(y%12?y%12:12);if(y<12){F.push("hour_am")}else{F.push("hour_pm")}r.push('<span class="'+F.join(" ")+'">'+u+"</span>");if(y===23){r.push("</fieldset>")}}else{u=y+":00";r.push('<span class="'+F.join(" ")+'">'+u+"</span>")}}this.picker.find(".datetimepicker-hours td").html(r.join(""));r=[];u="";C="";s="";var m=this.minutesDisabled||[];E=new Date(this.viewDate);for(var y=0;y<60;y+=this.minuteStep){if(m.indexOf(y)!==-1){continue}E.setUTCMinutes(y);E.setUTCSeconds(0);F=this.onRenderMinute(E);if(this.showMeridian&&e[this.language].meridiem.length===2){C=(A<12?e[this.language].meridiem[0]:e[this.language].meridiem[1]);if(C!==s){if(s!==""){r.push("</fieldset>")}r.push('<fieldset class="minute"><legend>'+C.toUpperCase()+"</legend>")}s=C;u=(A%12?A%12:12);r.push('<span class="'+F.join(" ")+'">'+u+":"+(y<10?"0"+y:y)+"</span>");if(y===59){r.push("</fieldset>")}}else{u=y+":00";r.push('<span class="'+F.join(" ")+'">'+A+":"+(y<10?"0"+y:y)+"</span>")}}this.picker.find(".datetimepicker-minutes td").html(r.join(""));var J=this.date.getUTCFullYear();var o=this.setTitle(".datetimepicker-months",t).end().find(".month").removeClass("active");if(J===t){o.eq(this.date.getUTCMonth()).addClass("active")}if(t<w||t>p){o.addClass("disabled")}if(t===w){o.slice(0,B).addClass("disabled")}if(t===p){o.slice(x).addClass("disabled")}r="";t=parseInt(t/10,10)*10;var H=this.setTitle(".datetimepicker-years",t+"-"+(t+9)).end().find("td");t-=1;E=new Date(this.viewDate);for(var y=-1;y<11;y++){E.setUTCFullYear(t);F=this.onRenderYear(E);if(y===-1||y===10){F.push(b)}r+='<span class="'+F.join(" ")+'">'+t+"</span>";t+=1}H.html(r);this.place()},updateNavArrows:function(){var m=new Date(this.viewDate),k=m.getUTCFullYear(),l=m.getUTCMonth(),j=m.getUTCDate(),i=m.getUTCHours();switch(this.viewMode){case 0:if(k<=this.startDate.getUTCFullYear()&&l<=this.startDate.getUTCMonth()&&j<=this.startDate.getUTCDate()&&i<=this.startDate.getUTCHours()){this.picker.find(".prev").css({visibility:"hidden"})}else{this.picker.find(".prev").css({visibility:"visible"})}if(k>=this.endDate.getUTCFullYear()&&l>=this.endDate.getUTCMonth()&&j>=this.endDate.getUTCDate()&&i>=this.endDate.getUTCHours()){this.picker.find(".next").css({visibility:"hidden"})}else{this.picker.find(".next").css({visibility:"visible"})}break;case 1:if(k<=this.startDate.getUTCFullYear()&&l<=this.startDate.getUTCMonth()&&j<=this.startDate.getUTCDate()){this.picker.find(".prev").css({visibility:"hidden"})}else{this.picker.find(".prev").css({visibility:"visible"})}if(k>=this.endDate.getUTCFullYear()&&l>=this.endDate.getUTCMonth()&&j>=this.endDate.getUTCDate()){this.picker.find(".next").css({visibility:"hidden"})}else{this.picker.find(".next").css({visibility:"visible"})}break;case 2:if(k<=this.startDate.getUTCFullYear()&&l<=this.startDate.getUTCMonth()){this.picker.find(".prev").css({visibility:"hidden"})}else{this.picker.find(".prev").css({visibility:"visible"})}if(k>=this.endDate.getUTCFullYear()&&l>=this.endDate.getUTCMonth()){this.picker.find(".next").css({visibility:"hidden"})}else{this.picker.find(".next").css({visibility:"visible"})}break;case 3:case 4:if(k<=this.startDate.getUTCFullYear()){this.picker.find(".prev").css({visibility:"hidden"})}else{this.picker.find(".prev").css({visibility:"visible"})}if(k>=this.endDate.getUTCFullYear()){this.picker.find(".next").css({visibility:"hidden"})}else{this.picker.find(".next").css({visibility:"visible"})}break}},mousewheel:function(j){j.preventDefault();j.stopPropagation();if(this.wheelPause){return}this.wheelPause=true;var i=j.originalEvent;var l=i.wheelDelta;var k=l>0?1:(l===0)?0:-1;if(this.wheelViewModeNavigationInverseDirection){k=-k}this.showMode(k);setTimeout(d.proxy(function(){this.wheelPause=false},this),this.wheelViewModeNavigationDelay)},click:function(m){m.stopPropagation();m.preventDefault();var n=d(m.target).closest("span, td, th, legend");if(n.is("."+this.icontype)){n=d(n).parent().closest("span, td, th, legend")}if(n.length===1){if(n.is(".disabled")){this.element.trigger({type:"outOfRange",date:this.viewDate,startDate:this.startDate,endDate:this.endDate});return}switch(n[0].nodeName.toLowerCase()){case"th":switch(n[0].className){case"switch":this.showMode(1);break;case"prev":case"next":var i=c.modes[this.viewMode].navStep*(n[0].className==="prev"?-1:1);switch(this.viewMode){case 0:this.viewDate=this.moveHour(this.viewDate,i);break;case 1:this.viewDate=this.moveDate(this.viewDate,i);break;case 2:this.viewDate=this.moveMonth(this.viewDate,i);break;case 3:case 4:this.viewDate=this.moveYear(this.viewDate,i);break}this.fill();this.element.trigger({type:n[0].className+":"+this.convertViewModeText(this.viewMode),date:this.viewDate,startDate:this.startDate,endDate:this.endDate});break;case"clear":this.reset();if(this.autoclose){this.hide()}break;case"today":var j=new Date();j=h(j.getFullYear(),j.getMonth(),j.getDate(),j.getHours(),j.getMinutes(),j.getSeconds(),0);if(j<this.startDate){j=this.startDate}else{if(j>this.endDate){j=this.endDate}}this.viewMode=this.startViewMode;this.showMode(0);this._setDate(j);this.fill();if(this.autoclose){this.hide()}break}break;case"span":if(!n.is(".disabled")){var p=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),q=this.viewDate.getUTCDate(),r=this.viewDate.getUTCHours(),k=this.viewDate.getUTCMinutes(),s=this.viewDate.getUTCSeconds();if(n.is(".month")){this.viewDate.setUTCDate(1);o=n.parent().find("span").index(n);q=this.viewDate.getUTCDate();this.viewDate.setUTCMonth(o);this.element.trigger({type:"changeMonth",date:this.viewDate});if(this.viewSelect>=3){this._setDate(h(p,o,q,r,k,s,0))}}else{if(n.is(".year")){this.viewDate.setUTCDate(1);p=parseInt(n.text(),10)||0;this.viewDate.setUTCFullYear(p);this.element.trigger({type:"changeYear",date:this.viewDate});if(this.viewSelect>=4){this._setDate(h(p,o,q,r,k,s,0))}}else{if(n.is(".hour")){r=parseInt(n.text(),10)||0;if(n.hasClass("hour_am")||n.hasClass("hour_pm")){if(r===12&&n.hasClass("hour_am")){r=0}else{if(r!==12&&n.hasClass("hour_pm")){r+=12}}}this.viewDate.setUTCHours(r);this.element.trigger({type:"changeHour",date:this.viewDate});if(this.viewSelect>=1){this._setDate(h(p,o,q,r,k,s,0))}}else{if(n.is(".minute")){k=parseInt(n.text().substr(n.text().indexOf(":")+1),10)||0;this.viewDate.setUTCMinutes(k);this.element.trigger({type:"changeMinute",date:this.viewDate});if(this.viewSelect>=0){this._setDate(h(p,o,q,r,k,s,0))}}}}}if(this.viewMode!==0){var l=this.viewMode;this.showMode(-1);this.fill();if(l===this.viewMode&&this.autoclose){this.hide()}}else{this.fill();if(this.autoclose){this.hide()}}}break;case"td":if(n.is(".day")&&!n.is(".disabled")){var q=parseInt(n.text(),10)||1;var p=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),r=this.viewDate.getUTCHours(),k=this.viewDate.getUTCMinutes(),s=this.viewDate.getUTCSeconds();if(n.is(".old")){if(o===0){o=11;p-=1}else{o-=1}}else{if(n.is(".new")){if(o===11){o=0;p+=1}else{o+=1}}}this.viewDate.setUTCFullYear(p);this.viewDate.setUTCMonth(o,q);this.element.trigger({type:"changeDay",date:this.viewDate});if(this.viewSelect>=2){this._setDate(h(p,o,q,r,k,s,0))}}var l=this.viewMode;this.showMode(-1);this.fill();if(l===this.viewMode&&this.autoclose){this.hide()}break}}},_setDate:function(i,k){if(!k||k==="date"){this.date=i}if(!k||k==="view"){this.viewDate=i}this.fill();this.setValue();var j;if(this.isInput){j=this.element}else{if(this.component){j=this.element.find("input")}}if(j){j.change()}this.element.trigger({type:"changeDate",date:this.getDate()});if(i===null){this.date=this.viewDate}},moveMinute:function(j,i){if(!i){return j}var k=new Date(j.valueOf());k.setUTCMinutes(k.getUTCMinutes()+(i*this.minuteStep));return k},moveHour:function(j,i){if(!i){return j}var k=new Date(j.valueOf());k.setUTCHours(k.getUTCHours()+i);return k},moveDate:function(j,i){if(!i){return j}var k=new Date(j.valueOf());k.setUTCDate(k.getUTCDate()+i);return k},moveMonth:function(j,k){if(!k){return j}var n=new Date(j.valueOf()),r=n.getUTCDate(),o=n.getUTCMonth(),m=Math.abs(k),q,p;k=k>0?1:-1;if(m===1){p=k===-1?function(){return n.getUTCMonth()===o}:function(){return n.getUTCMonth()!==q};q=o+k;n.setUTCMonth(q);if(q<0||q>11){q=(q+12)%12}}else{for(var l=0;l<m;l++){n=this.moveMonth(n,k)}q=n.getUTCMonth();n.setUTCDate(r);p=function(){return q!==n.getUTCMonth()}}while(p()){n.setUTCDate(--r);n.setUTCMonth(q)}return n},moveYear:function(j,i){return this.moveMonth(j,i*12)},dateWithinRange:function(i){return i>=this.startDate&&i<=this.endDate},keydown:function(o){if(this.picker.is(":not(:visible)")){if(o.keyCode===27){this.show()}return}var k=false,j,i,n;switch(o.keyCode){case 27:this.hide();o.preventDefault();break;case 37:case 39:if(!this.keyboardNavigation){break}j=o.keyCode===37?-1:1;var m=this.viewMode;if(o.ctrlKey){m+=2}else{if(o.shiftKey){m+=1}}if(m===4){i=this.moveYear(this.date,j);n=this.moveYear(this.viewDate,j)}else{if(m===3){i=this.moveMonth(this.date,j);n=this.moveMonth(this.viewDate,j)}else{if(m===2){i=this.moveDate(this.date,j);n=this.moveDate(this.viewDate,j)}else{if(m===1){i=this.moveHour(this.date,j);n=this.moveHour(this.viewDate,j)}else{if(m===0){i=this.moveMinute(this.date,j);n=this.moveMinute(this.viewDate,j)}}}}}if(this.dateWithinRange(i)){this.date=i;this.viewDate=n;this.setValue();this.update();o.preventDefault();k=true}break;case 38:case 40:if(!this.keyboardNavigation){break}j=o.keyCode===38?-1:1;m=this.viewMode;if(o.ctrlKey){m+=2}else{if(o.shiftKey){m+=1}}if(m===4){i=this.moveYear(this.date,j);n=this.moveYear(this.viewDate,j)}else{if(m===3){i=this.moveMonth(this.date,j);n=this.moveMonth(this.viewDate,j)}else{if(m===2){i=this.moveDate(this.date,j*7);n=this.moveDate(this.viewDate,j*7)}else{if(m===1){if(this.showMeridian){i=this.moveHour(this.date,j*6);n=this.moveHour(this.viewDate,j*6)}else{i=this.moveHour(this.date,j*4);n=this.moveHour(this.viewDate,j*4)}}else{if(m===0){i=this.moveMinute(this.date,j*4);n=this.moveMinute(this.viewDate,j*4)}}}}}if(this.dateWithinRange(i)){this.date=i;this.viewDate=n;this.setValue();this.update();o.preventDefault();k=true}break;case 13:if(this.viewMode!==0){var p=this.viewMode;this.showMode(-1);this.fill();if(p===this.viewMode&&this.autoclose){this.hide()}}else{this.fill();if(this.autoclose){this.hide()}}o.preventDefault();break;case 9:this.hide();break}if(k){var l;if(this.isInput){l=this.element}else{if(this.component){l=this.element.find("input")}}if(l){l.change()}this.element.trigger({type:"changeDate",date:this.getDate()})}},showMode:function(i){if(i){var j=Math.max(0,Math.min(c.modes.length-1,this.viewMode+i));if(j>=this.minView&&j<=this.maxView){this.element.trigger({type:"changeMode",date:this.viewDate,oldViewMode:this.viewMode,newViewMode:j});this.viewMode=j}}this.picker.find(">div").hide().filter(".datetimepicker-"+c.modes[this.viewMode].clsName).css("display","block");this.updateNavArrows()},reset:function(){this._setDate(null,"date")},convertViewModeText:function(i){switch(i){case 4:return"decade";case 3:return"year";case 2:return"month";case 1:return"day";case 0:return"hour"}}};var b=d.fn.datetimepicker;d.fn.datetimepicker=function(k){var i=Array.apply(null,arguments);i.shift();var j;this.each(function(){var n=d(this),m=n.data("datetimepicker"),l=typeof k==="object"&&k;if(!m){n.data("datetimepicker",(m=new g(this,d.extend({},d.fn.datetimepicker.defaults,l))))}if(typeof k==="string"&&typeof m[k]==="function"){j=m[k].apply(m,i);if(j!==f){return false}}});if(j!==f){return j}else{return this}};d.fn.datetimepicker.defaults={};d.fn.datetimepicker.Constructor=g;var e=d.fn.datetimepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat","Sun"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa","Su"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],meridiem:["am","pm"],suffix:["st","nd","rd","th"],today:"Today",clear:"Clear"}};var c={modes:[{clsName:"minutes",navFnc:"Hours",navStep:1},{clsName:"hours",navFnc:"Date",navStep:1},{clsName:"days",navFnc:"Month",navStep:1},{clsName:"months",navFnc:"FullYear",navStep:1},{clsName:"years",navFnc:"FullYear",navStep:10}],isLeapYear:function(i){return(((i%4===0)&&(i%100!==0))||(i%400===0))},getDaysInMonth:function(i,j){return[31,(c.isLeapYear(i)?29:28),31,30,31,30,31,31,30,31,30,31][j]},getDefaultFormat:function(i,j){if(i==="standard"){if(j==="input"){return"yyyy-mm-dd hh:ii"}else{return"yyyy-mm-dd hh:ii:ss"}}else{if(i==="php"){if(j==="input"){return"Y-m-d H:i"}else{return"Y-m-d H:i:s"}}else{throw new Error("Invalid format type.")}}},validParts:function(i){if(i==="standard"){return/t|hh?|HH?|p|P|z|Z|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g}else{if(i==="php"){return/[dDjlNwzFmMnStyYaABgGhHis]/g}else{throw new Error("Invalid format type.")}}},nonpunctuation:/[^ -\/:-@\[-`{-~\t\n\rTZ]+/g,parseFormat:function(l,j){var i=l.replace(this.validParts(j),"\0").split("\0"),k=l.match(this.validParts(j));if(!i||!i.length||!k||k.length===0){throw new Error("Invalid date format.")}return{separators:i,parts:k}},parseDate:function(A,y,v,j,r){if(A instanceof Date){var u=new Date(A.valueOf()-A.getTimezoneOffset()*60000);u.setMilliseconds(0);return u}if(/^\d{4}\-\d{1,2}\-\d{1,2}$/.test(A)){y=this.parseFormat("yyyy-mm-dd",j)}if(/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}$/.test(A)){y=this.parseFormat("yyyy-mm-dd hh:ii",j)}if(/^\d{4}\-\d{1,2}\-\d{1,2}[T ]\d{1,2}\:\d{1,2}\:\d{1,2}[Z]{0,1}$/.test(A)){y=this.parseFormat("yyyy-mm-dd hh:ii:ss",j)}if(/^[-+]\d+[dmwy]([\s,]+[-+]\d+[dmwy])*$/.test(A)){var l=/([-+]\d+)([dmwy])/,q=A.match(/([-+]\d+)([dmwy])/g),t,p;A=new Date();for(var x=0;x<q.length;x++){t=l.exec(q[x]);p=parseInt(t[1]);switch(t[2]){case"d":A.setUTCDate(A.getUTCDate()+p);break;case"m":A=g.prototype.moveMonth.call(g.prototype,A,p);break;case"w":A.setUTCDate(A.getUTCDate()+p*7);break;case"y":A=g.prototype.moveYear.call(g.prototype,A,p);break}}return h(A.getUTCFullYear(),A.getUTCMonth(),A.getUTCDate(),A.getUTCHours(),A.getUTCMinutes(),A.getUTCSeconds(),0)}var q=A&&A.toString().match(this.nonpunctuation)||[],A=new Date(0,0,0,0,0,0,0),m={},z=["hh","h","ii","i","ss","s","yyyy","yy","M","MM","m","mm","D","DD","d","dd","H","HH","p","P","z","Z"],o={hh:function(s,i){return s.setUTCHours(i)},h:function(s,i){return s.setUTCHours(i)},HH:function(s,i){return s.setUTCHours(i===12?0:i)},H:function(s,i){return s.setUTCHours(i===12?0:i)},ii:function(s,i){return s.setUTCMinutes(i)},i:function(s,i){return s.setUTCMinutes(i)},ss:function(s,i){return s.setUTCSeconds(i)},s:function(s,i){return s.setUTCSeconds(i)},yyyy:function(s,i){return s.setUTCFullYear(i)},yy:function(s,i){return s.setUTCFullYear(2000+i)},m:function(s,i){i-=1;while(i<0){i+=12}i%=12;s.setUTCMonth(i);while(s.getUTCMonth()!==i){if(isNaN(s.getUTCMonth())){return s}else{s.setUTCDate(s.getUTCDate()-1)}}return s},d:function(s,i){return s.setUTCDate(i)},p:function(s,i){return s.setUTCHours(i===1?s.getUTCHours()+12:s.getUTCHours())},z:function(){return r}},B,k,t;o.M=o.MM=o.mm=o.m;o.dd=o.d;o.P=o.p;o.Z=o.z;A=h(A.getFullYear(),A.getMonth(),A.getDate(),A.getHours(),A.getMinutes(),A.getSeconds());if(q.length===y.parts.length){for(var x=0,w=y.parts.length;x<w;x++){B=parseInt(q[x],10);t=y.parts[x];if(isNaN(B)){switch(t){case"MM":k=d(e[v].months).filter(function(){var i=this.slice(0,q[x].length),s=q[x].slice(0,i.length);return i===s});B=d.inArray(k[0],e[v].months)+1;break;case"M":k=d(e[v].monthsShort).filter(function(){var i=this.slice(0,q[x].length),s=q[x].slice(0,i.length);return i.toLowerCase()===s.toLowerCase()});B=d.inArray(k[0],e[v].monthsShort)+1;break;case"p":case"P":B=d.inArray(q[x].toLowerCase(),e[v].meridiem);break;case"z":case"Z":r;break}}m[t]=B}for(var x=0,n;x<z.length;x++){n=z[x];if(n in m&&!isNaN(m[n])){o[n](A,m[n])}}}return A},formatDate:function(l,q,m,p,o){if(l===null){return""}var k;if(p==="standard"){k={t:l.getTime(),yy:l.getUTCFullYear().toString().substring(2),yyyy:l.getUTCFullYear(),m:l.getUTCMonth()+1,M:e[m].monthsShort[l.getUTCMonth()],MM:e[m].months[l.getUTCMonth()],d:l.getUTCDate(),D:e[m].daysShort[l.getUTCDay()],DD:e[m].days[l.getUTCDay()],p:(e[m].meridiem.length===2?e[m].meridiem[l.getUTCHours()<12?0:1]:""),h:l.getUTCHours(),i:l.getUTCMinutes(),s:l.getUTCSeconds(),z:o};if(e[m].meridiem.length===2){k.H=(k.h%12===0?12:k.h%12)}else{k.H=k.h}k.HH=(k.H<10?"0":"")+k.H;k.P=k.p.toUpperCase();k.Z=k.z;k.hh=(k.h<10?"0":"")+k.h;k.ii=(k.i<10?"0":"")+k.i;k.ss=(k.s<10?"0":"")+k.s;k.dd=(k.d<10?"0":"")+k.d;k.mm=(k.m<10?"0":"")+k.m}else{if(p==="php"){k={y:l.getUTCFullYear().toString().substring(2),Y:l.getUTCFullYear(),F:e[m].months[l.getUTCMonth()],M:e[m].monthsShort[l.getUTCMonth()],n:l.getUTCMonth()+1,t:c.getDaysInMonth(l.getUTCFullYear(),l.getUTCMonth()),j:l.getUTCDate(),l:e[m].days[l.getUTCDay()],D:e[m].daysShort[l.getUTCDay()],w:l.getUTCDay(),N:(l.getUTCDay()===0?7:l.getUTCDay()),S:(l.getUTCDate()%10<=e[m].suffix.length?e[m].suffix[l.getUTCDate()%10-1]:""),a:(e[m].meridiem.length===2?e[m].meridiem[l.getUTCHours()<12?0:1]:""),g:(l.getUTCHours()%12===0?12:l.getUTCHours()%12),G:l.getUTCHours(),i:l.getUTCMinutes(),s:l.getUTCSeconds()};k.m=(k.n<10?"0":"")+k.n;k.d=(k.j<10?"0":"")+k.j;k.A=k.a.toString().toUpperCase();k.h=(k.g<10?"0":"")+k.g;k.H=(k.G<10?"0":"")+k.G;k.i=(k.i<10?"0":"")+k.i;k.s=(k.s<10?"0":"")+k.s}else{throw new Error("Invalid format type.")}}var l=[],r=d.extend([],q.separators);for(var n=0,j=q.parts.length;n<j;n++){if(r.length){l.push(r.shift())}l.push(k[q.parts[n]])}if(r.length){l.push(r.shift())}return l.join("")},convertViewMode:function(i){switch(i){case 4:case"decade":i=4;break;case 3:case"year":i=3;break;case 2:case"month":i=2;break;case 1:case"day":i=1;break;case 0:case"hour":i=0;break}return i},headTemplate:'<thead><tr><th class="prev"><i class="{iconType} {leftArrow}"/></th><th colspan="5" class="switch"></th><th class="next"><i class="{iconType} {rightArrow}"/></th></tr></thead>',headTemplateV3:'<thead><tr><th class="prev"><span class="{iconType} {leftArrow}"></span> </th><th colspan="5" class="switch"></th><th class="next"><span class="{iconType} {rightArrow}"></span> </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>'};c.template='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+c.headTemplate+c.contTemplate+c.footTemplate+'</table></div><div class="datetimepicker-hours"><table class=" table-condensed">'+c.headTemplate+c.contTemplate+c.footTemplate+'</table></div><div class="datetimepicker-days"><table class=" table-condensed">'+c.headTemplate+"<tbody></tbody>"+c.footTemplate+'</table></div><div class="datetimepicker-months"><table class="table-condensed">'+c.headTemplate+c.contTemplate+c.footTemplate+'</table></div><div class="datetimepicker-years"><table class="table-condensed">'+c.headTemplate+c.contTemplate+c.footTemplate+"</table></div></div>";c.templateV3='<div class="datetimepicker"><div class="datetimepicker-minutes"><table class=" table-condensed">'+c.headTemplateV3+c.contTemplate+c.footTemplate+'</table></div><div class="datetimepicker-hours"><table class=" table-condensed">'+c.headTemplateV3+c.contTemplate+c.footTemplate+'</table></div><div class="datetimepicker-days"><table class=" table-condensed">'+c.headTemplateV3+"<tbody></tbody>"+c.footTemplate+'</table></div><div class="datetimepicker-months"><table class="table-condensed">'+c.headTemplateV3+c.contTemplate+c.footTemplate+'</table></div><div class="datetimepicker-years"><table class="table-condensed">'+c.headTemplateV3+c.contTemplate+c.footTemplate+"</table></div></div>";d.fn.datetimepicker.DPGlobal=c;d.fn.datetimepicker.noConflict=function(){d.fn.datetimepicker=b;return this};d(document).on("focus.datetimepicker.data-api click.datetimepicker.data-api",'[data-provide="datetimepicker"]',function(j){var i=d(this);if(i.data("datetimepicker")){return}j.preventDefault();i.datetimepicker("show")});d(function(){d('[data-provide="datetimepicker-inline"]').datetimepicker()})}));                                                                                                                                                                                                     

/* Moment JS */
(function(b,a){typeof exports==="object"&&typeof module!=="undefined"?module.exports=a():typeof define==="function"&&define.amd?define(a):b.moment=a()}(this,(function(){var ca;function eB(){return ca.apply(null,arguments)}function aR(e3){ca=e3}function V(e3){return e3 instanceof Array||Object.prototype.toString.call(e3)==="[object Array]"}function v(e3){return e3!=null&&Object.prototype.toString.call(e3)==="[object Object]"}function ch(e4){if(Object.getOwnPropertyNames){return(Object.getOwnPropertyNames(e4).length===0)}else{var e3;for(e3 in e4){if(e4.hasOwnProperty(e3)){return false}}return true}}function F(e3){return e3===void 0}function q(e3){return typeof e3==="number"||Object.prototype.toString.call(e3)==="[object Number]"}function eu(e3){return e3 instanceof Date||Object.prototype.toString.call(e3)==="[object Date]"}function bn(e3,e6){var e5=[],e4;for(e4=0;e4<e3.length;++e4){e5.push(e6(e3[e4],e4))}return e5}function dk(e4,e3){return Object.prototype.hasOwnProperty.call(e4,e3)}function eW(e4,e3){for(var e5 in e3){if(dk(e3,e5)){e4[e5]=e3[e5]}}if(dk(e3,"toString")){e4.toString=e3.toString}if(dk(e3,"valueOf")){e4.valueOf=e3.valueOf}return e4}function cv(e5,e6,e3,e4){return ac(e5,e6,e3,e4,true).utc()}function cr(){return{empty:false,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:false,invalidMonth:null,invalidFormat:false,userInvalidated:false,iso:false,parsedDateParts:[],meridiem:null,rfc2822:false,weekdayMismatch:false}}function bb(e3){if(e3._pf==null){e3._pf=cr()}return e3._pf}var dp;if(Array.prototype.some){dp=Array.prototype.some}else{dp=function(e4){var e6=Object(this);var e3=e6.length>>>0;for(var e5=0;e5<e3;e5++){if(e5 in e6&&e4.call(this,e6[e5],e5,e6)){return true}}return false}}function an(e4){if(e4._isValid==null){var e5=bb(e4);var e6=dp.call(e5.parsedDateParts,function(e7){return e7!=null});var e3=!isNaN(e4._d.getTime())&&e5.overflow<0&&!e5.empty&&!e5.invalidMonth&&!e5.invalidWeekday&&!e5.weekdayMismatch&&!e5.nullInput&&!e5.invalidFormat&&!e5.userInvalidated&&(!e5.meridiem||(e5.meridiem&&e6));if(e4._strict){e3=e3&&e5.charsLeftOver===0&&e5.unusedTokens.length===0&&e5.bigHour===undefined}if(Object.isFrozen==null||!Object.isFrozen(e4)){e4._isValid=e3}else{return e3}}return e4._isValid}function N(e4){var e3=cv(NaN);if(e4!=null){eW(bb(e3),e4)}else{bb(e3).userInvalidated=true}return e3}var cS=eB.momentProperties=[];function p(e7,e6){var e3,e5,e4;if(!F(e6._isAMomentObject)){e7._isAMomentObject=e6._isAMomentObject}if(!F(e6._i)){e7._i=e6._i}if(!F(e6._f)){e7._f=e6._f}if(!F(e6._l)){e7._l=e6._l}if(!F(e6._strict)){e7._strict=e6._strict}if(!F(e6._tzm)){e7._tzm=e6._tzm}if(!F(e6._isUTC)){e7._isUTC=e6._isUTC}if(!F(e6._offset)){e7._offset=e6._offset}if(!F(e6._pf)){e7._pf=bb(e6)}if(!F(e6._locale)){e7._locale=e6._locale}if(cS.length>0){for(e3=0;e3<cS.length;e3++){e5=cS[e3];e4=e6[e5];if(!F(e4)){e7[e5]=e4}}}return e7}var dd=false;function ep(e3){p(this,e3);this._d=new Date(e3._d!=null?e3._d.getTime():NaN);if(!this.isValid()){this._d=new Date(NaN)}if(dd===false){dd=true;eB.updateOffset(this);dd=false}}function cb(e3){return e3 instanceof ep||(e3!=null&&e3._isAMomentObject!=null)}function dh(e3){if(e3<0){return Math.ceil(e3)||0}else{return Math.floor(e3)}}function cP(e3){var e5=+e3,e4=0;if(e5!==0&&isFinite(e5)){e4=dh(e5)}return e4}function bZ(e8,e7,e4){var e3=Math.min(e8.length,e7.length),e5=Math.abs(e8.length-e7.length),e9=0,e6;for(e6=0;e6<e3;e6++){if((e4&&e8[e6]!==e7[e6])||(!e4&&cP(e8[e6])!==cP(e7[e6]))){e9++}}return e9+e5}function dc(e3){if(eB.suppressDeprecationWarnings===false&&(typeof console!=="undefined")&&console.warn){console.warn("Deprecation warning: "+e3)}}function ee(e4,e3){var e5=true;return eW(function(){if(eB.deprecationHandler!=null){eB.deprecationHandler(null,e4)}if(e5){var e7=[];var e6;for(var e9=0;e9<arguments.length;e9++){e6="";if(typeof arguments[e9]==="object"){e6+="\n["+e9+"] ";for(var e8 in arguments[0]){e6+=e8+": "+arguments[0][e8]+", "}e6=e6.slice(0,-2)}else{e6=arguments[e9]}e7.push(e6)}dc(e4+"\nArguments: "+Array.prototype.slice.call(e7).join("")+"\n"+(new Error()).stack);e5=false}return e3.apply(this,arguments)},e3)}var aa={};function eO(e3,e4){if(eB.deprecationHandler!=null){eB.deprecationHandler(e3,e4)}if(!aa[e3]){dc(e4);aa[e3]=true}}eB.suppressDeprecationWarnings=false;eB.deprecationHandler=null;function a6(e3){return e3 instanceof Function||Object.prototype.toString.call(e3)==="[object Function]"}function dm(e3){var e5,e4;for(e4 in e3){e5=e3[e4];if(a6(e5)){this[e4]=e5}else{this["_"+e4]=e5}}this._config=e3;this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+(/\d{1,2}/).source)}function d6(e5,e3){var e4=eW({},e5),e6;for(e6 in e3){if(dk(e3,e6)){if(v(e5[e6])&&v(e3[e6])){e4[e6]={};eW(e4[e6],e5[e6]);eW(e4[e6],e3[e6])}else{if(e3[e6]!=null){e4[e6]=e3[e6]}else{delete e4[e6]}}}}for(e6 in e5){if(dk(e5,e6)&&!dk(e3,e6)&&v(e5[e6])){e4[e6]=eW({},e4[e6])}}return e4}function cC(e3){if(e3!=null){this.set(e3)}}var bW;if(Object.keys){bW=Object.keys}else{bW=function(e5){var e4,e3=[];for(e4 in e5){if(dk(e5,e4)){e3.push(e4)}}return e3}}var cj={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function d(e5,e6,e4){var e3=this._calendar[e5]||this._calendar.sameElse;return a6(e3)?e3.call(e6,e4):e3}var dW={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function cJ(e3){var e4=this._longDateFormat[e3],e5=this._longDateFormat[e3.toUpperCase()];if(e4||!e5){return e4}this._longDateFormat[e3]=e5.replace(/MMMM|MM|DD|dddd/g,function(e6){return e6.slice(1)});return this._longDateFormat[e3]}var al="Invalid date";function en(){return this._invalidDate}var b6="%d";var e1=/\d{1,2}/;function ez(e3){return this._ordinal.replace("%d",e3)}var ey={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function T(e6,e5,e4,e7){var e3=this._relativeTime[e4];return(a6(e3))?e3(e6,e5,e4,e7):e3.replace(/%d/i,e6)}function dX(e5,e3){var e4=this._relativeTime[e5>0?"future":"past"];return a6(e4)?e4(e3):e4.replace(/%s/i,e3)}var cK={};function ce(e5,e3){var e4=e5.toLowerCase();cK[e4]=cK[e4+"s"]=cK[e3]=e5}function cO(e3){return typeof e3==="string"?cK[e3]||cK[e3.toLowerCase()]:undefined}function dK(e5){var e4={},e3,e6;for(e6 in e5){if(dk(e5,e6)){e3=cO(e6);if(e3){e4[e3]=e5[e6]}}}return e4}var bs={};function dV(e4,e3){bs[e4]=e3}function bp(e3){var e4=[];for(var e5 in e3){e4.push({unit:e5,priority:bs[e5]})}e4.sort(function(e7,e6){return e7.priority-e6.priority});return e4}function co(e8,e7,e4){var e6=""+Math.abs(e8),e5=e7-e6.length,e3=e8>=0;return(e3?(e4?"+":""):"-")+Math.pow(10,Math.max(0,e5)).toString().substr(1)+e6}var bQ=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;var bP=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g;var bO={};var a9={};function cx(e4,e5,e3,e7){var e6=e7;if(typeof e7==="string"){e6=function(){return this[e7]()}}if(e4){a9[e4]=e6}if(e5){a9[e5[0]]=function(){return co(e6.apply(this,arguments),e5[1],e5[2])}}if(e3){a9[e3]=function(){return this.localeData().ordinal(e6.apply(this,arguments),e4)}}}function aw(e3){if(e3.match(/\[[\s\S]/)){return e3.replace(/^\[|\]$/g,"")}return e3.replace(/\\/g,"")}function bx(e5){var e6=e5.match(bQ),e3,e4;for(e3=0,e4=e6.length;e3<e4;e3++){if(a9[e6[e3]]){e6[e3]=a9[e6[e3]]}else{e6[e3]=aw(e6[e3])}}return function(e9){var e7="",e8;for(e8=0;e8<e4;e8++){e7+=a6(e6[e8])?e6[e8].call(e9,e5):e6[e8]}return e7}}function af(e3,e4){if(!e3.isValid()){return e3.localeData().invalidDate()}e4=bF(e4,e3.localeData());bO[e4]=bO[e4]||bx(e4);return bO[e4](e3)}function bF(e6,e3){var e4=5;function e5(e7){return e3.longDateFormat(e7)||e7}bP.lastIndex=0;while(e4>=0&&bP.test(e6)){e6=e6.replace(bP,e5);bP.lastIndex=0;e4-=1}return e6}var aK=/\d/;var aJ=/\d\d/;var aI=/\d{3}/;var aH=/\d{4}/;var aG=/[+-]?\d{6}/;var aq=/\d\d?/;var ck=/\d\d\d\d?/;var ed=/\d\d\d\d\d\d?/;var ap=/\d{1,3}/;var ao=/\d{1,4}/;var am=/[+-]?\d{1,6}/;var r=/\d+/;var B=/[+-]?\d+/;var bH=/Z|[+-]\d\d:?\d\d/gi;var cE=/Z|[+-]\d\d(?::?\d\d)?/gi;var eP=/[+-]?\d+(\.\d{1,3})?/;var a8=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;var a3={};function bd(e3,e4,e5){a3[e3]=a6(e4)?e4:function(e7,e6){return(e7&&e5)?e5:e4}}function bE(e4,e3){if(!dk(a3,e4)){return new RegExp(di(e4))}return a3[e4](e3._strict,e3._locale)}function di(e3){return cg(e3.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e4,e8,e7,e6,e5){return e8||e7||e6||e5}))}function cg(e3){return e3.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var g={};function bU(e4,e6){var e3,e5=e6;if(typeof e4==="string"){e4=[e4]}if(q(e6)){e5=function(e7,e8){e8[e6]=cP(e7)}}for(e3=0;e3<e4.length;e3++){g[e4[e3]]=e5}}function X(e3,e4){bU(e3,function(e5,e8,e6,e7){e6._w=e6._w||{};e4(e5,e6._w,e6,e7)})}function u(e5,e3,e4){if(e3!=null&&dk(g,e5)){g[e5](e3,e4._a,e4,e5)}}var eQ=0;var i=1;var es=2;var eF=3;var dH=4;var ai=5;var bJ=6;var ci=7;var h=8;cx("Y",0,0,function(){var e3=this.year();return e3<=9999?""+e3:"+"+e3});cx(0,["YY",2],0,function(){return this.year()%100});cx(0,["YYYY",4],0,"year");cx(0,["YYYYY",5],0,"year");cx(0,["YYYYYY",6,true],0,"year");ce("year","y");dV("year",1);bd("Y",B);bd("YY",aq,aJ);bd("YYYY",ao,aH);bd("YYYYY",am,aG);bd("YYYYYY",am,aG);bU(["YYYYY","YYYYYY"],eQ);bU("YYYY",function(e3,e4){e4[eQ]=e3.length===2?eB.parseTwoDigitYear(e3):cP(e3)});bU("YY",function(e3,e4){e4[eQ]=eB.parseTwoDigitYear(e3)});bU("Y",function(e3,e4){e4[eQ]=parseInt(e3,10)});function dF(e3){return dZ(e3)?366:365}function dZ(e3){return(e3%4===0&&e3%100!==0)||e3%400===0}eB.parseTwoDigitYear=function(e3){return cP(e3)+(cP(e3)>68?1900:2000)};var cG=eb("FullYear",true);function cV(){return dZ(this.year())}function eb(e3,e4){return function(e5){if(e5!=null){aM(this,e3,e5);eB.updateOffset(this,e4);return this}else{return dA(this,e3)}}}function dA(e4,e3){return e4.isValid()?e4._d["get"+(e4._isUTC?"UTC":"")+e3]():NaN}function aM(e4,e3,e5){if(e4.isValid()&&!isNaN(e5)){if(e3==="FullYear"&&dZ(e4.year())&&e4.month()===1&&e4.date()===29){e4._d["set"+(e4._isUTC?"UTC":"")+e3](e5,e4.month(),bG(e5,e4.month()))}else{e4._d["set"+(e4._isUTC?"UTC":"")+e3](e5)}}}function az(e3){e3=cO(e3);if(a6(this[e3])){return this[e3]()}return this}function at(e3,e6){if(typeof e3==="object"){e3=dK(e3);var e5=bp(e3);for(var e4=0;e4<e5.length;e4++){this[e5[e4].unit](e3[e5[e4].unit])}}else{e3=cO(e3);if(a6(this[e3])){return this[e3](e6)}}return this}function ea(e4,e3){return((e4%e3)+e3)%e3}var cQ;if(Array.prototype.indexOf){cQ=Array.prototype.indexOf}else{cQ=function(e4){var e3;for(e3=0;e3<this.length;++e3){if(this[e3]===e4){return e3}}return -1}}function bG(e4,e5){if(isNaN(e4)||isNaN(e5)){return NaN}var e3=ea(e5,12);e4+=(e5-e3)/12;return e3===1?(dZ(e4)?29:28):(31-e3%7%2)}cx("M",["MM",2],"Mo",function(){return this.month()+1});cx("MMM",0,0,function(e3){return this.localeData().monthsShort(this,e3)});cx("MMMM",0,0,function(e3){return this.localeData().months(this,e3)});ce("month","M");dV("month",8);bd("M",aq);bd("MM",aq,aJ);bd("MMM",function(e4,e3){return e3.monthsShortRegex(e4)});bd("MMMM",function(e4,e3){return e3.monthsRegex(e4)});bU(["M","MM"],function(e3,e4){e4[i]=cP(e3)-1});bU(["MMM","MMMM"],function(e3,e7,e4,e5){var e6=e4._locale.monthsParse(e3,e5,e4._strict);if(e6!=null){e7[i]=e6}else{bb(e4).invalidMonth=e3}});var b3=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;var P="January_February_March_April_May_June_July_August_September_October_November_December".split("_");function a1(e3,e4){if(!e3){return V(this._months)?this._months:this._months.standalone}return V(this._months)?this._months[e3.month()]:this._months[(this._months.isFormat||b3).test(e4)?"format":"standalone"][e3.month()]}var d0="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function ba(e3,e4){if(!e3){return V(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}return V(this._monthsShort)?this._monthsShort[e3.month()]:this._monthsShort[b3.test(e4)?"format":"standalone"][e3.month()]}function bC(e4,e9,e3){var e6,e7,e8,e5=e4.toLocaleLowerCase();if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[];for(e6=0;e6<12;++e6){e8=cv([2000,e6]);this._shortMonthsParse[e6]=this.monthsShort(e8,"").toLocaleLowerCase();this._longMonthsParse[e6]=this.months(e8,"").toLocaleLowerCase()}}if(e3){if(e9==="MMM"){e7=cQ.call(this._shortMonthsParse,e5);return e7!==-1?e7:null}else{e7=cQ.call(this._longMonthsParse,e5);return e7!==-1?e7:null}}else{if(e9==="MMM"){e7=cQ.call(this._shortMonthsParse,e5);if(e7!==-1){return e7}e7=cQ.call(this._longMonthsParse,e5);return e7!==-1?e7:null}else{e7=cQ.call(this._longMonthsParse,e5);if(e7!==-1){return e7}e7=cQ.call(this._shortMonthsParse,e5);return e7!==-1?e7:null}}}function da(e4,e8,e3){var e5,e7,e6;if(this._monthsParseExact){return bC.call(this,e4,e8,e3)}if(!this._monthsParse){this._monthsParse=[];this._longMonthsParse=[];this._shortMonthsParse=[]}for(e5=0;e5<12;e5++){e7=cv([2000,e5]);if(e3&&!this._longMonthsParse[e5]){this._longMonthsParse[e5]=new RegExp("^"+this.months(e7,"").replace(".","")+"$","i");this._shortMonthsParse[e5]=new RegExp("^"+this.monthsShort(e7,"").replace(".","")+"$","i")}if(!e3&&!this._monthsParse[e5]){e6="^"+this.months(e7,"")+"|^"+this.monthsShort(e7,"");this._monthsParse[e5]=new RegExp(e6.replace(".",""),"i")}if(e3&&e8==="MMMM"&&this._longMonthsParse[e5].test(e4)){return e5}else{if(e3&&e8==="MMM"&&this._shortMonthsParse[e5].test(e4)){return e5}else{if(!e3&&this._monthsParse[e5].test(e4)){return e5}}}}}function aV(e3,e4){var e5;if(!e3.isValid()){return e3}if(typeof e4==="string"){if(/^\d+$/.test(e4)){e4=cP(e4)}else{e4=e3.localeData().monthsParse(e4);if(!q(e4)){return e3}}}e5=Math.min(e3.date(),bG(e3.year(),e4));e3._d["set"+(e3._isUTC?"UTC":"")+"Month"](e4,e5);return e3}function eE(e3){if(e3!=null){aV(this,e3);eB.updateOffset(this,true);return this}else{return dA(this,"Month")}}function bM(){return bG(this.year(),this.month())}var df=a8;function dj(e3){if(this._monthsParseExact){if(!dk(this,"_monthsRegex")){dl.call(this)}if(e3){return this._monthsShortStrictRegex}else{return this._monthsShortRegex}}else{if(!dk(this,"_monthsShortRegex")){this._monthsShortRegex=df}return this._monthsShortStrictRegex&&e3?this._monthsShortStrictRegex:this._monthsShortRegex}}var ew=a8;function cY(e3){if(this._monthsParseExact){if(!dk(this,"_monthsRegex")){dl.call(this)}if(e3){return this._monthsStrictRegex}else{return this._monthsRegex}}else{if(!dk(this,"_monthsRegex")){this._monthsRegex=ew}return this._monthsStrictRegex&&e3?this._monthsStrictRegex:this._monthsRegex}}function dl(){function e8(fa,e9){return e9.length-fa.length}var e7=[],e3=[],e6=[],e4,e5;for(e4=0;e4<12;e4++){e5=cv([2000,e4]);e7.push(this.monthsShort(e5,""));e3.push(this.months(e5,""));e6.push(this.months(e5,""));e6.push(this.monthsShort(e5,""))}e7.sort(e8);e3.sort(e8);e6.sort(e8);for(e4=0;e4<12;e4++){e7[e4]=cg(e7[e4]);e3[e4]=cg(e3[e4])}for(e4=0;e4<24;e4++){e6[e4]=cg(e6[e4])}this._monthsRegex=new RegExp("^("+e6.join("|")+")","i");this._monthsShortRegex=this._monthsRegex;this._monthsStrictRegex=new RegExp("^("+e3.join("|")+")","i");this._monthsShortStrictRegex=new RegExp("^("+e7.join("|")+")","i")}function d7(fa,e3,e8,e7,e9,e6,e5){var e4=new Date(fa,e3,e8,e7,e9,e6,e5);if(fa<100&&fa>=0&&isFinite(e4.getFullYear())){e4.setFullYear(fa)}return e4}function du(e4){var e3=new Date(Date.UTC.apply(null,arguments));if(e4<100&&e4>=0&&isFinite(e3.getUTCFullYear())){e3.setUTCFullYear(e4)}return e3}function bi(e4,e7,e6){var e3=7+e7-e6,e5=(7+du(e4,0,e3).getUTCDay()-e7)%7;return -e5+e3-1}function bA(e6,e4,e5,fc,fa){var fb=(7+e5-fc)%7,e3=bi(e6,fc,fa),e8=1+7*(e4-1)+fb+e3,e9,e7;if(e8<=0){e9=e6-1;e7=dF(e9)+e8}else{if(e8>dF(e6)){e9=e6+1;e7=e8-dF(e6)}else{e9=e6;e7=e8}}return{year:e9,dayOfYear:e7}}function eq(e7,e9,e8){var e5=bi(e7.year(),e9,e8),e6=Math.floor((e7.dayOfYear()-e5-1)/7)+1,e3,e4;if(e6<1){e4=e7.year()-1;e3=e6+E(e4,e9,e8)}else{if(e6>E(e7.year(),e9,e8)){e3=e6-E(e7.year(),e9,e8);e4=e7.year()+1}else{e4=e7.year();e3=e6}}return{week:e3,year:e4}}function E(e4,e7,e5){var e3=bi(e4,e7,e5),e6=bi(e4+1,e7,e5);return(dF(e4)-e3+e6)/7}cx("w",["ww",2],"wo","week");cx("W",["WW",2],"Wo","isoWeek");ce("week","w");ce("isoWeek","W");dV("week",5);dV("isoWeek",5);bd("w",aq);bd("ww",aq,aJ);bd("W",aq);bd("WW",aq,aJ);X(["w","ww","W","WW"],function(e3,e6,e4,e5){e6[e5.substr(0,1)]=cP(e3)});function bo(e3){return eq(e3,this._week.dow,this._week.doy).week}var b2={dow:0,doy:6};function ag(){return this._week.dow}function c8(){return this._week.doy}function J(e3){var e4=this.localeData().week(this);return e3==null?e4:this.add((e3-e4)*7,"d")}function x(e3){var e4=eq(this,1,4).week;return e3==null?e4:this.add((e3-e4)*7,"d")}cx("d",0,"do","day");cx("dd",0,0,function(e3){return this.localeData().weekdaysMin(this,e3)});cx("ddd",0,0,function(e3){return this.localeData().weekdaysShort(this,e3)});cx("dddd",0,0,function(e3){return this.localeData().weekdays(this,e3)});cx("e",0,0,"weekday");cx("E",0,0,"isoWeekday");ce("day","d");ce("weekday","e");ce("isoWeekday","E");dV("day",11);dV("weekday",11);dV("isoWeekday",11);bd("d",aq);bd("e",aq);bd("E",aq);bd("dd",function(e4,e3){return e3.weekdaysMinRegex(e4)});bd("ddd",function(e4,e3){return e3.weekdaysShortRegex(e4)});bd("dddd",function(e4,e3){return e3.weekdaysRegex(e4)});X(["dd","ddd","dddd"],function(e3,e6,e4,e5){var e7=e4._locale.weekdaysParse(e3,e5,e4._strict);if(e7!=null){e6.d=e7}else{bb(e4).invalidWeekday=e3}});X(["d","e","E"],function(e3,e6,e4,e5){e6[e5]=cP(e3)});function bh(e4,e3){if(typeof e4!=="string"){return e4}if(!isNaN(e4)){return parseInt(e4,10)}e4=e3.weekdaysParse(e4);if(typeof e4==="number"){return e4}return null}function bD(e4,e3){if(typeof e4==="string"){return e3.weekdaysParse(e4)%7||7}return isNaN(e4)?null:e4}var S="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_");function ax(e3,e4){if(!e3){return V(this._weekdays)?this._weekdays:this._weekdays.standalone}return V(this._weekdays)?this._weekdays[e3.day()]:this._weekdays[this._weekdays.isFormat.test(e4)?"format":"standalone"][e3.day()]}var k="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function M(e3){return(e3)?this._weekdaysShort[e3.day()]:this._weekdaysShort}var bt="Su_Mo_Tu_We_Th_Fr_Sa".split("_");function eC(e3){return(e3)?this._weekdaysMin[e3.day()]:this._weekdaysMin}function dM(e8,e9,e3){var e5,e6,e7,e4=e8.toLocaleLowerCase();if(!this._weekdaysParse){this._weekdaysParse=[];this._shortWeekdaysParse=[];this._minWeekdaysParse=[];for(e5=0;e5<7;++e5){e7=cv([2000,1]).day(e5);this._minWeekdaysParse[e5]=this.weekdaysMin(e7,"").toLocaleLowerCase();this._shortWeekdaysParse[e5]=this.weekdaysShort(e7,"").toLocaleLowerCase();this._weekdaysParse[e5]=this.weekdays(e7,"").toLocaleLowerCase()}}if(e3){if(e9==="dddd"){e6=cQ.call(this._weekdaysParse,e4);return e6!==-1?e6:null}else{if(e9==="ddd"){e6=cQ.call(this._shortWeekdaysParse,e4);return e6!==-1?e6:null}else{e6=cQ.call(this._minWeekdaysParse,e4);return e6!==-1?e6:null}}}else{if(e9==="dddd"){e6=cQ.call(this._weekdaysParse,e4);if(e6!==-1){return e6}e6=cQ.call(this._shortWeekdaysParse,e4);if(e6!==-1){return e6}e6=cQ.call(this._minWeekdaysParse,e4);return e6!==-1?e6:null}else{if(e9==="ddd"){e6=cQ.call(this._shortWeekdaysParse,e4);if(e6!==-1){return e6}e6=cQ.call(this._weekdaysParse,e4);if(e6!==-1){return e6}e6=cQ.call(this._minWeekdaysParse,e4);return e6!==-1?e6:null}else{e6=cQ.call(this._minWeekdaysParse,e4);if(e6!==-1){return e6}e6=cQ.call(this._weekdaysParse,e4);if(e6!==-1){return e6}e6=cQ.call(this._shortWeekdaysParse,e4);return e6!==-1?e6:null}}}}function bL(e7,e8,e3){var e4,e6,e5;if(this._weekdaysParseExact){return dM.call(this,e7,e8,e3)}if(!this._weekdaysParse){this._weekdaysParse=[];this._minWeekdaysParse=[];this._shortWeekdaysParse=[];this._fullWeekdaysParse=[]}for(e4=0;e4<7;e4++){e6=cv([2000,1]).day(e4);if(e3&&!this._fullWeekdaysParse[e4]){this._fullWeekdaysParse[e4]=new RegExp("^"+this.weekdays(e6,"").replace(".",".?")+"$","i");this._shortWeekdaysParse[e4]=new RegExp("^"+this.weekdaysShort(e6,"").replace(".",".?")+"$","i");this._minWeekdaysParse[e4]=new RegExp("^"+this.weekdaysMin(e6,"").replace(".",".?")+"$","i")}if(!this._weekdaysParse[e4]){e5="^"+this.weekdays(e6,"")+"|^"+this.weekdaysShort(e6,"")+"|^"+this.weekdaysMin(e6,"");this._weekdaysParse[e4]=new RegExp(e5.replace(".",""),"i")}if(e3&&e8==="dddd"&&this._fullWeekdaysParse[e4].test(e7)){return e4}else{if(e3&&e8==="ddd"&&this._shortWeekdaysParse[e4].test(e7)){return e4}else{if(e3&&e8==="dd"&&this._minWeekdaysParse[e4].test(e7)){return e4}else{if(!e3&&this._weekdaysParse[e4].test(e7)){return e4}}}}}}function ei(e4){if(!this.isValid()){return e4!=null?this:NaN}var e3=this._isUTC?this._d.getUTCDay():this._d.getDay();if(e4!=null){e4=bh(e4,this.localeData());return this.add(e4-e3,"d")}else{return e3}}function ad(e3){if(!this.isValid()){return e3!=null?this:NaN}var e4=(this.day()+7-this.localeData()._week.dow)%7;return e3==null?e4:this.add(e3-e4,"d")}function ct(e3){if(!this.isValid()){return e3!=null?this:NaN}if(e3!=null){var e4=bD(e3,this.localeData());return this.day(this.day()%7?e4:e4-7)}else{return this.day()||7}}var ab=a8;function eS(e3){if(this._weekdaysParseExact){if(!dk(this,"_weekdaysRegex")){z.call(this)}if(e3){return this._weekdaysStrictRegex}else{return this._weekdaysRegex}}else{if(!dk(this,"_weekdaysRegex")){this._weekdaysRegex=ab}return this._weekdaysStrictRegex&&e3?this._weekdaysStrictRegex:this._weekdaysRegex}}var w=a8;function aF(e3){if(this._weekdaysParseExact){if(!dk(this,"_weekdaysRegex")){z.call(this)}if(e3){return this._weekdaysShortStrictRegex}else{return this._weekdaysShortRegex}}else{if(!dk(this,"_weekdaysShortRegex")){this._weekdaysShortRegex=w}return this._weekdaysShortStrictRegex&&e3?this._weekdaysShortStrictRegex:this._weekdaysShortRegex}}var dT=a8;function D(e3){if(this._weekdaysParseExact){if(!dk(this,"_weekdaysRegex")){z.call(this)}if(e3){return this._weekdaysMinStrictRegex}else{return this._weekdaysMinRegex}}else{if(!dk(this,"_weekdaysMinRegex")){this._weekdaysMinRegex=dT}return this._weekdaysMinStrictRegex&&e3?this._weekdaysMinStrictRegex:this._weekdaysMinRegex}}function z(){function e6(fe,fd){return fd.length-fe.length}var e8=[],e9=[],fc=[],e3=[],e7,e5,e4,fa,fb;for(e7=0;e7<7;e7++){e5=cv([2000,1]).day(e7);e4=this.weekdaysMin(e5,"");fa=this.weekdaysShort(e5,"");fb=this.weekdays(e5,"");e8.push(e4);e9.push(fa);fc.push(fb);e3.push(e4);e3.push(fa);e3.push(fb)}e8.sort(e6);e9.sort(e6);fc.sort(e6);e3.sort(e6);for(e7=0;e7<7;e7++){e9[e7]=cg(e9[e7]);fc[e7]=cg(fc[e7]);e3[e7]=cg(e3[e7])}this._weekdaysRegex=new RegExp("^("+e3.join("|")+")","i");this._weekdaysShortRegex=this._weekdaysRegex;this._weekdaysMinRegex=this._weekdaysRegex;this._weekdaysStrictRegex=new RegExp("^("+fc.join("|")+")","i");this._weekdaysShortStrictRegex=new RegExp("^("+e9.join("|")+")","i");this._weekdaysMinStrictRegex=new RegExp("^("+e8.join("|")+")","i")}function dy(){return this.hours()%12||12}function O(){return this.hours()||24}cx("H",["HH",2],0,"hour");cx("h",["hh",2],0,dy);cx("k",["kk",2],0,O);cx("hmm",0,0,function(){return""+dy.apply(this)+co(this.minutes(),2)});cx("hmmss",0,0,function(){return""+dy.apply(this)+co(this.minutes(),2)+co(this.seconds(),2)});cx("Hmm",0,0,function(){return""+this.hours()+co(this.minutes(),2)});cx("Hmmss",0,0,function(){return""+this.hours()+co(this.minutes(),2)+co(this.seconds(),2)});function el(e3,e4){cx(e3,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e4)})}el("a",true);el("A",false);ce("hour","h");dV("hour",13);function R(e4,e3){return e3._meridiemParse}bd("a",R);bd("A",R);bd("H",aq);bd("h",aq);bd("k",aq);bd("HH",aq,aJ);bd("hh",aq,aJ);bd("kk",aq,aJ);bd("hmm",ck);bd("hmmss",ed);bd("Hmm",ck);bd("Hmmss",ed);bU(["H","HH"],eF);bU(["k","kk"],function(e4,e6,e5){var e3=cP(e4);e6[eF]=e3===24?0:e3});bU(["a","A"],function(e3,e5,e4){e4._isPm=e4._locale.isPM(e3);e4._meridiem=e3});bU(["h","hh"],function(e3,e5,e4){e5[eF]=cP(e3);bb(e4).bigHour=true});bU("hmm",function(e3,e6,e4){var e5=e3.length-2;e6[eF]=cP(e3.substr(0,e5));e6[dH]=cP(e3.substr(e5));bb(e4).bigHour=true});bU("hmmss",function(e3,e7,e4){var e6=e3.length-4;var e5=e3.length-2;e7[eF]=cP(e3.substr(0,e6));e7[dH]=cP(e3.substr(e6,2));e7[ai]=cP(e3.substr(e5));bb(e4).bigHour=true});bU("Hmm",function(e3,e6,e4){var e5=e3.length-2;e6[eF]=cP(e3.substr(0,e5));e6[dH]=cP(e3.substr(e5))});bU("Hmmss",function(e3,e7,e4){var e6=e3.length-4;var e5=e3.length-2;e7[eF]=cP(e3.substr(0,e6));e7[dH]=cP(e3.substr(e6,2));e7[ai]=cP(e3.substr(e5))});function cd(e3){return((e3+"").toLowerCase().charAt(0)==="p")}var b5=/[ap]\.?m?\.?/i;function aT(e3,e4,e5){if(e3>11){return e5?"pm":"PM"}else{return e5?"am":"AM"}}var cp=eb("Hours",true);var b1={calendar:cj,longDateFormat:dW,invalidDate:al,ordinal:b6,dayOfMonthOrdinalParse:e1,relativeTime:ey,months:P,monthsShort:d0,week:b2,weekdays:S,weekdaysMin:bt,weekdaysShort:k,meridiemParse:b5};var by={};var l={};var cX;function dn(e3){return e3?e3.toLowerCase().replace("_","-"):e3}function cW(e8){var e6=0,e4,e7,e3,e5;while(e6<e8.length){e5=dn(e8[e6]).split("-");e4=e5.length;e7=dn(e8[e6+1]);e7=e7?e7.split("-"):null;while(e4>0){e3=aB(e5.slice(0,e4).join("-"));if(e3){return e3}if(e7&&e7.length>=e4&&bZ(e5,e7,true)>=e4-1){break}e4--}e6++}return null}function aB(e3){var e6=null;if(!by[e3]&&(typeof module!=="undefined")&&module&&module.exports){try{e6=cX._abbr;var e4=require;e4("./locale/"+e3);A(e6)}catch(e5){}}return by[e3]}function A(e4,e3){var e5;if(e4){if(F(e3)){e5=Q(e4)}else{e5=cA(e4,e3)}if(e5){cX=e5}}return cX._abbr}function cA(e4,e3){if(e3!==null){var e5=b1;e3.abbr=e4;if(by[e4]!=null){eO("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info.");e5=by[e4]._config}else{if(e3.parentLocale!=null){if(by[e3.parentLocale]!=null){e5=by[e3.parentLocale]._config}else{if(!l[e3.parentLocale]){l[e3.parentLocale]=[]}l[e3.parentLocale].push({name:e4,config:e3});return null}}}by[e4]=new cC(d6(e5,e3));if(l[e4]){l[e4].forEach(function(e6){cA(e6.name,e6.config)})}A(e4);return by[e4]}else{delete by[e4];return null}}function ej(e5,e4){if(e4!=null){var e3,e7,e6=b1;e7=aB(e5);if(e7!=null){e6=e7._config}e4=d6(e6,e4);e3=new cC(e4);e3.parentLocale=by[e5];by[e5]=e3;A(e5)}else{if(by[e5]!=null){if(by[e5].parentLocale!=null){by[e5]=by[e5].parentLocale}else{if(by[e5]!=null){delete by[e5]}}}}return by[e5]}function Q(e4){var e3;if(e4&&e4._locale&&e4._locale._abbr){e4=e4._locale._abbr}if(!e4){return cX}if(!V(e4)){e3=aB(e4);if(e3){return e3}e4=[e4]}return cW(e4)}function b4(){return bW(by)}function cN(e3){var e5;var e4=e3._a;if(e4&&bb(e3).overflow===-2){e5=e4[i]<0||e4[i]>11?i:e4[es]<1||e4[es]>bG(e4[eQ],e4[i])?es:e4[eF]<0||e4[eF]>24||(e4[eF]===24&&(e4[dH]!==0||e4[ai]!==0||e4[bJ]!==0))?eF:e4[dH]<0||e4[dH]>59?dH:e4[ai]<0||e4[ai]>59?ai:e4[bJ]<0||e4[bJ]>999?bJ:-1;if(bb(e3)._overflowDayOfYear&&(e5<eQ||e5>es)){e5=es}if(bb(e3)._overflowWeeks&&e5===-1){e5=ci}if(bb(e3)._overflowWeekday&&e5===-1){e5=h}bb(e3).overflow=e5}return e3}function d8(e4,e3,e5){if(e4!=null){return e4}if(e3!=null){return e3}return e5}function a2(e4){var e3=new Date(eB.now());if(e4._useUTC){return[e3.getUTCFullYear(),e3.getUTCMonth(),e3.getUTCDate()]}return[e3.getFullYear(),e3.getMonth(),e3.getDate()]}function e(e7){var e8,e6,e5=[],e4,e9,e3;if(e7._d){return}e4=a2(e7);if(e7._w&&e7._a[es]==null&&e7._a[i]==null){c1(e7)}if(e7._dayOfYear!=null){e3=d8(e7._a[eQ],e4[eQ]);if(e7._dayOfYear>dF(e3)||e7._dayOfYear===0){bb(e7)._overflowDayOfYear=true}e6=du(e3,0,e7._dayOfYear);e7._a[i]=e6.getUTCMonth();e7._a[es]=e6.getUTCDate()}for(e8=0;e8<3&&e7._a[e8]==null;++e8){e7._a[e8]=e5[e8]=e4[e8]}for(;e8<7;e8++){e7._a[e8]=e5[e8]=(e7._a[e8]==null)?(e8===2?1:0):e7._a[e8]}if(e7._a[eF]===24&&e7._a[dH]===0&&e7._a[ai]===0&&e7._a[bJ]===0){e7._nextDay=true;e7._a[eF]=0}e7._d=(e7._useUTC?du:d7).apply(null,e5);e9=e7._useUTC?e7._d.getUTCDay():e7._d.getDay();if(e7._tzm!=null){e7._d.setUTCMinutes(e7._d.getUTCMinutes()-e7._tzm)}if(e7._nextDay){e7._a[eF]=24}if(e7._w&&typeof e7._w.d!=="undefined"&&e7._w.d!==e9){bb(e7).weekdayMismatch=true}}function c1(e6){var e9,e3,e4,e7,fc,fa,fb,e8;e9=e6._w;if(e9.GG!=null||e9.W!=null||e9.E!=null){fc=1;fa=4;e3=d8(e9.GG,e6._a[eQ],eq(dB(),1,4).year);e4=d8(e9.W,1);e7=d8(e9.E,1);if(e7<1||e7>7){e8=true}}else{fc=e6._locale._week.dow;fa=e6._locale._week.doy;var e5=eq(dB(),fc,fa);e3=d8(e9.gg,e6._a[eQ],e5.year);e4=d8(e9.w,e5.week);if(e9.d!=null){e7=e9.d;if(e7<0||e7>6){e8=true}}else{if(e9.e!=null){e7=e9.e+fc;if(e9.e<0||e9.e>6){e8=true}}else{e7=fc}}}if(e4<1||e4>E(e3,fc,fa)){bb(e6)._overflowWeeks=true}else{if(e8!=null){bb(e6)._overflowWeekday=true}else{fb=bA(e3,e4,e7,fc,fa);e6._a[eQ]=fb.year;e6._dayOfYear=fb.dayOfYear}}}var j=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;var aS=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/;var cF=/Z|[+-]\d\d(?::?\d\d)?/;var cR=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,false],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,false],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,false],["YYYYDDD",/\d{7}/]];var cq=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]];var bV=/^\/?Date\((\-?\d+)/i;function C(e4){var e8,e6,fa=e4._i,e9=j.exec(fa)||aS.exec(fa),fb,e3,e7,e5;if(e9){bb(e4).iso=true;for(e8=0,e6=cR.length;e8<e6;e8++){if(cR[e8][1].exec(e9[1])){e3=cR[e8][0];fb=cR[e8][2]!==false;break}}if(e3==null){e4._isValid=false;return}if(e9[3]){for(e8=0,e6=cq.length;e8<e6;e8++){if(cq[e8][1].exec(e9[3])){e7=(e9[2]||" ")+cq[e8][0];break}}if(e7==null){e4._isValid=false;return}}if(!fb&&e7!=null){e4._isValid=false;return}if(e9[4]){if(cF.exec(e9[4])){e5="Z"}else{e4._isValid=false;return}}e4._f=e3+(e7||"")+(e5||"");bX(e4)}else{e4._isValid=false}}var dg=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;function er(e7,e6,e8,e4,e9,e5){var e3=[cn(e7),d0.indexOf(e6),parseInt(e8,10),parseInt(e4,10),parseInt(e9,10)];if(e5){e3.push(parseInt(e5,10))}return e3}function cn(e3){var e4=parseInt(e3,10);if(e4<=49){return 2000+e4}else{if(e4<=999){return 1900+e4}}return e4}function aL(e3){return e3.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function av(e3,e7,e5){if(e3){var e6=k.indexOf(e3),e4=new Date(e7[0],e7[1],e7[2]).getDay();if(e6!==e4){bb(e5).weekdayMismatch=true;e5._isValid=false;return false}}return true}var bu={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function eZ(e8,e4,e6){if(e8){return bu[e8]}else{if(e4){return 0}else{var e7=parseInt(e6,10);var e3=e7%100,e5=(e7-e3)/100;return e5*60+e3}}}function bS(e4){var e3=dg.exec(aL(e4._i));if(e3){var e5=er(e3[4],e3[3],e3[2],e3[5],e3[6],e3[7]);if(!av(e3[1],e5,e4)){return}e4._a=e5;e4._tzm=eZ(e3[8],e3[9],e3[10]);e4._d=du.apply(null,e4._a);e4._d.setUTCMinutes(e4._d.getUTCMinutes()-e4._tzm);bb(e4).rfc2822=true}else{e4._isValid=false}}function bc(e4){var e3=bV.exec(e4._i);if(e3!==null){e4._d=new Date(+e3[1]);return}C(e4);if(e4._isValid===false){delete e4._isValid}else{return}bS(e4);if(e4._isValid===false){delete e4._isValid}else{return}eB.createFromInputFallback(e4)}eB.createFromInputFallback=ee("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e3){e3._d=new Date(e3._i+(e3._useUTC?" UTC":""))});eB.ISO_8601=function(){};eB.RFC_2822=function(){};function bX(e5){if(e5._f===eB.ISO_8601){C(e5);return}if(e5._f===eB.RFC_2822){bS(e5);return}e5._a=[];bb(e5).empty=true;var e8=""+e5._i,e7,e4,fb,e6,fa,e3=e8.length,e9=0;fb=bF(e5._f,e5._locale).match(bQ)||[];for(e7=0;e7<fb.length;e7++){e6=fb[e7];e4=(e8.match(bE(e6,e5))||[])[0];if(e4){fa=e8.substr(0,e8.indexOf(e4));if(fa.length>0){bb(e5).unusedInput.push(fa)}e8=e8.slice(e8.indexOf(e4)+e4.length);e9+=e4.length}if(a9[e6]){if(e4){bb(e5).empty=false}else{bb(e5).unusedTokens.push(e6)}u(e6,e4,e5)}else{if(e5._strict&&!e4){bb(e5).unusedTokens.push(e6)}}}bb(e5).charsLeftOver=e3-e9;if(e8.length>0){bb(e5).unusedInput.push(e8)}if(e5._a[eF]<=12&&bb(e5).bigHour===true&&e5._a[eF]>0){bb(e5).bigHour=undefined}bb(e5).parsedDateParts=e5._a.slice(0);bb(e5).meridiem=e5._meridiem;e5._a[eF]=ef(e5._locale,e5._a[eF],e5._meridiem);e(e5);cN(e5)}function ef(e3,e5,e6){var e4;if(e6==null){return e5}if(e3.meridiemHour!=null){return e3.meridiemHour(e5,e6)}else{if(e3.isPM!=null){e4=e3.isPM(e6);if(e4&&e5<12){e5+=12}if(!e4&&e5===12){e5=0}return e5}else{return e5}}}function dD(e3){var e7,e5,e6,e4,e8;if(e3._f.length===0){bb(e3).invalidFormat=true;e3._d=new Date(NaN);return}for(e4=0;e4<e3._f.length;e4++){e8=0;e7=p({},e3);if(e3._useUTC!=null){e7._useUTC=e3._useUTC}e7._f=e3._f[e4];bX(e7);if(!an(e7)){continue}e8+=bb(e7).charsLeftOver;e8+=bb(e7).unusedTokens.length*10;bb(e7).score=e8;if(e6==null||e8<e6){e6=e8;e5=e7}}eW(e3,e5||e7)}function a4(e3){if(e3._d){return}var e4=dK(e3._i);e3._a=bn([e4.year,e4.month,e4.day||e4.date,e4.hour,e4.minute,e4.second,e4.millisecond],function(e5){return e5&&parseInt(e5,10)});e(e3)}function ak(e3){var e4=new ep(cN(br(e3)));if(e4._nextDay){e4.add(1,"d");e4._nextDay=undefined}return e4}function br(e4){var e3=e4._i,e5=e4._f;e4._locale=e4._locale||Q(e4._l);if(e3===null||(e5===undefined&&e3==="")){return N({nullInput:true})}if(typeof e3==="string"){e4._i=e3=e4._locale.preparse(e3)}if(cb(e3)){return new ep(cN(e3))}else{if(eu(e3)){e4._d=e3}else{if(V(e5)){dD(e4)}else{if(e5){bX(e4)}else{cu(e4)}}}}if(!an(e4)){e4._d=null}return e4}function cu(e4){var e3=e4._i;if(F(e3)){e4._d=new Date(eB.now())}else{if(eu(e3)){e4._d=new Date(e3.valueOf())}else{if(typeof e3==="string"){bc(e4)}else{if(V(e3)){e4._a=bn(e3.slice(0),function(e5){return parseInt(e5,10)});e(e4)}else{if(v(e3)){a4(e4)}else{if(q(e3)){e4._d=new Date(e3)}else{eB.createFromInputFallback(e4)}}}}}}}function ac(e6,e7,e3,e5,e4){var e8={};if(e3===true||e3===false){e5=e3;e3=undefined}if((v(e6)&&ch(e6))||(V(e6)&&e6.length===0)){e6=undefined}e8._isAMomentObject=true;e8._useUTC=e8._isUTC=e4;e8._l=e3;e8._i=e6;e8._f=e7;e8._strict=e5;return ak(e8)}function dB(e5,e6,e3,e4){return ac(e5,e6,e3,e4,false)}var cI=ee("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e3=dB.apply(null,arguments);if(this.isValid()&&e3.isValid()){return e3<this?this:e3}else{return N()}});var em=ee("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e3=dB.apply(null,arguments);if(this.isValid()&&e3.isValid()){return e3>this?this:e3}else{return N()}});function eX(e5,e6){var e4,e3;if(e6.length===1&&V(e6[0])){e6=e6[0]}if(!e6.length){return dB()}e4=e6[0];for(e3=1;e3<e6.length;++e3){if(!e6[e3].isValid()||e6[e3][e5](e4)){e4=e6[e3]}}return e4}function n(){var e3=[].slice.call(arguments,0);return eX("isBefore",e3)}function bl(){var e3=[].slice.call(arguments,0);return eX("isAfter",e3)}var cy=function(){return Date.now?Date.now():+(new Date())};var eV=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ar(e4){for(var e6 in e4){if(!(cQ.call(eV,e6)!==-1&&(e4[e6]==null||!isNaN(e4[e6])))){return false}}var e3=false;for(var e5=0;e5<eV.length;++e5){if(e4[eV[e5]]){if(e3){return false}if(parseFloat(e4[eV[e5]])!==cP(e4[eV[e5]])){e3=true}}}return true}function s(){return this._isValid}function aW(){return de(NaN)}function dN(e8){var fa=dK(e8),e9=fa.year||0,e4=fa.quarter||0,e5=fa.month||0,e3=fa.week||0,fd=fa.day||0,fb=fa.hour||0,e7=fa.minute||0,fc=fa.second||0,e6=fa.millisecond||0;this._isValid=ar(fa);this._milliseconds=+e6+fc*1000+e7*60000+fb*1000*60*60;this._days=+fd+e3*7;this._months=+e5+e4*3+e9*12;this._data={};this._locale=Q();this._bubble()}function ae(e3){return e3 instanceof dN}function eh(e3){if(e3<0){return Math.round(-1*e3)*-1}else{return Math.round(e3)}}function bw(e3,e4){cx(e3,0,0,function(){var e6=this.utcOffset();var e5="+";if(e6<0){e6=-e6;e5="-"}return e5+co(~~(e6/60),2)+e4+co(~~(e6)%60,2)})}bw("Z",":");bw("ZZ","");bd("Z",cE);bd("ZZ",cE);bU(["Z","ZZ"],function(e3,e5,e4){e4._useUTC=true;e4._tzm=m(cE,e3)});var eA=/([\+\-]|\d\d)/gi;function m(e8,e4){var e6=(e4||"").match(e8);if(e6===null){return null}var e3=e6[e6.length-1]||[];var e7=(e3+"").match(eA)||["-",0,0];var e5=+(e7[1]*60)+cP(e7[2]);return e5===0?0:e7[0]==="+"?e5:-e5}function aC(e3,e4){var e5,e6;if(e4._isUTC){e5=e4.clone();e6=(cb(e3)||eu(e3)?e3.valueOf():dB(e3).valueOf())-e5.valueOf();e5._d.setTime(e5._d.valueOf()+e6);eB.updateOffset(e5,false);return e5}else{return dB(e3).local()}}function aO(e3){return -Math.round(e3._d.getTimezoneOffset()/15)*15}eB.updateOffset=function(){};function dv(e3,e6,e7){var e5=this._offset||0,e4;if(!this.isValid()){return e3!=null?this:NaN}if(e3!=null){if(typeof e3==="string"){e3=m(cE,e3);if(e3===null){return this}}else{if(Math.abs(e3)<16&&!e7){e3=e3*60}}if(!this._isUTC&&e6){e4=aO(this)}this._offset=e3;this._isUTC=true;if(e4!=null){this.add(e4,"m")}if(e5!==e3){if(!e6||this._changeInProgress){aZ(this,de(e3-e5,"m"),1,false)}else{if(!this._changeInProgress){this._changeInProgress=true;eB.updateOffset(this,true);this._changeInProgress=null}}}return this}else{return this._isUTC?e5:aO(this)}}function dq(e3,e4){if(e3!=null){if(typeof e3!=="string"){e3=-e3}this.utcOffset(e3,e4);return this}else{return -this.utcOffset()}}function a0(e3){return this.utcOffset(0,e3)}function ds(e3){if(this._isUTC){this.utcOffset(0,e3);this._isUTC=false;if(e3){this.subtract(aO(this),"m")}}return this}function b8(){if(this._tzm!=null){this.utcOffset(this._tzm,false,true)}else{if(typeof this._i==="string"){var e3=m(bH,this._i);if(e3!=null){this.utcOffset(e3)}else{this.utcOffset(0,true)}}}return this}function aA(e3){if(!this.isValid()){return false}e3=e3?dB(e3).utcOffset():0;return(this.utcOffset()-e3)%60===0}function aN(){return(this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset())}function b(){if(!F(this._isDSTShifted)){return this._isDSTShifted}var e4={};p(e4,this);e4=br(e4);if(e4._a){var e3=e4._isUTC?cv(e4._a):dB(e4._a);this._isDSTShifted=this.isValid()&&bZ(e4._a,e3.toArray())>0}else{this._isDSTShifted=false}return this._isDSTShifted}function dw(){return this.isValid()?!this._isUTC:false}function bR(){return this.isValid()?this._isUTC:false}function dC(){return this.isValid()?this._isUTC&&this._offset===0:false}var Z=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/;var cw=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function de(e5,e8){var e9=e5,e7=null,e4,e6,e3;if(ae(e5)){e9={ms:e5._milliseconds,d:e5._days,M:e5._months}}else{if(q(e5)){e9={};if(e8){e9[e8]=e5}else{e9.milliseconds=e5}}else{if(!!(e7=Z.exec(e5))){e4=(e7[1]==="-")?-1:1;e9={y:0,d:cP(e7[es])*e4,h:cP(e7[eF])*e4,m:cP(e7[dH])*e4,s:cP(e7[ai])*e4,ms:cP(eh(e7[bJ]*1000))*e4}}else{if(!!(e7=cw.exec(e5))){e4=(e7[1]==="-")?-1:(e7[1]==="+")?1:1;e9={y:eR(e7[2],e4),M:eR(e7[3],e4),w:eR(e7[4],e4),d:eR(e7[5],e4),h:eR(e7[6],e4),m:eR(e7[7],e4),s:eR(e7[8],e4)}}else{if(e9==null){e9={}}else{if(typeof e9==="object"&&("from" in e9||"to" in e9)){e3=bN(dB(e9.from),dB(e9.to));e9={};e9.ms=e3.milliseconds;e9.M=e3.months}}}}}}e6=new dN(e9);if(ae(e5)&&dk(e5,"_locale")){e6._locale=e5._locale}return e6}de.fn=dN.prototype;de.invalid=aW;function eR(e5,e3){var e4=e5&&parseFloat(e5.replace(",","."));return(isNaN(e4)?0:e4)*e3}function dz(e5,e3){var e4={milliseconds:0,months:0};e4.months=e3.month()-e5.month()+(e3.year()-e5.year())*12;if(e5.clone().add(e4.months,"M").isAfter(e3)){--e4.months}e4.milliseconds=+e3-+(e5.clone().add(e4.months,"M"));return e4}function bN(e5,e3){var e4;if(!(e5.isValid()&&e3.isValid())){return{milliseconds:0,months:0}}e3=aC(e3,e5);if(e5.isBefore(e3)){e4=dz(e5,e3)}else{e4=dz(e3,e5);e4.milliseconds=-e4.milliseconds;e4.months=-e4.months}return e4}function a5(e4,e3){return function(e8,e7){var e6,e5;if(e7!==null&&!isNaN(+e7)){eO(e3,"moment()."+e3+"(period, number) is deprecated. Please use moment()."+e3+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.");e5=e8;e8=e7;e7=e5}e8=typeof e8==="string"?+e8:e8;e6=de(e8,e7);aZ(this,e6,e4);return this}}function aZ(e5,e8,e7,e6){var e4=e8._milliseconds,e9=eh(e8._days),e3=eh(e8._months);if(!e5.isValid()){return}e6=e6==null?true:e6;if(e3){aV(e5,dA(e5,"Month")+e3*e7)}if(e9){aM(e5,"Date",dA(e5,"Date")+e9*e7)}if(e4){e5._d.setTime(e5._d.valueOf()+e4*e7)}if(e6){eB.updateOffset(e5,e9||e3)}}var aY=a5(1,"add");var ay=a5(-1,"subtract");function au(e5,e3){var e4=e5.diff(e3,"days",true);return e4<-6?"sameElse":e4<-1?"lastWeek":e4<0?"lastDay":e4<1?"sameDay":e4<2?"nextDay":e4<7?"nextWeek":"sameElse"}function cf(e8,e3){var e6=e8||dB(),e5=aC(e6,this).startOf("day"),e7=eB.calendarFormat(this,e5)||"sameElse";var e4=e3&&(a6(e3[e7])?e3[e7].call(this,e6):e3[e7]);return this.format(e4||this.localeData().calendar(e7,this,dB(e6)))}function dr(){return new ep(this)}function cD(e4,e3){var e5=cb(e4)?e4:dB(e4);if(!(this.isValid()&&e5.isValid())){return false}e3=cO(!F(e3)?e3:"millisecond");if(e3==="millisecond"){return this.valueOf()>e5.valueOf()}else{return e5.valueOf()<this.clone().startOf(e3).valueOf()}}function eM(e4,e3){var e5=cb(e4)?e4:dB(e4);if(!(this.isValid()&&e5.isValid())){return false}e3=cO(!F(e3)?e3:"millisecond");if(e3==="millisecond"){return this.valueOf()<e5.valueOf()}else{return this.clone().endOf(e3).valueOf()<e5.valueOf()}}function eo(e6,e5,e3,e4){e4=e4||"()";return(e4[0]==="("?this.isAfter(e6,e3):!this.isBefore(e6,e3))&&(e4[1]===")"?this.isBefore(e5,e3):!this.isAfter(e5,e3))}function cH(e4,e3){var e6=cb(e4)?e4:dB(e4),e5;if(!(this.isValid()&&e6.isValid())){return false}e3=cO(e3||"millisecond");if(e3==="millisecond"){return this.valueOf()===e6.valueOf()}else{e5=e6.valueOf();return this.clone().startOf(e3).valueOf()<=e5&&e5<=this.clone().endOf(e3).valueOf()}}function eH(e4,e3){return this.isSame(e4,e3)||this.isAfter(e4,e3)}function eK(e4,e3){return this.isSame(e4,e3)||this.isBefore(e4,e3)}function K(e6,e5,e3){var e8,e7,e9,e4;if(!this.isValid()){return NaN}e8=aC(e6,this);if(!e8.isValid()){return NaN}e7=(e8.utcOffset()-this.utcOffset())*60000;e5=cO(e5);switch(e5){case"year":e4=ek(this,e8)/12;break;case"month":e4=ek(this,e8);break;case"quarter":e4=ek(this,e8)/3;break;case"second":e4=(this-e8)/1000;break;case"minute":e4=(this-e8)/60000;break;case"hour":e4=(this-e8)/3600000;break;case"day":e4=(this-e8-e7)/86400000;break;case"week":e4=(this-e8-e7)/604800000;break;default:e4=this-e8}return e3?e4:dh(e4)}function ek(e4,e3){var e8=((e3.year()-e4.year())*12)+(e3.month()-e4.month()),e5=e4.clone().add(e8,"months"),e6,e7;if(e3-e5<0){e6=e4.clone().add(e8-1,"months");e7=(e3-e5)/(e5-e6)}else{e6=e4.clone().add(e8+1,"months");e7=(e3-e5)/(e6-e5)}return -(e8+e7)||0}eB.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";eB.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function d1(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function c3(e5){if(!this.isValid()){return null}var e4=e5!==true;var e3=e4?this.clone().utc():this;if(e3.year()<0||e3.year()>9999){return af(e3,e4?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ")}if(a6(Date.prototype.toISOString)){if(e4){return this.toDate().toISOString()}else{return new Date(this._d.valueOf()).toISOString().replace("Z",af(e3,"Z"))}}return af(e3,e4?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function aQ(){if(!this.isValid()){return"moment.invalid(/* "+this._i+" */)"}var e5="moment";var e3="";if(!this.isLocal()){e5=this.utcOffset()===0?"moment.utc":"moment.parseZone";e3="Z"}var e6="["+e5+'("]';var e4=(0<=this.year()&&this.year()<=9999)?"YYYY":"YYYYYY";var e8="-MM-DD[T]HH:mm:ss.SSS";var e7=e3+'[")]';return this.format(e6+e4+e8+e7)}function c6(e4){if(!e4){e4=this.isUtc()?eB.defaultFormatUtc:eB.defaultFormat}var e3=af(this,e4);return this.localeData().postformat(e3)}function dQ(e4,e3){if(this.isValid()&&((cb(e4)&&e4.isValid())||dB(e4).isValid())){return de({to:this,from:e4}).locale(this.locale()).humanize(!e3)}else{return this.localeData().invalidDate()}}function dL(e3){return this.from(dB(),e3)}function ah(e4,e3){if(this.isValid()&&((cb(e4)&&e4.isValid())||dB(e4).isValid())){return de({from:this,to:e4}).locale(this.locale()).humanize(!e3)}else{return this.localeData().invalidDate()}}function aP(e3){return this.to(dB(),e3)}function e2(e4){var e3;if(e4===undefined){return this._locale._abbr}else{e3=Q(e4);if(e3!=null){this._locale=e3}return this}}var y=ee("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e3){if(e3===undefined){return this.localeData()}else{return this.locale(e3)}});function dR(){return this._locale}function b7(e3){e3=cO(e3);switch(e3){case"year":this.month(0);case"quarter":case"month":this.date(1);case"week":case"isoWeek":case"day":case"date":this.hours(0);case"hour":this.minutes(0);case"minute":this.seconds(0);case"second":this.milliseconds(0)}if(e3==="week"){this.weekday(0)}if(e3==="isoWeek"){this.isoWeekday(1)}if(e3==="quarter"){this.month(Math.floor(this.month()/3)*3)}return this}function ev(e3){e3=cO(e3);if(e3===undefined||e3==="millisecond"){return this}if(e3==="date"){e3="day"}return this.startOf(e3).add(1,(e3==="isoWeek"?"week":e3)).subtract(1,"ms")}function dU(){return this._d.valueOf()-((this._offset||0)*60000)}function bz(){return Math.floor(this.valueOf()/1000)}function c0(){return new Date(this.valueOf())}function dJ(){var e3=this;return[e3.year(),e3.month(),e3.date(),e3.hour(),e3.minute(),e3.second(),e3.millisecond()]}function dS(){var e3=this;return{years:e3.year(),months:e3.month(),date:e3.date(),hours:e3.hours(),minutes:e3.minutes(),seconds:e3.seconds(),milliseconds:e3.milliseconds()}}function c7(){return this.isValid()?this.toISOString():null}function o(){return an(this)}function dE(){return eW({},bb(this))}function cz(){return bb(this).overflow}function eN(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}cx(0,["gg",2],0,function(){return this.weekYear()%100});cx(0,["GG",2],0,function(){return this.isoWeekYear()%100});function W(e4,e3){cx(0,[e4,e4.length],0,e3)}W("gggg","weekYear");W("ggggg","weekYear");W("GGGG","isoWeekYear");W("GGGGG","isoWeekYear");ce("weekYear","gg");ce("isoWeekYear","GG");dV("weekYear",1);dV("isoWeekYear",1);bd("G",B);bd("g",B);bd("GG",aq,aJ);bd("gg",aq,aJ);bd("GGGG",ao,aH);bd("gggg",ao,aH);bd("GGGGG",am,aG);bd("ggggg",am,aG);X(["gggg","ggggg","GGGG","GGGGG"],function(e3,e6,e4,e5){e6[e5.substr(0,2)]=cP(e3)});X(["gg","GG"],function(e3,e6,e4,e5){e6[e5]=eB.parseTwoDigitYear(e3)});function bq(e3){return cs.call(this,e3,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)}function dY(e3){return cs.call(this,e3,this.isoWeek(),this.isoWeekday(),1,4)}function c9(){return E(this.year(),1,4)}function I(){var e3=this.localeData()._week;return E(this.year(),e3.dow,e3.doy)}function cs(e3,e4,e6,e8,e7){var e5;if(e3==null){return eq(this,e8,e7).year}else{e5=E(e3,e8,e7);if(e4>e5){e4=e5}return a7.call(this,e3,e4,e6,e8,e7)}}function a7(e5,e4,e7,e9,e8){var e6=bA(e5,e4,e7,e9,e8),e3=du(e6.year,0,e6.dayOfYear);this.year(e3.getUTCFullYear());this.month(e3.getUTCMonth());this.date(e3.getUTCDate());return this}cx("Q",0,"Qo","quarter");ce("quarter","Q");dV("quarter",7);bd("Q",aK);bU("Q",function(e3,e4){e4[i]=(cP(e3)-1)*3});function b0(e3){return e3==null?Math.ceil((this.month()+1)/3):this.month((e3-1)*3+this.month()%3)}cx("D",["DD",2],"Do","date");ce("date","D");dV("date",9);bd("D",aq);bd("DD",aq,aJ);bd("Do",function(e4,e3){return e4?(e3._dayOfMonthOrdinalParse||e3._ordinalParse):e3._dayOfMonthOrdinalParseLenient});bU(["D","DD"],es);bU("Do",function(e3,e4){e4[es]=cP(e3.match(aq)[0])});var cm=eb("Date",true);cx("DDD",["DDDD",3],"DDDo","dayOfYear");ce("dayOfYear","DDD");dV("dayOfYear",4);bd("DDD",ap);bd("DDDD",aI);bU(["DDD","DDDD"],function(e3,e5,e4){e4._dayOfYear=cP(e3)});function bf(e3){var e4=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/86400000)+1;return e3==null?e4:this.add((e3-e4),"d")}cx("m",["mm",2],0,"minute");ce("minute","m");dV("minute",14);bd("m",aq);bd("mm",aq,aJ);bU(["m","mm"],dH);var eL=eb("Minutes",false);cx("s",["ss",2],0,"second");ce("second","s");dV("second",15);bd("s",aq);bd("ss",aq,aJ);bU(["s","ss"],ai);var bv=eb("Seconds",false);cx("S",0,0,function(){return ~~(this.millisecond()/100)});cx(0,["SS",2],0,function(){return ~~(this.millisecond()/10)});cx(0,["SSS",3],0,"millisecond");cx(0,["SSSS",4],0,function(){return this.millisecond()*10});cx(0,["SSSSS",5],0,function(){return this.millisecond()*100});cx(0,["SSSSSS",6],0,function(){return this.millisecond()*1000});cx(0,["SSSSSSS",7],0,function(){return this.millisecond()*10000});cx(0,["SSSSSSSS",8],0,function(){return this.millisecond()*100000});cx(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1000000});ce("millisecond","ms");dV("millisecond",16);bd("S",ap,aK);bd("SS",ap,aJ);bd("SSS",ap,aI);var bk;for(bk="SSSS";bk.length<=9;bk+="S"){bd(bk,r)}function c4(e3,e4){e4[bJ]=cP(("0."+e3)*1000)}for(bk="S";bk.length<=9;bk+="S"){bU(bk,c4)}var bY=eb("Milliseconds",false);cx("z",0,0,"zoneAbbr");cx("zz",0,0,"zoneName");function eI(){return this._isUTC?"UTC":""}function eg(){return this._isUTC?"Coordinated Universal Time":""}var cc=ep.prototype;cc.add=aY;cc.calendar=cf;cc.clone=dr;cc.diff=K;cc.endOf=ev;cc.format=c6;cc.from=dQ;cc.fromNow=dL;cc.to=ah;cc.toNow=aP;cc.get=az;cc.invalidAt=cz;cc.isAfter=cD;cc.isBefore=eM;cc.isBetween=eo;cc.isSame=cH;cc.isSameOrAfter=eH;cc.isSameOrBefore=eK;cc.isValid=o;cc.lang=y;cc.locale=e2;cc.localeData=dR;cc.max=em;cc.min=cI;cc.parsingFlags=dE;cc.set=at;cc.startOf=b7;cc.subtract=ay;cc.toArray=dJ;cc.toObject=dS;cc.toDate=c0;cc.toISOString=c3;cc.inspect=aQ;cc.toJSON=c7;cc.toString=d1;cc.unix=bz;cc.valueOf=dU;cc.creationData=eN;cc.year=cG;cc.isLeapYear=cV;cc.weekYear=bq;cc.isoWeekYear=dY;cc.quarter=cc.quarters=b0;cc.month=eE;cc.daysInMonth=bM;cc.week=cc.weeks=J;cc.isoWeek=cc.isoWeeks=x;cc.weeksInYear=I;cc.isoWeeksInYear=c9;cc.date=cm;cc.day=cc.days=ei;cc.weekday=ad;cc.isoWeekday=ct;cc.dayOfYear=bf;cc.hour=cc.hours=cp;cc.minute=cc.minutes=eL;cc.second=cc.seconds=bv;cc.millisecond=cc.milliseconds=bY;cc.utcOffset=dv;cc.utc=a0;cc.local=ds;cc.parseZone=b8;cc.hasAlignedHourOffset=aA;cc.isDST=aN;cc.isLocal=dw;cc.isUtcOffset=bR;cc.isUtc=dC;cc.isUTC=dC;cc.zoneAbbr=eI;cc.zoneName=eg;cc.dates=ee("dates accessor is deprecated. Use date instead.",cm);cc.months=ee("months accessor is deprecated. Use month instead",eE);cc.years=ee("years accessor is deprecated. Use year instead",cG);cc.zone=ee("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",dq);cc.isDSTShifted=ee("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",b);function db(e3){return dB(e3*1000)}function cM(){return dB.apply(null,arguments).parseZone()}function dx(e3){return e3}var d3=cC.prototype;d3.calendar=d;d3.longDateFormat=cJ;d3.invalidDate=en;d3.ordinal=ez;d3.preparse=dx;d3.postformat=dx;d3.relativeTime=T;d3.pastFuture=dX;d3.set=dm;d3.months=a1;d3.monthsShort=ba;d3.monthsParse=da;d3.monthsRegex=cY;d3.monthsShortRegex=dj;d3.week=bo;d3.firstDayOfYear=c8;d3.firstDayOfWeek=ag;d3.weekdays=ax;d3.weekdaysMin=eC;d3.weekdaysShort=M;d3.weekdaysParse=bL;d3.weekdaysRegex=eS;d3.weekdaysShortRegex=aF;d3.weekdaysMinRegex=D;d3.isPM=cd;d3.meridiem=aT;function H(e7,e4,e6,e8){var e3=Q();var e5=cv().set(e8,e4);return e3[e6](e5,e7)}function aX(e7,e4,e6){if(q(e7)){e4=e7;e7=undefined}e7=e7||"";if(e4!=null){return H(e7,e4,e6,"month")}var e5;var e3=[];for(e5=0;e5<12;e5++){e3[e5]=H(e7,e5,e6,"month")}return e3}function eU(e8,fa,e6,e9){if(typeof e8==="boolean"){if(q(fa)){e6=fa;fa=undefined}fa=fa||""}else{fa=e8;e6=fa;e8=false;if(q(fa)){e6=fa;fa=undefined}fa=fa||""}var e3=Q(),e4=e8?e3._week.dow:0;if(e6!=null){return H(fa,(e6+e4)%7,e9,"day")}var e7;var e5=[];for(e7=0;e7<7;e7++){e5[e7]=H(fa,(e7+e4)%7,e9,"day")}return e5}function cT(e4,e3){return aX(e4,e3,"months")}function cB(e4,e3){return aX(e4,e3,"monthsShort")}function c5(e4,e5,e3){return eU(e4,e5,e3,"weekdays")}function cL(e4,e5,e3){return eU(e4,e5,e3,"weekdaysShort")}function Y(e4,e5,e3){return eU(e4,e5,e3,"weekdaysMin")}A("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e5){var e3=e5%10,e4=(cP(e5%100/10)===1)?"th":(e3===1)?"st":(e3===2)?"nd":(e3===3)?"rd":"th";return e5+e4}});eB.lang=ee("moment.lang is deprecated. Use moment.locale instead.",A);eB.langData=ee("moment.langData is deprecated. Use moment.localeData instead.",Q);var ex=Math.abs;function bm(){var e3=this._data;this._milliseconds=ex(this._milliseconds);this._days=ex(this._days);this._months=ex(this._months);e3.milliseconds=ex(e3.milliseconds);e3.seconds=ex(e3.seconds);e3.minutes=ex(e3.minutes);e3.hours=ex(e3.hours);e3.months=ex(e3.months);e3.years=ex(e3.years);return this}function aE(e7,e4,e5,e6){var e3=de(e4,e5);e7._milliseconds+=e6*e3._milliseconds;e7._days+=e6*e3._days;e7._months+=e6*e3._months;return e7._bubble()}function bB(e3,e4){return aE(this,e3,e4,1)}function dO(e3,e4){return aE(this,e3,e4,-1)}function eD(e3){if(e3<0){return Math.floor(e3)}else{return Math.ceil(e3)}}function cU(){var e5=this._milliseconds;var fb=this._days;var e3=this._months;var e7=this._data;var fa,e6,e9,e8,e4;if(!((e5>=0&&fb>=0&&e3>=0)||(e5<=0&&fb<=0&&e3<=0))){e5+=eD(eY(e3)+fb)*86400000;fb=0;e3=0}e7.milliseconds=e5%1000;fa=dh(e5/1000);e7.seconds=fa%60;e6=dh(fa/60);e7.minutes=e6%60;e9=dh(e6/60);e7.hours=e9%24;fb+=dh(e9/24);e4=dh(f(fb));e3+=e4;fb-=eD(eY(e4));e8=dh(e3/12);e3%=12;e7.days=fb;e7.months=e3;e7.years=e8;return this}function f(e3){return e3*4800/146097}function eY(e3){return e3*146097/4800}function eG(e4){if(!this.isValid()){return NaN}var e6;var e3;var e5=this._milliseconds;e4=cO(e4);if(e4==="month"||e4==="year"){e6=this._days+e5/86400000;e3=this._months+f(e6);return e4==="month"?e3:e3/12}else{e6=this._days+Math.round(eY(this._months));switch(e4){case"week":return e6/7+e5/604800000;case"day":return e6+e5/86400000;case"hour":return e6*24+e5/3600000;case"minute":return e6*1440+e5/60000;case"second":return e6*86400+e5/1000;case"millisecond":return Math.floor(e6*86400000)+e5;default:throw new Error("Unknown unit "+e4)}}}function c2(){if(!this.isValid()){return NaN}return(this._milliseconds+this._days*86400000+(this._months%12)*2592000000+cP(this._months/12)*31536000000)}function d5(e3){return function(){return this.as(e3)}}var e0=d5("ms");var L=d5("s");var dt=d5("m");var t=d5("h");var d9=d5("d");var dP=d5("w");var d4=d5("M");var bj=d5("y");function eT(){return de(this)}function G(e3){e3=cO(e3);return this.isValid()?this[e3+"s"]():NaN}function b9(e3){return function(){return this.isValid()?this._data[e3]:NaN}}var c=b9("milliseconds");var bg=b9("seconds");var aD=b9("minutes");var U=b9("hours");var be=b9("days");var eJ=b9("months");var bK=b9("years");function ec(){return dh(this.days()/7)}var cZ=Math.round;var dG={ss:44,s:45,m:45,h:22,d:26,M:11};function aj(e4,e6,e5,e7,e3){return e3.relativeTime(e6||1,!!e5,e4,e7)}function dI(e7,e4,fb){var e5=de(e7).abs();var fc=cZ(e5.as("s"));var e6=cZ(e5.as("m"));var fa=cZ(e5.as("h"));var fd=cZ(e5.as("d"));var e3=cZ(e5.as("M"));var e8=cZ(e5.as("y"));var e9=fc<=dG.ss&&["s",fc]||fc<dG.s&&["ss",fc]||e6<=1&&["m"]||e6<dG.m&&["mm",e6]||fa<=1&&["h"]||fa<dG.h&&["hh",fa]||fd<=1&&["d"]||fd<dG.d&&["dd",fd]||e3<=1&&["M"]||e3<dG.M&&["MM",e3]||e8<=1&&["y"]||["yy",e8];e9[2]=e4;e9[3]=+e7>0;e9[4]=fb;return aj.apply(null,e9)}function et(e3){if(e3===undefined){return cZ}if(typeof(e3)==="function"){cZ=e3;return true}return false}function cl(e3,e4){if(dG[e3]===undefined){return false}if(e4===undefined){return dG[e3]}dG[e3]=e4;if(e3==="s"){dG.ss=e4-1}return true}function a(e5){if(!this.isValid()){return this.localeData().invalidDate()}var e3=this.localeData();var e4=dI(this,!e5,e3);if(e5){e4=e3.pastFuture(+this,e4)}return e3.postformat(e4)}var aU=Math.abs;function bT(e3){return((e3>0)-(e3<0))||+e3}function bI(){if(!this.isValid()){return this.localeData().invalidDate()}var fh=aU(this._milliseconds)/1000;var fi=aU(this._days);var e6=aU(this._months);var fa,fg,fd;fa=dh(fh/60);fg=dh(fa/60);fh%=60;fa%=60;fd=dh(e6/12);e6%=12;var e5=fd;var fe=e6;var e4=fi;var fc=fg;var e9=fa;var fj=fh?fh.toFixed(3).replace(/\.?0+$/,""):"";var ff=this.asSeconds();if(!ff){return"P0D"}var e3=ff<0?"-":"";var e7=bT(this._months)!==bT(ff)?"-":"";var e8=bT(this._days)!==bT(ff)?"-":"";var fb=bT(this._milliseconds)!==bT(ff)?"-":"";return e3+"P"+(e5?e7+e5+"Y":"")+(fe?e7+fe+"M":"")+(e4?e8+e4+"D":"")+((fc||e9||fj)?"T":"")+(fc?fb+fc+"H":"")+(e9?fb+e9+"M":"")+(fj?fb+fj+"S":"")}var d2=dN.prototype;d2.isValid=s;d2.abs=bm;d2.add=bB;d2.subtract=dO;d2.as=eG;d2.asMilliseconds=e0;d2.asSeconds=L;d2.asMinutes=dt;d2.asHours=t;d2.asDays=d9;d2.asWeeks=dP;d2.asMonths=d4;d2.asYears=bj;d2.valueOf=c2;d2._bubble=cU;d2.clone=eT;d2.get=G;d2.milliseconds=c;d2.seconds=bg;d2.minutes=aD;d2.hours=U;d2.days=be;d2.weeks=ec;d2.months=eJ;d2.years=bK;d2.humanize=a;d2.toISOString=bI;d2.toString=bI;d2.toJSON=bI;d2.locale=e2;d2.localeData=dR;d2.toIsoString=ee("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",bI);d2.lang=y;cx("X",0,0,"unix");cx("x",0,0,"valueOf");bd("x",B);bd("X",eP);bU("X",function(e3,e5,e4){e4._d=new Date(parseFloat(e3,10)*1000)});bU("x",function(e3,e5,e4){e4._d=new Date(cP(e3))});eB.version="2.20.1";aR(dB);eB.fn=cc;eB.min=n;eB.max=bl;eB.now=cy;eB.utc=cv;eB.unix=db;eB.months=cT;eB.isDate=eu;eB.locale=A;eB.invalid=N;eB.duration=de;eB.isMoment=cb;eB.weekdays=c5;eB.parseZone=cM;eB.localeData=Q;eB.isDuration=ae;eB.monthsShort=cB;eB.weekdaysMin=Y;eB.defineLocale=cA;eB.updateLocale=ej;eB.locales=b4;eB.weekdaysShort=cL;eB.normalizeUnits=cO;eB.relativeTimeRounding=et;eB.relativeTimeThreshold=cl;eB.calendarFormat=au;eB.prototype=cc;eB.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"YYYY-[W]WW",MONTH:"YYYY-MM"};return eB})));
                                                                                                        