function htmlEncode(n){return n==null||n===""?n:(n=n+"",n.replace(/&/g,"&amp;").replace(SURROGATE_PAIR_REGEXP,function(n){var t=n.charCodeAt(0),i=n.charCodeAt(1);return"&#"+((t-55296)*1024+(i-56320)+65536)+";"}).replace(NON_ALPHANUMERIC_REGEXP,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/\//g,"&#x2F;").replace(/>/g,"&gt;"))}function addOrUpdateQueryStringParameter(n,t,i){var r=new RegExp("([?&])"+t+"=.*?(&|#|$)","i"),u,f;return i===undefined?n.match(r)?n.replace(r,"$1$2"):n:n.match(r)?n.replace(r,"$1"+t+"="+i+"$2"):(u="",n.indexOf("#")!==-1&&(u=n.replace(/.*#/,"#"),n=n.replace(/#.*/,"")),f=n.indexOf("?")!==-1?"&":"?",n+f+t+"="+i+u)}function somethingChanged(n){$(document).ready(n);$(document).change(n);$(document).ajaxComplete(n)}function somethingCompleted(n){$(document).ready(n);$(document).ajaxComplete(n)}function getQueryStrings(){var t={},i=function(n){return decodeURIComponent(n.replace(/\+/g," "))},f=location.search.substring(1),r=f.split("&"),u,n;for(u in r)n=r[u].split("="),n.length>1&&(t[i(n[0])]=i(n[1]));return t}function encodeSelector(n){return n.replace(/(:|\.|\[|\]|,)/g,"\\$1")}function showInvalidTab(n){var t=$(n).find(".input-validation-error").closest(".tab-pane").get(0);t&&$("[href='#"+t.id+"']").tab("show")}function replaceUrlParam(n,t,i){i==null&&(i="");var r=new RegExp("\\b("+t+"=).*?(&|$)");return n.search(r)>=0?n.replace(r,"$1"+i+"$2"):n+(n.indexOf("?")>0?"&":"?")+t+"="+i}function lazyLoaded(){$(".lazy-loaded").each(function(n,t){$(t).removeClass("lazy-loaded");$(t).addClass("lazy-loaded-done");$(t).data("sourceUrl").includes(allowedEndpoint)&&$.get($(t).data("sourceUrl"),function(n){$(t).html(n)})})}function formatPolicyImageTemplate(n){var u,t,r,f,i;if(!n.id)return n.text;if(u=$("<div>").append(htmlEncode(n.text)),u.attr("class","policy-name"),t=$("<div>"),t.attr("class","hidden-xs policy-icons"),t.attr("style","text-align:right"),n.Images&&n.Images.length<=5)for(r=0;r<n.Images.length;r++)f=n.Images[r],i=$("<img>"),i.attr("src",encodeURI(f.ImageUrl)),i.attr("title",f.Title),i.attr("style","padding-left:2px"),t.append(i);return u.add(t)}function resizeSelect2(n){var t;$(window).on("resize",function(){t&&clearTimeout(t);t=setTimeout(function(){n.select2();t=null},500)})}function highlightFailedTabs(){$(".field-validation-error").each(function(){var i=$(this).parents(".tab-pane"),n,t;i&&(n=i.prop("id"),n&&(t=$('a[href="#'+n+'"]').parent(),t.css("background-color","#f2dede"),t.css("border-color","#ebccd1")))})}function humanize(n){return n.replace(/^[\s_]+|[\s_]+$/g,"").replace(/[_\s]+/g," ").replace(/^[a-z]/,function(n){return n.toUpperCase()}).replace(/([A-Z])/g," $1").replace(/^./,function(n){return n.toUpperCase()}).replace(/  +/g," ").trim()}function makeResponsiveNavStack(n,t){const r=n.substring(1);var i=$("<div>").addClass(`btn-group fill-horizontal visible-xs ${r}`),f=$(`<button id="${r}-button" type="button" class="btn btn-primary dropdown-toggle fill-horizontal makeResponsiveNavStack_selectedTab" style="text-align: left; margin-bottom: 5px;" data-toggle="dropdown"><span class="pull-left"></span> <span style="margin-top: 7px;" class="caret pull-right"></span></button>`),u=$('<ul class="dropdown-menu dropdown-menu-vertical-limited" style="z-index: 1500;" role="menu">');i.append(f);i.append(u);$(n).after(i);$(n).addClass("hidden-xs").find("li").each(function(n,i){u.append($("<li>").attr("role","menuitem").append($("<a>").on("click",function(n){var i=$(this).attr("href");$('.nav-pills a[href="'+i+'"]').tab("show");t&&(window.location.hash=this.hash);$("html,body").scrollTop(0);n.preventDefault()}).addClass("btn").text($(i).find("a > span").text()).attr("href",$(i).find("a").attr("href"))))});$(n).on("shown.bs.tab",function(t){$(`${n}-button`).text(t.target.text)});$(`${n}-button`).text($(".nav-pills li.active > a > span").text())}function replaceUrlParam(n,t,i){i==null&&(i="");var r=new RegExp("\\b("+t+"=).*?(&|$)");return n.search(r)>=0?n.replace(r,"$1"+i+"$2"):n+(n.indexOf("?")>0?"&":"?")+t+"="+i}function isScanCompleted(n,t){return n.State()=="Failed"||n.State()=="Cancelled"||n.State()=="Complete"||t&&t.State()!==n.State()}function finishNotifyChoiceUpdate(){setTimeout(function(){$(".whats-new-notify-changing").hide();$("#whats-new-notify-checkbox").removeAttr("disabled").focus()},1500)}function createClickEvent(n,t){$(n).on("click",t)}function detectIE(){var n=window.navigator.userAgent,i=n.indexOf("MSIE "),u,r,t;return i>0?parseInt(n.substring(i+5,n.indexOf(".",i)),10):(u=n.indexOf("Trident/"),u>0)?(r=n.indexOf("rv:"),parseInt(n.substring(r+3,n.indexOf(".",r)),10)):(t=n.indexOf("Edge/"),t>0)?parseInt(n.substring(t+5,n.indexOf(".",t)),10):!1}function validateEmail(n){if(!n)return!1;return/^([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(String(n).toLowerCase())}function isValidURL(n){if(!n)return!1;var t=new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i");return!!t.test(n)}function groupSelectorFilter(n,t){var u,r,i;for(n=document.getElementById(n),r=n.getElementsByClassName("dropdown-menu-item"),u=t.toLowerCase().trim(),i=0;i<r.length;i++)r[i].style.display=r[i].innerText.toLowerCase().trim().indexOf(u)>-1?"":"none"}function CheckSelectionsSelect(){setTimeout(function(){$(".row-id").filter(function(n,t){return $(t).is(":checked")}).length>0?$(".btn-select").removeAttr("disabled"):$(".btn-select").attr("disabled","")},50)}function initAutoConfirmModals(){$(".auto-confirm-modal").on("click",function(n){var r,i,u;n.preventDefault();r=$(this).data();i=[];for(u in r)u.indexOf("modalInput")==0&&i.push({name:u.replace("modalInput",""),value:r[u]});var f=$(this).data("modal-title"),e=$(this).data("modal-message"),o=$(this).data("modal-ok"),s=$(this).data("modal-cancel"),t=$(this).data("modal-form"),l=$(this).data("url")||$(this).data("modal-url"),a=$(this).data("method")||$(this).data("modal-method")||"GET",h=$(this).data("modal-function"),v=$(this).data("modal-param"),y=$(this).data("modal-raw"),c=function(){var n,r;h?(n=window[h],typeof n=="function"&&n(v)):$(t).length||(t=$("<form><\/form>"),t.attr({action:l,method:a}),$.antiForgeryToken.value&&$("<input>").attr({type:"hidden",name:$.antiForgeryToken.key,value:$.antiForgeryToken.value}).appendTo(t),$(t).appendTo($(document.body)));for(r in i)$("<input>").attr({type:"hidden",name:i[r].name,value:i[r].value}).appendTo(t);$(t).submit()};e+f+o+s+""=="NaN"?c():bootbox.nconfirm(f,e,c,o,s,y,r,$(this))}).each(function(n,t){$(t).removeClass("auto-confirm-modal")})}function getState(n){var t=getQueryStrings();return{shortExpression:n,sortType:t.SortType,isShorted:t.SortExpression===n}}function customPhoneNumberLengthFormat(n,t){return n.iso2==="at"?t+"7":t}function InvictiNotifications(n){this.signalRHub=n;this.show=function(n){var e=this.getBSType(n),i={theme:"bootstrap-v3",text:this.getTemplate(n),type:this.getType(n),timeout:5e3,layout:"topRight"},t,r,u,f;if(n.ActionUrl!=null&&(i.buttons=[Noty.button("See","btn btn-"+e+" btn-xs btn-60",function(){window.location=n.ActionUrl})]),t=n.Options,t!=null&&t.CallbackOptions!=null&&t.CallbackOptions.length>0)for(i.callbacks={},r=0;r<t.CallbackOptions.length;r++)u=t.CallbackOptions[r],f=this.actionFns[u.CallbackFunction],f!=null&&(i.callbacks[u.CallbackEvent]=function(){f(u.CallbackFunctionData)});$(".alert.alert-"+e+".alert-dismissable.alert-message").remove();new Noty(i).show()};this.getTemplate=function(n){var t;switch(n.Type){case 0:t="fa fa-info";break;case 1:t="fa fa-exclamation";break;case 2:t="fa fa-check";break;case 3:t="fa fa-times";break;case 4:t="fa fa-bell"}return"<div class='notification-icon'><i class='"+t+"'><\/i><\/div><div><div class='notification-title'>"+n.Title+"<\/div><div class='notification-detail'>"+n.Detail+"<\/div><\/div>"};this.getType=function(n){switch(n.Type){case 0:return"information";case 1:return"warning";case 2:return"success";case 3:return"error";case 4:return"alert"}};this.getBSType=function(n){switch(n.Type){case 0:return"info";case 1:return"warning";case 2:return"success";case 3:return"danger";case 4:return"default"}};this.setAsReaded=function(n){this.signalRHub.server.setAsReaded(n)};this.actionFns={example:function(n){console.log(n)}}}var helpers,ncLocalStorage,urlrewrite,loader,grid,autoForm,filt,phonenumber;if(typeof jQuery=="undefined")throw new Error("Bootstrap's JavaScript requires jQuery");+function(n){"use strict";var t=n.fn.jquery.split(" ")[0].split(".");if(t[0]<2&&t[1]<9||t[0]==1&&t[1]==9&&t[2]<1||t[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4");}(jQuery);+function(n){"use strict";function t(){var i=document.createElement("bootstrap"),n={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var t in n)if(i.style[t]!==undefined)return{end:n[t]};return!1}n.fn.emulateTransitionEnd=function(t){var i=!1,u=this,r;n(this).one("bsTransitionEnd",function(){i=!0});return r=function(){i||n(u).trigger(n.support.transition.end)},setTimeout(r,t),this};n(function(){(n.support.transition=t(),n.support.transition)&&(n.event.special.bsTransitionEnd={bindType:n.support.transition.end,delegateType:n.support.transition.end,handle:function(t){if(n(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}})})}(jQuery);+function(n){"use strict";function u(i){return this.each(function(){var r=n(this),u=r.data("bs.alert");u||r.data("bs.alert",u=new t(this));typeof i=="string"&&u[i].call(r)})}var i='[data-dismiss="alert"]',t=function(t){n(t).on("click",i,this.close)},r;t.VERSION="3.4.1";t.TRANSITION_DURATION=150;t.prototype.close=function(i){function e(){u.detach().trigger("closed.bs.alert").remove()}var f=n(this),r=f.attr("data-target"),u;(r||(r=f.attr("href"),r=r&&r.replace(/.*(?=#[^\s]*$)/,"")),r=r==="#"?[]:r,u=n(document).find(r),i&&i.preventDefault(),u.length||(u=f.closest(".alert")),u.trigger(i=n.Event("close.bs.alert")),i.isDefaultPrevented())||(u.removeClass("in"),n.support.transition&&u.hasClass("fade")?u.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e())};r=n.fn.alert;n.fn.alert=u;n.fn.alert.Constructor=t;n.fn.alert.noConflict=function(){return n.fn.alert=r,this};n(document).on("click.bs.alert.data-api",i,t.prototype.close)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.button"),f=typeof i=="object"&&i;r||u.data("bs.button",r=new t(this,f));i=="toggle"?r.toggle():i&&r.setState(i)})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.isLoading=!1},r;t.VERSION="3.4.1";t.DEFAULTS={loadingText:"loading..."};t.prototype.setState=function(t){var i="disabled",r=this.$element,f=r.is("input")?"val":"html",u=r.data();t+="Text";u.resetText==null&&r.data("resetText",r[f]());setTimeout(n.proxy(function(){r[f](u[t]==null?this.options[t]:u[t]);t=="loadingText"?(this.isLoading=!0,r.addClass(i).attr(i,i).prop(i,!0)):this.isLoading&&(this.isLoading=!1,r.removeClass(i).removeAttr(i).prop(i,!1))},this),0)};t.prototype.toggle=function(){var t=!0,i=this.$element.closest('[data-toggle="buttons"]'),n;i.length?(n=this.$element.find("input"),n.prop("type")=="radio"?(n.prop("checked")&&(t=!1),i.find(".active").removeClass("active"),this.$element.addClass("active")):n.prop("type")=="checkbox"&&(n.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),n.prop("checked",this.$element.hasClass("active")),t&&n.trigger("change")):(this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active"))};r=n.fn.button;n.fn.button=i;n.fn.button.Constructor=t;n.fn.button.noConflict=function(){return n.fn.button=r,this};n(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(t){var r=n(t.target).closest(".btn");i.call(r,"toggle");n(t.target).is('input[type="radio"], input[type="checkbox"]')||(t.preventDefault(),r.is("input,button")?r.trigger("focus"):r.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(t){n(t.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(t.type))})}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.carousel"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i),e=typeof i=="string"?i:f.slide;r||u.data("bs.carousel",r=new t(this,f));typeof i=="number"?r.to(i):e?r[e]():f.interval&&r.pause().cycle()})}var t=function(t,i){this.$element=n(t);this.$indicators=this.$element.find(".carousel-indicators");this.options=i;this.paused=null;this.sliding=null;this.interval=null;this.$active=null;this.$items=null;this.options.keyboard&&this.$element.on("keydown.bs.carousel",n.proxy(this.keydown,this));this.options.pause!="hover"||"ontouchstart"in document.documentElement||this.$element.on("mouseenter.bs.carousel",n.proxy(this.pause,this)).on("mouseleave.bs.carousel",n.proxy(this.cycle,this))},u,r;t.VERSION="3.4.1";t.TRANSITION_DURATION=600;t.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0};t.prototype.keydown=function(n){if(!/input|textarea/i.test(n.target.tagName)){switch(n.which){case 37:this.prev();break;case 39:this.next();break;default:return}n.preventDefault()}};t.prototype.cycle=function(t){return t||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(n.proxy(this.next,this),this.options.interval)),this};t.prototype.getItemIndex=function(n){return this.$items=n.parent().children(".item"),this.$items.index(n||this.$active)};t.prototype.getItemForDirection=function(n,t){var i=this.getItemIndex(t),f=n=="prev"&&i===0||n=="next"&&i==this.$items.length-1,r,u;return f&&!this.options.wrap?t:(r=n=="prev"?-1:1,u=(i+r)%this.$items.length,this.$items.eq(u))};t.prototype.to=function(n){var i=this,t=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(n>this.$items.length-1)&&!(n<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){i.to(n)}):t==n?this.pause().cycle():this.slide(n>t?"next":"prev",this.$items.eq(n))};t.prototype.pause=function(t){return t||(this.paused=!0),this.$element.find(".next, .prev").length&&n.support.transition&&(this.$element.trigger(n.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this};t.prototype.next=function(){if(!this.sliding)return this.slide("next")};t.prototype.prev=function(){if(!this.sliding)return this.slide("prev")};t.prototype.slide=function(i,r){var e=this.$element.find(".item.active"),u=r||this.getItemForDirection(i,e),l=this.interval,f=i=="next"?"left":"right",a=this,o,s,h,c;return u.hasClass("active")?this.sliding=!1:(o=u[0],s=n.Event("slide.bs.carousel",{relatedTarget:o,direction:f}),this.$element.trigger(s),s.isDefaultPrevented())?void 0:(this.sliding=!0,l&&this.pause(),this.$indicators.length&&(this.$indicators.find(".active").removeClass("active"),h=n(this.$indicators.children()[this.getItemIndex(u)]),h&&h.addClass("active")),c=n.Event("slid.bs.carousel",{relatedTarget:o,direction:f}),n.support.transition&&this.$element.hasClass("slide")?(u.addClass(i),typeof u=="object"&&u.length&&u[0].offsetWidth,e.addClass(f),u.addClass(f),e.one("bsTransitionEnd",function(){u.removeClass([i,f].join(" ")).addClass("active");e.removeClass(["active",f].join(" "));a.sliding=!1;setTimeout(function(){a.$element.trigger(c)},0)}).emulateTransitionEnd(t.TRANSITION_DURATION)):(e.removeClass("active"),u.addClass("active"),this.sliding=!1,this.$element.trigger(c)),l&&this.cycle(),this)};u=n.fn.carousel;n.fn.carousel=i;n.fn.carousel.Constructor=t;n.fn.carousel.noConflict=function(){return n.fn.carousel=u,this};r=function(t){var u=n(this),f=u.attr("href"),s,r,o,e;(f&&(f=f.replace(/.*(?=#[^\s]+$)/,"")),s=u.attr("data-target")||f,r=n(document).find(s),r.hasClass("carousel"))&&(o=n.extend({},r.data(),u.data()),e=u.attr("data-slide-to"),e&&(o.interval=!1),i.call(r,o),e&&r.data("bs.carousel").to(e),t.preventDefault())};n(document).on("click.bs.carousel.data-api","[data-slide]",r).on("click.bs.carousel.data-api","[data-slide-to]",r);n(window).on("load",function(){n('[data-ride="carousel"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(t){var i,r=t.attr("data-target")||(i=t.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,"");return n(document).find(r)}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.collapse"),f=n.extend({},t.DEFAULTS,u.data(),typeof i=="object"&&i);!r&&f.toggle&&/show|hide/.test(i)&&(f.toggle=!1);r||u.data("bs.collapse",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.$element=n(i);this.options=n.extend({},t.DEFAULTS,r);this.$trigger=n('[data-toggle="collapse"][href="#'+i.id+'"],[data-toggle="collapse"][data-target="#'+i.id+'"]');this.transitioning=null;this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger);this.options.toggle&&this.toggle()},u;t.VERSION="3.4.1";t.TRANSITION_DURATION=350;t.DEFAULTS={toggle:!0};t.prototype.dimension=function(){var n=this.$element.hasClass("width");return n?"width":"height"};t.prototype.show=function(){var f,r,e,u,o,s;if(!this.transitioning&&!this.$element.hasClass("in")&&(r=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing"),!r||!r.length||(f=r.data("bs.collapse"),!f||!f.transitioning))&&(e=n.Event("show.bs.collapse"),this.$element.trigger(e),!e.isDefaultPrevented())){if(r&&r.length&&(i.call(r,"hide"),f||r.data("bs.collapse",null)),u=this.dimension(),this.$element.removeClass("collapse").addClass("collapsing")[u](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1,o=function(){this.$element.removeClass("collapsing").addClass("collapse in")[u]("");this.transitioning=0;this.$element.trigger("shown.bs.collapse")},!n.support.transition)return o.call(this);s=n.camelCase(["scroll",u].join("-"));this.$element.one("bsTransitionEnd",n.proxy(o,this)).emulateTransitionEnd(t.TRANSITION_DURATION)[u](this.$element[0][s])}};t.prototype.hide=function(){var r,i,u;if(!this.transitioning&&this.$element.hasClass("in")&&(r=n.Event("hide.bs.collapse"),this.$element.trigger(r),!r.isDefaultPrevented())){if(i=this.dimension(),this.$element[i](this.$element[i]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1,u=function(){this.transitioning=0;this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")},!n.support.transition)return u.call(this);this.$element[i](0).one("bsTransitionEnd",n.proxy(u,this)).emulateTransitionEnd(t.TRANSITION_DURATION)}};t.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()};t.prototype.getParent=function(){return n(document).find(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(n.proxy(function(t,i){var u=n(i);this.addAriaAndCollapsedClass(r(u),u)},this)).end()};t.prototype.addAriaAndCollapsedClass=function(n,t){var i=n.hasClass("in");n.attr("aria-expanded",i);t.toggleClass("collapsed",!i).attr("aria-expanded",i)};u=n.fn.collapse;n.fn.collapse=i;n.fn.collapse.Constructor=t;n.fn.collapse.noConflict=function(){return n.fn.collapse=u,this};n(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(t){var u=n(this);u.attr("data-target")||t.preventDefault();var f=r(u),e=f.data("bs.collapse"),o=e?"toggle":u.data();i.call(f,o)})}(jQuery);+function(n){"use strict";function r(t){var i=t.attr("data-target"),r;return i||(i=t.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,"")),r=i!=="#"?n(document).find(i):null,r&&r.length?r:t.parent()}function u(t){t&&t.which===3||(n(e).remove(),n(i).each(function(){var u=n(this),i=r(u),f={relatedTarget:this};i.hasClass("open")&&(t&&t.type=="click"&&/input|textarea|select/i.test(t.target.tagName)&&n.contains(i[0],t.target)||t!=null&&n("#date-range-selector").find(t.target).length>0||(i.trigger(t=n.Event("hide.bs.dropdown",f)),t.isDefaultPrevented())||(u.attr("aria-expanded","false"),i.removeClass("open").trigger(n.Event("hidden.bs.dropdown",f))))}))}function o(i){return this.each(function(){var r=n(this),u=r.data("bs.dropdown");u||r.data("bs.dropdown",u=new t(this));typeof i=="string"&&u[i].call(r)})}var e=".dropdown-backdrop",i='[data-toggle="dropdown"]',t=function(t){n(t).on("click.bs.dropdown",this.toggle)},f;t.VERSION="3.4.1";t.prototype.toggle=function(t){var f=n(this),i,o,e;if(!f.is(".disabled, :disabled")){if(i=r(f),o=i.hasClass("open"),u(),!o){if("ontouchstart"in document.documentElement&&!i.closest(".navbar-nav").length)n(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(n(this)).on("click",u);if(e={relatedTarget:this},i.trigger(t=n.Event("show.bs.dropdown",e)),t.isDefaultPrevented())return;f.trigger("focus").attr("aria-expanded","true");i.toggleClass("open").trigger(n.Event("shown.bs.dropdown",e))}return!1}};t.prototype.keydown=function(t){var e,o,s,h,f,u;if(/(38|40|27|32)/.test(t.which)&&!/input|textarea/i.test(t.target.tagName)&&(e=n(this),t.preventDefault(),t.stopPropagation(),!e.is(".disabled, :disabled"))){if(o=r(e),s=o.hasClass("open"),!s&&t.which!=27||s&&t.which==27)return t.which==27&&o.find(i).trigger("focus"),e.trigger("click");(h=" li:not(.disabled):visible a",f=o.find(".dropdown-menu"+h),f.length)&&(u=f.index(t.target),t.which==38&&u>0&&u--,t.which==40&&u<f.length-1&&u++,~u||(u=0),f.eq(u).trigger("focus"))}};f=n.fn.dropdown;n.fn.dropdown=o;n.fn.dropdown.Constructor=t;n.fn.dropdown.noConflict=function(){return n.fn.dropdown=f,this};n(document).on("click.bs.dropdown.data-api",u).on("click.bs.dropdown.data-api",".dropdown form",function(n){n.stopPropagation()}).on("click.bs.dropdown.data-api",i,t.prototype.toggle).on("keydown.bs.dropdown.data-api",i,t.prototype.keydown).on("keydown.bs.dropdown.data-api",".dropdown-menu",t.prototype.keydown)}(jQuery);+function(n){"use strict";function i(i,r){return this.each(function(){var f=n(this),u=f.data("bs.modal"),e=n.extend({},t.DEFAULTS,f.data(),typeof i=="object"&&i);u||f.data("bs.modal",u=new t(this,e));typeof i=="string"?u[i](r):e.show&&u.show(r)})}var t=function(t,i){this.options=i;this.$body=n(document.body);this.$element=n(t);this.$dialog=this.$element.find(".modal-dialog");this.$backdrop=null;this.isShown=null;this.originalBodyPad=null;this.scrollbarWidth=0;this.ignoreBackdropClick=!1;this.fixedContent=".navbar-fixed-top, .navbar-fixed-bottom";this.options.remote&&this.$element.find(".modal-content").load(this.options.remote,n.proxy(function(){this.$element.trigger("loaded.bs.modal")},this))},r;t.VERSION="3.4.1";t.TRANSITION_DURATION=300;t.BACKDROP_TRANSITION_DURATION=150;t.DEFAULTS={backdrop:!0,keyboard:!0,show:!0};t.prototype.toggle=function(n){return this.isShown?this.hide():this.show(n)};t.prototype.show=function(i){var r=this,u=n.Event("show.bs.modal",{relatedTarget:i});if(this.$element.trigger(u),!this.isShown&&!u.isDefaultPrevented()){this.isShown=!0;this.checkScrollbar();this.setScrollbar();this.$body.addClass("modal-open");this.escape();this.resize();this.$element.on("click.dismiss.bs.modal",'[data-dismiss="modal"]',n.proxy(this.hide,this));this.$dialog.on("mousedown.dismiss.bs.modal",function(){r.$element.one("mouseup.dismiss.bs.modal",function(t){n(t.target).is(r.$element)&&(r.ignoreBackdropClick=!0)})});this.backdrop(function(){var f=n.support.transition&&r.$element.hasClass("fade"),u;r.$element.parent().length||r.$element.appendTo(r.$body);r.$element.show().scrollTop(0);r.adjustDialog();f&&r.$element[0].offsetWidth;r.$element.addClass("in");r.enforceFocus();u=n.Event("shown.bs.modal",{relatedTarget:i});f?r.$dialog.one("bsTransitionEnd",function(){r.$element.trigger("focus").trigger(u)}).emulateTransitionEnd(t.TRANSITION_DURATION):r.$element.trigger("focus").trigger(u)})}};t.prototype.hide=function(i){(i&&i.preventDefault(),i=n.Event("hide.bs.modal"),this.$element.trigger(i),this.isShown&&!i.isDefaultPrevented())&&(this.isShown=!1,this.escape(),this.resize(),n(document).off("focusin.bs.modal"),this.$element.removeClass("in").off("click.dismiss.bs.modal").off("mouseup.dismiss.bs.modal"),this.$dialog.off("mousedown.dismiss.bs.modal"),n.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",n.proxy(this.hideModal,this)).emulateTransitionEnd(t.TRANSITION_DURATION):this.hideModal())};t.prototype.enforceFocus=function(){n(document).off("focusin.bs.modal").on("focusin.bs.modal",n.proxy(function(n){document===n.target||this.$element[0]===n.target||this.$element.has(n.target).length||this.$element.trigger("focus")},this))};t.prototype.escape=function(){if(this.isShown&&this.options.keyboard)this.$element.on("keydown.dismiss.bs.modal",n.proxy(function(n){n.which==27&&this.hide()},this));else this.isShown||this.$element.off("keydown.dismiss.bs.modal")};t.prototype.resize=function(){if(this.isShown)n(window).on("resize.bs.modal",n.proxy(this.handleUpdate,this));else n(window).off("resize.bs.modal")};t.prototype.hideModal=function(){var n=this;this.$element.hide();this.backdrop(function(){n.$body.removeClass("modal-open");n.resetAdjustments();n.resetScrollbar();n.$element.trigger("hidden.bs.modal")})};t.prototype.removeBackdrop=function(){this.$backdrop&&this.$backdrop.remove();this.$backdrop=null};t.prototype.backdrop=function(i){var e=this,f=this.$element.hasClass("fade")?"fade":"",r,u;if(this.isShown&&this.options.backdrop){r=n.support.transition&&f;this.$backdrop=n(document.createElement("div")).addClass("modal-backdrop "+f).appendTo(this.$body);this.$element.on("click.dismiss.bs.modal",n.proxy(function(n){if(this.ignoreBackdropClick){this.ignoreBackdropClick=!1;return}n.target===n.currentTarget&&(this.options.backdrop=="static"?this.$element[0].focus():this.hide())},this));if(r&&this.$backdrop[0].offsetWidth,this.$backdrop.addClass("in"),!i)return;r?this.$backdrop.one("bsTransitionEnd",i).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):i()}else!this.isShown&&this.$backdrop?(this.$backdrop.removeClass("in"),u=function(){e.removeBackdrop();i&&i()},n.support.transition&&this.$element.hasClass("fade")?this.$backdrop.one("bsTransitionEnd",u).emulateTransitionEnd(t.BACKDROP_TRANSITION_DURATION):u()):i&&i()};t.prototype.handleUpdate=function(){this.adjustDialog()};t.prototype.adjustDialog=function(){var n=this.$element[0].scrollHeight>document.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&n?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!n?this.scrollbarWidth:""})};t.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})};t.prototype.checkScrollbar=function(){var n=window.innerWidth,t;n||(t=document.documentElement.getBoundingClientRect(),n=t.right-Math.abs(t.left));this.bodyIsOverflowing=document.body.clientWidth<n;this.scrollbarWidth=this.measureScrollbar()};t.prototype.setScrollbar=function(){var i=parseInt(this.$body.css("padding-right")||0,10),t;this.originalBodyPad=document.body.style.paddingRight||"";t=this.scrollbarWidth;this.bodyIsOverflowing&&(this.$body.css("padding-right",i+t),n(this.fixedContent).each(function(i,r){var u=r.style.paddingRight,f=n(r).css("padding-right");n(r).data("padding-right",u).css("padding-right",parseFloat(f)+t+"px")}))};t.prototype.resetScrollbar=function(){this.$body.css("padding-right",this.originalBodyPad);n(this.fixedContent).each(function(t,i){var r=n(i).data("padding-right");n(i).removeData("padding-right");i.style.paddingRight=r?r:""})};t.prototype.measureScrollbar=function(){var n=document.createElement("div"),t;return n.className="modal-scrollbar-measure",this.$body.append(n),t=n.offsetWidth-n.clientWidth,this.$body[0].removeChild(n),t};r=n.fn.modal;n.fn.modal=i;n.fn.modal.Constructor=t;n.fn.modal.noConflict=function(){return n.fn.modal=r,this};n(document).on("click.bs.modal.data-api",'[data-toggle="modal"]',function(t){var r=n(this),f=r.attr("href"),e=r.attr("data-target")||f&&f.replace(/.*(?=#[^\s]+$)/,""),u=n(document).find(e),o=u.data("bs.modal")?"toggle":n.extend({remote:!/#/.test(f)&&f},u.data(),r.data());r.is("a")&&t.preventDefault();u.one("show.bs.modal",function(n){if(!n.isDefaultPrevented())u.one("hidden.bs.modal",function(){r.is(":visible")&&r.trigger("focus")})});i.call(u,o,this)})}(jQuery);+function(n){"use strict";function s(t,i){var u=t.nodeName.toLowerCase(),s,r,h;if(n.inArray(u,i)!==-1)return n.inArray(u,f)!==-1?Boolean(t.nodeValue.match(e)||t.nodeValue.match(o)):!0;for(s=n(i).filter(function(n,t){return t instanceof RegExp}),r=0,h=s.length;r<h;r++)if(u.match(s[r]))return!0;return!1}function i(t,i,r){var e,a,c,o,v,u,l,h,y,f,p;if(t.length===0)return t;if(r&&typeof r=="function")return r(t);if(!document.implementation||!document.implementation.createHTMLDocument)return t;for(e=document.implementation.createHTMLDocument("sanitization"),e.body.innerHTML=t,a=n.map(i,function(n,t){return t}),c=n(e.body).find("*"),o=0,v=c.length;o<v;o++){if(u=c[o],l=u.nodeName.toLowerCase(),n.inArray(l,a)===-1){u.parentNode.removeChild(u);continue}for(h=n.map(u.attributes,function(n){return n}),y=[].concat(i["*"]||[],i[l]||[]),f=0,p=h.length;f<p;f++)s(h[f],y)||u.removeAttribute(h[f].nodeName)}return e.body.innerHTML}function h(n,t,i,r){var u=3,f=t<r.left||t>r.left+r.width,e=t>r.right||t<r.right-r.width,o=i>r.bottom||i>r.bottom+r.height+u,s=i<r.top||i>r.top+r.height+u;return n.hasClass("bottom")?f||e||o||i<r.top-u:n.hasClass("top")?f||e||s||i>r.bottom+u:void 0}function c(i){return this.each(function(){var u=n(this),r=u.data("bs.tooltip"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.tooltip",r=new t(this,f)),typeof i=="string"&&r[i]())})}var u=["sanitize","whiteList","sanitizeFn"],f=["background","cite","href","itemtype","longdesc","poster","src","xlink:href"],e=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,o=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+/]+=*$/i,t=function(n,t){this.type=null;this.options=null;this.enabled=null;this.timeout=null;this.hoverState=null;this.$element=null;this.inState=null;this.init("tooltip",n,t)},r;t.VERSION="3.4.1";t.TRANSITION_DURATION=150;t.DEFAULTS={animation:!0,placement:"top",selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"><\/div><div class="tooltip-inner"><\/div><\/div>',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0},sanitize:!0,sanitizeFn:null,whiteList:{"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]}};t.prototype.init=function(t,i,r){var f,e,u,o,s;if(this.enabled=!0,this.type=t,this.$element=n(i),this.options=this.getOptions(r),this.$viewport=this.options.viewport&&n(document).find(n.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(f=this.options.trigger.split(" "),e=f.length;e--;)if(u=f[e],u=="click")this.$element.on("click."+this.type,this.options.selector,n.proxy(this.toggle,this));else if(u!="manual"){o=u=="hover"?"mouseenter":"focusin";s=u=="hover"?"mouseleave":"focusout";this.$element.on(o+"."+this.type,this.options.selector,n.proxy(this.enter,this));this.$element.on(s+"."+this.type,this.options.selector,n.proxy(this.leave,this))}this.options.selector?this._options=n.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()};t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.getOptions=function(t){var r=this.$element.data();for(var f in r)r.hasOwnProperty(f)&&n.inArray(f,u)!==-1&&delete r[f];return t=n.extend({},this.getDefaults(),r,t),t.delay&&typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),t.sanitize&&(t.template=i(t.template,t.whiteList,t.sanitizeFn)),t};t.prototype.getDelegateOptions=function(){var t={},i=this.getDefaults();return this._options&&n.each(this._options,function(n,r){i[n]!=r&&(t[n]=r)}),t};t.prototype.enter=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusin"?"focus":"hover"]=!0),i.tip().hasClass("in")||i.hoverState=="in"){i.hoverState="in";return}if(clearTimeout(i.timeout),i.hoverState="in",!i.options.delay||!i.options.delay.show)return i.show();i.timeout=setTimeout(function(){i.hoverState=="in"&&i.show()},i.options.delay.show)};t.prototype.isInStateTrue=function(){for(var n in this.inState)if(this.inState[n])return!0;return!1};t.prototype.leave=function(t){var i=t instanceof this.constructor?t:n(t.currentTarget).data("bs."+this.type);if(i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)),t instanceof n.Event&&(i.inState[t.type=="focusout"?"focus":"hover"]=!1),!i.isInStateTrue()){if(t instanceof n.Event&&(t.type==="mouseleave"||t.type==="mousemove")){if(i.$tip===undefined)return;var r=i.$tip,u=t.clientX,f=t.clientY,e=i.$tip[0].getBoundingClientRect();if(h(r,u,f,e))n(".tooltip.fade.in").each(function(t,i){n(i).hide()});else return}if(clearTimeout(i.timeout),i.hoverState="out",!i.options.delay||!i.options.delay.hide)return i.hide();i.timeout=setTimeout(function(){i.hoverState==="out"&&i.hide()},i.options.delay.hide)}};t.prototype.show=function(){var l=n.Event("show.bs."+this.type),a,u,i,s,p,e,w,o;if(this.hasContent()&&this.enabled){if(this.$element.trigger(l),a=n.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]),l.isDefaultPrevented()||!a)return;u=this;i=this.tip();n(".tooltip.fade.in").hide();i.on("mouseleave",function(n){if(i.hasClass("tooltip")){var r=n.clientX,f=n.clientY,t=i[0].getBoundingClientRect();(f+3>Math.floor(t.bottom)||f+3>Math.floor(t.top)||r+3>Math.floor(t.left)||r+3>Math.floor(t.right))&&u.hide()}});s=this.getUID(this.type);this.setContent();i.attr("id",s);this.$element.parent().hasClass("ignore-tooltip")||this.$element.attr("aria-describedby",s).attr("aria-expanded","true");this.options.animation&&i.addClass("fade");var r=typeof this.options.placement=="function"?this.options.placement.call(this,i[0],this.$element[0]):this.options.placement,v=/\s?auto?\s?/i,y=v.test(r);y&&(r=r.replace(v,"")||"top");i.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this);this.options.container?i.appendTo(n(document).find(this.options.container)):i.insertAfter(this.$element);this.$element.trigger("inserted.bs."+this.type);var f=this.getPosition(),h=i[0].offsetWidth,c=i[0].offsetHeight;y&&(p=r,e=this.getPosition(this.$viewport),r=r==="bottom"&&f.bottom+c>e.bottom?"top":r==="top"&&f.top-c<e.top?"bottom":r==="right"&&f.right+h>e.width?"left":r==="left"&&f.left-h<e.left?"right":r,i.removeClass(p).addClass(r));w=this.getCalculatedOffset(r,f,h,c);this.applyPlacement(w,r);o=function(){var n=u.hoverState;u.$element.trigger("shown.bs."+u.type);u.hoverState=null;n==="out"&&u.leave(u)};this.$element.parent().hasClass("ignore-tooltip")||(n.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o());n.support.transition&&this.$tip.hasClass("fade")?i.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o()}};document.addEventListener("keydown",function(t){(t.code==="27"||t.key==="Escape")&&n(".tooltip.in").each(function(){n(this).tooltip("hide")})});t.prototype.applyPlacement=function(t,i){var r=this.tip(),l=r[0].offsetWidth,e=r[0].offsetHeight,o=parseInt(r.css("margin-top"),10),s=parseInt(r.css("margin-left"),10),h,f,u;isNaN(o)&&(o=0);isNaN(s)&&(s=0);t.top+=o;t.left+=s;n.offset.setOffset(r[0],n.extend({using:function(n){r.css({top:Math.round(n.top),left:Math.round(n.left)})}},t),0);r.addClass("in");h=r[0].offsetWidth;f=r[0].offsetHeight;i=="top"&&f!==e&&(t.top=t.top+e-f);u=this.getViewportAdjustedDelta(i,t,h,f);u.left?t.left+=u.left:t.top+=u.top;var c=/top|bottom/.test(i),a=c?u.left*2-l+h:u.top*2-e+f,v=c?"offsetWidth":"offsetHeight";r.offset(t);this.replaceArrow(a,r[0][v],c)};t.prototype.replaceArrow=function(n,t,i){browser.isFirefox()?this.arrow().css(i?"left":"top",i?50*(1-n/t)+"%":42*(1-n/t)+"%").css(i?"top":"left",""):this.arrow().css(i?"left":"top",i?50*(1-n/t)+"%":45*(1-n/t)+"%").css(i?"top":"left","")};t.prototype.setContent=function(){var t=this.tip(),n=this.getTitle();this.options.html?(this.options.sanitize&&(n=i(n,this.options.whiteList,this.options.sanitizeFn)),t.find(".tooltip-inner").html(n)):t.find(".tooltip-inner").text(n);t.removeClass("fade in top bottom left right")};t.prototype.hide=function(i){function e(){r.hoverState!=="in"&&u.detach();r.$element&&(r.$element.hasClass("active")||r.$element.hasClass("ignore-tooltip")||r.$element.removeAttr("aria-expanded").attr("aria-expanded","false"),r.$element.removeAttr("aria-describedby").trigger("hidden.bs."+r.type));i&&i()}var r=this,u=n(this.$tip),f=n.Event("hide.bs."+this.type);if(this.$element.trigger(f),!f.isDefaultPrevented())return u.removeClass("in"),n.support.transition&&u.hasClass("fade")?u.one("bsTransitionEnd",e).emulateTransitionEnd(t.TRANSITION_DURATION):e(),this.hoverState=null,this};t.prototype.fixTitle=function(){var n=this.$element;(n.attr("title")||typeof n.attr("data-original-title")!="string")&&n.attr("data-original-title",n.attr("title")||"").attr("title","")};t.prototype.hasContent=function(){return this.getTitle()};t.prototype.getPosition=function(t){t=t||this.$element;var r=t[0],u=r.tagName==="BODY",i=r.getBoundingClientRect();i.width==null&&(i=n.extend({},i,{width:i.right-i.left,height:i.bottom-i.top}));var f=window.SVGElement&&r instanceof window.SVGElement,e=u?{top:0,left:0}:f?null:t.offset(),o={scroll:u?document.documentElement.scrollTop||document.body.scrollTop:t.scrollTop()},s=u?{width:n(window).width(),height:n(window).height()}:null;return n.extend({},i,o,s,e)};t.prototype.getCalculatedOffset=function(n,t,i,r){return n==="bottom"?{top:t.top+t.height,left:t.left+t.width/2-i/2}:n==="top"?{top:t.top-r,left:t.left+t.width/2-i/2}:n==="left"?{top:t.top+t.height/2-r/2,left:t.left-i}:{top:t.top+t.height/2-r/2,left:t.left+t.width}};t.prototype.getViewportAdjustedDelta=function(n,t,i,r){var f={top:0,left:0},e,u,o,s,h,c;return this.$viewport?(e=this.options.viewport&&this.options.viewport.padding||0,u=this.getPosition(this.$viewport),/right|left/.test(n)?(o=t.top-e-u.scroll,s=t.top+e-u.scroll+r,o<u.top?f.top=u.top-o:s>u.top+u.height&&(f.top=u.top+u.height-s)):(h=t.left-e,c=t.left+e+i,h<u.left?f.left=u.left-h:c>u.right&&(f.left=u.left+u.width-c)),f):f};t.prototype.getTitle=function(){var t=this.$element,n=this.options;return t.attr("data-original-title")||(typeof n.title=="function"?n.title.call(t[0]):n.title)};t.prototype.getUID=function(n){do n+=~~(Math.random()*1e6);while(document.getElementById(n));return n};t.prototype.tip=function(){if(!this.$tip&&(this.$tip=n(this.options.template),this.$tip.length!==1))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")};t.prototype.enable=function(){this.enabled=!0};t.prototype.disable=function(){this.enabled=!1};t.prototype.toggleEnabled=function(){this.enabled=!this.enabled};t.prototype.toggle=function(t){var i=this;t&&(i=n(t.currentTarget).data("bs."+this.type),i||(i=new this.constructor(t.currentTarget,this.getDelegateOptions()),n(t.currentTarget).data("bs."+this.type,i)));t?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)};t.prototype.destroy=function(){var n=this;clearTimeout(this.timeout);this.hide(function(){n.$element.off("."+n.type).removeData("bs."+n.type);n.$tip&&n.$tip.detach();n.$tip=null;n.$arrow=null;n.$viewport=null;n.$element=null})};t.prototype.sanitizeHtml=function(n){return i(n,this.options.whiteList,this.options.sanitizeFn)};r=n.fn.tooltip;n.fn.tooltip=c;n.fn.tooltip.Constructor=t;n.fn.tooltip.noConflict=function(){return n.fn.tooltip=r,this}}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.popover"),f=typeof i=="object"&&i;(r||!/destroy|hide/.test(i))&&(r||u.data("bs.popover",r=new t(this,f)),typeof i=="string"&&r[i]())})}var t=function(n,t){this.init("popover",n,t)},i;if(!n.fn.tooltip)throw new Error("Popover requires tooltip.js");t.VERSION="3.4.1";t.DEFAULTS=n.extend({},n.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:'<div class="popover" role="tooltip"><div class="arrow"><\/div><h3 class="popover-title"><\/h3><div class="popover-content"><\/div><\/div>'});t.prototype=n.extend({},n.fn.tooltip.Constructor.prototype);t.prototype.constructor=t;t.prototype.getDefaults=function(){return t.DEFAULTS};t.prototype.hide=function(t){function f(){i.hoverState!=="in"&&r.detach();i.$element&&i.$element.removeAttr("aria-describedby").trigger("hidden.bs."+i.type);t&&t()}var i=this,r=n(this.$tip),u=n.Event("hide.bs."+this.type);if(this.$element.trigger(u),!u.isDefaultPrevented())return r.removeClass("in"),n.support.transition&&r.hasClass("fade")?r.one("bsTransitionEnd",f).emulateTransitionEnd(150):f(),this.hoverState=null,this};t.prototype.setContent=function(){var n=this.tip(),i=this.getTitle(),t=this.getContent(),r;this.options.html?(r=typeof t,this.options.sanitize&&(i=this.sanitizeHtml(i),r==="string"&&(t=this.sanitizeHtml(t))),n.find(".popover-title").html(i),n.find(".popover-content").children().detach().end()[r==="string"?"html":"append"](t)):(n.find(".popover-title").text(i),n.find(".popover-content").children().detach().end().text(t));n.removeClass("fade top bottom left right in");n.find(".popover-title").html()||n.find(".popover-title").hide()};t.prototype.hasContent=function(){return this.getTitle()||this.getContent()};t.prototype.getContent=function(){var t=this.$element,n=this.options;return t.attr("data-content")||(typeof n.content=="function"?n.content.call(t[0]):n.content)};t.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};i=n.fn.popover;n.fn.popover=r;n.fn.popover.Constructor=t;n.fn.popover.noConflict=function(){return n.fn.popover=i,this}}(jQuery);+function(n){"use strict";function t(i,r){this.$body=n(document.body);this.$scrollElement=n(i).is(document.body)?n(window):n(i);this.options=n.extend({},t.DEFAULTS,r);this.selector=(this.options.target||"")+" .nav li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.$scrollElement.on("scroll.bs.scrollspy",n.proxy(this.process,this));this.refresh();this.process()}function i(i){return this.each(function(){var u=n(this),r=u.data("bs.scrollspy"),f=typeof i=="object"&&i;r||u.data("bs.scrollspy",r=new t(this,f));typeof i=="string"&&r[i]()})}t.VERSION="3.4.1";t.DEFAULTS={offset:10};t.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)};t.prototype.refresh=function(){var t=this,i="offset",r=0;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();n.isWindow(this.$scrollElement[0])||(i="position",r=this.$scrollElement.scrollTop());this.$body.find(this.selector).map(function(){var f=n(this),u=f.data("target")||f.attr("href"),t=/^#./.test(u)&&n(u);return t&&t.length&&t.is(":visible")&&[[t[i]().top+r,u]]||null}).sort(function(n,t){return n[0]-t[0]}).each(function(){t.offsets.push(this[0]);t.targets.push(this[1])})};t.prototype.process=function(){var i=this.$scrollElement.scrollTop()+this.options.offset,f=this.getScrollHeight(),e=this.options.offset+f-this.$scrollElement.height(),t=this.offsets,r=this.targets,u=this.activeTarget,n;if(this.scrollHeight!=f&&this.refresh(),i>=e)return u!=(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!=r[n]&&i>=t[n]&&(t[n+1]===undefined||i<t[n+1])&&this.activate(r[n])};t.prototype.activate=function(t){this.activeTarget=t;this.clear();var r=this.selector+'[data-target="'+t+'"],'+this.selector+'[href="'+t+'"]',i=n(r).parents("li").addClass("active");i.parent(".dropdown-menu").length&&(i=i.closest("li.dropdown").addClass("active"));i.trigger("activate.bs.scrollspy")};t.prototype.clear=function(){n(this.selector).parentsUntil(this.options.target,".active").removeClass("active")};var r=n.fn.scrollspy;n.fn.scrollspy=i;n.fn.scrollspy.Constructor=t;n.fn.scrollspy.noConflict=function(){return n.fn.scrollspy=r,this};n(window).on("load.bs.scrollspy.data-api",function(){n('[data-spy="scroll"]').each(function(){var t=n(this);i.call(t,t.data())})})}(jQuery);+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.tab");r||u.data("bs.tab",r=new t(this));typeof i=="string"&&r[i]()})}var t=function(t){this.element=n(t)},u,i;t.VERSION="3.4.1";t.TRANSITION_DURATION=150;t.prototype.show=function(){var t=this.element,f=t.closest("ul:not(.dropdown-menu)"),i=t.data("target"),u;if(i||(i=t.attr("href"),i=i&&i.replace(/.*(?=#[^\s]*$)/,"")),!t.parent("li").hasClass("active")){var r=f.find(".active:last a"),e=n.Event("hide.bs.tab",{relatedTarget:t[0]}),o=n.Event("show.bs.tab",{relatedTarget:r[0]});(r.trigger(e),t.trigger(o),o.isDefaultPrevented()||e.isDefaultPrevented())||(u=n(document).find(i),this.activate(t.closest("li"),f),this.activate(u,u.parent(),function(){r.trigger({type:"hidden.bs.tab",relatedTarget:t[0]});t.trigger({type:"shown.bs.tab",relatedTarget:r[0]})}))}};t.prototype.activate=function(i,r,u){function o(){f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-current",!1).attr("aria-expanded",!1);f.removeClass("active").find("> .dropdown-menu > .active").removeClass("active").end().find(".tab-anchor").removeAttr("aria-expanded").attr("aria-selected",!1);i.addClass("active").find('[data-toggle="tab"]').attr("aria-current",!0).attr("aria-expanded",!0);i.addClass("active").find(".tab-anchor").removeAttr("aria-expanded").attr("aria-selected",!0);e?(i[0].offsetWidth,i.addClass("in")):i.removeClass("fade");i.parent(".dropdown-menu").length&&(i.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-current",!0).attr("aria-expanded",!0),i.closest("li.dropdown").addClass("active").end().find(".tab-anchor").removeAttr("aria-expanded").attr("aria-selected",!0));u&&u()}var f=r.find("> .active"),e=u&&n.support.transition&&(f.length&&f.hasClass("fade")||!!r.find("> .fade").length);f.length&&e?f.one("bsTransitionEnd",o).emulateTransitionEnd(t.TRANSITION_DURATION):o();f.removeClass("in")};u=n.fn.tab;n.fn.tab=r;n.fn.tab.Constructor=t;n.fn.tab.noConflict=function(){return n.fn.tab=u,this};i=function(t){t.preventDefault();r.call(n(this),"show")};n(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',i).on("click.bs.tab.data-api",'[data-toggle="pill"]',i)}(jQuery);+function(n){"use strict";function i(i){return this.each(function(){var u=n(this),r=u.data("bs.affix"),f=typeof i=="object"&&i;r||u.data("bs.affix",r=new t(this,f));typeof i=="string"&&r[i]()})}var t=function(i,r){this.options=n.extend({},t.DEFAULTS,r);var u=this.options.target===t.DEFAULTS.target?n(this.options.target):n(document).find(this.options.target);this.$target=u.on("scroll.bs.affix.data-api",n.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",n.proxy(this.checkPositionWithEventLoop,this));this.$element=n(i);this.affixed=null;this.unpin=null;this.pinnedOffset=null;this.checkPosition()},r;t.VERSION="3.4.1";t.RESET="affix affix-top affix-bottom";t.DEFAULTS={offset:0,target:window};t.prototype.getState=function(n,t,i,r){var u=this.$target.scrollTop(),f=this.$element.offset(),e=this.$target.height();if(i!=null&&this.affixed=="top")return u<i?"top":!1;if(this.affixed=="bottom")return i!=null?u+this.unpin<=f.top?!1:"bottom":u+e<=n-r?!1:"bottom";var o=this.affixed==null,s=o?u:f.top,h=o?e:t;return i!=null&&u<=i?"top":r!=null&&s+h>=n-r?"bottom":!1};t.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(t.RESET).addClass("affix");var n=this.$target.scrollTop(),i=this.$element.offset();return this.pinnedOffset=i.top-n};t.prototype.checkPositionWithEventLoop=function(){setTimeout(n.proxy(this.checkPosition,this),1)};t.prototype.checkPosition=function(){var i,e,o;if(this.$element.is(":visible")){var s=this.$element.height(),r=this.options.offset,f=r.top,u=r.bottom,h=Math.max(n(document).height(),n(document.body).height());if(typeof r!="object"&&(u=f=r),typeof f=="function"&&(f=r.top(this.$element)),typeof u=="function"&&(u=r.bottom(this.$element)),i=this.getState(h,s,f,u),this.affixed!=i){if(this.unpin!=null&&this.$element.css("top",""),e="affix"+(i?"-"+i:""),o=n.Event(e+".bs.affix"),this.$element.trigger(o),o.isDefaultPrevented())return;this.affixed=i;this.unpin=i=="bottom"?this.getPinnedOffset():null;this.$element.removeClass(t.RESET).addClass(e).trigger(e.replace("affix","affixed")+".bs.affix")}i=="bottom"&&this.$element.offset({top:h-s-u})}};r=n.fn.affix;n.fn.affix=i;n.fn.affix.Constructor=t;n.fn.affix.noConflict=function(){return n.fn.affix=r,this};n(window).on("load",function(){n('[data-spy="affix"]').each(function(){var r=n(this),t=r.data();t.offset=t.offset||{};t.offsetBottom!=null&&(t.offset.bottom=t.offsetBottom);t.offsetTop!=null&&(t.offset.top=t.offsetTop);i.call(r,t)})})}(jQuery),function(n){"use strict";n.matchMedia=n.matchMedia||function(n){var u,i=n.documentElement,f=i.firstElementChild||i.firstChild,r=n.createElement("body"),t=n.createElement("div");return t.id="mq-test-1",t.style.cssText="position:absolute;top:-100em",r.style.background="none",r.appendChild(t),function(n){return t.innerHTML='&shy;<style media="'+n+'"> #mq-test-1 { width: 42px; }<\/style>',i.insertBefore(r,f),u=t.offsetWidth===42,i.removeChild(r),{matches:u,media:n}}}(n.document)}(this),function(n){"use strict";function nt(){y(!0)}var t={};n.respond=t;t.update=function(){};var f=[],tt=function(){var t=!1;try{t=new n.XMLHttpRequest}catch(i){t=new n.ActiveXObject("Microsoft.XMLHTTP")}return function(){return t}}(),p=function(n,t){var i=tt();i&&(i.open("GET",n,!0),i.onreadystatechange=function(){i.readyState===4&&(i.status===200||i.status===304)&&t(i.responseText)},i.readyState!==4)&&i.send(null)};if(t.ajax=p,t.queue=f,t.regex={media:/@media[^\{]+\{([^\{\}]*\{[^\}\{]*\})+/gi,keyframes:/@(?:\-(?:o|moz|webkit)\-)?keyframes[^\{]+\{(?:[^\{\}]*\{[^\}\{]*\})+[^\}]*\}/gi,urls:/(url\()['"]?([^\/\)'"][^:\)'"]+)['"]?(\))/g,findStyles:/@media *([^\{]+)\{([\S\s]+?)$/,only:/(only\s+)?([a-zA-Z]+)\s?/,minw:/\([\s]*min\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/,maxw:/\([\s]*max\-width\s*:[\s]*([\s]*[0-9\.]+)(px|em)[\s]*\)/},t.mediaQueriesSupported=n.matchMedia&&n.matchMedia("only all")!==null&&n.matchMedia("only all").matches,!t.mediaQueriesSupported){var i=n.document,r=i.documentElement,e=[],o=[],u=[],c={},w=30,s=i.getElementsByTagName("head")[0]||r,it=i.getElementsByTagName("base")[0],h=s.getElementsByTagName("link"),l,b,a,v=function(){var f,t=i.createElement("div"),n=i.body,o=r.style.fontSize,e=n&&n.style.fontSize,u=!1;return t.style.cssText="position:absolute;font-size:1em;width:1em",n||(n=u=i.createElement("body"),n.style.background="none"),r.style.fontSize="100%",n.style.fontSize="100%",n.appendChild(t),u&&r.insertBefore(n,r.firstChild),f=t.offsetWidth,u?r.removeChild(n):n.removeChild(t),r.style.fontSize=o,e&&(n.style.fontSize=e),a=parseFloat(f)},y=function(t){var rt="clientWidth",ut=r[rt],ft=i.compatMode==="CSS1Compat"&&ut||i.body[rt]||ut,p={},ct=h[h.length-1],et=(new Date).getTime(),tt,g,nt,f,it;if(t&&l&&et-l<w){n.clearTimeout(b);b=n.setTimeout(y,w);return}l=et;for(tt in e)if(e.hasOwnProperty(tt)){var c=e[tt],k=c.minw,d=c.maxw,ot=k===null,st=d===null,ht="em";!k||(k=parseFloat(k)*(k.indexOf(ht)>-1?a||v():1));!d||(d=parseFloat(d)*(d.indexOf(ht)>-1?a||v():1));c.hasquery&&(ot&&st||!(ot||ft>=k)||!(st||ft<=d))||(p[c.media]||(p[c.media]=[]),p[c.media].push(o[c.rules]))}for(g in u)u.hasOwnProperty(g)&&u[g]&&u[g].parentNode===s&&s.removeChild(u[g]);u.length=0;for(nt in p)p.hasOwnProperty(nt)&&(f=i.createElement("style"),it=p[nt].join("\n"),f.type="text/css",f.media=nt,s.insertBefore(f,ct.nextSibling),f.styleSheet?f.styleSheet.cssText=it:f.appendChild(i.createTextNode(it)),u.push(f))},k=function(n,i,r){var h=n.replace(t.regex.keyframes,"").match(t.regex.media),c=h&&h.length||0,l,a,f,v,u,p,w,s;for(i=i.substring(0,i.lastIndexOf("/")),l=function(n){return n.replace(t.regex.urls,"$1"+i+"$2$3")},a=!c&&r,i.length&&(i+="/"),a&&(c=1),f=0;f<c;f++)for(a?(v=r,o.push(l(n))):(v=h[f].match(t.regex.findStyles)&&RegExp.$1,o.push(RegExp.$2&&l(RegExp.$2))),p=v.split(","),w=p.length,s=0;s<w;s++)u=p[s],e.push({media:u.split("(")[0].match(t.regex.only)&&RegExp.$2||"all",rules:o.length-1,hasquery:u.indexOf("(")>-1,minw:u.match(t.regex.minw)&&parseFloat(RegExp.$1)+(RegExp.$2||""),maxw:u.match(t.regex.maxw)&&parseFloat(RegExp.$1)+(RegExp.$2||"")});y()},d=function(){if(f.length){var t=f.shift();p(t.href,function(i){k(i,t.href,t.media);c[t.href]=!0;n.setTimeout(function(){d()},0)})}},g=function(){for(var r=0;r<h.length;r++){var i=h[r],t=i.href,u=i.media,e=i.rel&&i.rel.toLowerCase()==="stylesheet";!t||!e||c[t]||(i.styleSheet&&i.styleSheet.rawCssText?(k(i.styleSheet.rawCssText,t,u),c[t]=!0):(/^([a-zA-Z:]*\/\/)/.test(t)||it)&&t.replace(RegExp.$1,"").split("/")[0]!==n.location.host||(t.substring(0,2)==="//"&&(t=n.location.protocol+t),f.push({href:t,media:u})))}d()};g();t.update=g;t.getEmValue=v;n.addEventListener?n.addEventListener("resize",nt,!1):n.attachEvent&&n.attachEvent("onresize",nt)}}(this),function(n,t){typeof define=="function"&&define.amd?define("bloodhound",["jquery"],function(i){return n.Bloodhound=t(i)}):typeof exports=="object"?module.exports=t(require("jquery")):n.Bloodhound=t(jQuery)}(this,function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return typeof n=="string"},isNumber:function(n){return typeof n=="number"},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return typeof n=="undefined"},isElement:function(n){return!!(n&&n.nodeType===1)},isJQuery:function(t){return t instanceof n},toStr:function(n){return t.isUndefined(n)||n===null?"":n+""},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if(r=i.call(null,u,n,t))return!1}),!!r):r},mixin:n.extend,identity:function(n){return n},clone:function(t){return n.extend(!0,{},t)},getIdGenerator:function(){var n=0;return function(){return n++}},templatify:function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f=this,e=arguments,o,s;return o=function(){r=null;i||(u=n.apply(f,e))},s=i&&!r,clearTimeout(r),r=setTimeout(o,t),s&&(u=n.apply(f,e)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,h<=0?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},stringify:function(n){return t.isString(n)?n:JSON.stringify(n)},noop:function(){}}}(),u="0.11.1",f=function(){"use strict";function n(n){return n=t.toStr(n),n?n.split(/\s+/):[]}function i(n){return n=t.toStr(n),n?n.split(/\W+/):[]}function r(n){return function(i){return i=t.isArray(i)?i:[].slice.call(arguments,0),function(r){var u=[];return t.each(i,function(i){u=u.concat(n(t.toStr(r[i])))}),u}}}return{nonword:i,whitespace:n,obj:{nonword:r(i),whitespace:r(n)}}}(),i=function(){"use strict";function i(i){this.maxSize=t.isNumber(i)?i:100;this.reset();this.maxSize<=0&&(this.set=this.get=n.noop)}function r(){this.head=this.tail=null}function u(n,t){this.key=n;this.val=t;this.prev=this.next=null}return t.mixin(i.prototype,{set:function(n,t){var r=this.list.tail,i;this.size>=this.maxSize&&(this.list.remove(r),delete this.hash[r.key],this.size--);(i=this.hash[n])?(i.val=t,this.list.moveToFront(i)):(i=new u(n,t),this.list.add(i),this.hash[n]=i,this.size++)},get:function(n){var t=this.hash[n];if(t)return this.list.moveToFront(t),t.val},reset:function(){this.size=0;this.hash={};this.list=new r}}),t.mixin(r.prototype,{add:function(n){this.head&&(n.next=this.head,this.head.prev=n);this.head=n;this.tail=this.tail||n},remove:function(n){n.prev?n.prev.next=n.next:this.head=n.next;n.next?n.next.prev=n.prev:this.tail=n.prev},moveToFront:function(n){this.remove(n);this.add(n)}}),i}(),e=function(){"use strict";function r(n,r){this.prefix=["__",n,"__"].join("");this.ttlKey="__ttl__";this.keyMatcher=new RegExp("^"+t.escapeRegExChars(this.prefix));this.ls=r||i;this.ls||this._noop()}function u(){return(new Date).getTime()}function f(n){return JSON.stringify(t.isUndefined(n)?null:n)}function e(t){return n.parseJSON(t)}function o(n){for(var r,u=[],f=i.length,t=0;t<f;t++)(r=i.key(t)).match(n)&&u.push(r.replace(n,""));return u}var i;try{i=window.localStorage;i.setItem("~~~","!");i.removeItem("~~~")}catch(s){i=null}return t.mixin(r.prototype,{_prefix:function(n){return this.prefix+n},_ttlKey:function(n){return this._prefix(n)+this.ttlKey},_noop:function(){this.get=this.set=this.remove=this.clear=this.isExpired=t.noop},_safeSet:function(n,t){try{this.ls.setItem(n,t)}catch(i){i.name==="QuotaExceededError"&&(this.clear(),this._noop())}},get:function(n){return this.isExpired(n)&&this.remove(n),e(this.ls.getItem(this._prefix(n)))},set:function(n,i,r){return t.isNumber(r)?this._safeSet(this._ttlKey(n),f(u()+r)):this.ls.removeItem(this._ttlKey(n)),this._safeSet(this._prefix(n),f(i))},remove:function(n){return this.ls.removeItem(this._ttlKey(n)),this.ls.removeItem(this._prefix(n)),this},clear:function(){for(var t=o(this.keyMatcher),n=t.length;n--;)this.remove(t[n]);return this},isExpired:function(n){var i=e(this.ls.getItem(this._ttlKey(n)));return t.isNumber(i)&&u()>i?!0:!1}}),r}(),r=function(){"use strict";function r(n){n=n||{};this.cancelled=!1;this.lastReq=null;this._send=n.transport;this._get=n.limiter?n.limiter(this._get):this._get;this._cache=n.cache===!1?new i(0):o}var u=0,f={},e=6,o=new i(10);return r.setMaxPendingRequests=function(n){e=n},r.resetCache=function(){o.reset()},t.mixin(r.prototype,{_fingerprint:function(t){return t=t||{},t.url+t.type+n.param(t.data||{})},_get:function(n,t){function s(n){t(null,n);i._cache.set(r,n)}function h(){t(!0)}function c(){u--;delete f[r];i.onDeckRequestArgs&&(i._get.apply(i,i.onDeckRequestArgs),i.onDeckRequestArgs=null)}var i=this,r,o;(r=this._fingerprint(n),this.cancelled||r!==this.lastReq)||((o=f[r])?o.done(s).fail(h):u<e?(u++,f[r]=this._send(n).done(s).fail(h).always(c)):this.onDeckRequestArgs=[].slice.call(arguments,0))},get:function(i,r){var f,u;r=r||n.noop;i=t.isString(i)?{url:i}:i||{};u=this._fingerprint(i);this.cancelled=!1;this.lastReq=u;(f=this._cache.get(u))?r(null,f):this._get(i,r)},cancel:function(){this.cancelled=!0}}),r}(),o=window.SearchIndex=function(){"use strict";function u(i){i=i||{};i.datumTokenizer&&i.queryTokenizer||n.error("datumTokenizer and queryTokenizer are both required");this.identify=i.identify||t.stringify;this.datumTokenizer=i.datumTokenizer;this.queryTokenizer=i.queryTokenizer;this.reset()}function f(n){return n=t.filter(n,function(n){return!!n}),t.map(n,function(n){return n.toLowerCase()})}function e(){var n={};return n[r]=[],n[i]={},n}function o(n){for(var i={},r=[],t=0,u=n.length;t<u;t++)i[n[t]]||(i[n[t]]=!0,r.push(n[t]));return r}function s(n,t){var i=0,r=0,u=[],f,e;for(n=n.sort(),t=t.sort(),f=n.length,e=t.length;i<f&&r<e;)n[i]<t[r]?i++:n[i]>t[r]?r++:(u.push(n[i]),i++,r++);return u}var i="c",r="i";return t.mixin(u.prototype,{bootstrap:function(n){this.datums=n.datums;this.trie=n.trie},add:function(n){var u=this;n=t.isArray(n)?n:[n];t.each(n,function(n){var o,s;u.datums[o=u.identify(n)]=n;s=f(u.datumTokenizer(n));t.each(s,function(n){for(var f,t=u.trie,s=n.split("");f=s.shift();)t=t[i][f]||(t[i][f]=e()),t[r].push(o)})})},get:function(n){var i=this;return t.map(n,function(n){return i.datums[n]})},search:function(n){var e=this,h,u;return h=f(this.queryTokenizer(n)),t.each(h,function(n){var t,f,h,o;if(u&&u.length===0)return!1;for(t=e.trie,f=n.split("");t&&(h=f.shift());)t=t[i][h];if(t&&f.length===0)o=t[r].slice(0),u=u?s(u,o):o;else return u=[],!1}),u?t.map(o(u),function(n){return e.datums[n]}):[]},all:function(){var n=[];for(var t in this.datums)n.push(this.datums[t]);return n},reset:function(){this.datums={};this.trie=e()},serialize:function(){return{datums:this.datums,trie:this.trie}}}),u}(),s=function(){"use strict";function i(n){this.url=n.url;this.ttl=n.ttl;this.cache=n.cache;this.prepare=n.prepare;this.transform=n.transform;this.transport=n.transport;this.thumbprint=n.thumbprint;this.storage=new e(n.cacheKey)}var n;return n={data:"data",protocol:"protocol",thumbprint:"thumbprint"},t.mixin(i.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},store:function(t){this.cache&&(this.storage.set(n.data,t,this.ttl),this.storage.set(n.protocol,location.protocol,this.ttl),this.storage.set(n.thumbprint,this.thumbprint,this.ttl))},fromCache:function(){var t={},i;return this.cache?(t.data=this.storage.get(n.data),t.protocol=this.storage.get(n.protocol),t.thumbprint=this.storage.get(n.thumbprint),i=t.thumbprint!==this.thumbprint||t.protocol!==location.protocol,t.data&&!i?t.data:null):null},fromNetwork:function(n){function r(){n(!0)}function u(t){n(null,i.transform(t))}var i=this,t;n&&(t=this.prepare(this._settings()),this.transport(t).fail(r).done(u))},clear:function(){return this.storage.clear(),this}}),i}(),h=function(){"use strict";function n(n){this.url=n.url;this.prepare=n.prepare;this.transform=n.transform;this.transport=new r({cache:n.cache,limiter:n.limiter,transport:n.transport})}return t.mixin(n.prototype,{_settings:function(){return{url:this.url,type:"GET",dataType:"json"}},get:function(n,t){function u(n,i){n?t([]):t(r.transform(i))}var r=this,i;if(t)return n=n||"",i=this.prepare(n,this._settings()),this.transport.get(i,u)},cancelLastRequest:function(){this.transport.cancel()}}),n}(),c=function(){"use strict";function r(r){var f;return r?(f={url:null,ttl:864e5,cache:!0,cacheKey:null,thumbprint:"",prepare:t.identity,transform:t.identity,transport:null},r=t.isString(r)?{url:r}:r,r=t.mixin(f,r),r.url||n.error("prefetch requires url to be set"),r.transform=r.filter||r.transform,r.cacheKey=r.cacheKey||r.url,r.thumbprint=u+r.thumbprint,r.transport=r.transport?i(r.transport):n.ajax,r):null}function f(r){var u;if(r)return u={url:null,cache:!0,prepare:null,replace:null,wildcard:null,limiter:null,rateLimitBy:"debounce",rateLimitWait:300,transform:t.identity,transport:null},r=t.isString(r)?{url:r}:r,r=t.mixin(u,r),r.url||n.error("remote requires url to be set"),r.transform=r.filter||r.transform,r.prepare=e(r),r.limiter=o(r),r.transport=r.transport?i(r.transport):n.ajax,delete r.replace,delete r.wildcard,delete r.rateLimitBy,delete r.rateLimitWait,r}function e(n){function u(n,t){return t.url=i(t.url,n),t}function f(n,t){return t.url=t.url.replace(r,encodeURIComponent(n)),t}function e(n,t){return t}var t,i,r;return(t=n.prepare,i=n.replace,r=n.wildcard,t)?t:i?u:n.wildcard?f:e}function o(n){function f(n){return function(i){return t.debounce(i,n)}}function e(n){return function(i){return t.throttle(i,n)}}var i,u,r;return i=n.limiter,u=n.rateLimitBy,r=n.rateLimitWait,i||(i=/^throttle$/i.test(u)?e(r):f(r)),i}function i(i){return function(r){function f(n){t.defer(function(){u.resolve(n)})}function e(n){t.defer(function(){u.reject(n)})}var u=n.Deferred();return i(r,f,e),u}}return function(i){var e,u;return e={initialize:!0,identify:t.stringify,datumTokenizer:null,queryTokenizer:null,sufficient:5,sorter:null,local:[],prefetch:null,remote:null},i=t.mixin(e,i||{}),i.datumTokenizer||n.error("datumTokenizer is required"),i.queryTokenizer||n.error("queryTokenizer is required"),u=i.sorter,i.sorter=u?function(n){return n.sort(u)}:t.identity,i.local=t.isFunction(i.local)?i.local():i.local,i.prefetch=r(i.prefetch),i.remote=f(i.remote),i}}();return function(){"use strict";function i(n){n=c(n);this.sorter=n.sorter;this.identify=n.identify;this.sufficient=n.sufficient;this.local=n.local;this.remote=n.remote?new h(n.remote):null;this.prefetch=n.prefetch?new s(n.prefetch):null;this.index=new o({identify:this.identify,datumTokenizer:n.datumTokenizer,queryTokenizer:n.queryTokenizer});n.initialize!==!1&&this.initialize()}var u;return u=window&&window.Bloodhound,i.noConflict=function(){return window&&(window.Bloodhound=u),i},i.tokenizers=f,t.mixin(i.prototype,{__ttAdapter:function(){function t(t,i,r){return n.search(t,i,r)}function i(t,i){return n.search(t,i)}var n=this;return this.remote?t:i},_loadPrefetch:function(){function u(n,r){if(n)return t.reject();i.add(r);i.prefetch.store(i.index.serialize());t.resolve()}var i=this,t,r;return t=n.Deferred(),this.prefetch?(r=this.prefetch.fromCache())?(this.index.bootstrap(r),t.resolve()):this.prefetch.fromNetwork(u):t.resolve(),t.promise()},_initialize:function(){function t(){n.add(n.local)}var n=this;return this.clear(),(this.initPromise=this._loadPrefetch()).done(t),this.initPromise},initialize:function(n){return!this.initPromise||n?this._initialize():this.initPromise},add:function(n){return this.index.add(n),this},get:function(n){return n=t.isArray(n)?n:[].slice.call(arguments),this.index.get(n)},search:function(n,i,r){function e(n){var i=[];t.each(n,function(n){t.some(u,function(t){return f.identify(n)===f.identify(t)})||i.push(n)});r&&r(i)}var f=this,u;return u=this.sorter(this.index.search(n)),i(this.remote?u.slice():u),this.remote&&u.length<this.sufficient?this.remote.get(n,e):this.remote&&this.remote.cancelLastRequest(),this},all:function(){return this.index.all()},clear:function(){return this.index.reset(),this},clearPrefetchCache:function(){return this.prefetch&&this.prefetch.clear(),this},clearRemoteCache:function(){return r.resetCache(),this},ttAdapter:function(){return this.__ttAdapter()}}),i}()}),function(n,t){typeof define=="function"&&define.amd?define("typeahead.js",["jquery"],function(n){return t(n)}):typeof exports=="object"?module.exports=t(require("jquery")):t(jQuery)}(this,function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return typeof n=="string"},isNumber:function(n){return typeof n=="number"},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return typeof n=="undefined"},isElement:function(n){return!!(n&&n.nodeType===1)},isJQuery:function(t){return t instanceof n},toStr:function(n){return t.isUndefined(n)||n===null?"":n+""},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if(r=i.call(null,u,n,t))return!1}),!!r):r},mixin:n.extend,identity:function(n){return n},clone:function(t){return n.extend(!0,{},t)},getIdGenerator:function(){var n=0;return function(){return n++}},templatify:function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f=this,e=arguments,o,s;return o=function(){r=null;i||(u=n.apply(f,e))},s=i&&!r,clearTimeout(r),r=setTimeout(o,t),s&&(u=n.apply(f,e)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,h<=0?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},stringify:function(n){return t.isString(n)?n:JSON.stringify(n)},noop:function(){}}}(),e=function(){"use strict";function i(i){var e,o;return o=t.mixin({},n,i),e={css:f(),classes:o,html:r(o),selectors:u(o)},{css:e.css,html:e.html,classes:e.classes,selectors:e.selectors,mixin:function(n){t.mixin(n,e)}}}function r(n){return{wrapper:'<span class="'+n.wrapper+'"><\/span>',menu:'<div class="'+n.menu+'"><\/div>'}}function u(n){var i={};return t.each(n,function(n,t){i[t]="."+n}),i}function f(){var n={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return t.isMsie()&&t.mixin(n.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),n}var n={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return i}(),o=function(){"use strict";function u(t){t&&t.el||n.error("EventBus initialized without el");this.$el=n(t.el)}var i,r;return i="typeahead:",r={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},t.mixin(u.prototype,{_trigger:function(t,r){var u;return u=n.Event(i+t),(r=r||[]).unshift(u),this.$el.trigger.apply(this.$el,r),u},before:function(n){var t,i;return t=[].slice.call(arguments,1),i=this._trigger("before"+n,t),i.isDefaultPrevented()},trigger:function(n){var t;this._trigger(n,[].slice.call(arguments,1));(t=r[n])&&this._trigger(t,[].slice.call(arguments,1))}}),u}(),r=function(){"use strict";function t(t,i,r,u){var f;if(!r)return this;for(i=i.split(n),r=u?h(r,u):r,this._callbacks=this._callbacks||{};f=i.shift();)this._callbacks[f]=this._callbacks[f]||{sync:[],async:[]},this._callbacks[f][t].push(r);return this}function u(n,i,r){return t.call(this,"async",n,i,r)}function f(n,i,r){return t.call(this,"sync",n,i,r)}function e(t){var i;if(!this._callbacks)return this;for(t=t.split(n);i=t.shift();)delete this._callbacks[i];return this}function o(t){var u,f,e,o,s;if(!this._callbacks)return this;for(t=t.split(n),e=[].slice.call(arguments,1);(u=t.shift())&&(f=this._callbacks[u]);)o=i(f.sync,this,[u].concat(e)),s=i(f.async,this,[u].concat(e)),o()&&r(s);return this}function i(n,t,i){function r(){for(var r,u=0,f=n.length;!r&&u<f;u+=1)r=n[u].apply(t,i)===!1;return!r}return r}function s(){return window.setImmediate?function(n){setImmediate(function(){n()})}:function(n){setTimeout(function(){n()},0)}}function h(n,t){return n.bind?n.bind(t):function(){n.apply(t,[].slice.call(arguments,0))}}var n=/\s+/,r=s();return{onSync:f,onAsync:u,off:e,trigger:o}}(),s=function(n){"use strict";function r(n,i,r){for(var u=[],f,e=0,o=n.length;e<o;e++)u.push(t.escapeRegExChars(n[e]));return f=r?"\\b("+u.join("|")+")\\b":"("+u.join("|")+")",i?new RegExp(f):new RegExp(f,"i")}var i={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(u){function o(t){var i,r,e;return(i=f.exec(t.data))&&(e=n.createElement(u.tagName),u.className&&(e.className=u.className),r=t.splitText(i.index),r.splitText(i[0].length),e.appendChild(r.cloneNode(!0)),t.parentNode.replaceChild(e,r)),!!i}function e(n,t){for(var i,r=0;r<n.childNodes.length;r++)i=n.childNodes[r],i.nodeType===3?r+=t(i)?1:0:e(i,t)}var f;(u=t.mixin({},i,u),u.node&&u.pattern)&&(u.pattern=t.isArray(u.pattern)?u.pattern:[u.pattern],f=r(u.pattern,u.caseSensitive,u.wordsOnly),e(u.node,o))}}(window.document),u=function(){"use strict";function i(i,r){i=i||{};i.input||n.error("input is missing");r.mixin(this);this.$hint=n(i.hint);this.$input=n(i.input);this.query=this.$input.val();this.queryWhenFocused=this.hasFocus()?this.query:null;this.$overflowHelper=e(this.$input);this._checkLanguageDirection();this.$hint.length===0&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=t.noop)}function e(t){return n('<pre aria-hidden="true"><\/pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}function o(n,t){return i.normalizeQuery(n)===i.normalizeQuery(t)}function f(n){return n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}var u;return u={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(n){return t.toStr(n).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},t.mixin(i.prototype,r,{_onBlur:function(){this.resetInputValue();this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query;this.trigger("focused")},_onKeydown:function(n){var t=u[n.which||n.keyCode];this._managePreventDefault(t,n);t&&this._shouldTrigger(t,n)&&this.trigger(t+"Keyed",n)},_onInput:function(){this._setQuery(this.getInputValue());this.clearHintIfInvalid();this._checkLanguageDirection()},_managePreventDefault:function(n,t){var i;switch(n){case"up":case"down":i=!f(t);break;default:i=!1}i&&t.preventDefault()},_shouldTrigger:function(n,t){var i;switch(n){case"tab":i=!f(t);break;default:i=!0}return i},_checkLanguageDirection:function(){var n=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==n&&(this.dir=n,this.$hint.attr("dir",n),this.trigger("langDirChanged",n))},_setQuery:function(n,t){var i,r;i=o(n,this.query);r=i?this.query.length!==n.length:!1;this.query=n;t||i?!t&&r&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var n=this,i,r,f,e;i=t.bind(this._onBlur,this);r=t.bind(this._onFocus,this);f=t.bind(this._onKeydown,this);e=t.bind(this._onInput,this);this.$input.on("blur.tt",i).on("focus.tt",r).on("keydown.tt",f);if(!t.isMsie()||t.isMsie()>9)this.$input.on("input.tt",e);else this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(i){u[i.which||i.keyCode]||t.defer(t.bind(n._onInput,n,i))});return this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(n,t){this.setInputValue(n);this._setQuery(n,t)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(n){this.$input.val(n);this.clearHintIfInvalid();this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(n){this.$hint.val(n)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var n,t,i,r;n=this.getInputValue();t=this.getHint();i=n!==t&&t.indexOf(n)===0;r=n!==""&&i&&!this.hasOverflow();r||this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var n=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=n},isCursorAtEnd:function(){var n,i,r;return(n=this.$input.val().length,i=this.$input[0].selectionStart,t.isNumber(i))?i===n:document.selection?(r=document.selection.createRange(),r.moveStart("character",-n),n===r.text.length):!0},destroy:function(){this.$hint.off(".tt");this.$input.off(".tt");this.$overflowHelper.remove();this.$hint=this.$input=this.$overflowHelper=n("<div>")}}),i}(),f=function(){"use strict";function u(i,r){i=i||{};i.templates=i.templates||{};i.templates.notFound=i.templates.notFound||i.templates.empty;i.source||n.error("missing source");i.node||n.error("missing node");i.name&&!h(i.name)&&n.error("invalid dataset name: "+i.name);r.mixin(this);this.highlight=!!i.highlight;this.name=i.name||f();this.limit=i.limit||5;this.displayFn=e(i.display||i.displayKey);this.templates=o(i.templates,this.displayFn);this.source=i.source.__ttAdapter?i.source.__ttAdapter():i.source;this.async=t.isUndefined(i.async)?this.source.length>2:!!i.async;this._resetLastSuggestion();this.$el=n(i.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}function e(n){function i(t){return t[n]}return n=n||t.stringify,t.isFunction(n)?n:i}function o(i,r){function u(t){return n("<div>").text(r(t))}return{notFound:i.notFound&&t.templatify(i.notFound),pending:i.pending&&t.templatify(i.pending),header:i.header&&t.templatify(i.header),footer:i.footer&&t.templatify(i.footer),suggestion:i.suggestion||u}}function h(n){return/^[_a-zA-Z0-9-]+$/.test(n)}var i,f;return i={val:"tt-selectable-display",obj:"tt-selectable-object"},f=t.getIdGenerator(),u.extractData=function(t){var r=n(t);return r.data(i.obj)?{val:r.data(i.val)||"",obj:r.data(i.obj)||null}:null},t.mixin(u.prototype,r,{_overwrite:function(n,t){t=t||[];t.length?this._renderSuggestions(n,t):this.async&&this.templates.pending?this._renderPending(n):!this.async&&this.templates.notFound?this._renderNotFound(n):this._empty();this.trigger("rendered",this.name,t,!1)},_append:function(n,t){t=t||[];t.length&&this.$lastSuggestion.length?this._appendSuggestions(n,t):t.length?this._renderSuggestions(n,t):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(n);this.trigger("rendered",this.name,t,!0)},_renderSuggestions:function(n,t){var i;i=this._getSuggestionsFragment(n,t);this.$lastSuggestion=i.children().last();this.$el.html(i).prepend(this._getHeader(n,t)).append(this._getFooter(n,t))},_appendSuggestions:function(n,t){var i,r;i=this._getSuggestionsFragment(n,t);r=i.children().last();this.$lastSuggestion.after(i);this.$lastSuggestion=r},_renderPending:function(n){var t=this.templates.pending;this._resetLastSuggestion();t&&this.$el.html(t({query:n,dataset:this.name}))},_renderNotFound:function(n){var t=this.templates.notFound;this._resetLastSuggestion();t&&this.$el.html(t({query:n,dataset:this.name}))},_empty:function(){this.$el.empty();this._resetLastSuggestion()},_getSuggestionsFragment:function(r,u){var f=this,e;return e=document.createDocumentFragment(),t.each(u,function(t){var u,o;o=f._injectQuery(r,t);u=n(f.templates.suggestion(o)).data(i.obj,t).data(i.val,f.displayFn(t)).addClass(f.classes.suggestion+" "+f.classes.selectable);e.appendChild(u[0])}),this.highlight&&s({className:this.classes.highlight,node:e,pattern:r}),n(e)},_getFooter:function(n,t){return this.templates.footer?this.templates.footer({query:n,suggestions:t,dataset:this.name}):null},_getHeader:function(n,t){return this.templates.header?this.templates.header({query:n,suggestions:t,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=n()},_injectQuery:function(n,i){return t.isObject(i)?t.mixin({_query:n},i):i},update:function(t){function e(n){u||(u=!0,n=(n||[]).slice(0,i.limit),r=n.length,i._overwrite(t,n),r<i.limit&&i.async&&i.trigger("asyncRequested",t))}function o(u){u=u||[];!f&&r<i.limit&&(i.cancel=n.noop,r+=u.length,i._append(t,u.slice(0,i.limit-r)),i.async&&i.trigger("asyncReceived",t))}var i=this,f=!1,u=!1,r=0;this.cancel();this.cancel=function(){f=!0;i.cancel=n.noop;i.async&&i.trigger("asyncCanceled",t)};this.source(t,e,o);u||e([])},cancel:n.noop,clear:function(){this._empty();this.cancel();this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=n("<div>")}}),u}(),i=function(){"use strict";function i(i,r){function e(t){var i=u.$node.find(t.node).first();return t.node=i.length?i:n("<div>").appendTo(u.$node),new f(t,r)}var u=this;i=i||{};i.node||n.error("node is required");r.mixin(this);this.$node=n(i.node);this.query=null;this.datasets=t.map(i.datasets,e)}return t.mixin(i.prototype,r,{_onSelectableClick:function(t){this.trigger("selectableClicked",n(t.currentTarget))},_onRendered:function(n,t,i,r){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetRendered",t,i,r)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){function n(n){return n.isEmpty()}return t.every(this.datasets,n)},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var n=this.getActiveSelectable();n&&n.removeClass(this.classes.cursor)},_ensureVisible:function(n){var t,i,r,u;t=n.position().top;i=t+n.outerHeight(!0);r=this.$node.scrollTop();u=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10);t<0?this.$node.scrollTop(r+t):u<i&&this.$node.scrollTop(r+(i-u))},bind:function(){var n=this,i=t.bind(this._onSelectableClick,this);this.$node.on("click.tt",this.selectors.selectable,i);return t.each(this.datasets,function(t){t.onSync("asyncRequested",n._propagate,n).onSync("asyncCanceled",n._propagate,n).onSync("asyncReceived",n._propagate,n).onSync("rendered",n._onRendered,n).onSync("cleared",n._onCleared,n)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open);this._removeCursor()},setLanguageDirection:function(n){this.$node.attr("dir",n)},selectableRelativeToCursor:function(n){var i,r,u,t;return r=this.getActiveSelectable(),i=this._getSelectables(),u=r?i.index(r):-1,t=u+n,t=(t+1)%(i.length+1)-1,t=t<-1?i.length-1:t,t===-1?null:i.eq(t)},setCursor:function(n){this._removeCursor();(n=n&&n.first())&&(n.addClass(this.classes.cursor),this._ensureVisible(n))},getSelectableData:function(n){return n&&n.length?f.extractData(n):null},getActiveSelectable:function(){var n=this._getSelectables().filter(this.selectors.cursor).first();return n.length?n:null},getTopSelectable:function(){var n=this._getSelectables().first();return n.length?n:null},update:function(n){function r(t){t.update(n)}var i=n!==this.query;return i&&(this.query=n,t.each(this.datasets,r)),i},empty:function(){function n(n){n.clear()}t.each(this.datasets,n);this.query=null;this.$node.addClass(this.classes.empty)},destroy:function(){function i(n){n.destroy()}this.$node.off(".tt");this.$node=n("<div>");t.each(this.datasets,i)}}),i}(),h=function(){"use strict";function r(){i.apply(this,[].slice.call(arguments,0))}var n=i.prototype;return t.mixin(r.prototype,i.prototype,{open:function(){return this._allDatasetsEmpty()||this._show(),n.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),n.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(t){return this.$node.css(t==="ltr"?this.css.ltr:this.css.rtl),n.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),r}(),c=function(){"use strict";function r(r,u){var f,e,o,s,h,c,l,a,v,y,p;r=r||{};r.input||n.error("missing input");r.menu||n.error("missing menu");r.eventBus||n.error("missing event bus");u.mixin(this);this.eventBus=r.eventBus;this.minLength=t.isNumber(r.minLength)?r.minLength:1;this.input=r.input;this.menu=r.menu;this.enabled=!0;this.active=!1;this.input.hasFocus()&&this.activate();this.dir=this.input.getLangDir();this._hacks();this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this);f=i(this,"activate","open","_onFocused");e=i(this,"deactivate","_onBlurred");o=i(this,"isActive","isOpen","_onEnterKeyed");s=i(this,"isActive","isOpen","_onTabKeyed");h=i(this,"isActive","_onEscKeyed");c=i(this,"isActive","open","_onUpKeyed");l=i(this,"isActive","open","_onDownKeyed");a=i(this,"isActive","isOpen","_onLeftKeyed");v=i(this,"isActive","isOpen","_onRightKeyed");y=i(this,"_openIfActive","_onQueryChanged");p=i(this,"_openIfActive","_onWhitespaceChanged");this.input.bind().onSync("focused",f,this).onSync("blurred",e,this).onSync("enterKeyed",o,this).onSync("tabKeyed",s,this).onSync("escKeyed",h,this).onSync("upKeyed",c,this).onSync("downKeyed",l,this).onSync("leftKeyed",a,this).onSync("rightKeyed",v,this).onSync("queryChanged",y,this).onSync("whitespaceChanged",p,this).onSync("langDirChanged",this._onLangDirChanged,this)}function i(n){var i=[].slice.call(arguments,1);return function(){var r=[].slice.call(arguments);t.each(i,function(t){return n[t].apply(n,r)})}}return t.mixin(r.prototype,{_hacks:function(){var r,i;r=this.input.$input||n("<div>");i=this.menu.$node||n("<div>");r.on("blur.tt",function(n){var u,f,e;u=document.activeElement;f=i.is(u);e=i.has(u).length>0;t.isMsie()&&(f||e)&&(n.preventDefault(),n.stopImmediatePropagation(),t.defer(function(){r.focus()}))});i.on("mousedown.tt",function(n){n.preventDefault()})},_onSelectableClicked:function(n,t){this.select(t)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(n,t,i,r){this._updateHint();this.eventBus.trigger("render",i,r,t)},_onAsyncRequested:function(n,t,i){this.eventBus.trigger("asyncrequest",i,t)},_onAsyncCanceled:function(n,t,i){this.eventBus.trigger("asynccancel",i,t)},_onAsyncReceived:function(n,t,i){this.eventBus.trigger("asyncreceive",i,t)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(n,t){var i;(i=this.menu.getActiveSelectable())&&this.select(i)&&t.preventDefault()},_onTabKeyed:function(n,t){var i;(i=this.menu.getActiveSelectable())?this.select(i)&&t.preventDefault():(i=this.menu.getTopSelectable())&&this.autocomplete(i)&&t.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){this.dir==="rtl"&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){this.dir==="ltr"&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function(n,t){this._minLengthMet(t)?this.menu.update(t):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(n,t){this.dir!==t&&(this.dir=t,this.menu.setLanguageDirection(t))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(n){return n=t.isString(n)?n:this.input.getQuery()||"",n.length>=this.minLength},_updateHint:function(){var f,i,n,e,o,s,r;f=this.menu.getTopSelectable();i=this.menu.getSelectableData(f);n=this.input.getInputValue();!i||t.isBlankString(n)||this.input.hasOverflow()?this.input.clearHint():(e=u.normalizeQuery(n),o=t.escapeRegExChars(e),s=new RegExp("^(?:"+o+")(.+$)","i"),r=s.exec(i.val),r&&this.input.setHint(n+r[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return this.isActive()?!0:!this.isEnabled()||this.eventBus.before("active")?!1:(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return this.isActive()?this.eventBus.before("idle")?!1:(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0):!0},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(n){this.input.setQuery(t.toStr(n))},getVal:function(){return this.input.getQuery()},select:function(n){var t=this.menu.getSelectableData(n);return t&&!this.eventBus.before("select",t.obj)?(this.input.setQuery(t.val,!0),this.eventBus.trigger("select",t.obj),this.close(),!0):!1},autocomplete:function(n){var i,t,r;return(i=this.input.getQuery(),t=this.menu.getSelectableData(n),r=t&&i!==t.val,r&&!this.eventBus.before("autocomplete",t.obj))?(this.input.setQuery(t.val),this.eventBus.trigger("autocomplete",t.obj),!0):!1},moveCursor:function(n){var u,i,t,r,f;return(u=this.input.getQuery(),i=this.menu.selectableRelativeToCursor(n),t=this.menu.getSelectableData(i),r=t?t.obj:null,f=this._minLengthMet()&&this.menu.update(u),!f&&!this.eventBus.before("cursorchange",r))?(this.menu.setCursor(i),t?this.input.setInputValue(t.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",r),!0):!1},destroy:function(){this.input.destroy();this.menu.destroy()}}),r}();(function(){"use strict";function r(t,i){t.each(function(){var t=n(this),r;(r=t.data(f.typeahead))&&i(r,t)})}function v(n,t){return n.clone().addClass(t.classes.hint).removeData().css(t.css.hint).css(p(n)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function y(n,t){n.data(f.attrs,{dir:n.attr("dir"),autocomplete:n.attr("autocomplete"),spellcheck:n.attr("spellcheck"),style:n.attr("style")});n.addClass(t.classes.input).attr({autocomplete:"off",spellcheck:!1});try{n.attr("dir")||n.attr("dir","auto")}catch(i){}return n}function p(n){return{backgroundAttachment:n.css("background-attachment"),backgroundClip:n.css("background-clip"),backgroundColor:n.css("background-color"),backgroundImage:n.css("background-image"),backgroundOrigin:n.css("background-origin"),backgroundPosition:n.css("background-position"),backgroundRepeat:n.css("background-repeat"),backgroundSize:n.css("background-size")}}function w(n){var r,i;r=n.data(f.www);i=n.parent().filter(r.selectors.wrapper);t.each(n.data(f.attrs),function(i,r){t.isUndefined(i)?n.removeAttr(r):n.attr(r,i)});n.removeData(f.typeahead).removeData(f.www).removeData(f.attr).removeClass(r.classes.input);i.length&&(n.detach().insertAfter(i),i.remove())}function a(i){var u,r;return u=t.isJQuery(i)||t.isElement(i),r=u?n(i).first():[],r.length?r:null}var l,f,s;l=n.fn.typeahead;f={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"};s={initialize:function(r,s){function p(){var e,d,p,w,b,k,g,nt,tt,it,rt;t.each(s,function(n){n.highlight=!!r.highlight});e=n(this);d=n(l.html.wrapper);p=a(r.hint);w=a(r.menu);b=r.hint!==!1&&!p;k=r.menu!==!1&&!w;b&&(p=v(e,l));k&&(w=n(l.html.menu).css(l.css.menu));p&&p.val("");e=y(e,l);(b||k)&&(d.css(l.css.wrapper),e.css(b?l.css.input:l.css.inputWithNoHint),e.wrap(d).parent().prepend(b?p:null).append(k?w:null));rt=k?h:i;g=new o({el:e});nt=new u({hint:p,input:e},l);tt=new rt({node:w,datasets:s},l);it=new c({input:nt,menu:tt,eventBus:g,minLength:r.minLength},l);e.data(f.www,l);e.data(f.typeahead,it)}var l;return s=t.isArray(s)?s:[].slice.call(arguments,1),r=r||{},l=e(r.classNames),this.each(p)},isEnabled:function(){var n;return r(this.first(),function(t){n=t.isEnabled()}),n},enable:function(){return r(this,function(n){n.enable()}),this},disable:function(){return r(this,function(n){n.disable()}),this},isActive:function(){var n;return r(this.first(),function(t){n=t.isActive()}),n},activate:function(){return r(this,function(n){n.activate()}),this},deactivate:function(){return r(this,function(n){n.deactivate()}),this},isOpen:function(){var n;return r(this.first(),function(t){n=t.isOpen()}),n},open:function(){return r(this,function(n){n.open()}),this},close:function(){return r(this,function(n){n.close()}),this},select:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.select(u)}),i},autocomplete:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.autocomplete(u)}),i},moveCursor:function(n){var t=!1;return r(this.first(),function(i){t=i.moveCursor(n)}),t},val:function(n){var t;return arguments.length?(r(this,function(t){t.setVal(n)}),this):(r(this.first(),function(n){t=n.getVal()}),t)},destroy:function(){return r(this,function(n,t){w(t);n.destroy()}),this}};n.fn.typeahead=function(n){return s[n]?s[n].apply(this,[].slice.call(arguments,1)):s.initialize.apply(this,arguments)};n.fn.typeahead.noConflict=function(){return n.fn.typeahead=l,this}})()}),function(n,t){typeof define=="function"&&define.amd?define("typeahead.js",["jquery"],function(n){return t(n)}):typeof exports=="object"?module.exports=t(require("jquery")):t(jQuery)}(this,function(n){var t=function(){"use strict";return{isMsie:function(){return/(msie|trident)/i.test(navigator.userAgent)?navigator.userAgent.match(/(msie |rv:)(\d+(.\d+)?)/i)[2]:!1},isBlankString:function(n){return!n||/^\s*$/.test(n)},escapeRegExChars:function(n){return n.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},isString:function(n){return typeof n=="string"},isNumber:function(n){return typeof n=="number"},isArray:n.isArray,isFunction:n.isFunction,isObject:n.isPlainObject,isUndefined:function(n){return typeof n=="undefined"},isElement:function(n){return!!(n&&n.nodeType===1)},isJQuery:function(t){return t instanceof n},toStr:function(n){return t.isUndefined(n)||n===null?"":n+""},bind:n.proxy,each:function(t,i){function r(n,t){return i(t,n)}n.each(t,r)},map:n.map,filter:n.grep,every:function(t,i){var r=!0;return t?(n.each(t,function(n,u){if(!(r=i.call(null,u,n,t)))return!1}),!!r):r},some:function(t,i){var r=!1;return t?(n.each(t,function(n,u){if(r=i.call(null,u,n,t))return!1}),!!r):r},mixin:n.extend,identity:function(n){return n},clone:function(t){return n.extend(!0,{},t)},getIdGenerator:function(){var n=0;return function(){return n++}},templatify:function(t){function i(){return String(t)}return n.isFunction(t)?t:i},defer:function(n){setTimeout(n,0)},debounce:function(n,t,i){var r,u;return function(){var f=this,e=arguments,o,s;return o=function(){r=null;i||(u=n.apply(f,e))},s=i&&!r,clearTimeout(r),r=setTimeout(o,t),s&&(u=n.apply(f,e)),u}},throttle:function(n,t){var u,f,i,e,r,o;return r=0,o=function(){r=new Date;i=null;e=n.apply(u,f)},function(){var s=new Date,h=t-(s-r);return u=this,f=arguments,h<=0?(clearTimeout(i),i=null,r=s,e=n.apply(u,f)):i||(i=setTimeout(o,h)),e}},stringify:function(n){return t.isString(n)?n:JSON.stringify(n)},noop:function(){}}}(),e=function(){"use strict";function i(i){var e,o;return o=t.mixin({},n,i),e={css:f(),classes:o,html:r(o),selectors:u(o)},{css:e.css,html:e.html,classes:e.classes,selectors:e.selectors,mixin:function(n){t.mixin(n,e)}}}function r(n){return{wrapper:'<span class="'+n.wrapper+'"><\/span>',menu:'<div class="'+n.menu+'"><\/div>'}}function u(n){var i={};return t.each(n,function(n,t){i[t]="."+n}),i}function f(){var n={wrapper:{position:"relative",display:"inline-block"},hint:{position:"absolute",top:"0",left:"0",borderColor:"transparent",boxShadow:"none",opacity:"1"},input:{position:"relative",verticalAlign:"top",backgroundColor:"transparent"},inputWithNoHint:{position:"relative",verticalAlign:"top"},menu:{position:"absolute",top:"100%",left:"0",zIndex:"100",display:"none"},ltr:{left:"0",right:"auto"},rtl:{left:"auto",right:" 0"}};return t.isMsie()&&t.mixin(n.input,{backgroundImage:"url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)"}),n}var n={wrapper:"twitter-typeahead",input:"tt-input",hint:"tt-hint",menu:"tt-menu",dataset:"tt-dataset",suggestion:"tt-suggestion",selectable:"tt-selectable",empty:"tt-empty",open:"tt-open",cursor:"tt-cursor",highlight:"tt-highlight"};return i}(),o=function(){"use strict";function u(t){t&&t.el||n.error("EventBus initialized without el");this.$el=n(t.el)}var i,r;return i="typeahead:",r={render:"rendered",cursorchange:"cursorchanged",select:"selected",autocomplete:"autocompleted"},t.mixin(u.prototype,{_trigger:function(t,r){var u;return u=n.Event(i+t),(r=r||[]).unshift(u),this.$el.trigger.apply(this.$el,r),u},before:function(n){var t,i;return t=[].slice.call(arguments,1),i=this._trigger("before"+n,t),i.isDefaultPrevented()},trigger:function(n){var t;this._trigger(n,[].slice.call(arguments,1));(t=r[n])&&this._trigger(t,[].slice.call(arguments,1))}}),u}(),r=function(){"use strict";function t(t,i,r,u){var f;if(!r)return this;for(i=i.split(n),r=u?h(r,u):r,this._callbacks=this._callbacks||{};f=i.shift();)this._callbacks[f]=this._callbacks[f]||{sync:[],async:[]},this._callbacks[f][t].push(r);return this}function u(n,i,r){return t.call(this,"async",n,i,r)}function f(n,i,r){return t.call(this,"sync",n,i,r)}function e(t){var i;if(!this._callbacks)return this;for(t=t.split(n);i=t.shift();)delete this._callbacks[i];return this}function o(t){var u,f,e,o,s;if(!this._callbacks)return this;for(t=t.split(n),e=[].slice.call(arguments,1);(u=t.shift())&&(f=this._callbacks[u]);)o=i(f.sync,this,[u].concat(e)),s=i(f.async,this,[u].concat(e)),o()&&r(s);return this}function i(n,t,i){function r(){for(var r,u=0,f=n.length;!r&&u<f;u+=1)r=n[u].apply(t,i)===!1;return!r}return r}function s(){return window.setImmediate?function(n){setImmediate(function(){n()})}:function(n){setTimeout(function(){n()},0)}}function h(n,t){return n.bind?n.bind(t):function(){n.apply(t,[].slice.call(arguments,0))}}var n=/\s+/,r=s();return{onSync:f,onAsync:u,off:e,trigger:o}}(),s=function(n){"use strict";function r(n,i,r){for(var u=[],f,e=0,o=n.length;e<o;e++)u.push(t.escapeRegExChars(n[e]));return f=r?"\\b("+u.join("|")+")\\b":"("+u.join("|")+")",i?new RegExp(f):new RegExp(f,"i")}var i={node:null,pattern:null,tagName:"strong",className:null,wordsOnly:!1,caseSensitive:!1};return function(u){function o(t){var i,r,e;return(i=f.exec(t.data))&&(e=n.createElement(u.tagName),u.className&&(e.className=u.className),r=t.splitText(i.index),r.splitText(i[0].length),e.appendChild(r.cloneNode(!0)),t.parentNode.replaceChild(e,r)),!!i}function e(n,t){for(var i,r=0;r<n.childNodes.length;r++)i=n.childNodes[r],i.nodeType===3?r+=t(i)?1:0:e(i,t)}var f;(u=t.mixin({},i,u),u.node&&u.pattern)&&(u.pattern=t.isArray(u.pattern)?u.pattern:[u.pattern],f=r(u.pattern,u.caseSensitive,u.wordsOnly),e(u.node,o))}}(window.document),u=function(){"use strict";function i(i,r){i=i||{};i.input||n.error("input is missing");r.mixin(this);this.$hint=n(i.hint);this.$input=n(i.input);this.query=this.$input.val();this.queryWhenFocused=this.hasFocus()?this.query:null;this.$overflowHelper=e(this.$input);this._checkLanguageDirection();this.$hint.length===0&&(this.setHint=this.getHint=this.clearHint=this.clearHintIfInvalid=t.noop)}function e(t){return n('<pre aria-hidden="true"><\/pre>').css({position:"absolute",visibility:"hidden",whiteSpace:"pre",fontFamily:t.css("font-family"),fontSize:t.css("font-size"),fontStyle:t.css("font-style"),fontVariant:t.css("font-variant"),fontWeight:t.css("font-weight"),wordSpacing:t.css("word-spacing"),letterSpacing:t.css("letter-spacing"),textIndent:t.css("text-indent"),textRendering:t.css("text-rendering"),textTransform:t.css("text-transform")}).insertAfter(t)}function o(n,t){return i.normalizeQuery(n)===i.normalizeQuery(t)}function f(n){return n.altKey||n.ctrlKey||n.metaKey||n.shiftKey}var u;return u={9:"tab",27:"esc",37:"left",39:"right",13:"enter",38:"up",40:"down"},i.normalizeQuery=function(n){return t.toStr(n).replace(/^\s*/g,"").replace(/\s{2,}/g," ")},t.mixin(i.prototype,r,{_onBlur:function(){this.resetInputValue();this.trigger("blurred")},_onFocus:function(){this.queryWhenFocused=this.query;this.trigger("focused")},_onKeydown:function(n){var t=u[n.which||n.keyCode];this._managePreventDefault(t,n);t&&this._shouldTrigger(t,n)&&this.trigger(t+"Keyed",n)},_onInput:function(){this._setQuery(this.getInputValue());this.clearHintIfInvalid();this._checkLanguageDirection()},_managePreventDefault:function(n,t){var i;switch(n){case"up":case"down":i=!f(t);break;default:i=!1}i&&t.preventDefault()},_shouldTrigger:function(n,t){var i;switch(n){case"tab":i=!f(t);break;default:i=!0}return i},_checkLanguageDirection:function(){var n=(this.$input.css("direction")||"ltr").toLowerCase();this.dir!==n&&(this.dir=n,this.$hint.attr("dir",n),this.trigger("langDirChanged",n))},_setQuery:function(n,t){var i,r;i=o(n,this.query);r=i?this.query.length!==n.length:!1;this.query=n;t||i?!t&&r&&this.trigger("whitespaceChanged",this.query):this.trigger("queryChanged",this.query)},bind:function(){var n=this,i,r,f,e;i=t.bind(this._onBlur,this);r=t.bind(this._onFocus,this);f=t.bind(this._onKeydown,this);e=t.bind(this._onInput,this);this.$input.on("blur.tt",i).on("focus.tt",r).on("keydown.tt",f);if(!t.isMsie()||t.isMsie()>9)this.$input.on("input.tt",e);else this.$input.on("keydown.tt keypress.tt cut.tt paste.tt",function(i){u[i.which||i.keyCode]||t.defer(t.bind(n._onInput,n,i))});return this},focus:function(){this.$input.focus()},blur:function(){this.$input.blur()},getLangDir:function(){return this.dir},getQuery:function(){return this.query||""},setQuery:function(n,t){this.setInputValue(n);this._setQuery(n,t)},hasQueryChangedSinceLastFocus:function(){return this.query!==this.queryWhenFocused},getInputValue:function(){return this.$input.val()},setInputValue:function(n){this.$input.val(n);this.clearHintIfInvalid();this._checkLanguageDirection()},resetInputValue:function(){this.setInputValue(this.query)},getHint:function(){return this.$hint.val()},setHint:function(n){this.$hint.val(n)},clearHint:function(){this.setHint("")},clearHintIfInvalid:function(){var n,t,i,r;n=this.getInputValue();t=this.getHint();i=n!==t&&t.indexOf(n)===0;r=n!==""&&i&&!this.hasOverflow();r||this.clearHint()},hasFocus:function(){return this.$input.is(":focus")},hasOverflow:function(){var n=this.$input.width()-2;return this.$overflowHelper.text(this.getInputValue()),this.$overflowHelper.width()>=n},isCursorAtEnd:function(){var n,i,r;return(n=this.$input.val().length,i=this.$input[0].selectionStart,t.isNumber(i))?i===n:document.selection?(r=document.selection.createRange(),r.moveStart("character",-n),n===r.text.length):!0},destroy:function(){this.$hint.off(".tt");this.$input.off(".tt");this.$overflowHelper.remove();this.$hint=this.$input=this.$overflowHelper=n("<div>")}}),i}(),f=function(){"use strict";function u(i,r){i=i||{};i.templates=i.templates||{};i.templates.notFound=i.templates.notFound||i.templates.empty;i.source||n.error("missing source");i.node||n.error("missing node");i.name&&!h(i.name)&&n.error("invalid dataset name: "+i.name);r.mixin(this);this.highlight=!!i.highlight;this.name=i.name||f();this.limit=i.limit||5;this.displayFn=e(i.display||i.displayKey);this.templates=o(i.templates,this.displayFn);this.source=i.source.__ttAdapter?i.source.__ttAdapter():i.source;this.async=t.isUndefined(i.async)?this.source.length>2:!!i.async;this._resetLastSuggestion();this.$el=n(i.node).addClass(this.classes.dataset).addClass(this.classes.dataset+"-"+this.name)}function e(n){function i(t){return t[n]}return n=n||t.stringify,t.isFunction(n)?n:i}function o(i,r){function u(t){return n("<div>").text(r(t))}return{notFound:i.notFound&&t.templatify(i.notFound),pending:i.pending&&t.templatify(i.pending),header:i.header&&t.templatify(i.header),footer:i.footer&&t.templatify(i.footer),suggestion:i.suggestion||u}}function h(n){return/^[_a-zA-Z0-9-]+$/.test(n)}var i,f;return i={val:"tt-selectable-display",obj:"tt-selectable-object"},f=t.getIdGenerator(),u.extractData=function(t){var r=n(t);return r.data(i.obj)?{val:r.data(i.val)||"",obj:r.data(i.obj)||null}:null},t.mixin(u.prototype,r,{_overwrite:function(n,t){t=t||[];t.length?this._renderSuggestions(n,t):this.async&&this.templates.pending?this._renderPending(n):!this.async&&this.templates.notFound?this._renderNotFound(n):this._empty();this.trigger("rendered",this.name,t,!1)},_append:function(n,t){t=t||[];t.length&&this.$lastSuggestion.length?this._appendSuggestions(n,t):t.length?this._renderSuggestions(n,t):!this.$lastSuggestion.length&&this.templates.notFound&&this._renderNotFound(n);this.trigger("rendered",this.name,t,!0)},_renderSuggestions:function(n,t){var i;i=this._getSuggestionsFragment(n,t);this.$lastSuggestion=i.children().last();this.$el.html(i).prepend(this._getHeader(n,t)).append(this._getFooter(n,t))},_appendSuggestions:function(n,t){var i,r;i=this._getSuggestionsFragment(n,t);r=i.children().last();this.$lastSuggestion.after(i);this.$lastSuggestion=r},_renderPending:function(n){var t=this.templates.pending;this._resetLastSuggestion();t&&this.$el.html(t({query:n,dataset:this.name}))},_renderNotFound:function(n){var t=this.templates.notFound;this._resetLastSuggestion();t&&this.$el.html(t({query:n,dataset:this.name}))},_empty:function(){this.$el.empty();this._resetLastSuggestion()},_getSuggestionsFragment:function(r,u){var f=this,e;return e=document.createDocumentFragment(),t.each(u,function(t){var u,o;o=f._injectQuery(r,t);u=n(f.templates.suggestion(o)).data(i.obj,t).data(i.val,f.displayFn(t)).addClass(f.classes.suggestion+" "+f.classes.selectable);e.appendChild(u[0])}),this.highlight&&s({className:this.classes.highlight,node:e,pattern:r}),n(e)},_getFooter:function(n,t){return this.templates.footer?this.templates.footer({query:n,suggestions:t,dataset:this.name}):null},_getHeader:function(n,t){return this.templates.header?this.templates.header({query:n,suggestions:t,dataset:this.name}):null},_resetLastSuggestion:function(){this.$lastSuggestion=n()},_injectQuery:function(n,i){return t.isObject(i)?t.mixin({_query:n},i):i},update:function(t){function e(n){u||(u=!0,n=(n||[]).slice(0,i.limit),r=n.length,i._overwrite(t,n),r<i.limit&&i.async&&i.trigger("asyncRequested",t))}function o(u){u=u||[];!f&&r<i.limit&&(i.cancel=n.noop,r+=u.length,i._append(t,u.slice(0,i.limit-r)),i.async&&i.trigger("asyncReceived",t))}var i=this,f=!1,u=!1,r=0;this.cancel();this.cancel=function(){f=!0;i.cancel=n.noop;i.async&&i.trigger("asyncCanceled",t)};this.source(t,e,o);u||e([])},cancel:n.noop,clear:function(){this._empty();this.cancel();this.trigger("cleared")},isEmpty:function(){return this.$el.is(":empty")},destroy:function(){this.$el=n("<div>")}}),u}(),i=function(){"use strict";function i(i,r){function e(t){var i=u.$node.find(t.node).first();return t.node=i.length?i:n("<div>").appendTo(u.$node),new f(t,r)}var u=this;i=i||{};i.node||n.error("node is required");r.mixin(this);this.$node=n(i.node);this.query=null;this.datasets=t.map(i.datasets,e)}return t.mixin(i.prototype,r,{_onSelectableClick:function(t){this.trigger("selectableClicked",n(t.currentTarget))},_onRendered:function(n,t,i,r){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetRendered",t,i,r)},_onCleared:function(){this.$node.toggleClass(this.classes.empty,this._allDatasetsEmpty());this.trigger("datasetCleared")},_propagate:function(){this.trigger.apply(this,arguments)},_allDatasetsEmpty:function(){function n(n){return n.isEmpty()}return t.every(this.datasets,n)},_getSelectables:function(){return this.$node.find(this.selectors.selectable)},_removeCursor:function(){var n=this.getActiveSelectable();n&&n.removeClass(this.classes.cursor)},_ensureVisible:function(n){var t,i,r,u;t=n.position().top;i=t+n.outerHeight(!0);r=this.$node.scrollTop();u=this.$node.height()+parseInt(this.$node.css("paddingTop"),10)+parseInt(this.$node.css("paddingBottom"),10);t<0?this.$node.scrollTop(r+t):u<i&&this.$node.scrollTop(r+(i-u))},bind:function(){var n=this,i=t.bind(this._onSelectableClick,this);this.$node.on("click.tt",this.selectors.selectable,i);return t.each(this.datasets,function(t){t.onSync("asyncRequested",n._propagate,n).onSync("asyncCanceled",n._propagate,n).onSync("asyncReceived",n._propagate,n).onSync("rendered",n._onRendered,n).onSync("cleared",n._onCleared,n)}),this},isOpen:function(){return this.$node.hasClass(this.classes.open)},open:function(){this.$node.addClass(this.classes.open)},close:function(){this.$node.removeClass(this.classes.open);this._removeCursor()},setLanguageDirection:function(n){this.$node.attr("dir",n)},selectableRelativeToCursor:function(n){var i,r,u,t;return r=this.getActiveSelectable(),i=this._getSelectables(),u=r?i.index(r):-1,t=u+n,t=(t+1)%(i.length+1)-1,t=t<-1?i.length-1:t,t===-1?null:i.eq(t)},setCursor:function(n){this._removeCursor();(n=n&&n.first())&&(n.addClass(this.classes.cursor),this._ensureVisible(n))},getSelectableData:function(n){return n&&n.length?f.extractData(n):null},getActiveSelectable:function(){var n=this._getSelectables().filter(this.selectors.cursor).first();return n.length?n:null},getTopSelectable:function(){var n=this._getSelectables().first();return n.length?n:null},update:function(n){function r(t){t.update(n)}var i=n!==this.query;return i&&(this.query=n,t.each(this.datasets,r)),i},empty:function(){function n(n){n.clear()}t.each(this.datasets,n);this.query=null;this.$node.addClass(this.classes.empty)},destroy:function(){function i(n){n.destroy()}this.$node.off(".tt");this.$node=n("<div>");t.each(this.datasets,i)}}),i}(),h=function(){"use strict";function r(){i.apply(this,[].slice.call(arguments,0))}var n=i.prototype;return t.mixin(r.prototype,i.prototype,{open:function(){return this._allDatasetsEmpty()||this._show(),n.open.apply(this,[].slice.call(arguments,0))},close:function(){return this._hide(),n.close.apply(this,[].slice.call(arguments,0))},_onRendered:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onRendered.apply(this,[].slice.call(arguments,0))},_onCleared:function(){return this._allDatasetsEmpty()?this._hide():this.isOpen()&&this._show(),n._onCleared.apply(this,[].slice.call(arguments,0))},setLanguageDirection:function(t){return this.$node.css(t==="ltr"?this.css.ltr:this.css.rtl),n.setLanguageDirection.apply(this,[].slice.call(arguments,0))},_hide:function(){this.$node.hide()},_show:function(){this.$node.css("display","block")}}),r}(),c=function(){"use strict";function r(r,u){var f,e,o,s,h,c,l,a,v,y,p;r=r||{};r.input||n.error("missing input");r.menu||n.error("missing menu");r.eventBus||n.error("missing event bus");u.mixin(this);this.eventBus=r.eventBus;this.minLength=t.isNumber(r.minLength)?r.minLength:1;this.input=r.input;this.menu=r.menu;this.enabled=!0;this.active=!1;this.input.hasFocus()&&this.activate();this.dir=this.input.getLangDir();this._hacks();this.menu.bind().onSync("selectableClicked",this._onSelectableClicked,this).onSync("asyncRequested",this._onAsyncRequested,this).onSync("asyncCanceled",this._onAsyncCanceled,this).onSync("asyncReceived",this._onAsyncReceived,this).onSync("datasetRendered",this._onDatasetRendered,this).onSync("datasetCleared",this._onDatasetCleared,this);f=i(this,"activate","open","_onFocused");e=i(this,"deactivate","_onBlurred");o=i(this,"isActive","isOpen","_onEnterKeyed");s=i(this,"isActive","isOpen","_onTabKeyed");h=i(this,"isActive","_onEscKeyed");c=i(this,"isActive","open","_onUpKeyed");l=i(this,"isActive","open","_onDownKeyed");a=i(this,"isActive","isOpen","_onLeftKeyed");v=i(this,"isActive","isOpen","_onRightKeyed");y=i(this,"_openIfActive","_onQueryChanged");p=i(this,"_openIfActive","_onWhitespaceChanged");this.input.bind().onSync("focused",f,this).onSync("blurred",e,this).onSync("enterKeyed",o,this).onSync("tabKeyed",s,this).onSync("escKeyed",h,this).onSync("upKeyed",c,this).onSync("downKeyed",l,this).onSync("leftKeyed",a,this).onSync("rightKeyed",v,this).onSync("queryChanged",y,this).onSync("whitespaceChanged",p,this).onSync("langDirChanged",this._onLangDirChanged,this)}function i(n){var i=[].slice.call(arguments,1);return function(){var r=[].slice.call(arguments);t.each(i,function(t){if(n&&n[t])return n[t].apply(n,r)})}}return t.mixin(r.prototype,{_hacks:function(){var r,i;r=this.input.$input||n("<div>");i=this.menu.$node||n("<div>");r.on("blur.tt",function(n){var u,f,e;u=document.activeElement;f=i.is(u);e=i.has(u).length>0;t.isMsie()&&(f||e)&&(n.preventDefault(),n.stopImmediatePropagation(),t.defer(function(){r.focus()}))});i.on("mousedown.tt",function(n){n.preventDefault()})},_onSelectableClicked:function(n,t){this.select(t)},_onDatasetCleared:function(){this._updateHint()},_onDatasetRendered:function(n,t,i,r){this._updateHint();this.eventBus.trigger("render",i,r,t)},_onAsyncRequested:function(n,t,i){this.eventBus.trigger("asyncrequest",i,t)},_onAsyncCanceled:function(n,t,i){this.eventBus.trigger("asynccancel",i,t)},_onAsyncReceived:function(n,t,i){this.eventBus.trigger("asyncreceive",i,t)},_onFocused:function(){this._minLengthMet()&&this.menu.update(this.input.getQuery())},_onBlurred:function(){this.input.hasQueryChangedSinceLastFocus()&&this.eventBus.trigger("change",this.input.getQuery())},_onEnterKeyed:function(n,t){var i;(i=this.menu.getActiveSelectable())&&this.select(i)&&t.preventDefault()},_onEscKeyed:function(){this.close()},_onUpKeyed:function(){this.moveCursor(-1)},_onDownKeyed:function(){this.moveCursor(1)},_onLeftKeyed:function(){this.dir==="rtl"&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onRightKeyed:function(){this.dir==="ltr"&&this.input.isCursorAtEnd()&&this.autocomplete(this.menu.getTopSelectable())},_onQueryChanged:function(n,t){this._minLengthMet(t)?this.menu.update(t):this.menu.empty()},_onWhitespaceChanged:function(){this._updateHint()},_onLangDirChanged:function(n,t){this.dir!==t&&(this.dir=t,this.menu.setLanguageDirection(t))},_openIfActive:function(){this.isActive()&&this.open()},_minLengthMet:function(n){return n=t.isString(n)?n:this.input.getQuery()||"",n.length>=this.minLength},_updateHint:function(){var f,i,n,e,o,s,r;f=this.menu.getTopSelectable();i=this.menu.getSelectableData(f);n=this.input.getInputValue();!i||t.isBlankString(n)||this.input.hasOverflow()?this.input.clearHint():(e=u.normalizeQuery(n),o=t.escapeRegExChars(e),s=new RegExp("^(?:"+o+")(.+$)","i"),r=s.exec(i.val),r&&this.input.setHint(n+r[1]))},isEnabled:function(){return this.enabled},enable:function(){this.enabled=!0},disable:function(){this.enabled=!1},isActive:function(){return this.active},activate:function(){return this.isActive()?!0:!this.isEnabled()||this.eventBus.before("active")?!1:(this.active=!0,this.eventBus.trigger("active"),!0)},deactivate:function(){return this.isActive()?this.eventBus.before("idle")?!1:(this.active=!1,this.close(),this.eventBus.trigger("idle"),!0):!0},isOpen:function(){return this.menu.isOpen()},open:function(){return this.isOpen()||this.eventBus.before("open")||(this.menu.open(),this._updateHint(),this.eventBus.trigger("open")),this.isOpen()},close:function(){return this.isOpen()&&!this.eventBus.before("close")&&(this.menu.close(),this.input.clearHint(),this.input.resetInputValue(),this.eventBus.trigger("close")),!this.isOpen()},setVal:function(n){this.input.setQuery(t.toStr(n))},getVal:function(){return this.input.getQuery()},select:function(n){var t=this.menu.getSelectableData(n);return t&&!this.eventBus.before("select",t.obj)?(this.input.setQuery(t.val,!0),this.eventBus.trigger("select",t.obj),this.close(),!0):!1},autocomplete:function(n){var i,t,r;return(i=this.input.getQuery(),t=this.menu.getSelectableData(n),r=t&&i!==t.val,r&&!this.eventBus.before("autocomplete",t.obj))?(this.input.setQuery(t.val),this.eventBus.trigger("autocomplete",t.obj),!0):!1},moveCursor:function(n){var u,i,t,r,f;return(u=this.input.getQuery(),i=this.menu.selectableRelativeToCursor(n),t=this.menu.getSelectableData(i),r=t?t.obj:null,f=this._minLengthMet()&&this.menu.update(u),!f&&!this.eventBus.before("cursorchange",r))?(this.menu.setCursor(i),t?this.input.setInputValue(t.val):(this.input.resetInputValue(),this._updateHint()),this.eventBus.trigger("cursorchange",r),!0):!1},destroy:function(){this.input.destroy();this.menu.destroy()}}),r}();(function(){"use strict";function r(t,i){t.each(function(){var t=n(this),r;(r=t.data(f.typeahead))&&i(r,t)})}function v(n,t){return n.clone().addClass(t.classes.hint).removeData().css(t.css.hint).css(p(n)).prop("readonly",!0).removeAttr("id name placeholder required").attr({autocomplete:"off",spellcheck:"false",tabindex:-1})}function y(n,t){n.data(f.attrs,{dir:n.attr("dir"),autocomplete:n.attr("autocomplete"),spellcheck:n.attr("spellcheck"),style:n.attr("style")});n.addClass(t.classes.input).attr({autocomplete:"off",spellcheck:!1});try{n.attr("dir")||n.attr("dir","auto")}catch(i){}return n}function p(n){return{backgroundAttachment:n.css("background-attachment"),backgroundClip:n.css("background-clip"),backgroundColor:n.css("background-color"),backgroundImage:n.css("background-image"),backgroundOrigin:n.css("background-origin"),backgroundPosition:n.css("background-position"),backgroundRepeat:n.css("background-repeat"),backgroundSize:n.css("background-size")}}function w(n){var r,i;r=n.data(f.www);i=n.parent().filter(r.selectors.wrapper);t.each(n.data(f.attrs),function(i,r){t.isUndefined(i)?n.removeAttr(r):n.attr(r,i)});n.removeData(f.typeahead).removeData(f.www).removeData(f.attr).removeClass(r.classes.input);i.length&&(n.detach().insertAfter(i),i.remove())}function a(i){var u,r;return u=t.isJQuery(i)||t.isElement(i),r=u?n(i).first():[],r.length?r:null}var l,f,s;l=n.fn.typeahead;f={www:"tt-www",attrs:"tt-attrs",typeahead:"tt-typeahead"};s={initialize:function(r,s){function p(){var e,d,p,w,b,k,g,nt,tt,it,rt;t.each(s,function(n){n.highlight=!!r.highlight});e=n(this);d=n(l.html.wrapper);p=a(r.hint);w=a(r.menu);b=r.hint!==!1&&!p;k=r.menu!==!1&&!w;b&&(p=v(e,l));k&&(w=n(l.html.menu).css(l.css.menu));p&&p.val("");e=y(e,l);(b||k)&&(d.css(l.css.wrapper),e.css(b?l.css.input:l.css.inputWithNoHint),e.wrap(d).parent().prepend(b?p:null).append(k?w:null));rt=k?h:i;g=new o({el:e});nt=new u({hint:p,input:e},l);tt=new rt({node:w,datasets:s},l);it=new c({input:nt,menu:tt,eventBus:g,minLength:r.minLength},l);e.data(f.www,l);e.data(f.typeahead,it)}var l;return s=t.isArray(s)?s:[].slice.call(arguments,1),r=r||{},l=e(r.classNames),this.each(p)},isEnabled:function(){var n;return r(this.first(),function(t){n=t.isEnabled()}),n},enable:function(){return r(this,function(n){n.enable()}),this},disable:function(){return r(this,function(n){n.disable()}),this},isActive:function(){var n;return r(this.first(),function(t){n=t.isActive()}),n},activate:function(){return r(this,function(n){n.activate()}),this},deactivate:function(){return r(this,function(n){n.deactivate()}),this},isOpen:function(){var n;return r(this.first(),function(t){n=t.isOpen()}),n},open:function(){return r(this,function(n){n.open()}),this},close:function(){return r(this,function(n){n.close()}),this},select:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.select(u)}),i},autocomplete:function(t){var i=!1,u=n(t);return r(this.first(),function(n){i=n.autocomplete(u)}),i},moveCursor:function(n){var t=!1;return r(this.first(),function(i){t=i.moveCursor(n)}),t},val:function(n){var t;return arguments.length?(r(this,function(t){t.setVal(n)}),this):(r(this.first(),function(n){t=n.getVal()}),t)},destroy:function(){return r(this,function(n,t){w(t);n.destroy()}),this}};n.fn.typeahead=function(n){return s[n]?s[n].apply(this,[].slice.call(arguments,1)):s.initialize.apply(this,arguments)};n.fn.typeahead.noConflict=function(){return n.fn.typeahead=l,this}})()}),function(n){"use strict";if(typeof define=="function"&&define.amd)define(["jquery","moment"],n);else if(typeof exports=="object")module.exports=n(require("jquery"),require("moment"));else{if(typeof jQuery=="undefined")throw"bootstrap-datetimepicker requires jQuery to be loaded first";if(typeof moment=="undefined")throw"bootstrap-datetimepicker requires Moment.js to be loaded first";n(jQuery,moment)}}(function(n,t){"use strict";if(!t)throw new Error("bootstrap-datetimepicker requires Moment.js to be loaded first");var i=null,r=function(r,u){var f={},o,s,g=!0,h,y=!1,e=!1,nt,tt=0,w,ut,d,ct=[{clsName:"days",navFnc:"M",navStep:1},{clsName:"months",navFnc:"y",navStep:1},{clsName:"years",navFnc:"y",navStep:10},{clsName:"decades",navFnc:"y",navStep:100}],yt=["days","months","years","decades"],kt=["top","bottom","auto"],dt=["left","right","auto"],gt=["default","top","bottom"],ni={up:38,38:"up",down:40,40:"down",left:37,37:"left",right:39,39:"right",tab:9,9:"tab",escape:27,27:"escape",enter:13,13:"enter",pageUp:33,33:"pageUp",pageDown:34,34:"pageDown",shift:16,16:"shift",control:17,17:"control",alt:18,18:"alt",space:32,32:"space",t:84,84:"t","delete":46,46:"delete"},ft={},pt=function(){return t.tz!==undefined&&u.timeZone!==undefined&&u.timeZone!==null&&u.timeZone!==""},v=function(n){var i;return i=n===undefined||n===null?t():t.isDate(n)||t.isMoment(n)?t(n):pt()?t.tz(n,ut,u.useStrict,u.timeZone):t(n,ut,u.useStrict),pt()&&i.tz(u.timeZone),i},b=function(n){if(typeof n!="string"||n.length>1)throw new TypeError("isEnabled expects a single character string parameter");switch(n){case"y":return w.indexOf("Y")!==-1;case"M":return w.indexOf("M")!==-1;case"d":return w.toLowerCase().indexOf("d")!==-1;case"h":case"H":return w.toLowerCase().indexOf("h")!==-1;case"m":return w.indexOf("m")!==-1;case"s":return w.indexOf("s")!==-1;default:return!1}},et=function(){return b("h")||b("m")||b("s")},lt=function(){return b("y")||b("M")||b("d")},oi=function(){var t=n("<thead>").append(n("<tr>").append(n("<th>").addClass("prev").attr("data-action","previous").append(n('<a href="#"><span><span class="sr-only"><\/span>').addClass(u.icons.previous).attr("tabindex","0")).append(n('<span class="pseudo-element-helper-icon hide">&lt;<\/span>'))).append(n("<th>").addClass("picker-switch").attr("colspan",u.calendarWeeks?"6":"5").attr("data-action","pickerSwitch")).append(n("<th>").addClass("next").attr("data-action","next").append(n('<a href="#"><span><span class="sr-only"><\/span>').addClass(u.icons.next).attr("tabindex","0")).append(n('<span class="pseudo-element-helper-icon hide">&gt;<\/span>')))),i=n("<tbody>").append(n("<tr>").append(n("<td>").attr("colspan",u.calendarWeeks?"8":"7")));return[n("<div>").addClass("datepicker-days").append(n("<table>").addClass("table-condensed").append(t).append(n("<tbody>"))),n("<div>").addClass("datepicker-months").append(n("<table>").addClass("table-condensed").append(t.clone()).append(i.clone())),n("<div>").addClass("datepicker-years").append(n("<table>").addClass("table-condensed").append(t.clone()).append(i.clone())),n("<div>").addClass("datepicker-decades").append(n("<table>").addClass("table-condensed").append(t.clone()).append(i.clone()))]},si=function(){var t=n("<tr>"),i=n("<tr>"),r=n("<tr>");return b("h")&&(t.append(n("<td>").append(n("<a>").attr({id:"incrementHours",href:"#",tabindex:"0",title:u.tooltips.incrementHour,role:"button"}).addClass("btn").attr("data-action","incrementHours").append(n("<span>").addClass(u.icons.up).append(n('<span class="pseudo-element-helper-icon hide">&#708;<\/span>'))))),i.append(n("<td>").append(n("<span>").addClass("timepicker-hour").attr({"data-time-component":"hours",title:u.tooltips.pickHour,tabindex:"0",role:"alert","data-action":"showHours"}))),r.append(n("<td>").append(n("<a>").attr({id:"decrementHours",href:"#",tabindex:"0",title:u.tooltips.decrementHour,role:"button"}).addClass("btn").attr("data-action","decrementHours").append(n("<span>").addClass(u.icons.down).append(n('<span class="pseudo-element-helper-icon hide">&#709;<\/span>')))))),b("m")&&(b("h")&&(t.append(n("<td>").addClass("separator")),i.append(n("<td>").addClass("separator").html(":")),r.append(n("<td>").addClass("separator"))),t.append(n("<td>").append(n("<a>").attr({id:"incrementMinutes",href:"#",tabindex:"0",title:u.tooltips.incrementMinute,role:"button"}).addClass("btn").attr("data-action","incrementMinutes").append(n("<span>").addClass(u.icons.up).append(n('<span class="pseudo-element-helper-icon hide">&#708;<\/span>'))))),i.append(n("<td>").append(n("<span>").addClass("timepicker-minute").attr({"data-time-component":"minutes",title:u.tooltips.pickMinute,tabindex:"0",role:"alert","data-action":"showMinutes"}))),r.append(n("<td>").append(n("<a>").attr({id:"decrementMinutes",href:"#",tabindex:"0",title:u.tooltips.decrementMinute,role:"button"}).addClass("btn").attr("data-action","decrementMinutes").append(n("<span>").addClass(u.icons.down).append(n('<span class="pseudo-element-helper-icon hide">&#709;<\/span>')))))),b("s")&&(b("m")&&(t.append(n("<td>").addClass("separator")),i.append(n("<td>").addClass("separator").html(":")),r.append(n("<td>").addClass("separator"))),t.append(n("<td>").append(n("<a>").attr({href:"#",tabindex:"0",title:u.tooltips.incrementSecond}).addClass("btn").attr("data-action","incrementSeconds").append(n("<span>").addClass(u.icons.up)))),i.append(n("<td>").append(n("<span>").addClass("timepicker-second").attr({"data-time-component":"seconds",title:u.tooltips.pickSecond}).attr("data-action","showSeconds"))),r.append(n("<td>").append(n("<a>").attr({href:"#",tabindex:"0",title:u.tooltips.decrementSecond}).addClass("btn").attr("data-action","decrementSeconds").append(n("<span>").addClass(u.icons.down))))),nt||(t.append(n("<td>").addClass("separator")),i.append(n("<td>").append(n("<button>").addClass("btn btn-primary").attr({"data-action":"togglePeriod",tabindex:"0",title:u.tooltips.togglePeriod}))),r.append(n("<td>").addClass("separator"))),n("<div>").addClass("timepicker-picker").attr("tabindex","0").append(n("<table>").addClass("table-condensed").append([t,i,r]))},hi=function(){var i=n("<div>").addClass("timepicker-hours").append(n("<table>").addClass("table-condensed")),r=n("<div>").addClass("timepicker-minutes").append(n("<table>").addClass("table-condensed")),u=n("<div>").addClass("timepicker-seconds").append(n("<table>").addClass("table-condensed")),t=[si()];return b("h")&&t.push(i),b("m")&&t.push(r),b("s")&&t.push(u),t},ci=function(){var t=[];return u.showTodayButton&&t.push(n("<td>").append(n('<a href="#">').attr({"data-action":"today",title:u.tooltips.today,tabindex:"0",id:"todayButton"}).append(n("<span>").addClass(u.icons.today)))),!u.sideBySide&&lt()&&et()&&t.push(n("<td>").append(n("<a>").attr({"data-action":"togglePicker",title:u.tooltips.selectTime}).append(n("<span>").addClass(u.icons.time)))),u.showClear&&t.push(n("<td>").append(n("<a>").attr({"data-action":"clear",title:u.tooltips.clear}).append(n("<span>").addClass(u.icons.clear)))),u.showClose&&t.push(n("<td>").append(n("<a>").attr({"data-action":"close",title:u.tooltips.close}).append(n("<span>").addClass(u.icons.close)))),n("<table>").addClass("table-condensed").append(n("<tbody>").append(n("<tr>").append(t)))},li=function(){var t=n('<div id="datetimepicker-widget" role="application">').addClass("bootstrap-datetimepicker-widget dropdown-menu"),f=n("<div>").addClass("datepicker").append(oi()),e=n("<div>").addClass("timepicker").append(hi()),i=n("<ul>").addClass("list-unstyled"),r=n("<li>").addClass("picker-switch"+(u.collapse?" accordion-toggle":"")).append(ci());return(u.inline&&t.removeClass("dropdown-menu"),nt&&t.addClass("usetwentyfour"),b("s")&&!nt&&t.addClass("wider"),u.sideBySide&&lt()&&et())?(t.addClass("timepicker-sbs"),u.toolbarPlacement==="top"&&t.append(r),t.append(n("<div>").addClass("row").append(f.addClass("col-md-7")).append(e.addClass("col-md-5"))),u.toolbarPlacement==="bottom"&&t.append(r),t):(u.toolbarPlacement==="top"&&i.append(r),lt()&&i.append(n("<li>").addClass(u.collapse&&et()?"collapse in":"").append(f)),u.toolbarPlacement==="default"&&i.append(r),et()&&i.append(n("<li>").addClass(u.collapse&&lt()?"collapse":"").append(e)),u.toolbarPlacement==="bottom"&&i.append(r),t.append(i))},ai=function(){var t,i={};return t=r.is("input")||u.inline?r.data():r.find("input").data(),t.dateOptions&&t.dateOptions instanceof Object&&(i=n.extend(!0,i,t.dateOptions)),n.each(u,function(n){var r="date"+n.charAt(0).toUpperCase()+n.slice(1);t[r]!==undefined&&(i[n]=t[r])}),i},wt=function(){var i=(y||r).position(),h=(y||r).offset(),f=u.widgetPositioning.vertical,o=u.widgetPositioning.horizontal,t,c=!1,l,s;if(u.widgetParent)t=u.widgetParent.append(e);else if(r.is("input"))l=r.after(e).parent(),c=l.closest(".popover-content").length>0,t=c?r.parent().closest("tr"):l;else{if(u.inline){t=r.append(e);return}t=r;r.children().first().after(e)}if(f==="auto"&&(f=h.top+e.height()*1.5>=n(window).height()+n(window).scrollTop()&&e.height()+r.outerHeight()<h.top?"top":"bottom"),o==="auto"&&(o=t.width()<h.left+e.outerWidth()/2&&h.left+e.outerWidth()>n(window).width()?"right":"left"),f==="top"?e.addClass("top").removeClass("bottom"):e.addClass("bottom").removeClass("top"),o==="right"?e.addClass("pull-right"):e.removeClass("pull-right"),c){if(t.css("position")!=="relative"&&(t=t.parents().filter(function(){return n(this).css("position")==="relative"}).first()),t.length===0)throw new Error("datetimepicker component should be placed within a relative positioned container");s={top:f==="top"?i.top-e.height()-14:i.top+r.outerHeight(),bottom:"auto",left:o==="left"?t.css("padding-left"):"auto"};s.top+=t.position.top;s.left!=="auto"&&(s.left+=150);e.css(s)}else{if(t.css("position")==="static"&&(t=t.parents().filter(function(){return n(this).css("position")!=="static"}).first()),t.length===0)throw new Error("datetimepicker component should be placed within a non-static positioned container");e.css({top:f==="top"?"auto":i.top+r.outerHeight(),bottom:f==="top"?t.outerHeight()-(t===r?0:i.top):"auto",left:o==="left"?t===r?0:i.left:"auto",right:o==="left"?"auto":t.outerWidth()-r.outerWidth()-(t===r?0:i.left)})}},rt=function(n){(n.type!=="dp.change"||(!n.date||!n.date.isSame(n.oldDate))&&(n.date||n.oldDate))&&r.trigger(n)},ot=function(n){n==="y"&&(n="YYYY");rt({type:"dp.update",change:n,viewDate:s.clone()})},st=function(n){e&&(n&&(d=Math.max(tt,Math.min(3,d+n))),e.find(".datepicker > div").hide().filter(".datepicker-"+ct[d].clsName).show())},vi=function(){var t=n("<tr>"),i=s.clone().startOf("w").startOf("d");for(u.calendarWeeks===!0&&t.append(n("<th>").addClass("cw").text("#"));i.isBefore(s.clone().endOf("w"));)t.append(n('<td class="dow">').html("<b>"+i.format("dd")+"<\/b>")),i.add(1,"d");e.find(".datepicker-days thead").append(t)},yi=function(n){return u.disabledDates[n.format("YYYY-MM-DD")]===!0},pi=function(n){return u.enabledDates[n.format("YYYY-MM-DD")]===!0},wi=function(n){return u.disabledHours[n.format("H")]===!0},bi=function(n){return u.enabledHours[n.format("H")]===!0},a=function(t,i){if(!t.isValid()||u.disabledDates&&i==="d"&&yi(t)||u.enabledDates&&i==="d"&&!pi(t)||u.minDate&&t.isBefore(u.minDate,i)||u.maxDate&&t.isAfter(u.maxDate,i)||u.daysOfWeekDisabled&&i==="d"&&u.daysOfWeekDisabled.indexOf(t.day())!==-1||u.disabledHours&&(i==="h"||i==="m"||i==="s")&&wi(t)||u.enabledHours&&(i==="h"||i==="m"||i==="s")&&!bi(t))return!1;if(u.disabledTimeIntervals&&(i==="h"||i==="m"||i==="s")){var r=!1;if(n.each(u.disabledTimeIntervals,function(){if(t.isBetween(this[0],this[1]))return r=!0,!1}),r)return!1}return!0},ki=function(){for(var i=[],t=s.clone().startOf("y").startOf("d");t.isSame(s,"y");)i.push(n("<span>").attr("data-action","selectMonth").addClass("month").text(t.format("MMM"))),t.add(1,"M");e.find(".datepicker-months td").empty().append(i)},di=function(){var i=e.find(".datepicker-months"),t=i.find("th"),r=i.find("tbody").find("span");t.eq(0).find("span").attr("title",u.tooltips.prevYear).attr("role","button");t.eq(1).attr("title",u.tooltips.selectYear).attr("role","button");t.eq(2).find("span").attr("title",u.tooltips.nextYear).attr("role","button");i.find(".disabled").removeClass("disabled");a(s.clone().subtract(1,"y"),"y")||t.eq(0).addClass("disabled").attr("aria-disabled",!0);t.eq(1).text(s.year());a(s.clone().add(1,"y"),"y")||t.eq(2).addClass("disabled").attr("aria-disabled",!0);r.removeClass("active");o.isSame(s,"y")&&!g&&r.eq(o.month()).addClass("active");r.each(function(t){a(s.clone().month(t),"M")||n(this).addClass("disabled").attr("aria-disabled",!0)})},gi=function(){var i=e.find(".datepicker-years"),t=i.find("th"),n=s.clone().subtract(5,"y"),r=s.clone().add(6,"y"),f="";for(t.eq(0).find("span").attr("title",u.tooltips.prevDecade),t.eq(1).attr("title",u.tooltips.selectDecade),t.eq(2).find("span").attr("title",u.tooltips.nextDecade),i.find(".disabled").removeClass("disabled").removeAttr("aria-disabled"),u.minDate&&u.minDate.isAfter(n,"y")&&t.eq(0).addClass("disabled").attr("aria-disabled",!0),t.eq(1).text(n.year()+"-"+r.year()),u.maxDate&&u.maxDate.isBefore(r,"y")&&t.eq(2).addClass("disabled").attr("aria-disabled",!0);!n.isAfter(r,"y");)f+='<span data-action="selectYear" class="year'+(n.isSame(o,"y")&&!g?" active":"")+(a(n,"y")?"":" disabled")+'">'+n.year()+"<\/span>",n.add(1,"y");i.find("td").html(f)},nr=function(){var f=e.find(".datepicker-decades"),i=f.find("th"),n=t({y:s.year()-s.year()%100-1}),h=n.clone().add(100,"y"),y=n.clone(),l=!1,v=!1,r,c="";for(i.eq(0).find("span").attr("title",u.tooltips.prevCentury),i.eq(2).find("span").attr("title",u.tooltips.nextCentury),f.find(".disabled").removeClass("disabled").removeAttr("aria-disabled"),(n.isSame(t({y:1900}))||u.minDate&&u.minDate.isAfter(n,"y"))&&i.eq(0).addClass("disabled").attr("aria-disabled",!0),i.eq(1).text(n.year()+"-"+h.year()),(n.isSame(t({y:2e3}))||u.maxDate&&u.maxDate.isBefore(h,"y"))&&i.eq(2).addClass("disabled").attr("aria-disabled",!0);!n.isAfter(h,"y");)r=n.year()+12,l=u.minDate&&u.minDate.isAfter(n,"y")&&u.minDate.year()<=r,v=u.maxDate&&u.maxDate.isAfter(n,"y")&&u.maxDate.year()<=r,c+='<span data-action="selectDecade" class="decade'+(o.isAfter(n)&&o.year()<=r?" active":"")+(!a(n,"y")&&!l&&!v?" disabled":"")+'" data-selection="'+(n.year()+6)+'">'+(n.year()+1)+" - "+(n.year()+12)+"<\/span>",n.add(12,"y");c+="<span><\/span><span><\/span><span><\/span>";f.find("td").html(c);i.eq(1).text(y.year()+1+"-"+n.year())},ht=function(){var y,p,w,h;if(!e){k();return}var c=e.find(".datepicker-days"),r=c.find("th"),t,b=[],f,i=[],l;if(lt()){for(r.eq(0).find("a").attr({title:u.tooltips.prevMonth,tabindex:0,href:"#",role:"button"}),r.eq(1).attr("title",u.tooltips.selectMonth).attr("role","button"),r.eq(2).find("a").attr({title:u.tooltips.nextMonth,tabindex:0,href:"#",role:"button"}),u.nextMonthATagId&&r.eq(2).find("a").attr("id",u.nextMonthATagId),c.find(".disabled").removeClass("disabled").removeAttr("aria-disabled"),r.eq(1).text(s.format(u.dayViewHeaderFormat)),a(s.clone().subtract(1,"M"),"M")||r.eq(0).addClass("disabled").attr("aria-disabled",!0),a(s.clone().add(1,"M"),"M")||r.eq(2).addClass("disabled").attr("aria-disabled",!0),t=s.clone().startOf("M").startOf("w").startOf("d"),l=0;l<42;l++)t.weekday()===0&&(f=n("<tr>"),u.calendarWeeks&&f.append('<td class="cw">'+t.week()+"<\/td>"),b.push(f)),i=["day"],t.isBefore(s,"M")&&i.push("old"),t.isAfter(s,"M")&&i.push("new"),y=!1,t.isSame(o,"d")&&!g&&(i.push("active"),y=!0),p=!1,a(t,"d")||(p=!0,i.push("disabled")),w="",t.isSame(v(),"d")&&(w="Today, ",i.push("today")),(t.day()===0||t.day()===6)&&i.push("weekend"),rt({type:"dp.classify",date:t,classNames:i}),h=w+t.format("LL dddd"),y?f.append('<td data-action="selectDay" data-day="'+t.format("L")+'" class="'+i.join(" ")+'"><a href="#" role="button" aria-current="date" aria-label="'+h+'" class="activeDate dateSelected">'+t.date()+"<\/a><\/td>"):p?f.append('<td data-action="selectDay" data-day="'+t.format("L")+'" class="'+i.join(" ")+'" aria-disabled="true"><a href="#" role="button" aria-label="'+h+'" class="dateSelected" aria-disabled="true">'+t.date()+"<\/a><\/td>"):f.append('<td data-action="selectDay" data-day="'+t.format("L")+'" class="'+i.join(" ")+'"><a href="#" role="button" aria-label="'+h+'" class="dateSelected">'+t.date()+"<\/a><\/td>"),t.add(1,"d");c.find("tbody").empty().append(b);di();gi();nr()}},tr=function(){var u=e.find(".timepicker-hours table"),t=s.clone().startOf("d"),r=[],i=n("<tr>");for(s.hour()>11&&!nt&&t.hour(12);t.isSame(s,"d")&&(nt||s.hour()<12&&t.hour()<12||s.hour()>11);)t.hour()%4==0&&(i=n("<tr>"),r.push(i)),i.append('<td data-action="selectHour" class="hour'+(a(t,"h")?"":" disabled")+'">'+t.format(nt?"HH":"hh")+"<\/td>"),t.add(1,"h");u.empty().append(r)},ir=function(){for(var o=e.find(".timepicker-minutes table"),t=s.clone().startOf("h"),r=[],i=n("<tr>"),f=u.stepping===1?5:u.stepping;s.isSame(t,"h");)t.minute()%(f*4)==0&&(i=n("<tr>"),r.push(i)),i.append('<td data-action="selectMinute" class="minute'+(a(t,"m")?"":" disabled")+'">'+t.format("mm")+"<\/td>"),t.add(f,"m");o.empty().append(r)},rr=function(){for(var u=e.find(".timepicker-seconds table"),t=s.clone().startOf("m"),r=[],i=n("<tr>");s.isSame(t,"m");)t.second()%20==0&&(i=n("<tr>"),r.push(i)),i.append('<td data-action="selectSecond" class="second'+(a(t,"s")?"":" disabled")+'">'+t.format("ss")+"<\/td>"),t.add(5,"s");u.empty().append(r)},ur=function(){var t,i,n=e.find(".timepicker span[data-time-component]");nt||(t=e.find(".timepicker [data-action=togglePeriod]"),i=o.clone().add(o.hours()>=12?-12:12,"h"),t.text(o.format("A")),a(i,"h")?t.removeClass("disabled").removeAttr("aria-disabled"):t.addClass("disabled").attr("aria-disabled",!0));n.filter("[data-time-component=hours]").text(o.format(nt?"HH":"hh"));n.filter("[data-time-component=hours]").attr("title",o.format("LT"));n.filter("[data-time-component=minutes]").text(o.format("mm"));n.filter("[data-time-component=minutes]").attr("title",o.format("LT"));n.filter("[data-time-component=seconds]").text(o.format("ss"));tr();ir();rr()},p=function(){e&&(ht(),ur())},c=function(n){var t=g?null:o;if(!n){g=!0;h.val("");r.data("date","");rt({type:"dp.change",date:!1,oldDate:t});p();return}if(n=n.clone().locale(u.locale),pt()&&n.tz(u.timeZone),u.stepping!==1)for(n.minutes(Math.round(n.minutes()/u.stepping)*u.stepping).seconds(0);u.minDate&&n.isBefore(u.minDate);)n.add(u.stepping,"minutes");a(n)?(o=n,s=o.clone(),h.val(o.format(w)),r.data("date",o.format(w)),g=!1,p(),rt({type:"dp.change",date:o.clone(),oldDate:t})):(u.keepInvalid?rt({type:"dp.change",date:n,oldDate:t}):h.val(g?"":o.format(w)),rt({type:"dp.error",date:n,oldDate:t}))},l=function(){var t=!1;return e?(e.find(".collapse").each(function(){var i=n(this).data("collapse");return i&&i.transitioning?(t=!0,!1):!0}),t)?f:(y&&y.hasClass("btn")&&y.toggleClass("active"),e.hide(),n(window).off("resize",wt),e.off("click","[data-action]"),e.off("mousedown",!1),e.remove(),e=!1,rt({type:"dp.hide",date:o.clone()}),h.blur(),s=o.clone(),f):f},ti=function(){c(null)},it=function(n){return u.parseInputDate===undefined?(!t.isMoment(n)||n instanceof Date)&&(n=v(n)):n=u.parseInputDate(n),n},at={next:function(t){var r=ct[d].navFnc,i;s.add(ct[d].navStep,r);i=s.clone();n(t.target).is(".old")&&i.subtract(1,"M");n(t.target).is(".new")&&i.add(1,"M");c(i.date(parseInt(n(t.target).text(),10)));et()||u.keepOpen||u.inline||l();ht();ot(r)},previous:function(t){var r=ct[d].navFnc,i,u;s.subtract(ct[d].navStep,r);i=s.clone();n(t.target).is(".old")&&i.add(1,"M");n(t.target).is(".new")&&i.subtract(1,"M");c(i.date(parseInt(n(t.target).text(),10)));u=v();ht();ot(r)},pickerSwitch:function(){st(1)},selectMonth:function(t){var i=n(t.target).closest("tbody").find("span").index(n(t.target));s.month(i);d===tt?(c(o.clone().year(s.year()).month(s.month())),u.inline||l()):(st(-1),ht());ot("M")},selectYear:function(t){var i=parseInt(n(t.target).text(),10)||0;s.year(i);d===tt?(c(o.clone().year(s.year())),u.inline||l()):(st(-1),ht());ot("YYYY")},selectDecade:function(t){var i=parseInt(n(t.target).data("selection"),10)||0;s.year(i);d===tt?(c(o.clone().year(s.year())),u.inline||l()):(st(-1),ht());ot("YYYY")},selectDay:function(t){var i=s.clone();n(t.target).is(".old")&&i.subtract(1,"M");n(t.target).is(".new")&&i.add(1,"M");c(i.date(parseInt(n(t.target).text(),10)));et()||u.keepOpen||u.inline||l()},incrementHours:function(){var n=o.clone().add(1,"h");a(n,"h")&&c(n)},incrementMinutes:function(){var n=o.clone().add(u.stepping,"m");a(n,"m")&&c(n)},incrementSeconds:function(){var n=o.clone().add(1,"s");a(n,"s")&&c(n)},decrementHours:function(){var n=o.clone().subtract(1,"h");a(n,"h")&&c(n)},decrementMinutes:function(){var n=o.clone().subtract(u.stepping,"m");a(n,"m")&&c(n)},decrementSeconds:function(){var n=o.clone().subtract(1,"s");a(n,"s")&&c(n)},togglePeriod:function(){c(o.clone().add(o.hours()>=12?-12:12,"h"))},togglePicker:function(t){var r=n(t.target),e=r.closest("ul"),i=e.find(".in"),o=e.find(".collapse:not(.in)"),f;if(i&&i.length){if(f=i.data("collapse"),f&&f.transitioning)return;i.collapse?(i.collapse("hide"),o.collapse("show")):(i.removeClass("in"),o.addClass("in"));r.is("span")?r.toggleClass(u.icons.time+" "+u.icons.date):r.find("span").toggleClass(u.icons.time+" "+u.icons.date)}},showPicker:function(){e.find(".timepicker > div:not(.timepicker-picker)").hide();e.find(".timepicker .timepicker-picker").show()},showHours:function(){e.find(".timepicker .timepicker-picker").hide();e.find(".timepicker .timepicker-hours").show()},showMinutes:function(){e.find(".timepicker .timepicker-picker").hide();e.find(".timepicker .timepicker-minutes").show()},showSeconds:function(){e.find(".timepicker .timepicker-picker").hide();e.find(".timepicker .timepicker-seconds").show()},selectHour:function(t){var i=parseInt(n(t.target).text(),10);nt||(o.hours()>=12?i!==12&&(i+=12):i===12&&(i=0));c(o.clone().hours(i));at.showPicker.call(f)},selectMinute:function(t){c(o.clone().minutes(parseInt(n(t.target).text(),10)));at.showPicker.call(f)},selectSecond:function(t){c(o.clone().seconds(parseInt(n(t.target).text(),10)));at.showPicker.call(f)},clear:ti,today:function(){var n=v();a(n,"d")&&c(n)},close:l},fr=function(t){return n(t.currentTarget).is(".disabled")?!1:(at[n(t.currentTarget).data("action")].apply(f,arguments),!1)},k=function(){var t,r={year:function(n){return n.month(0).date(1).hours(0).seconds(0).minutes(0)},month:function(n){return n.date(1).hours(0).seconds(0).minutes(0)},day:function(n){return n.hours(0).seconds(0).minutes(0)},hour:function(n){return n.seconds(0).minutes(0)},minute:function(n){return n.seconds(0)}};if(h.prop("disabled")||!u.ignoreReadonly&&h.prop("readonly")||e)return f;h.val()!==undefined&&h.val().trim().length!==0?c(it(h.val().trim())):g&&u.useCurrent&&(u.inline||h.is("input")&&h.val().trim().length===0)&&(t=v(),typeof u.useCurrent=="string"&&(t=r[u.useCurrent](t)),c(t));e=li();i=e;vi();ki();e.find(".timepicker-hours").hide();e.find(".timepicker-minutes").hide();e.find(".timepicker-seconds").hide();p();st();n(window).on("resize",wt);e.on("click","[data-action]",fr);e.on("mousedown",!1);return e.keydown(function(t){var i;if(t.ctrlKey&&t.keyCode===32){if(!e)return;e.find(".timepicker").is(":visible")&&e.find('.btn[data-action="togglePeriod"]').click()}else if(t.altKey&&t.keyCode===33){if(!e)return;i=f.date()||v();e.find(".timepicker").is(":visible")&&f.date(i.clone().add(1,"h"))}else if(t.altKey&&t.keyCode===34){if(!e)return;i=f.date()||v();e.find(".timepicker").is(":visible")&&f.date(i.clone().subtract(1,"h"))}else if(t.altKey&&t.keyCode===38){if(!e)return;i=f.date()||v();e.find(".timepicker").is(":visible")&&f.date(i.clone().add(1,"m"))}else if(t.altKey&&t.keyCode===40){if(!e)return;i=f.date()||v();e.find(".timepicker").is(":visible")&&f.date(i.clone().subtract(1,"m"))}else if(t.shiftKey&&t.keyCode===9)n(t.target).attr("title")==="Increment Hour"?(t.preventDefault(),n("a[title='Next Month']").focus()):n(t.target).data("time-component")==="hours"?(t.preventDefault(),n("a[title='Increment Hour']").focus()):n(t.target).attr("title")==="Decrement Hour"?(t.preventDefault(),n("span[data-time-component='hours']").focus()):n(t.target).attr("title")==="Increment Minute"?(t.preventDefault(),n("a[title='Decrement Hour']").focus()):n(t.target).data("time-component")==="minutes"?(t.preventDefault(),n("a[title='Increment Minute']").focus()):n(t.target).data("action")==="decrementMinutes"?(t.preventDefault(),n("span[data-time-component='minutes']").focus()):n(t.target).data("action")==="togglePeriod"?(t.preventDefault(),n("a[title='Decrement Minute']").focus()):n(t.target).attr("title")==="Next Month"&&n(t.target).parent().parent().find(".prev").hasClass("disabled")===!0?(t.preventDefault(),l(),n(h).blur(),n("#"+u.previousFocusId).focus()):n(t.target).attr("title")==="Previous Month"?(t.preventDefault(),l(),n(h).blur(),u.previousFocusFunc&&u.previousFocusFunc(),n("#"+u.previousFocusId).focus()):n(t.target).hasClass("dateSelected")&&(t.preventDefault(),n("a[title='Previous Month']").focus());else if(t.keyCode===9)n(t.target).attr("title")==="Increment Hour"?(t.preventDefault(),n("span[data-time-component='hours']").focus()):n(t.target).data("time-component")==="hours"?(t.preventDefault(),n("a[title='Decrement Hour']").focus()):n(t.target).attr("title")==="Decrement Hour"?(t.preventDefault(),n("a[title='Increment Minute']").focus()):n(t.target).attr("title")==="Increment Minute"?(t.preventDefault(),n("span[data-time-component='minutes']").focus()):n(t.target).data("time-component")==="minutes"?(t.preventDefault(),n("a[title='Decrement Minute']").focus()):n(t.target).data("action")==="decrementMinutes"?(t.preventDefault(),n("button[data-action='togglePeriod']").focus()):n(t.target).data("action")==="togglePeriod"?(n(t.currentTarget).blur(),l()):n(t.target).data("action")==="today"?(n(t.currentTarget).blur(),l()):n(t.target).attr("title")==="Next Month"?u.nextFocusId&&e.find(".timepicker").is(":visible")===!1?(t.preventDefault(),l(),n(h).blur(),u.nextFocusFunc&&u.nextFocusFunc(),n("#"+u.nextFocusId).focus()):e.find(".timepicker").is(":visible")?(t.preventDefault(),n("a[title='Increment Hour']").focus()):(t.preventDefault(),n("#todayButton").focus()):n(t.target).hasClass("dateSelected")&&(t.preventDefault(),u.globalDashboardFocus?document.getElementById(u.nextMonthATagId).focus():setTimeout(function(){u.nextMonthATagId?n("#"+u.nextMonthATagId).focus():n("a[title='Next Month']").focus()},100));else if(t.keyCode===37){if(t.preventDefault(),t.stopPropagation(),!e)return;i=f.date()||v();e.find(".datepicker").is(":visible")&&f.date(i.clone().subtract(1,"d"));n(".activeDate").focus()}else if(t.keyCode===39)t.preventDefault(),t.stopPropagation(),i=f.date()||v(),e.find(".datepicker").is(":visible")&&f.date(i.clone().add(1,"d")),n(".activeDate").focus();else if(t.keyCode===38){if(t.preventDefault(),t.stopPropagation(),!e)return;i=f.date()||v();e.find(".datepicker").is(":visible")?f.date(i.clone().subtract(7,"d")):f.date(i.clone().add(this.stepping(),"m"));n(".activeDate").focus()}else if(t.keyCode===40){if(t.preventDefault(),t.stopPropagation(),!e)return;i=f.date()||v();e.find(".datepicker").is(":visible")?f.date(i.clone().add(7,"d")):f.date(i.clone().subtract(this.stepping(),"m"));n(".activeDate").focus()}else if(t.keyCode===33){if(t.preventDefault(),t.stopPropagation(),!e)return;i=f.date()||v();e.find(".datepicker").is(":visible")&&f.date(i.clone().add(1,"M"))}else if(t.keyCode===34){if(t.preventDefault(),t.stopPropagation(),!e)return;i=f.date()||v();e.find(".datepicker").is(":visible")&&f.date(i.clone().subtract(1,"M"))}else t.keyCode===84?f.date(v()):t.keyCode===46?f.clear():t.keyCode===13&&n(t.target).hasClass("dateSelected")&&(t.preventDefault(),f.hide(),u.nextFocusId&&n("#"+u.nextFocusId).focus())}),h.click(function(t){t.stopPropagation();e&&e.show();h.blur();n("a[title='Next Month']").focus()}),e.click(function(n){n.stopPropagation()}),window.tempWidget=e,h.focus(function(){ft={};u.inputOnFocus||e.show();setTimeout(function(){u.inputOnFocus?u.inputOnFocus():n("a[title='Next Month']").focus()},100)}),h.keydown(function(n){n.shiftKey&&n.keyCode===9&&(ft={},l())}),y&&y.hasClass("btn")&&y.toggleClass("active"),wt(),e.show(),e.find("a[title='Next Month']").focus(),u.focusOnShow&&!h.is(":focus")&&h.focus(),rt({type:"dp.show"}),f},bt=function(){return e?l():k()},ii=function(n){var o=null,t,r,c=[],l={},s=n.which,i,h,a="p";ft[s]=a;for(t in ft)ft.hasOwnProperty(t)&&ft[t]===a&&(c.push(t),parseInt(t,10)!==s&&(l[t]=!0));for(t in u.keyBinds)if(u.keyBinds.hasOwnProperty(t)&&typeof u.keyBinds[t]=="function"&&(i=t.split(" "),i.length===c.length&&ni[s]===i[i.length-1])){for(h=!0,r=i.length-2;r>=0;r--)if(!(ni[i[r]]in l)){h=!1;break}if(h){o=u.keyBinds[t];break}}o&&(o.call(f,e),n.stopPropagation(),n.preventDefault())},ri=function(n){ft[n.which]="r";n.stopPropagation();n.preventDefault()},ui=function(t){var i=n(t.target).val().trim(),r=i?it(i):null;return c(r),t.stopImmediatePropagation(),!1},er=function(){h.on({change:ui,blur:u.debug?"":l,keydown:ii,keyup:ri,focus:u.allowInputToggle?k:""});if(r.is("input"))h.on({focus:k});else if(y){y.on("click",bt);y.on("mousedown",!1)}},or=function(){h.off({change:ui,blur:blur,keydown:ii,keyup:ri,focus:u.allowInputToggle?l:""});r.is("input")?h.off({focus:k}):y&&(y.off("click",bt),y.off("mousedown",!1))},fi=function(t){var i={};return n.each(t,function(){var n=it(this);n.isValid()&&(i[n.format("YYYY-MM-DD")]=!0)}),Object.keys(i).length?i:!1},ei=function(t){var i={};return n.each(t,function(){i[this]=!0}),Object.keys(i).length?i:!1},vt=function(){var n=u.format||"L LT";w=n.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(n){var t=o.localeData().longDateFormat(n)||n;return t.replace(/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,function(n){return o.localeData().longDateFormat(n)||n})});ut=u.extraFormats?u.extraFormats.slice():[];ut.indexOf(n)<0&&ut.indexOf(w)<0&&ut.push(w);nt=w.toLowerCase().indexOf("a")<1&&w.replace(/\[.*?\]/g,"").indexOf("h")<1;b("y")&&(tt=2);b("M")&&(tt=1);b("d")&&(tt=0);d=Math.max(tt,d);g||c(o)};if(f.destroy=function(){l();or();r.removeData("DateTimePicker");r.removeData("date")},f.toggle=bt,f.show=k,f.hide=l,f.disable=function(){return l(),y&&y.hasClass("btn")&&y.addClass("disabled"),h.prop("disabled",!0),f},f.enable=function(){return y&&y.hasClass("btn")&&y.removeClass("disabled"),h.prop("disabled",!1),f},f.ignoreReadonly=function(n){if(arguments.length===0)return u.ignoreReadonly;if(typeof n!="boolean")throw new TypeError("ignoreReadonly () expects a boolean parameter");return u.ignoreReadonly=n,f},f.options=function(t){if(arguments.length===0)return n.extend(!0,{},u);if(!(t instanceof Object))throw new TypeError("options() options parameter should be an object");return n.extend(!0,u,t),n.each(u,function(n,t){if(f[n]!==undefined)f[n](t);else throw new TypeError("option "+n+" is not recognized!");}),f},f.date=function(n){if(arguments.length===0)return g?null:o.clone();if(n!==null&&typeof n!="string"&&!t.isMoment(n)&&!(n instanceof Date))throw new TypeError("date() parameter must be one of [null, string, moment or Date]");return c(n===null?null:it(n)),f},f.format=function(n){if(arguments.length===0)return u.format;if(typeof n!="string"&&(typeof n!="boolean"||n!==!1))throw new TypeError("format() expects a string or boolean:false parameter "+n);return u.format=n,w&&vt(),f},f.timeZone=function(n){if(arguments.length===0)return u.timeZone;if(typeof n!="string")throw new TypeError("newZone() expects a string parameter");return u.timeZone=n,f},f.dayViewHeaderFormat=function(n){if(arguments.length===0)return u.dayViewHeaderFormat;if(typeof n!="string")throw new TypeError("dayViewHeaderFormat() expects a string parameter");return u.dayViewHeaderFormat=n,f},f.extraFormats=function(n){if(arguments.length===0)return u.extraFormats;if(n!==!1&&!(n instanceof Array))throw new TypeError("extraFormats() expects an array or false parameter");return u.extraFormats=n,ut&&vt(),f},f.disabledDates=function(t){if(arguments.length===0)return u.disabledDates?n.extend({},u.disabledDates):u.disabledDates;if(!t)return u.disabledDates=!1,p(),f;if(!(t instanceof Array))throw new TypeError("disabledDates() expects an array parameter");return u.disabledDates=fi(t),u.enabledDates=!1,p(),f},f.enabledDates=function(t){if(arguments.length===0)return u.enabledDates?n.extend({},u.enabledDates):u.enabledDates;if(!t)return u.enabledDates=!1,p(),f;if(!(t instanceof Array))throw new TypeError("enabledDates() expects an array parameter");return u.enabledDates=fi(t),u.disabledDates=!1,p(),f},f.daysOfWeekDisabled=function(n){if(arguments.length===0)return u.daysOfWeekDisabled.splice(0);if(typeof n=="boolean"&&!n)return u.daysOfWeekDisabled=!1,p(),f;if(!(n instanceof Array))throw new TypeError("daysOfWeekDisabled() expects an array parameter");if(u.daysOfWeekDisabled=n.reduce(function(n,t){return(t=parseInt(t,10),t>6||t<0||isNaN(t))?n:(n.indexOf(t)===-1&&n.push(t),n)},[]).sort(),u.useCurrent&&!u.keepInvalid){for(var t=0;!a(o,"d");){if(o.add(1,"d"),t===31)throw"Tried 31 times to find a valid date";t++}c(o)}return p(),f},f.maxDate=function(n){if(arguments.length===0)return u.maxDate?u.maxDate.clone():u.maxDate;if(typeof n=="boolean"&&n===!1)return u.maxDate=!1,p(),f;typeof n=="string"&&(n==="now"||n==="moment")&&(n=v());var t=it(n);if(!t.isValid())throw new TypeError("maxDate() Could not parse date parameter: "+n);if(u.minDate&&t.isBefore(u.minDate))throw new TypeError("maxDate() date parameter is before options.minDate: "+t.format(w));return u.maxDate=t,u.useCurrent&&!u.keepInvalid&&o.isAfter(n)&&c(u.maxDate),s.isAfter(t)&&(s=t.clone().subtract(u.stepping,"m")),p(),f},f.minDate=function(n){if(arguments.length===0)return u.minDate?u.minDate.clone():u.minDate;if(typeof n=="boolean"&&n===!1)return u.minDate=!1,p(),f;typeof n=="string"&&(n==="now"||n==="moment")&&(n=v());var t=it(n);if(!t.isValid())throw new TypeError("minDate() Could not parse date parameter: "+n);if(u.maxDate&&t.isAfter(u.maxDate))throw new TypeError("minDate() date parameter is after options.maxDate: "+t.format(w));return u.minDate=t,u.useCurrent&&!u.keepInvalid&&o.isBefore(n)&&c(u.minDate),s.isBefore(t)&&(s=t.clone().add(u.stepping,"m")),p(),f},f.defaultDate=function(n){if(arguments.length===0)return u.defaultDate?u.defaultDate.clone():u.defaultDate;if(!n)return u.defaultDate=!1,f;typeof n=="string"&&(n=n==="now"||n==="moment"?v():v(n));var t=it(n);if(!t.isValid())throw new TypeError("defaultDate() Could not parse date parameter: "+n);if(!a(t))throw new TypeError("defaultDate() date passed is invalid according to component setup validations");return u.defaultDate=t,(u.defaultDate&&u.inline||h.val().trim()==="")&&c(u.defaultDate),f},f.locale=function(n){if(arguments.length===0)return u.locale;if(!t.localeData(n))throw new TypeError("locale() locale "+n+" is not loaded from moment locales!");return u.locale=n,o.locale(u.locale),s.locale(u.locale),w&&vt(),e&&(l(),k()),f},f.stepping=function(n){return arguments.length===0?u.stepping:(n=parseInt(n,10),(isNaN(n)||n<1)&&(n=1),u.stepping=n,f)},f.useCurrent=function(n){var t=["year","month","day","hour","minute"];if(arguments.length===0)return u.useCurrent;if(typeof n!="boolean"&&typeof n!="string")throw new TypeError("useCurrent() expects a boolean or string parameter");if(typeof n=="string"&&t.indexOf(n.toLowerCase())===-1)throw new TypeError("useCurrent() expects a string parameter of "+t.join(", "));return u.useCurrent=n,f},f.collapse=function(n){if(arguments.length===0)return u.collapse;if(typeof n!="boolean")throw new TypeError("collapse() expects a boolean parameter");return u.collapse===n?f:(u.collapse=n,e&&(l(),k()),f)},f.icons=function(t){if(arguments.length===0)return n.extend({},u.icons);if(!(t instanceof Object))throw new TypeError("icons() expects parameter to be an Object");return n.extend(u.icons,t),e&&(l(),k()),f},f.tooltips=function(t){if(arguments.length===0)return n.extend({},u.tooltips);if(!(t instanceof Object))throw new TypeError("tooltips() expects parameter to be an Object");return n.extend(u.tooltips,t),e&&(l(),k()),f},f.useStrict=function(n){if(arguments.length===0)return u.useStrict;if(typeof n!="boolean")throw new TypeError("useStrict() expects a boolean parameter");return u.useStrict=n,f},f.sideBySide=function(n){if(arguments.length===0)return u.sideBySide;if(typeof n!="boolean")throw new TypeError("sideBySide() expects a boolean parameter");return u.sideBySide=n,e&&(l(),k()),f},f.viewMode=function(n){if(arguments.length===0)return u.viewMode;if(typeof n!="string")throw new TypeError("viewMode() expects a string parameter");if(yt.indexOf(n)===-1)throw new TypeError("viewMode() parameter must be one of ("+yt.join(", ")+") value");return u.viewMode=n,d=Math.max(yt.indexOf(n),tt),st(),f},f.toolbarPlacement=function(n){if(arguments.length===0)return u.toolbarPlacement;if(typeof n!="string")throw new TypeError("toolbarPlacement() expects a string parameter");if(gt.indexOf(n)===-1)throw new TypeError("toolbarPlacement() parameter must be one of ("+gt.join(", ")+") value");return u.toolbarPlacement=n,e&&(l(),k()),f},f.widgetPositioning=function(t){if(arguments.length===0)return n.extend({},u.widgetPositioning);if({}.toString.call(t)!=="[object Object]")throw new TypeError("widgetPositioning() expects an object variable");if(t.horizontal){if(typeof t.horizontal!="string")throw new TypeError("widgetPositioning() horizontal variable must be a string");if(t.horizontal=t.horizontal.toLowerCase(),dt.indexOf(t.horizontal)===-1)throw new TypeError("widgetPositioning() expects horizontal parameter to be one of ("+dt.join(", ")+")");u.widgetPositioning.horizontal=t.horizontal}if(t.vertical){if(typeof t.vertical!="string")throw new TypeError("widgetPositioning() vertical variable must be a string");if(t.vertical=t.vertical.toLowerCase(),kt.indexOf(t.vertical)===-1)throw new TypeError("widgetPositioning() expects vertical parameter to be one of ("+kt.join(", ")+")");u.widgetPositioning.vertical=t.vertical}return p(),f},f.calendarWeeks=function(n){if(arguments.length===0)return u.calendarWeeks;if(typeof n!="boolean")throw new TypeError("calendarWeeks() expects parameter to be a boolean value");return u.calendarWeeks=n,p(),f},f.showTodayButton=function(n){if(arguments.length===0)return u.showTodayButton;if(typeof n!="boolean")throw new TypeError("showTodayButton() expects a boolean parameter");return u.showTodayButton=n,e&&(l(),k()),f},f.showClear=function(n){if(arguments.length===0)return u.showClear;if(typeof n!="boolean")throw new TypeError("showClear() expects a boolean parameter");return u.showClear=n,e&&(l(),k()),f},f.widgetParent=function(t){if(arguments.length===0)return u.widgetParent;if(typeof t=="string"&&(t=n(t)),t!==null&&typeof t!="string"&&!(t instanceof n))throw new TypeError("widgetParent() expects a string or a jQuery object parameter");return u.widgetParent=t,e&&(l(),k()),f},f.keepOpen=function(n){if(arguments.length===0)return u.keepOpen;if(typeof n!="boolean")throw new TypeError("keepOpen() expects a boolean parameter");return u.keepOpen=n,f},f.focusOnShow=function(n){if(arguments.length===0)return u.focusOnShow;if(typeof n!="boolean")throw new TypeError("focusOnShow() expects a boolean parameter");return u.focusOnShow=n,f},f.inline=function(n){if(arguments.length===0)return u.inline;if(typeof n!="boolean")throw new TypeError("inline() expects a boolean parameter");return u.inline=n,f},f.clear=function(){return ti(),f},f.keyBinds=function(n){return arguments.length===0?u.keyBinds:(u.keyBinds=n,f)},f.getMoment=function(n){return v(n)},f.debug=function(n){if(typeof n!="boolean")throw new TypeError("debug() expects a boolean parameter");return u.debug=n,f},f.inputOnFocus=function(n){return u.inputOnFocus=n,f},f.previousFocusId=function(n){return u.previousFocusId=n,f},f.previousFocusFunc=function(n){return u.previousFocusFunc=n,f},f.nextFocusId=function(n){return u.nextFocusId=n,f},f.nextFocusFunc=function(n){return u.nextFocusFunc=n,f},f.globalDashboardFocus=function(n){return u.globalDashboardFocus=n,f},f.nextMonthATagId=function(n){return u.nextMonthATagId=n,f},f.allowInputToggle=function(n){if(arguments.length===0)return u.allowInputToggle;if(typeof n!="boolean")throw new TypeError("allowInputToggle() expects a boolean parameter");return u.allowInputToggle=n,f},f.showClose=function(n){if(arguments.length===0)return u.showClose;if(typeof n!="boolean")throw new TypeError("showClose() expects a boolean parameter");return u.showClose=n,f},f.keepInvalid=function(n){if(arguments.length===0)return u.keepInvalid;if(typeof n!="boolean")throw new TypeError("keepInvalid() expects a boolean parameter");return u.keepInvalid=n,f},f.datepickerInput=function(n){if(arguments.length===0)return u.datepickerInput;if(typeof n!="string")throw new TypeError("datepickerInput() expects a string parameter");return u.datepickerInput=n,f},f.parseInputDate=function(n){if(arguments.length===0)return u.parseInputDate;if(typeof n!="function")throw new TypeError("parseInputDate() sholud be as function");return u.parseInputDate=n,f},f.disabledTimeIntervals=function(t){if(arguments.length===0)return u.disabledTimeIntervals?n.extend({},u.disabledTimeIntervals):u.disabledTimeIntervals;if(!t)return u.disabledTimeIntervals=!1,p(),f;if(!(t instanceof Array))throw new TypeError("disabledTimeIntervals() expects an array parameter");return u.disabledTimeIntervals=t,p(),f},f.disabledHours=function(t){if(arguments.length===0)return u.disabledHours?n.extend({},u.disabledHours):u.disabledHours;if(!t)return u.disabledHours=!1,p(),f;if(!(t instanceof Array))throw new TypeError("disabledHours() expects an array parameter");if(u.disabledHours=ei(t),u.enabledHours=!1,u.useCurrent&&!u.keepInvalid){for(var i=0;!a(o,"h");){if(o.add(1,"h"),i===24)throw"Tried 24 times to find a valid date";i++}c(o)}return p(),f},f.enabledHours=function(t){if(arguments.length===0)return u.enabledHours?n.extend({},u.enabledHours):u.enabledHours;if(!t)return u.enabledHours=!1,p(),f;if(!(t instanceof Array))throw new TypeError("enabledHours() expects an array parameter");if(u.enabledHours=ei(t),u.disabledHours=!1,u.useCurrent&&!u.keepInvalid){for(var i=0;!a(o,"h");){if(o.add(1,"h"),i===24)throw"Tried 24 times to find a valid date";i++}c(o)}return p(),f},f.viewDate=function(n){if(arguments.length===0)return s.clone();if(!n)return s=o.clone(),f;if(typeof n!="string"&&!t.isMoment(n)&&!(n instanceof Date))throw new TypeError("viewDate() parameter must be one of [string, moment or Date]");return s=it(n),ot(),f},r.is("input"))h=r;else if(h=r.find(u.datepickerInput),h.length===0)h=r.find("input");else if(!h.is("input"))throw new Error('CSS class "'+u.datepickerInput+'" cannot be applied to non input element');if(r.hasClass("input-group")&&(y=r.find(".datepickerbutton").length===0?r.find(".input-group-addon"):r.find(".datepickerbutton")),!u.inline&&!h.is("input"))throw new Error("Could not initialize DateTimePicker without an input element");return o=v(),s=o.clone(),n.extend(!0,u,ai()),f.options(u),vt(),er(),h.prop("disabled")&&f.disable(),h.is("input")&&h.val().trim().length!==0?c(it(h.val().trim())):u.defaultDate&&h.attr("placeholder")===undefined&&c(u.defaultDate),u.inline&&k(),f};return n(document).ready(function(){n(document).click(function(t){n(t.target).has(".bootstrap-datetimepicker-widget dropdown-menu")&&n(".bootstrap-datetimepicker-widget").hide()})}),n.fn.datetimepicker=function(t){t=t||{};var f=Array.prototype.slice.call(arguments,1),u=!0,i;if(typeof t=="object")return this.each(function(){var i=n(this),u;i.data("DateTimePicker")||(u=n.extend(!0,{},n.fn.datetimepicker.defaults,t),i.data("DateTimePicker",r(i,u)))});if(typeof t=="string")return(this.each(function(){var e=n(this),r=e.data("DateTimePicker");if(!r)throw new Error('bootstrap-datetimepicker("'+t+'") method was called on an element that is not using DateTimePicker');i=r[t].apply(r,f);u=i===r}),u||n.inArray(t,["destroy","hide","show","toggle"])>-1)?this:i;throw new TypeError("Invalid arguments for DateTimePicker: "+t);},n.fn.datetimepicker.defaults={timeZone:"",format:!1,dayViewHeaderFormat:"MMMM YYYY",extraFormats:!1,stepping:1,minDate:!1,maxDate:!1,useCurrent:!0,collapse:!0,locale:t.locale(),defaultDate:!1,disabledDates:!1,enabledDates:!1,icons:{time:"glyphicon glyphicon-time",date:"glyphicon glyphicon-calendar",up:"glyphicon glyphicon-chevron-up",down:"glyphicon glyphicon-chevron-down",previous:"glyphicon glyphicon-chevron-left",next:"glyphicon glyphicon-chevron-right",today:"glyphicon glyphicon-screenshot",clear:"glyphicon glyphicon-trash",close:"glyphicon glyphicon-remove"},tooltips:{today:"Go to today",clear:"Clear selection",close:"Close the picker",selectMonth:"Select Month",prevMonth:"Previous Month",nextMonth:"Next Month",selectYear:"Select Year",prevYear:"Previous Year",nextYear:"Next Year",selectDecade:"Select Decade",prevDecade:"Previous Decade",nextDecade:"Next Decade",prevCentury:"Previous Century",nextCentury:"Next Century",pickHour:"Hour",incrementHour:"Increment Hour",decrementHour:"Decrement Hour",pickMinute:"Minute",incrementMinute:"Increment Minute",decrementMinute:"Decrement Minute",pickSecond:"Pick Second",incrementSecond:"Increment Second",decrementSecond:"Decrement Second",togglePeriod:"Toggle Period",selectTime:"Select Time"},useStrict:!1,sideBySide:!1,daysOfWeekDisabled:!1,calendarWeeks:!1,viewMode:"days",toolbarPlacement:"default",showTodayButton:!0,showClear:!1,showClose:!1,widgetPositioning:{horizontal:"auto",vertical:"auto"},widgetParent:null,ignoreReadonly:!1,keepOpen:!1,focusOnShow:!0,inline:!1,keepInvalid:!1,datepickerInput:".datepickerinput",keyBinds:{up:function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")?this.date(t.clone().subtract(7,"d")):this.date(t.clone().add(this.stepping(),"m"))}},down:function(n){if(!n){this.show();return}var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")?this.date(t.clone().add(7,"d")):this.date(t.clone().subtract(this.stepping(),"m"))},"control up":function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")?this.date(t.clone().subtract(1,"y")):this.date(t.clone().add(1,"h"))}},"control down":function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")?this.date(t.clone().add(1,"y")):this.date(t.clone().subtract(1,"h"))}},left:function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"d"))}},right:function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"d"))}},pageUp:function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")&&this.date(t.clone().subtract(1,"M"))}},pageDown:function(n){if(n){var t=this.date()||this.getMoment();n.find(".datepicker").is(":visible")&&this.date(t.clone().add(1,"M"))}},enter:function(){this.hide()},escape:function(){this.hide()},"control space":function(n){n&&n.find(".timepicker").is(":visible")&&n.find('.btn[data-action="togglePeriod"]').click()},t:function(){this.date(this.getMoment())},"delete":function(){this.clear()},"alt up":function(n){if(n){var t=this.date()||this.getMoment();n.find(".timepicker").is(":visible")&&this.date(t.clone().add(1,"h"))}},"alt down":function(n){if(n){var t=this.date()||this.getMoment();n.find(".timepicker").is(":visible")&&this.date(t.clone().subtract(1,"h"))}},"alt pageUp":function(n){if(n){var t=this.date()||this.getMoment();n.find(".timepicker").is(":visible")&&this.date(t.clone().add(1,"m"))}},"alt pageDown":function(n){if(n){var t=this.date()||this.getMoment();n.find(".timepicker").is(":visible")&&this.date(t.clone().subtract(1,"m"))}}},debug:!0,allowInputToggle:!1,disabledTimeIntervals:!1,disabledHours:!1,enabledHours:!1,viewDate:!1,previousFocusId:!1,previousFocusFunc:!1,nextFocusId:!1,nextFocusFunc:!1,inputOnFocus:!1,nextMonthATagId:!1,globalDashboardFocus:!1},n.fn.datetimepicker}),function(n,t){"use strict";typeof define=="function"&&define.amd?define(["jquery"],t):typeof exports=="object"?module.exports=t(require("jquery")):n.bootbox=t(n.jQuery);setTimeout(function(){var n=localStorage.getItem("DeletedData");n!=null&&n=="true"&&(localStorage.removeItem("DeletedData"),typeof $(".pull-right a")[0]!="undefined"&&$(".pull-right a")[0].focus())},200)}(this,function init(n,t){"use strict";function v(n){var t=o[f.locale];return t?t[n]:o.en[n]}function e(t,i,r){t.stopPropagation();t.preventDefault();var u=n.isFunction(r)&&r(t)===!1;u||i.modal("hide")}function y(n){var i,t=0;for(i in n)t++;return t}function r(t,i){var r=0;n.each(t,function(n,t){i(n,t,r++)})}function p(t){var i,u;if(typeof t!="object")throw new Error("Please supply an object of options");if(!t.message)throw new Error("Please specify a message");return t=n.extend({},f,t),t.buttons||(t.buttons={}),t.backdrop=t.backdrop?"static":!1,i=t.buttons,u=y(i),r(i,function(t,r,f){if(n.isFunction(r)&&(r=i[t]={callback:r}),n.type(r)!=="object")throw new Error("button with key "+t+" must be an object");r.label||(r.label=t);r.className||(r.className=u<=2&&f===u-1?"btn-primary":"btn-default")}),t}function w(n,t){var r=n.length,i={};if(r<1||r>2)throw new Error("Invalid argument length");return r===2||typeof n[0]=="string"?(i[t[0]]=n[0],i[t[1]]=n[1]):i=n[0],i}function s(t,i,r){return n.extend(!0,{},t,w(i,r))}function h(n,t,i,r){var u={className:"bootbox-"+n,buttons:c.apply(null,t)};return l(s(u,r,i),t)}function c(){for(var t={},n=0,r=arguments.length;n<r;n++){var i=arguments[n],u=i.toLowerCase(),f=i.toUpperCase();t[u]={label:v(f)}}return t}function l(n,i){var u={};return r(i,function(n,t){u[t]=!0}),r(n.buttons,function(n){if(u[n]===t)throw new Error("button key "+n+" is not allowed (options are "+i.join("\n")+")");}),n}function a(n){n.currentButton.focus();n.data!=null&&(n.data.modalUrl=="/discovery/ignore/"||n.data.modalUrl=="/discovery/exclude/")&&n.currentButton.parent().parent().prev().focus()}var u={dialog:"<div class='bootbox modal' tabindex='-1' role='dialog' aria-modal='true' aria-describedby='body_desc' aria-labelledby='dialog1_header body_desc'><div class='modal-dialog'><div class='modal-content'><div class='modal-body'><div id='body_desc'><p class='bootbox-body'><\/p><\/div><\/div><\/div><\/div><\/div>",header:"<div class='modal-header'><h4 id='dialog1_header' class='modal-title'><\/h4><\/div>",footer:"<div class='modal-footer'><\/div>",closeButton:"<button type='button' class='bootbox-close-button close' data-dismiss='modal' aria-label='Close dialog' aria-hidden='true'>&times;<\/button>",form:"<form class='bootbox-form'><\/form>",inputs:{text:"<input class='bootbox-input bootbox-input-text form-control' autocomplete=off type=text />",textarea:"<textarea class='bootbox-input bootbox-input-textarea form-control'><\/textarea>",email:"<input class='bootbox-input bootbox-input-email form-control' autocomplete='off' type='email' />",select:"<select class='bootbox-input bootbox-input-select form-control'><\/select>",checkbox:"<div class='checkbox'><label><input class='bootbox-input bootbox-input-checkbox' type='checkbox' /><\/label><\/div>",date:"<input class='bootbox-input bootbox-input-date form-control' autocomplete=off type='date' />",time:"<input class='bootbox-input bootbox-input-time form-control' autocomplete=off type='time' />",number:"<input class='bootbox-input bootbox-input-number form-control' autocomplete=off type='number' />",password:"<input class='bootbox-input bootbox-input-password form-control' autocomplete='off' type='password' />"}},f={locale:"en",backdrop:!0,animate:!0,className:null,closeButton:!0,show:!0,container:"body"},i={},o;return i.alert=function(){var t;if(t=h("alert",["ok"],["message","callback"],arguments),t.callback&&!n.isFunction(t.callback))throw new Error("alert requires callback property to be a function when provided");return t.buttons.ok.callback=t.onEscape=function(){return n.isFunction(t.callback)?t.callback():!0},i.dialog(t)},i.confirm=function(){var t;if(t=h("confirm",["cancel","confirm"],["message","callback"],arguments),t.buttons.cancel.callback=t.onEscape=function(){return t.callback(!1)},t.buttons.confirm.callback=function(){return t.callback(!0)},!n.isFunction(t.callback))throw new Error("confirm requires a callback");return i.dialog(t)},i.prompt=function(){var f,p,h,v,e,w,o,b,y,a,k;if(v=n(u.form),p={className:"bootbox-prompt",buttons:c("cancel","confirm"),value:"",inputType:"text"},f=l(s(p,arguments,["title","callback"]),["cancel","confirm"]),w=f.show===t?!0:f.show,b=["date","time","number"],y=document.createElement("input"),y.setAttribute("type",f.inputType),b[f.inputType]&&(f.inputType=y.type),f.message=v,f.buttons.cancel.callback=f.onEscape=function(){return f.callback(null)},f.buttons.confirm.callback=function(){var t,i;switch(f.inputType){case"text":case"textarea":case"email":case"select":case"date":case"time":case"number":case"password":t=e.val();break;case"checkbox":i=e.find("input:checked");t=[];r(i,function(i,r){t.push(n(r).val())})}return f.callback(t)},f.show=!1,!f.title)throw new Error("prompt requires a title");if(!n.isFunction(f.callback))throw new Error("prompt requires a callback");if(!u.inputs[f.inputType])throw new Error("invalid prompt type");e=n(u.inputs[f.inputType]);switch(f.inputType){case"text":case"textarea":case"email":case"date":case"time":case"number":case"password":e.val(f.value);break;case"select":if(a={},o=f.inputOptions||[],!o.length)throw new Error("prompt with select requires options");r(o,function(i,r){var u=e;if(r.value===t||r.text===t)throw new Error("given options in wrong format");r.group&&(a[r.group]||(a[r.group]=n("<optgroup/>").attr("label",r.group)),u=a[r.group]);u.append("<option value='"+r.value+"'>"+r.text+"<\/option>")});r(a,function(n,t){e.append(t)});e.val(f.value);break;case"checkbox":if(k=n.isArray(f.value)?f.value:[f.value],o=f.inputOptions||[],!o.length)throw new Error("prompt with checkbox requires options");if(!o[0].value||!o[0].text)throw new Error("given options in wrong format");e=n("<div/>");r(o,function(t,i){var o=n(u.inputs[f.inputType]);o.find("input").attr("value",i.value);o.find("label").append(i.text);r(k,function(n,t){t===i.value&&o.find("input").prop("checked",!0)});e.append(o)})}f.placeholder&&e.attr("placeholder",f.placeholder);f.pattern&&e.attr("pattern",f.pattern);v.append(e);v.on("submit",function(n){n.preventDefault();h.find(".btn-primary").click()});h=i.dialog(f);h.off("shown.bs.modal");h.on("shown.bs.modal",function(){e.focus()});return w===!0&&h.modal("show"),h},i.dialog=function(t){var s;t=p(t);var i=n(u.dialog),f=i.find(".modal-body"),c=t.buttons,h="",o={onEscape:t.onEscape};r(c,function(i,r){var u=n("<button><\/button>").attr("data-bb-handler",i).attr("type","button").attr("class","btn "+r.className);h+=(t.raw?u.html(r.label):u.text(r.label)).get(0).outerHTML;o[i]=r.callback});t.raw?f.find(".bootbox-body").html(t.message):f.find(".bootbox-body").text(t.message);t.animate===!0&&i.addClass("fade");t.className&&i.addClass(t.className);t.title&&f.before(u.header);t.closeButton&&(s=n(u.closeButton),s.attr("aria-hidden","false"),t.title?i.find(".modal-header").prepend(s):s.css("margin-top","-10px").prependTo(f));t.title&&(t.raw?i.find(".modal-title").html(t.title):i.find(".modal-title").text(t.title));h.length&&(f.after(u.footer),i.find(".modal-footer").html(h));i.on("hidden.bs.modal",function(n){n.target===this&&i.remove()});i.on("shown.bs.modal",function(){i.find(".btn-primary:first").focus()});i.on("escape.close.bb",function(n){o.onEscape&&e(n,i,o.onEscape)});i.on("click",".modal-footer button",function(r){var u=n(this).data("bb-handler");u==="cancel"&&setTimeout(function(){a(t)},100);u==="ok"&&localStorage.setItem("DeletedData",!0);e(r,i,o[u])});i.on("click",".bootbox-close-button",function(n){setTimeout(function(){a(t)},100);e(n,i,o.onEscape)});i.on("keydown",function(n){if(n.which===27&&i.trigger("escape.close.bb"),n.which===9){var r=document.activeElement,t=i.find(".modal-footer button").last();t&&(t[0]!==r||n.shiftKey||(i.focus(),n.preventDefault()))}});return n(t.container).append(i),i.modal({backdrop:t.backdrop,keyboard:!1,show:!1}),t.show&&i.modal("show"),i},i.setDefaults=function(){var t={};arguments.length===2?t[arguments[0]]=arguments[1]:t=arguments[0];n.extend(f,t)},i.hideAll=function(){n(".bootbox").modal("hide")},o={br:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Sim"},da:{OK:"OK",CANCEL:"Annuller",CONFIRM:"Accepter"},de:{OK:"OK",CANCEL:"Abbrechen",CONFIRM:"Akzeptieren"},en:{OK:"OK",CANCEL:"Cancel",CONFIRM:"OK"},es:{OK:"OK",CANCEL:"Cancelar",CONFIRM:"Aceptar"},fi:{OK:"OK",CANCEL:"Peruuta",CONFIRM:"OK"},fr:{OK:"OK",CANCEL:"Annuler",CONFIRM:"D'accord"},he:{OK:"אישור",CANCEL:"ביטול",CONFIRM:"אישור"},it:{OK:"OK",CANCEL:"Annulla",CONFIRM:"Conferma"},lt:{OK:"Gerai",CANCEL:"Atšaukti",CONFIRM:"Patvirtinti"},lv:{OK:"Labi",CANCEL:"Atcelt",CONFIRM:"Apstiprināt"},nl:{OK:"OK",CANCEL:"Annuleren",CONFIRM:"Accepteren"},no:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},pl:{OK:"OK",CANCEL:"Anuluj",CONFIRM:"Potwierdź"},ru:{OK:"OK",CANCEL:"Отмена",CONFIRM:"Применить"},sv:{OK:"OK",CANCEL:"Avbryt",CONFIRM:"OK"},tr:{OK:"Tamam",CANCEL:"İptal",CONFIRM:"Onayla"},zh_CN:{OK:"OK",CANCEL:"取消",CONFIRM:"确认"},zh_TW:{OK:"OK",CANCEL:"取消",CONFIRM:"確認"}},i.init=function(t){return init(t||n)},i});!function(n){"use strict";function i(n,t){for(var i=0;i<n.length;++i)t(n[i],i)}function t(t,i){this.$select=n(t);this.$select.attr("data-placeholder")&&(i.nonSelectedText=this.$select.data("placeholder"));this.options=this.mergeOptions(n.extend({},i,this.$select.data()));this.originalOptions=this.$select.clone()[0].options;this.query="";this.searchTimeout=null;this.lastToggledInput=null;this.options.multiple=this.$select.attr("multiple")==="multiple";this.options.onChange=n.proxy(this.options.onChange,this);this.options.onDropdownShow=n.proxy(this.options.onDropdownShow,this);this.options.onDropdownHide=n.proxy(this.options.onDropdownHide,this);this.options.onDropdownShown=n.proxy(this.options.onDropdownShown,this);this.options.onDropdownHidden=n.proxy(this.options.onDropdownHidden,this);this.options.onInitialized=n.proxy(this.options.onInitialized,this);this.buildContainer();this.buildButton();this.buildDropdown();this.buildSelectAll();this.buildDropdownOptions();this.buildFilter();this.updateButtonText();this.updateSelectAll(!0);this.options.disableIfEmpty&&n("option",this.$select).length<=0&&this.disable();this.$select.hide().after(this.$container);this.options.onInitialized(this.$select,this.$container)}typeof ko!="undefined"&&ko.bindingHandlers&&!ko.bindingHandlers.multiselect&&(ko.bindingHandlers.multiselect={after:["options","value","selectedOptions","enable","disable"],init:function(t,i,r){var u=n(t),l=ko.toJS(i()),s,h,c,f,e,o;u.multiselect(l);r.has("options")&&(s=r.get("options"),ko.isObservable(s)&&ko.computed({read:function(){s();setTimeout(function(){var n=u.data("multiselect");n&&n.updateOriginalOptions();u.multiselect("rebuild")},1)},disposeWhenNodeIsRemoved:t}));r.has("value")&&(h=r.get("value"),ko.isObservable(h)&&ko.computed({read:function(){h();setTimeout(function(){u.multiselect("refresh")},1)},disposeWhenNodeIsRemoved:t}).extend({rateLimit:100,notifyWhenChangesStop:!0}));r.has("selectedOptions")&&(c=r.get("selectedOptions"),ko.isObservable(c)&&ko.computed({read:function(){c();setTimeout(function(){u.multiselect("refresh")},1)},disposeWhenNodeIsRemoved:t}).extend({rateLimit:100,notifyWhenChangesStop:!0}));f=function(n){setTimeout(function(){n?u.multiselect("enable"):u.multiselect("disable")})};r.has("enable")&&(e=r.get("enable"),ko.isObservable(e)?ko.computed({read:function(){f(e())},disposeWhenNodeIsRemoved:t}).extend({rateLimit:100,notifyWhenChangesStop:!0}):f(e));r.has("disable")&&(o=r.get("disable"),ko.isObservable(o)?ko.computed({read:function(){f(!o())},disposeWhenNodeIsRemoved:t}).extend({rateLimit:100,notifyWhenChangesStop:!0}):f(!o));ko.utils.domNodeDisposal.addDisposeCallback(t,function(){u.multiselect("destroy")})},update:function(t,i){var r=n(t),u=ko.toJS(i());r.multiselect("setOptions",u);r.multiselect("rebuild")}});t.prototype={defaults:{buttonText:function(t,i){if(this.disabledText.length>0&&(this.disableIfEmpty||i.prop("disabled"))&&t.length==0)return this.disabledText;if(t.length===0)return this.nonSelectedText;if(this.allSelectedText&&t.length===n("option",n(i)).length&&n("option",n(i)).length!==1&&this.multiple)return this.selectAllNumber?this.allSelectedText+" ("+t.length+")":this.allSelectedText;if(t.length>this.numberDisplayed)return t.length+" "+this.nSelectedText;var r="",u=this.delimiterText;return t.each(function(){var t=n(this).attr("label")!==undefined?n(this).attr("label"):n(this).text();r+=t+u}),r.substr(0,r.length-2)},buttonTitle:function(t){if(t.length===0)return this.nonSelectedText;var i="",r=this.delimiterText;return t.each(function(){var t=n(this).attr("label")!==undefined?n(this).attr("label"):n(this).text();i+=t+r}),i.substr(0,i.length-2)},optionLabel:function(t){return n(t).attr("label")||n(t).text()},optionClass:function(t){return n(t).attr("class")||""},onChange:function(){},onDropdownShow:function(){},onDropdownHide:function(){},onDropdownShown:function(){},onDropdownHidden:function(){},onSelectAll:function(){},onInitialized:function(){},enableHTML:!1,buttonClass:"btn btn-default",inheritClass:!1,buttonWidth:"auto",buttonContainer:'<div class="btn-group" />',dropRight:!1,dropUp:!1,selectedClass:"active",maxHeight:!1,checkboxName:!1,includeSelectAllOption:!1,includeSelectAllIfMoreThan:0,selectAllText:" Select all",selectAllValue:"multiselect-all",selectAllName:!1,selectAllNumber:!0,selectAllJustVisible:!0,enableFiltering:!1,enableCaseInsensitiveFiltering:!1,enableFullValueFiltering:!1,enableClickableOptGroups:!1,enableCollapsibleOptGroups:!1,filterPlaceholder:"Search",filterBehavior:"text",includeFilterClearBtn:!0,preventInputChangeEvent:!1,nonSelectedText:"None selected",nSelectedText:"selected",allSelectedText:"All selected",numberDisplayed:3,disableIfEmpty:!1,disabledText:"",delimiterText:", ",templates:{button:'<button type="button" class="multiselect dropdown-toggle" data-toggle="dropdown" aria-expanded="false"><span class="multiselect-selected-text"><\/span> <b class="caret"><\/b><\/button>',ul:'<ul class="multiselect-container dropdown-menu"><\/ul>',filter:'<li class="multiselect-item filter"><div class="input-group"><span class="input-group-addon"><i class="glyphicon glyphicon-search"><\/i><\/span><input class="form-control multiselect-search" type="text"><\/div><\/li>',filterClearBtn:'<span class="input-group-btn"><button class="btn btn-default multiselect-clear-filter" type="button"><i class="glyphicon glyphicon-remove-circle"><\/i><\/button><\/span>',li:'<li tabindex="-1"><div class="multiselect-item-container" tabindex="-1"><label tabindex="-1"><\/label><\/div><\/li>',divider:'<li tabindex="-1" class="multiselect-item divider"><\/li>',liGroup:'<li tabindex="-1" class="multiselect-item multiselect-group"><label><\/label><\/li>'}},constructor:t,buildContainer:function(){this.$container=n(this.options.buttonContainer);this.$container.on("show.bs.dropdown",this.options.onDropdownShow);this.$container.on("hide.bs.dropdown",this.options.onDropdownHide);this.$container.on("shown.bs.dropdown",this.options.onDropdownShown);this.$container.on("hidden.bs.dropdown",this.options.onDropdownHidden)},buildButton:function(){this.$button=n(this.options.templates.button).addClass(this.options.buttonClass);this.$select.attr("class")&&this.options.inheritClass&&this.$button.addClass(this.$select.attr("class"));this.$select.prop("disabled")?this.disable():this.enable();this.options.buttonWidth&&this.options.buttonWidth!=="auto"&&(this.$button.css({width:this.options.buttonWidth,overflow:"hidden","text-overflow":"ellipsis"}),this.$container.css({width:this.options.buttonWidth}));var t=this.$select.attr("tabindex");t&&this.$button.attr("tabindex",t);this.$container.prepend(this.$button)},buildDropdown:function(){if(this.$ul=n(this.options.templates.ul),this.options.dropRight&&this.$ul.addClass("pull-right"),this.options.maxHeight&&this.$ul.css({"max-height":this.options.maxHeight+"px","overflow-y":"auto","overflow-x":"hidden"}),this.options.dropUp){var t=Math.min(this.options.maxHeight,n('option[data-role!="divider"]',this.$select).length*26+n('option[data-role="divider"]',this.$select).length*19+(this.options.includeSelectAllOption?26:0)+(this.options.enableFiltering||this.options.enableCaseInsensitiveFiltering?44:0)),i=t+34;this.$ul.css({"max-height":t+"px","overflow-y":"auto","overflow-x":"hidden","margin-top":"-"+i+"px"})}this.$container.append(this.$ul)},buildDropdownOptions:function(){this.$select.children().each(n.proxy(function(t,i){var r=n(i),u=r.prop("tagName").toLowerCase();r.prop("value")!==this.options.selectAllValue&&(u==="optgroup"?this.createOptgroup(i):u==="option"&&(r.data("role")==="divider"?this.createDivider():this.createOptionValue(i)))},this));n("li input",this.$ul).on("change",n.proxy(function(t){var i=n(t.target),u=i.prop("checked")||!1,o=i.val()===this.options.selectAllValue;this.options.selectedClass&&(u?i.closest("li").addClass(this.options.selectedClass):i.closest("li").removeClass(this.options.selectedClass));var s=i.val(),r=this.getOptionByValue(s),f=n("option",this.$select).not(r),e=n("input",this.$container).not(i);if(o)u?this.selectAll(this.options.selectAllJustVisible):this.deselectAll(this.options.selectAllJustVisible);else{u?(r.prop("selected",!0),this.options.multiple?r.prop("selected",!0):(this.options.selectedClass&&n(e).closest("li").removeClass(this.options.selectedClass),n(e).prop("checked",!1),f.prop("selected",!1),this.$button.click()),this.options.selectedClass==="active"&&f.closest("a").css("outline","")):r.prop("selected",!1);this.options.onChange(r,u)}return this.$select.change(),this.updateButtonText(),this.updateSelectAll(),this.options.preventInputChangeEvent?!1:void 0},this));n("li div",this.$ul).on("mousedown",function(n){if(n.shiftKey)return!1});n("li div",this.$ul).on("touchstart click",n.proxy(function(t){var i,e,u,r,s,f,o,h,c,l;if(t.stopPropagation(),i=n(t.target),t.shiftKey&&this.options.multiple){if(i.is("label")&&(t.preventDefault(),i=i.find("input"),i.prop("checked",!i.prop("checked"))),e=i.prop("checked")||!1,this.lastToggledInput!==null&&this.lastToggledInput!==i)for(u=i.closest("li").index(),r=this.lastToggledInput.closest("li").index(),u>r&&(s=r,r=u,u=s),++r,f=this.$ul.find("li").slice(u,r).find("input"),f.prop("checked",e),this.options.selectedClass&&f.closest("li").toggleClass(this.options.selectedClass,e),o=0,h=f.length;o<h;o++)c=n(f[o]),l=this.getOptionByValue(c.val()),l.prop("selected",e);i.trigger("change")}i.is("input")&&!i.closest("li").is(".multiselect-item")&&(this.lastToggledInput=i)},this));this.$container.off("keydown.multiselect").on("keydown.multiselect",n.proxy(function(t){var r,i,u;if(!n('input[type="text"]',this.$container).is(":focus"))if(t.keyCode===9&&this.$container.hasClass("open"))this.$button.click();else{if(r=n(this.$container).find("li:not(.divider):not(.disabled) div input").filter(":visible"),!r.length)return;i=r.index(r.filter(".focusedElement"));t.keyCode===38&&i>0?i--:t.keyCode===40&&i<r.length-1?i++:~i||(i=0);u=r.eq(i);r.removeClass("focusedElement");u.focus();u.addClass("focusedElement");(t.keyCode===32||t.keyCode===13)&&(u.prop("checked",!u.prop("checked")),u.change());t.stopPropagation();t.preventDefault()}},this));if(this.options.enableClickableOptGroups&&this.options.multiple)n("li.multiselect-group",this.$ul).on("click",n.proxy(function(t){t.stopPropagation();var f=n(t.target).parent(),e=f.nextUntil("li.multiselect-group"),o=e.filter(":visible:not(.disabled)"),i=!0,u=o.find("input"),r=[];u.each(function(){i=i&&n(this).prop("checked");r.push(n(this).val())});i?this.deselect(r,!1):this.select(r,!1);this.options.onChange(u,!i)},this));if(this.options.enableCollapsibleOptGroups&&this.options.multiple){n("li.multiselect-group input",this.$ul).off();n("li.multiselect-group",this.$ul).siblings().not("li.multiselect-group, li.multiselect-all",this.$ul).each(function(){n(this).toggleClass("hidden",!0)});n("li.multiselect-group",this.$ul).on("click",n.proxy(function(n){n.stopPropagation()},this));n("li.multiselect-group > a > b",this.$ul).on("click",n.proxy(function(t){t.stopPropagation();var u=n(t.target).closest("li"),r=u.nextUntil("li.multiselect-group"),i=!0;r.each(function(){i=i&&n(this).hasClass("hidden")});r.toggleClass("hidden",!i)},this));n("li.multiselect-group > a > input",this.$ul).on("change",n.proxy(function(t){t.stopPropagation();var u=n(t.target).closest("li"),f=u.nextUntil("li.multiselect-group",":not(.disabled)"),r=f.find("input"),i=!0;r.each(function(){i=i&&n(this).prop("checked")});r.prop("checked",!i).trigger("change")},this));n("li.multiselect-group",this.$ul).each(function(){var i=n(this).nextUntil("li.multiselect-group",":not(.disabled)"),r=i.find("input"),t=!0;r.each(function(){t=t&&n(this).prop("checked")});n(this).find("input").prop("checked",t)});n("li input",this.$ul).on("change",n.proxy(function(t){t.stopPropagation();var r=n(t.target).closest("li"),u=r.prevUntil("li.multiselect-group",":not(.disabled)"),f=r.nextUntil("li.multiselect-group",":not(.disabled)"),e=u.find("input"),o=f.find("input"),i=n(t.target).prop("checked");e.each(function(){i=i&&n(this).prop("checked")});o.each(function(){i=i&&n(this).prop("checked")});r.prevAll(".multiselect-group").find("input").prop("checked",i)},this));n("li.multiselect-all",this.$ul).css("background","#f3f3f3").css("border-bottom","1px solid #eaeaea");n("li.multiselect-group > a, li.multiselect-all > a > label.checkbox",this.$ul).css("padding","3px 20px 3px 35px");n("li.multiselect-group > a > input",this.$ul).css("margin","4px 0px 5px -20px")}},createOptionValue:function(t){var r=n(t),i,e;r.is(":selected")&&r.prop("selected",!0);var o=this.options.optionLabel(t),c=this.options.optionClass(t),s=r.val(),h=this.options.multiple?"checkbox":"radio",f=n(this.options.templates.li),u=n("label",f);u.addClass(h);f.addClass(c);this.options.enableHTML?u.html(" "+o):u.text(" "+o);i=n("<input/>").attr("type",h).attr("tabindex","0");this.options.checkboxName&&i.attr("name",this.options.checkboxName);u.prepend(i);e=r.prop("selected")||!1;i.val(s);s===this.options.selectAllValue&&(f.addClass("multiselect-item multiselect-all"),i.parent().parent().addClass("multiselect-all"));u.attr("title",r.attr("title"));this.$ul.append(f);r.is(":disabled")&&i.attr("disabled","disabled").prop("disabled",!0).closest("a").closest("li").addClass("disabled");i.prop("checked",e);e&&this.options.selectedClass&&i.closest("li").addClass(this.options.selectedClass)},createDivider:function(){var t=n(this.options.templates.divider);this.$ul.append(t)},createOptgroup:function(t){var u,i;if(this.options.enableCollapsibleOptGroups&&this.options.multiple){var f=n(t).attr("label"),e=n(t).attr("value"),r=n('<li class="multiselect-item multiselect-group"><a><input type="checkbox" value="'+e+'"/><b> '+f+'<b class="caret"><\/b><\/b><\/a><\/li>');this.options.enableClickableOptGroups&&r.addClass("multiselect-group-clickable");this.$ul.append(r);n(t).is(":disabled")&&r.addClass("disabled");n("option",t).each(n.proxy(function(n,t){this.createOptionValue(t)},this))}else u=n(t).prop("label"),i=n(this.options.templates.liGroup),this.options.enableHTML?n("label",i).html(u):n("label",i).text(u),this.options.enableClickableOptGroups&&i.addClass("multiselect-group-clickable"),this.$ul.append(i),n(t).is(":disabled")&&i.addClass("disabled"),n("option",t).each(n.proxy(function(n,t){this.createOptionValue(t)},this))},buildSelectAll:function(){var r,t,i;typeof this.options.selectAllValue=="number"&&(this.options.selectAllValue=this.options.selectAllValue.toString());r=this.hasSelectAll();!r&&this.options.includeSelectAllOption&&this.options.multiple&&n("option",this.$select).length>this.options.includeSelectAllIfMoreThan&&(this.options.includeSelectAllDivider&&this.$ul.prepend(n(this.options.templates.divider)),t=n(this.options.templates.li),n("label",t).addClass("checkbox"),this.options.enableHTML?n("label",t).html(" "+this.options.selectAllText):n("label",t).text(" "+this.options.selectAllText),this.options.selectAllName?n("label",t).prepend('<input type="checkbox" name="'+this.options.selectAllName+'" />'):n("label",t).prepend('<input type="checkbox" />'),i=n("input",t),i.val(this.options.selectAllValue),t.addClass("multiselect-item multiselect-all"),i.parent().parent().addClass("multiselect-all"),this.$ul.prepend(t),i.prop("checked",!1))},buildFilter:function(){var i,t;if((this.options.enableFiltering||this.options.enableCaseInsensitiveFiltering)&&(i=Math.max(this.options.enableFiltering,this.options.enableCaseInsensitiveFiltering),this.$select.find("option").length>=i)){if(this.$filter=n(this.options.templates.filter),n("input",this.$filter).attr("placeholder",this.options.filterPlaceholder),this.options.includeFilterClearBtn){t=n(this.options.templates.filterClearBtn);t.on("click",n.proxy(function(){clearTimeout(this.searchTimeout);this.$filter.find(".multiselect-search").val("");n("li",this.$ul).show().removeClass("filter-hidden");this.updateSelectAll()},this));this.$filter.find(".input-group").append(t)}this.$ul.prepend(this.$filter);this.$filter.val(this.query).on("click",function(n){n.stopPropagation()}).on("input keydown",n.proxy(function(t){t.which===13&&t.preventDefault();clearTimeout(this.searchTimeout);this.searchTimeout=this.asyncFunction(n.proxy(function(){if(this.query!==t.target.value){this.query=t.target.value;var i,r;n.each(n("li",this.$ul),n.proxy(function(t,u){var o=n("input",u).length>0?n("input",u).val():"",s=n("label",u).text(),e="",f,h;this.options.filterBehavior==="text"?e=s:this.options.filterBehavior==="value"?e=o:this.options.filterBehavior==="both"&&(e=s+"\n"+o);o!==this.options.selectAllValue&&s&&(f=!1,this.options.enableCaseInsensitiveFiltering&&(e=e.toLowerCase(),this.query=this.query.toLowerCase()),this.options.enableFullValueFiltering&&this.options.filterBehavior!=="both"?(h=e.trim().substring(0,this.query.length),this.query.indexOf(h)>-1&&(f=!0)):e.indexOf(this.query)>-1&&(f=!0),n(u).toggle(f).toggleClass("filter-hidden",!f),n(u).hasClass("multiselect-group")?(i=u,r=f):(f&&n(i).show().removeClass("filter-hidden"),!f&&r&&n(u).show().removeClass("filter-hidden")))},this))}this.updateSelectAll()},this),300,this)},this))}},destroy:function(){this.$container.remove();this.$select.show();this.$select.data("multiselect",null)},refresh:function(){var t=n.map(n("li input",this.$ul),n);n("option",this.$select).each(n.proxy(function(i,r){for(var f=n(r),o=f.val(),u,e=t.length;0<e--;)if(o===(u=t[e]).val()){f.is(":selected")?(u.prop("checked",!0),this.options.selectedClass&&u.closest("li").addClass(this.options.selectedClass)):(u.prop("checked",!1),this.options.selectedClass&&u.closest("li").removeClass(this.options.selectedClass));f.is(":disabled")?u.attr("disabled","disabled").prop("disabled",!0).closest("li").addClass("disabled"):u.prop("disabled",!1).closest("li").removeClass("disabled");break}},this));this.updateButtonText();this.updateSelectAll()},select:function(t,i){var u,r,f,e;for(n.isArray(t)||(t=[t]),u=0;u<t.length;u++)if((r=t[u],r!==null&&r!==undefined)&&(f=this.getOptionByValue(r),e=this.getInputByValue(r),f!==undefined&&e!==undefined)&&(this.options.multiple||this.deselectAll(!1),this.options.selectedClass&&e.closest("li").addClass(this.options.selectedClass),e.prop("checked",!0),f.prop("selected",!0),i))this.options.onChange(f,!0);this.updateButtonText();this.updateSelectAll()},clearSelection:function(){this.deselectAll(!1);this.updateButtonText();this.updateSelectAll()},deselect:function(t,i){var u,r,f,e;for(n.isArray(t)||(t=[t]),u=0;u<t.length;u++)if((r=t[u],r!==null&&r!==undefined)&&(f=this.getOptionByValue(r),e=this.getInputByValue(r),f!==undefined&&e!==undefined)&&(this.options.selectedClass&&e.closest("li").removeClass(this.options.selectedClass),e.prop("checked",!1),f.prop("selected",!1),i))this.options.onChange(f,!1);this.updateButtonText();this.updateSelectAll()},selectAll:function(t,i){var f;t=this.options.enableCollapsibleOptGroups&&this.options.multiple?!1:t;var t=typeof t=="undefined"?!0:t,r=n("li input[type='checkbox']:enabled",this.$ul),u=r.filter(":visible"),e=r.length,o=u.length;t?(u.prop("checked",!0),n("li:not(.divider):not(.disabled)",this.$ul).filter(":visible").addClass(this.options.selectedClass)):(r.prop("checked",!0),n("li:not(.divider):not(.disabled)",this.$ul).addClass(this.options.selectedClass));e===o||t===!1?n("option:not([data-role='divider']):enabled",this.$select).prop("selected",!0):(f=u.map(function(){return n(this).val()}).get(),n("option:enabled",this.$select).filter(function(){return n.inArray(n(this).val(),f)!==-1}).prop("selected",!0));i&&this.options.onSelectAll()},deselectAll:function(t){var i,r;t=this.options.enableCollapsibleOptGroups&&this.options.multiple?!1:t;t=typeof t=="undefined"?!0:t;t?(i=n("li input[type='checkbox']:not(:disabled)",this.$ul).filter(":visible"),i.prop("checked",!1),r=i.map(function(){return n(this).val()}).get(),n("option:enabled",this.$select).filter(function(){return n.inArray(n(this).val(),r)!==-1}).prop("selected",!1),this.options.selectedClass&&n("li:not(.divider):not(.disabled)",this.$ul).filter(":visible").removeClass(this.options.selectedClass)):(n("li input[type='checkbox']:enabled",this.$ul).prop("checked",!1),n("option:enabled",this.$select).prop("selected",!1),this.options.selectedClass&&n("li:not(.divider):not(.disabled)",this.$ul).removeClass(this.options.selectedClass))},rebuild:function(){this.$ul.html("");this.options.multiple=this.$select.attr("multiple")==="multiple";this.buildSelectAll();this.buildDropdownOptions();this.buildFilter();this.updateButtonText();this.updateSelectAll(!0);this.options.disableIfEmpty&&n("option",this.$select).length<=0?this.disable():this.enable();this.options.dropRight&&this.$ul.addClass("pull-right")},dataprovider:function(t){var r=0,u=this.$select.empty();n.each(t,function(t,f){var e;n.isArray(f.children)?(r++,e=n("<optgroup/>").attr({label:f.label||"Group "+r,disabled:!!f.disabled}),i(f.children,function(t){e.append(n("<option/>").attr({value:t.value,label:t.label||t.value,title:t.title,selected:!!t.selected,disabled:!!t.disabled}))})):(e=n("<option/>").attr({value:f.value,label:f.label||f.value,title:f.title,"class":f.class,selected:!!f.selected,disabled:!!f.disabled}),e.text(f.label||f.value));u.append(e)});this.rebuild()},enable:function(){this.$select.prop("disabled",!1);this.$button.prop("disabled",!1).removeClass("disabled")},disable:function(){this.$select.prop("disabled",!0);this.$button.prop("disabled",!0).addClass("disabled")},setOptions:function(n){this.options=this.mergeOptions(n)},mergeOptions:function(t){return n.extend(!0,{},this.defaults,this.options,t)},hasSelectAll:function(){return n("li.multiselect-all",this.$ul).length>0},updateSelectAll:function(t){if(this.hasSelectAll()){var u=n("li:not(.multiselect-item):not(.filter-hidden) input:enabled",this.$ul),e=u.length,i=u.filter(":checked").length,r=n("li.multiselect-all",this.$ul),f=r.find("input");if(i>0&&i===e){f.prop("checked",!0);r.addClass(this.options.selectedClass);this.options.onSelectAll(!0)}else if(f.prop("checked",!1),r.removeClass(this.options.selectedClass),i===0&&!t)this.options.onSelectAll(!1)}},updateButtonText:function(){var t=this.getSelected();this.options.enableHTML?n(".multiselect .multiselect-selected-text",this.$container).html(this.options.buttonText(t,this.$select)):n(".multiselect .multiselect-selected-text",this.$container).text(this.options.buttonText(t,this.$select));n(".multiselect",this.$container).attr("title",this.options.buttonTitle(t,this.$select))},getSelected:function(){return n("option",this.$select).filter(":selected")},getOptionByValue:function(t){for(var r,u=n("option",this.$select),f=t.toString(),i=0;i<u.length;i=i+1)if(r=u[i],r.value===f)return n(r)},getInputByValue:function(t){for(var r,u=n("li input",this.$ul),f=t.toString(),i=0;i<u.length;i=i+1)if(r=u[i],r.value===f)return n(r)},updateOriginalOptions:function(){this.originalOptions=this.$select.clone()[0].options},asyncFunction:function(n,t,i){var r=Array.prototype.slice.call(arguments,3);return setTimeout(function(){n.apply(i||window,r)},t)},setAllSelectedText:function(n){this.options.allSelectedText=n;this.updateButtonText()}};n.fn.multiselect=function(i,r,u){return this.each(function(){var f=n(this).data("multiselect"),e=typeof i=="object"&&i;f||(f=new t(this,e),n(this).data("multiselect",f));typeof i=="string"&&(f[i](r,u),i==="destroy"&&n(this).data("multiselect",!1))})};n.fn.multiselect.Constructor=t;n(function(){n("select[data-role=multiselect]").multiselect()})}(window.jQuery);$(function(){var n,t;$(".notification-dropdown").each(function(n,t){var u=$(t),i=u.find(".pop-dialog"),r=u.find(".trigger");i.click(function(n){n.stopPropagation()});i.find(".close-icon").click(function(n){n.preventDefault();i.removeClass("is-visible");r.removeClass("active")});$("body").click(function(){i.removeClass("is-visible");r.removeClass("active")});r.click(function(n){n.preventDefault();n.stopPropagation();$(".notification-dropdown .pop-dialog").removeClass("is-visible");$(".notification-dropdown .trigger").removeClass("active");i.toggleClass("is-visible");i.hasClass("is-visible")?$(this).addClass("active"):$(this).removeClass("active")})});$(".skins-nav .skin").click(function(n){if(n.preventDefault(),!$(this).hasClass("selected")){$(".skins-nav .skin").removeClass("selected");$(this).addClass("selected");$("#skin-file").length||$("head").append('<link rel="stylesheet" type="text/css" id="skin-file" href="">');var t=$("#skin-file");$(this).attr("data-file")?t.attr("href",$(this).data("file")):t.attr("href","")}});$("#dashboard-menu .dropdown-toggle").on("click keypress",function(n){n.preventDefault();var t=$(this).parent();t.toggleClass("active");t.hasClass("active")?t.find(".submenu").slideDown("fast"):t.find(".submenu").slideUp("fast")});n=$("#sidebar-nav");$("body").click(function(){$(this).hasClass("menu")&&$(this).removeClass("menu")});n.click(function(n){n.stopPropagation()});$("#menu-toggler").on("click keypress",function(n){n.stopPropagation();$("body").toggleClass("menu")});$(window).resize(function(){$(this).width()>=1200&&$("body.menu").removeClass("menu")});t=new function(){var n;return n=this,this.hideDialog=function(n){return n.find(".dialog").hide().removeClass("is-visible")},this.showDialog=function(n){return n.find(".dialog").show().addClass("is-visible")},this.initialize=function(){return $("html").click(function(){return $(".ui-dropdown .head").removeClass("active"),n.hideDialog($(".ui-dropdown"))}),$(".ui-dropdown .body").click(function(n){return n.stopPropagation()}),$(".ui-dropdown").each(function(t,i){return $(i).click(function(t){return t.stopPropagation(),$(i).find(".head").toggleClass("active"),$(i).find(".head").hasClass("active")?n.showDialog($(i)):n.hideDialog($(i))})})}};new t;$(".table th input:checkbox").click(function(){var n=$(this).closest(".table").find("tbody tr:not(:hidden) input:enabled:checkbox");$(this).is(":checked")?n.prop("checked",!0):n.prop("checked",!1)});$("#sidebar-nav").height()>$(".content").height()&&$("html").addClass("small");$(document).on("select2:open",function(){setTimeout(function(){var n=document.querySelector(".select2-container--open .select2-search__field");n!=null&&n.focus()},0)});$("input:checkbox,input:radio").on("keypress",function(n){var t=n.keyCode||n.which;if(t===13)return n.preventDefault(),!1});$(".radiobutton").focus(function(n){($(n.target).attr("id")=="Method_FileUpload_visible-xxs"||$(n.target).attr("id")=="Method_Text_visible-xxs"||$(n.target).attr("id")=="Method_FileUpload_hidden-xxs"||$(n.target).attr("id")=="Method_Text_hidden-xxs")&&$(n.target).parent().addClass("method-btn-focus")});$(".radiobutton").focusout(function(){$(this).parent().removeClass("method-btn-focus")});$(".btn-file input[type=file], .btn-file-st input[type=file]").focusin(function(){$(this).parent().addClass("browse-btn-focus")});$(".btn-file input[type=file], .btn-file-st input[type=file]").focusout(function(){$(this).parent().removeClass("browse-btn-focus")});$(document).find("input, textarea, select").not(":input[type=submit], :input[type=button], :input[type=reset], #scans-security-check input, #scans-security-check textarea, #scans-security-check select").each(function(){var t=$(this),r=t.attr("name"),i,n,u;r&&(i=$('[data-valmsg-for="'+r+'"]'),i.length)&&(n=r+"-error",$('[id="'+n+'"').length===0)&&(t.is("[data-val-required]")&&t.attr("aria-required",!0),u=$("<span>").attr("id",n),u.html(i.html()),i.html(u),t.attr("aria-describedby",function(t,i){return i?i.replace(n,"")+" "+n:n}))});$.validator&&$.validator.unobtrusive&&($.validator.unobtrusive.options=$.validator.unobtrusive.options||{},$.validator.unobtrusive.options.errorPlacement=function(n,t){$(n).removeAttr("for").attr("id",$(t).attr("name")+"-error")});$.fn.tooltip&&$.fn.tooltip.Constructor&&$.extend($.fn.tooltip.Constructor.DEFAULTS,{template:'<div class="tooltip" role="tooltip" aria-live="polite">   <div class="tooltip-arrow"><\/div>   <div class="tooltip-inner"><\/div><\/div>'});$(document).on("click",".wizard-actions .btn-next, .wizard-actions .btn-finish",function(){$(this).parents("form:first").find("input.input-validation-error:first, textarea.input-validation-error:first, select.input-validation-error:first").not(":hidden, :input[type=submit], :input[type=button], :input[type=reset]").attr("tabindex",0).focus()});$(".validation-summary-errors").each(function(){var n=$(this),t=n.find("ul"),i=$('<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;<\/span><\/button>');n.prepend(i).prepend('<span class="sr-only">Validation Summary<\/span>');n.on("close.bs.alert",function(i){i.preventDefault();n.addClass("validation-summary-valid");t.empty()});n.closest("form").on("submit",function(){var r,u;if(t.insertBefore(i),r=$(this),u=r.data("validator"),u){u.settings.focusInvalid=!1;r.data("validator",u);var f=r.find("input.input-validation-error, textarea.input-validation-error, select.input-validation-error").not(":hidden, :input[type=submit], :input[type=button], :input[type=reset]");f.length>1?n.focus():f.length===1&&f[0].focus()}})});$("#credentialsInfo input[type='text'], input[type='password']").keydown(function(){$(".wizard-actions .btn-next").attr("disabled",!0);$("#test-credential-result").removeClass().text("").removeAttr("tabindex")})}),function(n,t){var i=function(t,i){var r;this.$element=n(t);this.options=n.extend({},n.fn.wizard.defaults,i);this.currentStep=1;this.numSteps=this.$element.find("li").length;this.$prevBtn=this.$element.find("button.btn-prev");this.$nextBtn=this.$element.find("button.btn-next");r=this.$nextBtn.children().detach();this.nextText=n.trim(this.$nextBtn.text());this.$nextBtn.append(r);this.$prevBtn.on("click",n.proxy(this.previous,this));this.$nextBtn.on("click",n.proxy(this.next,this));this.$element.on("click","li.complete",n.proxy(this.stepclicked,this))};i.prototype={constructor:i,setState:function(){var c=this.currentStep>1,l=this.currentStep===1,a=this.currentStep===this.numSteps,t,f,e,r,o,u,s,i,h;this.$prevBtn.attr("disabled",l===!0||c===!1);t=this.$nextBtn.data();t&&t.last&&(this.lastText=t.last,typeof this.lastText!="undefined"&&(f=a!==!0?this.nextText:this.lastText,e=this.$nextBtn.children().detach(),this.$nextBtn.text(f).append(e)));r=this.$element.find("li");r.removeClass("active").removeClass("complete");r.find("span.badge").removeClass("badge-info").removeClass("badge-success");o="li:lt("+(this.currentStep-1)+")";u=this.$element.find(o);u.addClass("complete");u.find("span.badge").addClass("badge-success");s="li:eq("+(this.currentStep-1)+")";i=this.$element.find(s);i.addClass("active");i.find("span.badge").addClass("badge-info");h=i.data().target;n(".step-pane").removeClass("active");n(h).addClass("active");this.$element.trigger("changed")},stepclicked:function(t){var u=n(t.currentTarget),i=n(".steps li").index(u),r=n.Event("stepclick");(this.$element.trigger(r,{step:i+1}),r.isDefaultPrevented())||(this.currentStep=i+1,this.setState())},previous:function(){var i=this.currentStep>1,t;if(i){if(t=n.Event("change"),this.$element.trigger(t,{step:this.currentStep,direction:"previous"}),t.isDefaultPrevented())return;this.currentStep-=1;this.setState()}},next:function(){var i=this.currentStep+1<=this.numSteps,r=this.currentStep===this.numSteps,t;if(i){if(t=n.Event("change"),this.$element.trigger(t,{step:this.currentStep,direction:"next"}),t.isDefaultPrevented())return;this.currentStep+=1;this.setState()}else r&&this.$element.trigger("finished")},selectedItem:function(){return{step:this.currentStep}}};n.fn.wizard=function(r,u){var f,e=this.each(function(){var e=n(this),t=e.data("wizard"),o=typeof r=="object"&&r;t||e.data("wizard",t=new i(this,o));typeof r=="string"&&(f=t[r](u))});return f===t?e:f};n.fn.wizard.defaults={};n.fn.wizard.Constructor=i;n(function(){n("body").on("mousedown.wizard.data-api",".wizard",function(){var t=n(this);t.data("wizard")||t.wizard(t.data())})})}(window.jQuery),function(n,t){function r(){var n=this;n.id=null;n.busy=!1;n.start=function(t,i){n.busy||(n.stop(),n.id=setTimeout(function(){t();n.id=null;n.busy=!1},i),n.busy=!0)};n.stop=function(){n.id!==null&&(clearTimeout(n.id),n.id=null,n.busy=!1)}}function u(i,u,f){var e=this;e.id=f;e.table=i;e.options=u;e.breakpoints=[];e.breakpointNames="";e.columns={};e.plugins=t.footable.plugins.load(e);var s=e.options,o=s.classes,c=s.events,h=s.triggers,l=0;return e.timers={resize:new r,register:function(n){return e.timers[n]=new r,e.timers[n]}},e.init=function(){var u=n(t),i=n(e.table),r;if(t.footable.plugins.init(e),i.hasClass(o.loaded)){e.raise(c.alreadyInitialized);return}e.raise(c.initializing);i.addClass(o.loading);i.find(s.columnDataSelector).each(function(){var n=e.getColumnData(this);e.columns[n.index]=n});for(r in s.breakpoints)e.breakpoints.push({name:r,width:s.breakpoints[r]}),e.breakpointNames+=r+" ";e.breakpoints.sort(function(n,t){return n.width-t.width});i.unbind(h.initialize).bind(h.initialize,function(){i.removeData("footable_info");i.data("breakpoint","");i.trigger(h.resize);i.removeClass(o.loading);i.addClass(o.loaded).addClass(o.main);e.raise(c.initialized)}).unbind(h.redraw).bind(h.redraw,function(){e.redraw()}).unbind(h.resize).bind(h.resize,function(){e.resize()}).unbind(h.expandFirstRow).bind(h.expandFirstRow,function(){i.find(s.toggleSelector).first().not("."+o.detailShow).trigger(h.toggleRow)}).unbind(h.expandAll).bind(h.expandAll,function(){i.find(s.toggleSelector).not("."+o.detailShow).trigger(h.toggleRow)}).unbind(h.collapseAll).bind(h.collapseAll,function(){i.find("."+o.detailShow).trigger(h.toggleRow)});i.trigger(h.initialize);u.bind("resize.footable",function(){e.timers.resize.stop();e.timers.resize.start(function(){e.raise(h.resize)},s.delay)})},e.addRowToggle=function(){var t,r,f,i,u;if(s.addRowToggle){t=n(e.table);r=!1;t.find("span."+o.toggle).remove();for(f in e.columns)if(i=e.columns[f],i.toggle){r=!0;u="> tbody > tr:not(."+o.detail+",."+o.disabled+") > td:nth-child("+(parseInt(i.index,10)+1)+"),> tbody > tr:not(."+o.detail+",."+o.disabled+") > th:nth-child("+(parseInt(i.index,10)+1)+")";t.hasClass("breakpoint")?t.find(u).not("."+o.detailCell).prepend(n(s.toggleHTMLElement).addClass(o.toggle).attr("role","button").attr("tabindex","0")):t.find(u).not("."+o.detailCell).prepend(n(s.toggleHTMLElement).addClass(o.toggle).attr("role","button").attr("aria-hidden",!0));return}r||(t.hasClass("breakpoint")?t.find("> tbody > tr:not(."+o.detail+",."+o.disabled+") > td:first-child").add("> tbody > tr:not(."+o.detail+",."+o.disabled+") > th:first-child").not("."+o.detailCell).prepend(n(s.toggleHTMLElement).addClass(o.toggle).attr("role","button").attr("tabindex","0")):t.find("> tbody > tr:not(."+o.detail+",."+o.disabled+") > td:first-child").add("> tbody > tr:not(."+o.detail+",."+o.disabled+") > th:first-child").not("."+o.detailCell).prepend(n(s.toggleHTMLElement).addClass(o.toggle).attr("role","button").attr("aria-hidden",!0)));t.find("> tbody > tr:not(."+o.detail+",."+o.disabled+") > td:first-child").add("> tbody > tr:not(."+o.detail+",."+o.disabled+") > th:first-child").not("."+o.detailCell).each(function(t,i){n(i).find("span.footable-toggle").attr("aria-label","Toggle Row "+t)})}},e.setColumnClasses=function(){var f=n(e.table),u,t,i,r;for(u in e.columns)t=e.columns[u],t.className!==null&&(i="",r=!0,n.each(t.matches,function(n,t){r||(i+=", ");i+="> tbody > tr:not(."+o.detail+") > td:nth-child("+(parseInt(t,10)+1)+")";r=!1}),f.find(i).not("."+o.detailCell).addClass(t.className))},e.bindToggleSelectors=function(){var t=n(e.table);e.hasAnyBreakpointColumn()&&(t.find(s.toggleSelector).unbind(h.toggleRow).bind(h.toggleRow,function(){var t=n(this).is("tr")?n(this):n(this).parents("tr:first");e.toggleDetail(t)}),t.find(s.toggleSelector).unbind("click.footable").bind("click.footable",function(i){t.is(".breakpoint")&&n(i.target).is("td,th,."+o.toggle)&&n(this).trigger(h.toggleRow)}),t.find(s.toggleSelector).unbind("keypress.footable").bind("keypress.footable",function(i){t.is(".breakpoint")&&n(i.target).is("td,th,."+o.toggle)&&n(this).trigger(h.toggleRow)}))},e.parse=function(n,t){var i=s.parsers[t.type]||s.parsers.alpha;return i(n)},e.getColumnData=function(t){var i=n(t),o=i.data("hide"),k=i.index(),r,w,y,p,h,u,f,a,v,b;if(o=o||"",o=jQuery.map(o.split(","),function(n){return jQuery.trim(n)}),r={index:k,hide:{},type:i.data("type")||"alpha",name:i.data("name")||n.trim(i.text()),ignore:i.data("ignore")||!1,toggle:i.data("toggle")||!1,className:i.data("class")||null,matches:[],names:{},group:i.data("group")||null,groupName:null,isEditable:i.data("editable")},r.group!==null&&(w=n(e.table).find('> thead > tr.footable-group-row > th[data-group="'+r.group+'"], > thead > tr.footable-group-row > td[data-group="'+r.group+'"]').first(),r.groupName=e.parse(w,{type:"alpha"})),y=parseInt(i.prev().attr("colspan")||0,10),l+=y>1?y-1:0,p=parseInt(i.attr("colspan")||0,10),h=r.index+l,p>1)for(u=i.data("names"),u=u||"",u=u.split(","),f=0;f<p;f++)r.matches.push(f+h),f<u.length&&(r.names[f+h]=u[f]);else r.matches.push(h);r.hide["default"]=i.data("hide")==="all"||n.inArray("default",o)>=0;a=!1;for(v in s.breakpoints)r.hide[v]=i.data("hide")==="all"||n.inArray(v,o)>=0,a=a||r.hide[v];return r.hasBreakpoint=a,b=e.raise(c.columnData,{column:{data:r,th:t}}),b.column.data},e.getViewportWidth=function(){return window.innerWidth||(document.body?document.body.offsetWidth:0)},e.calculateWidth=function(n,t){return jQuery.isFunction(s.calculateWidthOverride)?s.calculateWidthOverride(n,t):(t.viewportWidth<t.width&&(t.width=t.viewportWidth),t.parentWidth<t.width&&(t.width=t.parentWidth),t)},e.hasBreakpointColumn=function(n){for(var t in e.columns)if(e.columns[t].hide[n]){if(e.columns[t].ignore)continue;return!0}return!1},e.hasAnyBreakpointColumn=function(){for(var n in e.columns)if(e.columns[n].hasBreakpoint)return!0;return!1},e.resize=function(){var t=n(e.table),i,r,o,u,s;if(t.is(":visible")){if(!e.hasAnyBreakpointColumn()){t.trigger(h.redraw);return}if(i={width:t.width(),viewportWidth:e.getViewportWidth(),parentWidth:t.parent().width()},i=e.calculateWidth(t,i),r=t.data("footable_info"),t.data("footable_info",i),e.raise(c.resizing,{old:r,info:i}),!r||r&&r.width&&r.width!==i.width){for(o=null,s=0;s<e.breakpoints.length;s++)if(u=e.breakpoints[s],u&&u.width&&i.width<=u.width){o=u;break}var f=o===null?"default":o.name,l=e.hasBreakpointColumn(f),a=t.data("breakpoint");t.data("breakpoint",f).removeClass("default breakpoint").removeClass(e.breakpointNames).addClass(f+(l?" breakpoint":""));f!==a&&(t.trigger(h.redraw),e.raise(c.breakpoint,{breakpoint:f,info:i}))}e.raise(c.resized,{old:r,info:i})}},e.redraw=function(){e.addRowToggle();e.bindToggleSelectors();e.setColumnClasses();var t=n(e.table),i=t.data("breakpoint"),r=e.hasBreakpointColumn(i);t.find("> tbody > tr:not(."+o.detail+")").data("detail_created",!1).end().find("> thead > tr:last-child > th").each(function(){var r=e.columns[n(this).index()],u="",h=!0,f;if(n.each(r.matches,function(n,t){h||(u+=", ");var i=t+1;u+="> tbody > tr:not(."+o.detail+") > td:nth-child("+i+")";u+=", > tfoot > tr:not(."+o.detail+") > td:nth-child("+i+")";u+=", > colgroup > col:nth-child("+i+")";h=!1}),u+=', > thead > tr[data-group-row="true"] > th[data-group="'+r.group+'"]',f=t.find(u).add(this),i!==""&&(r.hide[i]===!1?f.addClass("footable-visible").show():f.removeClass("footable-visible").hide()),t.find("> thead > tr.footable-group-row").length===1){var l=t.find('> thead > tr:last-child > th[data-group="'+r.group+'"]:visible, > thead > tr:last-child > th[data-group="'+r.group+'"]:visible'),c=t.find('> thead > tr.footable-group-row > th[data-group="'+r.group+'"], > thead > tr.footable-group-row > td[data-group="'+r.group+'"]'),s=0;n.each(l,function(){s+=parseInt(n(this).attr("colspan")||1,10)});s>0?c.attr("colspan",s).show():c.hide()}}).end().find("> tbody > tr."+o.detailShow).each(function(){e.createOrUpdateDetailRow(this)});t.find("[data-bind-name]").each(function(){e.toggleInput(this)});t.find("> tbody > tr."+o.detailShow+":visible").each(function(){var t=n(this).next();t.hasClass(o.detail)&&(r?t.show():t.hide())});t.find("> thead > tr > th.footable-last-column, > tbody > tr > td.footable-last-column").removeClass("footable-last-column");t.find("> thead > tr > th.footable-first-column, > tbody > tr > td.footable-first-column").removeClass("footable-first-column");t.find("> thead > tr, > tbody > tr").find("> th.footable-visible:last, > td.footable-visible:last").addClass("footable-last-column").end().find("> th.footable-visible:first, > td.footable-visible:first").addClass("footable-first-column");e.raise(c.redrawn)},e.toggleDetail=function(t){var i=t.jquery?t:n(t),r=i.next();i.hasClass(o.detailShow)?(i.removeClass(o.detailShow),r.hasClass(o.detail)&&r.hide(),e.raise(c.rowCollapsed,{row:i[0]})):(e.createOrUpdateDetailRow(i[0]),i.addClass(o.detailShow).next().show(),e.raise(c.rowExpanded,{row:i[0]}))},e.removeRow=function(t){var i=t.jquery?t:n(t),r;i.hasClass(o.detail)&&(i=i.prev());r=i.next();i.data("detail_created")===!0&&r.remove();i.remove();e.raise(c.rowRemoved)},e.appendRow=function(t){var i=t.jquery?t:n(t);n(e.table).find("tbody").append(i);e.redraw()},e.getColumnFromTdIndex=function(t){var i=null;for(var r in e.columns)if(n.inArray(t,e.columns[r].matches)>=0){i=e.columns[r];break}return i},e.createOrUpdateDetailRow=function(t){var i=n(t),r=i.next(),h,u=[],l,f;return i.data("detail_created")===!0?!0:i.is(":hidden")?!1:(e.raise(c.rowDetailUpdating,{row:i,detail:r}),i.find("> td:hidden").each(function(){var r=n(this).index(),t=e.getColumnFromTdIndex(r),s=t.name,i,h,f;return t.ignore===!0?!0:(r in t.names&&(s=t.names[r]),i=n(this).attr("data-bind-name"),i!=null&&n(this).is(":empty")&&(h=n("."+o.detailInnerValue+'[data-bind-value="'+i+'"]'),n(this).html(n(h).contents().detach())),t.isEditable!==!1&&(t.isEditable||n(this).find(":input").length>0)&&(i==null&&(i="bind-"+n.now()+"-"+r,n(this).attr("data-bind-name",i)),f=n(this).contents().detach()),f||(f=n(this).contents().clone(!0,!0)),u.push({name:s,value:e.parse(this,t),display:f,group:t.group,groupName:t.groupName,bindName:i}),!0)}),u.length===0)?!1:(l=i.find("> td:visible").length,f=r.hasClass(o.detail),f||(r=n('<tr class="'+o.detail+'"><td class="'+o.detailCell+'"><div class="'+o.detailInner+'"><\/div><\/td><\/tr>'),i.after(r)),r.find("> td:first").attr("colspan",l),h=r.find("."+o.detailInner).empty(),s.createDetail(h,u,s.createGroupedDetail,s.detailSeparator,o),i.data("detail_created",!0),e.raise(c.rowDetailUpdated,{row:i,detail:r}),!f)},e.raise=function(t,i){var u,r;return e.options.debug===!0&&n.isFunction(e.options.log)&&e.options.log(t,"event"),i=i||{},u={ft:e},n.extend(!0,u,i),r=n.Event(t,u),r.ft||n.extend(!0,r,u),n(e.table).trigger(r),r},e.reset=function(){var t=n(e.table);t.removeData("footable_info").data("breakpoint","").removeClass(o.loading).removeClass(o.loaded);t.find(s.toggleSelector).unbind(h.toggleRow).unbind("click.footable");t.find(s.toggleSelector).unbind(h.toggleRow).unbind("keypress.footable");t.find("> tbody > tr").removeClass(o.detailShow);t.find("> tbody > tr."+o.detail).remove();e.raise(c.reset)},e.toggleInput=function(t){var r=n(t).attr("data-bind-name"),i;console.log(r);r!=null&&(i=n("."+o.detailInnerValue+'[data-bind-value="'+r+'"]'),i!=null&&(n(t).is(":visible")?n(i).is(":empty")||n(t).html(n(i).contents().detach()):n(t).is(":empty")||n(i).html(n(t).contents().detach())))},e.init(),e}t.footable={options:{delay:100,breakpoints:{_443:443,xxs:480,xs:768,md:992,lg:1200,xlg:1350,xxlg:1599},parsers:{alpha:function(t){return n(t).data("value")||n.trim(n(t).text())},numeric:function(t){var i=n(t).data("value")||n(t).text().replace(/[^0-9.\-]/g,"");return i=parseFloat(i),isNaN(i)&&(i=0),i}},addRowToggle:!0,calculateWidthOverride:null,toggleSelector:" > tbody > tr:not(.footable-row-detail)",columnDataSelector:"> thead > tr:last-child > th, > thead > tr:last-child > td",detailSeparator:":",toggleHTMLElement:"<span />",createGroupedDetail:function(n){for(var r,i={_none:{name:null,data:[]}},t=0;t<n.length;t++)r=n[t].group,r!==null?(r in i||(i[r]={name:n[t].groupName||n[t].group,data:[]}),i[r].data.push(n[t])):i._none.data.push(n[t]);return i},createDetail:function(t,i,r,u,f){var o=r(i),e,s,h;for(e in o)if(o[e].data.length!==0)for(e!=="_none"&&t.append('<div class="'+f.detailInnerGroup+'">'+o[e].name+"<\/div>"),s=0;s<o[e].data.length;s++)h=o[e].data[s].name?u:"",t.append(n("<div><\/div>").addClass(f.detailInnerRow).append(n("<div><\/div>").addClass(f.detailInnerName).append(o[e].data[s].name+h)).append(n("<div><\/div>").addClass(f.detailInnerValue).attr("data-bind-value",o[e].data[s].bindName).append(o[e].data[s].display)))},classes:{main:"footable",loading:"footable-loading",loaded:"footable-loaded",toggle:"footable-toggle",disabled:"footable-disabled",detail:"footable-row-detail",detailCell:"footable-row-detail-cell",detailInner:"footable-row-detail-inner",detailInnerRow:"footable-row-detail-row",detailInnerGroup:"footable-row-detail-group",detailInnerName:"footable-row-detail-name",detailInnerValue:"footable-row-detail-value",detailShow:"footable-detail-show"},triggers:{initialize:"footable_initialize",resize:"footable_resize",redraw:"footable_redraw",toggleRow:"footable_toggle_row",expandFirstRow:"footable_expand_first_row",expandAll:"footable_expand_all",collapseAll:"footable_collapse_all"},events:{alreadyInitialized:"footable_already_initialized",initializing:"footable_initializing",initialized:"footable_initialized",resizing:"footable_resizing",resized:"footable_resized",redrawn:"footable_redrawn",breakpoint:"footable_breakpoint",columnData:"footable_column_data",rowDetailUpdating:"footable_row_detail_updating",rowDetailUpdated:"footable_row_detail_updated",rowCollapsed:"footable_row_collapsed",rowExpanded:"footable_row_expanded",rowRemoved:"footable_row_removed",reset:"footable_reset"},debug:!1,log:null},version:{major:0,minor:5,toString:function(){return t.footable.version.major+"."+t.footable.version.minor},parse:function(n){var t=/(\d+)\.?(\d+)?\.?(\d+)?/.exec(n);return{major:parseInt(t[1],10)||0,minor:parseInt(t[2],10)||0,patch:parseInt(t[3],10)||0}}},plugins:{_validate:function(i){if(!n.isFunction(i))return t.footable.options.debug===!0&&console.error('Validation failed, expected type "function", received type "{0}".',typeof i),!1;var r=new i;return typeof r.name!="string"?(t.footable.options.debug===!0&&console.error('Validation failed, plugin does not implement a string property called "name".',r),!1):n.isFunction(r.init)?(t.footable.options.debug===!0&&console.log('Validation succeeded for plugin "'+r.name+'".',r),!0):(t.footable.options.debug===!0&&console.error('Validation failed, plugin "'+r.name+'" does not implement a function called "init".',r),!1)},registered:[],register:function(i,r){t.footable.plugins._validate(i)&&(t.footable.plugins.registered.push(i),typeof r=="object"&&n.extend(!0,t.footable.options,r))},load:function(n){for(var r=[],u,i=0;i<t.footable.plugins.registered.length;i++)try{u=t.footable.plugins.registered[i];r.push(new u(n))}catch(f){t.footable.options.debug===!0&&console.error(f)}return r},init:function(n){for(var i=0;i<n.plugins.length;i++)try{n.plugins[i].init(n)}catch(r){t.footable.options.debug===!0&&console.error(r)}}}};var i=0;n.fn.footable=function(r){r=r||{};var f=n.extend(!0,{},t.footable.options,r);return this.each(function(){i++;var t=new u(this,f,i);n(this).data("footable",t);n(this).bind({footable_row_collapsed:function(t){n(t.row.childNodes[1].childNodes[0]).attr("role","button").attr("aria-expanded",!1)},footable_row_expanded:function(t){n(t.row.childNodes[1].childNodes[0]).attr("role","button").attr("aria-expanded",!0)}});n(".footable-toggle").attr("role","button").attr("aria-expanded",!1);n(".footable-toggle").click(function(t){var i=n(t.target).attr("aria-expanded")=="false"?"true":"false";n(t.target).attr("aria-expanded",i)});n(".footable-toggle").keydown(function(t){(t.keyCode===32||t.keyCode===13)&&(t.preventDefault(),n(t.target).click())})})}}(jQuery,window),function(n){if(typeof define=="function"&&define.amd)define(n);else if(typeof exports=="object")module.exports=n();else{var i=window.Cookies,t=window.Cookies=n(window.jQuery);t.noConflict=function(){return window.Cookies=i,t}}}(function(){function n(){for(var n=0,r={},t,i;n<arguments.length;n++){t=arguments[n];for(i in t)r[i]=t[i]}return r}function t(i){function r(t,u,f){var o,s;if(arguments.length>1){f=n({path:"/"},r.defaults,f);typeof f.expires=="number"&&(s=new Date,s.setMilliseconds(s.getMilliseconds()+f.expires*864e5),f.expires=s);try{o=JSON.stringify(u);/^[\{\[]/.test(o)&&(u=o)}catch(y){}return u=encodeURIComponent(String(u)),u=u.replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)),t=t.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),t=t.replace(/[\(\)]/g,escape),document.cookie=[t,"=",u,f.expires&&"; expires="+f.expires.toUTCString(),f.path&&"; path="+f.path,f.domain&&"; domain="+f.domain,f.secure?"; secure":""].join("")}t||(o={});for(var l=document.cookie?document.cookie.split("; "):[],a=/(%[0-9A-Z]{2})+/g,h=0;h<l.length;h++){var v=l[h].split("="),c=v[0].replace(a,decodeURIComponent),e=v.slice(1).join("=");e.charAt(0)==='"'&&(e=e.slice(1,-1));try{if(e=i&&i(e,c)||e.replace(a,decodeURIComponent),this.json)try{e=JSON.parse(e)}catch(y){}if(t===c){o=e;break}t||(o[c]=e)}catch(y){}}return o}return r.get=r.set=r,r.getJSON=function(){return r.apply({json:!0},[].slice.call(arguments))},r.defaults={},r.remove=function(t,i){r(t,"",n(i,{expires:-1}))},r.withConverter=t,r}return t()}),function(n){typeof define=="function"&&define.amd?define(["jquery"],n):typeof module=="object"&&module.exports?module.exports=function(t,i){return i===undefined&&(i=typeof window!="undefined"?require("jquery"):require("jquery")(t)),n(i),i}:n(jQuery)}(function(n){var t=function(){var t;return n&&n.fn&&n.fn.select2&&n.fn.select2.amd&&(t=n.fn.select2.amd),function(){if(!t||!t.requirejs){t?i=t:t={};var n,i,r;(function(t){function e(n,t){return d.call(n,t)}function l(n,t){var o,s,u,e,h,y,c,b,i,l,p,k,r=t&&t.split("/"),a=f.map,v=a&&a["*"]||{};if(n){for(n=n.split("/"),h=n.length-1,f.nodeIdCompat&&w.test(n[h])&&(n[h]=n[h].replace(w,"")),n[0].charAt(0)==="."&&r&&(k=r.slice(0,r.length-1),n=k.concat(n)),i=0;i<n.length;i++)if(p=n[i],p===".")n.splice(i,1),i-=1;else if(p==="..")if(i===0||i===1&&n[2]===".."||n[i-1]==="..")continue;else i>0&&(n.splice(i-1,2),i-=2);n=n.join("/")}if((r||v)&&a){for(o=n.split("/"),i=o.length;i>0;i-=1){if(s=o.slice(0,i).join("/"),r)for(l=r.length;l>0;l-=1)if(u=a[r.slice(0,l).join("/")],u&&(u=u[s],u)){e=u;y=i;break}if(e)break;!c&&v&&v[s]&&(c=v[s],b=i)}!e&&c&&(e=c,y=b);e&&(o.splice(0,y,e),n=o.join("/"))}return n}function b(n,i){return function(){var r=g.call(arguments,0);return typeof r[0]!="string"&&r.length===1&&r.push(null),o.apply(t,r.concat([n,i]))}}function nt(n){return function(t){return l(t,n)}}function tt(n){return function(t){u[n]=t}}function a(n){if(e(h,n)){var i=h[n];delete h[n];y[n]=!0;c.apply(t,i)}if(!e(u,n)&&!e(y,n))throw new Error("No "+n);return u[n]}function p(n){var i,t=n?n.indexOf("!"):-1;return t>-1&&(i=n.substring(0,t),n=n.substring(t+1,n.length)),[i,n]}function k(n){return n?p(n):[]}function it(n){return function(){return f&&f.config&&f.config[n]||{}}}var c,o,v,s,u={},h={},f={},y={},d=Object.prototype.hasOwnProperty,g=[].slice,w=/\.js$/;v=function(n,t){var r,u=p(n),i=u[0],f=t[1];return n=u[1],i&&(i=l(i,f),r=a(i)),i?n=r&&r.normalize?r.normalize(n,nt(f)):l(n,f):(n=l(n,f),u=p(n),i=u[0],n=u[1],i&&(r=a(i))),{f:i?i+"!"+n:n,n:n,pr:i,p:r}};s={require:function(n){return b(n)},exports:function(n){var t=u[n];return typeof t!="undefined"?t:u[n]={}},module:function(n){return{id:n,uri:"",exports:u[n],config:it(n)}}};c=function(n,i,r,f){var p,o,d,w,c,g,l=[],nt=typeof r,it;if(f=f||n,g=k(f),nt==="undefined"||nt==="function"){for(i=!i.length&&r.length?["require","exports","module"]:i,c=0;c<i.length;c+=1)if(w=v(i[c],g),o=w.f,o==="require")l[c]=s.require(n);else if(o==="exports")l[c]=s.exports(n),it=!0;else if(o==="module")p=l[c]=s.module(n);else if(e(u,o)||e(h,o)||e(y,o))l[c]=a(o);else if(w.p)w.p.load(w.n,b(f,!0),tt(o),{}),l[c]=u[o];else throw new Error(n+" missing "+o);d=r?r.apply(u[n],l):undefined;n&&(p&&p.exports!==t&&p.exports!==u[n]?u[n]=p.exports:d===t&&it||(u[n]=d))}else n&&(u[n]=r)};n=i=o=function(n,i,r,u,e){if(typeof n=="string")return s[n]?s[n](i):a(v(n,k(i)).f);if(!n.splice){if(f=n,f.deps&&o(f.deps,f.callback),!i)return;i.splice?(n=i,i=r,r=null):n=t}return i=i||function(){},typeof r=="function"&&(r=u,u=e),u?c(t,n,i,r):setTimeout(function(){c(t,n,i,r)},4),o};o.config=function(n){return o(n)};n._defined=u;r=function(n,t,i){if(typeof n!="string")throw new Error("See almond README: incorrect module build, no module name");t.splice||(i=t,t=[]);e(u,n)||e(h,n)||(h[n]=[n,t,i])};r.amd={jQuery:!0}})();t.requirejs=n;t.require=i;t.define=r}}(),t.define("almond",function(){}),t.define("jquery",[],function(){var t=n||$;return t==null&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),t}),t.define("select2/utils",["jquery"],function(n){function u(n){var i=n.prototype,r=[],t,u;for(t in i)(u=i[t],typeof u=="function")&&t!=="constructor"&&r.push(t);return r}var t={},i,r;return t.Extend=function(n,t){function r(){this.constructor=n}var u={}.hasOwnProperty;for(var i in t)u.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n},t.Decorate=function(n,t){function i(){var r=Array.prototype.unshift,u=t.prototype.constructor.length,i=n.prototype.constructor;u>0&&(r.call(arguments,n.prototype.constructor),i=t.prototype.constructor);i.apply(this,arguments)}function l(){this.constructor=i}var s=u(t),h=u(n),r,e,c,f,o;for(t.displayName=n.displayName,i.prototype=new l,r=0;r<h.length;r++)e=h[r],i.prototype[e]=n.prototype[e];for(c=function(n){var r=function(){},u;return n in i.prototype&&(r=i.prototype[n]),u=t.prototype[n],function(){var n=Array.prototype.unshift;return n.call(arguments,r),u.apply(this,arguments)}},f=0;f<s.length;f++)o=s[f],i.prototype[o]=c(o);return i},i=function(){this.listeners={}},i.prototype.on=function(n,t){this.listeners=this.listeners||{};n in this.listeners?this.listeners[n].push(t):this.listeners[n]=[t]},i.prototype.trigger=function(n){var i=Array.prototype.slice,t=i.call(arguments,1);this.listeners=this.listeners||{};t==null&&(t=[]);t.length===0&&t.push({});t[0]._type=n;n in this.listeners&&this.invoke(this.listeners[n],i.call(arguments,1));"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},i.prototype.invoke=function(n,t){for(var i=0,r=n.length;i<r;i++)n[i].apply(this,t)},t.Observable=i,t.generateChars=function(n){for(var r,t="",i=0;i<n;i++)r=Math.floor(Math.random()*36),t+=r.toString(36);return t},t.bind=function(n,t){return function(){n.apply(t,arguments)}},t._convertData=function(n){var f,r,i,u,t;for(f in n)if(r=f.split("-"),i=n,r.length!==1){for(u=0;u<r.length;u++)t=r[u],t=t.substring(0,1).toLowerCase()+t.substring(1),t in i||(i[t]={}),u==r.length-1&&(i[t]=n[f]),i=i[t];delete n[f]}return n},t.hasScroll=function(t,i){var u=n(i),f=i.style.overflowX,r=i.style.overflowY;return f===r&&(r==="hidden"||r==="visible")?!1:f==="scroll"||r==="scroll"?!0:u.innerHeight()<i.scrollHeight||u.innerWidth()<i.scrollWidth},t.escapeMarkup=function(n){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return typeof n!="string"?n:String(n).replace(/[&<>"'\/\\]/g,function(n){return t[n]})},t.appendMany=function(t,i){if(n.fn.jquery.substr(0,3)==="1.7"){var r=n();n.map(i,function(n){r=r.add(n)});i=r}t.append(i)},t.__cache={},r=0,t.GetUniqueElementId=function(n){var t=n.getAttribute("data-select2-id");return t==null&&(n.id?(t=n.id,n.setAttribute("data-select2-id",t)):(n.setAttribute("data-select2-id",++r),t=r.toString())),t},t.StoreData=function(n,i,r){var u=t.GetUniqueElementId(n);t.__cache[u]||(t.__cache[u]={});t.__cache[u][i]=r},t.GetData=function(i,r){var u=t.GetUniqueElementId(i);return r?t.__cache[u]?t.__cache[u][r]!=null?t.__cache[u][r]:n(i).data(r):n(i).data(r):t.__cache[u]},t.RemoveData=function(n){var i=t.GetUniqueElementId(n);t.__cache[i]!=null&&delete t.__cache[i];n.removeAttribute("data-select2-id")},t}),t.define("select2/results",["jquery","./utils","./keys"],function(n,t,i){function r(n,t,i){this.$element=n;this.data=i;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var t=n('<ul role="listbox" title="Select Content" class="select2-results__options"><\/ul>');return this.options.get("multiple"),this.$results=t,t},r.prototype.clear=function(){this.$results.empty()},r.prototype.displayMessage=function(t){var u=this.options.get("escapeMarkup"),f=this.options.get("select2Id"),i,r;this.clear();this.hideLoading();i=n('<li role="option" aria-live="polite" class="select2-results__option"><\/li>').attr("id",f+"-display-message");r=this.options.get("translations").get(t.message);i.append(u(r(t.args)));i[0].className+=" select2-results__message";this.$results.append(i)},r.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},r.prototype.append=function(n){var i,t,r,u;if(this.hideLoading(),i=[],n.results==null||n.results.length===0){this.$results.children().length===0&&this.trigger("results:message",{message:"noResults"});return}for(n.results=this.sort(n.results),t=0;t<n.results.length;t++)r=n.results[t],u=this.option(r),i.push(u);this.$results.append(i)},r.prototype.position=function(n,t){var i=t.find(".select2-results");i.append(n)},r.prototype.sort=function(n){var t=this.options.get("sorter");return t(n)},r.prototype.highlightFirstItem=function(){var n=this.$results.find(".select2-results__option[aria-selected]"),t=n.filter("[aria-selected=true]");t.length>0?t.first().trigger("mouseenter"):n.first().trigger("mouseenter");this.ensureHighlightVisible()},r.prototype.setClasses=function(){var i=this;this.data.current(function(r){var u=n.map(r,function(n){return n.id.toString()}),f=i.$results.find(".select2-results__option[aria-selected]");f.each(function(){var r=n(this),i=t.GetData(this,"data"),f=""+i.id;i.element!=null&&i.element.selected||i.element==null&&n.inArray(f,u)>-1?r.attr("aria-selected","true"):r.attr("aria-selected","false")})})},r.prototype.showLoading=function(n){this.hideLoading();var i=this.options.get("translations").get("searching"),r=this.options.get("select2Id"),u={disabled:!0,loading:!0,text:i(n)},t=this.option(u);t.className+=" loading-results";t.id=r+"-show-loading";t.setAttribute("aria-live","polite");t.setAttribute("aria-atomic","true");this.$results.prepend(t)},r.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},r.prototype.option=function(i){var r=document.createElement("li"),u,l,s,a,c,o,y,p,f;r.className="select2-results__option";u={};u={role:"option","aria-selected":"false",tabindex:0};l=window.Element.prototype.matches||window.Element.prototype.msMatchesSelector||window.Element.prototype.webkitMatchesSelector;(i.element!=null&&l.call(i.element,":disabled")||i.element==null&&i.disabled)&&(delete u["aria-selected"],u["aria-disabled"]="true");i.id==null&&delete u["aria-selected"];i._resultId!=null&&(r.id=i._resultId);i.title&&(r.title=i.title);i.children&&delete u["aria-selected"];for(s in u)a=u[s],r.setAttribute(s,a);if(i.children){var v=n(r),h="select2-strong-id-"+Math.random().toString(16).slice(2),e=document.createElement("strong");for(e.className="select2-results__group",e.setAttribute("id",h),this.template(i,e),c=[],o=0;o<i.children.length;o++)y=i.children[o],p=this.option(y),c.push(p);f=n("<ul><\/ul>",{"class":"select2-results__options select2-results__options--nested",role:"listbox"});n(i.element.parentElement).prev().is("label")&&(f=n("<ul><\/ul>",{"class":"select2-results__options select2-results__options--nested",role:"listbox","aria-labelledby":h}));n(i.element.parentElement.parentElement.parentElement).prev().find("label").is("label")&&(f=n("<ul><\/ul>",{"class":"select2-results__options select2-results__options--nested",role:"listbox","aria-labelledby":h}));f.append(c);v.append(e);v.append(f)}else this.template(i,r);return t.StoreData(r,"data",i),r},r.prototype.bind=function(r){var u=this,f=r.id+"-results";this.$results.attr("id",f);r.on("results:all",function(n){u.clear();u.append(n.data);r.isOpen()&&(u.setClasses(),u.highlightFirstItem())});r.on("results:append",function(n){u.append(n.data);r.isOpen()&&u.setClasses()});r.on("query",function(t){var e=n("#"+f+" > li").length;u.hideMessages();u.showLoading(t);setTimeout(function(){var t=n("#"+f+" li li").length>0;t==!1&&n("#"+f+" li").hover(function(t){n(this).focus();t.preventDefault()})},500);setInterval(function(){var t=n("#"+f+" li li").length>0;if(t==!1&&n("#"+f+" > li").length!==e){n("#"+f+" li").off("keydown");n("#"+f+" li").on("keydown",function(t){t.keyCode===i.TAB&&(r.close(),t.preventDefault());t.keyCode===i.UP&&(n(this).prev().is("li")&&n(this).prev().mouseenter().focus(),t.preventDefault());t.keyCode===i.DOWN&&(n(this).next().is("li")&&n(this).next().mouseenter().focus(),t.preventDefault());t.keyCode===i.ENTER&&(r.trigger("results:select"),t.preventDefault());t.keyCode===i.ESC&&(n(u.$element[0]).select2("close"),t.preventDefault());(t.keyCode===i.LEFT||t.keyCode===i.RIGHT)&&t.preventDefault()})}},500,u)});r.on("select unselect",function(){r.isOpen()&&(u.setClasses(),u.options.get("scrollAfterSelect")&&u.highlightFirstItem())});r.on("open",function(){u.$results.attr("aria-hidden","false");r.$selection.attr("aria-expanded","true");u.setClasses();u.ensureHighlightVisible()});r.on("close",function(){u.$results.attr("aria-expanded","false");r.$selection.attr("aria-expanded","false");u.$results.attr("aria-hidden","true");u.$results.removeAttr("aria-activedescendant")});r.on("results:toggle",function(){var n=u.getHighlightedResults();n.length!==0&&n.trigger("mouseup")});r.on("results:select",function(){var n=u.getHighlightedResults(),i;n.length!==0&&(i=t.GetData(n[0],"data"),n.attr("aria-selected")=="true"?u.trigger("close",{}):u.trigger("select",{data:i}))});r.on("results:previous",function(){var i=u.getHighlightedResults(),r=u.$results.find("[aria-selected]"),f=r.index(i),n,t;if(!(f<=0)){n=f-1;i.length===0&&(n=0);t=r.eq(n);t.trigger("mouseenter");var e=u.$results.offset().top,o=t.offset().top,s=u.$results.scrollTop()+(o-e);n===0?u.$results.scrollTop(0):o-e<0&&u.$results.scrollTop(s)}});r.on("results:next",function(){var e=u.getHighlightedResults(),t=u.$results.find("[aria-selected]"),o=t.index(e),i=o+1,n;if(!(i>=t.length)){n=t.eq(i);n.trigger("mouseenter");var r=u.$results.offset().top+u.$results.outerHeight(!1),f=n.offset().top+n.outerHeight(!1),s=u.$results.scrollTop()+f-r;i===0?u.$results.scrollTop(0):f>r&&u.$results.scrollTop(s)}});r.on("results:focus",function(n){n.element.addClass("select2-results__option--highlighted")});r.on("results:message",function(n){u.displayMessage(n)});if(n.fn.mousewheel)this.$results.on("mousewheel",function(n){var t=u.$results.scrollTop(),i=u.$results.get(0).scrollHeight-t+n.deltaY,r=n.deltaY>0&&t-n.deltaY<=0,f=n.deltaY<0&&i<=u.$results.height();r?(u.$results.scrollTop(0),n.preventDefault(),n.stopPropagation()):f&&(u.$results.scrollTop(u.$results.get(0).scrollHeight-u.$results.height()),n.preventDefault(),n.stopPropagation())});this.$results.on("mouseup",".select2-results__option[aria-selected]",function(i){var f=n(this),r=t.GetData(this,"data");if(f.attr("aria-selected")==="true"){u.options.get("multiple")?u.trigger("unselect",{originalEvent:i,data:r}):u.trigger("close",{});return}u.trigger("select",{originalEvent:i,data:r})});this.$results.on("mouseenter",".select2-results__option[aria-selected]",function(){var i=t.GetData(this,"data");u.getHighlightedResults().removeClass("select2-results__option--highlighted");u.trigger("results:focus",{data:i,element:n(this)})})},r.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},r.prototype.destroy=function(){this.$results.remove()},r.prototype.ensureHighlightVisible=function(){var n=this.getHighlightedResults();if(n.length!==0){var f=this.$results.find("[aria-selected]"),e=f.index(n),t=this.$results.offset().top,i=n.offset().top,r=this.$results.scrollTop()+(i-t),u=i-t;r-=n.outerHeight(!1)*2;e<=2?this.$results.scrollTop(0):(u>this.$results.outerHeight()||u<0)&&this.$results.scrollTop(r)}},r.prototype.template=function(t,i){var u=this.options.get("templateResult"),f=this.options.get("escapeMarkup"),r=u(t,i);r==null?i.style.display="none":typeof r=="string"?i.innerHTML=f(r):n(i).append(r)},r}),t.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),t.define("select2/selection/base",["jquery","../utils","../keys"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,t.Observable),r.prototype.render=function(){var i=n('<span class="select2-selection"  role="textbox"  aria-haspopup="true" aria-controls="'+this.$element[0].id+'"><\/span>');return this._tabindex=0,t.GetData(this.$element[0],"old-tabindex")!=null?this._tabindex=t.GetData(this.$element[0],"old-tabindex"):this.$element.attr("tabindex")!=null&&(this._tabindex=this.$element.attr("tabindex")),i.attr("title",this.$element.attr("title")),i.attr("tabindex",this._tabindex),i.attr("aria-disabled","false"),this.$selection=i,i},r.prototype.bind=function(n){var t=this,r=n.id+"-results";this.container=n;this.$selection.on("focus",function(n){t.trigger("focus",n)});this.$selection.on("blur",function(n){t._handleBlur(n)});this.$selection.on("keydown",function(n){t.trigger("keypress",n);n.which===i.SPACE&&n.preventDefault()});n.on("results:focus",function(n){t.$selection.attr("aria-activedescendant",n.data._resultId)});n.on("selection:update",function(n){t.update(n.data)});n.on("open",function(){t.$selection.attr("aria-owns",r);t._attachCloseHandler(n)});n.on("close",function(){t.$selection.removeAttr("aria-activedescendant");t.$selection.removeAttr("aria-owns");t.$selection.trigger("focus");t._detachCloseHandler(n)});n.on("enable",function(){t.$selection.attr("tabindex",t._tabindex);t.$selection.attr("aria-disabled","false")});n.on("disable",function(){t.$selection.attr("tabindex","-1");t.$selection.attr("aria-disabled","true")})},r.prototype._handleBlur=function(t){var i=this;window.setTimeout(function(){document.activeElement==i.$selection[0]||n.contains(i.$selection[0],document.activeElement)||i.trigger("blur",t)},1)},r.prototype._attachCloseHandler=function(i){n(document.body).on("mousedown.select2."+i.id,function(i){var r=n(i.target),u=r.closest(".select2"),f=n(".select2.select2-container--open");f.each(function(){if(this!=u[0]){var n=t.GetData(this,"element");n.select2("close")}})})},r.prototype._detachCloseHandler=function(t){n(document.body).off("mousedown.select2."+t.id)},r.prototype.position=function(n,t){var i=t.find(".selection");i.append(n)},r.prototype.destroy=function(){this._detachCloseHandler(this.container)},r.prototype.update=function(){throw new Error("The `update` method must be defined in child classes.");},r.prototype.isEnabled=function(){return!this.isDisabled()},r.prototype.isDisabled=function(){return this.options.get("disabled")},r}),t.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--single").attr("role","button"),n.html('<li class="select2-selection__rendered" aria-label="Select Value"><\/li><span class="select2-selection__arrow" role="presentation"><b role="presentation"><\/b><\/span>'),n},r.prototype.bind=function(n){var i=this,t;r.__super__.bind.apply(this,arguments);t=n.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",t).attr("role","textbox");this.$selection.attr("aria-labelledby",t);this.$selection.on("mousedown",function(n){n.which===1&&i.trigger("toggle",{originalEvent:n})});this.$selection.on("focus",function(){});this.$selection.on("blur",function(){});n.on("focus",function(){n.isOpen()||i.$selection.trigger("focus")})},r.prototype.clear=function(){var n=this.$selection.find(".select2-selection__rendered");n.empty();n.removeAttr("title")},r.prototype.display=function(n,t){var i=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(i(n,t))},r.prototype.selectionContainer=function(){return n("<span><\/span>")},r.prototype.update=function(n){var r;if(n.length===0){this.clear();return}var i=n[0],t=this.$selection.find(".select2-selection__rendered"),u=this.display(i,t);t.empty().append(u);r=i.title||i.text;r?t.attr("title",r):t.removeAttr("title")},r}),t.define("select2/selection/multiple",["jquery","./base","../utils"],function(n,t,i){function r(){r.__super__.constructor.apply(this,arguments)}return i.Extend(r,t),r.prototype.render=function(){var n=r.__super__.render.call(this);return n.addClass("select2-selection--multiple").attr("role","application"),n.html('<div class="select2-selection__rendered"><\/div>'),n},r.prototype.bind=function(){var t=this;r.__super__.bind.apply(this,arguments);this.$selection.on("click",function(n){t.trigger("toggle",{originalEvent:n})});this.$selection.on("click",".select2-selection__choice__remove",function(r){if(!t.isDisabled()){var u=n(this),f=u.parent(),e=i.GetData(f[0],"data");t.trigger("unselect",{originalEvent:r,data:e})}})},r.prototype.clear=function(){var n=this.$selection.find(".select2-selection__rendered");n.empty();n.removeAttr("title")},r.prototype.display=function(n,t){var i=this.options.get("templateSelection"),r=this.options.get("escapeMarkup");return r(i(n,t))},r.prototype.selectionContainer=function(){return n('<span class="select2-selection__choice"><span class="select2-selection__choice__remove" role="button" aria-label="Remove">&times;<\/span><\/span>')},r.prototype.update=function(n){var u,t,e;if(this.clear(),n.length!==0){for(u=[],t=0;t<n.length;t++){var f=n[t],r=this.selectionContainer(),o=this.display(f,r);r.append(o);i.StoreData(r[0],"data",f);u.push(r)}e=this.$selection.find(".select2-selection__rendered");i.appendMany(e,u)}},r}),t.define("select2/selection/placeholder",["../utils"],function(){function n(n,t,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i)}return n.prototype.normalizePlaceholder=function(n,t){return typeof t=="string"&&(t={id:"",text:t}),t},n.prototype.createPlaceholder=function(n,t){var i=this.selectionContainer();return i.html(this.display(t)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},n.prototype.update=function(n,t){var r=t.length==1&&t[0].id!=this.placeholder.id,u=t.length>1,i;if(u||r)return n.call(this,t);this.clear();i=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(i)},n}),t.define("select2/selection/allowClear",["jquery","../keys","../utils"],function(n,t,i){function r(){}return r.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);this.placeholder==null&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option.");this.$selection.on("mousedown",".select2-selection__clear",function(n){r._handleClear(n)});t.on("keypress",function(n){r._handleKeyboardClear(n,t)})},r.prototype._handleClear=function(n,t){var e,u,o,r,f;if(!this.isDisabled()&&(e=this.$selection.find(".select2-selection__clear"),e.length!==0)){if(t.stopPropagation(),u=i.GetData(e[0],"data"),o=this.$element.val(),this.$element.val(this.placeholder.id),r={data:u},this.trigger("clear",r),r.prevented){this.$element.val(o);return}for(f=0;f<u.length;f++)if(r={data:u[f]},this.trigger("unselect",r),r.prevented){this.$element.val(o);return}this.$element.trigger("input").trigger("change");this.trigger("toggle",{})}},r.prototype._handleKeyboardClear=function(n,i,r){r.isOpen()||(i.which==t.DELETE||i.which==t.BACKSPACE)&&this._handleClear(i)},r.prototype.update=function(t,r){if(t.call(this,r),!(this.$selection.find(".select2-selection__placeholder").length>0)&&r.length!==0){var f=this.options.get("translations").get("removeAllItems"),u=n('<span class="select2-selection__clear" title="'+f()+'">&times;<\/span>');i.StoreData(u[0],"data",r);this.$selection.find(".select2-selection__rendered").prepend(u)}},r}),t.define("select2/selection/search",["jquery","../utils","../keys"],function(n,t,i){function r(n,t,i){n.call(this,t,i)}return r.prototype.render=function(t){var i=n('<span class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" aria-autocomplete="list" role="combobox" aria-expanded="false" /><\/span>'),r,u;return this.$searchContainer=i,this.$search=i.find("input"),r=this.options.get("select2Id"),n("#"+r).attr("aria-required")==="true"&&this.$search.attr("aria-required",!0),u=t.call(this),this._transferTabIndex(),u},r.prototype.bind=function(n,r,u){var f=this,h=this.options.get("select2Id"),c=r.id+"-results",e="label_"+r.id.replace("select2-",""),o,s;n.call(this,r,u);f.$search.attr("aria-labelledby",e).attr("aria-describedby",h+"-display-message");r.on("open",function(){f.$search.attr("aria-controls",c);f.$search.attr("aria-labelledby",e);f.$search.trigger("focus");f.$search.attr("aria-expanded","true")});r.on("close",function(){f.$search.val("");f.$search.removeAttr("aria-controls");f.$search.removeAttr("aria-activedescendant");f.$search.attr("aria-labelledby",e);f.$search.trigger("focus");f.$search.attr("aria-expanded","false")});r.on("enable",function(){f.$search.prop("disabled",!1);f._transferTabIndex()});r.on("disable",function(){f.$search.prop("disabled",!0)});r.on("focus",function(){f.$search.trigger("focus")});r.on("results:focus",function(n){n.data._resultId?f.$search.attr("aria-activedescendant",n.data._resultId):f.$search.removeAttr("aria-activedescendant")});this.$selection.on("focusin",".select2-search--inline",function(n){f.trigger("focus",n)});this.$selection.on("focusout",".select2-search--inline",function(n){f._handleBlur(n)});this.$selection.on("keydown",".select2-search--inline",function(n){var u,r,e;n.stopPropagation();f.trigger("keypress",n);f._keyUpPrevented=n.isDefaultPrevented();u=n.which;u===i.BACKSPACE&&f.$search.val()===""&&(r=f.$searchContainer.prev(".select2-selection__choice"),r.length>0&&(e=t.GetData(r[0],"data"),f.searchRemoveChoice(e),n.preventDefault()))});this.$selection.on("click",".select2-search--inline",function(n){f.$search.val()&&n.stopPropagation()});o=document.documentMode;s=o&&o<=11;this.$selection.on("input.searchcheck",".select2-search--inline",function(){if(s){f.$selection.off("input.search input.searchcheck");return}f.$selection.off("keyup.search")});this.$selection.on("keyup.search input.search",".select2-search--inline",function(n){if(s&&n.type==="input"){f.$selection.off("input.search input.searchcheck");return}var t=n.which;t!=i.SHIFT&&t!=i.CTRL&&t!=i.ALT&&t!=i.TAB&&f.handleSearch(n)})},r.prototype._transferTabIndex=function(){this.$search.attr("tabindex",this.$selection.attr("tabindex"));this.$selection.attr("tabindex","-1")},r.prototype.createPlaceholder=function(n,t){this.$search.attr("placeholder",t.text)},r.prototype.update=function(n,t){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder","");n.call(this,t);this.$selection.find(".select2-selection__rendered").append(this.$searchContainer);this.resizeSearch();i&&this.$search.trigger("focus")},r.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},r.prototype.searchRemoveChoice=function(n,t){this.trigger("unselect",{data:t});this.$search.val(t.text);this.handleSearch()},r.prototype.resizeSearch=function(){var n,t;this.$search.css("width","25px");n="";this.$search.attr("placeholder")!==""?n=this.$selection.find(".select2-selection__rendered").width():(t=this.$search.val().length+1,n=t*.75+"em");this.$search.css("width",n)},r}),t.define("select2/selection/eventRelay",["jquery"],function(n){function t(){}return t.prototype.bind=function(t,i,r){var u=this,f=["open","opening","close","closing","select","selecting","unselect","unselecting","clear","clearing"],e=["opening","closing","selecting","unselecting","clearing"];t.call(this,i,r);i.on("*",function(t,i){if(n.inArray(t,f)!==-1){i=i||{};var r=n.Event("select2:"+t,{params:i});(u.$element.trigger(r),n.inArray(t,e)!==-1)&&(i.prevented=r.isDefaultPrevented())}})},t}),t.define("select2/translation",["jquery","require"],function(n,t){function i(n){this.dict=n||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(n){return this.dict[n]},i.prototype.extend=function(t){this.dict=n.extend({},t.all(),this.dict)},i._cache={},i.loadPath=function(n){if(!(n in i._cache)){var r=t(n);i._cache[n]=r}return new i(i._cache[n])},i}),t.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Œ":"OE","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","œ":"oe","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ώ":"ω","ς":"σ","’":"'"}}),t.define("select2/data/base",["../utils"],function(n){function t(){t.__super__.constructor.call(this)}return n.Extend(t,n.Observable),t.prototype.current=function(){throw new Error("The `current` method must be defined in child classes.");},t.prototype.query=function(){throw new Error("The `query` method must be defined in child classes.");},t.prototype.bind=function(){},t.prototype.destroy=function(){},t.prototype.generateResultId=function(t,i){var r=t.id+"-result-";return r+=n.generateChars(4),r+(i.id!=null?"-"+i.id.toString():"-"+n.generateChars(4))},t}),t.define("select2/data/select",["./base","../utils","jquery"],function(n,t,i){function r(n,t){this.$element=n;this.options=t;r.__super__.constructor.call(this)}return t.Extend(r,n),r.prototype.current=function(n){var t=[],r=this;this.$element.find(":selected").each(function(){var n=i(this),u=r.item(n);t.push(u)});n(t)},r.prototype.select=function(n){var t=this,r;if(n.selected=!0,i(n.element).is("option")){n.element.selected=!0;this.$element.trigger("input").trigger("change");return}this.$element.prop("multiple")?this.current(function(r){var f=[],u,e;for(n=[n],n.push.apply(n,r),u=0;u<n.length;u++)e=n[u].id,i.inArray(e,f)===-1&&f.push(e);t.$element.val(f);t.$element.trigger("input").trigger("change")}):(r=n.id,this.$element.val(r),this.$element.trigger("input").trigger("change"))},r.prototype.unselect=function(n){var t=this;if(this.$element.prop("multiple")){if(n.selected=!1,i(n.element).is("option")){n.element.selected=!1;this.$element.trigger("input").trigger("change");return}this.current(function(r){for(var u,f=[],e=0;e<r.length;e++)u=r[e].id,u!==n.id&&i.inArray(u,f)===-1&&f.push(u);t.$element.val(f);t.$element.trigger("input").trigger("change")})}},r.prototype.bind=function(n){var t=this;this.container=n;n.on("select",function(n){t.select(n.data)});n.on("unselect",function(n){t.unselect(n.data)})},r.prototype.destroy=function(){this.$element.find("*").each(function(){t.RemoveData(this)})},r.prototype.query=function(n,t){var r=[],u=this,f=this.$element.children();f.each(function(){var t=i(this),e,f;(t.is("option")||t.is("optgroup"))&&(e=u.item(t),f=u.matches(n,e),f!==null&&r.push(f))});t({results:r})},r.prototype.addOptions=function(n){t.appendMany(this.$element,n)},r.prototype.option=function(n){var r,f,u;return n.children?(r=document.createElement("optgroup"),r.label=n.text):(r=document.createElement("option"),r.textContent!==undefined?r.textContent=n.text:r.innerText=n.text),n.id!==undefined&&(r.value=n.id),n.disabled&&(r.disabled=!0),n.selected&&(r.selected=!0),n.title&&(r.title=n.title),f=i(r),u=this._normalizeItem(n),u.element=r,t.StoreData(r,"data",u),f},r.prototype.item=function(n){var r={},f,e,u,o,s;if(r=t.GetData(n[0],"data"),r!=null)return r;if(n.is("option"))r={id:n.val(),text:n.text(),disabled:n.prop("disabled"),selected:n.prop("selected"),title:n.prop("title")};else if(n.is("optgroup")){for(r={text:n.prop("label"),children:[],title:n.prop("title")},f=n.children("option"),e=[],u=0;u<f.length;u++)o=i(f[u]),s=this.item(o),e.push(s);r.children=e}return r=this._normalizeItem(r),r.element=n[0],t.StoreData(n[0],"data",r),r},r.prototype._normalizeItem=function(n){n!==Object(n)&&(n={id:n,text:n});n=i.extend({},{text:""},n);return n.id!=null&&(n.id=n.id.toString()),n.text!=null&&(n.text=n.text.toString()),n._resultId==null&&n.id&&this.container!=null&&(n._resultId=this.generateResultId(this.container,n)),i.extend({},{selected:!1,disabled:!1},n)},r.prototype.matches=function(n,t){var i=this.options.get("matcher");return i(n,t)},r}),t.define("select2/data/array",["./select","../utils","jquery"],function(n,t,i){function r(n,t){this._dataToConvert=t.get("data")||[];r.__super__.constructor.call(this,n,t)}return t.Extend(r,n),r.prototype.bind=function(n,t){r.__super__.bind.call(this,n,t);this.addOptions(this.convertToOptions(this._dataToConvert))},r.prototype.select=function(n){var t=this.$element.find("option").filter(function(t,i){return i.value==n.id.toString()});t.length===0&&(t=this.option(n),this.addOptions(t));r.__super__.select.call(this,n)},r.prototype.convertToOptions=function(n){function a(n){return function(){return i(this).val()==n.id}}for(var r,f,h,c=this,e=this.$element.find("option"),l=e.map(function(){return c.item(i(this)).id}).get(),o=[],u=0;u<n.length;u++){if(r=this._normalizeItem(n[u]),i.inArray(r.id,l)>=0){var s=e.filter(a(r)),v=this.item(s),y=i.extend(!0,{},r,v),p=this.option(y);s.replaceWith(p);continue}f=this.option(r);r.children&&(h=this.convertToOptions(r.children),t.appendMany(f,h));o.push(f)}return o},r}),t.define("select2/data/ajax",["./array","../utils","jquery"],function(n,t,i){function r(n,t){this.ajaxOptions=this._applyDefaults(t.get("ajax"));this.ajaxOptions.processResults!=null&&(this.processResults=this.ajaxOptions.processResults);r.__super__.constructor.call(this,n,t)}return t.Extend(r,n),r.prototype._applyDefaults=function(n){var t={data:function(n){return i.extend({},n,{q:n.term})},transport:function(n,t,r){var u=i.ajax(n);return u.then(t),u.fail(r),u}};return i.extend({},t,n,!0)},r.prototype.processResults=function(n){return n},r.prototype.query=function(n,t){function f(){var f=r.transport(r,function(r){var f=u.processResults(r,n);u.options.get("debug")&&window.console&&console.error&&(f&&f.results&&i.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response."));t(f)},function(){"status"in f&&(f.status===0||f.status==="0")||u.trigger("results:message",{message:"errorLoading"})});u._request=f}var u=this,r;this._request!=null&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);r=i.extend({type:"GET"},this.ajaxOptions);typeof r.url=="function"&&(r.url=r.url.call(this.$element,n));typeof r.data=="function"&&(r.data=r.data.call(this.$element,n));this.ajaxOptions.delay&&n.term!=null?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(f,this.ajaxOptions.delay)):f()},r}),t.define("select2/data/tags",["jquery"],function(n){function t(t,i,r){var f=r.get("tags"),o=r.get("createTag"),e,u;if(o!==undefined&&(this.createTag=o),e=r.get("insertTag"),e!==undefined&&(this.insertTag=e),t.call(this,i,r),n.isArray(f))for(u=0;u<f.length;u++){var s=f[u],h=this._normalizeItem(s),c=this.option(h);this.$element.append(c)}}return t.prototype.query=function(n,t,i){function u(n,f){for(var o,c,e=n.results,s=0;s<e.length;s++){var h=e[s],l=h.children!=null&&!u({results:h.children},!0),a=(h.text||"").toUpperCase(),v=(t.term||"").toUpperCase(),y=a===v;if(y||l){if(f)return!1;n.data=e;i(n);return}}if(f)return!0;o=r.createTag(t);o!=null&&(c=r.option(o),c.attr("data-select2-tag",!0),r.addOptions([c]),r.insertTag(e,o));n.results=e;i(n)}var r=this;if(this._removeOldTags(),t.term==null||t.page!=null){n.call(this,t,i);return}n.call(this,t,u)},t.prototype.createTag=function(t,i){var r=n.trim(i.term);return r===""?null:{id:r,text:r}},t.prototype.insertTag=function(n,t,i){t.unshift(i)},t.prototype._removeOldTags=function(){var t=this.$element.find("option[data-select2-tag]");t.each(function(){this.selected||n(this).remove()})},t}),t.define("select2/data/tokenizer",["jquery"],function(n){function t(n,t,i){var r=i.get("tokenizer");r!==undefined&&(this.tokenizer=r);n.call(this,t,i)}return t.prototype.bind=function(n,t,i){n.call(this,t,i);this.$search=t.dropdown.$search||t.selection.$search||i.find(".select2-search__field")},t.prototype.query=function(t,i,r){function e(t){var i=u._normalizeItem(t),f=u.$element.find("option").filter(function(){return n(this).val()===i.id}),r;f.length||(r=u.option(i),r.attr("data-select2-tag",!0),u._removeOldTags(),u.addOptions([r]));o(i)}function o(n){u.trigger("select",{data:n})}var u=this,f;i.term=i.term||"";f=this.tokenizer(i,this.options,e);f.term!==i.term&&(this.$search.length&&(this.$search.val(f.term),this.$search.trigger("focus")),i.term=f.term);t.call(this,i,r)},t.prototype.tokenizer=function(t,i,r,u){for(var h=r.get("tokenSeparators")||[],e=i.term,f=0,c=this.createTag||function(n){return{id:n.term,text:n.term}},o;f<e.length;){if(o=e[f],n.inArray(o,h)===-1){f++;continue}var l=e.substr(0,f),a=n.extend({},i,{term:l}),s=c(a);if(s==null){f++;continue}u(s);e=e.substr(f+1)||"";f=0}return{term:e}},t}),t.define("select2/data/minimumInputLength",[],function(){function n(n,t,i){this.minimumInputLength=i.get("minimumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){if(t.term=t.term||"",t.term.length<this.minimumInputLength){this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:t.term,params:t}});return}n.call(this,t,i)},n}),t.define("select2/data/maximumInputLength",[],function(){function n(n,t,i){this.maximumInputLength=i.get("maximumInputLength");n.call(this,t,i)}return n.prototype.query=function(n,t,i){if(t.term=t.term||"",this.maximumInputLength>0&&t.term.length>this.maximumInputLength){this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}});return}n.call(this,t,i)},n}),t.define("select2/data/maximumSelectionLength",[],function(){function n(n,t,i){this.maximumSelectionLength=i.get("maximumSelectionLength");n.call(this,t,i)}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("select",function(){r._checkIfMaximumSelected()})},n.prototype.query=function(n,t,i){var r=this;this._checkIfMaximumSelected(function(){n.call(r,t,i)})},n.prototype._checkIfMaximumSelected=function(n,t){var i=this;this.current(function(n){var r=n!=null?n.length:0;if(i.maximumSelectionLength>0&&r>=i.maximumSelectionLength){i.trigger("results:message",{message:"maximumSelected",args:{maximum:i.maximumSelectionLength}});return}t&&t()})},n}),t.define("select2/dropdown",["jquery","./utils"],function(n,t){function i(n,t){this.$element=n;this.options=t;i.__super__.constructor.call(this)}return t.Extend(i,t.Observable),i.prototype.render=function(){var t=n('<span class="select2-dropdown"><span class="select2-results"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$dropdown=t,t},i.prototype.bind=function(){},i.prototype.position=function(){},i.prototype.destroy=function(){this.$dropdown.remove()},i}),t.define("select2/dropdown/search",["jquery","../utils"],function(n){function t(){}return t.prototype.render=function(t){var u=t.call(this),i=n('<span class="select2-search select2-search--dropdown"><label style="margin-top:6px;" for="select2-search__field-id">Search<\/label><input id="select2-search__field-id" class="select2-search__field" type="search" tabindex="0" autocomplete="off" autocorrect="off" autocapitalize="none" spellcheck="false" aria-label="searchbox" role="searchbox" aria-autocomplete="list" /><\/span>'),r;return this.$searchContainer=i,this.$search=i.find("input"),r=this.options.get("select2Id"),this.$search.attr("aria-describedby",r+"-show-loading"),n("#"+r).attr("aria-required")==="true"&&this.$search.attr("aria-required",!0),u.prepend(i),u},t.prototype.bind=function(t,i,r){var u=this,f=i.id+"-results";t.call(this,i,r);this.$search.on("keydown",function(n){u.trigger("keypress",n);u._keyUpPrevented=n.isDefaultPrevented()});this.$search.on("input",function(){n(this).off("keyup")});this.$search.on("keyup input",function(n){u.handleSearch(n)});i.on("open",function(){u.$search.attr("tabindex",0);u.$search.attr("aria-controls",f);u.$search.attr("aria-label",u.$container.prev().prev().text()==""||"'\n"?"Searchbox":u.$container.prev().prev().text());u.$search.trigger("focus");window.setTimeout(function(){u.$search.trigger("focus")},0)});i.on("close",function(){u.$search.attr("tabindex",-1);u.$search.removeAttr("aria-controls");u.$search.removeAttr("aria-activedescendant");u.$search.val("");u.$search.trigger("blur")});i.on("focus",function(){i.isOpen()||u.$search.trigger("focus")});i.on("results:all",function(n){if(n.query.term==null||n.query.term===""){var t=u.showSearch(n);t?u.$searchContainer.removeClass("select2-search--hide"):u.$searchContainer.addClass("select2-search--hide")}});i.on("results:focus",function(n){n.data._resultId?u.$search.attr("aria-activedescendant",n.data._resultId):u.$search.removeAttr("aria-activedescendant")})},t.prototype.handleSearch=function(){if(!this._keyUpPrevented){var n=this.$search.val();this.trigger("query",{term:n})}this._keyUpPrevented=!1},t.prototype.showSearch=function(){return!0},t}),t.define("select2/dropdown/hidePlaceholder",[],function(){function n(n,t,i,r){this.placeholder=this.normalizePlaceholder(i.get("placeholder"));n.call(this,t,i,r)}return n.prototype.append=function(n,t){t.results=this.removePlaceholder(t.results);n.call(this,t)},n.prototype.normalizePlaceholder=function(n,t){return typeof t=="string"&&(t={id:"",text:t}),t},n.prototype.removePlaceholder=function(n,t){for(var u,r=t.slice(0),i=t.length-1;i>=0;i--)u=t[i],this.placeholder.id===u.id&&r.splice(i,1);return r},n}),t.define("select2/dropdown/infiniteScroll",["jquery"],function(n){function t(n,t,i,r){this.lastParams={};n.call(this,t,i,r);this.$loadingMore=this.createLoadingMore();this.loading=!1}return t.prototype.append=function(n,t){this.$loadingMore.remove();this.loading=!1;n.call(this,t);this.showLoadingMore(t)&&(this.$results.append(this.$loadingMore),this.loadMoreIfNeeded())},t.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("query",function(n){r.lastParams=n;r.loading=!0});t.on("query:append",function(n){r.lastParams=n;r.loading=!0});this.$results.on("scroll",this.loadMoreIfNeeded.bind(this))},t.prototype.loadMoreIfNeeded=function(){var r=n.contains(document.documentElement,this.$loadingMore[0]),t,i;!this.loading&&r&&(t=this.$results.offset().top+this.$results.outerHeight(!1),i=this.$loadingMore.offset().top+this.$loadingMore.outerHeight(!1),t+50>=i&&this.loadMore())},t.prototype.loadMore=function(){this.loading=!0;var t=n.extend({},{page:1},this.lastParams);t.page++;this.trigger("query:append",t)},t.prototype.showLoadingMore=function(n,t){return t.pagination&&t.pagination.more},t.prototype.createLoadingMore=function(){var t=n('<li class="select2-results__option select2-results__option--load-more"aria-disabled="true"><\/li>'),i=this.options.get("translations").get("loadingMore");return t.html(i(this.lastParams)),t},t}),t.define("select2/dropdown/attachBody",["jquery","../utils"],function(n,t){function i(t,i,r){this.$dropdownParent=n(r.get("dropdownParent")||i.parent()||document.body);t.call(this,i,r)}return i.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("open",function(){r._showDropdown();r._attachPositioningHandler(t);r._bindContainerResultHandlers(t)});t.on("close",function(){r._hideDropdown();r._detachPositioningHandler(t)});this.$dropdownContainer.on("mousedown",function(n){n.stopPropagation()})},i.prototype.destroy=function(n){n.call(this);this.$dropdownContainer.remove()},i.prototype.position=function(n,t,i){t.attr("class",i.attr("class"));t.removeClass("select2");t.addClass("select2-container--open");t.css({position:"absolute",top:-999999});this.$container=i},i.prototype.render=function(t){var i=n("<span><\/span>"),r=t.call(this);return i.append(r),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(){this.$dropdownContainer.detach()},i.prototype._bindContainerResultHandlers=function(n,t){if(!this._containerResultsHandlersBound){var i=this;t.on("results:all",function(){i._positionDropdown();i._resizeDropdown()});t.on("results:append",function(){i._positionDropdown();i._resizeDropdown()});t.on("results:message",function(){i._positionDropdown();i._resizeDropdown()});t.on("select",function(){i._positionDropdown();i._resizeDropdown()});t.on("unselect",function(){i._positionDropdown();i._resizeDropdown()});this._containerResultsHandlersBound=!0}},i.prototype._attachPositioningHandler=function(i,r){var u=this,f="scroll.select2."+r.id,o="resize.select2."+r.id,s="orientationchange.select2."+r.id,e=this.$container.parents().filter(t.hasScroll);e.each(function(){t.StoreData(this,"select2-scroll-position",{x:n(this).scrollLeft(),y:n(this).scrollTop()})});e.on(f,function(){var i=t.GetData(this,"select2-scroll-position");n(this).scrollTop(i.y)});n(window).on(f+" "+o+" "+s,function(){u._positionDropdown();u._resizeDropdown()})},i.prototype._detachPositioningHandler=function(i,r){var u="scroll.select2."+r.id,f="resize.select2."+r.id,e="orientationchange.select2."+r.id,o=this.$container.parents().filter(t.hasScroll);o.off(u);n(window).off(u+" "+f+" "+e)},i.prototype._positionDropdown=function(){var s=n(window),e=this.$dropdown.hasClass("select2-dropdown--above"),v=this.$dropdown.hasClass("select2-dropdown--below"),t=null,i=this.$container.offset(),r,f;i.bottom=i.top+this.$container.outerHeight(!1);r={height:this.$container.outerHeight(!1)};r.top=i.top;r.bottom=i.top+r.height;var h={height:this.$dropdown.outerHeight(!1)},c={top:s.scrollTop(),bottom:s.scrollTop()+s.height()},l=c.top<i.top-h.height,a=c.bottom>i.bottom+h.height,o={left:i.left,top:r.bottom},u=this.$dropdownParent;u.css("position")==="static"&&(u=u.offsetParent());f={top:0,left:0};(n.contains(document.body,u[0])||u[0].isConnected)&&(f=u.offset());o.top-=f.top;o.left-=f.left;e||v||(t="below");a||!l||e?!l&&a&&e&&(t="below"):t="above";(t=="above"||e&&t!=="below")&&(o.top=r.top-f.top-h.height);this.$dropdown.attr("aria-expanded","true");t!=null&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+t),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+t));this.$dropdownContainer.css(o)},i.prototype._resizeDropdown=function(){var n={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(n.minWidth=n.width,n.position="relative",n.width="auto");this.$dropdown.css(n)},i.prototype._showDropdown=function(){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown()},i}),t.define("select2/dropdown/minimumResultsForSearch",[],function(){function n(t){for(var u,i=0,r=0;r<t.length;r++)u=t[r],u.children?i+=n(u.children):i++;return i}function t(n,t,i,r){this.minimumResultsForSearch=i.get("minimumResultsForSearch");this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=Infinity);n.call(this,t,i,r)}return t.prototype.showSearch=function(t,i){return n(i.data.results)<this.minimumResultsForSearch?!1:t.call(this,i)},t}),t.define("select2/dropdown/selectOnClose",["../utils"],function(n){function t(){}return t.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("close",function(n){r._handleSelectOnClose(n)})},t.prototype._handleSelectOnClose=function(t,i){var u,f,r;i&&i.originalSelect2Event!=null&&(u=i.originalSelect2Event,u._type==="select"||u._type==="unselect")||(f=this.getHighlightedResults(),f.length<1)||(r=n.GetData(f[0],"data"),r.element!=null&&r.element.selected||r.element==null&&r.selected)||this.trigger("select",{data:r})},t}),t.define("select2/dropdown/closeOnSelect",[],function(){function n(){}return n.prototype.bind=function(n,t,i){var r=this;n.call(this,t,i);t.on("select",function(n){r._selectTriggered(n)});t.on("unselect",function(n){r._selectTriggered(n)})},n.prototype._selectTriggered=function(n,t){var i=t.originalEvent;i&&(i.ctrlKey||i.metaKey)||this.trigger("close",{originalEvent:i,originalSelect2Event:t})},n}),t.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(n){var t=n.input.length-n.maximum,i="Please delete "+t+" character";return t!=1&&(i+="s"),i},inputTooShort:function(n){var t=n.minimum-n.input.length;return"Please enter "+t+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(n){var t="You can only select "+n.maximum+" item";return n.maximum!=1&&(t+="s"),t},noResults:function(){return"No results found"},searching:function(){return"Searching…"},removeAllItems:function(){return"Remove all items"}}}),t.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],function(n,t,i,r,u,f,e,o,s,h,c,l,a,v,y,p,w,b,k,d,g,nt,tt,it,rt,ut,ft,et){function ot(){this.reset()}ot.prototype.apply=function(c){var ht,ct,lt,at,vt,l,ot,st;for(c=n.extend(!0,{},this.defaults,c),c.dataAdapter==null&&(c.dataAdapter=c.ajax!=null?y:c.data!=null?v:a,c.minimumInputLength>0&&(c.dataAdapter=h.Decorate(c.dataAdapter,b)),c.maximumInputLength>0&&(c.dataAdapter=h.Decorate(c.dataAdapter,k)),c.maximumSelectionLength>0&&(c.dataAdapter=h.Decorate(c.dataAdapter,d)),c.tags&&(c.dataAdapter=h.Decorate(c.dataAdapter,p)),(c.tokenSeparators!=null||c.tokenizer!=null)&&(c.dataAdapter=h.Decorate(c.dataAdapter,w)),c.query!=null&&(ht=t(c.amdBase+"compat/query"),c.dataAdapter=h.Decorate(c.dataAdapter,ht)),c.initSelection!=null&&(ct=t(c.amdBase+"compat/initSelection"),c.dataAdapter=h.Decorate(c.dataAdapter,ct))),c.resultsAdapter==null&&(c.resultsAdapter=i,c.ajax!=null&&(c.resultsAdapter=h.Decorate(c.resultsAdapter,it)),c.placeholder!=null&&(c.resultsAdapter=h.Decorate(c.resultsAdapter,tt)),c.selectOnClose&&(c.resultsAdapter=h.Decorate(c.resultsAdapter,ft))),c.dropdownAdapter==null&&(c.multiple?c.dropdownAdapter=g:(lt=h.Decorate(g,nt),c.dropdownAdapter=lt),c.minimumResultsForSearch!==0&&(c.dropdownAdapter=h.Decorate(c.dropdownAdapter,ut)),c.closeOnSelect&&(c.dropdownAdapter=h.Decorate(c.dropdownAdapter,et)),(c.dropdownCssClass!=null||c.dropdownCss!=null||c.adaptDropdownCssClass!=null)&&(at=t(c.amdBase+"compat/dropdownCss"),c.dropdownAdapter=h.Decorate(c.dropdownAdapter,at)),c.dropdownAdapter=h.Decorate(c.dropdownAdapter,rt)),c.selectionAdapter==null&&(c.selectionAdapter=c.multiple?u:r,c.placeholder!=null&&(c.selectionAdapter=h.Decorate(c.selectionAdapter,f)),c.allowClear&&(c.selectionAdapter=h.Decorate(c.selectionAdapter,e)),c.multiple&&(c.selectionAdapter=h.Decorate(c.selectionAdapter,o)),(c.containerCssClass!=null||c.containerCss!=null||c.adaptContainerCssClass!=null)&&(vt=t(c.amdBase+"compat/containerCss"),c.selectionAdapter=h.Decorate(c.selectionAdapter,vt)),c.selectionAdapter=h.Decorate(c.selectionAdapter,s)),c.language=this._resolveLanguage(c.language),c.language.push("en"),l=[],ot=0;ot<c.language.length;ot++)st=c.language[ot],l.indexOf(st)===-1&&l.push(st);return c.language=l,c.translations=this._processTranslations(c.language,c.debug),c};ot.prototype.reset=function(){function i(n){function t(n){return l[n]||n}return n.replace(/[^\u0000-\u007E]/g,t)}function t(r,u){var f,e,o,s,h,c;if(n.trim(r.term)==="")return u;if(u.children&&u.children.length>0){for(f=n.extend(!0,{},u),e=u.children.length-1;e>=0;e--)o=u.children[e],s=t(r,o),s==null&&f.children.splice(e,1);return f.children.length>0?f:t(r,f)}return(h=i(u.text).toUpperCase(),c=i(r.term).toUpperCase(),h.indexOf(c)>-1)?u:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:h.escapeMarkup,language:{},matcher:t,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,scrollAfterSelect:!1,sorter:function(n){return n},templateResult:function(n){return n.text},templateSelection:function(n){return n.text},theme:"default",width:"resolve"}};ot.prototype.applyFromElement=function(n,t){var i=n.language,r=this.defaults.language,u=t.prop("lang"),f=t.closest("[lang]").prop("lang"),e=Array.prototype.concat.call(this._resolveLanguage(u),this._resolveLanguage(i),this._resolveLanguage(r),this._resolveLanguage(f));return n.language=e,n};ot.prototype._resolveLanguage=function(t){var r,u,i,f,e;if(!t)return[];if(n.isEmptyObject(t))return[];if(n.isPlainObject(t))return[t];for(r=n.isArray(t)?t:[t],u=[],i=0;i<r.length;i++)u.push(r[i]),typeof r[i]=="string"&&r[i].indexOf("-")>0&&(f=r[i].split("-"),e=f[0],u.push(e));return u};ot.prototype._processTranslations=function(t,i){for(var u,r,e=new c,f=0;f<t.length;f++){if(u=new c,r=t[f],typeof r=="string")try{u=c.loadPath(r)}catch(o){try{r=this.defaults.amdLanguageBase+r;u=c.loadPath(r)}catch(s){i&&window.console&&console.warn&&console.warn('Select2: The language file for "'+r+'" could not be automatically loaded. A fallback will be used instead.')}}else u=n.isPlainObject(r)?new c(r):r;e.extend(u)}return e};ot.prototype.set=function(t,i){var f=n.camelCase(t),r={},u;r[f]=i;u=h._convertData(r);n.extend(!0,this.defaults,u)};return new ot}),t.define("select2/options",["require","jquery","./defaults","./utils"],function(n,t,i,r){function u(t,u){if(this.options=t,u!=null&&this.fromElement(u),u!=null&&(this.options=i.applyFromElement(this.options,u)),this.options=i.apply(this.options),u&&u.is("input")){var f=n(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=r.Decorate(this.options.dataAdapter,f)}}return u.prototype.fromElement=function(n){function l(n,t){return t.toUpperCase()}var c=["select2"],f,e,s,o,u,i;for(this.options.multiple==null&&(this.options.multiple=n.prop("multiple")),this.options.disabled==null&&(this.options.disabled=n.prop("disabled")),this.options.dir==null&&(this.options.dir=n.prop("dir")?n.prop("dir"):n.closest("[dir]").prop("dir")?n.closest("[dir]").prop("dir"):"ltr"),n.prop("disabled",this.options.disabled),n.prop("multiple",this.options.multiple),r.GetData(n[0],"select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),r.StoreData(n[0],"data",r.GetData(n[0],"select2Tags")),r.StoreData(n[0],"tags",!0)),r.GetData(n[0],"ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),n.attr("ajax--url",r.GetData(n[0],"ajaxUrl")),r.StoreData(n[0],"ajax-Url",r.GetData(n[0],"ajaxUrl"))),f={},e=0;e<n[0].attributes.length;e++)if(s=n[0].attributes[e].name,o="data-",s.substr(0,o.length)==o){var h=s.substring(o.length),a=r.GetData(n[0],h),v=h.replace(/-([a-z])/g,l);f[v]=a}t.fn.jquery&&t.fn.jquery.substr(0,2)=="1."&&n[0].dataset&&(f=t.extend(!0,{},n[0].dataset,f));u=t.extend(!0,{},r.GetData(n[0]),f);u=r._convertData(u);for(i in u)t.inArray(i,c)>-1||(t.isPlainObject(this.options[i])?t.extend(this.options[i],u[i]):this.options[i]=u[i]);return this},u.prototype.get=function(n){return this.options[n]},u.prototype.set=function(n,t){this.options[n]=t},u}),t.define("select2/core",["jquery","./options","./utils","./keys"],function(n,t,i,r){var u=function(n,r){var e,o,f,s,h,c,l;i.GetData(n[0],"select2")!=null&&i.GetData(n[0],"select2").destroy();this.$element=n;this.id=this._generateId(n);r=r||{};this.options=new t(r,n);u.__super__.constructor.call(this);e=n.attr("tabindex")||0;i.StoreData(n[0],"old-tabindex",e);n.attr("tabindex","-1");o=this.options.get("dataAdapter");this.dataAdapter=new o(n,this.options);f=this.render();this._placeContainer(f);s=this.options.get("selectionAdapter");this.selection=new s(n,this.options);this.$selection=this.selection.render();this.selection.position(this.$selection,f);h=this.options.get("dropdownAdapter");this.dropdown=new h(n,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,f);c=this.options.get("resultsAdapter");this.results=new c(n,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);l=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.dataAdapter.current(function(n){l.trigger("selection:update",{data:n})});n.addClass("select2-hidden-accessible");n.attr("aria-hidden","true");this._syncAttributes();i.StoreData(n[0],"select2",this);n.data("select2",this)};return i.Extend(u,i.Observable),u.prototype._generateId=function(n){var t="";return t=n.attr("id")!=null?n.attr("id"):n.attr("name")!=null?n.attr("name")+"-"+i.generateChars(2):i.generateChars(4),t=t.replace(/(:|\.|\[|\]|,)/g,""),"select2-"+t},u.prototype._placeContainer=function(n){n.insertAfter(this.$element);var t=this._resolveWidth(this.$element,this.options.get("width"));t!=null&&n.css("width",t)},u.prototype._resolveWidth=function(n,t){var u,f,e,o,i,s,h,r,c;if(t=="resolve")return(u=this._resolveWidth(n,"style"),u!=null)?u:this._resolveWidth(n,"element");if(t=="element")return(f=n.outerWidth(!1),f<=0)?"auto":f+"px";if(t=="style"){if(e=n.attr("style"),typeof e!="string")return null;for(o=e.split(";"),i=0,s=o.length;i<s;i=i+1)if(h=o[i].replace(/\s/g,""),r=h.match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i),r!==null&&r.length>=1)return r[1];return null}return t=="computedstyle"?(c=window.getComputedStyle(n[0]),c.width):t},u.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container);this.selection.bind(this,this.$container);this.dropdown.bind(this,this.$container);this.results.bind(this,this.$container)},u.prototype._registerDomEvents=function(){var n=this,t;this.$element.on("change.select2",function(){n.dataAdapter.current(function(t){n.trigger("selection:update",{data:t})})});this.$element.on("focus.select2",function(t){n.trigger("focus",t)});this._syncA=i.bind(this._syncAttributes,this);this._syncS=i.bind(this._syncSubtree,this);this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);t=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;t!=null?(this._observer=new t(function(t){n._syncA();n._syncS(null,t)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",n._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",n._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",n._syncS,!1))},u.prototype._registerDataEvents=function(){var n=this;this.dataAdapter.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerSelectionEvents=function(){var t=this,i=["toggle","focus"];this.selection.on("toggle",function(){t.toggleDropdown()});this.selection.on("focus",function(n){t.focus(n)});this.selection.on("*",function(r,u){n.inArray(r,i)===-1&&t.trigger(r,u)})},u.prototype._registerDropdownEvents=function(){var n=this;this.dropdown.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerResultsEvents=function(){var n=this;this.results.on("*",function(t,i){n.trigger(t,i)})},u.prototype._registerEvents=function(){var n=this;this.on("open",function(){n.$container.addClass("select2-container--open")});this.on("close",function(){n.$container.removeClass("select2-container--open")});this.on("enable",function(){n.$container.removeClass("select2-container--disabled")});this.on("disable",function(){n.$container.addClass("select2-container--disabled")});this.on("blur",function(){n.$container.removeClass("select2-container--focus")});this.on("query",function(t){n.isOpen()||n.trigger("open",{});this.dataAdapter.query(t,function(i){n.trigger("results:all",{data:i,query:t})})});this.on("query:append",function(t){this.dataAdapter.query(t,function(i){n.trigger("results:append",{data:i,query:t})})});this.on("keypress",function(t){var i=t.which;n.isOpen()?i===r.ESC||i===r.UP&&t.altKey?(n.close(t),t.preventDefault()):i===r.TAB?(n.close(t),t.preventDefault()):i===r.ENTER?(n.trigger("results:select",{}),t.preventDefault()):i===r.SPACE&&t.ctrlKey?(n.trigger("results:toggle",{}),t.preventDefault()):i===r.UP?(n.trigger("results:previous",{}),t.preventDefault()):i===r.DOWN&&(n.trigger("results:next",{}),t.preventDefault()):(i===r.ENTER||i===r.SPACE||i===r.DOWN&&t.altKey)&&(n.open(),t.preventDefault())})},u.prototype._syncAttributes=function(){this.options.set("disabled",this.$element.prop("disabled"));this.isDisabled()?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},u.prototype._isChangeMutation=function(t,i){var r=!1,e=this,u,f;if(!t||!t.target||t.target.nodeName==="OPTION"||t.target.nodeName==="OPTGROUP"){if(i)if(i.addedNodes&&i.addedNodes.length>0)for(u=0;u<i.addedNodes.length;u++)f=i.addedNodes[u],f.selected&&(r=!0);else i.removedNodes&&i.removedNodes.length>0?r=!0:n.isArray(i)&&n.each(i,function(n,t){if(e._isChangeMutation(n,t))return r=!0,!1});else r=!0;return r}},u.prototype._syncSubtree=function(n,t){var i=this._isChangeMutation(n,t),r=this;i&&this.dataAdapter.current(function(n){r.trigger("selection:update",{data:n})})},u.prototype.trigger=function(n,t){var r=u.__super__.trigger,f={open:"opening",close:"closing",select:"selecting",unselect:"unselecting",clear:"clearing"},e,i;if(t===undefined&&(t={}),n in f&&(e=f[n],i={prevented:!1,name:n,args:t},r.call(this,e,i),i.prevented)){t.prevented=!0;return}r.call(this,n,t)},u.prototype.toggleDropdown=function(){this.isDisabled()||(this.isOpen()?this.close():this.open())},u.prototype.open=function(){this.isOpen()||this.isDisabled()||this.trigger("query",{})},u.prototype.close=function(n){this.isOpen()&&this.trigger("close",{originalEvent:n})},u.prototype.isEnabled=function(){return!this.isDisabled()},u.prototype.isDisabled=function(){return this.options.get("disabled")},u.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},u.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},u.prototype.focus=function(){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},u.prototype.enable=function(n){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');(n==null||n.length===0)&&(n=[!0]);var t=!n[0];this.$element.prop("disabled",t)},u.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var n=[];return this.dataAdapter.current(function(t){n=t}),n},u.prototype.val=function(t){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),t==null||t.length===0)return this.$element.val();var i=t[0];n.isArray(i)&&(i=n.map(i,function(n){return n.toString()}));this.$element.val(i).trigger("input").trigger("change")},u.prototype.destroy=function(){this.$container.remove();this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA);this._observer!=null?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1));this._syncA=null;this._syncS=null;this.$element.off(".select2");this.$element.attr("tabindex",i.GetData(this.$element[0],"old-tabindex"));this.$element.removeClass("select2-hidden-accessible");this.$element.attr("aria-hidden","false");i.RemoveData(this.$element[0]);this.$element.removeData("select2");this.dataAdapter.destroy();this.selection.destroy();this.dropdown.destroy();this.results.destroy();this.dataAdapter=null;this.selection=null;this.dropdown=null;this.results=null},u.prototype.render=function(){var t=n('<span class="select2 select2-container"><span class="selection"><\/span><span class="dropdown-wrapper" aria-hidden="true"><\/span><\/span>');return t.attr("dir",this.options.get("dir")),this.$container=t,this.$container.addClass("select2-container--"+this.options.get("theme")),i.StoreData(t[0],"element",this.$element),t},u}),t.define("jquery-mousewheel",["jquery"],function(n){return n}),t.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(n,t,i,r,u){if(n.fn.select2==null){var f=["open","close","destroy"];n.fn.select2=function(t){if(t=t||{},typeof t=="object")return this.each(function(){var r=n.extend(!0,{},t),u=new i(n(this),r)}),this;if(typeof t=="string"){var r,e=Array.prototype.slice.call(arguments,1);return(this.each(function(){var n=u.GetData(this,"select2");n==null&&window.console&&console.error&&console.error("The select2('"+t+"') method was called on an element that is not using Select2.");r=n[t].apply(n,e)}),n.inArray(t,f)>-1)?this:r}throw new Error("Invalid arguments for Select2: "+t);}}return n.fn.select2.defaults==null&&(n.fn.select2.defaults=r),i}),{define:t.define,require:t.require}}(),i=t.require("jquery.select2");return n.fn.select2.amd=t,i}),function(n){typeof module=="object"&&module.exports?module.exports=n(require("jquery"),window,document):typeof define=="function"&&define.amd?define(["jquery"],function(t){n(t,window,document)}):n(jQuery,window,document)}(function(n,t,i,r){"use strict";function y(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}function l(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}function p(n,t,i){return t&&l(n.prototype,t),i&&l(n,i),n}for(var f,c,e,u=[["Afghanistan (‫افغانستان‬‎)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (‫الجزائر‬‎)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (‫البحرين‬‎)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2],["Cocos (Keeling) Islands","cc","61",1],["Colombia","co","57"],["Comoros (‫جزر القمر‬‎)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (‫مصر‬‎)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (‫ایران‬‎)","ir","98"],["Iraq (‫العراق‬‎)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (‫ישראל‬‎)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (‫الأردن‬‎)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (‫الكويت‬‎)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (‫لبنان‬‎)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (‫ليبيا‬‎)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["Macedonia (FYROM) (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (‫موريتانيا‬‎)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (‫المغرب‬‎)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (‫عُمان‬‎)","om","968"],["Pakistan (‫پاکستان‬‎)","pk","92"],["Palau","pw","680"],["Palestine (‫فلسطين‬‎)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (‫قطر‬‎)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (‫المملكة العربية السعودية‬‎)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (‫جنوب السودان‬‎)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්‍රී ලංකාව)","lk","94"],["Sudan (‫السودان‬‎)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Swaziland","sz","268"],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (‫سوريا‬‎)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (‫تونس‬‎)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (‫الإمارات العربية المتحدة‬‎)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (‫الصحراء الغربية‬‎)","eh","212",1,["5288","5289"]],["Yemen (‫اليمن‬‎)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],o=0;o<u.length;o++)f=u[o],u[o]={name:f[0],iso2:f[1],dialCode:f[2],priority:f[3]||0,areaCodes:f[4]||null};t.intlTelInputGlobals={getInstance:function(n){var i=n.getAttribute("data-intl-tel-input-id");return t.intlTelInputGlobals.instances[i]},instances:{}};var w=0,a={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},b=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"];t.addEventListener("load",function(){t.intlTelInputGlobals.windowLoaded=!0});var h=function(n,t){for(var r=Object.keys(n),i=0;i<r.length;i++)t(r[i],n[r[i]])},s=function(n){h(t.intlTelInputGlobals.instances,function(i){t.intlTelInputGlobals.instances[i][n]()})},v=function(){function n(t,i){var u=this,r;y(this,n);this.id=w++;this.telInput=t;this.activeItem=null;this.highlightedItem=null;r=i||{};this.options={};h(a,function(n,t){u.options[n]=r.hasOwnProperty(n)?r[n]:t});this.hadInitialPlaceholder=Boolean(t.getAttribute("placeholder"))}return p(n,[{key:"_init",value:function(){var n=this,t,r;this.options.nationalMode&&(this.options.autoHideDialCode=!1);this.options.separateDialCode&&(this.options.autoHideDialCode=this.options.nationalMode=!1);this.isMobile=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);this.isMobile&&(i.body.classList.add("iti-mobile"),this.options.dropdownContainer||(this.options.dropdownContainer=i.body));typeof Promise!="undefined"?(t=new Promise(function(t,i){n.resolveAutoCountryPromise=t;n.rejectAutoCountryPromise=i}),r=new Promise(function(t,i){n.resolveUtilsScriptPromise=t;n.rejectUtilsScriptPromise=i}),this.promise=Promise.all([t,r])):(this.resolveAutoCountryPromise=this.rejectAutoCountryPromise=function(){},this.resolveUtilsScriptPromise=this.rejectUtilsScriptPromise=function(){});this.selectedCountryData={};this._processCountryData();this._generateMarkup();this._setInitialState();this._initListeners();this._initRequests()}},{key:"_processCountryData",value:function(){this._processAllCountries();this._processCountryCodes();this._processPreferredCountries();this.options.localizedCountries&&this._translateCountriesByLocale();(this.options.onlyCountries.length||this.options.localizedCountries)&&this.countries.sort(this._countryNameSort)}},{key:"_addCountryCode",value:function(n,t,i){var u,f;for(t.length>this.dialCodeMaxLen&&(this.dialCodeMaxLen=t.length),this.countryCodes.hasOwnProperty(t)||(this.countryCodes[t]=[]),u=0;u<this.countryCodes[t].length;u++)if(this.countryCodes[t][u]===n)return;f=i!==r?i:this.countryCodes[t].length;this.countryCodes[t][f]=n}},{key:"_processAllCountries",value:function(){var n,t;this.options.onlyCountries.length?(n=this.options.onlyCountries.map(function(n){return n.toLowerCase()}),this.countries=u.filter(function(t){return n.indexOf(t.iso2)>-1})):this.options.excludeCountries.length?(t=this.options.excludeCountries.map(function(n){return n.toLowerCase()}),this.countries=u.filter(function(n){return t.indexOf(n.iso2)===-1})):this.countries=u}},{key:"_translateCountriesByLocale",value:function(){for(var t,n=0;n<this.countries.length;n++)t=this.countries[n].iso2.toLowerCase(),this.options.localizedCountries.hasOwnProperty(t)&&(this.countries[n].name=this.options.localizedCountries[t])}},{key:"_countryNameSort",value:function(n,t){return n.name.localeCompare(t.name)}},{key:"_processCountryCodes",value:function(){var t,i,r,n,s,u,f,e,o;for(this.dialCodeMaxLen=0,this.countryCodes={},t=0;t<this.countries.length;t++)i=this.countries[t],this._addCountryCode(i.iso2,i.dialCode,i.priority);for(r=0;r<this.countries.length;r++)if(n=this.countries[r],n.areaCodes)for(s=this.countryCodes[n.dialCode][0],u=0;u<n.areaCodes.length;u++){for(f=n.areaCodes[u],e=1;e<f.length;e++)o=n.dialCode+f.substr(0,e),this._addCountryCode(s,o),this._addCountryCode(n.iso2,o);this._addCountryCode(n.iso2,n.dialCode+f)}}},{key:"_processPreferredCountries",value:function(){var n,i,t;for(this.preferredCountries=[],n=0;n<this.options.preferredCountries.length;n++)i=this.options.preferredCountries[n].toLowerCase(),t=this._getCountryData(i,!1,!0),t&&this.preferredCountries.push(t)}},{key:"_createEl",value:function(n,t,r){var u=i.createElement(n);return t&&h(t,function(n,t){return u.setAttribute(n,t)}),r&&r.appendChild(u),u}},{key:"_generateMarkup",value:function(){var n,t,i,r,u;this.telInput.setAttribute("autocomplete","tel");n="iti";this.options.allowDropdown&&(n+=" iti--allow-dropdown");this.options.separateDialCode&&(n+=" iti--separate-dial-code");this.options.customContainer&&(n+=" ",n+=this.options.customContainer);t=this._createEl("div",{"class":n});this.telInput.parentNode.insertBefore(t,this.telInput);this.flagsContainer=this._createEl("div",{"class":"iti__flag-container"},t);t.appendChild(this.telInput);this.selectedFlag=this._createEl("div",{"class":"iti__selected-flag",role:"combobox","aria-owns":"country-listbox","aria-controls":"country-listbox","aria-label":"Select country calling code","aria-expanded":"true"},this.flagsContainer);this.selectedFlagInner=this._createEl("div",{"class":"iti__flag"},this.selectedFlag);this.options.separateDialCode&&(this.selectedDialCode=this._createEl("div",{"class":"iti__selected-dial-code"},this.selectedFlag));this.options.allowDropdown&&(this.selectedFlag.setAttribute("tabindex","0"),this.dropdownArrow=this._createEl("div",{"class":"iti__arrow"},this.selectedFlag),this.countryList=this._createEl("ul",{"class":"iti__country-list iti__hide",id:"country-listbox","aria-expanded":"false",role:"listbox"}),this.preferredCountries.length&&(this._appendListItems(this.preferredCountries,"iti__preferred"),this._createEl("li",{"class":"iti__divider",role:"separator","aria-disabled":"true"},this.countryList)),this._appendListItems(this.countries,"iti__standard"),this.options.dropdownContainer?(this.dropdown=this._createEl("div",{"class":"iti iti--container"}),this.dropdown.appendChild(this.countryList)):this.flagsContainer.appendChild(this.countryList));this.options.hiddenInput&&(i=this.options.hiddenInput,r=this.telInput.getAttribute("name"),r&&(u=r.lastIndexOf("["),u!==-1&&(i="".concat(r.substr(0,u),"[").concat(i,"]"))),this.hiddenInput=this._createEl("input",{type:"hidden",name:i}),t.appendChild(this.hiddenInput))}},{key:"_appendListItems",value:function(n,t){for(var i,r="",u=0;u<n.length;u++)i=n[u],r+="<li class='iti__country ".concat(t,"' tabIndex='-1' id='iti-item-").concat(i.iso2,"' role='option' data-dial-code='").concat(i.dialCode,"' data-country-code='").concat(i.iso2,"'>"),r+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(i.iso2,"'><\/div><\/div>"),r+="<span class='iti__country-name'>".concat(i.name,"<\/span>"),r+="<span class='iti__dial-code'>+".concat(i.dialCode,"<\/span>"),r+="<\/li>";this.countryList.insertAdjacentHTML("beforeend",r)}},{key:"_setInitialState",value:function(){var n=this.telInput.value,r=this._getDialCode(n),u=this._isRegionlessNanp(n),t=this.options,i=t.initialCountry,f=t.nationalMode,e=t.autoHideDialCode,o=t.separateDialCode;r&&!u?this._updateFlagFromNumber(n):i!=="auto"&&(i?this._setFlag(i.toLowerCase()):r&&u?this._setFlag("us"):(this.defaultCountry=this.preferredCountries.length?this.preferredCountries[0].iso2:this.countries[0].iso2,n||this._setFlag(this.defaultCountry)),n||f||e||o||(this.telInput.value="+".concat(this.selectedCountryData.dialCode)));n&&this._updateValFromNumber(n)}},{key:"_initListeners",value:function(){this._initKeyListeners();this.options.autoHideDialCode&&this._initBlurListeners();this.options.allowDropdown&&this._initDropdownListeners();this.hiddenInput&&this._initHiddenInputListener()}},{key:"_initHiddenInputListener",value:function(){var n=this;this._handleHiddenInputSubmit=function(){n.hiddenInput.value=n.getNumber()};this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleHiddenInputSubmit)}},{key:"_getClosestLabel",value:function(){for(var n=this.telInput;n&&n.tagName!=="LABEL";)n=n.parentNode;return n}},{key:"_initDropdownListeners",value:function(){var n=this,t;this._handleLabelClick=function(t){n.countryList.classList.contains("iti__hide")?n.telInput.focus():t.preventDefault()};t=this._getClosestLabel();t&&t.addEventListener("click",this._handleLabelClick);this._handleClickSelectedFlag=function(){!n.countryList.classList.contains("iti__hide")||n.telInput.disabled||n.telInput.readOnly||n._showDropdown()};this.selectedFlag.addEventListener("click",this._handleClickSelectedFlag);this._handleFlagsContainerKeydown=function(t){var i=n.countryList.classList.contains("iti__hide");i&&["ArrowUp","ArrowDown"," ","Enter"].indexOf(t.key)!==-1&&(t.preventDefault(),t.stopPropagation(),n._showDropdown());t.key==="Tab"&&n._closeDropdown()};this.flagsContainer.addEventListener("keydown",this._handleFlagsContainerKeydown)}},{key:"_initRequests",value:function(){var n=this;this.options.utilsScript&&!t.intlTelInputUtils?t.intlTelInputGlobals.windowLoaded?t.intlTelInputGlobals.loadUtils(this.options.utilsScript):t.addEventListener("load",function(){t.intlTelInputGlobals.loadUtils(n.options.utilsScript)}):this.resolveUtilsScriptPromise();this.options.initialCountry==="auto"?this._loadAutoCountry():this.resolveAutoCountryPromise()}},{key:"_loadAutoCountry",value:function(){t.intlTelInputGlobals.autoCountry?this.handleAutoCountry():t.intlTelInputGlobals.startedLoadingAutoCountry||(t.intlTelInputGlobals.startedLoadingAutoCountry=!0,typeof this.options.geoIpLookup=="function"&&this.options.geoIpLookup(function(n){t.intlTelInputGlobals.autoCountry=n.toLowerCase();setTimeout(function(){return s("handleAutoCountry")})},function(){return s("rejectAutoCountryPromise")}))}},{key:"_initKeyListeners",value:function(){var n=this;this._handleKeyupEvent=function(){n._updateFlagFromNumber(n.telInput.value)&&n._triggerCountryChange()};this.telInput.addEventListener("keyup",this._handleKeyupEvent);this._handleClipboardEvent=function(){setTimeout(n._handleKeyupEvent)};this.telInput.addEventListener("cut",this._handleClipboardEvent);this.telInput.addEventListener("paste",this._handleClipboardEvent)}},{key:"_cap",value:function(n){var t=this.telInput.getAttribute("maxlength");return t&&n.length>t?n.substr(0,t):n}},{key:"_initBlurListeners",value:function(){var n=this;this._handleSubmitOrBlurEvent=function(){n._removeEmptyDialCode()};this.telInput.form&&this.telInput.form.addEventListener("submit",this._handleSubmitOrBlurEvent);this.telInput.addEventListener("blur",this._handleSubmitOrBlurEvent)}},{key:"_removeEmptyDialCode",value:function(){if(this.telInput.value.charAt(0)==="+"){var n=this._getNumeric(this.telInput.value);n&&this.selectedCountryData.dialCode!==n||(this.telInput.value="")}}},{key:"_getNumeric",value:function(n){return n.replace(/\D/g,"")}},{key:"_trigger",value:function(n){var t=i.createEvent("Event");t.initEvent(n,!0,!0);this.telInput.dispatchEvent(t)}},{key:"_showDropdown",value:function(){this.countryList.classList.remove("iti__hide");this.countryList.setAttribute("aria-expanded","true");this.selectedFlag.setAttribute("aria-expanded","true");this._setDropdownPosition();this.activeItem&&(this._highlightListItem(this.activeItem,!1),this._scrollTo(this.activeItem,!0));this._bindDropdownListeners();this.dropdownArrow.classList.add("iti__arrow--up");this._trigger("open:countrydropdown")}},{key:"_toggleClass",value:function(n,t,i){i&&!n.classList.contains(t)?n.classList.add(t):!i&&n.classList.contains(t)&&n.classList.remove(t)}},{key:"_setDropdownPosition",value:function(){var h=this,s;if(this.options.dropdownContainer&&this.options.dropdownContainer.appendChild(this.dropdown),!this.isMobile){var u=this.telInput.getBoundingClientRect(),n=t.pageYOffset||i.documentElement.scrollTop,r=u.top+n,f=this.countryList.offsetHeight,e=r+this.telInput.offsetHeight+f<n+t.innerHeight,o=r-f>n;this._toggleClass(this.countryList,"iti__country-list--dropup",!e&&o);this.options.dropdownContainer&&(s=!e&&o?0:this.telInput.offsetHeight,this.dropdown.style.top="".concat(r+s,"px"),this.dropdown.style.left="".concat(u.left+i.body.scrollLeft,"px"),this._handleWindowScroll=function(){return h._closeDropdown()},t.addEventListener("scroll",this._handleWindowScroll))}}},{key:"_getClosestListItem",value:function(n){for(var t=n;t&&t!==this.countryList&&!t.classList.contains("iti__country");)t=t.parentNode;return t===this.countryList?null:t}},{key:"_bindDropdownListeners",value:function(){var n=this,u,t,r;this._handleMouseoverCountryList=function(t){var i=n._getClosestListItem(t.target);i&&n._highlightListItem(i,!1)};this.countryList.addEventListener("mouseover",this._handleMouseoverCountryList);this._handleClickCountryList=function(t){var i=n._getClosestListItem(t.target);i&&n._selectListItem(i)};this.countryList.addEventListener("click",this._handleClickCountryList);u=!0;this._handleClickOffToClose=function(){u||n._closeDropdown();u=!1};i.documentElement.addEventListener("click",this._handleClickOffToClose);t="";r=null;this._handleKeydownOnDropdown=function(i){i.preventDefault();i.key==="ArrowUp"||i.key==="ArrowDown"?n._handleUpDownKey(i.key):i.key==="Enter"?n._handleEnterKey():i.key==="Escape"?n._closeDropdown():/^[a-zA-ZÀ-ÿ ]$/.test(i.key)&&(r&&clearTimeout(r),t+=i.key.toLowerCase(),n._searchForCountry(t),r=setTimeout(function(){t=""},1e3))};i.addEventListener("keydown",this._handleKeydownOnDropdown)}},{key:"_handleUpDownKey",value:function(n){var t=n==="ArrowUp"?this.highlightedItem.previousElementSibling:this.highlightedItem.nextElementSibling;t&&(t.classList.contains("iti__divider")&&(t=n==="ArrowUp"?t.previousElementSibling:t.nextElementSibling),this._highlightListItem(t,!0))}},{key:"_handleEnterKey",value:function(){this.highlightedItem&&this._selectListItem(this.highlightedItem)}},{key:"_searchForCountry",value:function(n){for(var i,t=0;t<this.countries.length;t++)if(this._startsWith(this.countries[t].name,n)){i=this.countryList.querySelector("#iti-item-".concat(this.countries[t].iso2));this._highlightListItem(i,!1);this._scrollTo(i,!0);break}}},{key:"_startsWith",value:function(n,t){return n.substr(0,t.length).toLowerCase()===t}},{key:"_updateValFromNumber",value:function(n){var i=n;if(this.options.formatOnDisplay&&t.intlTelInputUtils&&this.selectedCountryData){var u=!this.options.separateDialCode&&(this.options.nationalMode||i.charAt(0)!=="+"),r=intlTelInputUtils.numberFormat,f=r.NATIONAL,e=r.INTERNATIONAL,o=u?f:e;i=intlTelInputUtils.formatNumber(i,this.selectedCountryData.iso2,o)}i=this._beforeSetNumber(i);this.telInput.value=i}},{key:"_updateFlagFromNumber",value:function(n){var t=n,u=this.selectedCountryData.dialCode,s=u==="1",r;t&&this.options.nationalMode&&s&&t.charAt(0)!=="+"&&(t.charAt(0)!=="1"&&(t="1".concat(t)),t="+".concat(t));this.options.separateDialCode&&u&&t.charAt(0)!=="+"&&(t="+".concat(u).concat(t));var e=this._getDialCode(t),o=this._getNumeric(t),i=null;if(e){var f=this.countryCodes[this._getNumeric(e)],h=f.indexOf(this.selectedCountryData.iso2)!==-1&&o.length<=e.length-1,c=u==="1"&&this._isRegionlessNanp(o);if(!c&&!h)for(r=0;r<f.length;r++)if(f[r]){i=f[r];break}}else t.charAt(0)==="+"&&o.length?i="":t&&t!=="+"||(i=this.defaultCountry);return i!==null?this._setFlag(i):!1}},{key:"_isRegionlessNanp",value:function(n){var t=this._getNumeric(n),i;return t.charAt(0)==="1"?(i=t.substr(1,3),b.indexOf(i)!==-1):!1}},{key:"_highlightListItem",value:function(n,t){var i=this.highlightedItem;i&&i.classList.remove("iti__highlight");this.highlightedItem=n;this.highlightedItem.classList.add("iti__highlight");t&&this.highlightedItem.focus()}},{key:"_getCountryData",value:function(n,t,i){for(var f=t?u:this.countries,r=0;r<f.length;r++)if(f[r].iso2===n)return f[r];if(i)return null;throw new Error("No country data for '".concat(n,"'"));}},{key:"_setFlag",value:function(n){var e=this.selectedCountryData.iso2?this.selectedCountryData:{},r,u,f,i,t;return this.selectedCountryData=n?this._getCountryData(n,!1,!1):{},this.selectedCountryData.iso2&&(this.defaultCountry=this.selectedCountryData.iso2),this.selectedFlagInner.setAttribute("class","iti__flag iti__".concat(n)),r=n?"".concat(this.selectedCountryData.name,": +").concat(this.selectedCountryData.dialCode):"Unknown",this.selectedFlag.setAttribute("title",r),this.options.separateDialCode&&(u=this.selectedCountryData.dialCode?"+".concat(this.selectedCountryData.dialCode):"",this.selectedDialCode.innerHTML=u,f=this.selectedFlag.offsetWidth||this._getHiddenSelectedFlagWidth(),this.telInput.style.paddingLeft="".concat(f+6,"px")),this._updatePlaceholder(),this.options.allowDropdown&&(i=this.activeItem,i&&(i.classList.remove("iti__active"),i.setAttribute("aria-selected","false")),n&&(t=this.countryList.querySelector("#iti-item-".concat(n)),t.setAttribute("aria-selected","true"),t.classList.add("iti__active"),this.activeItem=t,this.countryList.setAttribute("aria-activedescendant",t.getAttribute("id")))),e.iso2!==n}},{key:"_getHiddenSelectedFlagWidth",value:function(){var n=this.telInput.parentNode.cloneNode(),t,r;return n.style.visibility="hidden",i.body.appendChild(n),t=this.selectedFlag.cloneNode(!0),n.appendChild(t),r=t.offsetWidth,n.parentNode.removeChild(n),r}},{key:"_updatePlaceholder",value:function(){var r=this.options.autoPlaceholder==="aggressive"||!this.hadInitialPlaceholder&&this.options.autoPlaceholder==="polite",i,n;t.intlTelInputUtils&&r&&(i=intlTelInputUtils.numberType[this.options.placeholderNumberType],n=this.selectedCountryData.iso2?intlTelInputUtils.getExampleNumber(this.selectedCountryData.iso2,this.options.nationalMode,i):"",n=this._beforeSetNumber(n),typeof this.options.customPlaceholder=="function"&&(n=this.options.customPlaceholder(n,this.selectedCountryData)),this.telInput.setAttribute("placeholder",n))}},{key:"_selectListItem",value:function(n){var i=this._setFlag(n.getAttribute("data-country-code")),t;this._closeDropdown();this._updateDialCode(n.getAttribute("data-dial-code"),!0);this.telInput.focus();t=this.telInput.value.length;this.telInput.setSelectionRange(t,t);i&&this._triggerCountryChange()}},{key:"_closeDropdown",value:function(){this.countryList.classList.add("iti__hide");this.countryList.setAttribute("aria-expanded","false");this.selectedFlag.setAttribute("aria-expanded","false");this.dropdownArrow.classList.remove("iti__arrow--up");i.removeEventListener("keydown",this._handleKeydownOnDropdown);i.documentElement.removeEventListener("click",this._handleClickOffToClose);this.countryList.removeEventListener("mouseover",this._handleMouseoverCountryList);this.countryList.removeEventListener("click",this._handleClickCountryList);this.options.dropdownContainer&&(this.isMobile||t.removeEventListener("scroll",this._handleWindowScroll),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown));this._trigger("close:countrydropdown")}},{key:"_scrollTo",value:function(n,r){var u=this.countryList,c=t.pageYOffset||i.documentElement.scrollTop,e=u.offsetHeight,o=u.getBoundingClientRect().top+c,v=o+e,s=n.offsetHeight,h=n.getBoundingClientRect().top+c,y=h+s,f=h-o+u.scrollTop,l=e/2-s/2,a;h<o?(r&&(f-=l),u.scrollTop=f):y>v&&(r&&(f+=l),a=e-s,u.scrollTop=f-a)}},{key:"_updateDialCode",value:function(n,t){var i=this.telInput.value,r="+".concat(n),u,f;if(i.charAt(0)==="+")f=this._getDialCode(i),u=f?i.replace(f,r):r;else{if(this.options.nationalMode||this.options.separateDialCode)return;if(i)u=r+i;else if(t||!this.options.autoHideDialCode)u=r;else return}this.telInput.value=u}},{key:"_getDialCode",value:function(n){var u="",i,t,r;if(n.charAt(0)==="+")for(i="",t=0;t<n.length;t++)if(r=n.charAt(t),!isNaN(parseInt(r,10))&&(i+=r,this.countryCodes[i]&&(u=n.substr(0,t+1)),i.length===this.dialCodeMaxLen))break;return u}},{key:"_getFullNumber",value:function(){var n=this.telInput.value.trim(),t=this.selectedCountryData.dialCode,i,r=this._getNumeric(n);return i=this.options.separateDialCode&&n.charAt(0)!=="+"&&t&&r?"+".concat(t):"",i+n}},{key:"_beforeSetNumber",value:function(n){var i=n,t,r;return this.options.separateDialCode&&(t=this._getDialCode(i),t&&(t="+".concat(this.selectedCountryData.dialCode),r=i[t.length]===" "||i[t.length]==="-"?t.length+1:t.length,i=i.substr(r))),this._cap(i)}},{key:"_triggerCountryChange",value:function(){this._trigger("countrychange")}},{key:"handleAutoCountry",value:function(){this.options.initialCountry==="auto"&&(this.defaultCountry=t.intlTelInputGlobals.autoCountry,this.telInput.value||this.setCountry(this.defaultCountry),this.resolveAutoCountryPromise())}},{key:"handleUtils",value:function(){t.intlTelInputUtils&&(this.telInput.value&&this._updateValFromNumber(this.telInput.value),this._updatePlaceholder());this.resolveUtilsScriptPromise()}},{key:"destroy",value:function(){var i=this.telInput.form,r,n;this.options.allowDropdown&&(this._closeDropdown(),this.selectedFlag.removeEventListener("click",this._handleClickSelectedFlag),this.flagsContainer.removeEventListener("keydown",this._handleFlagsContainerKeydown),r=this._getClosestLabel(),r&&r.removeEventListener("click",this._handleLabelClick));this.hiddenInput&&i&&i.removeEventListener("submit",this._handleHiddenInputSubmit);this.options.autoHideDialCode&&(i&&i.removeEventListener("submit",this._handleSubmitOrBlurEvent),this.telInput.removeEventListener("blur",this._handleSubmitOrBlurEvent));this.telInput.removeEventListener("keyup",this._handleKeyupEvent);this.telInput.removeEventListener("cut",this._handleClipboardEvent);this.telInput.removeEventListener("paste",this._handleClipboardEvent);this.telInput.removeAttribute("data-intl-tel-input-id");n=this.telInput.parentNode;n.parentNode.insertBefore(this.telInput,n);n.parentNode.removeChild(n);delete t.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return t.intlTelInputUtils?intlTelInputUtils.getExtension(this._getFullNumber(),this.selectedCountryData.iso2):""}},{key:"getNumber",value:function(n){if(t.intlTelInputUtils){var i=this.selectedCountryData.iso2;return intlTelInputUtils.formatNumber(this._getFullNumber(),i,n)}return""}},{key:"getNumberType",value:function(){return t.intlTelInputUtils?intlTelInputUtils.getNumberType(this._getFullNumber(),this.selectedCountryData.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.selectedCountryData}},{key:"getValidationError",value:function(){if(t.intlTelInputUtils){var n=this.selectedCountryData.iso2;return intlTelInputUtils.getValidationError(this._getFullNumber(),n)}return-99}},{key:"isValidNumber",value:function(){var n=this._getFullNumber().trim(),i=this.options.nationalMode?this.selectedCountryData.iso2:"";return t.intlTelInputUtils?intlTelInputUtils.isValidNumber(n,i):null}},{key:"setCountry",value:function(n){var t=n.toLowerCase();this.selectedFlagInner.classList.contains("iti__".concat(t))||(this._setFlag(t),this._updateDialCode(this.selectedCountryData.dialCode,!1),this._triggerCountryChange())}},{key:"setNumber",value:function(n){var t=this._updateFlagFromNumber(n);this._updateValFromNumber(n);t&&this._triggerCountryChange()}},{key:"setPlaceholderNumberType",value:function(n){this.options.placeholderNumberType=n;this._updatePlaceholder()}}]),n}();t.intlTelInputGlobals.getCountryData=function(){return u};c=function(n,t,r){var u=i.createElement("script");u.onload=function(){s("handleUtils");t&&t()};u.onerror=function(){s("rejectUtilsScriptPromise");r&&r()};u.className="iti-load-utils";u.async=!0;u.src=n;i.body.appendChild(u)};t.intlTelInputGlobals.loadUtils=function(n){if(!t.intlTelInputUtils&&!t.intlTelInputGlobals.startedLoadingUtilsScript){if(t.intlTelInputGlobals.startedLoadingUtilsScript=!0,typeof Promise!="undefined")return new Promise(function(t,i){return c(n,t,i)});c(n)}return null};t.intlTelInputGlobals.defaults=a;t.intlTelInputGlobals.version="16.0.2";e="intlTelInput";n.fn[e]=function(i){var f=arguments,u;return i===r||typeof i=="object"?this.each(function(){if(!n.data(this,"plugin_"+e)){var r=new v(this,i);r._init();t.intlTelInputGlobals.instances[r.id]=r;n.data(this,"plugin_"+e,r)}}):typeof i=="string"&&i[0]!=="_"?(this.each(function(){var t=n.data(this,"plugin_"+e);t instanceof v&&typeof t[i]=="function"&&(u=t[i].apply(t,Array.prototype.slice.call(f,1)));i==="destroy"&&n.data(this,"plugin_"+e,null)}),u!==r?u:this):void 0}});setTimeout(function(){$(".introjs-nextbutton").keyup(function(n){var t=n.which;if(t==13&&!$(this).hasClass("disabled"))return $(this).click(),!1})},800),function(n,t){typeof exports=="object"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):t(n)}(this,function(n){function o(n){this._targetElement=n;this._introItems=[];this._options={nextLabel:"Next &rarr;",prevLabel:"&larr; Back",skipLabel:"Skip",doneLabel:"Done",hidePrev:!1,hideNext:!1,tooltipPosition:"bottom",tooltipClass:"",highlightClass:"",exitOnEsc:!0,exitOnOverlayClick:!0,showStepNumbers:!0,keyboardNavigation:!0,showButtons:!0,showBullets:!0,showProgress:!1,scrollToElement:!0,overlayOpacity:.8,scrollPadding:30,positionPrecedence:["bottom","top","right","left"],disableInteraction:!1,hintPosition:"top-middle",hintButtonLabel:"Got it",hintAnimation:!0}}function ut(n){var o=[],i=this,k,s,c,l,w,v,e,p,r,b,y,d,g;if(this._options.steps)for(e=0,k=this._options.steps.length;e<k;e++)s=a(this._options.steps[e]),s.step=o.length+1,typeof s.element=="string"&&(s.element=document.querySelector(s.element)),(typeof s.element=="undefined"||s.element==null)&&(c=document.querySelector(".introjsFloatingElement"),c==null&&(c=document.createElement("div"),c.className="introjsFloatingElement",document.body.appendChild(c)),s.element=c,s.position="floating"),s.element!=null&&o.push(s);else{if(l=n.querySelectorAll("*[data-intro]"),l.length<1)return!1;for(e=0,p=l.length;e<p;e++)(r=l[e],r.style.display!="none")&&(w=parseInt(r.getAttribute("data-step"),10),w>0&&(o[w-1]={element:r,intro:r.getAttribute("data-intro"),step:parseInt(r.getAttribute("data-step"),10),tooltipClass:r.getAttribute("data-tooltipClass"),highlightClass:r.getAttribute("data-highlightClass"),position:r.getAttribute("data-position")||this._options.tooltipPosition}));for(v=0,e=0,p=l.length;e<p;e++)if(r=l[e],r.getAttribute("data-step")==null){for(;;)if(typeof o[v]=="undefined")break;else v++;o[v]={element:r,intro:r.getAttribute("data-intro"),step:v+1,tooltipClass:r.getAttribute("data-tooltipClass"),highlightClass:r.getAttribute("data-highlightClass"),position:r.getAttribute("data-position")||this._options.tooltipPosition}}}for(b=[],y=0;y<o.length;y++)o[y]&&b.push(o[y]);return o=b,o.sort(function(n,t){return n.step-t.step}),i._introItems=o,ct.call(i,n)&&(u.call(i),d=n.querySelector(".introjs-skipbutton"),g=n.querySelector(".introjs-nextbutton"),i._onKeyDown=function(t){if(t.keyCode===27&&i._options.exitOnEsc==!0)i._introExitCallback!=undefined&&i._introExitCallback.call(i),f.call(i,n);else if(t.keyCode===37)h.call(i);else if(t.keyCode===39)u.call(i);else if(t.keyCode===13){var r=t.target||t.srcElement;r&&r.className.indexOf("introjs-prevbutton")>0?h.call(i):r&&r.className.indexOf("introjs-skipbutton")>0?(i._introItems.length-1==i._currentStep&&typeof i._introCompleteCallback=="function"&&i._introCompleteCallback.call(i),i._introExitCallback!=undefined&&i._introExitCallback.call(i),f.call(i,n)):u.call(i);t.preventDefault?t.preventDefault():t.returnValue=!1}},i._onResize=function(){t.call(i,document.querySelector(".introjs-helperLayer"));t.call(i,document.querySelector(".introjs-tooltipReferenceLayer"))},window.addEventListener?(this._options.keyboardNavigation&&window.addEventListener("keydown",i._onKeyDown,!0),window.addEventListener("resize",i._onResize,!0)):document.attachEvent&&(this._options.keyboardNavigation&&document.attachEvent("onkeydown",i._onKeyDown),document.attachEvent("onresize",i._onResize))),!1}function a(n){var i,t;if(n==null||typeof n!="object"||typeof n.nodeType!="undefined")return n;i={};for(t in n)i[t]=typeof jQuery!="undefined"&&n[t]instanceof jQuery?n[t]:a(n[t]);return i}function ft(n){this._currentStep=n-2;typeof this._introItems!="undefined"&&u.call(this)}function u(){if(this._direction="forward",typeof this._currentStep=="undefined"?this._currentStep=0:++this._currentStep,this._introItems.length<=this._currentStep){typeof this._introCompleteCallback=="function"&&this._introCompleteCallback.call(this);f.call(this,this._targetElement);return}var n=this._introItems[this._currentStep];typeof this._introBeforeChangeCallback!="undefined"&&this._introBeforeChangeCallback.call(this,n.element);g.call(this,n)}function h(){if(this._direction="backward",this._currentStep===0)return!1;var n=this._introItems[--this._currentStep];typeof this._introBeforeChangeCallback!="undefined"&&this._introBeforeChangeCallback.call(this,n.element);g.call(this,n)}function f(n){var r=n.querySelectorAll(".introjs-overlay"),h,u,f,e,o,s,i,t;if(r&&r.length>0)for(t=r.length-1;t>=0;t--)h=r[t],h.style.opacity=0,setTimeout(function(){this.parentNode&&this.parentNode.removeChild(this)}.bind(h),500);if(u=n.querySelector(".introjs-helperLayer"),u&&u.parentNode.removeChild(u),f=n.querySelector(".introjs-tooltipReferenceLayer"),f&&f.parentNode.removeChild(f),e=n.querySelector(".introjs-disableInteraction"),e&&e.parentNode.removeChild(e),o=document.querySelector(".introjsFloatingElement"),o&&o.parentNode.removeChild(o),s=document.querySelector(".introjs-showElement"),s&&(s.className=s.className.replace(/introjs-[a-zA-Z]+/g,"").replace(/^\s+|\s+$/g,"")),i=document.querySelectorAll(".introjs-fixParent"),i&&i.length>0)for(t=i.length-1;t>=0;t--)i[t].className=i[t].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"");window.removeEventListener?window.removeEventListener("keydown",this._onKeyDown,!0):document.detachEvent&&document.detachEvent("onkeydown",this._onKeyDown);this._currentStep=undefined}function v(n,t,i,u,f){var v="",a,o,e,s,h,p,l,c;if(f=f||!1,t.style.top=null,t.style.right=null,t.style.bottom=null,t.style.left=null,t.style.marginLeft=null,t.style.marginTop=null,i.style.display="inherit",typeof u!="undefined"&&u!=null&&(u.style.top=null,u.style.left=null),this._introItems[this._currentStep]){a=this._introItems[this._currentStep];v=typeof a.tooltipClass=="string"?a.tooltipClass:this._options.tooltipClass;t.className=("introjs-tooltip "+v).replace(/^\s+|\s+$/g,"");h=this._introItems[this._currentStep].position;(h=="auto"||this._options.tooltipPosition=="auto")&&h!="floating"&&(h=et.call(this,n,t,h));e=r(n);o=r(t);s=w();switch(h){case"top":i.className="introjs-arrow bottom";c=f?0:15;y(e,c,o,s,t);t.style.bottom=e.height+20+"px";break;case"right":t.style.left=e.width+20+"px";e.top+o.height>s.height?(i.className="introjs-arrow left-bottom",t.style.top="-"+(o.height-e.height-20)+"px"):i.className="introjs-arrow left";break;case"left":f||this._options.showStepNumbers!=!0||(t.style.top="15px");e.top+o.height>s.height?(t.style.top="-"+(o.height-e.height-20)+"px",i.className="introjs-arrow right-bottom"):i.className="introjs-arrow right";t.style.right=e.width+20+"px";break;case"floating":i.style.display="none";t.style.left="50%";t.style.top="50%";t.style.marginLeft="-"+o.width/2+"px";t.style.marginTop="-"+o.height/2+"px";typeof u!="undefined"&&u!=null&&(u.style.left="-"+(o.width/2+18)+"px",u.style.top="-"+(o.height/2+18)+"px");break;case"bottom-right-aligned":i.className="introjs-arrow top-right";p=0;d(e,p,o,t);t.style.top=e.height+20+"px";break;case"bottom-middle-aligned":i.className="introjs-arrow top-middle";l=e.width/2-o.width/2;f&&(l+=5);d(e,l,o,t)&&(t.style.right=null,y(e,l,o,s,t));t.style.top=e.height+20+"px";break;case"bottom-left-aligned":case"bottom":default:i.className="introjs-arrow top";c=0;y(e,c,o,s,t);t.style.top=e.height+20+"px"}}}function y(n,t,i,r,u){return n.left+t+i.width>r.width?(u.style.left=r.width-i.width-n.left+"px",!1):(u.style.left=t+"px",!0)}function d(n,t,i,r){return n.left+n.width-t-i.width<0?(r.style.left=-n.left+"px",!1):(r.style.right=t+"px",!0)}function et(n,t,i){var u=this._options.positionPrecedence.slice(),s=w(),c=r(t).height+10,o=r(t).width+20,f=r(n),h="floating";return f.left+o>s.width||f.left+f.width/2-o<0?(e(u,"bottom"),e(u,"top")):(f.height+f.top+c>s.height&&e(u,"bottom"),f.top-c<0&&e(u,"top")),f.width+f.left+o>s.width&&e(u,"right"),f.left-o<0&&e(u,"left"),u.length>0&&(h=u[0]),i&&i!="auto"&&u.indexOf(i)>-1&&(h=i),h}function e(n,t){n.indexOf(t)>-1&&n.splice(n.indexOf(t),1)}function ot(n){typeof n!="undefined"&&setTimeout(function(){typeof n!="undefined"&&($(".introjs-tooltiptext").attr("tabindex","1"),$(".introjs-skipbutton").attr("tabindex","2"),$(".introjs-prevbutton").attr("tabindex","1"),$(".introjs-nextbutton").attr("tabindex","1"),n.element.setAttribute("tabindex","0"),$("#"+n.element.id+" *").each(function(){$(this).attr("tabindex","1")}),n.element.focus())},500)}function t(n){if(n){if(!this._introItems[this._currentStep])return;var t=this._introItems[this._currentStep],i=r(t.element),u=10;ot(t);p(t.element)?n.className+=" introjs-fixedTooltip":n.className=n.className.replace(" introjs-fixedTooltip","");t.position=="floating"&&(u=0);n.setAttribute("style","width: "+(i.width+u)+"px; height:"+(i.height+u)+"px; top:"+(i.top-5)+"px;left: "+(i.left-5)+"px;")}}function st(){var n=document.querySelector(".introjs-disableInteraction");n===null&&(n=document.createElement("div"),n.className="introjs-disableInteraction",this._targetElement.appendChild(n));t.call(this,n)}function s(n){n.setAttribute("role","button");n.tabIndex=0}function g(n){var wt,g,et,dt,p,ni,gt,d,at,ut,o,l,y,vt,c;typeof this._introChangeCallback!="undefined"&&this._introChangeCallback.call(this,n.element);var e=this,pt=document.querySelector(".introjs-helperLayer"),a=document.querySelector(".introjs-tooltipReferenceLayer"),ft="introjs-helperLayer",hi=r(n.element);if(typeof n.highlightClass=="string"&&(ft+=" "+n.highlightClass),typeof this._options.highlightClass=="string"&&(ft+=" "+this._options.highlightClass),pt!=null){var k=a.querySelector(".introjs-helperNumberLayer"),ui=a.querySelector(".introjs-tooltiptext"),fi=a.querySelector(".introjs-arrow"),tt=a.querySelector(".introjs-tooltip"),y=a.querySelector(".introjs-skipbutton"),l=a.querySelector(".introjs-prevbutton"),o=a.querySelector(".introjs-nextbutton");if(pt.className=ft,tt.style.opacity=0,tt.style.display="none",k!=null&&(wt=this._introItems[n.step-2>=0?n.step-2:0],(wt!=null&&this._direction=="forward"&&wt.position=="floating"||this._direction=="backward"&&n.position=="floating")&&(k.style.opacity=0)),t.call(e,pt),t.call(e,a),g=document.querySelectorAll(".introjs-fixParent"),g&&g.length>0)for(p=g.length-1;p>=0;p--)g[p].className=g[p].className.replace(/introjs-fixParent/g,"").replace(/^\s+|\s+$/g,"");et=document.querySelector(".introjs-showElement");et&&(et.className=et.className.replace(/introjs-[a-zA-Z]+/g,"").replace(/^\s+|\s+$/g,""));e._lastShowElementTimer&&clearTimeout(e._lastShowElementTimer);e._lastShowElementTimer=setTimeout(function(){k!=null&&(k.innerHTML=n.step);ui.innerHTML=n.intro;tt.style.display="block";v.call(e,n.element,tt,fi,k);e._options.showBullets&&(a.querySelector(".introjs-bullets li > a.active").className="",a.querySelector('.introjs-bullets li > a[data-stepnumber="'+n.step+'"]').className="active");a.querySelector(".introjs-progress .introjs-progressbar").setAttribute("style","width:"+rt.call(e)+"%;");tt.style.opacity=1;k&&(k.style.opacity=1);o.tabIndex===-1?y.focus():o.focus()},350)}else{var bt=document.createElement("div"),it=document.createElement("div"),kt=document.createElement("div"),b=document.createElement("div"),ot=document.createElement("div"),ct=document.createElement("div"),lt=document.createElement("div"),nt=document.createElement("div");for(bt.className=ft,it.className="introjs-tooltipReferenceLayer",t.call(e,bt),t.call(e,it),this._targetElement.appendChild(bt),this._targetElement.appendChild(it),kt.className="introjs-arrow",ot.className="introjs-tooltiptext",ot.innerHTML=n.intro,ot.setAttribute("tabindex","0"),ct.className="introjs-bullets",this._options.showBullets===!1&&(ct.style.display="none"),dt=document.createElement("ul"),p=0,ni=this._introItems.length;p<ni;p++)gt=document.createElement("li"),d=document.createElement("a"),d.onclick=function(){e.goToStep(this.getAttribute("data-stepnumber"))},p===n.step-1&&(d.className="active"),s(d),d.innerHTML="&nbsp;",d.setAttribute("data-stepnumber",this._introItems[p].step),gt.appendChild(d),dt.appendChild(gt);ct.appendChild(dt);lt.className="introjs-progress";this._options.showProgress===!1&&(lt.style.display="none");at=document.createElement("div");at.className="introjs-progressbar";at.setAttribute("style","width:"+rt.call(this)+"%;");lt.appendChild(at);nt.className="introjs-tooltipbuttons";this._options.showButtons===!1&&(nt.style.display="none");b.className="introjs-tooltip";b.appendChild(ot);b.appendChild(ct);b.appendChild(lt);this._options.showStepNumbers===!0&&(ut=document.createElement("span"),ut.className="introjs-helperNumberLayer",ut.innerHTML=n.step,it.appendChild(ut));b.appendChild(kt);it.appendChild(b);o=document.createElement("a");o.onclick=function(){e._introItems.length-1!==e._currentStep&&u.call(e)};s(o);o.innerHTML=this._options.nextLabel;l=document.createElement("a");l.onclick=function(){e._currentStep!==0&&h.call(e)};s(l);l.innerHTML=this._options.prevLabel;y=document.createElement("a");y.setAttribute("href","#");y.className="introjs-button introjs-skipbutton";s(y);y.innerHTML=this._options.skipLabel;y.onclick=function(){e._introItems.length-1===e._currentStep&&typeof e._introCompleteCallback=="function"&&e._introCompleteCallback.call(e);e._introItems.length-1!==e._currentStep&&typeof e._introExitCallback=="function"&&e._introExitCallback.call(e);f.call(e,e._targetElement)};nt.appendChild(y);this._introItems.length>1&&(nt.appendChild(l),nt.appendChild(o));b.appendChild(nt);v.call(e,n.element,b,kt,ut)}for(this._options.disableInteraction===!0&&st.call(e),l.removeAttribute("tabIndex"),o.removeAttribute("tabIndex"),this._currentStep===0&&this._introItems.length>1?(o.className="introjs-button introjs-nextbutton",this._options.hidePrev==!0?(l.className="introjs-button introjs-prevbutton introjs-hidden",o.className+=" introjs-fullbutton"):l.className="introjs-button introjs-prevbutton introjs-disabled",l.tabIndex="-1",y.innerHTML=this._options.skipLabel):this._introItems.length-1===this._currentStep||this._introItems.length===1?(y.innerHTML=this._options.doneLabel,l.className="introjs-button introjs-prevbutton",this._options.hideNext===!0?(o.className="introjs-button introjs-nextbutton introjs-hidden",l.className+=" introjs-fullbutton"):o.className="introjs-button introjs-nextbutton introjs-disabled",o.tabIndex="-1"):(l.className="introjs-button introjs-prevbutton",o.className="introjs-button introjs-nextbutton",y.innerHTML=this._options.skipLabel),o.focus(),n.element.className+=" introjs-showElement",vt=i(n.element,"position"),vt!=="absolute"&&vt!=="relative"&&vt!=="fixed"&&(n.element.className+=" introjs-relativePosition"),c=n.element.parentNode;c!=null;){if(!c.tagName||c.tagName.toLowerCase()==="body")break;var ei=i(c,"z-index"),oi=parseFloat(i(c,"opacity")),ti=i(c,"transform")||i(c,"-webkit-transform")||i(c,"-moz-transform")||i(c,"-ms-transform")||i(c,"-o-transform");(/[0-9]+/.test(ei)||oi<1||ti!=="none"&&ti!==undefined)&&(c.className+=" introjs-fixParent");c=c.parentNode}if(!ht(n.element)&&this._options.scrollToElement===!0){var yt=n.element.getBoundingClientRect(),ii=w().height,ri=yt.bottom-(yt.bottom-yt.top),si=yt.bottom-ii;ri<0||n.element.clientHeight>ii?window.scrollBy(0,ri-this._options.scrollPadding):window.scrollBy(0,si+70+this._options.scrollPadding)}typeof this._introAfterChangeCallback!="undefined"&&this._introAfterChangeCallback.call(this,n.element)}function i(n,t){var i="";return n.currentStyle?i=n.currentStyle[t]:document.defaultView&&document.defaultView.getComputedStyle&&(i=document.defaultView.getComputedStyle(n,null).getPropertyValue(t)),i&&i.toLowerCase?i.toLowerCase():i}function p(n){var t=n.parentNode;return!t||t.nodeName==="HTML"?!1:i(n,"position")=="fixed"?!0:p(t)}function w(){if(window.innerWidth!=undefined)return{width:window.innerWidth,height:window.innerHeight};var n=document.documentElement;return{width:n.clientWidth,height:n.clientHeight}}function ht(n){var t=n.getBoundingClientRect();return t.top>=0&&t.left>=0&&t.bottom+80<=window.innerHeight&&t.right<=window.innerWidth}function ct(n){var t=document.createElement("div"),i="",u=this,e;return t.className="introjs-overlay",n.tagName&&n.tagName.toLowerCase()!=="body"?(e=r(n),e&&(i+="width: "+e.width+"px; height:"+e.height+"px; top:"+e.top+"px;left: "+e.left+"px;",t.setAttribute("style",i))):(i+="top: 0;bottom: 0; left: 0;right: 0;position: fixed;",t.setAttribute("style",i)),n.appendChild(t),t.onclick=function(){u._options.exitOnOverlayClick==!0&&(u._introExitCallback!=undefined&&u._introExitCallback.call(u),f.call(u,n))},setTimeout(function(){i+="opacity: "+u._options.overlayOpacity.toString()+";";t.setAttribute("style",i)},10),!0}function c(){var n=this._targetElement.querySelector(".introjs-hintReference"),t;if(n)return t=n.getAttribute("data-step"),n.parentNode.removeChild(n),t}function nt(n){var o=this,t,e,i,f,r,u;if(this._introItems=[],this._options.hints)for(i=0,f=this._options.hints.length;i<f;i++)t=a(this._options.hints[i]),typeof t.element=="string"&&(t.element=document.querySelector(t.element)),t.hintPosition=t.hintPosition||this._options.hintPosition,t.hintAnimation=t.hintAnimation||this._options.hintAnimation,t.element!=null&&this._introItems.push(t);else{if(e=n.querySelectorAll("*[data-hint]"),e.length<1)return!1;for(i=0,f=e.length;i<f;i++)r=e[i],u=r.getAttribute("data-hintAnimation"),u=u?u=="true":this._options.hintAnimation,this._introItems.push({element:r,hint:r.getAttribute("data-hint"),hintPosition:r.getAttribute("data-hintPosition")||this._options.hintPosition,hintAnimation:u,tooltipClass:r.getAttribute("data-tooltipClass"),position:r.getAttribute("data-position")||this._options.tooltipPosition})}vt.call(this);document.addEventListener?(document.addEventListener("click",c.bind(this),!1),window.addEventListener("resize",b.bind(this),!0)):document.attachEvent&&(document.attachEvent("onclick",c.bind(this)),document.attachEvent("onresize",b.bind(this)))}function b(){for(var n,t=0,i=this._introItems.length;t<i;t++)(n=this._introItems[t],typeof n.targetElement!="undefined")&&it.call(this,n.hintPosition,n.element,n.targetElement)}function k(n){c.call(this);var t=this._targetElement.querySelector('.introjs-hint[data-step="'+n+'"]');t&&(t.className+=" introjs-hidehint");typeof this._hintCloseCallback!="undefined"&&this._hintCloseCallback.call(this,n)}function lt(){var n=this._targetElement.querySelectorAll(".introjs-hint"),t;if(n&&n.length>0)for(t=0;t<n.length;t++)k.call(this,n[t].getAttribute("data-step"))}function at(){var n=this._targetElement.querySelectorAll(".introjs-hint"),t;if(n&&n.length>0)for(t=0;t<n.length;t++)tt.call(this,n[t].getAttribute("data-step"));else nt.call(this,this._targetElement)}function tt(n){var t=this._targetElement.querySelector('.introjs-hint[data-step="'+n+'"]');t&&(t.className=t.className.replace(/introjs\-hidehint/g,""))}function vt(){var h=this,e=document.querySelector(".introjs-hints"),r,i,o,t,n,u,f;for(e!=null?r=e:(r=document.createElement("div"),r.className="introjs-hints"),i=0,o=this._introItems.length;i<o;i++)(t=this._introItems[i],document.querySelector('.introjs-hint[data-step="'+i+'"]'))||(n=document.createElement("a"),s(n),function(n,t,i){n.onclick=function(r){var u=r?r:window.event;u.stopPropagation&&u.stopPropagation();u.cancelBubble!=null&&(u.cancelBubble=!0);yt.call(h,n,t,i)}}(n,t,i),n.className="introjs-hint",t.hintAnimation||(n.className+=" introjs-hint-no-anim"),p(t.element)&&(n.className+=" introjs-fixedhint"),u=document.createElement("div"),u.className="introjs-hint-dot",f=document.createElement("div"),f.className="introjs-hint-pulse",n.appendChild(u),n.appendChild(f),n.setAttribute("data-step",i),t.targetElement=t.element,t.element=n,it.call(this,t.hintPosition,n,t.targetElement),r.appendChild(n));document.body.appendChild(r);typeof this._hintsAddedCallback!="undefined"&&this._hintsAddedCallback.call(this)}function it(n,t,i){var u=r.call(this,i);switch(n){default:case"top-left":t.style.left=u.left+"px";t.style.top=u.top+"px";break;case"top-right":t.style.left=u.left+u.width+"px";t.style.top=u.top+"px";break;case"bottom-left":t.style.left=u.left+"px";t.style.top=u.top+u.height+"px";break;case"bottom-right":t.style.left=u.left+u.width+"px";t.style.top=u.top+u.height+"px";break;case"bottom-middle":t.style.left=u.left+u.width/2+"px";t.style.top=u.top+u.height+"px";break;case"top-middle":t.style.left=u.left+u.width/2+"px";t.style.top=u.top+"px"}}function yt(n,i,r){var l,h,e;if(typeof this._hintClickCallback!="undefined"&&this._hintClickCallback.call(this,n,i,r),l=c.call(this),parseInt(l,10)!=r){var u=document.createElement("div"),o=document.createElement("div"),s=document.createElement("div"),f=document.createElement("div");u.className="introjs-tooltip";u.onclick=function(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0};o.className="introjs-tooltiptext";h=document.createElement("p");h.innerHTML=i.hint;e=document.createElement("a");e.className="introjs-button";e.innerHTML=this._options.hintButtonLabel;e.onclick=k.bind(this,r);o.appendChild(h);o.appendChild(e);s.className="introjs-arrow";u.appendChild(s);u.appendChild(o);this._currentStep=n.getAttribute("data-step");f.className="introjs-tooltipReferenceLayer introjs-hintReference";f.setAttribute("data-step",n.getAttribute("data-step"));t.call(this,f);f.appendChild(u);document.body.appendChild(f);v.call(this,n,u,s,null,!0)}}function r(n){var t={},i,r;for(t.width=n.offsetWidth,t.height=n.offsetHeight,i=0,r=0;n&&!isNaN(n.offsetLeft)&&!isNaN(n.offsetTop);)i+=n.offsetLeft,r+=n.offsetTop,n=n.offsetParent;return t.top=r,t.left=i,t}function rt(){var n=parseInt(this._currentStep+1,10);return n/this._introItems.length*100}function pt(n,t){var r={};for(var i in n)r[i]=n[i];for(i in t)r[i]=t[i];return r}var l=function(n){if(typeof n=="object")return new o(n);if(typeof n=="string"){var t=document.querySelector(n);if(t)return new o(t);throw new Error("There is no element with given selector.");}else return new o(document.body)};return l.version="2.4.0",l.fn=o.prototype={clone:function(){return new o(this)},setOption:function(n,t){return this._options[n]=t,this},setOptions:function(n){return this._options=pt(this._options,n),this},start:function(){return ut.call(this,this._targetElement),this},goToStep:function(n){return ft.call(this,n),this},addStep:function(n){return this._options.steps||(this._options.steps=[]),this._options.steps.push(n),this},addSteps:function(n){if(n.length){for(var t=0;t<n.length;t++)this.addStep(n[t]);return this}},nextStep:function(){return u.call(this),this},previousStep:function(){return h.call(this),this},exit:function(){return f.call(this,this._targetElement),this},refresh:function(){return t.call(this,document.querySelector(".introjs-helperLayer")),t.call(this,document.querySelector(".introjs-tooltipReferenceLayer")),b.call(this),this},onbeforechange:function(n){if(typeof n=="function")this._introBeforeChangeCallback=n;else throw new Error("Provided callback for onbeforechange was not a function");return this},onchange:function(n){if(typeof n=="function")this._introChangeCallback=n;else throw new Error("Provided callback for onchange was not a function.");return this},onafterchange:function(n){if(typeof n=="function")this._introAfterChangeCallback=n;else throw new Error("Provided callback for onafterchange was not a function");return this},oncomplete:function(n){if(typeof n=="function")this._introCompleteCallback=n;else throw new Error("Provided callback for oncomplete was not a function.");return this},onhintsadded:function(n){if(typeof n=="function")this._hintsAddedCallback=n;else throw new Error("Provided callback for onhintsadded was not a function.");return this},onhintclick:function(n){if(typeof n=="function")this._hintClickCallback=n;else throw new Error("Provided callback for onhintclick was not a function.");return this},onhintclose:function(n){if(typeof n=="function")this._hintCloseCallback=n;else throw new Error("Provided callback for onhintclose was not a function.");return this},onexit:function(n){if(typeof n=="function")this._introExitCallback=n;else throw new Error("Provided callback for onexit was not a function.");return this},addHints:function(){return nt.call(this,this._targetElement),this},hideHint:function(n){return k.call(this,n),this},hideHints:function(){return lt.call(this),this},showHint:function(n){return tt.call(this,n),this},showHints:function(){return at.call(this),this}},n.introJs=l,l}),function(n){"function"==typeof define&&define.amd?define(["jquery"],n):"object"==typeof exports?module.exports=n(require("jquery")):n(jQuery||Zepto)}(function(n){var r=function(t,i,r){var u={invalid:[],getCaret:function(){try{var n,i=0,e=t.get(0),f=document.selection,r=e.selectionStart;return f&&-1===navigator.appVersion.indexOf("MSIE 10")?(n=f.createRange(),n.moveStart("character",-u.val().length),i=n.text.length):(r||"0"===r)&&(i=r),i}catch(o){}},setCaret:function(n){try{if(t.is(":focus")){var i,r=t.get(0);r.setSelectionRange?(r.focus(),r.setSelectionRange(n,n)):(i=r.createTextRange(),i.collapse(!0),i.moveEnd("character",n),i.moveStart("character",n),i.select())}}catch(u){}},events:function(){t.on("keydown.mask",function(n){t.data("mask-keycode",n.keyCode||n.which)}).on(n.jMaskGlobals.useInput?"input.mask":"keyup.mask",u.behaviour).on("paste.mask drop.mask",function(){setTimeout(function(){t.keydown().keyup()},100)}).on("change.mask",function(){t.data("changed",!0)}).on("blur.mask",function(){e===u.val()||t.data("changed")||t.trigger("change");t.data("changed",!1)}).on("blur.mask",function(){e=u.val()}).on("focus.mask",function(t){!0===r.selectOnFocus&&n(t.target).select()}).on("focusout.mask",function(){r.clearIfNotMatch&&!o.test(u.val())&&u.val("")})},getRegexMask:function(){for(var n=[],t,e,o,r,u=0;u<i.length;u++)(t=f.translation[i.charAt(u)])?(e=t.pattern.toString().replace(/.{1}$|^.{1}/g,""),o=t.optional,(t=t.recursive)?(n.push(i.charAt(u)),r={digit:i.charAt(u),pattern:e}):n.push(o||t?e+"?":e)):n.push(i.charAt(u).replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&"));return n=n.join(""),r&&(n=n.replace(new RegExp("("+r.digit+"(.*"+r.digit+")?)"),"($1)?").replace(new RegExp(r.digit,"g"),r.pattern)),new RegExp(n)},destroyEvents:function(){t.off("input keydown keyup paste drop blur focusout ".split(" ").join(".mask "))},val:function(n){var i=t.is("input")?"val":"text";return 0<arguments.length?(t[i]()!==n&&t[i](n),i=t):i=t[i](),i},getMCharsBeforeCount:function(n,t){for(var u=0,r=0,e=i.length;r<e&&r<n;r++)f.translation[i.charAt(r)]||(n=t?n+1:n,u++);return u},caretPos:function(n,t,r,e){return f.translation[i.charAt(Math.min(n-1,i.length-1))]?Math.min(n+r-t-e,r):u.caretPos(n+1,t,r,e)},behaviour:function(i){var r;if(i=i||window.event,u.invalid=[],r=t.data("mask-keycode"),-1===n.inArray(r,f.byPassKeys)){var e=u.getCaret(),o=u.val().length,s=u.getMasked(),h=s.length,c=u.getMCharsBeforeCount(h-1)-u.getMCharsBeforeCount(o-1),l=e<o;return u.val(s),l&&(8!==r&&46!==r&&(e=u.caretPos(e,o,h,c)),u.setCaret(e)),u.callbacks(i)}},getMasked:function(n,t){var c=[],l=void 0===t?u.val():t+"",e=0,v=i.length,s=0,b=l.length,o=1,y="push",p=-1,a,k;for(r.reverse?(y="unshift",o=-1,a=0,e=v-1,s=b-1,k=function(){return-1<e&&-1<s}):(a=v-1,k=function(){return e<v&&s<b});k();){var d=i.charAt(e),w=l.charAt(s),h=f.translation[d];h?(w.match(h.pattern)?(c[y](w),h.recursive&&(-1===p?p=e:e===a&&(e=p-o),a===p&&(e-=o)),e+=o):h.optional?(e+=o,s-=o):h.fallback?(c[y](h.fallback),e+=o,s-=o):u.invalid.push({p:s,v:w,e:h.pattern}),s+=o):(n||c[y](d),w===d&&(s+=o),e+=o)}return l=i.charAt(a),v!==b+1||f.translation[l]||c.push(l),c.join("")},callbacks:function(n){var f=u.val(),h=f!==e,s=[f,n,t,r],o=function(n,t,i){"function"==typeof r[n]&&t&&r[n].apply(this,i)};o("onChange",!0===h,s);o("onKeyPress",!0===h,s);o("onComplete",f.length===i.length,s);o("onInvalid",0<u.invalid.length,[f,n,t,u.invalid,r])}},f,e,o;t=n(t);f=this;e=u.val();i="function"==typeof i?i(u.val(),void 0,t,r):i;f.mask=i;f.options=r;f.remove=function(){var n=u.getCaret();return u.destroyEvents(),u.val(f.getCleanVal()),u.setCaret(n-u.getMCharsBeforeCount(n)),t};f.getCleanVal=function(){return u.getMasked(!0)};f.getMaskedVal=function(n){return u.getMasked(!1,n)};f.init=function(i){i=i||!1;r=r||{};f.clearIfNotMatch=n.jMaskGlobals.clearIfNotMatch;f.byPassKeys=n.jMaskGlobals.byPassKeys;f.translation=n.extend({},n.jMaskGlobals.translation,r.translation);f=n.extend(!0,{},f,r);o=u.getRegexMask();!1===i?(r.placeholder&&t.attr("placeholder",r.placeholder),t.data("mask")&&t.attr("autocomplete","off"),u.destroyEvents(),u.events(),i=u.getCaret(),u.val(u.getMasked()),u.setCaret(i+u.getMCharsBeforeCount(i,!0))):(u.events(),u.val(u.getMasked()))};f.init(!t.is("input"))},u,i,t;n.maskWatchers={};u=function(){var t=n(this),u={},f=t.attr("data-mask");return t.attr("data-mask-reverse")&&(u.reverse=!0),t.attr("data-mask-clearifnotmatch")&&(u.clearIfNotMatch=!0),"true"===t.attr("data-mask-selectonfocus")&&(u.selectOnFocus=!0),i(t,f,u)?t.data("mask",new r(this,f,u)):void 0};i=function(t,i,r){r=r||{};var u=n(t).data("mask"),f=JSON.stringify;t=n(t).val()||n(t).text();try{return"function"==typeof i&&(i=i(t)),"object"!=typeof u||f(u.options)!==f(r)||u.mask!==i}catch(e){}};n.fn.mask=function(t,u){u=u||{};var f=this.selector,e=n.jMaskGlobals,s=e.watchInterval,e=u.watchInputs||e.watchInputs,o=function(){if(i(this,t,u))return n(this).data("mask",new r(this,t,u))};return n(this).each(o),f&&""!==f&&e&&(clearInterval(n.maskWatchers[f]),n.maskWatchers[f]=setInterval(function(){n(document).find(f).each(o)},s)),this};n.fn.masked=function(n){return this.data("mask").getMaskedVal(n)};n.fn.unmask=function(){return clearInterval(n.maskWatchers[this.selector]),delete n.maskWatchers[this.selector],this.each(function(){var t=n(this).data("mask");t&&t.remove().removeData("mask")})};n.fn.cleanVal=function(){return this.data("mask").getCleanVal()};n.applyDataMask=function(t){t=t||n.jMaskGlobals.maskElements;(t instanceof n?t:n(t)).filter(n.jMaskGlobals.dataMaskAttr).each(u)};t={maskElements:"input,td,span,div",dataMaskAttr:"*[data-mask]",dataMask:!0,watchInterval:300,watchInputs:!0,useInput:function(n){var i=document.createElement("div"),t;return n="on"+n,t=n in i,t||(i.setAttribute(n,"return;"),t="function"==typeof i[n]),t}("input"),watchDataMask:!1,byPassKeys:[9,16,17,18,36,37,38,39,40,91],translation:{0:{pattern:/\d/},9:{pattern:/\d/,optional:!0},"#":{pattern:/\d/,recursive:!0},A:{pattern:/[a-zA-Z0-9]/},S:{pattern:/[a-zA-Z]/}}};n.jMaskGlobals=n.jMaskGlobals||{};t=n.jMaskGlobals=n.extend(!0,{},t,n.jMaskGlobals);t.dataMask&&n.applyDataMask();setInterval(function(){n.jMaskGlobals.watchDataMask&&n.applyDataMask()},t.watchInterval)}),function(n){"use strict";typeof define=="function"&&define.amd?define(n):typeof module!="undefined"&&typeof module.exports!="undefined"?module.exports=n():window.Sortable=n()}(function(){"use strict";function c(n,t){var f,u,i;if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be HTMLElement, and not "+{}.toString.call(n);this.el=n;this.options=t=ai({},t);n[nt]=this;f={group:null,sort:!0,disabled:!1,store:null,handle:null,scroll:!0,scrollSensitivity:30,scrollSpeed:10,draggable:/[uo]l/i.test(n.nodeName)?"li":">*",ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,setData:function(n,t){n.setData("Text",t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,touchStartThreshold:wt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:c.supportPointer!==!1};for(u in f)u in t||(t[u]=f[u]);ei(t);for(i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:wi;r(n,"mousedown",this._onTapStart);r(n,"touchstart",this._onTapStart);t.supportPointer&&r(n,"pointerdown",this._onTapStart);this.nativeDraggable&&(r(n,"dragover",this),r(n,"dragenter",this));ut.push(this._onDragOver);t.store&&this.sort(t.store.get(this))}function gt(i,r){i.lastPullMode!=="clone"&&(r=!0);o&&o.state!==r&&(u(o,"display",r?"none":""),r||o.state&&(i.options.group.revertClone?(t.insertBefore(o,tt),i._animate(n,o)):t.insertBefore(o,n)),o.state=r)}function k(n,t,i){if(n){i=i||f;do if(t===">*"&&n.parentNode===i||ci(n,t))return n;while(n=di(n))}return null}function di(n){var t=n.host;return t&&t.nodeType?t:n.parentNode}function gi(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move");n.preventDefault()}function r(n,t,i){n.addEventListener(t,i,kt)}function e(n,t,i){n.removeEventListener(t,i,kt)}function w(n,t,i){if(n)if(n.classList)n.classList[i?"add":"remove"](t);else{var r=(" "+n.className+" ").replace(ti," ").replace(" "+t+" "," ");n.className=(r+(i?" "+t:"")).replace(ti," ")}}function u(n,t,i){var r=n&&n.style;if(r){if(i===void 0)return f.defaultView&&f.defaultView.getComputedStyle?i=f.defaultView.getComputedStyle(n,""):n.currentStyle&&(i=n.currentStyle),t===void 0?i:i[t];t in r||(t="-webkit-"+t);r[t]=i+(typeof i=="string"?"":"px")}}function oi(n,t,i){if(n){var u=n.getElementsByTagName(t),r=0,f=u.length;if(i)for(;r<f;r++)i(u[r],r);return u}return[]}function v(n,t,i,r,u,e,s,h,c){n=n||t[nt];var l=f.createEvent("Event"),a=n.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);l.initEvent(i,!0,!0);l.to=u||t;l.from=e||t;l.item=r||t;l.clone=o;l.oldIndex=s;l.newIndex=h;l.originalEvent=c;t.dispatchEvent(l);a[v]&&a[v].call(n,l)}function si(n,t,i,r,u,e,o,s){var h,c=n[nt],l=c.options.onMove,a;return h=f.createEvent("Event"),h.initEvent("move",!0,!0),h.to=t,h.from=n,h.dragged=i,h.draggedRect=r,h.related=u||t,h.relatedRect=e||t.getBoundingClientRect(),h.willInsertAfter=s,h.originalEvent=o,n.dispatchEvent(h),l&&(a=l.call(c,h,o)),a}function hi(n){n.draggable=!1}function nr(){dt=!1}function tr(n,t){var r=n.lastElementChild,i=r.getBoundingClientRect();return t.clientY-(i.top+i.height)>5||t.clientX-(i.left+i.width)>5}function ir(n){for(var t=n.tagName+n.className+n.src+n.href+n.textContent,i=t.length,r=0;i--;)r+=t.charCodeAt(i);return r.toString(36)}function ht(n,t){var i=0;if(!n||!n.parentNode)return-1;while(n&&(n=n.previousElementSibling))n.nodeName.toUpperCase()!=="TEMPLATE"&&(t===">*"||ci(n,t))&&i++;return i}function ci(n,t){if(n)try{if(n.matches)return n.matches(t);if(n.msMatchesSelector)return n.msMatchesSelector(t)}catch(i){return!1}return!1}function li(n,t){var i,r;return function(){i===void 0&&(i=arguments,r=this,rt(function(){i.length===1?n.call(r,i[0]):n.apply(r,i);i=void 0},t))}}function ai(n,t){if(n&&t)for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return n}function vi(n){return bt&&bt.dom?bt.dom(n).cloneNode(!0):ii?ii(n).clone(!0)[0]:n.cloneNode(!0)}function rr(n){var t,i,r;for(st.length=0,t=n.getElementsByTagName("input"),i=t.length;i--;)r=t[i],r.checked&&st.push(r)}function ct(n){return rt(n,0)}function ni(n){return clearTimeout(n)}if(typeof window=="undefined"||!window.document)return function(){throw new Error("Sortable.js requires a window with a document");};var n,s,i,o,t,tt,lt,a,at,vt,yt,ft,pt,y,h,it,et,b={},d,l,ot,yi,ti=/\s+/g,pi=/left|right|inline/,nt="Sortable"+(new Date).getTime(),p=window,f=p.document,wt=p.parseInt,rt=p.setTimeout,ii=p.jQuery||p.Zepto,bt=p.Polymer,kt=!1,ri=!1,wi="draggable"in f.createElement("div"),ui=function(n){return!navigator.userAgent.match(/(?:Trident.*rv[ :]?11\.|msie)/i)?(n=f.createElement("x"),n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"):!1}(),dt=!1,g=Math.abs,fi=Math.min,st=[],ut=[],bi=function(){return!1},ki=li(function(n,t,i){if(i&&t.scroll){var w=i[nt],r,o,u=t.scrollSensitivity,y=t.scrollSpeed,s=n.clientX,h=n.clientY,k=window.innerWidth,d=window.innerHeight,f,e,c,v;if(at!==i&&(a=t.scroll,at=i,vt=t.scrollFn,a===!0)){a=i;do if(a.offsetWidth<a.scrollWidth||a.offsetHeight<a.scrollHeight)break;while(a=a.parentNode)}a&&(r=a,o=a.getBoundingClientRect(),f=(g(o.right-s)<=u)-(g(o.left-s)<=u),e=(g(o.bottom-h)<=u)-(g(o.top-h)<=u));f||e||(f=(k-s<=u)-(s<=u),e=(d-h<=u)-(h<=u),(f||e)&&(r=p));(b.vx!==f||b.vy!==e||b.el!==r)&&(b.el=r,b.vx=f,b.vy=e,clearInterval(b.pid),r&&(b.pid=setInterval(function(){(v=e?e*y:0,c=f?f*y:0,"function"!=typeof vt||vt.call(w,c,v,n,l,r)==="continue")&&(r===p?p.scrollTo(p.pageXOffset+c,p.pageYOffset+v):(r.scrollTop+=v,r.scrollLeft+=c))},24)))}},30),ei=function(n){function r(n,t){return(n==null||n===!0)&&(n=i.name,n==null)?bi:typeof n=="function"?n:function(i,r){var u=r.options.group.name;return t?n:n&&(n.join?n.indexOf(u)>-1:u==n)}}var i={},t=n.group;t&&typeof t=="object"||(t={name:t});i.name=t.name;i.checkPull=r(t.pull,!0);i.checkPut=r(t.put);i.revertClone=t.revertClone;n.group=i};try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){ri=!1;kt={capture:!1,passive:ri}}}))}catch(fr){}return c.prototype={constructor:c,_onTapStart:function(t){var s=this,r=this.el,u=this.options,h=u.preventOnFilter,l=t.type,c=t.touches&&t.touches[0],i=(c||t).target,e=t.target.shadowRoot&&t.path&&t.path[0]||i,f=u.filter,o;if((rr(r),!n)&&(!/mousedown|pointerdown/.test(l)||t.button===0)&&!u.disabled&&!e.isContentEditable&&(i=k(i,u.draggable,r),i)&&lt!==i){if(o=ht(i,u.draggable),typeof f=="function"){if(f.call(this,t,i,this)){v(s,e,"filter",i,r,r,o);h&&t.preventDefault();return}}else if(f&&(f=f.split(",").some(function(n){return n=k(e,n.trim(),r),n?(v(s,n,"filter",i,r,r,o),!0):void 0}),f)){h&&t.preventDefault();return}(!u.handle||k(e,u.handle,r))&&this._prepareDragStart(t,c,i,o)}},_prepareDragStart:function(i,u,f,e){var o=this,l=o.el,c=o.options,h=l.ownerDocument,a;f&&!n&&f.parentNode===l&&(d=i,t=l,n=f,s=n.parentNode,tt=n.nextSibling,lt=f,it=c.group,y=e,this._lastX=(u||i).clientX,this._lastY=(u||i).clientY,n.style["will-change"]="all",a=function(){o._disableDelayedDrag();n.draggable=o.nativeDraggable;w(n,c.chosenClass,!0);o._triggerDragStart(i,u);v(o,t,"choose",n,t,t,y)},c.ignore.split(",").forEach(function(t){oi(n,t.trim(),hi)}),r(h,"mouseup",o._onDrop),r(h,"touchend",o._onDrop),r(h,"touchcancel",o._onDrop),r(h,"selectstart",o),c.supportPointer&&r(h,"pointercancel",o._onDrop),c.delay?(r(h,"mouseup",o._disableDelayedDrag),r(h,"touchend",o._disableDelayedDrag),r(h,"touchcancel",o._disableDelayedDrag),r(h,"mousemove",o._disableDelayedDrag),r(h,"touchmove",o._delayedDragTouchMoveHandler),c.supportPointer&&r(h,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=rt(a,c.delay)):a())},_delayedDragTouchMoveHandler:function(n){fi(g(n.clientX-this._lastX),g(n.clientY-this._lastY))>=this.options.touchStartThreshold&&this._disableDelayedDrag()},_disableDelayedDrag:function(){var n=this.el.ownerDocument;clearTimeout(this._dragStartTimer);e(n,"mouseup",this._disableDelayedDrag);e(n,"touchend",this._disableDelayedDrag);e(n,"touchcancel",this._disableDelayedDrag);e(n,"mousemove",this._disableDelayedDrag);e(n,"touchmove",this._disableDelayedDrag);e(n,"pointermove",this._disableDelayedDrag)},_triggerDragStart:function(i,u){u=u||(i.pointerType=="touch"?i:null);u?(d={target:n,clientX:u.clientX,clientY:u.clientY},this._onDragStart(d,"touch")):this.nativeDraggable?(r(n,"dragend",this),r(t,"dragstart",this._onDragStart)):this._onDragStart(d,!0);try{f.selection?ct(function(){f.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(){if(t&&n){var i=this.options;w(n,i.ghostClass,!0);w(n,i.dragClass,!1);c.active=this;v(this,t,"start",n,t,t,y)}else this._nulling()},_emulateDragOver:function(){if(l){if(this._lastX===l.clientX&&this._lastY===l.clientY)return;this._lastX=l.clientX;this._lastY=l.clientY;ui||u(i,"display","none");for(var n=f.elementFromPoint(l.clientX,l.clientY),t=n,r=ut.length;n&&n.shadowRoot;)n=n.shadowRoot.elementFromPoint(l.clientX,l.clientY),t=n;if(t)do{if(t[nt]){while(r--)ut[r]({clientX:l.clientX,clientY:l.clientY,target:n,rootEl:t});break}n=t}while(t=t.parentNode);ui||u(i,"display","")}},_onTouchMove:function(n){if(d){var f=this.options,e=f.fallbackTolerance,o=f.fallbackOffset,t=n.touches?n.touches[0]:n,s=t.clientX-d.clientX+o.x,h=t.clientY-d.clientY+o.y,r=n.touches?"translate3d("+s+"px,"+h+"px,0)":"translate("+s+"px,"+h+"px)";if(!c.active){if(e&&fi(g(t.clientX-this._lastX),g(t.clientY-this._lastY))<e)return;this._dragStarted()}this._appendGhost();ot=!0;l=t;u(i,"webkitTransform",r);u(i,"mozTransform",r);u(i,"msTransform",r);u(i,"transform",r);n.preventDefault()}},_appendGhost:function(){if(!i){var r=n.getBoundingClientRect(),s=u(n),e=this.options,o;i=n.cloneNode(!0);w(i,e.ghostClass,!1);w(i,e.fallbackClass,!0);w(i,e.dragClass,!0);u(i,"top",r.top-wt(s.marginTop,10));u(i,"left",r.left-wt(s.marginLeft,10));u(i,"width",r.width);u(i,"height",r.height);u(i,"opacity","0.8");u(i,"position","fixed");u(i,"zIndex","100000");u(i,"pointerEvents","none");e.fallbackOnBody&&f.body.appendChild(i)||t.appendChild(i);o=i.getBoundingClientRect();u(i,"width",r.width*2-o.width);u(i,"height",r.height*2-o.height)}},_onDragStart:function(i,e){var s=this,c=i.dataTransfer,h=s.options;s._offUpEvents();it.checkPull(s,s,n,i)&&(o=vi(n),o.draggable=!1,o.style["will-change"]="",u(o,"display","none"),w(o,s.options.chosenClass,!1),s._cloneId=ct(function(){t.insertBefore(o,n);v(s,t,"clone",n)}));w(n,h.dragClass,!0);e?(e==="touch"?(r(f,"touchmove",s._onTouchMove),r(f,"touchend",s._onDrop),r(f,"touchcancel",s._onDrop),h.supportPointer&&(r(f,"pointermove",s._onTouchMove),r(f,"pointerup",s._onDrop))):(r(f,"mousemove",s._onTouchMove),r(f,"mouseup",s._onDrop)),s._loopId=setInterval(s._emulateDragOver,50)):(c&&(c.effectAllowed="move",h.setData&&h.setData.call(s,c,n)),r(f,"drop",s),s._dragStartId=ct(s._dragStarted))},_onDragOver:function(r){var e=this.el,f,y,h,ut,a=this.options,st=a.group,l=c.active,w=it===st,ht=!1,ct=a.sort,d,g,p;if((r.preventDefault!==void 0&&(r.preventDefault(),a.dragoverBubble||r.stopPropagation()),!n.animated)&&(ot=!0,l&&!a.disabled&&(w?ct||(ut=!t.contains(n)):et===this||(l.lastPullMode=it.checkPull(this,l,n,r))&&st.checkPut(this,l,n,r))&&(r.rootEl===void 0||r.rootEl===this.el))){if(ki(r,a,this.el),dt)return;if(f=k(r.target,a.draggable,e),y=n.getBoundingClientRect(),et!==this&&(et=this,ht=!0),ut){gt(l,!0);s=t;o||tt?t.insertBefore(n,o||tt):ct||t.appendChild(n);return}if(e.children.length===0||e.children[0]===i||e===r.target&&tr(e,r)){if(e.children.length!==0&&e.children[0]!==i&&e===r.target&&(f=e.lastElementChild),f){if(f.animated)return;h=f.getBoundingClientRect()}gt(l,w);si(t,e,n,y,f,h,r)!==!1&&(n.contains(e)||(e.appendChild(n),s=e),this._animate(y,n),f&&this._animate(h,f))}else if(f&&!f.animated&&f!==n&&f.parentNode[nt]!==void 0){yt!==f&&(yt=f,ft=u(f),pt=u(f.parentNode));h=f.getBoundingClientRect();var kt=h.right-h.left,lt=h.bottom-h.top,at=pi.test(ft.cssFloat+ft.display)||pt.display=="flex"&&pt["flex-direction"].indexOf("row")===0,vt=f.offsetWidth>n.offsetWidth,wt=f.offsetHeight>n.offsetHeight,bt=(at?(r.clientX-h.left)/kt:(r.clientY-h.top)/lt)>.5,b=f.nextElementSibling,v=!1;at?(d=n.offsetTop,g=f.offsetTop,v=d===g?f.previousElementSibling===n&&!vt||bt&&vt:f.previousElementSibling===n||n.previousElementSibling===f?(r.clientY-h.top)/lt>.5:g>d):ht||(v=b!==n&&!wt||bt&&wt);p=si(t,e,n,y,f,h,r,v);p!==!1&&((p===1||p===-1)&&(v=p===1),dt=!0,rt(nr,30),gt(l,w),n.contains(e)||(v&&!b?e.appendChild(n):f.parentNode.insertBefore(n,v?b:f)),s=n.parentNode,this._animate(y,n),this._animate(h,f))}}},_animate:function(n,t){var i=this.options.animation,r;i&&(r=t.getBoundingClientRect(),n.nodeType===1&&(n=n.getBoundingClientRect()),u(t,"transition","none"),u(t,"transform","translate3d("+(n.left-r.left)+"px,"+(n.top-r.top)+"px,0)"),yi=t.offsetWidth,u(t,"transition","all "+i+"ms"),u(t,"transform","translate3d(0,0,0)"),clearTimeout(t.animated),t.animated=rt(function(){u(t,"transition","");u(t,"transform","");t.animated=!1},i))},_offUpEvents:function(){var n=this.el.ownerDocument;e(f,"touchmove",this._onTouchMove);e(f,"pointermove",this._onTouchMove);e(n,"mouseup",this._onDrop);e(n,"touchend",this._onDrop);e(n,"pointerup",this._onDrop);e(n,"touchcancel",this._onDrop);e(n,"pointercancel",this._onDrop);e(n,"selectstart",this)},_onDrop:function(r){var l=this.el,u=this.options;clearInterval(this._loopId);clearInterval(b.pid);clearTimeout(this._dragStartTimer);ni(this._cloneId);ni(this._dragStartId);e(f,"mouseover",this);e(f,"mousemove",this._onTouchMove);this.nativeDraggable&&(e(f,"drop",this),e(l,"dragstart",this._onDragStart));this._offUpEvents();r&&(ot&&(r.preventDefault(),u.dropBubble||r.stopPropagation()),i&&i.parentNode&&i.parentNode.removeChild(i),(t===s||c.active.lastPullMode!=="clone")&&o&&o.parentNode&&o.parentNode.removeChild(o),n&&(this.nativeDraggable&&e(n,"dragend",this),hi(n),n.style["will-change"]="",w(n,this.options.ghostClass,!1),w(n,this.options.chosenClass,!1),v(this,t,"unchoose",n,s,t,y,null,r),t!==s?(h=ht(n,u.draggable),h>=0&&(v(null,s,"add",n,s,t,y,h,r),v(this,t,"remove",n,s,t,y,h,r),v(null,s,"sort",n,s,t,y,h,r),v(this,t,"sort",n,s,t,y,h,r))):n.nextSibling!==tt&&(h=ht(n,u.draggable),h>=0&&(v(this,t,"update",n,s,t,y,h,r),v(this,t,"sort",n,s,t,y,h,r))),c.active&&((h==null||h===-1)&&(h=y),v(this,t,"end",n,s,t,y,h,r),this.save())));this._nulling()},_nulling:function(){t=n=s=i=tt=o=lt=a=at=d=l=ot=h=yt=ft=et=it=c.active=null;st.forEach(function(n){n.checked=!0});st.length=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragover":case"dragenter":n&&(this._onDragOver(t),gi(t));break;case"mouseover":this._onDrop(t);break;case"selectstart":t.preventDefault()}},toArray:function(){for(var i=[],n,r=this.el.children,t=0,f=r.length,u=this.options;t<f;t++)n=r[t],k(n,u.draggable,this.el)&&i.push(n.getAttribute(u.dataIdAttr)||ir(n));return i},sort:function(n){var t={},i=this.el;this.toArray().forEach(function(n,r){var u=i.children[r];k(u,this.options.draggable,i)&&(t[n]=u)},this);n.forEach(function(n){t[n]&&(i.removeChild(t[n]),i.appendChild(t[n]))})},save:function(){var n=this.options.store;n&&n.set(this)},closest:function(n,t){return k(n,t||this.options.draggable,this.el)},option:function(n,t){var i=this.options;if(t===void 0)return i[n];i[n]=t;n==="group"&&ei(i)},destroy:function(){var n=this.el;n[nt]=null;e(n,"mousedown",this._onTapStart);e(n,"touchstart",this._onTapStart);e(n,"pointerdown",this._onTapStart);this.nativeDraggable&&(e(n,"dragover",this),e(n,"dragenter",this));Array.prototype.forEach.call(n.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")});ut.splice(ut.indexOf(this._onDragOver),1);this._onDrop();this.el=n=null}},r(f,"touchmove",function(n){c.active&&n.preventDefault()}),c.utils={on:r,off:e,css:u,find:oi,is:function(n,t){return!!k(n,t,n)},extend:ai,throttle:li,closest:k,toggleClass:w,clone:vi,index:ht,nextTick:ct,cancelNextTick:ni},c.create=function(n,t){return new c(n,t)},c.version="1.7.0",c});var global=window,SURROGATE_PAIR_REGEXP=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,NON_ALPHANUMERIC_REGEXP=/([^\#-~| |!])/g;window.onunload=function(){};$.antiForgeryToken={};$.antiForgeryToken.key="__RequestVerificationToken";$("input[name="+$.antiForgeryToken.key+"]").length&&($.antiForgeryToken.value=$("input[name="+$.antiForgeryToken.key+"]").val());$.validateUrl=function(n){return["http://","https://"].filter(function(t){return(n+"").indexOf(t)===0}).length!==0};$.replaceClass=function(n,t,i){$(n).each(function(n,r){$(r).removeClass(t);$(r).addClass(i)})};$(document).keydown(function(n){n.keyCode==27&&($(".modal").modal("hide"),$(".popover").popover("hide"))});typeof bootbox!="undefined"&&bootbox&&(bootbox.nconfirm=function(n,t,i,r,u,f,e,o){bootbox.dialog({message:t,title:n,buttons:{cancel:{label:u||"Cancel",className:"btn-default"},ok:{label:r||"Yes",className:"btn-primary",callback:i}},raw:f,data:e,currentButton:o})});helpers=helpers||{};helpers.reparseValidations=function(){if($.validator){var n=$("form");n.removeData("validator");n.removeData("unobtrusiveValidation");$.validator.unobtrusive.parse("form")}};helpers.removeFunctions=function(n){for(var t in n)typeof n[t]=="object"?n[t]=helpers.removeFunctions(n[t]):typeof n[t]=="function"&&delete n[t];return n};helpers.compareObjectData=function(n,t){var r,i;if(typeof n=="boolean"||typeof t=="boolean")return(n+"").toLowerCase()===(t+"").toLowerCase();if(Array.isArray(n)||Array.isArray(t)||typeof n=="object"){if(Array.isArray(n)||Array.isArray(t)){if((n==null||n.toString()==="")&&(t==null||t.toString()===""))return!0;if(n==null&&t!=null||n!=null&&t==null||n.length!==t.length)return!1;for(r in n)if(!helpers.compareObjectData(n[r],t[r]))return!1}for(i in n)if(typeof n[i]!="function"){if(typeof n[i]=="object"||Array.isArray(n[i])){if(!helpers.compareObjectData(n[i],t[i]))return!1;continue}if(!helpers.compareObjectData(n[i],t[i]))return!1}return!0}return n==t};helpers.truncateString=function(n,t){return n.length>t?n.substr(0,t-1)+"...":n};$("input.indeterminate").each(function(n,t){$(t).prop("indeterminate",!0)});$.ajaxSetup({beforeSend:function(n){var t=$.antiForgeryToken&&$.antiForgeryToken.value;t&&n.setRequestHeader($.antiForgeryToken.key,t)}});String.prototype.format=function(n){var t=this;for(var i in n)t=t.replace("{"+i+"}",n[i]);return t};String.prototype.csformat=function(){var t,n,i;if(arguments.length==0)return this;for(t=this,n=0;n<arguments.length;n++)i=new RegExp("\\{"+n+"\\}","gi"),t=t.replace(i,arguments[n]);return t};Number.prototype.isMoreThan=function(n){return this<n};$(".list-group-item.list-group-item-checkbox").click(function(n){var t=$(this).find("input:checkbox");$(n.target).is("input[type=checkbox]")||$(n.target).is("label")&&$(n.target).find("input").length||(t.is(":checked")?t.prop("checked",!1):t.prop("checked",!0))});$(document).ready(function(){$(".btn-file-remover").click(function(){$(this).parents(".input-group").find("input:not([type=button], [type=submit])").val("").change()})});$(document).on("change",".btn-file :file",function(){var n=$(this),t=n.get(0).files?n.get(0).files.length:1,i=n.val().replace(/\\/g,"/").replace(/.*\//,"");n.trigger("fileselect",[t,i])});$(document).ready(function(){$(document).on("fileselect",".btn-file :file",function(n,t,i){var r=$(this).parents(".input-group").find(":text"),u=t>1?t+" files selected":i;r.length&&(r.val(u),r.change());$(this).parents(".input-group").find("[type=hidden]").val("")})});$("form").on("submit",function(){$this=$(this);var n=$this.find("input:submit");return n.length?$this.valid&&!$this.valid()?(n.prop("disabled",!1),!1):(n.attr("disabled",""),!0):!0});$(document).ready(function(){$("input[type=checkbox].visibility-determinator").each(function(n,t){t=$(this);var i=$(t).hasClass("visibility-determinator-reverted"),u=t.attr("name"),r="[data-visibility-determinator='"+u+"']";t.on("change",function(){$(r).each(function(n,r){$(r).toggle(t.is(":checked")^i^$(r).hasClass("visibility-determinator-reverted")&&!0)})});$(r).each(function(n,r){$(r).removeClass("hidden");$(r).toggle(t.is(":checked")^i^$(r).hasClass("visibility-determinator-reverted")&&!0)})})});$("td.checkbox-container, th.checkbox-container").click(function(n){var t=$(this).closest("tr").find("input:checkbox").get(0);n.target!==t&&(n.preventDefault(),t.click())});$(document).ready(function(n){var i=300,r=1200,u=700,t=n(".cd-top");n(window).scroll(function(){n(this).scrollTop()>i?t.addClass("cd-is-visible"):t.removeClass("cd-is-visible cd-fade-out");n(this).scrollTop()>r&&t.addClass("cd-fade-out")});t.on("click",function(t){t.preventDefault();n("body,html").animate({scrollTop:0},u)})});$("[data-toggle=tooltip]").on("touchstart",function(n){$(".tooltip").length?$(n.target).tooltip("hide"):$(n.target).tooltip("show")});$("label.checkbox-disable-click").click(function(n){$(n.target).is(":checkbox")||n.preventDefault()});$("form").each(function(n,t){showInvalidTab(t)});somethingChanged(function(){$("a:not([rel])").each(function(n,t){$(t).attr("rel","noreferrer")})});jQuery.extend(jQuery.expr[":"],{attrStartsWith:function(n,t,i){for(var r=0,u=n.attributes,f=u.length;r<f;r++)if(u[r].nodeName.toLowerCase().indexOf(i[3].toLowerCase())===0)return!0;return!1}});$.normalizeBoolean=function(n){return String(n).toLowerCase()==="true"};$("form").on("submit",function(){var n=$(this).find(":submit");return n.length?$this.valid&&!$(this).valid()?(n.prop("disabled",!1),!1):(n.attr("disabled",""),!0):!0});$(document).ready(function(){$("input[type=submit]",this).each(function(n,t){$(t).attr("disabled",null)})});$.userDateFormat=$.userDateFormat||typeof userDateFormat!="undefined"&&userDateFormat||"DD/MM/YYYY";$.userDateTimeFormat=$.userDateTimeFormat||typeof userDateTimeFormat!="undefined"&&userDateTimeFormat||"DD/MM/YYYY hh:mm A";somethingChanged(function(){$(".date-picker").each(function(n,t){$(t).datetimepicker({sideBySide:!0,format:$.userDateFormat});$(t).parent().find(".date-icon").click(function(){$(t).data("DateTimePicker").show()})});$(".date-time-picker").each(function(n,t){$(t).datetimepicker({sideBySide:!0,format:$.userDateTimeFormat});$(t).parent().find(".date-icon").click(function(){$(t).data("DateTimePicker").show()})})});somethingChanged(function(){$("a:not([rel])").each(function(n,t){$(t).attr("rel","noreferrer")})});somethingChanged(function(){$(":attrStartsWith('data-showit'):not(.showit-done)").each(function(){var n=$(this);n.on("click",function(){window.prompt(n.data("showitName")+":",n.data("showitValue"))}).addClass("showit-done")})});somethingChanged(function(){$("option[href]").each(function(n,t){$(t).parent().on("change",function(n){window.location=n.target.options[n.target.selectedIndex].getAttribute("href")})})});somethingChanged(function(){$("select[readonly] option").not("[selected]").each(function(n,t){$(t).attr("disabled","disabled")})});somethingChanged(function(){$(".unlink").each(function(){$(this).click(function(){return!1});$(this).removeClass("unlink")})});ncLocalStorage={_getSet:function(n,t){return typeof Storage=="undefined"?undefined:(t||t===0?localStorage.setItem("nc_"+n,t):t=localStorage.getItem("nc_"+n),t)},csvSeparator:function(n){return ncLocalStorage._getSet("csvSeparator",n)||0},attributeOption:function(n){return ncLocalStorage._getSet("attributeOption",n)||"default"}};somethingChanged(function(){$("[data-toggle='tooltip']:not(.tooltip-ok)").each(function(n,t){$(t).tooltip({container:"body",placement:$(this).data("placement")||"top"})})});$("a[data-toggle=collapse]").each(function(n,t){var i=$($(t).attr("href"));$(i).on("show.bs.collapse",function(){$(".collapse-arrow",t).removeClass("icon-chevron-down");$(".collapse-arrow",t).addClass("icon-chevron-up")});$(i).on("hide.bs.collapse",function(){$(".collapse-arrow",t).removeClass("icon-chevron-up");$(".collapse-arrow",t).addClass("icon-chevron-down")})}),function(){function t(t){var i={focus:!0,focusin:!0,pageshow:!0,blur:!1,focusout:!1,pagehide:!1};t=t||window.event;document.visible=t.type in i?i[t.type]:!this[n]}var n="hidden";n in document?document.addEventListener("visibilitychange",t):(n="mozHidden")in document?document.addEventListener("mozvisibilitychange",t):(n="webkitHidden")in document?document.addEventListener("webkitvisibilitychange",t):(n="msHidden")in document?document.addEventListener("msvisibilitychange",t):"onfocusin"in document?document.onfocusin=document.onfocusout=t:window.onpageshow=window.onpagehide=window.onfocus=window.onblur=t;document[n]!==undefined&&t({type:document[n]?"blur":"focus"})}();const allowedEndpoint="/technologies/mostidentifiedtechnologies/";somethingChanged(lazyLoaded);$(function(){$("body").on("hover",".copy-to-clipboard",function(){$(this).tooltip("show")},function(){$(this).tooltip("hide")}).on("click",".copy-to-clipboard",function(){var n=$(this).parent().siblings("input").val();$("<input/>").appendTo("body").val(n).select().each(function(n,t){$(t).focus();document.execCommand("copy")}).remove();$(this).focus();$(".tooltip.in>.tooltip-inner").text("Copied!")});$(".copy-to-clipboard [data-toggle='tooltip']").tooltip({trigger:"manuel",placement:"right",title:"Copy to clipboard"})});$(function(){$("body").on("hover",".show-hide-value",function(){$(this).tooltip("show")},function(){$(this).tooltip("hide")}).on("click",".show-hide-value",function(){var t=$(this).parent().siblings("input"),n=$($(this).find("i.fa")[0]);t.attr("type")==="password"?(t.attr("type","text"),n.addClass("fa-eye-slash"),n.removeClass("fa-eye")):(t.attr("type","password"),n.addClass("fa-eye"),n.removeClass("fa-eye-slash"));$(this).focus()});$(".show-hide-value [data-toggle='tooltip']").tooltip({trigger:"manuel",placement:"right",title:"Show/Hide value"})});$(document).ready(function(){$("[data-display-password='toggle']").click(function(){var n=$(this);n.toggleClass("fa-eye").toggleClass("fa-eye-slash");n.prev().toggle().prev().toggle()})});$(document).ready(function(){var n=$(".footable th:first > input[type=checkbox]");if(n.length){var t=n.closest("table"),i=t.find("tbody tr:not(#pagefilter)"),r=i.find("td:first-child"),u=r.filter(function(){return $(this).has("input[type=checkbox]").length});u.length||n.hide()}$(".grid-create-row").on("click keypress",function(n){n.preventDefault();n.stopPropagation();grid.createRow(this)});$("body").on("click keypress",".grid-remove-row",function(){grid.removeRow(this)});$("body").on("click","[data-toggle='tooltip']",function(){if($(this).parent().is("label"))return!1});$(".img-hide-onerror").error(function(){this.style.display="none"})});jQuery.event.mouseHooks={props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),filter:function(n,t){var i,f,r,u=t.button,e=t.fromElement;return n.pageX==null&&t.clientX!=null&&(f=n.target.ownerDocument||document,r=f.documentElement,i=f.body,n.pageX=t.clientX+(r&&r.scrollLeft||i&&i.scrollLeft||0)-(r&&r.clientLeft||i&&i.clientLeft||0),n.pageY=t.clientY+(r&&r.scrollTop||i&&i.scrollTop||0)-(r&&r.clientTop||i&&i.clientTop||0)),!n.relatedTarget&&e&&(n.relatedTarget=e===n.target?t.toElement:e),n.which||u===undefined||(n.which=u&1?1:u&2?3:u&4?2:0),n}};$(function(){$(".radiobutton").radioTabbable()});$.fn.radioTabbable=function(){let n=[];$(this).each(function(){let t=this,i=n[t.name]=n[t.name]||[];i.push(t)});$(this).on("keydown",function(t){t.keyCode===13&&t.preventDefault();setTimeout(function(){let u=t.target,i=n[u.name]=n[u.name]||[],r=i.indexOf(t.target);t.keyCode===9&&(r<i.length-1&&!t.shiftKey?i[r+1].focus():r>0&&t.shiftKey&&i[r-1].focus())})})};$.areScanTargetsSame=function(n,t){var i=$("<a/>").attr("href",n)[0],r=$("<a/>").attr("href",t)[0];return i.host===r.host&&i.port===r.port&&i.host};$(".requiredif-check").on("change",function(){var n=$(this).data("requiredif-target");$(this).is(":checked")?$(n).show("fast"):$(n).hide("fast")});urlrewrite=urlrewrite||{};urlrewrite.replacePlaceholdersWithRegex=function(n){return"^"+n.replace(new RegExp("{([^}]+)}","gi"),"(?<$1>[^/]+)")+"/?$"};$(document).ajaxError(function(n,t,i,r){t.status===401?window.location="/account/signin/":console.log("Error requesting page! URL: "+i.url+", Error: ("+t.status+") "+r)});somethingChanged(function(){$("input[type=submit]",this).each(function(n,t){$(t).hasClass("btn-select")||$(t).attr("disabled",null)})});loader=loader||{};loader.show=function(){$(".loader").css("display","inherit");$(".content").css("overflow","hidden")};loader.hide=function(){$(".loader").css("display","none");$(".content").removeAttr("style")};$(document).ready(function(){loader.hide()});somethingChanged(function(){$("select[multiple]:not(.no-multiselect)").multiselect({numberDisplayed:1,includeSelectAllOption:!0,selectAllText:"Select All"});isMobile.iOS()&&($(".checkbox > label").css("display","inline-block"),$(".checkbox > label > input[type='checkbox']").css("margin-top","1px"))});var isMobile={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)&&!window.MSStream},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)||navigator.userAgent.match(/WPDesktop/i)},any:function(){return isMobile.Android()||isMobile.BlackBerry()||isMobile.iOS()||isMobile.Opera()||isMobile.Windows()}},browser={isFirefox:function(){return navigator.userAgent.toLowerCase().indexOf("firefox")>-1}},ncLocalStorage={_getSet:function(n,t){return typeof Storage=="undefined"?undefined:(t||t===0?localStorage.setItem("nc_"+n,t):t=localStorage.getItem("nc_"+n),t)},csvSeparator:function(n){return ncLocalStorage._getSet("csvSeparator",n)||0},attributeOption:function(n){return ncLocalStorage._getSet("attributeOption",n)||"default"}};$(document).ready(function(){var n=$(".pageFilterToggle"),t;n.length&&(t=n.parents("table").first(),t.length||n.hide());n.click(function(){var t=$(this),i=$(this).parents("table").first(),n;i.find("thead th").toggleClass("removeBorderBottom");i.find("tbody").children("#pagefilter").first().toggle();t.toggleClass("active");n=$("#PageFilterSelect");t.hasClass("active")?(n.select2("open"),$(".select2-search__field")[0].focus()):n.select2("close")})});$(document).ready(function(){$(".scan-status-container").each(function(n,t){var i=null;$(t).focusin(function(){$(this).find(".scan-status-info").each(function(n,t){if($(t).css("display")!="none")return i=t,!1});i==null||$(i).hasClass("ignore-tooltip")||($(i).focus(),$(i).tooltip("show"))});$(t).focusout(function(){i==null||$(i).hasClass("ignore-tooltip")||($(i).tooltip("hide"),i=null)});$(t).on("click keypress",function(n){(n.which===13||n.type==="click")&&(document.location.href=$(this).attr("data-url"))})});$(".tooltip-span-with-redirect").each(function(n,t){$(t).keypress(function(n){var t=n.which;if(t==13)return $(this).parent()[0].click(),!1})})});document.getElementById("dashboard-group-selector-search")&&(document.getElementById("dashboard-group-selector-search").onkeyup=function(n){groupSelectorFilter("dashboard-group-selector",n.target.value)},document.getElementById("dashboard-group-selector").getElementsByTagName("button")[0].addEventListener("click",function(){document.getElementById("dashboard-group-selector-search").value="";groupSelectorFilter("dashboard-group-selector","")}));grid=grid||{};grid.selectRow=!1;grid.getTableFromChild=function(n){var t=$(n);return $(t.siblings().closest("table")[0]||t.siblings().closest("div.table-responsive").children("table")[0]||t.closest("table")[0]||t.parents("table")[0])};grid.getTableViewModel=function(n){var u=n.data("viewmodel"),t,i,r;if(u==null)return null;for(t=u.split("."),i=global[t[0]],r=1;r<t.length;r++)i=i[t[r]];return i};grid.fixInputNames=function(n){var r=$(n),t=grid.getTableFromChild(r),i=t.data("input-name");i&&(t.find("tbody > tr").each(function(n,t){function u(n,t,i,r){n.attr(t,n.attr(t).replace("_"+i+"__","_"+r+"__").replace("["+i+"]","["+r+"]"))}if($(t).attr("class")==null||$(t).attr("class").indexOf("new")===-1){var r=n;$(t).find("td select,td input[name], td textarea").each(function(n,t){var f=$(t),o=f.attr("name").substr(i.length+1).split("]")[0],e;f.attr("autocomplete","off");e=f.prev();e.length==0&&(e=f.parent("label"));e.length&&(e.is("label[for]")&&u(e,"for",o,r),e.is("label[id]")&&u(e,"id",o,r));f.is("[id]")&&u(f,"id",o,r);f.is("[aria-describedby]")&&u(f,"aria-describedby",o,r);u(f,"name",o,r);f.is("[data-bind-template]")&&f.attr("data-bind",f.attr("data-bind-template")).removeAttr("data-bind-template");f.is("[data-bind]")&&(u(f,"data-bind",o,r),f.attr("data-bind",f.attr("data-bind").replace("["+r+"]","()["+r+"]")));f.next().attr("data-valmsg-for",f.attr("name").replace("["+o+"]","["+r+"]")).find("span").attr("id",f.attr("aria-describedby"))})}}),helpers.reparseValidations())};grid.removeRow=function(n){var e=grid.getTableFromChild(n),t=grid.getTableViewModel(e),r=$(n.parentElement.parentElement),i=r.parent().children("tr"),u=i.index(r),f;t!=null&&(f=i.index(r),t.remove?t.remove(t()[f]):(t().splice(f,1),t.valueHasMutated()));r.remove();grid.fixInputNames(e);$(document).change();u!==i.length-1?$($(i[u+1]).find("td:eq(1)")[0]).find("a:eq(0)").focus():$($(i[u-1]).find("td:eq(1)")[0]).find("a:eq(0)").focus();grid.updateRowLabels()};grid.updateRowLabels=function(){var n=$('[data-new-row-id="IssueTrackingSystem_CustomField_Row"] tbody tr');n.each(function(n,t){var i=$(t).find(".grid-remove-row");i.attr("title","Remove Row "+(n+1))})};grid.getRowIndex=function(n){var i=grid.getTableFromChild(n),r=grid.getTableViewModel(i),t=$(n.closest("tr")),u=t.parent().children("tr");return r!=null?u.index(t):-1};grid.createRow=function(n,t){var o=$(n),f=grid.getTableFromChild(o),s=f.data("new-row-id"),r=grid.getTableViewModel(f),i=$("#"+s).clone(),u,e;if(i.find("input").keypress(function(){}),i.find(".no-multiselect").removeClass("no-multiselect"),t!=null)$(i).find("input:not([type=hidden]), select, textarea").each(function(n,r){var u=$(r).attr("name").split(".").reverse()[0];typeof t[u]=="function"?grid.setValueOfInput(r,t[u]()):grid.setValueOfInput(r,t[u]);grid.hookValueChanged($(r),function(n){t[u](grid.getValueOfInput(n.target))});grid.onViewChange(i,u,t)});else if(r!=null){u={};$(i).find("input:not([type=hidden]), select, textarea").each(function(n,t){var i=$(t).attr("name").split(".").reverse()[0],r=grid.getValueOfInput(t);u[i]=ko.observable(r);grid.hookValueChanged($(t),function(n){u[i](grid.getValueOfInput(n.target))})});r()==null?(r([u]),r.valueHasMutated()):r.push?(r.push(u),ko.applyBindings(global.viewModel,i[0])):(r().push(u),r.valueHasMutated());grid.onViewChange(i,name,u)}else i.attr("class",null).attr("id",null).appendTo(f.find("tbody")),e=i.find("input[type=text]:first, textarea:first").get(0),e&&e.focus(),grid.fixInputNames(o);return $(document).change(),grid.updateRowLabels(),i.attr("class",null).attr("id",null)};grid.bindViewModels=function(){var n=$("table[data-viewmodel]");n.each(function(n,t){var i=$(t),r=grid.getTableViewModel(i);r.subscribe(function(){var n=$(window).scrollTop();grid.reloadViewModel(i,r);$(window).scrollTop(n)});i.find("tbody tr").each(function(n,t){var i=r()[n];$(t).find("input, select, textarea").each(function(n,r){var u=$(r).attr("name").split(".").reverse()[0];grid.hookValueChanged($(r),function(n){i[u](grid.getValueOfInput(n.target))});grid.onViewChange($(t),u,i)})})})};grid.reloadViewModel=function(n,t){var f=$(n).find("tbody"),i,u,r;f.html("");i=[];for(u in t())i.push(grid.createRow($(n).siblings("a, button"),t()[u]));$(n).find("tbody").append(i);grid.fixInputNames(i[0]);r=$(n).find("tbody").find("tr:last").find("input[type=text]:first, textarea:first").get(0);r&&(r.focus(),grid.selectRow&&(r.select(),grid.selectRow=!1))};grid.getValueOfInput=function(n){if(["checkbox","radio"].indexOf($(n).attr("type"))!==-1){var t=$(n).val(),i=/true|false/gi.test(t);return i?n.checked:n.checked?t:""}return $(n).val()};grid.setValueOfInput=function(n,t){var i=$(n);if(["checkbox","radio"].indexOf($(n).attr("type"))!==-1){var u=i.val(),f=/true|false/gi.test(u),r=i.parent();r.is("label[for]")&&i.val()==t&&r.addClass("active");f?i.prop("checked",t&&(typeof t!="string"||t.toLowerCase()!=="false")):i.val()==t&&i.prop("checked",!0)}else i.val(t)};grid.hookValueChanged=function(n,t){var i=n.prop("tagName").toLowerCase(),r=n.prop("type").toLowerCase();if(["select"].indexOf(i)!==-1||["radio","checkbox"].indexOf(r)!==-1)$(n).on("change",t);$(n).on("input",t)};grid.initializeSortableOnes=function(n,t){var u=$(".table-grid.table-grid-sortable"),i=null,f="Draggable Item, Use space and arrow keys for changing order",s="Order change ready, use up-down keys for changing order",r=function(n,t){if(t){if(i!=null){r(i,!1);return}$(n).removeClass("fa-bars").addClass("fa-arrows-v");$(n).attr("aria-label",s);$(n).closest("tr").attr("aria-grabbed","true");i=n}else $(n).removeClass("fa-arrows-v").addClass("fa-bars"),$(n).attr("aria-label",f),$(n).closest("tr").attr("aria-grabbed","false"),i=null},e=function(n,i,r){t&&t(i);var u=$(n).data("gridOrder");u?$($(n).children("span")[0]).attr("aria-label","Order "+r+" to "+u):$($(n).children("span")[0]).attr("aria-label","Order "+r);grid.fixInputNames(i[0])},h=function(n){var u=n.which,t=$(n.target),f;if(u==32)return f=$(t.children("span")[0]),i!=f?r(f,!0):r(f,!1),!1;if(i!=null){var o=$(this).closest("tr"),s=t.parent(),h=t.closest("tbody");if(u==38)return o.prev().insertAfter(s),e(t,h,"increased"),!1;if(u==40)return o.insertAfter(s.next()),$(o.children("td")[0]).focus(),e(t,h,"decreased"),!1;u==9&&i!=null&&r(i,!1)}},o=function(n){$(n).attr("aria-grabbed","false");$("<span/>").addClass("fa").addClass("fa-bars").attr("aria-label",f).attr("aria-live","assertive").attr("role","button").attr("name","Draggable Icon").appendTo($("<td/>").css("cursor","move").addClass("sortable-mover").attr("tabindex","0").prependTo(n).keydown(h).append($(`<span class="pseudo-element-helper-icon hide">&#8801;</span>`)))};u.find("tbody").each(function(t,i){$(i).find("tr").each(function(n,t){o(t)});Sortable.create(i,{handle:".sortable-mover",animation:150,onEnd:function(n){grid.fixInputNames(n.target)},onUpdate:n})});u.find("thead tr").each(function(n,t){$("<th/>").prependTo(t)});u.each(function(n,t){var i=grid.getTableFromChild(t),r=$("#"+i.data("new-row-id"));o(r)})};grid.onViewChange=function(){};$(document).ready(function(){grid.bindViewModels();grid.initializeSortableOnes()});$(document).ready(function(){CheckSelectionsSelect()});$(".btn-select").click(function(){var n=$(this),u=n.data("method")||"GET",s=n.data("modal-cancel"),h=n.data("modal-ok"),c=n.data("modal-message"),f=n.data("modal-title"),e=n.data("url"),t=$(".row-id").filter(function(n,t){return $(t).is(":checked")}),o=$(this).data(),i,r;for(i in o)i.indexOf("input")==0&&t.push({name:i.replace("input",""),value:o[i]});e&&(r=function(){var i=$("<form><\/form>"),r;for(i.attr({action:e,method:u}),r=0;r<t.length;r++)$("<input>").attr({type:"hidden",name:t[r].name,value:t[r].value}).appendTo(i);u==="POST"&&$.antiForgeryToken.value&&$("<input>").attr({type:"hidden",name:$.antiForgeryToken.key,value:$.antiForgeryToken.value}).appendTo(i);i.appendTo(n.parent());i.submit()},f?bootbox.nconfirm(f,c,r,h,s):r())});$("input:checkbox").change(function(){CheckSelectionsSelect()});somethingChanged(function(){$("input[type=submit]",this).each(function(n,t){$(t).hasClass("btn-select")||$(t).attr("disabled",null)})});$(".table th input:checkbox").click(function(){var n=$(this).closest(".table").find("tbody tr:not(:hidden) input:enabled:checkbox");$(this).is(":checked")?n.prop("checked",!0):n.prop("checked",!1)});somethingChanged(initAutoConfirmModals);autoForm={};autoForm.submitForm=function(n){n.submitButton.attr("disabled",!0);$.ajax(n.endpoint,{traditional:!0,data:n.inputs,method:n.method,success:function(t){$(n.elementToReplace).replaceWith(t);n.submitChain&&$(n.submitChain).submit();n.submitButton.removeAttr("disabled")},error:function(){n.submitButton.removeAttr("disabled");bootbox.alert("An unexpected error occured.")}})};somethingChanged(function(){$("button.auto-form, a.auto-form").on("click",function(n){var t,r,i;n.preventDefault();t={};t.submitButton=$(this);r=t.submitButton.data();t.inputs={};for(i in r)i.indexOf("formInput")==0&&(t.inputs[i.replace("formInput","")]=r[i]);$.antiForgeryToken.value&&(t.inputs[$.antiForgeryToken.key]=$.antiForgeryToken.value);t.endpoint=$(this).data("formUrl");t.method=$(this).data("formMethod")||"GET";t.elementToReplace=$(this).data("formTargetElement");t.submitChain=$(this).data("formChained");autoForm.submitForm(t)});$("form.auto-form").on("submit",function(n){var t,i;n.preventDefault();t=$(this);t.valid()&&(i={},i.endpoint=t.attr("action"),i.method=t.attr("method")||"GET",i.elementToReplace=t.data("target-element"),i.inputs=t.serialize(),i.submitButton=t.find("[type=submit]"),i.submitChain=t.data("formChained"),autoForm.submitForm(i))});$.replaceClass("button.auto-form","auto-form","auto-form-done");$.replaceClass("form.auto-form","auto-form","auto-form-done")});somethingChanged(function(){var n=$(".active-auto-form-edit");n.length&&($("button.auto-form-done.disabled-auto-form").each(function(n,t){var i=t;i.removeClass("disabled-auto-form");i.attr("disabled",i.data("formTempDisabled"))}),$("button.auto-form-done[data-form-chained]").each(function(n,t){var i=$(t).data("formChained");$("button.auto-form-done",i).each(function(n,t){var i=$(t),r=i.attr("disabled");i.data("formTempDisabled",r);i.attr("disabled",!0)})}))});filt=filt||{};filt.filterDefinitionGroups=[];var FilterButtonViewModel=function(n,t){var i=this;i.filterViewModel=n;i.propertyName=t;i.isActive=ko.computed(function(){return i.filterViewModel.filterExpressions().filter(function(n){return n.propertyName()==i.propertyName}).length})},SorterButtonViewModel=function(n){var t=this,i=getQueryStrings();t.sortExpression=n;t.sortType=i.SortType;t.isSorted=i.SortExpression===n;t.sort=function(){i.SortExpression=t.sortExpression;i.SortType=t.sortType==="Ascending"?"Descending":"Ascending";i.IsAppliedFilter="true";window.location=window.location.pathname+"?"+$.param(i)}},FilterViewModel=function(n,t,i){var r=this;r.action=i;r.groupName=t;r.currentPropertyName=ko.observable();r.filterExpressions=ko.observableArray(n.map(function(n){return new FilterExpression(n.propertyName,n.operator,n.value,t,r)}));r.newFilter=function(){r.filterExpressions.push(new FilterExpression(r.currentPropertyName(),null,null,t,r))};r.disableButton=function(){var n=document.getElementById("submitTableFilterButton");n&&(n.disabled=!0)};r.clearFilters=function(){r.filterExpressions.removeAll()};r.clearEmptyFilters=function(){return r.disableButton(),r.filterExpressions().filter(function(n){var t=n.value();return!t||t==""}).forEach(function(n){n.removeSelf()}),!0};r.defaultPropertyName=ko.observable()},FilterExpression=function(n,t,i,r,u){var f=this;f.filterViewModel=u;f.filterDefinitionGroups=ko.computed(function(){return filt.filterDefinitionGroups});f.filterDefinitionGroup=ko.computed(function(){return filt.filterDefinitionGroups.filter(function(n){return n.groupName==r})[0]});f.filterDefinitions=ko.computed(function(){return f.filterDefinitionGroup().filterDefinitions});f._propertyName=ko.observable(n?n:u.defaultPropertyName()||f.filterDefinitions()[0].propertyName);f.propertyName=ko.computed({read:function(){return f._propertyName()},write:function(n){var t=f.propertyType();f._propertyName(n);t!=f.propertyType()&&f.value("")}});f.filterDefinition=ko.computed(function(){return f.filterDefinitions().filter(function(n){return n.propertyName==f.propertyName()})[0]});f.operators=ko.computed(function(){return f.filterDefinition().operators});f.propertyType=ko.computed(function(){return f.filterDefinition().propertyType});f.seed=ko.computed(function(){return f.filterDefinition().seed});f.operator=ko.observable(t?t:f.filterDefinition().operators[0]);typeof i=="boolean"&&(i=i?"True":"False");f.value=ko.observable(i?typeof i=="string"?i:i[0]:null);f.fieldNames=f.filterDefinitions().map(function(n){return{key:n.fieldName||n.propertyName,value:n.propertyName}});f.removeSelf=function(){f.filterViewModel.filterExpressions.remove(f)};f.hasFocus=ko.computed(function(){return!0})};filt.getFilterGroupByName=function(n){return filt.filterDefinitionGroups.filter(function(t){return t.groupName==n})[0]};filt.setPopover=function(n){$(n).popover({template:'<div class="popover popover-filter" role="tooltip"><div class="arrow"><\/div><p class="popover-title"><\/p><div class="popover-content"><\/div><\/div>',title:null,placement:"bottom",html:!0,content:"<div class='filter-popover-content' data-bind='template: { name: \"filter-popover-content\", data: $data }'><\/div>",trigger:"manual",animation:!0,sanitize:!1,viewport:".panel-body"}).on("shown.bs.popover",function(){var t=filt.getFilterGroupByName(n.data("filter-group-name")),i;t.viewModel.defaultPropertyName($(n).data("filter-property-name"));i=t.viewModel.filterExpressions().filter(function(n){return n.propertyName()==t.viewModel.defaultPropertyName()});i.length?i[0].hasFocus=ko.computed(function(){return!0}):t.viewModel.newFilter();ko.cleanNode($(".filter-popover-content")[0]);ko.applyBindings(t.viewModel,$(".filter-popover-content")[0]);$(".popover").find("input:visible, select:visible").first().focus()}).on("show.bs.popover",function(){$(".popover").popover("hide")}).on("hide.bs.popover",function(){var t=filt.getFilterGroupByName(n.data("filter-group-name"));t.viewModel.clearEmptyFilters()});$(n).click(function(){$(n).popover("toggle")})};$(".btn-filter").each(function(n,t){filt.setPopover($(t))});filt.addFilterGroup=function(n){var t=filt.getFilterGroupByName(n.groupName);if(t)throw"Group with same name '"+n.groupName+"' already exists.";t={groupName:n.groupName,filterDefinitions:[]};n.columnDefinitions.filter(function(n){return n.filterDefinition}).forEach(function(n){var i=n.filterDefinition;t.filterDefinitions.push(i)});filt.filterDefinitionGroups.push(t);t.viewModel=new FilterViewModel(n.expressions||[],n.groupName,"/"+n.controllerName+"/"+n.actionName);$(".btn-filter").filter(function(t,i){return $(i).data("filter-group-name")==n.groupName}).each(function(n,i){ko.applyBindings(new FilterButtonViewModel(t.viewModel,$(i).data("filter-property-name")),i)});$(".btn-sort").filter(function(t,i){return $(i).data("filter-group-name")==n.groupName}).each(function(n,t){ko.applyBindings(new SorterButtonViewModel($(t).data("sorter-property-name"),$(t).parent("th")),t)})};$("body").on("click",function(n){$(".btn-filter").each(function(){(n.target.className.indexOf!=undefined&&n.target.className.indexOf("btn-close-popover")>-1||!$(this).is(n.target)&&$(this).has(n.target).length==0&&$(".popover").has(n.target).length==0&&!$(".popover").is(n.target)&&$("body").has(n.target).length!=0)&&$(this).popover("hide")})});$(document).ready(function(){setTimeout(function(){if(typeof getQueryStrings().SortExpression!="undefined"){var n="#filterHeader_"+getQueryStrings().SortExpression,t=$(n);t.focus()}},500)});$(".btn-sort").focusin(function(){var t,n,i,r,u;$(this).removeAttr("aria-hidden");$(this).find(".pseudo-element-filter-helper-text.hide").remove();t=$(this).text().trim();n=getState($(this).attr("data-sorter-property-name"));n.isShorted?(r=n.sortType==="Ascending"?"descending":"ascending",i=t+" sorted "+n.sortType+". Click here to sort "+r,$(this).append(" <span class='pseudo-element-filter-helper-text hide'>Sorted by "+n.sortType+"<\/span>")):i="Click here to sort "+t+" descending or ascending.";$(this).attr("aria-label",i);u=$(this).next();u.attr("aria-hidden","true")});$(".btn-filter").focusin(function(){$(this).removeAttr("aria-hidden");var n=$(this).prev();n.attr("aria-hidden","true")});visibleif={};visibleif.getFormValue=function(n){var i=n.is(":radio, :checkbox"),t;return i?(t=n.filter(function(){return $(this).is(":checked")})[0],t&&$(t).val()):n.val()};visibleif.hookChange=function(n,t){n.on("keyup blur change",t)};visibleif.setVisibility=function(n,t,i,r){var u=!0;r.preferredValues!==undefined&&r.preferredValues.indexOf((visibleif.getFormValue(n)+"").toString())===-1&&(u=!1);r.unpreferredValues!==undefined&&r.unpreferredValues.indexOf((visibleif.getFormValue(n)+"").toString())!==-1&&(u=!1);u?($(t).show(),r.disable&&($("input, select, textarea",t).removeAttr("disabled"),$(t).removeAttr("disabled"))):($(t).hide(),r.disable&&($("input, select, textarea",t).attr("disabled",!0),$(t).attr("disabled",!0)))};somethingChanged(function(){$(":attrStartsWith('data-visibleif'):not(.visibleif-done)").each(function(n,t){var f,i,e,r,o,u,s;if($(t).addClass("visibleif-done"),f=$($(t).data("visibleifSelector")),i={},$(t).data("visibleifEqual")!=undefined)for(i.preferredValues=[$(t).data("visibleifEqual").toString()],r=1;$(t).data("visibleifEqual"+r)!=null;r++)for(e=$(t).data("visibleifEqual"+r).toString(),u=0;u<e.length;u++)i.preferredValues.push(e[u]);if($(t).data("visibleifNotEqual")!=undefined)for(i.unpreferredValues=[$(t).data("visibleifNotEqual").toString()],r=1;$(t).data("visibleifNotEqual"+r)!=null;r++)for(o=$(t).data("visibleifNotEqual"+r).toString(),u=0;u<o.length;u++)i.unpreferredValues.push(o[u]);$(t).data("visibleifSeperator")!=undefined&&(s=$(t).data("visibleifSeperator"),i.preferredValues=$(i.preferredValues).map(function(){return this.split(s)}).get(),i.unpreferredValues=$(i.unpreferredValues).map(function(){return this.split(s)}).get());i.disable=$.normalizeBoolean($(t).data("visibleifDisable"));visibleif.hookChange(f,function(){visibleif.setVisibility(f,t,!0,i)});visibleif.setVisibility(f,t,!1,i)})});phonenumber={};phonenumber.init=function(n){n.each(function(n,t){var i=$(t),r=$("<input type='hidden' />").attr("name",i.attr("name")).val(i.val());i.on("blur",function(){r.val(phonenumber.getValue(i))}).after(r).removeAttr("name").on("countrychange",function(){i.val("")}).intlTelInput({preferredCountries:[],initialCountry:"us",customPlaceholder:function(n,t){var f,u,r;for(n=customPhoneNumberLengthFormat(t,n),f="0123456789",u="",r=0;r<n.length;r++)u+=f.indexOf(n.charAt(r))>-1?"0":n.charAt(r);return i.mask(u,n),n},utilsScript:"/bundles/scripts/intl-tel-input-utils"});phonenumber.setValue(r.val());i.keypress(function(n){var t=n.keyCode?n.keyCode:n.which;t=="13"&&i.blur()})})};phonenumber.getValue=function(n){return $(n[0]).intlTelInput("getNumber")};phonenumber.setValue=function(n,t){return $(n[0]).intlTelInput("setNumber",t)};phonenumber.isValid=function(n){return $(n[0]).intlTelInput("isValidNumber")};+function(n){"use strict";function r(i){return this.each(function(){var u=n(this),r=u.data("bs.toggle"),f=typeof i=="object"&&i;r||u.data("bs.toggle",r=new t(this,f));typeof i=="string"&&r[i]&&r[i]()})}var t=function(t,i){this.$element=n(t);this.options=n.extend({},this.defaults(),i);this.render()},i;t.VERSION="2.2.0";t.DEFAULTS={on:"On",onLabel:!1,off:"Off",offLabel:!1,onstyle:"primary",offstyle:"default",size:"normal",style:"",width:null,height:null,labelledby:""};t.prototype.defaults=function(){return{on:this.$element.attr("data-on")||t.DEFAULTS.on,off:this.$element.attr("data-off")||t.DEFAULTS.off,onLabel:this.$element.attr("data-on-label")||!1,offLabel:this.$element.attr("data-off-label")||!1,onstyle:this.$element.attr("data-onstyle")||t.DEFAULTS.onstyle,offstyle:this.$element.attr("data-offstyle")||t.DEFAULTS.offstyle,size:this.$element.attr("data-size")||t.DEFAULTS.size,style:this.$element.attr("data-style")||t.DEFAULTS.style,width:this.$element.attr("data-width")||t.DEFAULTS.width,height:this.$element.attr("data-height")||t.DEFAULTS.height,labelledby:this.$element.attr("aria-labelledby")||t.DEFAULTS.labelledby}};t.prototype.render=function(){var f,e,o,s;this._onstyle="btn-"+this.options.onstyle;this._offstyle="btn-"+this.options.offstyle;var u=this.options.size==="large"?"btn-lg":this.options.size==="small"?"btn-sm":this.options.size==="mini"?"btn-xs":"",t=n('<label role="button" class="btn">').html(this.options.on).addClass(this._onstyle+" "+u).prop("for",this.$element.attr("id")+"-toggle").prop("id",this.$element.attr("id")+"-on"),i=n('<label role="button" class="btn">').html(this.options.off).addClass(this._offstyle+" "+u+" active").prop("for",this.$element.attr("id")+"-toggle").prop("id",this.$element.attr("id")+"-off"),r=n('<span class="toggle-handle btn btn-default">').addClass(u).attr("role","button");this.options.onLabel?r.attr("aria-label",this.$element.prop("checked")?this.options.onLabel:this.options.offLabel):r.attr("aria-label",this.$element.prop("checked")?this.options.on:this.options.off);f=n('<div class="toggle-group">').append(t,i,r);e=n('<div class="toggle btn" data-toggle="toggle" tabindex="0">').addClass(this.$element.prop("checked")?this._onstyle:this._offstyle+" off").addClass(u).addClass(this.options.style).prop("id",this.$element.attr("id")+"-toggle").attr("aria-labelledby",this.options.labelledby).attr("role","checkbox").attr("aria-checked",this.$element.prop("checked"));this.$element.wrap(e);n.extend(this,{$toggle:this.$element.parent(),$toggleOn:t,$toggleOff:i,$toggleGroup:f,$toggleHandle:r});this.$toggle.append(f);o=this.options.width||Math.max(t.outerWidth(),i.outerWidth())+r.outerWidth()/2;s=this.options.height||Math.max(t.outerHeight(),i.outerHeight());t.addClass("toggle-on");i.addClass("toggle-off");this.$toggle.css({width:o,height:s});this.options.height&&(t.css("line-height",t.height()+"px"),i.css("line-height",i.height()+"px"));this.update(!0);this.trigger(!0)};t.prototype.toggle=function(){this.$element.prop("checked")?(this.off(),this.$toggleHandle.attr("aria-label",this.options.offLabel||this.options.off)):(this.on(),this.$toggleHandle.attr("aria-label",this.options.onLabel||this.options.on));this.options.offLabel||this.options.onLabel?this.$toggle.attr("aria-checked",!0):this.$toggle.attr("aria-checked",this.$element.prop("checked"))};t.prototype.on=function(n){if(this.$element.prop("disabled"))return!1;this.$toggle.removeClass(this._offstyle+" off").addClass(this._onstyle);this.$element.prop("checked",!0);this.$toggleHandle.attr("aria-label",this.options.onLabel||this.options.on);n||this.trigger()};t.prototype.off=function(n){if(this.$element.prop("disabled"))return!1;this.$toggle.removeClass(this._onstyle).addClass(this._offstyle+" off");this.$element.prop("checked",!1);this.$toggleHandle.attr("aria-label",this.options.offLabel||this.options.off);n||this.trigger()};t.prototype.enable=function(){this.$toggle.removeAttr("disabled");this.$element.prop("disabled",!1)};t.prototype.disable=function(){this.$toggle.attr("disabled","disabled");this.$element.prop("disabled",!0)};t.prototype.update=function(n){if(this.$element.prop("disabled")?this.disable():this.enable(),this.$element.prop("checked"))this.on(n);else this.off(n)};t.prototype.trigger=function(t){this.$element.off("change.bs.toggle");t||this.$element.change();this.$element.on("change.bs.toggle",n.proxy(function(){this.update()},this))};t.prototype.destroy=function(){this.$element.off("change.bs.toggle");this.$toggleGroup.remove();this.$element.removeData("bs.toggle");this.$element.unwrap()};i=n.fn.bootstrapToggle;n.fn.bootstrapToggle=r;n.fn.bootstrapToggle.Constructor=t;n.fn.toggle.noConflict=function(){return n.fn.bootstrapToggle=i,this};n(function(){n("input[type=checkbox][data-toggle^=toggle]").bootstrapToggle()});n(document).on("click.bs.toggle keypress.bs.toggle","div[data-toggle^=toggle]",function(t){var r=t.type==="click",u=t.type==="keypress",f=t.keyCode||t.which,i;(r||u&&f===32)&&(i=n(this).find("input[type=checkbox]"),i.bootstrapToggle("toggle"),t.preventDefault())})}(jQuery);!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("Noty",[],t):"object"==typeof exports?exports.Noty=t():n.Noty=t()}(this,function(){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.i=function(n){return n},t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=6)}([function(n,t,i){"use strict";function c(n,t,i){var r=void 0;if(i){for(r in t)if(t.hasOwnProperty(r)&&t[r]===n)return!0}else for(r in t)if(t.hasOwnProperty(r)&&t[r]===n)return!0;return!1}function l(n){n=n||window.event;void 0!==n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function a(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t="noty_"+n+"_";return t+"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var t=16*Math.random()|0;return("x"===n?t:3&t|8).toString(16)})}function v(n){var i=n.offsetHeight,t=window.getComputedStyle(n);return i+(parseInt(t.marginTop)+parseInt(t.marginBottom))}function u(n,t,i){var u=arguments.length>3&&void 0!==arguments[3]&&arguments[3],r;for(t=t.split(" "),r=0;r<t.length;r++)document.addEventListener?n.addEventListener(t[r],i,u):document.attachEvent&&n.attachEvent("on"+t[r],i)}function e(n,t){return("string"==typeof n?n:f(n)).indexOf(" "+t+" ")>=0}function y(n,t){var i=f(n),r=i+t;e(i,t)||(n.className=r.substring(1))}function p(n,t){var r=f(n),i=void 0;e(n,t)&&(i=r.replace(" "+t+" "," "),n.className=i.substring(1,i.length-1))}function o(n){n.parentNode&&n.parentNode.removeChild(n)}function f(n){return(" "+(n&&n.className||"")+" ").replace(/\s+/gi," ")}function w(){function f(){r.PageHidden=document[t];i()}function e(){r.PageHidden=!0;i()}function o(){r.PageHidden=!1;i()}function i(){r.PageHidden?s():h()}function s(){setTimeout(function(){Object.keys(r.Store).forEach(function(n){r.Store.hasOwnProperty(n)&&r.Store[n].options.visibilityControl&&r.Store[n].stop()})},100)}function h(){setTimeout(function(){Object.keys(r.Store).forEach(function(n){r.Store.hasOwnProperty(n)&&r.Store[n].options.visibilityControl&&r.Store[n].resume()});r.queueRenderAll()},100)}var t=void 0,n=void 0;void 0!==document.hidden?(t="hidden",n="visibilitychange"):void 0!==document.msHidden?(t="msHidden",n="msvisibilitychange"):void 0!==document.webkitHidden&&(t="webkitHidden",n="webkitvisibilitychange");n&&u(document,n,f);u(window,"blur",e);u(window,"focus",o)}function b(n){if(n.hasSound){var t=document.createElement("audio");n.options.sounds.sources.forEach(function(n){var i=document.createElement("source");i.src=n;i.type="audio/"+k(n);t.appendChild(i)});n.barDom?n.barDom.appendChild(t):document.querySelector("body").appendChild(t);t.volume=n.options.sounds.volume;n.soundPlayed||(t.play(),n.soundPlayed=!0);t.onended=function(){o(t)}}}function k(n){return n.match(/\.([^.]+)$/)[1]}var s,h,r;Object.defineProperty(t,"__esModule",{value:!0});t.css=t.deepExtend=t.animationEndEvents=void 0;s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};t.inArray=c;t.stopPropagation=l;t.generateID=a;t.outerHeight=v;t.addListener=u;t.hasClass=e;t.addClass=y;t.removeClass=p;t.remove=o;t.classList=f;t.visibilityChangeFlow=w;t.createAudioElements=b;h=i(1);r=function(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t.default=n,t}(h);t.animationEndEvents="webkitAnimationEnd mozAnimationEnd MSAnimationEnd oanimationend animationend";t.deepExtend=function n(t){var u,i,r;for(t=t||{},u=1;u<arguments.length;u++)if(i=arguments[u],i)for(r in i)i.hasOwnProperty(r)&&(t[r]=Array.isArray(i[r])?i[r]:"object"===s(i[r])&&null!==i[r]?n(t[r],i[r]):i[r]);return t};t.css=function(){function r(n){return n.replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(n,t){return t.toUpperCase()})}function u(n){var i=document.body.style;if(n in i)return n;for(var r=t.length,f=n.charAt(0).toUpperCase()+n.slice(1),u=void 0;r--;)if((u=t[r]+f)in i)return u;return n}function f(n){return n=r(n),i[n]||(i[n]=u(n))}function n(n,t,i){t=f(t);n.style[t]=i}var t=["Webkit","O","Moz","ms"],i={};return function(t,i){var u=arguments,r=void 0,f=void 0;if(2===u.length)for(r in i)i.hasOwnProperty(r)&&void 0!==(f=i[r])&&i.hasOwnProperty(r)&&n(t,r,f);else n(t,u[1],u[2])}}()},function(n,t,i){"use strict";function p(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global",t=0,i=a;return u.hasOwnProperty(n)&&(i=u[n].maxVisible,Object.keys(h).forEach(function(i){h[i].options.queue!==n||h[i].closed||t++})),{current:t,maxVisible:i}}function w(n){u.hasOwnProperty(n.options.queue)||(u[n.options.queue]={maxVisible:a,queue:[]});u[n.options.queue].queue.push(n)}function b(n){if(u.hasOwnProperty(n.options.queue)){var t=[];Object.keys(u[n.options.queue].queue).forEach(function(i){u[n.options.queue].queue[i].id!==n.id&&t.push(u[n.options.queue].queue[i])});u[n.options.queue].queue=t}}function c(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"global",n;u.hasOwnProperty(t)&&(n=u[t].queue.shift(),n&&n.show())}function k(){Object.keys(u).forEach(function(n){c(n)})}function d(n){var i=r.generateID("ghost"),t=document.createElement("div");t.setAttribute("id",i);r.css(t,{height:r.outerHeight(n.barDom)+"px"});n.barDom.insertAdjacentHTML("afterend",t.outerHTML);r.remove(n.barDom);t=document.getElementById(i);r.addClass(t,"noty_fix_effects_height");r.addListener(t,r.animationEndEvents,function(){r.remove(t)})}function g(n){ut(n);var t='<div class="noty_body">'+n.options.text+"<\/div>"+nt(n)+'<div class="noty_progressbar"><\/div>';n.barDom=document.createElement("div");n.barDom.setAttribute("id",n.id);r.addClass(n.barDom,"noty_bar noty_type__"+n.options.type+" noty_theme__"+n.options.theme);n.barDom.innerHTML=t;o(n,"onTemplate")}function v(n){return!(!n.options.buttons||!Object.keys(n.options.buttons).length)}function nt(n){if(v(n)){var t=document.createElement("div");return r.addClass(t,"noty_buttons"),Object.keys(n.options.buttons).forEach(function(i){t.appendChild(n.options.buttons[i].dom)}),n.options.buttons.forEach(function(n){t.appendChild(n.dom)}),t.outerHTML}return""}function tt(n){n.options.modal&&(0===e&&rt(),t.DocModalCount=e+=1)}function it(n){if(n.options.modal&&e>0&&(t.DocModalCount=e-=1,e<=0)){var i=document.querySelector(".noty_modal");i&&(r.removeClass(i,"noty_modal_open"),r.addClass(i,"noty_modal_close"),r.addListener(i,r.animationEndEvents,function(){r.remove(i)}))}}function rt(){var t=document.querySelector("body"),n=document.createElement("div");r.addClass(n,"noty_modal");t.insertBefore(n,t.firstChild);r.addClass(n,"noty_modal_open");r.addListener(n,r.animationEndEvents,function(){r.removeClass(n,"noty_modal_open")})}function ut(n){if(n.options.container)return void(n.layoutDom=document.querySelector(n.options.container));var t="noty_layout__"+n.options.layout;n.layoutDom=document.querySelector("div#"+t);n.layoutDom||(n.layoutDom=document.createElement("div"),n.layoutDom.setAttribute("id",t),n.layoutDom.setAttribute("role","alert"),n.layoutDom.setAttribute("aria-live","polite"),r.addClass(n.layoutDom,"noty_layout"),document.querySelector("body").appendChild(n.layoutDom))}function l(n){n.options.timeout&&(n.options.progressBar&&n.progressDom&&r.css(n.progressDom,{transition:"width "+n.options.timeout+"ms linear",width:"0%"}),clearTimeout(n.closeTimer),n.closeTimer=setTimeout(function(){n.close()},n.options.timeout))}function y(n){n.options.timeout&&n.closeTimer&&(clearTimeout(n.closeTimer),n.closeTimer=-1,n.options.progressBar&&n.progressDom&&r.css(n.progressDom,{transition:"width 0ms linear",width:"100%"}))}function o(n,t){n.listeners.hasOwnProperty(t)&&n.listeners[t].forEach(function(t){"function"==typeof t&&t.apply(n)})}function ft(n){o(n,"afterShow");l(n);r.addListener(n.barDom,"mouseenter",function(){y(n)});r.addListener(n.barDom,"mouseleave",function(){l(n)})}function et(n){delete h[n.id];n.closing=!1;o(n,"afterClose");r.remove(n.barDom);0!==n.layoutDom.querySelectorAll(".noty_bar").length||n.options.container||r.remove(n.layoutDom);(r.inArray("docVisible",n.options.titleCount.conditions)||r.inArray("docHidden",n.options.titleCount.conditions))&&s.decrement();c(n.options.queue)}Object.defineProperty(t,"__esModule",{value:!0});t.Defaults=t.Store=t.Queues=t.DefaultMaxVisible=t.docTitle=t.DocModalCount=t.PageHidden=void 0;t.getQueueCounts=p;t.addToQueue=w;t.removeFromQueue=b;t.queueRender=c;t.queueRenderAll=k;t.ghostFix=d;t.build=g;t.hasButtons=v;t.handleModal=tt;t.handleModalClose=it;t.queueClose=l;t.dequeueClose=y;t.fire=o;t.openFlow=ft;t.closeFlow=et;var ot=i(0),r=function(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t.default=n,t}(ot),e=(t.PageHidden=!1,t.DocModalCount=0),f={originalTitle:null,count:0,changed:!1,timer:-1},s=t.docTitle={increment:function(){f.count++;s._update()},decrement:function(){if(--f.count<=0)return void s._clear();s._update()},_update:function(){var n=document.title;f.changed?document.title="("+f.count+") "+f.originalTitle:(f.originalTitle=n,document.title="("+f.count+") "+n,f.changed=!0)},_clear:function(){f.changed&&(f.count=0,document.title=f.originalTitle,f.changed=!1)}},a=t.DefaultMaxVisible=5,u=t.Queues={global:{maxVisible:a,queue:[]}},h=t.Store={};t.Defaults={type:"alert",layout:"topRight",theme:"mint",text:"",timeout:!1,progressBar:!0,closeWith:["click"],animation:{open:"noty_effects_open",close:"noty_effects_close"},id:!1,force:!1,killer:!1,queue:"global",container:!1,buttons:[],callbacks:{beforeShow:null,onShow:null,afterShow:null,onClose:null,afterClose:null,onClick:null,onHover:null,onTemplate:null},sounds:{sources:[],volume:1,conditions:[]},titleCount:{conditions:[]},modal:!1,visibilityControl:!1}},function(n,t,i){"use strict";function u(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}Object.defineProperty(t,"__esModule",{value:!0});t.NotyButton=void 0;var f=i(0),r=function(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t.default=n,t}(f);t.NotyButton=function n(t,i,f){var o=this,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return u(this,n),this.dom=document.createElement("button"),this.dom.innerHTML=t,this.id=e.id=e.id||r.generateID("button"),this.cb=f,Object.keys(e).forEach(function(n){o.dom.setAttribute(n,e[n])}),r.addClass(this.dom,i||"noty_btn"),this}},function(n,t){"use strict";function i(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();t.Push=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/service-worker.js";return i(this,n),this.subData={},this.workerPath=t,this.listeners={onPermissionGranted:[],onPermissionDenied:[],onSubscriptionSuccess:[],onSubscriptionCancel:[],onWorkerError:[],onWorkerSuccess:[],onWorkerNotSupported:[]},this}return r(n,[{key:"on",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof t&&this.listeners.hasOwnProperty(n)&&this.listeners[n].push(t),this}},{key:"fire",value:function(n){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];this.listeners.hasOwnProperty(n)&&this.listeners[n].forEach(function(n){"function"==typeof n&&n.apply(t,i)})}},{key:"create",value:function(){console.log("NOT IMPLEMENTED YET")}},{key:"isSupported",value:function(){var n=!1;try{n=window.Notification||window.webkitNotifications||navigator.mozNotification||window.external&&void 0!==window.external.msIsSiteMode()}catch(n){}return n}},{key:"getPermissionStatus",value:function(){var n="default";if(window.Notification&&window.Notification.permissionLevel)n=window.Notification.permissionLevel;else if(window.webkitNotifications&&window.webkitNotifications.checkPermission)switch(window.webkitNotifications.checkPermission()){case 1:n="default";break;case 0:n="granted";break;default:n="denied"}else window.Notification&&window.Notification.permission?n=window.Notification.permission:navigator.mozNotification?n="granted":window.external&&void 0!==window.external.msIsSiteMode()&&(n=window.external.msIsSiteMode()?"granted":"default");return n.toString().toLowerCase()}},{key:"getEndpoint",value:function(n){var t=n.endpoint,i=n.subscriptionId;return i&&-1===t.indexOf(i)&&(t+="/"+i),t}},{key:"isSWRegistered",value:function(){try{return"activated"===navigator.serviceWorker.controller.state}catch(n){return!1}}},{key:"unregisterWorker",value:function(){var n=this;"serviceWorker"in navigator&&navigator.serviceWorker.getRegistrations().then(function(t){var r=!0,u=!1,f=void 0,e,i;try{for(i=t[Symbol.iterator]();!(r=(e=i.next()).done);r=!0)e.value.unregister(),n.fire("onSubscriptionCancel")}catch(n){u=!0;f=n}finally{try{!r&&i.return&&i.return()}finally{if(u)throw f;}}})}},{key:"requestSubscription",value:function(){var t=this,u=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=this,r=this.getPermissionStatus(),i=function(i){"granted"===i?(t.fire("onPermissionGranted"),"serviceWorker"in navigator?navigator.serviceWorker.register(t.workerPath).then(function(){navigator.serviceWorker.ready.then(function(t){n.fire("onWorkerSuccess");t.pushManager.subscribe({userVisibleOnly:u}).then(function(t){var i=t.getKey("p256dh"),r=t.getKey("auth");n.subData={endpoint:n.getEndpoint(t),p256dh:i?window.btoa(String.fromCharCode.apply(null,new Uint8Array(i))):null,auth:r?window.btoa(String.fromCharCode.apply(null,new Uint8Array(r))):null};n.fire("onSubscriptionSuccess",[n.subData])}).catch(function(t){n.fire("onWorkerError",[t])})})}):n.fire("onWorkerNotSupported")):"denied"===i&&(t.fire("onPermissionDenied"),t.unregisterWorker())};"default"===r?window.Notification&&window.Notification.requestPermission?window.Notification.requestPermission(i):window.webkitNotifications&&window.webkitNotifications.checkPermission&&window.webkitNotifications.requestPermission(i):i(r)}}]),n}()},function(n,t,i){(function(t,r){!function(t,i){n.exports=i()}(0,function(){"use strict";function wt(n){var t=typeof n;return null!==n&&("object"===t||"function"===t)}function ft(n){return"function"==typeof n}function bt(n){rt=n}function kt(n){e=n}function dt(){return void 0!==it?function(){it(o)}:k()}function k(){var n=setTimeout;return function(){return n(o,1)}}function o(){for(var n=0;n<y;n+=2)h[n](h[n+1]),h[n]=void 0,h[n+1]=void 0;y=0}function d(n,t){var f=arguments,u=this,i=new this.constructor(s),r;return void 0===i[b]&&ct(i),r=u._state,r?function(){var n=f[r-1];e(function(){return ht(r,i,n,u._result)})}():nt(u,i,n,t),i}function g(n){var i=this,t;return n&&"object"==typeof n&&n.constructor===i?n:(t=new i(s),a(t,n),t)}function s(){}function gt(){return new TypeError("You cannot resolve a promise with itself")}function ni(){return new TypeError("A promises callback cannot return that same promise.")}function et(n){try{return n.then}catch(n){return w.error=n,w}}function ti(n,t,i,r){try{n.call(t,i,r)}catch(n){return n}}function ii(n,t,i){e(function(n){var r=!1,e=ti(i,t,function(i){r||(r=!0,t!==i?a(n,i):f(n,i))},function(t){r||(r=!0,u(n,t))},"Settle: "+(n._label||" unknown promise"));!r&&e&&(r=!0,u(n,e))},n)}function ri(n,t){t._state===p?f(n,t._result):t._state===l?u(n,t._result):nt(t,void 0,function(t){return a(n,t)},function(t){return u(n,t)})}function ot(n,t,i){t.constructor===n.constructor&&i===d&&t.constructor.resolve===g?ri(n,t):i===w?(u(n,w.error),w.error=null):void 0===i?f(n,t):ft(i)?ii(n,t,i):f(n,t)}function a(n,t){n===t?u(n,gt()):wt(t)?ot(n,t,et(t)):f(n,t)}function ui(n){n._onerror&&n._onerror(n._result);tt(n)}function f(n,t){n._state===c&&(n._result=t,n._state=p,0!==n._subscribers.length&&e(tt,n))}function u(n,t){n._state===c&&(n._state=l,n._result=t,e(ui,n))}function nt(n,t,i,r){var u=n._subscribers,f=u.length;n._onerror=null;u[f]=t;u[f+p]=i;u[f+l]=r;0===f&&n._state&&e(tt,n)}function tt(n){var t=n._subscribers,f=n._state;if(0!==t.length){for(var r=void 0,u=void 0,e=n._result,i=0;i<t.length;i+=3)r=t[i],u=t[i+f],r?ht(f,r,u,e):u(e);n._subscribers.length=0}}function st(){this.error=null}function fi(n,t){try{return n(t)}catch(n){return ut.error=n,ut}}function ht(n,t,i,r){var s=ft(i),e=void 0,h=void 0,o=void 0,v=void 0;if(s){if(e=fi(i,r),e===ut?(v=!0,h=e.error,e.error=null):o=!0,t===e)return void u(t,ni())}else e=r,o=!0;t._state!==c||(s&&o?a(t,e):v?u(t,h):n===p?f(t,e):n===l&&u(t,e))}function ei(n,t){try{t(function(t){a(n,t)},function(t){u(n,t)})}catch(t){u(n,t)}}function oi(){return pt++}function ct(n){n[b]=pt++;n._state=void 0;n._result=void 0;n._subscribers=[]}function v(n,t){this._instanceConstructor=n;this.promise=new n(s);this.promise[b]||ct(this.promise);lt(t)?(this.length=t.length,this._remaining=t.length,this._result=new Array(this.length),0===this.length?f(this.promise,this._result):(this.length=this.length||0,this._enumerate(t),0===this._remaining&&f(this.promise,this._result))):u(this.promise,si())}function si(){return new Error("Array Methods must be provided an Array")}function hi(n){return new v(this,n).promise}function ci(n){var t=this;return new t(lt(n)?function(i,r){for(var f=n.length,u=0;u<f;u++)t.resolve(n[u]).then(i,r)}:function(n,t){return t(new TypeError("You must pass an array to race."))})}function li(n){var i=this,t=new i(s);return u(t,n),t}function ai(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor");}function vi(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.");}function n(t){this[b]=oi();this._result=this._state=void 0;this._subscribers=[];s!==t&&("function"!=typeof t&&ai(),this instanceof n?ei(this,t):vi())}function yi(){var t=void 0,i,u;if(void 0!==r)t=r;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment");}if(i=t.Promise,i){u=null;try{u=Object.prototype.toString.call(i.resolve())}catch(t){}if("[object Promise]"===u&&!i.cast)return}t.Promise=n}var pi=Array.isArray?Array.isArray:function(n){return"[object Array]"===Object.prototype.toString.call(n)};var lt=pi,y=0,it=void 0,rt=void 0,e=function(n,t){h[y]=n;h[y+1]=t;2===(y+=2)&&(rt?rt(o):ki())},at="undefined"!=typeof window?window:void 0,vt=at||{},yt=vt.MutationObserver||vt.WebKitMutationObserver,wi="undefined"==typeof self&&void 0!==t&&"[object process]"==={}.toString.call(t),bi="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,h=new Array(1e3),ki=wi?function(){return function(){return t.nextTick(o)}}():yt?function(){var n=0,i=new yt(o),t=document.createTextNode("");return i.observe(t,{characterData:!0}),function(){t.data=n=++n%2}}():bi?function(){var n=new MessageChannel;return n.port1.onmessage=o,function(){return n.port2.postMessage(0)}}():void 0===at?function(){try{var n=i(9);return it=n.runOnLoop||n.runOnContext,dt()}catch(n){return k()}}():k();var b=Math.random().toString(36).substring(16),c=void 0,p=1,l=2,w=new st,ut=new st,pt=0;return v.prototype._enumerate=function(n){for(var t=0;this._state===c&&t<n.length;t++)this._eachEntry(n[t],t)},v.prototype._eachEntry=function(t,i){var r=this._instanceConstructor,e=r.resolve,u,f;e===g?(u=et(t),u===d&&t._state!==c?this._settledAt(t._state,i,t._result):"function"!=typeof u?(this._remaining--,this._result[i]=t):r===n?(f=new r(s),ot(f,t,u),this._willSettleAt(f,i)):this._willSettleAt(new r(function(n){return n(t)}),i)):this._willSettleAt(e(t),i)},v.prototype._settledAt=function(n,t,i){var r=this.promise;r._state===c&&(this._remaining--,n===l?u(r,i):this._result[t]=i);0===this._remaining&&f(r,this._result)},v.prototype._willSettleAt=function(n,t){var i=this;nt(n,void 0,function(n){return i._settledAt(p,t,n)},function(n){return i._settledAt(l,t,n)})},n.all=hi,n.race=ci,n.resolve=g,n.reject=li,n._setScheduler=bt,n._setAsap=kt,n._asap=e,n.prototype={constructor:n,then:d,"catch":function(n){return this.then(null,n)}},n.polyfill=yi,n.Promise=n,n})}).call(t,i(7),i(8))},function(){},function(n,t,i){"use strict";function e(n){var t,i;if(n&&n.__esModule)return n;if(t={},null!=n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i]);return t.default=n,t}function s(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function");}var o;Object.defineProperty(t,"__esModule",{value:!0});o=function(){function n(n,t){for(var i,r=0;r<t.length;r++)i=t[r],i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}return function(t,i,r){return i&&n(t.prototype,i),r&&n(t,r),t}}();i(5);var h=i(4),f=function(n){return n&&n.__esModule?n:{"default":n}}(h),c=i(0),r=e(c),l=i(1),u=e(l),a=i(2),v=i(3),y=function(){function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return s(this,n),this.options=r.deepExtend({},u.Defaults,t),this.id=this.options.id||r.generateID("bar"),this.closeTimer=-1,this.barDom=null,this.layoutDom=null,this.progressDom=null,this.showing=!1,this.shown=!1,this.closed=!1,this.closing=!1,this.killable=this.options.timeout||this.options.closeWith.length>0,this.hasSound=this.options.sounds.sources.length>0,this.soundPlayed=!1,this.listeners={beforeShow:[],onShow:[],afterShow:[],onClose:[],afterClose:[],onClick:[],onHover:[],onTemplate:[]},this.promises={show:null,close:null},this.on("beforeShow",this.options.callbacks.beforeShow),this.on("onShow",this.options.callbacks.onShow),this.on("afterShow",this.options.callbacks.afterShow),this.on("onClose",this.options.callbacks.onClose),this.on("afterClose",this.options.callbacks.afterClose),this.on("onClick",this.options.callbacks.onClick),this.on("onHover",this.options.callbacks.onHover),this.on("onTemplate",this.options.callbacks.onTemplate),this}return o(n,[{key:"on",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};return"function"==typeof t&&this.listeners.hasOwnProperty(n)&&this.listeners[n].push(t),this}},{key:"show",value:function(){var t=this,e,i;return(!0===this.options.killer?n.closeAll():"string"==typeof this.options.killer&&n.closeAll(this.options.killer),e=u.getQueueCounts(this.options.queue),e.current>=e.maxVisible||u.PageHidden&&this.options.visibilityControl)?(u.addToQueue(this),u.PageHidden&&this.hasSound&&r.inArray("docHidden",this.options.sounds.conditions)&&r.createAudioElements(this),u.PageHidden&&r.inArray("docHidden",this.options.titleCount.conditions)&&u.docTitle.increment(),this):(u.Store[this.id]=this,u.fire(this,"beforeShow"),this.showing=!0,this.closing)?(this.showing=!1,this):((u.build(this),u.handleModal(this),this.options.force?this.layoutDom.insertBefore(this.barDom,this.layoutDom.firstChild):this.layoutDom.appendChild(this.barDom),this.hasSound&&!this.soundPlayed&&r.inArray("docVisible",this.options.sounds.conditions)&&r.createAudioElements(this),r.inArray("docVisible",this.options.titleCount.conditions)&&u.docTitle.increment(),this.shown=!0,this.closed=!1,u.hasButtons(this)&&Object.keys(this.options.buttons).forEach(function(n){var i=t.barDom.querySelector("#"+t.options.buttons[n].id);r.addListener(i,"click",function(i){r.stopPropagation(i);t.options.buttons[n].cb()})}),this.progressDom=this.barDom.querySelector(".noty_progressbar"),r.inArray("click",this.options.closeWith)&&(r.addClass(this.barDom,"noty_close_with_click"),r.addListener(this.barDom,"click",function(n){r.stopPropagation(n);u.fire(t,"onClick");t.close()},!1)),r.addListener(this.barDom,"mouseenter",function(){u.fire(t,"onHover")},!1),this.options.timeout&&r.addClass(this.barDom,"noty_has_timeout"),this.options.progressBar&&r.addClass(this.barDom,"noty_has_progressbar"),r.inArray("button",this.options.closeWith))&&(r.addClass(this.barDom,"noty_close_with_button"),i=document.createElement("div"),r.addClass(i,"noty_close_button"),i.innerHTML="×",this.barDom.appendChild(i),r.addListener(i,"click",function(n){r.stopPropagation(n);t.close()},!1)),u.fire(this,"onShow"),null===this.options.animation.open?this.promises.show=new f.default(function(n){n()}):"function"==typeof this.options.animation.open?this.promises.show=new f.default(this.options.animation.open.bind(this)):(r.addClass(this.barDom,this.options.animation.open),this.promises.show=new f.default(function(n){r.addListener(t.barDom,r.animationEndEvents,function(){r.removeClass(t.barDom,t.options.animation.open);n()})})),this.promises.show.then(function(){var n=t;setTimeout(function(){u.openFlow(n)},100)}),this)}},{key:"stop",value:function(){return u.dequeueClose(this),this}},{key:"resume",value:function(){return u.queueClose(this),this}},{key:"setTimeout",value:function(n){function t(){return n.apply(this,arguments)}return t.toString=function(){return n.toString()},t}(function(n){if(this.stop(),this.options.timeout=n,this.barDom){this.options.timeout?r.addClass(this.barDom,"noty_has_timeout"):r.removeClass(this.barDom,"noty_has_timeout");var t=this;setTimeout(function(){t.resume()},100)}return this})},{key:"setText",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(this.barDom.querySelector(".noty_body").innerHTML=n),t&&(this.options.text=n),this}},{key:"setType",value:function(n){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(r.classList(this.barDom).split(" ").forEach(function(n){"noty_type__"===n.substring(0,11)&&r.removeClass(t.barDom,n)}),r.addClass(this.barDom,"noty_type__"+n)),i&&(this.options.type=n),this}},{key:"setTheme",value:function(n){var t=this,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.barDom&&(r.classList(this.barDom).split(" ").forEach(function(n){"noty_theme__"===n.substring(0,12)&&r.removeClass(t.barDom,n)}),r.addClass(this.barDom,"noty_theme__"+n)),i&&(this.options.theme=n),this}},{key:"close",value:function(){var n=this;return this.closed?this:this.shown?(u.fire(this,"onClose"),this.closing=!0,null===this.options.animation.close?this.promises.close=new f.default(function(n){n()}):"function"==typeof this.options.animation.close?this.promises.close=new f.default(this.options.animation.close.bind(this)):(r.addClass(this.barDom,this.options.animation.close),this.promises.close=new f.default(function(t){r.addListener(n.barDom,r.animationEndEvents,function(){n.options.force?r.remove(n.barDom):u.ghostFix(n);t()})})),this.promises.close.then(function(){u.closeFlow(n);u.handleModalClose(n)}),this.closed=!0,this):(u.removeFromQueue(this),this)}}],[{key:"closeAll",value:function(){var n=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return Object.keys(u.Store).forEach(function(t){n?u.Store[t].options.queue===n&&u.Store[t].killable&&u.Store[t].close():u.Store[t].killable&&u.Store[t].close()}),this}},{key:"overrideDefaults",value:function(n){return u.Defaults=r.deepExtend({},u.Defaults,n),this}},{key:"setMaxVisible",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.DefaultMaxVisible,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"global";return u.Queues.hasOwnProperty(n)||(u.Queues[n]={maxVisible:t,queue:[]}),u.Queues[n].maxVisible=t,this}},{key:"button",value:function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return new a.NotyButton(n,t,i,r)}},{key:"version",value:function(){return"3.1.4"}},{key:"Push",value:function(n){return new v.Push(n)}}]),n}();t.default=y;r.visibilityChangeFlow();n.exports=t.default},function(n){function h(){throw new Error("setTimeout has not been defined");}function c(){throw new Error("clearTimeout has not been defined");}function l(n){if(r===setTimeout)return setTimeout(n,0);if((r===h||!r)&&setTimeout)return r=setTimeout,setTimeout(n,0);try{return r(n,0)}catch(t){try{return r.call(null,n,0)}catch(t){return r.call(this,n,0)}}}function y(n){if(u===clearTimeout)return clearTimeout(n);if((u===c||!u)&&clearTimeout)return u=clearTimeout,clearTimeout(n);try{return u(n)}catch(t){try{return u.call(null,n)}catch(t){return u.call(this,n)}}}function p(){o&&e&&(o=!1,e.length?f=e.concat(f):s=-1,f.length&&a())}function a(){var t,n;if(!o){for(t=l(p),o=!0,n=f.length;n;){for(e=f,f=[];++s<n;)e&&e[s].run();s=-1;n=f.length}e=null;o=!1;y(t)}}function v(n,t){this.fun=n;this.array=t}function i(){}var r,u,t=n.exports={};!function(){try{r="function"==typeof setTimeout?setTimeout:h}catch(n){r=h}try{u="function"==typeof clearTimeout?clearTimeout:c}catch(n){u=c}}();var e,f=[],o=!1,s=-1;t.nextTick=function(n){var i=new Array(arguments.length-1),t;if(arguments.length>1)for(t=1;t<arguments.length;t++)i[t-1]=arguments[t];f.push(new v(n,i));1!==f.length||o||l(a)};v.prototype.run=function(){this.fun.apply(null,this.array)};t.title="browser";t.browser=!0;t.env={};t.argv=[];t.version="";t.versions={};t.on=i;t.addListener=i;t.once=i;t.off=i;t.removeListener=i;t.removeAllListeners=i;t.emit=i;t.prependListener=i;t.prependOnceListener=i;t.listeners=function(){return[]};t.binding=function(){throw new Error("process.binding is not supported");};t.cwd=function(){return"/"};t.chdir=function(){throw new Error("process.chdir is not supported");};t.umask=function(){return 0}},function(n){var t=function(){return this}();try{t=t||Function("return this")()||eval("this")}catch(n){"object"==typeof window&&(t=window)}n.exports=t},function(){}])}),function(){var n,t=InvictiNotifications;$(document).ready(function(){if(typeof $.connection=="undefined")return!1;var i=$.connection.appNotificationHub;n=new t(i);i.client.sendNotification=function(t){n.show(t);invictiApp.notificationsSummaryData.unreadNotificationsCount++;invictiApp.notificationsSummaryData.latestNotifications.unshift(t);invictiApp.notificationsSummaryData.latestNotifications.length>5&&invictiApp.notificationsSummaryData.latestNotifications.pop();i.server.setAsNotified(t.Id)};$.connection.hub.start({});$(".set-notification-readed").on("click",function(){var t=$(this).data("id");n.setAsReaded(t);setTimeout(function(){window.location.reload()},500)});invictiApp.notificationWrapper=n})}();!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("uiv",["vue"],t):"object"==typeof exports?exports.uiv=t(require("vue")):n.uiv=t(n.Vue)}("undefined"!=typeof self?self:this,function(n){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=15)}([function(n){n.exports=function(n,t,i,r,u,f){var l,s=n=n||{},a=typeof n.default,e,o,c,h;return"object"!==a&&"function"!==a||(l=n,s=n.default),e="function"==typeof s?s.options:s,t&&(e.render=t.render,e.staticRenderFns=t.staticRenderFns,e._compiled=!0),i&&(e.functional=!0),u&&(e._scopeId=u),(f?(o=function(n){(n=n||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(n=__VUE_SSR_CONTEXT__);r&&r.call(this,n);n&&n._registeredComponents&&n._registeredComponents.add(f)},e._ssrRegister=o):r&&(o=r),o)&&(c=e.functional,h=c?e.render:e.beforeCreate,c?(e._injectStyles=o,e.render=function(n,t){return o.call(t),h(n,t)}):e.beforeCreate=h?[].concat(h,o):[o]),{esModule:l,exports:s,options:e}}},function(n,t,i){"use strict";t.__esModule=!0;var r=function(n){return n&&n.__esModule?n:{"default":n}}(i(16));t.default=function(n,t,i){return t in n?r.default(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}},function(n,t,i){"use strict";t.__esModule=!0;var r=function(n){return n&&n.__esModule?n:{"default":n}}(i(27));t.default=r.default||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n}},function(n,t,i){n.exports=!i(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t){t.exports=n},function(n){var t=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(n){var t=n.exports={version:"2.5.1"};"number"==typeof __e&&(__e=t)},function(n){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(n){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,t,i){var u=i(5),e=i(6),o=i(19),s=i(21),f="prototype",r=function(n,t,i){var h,y,c,b=n&r.F,v=n&r.G,k=n&r.S,w=n&r.P,d=n&r.B,g=n&r.W,l=v?e:e[t]||(e[t]={}),p=l[f],a=v?u:k?u[t]:(u[t]||{})[f];v&&(i=t);for(h in i)(y=!b&&a&&void 0!==a[h])&&h in l||(c=y?a[h]:i[h],l[h]=v&&"function"!=typeof a[h]?i[h]:d&&y?o(c,u):g&&a[h]==c?function(n){var t=function(t,i,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,i)}return new n(t,i,r)}return n.apply(this,arguments)};return t[f]=n[f],t}(c):w&&"function"==typeof c?o(Function.call,c):c,w&&((l.virtual||(l.virtual={}))[h]=c,n&r.R&&p&&!p[h]&&s(p,h,c)))};r.F=1;r.G=2;r.S=4;r.P=8;r.B=16;r.W=32;r.U=64;r.R=128;n.exports=r},function(n,t,i){var r=i(22),u=i(23),f=i(25),e=Object.defineProperty;t.f=i(3)?Object.defineProperty:function(n,t,i){if(r(n),t=f(t,!0),r(i),u)try{return e(n,t,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(n[t]=i.value),n}},function(n,t,i){var r=i(12),u=i(13);n.exports=function(n){return r(u(n))}},function(n,t,i){var r=i(34);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==r(n)?n.split(""):Object(n)}},function(n){n.exports=function(n){if(void 0==n)throw TypeError("Can't call method on  "+n);return n}},function(n){var t=Math.ceil,i=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?i:t)(n)}},function(n,t,i){"use strict";function s(n){return void 0!==n&&null!==n}function y(n){return"function"==typeof n}function st(n){return"number"==typeof n}function b(n){return"string"==typeof n}function or(){return"undefined"!=typeof window&&s(window.Promise)}function at(n,t){if(Array.isArray(n)){var i=n.indexOf(t);i>=0&&n.splice(i,1)}}function ti(n){return Array.prototype.slice.call(n||[])}function bf(n,t,i){return i.indexOf(n)===t}function ii(n){return window.getComputedStyle(n)}function ri(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function u(n,t,i){n.addEventListener(t,i)}function f(n,t,i){n.removeEventListener(t,i)}function a(n){return n&&n.nodeType===Node.ELEMENT_NODE}function p(n){a(n)&&a(n.parentNode)&&n.parentNode.removeChild(n)}function vt(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(n){for(var i=(this.document||this.ownerDocument).querySelectorAll(n),t=i.length;--t>=0&&i.item(t)!==this;);return t>-1})}function o(n,t){if(a(n))if(n.className){var i=n.className.split(" ");i.indexOf(t)<0&&(i.push(t),n.className=i.join(" "))}else n.className=t}function c(n,t){if(a(n)&&n.className){for(var r=n.className.split(" "),u=[],i=0,f=r.length;i<f;i++)r[i]!==t&&u.push(r[i]);n.className=u.join(" ")}}function sr(n,t,i){var r=n.getBoundingClientRect(),u=t.getBoundingClientRect(),f=ri(),e=!0,o=!0,s=!0,c=!0;switch(i){case h.TOP:e=r.top>=u.height;c=r.left+r.width/2>=u.width/2;o=r.right-r.width/2+u.width/2<=f.width;break;case h.BOTTOM:s=r.bottom+u.height<=f.height;c=r.left+r.width/2>=u.width/2;o=r.right-r.width/2+u.width/2<=f.width;break;case h.RIGHT:o=r.right+u.width<=f.width;e=r.top+r.height/2>=u.height/2;s=r.bottom-r.height/2+u.height/2<=f.height;break;case h.LEFT:c=r.left>=u.width;e=r.top+r.height/2>=u.height/2;s=r.bottom-r.height/2+u.height/2<=f.height}return e&&o&&s&&c}function hr(n){var i=n.scrollHeight>n.clientHeight,t=ii(n);return i||"scroll"===t.overflow||"scroll"===t.overflowY}function ui(n){var t=document.body,i;n?(c(t,"modal-open"),t.style.paddingRight=null):(i=-1!==window.navigator.appVersion.indexOf("MSIE 10")||!!window.MSInputMethodContext&&!!document.documentMode,(hr(document.documentElement)||hr(document.body))&&!i&&(t.style.paddingRight=function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=ri(),n,t;return null!==bt&&!r&&i.height===hi.height&&i.width===hi.width?bt:"loading"===document.readyState?null:(n=document.createElement("div"),t=document.createElement("div"),n.style.width=t.style.width=n.style.height=t.style.height="100px",n.style.overflow="scroll",t.style.overflow="hidden",document.body.appendChild(n),document.body.appendChild(t),bt=Math.abs(n.scrollHeight-t.scrollHeight),document.body.removeChild(n),document.body.removeChild(t),hi=i,bt)}()+"px"),o(t,"modal-open"))}function fi(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u,i;for(vt(),u=[],i=n.parentElement;i;){if(i.matches(t))u.push(i);else if(r&&(r===i||i.matches(r)))break;i=i.parentElement}return u}function ei(n){a(n)&&(!n.getAttribute("tabindex")&&n.setAttribute("tabindex","-1"),n.focus())}function l(){for(var n,r,u,e,f,o,t={},i=arguments.length;i--;)for(u=0,e=Object.keys(arguments[i]);u<e.length;u++)switch(n=e[u]){case"class":case"style":case"directives":Array.isArray(t[n])||(t[n]=[]);t[n]=t[n].concat(arguments[i][n]);break;case"staticClass":if(!arguments[i][n])break;void 0===t[n]&&(t[n]="");t[n]&&(t[n]+=" ");t[n]+=arguments[i][n].trim();break;case"on":case"nativeOn":for(t[n]||(t[n]={}),f=0,o=Object.keys(arguments[i][n]);f<o.length;f++)r=o[f],t[n][r]=t[n][r]?[].concat(t[n][r],arguments[i][n][r]):arguments[i][n][r];break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":t[n]||(t[n]={});t[n]=ce({},arguments[i][n],t[n]);break;case"slot":case"key":case"ref":case"tag":case"show":case"keepAlive":default:t[n]||(t[n]=arguments[i][n])}return t}function tt(n,t){for(var i=t-(n+="").length;i>0;i--)n="0"+n;return n}function cr(n){return new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds())}function k(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.el=n;this.opts=g()({},k.DEFAULTS,i);this.opts.target=t;this.scrollElement="body"===t?window:document.querySelector("[id="+t+"]");this.selector="li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.scrollElement&&(this.refresh(),this.process())}var r,it,ht;Object.defineProperty(t,"__esModule",{value:!0});r={};i.d(r,"Carousel",function(){return lr});i.d(r,"Slide",function(){return ar});i.d(r,"Collapse",function(){return ci});i.d(r,"Dropdown",function(){return lt});i.d(r,"Modal",function(){return wi});i.d(r,"Tab",function(){return gr});i.d(r,"Tabs",function(){return tu});i.d(r,"DatePicker",function(){return iu});i.d(r,"Affix",function(){return eu});i.d(r,"Alert",function(){return bi});i.d(r,"Pagination",function(){return ou});i.d(r,"Tooltip",function(){return ki});i.d(r,"Popover",function(){return di});i.d(r,"TimePicker",function(){return hu});i.d(r,"Typeahead",function(){return cu});i.d(r,"ProgressBar",function(){return lu});i.d(r,"ProgressBarStack",function(){return gi});i.d(r,"Breadcrumbs",function(){return au});i.d(r,"BreadcrumbItem",function(){return nr});i.d(r,"Btn",function(){return w});i.d(r,"BtnGroup",function(){return vi});i.d(r,"BtnToolbar",function(){return vu});i.d(r,"MultiSelect",function(){return yu});i.d(r,"Navbar",function(){return pu});i.d(r,"NavbarNav",function(){return wu});i.d(r,"NavbarForm",function(){return bu});i.d(r,"NavbarText",function(){return ku});it={};i.d(it,"tooltip",function(){return nf});i.d(it,"popover",function(){return uf});i.d(it,"scrollspy",function(){return hf});ht={};i.d(ht,"MessageBox",function(){return af});i.d(ht,"Notification",function(){return pf});var kf={props:{value:Number,indicators:{type:Boolean,"default":!0},controls:{type:Boolean,"default":!0},interval:{type:Number,"default":5e3},iconControlLeft:{type:String,"default":"glyphicon glyphicon-chevron-left"},iconControlRight:{type:String,"default":"glyphicon glyphicon-chevron-right"}},data:function(){return{slides:[],activeIndex:0,timeoutId:0,intervalId:0}},watch:{interval:function(){this.startInterval()},value:function(n,t){this.run(n,t);this.activeIndex=n}},mounted:function(){s(this.value)&&(this.activeIndex=this.value);this.slides.length>0&&this.$select(this.activeIndex);this.startInterval()},beforeDestroy:function(){this.stopInterval()},methods:{run:function(n,t){var i=this,u=t||0,r=void 0;r=n>u?["next","left"]:["prev","right"];this.slides[n].slideClass[r[0]]=!0;this.$nextTick(function(){i.slides[n].$el.offsetHeight;i.slides.forEach(function(t,i){i===u?(t.slideClass.active=!0,t.slideClass[r[1]]=!0):i===n&&(t.slideClass[r[1]]=!0)});i.timeoutId=setTimeout(function(){i.$select(n);i.$emit("change",n);i.timeoutId=0},600)})},startInterval:function(){var n=this;this.stopInterval();this.interval>0&&(this.intervalId=setInterval(function(){n.next()},this.interval))},stopInterval:function(){clearInterval(this.intervalId);this.intervalId=0},resetAllSlideClass:function(){this.slides.forEach(function(n){n.slideClass.active=!1;n.slideClass.left=!1;n.slideClass.right=!1;n.slideClass.next=!1;n.slideClass.prev=!1})},$select:function(n){this.resetAllSlideClass();this.slides[n].slideClass.active=!0},select:function(n){0===this.timeoutId&&n!==this.activeIndex&&(s(this.value)?this.$emit("input",n):(this.run(n,this.activeIndex),this.activeIndex=n))},prev:function(){this.select(0===this.activeIndex?this.slides.length-1:this.activeIndex-1)},next:function(){this.select(this.activeIndex===this.slides.length-1?0:this.activeIndex+1)}}},df={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("div",{staticClass:"carousel slide",attrs:{"data-ride":"carousel"},on:{mouseenter:n.stopInterval,mouseleave:n.startInterval}},[n.indicators?n._t("indicators",[t("ol",{staticClass:"carousel-indicators"},n._l(n.slides,function(i,r){return t("li",{"class":{active:r===n.activeIndex},on:{click:function(){return n.select(r)}}})}),0)],{select:n.select,activeIndex:n.activeIndex}):n._e(),n._v(" "),t("div",{staticClass:"carousel-inner",attrs:{role:"listbox"}},[n._t("default")],2),n._v(" "),n.controls?t("a",{staticClass:"left carousel-control",attrs:{href:"#",role:"button"},on:{click:function(t){return t.preventDefault(),n.prev()}}},[t("span",{"class":n.iconControlLeft,attrs:{"aria-hidden":"true"}}),n._v(" "),t("span",{staticClass:"sr-only"},[n._v("Previous")])]):n._e(),n._v(" "),n.controls?t("a",{staticClass:"right carousel-control",attrs:{href:"#",role:"button"},on:{click:function(t){return t.preventDefault(),n.next()}}},[t("span",{"class":n.iconControlRight,attrs:{"aria-hidden":"true"}}),n._v(" "),t("span",{staticClass:"sr-only"},[n._v("Next")])]):n._e()],2)},staticRenderFns:[]},lr=i(0)(kf,df,!1,null,null,null).exports,gf={data:function(){return{slideClass:{active:!1,prev:!1,next:!1,left:!1,right:!1}}},created:function(){try{this.$parent.slides.push(this)}catch(n){throw new Error("Slide parent must be Carousel.");}},beforeDestroy:function(){at(this.$parent&&this.$parent.slides,this)}},ne={render:function(){var n=this.$createElement;return(this._self._c||n)("div",{staticClass:"item","class":this.slideClass},[this._t("default")],2)},staticRenderFns:[]},ar=i(0)(gf,ne,!1,null,null,null).exports,yt="mouseenter",pt="mouseleave",rt="focus",ut="blur",d="click",vr="input",ft="keydown",yr="keyup",pr="resize",wr="scroll",br="touchend",te="click",oi="hover",ie="focus",wt="hover-focus",si="outside-click",h={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},bt=null,hi=null,ct="collapse",kt="collapsing",re={render:function(n){return n(this.tag,{},this.$slots.default)},props:{tag:{type:String,"default":"div"},value:{type:Boolean,"default":!1},transitionDuration:{type:Number,"default":350}},data:function(){return{timeoutId:0}},watch:{value:function(n){this.toggle(n)}},mounted:function(){var n=this.$el;o(n,ct);this.value&&o(n,"in")},methods:{toggle:function(n){var i=this,t,r;clearTimeout(this.timeoutId);t=this.$el;n?(this.$emit("show"),c(t,ct),t.style.height="auto",r=window.getComputedStyle(t).height,t.style.height=null,o(t,kt),t.offsetHeight,t.style.height=r,this.timeoutId=setTimeout(function(){c(t,kt);o(t,ct);o(t,"in");t.style.height=null;i.timeoutId=0;i.$emit("shown")},this.transitionDuration)):(this.$emit("hide"),t.style.height=window.getComputedStyle(t).height,c(t,"in"),c(t,ct),t.offsetHeight,t.style.height=null,o(t,kt),this.timeoutId=setTimeout(function(){o(t,ct);c(t,kt);t.style.height=null;i.timeoutId=0;i.$emit("hidden")},this.transitionDuration))}}},ci=i(0)(re,null,!1,null,null,null).exports,ue={render:function(n){return n(this.tag,{"class":{"btn-group":"div"===this.tag,dropdown:!this.dropup,dropup:this.dropup,open:this.show}},[this.$slots.default,n("ul",{"class":{"dropdown-menu":!0,"dropdown-menu-right":this.menuRight},ref:"dropdown"},[this.$slots.dropdown])])},props:{tag:{type:String,"default":"div"},appendToBody:{type:Boolean,"default":!1},value:Boolean,dropup:{type:Boolean,"default":!1},menuRight:{type:Boolean,"default":!1},disabled:{type:Boolean,"default":!1},notCloseElements:Array,positionElement:null},data:function(){return{show:!1,triggerEl:void 0}},watch:{value:function(n){this.toggle(n)}},mounted:function(){this.initTrigger();this.triggerEl&&(u(this.triggerEl,d,this.toggle),u(this.triggerEl,ft,this.onKeyPress));u(this.$refs.dropdown,ft,this.onKeyPress);u(window,d,this.windowClicked);u(window,br,this.windowClicked);this.value&&this.toggle(!0)},beforeDestroy:function(){this.removeDropdownFromBody();this.triggerEl&&(f(this.triggerEl,d,this.toggle),f(this.triggerEl,ft,this.onKeyPress));f(this.$refs.dropdown,ft,this.onKeyPress);f(window,d,this.windowClicked);f(window,br,this.windowClicked)},methods:{onKeyPress:function(n){var u,r,f,e,t,i;if(this.show)if(u=this.$refs.dropdown,r=n.keyCode||n.which,27===r)this.toggle(!1),this.triggerEl&&this.triggerEl.focus();else if(13===r)f=u.querySelector("li > a:focus"),f&&f.click();else if(38===r||40===r)if(n.preventDefault(),n.stopPropagation(),e=u.querySelector("li > a:focus"),t=u.querySelectorAll("li:not(.disabled) > a"),e){for(i=0;i<t.length;i++)if(e===t[i]){38===r&&i<t.length>0?ei(t[i-1]):40===r&&i<t.length-1&&ei(t[i+1]);break}}else ei(t[0])},initTrigger:function(){var n=this.$el.querySelector('[data-role="trigger"]')||this.$el.querySelector(".dropdown-toggle")||this.$el.firstChild;this.triggerEl=n&&n!==this.$refs.dropdown?n:null},toggle:function(n){this.disabled||(this.show=function(n){return"boolean"==typeof n}(n)?n:!this.show,this.appendToBody&&(this.show?this.appendDropdownToBody():this.removeDropdownFromBody()),this.$emit("input",this.show))},windowClicked:function(n){var t=n.target,r,i,e,u,f,o,s;if(this.show&&t){if(r=!1,this.notCloseElements)for(i=0,e=this.notCloseElements.length;i<e;i++)if(u=this.notCloseElements[i].contains(t),f=u,this.appendToBody&&(o=this.$refs.dropdown.contains(t),s=this.notCloseElements.indexOf(this.$el)>=0,f=u||o&&s),f){r=!0;break}var h=this.$refs.dropdown.contains(t),c=this.$el.contains(t)&&!h,l=h&&"touchend"===n.type;c||r||l||this.toggle(!1)}},appendDropdownToBody:function(){try{var n=this.$refs.dropdown;n.style.display="block";document.body.appendChild(n);!function(n,t){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=document.documentElement,f=(window.pageXOffset||r.scrollLeft)-(r.clientLeft||0),e=(window.pageYOffset||r.scrollTop)-(r.clientTop||0),i=t.getBoundingClientRect(),o=n.getBoundingClientRect();n.style.right="auto";n.style.bottom="auto";n.style.left=u.menuRight?f+i.left+i.width-o.width+"px":f+i.left+"px";n.style.top=u.dropup?e+i.top-o.height-4+"px":e+i.top+i.height+"px"}(n,this.positionElement||this.$el,this)}catch(n){}},removeDropdownFromBody:function(){try{var n=this.$refs.dropdown;n.removeAttribute("style");this.$el.appendChild(n)}catch(n){}}}},lt=i(0)(ue,null,!1,null,null,null).exports,fe=i(1),e=i.n(fe),ee=i(2),g=i.n(ee),li={uiv:{datePicker:{clear:"Clear",today:"Today",month:"Month",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",year:"Year",week1:"Mon",week2:"Tue",week3:"Wed",week4:"Thu",week5:"Fri",week6:"Sat",week7:"Sun"},timePicker:{am:"AM",pm:"PM"},modal:{cancel:"Cancel",ok:"OK"},multiSelect:{placeholder:"Select...",filterPlaceholder:"Search..."}}},ai=function(){var n=Object.getPrototypeOf(this).$t;if(y(n))try{return n.apply(this,arguments)}catch(n){return this.$t.apply(this,arguments)}},oe=function(n,t){var i;if(t=t||{},i=ai.apply(this,arguments),s(i)&&!t.$$locale)return i;for(var u=n.split("."),f=t.$$locale||li,r=0,e=u.length;r<e;r++){if(i=f[u[r]],r===e-1)return i;if(!i)return"";f=i}return""},se=function(n){li=n||li},he=function(n){ai=n||ai},nt={methods:{t:function(){for(var i=arguments.length,n=Array(i),t=0;t<i;t++)n[t]=arguments[t];return n[1]=g()({$$locale:this.locale},n[1]),oe.apply(this,n)}},props:{locale:Object}},ce=Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},kr={props:{href:String,target:String,to:null,replace:{type:Boolean,"default":!1},append:{type:Boolean,"default":!1},exact:{type:Boolean,"default":!1}}},vi={functional:!0,render:function(n,t){var i=t.props,r=t.children;return n("div",l(t.data,{"class":e()({"btn-group":!i.vertical,"btn-group-vertical":i.vertical,"btn-group-justified":i.justified},"btn-group-"+i.size,i.size),attrs:{role:"group","data-toggle":"buttons"}}),r)},props:{size:String,vertical:{type:Boolean,"default":!1},justified:{type:Boolean,"default":!1}}},yi="checkbox",w={functional:!0,mixins:[kr],render:function(n,t){var a,s=t.children,i=t.props,r=t.data,y=r.on||{},v=i.inputType===yi?i.value.indexOf(i.inputValue)>=0:i.value===i.inputValue,h=(a={btn:!0,active:i.inputType?v:i.active,disabled:i.disabled,"btn-block":i.block},e()(a,"btn-"+i.type,Boolean(i.type)),e()(a,"btn-"+i.size,Boolean(i.size)),a),c={click:function(n){i.disabled&&n instanceof Event&&(n.preventDefault(),n.stopPropagation())}},u=void 0,f=void 0,o=void 0;return i.href?(u="a",o=s,f=l(r,{on:c,"class":h,attrs:{role:"button",href:i.href,target:i.target}})):i.to?(u="router-link",o=s,f=l(r,{nativeOn:c,"class":h,props:{event:i.disabled?"":"click",to:i.to,replace:i.replace,append:i.append,exact:i.exact},attrs:{role:"button"}})):i.inputType?(u="label",f=l(r,{on:c,"class":h}),o=[n("input",{attrs:{autocomplete:"off",type:i.inputType,checked:v?"checked":null,disabled:i.disabled},domProps:{checked:v},on:{change:function(){if(i.inputType===yi){var n=i.value.slice();v?n.splice(n.indexOf(i.inputValue),1):n.push(i.inputValue);y.input(n)}else y.input(i.inputValue)}}}),s]):i.justified?(u=vi,f={},o=[n("button",l(r,{on:c,"class":h,attrs:{type:i.nativeType,disabled:i.disabled}}),s)]):(u="button",o=s,f=l(r,{on:c,"class":h,attrs:{type:i.nativeType,disabled:i.disabled}})),n(u,f,o)},props:{justified:{type:Boolean,"default":!1},type:{type:String,"default":"default"},nativeType:{type:String,"default":"button"},size:String,block:{type:Boolean,"default":!1},active:{type:Boolean,"default":!1},disabled:{type:Boolean,"default":!1},value:null,inputValue:null,inputType:{type:String,validator:function(n){return n===yi||"radio"===n}}}},dr=function(){return document.querySelectorAll(".modal-backdrop")},pi=function(){return dr().length},le={mixins:[nt],components:{Btn:w},props:{value:{type:Boolean,"default":!1},title:String,size:String,backdrop:{type:Boolean,"default":!0},footer:{type:Boolean,"default":!0},header:{type:Boolean,"default":!0},cancelText:String,cancelType:{type:String,"default":"default"},okText:String,okType:{type:String,"default":"primary"},dismissBtn:{type:Boolean,"default":!0},transitionDuration:{type:Number,"default":150},autoFocus:{type:Boolean,"default":!1},keyboard:{type:Boolean,"default":!0},beforeClose:Function,zOffset:{type:Number,"default":20},appendToBody:{type:Boolean,"default":!1},displayStyle:{type:String,"default":"block"}},data:function(){return{msg:"",timeoutId:0}},computed:{modalSizeClass:function(){return e()({},"modal-"+this.size,Boolean(this.size))}},watch:{value:function(n){this.$toggle(n)}},mounted:function(){p(this.$refs.backdrop);u(window,yr,this.onKeyPress);this.value&&this.$toggle(!0)},beforeDestroy:function(){clearTimeout(this.timeoutId);p(this.$refs.backdrop);p(this.$el);0===pi()&&ui(!0);f(window,yr,this.onKeyPress)},methods:{onKeyPress:function(n){var u,t,i;if(this.keyboard&&this.value&&27===n.keyCode){u=this.$refs.backdrop;t=u.style.zIndex;t=t&&"auto"!==t?parseInt(t):0;for(var f=dr(),e=f.length,r=0;r<e;r++)if(f[r]!==u&&(i=f[r].style.zIndex,(i=i&&"auto"!==i?parseInt(i):0)>t))return;this.toggle(!1)}},toggle:function(n,t){(n||!y(this.beforeClose)||this.beforeClose(t))&&(this.msg=t,this.$emit("input",n))},$toggle:function(n){var i=this,t=this.$el,r=this.$refs.backdrop,u;if(clearTimeout(this.timeoutId),n){if(u=pi(),document.body.appendChild(r),this.appendToBody&&document.body.appendChild(t),t.style.display=this.displayStyle,t.scrollTop=0,r.offsetHeight,ui(!1),o(r,"in"),o(t,"in"),u>0){var e=parseInt(ii(t).zIndex)||1050,s=parseInt(ii(r).zIndex)||1040,f=u*this.zOffset;t.style.zIndex=""+(e+f);r.style.zIndex=""+(s+f)}this.timeoutId=setTimeout(function(){if(i.autoFocus){var n=i.$el.querySelector('[data-action="auto-focus"]');n&&n.focus()}i.$emit("show");i.timeoutId=0},this.transitionDuration)}else c(r,"in"),c(t,"in"),this.timeoutId=setTimeout(function(){t.style.display="none";p(r);i.appendToBody&&p(t);0===pi()&&ui(!0);i.$emit("hide",i.msg||"dismiss");i.msg="";i.timeoutId=0;t.style.zIndex="";r.style.zIndex=""},this.transitionDuration)},backdropClicked:function(){this.backdrop&&this.toggle(!1)}}},ae={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("div",{staticClass:"modal","class":{fade:n.transitionDuration>0},attrs:{tabindex:"-1",role:"dialog"},on:{click:function(t){return t.target!==t.currentTarget?null:n.backdropClicked(t)}}},[t("div",{ref:"dialog",staticClass:"modal-dialog","class":n.modalSizeClass,attrs:{role:"document"}},[t("div",{staticClass:"modal-content"},[n.header?t("div",{staticClass:"modal-header"},[n._t("header",[n.dismissBtn?t("button",{staticClass:"close",staticStyle:{position:"relative","z-index":"1060"},attrs:{type:"button","aria-label":"Close"},on:{click:function(){return n.toggle(!1)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("×")])]):n._e(),n._v(" "),t("h4",{staticClass:"modal-title"},[n._t("title",[n._v(n._s(n.title))])],2)])],2):n._e(),n._v(" "),t("div",{staticClass:"modal-body"},[n._t("default")],2),n._v(" "),n.footer?t("div",{staticClass:"modal-footer"},[n._t("footer",[t("btn",{attrs:{type:n.cancelType},on:{click:function(){return n.toggle(!1,"cancel")}}},[t("span",[n._v(n._s(n.cancelText||n.t("uiv.modal.cancel")))])]),n._v(" "),t("btn",{attrs:{type:n.okType,"data-action":"auto-focus"},on:{click:function(){return n.toggle(!1,"ok")}}},[t("span",[n._v(n._s(n.okText||n.t("uiv.modal.ok")))])])])],2):n._e()])]),n._v(" "),t("div",{ref:"backdrop",staticClass:"modal-backdrop","class":{fade:n.transitionDuration>0}})])},staticRenderFns:[]},wi=i(0)(le,ae,!1,null,null,null).exports,ve={props:{title:{type:String,"default":"Tab Title"},htmlTitle:{type:Boolean,"default":!1},disabled:{type:Boolean,"default":!1},"tab-classes":{type:Object,"default":function(){return{}}},group:String,pullRight:{type:Boolean,"default":!1}},data:function(){return{active:!0,transition:150}},watch:{active:function(n){var t=this;n?setTimeout(function(){o(t.$el,"active");t.$el.offsetHeight;o(t.$el,"in");try{t.$parent.$emit("after-change",t.$parent.activeIndex)}catch(n){throw new Error("<tab> parent must be <tabs>.");}},this.transition):(c(this.$el,"in"),setTimeout(function(){c(t.$el,"active")},this.transition))}},created:function(){try{this.$parent.tabs.push(this)}catch(n){throw new Error("<tab> parent must be <tabs>.");}},beforeDestroy:function(){at(this.$parent&&this.$parent.tabs,this)},methods:{show:function(){var n=this;this.$nextTick(function(){o(n.$el,"active");o(n.$el,"in")})}}},ye={render:function(){var n=this.$createElement;return(this._self._c||n)("div",{staticClass:"tab-pane","class":{fade:this.transition>0},attrs:{role:"tabpanel"}},[this._t("default")],2)},staticRenderFns:[]},gr=i(0)(ve,ye,!1,null,null,null).exports,nu="before-change",pe={components:{Dropdown:lt},props:{value:{type:Number,validator:function(n){return n>=0}},transitionDuration:{type:Number,"default":150},justified:Boolean,pills:Boolean,stacked:Boolean,customNavClass:null},data:function(){return{tabs:[],activeIndex:0}},watch:{value:{immediate:!0,handler:function(n){st(n)&&(this.activeIndex=n,this.selectCurrent())}},tabs:function(n){var t=this;n.forEach(function(n,i){n.transition=t.transitionDuration;i===t.activeIndex&&n.show()});this.selectCurrent()}},computed:{navClasses:function(){var t={nav:!0,"nav-justified":this.justified,"nav-tabs":!this.pills,"nav-pills":this.pills,"nav-stacked":this.stacked&&this.pills},n=this.customNavClass;return s(n)?b(n)?g()({},t,e()({},n,!0)):g()({},t,n):t},groupedTabs:function(){var n=[],t={};return this.tabs.forEach(function(i){i.group?(t.hasOwnProperty(i.group)?n[t[i.group]].tabs.push(i):(n.push({tabs:[i],group:i.group}),t[i.group]=n.length-1),i.active&&(n[t[i.group]].active=!0),i.pullRight&&(n[t[i.group]].pullRight=!0)):n.push(i)}),n}},methods:{getTabClasses:function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={active:n.active,disabled:n.disabled,"pull-right":n.pullRight&&!t};return g()(i,n.tabClasses)},selectCurrent:function(){var t=this,n=!1;this.tabs.forEach(function(i,r){r===t.activeIndex?(n=!i.active,i.active=!0):i.active=!1});n&&this.$emit("change",this.activeIndex)},selectValidate:function(n){var t=this;y(this.$listeners[nu])?this.$emit(nu,this.activeIndex,n,function(i){s(i)||t.$select(n)}):this.$select(n)},select:function(n){this.tabs[n].disabled||n===this.activeIndex||this.selectValidate(n)},$select:function(n){st(this.value)?this.$emit("input",n):(this.activeIndex=n,this.selectCurrent())}}},we={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("section",[t("ul",{"class":n.navClasses,attrs:{role:"tablist"}},[n._l(n.groupedTabs,function(i){return[i.tabs?t("dropdown",{"class":n.getTabClasses(i),attrs:{role:"presentation",tag:"li"}},[t("a",{staticClass:"dropdown-toggle",attrs:{role:"tab",href:"#"},on:{click:function(n){n.preventDefault()}}},[n._v(n._s(i.group)+" "),t("span",{staticClass:"caret"})]),n._v(" "),t("template",{slot:"dropdown"},n._l(i.tabs,function(i){return t("li",{"class":n.getTabClasses(i,!0)},[t("a",{attrs:{href:"#"},on:{click:function(t){t.preventDefault();n.select(n.tabs.indexOf(i))}}},[n._v(n._s(i.title))])])}),0)],2):t("li",{"class":n.getTabClasses(i),attrs:{role:"presentation"}},[i.htmlTitle?t("a",{attrs:{role:"tab",href:"#"},domProps:{innerHTML:n._s(i.title)},on:{click:function(t){t.preventDefault();n.select(n.tabs.indexOf(i))}}}):t("a",{attrs:{role:"tab",href:"#"},domProps:{textContent:n._s(i.title)},on:{click:function(t){t.preventDefault();n.select(n.tabs.indexOf(i))}}})])]}),n._v(" "),!n.justified&&n.$slots["nav-right"]?t("li",{staticClass:"pull-right"},[n._t("nav-right")],2):n._e()],2),n._v(" "),t("div",{staticClass:"tab-content"},[n._t("default")],2)])},staticRenderFns:[]},tu=i(0)(pe,we,!1,null,null,null).exports,be=["January","February","March","April","May","June","July","August","September","October","November","December"],ke={mixins:[nt],props:{month:Number,year:Number,date:Date,today:Date,limit:Object,weekStartsWith:Number,iconControlLeft:String,iconControlRight:String,dateClass:Function,yearMonthFormatter:Function,weekNumbers:Boolean},components:{Btn:w},computed:{weekDays:function(){for(var n=[],t=this.weekStartsWith;n.length<7;)n.push(t++),t>6&&(t=0);return n},yearMonthStr:function(){return this.yearMonthFormatter?this.yearMonthFormatter(this.year,this.month):s(this.month)?this.year+" "+this.t("uiv.datePicker.month"+(this.month+1)):this.year},monthDayRows:function(){for(var f=[],l=new Date(this.year,this.month,1),a=new Date(this.year,this.month,0).getDate(),t=l.getDay(),s=function(n,t){return new Date(t,n+1,0).getDate()}(this.month,this.year),e=0,u,i,n,e=this.weekStartsWith>t?7-this.weekStartsWith:0-this.weekStartsWith,r=0;r<6;r++)for(f.push([]),u=0-e;u<7-e;u++){i=7*r+u;n={year:this.year,disabled:!1};i<t?(n.date=a-t+i+1,this.month>0?n.month=this.month-1:(n.month=11,n.year--)):i<t+s?(n.date=i-t+1,n.month=this.month):(n.date=i-t-s+1,this.month<11?n.month=this.month+1:(n.month=0,n.year++));var o=new Date(n.year,n.month,n.date),h=!0,c=!0;this.limit&&this.limit.from&&(h=o>=this.limit.from);this.limit&&this.limit.to&&(c=o<this.limit.to);n.disabled=!h||!c;n.classes=y(this.dateClass)?this.dateClass(o):"";f[r].push(n)}return f}},methods:{getWeekNumber:function(n){(n=new Date(Date.UTC(n.year,n.month,n.date))).setUTCDate(n.getUTCDate()+4-(n.getUTCDay()||7));var t=new Date(Date.UTC(n.getUTCFullYear(),0,1));return Math.ceil(((n-t)/864e5+1)/7)},tWeekName:function(n){return this.t("uiv.datePicker.week"+n)},getBtnType:function(n){return this.date&&n.date===this.date.getDate()&&n.month===this.date.getMonth()&&n.year===this.date.getFullYear()?"primary":n.date===this.today.getDate()&&n.month===this.today.getMonth()&&n.year===this.today.getFullYear()?"info":"default"},select:function(n){this.$emit("date-change",n)},goPrevMonth:function(){var n=this.month,t=this.year;this.month>0?n--:(n=11,t--,this.$emit("year-change",t));this.$emit("month-change",n)},goNextMonth:function(){var n=this.month,t=this.year;this.month<11?n++:(n=0,t++,this.$emit("year-change",t));this.$emit("month-change",n)},changeView:function(){this.$emit("view-change","m")}}},de={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("table",{staticStyle:{width:"100%"},attrs:{role:"grid"}},[t("thead",[t("tr",[t("td",[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.goPrevMonth}},[t("i",{"class":n.iconControlLeft})])],1),n._v(" "),t("td",{attrs:{colspan:n.weekNumbers?6:5}},[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.changeView}},[t("b",[n._v(n._s(n.yearMonthStr))])])],1),n._v(" "),t("td",[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.goNextMonth}},[t("i",{"class":n.iconControlRight})])],1)]),n._v(" "),t("tr",{attrs:{align:"center"}},[n.weekNumbers?t("td"):n._e(),n._v(" "),n._l(n.weekDays,function(i){return t("td",{attrs:{width:"14.2857142857%"}},[t("small",[n._v(n._s(n.tWeekName(0===i?7:i)))])])})],2)]),n._v(" "),t("tbody",n._l(n.monthDayRows,function(i){return t("tr",[n.weekNumbers?t("td",{staticClass:"text-center",staticStyle:{"border-right":"1px solid #eee"}},[t("small",{staticClass:"text-muted"},[n._v(n._s(n.getWeekNumber(i[n.weekStartsWith])))])]):n._e(),n._v(" "),n._l(i,function(i){return t("td",[t("btn",{"class":i.classes,staticStyle:{border:"none"},attrs:{block:"",size:"sm","data-action":"select",type:n.getBtnType(i),disabled:i.disabled},on:{click:function(){return n.select(i)}}},[t("span",{"class":{"text-muted":n.month!==i.month},attrs:{"data-action":"select"}},[n._v(n._s(i.date))])])],1)})],2)}),0)])},staticRenderFns:[]},ge=i(0)(ke,de,!1,null,null,null).exports,no={components:{Btn:w},mixins:[nt],props:{month:Number,year:Number,iconControlLeft:String,iconControlRight:String},data:function(){return{rows:[]}},mounted:function(){for(var t,n=0;n<4;n++)for(this.rows.push([]),t=0;t<3;t++)this.rows[n].push(3*n+t+1)},methods:{tCell:function(n){return this.t("uiv.datePicker.month"+n)},getBtnClass:function(n){return n===this.month?"primary":"default"},goPrevYear:function(){this.$emit("year-change",this.year-1)},goNextYear:function(){this.$emit("year-change",this.year+1)},changeView:function(n){s(n)?(this.$emit("month-change",n),this.$emit("view-change","d")):this.$emit("view-change","y")}}},to={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("table",{staticStyle:{width:"100%"},attrs:{role:"grid"}},[t("thead",[t("tr",[t("td",[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.goPrevYear}},[t("i",{"class":n.iconControlLeft})])],1),n._v(" "),t("td",{attrs:{colspan:"4"}},[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:function(){return n.changeView()}}},[t("b",[n._v(n._s(n.year))])])],1),n._v(" "),t("td",[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.goNextYear}},[t("i",{"class":n.iconControlRight})])],1)])]),n._v(" "),t("tbody",n._l(n.rows,function(i,r){return t("tr",n._l(i,function(i,u){return t("td",{attrs:{colspan:"2",width:"33.333333%"}},[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm",type:n.getBtnClass(3*r+u)},on:{click:function(){return n.changeView(3*r+u)}}},[t("span",[n._v(n._s(n.tCell(i)))])])],1)}),0)}),0)])},staticRenderFns:[]},io=i(0)(no,to,!1,null,null,null).exports,ro={components:{Btn:w},props:{year:Number,iconControlLeft:String,iconControlRight:String},computed:{rows:function(){for(var t,i=[],r=this.year-this.year%20,n=0;n<4;n++)for(i.push([]),t=0;t<5;t++)i[n].push(r+5*n+t);return i},yearStr:function(){var n=this.year-this.year%20;return n+" ~ "+(n+19)}},methods:{getBtnClass:function(n){return n===this.year?"primary":"default"},goPrevYear:function(){this.$emit("year-change",this.year-20)},goNextYear:function(){this.$emit("year-change",this.year+20)},changeView:function(n){this.$emit("year-change",n);this.$emit("view-change","m")}}},uo={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("table",{staticStyle:{width:"100%"},attrs:{role:"grid"}},[t("thead",[t("tr",[t("td",[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.goPrevYear}},[t("i",{"class":n.iconControlLeft})])],1),n._v(" "),t("td",{attrs:{colspan:"3"}},[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"}},[t("b",[n._v(n._s(n.yearStr))])])],1),n._v(" "),t("td",[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.goNextYear}},[t("i",{"class":n.iconControlRight})])],1)])]),n._v(" "),t("tbody",n._l(n.rows,function(i){return t("tr",n._l(i,function(i){return t("td",{attrs:{width:"20%"}},[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm",type:n.getBtnClass(i)},on:{click:function(){return n.changeView(i)}}},[t("span",[n._v(n._s(i))])])],1)}),0)}),0)])},staticRenderFns:[]},fo={mixins:[nt],components:{DateView:ge,MonthView:io,YearView:i(0)(ro,uo,!1,null,null,null).exports,Btn:w},props:{value:null,width:{type:Number,"default":270},todayBtn:{type:Boolean,"default":!0},clearBtn:{type:Boolean,"default":!0},closeOnSelected:{type:Boolean,"default":!0},limitFrom:null,limitTo:null,format:{type:String,"default":"yyyy-MM-dd"},initialView:{type:String,"default":"d"},dateParser:{type:Function,"default":Date.parse},dateClass:Function,yearMonthFormatter:Function,weekStartsWith:{type:Number,"default":0,validator:function(n){return n>=0&&n<=6}},weekNumbers:Boolean,iconControlLeft:{type:String,"default":"glyphicon glyphicon-chevron-left"},iconControlRight:{type:String,"default":"glyphicon glyphicon-chevron-right"}},data:function(){return{show:!1,now:new Date,currentMonth:0,currentYear:0,view:"d"}},computed:{valueDateObj:function(){var t=this.dateParser(this.value),n;return isNaN(t)?null:(n=new Date(t),0!==n.getHours()&&(n=new Date(t+6e4*n.getTimezoneOffset())),n)},pickerStyle:function(){return{width:this.width+"px"}},limit:function(){var i={},n,t;return this.limitFrom&&(n=this.dateParser(this.limitFrom),isNaN(n)||((n=cr(new Date(n))).setHours(0,0,0,0),i.from=n)),this.limitTo&&(t=this.dateParser(this.limitTo),isNaN(t)||((t=cr(new Date(t))).setHours(0,0,0,0),i.to=t)),i}},mounted:function(){this.value?this.setMonthAndYearByValue(this.value):(this.currentMonth=this.now.getMonth(),this.currentYear=this.now.getFullYear(),this.view=this.initialView)},watch:{value:function(n,t){this.setMonthAndYearByValue(n,t)}},methods:{setMonthAndYearByValue:function(n,t){var r=this.dateParser(n),i;isNaN(r)||(i=new Date(r),0!==i.getHours()&&(i=new Date(r+6e4*i.getTimezoneOffset())),this.limit&&(this.limit.from&&i<this.limit.from||this.limit.to&&i>=this.limit.to)?this.$emit("input",t||""):(this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear()))},onMonthChange:function(n){this.currentMonth=n},onYearChange:function(n){this.currentYear=n;this.currentMonth=void 0},onDateChange:function(n){if(n&&st(n.date)&&st(n.month)&&st(n.year)){var t=new Date(n.year,n.month,n.date);this.$emit("input",this.format?function(n,t){try{var r=n.getFullYear(),i=n.getMonth()+1,u=n.getDate(),f=be[i-1];return t.replace(/yyyy/g,r).replace(/MMMM/g,f).replace(/MMM/g,f.substring(0,3)).replace(/MM/g,tt(i,2)).replace(/dd/g,tt(u,2)).replace(/yy/g,r).replace(/M(?!a)/g,i).replace(/d/g,u)}catch(n){return""}}(t,this.format):t);this.currentMonth=n.month;this.currentYear=n.year}else this.$emit("input","")},onViewChange:function(n){this.view=n},selectToday:function(){this.view="d";this.onDateChange({date:this.now.getDate(),month:this.now.getMonth(),year:this.now.getFullYear()})},clearSelect:function(){this.currentMonth=this.now.getMonth();this.currentYear=this.now.getFullYear();this.view=this.initialView;this.onDateChange()},onPickerClick:function(n){"select"===n.target.getAttribute("data-action")&&this.closeOnSelected||n.stopPropagation()}}},eo={render:function(){var t=this.$createElement,n=this._self._c||t;return n("div",{style:this.pickerStyle,attrs:{"data-role":"date-picker"},on:{click:this.onPickerClick}},[n("date-view",{directives:[{name:"show",rawName:"v-show",value:"d"===this.view,expression:"view==='d'"}],attrs:{month:this.currentMonth,year:this.currentYear,date:this.valueDateObj,today:this.now,limit:this.limit,"week-starts-with":this.weekStartsWith,"icon-control-left":this.iconControlLeft,"icon-control-right":this.iconControlRight,"date-class":this.dateClass,"year-month-formatter":this.yearMonthFormatter,"week-numbers":this.weekNumbers,locale:this.locale},on:{"month-change":this.onMonthChange,"year-change":this.onYearChange,"date-change":this.onDateChange,"view-change":this.onViewChange}}),this._v(" "),n("month-view",{directives:[{name:"show",rawName:"v-show",value:"m"===this.view,expression:"view==='m'"}],attrs:{month:this.currentMonth,year:this.currentYear,"icon-control-left":this.iconControlLeft,"icon-control-right":this.iconControlRight,locale:this.locale},on:{"month-change":this.onMonthChange,"year-change":this.onYearChange,"view-change":this.onViewChange}}),this._v(" "),n("year-view",{directives:[{name:"show",rawName:"v-show",value:"y"===this.view,expression:"view==='y'"}],attrs:{year:this.currentYear,"icon-control-left":this.iconControlLeft,"icon-control-right":this.iconControlRight},on:{"year-change":this.onYearChange,"view-change":this.onViewChange}}),this._v(" "),this.todayBtn||this.clearBtn?n("div",[n("br"),this._v(" "),n("div",{staticClass:"text-center"},[this.todayBtn?n("btn",{attrs:{"data-action":"select",type:"info",size:"sm"},domProps:{textContent:this._s(this.t("uiv.datePicker.today"))},on:{click:this.selectToday}}):this._e(),this._v(" "),this.clearBtn?n("btn",{attrs:{"data-action":"select",size:"sm"},domProps:{textContent:this._s(this.t("uiv.datePicker.clear"))},on:{click:this.clearSelect}}):this._e()],1)]):this._e()],1)},staticRenderFns:[]},iu=i(0)(fo,eo,!1,null,null,null).exports,dt="_uiv_scroll_handler",ru=[pr,wr],uu=function(n,t){var i=t.value;y(i)&&(fu(n),n[dt]=i,ru.forEach(function(t){u(window,t,n[dt])}))},fu=function(n){ru.forEach(function(t){f(window,t,n[dt])});delete n[dt]},oo={directives:{scroll:{bind:uu,unbind:fu,update:function(n,t){t.value!==t.oldValue&&uu(n,t)}}},props:{offset:{type:Number,"default":0}},data:function(){return{affixed:!1}},computed:{classes:function(){return{affix:this.affixed}},styles:function(){return{top:this.affixed?this.offset+"px":null}}},methods:{onScroll:function(){var o=this,n,t,u;if(this.$el.offsetWidth||this.$el.offsetHeight||this.$el.getClientRects().length){for(var i={},f={},s=this.$el.getBoundingClientRect(),h=document.body,e=["Top","Left"],r=0;r<e.length;r++)n=e[r],t=n.toLowerCase(),i[t]=window["page"+("Top"===n?"Y":"X")+"Offset"],f[t]=i[t]+s[t]-(this.$el["client"+n]||h["client"+n]||0);u=i.top>f.top-this.offset;this.affixed!==u&&(this.affixed=u,this.affixed&&(this.$emit("affix"),this.$nextTick(function(){o.$emit("affixed")})))}}}},so={render:function(){var t=this.$createElement,n=this._self._c||t;return n("div",{staticClass:"hidden-print"},[n("div",{directives:[{name:"scroll",rawName:"v-scroll",value:this.onScroll,expression:"onScroll"}],"class":this.classes,style:this.styles},[this._t("default")],2)])},staticRenderFns:[]},eu=i(0)(oo,so,!1,null,null,null).exports,ho={props:{dismissible:{type:Boolean,"default":!1},duration:{type:Number,"default":0},type:{type:String,"default":"info"}},data:function(){return{timeout:0}},computed:{alertClass:function(){var n;return n={alert:!0},e()(n,"alert-"+this.type,Boolean(this.type)),e()(n,"alert-dismissible",this.dismissible),n}},methods:{closeAlert:function(){clearTimeout(this.timeout);this.$emit("dismissed")}},mounted:function(){this.duration>0&&(this.timeout=setTimeout(this.closeAlert,this.duration))},destroyed:function(){clearTimeout(this.timeout)}},co={render:function(){var t=this.$createElement,n=this._self._c||t;return n("div",{"class":this.alertClass,attrs:{role:"alert"}},[this.dismissible?n("button",{staticClass:"close",attrs:{type:"button","aria-label":"Close"},on:{click:this.closeAlert}},[n("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])]):this._e(),this._v(" "),this._t("default")],2)},staticRenderFns:[]},bi=i(0)(ho,co,!1,null,null,null).exports,lo={props:{value:{type:Number,required:!0,validator:function(n){return n>=1}},boundaryLinks:{type:Boolean,"default":!1},directionLinks:{type:Boolean,"default":!0},size:String,align:String,totalPage:{type:Number,required:!0,validator:function(n){return n>=0}},maxSize:{type:Number,"default":5,validator:function(n){return n>=0}},disabled:Boolean},data:function(){return{sliceStart:0}},computed:{navClasses:function(){return e()({},"text-"+this.align,Boolean(this.align))},classes:function(){return e()({},"pagination-"+this.size,Boolean(this.size))},sliceArray:function(){return function(n){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=[],t=r;t<n;t+=u)i.push(t);return i}(this.totalPage).slice(this.sliceStart,this.sliceStart+this.maxSize)}},methods:{calculateSliceStart:function(){var n=this.value,t=this.maxSize,r=this.sliceStart,i;n>r+t?(i=this.totalPage-t,this.sliceStart=n>i?i:n-1):n<r+1&&(this.sliceStart=n>t?n-t:0)},onPageChange:function(n){!this.disabled&&n>0&&n<=this.totalPage&&n!==this.value&&(this.$emit("input",n),this.$emit("change",n))},toPage:function(n){if(!this.disabled){var t=this.maxSize,r=this.sliceStart,u=this.totalPage-t,i=n?r-t:r+t;this.sliceStart=i<0?0:i>u?u:i}}},created:function(){this.$watch(function(n){return[n.value,n.maxSize,n.totalPage].join()},this.calculateSliceStart,{immediate:!0})}},ao={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("nav",{"class":n.navClasses,attrs:{"aria-label":"Page navigation"}},[t("ul",{staticClass:"pagination","class":n.classes},[n.boundaryLinks?t("li",{"class":{disabled:n.value<=1||n.disabled}},[t("a",{attrs:{href:"#",role:"button","aria-label":"First"},on:{click:function(t){return t.preventDefault(),n.onPageChange(1)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("«")])])]):n._e(),n._v(" "),n.directionLinks?t("li",{"class":{disabled:n.value<=1||n.disabled}},[t("a",{attrs:{href:"#",role:"button","aria-label":"Previous"},on:{click:function(t){return t.preventDefault(),n.onPageChange(n.value-1)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("‹")])])]):n._e(),n._v(" "),n.sliceStart>0?t("li",{"class":{disabled:n.disabled}},[t("a",{attrs:{href:"#",role:"button","aria-label":"Previous group"},on:{click:function(t){return t.preventDefault(),n.toPage(1)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("…")])])]):n._e(),n._v(" "),n._l(n.sliceArray,function(i){return t("li",{key:i,"class":{active:n.value===i+1,disabled:n.disabled}},[t("a",{attrs:{href:"#",role:"button"},on:{click:function(t){return t.preventDefault(),n.onPageChange(i+1)}}},[n._v(n._s(i+1))])])}),n._v(" "),n.sliceStart<n.totalPage-n.maxSize?t("li",{"class":{disabled:n.disabled}},[t("a",{attrs:{href:"#",role:"button","aria-label":"Next group"},on:{click:function(t){return t.preventDefault(),n.toPage(0)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("…")])])]):n._e(),n._v(" "),n.directionLinks?t("li",{"class":{disabled:n.value>=n.totalPage||n.disabled}},[t("a",{attrs:{href:"#",role:"button","aria-label":"Next"},on:{click:function(t){return t.preventDefault(),n.onPageChange(n.value+1)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("›")])])]):n._e(),n._v(" "),n.boundaryLinks?t("li",{"class":{disabled:n.value>=n.totalPage||n.disabled}},[t("a",{attrs:{href:"#",role:"button","aria-label":"Last"},on:{click:function(t){return t.preventDefault(),n.onPageChange(n.totalPage)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("»")])])]):n._e()],2)])},staticRenderFns:[]},ou=i(0)(lo,ao,!1,null,null,null).exports,su={props:{value:{type:Boolean,"default":!1},tag:{type:String,"default":"span"},placement:{type:String,"default":h.TOP},autoPlacement:{type:Boolean,"default":!0},appendTo:{type:String,"default":"body"},transitionDuration:{type:Number,"default":150},hideDelay:{type:Number,"default":0},showDelay:{type:Number,"default":0},enable:{type:Boolean,"default":!0},enterable:{type:Boolean,"default":!0},target:null,viewport:null},data:function(){return{triggerEl:null,hideTimeoutId:0,showTimeoutId:0,transitionTimeoutId:0}},watch:{value:function(n){n?this.show():this.hide()},trigger:function(){this.clearListeners();this.initListeners()},target:function(n){this.clearListeners();this.initTriggerElByTarget(n);this.initListeners()},allContent:function(){var n=this;this.isNotEmpty()?this.$nextTick(function(){n.isShown()&&n.resetPosition()}):this.hide()},enable:function(n){n||this.hide()}},mounted:function(){var n=this;vt();p(this.$refs.popup);this.$nextTick(function(){n.initTriggerElByTarget(n.target);n.initListeners();n.value&&n.show()})},beforeDestroy:function(){this.clearListeners();p(this.$refs.popup)},methods:{initTriggerElByTarget:function(n){var t,i;n?b(n)?this.triggerEl=document.querySelector(n):a(n)?this.triggerEl=n:a(n.$el)&&(this.triggerEl=n.$el):(t=this.$el.querySelector('[data-role="trigger"]'),t?this.triggerEl=t:(i=this.$el.firstChild,this.triggerEl=i===this.$refs.popup?null:i))},initListeners:function(){this.triggerEl&&(this.trigger===oi?(u(this.triggerEl,yt,this.show),u(this.triggerEl,pt,this.hide)):this.trigger===ie?(u(this.triggerEl,rt,this.show),u(this.triggerEl,ut,this.hide)):this.trigger===wt?(u(this.triggerEl,yt,this.handleAuto),u(this.triggerEl,pt,this.handleAuto),u(this.triggerEl,rt,this.handleAuto),u(this.triggerEl,ut,this.handleAuto)):this.trigger!==te&&this.trigger!==si||u(this.triggerEl,d,this.toggle));u(window,d,this.windowClicked)},clearListeners:function(){this.triggerEl&&(f(this.triggerEl,rt,this.show),f(this.triggerEl,ut,this.hide),f(this.triggerEl,yt,this.show),f(this.triggerEl,pt,this.hide),f(this.triggerEl,d,this.toggle),f(this.triggerEl,yt,this.handleAuto),f(this.triggerEl,pt,this.handleAuto),f(this.triggerEl,rt,this.handleAuto),f(this.triggerEl,ut,this.handleAuto));f(window,d,this.windowClicked)},resetPosition:function(){var n=this.$refs.popup;!function(n,t,i,r,u,f){var lt=n&&n.className&&n.className.indexOf("popover")>=0,w=void 0,k=void 0,ut,nt,d,ft,g,st,tt;if(s(u)&&"body"!==u?(ut=document.querySelector(u),k=ut.scrollLeft,w=ut.scrollTop):(nt=document.documentElement,k=(window.pageXOffset||nt.scrollLeft)-(nt.clientLeft||0),w=(window.pageYOffset||nt.scrollTop)-(nt.clientTop||0)),r&&(d=[h.RIGHT,h.BOTTOM,h.LEFT,h.TOP],ft=function(t){d.forEach(function(t){c(n,t)});o(n,t)},!sr(t,n,i))){for(g=0,st=d.length;g<st;g++)if(ft(d[g]),sr(t,n,d[g])){i=d[g];break}ft(i)}var e=t.getBoundingClientRect(),p=n.getBoundingClientRect(),l=void 0,v=void 0;if(i===h.BOTTOM?(l=w+e.top+e.height,v=k+e.left+e.width/2-p.width/2):i===h.LEFT?(l=w+e.top+e.height/2-p.height/2,v=k+e.left-p.width):i===h.RIGHT?(l=w+e.top+e.height/2-p.height/2,v=k+e.left+e.width+1):(l=w+e.top-p.height,v=k+e.left+e.width/2-p.width/2),tt=void 0,b(f)?tt=document.querySelector(f):y(f)&&(tt=f(t)),a(tt)){var it=lt?11:0,rt=tt.getBoundingClientRect(),et=w+rt.top,ot=k+rt.left,ht=et+rt.height,ct=ot+rt.width;l<et?l=et:l+p.height>ht&&(l=ht-p.height);v<ot?v=ot:v+p.width>ct&&(v=ct-p.width);i===h.BOTTOM?l-=it:i===h.LEFT?v+=it:i===h.RIGHT?v-=it:l+=it}n.style.top=l+"px";n.style.left=v+"px"}(n,this.triggerEl,this.placement,this.autoPlacement,this.appendTo,this.viewport);n.offsetHeight},hideOnLeave:function(){this.trigger!==oi&&(this.trigger!==wt||this.triggerEl.matches(":focus"))||this.$hide()},toggle:function(){this.isShown()?this.hide():this.show()},show:function(){var n=this,t,i;this.enable&&this.triggerEl&&this.isNotEmpty()&&!this.isShown()&&(t=this.$refs.popup,i=this.hideTimeoutId>0,i&&(clearTimeout(this.hideTimeoutId),this.hideTimeoutId=0),this.transitionTimeoutId>0&&(clearTimeout(this.transitionTimeoutId),this.transitionTimeoutId=0),this.showTimeoutId=setTimeout(function(){i||(t.className=n.name+" "+n.placement+" fade",document.querySelector(n.appendTo).appendChild(t),n.resetPosition());o(t,"in");n.$emit("input",!0);n.$emit("show")},this.showDelay))},hide:function(){var n=this;this.showTimeoutId>0&&(clearTimeout(this.showTimeoutId),this.showTimeoutId=0);this.isShown()&&(!this.enterable||this.trigger!==oi&&this.trigger!==wt?this.$hide():setTimeout(function(){n.$refs.popup.matches(":hover")||n.$hide()},100))},$hide:function(){var n=this;this.isShown()&&(clearTimeout(this.hideTimeoutId),this.hideTimeoutId=setTimeout(function(){n.hideTimeoutId=0;c(n.$refs.popup,"in");n.transitionTimeoutId=setTimeout(function(){n.transitionTimeoutId=0;p(n.$refs.popup);n.$emit("input",!1);n.$emit("hide")},n.transitionDuration)},this.hideDelay))},isShown:function(){return function(n,t){if(!a(n))return!1;for(var r=n.className.split(" "),i=0,u=r.length;i<u;i++)if(r[i]===t)return!0;return!1}(this.$refs.popup,"in")},windowClicked:function(n){this.triggerEl&&y(this.triggerEl.contains)&&!this.triggerEl.contains(n.target)&&this.trigger===si&&!this.$refs.popup.contains(n.target)&&this.isShown()&&this.hide()},handleAuto:function(){var n=this;setTimeout(function(){n.triggerEl.matches(":hover, :focus")?n.show():n.hide()},20)}}},vo={mixins:[su],data:function(){return{name:"tooltip"}},render:function(n){return n(this.tag,[this.$slots.default,n("div",{ref:"popup",attrs:{role:"tooltip"},on:{mouseleave:this.hideOnLeave}},[n("div",{"class":"tooltip-arrow"}),n("div",{"class":"tooltip-inner",domProps:{innerHTML:this.text}})])])},props:{text:{type:String,"default":""},trigger:{type:String,"default":wt}},computed:{allContent:function(){return this.text}},methods:{isNotEmpty:function(){return this.text}}},ki=i(0)(vo,null,!1,null,null,null).exports,yo={mixins:[su],data:function(){return{name:"popover"}},render:function(n){return n(this.tag,[this.$slots.default,n("div",{style:{display:"block"},ref:"popup",on:{mouseleave:this.hideOnLeave}},[n("div",{"class":"arrow"}),n("h3",{"class":"popover-title",directives:[{name:"show",value:this.title}]},this.title),n("div",{"class":"popover-content"},[this.content||this.$slots.popover])])])},props:{title:{type:String,"default":""},content:{type:String,"default":""},trigger:{type:String,"default":si}},computed:{allContent:function(){return this.title+this.content}},methods:{isNotEmpty:function(){return this.title||this.content||this.$slots.popover}}},di=i(0)(yo,null,!1,null,null,null).exports,po={components:{Btn:w},mixins:[nt],props:{value:{type:Date,required:!0},showMeridian:{type:Boolean,"default":!0},min:Date,max:Date,hourStep:{type:Number,"default":1},minStep:{type:Number,"default":1},readonly:{type:Boolean,"default":!1},controls:{type:Boolean,"default":!0},iconControlUp:{type:String,"default":"glyphicon glyphicon-chevron-up"},iconControlDown:{type:String,"default":"glyphicon glyphicon-chevron-down"}},data:function(){return{hours:0,minutes:0,meridian:!0,hoursText:"",minutesText:""}},mounted:function(){this.updateByValue(this.value)},watch:{value:function(n){this.updateByValue(n)},showMeridian:function(){this.setTime()},hoursText:function(n){if(0!==this.hours||""!==n){var t=parseInt(n);this.showMeridian?t>=1&&t<=12&&(this.hours=this.meridian?12===t?0:t:12===t?12:t+12):t>=0&&t<=23&&(this.hours=t);this.setTime()}},minutesText:function(n){if(0!==this.minutes||""!==n){var t=parseInt(n);t>=0&&t<=59&&(this.minutes=t);this.setTime()}}},methods:{updateByValue:function(n){if(isNaN(n.getTime()))return this.hours=0,this.minutes=0,this.hoursText="",this.minutesText="",void(this.meridian=!0);this.hours=n.getHours();this.minutes=n.getMinutes();this.showMeridian?this.hours>=12?(this.hoursText=12===this.hours?this.hours+"":tt(this.hours-12,2),this.meridian=!1):(this.hoursText=0===this.hours?12..toString():tt(this.hours,2),this.meridian=!0):this.hoursText=tt(this.hours,2);this.minutesText=tt(this.minutes,2);this.$refs.hoursInput.value=this.hoursText;this.$refs.minutesInput.value=this.minutesText},addHour:function(n){n=n||this.hourStep;this.hours=this.hours>=23?0:this.hours+n},reduceHour:function(n){n=n||this.hourStep;this.hours=this.hours<=0?23:this.hours-n},addMinute:function(){this.minutes>=59?(this.minutes=0,this.addHour(1)):this.minutes+=this.minStep},reduceMinute:function(){this.minutes<=0?(this.minutes=60-this.minStep,this.reduceHour(1)):this.minutes-=this.minStep},changeTime:function(n,t){this.readonly||(n&&t?this.addHour():n&&!t?this.reduceHour():!n&&t?this.addMinute():this.reduceMinute(),this.setTime())},toggleMeridian:function(){this.meridian=!this.meridian;this.meridian?this.hours-=12:this.hours+=12;this.setTime()},onWheel:function(n,t){this.readonly||(n.preventDefault(),this.changeTime(t,n.deltaY<0))},setTime:function(){var n=this.value,t,i;(isNaN(n.getTime())&&((n=new Date).setHours(0),n.setMinutes(0)),n.setHours(this.hours),n.setMinutes(this.minutes),this.max)&&(t=new Date(n),t.setHours(this.max.getHours()),t.setMinutes(this.max.getMinutes()),n=n>t?t:n);this.min&&(i=new Date(n),i.setHours(this.min.getHours()),i.setMinutes(this.min.getMinutes()),n=n<i?i:n);this.$emit("input",new Date(n))},selectInputValue:function(n){n.target.setSelectionRange(0,2)}}},wo={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("section",{on:{click:function(n){n.stopPropagation()}}},[t("table",[t("tbody",[n.controls?t("tr",{staticClass:"text-center"},[t("td",[t("btn",{attrs:{type:"link",size:"sm",disabled:n.readonly},on:{click:function(){return n.changeTime(1,1)}}},[t("i",{"class":n.iconControlUp})])],1),n._v(" "),t("td",[n._v(" ")]),n._v(" "),t("td",[t("btn",{attrs:{type:"link",size:"sm",disabled:n.readonly},on:{click:function(){return n.changeTime(0,1)}}},[t("i",{"class":n.iconControlUp})])],1),n._v(" "),n.showMeridian?t("td"):n._e()]):n._e(),n._v(" "),t("tr",[t("td",{staticClass:"form-group"},[t("input",{directives:[{name:"model",rawName:"v-model.lazy",value:n.hoursText,expression:"hoursText",modifiers:{lazy:!0}}],ref:"hoursInput",staticClass:"form-control text-center",staticStyle:{width:"50px"},attrs:{type:"tel",pattern:"\\d*",placeholder:"HH",readonly:n.readonly,maxlength:"2",size:"2"},domProps:{value:n.hoursText},on:{mouseup:n.selectInputValue,keydown:[function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),n.changeTime(1,1))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),n.changeTime(1,0))}],wheel:function(t){return n.onWheel(t,!0)},change:function(t){n.hoursText=t.target.value}}})]),n._v(" "),n._m(0),n._v(" "),t("td",{staticClass:"form-group"},[t("input",{directives:[{name:"model",rawName:"v-model.lazy",value:n.minutesText,expression:"minutesText",modifiers:{lazy:!0}}],ref:"minutesInput",staticClass:"form-control text-center",staticStyle:{width:"50px"},attrs:{type:"tel",pattern:"\\d*",placeholder:"MM",readonly:n.readonly,maxlength:"2",size:"2"},domProps:{value:n.minutesText},on:{mouseup:n.selectInputValue,keydown:[function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),n.changeTime(0,1))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),n.changeTime(0,0))}],wheel:function(t){return n.onWheel(t,!1)},change:function(t){n.minutesText=t.target.value}}})]),n._v(" "),n.showMeridian?t("td",[n._v("\n         \n        "),t("btn",{attrs:{"data-action":"toggleMeridian",disabled:n.readonly},domProps:{textContent:n._s(n.meridian?n.t("uiv.timePicker.am"):n.t("uiv.timePicker.pm"))},on:{click:n.toggleMeridian}})],1):n._e()]),n._v(" "),n.controls?t("tr",{staticClass:"text-center"},[t("td",[t("btn",{attrs:{type:"link",size:"sm",disabled:n.readonly},on:{click:function(){return n.changeTime(1,0)}}},[t("i",{"class":n.iconControlDown})])],1),n._v(" "),t("td",[n._v(" ")]),n._v(" "),t("td",[t("btn",{attrs:{type:"link",size:"sm",disabled:n.readonly},on:{click:function(){return n.changeTime(0,0)}}},[t("i",{"class":n.iconControlDown})])],1),n._v(" "),n.showMeridian?t("td"):n._e()]):n._e()])])])},staticRenderFns:[function(){var t=this.$createElement,n=this._self._c||t;return n("td",[this._v(" "),n("b",[this._v(":")]),this._v(" ")])}]},hu=i(0)(po,wo,!1,null,null,null).exports,bo={components:{Dropdown:lt},props:{value:{required:!0},data:Array,itemKey:String,appendToBody:{type:Boolean,"default":!1},ignoreCase:{type:Boolean,"default":!0},matchStart:{type:Boolean,"default":!1},forceSelect:{type:Boolean,"default":!1},forceClear:{type:Boolean,"default":!1},limit:{type:Number,"default":10},asyncSrc:String,asyncKey:String,asyncFunction:Function,debounce:{type:Number,"default":200},openOnFocus:{type:Boolean,"default":!0},openOnEmpty:{type:Boolean,"default":!1},target:{required:!0},preselect:{type:Boolean,"default":!0}},data:function(){return{inputEl:null,items:[],activeIndex:0,timeoutID:0,elements:[],open:!1,dropdownMenuEl:null}},computed:{regexOptions:function(){var n="";return this.ignoreCase&&(n+="i"),this.matchStart||(n+="g"),n}},mounted:function(){var n=this;vt();this.$nextTick(function(){n.initInputElByTarget(n.target);n.initListeners();n.dropdownMenuEl=n.$refs.dropdown.$el.querySelector(".dropdown-menu");n.value&&n.setInputTextByValue(n.value)})},beforeDestroy:function(){this.removeListeners()},watch:{target:function(n){this.removeListeners();this.initInputElByTarget(n);this.initListeners()},value:function(n){this.setInputTextByValue(n)}},methods:{setInputTextByValue:function(n){b(n)?this.inputEl.value=n:n?this.inputEl.value=this.itemKey?n[this.itemKey]:n:null===n&&(this.inputEl.value="")},hasEmptySlot:function(){return!!this.$slots.empty||!!this.$scopedSlots.empty},initInputElByTarget:function(n){n&&(b(n)?this.inputEl=document.querySelector(n):a(n)?this.inputEl=n:a(n.$el)&&(this.inputEl=n.$el))},initListeners:function(){this.inputEl&&(this.elements=[this.inputEl],u(this.inputEl,rt,this.inputFocused),u(this.inputEl,ut,this.inputBlured),u(this.inputEl,vr,this.inputChanged),u(this.inputEl,ft,this.inputKeyPressed))},removeListeners:function(){this.elements=[];this.inputEl&&(f(this.inputEl,rt,this.inputFocused),f(this.inputEl,ut,this.inputBlured),f(this.inputEl,vr,this.inputChanged),f(this.inputEl,ft,this.inputKeyPressed))},prepareItems:function(n){var i,f,r,t,u;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])this.items=n.slice(0,this.limit);else for(this.items=[],this.activeIndex=this.preselect?0:-1,i=0,f=n.length;i<f;i++)if(r=n[i],t=this.itemKey?r[this.itemKey]:r,t=t.toString(),u=-1,u=this.ignoreCase?t.toLowerCase().indexOf(this.inputEl.value.toLowerCase()):t.indexOf(this.inputEl.value),(this.matchStart?0===u:u>=0)&&this.items.push(r),this.items.length>=this.limit)break},fetchItems:function(n,t){var i=this,r;(clearTimeout(this.timeoutID),""!==n||this.openOnEmpty)?this.data?(this.prepareItems(this.data),this.open=this.hasEmptySlot()||Boolean(this.items.length)):this.asyncSrc?this.timeoutID=setTimeout(function(){i.$emit("loading"),function(n){var t=new window.XMLHttpRequest,i={},r={then:function(n,t){return r.done(n).fail(t)},"catch":function(n){return r.fail(n)},always:function(n){return r.done(n).fail(n)}};return["done","fail"].forEach(function(n){i[n]=[];r[n]=function(t){return t instanceof Function&&i[n].push(t),r}}),r.done(JSON.parse),t.onreadystatechange=function(){var f,r,n,u;if(4===t.readyState)if(f={status:t.status},200===t.status){r=t.responseText;for(n in i.done)i.done.hasOwnProperty(n)&&y(i.done[n])&&(u=i.done[n](r),s(u)&&(r=u))}else i.fail.forEach(function(n){return n(f)})},t.open("GET",n),t.setRequestHeader("Accept","application/json"),t.send(),r}(i.asyncSrc+encodeURIComponent(n)).then(function(n){i.inputEl.matches(":focus")&&(i.prepareItems(i.asyncKey?n[i.asyncKey]:n,!0),i.open=i.hasEmptySlot()||Boolean(i.items.length));i.$emit("loaded")}).catch(function(n){console.error(n);i.$emit("loaded-error")})},t):this.asyncFunction&&(r=function(n){i.inputEl.matches(":focus")&&(i.prepareItems(n,!0),i.open=i.hasEmptySlot()||Boolean(i.items.length));i.$emit("loaded")},this.timeoutID=setTimeout(function(){i.$emit("loading");i.asyncFunction(n,r)},t)):this.open=!1},inputChanged:function(){var n=this.inputEl.value;this.fetchItems(n,this.debounce);this.$emit("input",this.forceSelect?void 0:n)},inputFocused:function(){if(this.openOnFocus){var n=this.inputEl.value;this.fetchItems(n,0)}},inputBlured:function(){var n=this;this.dropdownMenuEl.matches(":hover")||(this.open=!1);this.inputEl&&this.forceClear&&this.$nextTick(function(){void 0===n.value&&(n.inputEl.value="")})},inputKeyPressed:function(n){if(n.stopPropagation(),this.open)switch(n.keyCode){case 13:this.activeIndex>=0?this.selectItem(this.items[this.activeIndex]):this.open=!1;break;case 27:this.open=!1;break;case 38:this.activeIndex=this.activeIndex>0?this.activeIndex-1:0;break;case 40:var t=this.items.length-1;this.activeIndex=this.activeIndex<t?this.activeIndex+1:t}},selectItem:function(n){this.$emit("input",n);this.open=!1},highlight:function(n){var t=this.itemKey?n[this.itemKey]:n,i=this.inputEl.value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");return t.replace(new RegExp(""+i,this.regexOptions),"<b>$&<\/b>")}}},ko={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("dropdown",{ref:"dropdown",attrs:{tag:"section","append-to-body":n.appendToBody,"not-close-elements":n.elements,"position-element":n.inputEl},model:{value:n.open,callback:function(t){n.open=t},expression:"open"}},[t("template",{slot:"dropdown"},[n._t("item",n._l(n.items,function(i,r){return t("li",{"class":{active:n.activeIndex===r}},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),n.selectItem(i)}}},[t("span",{domProps:{innerHTML:n._s(n.highlight(i))}})])])}),{items:n.items,activeIndex:n.activeIndex,select:n.selectItem,highlight:n.highlight}),n._v(" "),n.items&&0!==n.items.length?n._e():n._t("empty")],2)],2)},staticRenderFns:[]},cu=i(0)(bo,ko,!1,null,null,null).exports,gi={functional:!0,render:function(n,t){var i=t.props;return n("div",l(t.data,{"class":e()({"progress-bar":!0,"progress-bar-striped":i.striped,active:i.striped&&i.active},"progress-bar-"+i.type,Boolean(i.type)),style:{minWidth:i.minWidth?"2em":null,width:i.value+"%"},attrs:{role:"progressbar","aria-valuemin":0,"aria-valuenow":i.value,"aria-valuemax":100}}),i.label?i.labelText?i.labelText:i.value+"%":null)},props:{value:{type:Number,required:!0,validator:function(n){return n>=0&&n<=100}},labelText:String,type:String,label:{type:Boolean,"default":!1},minWidth:{type:Boolean,"default":!1},striped:{type:Boolean,"default":!1},active:{type:Boolean,"default":!1}}},lu={functional:!0,render:function(n,t){var r=t.props,u=t.data,i=t.children;return n("div",l(u,{"class":"progress"}),i&&i.length?i:[n(gi,{props:r})])}},nr={functional:!0,mixins:[kr],render:function(n,t){var i=t.props,f=t.data,r=t.children,u=void 0;return u=i.active?r:i.to?[n("router-link",{props:{to:i.to,replace:i.replace,append:i.append,exact:i.exact}},r)]:[n("a",{attrs:{href:i.href,target:i.target}},r)],n("li",l(f,{"class":{active:i.active}}),u)},props:{active:{type:Boolean,"default":!1}}},au={functional:!0,render:function(n,t){var i=t.props,f=t.data,r=t.children,u=[];return r&&r.length?u=r:i.items&&(u=i.items.map(function(t,r){return n(nr,{key:t.hasOwnProperty("key")?t.key:r,props:{active:t.hasOwnProperty("active")?t.active:r===i.items.length-1,href:t.href,target:t.target,to:t.to,replace:t.replace,append:t.append,exact:t.exact}},t.text)})),n("ol",l(f,{"class":"breadcrumb"}),u)},props:{items:Array}},vu={functional:!0,render:function(n,t){var i=t.children;return n("div",l(t.data,{"class":{"btn-toolbar":!0},attrs:{role:"toolbar"}}),i)}},go={mixins:[nt],components:{Dropdown:lt},props:{value:{type:Array,required:!0},options:{type:Array,required:!0},labelKey:{type:String,"default":"label"},valueKey:{type:String,"default":"value"},limit:{type:Number,"default":0},size:String,placeholder:String,split:{type:String,"default":", "},disabled:{type:Boolean,"default":!1},appendToBody:{type:Boolean,"default":!1},block:{type:Boolean,"default":!1},collapseSelected:{type:Boolean,"default":!1},filterable:{type:Boolean,"default":!1},filterAutoFocus:{type:Boolean,"default":!0},filterFunction:Function,filterPlaceholder:String,selectedIcon:{type:String,"default":"glyphicon glyphicon-ok"},itemSelectedClass:String},data:function(){return{showDropdown:!1,els:[],filterInput:"",currentActive:-1}},computed:{containerStyles:function(){return{width:this.block?"100%":""}},filteredOptions:function(){var t=this,n;return this.filterable&&this.filterInput?this.filterFunction?this.filterFunction(this.filterInput):(n=this.filterInput.toLowerCase(),this.options.filter(function(i){return i[t.valueKey].toString().toLowerCase().indexOf(n)>=0||i[t.labelKey].toString().toLowerCase().indexOf(n)>=0})):this.options},groupedOptions:function(){var n=this;return this.filteredOptions.map(function(n){return n.group}).filter(bf).map(function(t){return{options:n.filteredOptions.filter(function(n){return n.group===t}),$group:t}})},flatternGroupedOptions:function(){if(this.groupedOptions&&this.groupedOptions.length){var n=[];return this.groupedOptions.forEach(function(t){n=n.concat(t.options)}),n}return[]},selectClasses:function(){return e()({},"input-"+this.size,this.size)},selectedIconClasses:function(){var n;return n={},e()(n,this.selectedIcon,!0),e()(n,"pull-right",!0),n},selectTextClasses:function(){return{"text-muted":0===this.value.length}},labelValue:function(){var n=this,t=this.options.map(function(t){return t[n.valueKey]});return this.value.map(function(i){var r=t.indexOf(i);return r>=0?n.options[r][n.labelKey]:i})},selectedText:function(){var n,t;return this.value.length?(n=this.labelValue,this.collapseSelected)?(t=n[0],t+(n.length>1?this.split+"+"+(n.length-1):"")):n.join(this.split):this.placeholder||this.t("uiv.multiSelect.placeholder")}},watch:{showDropdown:function(n){var t=this;this.filterInput="";this.currentActive=-1;this.$emit("visible-change",n);n&&this.filterable&&this.filterAutoFocus&&this.$nextTick(function(){t.$refs.filterInput.focus()})}},mounted:function(){this.els=[this.$el]},methods:{goPrevOption:function(){this.showDropdown&&(this.currentActive>0?this.currentActive--:this.currentActive=this.flatternGroupedOptions.length-1)},goNextOption:function(){this.showDropdown&&(this.currentActive<this.flatternGroupedOptions.length-1?this.currentActive++:this.currentActive=0)},selectOption:function(){var n=this.currentActive,t=this.flatternGroupedOptions;this.showDropdown?n>=0&&n<t.length&&this.toggle(t[n]):this.showDropdown=!0},itemClasses:function(n){var t={disabled:n.disabled,active:this.currentActive===this.flatternGroupedOptions.indexOf(n)};return this.itemSelectedClass&&(t[this.itemSelectedClass]=this.isItemSelected(n)),t},isItemSelected:function(n){return this.value.indexOf(n[this.valueKey])>=0},toggle:function(n){var t,i,r;n.disabled||(t=n[this.valueKey],i=this.value.indexOf(t),1===this.limit?(r=i>=0?[]:[t],this.$emit("input",r),this.$emit("change",r)):i>=0?(this.value.splice(i,1),this.$emit("change",this.value)):0===this.limit||this.value.length<this.limit?(this.value.push(t),this.$emit("change",this.value)):this.$emit("limit-exceed"))}}},ns={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("dropdown",{ref:"dropdown",style:n.containerStyles,attrs:{"not-close-elements":n.els,"append-to-body":n.appendToBody,disabled:n.disabled},nativeOn:{keydown:function(t){if(!t.type.indexOf("key")&&n._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;n.showDropdown=!1}},model:{value:n.showDropdown,callback:function(t){n.showDropdown=t},expression:"showDropdown"}},[t("div",{staticClass:"form-control dropdown-toggle clearfix","class":n.selectClasses,attrs:{disabled:n.disabled,tabindex:"0","data-role":"trigger"},on:{focus:function(t){return n.$emit("focus",t)},blur:function(t){return n.$emit("blur",t)},keydown:[function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),t.stopPropagation(),n.goNextOption(t))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),t.stopPropagation(),n.goPrevOption(t))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),n.selectOption(t))}]}},[t("div",{"class":n.selectTextClasses,staticStyle:{display:"inline-block","vertical-align":"middle"}},[n._v(n._s(n.selectedText))]),n._v(" "),t("div",{staticClass:"pull-right",staticStyle:{display:"inline-block","vertical-align":"middle"}},[t("span",[n._v(" ")]),n._v(" "),t("span",{staticClass:"caret"})])]),n._v(" "),t("template",{slot:"dropdown"},[n.filterable?t("li",{staticStyle:{padding:"4px 8px"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:n.filterInput,expression:"filterInput"}],ref:"filterInput",staticClass:"form-control input-sm",attrs:{"aria-label":"Filter...",type:"text",placeholder:n.filterPlaceholder||n.t("uiv.multiSelect.filterPlaceholder")},domProps:{value:n.filterInput},on:{keydown:[function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),t.stopPropagation(),n.goNextOption(t))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),t.stopPropagation(),n.goPrevOption(t))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),n.selectOption(t))}],input:function(t){t.target.composing||(n.filterInput=t.target.value)}}})]):n._e(),n._v(" "),n._l(n.groupedOptions,function(i){return[i.$group?t("li",{staticClass:"dropdown-header",domProps:{textContent:n._s(i.$group)}}):n._e(),n._v(" "),n._l(i.options,function(i){return[t("li",{"class":n.itemClasses(i),staticStyle:{outline:"0"},on:{keydown:[function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),t.stopPropagation(),n.goNextOption(t))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),t.stopPropagation(),n.goPrevOption(t))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),n.selectOption(t))}],click:function(t){return t.stopPropagation(),n.toggle(i)},mouseenter:function(){n.currentActive=-1}}},[n.isItemSelected(i)?t("a",{staticStyle:{outline:"0"},attrs:{role:"button"}},[t("b",[n._v(n._s(i[n.labelKey]))]),n._v(" "),n.selectedIcon?t("span",{"class":n.selectedIconClasses}):n._e()]):t("a",{staticStyle:{outline:"0"},attrs:{role:"button"}},[t("span",[n._v(n._s(i[n.labelKey]))])])])]})]})],2)],2)},staticRenderFns:[]},yu=i(0)(go,ns,!1,null,null,null).exports,ts={components:{Collapse:ci},props:{value:Boolean,fluid:{type:Boolean,"default":!0},fixedTop:Boolean,fixedBottom:Boolean,staticTop:Boolean,inverse:Boolean},data:function(){return{show:!1}},computed:{navClasses:function(){return{navbar:!0,"navbar-default":!this.inverse,"navbar-inverse":this.inverse,"navbar-static-top":this.staticTop,"navbar-fixed-bottom":this.fixedBottom,"navbar-fixed-top":this.fixedTop}}},mounted:function(){this.show=!!this.value},watch:{value:function(n){this.show=n}},methods:{toggle:function(){this.show=!this.show;this.$emit("input",this.show)}}},is={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("nav",{"class":n.navClasses},[t("div",{"class":n.fluid?"container-fluid":"container"},[t("div",{staticClass:"navbar-header"},[n._t("collapse-btn",[t("button",{staticClass:"navbar-toggle collapsed",attrs:{type:"button"},on:{click:n.toggle}},[t("span",{staticClass:"sr-only"},[n._v("Toggle navigation")]),n._v(" "),t("span",{staticClass:"icon-bar"}),n._v(" "),t("span",{staticClass:"icon-bar"}),n._v(" "),t("span",{staticClass:"icon-bar"})])]),n._v(" "),n._t("brand")],2),n._v(" "),n._t("default"),n._v(" "),t("collapse",{staticClass:"navbar-collapse",model:{value:n.show,callback:function(t){n.show=t},expression:"show"}},[n._t("collapse")],2)],2)])},staticRenderFns:[]},pu=i(0)(ts,is,!1,null,null,null).exports,wu={functional:!0,render:function(n,t){var r=t.children,u=t.data,i=t.props;return n("ul",l(u,{"class":{nav:!0,"navbar-nav":!0,"navbar-left":i.left,"navbar-right":i.right}}),r)},props:{left:Boolean,right:Boolean}},bu={functional:!0,render:function(n,t){var r=t.children,u=t.data,i=t.props;return n("form",l(u,{"class":{"navbar-form":!0,"navbar-left":i.left,"navbar-right":i.right}}),r)},props:{left:Boolean,right:Boolean}},ku={functional:!0,render:function(n,t){var r=t.children,u=t.data,i=t.props;return n("p",l(u,{"class":{"navbar-text":!0,"navbar-left":i.left,"navbar-right":i.right}}),r)},props:{left:Boolean,right:Boolean}},rs=i(4),gt=i.n(rs),tr="_uiv_tooltip_instance",du=function(n,t){var i,u,r;gu(n);i=new(gt.a.extend(ki))({propsData:{target:n,appendTo:t.arg&&"#"+t.arg,text:"string"==typeof t.value?t.value&&t.value.toString():t.value&&t.value.text&&t.value.text.toString(),viewport:t.value&&t.value.viewport&&t.value.viewport.toString()}});u=[];for(r in t.modifiers)t.modifiers.hasOwnProperty(r)&&t.modifiers[r]&&u.push(r);u.forEach(function(n){/(top)|(left)|(right)|(bottom)/.test(n)?i.placement=n:/(hover)|(focus)|(click)/.test(n)?i.trigger=n:/unenterable/.test(n)&&(i.enterable=!1)});i.$mount();n[tr]=i},gu=function(n){var t=n[tr];t&&t.$destroy();delete n[tr]},nf={bind:du,unbind:gu,update:function(n,t){t.value!==t.oldValue&&du(n,t)}},ir="_uiv_popover_instance",tf=function(n,t){var i,u,r;rf(n);i=new(gt.a.extend(di))({propsData:{target:n,appendTo:t.arg&&"#"+t.arg,title:t.value&&t.value.title&&t.value.title.toString(),content:t.value&&t.value.content&&t.value.content.toString(),viewport:t.value&&t.value.viewport&&t.value.viewport.toString()}});u=[];for(r in t.modifiers)t.modifiers.hasOwnProperty(r)&&t.modifiers[r]&&u.push(r);u.forEach(function(n){/(top)|(left)|(right)|(bottom)/.test(n)?i.placement=n:/(hover)|(focus)|(click)/.test(n)?i.trigger=n:/unenterable/.test(n)&&(i.enterable=!1)});i.$mount();n[ir]=i},rf=function(n){var t=n[ir];t&&t.$destroy();delete n[ir]},uf={bind:tf,unbind:rf,update:function(n,t){t.value!==t.oldValue&&tf(n,t)}};k.DEFAULTS={offset:10,callback:function(){return 0}};k.prototype.getScrollHeight=function(){return this.scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)};k.prototype.refresh=function(){var n=this,i,t;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();i=ti(this.el.querySelectorAll(this.selector));t=this.scrollElement===window;i.map(function(i){var r=i.getAttribute("href");if(/^#./.test(r)){var u=document.documentElement,f=(t?document:n.scrollElement).querySelector("[id='"+r.slice(1)+"']"),e=(window.pageYOffset||u.scrollTop)-(u.clientTop||0);return[t?f.getBoundingClientRect().top+e:f.offsetTop+n.scrollElement.scrollTop,r]}return null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(t){n.offsets.push(t[0]);n.targets.push(t[1])})};k.prototype.process=function(){var f=this.scrollElement===window,i=(f?window.pageYOffset:this.scrollElement.scrollTop)+this.opts.offset,e=this.getScrollHeight(),o=f?ri().height:this.scrollElement.getBoundingClientRect().height,s=this.opts.offset+e-o,t=this.offsets,r=this.targets,u=this.activeTarget,n=void 0;if(this.scrollHeight!==e&&this.refresh(),i>=s)return u!==(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!==r[n]&&i>=t[n]&&(void 0===t[n+1]||i<t[n+1])&&this.activate(r[n])};k.prototype.activate=function(n){this.activeTarget=n;this.clear();var t=this.selector+'[data-target="'+n+'"],'+this.selector+'[href="'+n+'"]',i=this.opts.callback;ti(this.el.querySelectorAll(t)).forEach(function(n){fi(n,"li").forEach(function(n){o(n,"active");i(n)});fi(n,".dropdown-menu").length&&o(function(n,t){vt();for(var i=void 0,r=n;r;){if((i=r.parentElement)&&i.matches(t))return i;r=i}return null}(n,"li.dropdown"),"active")})};k.prototype.clear=function(){var n=this;ti(this.el.querySelectorAll(this.selector)).forEach(function(t){fi(t,".active",n.opts.target).forEach(function(n){c(n,"active")})})};var et,rr="_uiv_scrollspy_instance",ff=[pr,wr],ef=function(n){sf(n)},of=function(n,t){var i=new k(n,t.arg,t.value);i.scrollElement&&(i.handler=function(){i.process()},ff.forEach(function(n){u(i.scrollElement,n,i.handler)}));n[rr]=i},sf=function(n){var t=n[rr];t&&t.scrollElement&&(ff.forEach(function(n){f(t.scrollElement,n,t.handler)}),delete n[rr])},hf={bind:ef,unbind:sf,update:function(n,t){t.value!==t.oldValue&&(ef(n),of(n,t))},inserted:of},v={ALERT:0,CONFIRM:1,PROMPT:2},us={mixins:[nt],components:{Modal:wi,Btn:w},props:{backdrop:null,title:String,content:String,html:{type:Boolean,"default":!1},okText:String,okType:{type:String,"default":"primary"},cancelText:String,cancelType:{type:String,"default":"default"},type:{type:Number,"default":v.ALERT},size:{type:String,"default":"sm"},cb:{type:Function,required:!0},validator:{type:Function,"default":function(){return null}},customClass:null,defaultValue:String,inputType:{type:String,"default":"text"},autoFocus:{type:String,"default":"ok"}},data:function(){return{TYPES:v,show:!1,input:"",dirty:!1}},mounted:function(){this.defaultValue&&(this.input=this.defaultValue)},computed:{closeOnBackdropClick:function(){return s(this.backdrop)?Boolean(this.backdrop):this.type!==v.ALERT},inputError:function(){return this.validator(this.input)},inputNotValid:function(){return this.dirty&&this.inputError},okBtnText:function(){return this.okText||this.t("uiv.modal.ok")},cancelBtnText:function(){return this.cancelText||this.t("uiv.modal.cancel")}},methods:{toggle:function(n,t){this.$refs.modal.toggle(n,t)},validate:function(){this.dirty=!0;s(this.inputError)||this.toggle(!1,{value:this.input})}}},fs={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("modal",{ref:"modal","class":n.customClass,attrs:{"auto-focus":"",size:n.size,title:n.title,header:!!n.title,backdrop:n.closeOnBackdropClick,"cancel-text":n.cancelText,"ok-text":n.okText},on:{hide:n.cb},model:{value:n.show,callback:function(t){n.show=t},expression:"show"}},[n.html?t("div",{domProps:{innerHTML:n._s(n.content)}}):t("p",[n._v(n._s(n.content))]),n._v(" "),n.type===n.TYPES.PROMPT?t("div",[t("div",{staticClass:"form-group","class":{"has-error":n.inputNotValid}},["checkbox"===n.inputType?t("input",{directives:[{name:"model",rawName:"v-model",value:n.input,expression:"input"}],ref:"input",staticClass:"form-control",attrs:{required:"","data-action":"auto-focus",type:"checkbox"},domProps:{checked:Array.isArray(n.input)?n._i(n.input,null)>-1:n.input},on:{change:[function(t){var i=n.input,u=t.target,f=!!u.checked,r;Array.isArray(i)?(r=n._i(i,null),u.checked?r<0&&(n.input=i.concat([null])):r>-1&&(n.input=i.slice(0,r).concat(i.slice(r+1)))):n.input=f},function(){n.dirty=!0}],keyup:function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"enter",13,t.key,"Enter")?null:n.validate(t)}}}):"radio"===n.inputType?t("input",{directives:[{name:"model",rawName:"v-model",value:n.input,expression:"input"}],ref:"input",staticClass:"form-control",attrs:{required:"","data-action":"auto-focus",type:"radio"},domProps:{checked:n._q(n.input,null)},on:{change:[function(){n.input=null},function(){n.dirty=!0}],keyup:function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"enter",13,t.key,"Enter")?null:n.validate(t)}}}):t("input",{directives:[{name:"model",rawName:"v-model",value:n.input,expression:"input"}],ref:"input",staticClass:"form-control",attrs:{required:"","data-action":"auto-focus",type:n.inputType},domProps:{value:n.input},on:{change:function(){n.dirty=!0},keyup:function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"enter",13,t.key,"Enter")?null:n.validate(t)},input:function(t){t.target.composing||(n.input=t.target.value)}}}),n._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:n.inputNotValid,expression:"inputNotValid"}],staticClass:"help-block"},[n._v(n._s(n.inputError))])])]):n._e(),n._v(" "),n.type===n.TYPES.ALERT?t("template",{slot:"footer"},[t("btn",{attrs:{type:n.okType,"data-action":"ok"===n.autoFocus?"auto-focus":""},domProps:{textContent:n._s(n.okBtnText)},on:{click:function(){return n.toggle(!1,"ok")}}})],1):t("template",{slot:"footer"},[t("btn",{attrs:{type:n.cancelType,"data-action":"cancel"===n.autoFocus?"auto-focus":""},domProps:{textContent:n._s(n.cancelBtnText)},on:{click:function(){return n.toggle(!1,"cancel")}}}),n._v(" "),n.type===n.TYPES.CONFIRM?t("btn",{attrs:{type:n.okType,"data-action":"ok"===n.autoFocus?"auto-focus":""},domProps:{textContent:n._s(n.okBtnText)},on:{click:function(){return n.toggle(!1,"ok")}}}):t("btn",{attrs:{type:n.okType},domProps:{textContent:n._s(n.okBtnText)},on:{click:n.validate}})],1)],2)},staticRenderFns:[]},es=i(0)(us,fs,!1,null,null,null).exports,cf=[],ni=function(n,t){return n===v.CONFIRM?"ok"===t:s(t)&&b(t.value)},lf=function(n,t,i){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,e=this.$i18n,r=new gt.a({"extends":es,i18n:e,propsData:g()({type:n},t,{cb:function(t){!function(n){p(n.$el);n.$destroy();at(cf,n)}(r);y(i)?n===v.CONFIRM?ni(n,t)?i(null,t):i(t):n===v.PROMPT&&ni(n,t)?i(null,t.value):i(t):u&&f&&(n===v.CONFIRM?ni(n,t)?u(t):f(t):n===v.PROMPT?ni(n,t)?u(t.value):f(t):u(t))}})});r.$mount();document.body.appendChild(r.$el);r.show=!0;cf.push(r)},ur=function(n){var r=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];if(or())return new Promise(function(u,f){lf.apply(r,[n,t,i,u,f])});lf.apply(this,[n,t,i])},af={alert:function(n,t){return ur.apply(this,[v.ALERT,n,t])},confirm:function(n,t){return ur.apply(this,[v.CONFIRM,n,t])},prompt:function(n,t){return ur.apply(this,[v.PROMPT,n,t])}},os="success",ss="info",hs="danger",cs="warning",fr="top-left",er="top-right",vf="bottom-left",ot="glyphicon",ls={components:{Alert:bi},props:{title:String,content:String,html:{type:Boolean,"default":!1},duration:{type:Number,"default":5e3},dismissible:{type:Boolean,"default":!0},type:String,placement:String,icon:String,customClass:null,cb:{type:Function,required:!0},queue:{type:Array,required:!0},offsetY:{type:Number,"default":15},offsetX:{type:Number,"default":15},offset:{type:Number,"default":15}},data:function(){return{height:0,top:0,horizontal:this.placement===fr||this.placement===vf?"left":"right",vertical:this.placement===fr||this.placement===er?"top":"bottom"}},created:function(){this.top=this.getTotalHeightOfQueue(this.queue)},mounted:function(){var t=this,n=this.$el;n.style[this.vertical]=this.top+"px";this.$nextTick(function(){n.style[t.horizontal]="-300px";t.height=n.offsetHeight;n.style[t.horizontal]=t.offsetX+"px";o(n,"in")})},computed:{styles:function(){var n,t=this.queue,i=t.indexOf(this);return n={position:"fixed"},e()(n,this.vertical,this.getTotalHeightOfQueue(t,i)+"px"),e()(n,"width","300px"),e()(n,"transition","all 0.3s ease-in-out"),n},icons:function(){if(b(this.icon))return this.icon;switch(this.type){case ss:case cs:return ot+" "+ot+"-info-sign";case os:return ot+" "+ot+"-ok-sign";case hs:return ot+" "+ot+"-remove-sign";default:return null}}},methods:{getTotalHeightOfQueue:function(n){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length,i=this.offsetY,t=0;t<r;t++)i+=n[t].height+this.offset;return i},onDismissed:function(){c(this.$el,"in");setTimeout(this.cb,300)}}},as={render:function(){var t=this.$createElement,n=this._self._c||t;return n("alert",{staticClass:"fade","class":this.customClass,style:this.styles,attrs:{type:this.type,duration:this.duration,dismissible:this.dismissible},on:{dismissed:this.onDismissed}},[n("div",{staticClass:"media",staticStyle:{margin:"0"}},[this.icons?n("div",{staticClass:"media-left"},[n("span",{"class":this.icons,staticStyle:{"font-size":"1.5em"}})]):this._e(),this._v(" "),n("div",{staticClass:"media-body"},[this.title?n("div",{staticClass:"media-heading"},[n("b",[this._v(this._s(this.title))])]):this._e(),this._v(" "),this.html?n("div",{domProps:{innerHTML:this._s(this.content)}}):n("div",[this._v(this._s(this.content))])])])])},staticRenderFns:[]},vs=i(0)(ls,as,!1,null,null,null).exports,ys=(et={},e()(et,fr,[]),e()(et,er,[]),e()(et,vf,[]),e()(et,"bottom-right",[]),et),yf=function(n,t){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,f=n.placement,r=ys[f],i;s(r)&&(i=new gt.a({"extends":vs,propsData:g()({queue:r,placement:f},n,{cb:function(n){!function(n,t){p(t.$el);t.$destroy();at(n,t)}(r,i);y(t)?t(n):u&&e&&u(n)}})}),i.$mount(),document.body.appendChild(i.$el),r.push(i))},pf={notify:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(b(n)&&(n={content:n}),s(n.placement)||(n.placement=er),or())return new Promise(function(i,r){yf(n,t,i,r)});yf(n,t)}},wf=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};se(t.locale);he(t.i18n);Object.keys(r).forEach(function(i){var u=t.prefix?t.prefix+i:i;n.component(u,r[i])});Object.keys(it).forEach(function(i){var r=t.prefix?t.prefix+"-"+i:i;n.directive(r,it[i])});Object.keys(ht).forEach(function(i){var r=ht[i];Object.keys(r).forEach(function(i){var u=t.prefix?t.prefix+"_"+i:i;n.prototype["$"+u]=r[i]})})};i.d(t,"install",function(){return wf});i.d(t,"Carousel",function(){return lr});i.d(t,"Slide",function(){return ar});i.d(t,"Collapse",function(){return ci});i.d(t,"Dropdown",function(){return lt});i.d(t,"Modal",function(){return wi});i.d(t,"Tab",function(){return gr});i.d(t,"Tabs",function(){return tu});i.d(t,"DatePicker",function(){return iu});i.d(t,"Affix",function(){return eu});i.d(t,"Alert",function(){return bi});i.d(t,"Pagination",function(){return ou});i.d(t,"Tooltip",function(){return ki});i.d(t,"Popover",function(){return di});i.d(t,"TimePicker",function(){return hu});i.d(t,"Typeahead",function(){return cu});i.d(t,"ProgressBar",function(){return lu});i.d(t,"ProgressBarStack",function(){return gi});i.d(t,"Breadcrumbs",function(){return au});i.d(t,"BreadcrumbItem",function(){return nr});i.d(t,"Btn",function(){return w});i.d(t,"BtnGroup",function(){return vi});i.d(t,"BtnToolbar",function(){return vu});i.d(t,"MultiSelect",function(){return yu});i.d(t,"Navbar",function(){return pu});i.d(t,"NavbarNav",function(){return wu});i.d(t,"NavbarForm",function(){return bu});i.d(t,"NavbarText",function(){return ku});i.d(t,"tooltip",function(){return nf});i.d(t,"popover",function(){return uf});i.d(t,"scrollspy",function(){return hf});i.d(t,"MessageBox",function(){return af});i.d(t,"Notification",function(){return pf});"undefined"!=typeof window&&window.Vue&&wf(window.Vue,window.__uiv_options||{})},function(n,t,i){n.exports={"default":i(17),__esModule:!0}},function(n,t,i){i(18);var r=i(6).Object;n.exports=function(n,t,i){return r.defineProperty(n,t,i)}},function(n,t,i){var r=i(9);r(r.S+r.F*!i(3),"Object",{defineProperty:i(10).f})},function(n,t,i){var r=i(20);n.exports=function(n,t,i){if(r(n),void 0===t)return n;switch(i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}}},function(n){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(n,t,i){var r=i(10),u=i(26);n.exports=i(3)?function(n,t,i){return r.f(n,t,u(1,i))}:function(n,t,i){return n[t]=i,n}},function(n,t,i){var r=i(7);n.exports=function(n){if(!r(n))throw TypeError(n+" is not an object!");return n}},function(n,t,i){n.exports=!i(3)&&!i(8)(function(){return 7!=Object.defineProperty(i(24)("div"),"a",{get:function(){return 7}}).a})},function(n,t,i){var u=i(7),r=i(5).document,f=u(r)&&u(r.createElement);n.exports=function(n){return f?r.createElement(n):{}}},function(n,t,i){var r=i(7);n.exports=function(n,t){if(!r(n))return n;var i,u;if(t&&"function"==typeof(i=n.toString)&&!r(u=i.call(n))||"function"==typeof(i=n.valueOf)&&!r(u=i.call(n))||!t&&"function"==typeof(i=n.toString)&&!r(u=i.call(n)))return u;throw TypeError("Can't convert object to primitive value");}},function(n){n.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},function(n,t,i){n.exports={"default":i(28),__esModule:!0}},function(n,t,i){i(29);n.exports=i(6).Object.assign},function(n,t,i){var r=i(9);r(r.S+r.F,"Object",{assign:i(30)})},function(n,t,i){"use strict";var u=i(31),f=i(42),e=i(43),o=i(44),s=i(12),r=Object.assign;n.exports=!r||i(8)(function(){var n={},t={},i=Symbol(),u="abcdefghijklmnopqrst";return n[i]=7,u.split("").forEach(function(n){t[n]=n}),7!=r({},n)[i]||Object.keys(r({},t)).join("")!=u})?function(n){for(var r=o(n),v=arguments.length,h=1,c=f.f,y=e.f;v>h;)for(var i,t=s(arguments[h++]),l=c?u(t).concat(c(t)):u(t),p=l.length,a=0;p>a;)y.call(t,i=l[a++])&&(r[i]=t[i]);return r}:r},function(n,t,i){var r=i(32),u=i(41);n.exports=Object.keys||function(n){return r(n,u)}},function(n,t,i){var r=i(33),u=i(11),f=i(35)(!1),e=i(38)("IE_PROTO");n.exports=function(n,t){var i,s=u(n),h=0,o=[];for(i in s)i!=e&&r(s,i)&&o.push(i);for(;t.length>h;)r(s,i=t[h++])&&(~f(o,i)||o.push(i));return o}},function(n){var t={}.hasOwnProperty;n.exports=function(n,i){return t.call(n,i)}},function(n){var t={}.toString;n.exports=function(n){return t.call(n).slice(8,-1)}},function(n,t,i){var r=i(11),u=i(36),f=i(37);n.exports=function(n){return function(t,i,e){var c,s=r(t),h=u(s.length),o=f(e,h);if(n&&i!=i){for(;h>o;)if((c=s[o++])!=c)return!0}else for(;h>o;o++)if((n||o in s)&&s[o]===i)return n||o||0;return!n&&-1}}},function(n,t,i){var r=i(14),u=Math.min;n.exports=function(n){return n>0?u(r(n),9007199254740991):0}},function(n,t,i){var r=i(14),u=Math.max,f=Math.min;n.exports=function(n,t){return(n=r(n))<0?u(n+t,0):f(n,t)}},function(n,t,i){var r=i(39)("keys"),u=i(40);n.exports=function(n){return r[n]||(r[n]=u(n))}},function(n,t,i){var r=i(5),u="__core-js_shared__",f=r[u]||(r[u]={});n.exports=function(n){return f[n]||(f[n]={})}},function(n){var t=0,i=Math.random();n.exports=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++t+i).toString(36))}},function(n){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,t){t.f=Object.getOwnPropertySymbols},function(n,t){t.f={}.propertyIsEnumerable},function(n,t,i){var r=i(13);n.exports=function(n){return Object(r(n))}}])});!function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("vue")):"function"==typeof define&&define.amd?define("uiv",["vue"],t):"object"==typeof exports?exports.uiv=t(require("vue")):n.uiv=t(n.Vue)}("undefined"!=typeof self?self:this,function(n){return function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};return t.m=n,t.c=i,t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=15)}([function(n){n.exports=function(n,t,i,r,u,f){var l,s=n=n||{},a=typeof n.default,e,o,c,h;return"object"!==a&&"function"!==a||(l=n,s=n.default),e="function"==typeof s?s.options:s,t&&(e.render=t.render,e.staticRenderFns=t.staticRenderFns,e._compiled=!0),i&&(e.functional=!0),u&&(e._scopeId=u),(f?(o=function(n){(n=n||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(n=__VUE_SSR_CONTEXT__);r&&r.call(this,n);n&&n._registeredComponents&&n._registeredComponents.add(f)},e._ssrRegister=o):r&&(o=r),o)&&(c=e.functional,h=c?e.render:e.beforeCreate,c?(e._injectStyles=o,e.render=function(n,t){return o.call(t),h(n,t)}):e.beforeCreate=h?[].concat(h,o):[o]),{esModule:l,exports:s,options:e}}},function(n,t,i){"use strict";t.__esModule=!0;var r=function(n){return n&&n.__esModule?n:{"default":n}}(i(16));t.default=function(n,t,i){return t in n?r.default(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n}},function(n,t,i){"use strict";t.__esModule=!0;var r=function(n){return n&&n.__esModule?n:{"default":n}}(i(27));t.default=r.default||function(n){for(var i,r,t=1;t<arguments.length;t++){i=arguments[t];for(r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r])}return n}},function(n,t,i){n.exports=!i(8)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t){t.exports=n},function(n){var t=n.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)},function(n){var t=n.exports={version:"2.5.1"};"number"==typeof __e&&(__e=t)},function(n){n.exports=function(n){return"object"==typeof n?null!==n:"function"==typeof n}},function(n){n.exports=function(n){try{return!!n()}catch(n){return!0}}},function(n,t,i){var u=i(5),e=i(6),o=i(19),s=i(21),f="prototype",r=function(n,t,i){var h,y,c,b=n&r.F,v=n&r.G,k=n&r.S,w=n&r.P,d=n&r.B,g=n&r.W,l=v?e:e[t]||(e[t]={}),p=l[f],a=v?u:k?u[t]:(u[t]||{})[f];v&&(i=t);for(h in i)(y=!b&&a&&void 0!==a[h])&&h in l||(c=y?a[h]:i[h],l[h]=v&&"function"!=typeof a[h]?i[h]:d&&y?o(c,u):g&&a[h]==c?function(n){var t=function(t,i,r){if(this instanceof n){switch(arguments.length){case 0:return new n;case 1:return new n(t);case 2:return new n(t,i)}return new n(t,i,r)}return n.apply(this,arguments)};return t[f]=n[f],t}(c):w&&"function"==typeof c?o(Function.call,c):c,w&&((l.virtual||(l.virtual={}))[h]=c,n&r.R&&p&&!p[h]&&s(p,h,c)))};r.F=1;r.G=2;r.S=4;r.P=8;r.B=16;r.W=32;r.U=64;r.R=128;n.exports=r},function(n,t,i){var r=i(22),u=i(23),f=i(25),e=Object.defineProperty;t.f=i(3)?Object.defineProperty:function(n,t,i){if(r(n),t=f(t,!0),r(i),u)try{return e(n,t,i)}catch(n){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(n[t]=i.value),n}},function(n,t,i){var r=i(12),u=i(13);n.exports=function(n){return r(u(n))}},function(n,t,i){var r=i(34);n.exports=Object("z").propertyIsEnumerable(0)?Object:function(n){return"String"==r(n)?n.split(""):Object(n)}},function(n){n.exports=function(n){if(void 0==n)throw TypeError("Can't call method on  "+n);return n}},function(n){var t=Math.ceil,i=Math.floor;n.exports=function(n){return isNaN(n=+n)?0:(n>0?i:t)(n)}},function(n,t,i){"use strict";function s(n){return void 0!==n&&null!==n}function y(n){return"function"==typeof n}function st(n){return"number"==typeof n}function b(n){return"string"==typeof n}function or(){return"undefined"!=typeof window&&s(window.Promise)}function at(n,t){if(Array.isArray(n)){var i=n.indexOf(t);i>=0&&n.splice(i,1)}}function ti(n){return Array.prototype.slice.call(n||[])}function bf(n,t,i){return i.indexOf(n)===t}function ii(n){return window.getComputedStyle(n)}function ri(){return{width:Math.max(document.documentElement.clientWidth,window.innerWidth||0),height:Math.max(document.documentElement.clientHeight,window.innerHeight||0)}}function u(n,t,i){n.addEventListener(t,i)}function f(n,t,i){n.removeEventListener(t,i)}function a(n){return n&&n.nodeType===Node.ELEMENT_NODE}function p(n){a(n)&&a(n.parentNode)&&n.parentNode.removeChild(n)}function vt(){Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(n){for(var i=(this.document||this.ownerDocument).querySelectorAll(n),t=i.length;--t>=0&&i.item(t)!==this;);return t>-1})}function o(n,t){if(a(n))if(n.className){var i=n.className.split(" ");i.indexOf(t)<0&&(i.push(t),n.className=i.join(" "))}else n.className=t}function c(n,t){if(a(n)&&n.className){for(var r=n.className.split(" "),u=[],i=0,f=r.length;i<f;i++)r[i]!==t&&u.push(r[i]);n.className=u.join(" ")}}function sr(n,t,i){var r=n.getBoundingClientRect(),u=t.getBoundingClientRect(),f=ri(),e=!0,o=!0,s=!0,c=!0;switch(i){case h.TOP:e=r.top>=u.height;c=r.left+r.width/2>=u.width/2;o=r.right-r.width/2+u.width/2<=f.width;break;case h.BOTTOM:s=r.bottom+u.height<=f.height;c=r.left+r.width/2>=u.width/2;o=r.right-r.width/2+u.width/2<=f.width;break;case h.RIGHT:o=r.right+u.width<=f.width;e=r.top+r.height/2>=u.height/2;s=r.bottom-r.height/2+u.height/2<=f.height;break;case h.LEFT:c=r.left>=u.width;e=r.top+r.height/2>=u.height/2;s=r.bottom-r.height/2+u.height/2<=f.height}return e&&o&&s&&c}function hr(n){var i=n.scrollHeight>n.clientHeight,t=ii(n);return i||"scroll"===t.overflow||"scroll"===t.overflowY}function ui(n){var t=document.body,i;n?(c(t,"modal-open"),t.style.paddingRight=null):(i=-1!==window.navigator.appVersion.indexOf("MSIE 10")||!!window.MSInputMethodContext&&!!document.documentMode,(hr(document.documentElement)||hr(document.body))&&!i&&(t.style.paddingRight=function(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0],i=ri(),n,t;return null!==bt&&!r&&i.height===hi.height&&i.width===hi.width?bt:"loading"===document.readyState?null:(n=document.createElement("div"),t=document.createElement("div"),n.style.width=t.style.width=n.style.height=t.style.height="100px",n.style.overflow="scroll",t.style.overflow="hidden",document.body.appendChild(n),document.body.appendChild(t),bt=Math.abs(n.scrollHeight-t.scrollHeight),document.body.removeChild(n),document.body.removeChild(t),hi=i,bt)}()+"px"),o(t,"modal-open"))}function fi(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u,i;for(vt(),u=[],i=n.parentElement;i;){if(i.matches(t))u.push(i);else if(r&&(r===i||i.matches(r)))break;i=i.parentElement}return u}function ei(n){a(n)&&(!n.getAttribute("tabindex")&&n.setAttribute("tabindex","-1"),n.focus())}function l(){for(var n,r,u,e,f,o,t={},i=arguments.length;i--;)for(u=0,e=Object.keys(arguments[i]);u<e.length;u++)switch(n=e[u]){case"class":case"style":case"directives":Array.isArray(t[n])||(t[n]=[]);t[n]=t[n].concat(arguments[i][n]);break;case"staticClass":if(!arguments[i][n])break;void 0===t[n]&&(t[n]="");t[n]&&(t[n]+=" ");t[n]+=arguments[i][n].trim();break;case"on":case"nativeOn":for(t[n]||(t[n]={}),f=0,o=Object.keys(arguments[i][n]);f<o.length;f++)r=o[f],t[n][r]=t[n][r]?[].concat(t[n][r],arguments[i][n][r]):arguments[i][n][r];break;case"attrs":case"props":case"domProps":case"scopedSlots":case"staticStyle":case"hook":case"transition":t[n]||(t[n]={});t[n]=ce({},arguments[i][n],t[n]);break;case"slot":case"key":case"ref":case"tag":case"show":case"keepAlive":default:t[n]||(t[n]=arguments[i][n])}return t}function tt(n,t){for(var i=t-(n+="").length;i>0;i--)n="0"+n;return n}function cr(n){return new Date(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate(),n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds())}function k(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"body",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.el=n;this.opts=g()({},k.DEFAULTS,i);this.opts.target=t;this.scrollElement="body"===t?window:document.querySelector("[id="+t+"]");this.selector="li > a";this.offsets=[];this.targets=[];this.activeTarget=null;this.scrollHeight=0;this.scrollElement&&(this.refresh(),this.process())}var r,it,ht;Object.defineProperty(t,"__esModule",{value:!0});r={};i.d(r,"Carousel",function(){return lr});i.d(r,"Slide",function(){return ar});i.d(r,"Collapse",function(){return ci});i.d(r,"Dropdown",function(){return lt});i.d(r,"Modal",function(){return wi});i.d(r,"Tab",function(){return gr});i.d(r,"Tabs",function(){return tu});i.d(r,"DatePicker",function(){return iu});i.d(r,"Affix",function(){return eu});i.d(r,"Alert",function(){return bi});i.d(r,"Pagination",function(){return ou});i.d(r,"Tooltip",function(){return ki});i.d(r,"Popover",function(){return di});i.d(r,"TimePicker",function(){return hu});i.d(r,"Typeahead",function(){return cu});i.d(r,"ProgressBar",function(){return lu});i.d(r,"ProgressBarStack",function(){return gi});i.d(r,"Breadcrumbs",function(){return au});i.d(r,"BreadcrumbItem",function(){return nr});i.d(r,"Btn",function(){return w});i.d(r,"BtnGroup",function(){return vi});i.d(r,"BtnToolbar",function(){return vu});i.d(r,"MultiSelect",function(){return yu});i.d(r,"Navbar",function(){return pu});i.d(r,"NavbarNav",function(){return wu});i.d(r,"NavbarForm",function(){return bu});i.d(r,"NavbarText",function(){return ku});it={};i.d(it,"tooltip",function(){return nf});i.d(it,"popover",function(){return uf});i.d(it,"scrollspy",function(){return hf});ht={};i.d(ht,"MessageBox",function(){return af});i.d(ht,"Notification",function(){return pf});var kf={props:{value:Number,indicators:{type:Boolean,"default":!0},controls:{type:Boolean,"default":!0},interval:{type:Number,"default":5e3},iconControlLeft:{type:String,"default":"glyphicon glyphicon-chevron-left"},iconControlRight:{type:String,"default":"glyphicon glyphicon-chevron-right"}},data:function(){return{slides:[],activeIndex:0,timeoutId:0,intervalId:0}},watch:{interval:function(){this.startInterval()},value:function(n,t){this.run(n,t);this.activeIndex=n}},mounted:function(){s(this.value)&&(this.activeIndex=this.value);this.slides.length>0&&this.$select(this.activeIndex);this.startInterval()},beforeDestroy:function(){this.stopInterval()},methods:{run:function(n,t){var i=this,u=t||0,r=void 0;r=n>u?["next","left"]:["prev","right"];this.slides[n].slideClass[r[0]]=!0;this.$nextTick(function(){i.slides[n].$el.offsetHeight;i.slides.forEach(function(t,i){i===u?(t.slideClass.active=!0,t.slideClass[r[1]]=!0):i===n&&(t.slideClass[r[1]]=!0)});i.timeoutId=setTimeout(function(){i.$select(n);i.$emit("change",n);i.timeoutId=0},600)})},startInterval:function(){var n=this;this.stopInterval();this.interval>0&&(this.intervalId=setInterval(function(){n.next()},this.interval))},stopInterval:function(){clearInterval(this.intervalId);this.intervalId=0},resetAllSlideClass:function(){this.slides.forEach(function(n){n.slideClass.active=!1;n.slideClass.left=!1;n.slideClass.right=!1;n.slideClass.next=!1;n.slideClass.prev=!1})},$select:function(n){this.resetAllSlideClass();this.slides[n].slideClass.active=!0},select:function(n){0===this.timeoutId&&n!==this.activeIndex&&(s(this.value)?this.$emit("input",n):(this.run(n,this.activeIndex),this.activeIndex=n))},prev:function(){this.select(0===this.activeIndex?this.slides.length-1:this.activeIndex-1)},next:function(){this.select(this.activeIndex===this.slides.length-1?0:this.activeIndex+1)}}},df={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("div",{staticClass:"carousel slide",attrs:{"data-ride":"carousel"},on:{mouseenter:n.stopInterval,mouseleave:n.startInterval}},[n.indicators?n._t("indicators",[t("ol",{staticClass:"carousel-indicators"},n._l(n.slides,function(i,r){return t("li",{"class":{active:r===n.activeIndex},on:{click:function(){return n.select(r)}}})}),0)],{select:n.select,activeIndex:n.activeIndex}):n._e(),n._v(" "),t("div",{staticClass:"carousel-inner",attrs:{role:"listbox"}},[n._t("default")],2),n._v(" "),n.controls?t("a",{staticClass:"left carousel-control",attrs:{href:"#",role:"button"},on:{click:function(t){return t.preventDefault(),n.prev()}}},[t("span",{"class":n.iconControlLeft,attrs:{"aria-hidden":"true"}}),n._v(" "),t("span",{staticClass:"sr-only"},[n._v("Previous")])]):n._e(),n._v(" "),n.controls?t("a",{staticClass:"right carousel-control",attrs:{href:"#",role:"button"},on:{click:function(t){return t.preventDefault(),n.next()}}},[t("span",{"class":n.iconControlRight,attrs:{"aria-hidden":"true"}}),n._v(" "),t("span",{staticClass:"sr-only"},[n._v("Next")])]):n._e()],2)},staticRenderFns:[]},lr=i(0)(kf,df,!1,null,null,null).exports,gf={data:function(){return{slideClass:{active:!1,prev:!1,next:!1,left:!1,right:!1}}},created:function(){try{this.$parent.slides.push(this)}catch(n){throw new Error("Slide parent must be Carousel.");}},beforeDestroy:function(){at(this.$parent&&this.$parent.slides,this)}},ne={render:function(){var n=this.$createElement;return(this._self._c||n)("div",{staticClass:"item","class":this.slideClass},[this._t("default")],2)},staticRenderFns:[]},ar=i(0)(gf,ne,!1,null,null,null).exports,yt="mouseenter",pt="mouseleave",rt="focus",ut="blur",d="click",vr="input",ft="keydown",yr="keyup",pr="resize",wr="scroll",br="touchend",te="click",oi="hover",ie="focus",wt="hover-focus",si="outside-click",h={TOP:"top",RIGHT:"right",BOTTOM:"bottom",LEFT:"left"},bt=null,hi=null,ct="collapse",kt="collapsing",re={render:function(n){return n(this.tag,{},this.$slots.default)},props:{tag:{type:String,"default":"div"},value:{type:Boolean,"default":!1},transitionDuration:{type:Number,"default":350}},data:function(){return{timeoutId:0}},watch:{value:function(n){this.toggle(n)}},mounted:function(){var n=this.$el;o(n,ct);this.value&&o(n,"in")},methods:{toggle:function(n){var i=this,t,r;clearTimeout(this.timeoutId);t=this.$el;n?(this.$emit("show"),c(t,ct),t.style.height="auto",r=window.getComputedStyle(t).height,t.style.height=null,o(t,kt),t.offsetHeight,t.style.height=r,this.timeoutId=setTimeout(function(){c(t,kt);o(t,ct);o(t,"in");t.style.height=null;i.timeoutId=0;i.$emit("shown")},this.transitionDuration)):(this.$emit("hide"),t.style.height=window.getComputedStyle(t).height,c(t,"in"),c(t,ct),t.offsetHeight,t.style.height=null,o(t,kt),this.timeoutId=setTimeout(function(){o(t,ct);c(t,kt);t.style.height=null;i.timeoutId=0;i.$emit("hidden")},this.transitionDuration))}}},ci=i(0)(re,null,!1,null,null,null).exports,ue={render:function(n){return n(this.tag,{"class":{"btn-group":"div"===this.tag,dropdown:!this.dropup,dropup:this.dropup,open:this.show}},[this.$slots.default,n("ul",{"class":{"dropdown-menu":!0,"dropdown-menu-right":this.menuRight},ref:"dropdown"},[this.$slots.dropdown])])},props:{tag:{type:String,"default":"div"},appendToBody:{type:Boolean,"default":!1},value:Boolean,dropup:{type:Boolean,"default":!1},menuRight:{type:Boolean,"default":!1},disabled:{type:Boolean,"default":!1},notCloseElements:Array,positionElement:null},data:function(){return{show:!1,triggerEl:void 0}},watch:{value:function(n){this.toggle(n)}},mounted:function(){this.initTrigger();this.triggerEl&&(u(this.triggerEl,d,this.toggle),u(this.triggerEl,ft,this.onKeyPress));u(this.$refs.dropdown,ft,this.onKeyPress);u(window,d,this.windowClicked);u(window,br,this.windowClicked);this.value&&this.toggle(!0)},beforeDestroy:function(){this.removeDropdownFromBody();this.triggerEl&&(f(this.triggerEl,d,this.toggle),f(this.triggerEl,ft,this.onKeyPress));f(this.$refs.dropdown,ft,this.onKeyPress);f(window,d,this.windowClicked);f(window,br,this.windowClicked)},methods:{onKeyPress:function(n){var u,r,f,e,t,i;if(this.show)if(u=this.$refs.dropdown,r=n.keyCode||n.which,27===r)this.toggle(!1),this.triggerEl&&this.triggerEl.focus();else if(13===r)f=u.querySelector("li > a:focus"),f&&f.click();else if(38===r||40===r)if(n.preventDefault(),n.stopPropagation(),e=u.querySelector("li > a:focus"),t=u.querySelectorAll("li:not(.disabled) > a"),e){for(i=0;i<t.length;i++)if(e===t[i]){38===r&&i<t.length>0?ei(t[i-1]):40===r&&i<t.length-1&&ei(t[i+1]);break}}else ei(t[0])},initTrigger:function(){var n=this.$el.querySelector('[data-role="trigger"]')||this.$el.querySelector(".dropdown-toggle")||this.$el.firstChild;this.triggerEl=n&&n!==this.$refs.dropdown?n:null},toggle:function(n){this.disabled||(this.show=function(n){return"boolean"==typeof n}(n)?n:!this.show,this.appendToBody&&(this.show?this.appendDropdownToBody():this.removeDropdownFromBody()),this.$emit("input",this.show))},windowClicked:function(n){var t=n.target,r,i,e,u,f,o,s;if(this.show&&t){if(r=!1,this.notCloseElements)for(i=0,e=this.notCloseElements.length;i<e;i++)if(u=this.notCloseElements[i].contains(t),f=u,this.appendToBody&&(o=this.$refs.dropdown.contains(t),s=this.notCloseElements.indexOf(this.$el)>=0,f=u||o&&s),f){r=!0;break}var h=this.$refs.dropdown.contains(t),c=this.$el.contains(t)&&!h,l=h&&"touchend"===n.type;c||r||l||this.toggle(!1)}},appendDropdownToBody:function(){try{var n=this.$refs.dropdown;n.style.display="block";document.body.appendChild(n);!function(n,t){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=document.documentElement,f=(window.pageXOffset||r.scrollLeft)-(r.clientLeft||0),e=(window.pageYOffset||r.scrollTop)-(r.clientTop||0),i=t.getBoundingClientRect(),o=n.getBoundingClientRect();n.style.right="auto";n.style.bottom="auto";n.style.left=u.menuRight?f+i.left+i.width-o.width+"px":f+i.left+"px";n.style.top=u.dropup?e+i.top-o.height-4+"px":e+i.top+i.height+"px"}(n,this.positionElement||this.$el,this)}catch(n){}},removeDropdownFromBody:function(){try{var n=this.$refs.dropdown;n.removeAttribute("style");this.$el.appendChild(n)}catch(n){}}}},lt=i(0)(ue,null,!1,null,null,null).exports,fe=i(1),e=i.n(fe),ee=i(2),g=i.n(ee),li={uiv:{datePicker:{clear:"Clear",today:"Today",month:"Month",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",year:"Year",week1:"Mon",week2:"Tue",week3:"Wed",week4:"Thu",week5:"Fri",week6:"Sat",week7:"Sun"},timePicker:{am:"AM",pm:"PM"},modal:{cancel:"Cancel",ok:"OK"},multiSelect:{placeholder:"Select...",filterPlaceholder:"Search..."}}},ai=function(){var n=Object.getPrototypeOf(this).$t;if(y(n))try{return n.apply(this,arguments)}catch(n){return this.$t.apply(this,arguments)}},oe=function(n,t){var i;if(t=t||{},i=ai.apply(this,arguments),s(i)&&!t.$$locale)return i;for(var u=n.split("."),f=t.$$locale||li,r=0,e=u.length;r<e;r++){if(i=f[u[r]],r===e-1)return i;if(!i)return"";f=i}return""},se=function(n){li=n||li},he=function(n){ai=n||ai},nt={methods:{t:function(){for(var i=arguments.length,n=Array(i),t=0;t<i;t++)n[t]=arguments[t];return n[1]=g()({$$locale:this.locale},n[1]),oe.apply(this,n)}},props:{locale:Object}},ce=Object.assign||function(n){for(var t,r,i=1,u=arguments.length;i<u;i++){t=arguments[i];for(r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},kr={props:{href:String,target:String,to:null,replace:{type:Boolean,"default":!1},append:{type:Boolean,"default":!1},exact:{type:Boolean,"default":!1}}},vi={functional:!0,render:function(n,t){var i=t.props,r=t.children;return n("div",l(t.data,{"class":e()({"btn-group":!i.vertical,"btn-group-vertical":i.vertical,"btn-group-justified":i.justified},"btn-group-"+i.size,i.size),attrs:{role:"group","data-toggle":"buttons"}}),r)},props:{size:String,vertical:{type:Boolean,"default":!1},justified:{type:Boolean,"default":!1}}},yi="checkbox",w={functional:!0,mixins:[kr],render:function(n,t){var a,s=t.children,i=t.props,r=t.data,y=r.on||{},v=i.inputType===yi?i.value.indexOf(i.inputValue)>=0:i.value===i.inputValue,h=(a={btn:!0,active:i.inputType?v:i.active,disabled:i.disabled,"btn-block":i.block},e()(a,"btn-"+i.type,Boolean(i.type)),e()(a,"btn-"+i.size,Boolean(i.size)),a),c={click:function(n){i.disabled&&n instanceof Event&&(n.preventDefault(),n.stopPropagation())}},u=void 0,f=void 0,o=void 0;return i.href?(u="a",o=s,f=l(r,{on:c,"class":h,attrs:{role:"button",href:i.href,target:i.target}})):i.to?(u="router-link",o=s,f=l(r,{nativeOn:c,"class":h,props:{event:i.disabled?"":"click",to:i.to,replace:i.replace,append:i.append,exact:i.exact},attrs:{role:"button"}})):i.inputType?(u="label",f=l(r,{on:c,"class":h}),o=[n("input",{attrs:{autocomplete:"off",type:i.inputType,checked:v?"checked":null,disabled:i.disabled},domProps:{checked:v},on:{change:function(){if(i.inputType===yi){var n=i.value.slice();v?n.splice(n.indexOf(i.inputValue),1):n.push(i.inputValue);y.input(n)}else y.input(i.inputValue)}}}),s]):i.justified?(u=vi,f={},o=[n("button",l(r,{on:c,"class":h,attrs:{type:i.nativeType,disabled:i.disabled}}),s)]):(u="button",o=s,f=l(r,{on:c,"class":h,attrs:{type:i.nativeType,disabled:i.disabled}})),n(u,f,o)},props:{justified:{type:Boolean,"default":!1},type:{type:String,"default":"default"},nativeType:{type:String,"default":"button"},size:String,block:{type:Boolean,"default":!1},active:{type:Boolean,"default":!1},disabled:{type:Boolean,"default":!1},value:null,inputValue:null,inputType:{type:String,validator:function(n){return n===yi||"radio"===n}}}},dr=function(){return document.querySelectorAll(".modal-backdrop")},pi=function(){return dr().length},le={mixins:[nt],components:{Btn:w},props:{value:{type:Boolean,"default":!1},title:String,size:String,backdrop:{type:Boolean,"default":!0},footer:{type:Boolean,"default":!0},header:{type:Boolean,"default":!0},cancelText:String,cancelType:{type:String,"default":"default"},okText:String,okType:{type:String,"default":"primary"},dismissBtn:{type:Boolean,"default":!0},transitionDuration:{type:Number,"default":150},autoFocus:{type:Boolean,"default":!1},keyboard:{type:Boolean,"default":!0},beforeClose:Function,zOffset:{type:Number,"default":20},appendToBody:{type:Boolean,"default":!1},displayStyle:{type:String,"default":"block"}},data:function(){return{msg:"",timeoutId:0}},computed:{modalSizeClass:function(){return e()({},"modal-"+this.size,Boolean(this.size))}},watch:{value:function(n){this.$toggle(n)}},mounted:function(){p(this.$refs.backdrop);u(window,yr,this.onKeyPress);this.value&&this.$toggle(!0)},beforeDestroy:function(){clearTimeout(this.timeoutId);p(this.$refs.backdrop);p(this.$el);0===pi()&&ui(!0);f(window,yr,this.onKeyPress)},methods:{onKeyPress:function(n){var u,t,i;if(this.keyboard&&this.value&&27===n.keyCode){u=this.$refs.backdrop;t=u.style.zIndex;t=t&&"auto"!==t?parseInt(t):0;for(var f=dr(),e=f.length,r=0;r<e;r++)if(f[r]!==u&&(i=f[r].style.zIndex,(i=i&&"auto"!==i?parseInt(i):0)>t))return;this.toggle(!1)}},toggle:function(n,t){(n||!y(this.beforeClose)||this.beforeClose(t))&&(this.msg=t,this.$emit("input",n))},$toggle:function(n){var t=this,i=this.$el,r=this.$refs.backdrop,u;if(clearTimeout(this.timeoutId),n){if(u=pi(),document.body.appendChild(r),this.appendToBody&&document.body.appendChild(i),i.style.display=this.displayStyle,i.scrollTop=0,r.offsetHeight,ui(!1),o(r,"in"),o(i,"in"),u>0){var e=parseInt(ii(i).zIndex)||1050,s=parseInt(ii(r).zIndex)||1040,f=u*this.zOffset;i.style.zIndex=""+(e+f);r.style.zIndex=""+(s+f)}t.$attrs.id=="role-assignment-modal"&&t.$el.firstChild.firstChild.firstChild.firstChild.nextElementSibling.focus();this.timeoutId=setTimeout(function(){if(t.autoFocus){var n=t.$el.querySelector('[data-action="auto-focus"]');n&&n.focus()}t.$emit("show");t.timeoutId=0},this.transitionDuration)}else c(r,"in"),c(i,"in"),this.timeoutId=setTimeout(function(){i.style.display="none";p(r);t.appendToBody&&p(i);0===pi()&&ui(!0);t.$emit("hide",t.msg||"dismiss");t.msg="";t.timeoutId=0;i.style.zIndex="";r.style.zIndex=""},this.transitionDuration)},backdropClicked:function(){this.backdrop&&this.toggle(!1)}}},ae={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return n.$vnode.data.attrs.id=="role-assignment-modal"?t("div",{staticClass:"modal","class":{fade:n.transitionDuration>0},attrs:{tabindex:"-1",role:"dialog","aria-modal":"true","aria-labelledby":"roleHeader"},on:{click:function(t){return t.target!==t.currentTarget?null:n.backdropClicked(t)}}},[t("div",{ref:"dialog",staticClass:"modal-dialog","class":n.modalSizeClass,attrs:{role:"document"}},[t("div",{staticClass:"modal-content"},[n.header?t("div",{staticClass:"modal-header"},[n._t("header",[n.dismissBtn?t("button",{staticClass:"close",staticStyle:{position:"relative","z-index":"1060"},attrs:{type:"button","aria-label":"Close"},on:{click:function(){return n.toggle(!1)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("×")])]):n._e(),n._v(" "),t("h4",{staticClass:"modal-title",attrs:{id:"roleHeader"}},[n._t("title",[n._v(n._s(n.title))])],2)])],2):n._e(),n._v(" "),t("div",{staticClass:"modal-body"},[n._t("default")],2),n._v(" "),n.footer?t("div",{staticClass:"modal-footer"},[n._t("footer",[t("btn",{attrs:{type:n.cancelType},on:{click:function(){return n.toggle(!1,"cancel")}}},[t("span",[n._v(n._s(n.cancelText||n.t("uiv.modal.cancel")))])]),n._v(" "),t("btn",{attrs:{type:n.okType,"data-action":"auto-focus"},on:{click:function(){return n.toggle(!1,"ok")}}},[t("span",[n._v(n._s(n.okText||n.t("uiv.modal.ok")))])])])],2):n._e()])]),n._v(" "),t("div",{ref:"backdrop",staticClass:"modal-backdrop","class":{fade:n.transitionDuration>0}})]):t("div",{staticClass:"modal","class":{fade:n.transitionDuration>0},attrs:{tabindex:"-1",role:"dialog","aria-modal":"true"},on:{click:function(t){return t.target!==t.currentTarget?null:n.backdropClicked(t)}}},[t("div",{ref:"dialog",staticClass:"modal-dialog","class":n.modalSizeClass,attrs:{role:"document"}},[t("div",{staticClass:"modal-content"},[n.header?t("div",{staticClass:"modal-header"},[n._t("header",[n.dismissBtn?t("button",{staticClass:"close",staticStyle:{position:"relative","z-index":"1060"},attrs:{type:"button","aria-label":"Close"},on:{click:function(){return n.toggle(!1)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("×")])]):n._e(),n._v(" "),t("h4",{staticClass:"modal-title"},[n._t("title",[n._v(n._s(n.title))])],2)])],2):n._e(),n._v(" "),t("div",{staticClass:"modal-body"},[n._t("default")],2),n._v(" "),n.footer?t("div",{staticClass:"modal-footer"},[n._t("footer",[t("btn",{attrs:{type:n.cancelType},on:{click:function(){return n.toggle(!1,"cancel")}}},[t("span",[n._v(n._s(n.cancelText||n.t("uiv.modal.cancel")))])]),n._v(" "),t("btn",{attrs:{type:n.okType,"data-action":"auto-focus"},on:{click:function(){return n.toggle(!1,"ok")}}},[t("span",[n._v(n._s(n.okText||n.t("uiv.modal.ok")))])])])],2):n._e()])]),n._v(" "),t("div",{ref:"backdrop",staticClass:"modal-backdrop","class":{fade:n.transitionDuration>0}})])},staticRenderFns:[]},wi=i(0)(le,ae,!1,null,null,null).exports,ve={props:{title:{type:String,"default":"Tab Title"},htmlTitle:{type:Boolean,"default":!1},disabled:{type:Boolean,"default":!1},"tab-classes":{type:Object,"default":function(){return{}}},group:String,pullRight:{type:Boolean,"default":!1}},data:function(){return{active:!0,transition:150}},watch:{active:function(n){var t=this;n?setTimeout(function(){o(t.$el,"active");t.$el.offsetHeight;o(t.$el,"in");try{t.$parent.$emit("after-change",t.$parent.activeIndex)}catch(n){throw new Error("<tab> parent must be <tabs>.");}},this.transition):(c(this.$el,"in"),setTimeout(function(){c(t.$el,"active")},this.transition))}},created:function(){try{this.$parent.tabs.push(this)}catch(n){throw new Error("<tab> parent must be <tabs>.");}},beforeDestroy:function(){at(this.$parent&&this.$parent.tabs,this)},methods:{show:function(){var n=this;this.$nextTick(function(){o(n.$el,"active");o(n.$el,"in")})}}},ye={render:function(){var n=this.$createElement;return(this._self._c||n)("div",{staticClass:"tab-pane","class":{fade:this.transition>0},attrs:{role:"tabpanel"}},[this._t("default")],2)},staticRenderFns:[]},gr=i(0)(ve,ye,!1,null,null,null).exports,nu="before-change",pe={components:{Dropdown:lt},props:{value:{type:Number,validator:function(n){return n>=0}},transitionDuration:{type:Number,"default":150},justified:Boolean,pills:Boolean,stacked:Boolean,customNavClass:null},data:function(){return{tabs:[],activeIndex:0}},watch:{value:{immediate:!0,handler:function(n){st(n)&&(this.activeIndex=n,this.selectCurrent())}},tabs:function(n){var t=this;n.forEach(function(n,i){n.transition=t.transitionDuration;i===t.activeIndex&&n.show()});this.selectCurrent()}},computed:{navClasses:function(){var t={nav:!0,"nav-justified":this.justified,"nav-tabs":!this.pills,"nav-pills":this.pills,"nav-stacked":this.stacked&&this.pills},n=this.customNavClass;return s(n)?b(n)?g()({},t,e()({},n,!0)):g()({},t,n):t},groupedTabs:function(){var n=[],t={};return this.tabs.forEach(function(i){i.group?(t.hasOwnProperty(i.group)?n[t[i.group]].tabs.push(i):(n.push({tabs:[i],group:i.group}),t[i.group]=n.length-1),i.active&&(n[t[i.group]].active=!0),i.pullRight&&(n[t[i.group]].pullRight=!0)):n.push(i)}),n}},methods:{getTabClasses:function(n){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i={active:n.active,disabled:n.disabled,"pull-right":n.pullRight&&!t};return g()(i,n.tabClasses)},selectCurrent:function(){var t=this,n=!1;this.tabs.forEach(function(i,r){r===t.activeIndex?(n=!i.active,i.active=!0):i.active=!1});n&&this.$emit("change",this.activeIndex)},selectValidate:function(n){var t=this;y(this.$listeners[nu])?this.$emit(nu,this.activeIndex,n,function(i){s(i)||t.$select(n)}):this.$select(n)},select:function(n){this.tabs[n].disabled||n===this.activeIndex||this.selectValidate(n)},$select:function(n){st(this.value)?this.$emit("input",n):(this.activeIndex=n,this.selectCurrent())}}},we={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("section",[t("ul",{"class":n.navClasses,attrs:{role:"tablist"}},[n._l(n.groupedTabs,function(i){return[i.tabs?t("dropdown",{"class":n.getTabClasses(i),attrs:{role:"presentation",tag:"li"}},[t("a",{staticClass:"dropdown-toggle",attrs:{role:"tab",href:"#"},on:{click:function(n){n.preventDefault()}}},[n._v(n._s(i.group)+" "),t("span",{staticClass:"caret"})]),n._v(" "),t("template",{slot:"dropdown"},n._l(i.tabs,function(i){return t("li",{"class":n.getTabClasses(i,!0)},[t("a",{attrs:{href:"#"},on:{click:function(t){t.preventDefault();n.select(n.tabs.indexOf(i))}}},[n._v(n._s(i.title))])])}),0)],2):t("li",{"class":n.getTabClasses(i),attrs:{role:"presentation"}},[i.htmlTitle?t("a",{attrs:{role:"tab",href:"#"},domProps:{innerHTML:n._s(i.title)},on:{click:function(t){t.preventDefault();n.select(n.tabs.indexOf(i))}}}):t("a",{attrs:{role:"tab",href:"#"},domProps:{textContent:n._s(i.title)},on:{click:function(t){t.preventDefault();n.select(n.tabs.indexOf(i))}}})])]}),n._v(" "),!n.justified&&n.$slots["nav-right"]?t("li",{staticClass:"pull-right"},[n._t("nav-right")],2):n._e()],2),n._v(" "),t("div",{staticClass:"tab-content"},[n._t("default")],2)])},staticRenderFns:[]},tu=i(0)(pe,we,!1,null,null,null).exports,be=["January","February","March","April","May","June","July","August","September","October","November","December"],ke={mixins:[nt],props:{month:Number,year:Number,date:Date,today:Date,limit:Object,weekStartsWith:Number,iconControlLeft:String,iconControlRight:String,dateClass:Function,yearMonthFormatter:Function,weekNumbers:Boolean},components:{Btn:w},computed:{weekDays:function(){for(var n=[],t=this.weekStartsWith;n.length<7;)n.push(t++),t>6&&(t=0);return n},yearMonthStr:function(){return this.yearMonthFormatter?this.yearMonthFormatter(this.year,this.month):s(this.month)?this.year+" "+this.t("uiv.datePicker.month"+(this.month+1)):this.year},monthDayRows:function(){for(var f=[],l=new Date(this.year,this.month,1),a=new Date(this.year,this.month,0).getDate(),t=l.getDay(),s=function(n,t){return new Date(t,n+1,0).getDate()}(this.month,this.year),e=0,u,i,n,e=this.weekStartsWith>t?7-this.weekStartsWith:0-this.weekStartsWith,r=0;r<6;r++)for(f.push([]),u=0-e;u<7-e;u++){i=7*r+u;n={year:this.year,disabled:!1};i<t?(n.date=a-t+i+1,this.month>0?n.month=this.month-1:(n.month=11,n.year--)):i<t+s?(n.date=i-t+1,n.month=this.month):(n.date=i-t-s+1,this.month<11?n.month=this.month+1:(n.month=0,n.year++));var o=new Date(n.year,n.month,n.date),h=!0,c=!0;this.limit&&this.limit.from&&(h=o>=this.limit.from);this.limit&&this.limit.to&&(c=o<this.limit.to);n.disabled=!h||!c;n.classes=y(this.dateClass)?this.dateClass(o):"";f[r].push(n)}return f}},methods:{getWeekNumber:function(n){(n=new Date(Date.UTC(n.year,n.month,n.date))).setUTCDate(n.getUTCDate()+4-(n.getUTCDay()||7));var t=new Date(Date.UTC(n.getUTCFullYear(),0,1));return Math.ceil(((n-t)/864e5+1)/7)},tWeekName:function(n){return this.t("uiv.datePicker.week"+n)},getBtnType:function(n){return this.date&&n.date===this.date.getDate()&&n.month===this.date.getMonth()&&n.year===this.date.getFullYear()?"primary":n.date===this.today.getDate()&&n.month===this.today.getMonth()&&n.year===this.today.getFullYear()?"info":"default"},select:function(n){this.$emit("date-change",n)},goPrevMonth:function(){var n=this.month,t=this.year;this.month>0?n--:(n=11,t--,this.$emit("year-change",t));this.$emit("month-change",n)},goNextMonth:function(){var n=this.month,t=this.year;this.month<11?n++:(n=0,t++,this.$emit("year-change",t));this.$emit("month-change",n)},changeView:function(){this.$emit("view-change","m")}}},de={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("table",{staticStyle:{width:"100%"},attrs:{role:"grid"}},[t("thead",[t("tr",[t("td",[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.goPrevMonth}},[t("i",{"class":n.iconControlLeft})])],1),n._v(" "),t("td",{attrs:{colspan:n.weekNumbers?6:5}},[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.changeView}},[t("b",[n._v(n._s(n.yearMonthStr))])])],1),n._v(" "),t("td",[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.goNextMonth}},[t("i",{"class":n.iconControlRight})])],1)]),n._v(" "),t("tr",{attrs:{align:"center"}},[n.weekNumbers?t("td"):n._e(),n._v(" "),n._l(n.weekDays,function(i){return t("td",{attrs:{width:"14.2857142857%"}},[t("small",[n._v(n._s(n.tWeekName(0===i?7:i)))])])})],2)]),n._v(" "),t("tbody",n._l(n.monthDayRows,function(i){return t("tr",[n.weekNumbers?t("td",{staticClass:"text-center",staticStyle:{"border-right":"1px solid #eee"}},[t("small",{staticClass:"text-muted"},[n._v(n._s(n.getWeekNumber(i[n.weekStartsWith])))])]):n._e(),n._v(" "),n._l(i,function(i){return t("td",[t("btn",{"class":i.classes,staticStyle:{border:"none"},attrs:{block:"",size:"sm","data-action":"select",type:n.getBtnType(i),disabled:i.disabled},on:{click:function(){return n.select(i)}}},[t("span",{"class":{"text-muted":n.month!==i.month},attrs:{"data-action":"select"}},[n._v(n._s(i.date))])])],1)})],2)}),0)])},staticRenderFns:[]},ge=i(0)(ke,de,!1,null,null,null).exports,no={components:{Btn:w},mixins:[nt],props:{month:Number,year:Number,iconControlLeft:String,iconControlRight:String},data:function(){return{rows:[]}},mounted:function(){for(var t,n=0;n<4;n++)for(this.rows.push([]),t=0;t<3;t++)this.rows[n].push(3*n+t+1)},methods:{tCell:function(n){return this.t("uiv.datePicker.month"+n)},getBtnClass:function(n){return n===this.month?"primary":"default"},goPrevYear:function(){this.$emit("year-change",this.year-1)},goNextYear:function(){this.$emit("year-change",this.year+1)},changeView:function(n){s(n)?(this.$emit("month-change",n),this.$emit("view-change","d")):this.$emit("view-change","y")}}},to={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("table",{staticStyle:{width:"100%"},attrs:{role:"grid"}},[t("thead",[t("tr",[t("td",[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.goPrevYear}},[t("i",{"class":n.iconControlLeft})])],1),n._v(" "),t("td",{attrs:{colspan:"4"}},[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:function(){return n.changeView()}}},[t("b",[n._v(n._s(n.year))])])],1),n._v(" "),t("td",[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.goNextYear}},[t("i",{"class":n.iconControlRight})])],1)])]),n._v(" "),t("tbody",n._l(n.rows,function(i,r){return t("tr",n._l(i,function(i,u){return t("td",{attrs:{colspan:"2",width:"33.333333%"}},[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm",type:n.getBtnClass(3*r+u)},on:{click:function(){return n.changeView(3*r+u)}}},[t("span",[n._v(n._s(n.tCell(i)))])])],1)}),0)}),0)])},staticRenderFns:[]},io=i(0)(no,to,!1,null,null,null).exports,ro={components:{Btn:w},props:{year:Number,iconControlLeft:String,iconControlRight:String},computed:{rows:function(){for(var t,i=[],r=this.year-this.year%20,n=0;n<4;n++)for(i.push([]),t=0;t<5;t++)i[n].push(r+5*n+t);return i},yearStr:function(){var n=this.year-this.year%20;return n+" ~ "+(n+19)}},methods:{getBtnClass:function(n){return n===this.year?"primary":"default"},goPrevYear:function(){this.$emit("year-change",this.year-20)},goNextYear:function(){this.$emit("year-change",this.year+20)},changeView:function(n){this.$emit("year-change",n);this.$emit("view-change","m")}}},uo={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("table",{staticStyle:{width:"100%"},attrs:{role:"grid"}},[t("thead",[t("tr",[t("td",[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.goPrevYear}},[t("i",{"class":n.iconControlLeft})])],1),n._v(" "),t("td",{attrs:{colspan:"3"}},[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"}},[t("b",[n._v(n._s(n.yearStr))])])],1),n._v(" "),t("td",[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm"},on:{click:n.goNextYear}},[t("i",{"class":n.iconControlRight})])],1)])]),n._v(" "),t("tbody",n._l(n.rows,function(i){return t("tr",n._l(i,function(i){return t("td",{attrs:{width:"20%"}},[t("btn",{staticStyle:{border:"none"},attrs:{block:"",size:"sm",type:n.getBtnClass(i)},on:{click:function(){return n.changeView(i)}}},[t("span",[n._v(n._s(i))])])],1)}),0)}),0)])},staticRenderFns:[]},fo={mixins:[nt],components:{DateView:ge,MonthView:io,YearView:i(0)(ro,uo,!1,null,null,null).exports,Btn:w},props:{value:null,width:{type:Number,"default":270},todayBtn:{type:Boolean,"default":!0},clearBtn:{type:Boolean,"default":!0},closeOnSelected:{type:Boolean,"default":!0},limitFrom:null,limitTo:null,format:{type:String,"default":"yyyy-MM-dd"},initialView:{type:String,"default":"d"},dateParser:{type:Function,"default":Date.parse},dateClass:Function,yearMonthFormatter:Function,weekStartsWith:{type:Number,"default":0,validator:function(n){return n>=0&&n<=6}},weekNumbers:Boolean,iconControlLeft:{type:String,"default":"glyphicon glyphicon-chevron-left"},iconControlRight:{type:String,"default":"glyphicon glyphicon-chevron-right"}},data:function(){return{show:!1,now:new Date,currentMonth:0,currentYear:0,view:"d"}},computed:{valueDateObj:function(){var t=this.dateParser(this.value),n;return isNaN(t)?null:(n=new Date(t),0!==n.getHours()&&(n=new Date(t+6e4*n.getTimezoneOffset())),n)},pickerStyle:function(){return{width:this.width+"px"}},limit:function(){var i={},n,t;return this.limitFrom&&(n=this.dateParser(this.limitFrom),isNaN(n)||((n=cr(new Date(n))).setHours(0,0,0,0),i.from=n)),this.limitTo&&(t=this.dateParser(this.limitTo),isNaN(t)||((t=cr(new Date(t))).setHours(0,0,0,0),i.to=t)),i}},mounted:function(){this.value?this.setMonthAndYearByValue(this.value):(this.currentMonth=this.now.getMonth(),this.currentYear=this.now.getFullYear(),this.view=this.initialView)},watch:{value:function(n,t){this.setMonthAndYearByValue(n,t)}},methods:{setMonthAndYearByValue:function(n,t){var r=this.dateParser(n),i;isNaN(r)||(i=new Date(r),0!==i.getHours()&&(i=new Date(r+6e4*i.getTimezoneOffset())),this.limit&&(this.limit.from&&i<this.limit.from||this.limit.to&&i>=this.limit.to)?this.$emit("input",t||""):(this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear()))},onMonthChange:function(n){this.currentMonth=n},onYearChange:function(n){this.currentYear=n;this.currentMonth=void 0},onDateChange:function(n){if(n&&st(n.date)&&st(n.month)&&st(n.year)){var t=new Date(n.year,n.month,n.date);this.$emit("input",this.format?function(n,t){try{var r=n.getFullYear(),i=n.getMonth()+1,u=n.getDate(),f=be[i-1];return t.replace(/yyyy/g,r).replace(/MMMM/g,f).replace(/MMM/g,f.substring(0,3)).replace(/MM/g,tt(i,2)).replace(/dd/g,tt(u,2)).replace(/yy/g,r).replace(/M(?!a)/g,i).replace(/d/g,u)}catch(n){return""}}(t,this.format):t);this.currentMonth=n.month;this.currentYear=n.year}else this.$emit("input","")},onViewChange:function(n){this.view=n},selectToday:function(){this.view="d";this.onDateChange({date:this.now.getDate(),month:this.now.getMonth(),year:this.now.getFullYear()})},clearSelect:function(){this.currentMonth=this.now.getMonth();this.currentYear=this.now.getFullYear();this.view=this.initialView;this.onDateChange()},onPickerClick:function(n){"select"===n.target.getAttribute("data-action")&&this.closeOnSelected||n.stopPropagation()}}},eo={render:function(){var t=this.$createElement,n=this._self._c||t;return n("div",{style:this.pickerStyle,attrs:{"data-role":"date-picker"},on:{click:this.onPickerClick}},[n("date-view",{directives:[{name:"show",rawName:"v-show",value:"d"===this.view,expression:"view==='d'"}],attrs:{month:this.currentMonth,year:this.currentYear,date:this.valueDateObj,today:this.now,limit:this.limit,"week-starts-with":this.weekStartsWith,"icon-control-left":this.iconControlLeft,"icon-control-right":this.iconControlRight,"date-class":this.dateClass,"year-month-formatter":this.yearMonthFormatter,"week-numbers":this.weekNumbers,locale:this.locale},on:{"month-change":this.onMonthChange,"year-change":this.onYearChange,"date-change":this.onDateChange,"view-change":this.onViewChange}}),this._v(" "),n("month-view",{directives:[{name:"show",rawName:"v-show",value:"m"===this.view,expression:"view==='m'"}],attrs:{month:this.currentMonth,year:this.currentYear,"icon-control-left":this.iconControlLeft,"icon-control-right":this.iconControlRight,locale:this.locale},on:{"month-change":this.onMonthChange,"year-change":this.onYearChange,"view-change":this.onViewChange}}),this._v(" "),n("year-view",{directives:[{name:"show",rawName:"v-show",value:"y"===this.view,expression:"view==='y'"}],attrs:{year:this.currentYear,"icon-control-left":this.iconControlLeft,"icon-control-right":this.iconControlRight},on:{"year-change":this.onYearChange,"view-change":this.onViewChange}}),this._v(" "),this.todayBtn||this.clearBtn?n("div",[n("br"),this._v(" "),n("div",{staticClass:"text-center"},[this.todayBtn?n("btn",{attrs:{"data-action":"select",type:"info",size:"sm"},domProps:{textContent:this._s(this.t("uiv.datePicker.today"))},on:{click:this.selectToday}}):this._e(),this._v(" "),this.clearBtn?n("btn",{attrs:{"data-action":"select",size:"sm"},domProps:{textContent:this._s(this.t("uiv.datePicker.clear"))},on:{click:this.clearSelect}}):this._e()],1)]):this._e()],1)},staticRenderFns:[]},iu=i(0)(fo,eo,!1,null,null,null).exports,dt="_uiv_scroll_handler",ru=[pr,wr],uu=function(n,t){var i=t.value;y(i)&&(fu(n),n[dt]=i,ru.forEach(function(t){u(window,t,n[dt])}))},fu=function(n){ru.forEach(function(t){f(window,t,n[dt])});delete n[dt]},oo={directives:{scroll:{bind:uu,unbind:fu,update:function(n,t){t.value!==t.oldValue&&uu(n,t)}}},props:{offset:{type:Number,"default":0}},data:function(){return{affixed:!1}},computed:{classes:function(){return{affix:this.affixed}},styles:function(){return{top:this.affixed?this.offset+"px":null}}},methods:{onScroll:function(){var o=this,n,t,u;if(this.$el.offsetWidth||this.$el.offsetHeight||this.$el.getClientRects().length){for(var i={},f={},s=this.$el.getBoundingClientRect(),h=document.body,e=["Top","Left"],r=0;r<e.length;r++)n=e[r],t=n.toLowerCase(),i[t]=window["page"+("Top"===n?"Y":"X")+"Offset"],f[t]=i[t]+s[t]-(this.$el["client"+n]||h["client"+n]||0);u=i.top>f.top-this.offset;this.affixed!==u&&(this.affixed=u,this.affixed&&(this.$emit("affix"),this.$nextTick(function(){o.$emit("affixed")})))}}}},so={render:function(){var t=this.$createElement,n=this._self._c||t;return n("div",{staticClass:"hidden-print"},[n("div",{directives:[{name:"scroll",rawName:"v-scroll",value:this.onScroll,expression:"onScroll"}],"class":this.classes,style:this.styles},[this._t("default")],2)])},staticRenderFns:[]},eu=i(0)(oo,so,!1,null,null,null).exports,ho={props:{dismissible:{type:Boolean,"default":!1},duration:{type:Number,"default":0},type:{type:String,"default":"info"}},data:function(){return{timeout:0}},computed:{alertClass:function(){var n;return n={alert:!0},e()(n,"alert-"+this.type,Boolean(this.type)),e()(n,"alert-dismissible",this.dismissible),n}},methods:{closeAlert:function(){clearTimeout(this.timeout);this.$emit("dismissed")}},mounted:function(){this.duration>0&&(this.timeout=setTimeout(this.closeAlert,this.duration))},destroyed:function(){clearTimeout(this.timeout)}},co={render:function(){var t=this.$createElement,n=this._self._c||t;return n("div",{"class":this.alertClass,attrs:{role:"alert"}},[this.dismissible?n("button",{staticClass:"close",attrs:{type:"button","aria-label":"Close"},on:{click:this.closeAlert}},[n("span",{attrs:{"aria-hidden":"true"}},[this._v("×")])]):this._e(),this._v(" "),this._t("default")],2)},staticRenderFns:[]},bi=i(0)(ho,co,!1,null,null,null).exports,lo={props:{value:{type:Number,required:!0,validator:function(n){return n>=1}},boundaryLinks:{type:Boolean,"default":!1},directionLinks:{type:Boolean,"default":!0},size:String,align:String,totalPage:{type:Number,required:!0,validator:function(n){return n>=0}},maxSize:{type:Number,"default":5,validator:function(n){return n>=0}},disabled:Boolean},data:function(){return{sliceStart:0}},computed:{navClasses:function(){return e()({},"text-"+this.align,Boolean(this.align))},classes:function(){return e()({},"pagination-"+this.size,Boolean(this.size))},sliceArray:function(){return function(n){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=[],t=r;t<n;t+=u)i.push(t);return i}(this.totalPage).slice(this.sliceStart,this.sliceStart+this.maxSize)}},methods:{calculateSliceStart:function(){var n=this.value,t=this.maxSize,r=this.sliceStart,i;n>r+t?(i=this.totalPage-t,this.sliceStart=n>i?i:n-1):n<r+1&&(this.sliceStart=n>t?n-t:0)},onPageChange:function(n){!this.disabled&&n>0&&n<=this.totalPage&&n!==this.value&&(this.$emit("input",n),this.$emit("change",n))},toPage:function(n){if(!this.disabled){var t=this.maxSize,r=this.sliceStart,u=this.totalPage-t,i=n?r-t:r+t;this.sliceStart=i<0?0:i>u?u:i}}},created:function(){this.$watch(function(n){return[n.value,n.maxSize,n.totalPage].join()},this.calculateSliceStart,{immediate:!0})}},ao={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("nav",{"class":n.navClasses,attrs:{"aria-label":"Page navigation"}},[t("ul",{staticClass:"pagination","class":n.classes},[n.boundaryLinks?t("li",{"class":{disabled:n.value<=1||n.disabled}},[t("a",{attrs:{href:"#",role:"button","aria-label":"First"},on:{click:function(t){return t.preventDefault(),n.onPageChange(1)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("«")])])]):n._e(),n._v(" "),n.directionLinks?t("li",{"class":{disabled:n.value<=1||n.disabled}},[t("a",{attrs:{href:"#",role:"button","aria-label":"Previous"},on:{click:function(t){return t.preventDefault(),n.onPageChange(n.value-1)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("‹")])])]):n._e(),n._v(" "),n.sliceStart>0?t("li",{"class":{disabled:n.disabled}},[t("a",{attrs:{href:"#",role:"button","aria-label":"Previous group"},on:{click:function(t){return t.preventDefault(),n.toPage(1)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("…")])])]):n._e(),n._v(" "),n._l(n.sliceArray,function(i){return t("li",{key:i,"class":{active:n.value===i+1,disabled:n.disabled}},[t("a",{attrs:{href:"#",role:"button"},on:{click:function(t){return t.preventDefault(),n.onPageChange(i+1)}}},[n._v(n._s(i+1))])])}),n._v(" "),n.sliceStart<n.totalPage-n.maxSize?t("li",{"class":{disabled:n.disabled}},[t("a",{attrs:{href:"#",role:"button","aria-label":"Next group"},on:{click:function(t){return t.preventDefault(),n.toPage(0)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("…")])])]):n._e(),n._v(" "),n.directionLinks?t("li",{"class":{disabled:n.value>=n.totalPage||n.disabled}},[t("a",{attrs:{href:"#",role:"button","aria-label":"Next"},on:{click:function(t){return t.preventDefault(),n.onPageChange(n.value+1)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("›")])])]):n._e(),n._v(" "),n.boundaryLinks?t("li",{"class":{disabled:n.value>=n.totalPage||n.disabled}},[t("a",{attrs:{href:"#",role:"button","aria-label":"Last"},on:{click:function(t){return t.preventDefault(),n.onPageChange(n.totalPage)}}},[t("span",{attrs:{"aria-hidden":"true"}},[n._v("»")])])]):n._e()],2)])},staticRenderFns:[]},ou=i(0)(lo,ao,!1,null,null,null).exports,su={props:{value:{type:Boolean,"default":!1},tag:{type:String,"default":"span"},placement:{type:String,"default":h.TOP},autoPlacement:{type:Boolean,"default":!0},appendTo:{type:String,"default":"body"},transitionDuration:{type:Number,"default":150},hideDelay:{type:Number,"default":0},showDelay:{type:Number,"default":0},enable:{type:Boolean,"default":!0},enterable:{type:Boolean,"default":!0},target:null,viewport:null},data:function(){return{triggerEl:null,hideTimeoutId:0,showTimeoutId:0,transitionTimeoutId:0}},watch:{value:function(n){n?this.show():this.hide()},trigger:function(){this.clearListeners();this.initListeners()},target:function(n){this.clearListeners();this.initTriggerElByTarget(n);this.initListeners()},allContent:function(){var n=this;this.isNotEmpty()?this.$nextTick(function(){n.isShown()&&n.resetPosition()}):this.hide()},enable:function(n){n||this.hide()}},mounted:function(){var n=this;vt();p(this.$refs.popup);this.$nextTick(function(){n.initTriggerElByTarget(n.target);n.initListeners();n.value&&n.show()})},beforeDestroy:function(){this.clearListeners();p(this.$refs.popup)},methods:{initTriggerElByTarget:function(n){var t,i;n?b(n)?this.triggerEl=document.querySelector(n):a(n)?this.triggerEl=n:a(n.$el)&&(this.triggerEl=n.$el):(t=this.$el.querySelector('[data-role="trigger"]'),t?this.triggerEl=t:(i=this.$el.firstChild,this.triggerEl=i===this.$refs.popup?null:i))},initListeners:function(){this.triggerEl&&(this.trigger===oi?(u(this.triggerEl,yt,this.show),u(this.triggerEl,pt,this.hide)):this.trigger===ie?(u(this.triggerEl,rt,this.show),u(this.triggerEl,ut,this.hide)):this.trigger===wt?(u(this.triggerEl,yt,this.handleAuto),u(this.triggerEl,pt,this.handleAuto),u(this.triggerEl,rt,this.handleAuto),u(this.triggerEl,ut,this.handleAuto)):this.trigger!==te&&this.trigger!==si||u(this.triggerEl,d,this.toggle));u(window,d,this.windowClicked)},clearListeners:function(){this.triggerEl&&(f(this.triggerEl,rt,this.show),f(this.triggerEl,ut,this.hide),f(this.triggerEl,yt,this.show),f(this.triggerEl,pt,this.hide),f(this.triggerEl,d,this.toggle),f(this.triggerEl,yt,this.handleAuto),f(this.triggerEl,pt,this.handleAuto),f(this.triggerEl,rt,this.handleAuto),f(this.triggerEl,ut,this.handleAuto));f(window,d,this.windowClicked)},resetPosition:function(){var n=this.$refs.popup;!function(n,t,i,r,u,f){var lt=n&&n.className&&n.className.indexOf("popover")>=0,w=void 0,k=void 0,ut,nt,d,ft,g,st,tt;if(s(u)&&"body"!==u?(ut=document.querySelector(u),k=ut.scrollLeft,w=ut.scrollTop):(nt=document.documentElement,k=(window.pageXOffset||nt.scrollLeft)-(nt.clientLeft||0),w=(window.pageYOffset||nt.scrollTop)-(nt.clientTop||0)),r&&(d=[h.RIGHT,h.BOTTOM,h.LEFT,h.TOP],ft=function(t){d.forEach(function(t){c(n,t)});o(n,t)},!sr(t,n,i))){for(g=0,st=d.length;g<st;g++)if(ft(d[g]),sr(t,n,d[g])){i=d[g];break}ft(i)}var e=t.getBoundingClientRect(),p=n.getBoundingClientRect(),l=void 0,v=void 0;if(i===h.BOTTOM?(l=w+e.top+e.height,v=k+e.left+e.width/2-p.width/2):i===h.LEFT?(l=w+e.top+e.height/2-p.height/2,v=k+e.left-p.width):i===h.RIGHT?(l=w+e.top+e.height/2-p.height/2,v=k+e.left+e.width+1):(l=w+e.top-p.height,v=k+e.left+e.width/2-p.width/2),tt=void 0,b(f)?tt=document.querySelector(f):y(f)&&(tt=f(t)),a(tt)){var it=lt?11:0,rt=tt.getBoundingClientRect(),et=w+rt.top,ot=k+rt.left,ht=et+rt.height,ct=ot+rt.width;l<et?l=et:l+p.height>ht&&(l=ht-p.height);v<ot?v=ot:v+p.width>ct&&(v=ct-p.width);i===h.BOTTOM?l-=it:i===h.LEFT?v+=it:i===h.RIGHT?v-=it:l+=it}n.style.top=l+"px";n.style.left=v+"px"}(n,this.triggerEl,this.placement,this.autoPlacement,this.appendTo,this.viewport);n.offsetHeight},hideOnLeave:function(){this.trigger!==oi&&(this.trigger!==wt||this.triggerEl.matches(":focus"))||this.$hide()},toggle:function(){this.isShown()?this.hide():this.show()},show:function(){var n=this,t,i;this.enable&&this.triggerEl&&this.isNotEmpty()&&!this.isShown()&&(t=this.$refs.popup,i=this.hideTimeoutId>0,i&&(clearTimeout(this.hideTimeoutId),this.hideTimeoutId=0),this.transitionTimeoutId>0&&(clearTimeout(this.transitionTimeoutId),this.transitionTimeoutId=0),this.showTimeoutId=setTimeout(function(){i||(t.className=n.name+" "+n.placement+" fade",document.querySelector(n.appendTo).appendChild(t),n.resetPosition());o(t,"in");n.$emit("input",!0);n.$emit("show")},this.showDelay))},hide:function(){var n=this;this.showTimeoutId>0&&(clearTimeout(this.showTimeoutId),this.showTimeoutId=0);this.isShown()&&(!this.enterable||this.trigger!==oi&&this.trigger!==wt?this.$hide():setTimeout(function(){n.$refs.popup.matches(":hover")||n.$hide()},100))},$hide:function(){var n=this;this.isShown()&&(clearTimeout(this.hideTimeoutId),this.hideTimeoutId=setTimeout(function(){n.hideTimeoutId=0;c(n.$refs.popup,"in");n.transitionTimeoutId=setTimeout(function(){n.transitionTimeoutId=0;p(n.$refs.popup);n.$emit("input",!1);n.$emit("hide")},n.transitionDuration)},this.hideDelay))},isShown:function(){return function(n,t){if(!a(n))return!1;for(var r=n.className.split(" "),i=0,u=r.length;i<u;i++)if(r[i]===t)return!0;return!1}(this.$refs.popup,"in")},windowClicked:function(n){this.triggerEl&&y(this.triggerEl.contains)&&!this.triggerEl.contains(n.target)&&this.trigger===si&&!this.$refs.popup.contains(n.target)&&this.isShown()&&this.hide()},handleAuto:function(){var n=this;setTimeout(function(){n.triggerEl.matches(":hover, :focus")?n.show():n.hide()},20)}}},vo={mixins:[su],data:function(){return{name:"tooltip"}},render:function(n){return n(this.tag,[this.$slots.default,n("div",{ref:"popup",attrs:{role:"tooltip"},on:{mouseleave:this.hideOnLeave}},[n("div",{"class":"tooltip-arrow"}),n("div",{"class":"tooltip-inner",domProps:{innerHTML:this.text}})])])},props:{text:{type:String,"default":""},trigger:{type:String,"default":wt}},computed:{allContent:function(){return this.text}},methods:{isNotEmpty:function(){return this.text}}},ki=i(0)(vo,null,!1,null,null,null).exports,yo={mixins:[su],data:function(){return{name:"popover"}},render:function(n){return n(this.tag,[this.$slots.default,n("div",{style:{display:"block"},ref:"popup",on:{mouseleave:this.hideOnLeave}},[n("div",{"class":"arrow"}),n("h3",{"class":"popover-title",directives:[{name:"show",value:this.title}]},this.title),n("div",{"class":"popover-content"},[this.content||this.$slots.popover])])])},props:{title:{type:String,"default":""},content:{type:String,"default":""},trigger:{type:String,"default":si}},computed:{allContent:function(){return this.title+this.content}},methods:{isNotEmpty:function(){return this.title||this.content||this.$slots.popover}}},di=i(0)(yo,null,!1,null,null,null).exports,po={components:{Btn:w},mixins:[nt],props:{value:{type:Date,required:!0},showMeridian:{type:Boolean,"default":!0},min:Date,max:Date,hourStep:{type:Number,"default":1},minStep:{type:Number,"default":1},readonly:{type:Boolean,"default":!1},controls:{type:Boolean,"default":!0},iconControlUp:{type:String,"default":"glyphicon glyphicon-chevron-up"},iconControlDown:{type:String,"default":"glyphicon glyphicon-chevron-down"}},data:function(){return{hours:0,minutes:0,meridian:!0,hoursText:"",minutesText:""}},mounted:function(){this.updateByValue(this.value)},watch:{value:function(n){this.updateByValue(n)},showMeridian:function(){this.setTime()},hoursText:function(n){if(0!==this.hours||""!==n){var t=parseInt(n);this.showMeridian?t>=1&&t<=12&&(this.hours=this.meridian?12===t?0:t:12===t?12:t+12):t>=0&&t<=23&&(this.hours=t);this.setTime()}},minutesText:function(n){if(0!==this.minutes||""!==n){var t=parseInt(n);t>=0&&t<=59&&(this.minutes=t);this.setTime()}}},methods:{updateByValue:function(n){if(isNaN(n.getTime()))return this.hours=0,this.minutes=0,this.hoursText="",this.minutesText="",void(this.meridian=!0);this.hours=n.getHours();this.minutes=n.getMinutes();this.showMeridian?this.hours>=12?(this.hoursText=12===this.hours?this.hours+"":tt(this.hours-12,2),this.meridian=!1):(this.hoursText=0===this.hours?12..toString():tt(this.hours,2),this.meridian=!0):this.hoursText=tt(this.hours,2);this.minutesText=tt(this.minutes,2);this.$refs.hoursInput.value=this.hoursText;this.$refs.minutesInput.value=this.minutesText},addHour:function(n){n=n||this.hourStep;this.hours=this.hours>=23?0:this.hours+n},reduceHour:function(n){n=n||this.hourStep;this.hours=this.hours<=0?23:this.hours-n},addMinute:function(){this.minutes>=59?(this.minutes=0,this.addHour(1)):this.minutes+=this.minStep},reduceMinute:function(){this.minutes<=0?(this.minutes=60-this.minStep,this.reduceHour(1)):this.minutes-=this.minStep},changeTime:function(n,t){this.readonly||(n&&t?this.addHour():n&&!t?this.reduceHour():!n&&t?this.addMinute():this.reduceMinute(),this.setTime())},toggleMeridian:function(){this.meridian=!this.meridian;this.meridian?this.hours-=12:this.hours+=12;this.setTime()},onWheel:function(n,t){this.readonly||(n.preventDefault(),this.changeTime(t,n.deltaY<0))},setTime:function(){var n=this.value,t,i;(isNaN(n.getTime())&&((n=new Date).setHours(0),n.setMinutes(0)),n.setHours(this.hours),n.setMinutes(this.minutes),this.max)&&(t=new Date(n),t.setHours(this.max.getHours()),t.setMinutes(this.max.getMinutes()),n=n>t?t:n);this.min&&(i=new Date(n),i.setHours(this.min.getHours()),i.setMinutes(this.min.getMinutes()),n=n<i?i:n);this.$emit("input",new Date(n))},selectInputValue:function(n){n.target.setSelectionRange(0,2)}}},wo={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("section",{on:{click:function(n){n.stopPropagation()}}},[t("table",[t("tbody",[n.controls?t("tr",{staticClass:"text-center"},[t("td",[t("btn",{attrs:{type:"link",size:"sm",disabled:n.readonly},on:{click:function(){return n.changeTime(1,1)}}},[t("i",{"class":n.iconControlUp})])],1),n._v(" "),t("td",[n._v(" ")]),n._v(" "),t("td",[t("btn",{attrs:{type:"link",size:"sm",disabled:n.readonly},on:{click:function(){return n.changeTime(0,1)}}},[t("i",{"class":n.iconControlUp})])],1),n._v(" "),n.showMeridian?t("td"):n._e()]):n._e(),n._v(" "),t("tr",[t("td",{staticClass:"form-group"},[t("input",{directives:[{name:"model",rawName:"v-model.lazy",value:n.hoursText,expression:"hoursText",modifiers:{lazy:!0}}],ref:"hoursInput",staticClass:"form-control text-center",staticStyle:{width:"50px"},attrs:{type:"tel",pattern:"\\d*",placeholder:"HH",readonly:n.readonly,maxlength:"2",size:"2"},domProps:{value:n.hoursText},on:{mouseup:n.selectInputValue,keydown:[function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),n.changeTime(1,1))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),n.changeTime(1,0))}],wheel:function(t){return n.onWheel(t,!0)},change:function(t){n.hoursText=t.target.value}}})]),n._v(" "),n._m(0),n._v(" "),t("td",{staticClass:"form-group"},[t("input",{directives:[{name:"model",rawName:"v-model.lazy",value:n.minutesText,expression:"minutesText",modifiers:{lazy:!0}}],ref:"minutesInput",staticClass:"form-control text-center",staticStyle:{width:"50px"},attrs:{type:"tel",pattern:"\\d*",placeholder:"MM",readonly:n.readonly,maxlength:"2",size:"2"},domProps:{value:n.minutesText},on:{mouseup:n.selectInputValue,keydown:[function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),n.changeTime(0,1))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),n.changeTime(0,0))}],wheel:function(t){return n.onWheel(t,!1)},change:function(t){n.minutesText=t.target.value}}})]),n._v(" "),n.showMeridian?t("td",[n._v("\n         \n        "),t("btn",{attrs:{"data-action":"toggleMeridian",disabled:n.readonly},domProps:{textContent:n._s(n.meridian?n.t("uiv.timePicker.am"):n.t("uiv.timePicker.pm"))},on:{click:n.toggleMeridian}})],1):n._e()]),n._v(" "),n.controls?t("tr",{staticClass:"text-center"},[t("td",[t("btn",{attrs:{type:"link",size:"sm",disabled:n.readonly},on:{click:function(){return n.changeTime(1,0)}}},[t("i",{"class":n.iconControlDown})])],1),n._v(" "),t("td",[n._v(" ")]),n._v(" "),t("td",[t("btn",{attrs:{type:"link",size:"sm",disabled:n.readonly},on:{click:function(){return n.changeTime(0,0)}}},[t("i",{"class":n.iconControlDown})])],1),n._v(" "),n.showMeridian?t("td"):n._e()]):n._e()])])])},staticRenderFns:[function(){var t=this.$createElement,n=this._self._c||t;return n("td",[this._v(" "),n("b",[this._v(":")]),this._v(" ")])}]},hu=i(0)(po,wo,!1,null,null,null).exports,bo={components:{Dropdown:lt},props:{value:{required:!0},data:Array,itemKey:String,appendToBody:{type:Boolean,"default":!1},ignoreCase:{type:Boolean,"default":!0},matchStart:{type:Boolean,"default":!1},forceSelect:{type:Boolean,"default":!1},forceClear:{type:Boolean,"default":!1},limit:{type:Number,"default":10},asyncSrc:String,asyncKey:String,asyncFunction:Function,debounce:{type:Number,"default":200},openOnFocus:{type:Boolean,"default":!0},openOnEmpty:{type:Boolean,"default":!1},target:{required:!0},preselect:{type:Boolean,"default":!0}},data:function(){return{inputEl:null,items:[],activeIndex:0,timeoutID:0,elements:[],open:!1,dropdownMenuEl:null}},computed:{regexOptions:function(){var n="";return this.ignoreCase&&(n+="i"),this.matchStart||(n+="g"),n}},mounted:function(){var n=this;vt();this.$nextTick(function(){n.initInputElByTarget(n.target);n.initListeners();n.dropdownMenuEl=n.$refs.dropdown.$el.querySelector(".dropdown-menu");n.value&&n.setInputTextByValue(n.value)})},beforeDestroy:function(){this.removeListeners()},watch:{target:function(n){this.removeListeners();this.initInputElByTarget(n);this.initListeners()},value:function(n){this.setInputTextByValue(n)}},methods:{setInputTextByValue:function(n){b(n)?this.inputEl.value=n:n?this.inputEl.value=this.itemKey?n[this.itemKey]:n:null===n&&(this.inputEl.value="")},hasEmptySlot:function(){return!!this.$slots.empty||!!this.$scopedSlots.empty},initInputElByTarget:function(n){n&&(b(n)?this.inputEl=document.querySelector(n):a(n)?this.inputEl=n:a(n.$el)&&(this.inputEl=n.$el))},initListeners:function(){this.inputEl&&(this.elements=[this.inputEl],u(this.inputEl,rt,this.inputFocused),u(this.inputEl,ut,this.inputBlured),u(this.inputEl,vr,this.inputChanged),u(this.inputEl,ft,this.inputKeyPressed))},removeListeners:function(){this.elements=[];this.inputEl&&(f(this.inputEl,rt,this.inputFocused),f(this.inputEl,ut,this.inputBlured),f(this.inputEl,vr,this.inputChanged),f(this.inputEl,ft,this.inputKeyPressed))},prepareItems:function(n){var i,f,r,t,u;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])this.items=n.slice(0,this.limit);else for(this.items=[],this.activeIndex=this.preselect?0:-1,i=0,f=n.length;i<f;i++)if(r=n[i],t=this.itemKey?r[this.itemKey]:r,t=t.toString(),u=-1,u=this.ignoreCase?t.toLowerCase().indexOf(this.inputEl.value.toLowerCase()):t.indexOf(this.inputEl.value),(this.matchStart?0===u:u>=0)&&this.items.push(r),this.items.length>=this.limit)break},fetchItems:function(n,t){var i=this,r;(clearTimeout(this.timeoutID),""!==n||this.openOnEmpty)?this.data?(this.prepareItems(this.data),this.open=this.hasEmptySlot()||Boolean(this.items.length)):this.asyncSrc?this.timeoutID=setTimeout(function(){i.$emit("loading"),function(n){var t=new window.XMLHttpRequest,i={},r={then:function(n,t){return r.done(n).fail(t)},"catch":function(n){return r.fail(n)},always:function(n){return r.done(n).fail(n)}};return["done","fail"].forEach(function(n){i[n]=[];r[n]=function(t){return t instanceof Function&&i[n].push(t),r}}),r.done(JSON.parse),t.onreadystatechange=function(){var f,r,n,u;if(4===t.readyState)if(f={status:t.status},200===t.status){r=t.responseText;for(n in i.done)i.done.hasOwnProperty(n)&&y(i.done[n])&&(u=i.done[n](r),s(u)&&(r=u))}else i.fail.forEach(function(n){return n(f)})},t.open("GET",n),t.setRequestHeader("Accept","application/json"),t.send(),r}(i.asyncSrc+encodeURIComponent(n)).then(function(n){i.inputEl.matches(":focus")&&(i.prepareItems(i.asyncKey?n[i.asyncKey]:n,!0),i.open=i.hasEmptySlot()||Boolean(i.items.length));i.$emit("loaded")}).catch(function(n){console.error(n);i.$emit("loaded-error")})},t):this.asyncFunction&&(r=function(n){i.inputEl.matches(":focus")&&(i.prepareItems(n,!0),i.open=i.hasEmptySlot()||Boolean(i.items.length));i.$emit("loaded")},this.timeoutID=setTimeout(function(){i.$emit("loading");i.asyncFunction(n,r)},t)):this.open=!1},inputChanged:function(){var n=this.inputEl.value;this.fetchItems(n,this.debounce);this.$emit("input",this.forceSelect?void 0:n)},inputFocused:function(){if(this.openOnFocus){var n=this.inputEl.value;this.fetchItems(n,0)}},inputBlured:function(){var n=this;this.dropdownMenuEl.matches(":hover")||(this.open=!1);this.inputEl&&this.forceClear&&this.$nextTick(function(){void 0===n.value&&(n.inputEl.value="")})},inputKeyPressed:function(n){if(n.stopPropagation(),this.open)switch(n.keyCode){case 13:this.activeIndex>=0?this.selectItem(this.items[this.activeIndex]):this.open=!1;break;case 27:this.open=!1;break;case 38:this.activeIndex=this.activeIndex>0?this.activeIndex-1:0;break;case 40:var t=this.items.length-1;this.activeIndex=this.activeIndex<t?this.activeIndex+1:t}},selectItem:function(n){this.$emit("input",n);this.open=!1},highlight:function(n){var t=this.itemKey?n[this.itemKey]:n,i=this.inputEl.value.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");return t.replace(new RegExp(""+i,this.regexOptions),"<b>$&<\/b>")}}},ko={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("dropdown",{ref:"dropdown",attrs:{tag:"section","append-to-body":n.appendToBody,"not-close-elements":n.elements,"position-element":n.inputEl},model:{value:n.open,callback:function(t){n.open=t},expression:"open"}},[t("template",{slot:"dropdown"},[n._t("item",n._l(n.items,function(i,r){return t("li",{"class":{active:n.activeIndex===r}},[t("a",{attrs:{href:"#"},on:{click:function(t){return t.preventDefault(),n.selectItem(i)}}},[t("span",{domProps:{innerHTML:n._s(n.highlight(i))}})])])}),{items:n.items,activeIndex:n.activeIndex,select:n.selectItem,highlight:n.highlight}),n._v(" "),n.items&&0!==n.items.length?n._e():n._t("empty")],2)],2)},staticRenderFns:[]},cu=i(0)(bo,ko,!1,null,null,null).exports,gi={functional:!0,render:function(n,t){var i=t.props;return n("div",l(t.data,{"class":e()({"progress-bar":!0,"progress-bar-striped":i.striped,active:i.striped&&i.active},"progress-bar-"+i.type,Boolean(i.type)),style:{minWidth:i.minWidth?"2em":null,width:i.value+"%"},attrs:{role:"progressbar","aria-valuemin":0,"aria-valuenow":i.value,"aria-valuemax":100}}),i.label?i.labelText?i.labelText:i.value+"%":null)},props:{value:{type:Number,required:!0,validator:function(n){return n>=0&&n<=100}},labelText:String,type:String,label:{type:Boolean,"default":!1},minWidth:{type:Boolean,"default":!1},striped:{type:Boolean,"default":!1},active:{type:Boolean,"default":!1}}},lu={functional:!0,render:function(n,t){var r=t.props,u=t.data,i=t.children;return n("div",l(u,{"class":"progress"}),i&&i.length?i:[n(gi,{props:r})])}},nr={functional:!0,mixins:[kr],render:function(n,t){var i=t.props,f=t.data,r=t.children,u=void 0;return u=i.active?r:i.to?[n("router-link",{props:{to:i.to,replace:i.replace,append:i.append,exact:i.exact}},r)]:[n("a",{attrs:{href:i.href,target:i.target}},r)],n("li",l(f,{"class":{active:i.active}}),u)},props:{active:{type:Boolean,"default":!1}}},au={functional:!0,render:function(n,t){var i=t.props,f=t.data,r=t.children,u=[];return r&&r.length?u=r:i.items&&(u=i.items.map(function(t,r){return n(nr,{key:t.hasOwnProperty("key")?t.key:r,props:{active:t.hasOwnProperty("active")?t.active:r===i.items.length-1,href:t.href,target:t.target,to:t.to,replace:t.replace,append:t.append,exact:t.exact}},t.text)})),n("ol",l(f,{"class":"breadcrumb"}),u)},props:{items:Array}},vu={functional:!0,render:function(n,t){var i=t.children;return n("div",l(t.data,{"class":{"btn-toolbar":!0},attrs:{role:"toolbar"}}),i)}},go={mixins:[nt],components:{Dropdown:lt},props:{value:{type:Array,required:!0},options:{type:Array,required:!0},labelKey:{type:String,"default":"label"},valueKey:{type:String,"default":"value"},limit:{type:Number,"default":0},size:String,placeholder:String,split:{type:String,"default":", "},disabled:{type:Boolean,"default":!1},appendToBody:{type:Boolean,"default":!1},block:{type:Boolean,"default":!1},collapseSelected:{type:Boolean,"default":!1},filterable:{type:Boolean,"default":!1},filterAutoFocus:{type:Boolean,"default":!0},filterFunction:Function,filterPlaceholder:String,selectedIcon:{type:String,"default":"glyphicon glyphicon-ok"},itemSelectedClass:String},data:function(){return{showDropdown:!1,els:[],filterInput:"",currentActive:-1}},computed:{containerStyles:function(){return{width:this.block?"100%":""}},filteredOptions:function(){var t=this,n;return this.filterable&&this.filterInput?this.filterFunction?this.filterFunction(this.filterInput):(n=this.filterInput.toLowerCase(),this.options.filter(function(i){return i[t.valueKey].toString().toLowerCase().indexOf(n)>=0||i[t.labelKey].toString().toLowerCase().indexOf(n)>=0})):this.options},groupedOptions:function(){var n=this;return this.filteredOptions.map(function(n){return n.group}).filter(bf).map(function(t){return{options:n.filteredOptions.filter(function(n){return n.group===t}),$group:t}})},flatternGroupedOptions:function(){if(this.groupedOptions&&this.groupedOptions.length){var n=[];return this.groupedOptions.forEach(function(t){n=n.concat(t.options)}),n}return[]},selectClasses:function(){return e()({},"input-"+this.size,this.size)},selectedIconClasses:function(){var n;return n={},e()(n,this.selectedIcon,!0),e()(n,"pull-right",!0),n},selectTextClasses:function(){return{"text-muted":0===this.value.length}},labelValue:function(){var n=this,t=this.options.map(function(t){return t[n.valueKey]});return this.value.map(function(i){var r=t.indexOf(i);return r>=0?n.options[r][n.labelKey]:i})},selectedText:function(){var n,t;return this.value.length?(n=this.labelValue,this.collapseSelected)?(t=n[0],t+(n.length>1?this.split+"+"+(n.length-1):"")):n.join(this.split):this.placeholder||this.t("uiv.multiSelect.placeholder")}},watch:{showDropdown:function(n){var t=this;this.filterInput="";this.currentActive=-1;this.$emit("visible-change",n);n&&this.filterable&&this.filterAutoFocus&&this.$nextTick(function(){t.$refs.filterInput.focus()})}},mounted:function(){this.els=[this.$el]},methods:{goPrevOption:function(){this.showDropdown&&(this.currentActive>0?this.currentActive--:this.currentActive=this.flatternGroupedOptions.length-1)},goNextOption:function(){this.showDropdown&&(this.currentActive<this.flatternGroupedOptions.length-1?this.currentActive++:this.currentActive=0)},selectOption:function(){var n=this.currentActive,t=this.flatternGroupedOptions;this.showDropdown?n>=0&&n<t.length&&this.toggle(t[n]):this.showDropdown=!0},itemClasses:function(n){var t={disabled:n.disabled,active:this.currentActive===this.flatternGroupedOptions.indexOf(n)};return this.itemSelectedClass&&(t[this.itemSelectedClass]=this.isItemSelected(n)),t},isItemSelected:function(n){return this.value.indexOf(n[this.valueKey])>=0},toggle:function(n){var t,i,r;n.disabled||(t=n[this.valueKey],i=this.value.indexOf(t),1===this.limit?(r=i>=0?[]:[t],this.$emit("input",r),this.$emit("change",r)):i>=0?(this.value.splice(i,1),this.$emit("change",this.value)):0===this.limit||this.value.length<this.limit?(this.value.push(t),this.$emit("change",this.value)):this.$emit("limit-exceed"))}}},ns={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("dropdown",{ref:"dropdown",style:n.containerStyles,attrs:{"not-close-elements":n.els,"append-to-body":n.appendToBody,disabled:n.disabled},nativeOn:{keydown:function(t){if(!t.type.indexOf("key")&&n._k(t.keyCode,"esc",27,t.key,["Esc","Escape"]))return null;n.showDropdown=!1}},model:{value:n.showDropdown,callback:function(t){n.showDropdown=t},expression:"showDropdown"}},[t("div",{staticClass:"form-control dropdown-toggle clearfix","class":n.selectClasses,attrs:{disabled:n.disabled,tabindex:"0","data-role":"trigger"},on:{focus:function(t){return n.$emit("focus",t)},blur:function(t){return n.$emit("blur",t)},keydown:[function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),t.stopPropagation(),n.goNextOption(t))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),t.stopPropagation(),n.goPrevOption(t))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),n.selectOption(t))}]}},[t("div",{"class":n.selectTextClasses,staticStyle:{display:"inline-block","vertical-align":"middle"}},[n._v(n._s(n.selectedText))]),n._v(" "),t("div",{staticClass:"pull-right",staticStyle:{display:"inline-block","vertical-align":"middle"}},[t("span",[n._v(" ")]),n._v(" "),t("span",{staticClass:"caret"})])]),n._v(" "),t("template",{slot:"dropdown"},[n.filterable?t("li",{staticStyle:{padding:"4px 8px"}},[t("input",{directives:[{name:"model",rawName:"v-model",value:n.filterInput,expression:"filterInput"}],ref:"filterInput",staticClass:"form-control input-sm",attrs:{"aria-label":"Filter...",type:"text",placeholder:n.filterPlaceholder||n.t("uiv.multiSelect.filterPlaceholder")},domProps:{value:n.filterInput},on:{keydown:[function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),t.stopPropagation(),n.goNextOption(t))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),t.stopPropagation(),n.goPrevOption(t))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),n.selectOption(t))}],input:function(t){t.target.composing||(n.filterInput=t.target.value)}}})]):n._e(),n._v(" "),n._l(n.groupedOptions,function(i){return[i.$group?t("li",{staticClass:"dropdown-header",domProps:{textContent:n._s(i.$group)}}):n._e(),n._v(" "),n._l(i.options,function(i){return[t("li",{"class":n.itemClasses(i),staticStyle:{outline:"0"},on:{keydown:[function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:(t.preventDefault(),t.stopPropagation(),n.goNextOption(t))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:(t.preventDefault(),t.stopPropagation(),n.goPrevOption(t))},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),t.stopPropagation(),n.selectOption(t))}],click:function(t){return t.stopPropagation(),n.toggle(i)},mouseenter:function(){n.currentActive=-1}}},[n.isItemSelected(i)?t("a",{staticStyle:{outline:"0"},attrs:{role:"button"}},[t("b",[n._v(n._s(i[n.labelKey]))]),n._v(" "),n.selectedIcon?t("span",{"class":n.selectedIconClasses}):n._e()]):t("a",{staticStyle:{outline:"0"},attrs:{role:"button"}},[t("span",[n._v(n._s(i[n.labelKey]))])])])]})]})],2)],2)},staticRenderFns:[]},yu=i(0)(go,ns,!1,null,null,null).exports,ts={components:{Collapse:ci},props:{value:Boolean,fluid:{type:Boolean,"default":!0},fixedTop:Boolean,fixedBottom:Boolean,staticTop:Boolean,inverse:Boolean},data:function(){return{show:!1}},computed:{navClasses:function(){return{navbar:!0,"navbar-default":!this.inverse,"navbar-inverse":this.inverse,"navbar-static-top":this.staticTop,"navbar-fixed-bottom":this.fixedBottom,"navbar-fixed-top":this.fixedTop}}},mounted:function(){this.show=!!this.value},watch:{value:function(n){this.show=n}},methods:{toggle:function(){this.show=!this.show;this.$emit("input",this.show)}}},is={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("nav",{"class":n.navClasses},[t("div",{"class":n.fluid?"container-fluid":"container"},[t("div",{staticClass:"navbar-header"},[n._t("collapse-btn",[t("button",{staticClass:"navbar-toggle collapsed",attrs:{type:"button"},on:{click:n.toggle}},[t("span",{staticClass:"sr-only"},[n._v("Toggle navigation")]),n._v(" "),t("span",{staticClass:"icon-bar"}),n._v(" "),t("span",{staticClass:"icon-bar"}),n._v(" "),t("span",{staticClass:"icon-bar"})])]),n._v(" "),n._t("brand")],2),n._v(" "),n._t("default"),n._v(" "),t("collapse",{staticClass:"navbar-collapse",model:{value:n.show,callback:function(t){n.show=t},expression:"show"}},[n._t("collapse")],2)],2)])},staticRenderFns:[]},pu=i(0)(ts,is,!1,null,null,null).exports,wu={functional:!0,render:function(n,t){var r=t.children,u=t.data,i=t.props;return n("ul",l(u,{"class":{nav:!0,"navbar-nav":!0,"navbar-left":i.left,"navbar-right":i.right}}),r)},props:{left:Boolean,right:Boolean}},bu={functional:!0,render:function(n,t){var r=t.children,u=t.data,i=t.props;return n("form",l(u,{"class":{"navbar-form":!0,"navbar-left":i.left,"navbar-right":i.right}}),r)},props:{left:Boolean,right:Boolean}},ku={functional:!0,render:function(n,t){var r=t.children,u=t.data,i=t.props;return n("p",l(u,{"class":{"navbar-text":!0,"navbar-left":i.left,"navbar-right":i.right}}),r)},props:{left:Boolean,right:Boolean}},rs=i(4),gt=i.n(rs),tr="_uiv_tooltip_instance",du=function(n,t){var i,u,r;gu(n);i=new(gt.a.extend(ki))({propsData:{target:n,appendTo:t.arg&&"#"+t.arg,text:"string"==typeof t.value?t.value&&t.value.toString():t.value&&t.value.text&&t.value.text.toString(),viewport:t.value&&t.value.viewport&&t.value.viewport.toString()}});u=[];for(r in t.modifiers)t.modifiers.hasOwnProperty(r)&&t.modifiers[r]&&u.push(r);u.forEach(function(n){/(top)|(left)|(right)|(bottom)/.test(n)?i.placement=n:/(hover)|(focus)|(click)/.test(n)?i.trigger=n:/unenterable/.test(n)&&(i.enterable=!1)});i.$mount();n[tr]=i},gu=function(n){var t=n[tr];t&&t.$destroy();delete n[tr]},nf={bind:du,unbind:gu,update:function(n,t){t.value!==t.oldValue&&du(n,t)}},ir="_uiv_popover_instance",tf=function(n,t){var i,u,r;rf(n);i=new(gt.a.extend(di))({propsData:{target:n,appendTo:t.arg&&"#"+t.arg,title:t.value&&t.value.title&&t.value.title.toString(),content:t.value&&t.value.content&&t.value.content.toString(),viewport:t.value&&t.value.viewport&&t.value.viewport.toString()}});u=[];for(r in t.modifiers)t.modifiers.hasOwnProperty(r)&&t.modifiers[r]&&u.push(r);u.forEach(function(n){/(top)|(left)|(right)|(bottom)/.test(n)?i.placement=n:/(hover)|(focus)|(click)/.test(n)?i.trigger=n:/unenterable/.test(n)&&(i.enterable=!1)});i.$mount();n[ir]=i},rf=function(n){var t=n[ir];t&&t.$destroy();delete n[ir]},uf={bind:tf,unbind:rf,update:function(n,t){t.value!==t.oldValue&&tf(n,t)}};k.DEFAULTS={offset:10,callback:function(){return 0}};k.prototype.getScrollHeight=function(){return this.scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)};k.prototype.refresh=function(){var n=this,i,t;this.offsets=[];this.targets=[];this.scrollHeight=this.getScrollHeight();i=ti(this.el.querySelectorAll(this.selector));t=this.scrollElement===window;i.map(function(i){var r=i.getAttribute("href");if(/^#./.test(r)){var u=document.documentElement,f=(t?document:n.scrollElement).querySelector("[id='"+r.slice(1)+"']"),e=(window.pageYOffset||u.scrollTop)-(u.clientTop||0);return[t?f.getBoundingClientRect().top+e:f.offsetTop+n.scrollElement.scrollTop,r]}return null}).filter(function(n){return n}).sort(function(n,t){return n[0]-t[0]}).forEach(function(t){n.offsets.push(t[0]);n.targets.push(t[1])})};k.prototype.process=function(){var f=this.scrollElement===window,i=(f?window.pageYOffset:this.scrollElement.scrollTop)+this.opts.offset,e=this.getScrollHeight(),o=f?ri().height:this.scrollElement.getBoundingClientRect().height,s=this.opts.offset+e-o,t=this.offsets,r=this.targets,u=this.activeTarget,n=void 0;if(this.scrollHeight!==e&&this.refresh(),i>=s)return u!==(n=r[r.length-1])&&this.activate(n);if(u&&i<t[0])return this.activeTarget=null,this.clear();for(n=t.length;n--;)u!==r[n]&&i>=t[n]&&(void 0===t[n+1]||i<t[n+1])&&this.activate(r[n])};k.prototype.activate=function(n){this.activeTarget=n;this.clear();var t=this.selector+'[data-target="'+n+'"],'+this.selector+'[href="'+n+'"]',i=this.opts.callback;ti(this.el.querySelectorAll(t)).forEach(function(n){fi(n,"li").forEach(function(n){o(n,"active");i(n)});fi(n,".dropdown-menu").length&&o(function(n,t){vt();for(var i=void 0,r=n;r;){if((i=r.parentElement)&&i.matches(t))return i;r=i}return null}(n,"li.dropdown"),"active")})};k.prototype.clear=function(){var n=this;ti(this.el.querySelectorAll(this.selector)).forEach(function(t){fi(t,".active",n.opts.target).forEach(function(n){c(n,"active")})})};var et,rr="_uiv_scrollspy_instance",ff=[pr,wr],ef=function(n){sf(n)},of=function(n,t){var i=new k(n,t.arg,t.value);i.scrollElement&&(i.handler=function(){i.process()},ff.forEach(function(n){u(i.scrollElement,n,i.handler)}));n[rr]=i},sf=function(n){var t=n[rr];t&&t.scrollElement&&(ff.forEach(function(n){f(t.scrollElement,n,t.handler)}),delete n[rr])},hf={bind:ef,unbind:sf,update:function(n,t){t.value!==t.oldValue&&(ef(n),of(n,t))},inserted:of},v={ALERT:0,CONFIRM:1,PROMPT:2},us={mixins:[nt],components:{Modal:wi,Btn:w},props:{backdrop:null,title:String,content:String,html:{type:Boolean,"default":!1},okText:String,okType:{type:String,"default":"primary"},cancelText:String,cancelType:{type:String,"default":"default"},type:{type:Number,"default":v.ALERT},size:{type:String,"default":"sm"},cb:{type:Function,required:!0},validator:{type:Function,"default":function(){return null}},customClass:null,defaultValue:String,inputType:{type:String,"default":"text"},autoFocus:{type:String,"default":"ok"}},data:function(){return{TYPES:v,show:!1,input:"",dirty:!1}},mounted:function(){this.defaultValue&&(this.input=this.defaultValue)},computed:{closeOnBackdropClick:function(){return s(this.backdrop)?Boolean(this.backdrop):this.type!==v.ALERT},inputError:function(){return this.validator(this.input)},inputNotValid:function(){return this.dirty&&this.inputError},okBtnText:function(){return this.okText||this.t("uiv.modal.ok")},cancelBtnText:function(){return this.cancelText||this.t("uiv.modal.cancel")}},methods:{toggle:function(n,t){this.$refs.modal.toggle(n,t)},validate:function(){this.dirty=!0;s(this.inputError)||this.toggle(!1,{value:this.input})}}},fs={render:function(){var n=this,i=n.$createElement,t=n._self._c||i;return t("modal",{ref:"modal","class":n.customClass,attrs:{"auto-focus":"",size:n.size,title:n.title,header:!!n.title,backdrop:n.closeOnBackdropClick,"cancel-text":n.cancelText,"ok-text":n.okText},on:{hide:n.cb},model:{value:n.show,callback:function(t){n.show=t},expression:"show"}},[n.html?t("div",{domProps:{innerHTML:n._s(n.content)}}):t("p",[n._v(n._s(n.content))]),n._v(" "),n.type===n.TYPES.PROMPT?t("div",[t("div",{staticClass:"form-group","class":{"has-error":n.inputNotValid}},["checkbox"===n.inputType?t("input",{directives:[{name:"model",rawName:"v-model",value:n.input,expression:"input"}],ref:"input",staticClass:"form-control",attrs:{required:"","data-action":"auto-focus",type:"checkbox"},domProps:{checked:Array.isArray(n.input)?n._i(n.input,null)>-1:n.input},on:{change:[function(t){var i=n.input,u=t.target,f=!!u.checked,r;Array.isArray(i)?(r=n._i(i,null),u.checked?r<0&&(n.input=i.concat([null])):r>-1&&(n.input=i.slice(0,r).concat(i.slice(r+1)))):n.input=f},function(){n.dirty=!0}],keyup:function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"enter",13,t.key,"Enter")?null:n.validate(t)}}}):"radio"===n.inputType?t("input",{directives:[{name:"model",rawName:"v-model",value:n.input,expression:"input"}],ref:"input",staticClass:"form-control",attrs:{required:"","data-action":"auto-focus",type:"radio"},domProps:{checked:n._q(n.input,null)},on:{change:[function(){n.input=null},function(){n.dirty=!0}],keyup:function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"enter",13,t.key,"Enter")?null:n.validate(t)}}}):t("input",{directives:[{name:"model",rawName:"v-model",value:n.input,expression:"input"}],ref:"input",staticClass:"form-control",attrs:{required:"","data-action":"auto-focus",type:n.inputType},domProps:{value:n.input},on:{change:function(){n.dirty=!0},keyup:function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"enter",13,t.key,"Enter")?null:n.validate(t)},input:function(t){t.target.composing||(n.input=t.target.value)}}}),n._v(" "),t("span",{directives:[{name:"show",rawName:"v-show",value:n.inputNotValid,expression:"inputNotValid"}],staticClass:"help-block"},[n._v(n._s(n.inputError))])])]):n._e(),n._v(" "),n.type===n.TYPES.ALERT?t("template",{slot:"footer"},[t("btn",{attrs:{type:n.okType,"data-action":"ok"===n.autoFocus?"auto-focus":""},domProps:{textContent:n._s(n.okBtnText)},on:{click:function(){return n.toggle(!1,"ok")}}})],1):t("template",{slot:"footer"},[t("btn",{attrs:{type:n.cancelType,"data-action":"cancel"===n.autoFocus?"auto-focus":""},domProps:{textContent:n._s(n.cancelBtnText)},on:{click:function(){return n.toggle(!1,"cancel")}}}),n._v(" "),n.type===n.TYPES.CONFIRM?t("btn",{attrs:{type:n.okType,"data-action":"ok"===n.autoFocus?"auto-focus":""},domProps:{textContent:n._s(n.okBtnText)},on:{click:function(){return n.toggle(!1,"ok")}}}):t("btn",{attrs:{type:n.okType},domProps:{textContent:n._s(n.okBtnText)},on:{click:n.validate}})],1)],2)},staticRenderFns:[]},es=i(0)(us,fs,!1,null,null,null).exports,cf=[],ni=function(n,t){return n===v.CONFIRM?"ok"===t:s(t)&&b(t.value)},lf=function(n,t,i){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,e=this.$i18n,r=new gt.a({"extends":es,i18n:e,propsData:g()({type:n},t,{cb:function(t){!function(n){p(n.$el);n.$destroy();at(cf,n)}(r);y(i)?n===v.CONFIRM?ni(n,t)?i(null,t):i(t):n===v.PROMPT&&ni(n,t)?i(null,t.value):i(t):u&&f&&(n===v.CONFIRM?ni(n,t)?u(t):f(t):n===v.PROMPT?ni(n,t)?u(t.value):f(t):u(t))}})});r.$mount();document.body.appendChild(r.$el);r.show=!0;cf.push(r)},ur=function(n){var r=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2];if(or())return new Promise(function(u,f){lf.apply(r,[n,t,i,u,f])});lf.apply(this,[n,t,i])},af={alert:function(n,t){return ur.apply(this,[v.ALERT,n,t])},confirm:function(n,t){return ur.apply(this,[v.CONFIRM,n,t])},prompt:function(n,t){return ur.apply(this,[v.PROMPT,n,t])}},os="success",ss="info",hs="danger",cs="warning",fr="top-left",er="top-right",vf="bottom-left",ot="glyphicon",ls={components:{Alert:bi},props:{title:String,content:String,html:{type:Boolean,"default":!1},duration:{type:Number,"default":5e3},dismissible:{type:Boolean,"default":!0},type:String,placement:String,icon:String,customClass:null,cb:{type:Function,required:!0},queue:{type:Array,required:!0},offsetY:{type:Number,"default":15},offsetX:{type:Number,"default":15},offset:{type:Number,"default":15}},data:function(){return{height:0,top:0,horizontal:this.placement===fr||this.placement===vf?"left":"right",vertical:this.placement===fr||this.placement===er?"top":"bottom"}},created:function(){this.top=this.getTotalHeightOfQueue(this.queue)},mounted:function(){var t=this,n=this.$el;n.style[this.vertical]=this.top+"px";this.$nextTick(function(){n.style[t.horizontal]="-300px";t.height=n.offsetHeight;n.style[t.horizontal]=t.offsetX+"px";o(n,"in")})},computed:{styles:function(){var n,t=this.queue,i=t.indexOf(this);return n={position:"fixed"},e()(n,this.vertical,this.getTotalHeightOfQueue(t,i)+"px"),e()(n,"width","300px"),e()(n,"transition","all 0.3s ease-in-out"),n},icons:function(){if(b(this.icon))return this.icon;switch(this.type){case ss:case cs:return ot+" "+ot+"-info-sign";case os:return ot+" "+ot+"-ok-sign";case hs:return ot+" "+ot+"-remove-sign";default:return null}}},methods:{getTotalHeightOfQueue:function(n){for(var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:n.length,i=this.offsetY,t=0;t<r;t++)i+=n[t].height+this.offset;return i},onDismissed:function(){c(this.$el,"in");setTimeout(this.cb,300)}}},as={render:function(){var t=this.$createElement,n=this._self._c||t;return n("alert",{staticClass:"fade","class":this.customClass,style:this.styles,attrs:{type:this.type,duration:this.duration,dismissible:this.dismissible},on:{dismissed:this.onDismissed}},[n("div",{staticClass:"media",staticStyle:{margin:"0"}},[this.icons?n("div",{staticClass:"media-left"},[n("span",{"class":this.icons,staticStyle:{"font-size":"1.5em"}})]):this._e(),this._v(" "),n("div",{staticClass:"media-body"},[this.title?n("div",{staticClass:"media-heading"},[n("b",[this._v(this._s(this.title))])]):this._e(),this._v(" "),this.html?n("div",{domProps:{innerHTML:this._s(this.content)}}):n("div",[this._v(this._s(this.content))])])])])},staticRenderFns:[]},vs=i(0)(ls,as,!1,null,null,null).exports,ys=(et={},e()(et,fr,[]),e()(et,er,[]),e()(et,vf,[]),e()(et,"bottom-right",[]),et),yf=function(n,t){var u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,e=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,f=n.placement,r=ys[f],i;s(r)&&(i=new gt.a({"extends":vs,propsData:g()({queue:r,placement:f},n,{cb:function(n){!function(n,t){p(t.$el);t.$destroy();at(n,t)}(r,i);y(t)?t(n):u&&e&&u(n)}})}),i.$mount(),document.body.appendChild(i.$el),r.push(i))},pf={notify:function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(b(n)&&(n={content:n}),s(n.placement)||(n.placement=er),or())return new Promise(function(i,r){yf(n,t,i,r)});yf(n,t)}},wf=function(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};se(t.locale);he(t.i18n);Object.keys(r).forEach(function(i){var u=t.prefix?t.prefix+i:i;n.component(u,r[i])});Object.keys(it).forEach(function(i){var r=t.prefix?t.prefix+"-"+i:i;n.directive(r,it[i])});Object.keys(ht).forEach(function(i){var r=ht[i];Object.keys(r).forEach(function(i){var u=t.prefix?t.prefix+"_"+i:i;n.prototype["$"+u]=r[i]})})};i.d(t,"install",function(){return wf});i.d(t,"Carousel",function(){return lr});i.d(t,"Slide",function(){return ar});i.d(t,"Collapse",function(){return ci});i.d(t,"Dropdown",function(){return lt});i.d(t,"Modal",function(){return wi});i.d(t,"Tab",function(){return gr});i.d(t,"Tabs",function(){return tu});i.d(t,"DatePicker",function(){return iu});i.d(t,"Affix",function(){return eu});i.d(t,"Alert",function(){return bi});i.d(t,"Pagination",function(){return ou});i.d(t,"Tooltip",function(){return ki});i.d(t,"Popover",function(){return di});i.d(t,"TimePicker",function(){return hu});i.d(t,"Typeahead",function(){return cu});i.d(t,"ProgressBar",function(){return lu});i.d(t,"ProgressBarStack",function(){return gi});i.d(t,"Breadcrumbs",function(){return au});i.d(t,"BreadcrumbItem",function(){return nr});i.d(t,"Btn",function(){return w});i.d(t,"BtnGroup",function(){return vi});i.d(t,"BtnToolbar",function(){return vu});i.d(t,"MultiSelect",function(){return yu});i.d(t,"Navbar",function(){return pu});i.d(t,"NavbarNav",function(){return wu});i.d(t,"NavbarForm",function(){return bu});i.d(t,"NavbarText",function(){return ku});i.d(t,"tooltip",function(){return nf});i.d(t,"popover",function(){return uf});i.d(t,"scrollspy",function(){return hf});i.d(t,"MessageBox",function(){return af});i.d(t,"Notification",function(){return pf});"undefined"!=typeof window&&window.Vue&&wf(window.Vue,window.__uiv_options||{})},function(n,t,i){n.exports={"default":i(17),__esModule:!0}},function(n,t,i){i(18);var r=i(6).Object;n.exports=function(n,t,i){return r.defineProperty(n,t,i)}},function(n,t,i){var r=i(9);r(r.S+r.F*!i(3),"Object",{defineProperty:i(10).f})},function(n,t,i){var r=i(20);n.exports=function(n,t,i){if(r(n),void 0===t)return n;switch(i){case 1:return function(i){return n.call(t,i)};case 2:return function(i,r){return n.call(t,i,r)};case 3:return function(i,r,u){return n.call(t,i,r,u)}}return function(){return n.apply(t,arguments)}}},function(n){n.exports=function(n){if("function"!=typeof n)throw TypeError(n+" is not a function!");return n}},function(n,t,i){var r=i(10),u=i(26);n.exports=i(3)?function(n,t,i){return r.f(n,t,u(1,i))}:function(n,t,i){return n[t]=i,n}},function(n,t,i){var r=i(7);n.exports=function(n){if(!r(n))throw TypeError(n+" is not an object!");return n}},function(n,t,i){n.exports=!i(3)&&!i(8)(function(){return 7!=Object.defineProperty(i(24)("div"),"a",{get:function(){return 7}}).a})},function(n,t,i){var u=i(7),r=i(5).document,f=u(r)&&u(r.createElement);n.exports=function(n){return f?r.createElement(n):{}}},function(n,t,i){var r=i(7);n.exports=function(n,t){if(!r(n))return n;var i,u;if(t&&"function"==typeof(i=n.toString)&&!r(u=i.call(n))||"function"==typeof(i=n.valueOf)&&!r(u=i.call(n))||!t&&"function"==typeof(i=n.toString)&&!r(u=i.call(n)))return u;throw TypeError("Can't convert object to primitive value");}},function(n){n.exports=function(n,t){return{enumerable:!(1&n),configurable:!(2&n),writable:!(4&n),value:t}}},function(n,t,i){n.exports={"default":i(28),__esModule:!0}},function(n,t,i){i(29);n.exports=i(6).Object.assign},function(n,t,i){var r=i(9);r(r.S+r.F,"Object",{assign:i(30)})},function(n,t,i){"use strict";var u=i(31),f=i(42),e=i(43),o=i(44),s=i(12),r=Object.assign;n.exports=!r||i(8)(function(){var n={},t={},i=Symbol(),u="abcdefghijklmnopqrst";return n[i]=7,u.split("").forEach(function(n){t[n]=n}),7!=r({},n)[i]||Object.keys(r({},t)).join("")!=u})?function(n){for(var r=o(n),v=arguments.length,h=1,c=f.f,y=e.f;v>h;)for(var i,t=s(arguments[h++]),l=c?u(t).concat(c(t)):u(t),p=l.length,a=0;p>a;)y.call(t,i=l[a++])&&(r[i]=t[i]);return r}:r},function(n,t,i){var r=i(32),u=i(41);n.exports=Object.keys||function(n){return r(n,u)}},function(n,t,i){var r=i(33),u=i(11),f=i(35)(!1),e=i(38)("IE_PROTO");n.exports=function(n,t){var i,s=u(n),h=0,o=[];for(i in s)i!=e&&r(s,i)&&o.push(i);for(;t.length>h;)r(s,i=t[h++])&&(~f(o,i)||o.push(i));return o}},function(n){var t={}.hasOwnProperty;n.exports=function(n,i){return t.call(n,i)}},function(n){var t={}.toString;n.exports=function(n){return t.call(n).slice(8,-1)}},function(n,t,i){var r=i(11),u=i(36),f=i(37);n.exports=function(n){return function(t,i,e){var c,s=r(t),h=u(s.length),o=f(e,h);if(n&&i!=i){for(;h>o;)if((c=s[o++])!=c)return!0}else for(;h>o;o++)if((n||o in s)&&s[o]===i)return n||o||0;return!n&&-1}}},function(n,t,i){var r=i(14),u=Math.min;n.exports=function(n){return n>0?u(r(n),9007199254740991):0}},function(n,t,i){var r=i(14),u=Math.max,f=Math.min;n.exports=function(n,t){return(n=r(n))<0?u(n+t,0):f(n,t)}},function(n,t,i){var r=i(39)("keys"),u=i(40);n.exports=function(n){return r[n]||(r[n]=u(n))}},function(n,t,i){var r=i(5),u="__core-js_shared__",f=r[u]||(r[u]={});n.exports=function(n){return f[n]||(f[n]={})}},function(n){var t=0,i=Math.random();n.exports=function(n){return"Symbol(".concat(void 0===n?"":n,")_",(++t+i).toString(36))}},function(n){n.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(n,t){t.f=Object.getOwnPropertySymbols},function(n,t){t.f={}.propertyIsEnumerable},function(n,t,i){var r=i(13);n.exports=function(n){return Object(r(n))}}])});!function(n){function t(r){if(i[r])return i[r].exports;var u=i[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var i={};t.m=n;t.c=i;t.d=function(n,i,r){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:r})};t.r=function(n){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"});Object.defineProperty(n,"__esModule",{value:!0})};t.t=function(n,i){var r,u;if((1&i&&(n=t(n)),8&i)||4&i&&"object"==typeof n&&n&&n.__esModule)return n;if(r=Object.create(null),t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:n}),2&i&&"string"!=typeof n)for(u in n)t.d(r,u,function(t){return n[t]}.bind(null,u));return r};t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i};t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)};t.p="/dist/";t(t.s=0)}([function(n,t,i){"use strict";i.r(t);var r=function(n,t,i){var r="function"==typeof n?n.options:n;return t&&(r.render=t,r.staticRenderFns=i,r._compiled=!0),{exports:n,options:r}}({props:{elementId:String,existingTags:{type:Array,"default":function(){return[]}},value:{type:Array,"default":function(){return[]}},typeahead:{type:Boolean,"default":!1},typeaheadStyle:{type:String,"default":"badges"},typeaheadActivationThreshold:{type:Number,"default":1},typeaheadMaxResults:{type:Number,"default":0},typeaheadAlwaysShow:{type:Boolean,"default":!1},typeaheadShowOnFocus:{type:Boolean,"default":!0},typeaheadHideDiscard:{type:Boolean,"default":!1},typeaheadUrl:{type:String,"default":""},placeholder:{type:String,"default":"Add a tag"},discardSearchText:{type:String,"default":"Discard Search Results"},limit:{type:Number,"default":0},hideInputOnLimit:{type:Boolean,"default":!1},onlyExistingTags:{type:Boolean,"default":!1},deleteOnBackspace:{type:Boolean,"default":!0},allowDuplicates:{type:Boolean,"default":!1},validate:{type:Function,"default":function(){return!0}},addTagsOnComma:{type:Boolean,"default":!1},addTagsOnSpace:{type:Boolean,"default":!1},addTagsOnBlur:{type:Boolean,"default":!1},wrapperClass:{type:String,"default":"tags-input-wrapper-default"},sortSearchResults:{type:Boolean,"default":!0},caseSensitiveTags:{type:Boolean,"default":!1},beforeAddingTag:{type:Function,"default":function(){return!0}},beforeRemovingTag:{type:Function,"default":function(){return!0}}},data:function(){return{badgeId:0,tags:[],input:"",oldInput:"",hiddenInput:"",searchResults:[],searchSelection:0,selectedTag:-1,isActive:!1}},created:function(){this.tagsFromValue();this.typeaheadAlwaysShow&&this.searchTag(!1)},mounted:function(){var n=this;this.$emit("initialized");document.addEventListener("click",function(t){t.target!==n.$refs.taginput&&n.clearSearchResults()})},computed:{hideInputField:function(){return this.hideInputOnLimit&&this.limit>0&&this.tags.length>=this.limit}},watch:{input:function(n,t){this.searchTag(!1);n.length&&n!=t&&(n.substring(t.length,n.length),this.addTagsOnSpace&&n.endsWith(" ")&&(this.input=n.trim(),this.tagFromInput(!0)),this.addTagsOnComma&&(n=n.trim()).endsWith(",")&&(this.input=n.substring(0,n.length-1),this.tagFromInput(!0)),this.$emit("change",n))},tags:function(){this.hiddenInput=JSON.stringify(this.tags);this.$emit("input",this.tags)},value:function(){this.tagsFromValue()},typeaheadAlwaysShow:function(n){n?this.searchTag(!1):this.clearSearchResults()}},methods:{escapeRegExp:function(n){return n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")},tagFromInput:function(){var f=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n,s,i,r,h;if(this.searchResults.length&&this.searchSelection>=0&&!f)this.tagFromSearch(this.searchResults[this.searchSelection]),this.input="";else if(n=this.input.trim(),!this.onlyExistingTags&&n.length&&this.validate(n)){this.input="";var t={key:"",value:n},c=this.escapeRegExp(this.caseSensitiveTags?t.value:t.value.toLowerCase()),u=!0,e=!1,o=void 0;try{for(i=this.existingTags[Symbol.iterator]();!(u=(s=i.next()).done);u=!0)if(r=s.value,h=this.caseSensitiveTags?r.value:r.value.toLowerCase(),c===h){t=Object.assign({},r);break}}catch(f){e=!0;o=f}finally{try{!u&&i.return&&i.return()}finally{if(e)throw o;}}this.addTag(t)}},tagFromSearchOnClick:function(n){this.tagFromSearch(n);this.$refs.taginput.blur()},tagFromSearch:function(n){var t=this;this.clearSearchResults();this.addTag(n);this.$nextTick(function(){t.input="";t.oldInput=""})},addTag:function(n){var t=this;return!!this.beforeAddingTag(n)&&(this.limit>0&&this.tags.length>=this.limit?(this.$emit("limit-reached"),!1):void(this.tagSelected(n)||(this.tags.push(n),this.$nextTick(function(){t.$emit("tag-added",n);t.$emit("tags-updated")}))))},removeLastTag:function(){!this.input.length&&this.deleteOnBackspace&&this.tags.length&&this.removeTag(this.tags.length-1)},removeTag:function(n){var t=this,i=this.tags[n];if(!this.beforeRemovingTag(i))return!1;this.tags.splice(n,1);this.$nextTick(function(){t.$emit("tag-removed",i);t.$emit("tags-updated");t.typeaheadAlwaysShow&&t.searchTag()})},searchTag:function(){var n,i,t,r,u;if(!0!==this.typeahead)return!1;(this.oldInput!=this.input||!this.searchResults.length&&0==this.typeaheadActivationThreshold||this.typeaheadAlwaysShow||this.typeaheadShowOnFocus)&&(this.searchResults=[],this.searchSelection=0,n=this.input.trim(),(n.length&&n.length>=this.typeaheadActivationThreshold||0==this.typeaheadActivationThreshold||this.typeaheadAlwaysShow)&&(i=this.escapeRegExp(this.caseSensitiveTags?n:n.toLowerCase()),this.typeaheadUrl.length>0?(this.existingTags.splice(),t=new XMLHttpRequest,r=this,t.onreadystatechange=function(){4==this.readyState&&200==this.status&&(r.existingTags=JSON.parse(t.responseText),r.doSearch(i))},u=this.typeaheadUrl.replace(":search",i),t.open("GET",u,!0),t.send()):this.doSearch(i)),this.oldInput=this.input)},doSearch:function(n){var r=!0,u=!1,f=void 0,e,i,t;try{for(i=this.existingTags[Symbol.iterator]();!(r=(e=i.next()).done);r=!0)t=e.value,(this.caseSensitiveTags?t.value:t.value.toLowerCase()).search(n)>-1&&!this.tagSelected(t)&&this.searchResults.push(t)}catch(n){u=!0;f=n}finally{try{!r&&i.return&&i.return()}finally{if(u)throw f;}}this.sortSearchResults&&this.searchResults.sort(function(n,t){return n.value<t.value?-1:n.value>t.value?1:0});this.typeaheadMaxResults>0&&(this.searchResults=this.searchResults.slice(0,this.typeaheadMaxResults))},hideTypeahead:function(){var n=this;this.input.length||this.$nextTick(function(){n.clearSearchResults()})},nextSearchResult:function(){this.searchSelection+1<=this.searchResults.length-1&&this.searchSelection++},prevSearchResult:function(){this.searchSelection>0&&this.searchSelection--},clearSearchResults:function(){var n=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.searchResults=[];this.searchSelection=0;this.typeaheadAlwaysShow&&this.$nextTick(function(){n.searchTag()});t&&this.$refs.taginput.focus()},clearTags:function(){this.tags.splice(0,this.tags.length)},tagsFromValue:function(){var n,f,t,e;if(this.value&&this.value.length){if(!Array.isArray(this.value))return void console.error("Voerro Tags Input: the v-model value must be an array!");if(n=this.value,this.tags==n)return;this.clearTags();var i=!0,r=!1,u=void 0;try{for(t=n[Symbol.iterator]();!(i=(f=t.next()).done);i=!0)e=f.value,this.addTag(e)}catch(n){r=!0;u=n}finally{try{!i&&t.return&&t.return()}finally{if(r)throw u;}}}else{if(0==this.tags.length)return;this.clearTags()}},tagSelected:function(n){var s,t,i,u;if(this.allowDuplicates||!n)return!1;var f=this.escapeRegExp(this.caseSensitiveTags?n.value:n.value.toLowerCase()),r=!0,e=!1,o=void 0;try{for(t=this.tags[Symbol.iterator]();!(r=(s=t.next()).done);r=!0)if(i=s.value,u=this.caseSensitiveTags?i.value:i.value.toLowerCase(),i.key===n.key&&this.escapeRegExp(u).length==f.length&&u.search(f)>-1)return!0}catch(n){e=!0;o=n}finally{try{!r&&t.return&&t.return()}finally{if(e)throw o;}}return!1},clearInput:function(){this.input=""},onKeyUp:function(n){this.$emit("keyup",n)},onKeyDown:function(n){this.$emit("keydown",n)},onFocus:function(n){this.$emit("focus",n);this.isActive=!0},onClick:function(n){this.$emit("click",n);this.isActive=!0;this.searchTag()},onBlur:function(n){this.$emit("blur",n);this.addTagsOnBlur&&this.tagFromInput(!0);this.typeaheadAlwaysShow?this.searchTag():this.hideTypeahead();this.isActive=!1}}},function(){var i,n=this,r=n.$createElement,t=n._self._c||r;return t("div",{staticClass:"tags-input-root",staticStyle:{position:"relative"}},[t("div",{"class":(i={},i[n.wrapperClass+" tags-input"]=!0,i.active=n.isActive,i)},[n._l(n.tags,function(i,r){return t("span",{key:r,staticClass:"tags-input-badge tags-input-badge-pill tags-input-badge-selected-default"},[t("span",{domProps:{innerHTML:n._s(i.value)}}),n._v(" "),t("a",{staticClass:"tags-input-remove",attrs:{href:"#",title:"Remove Label","aria-label":"Remove Label"},on:{click:function(t){return t.preventDefault(),n.removeTag(r)}}},[t("span",{staticClass:"pseudo-element-helper-icon hide",domProps:{innerHTML:n._s("&#10006")}})])])}),n._v(" "),t("input",{directives:[{name:"model",rawName:"v-model",value:n.input,expression:"input"},{name:"show",rawName:"v-show",value:!n.hideInputField,expression:"!hideInputField"}],ref:"taginput",attrs:{type:"text",placeholder:n.placeholder},domProps:{value:n.input},on:{keydown:[function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"enter",13,t.key,"Enter")?null:(t.preventDefault(),n.tagFromInput(!1))},function(t){return t.type.indexOf("key")||8===t.keyCode?n.removeLastTag(t):null},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"down",40,t.key,["Down","ArrowDown"])?null:n.nextSearchResult(t)},function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"up",38,t.key,["Up","ArrowUp"])?null:n.prevSearchResult(t)},n.onKeyDown],keyup:[n.onKeyUp,function(t){return!t.type.indexOf("key")&&n._k(t.keyCode,"esc",27,t.key,["Esc","Escape"])?null:n.clearSearchResults(t)}],focus:n.onFocus,click:n.onClick,blur:n.onBlur,value:n.tags,input:function(t){t.target.composing||(n.input=t.target.value)}}}),n._v(" "),n.elementId?t("input",{directives:[{name:"model",rawName:"v-model",value:n.hiddenInput,expression:"hiddenInput"}],attrs:{type:"hidden",name:n.elementId,id:n.elementId},domProps:{value:n.hiddenInput},on:{input:function(t){t.target.composing||(n.hiddenInput=t.target.value)}}}):n._e()],2),n._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:n.searchResults.length,expression:"searchResults.length"}]},["badges"===n.typeaheadStyle?t("p",{"class":"typeahead-"+n.typeaheadStyle},[n.typeaheadHideDiscard?n._e():t("span",{staticClass:"tags-input-badge typeahead-hide-btn tags-input-typeahead-item-default",domProps:{textContent:n._s(n.discardSearchText)},on:{click:function(t){return t.preventDefault(),n.clearSearchResults(!0)}}}),n._v(" "),n._l(n.searchResults,function(i,r){return t("span",{key:r,staticClass:"tags-input-badge","class":{"tags-input-typeahead-item-default":r!=n.searchSelection,"tags-input-typeahead-item-highlighted-default":r==n.searchSelection},domProps:{innerHTML:n._s(i.value)},on:{mouseover:function(){n.searchSelection=r},mousedown:function(t){return t.preventDefault(),n.tagFromSearchOnClick(i)}}})})],2):"dropdown"===n.typeaheadStyle?t("ul",{"class":"typeahead-"+n.typeaheadStyle},[n.typeaheadHideDiscard?n._e():t("li",{staticClass:"tags-input-typeahead-item-default typeahead-hide-btn",domProps:{textContent:n._s(n.discardSearchText)},on:{click:function(t){return t.preventDefault(),n.clearSearchResults(!0)}}}),n._v(" "),n._l(n.searchResults,function(i,r){return t("li",{key:r,"class":{"tags-input-typeahead-item-default":r!=n.searchSelection,"tags-input-typeahead-item-highlighted-default":r==n.searchSelection},domProps:{innerHTML:n._s(i.value)},on:{mouseover:function(){n.searchSelection=r},mousedown:function(t){return t.preventDefault(),n.tagFromSearchOnClick(i)}}})})],2):n._e()])])},[],!1,null,null,null).exports;window.VoerroTagsInput=r;t.default=r}]);var __extends=this&&this.__extends||function(){var n=function(t,i){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,t){n.__proto__=t}||function(n,t){for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i])},n(t,i)};return function(t,i){function r(){this.constructor=t}n(t,i);t.prototype=i===null?Object.create(i):(r.prototype=i.prototype,new r)}}(),isObj=function(n){return typeof n=="object"},equal=function(n,t){return Object.keys(n).every(function(i){return isObj(n[i])?equal(t[i],n[i]):t[i]===n[i]})},negate=function(n){return function(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];return!n.apply(void 0,i)}},compare=function(n,t,i,r){var u=i(n),f=i(t);return u>f?r?-1:1:u<f?r?1:-1:0},composeComparers=function(n,t){return function(i,r){return n(i,r)||t(i,r)}},keyComparer=function(n,t){return function(i,r){return compare(i,r,n,t)}},List=function(){function n(n){n===void 0&&(n=[]);this._elements=n}return n.prototype.Add=function(n){this._elements.push(n)},n.prototype.AddRange=function(n){var t;(t=this._elements).push.apply(t,n)},n.prototype.Aggregate=function(n,t){return this._elements.reduce(n,t)},n.prototype.All=function(n){return this._elements.every(n)},n.prototype.Any=function(n){return n?this._elements.some(n):this._elements.length>0},n.prototype.Average=function(n){return this.Sum(n)/this.Count(n)},n.prototype.Cast=function(){return new n(this._elements)},n.prototype.Concat=function(t){return new n(this._elements.concat(t.ToArray()))},n.prototype.Contains=function(n){return this._elements.some(function(t){return t===n})},n.prototype.Count=function(n){return n?this.Where(n).Count():this._elements.length},n.prototype.DefaultIfEmpty=function(t){return this.Count()?this:new n([t])},n.prototype.Distinct=function(){return this.Where(function(n,t,i){return(isObj(n)?i.findIndex(function(t){return equal(t,n)}):i.indexOf(n))===t})},n.prototype.DistinctBy=function(t){var i=this.GroupBy(t);return Object.keys(i).reduce(function(n,t){return n.Add(i[t][0]),n},new n)},n.prototype.ElementAt=function(n){if(n<this.Count())return this._elements[n];throw new Error("ArgumentOutOfRangeException: index is less than 0 or greater than or equal to the number of elements in source.");},n.prototype.ElementAtOrDefault=function(n){return this.ElementAt(n)||undefined},n.prototype.Except=function(n){return this.Where(function(t){return!n.Contains(t)})},n.prototype.First=function(n){if(this.Count())return n?this.Where(n).First():this._elements[0];throw new Error("InvalidOperationException: The source sequence is empty.");},n.prototype.FirstOrDefault=function(n){return this.Count(n)?this.First(n):undefined},n.prototype.ForEach=function(n){return this._elements.forEach(n)},n.prototype.GroupBy=function(n,t){return t||(t=function(n){return n}),this.Aggregate(function(i,r){var u=n(r),f=i[u],e=t(r);return f?f.push(e):i[u]=[e],i},{})},n.prototype.GroupJoin=function(n,t,i,r){return this.Select(function(u){return r(u,n.Where(function(n){return t(u)===i(n)}))})},n.prototype.IndexOf=function(n){return this._elements.indexOf(n)},n.prototype.Insert=function(n,t){if(n<0||n>this._elements.length)throw new Error("Index is out of range.");this._elements.splice(n,0,t)},n.prototype.Intersect=function(n){return this.Where(function(t){return n.Contains(t)})},n.prototype.Join=function(n,t,i,r){return this.SelectMany(function(u){return n.Where(function(n){return i(n)===t(u)}).Select(function(n){return r(u,n)})})},n.prototype.Last=function(n){if(this.Count())return n?this.Where(n).Last():this._elements[this.Count()-1];throw Error("InvalidOperationException: The source sequence is empty.");},n.prototype.LastOrDefault=function(n){return this.Count(n)?this.Last(n):undefined},n.prototype.Max=function(n){var t=function(n){return n};return Math.max.apply(Math,this._elements.map(n||t))},n.prototype.Min=function(n){var t=function(n){return n};return Math.min.apply(Math,this._elements.map(n||t))},n.prototype.OfType=function(n){var t;switch(n){case Number:t="number";break;case String:t="string";break;case Boolean:t="boolean";break;case Function:t=typeof function(){};break;default:t=null}return t===null?this.Where(function(t){return t instanceof n}).Cast():this.Where(function(n){return typeof n===t}).Cast()},n.prototype.OrderBy=function(n,t){return t===void 0&&(t=keyComparer(n,!1)),new OrderedList(this._elements,t)},n.prototype.OrderByDescending=function(n,t){return t===void 0&&(t=keyComparer(n,!0)),new OrderedList(this._elements,t)},n.prototype.ThenBy=function(n){return this.OrderBy(n)},n.prototype.ThenByDescending=function(n){return this.OrderByDescending(n)},n.prototype.Remove=function(n){return this.IndexOf(n)!==-1?(this.RemoveAt(this.IndexOf(n)),!0):!1},n.prototype.RemoveAll=function(n){return this.Where(negate(n))},n.prototype.RemoveAt=function(n){this._elements.splice(n,1)},n.prototype.Reverse=function(){return new n(this._elements.reverse())},n.prototype.Select=function(t){return new n(this._elements.map(t))},n.prototype.SelectMany=function(t){var i=this;return this.Aggregate(function(n,r,u){return n.AddRange(i.Select(t).ElementAt(u).ToArray()),n},new n)},n.prototype.SequenceEqual=function(n){return!!this._elements.reduce(function(t,i,r){return n._elements[r]===i?t:undefined})},n.prototype.Single=function(n){if(this.Count(n)!==1)throw new Error("The collection does not contain exactly one element.");else return this.First(n)},n.prototype.SingleOrDefault=function(n){return this.Count(n)?this.Single(n):undefined},n.prototype.Skip=function(t){return new n(this._elements.slice(Math.max(0,t)))},n.prototype.SkipWhile=function(n){var t=this;return this.Skip(this.Aggregate(function(i){return n(t.ElementAt(i))?++i:i},0))},n.prototype.Sum=function(n){return n?this.Select(n).Sum():this.Aggregate(function(n,t){return n+ +t},0)},n.prototype.Take=function(t){return new n(this._elements.slice(0,Math.max(0,t)))},n.prototype.TakeWhile=function(n){var t=this;return this.Take(this.Aggregate(function(i){return n(t.ElementAt(i))?++i:i},0))},n.prototype.ToArray=function(){return this._elements},n.prototype.ToDictionary=function(t,i){var r=this;return this.Aggregate(function(n,u,f){return n[r.Select(t).ElementAt(f).toString()]=i?r.Select(i).ElementAt(f):u,n.Add({Key:r.Select(t).ElementAt(f),Value:i?r.Select(i).ElementAt(f):u}),n},new n)},n.prototype.ToList=function(){return this},n.prototype.ToLookup=function(n,t){return this.GroupBy(n,t)},n.prototype.Union=function(n){return this.Concat(n).Distinct()},n.prototype.Where=function(t){return new n(this._elements.filter(t))},n.prototype.Zip=function(n,t){var i=this;return n.Count()<this.Count()?n.Select(function(n,r){return t(i.ElementAt(r),n)}):this.Select(function(i,r){return t(i,n.ElementAt(r))})},n}(),OrderedList=function(n){function t(t,i){var r=n.call(this,t)||this;return r._comparer=i,r._elements.sort(r._comparer),r}return __extends(t,n),t.prototype.ThenBy=function(n){return new t(this._elements,composeComparers(this._comparer,keyComparer(n,!1)))},t.prototype.ThenByDescending=function(n){return new t(this._elements,composeComparers(this._comparer,keyComparer(n,!0)))},t}(List),Enumerable=function(){function n(){}return n.Range=function(n,t){for(var i=new List;t--;)i.Add(n++);return i},n.Repeat=function(n,t){for(var i=new List;t--;)i.Add(n);return i},n}();!function(n){var t=function(){"use strict";var f="s",n={DAY:864e5,HOUR:36e5,MINUTE:6e4,SECOND:1e3,BASELINE_YEAR:2014,MAX_SCORE:864e6,AMBIGUITIES:{"America/Denver":["America/Mazatlan"],"Europe/London":["Africa/Casablanca"],"America/Chicago":["America/Mexico_City"],"America/Asuncion":["America/Campo_Grande","America/Santiago"],"America/Montevideo":["America/Sao_Paulo","America/Santiago"],"Asia/Beirut":["Asia/Amman","Asia/Jerusalem","Europe/Helsinki","Asia/Damascus","Africa/Cairo","Asia/Gaza","Europe/Minsk"],"Pacific/Auckland":["Pacific/Fiji"],"America/Los_Angeles":["America/Santa_Isabel"],"America/New_York":["America/Havana"],"America/Halifax":["America/Goose_Bay"],"America/Godthab":["America/Miquelon"],"Asia/Dubai":["Asia/Yerevan"],"Asia/Jakarta":["Asia/Krasnoyarsk"],"Asia/Shanghai":["Asia/Irkutsk","Australia/Perth"],"Australia/Sydney":["Australia/Lord_Howe"],"Asia/Tokyo":["Asia/Yakutsk"],"Asia/Dhaka":["Asia/Omsk"],"Asia/Baku":["Asia/Yerevan"],"Australia/Brisbane":["Asia/Vladivostok"],"Pacific/Noumea":["Asia/Vladivostok"],"Pacific/Majuro":["Asia/Kamchatka","Pacific/Fiji"],"Pacific/Tongatapu":["Pacific/Apia"],"Asia/Baghdad":["Europe/Minsk","Europe/Moscow"],"Asia/Karachi":["Asia/Yekaterinburg"],"Africa/Johannesburg":["Asia/Gaza","Africa/Cairo"]}},i=function(n){var t=-n.getTimezoneOffset();return null!==t?t:0},e=function(){var t=i(new Date(n.BASELINE_YEAR,0,2)),r=i(new Date(n.BASELINE_YEAR,5,2)),u=t-r;return 0>u?t+",1":u>0?r+",1,"+f:t+",0"},o=function(){var t,n;if("undefined"!=typeof Intl&&"undefined"!=typeof Intl.DateTimeFormat&&(t=Intl.DateTimeFormat(),"undefined"!=typeof t&&"undefined"!=typeof t.resolvedOptions))return n=t.resolvedOptions().timeZone,n&&(n.indexOf("/")>-1||"UTC"===n)?n:void 0},s=function(n){for(var f,t,s=new Date(n,0,1,0,0,1,0).getTime(),h=new Date(n,12,31,23,59,59).getTime(),i=s,u=new Date(i).getTimezoneOffset(),e=null,o=null;h-864e5>i;)f=new Date(i),t=f.getTimezoneOffset(),t!==u&&(u>t&&(e=f),t>u&&(o=f),u=t),i+=864e5;return e&&o?{s:r(e).getTime(),e:r(o).getTime()}:!1},r=function u(t,i,r){var o,h;"undefined"==typeof i&&(i=n.DAY,r=n.HOUR);for(var s=new Date(t.getTime()-i).getTime(),c=t.getTime()+i,l=new Date(s).getTimezoneOffset(),e=s,f=null;c-r>e;){if(o=new Date(e),h=o.getTimezoneOffset(),h!==l){f=o;break}e+=r}return i===n.DAY?u(f,n.HOUR,n.MINUTE):i===n.HOUR?u(f,n.MINUTE,n.SECOND):f},h=function(n,t,i,r){if("N/A"!==i)return i;if("Asia/Beirut"===t){if("Africa/Cairo"===r.name&&13983768e5===n[6].s&&14116788e5===n[6].e||"Asia/Jerusalem"===r.name&&13959648e5===n[6].s&&14118588e5===n[6].e)return 0}else if("America/Santiago"===t){if("America/Asuncion"===r.name&&14124816e5===n[6].s&&1397358e6===n[6].e||"America/Campo_Grande"===r.name&&14136912e5===n[6].s&&13925196e5===n[6].e)return 0}else if("America/Montevideo"===t){if("America/Sao_Paulo"===r.name&&14136876e5===n[6].s&&1392516e6===n[6].e)return 0}else if("Pacific/Auckland"===t&&"Pacific/Fiji"===r.name&&14142456e5===n[6].s&&13961016e5===n[6].e)return 0;return i},c=function(i,r){for(var a,c,f,e,v=function(t){for(var f=0,u=0;u<i.length;u++)if(t.rules[u]&&i[u]){if(!(i[u].s>=t.rules[u].s&&i[u].e<=t.rules[u].e)){f="N/A";break}if(f=0,f+=Math.abs(i[u].s-t.rules[u].s),f+=Math.abs(t.rules[u].e-i[u].e),f>n.MAX_SCORE){f="N/A";break}}return h(i,r,f,t)},o={},s=t.olson.dst_rules.zones,y=s.length,l=n.AMBIGUITIES[r],u=0;y>u;u++)a=s[u],c=v(s[u]),"N/A"!==c&&(o[a.name]=c);for(f in o)if(o.hasOwnProperty(f))for(e=0;e<l.length;e++)if(l[e]===f)return f;return r},l=function(n){var r=function(){for(var r,i=[],n=0;n<t.olson.dst_rules.years.length;n++)r=s(t.olson.dst_rules.years[n]),i.push(r);return i},u=function(n){for(var t=0;t<n.length;t++)if(n[t]!==!1)return!0;return!1},i=r(),f=u(i);return f?c(i,n):n},a=function(){var i=o();return i||(i=t.olson.timezones[e()],"undefined"!=typeof n.AMBIGUITIES[i]&&(i=l(i))),{name:function(){return i}}};return{determine:a}}();t.olson=t.olson||{};t.olson.timezones={"-720,0":"Etc/GMT+12","-660,0":"Pacific/Pago_Pago","-660,1,s":"Pacific/Apia","-600,1":"America/Adak","-600,0":"Pacific/Honolulu","-570,0":"Pacific/Marquesas","-540,0":"Pacific/Gambier","-540,1":"America/Anchorage","-480,1":"America/Los_Angeles","-480,0":"Pacific/Pitcairn","-420,0":"America/Phoenix","-420,1":"America/Denver","-360,0":"America/Guatemala","-360,1":"America/Chicago","-360,1,s":"Pacific/Easter","-300,0":"America/Bogota","-300,1":"America/New_York","-270,0":"America/Caracas","-240,1":"America/Halifax","-240,0":"America/Santo_Domingo","-240,1,s":"America/Asuncion","-210,1":"America/St_Johns","-180,1":"America/Godthab","-180,0":"America/Argentina/Buenos_Aires","-180,1,s":"America/Montevideo","-120,0":"America/Noronha","-120,1":"America/Noronha","-60,1":"Atlantic/Azores","-60,0":"Atlantic/Cape_Verde","0,0":"UTC","0,1":"Europe/London","60,1":"Europe/Berlin","60,0":"Africa/Lagos","60,1,s":"Africa/Windhoek","120,1":"Asia/Beirut","120,0":"Africa/Johannesburg","180,0":"Asia/Baghdad","180,1":"Europe/Moscow","210,1":"Asia/Tehran","240,0":"Asia/Dubai","240,1":"Asia/Baku","270,0":"Asia/Kabul","300,1":"Asia/Yekaterinburg","300,0":"Asia/Karachi","330,0":"Asia/Kolkata","345,0":"Asia/Kathmandu","360,0":"Asia/Dhaka","360,1":"Asia/Omsk","390,0":"Asia/Rangoon","420,1":"Asia/Krasnoyarsk","420,0":"Asia/Jakarta","480,0":"Asia/Shanghai","480,1":"Asia/Irkutsk","525,0":"Australia/Eucla","525,1,s":"Australia/Eucla","540,1":"Asia/Yakutsk","540,0":"Asia/Tokyo","570,0":"Australia/Darwin","570,1,s":"Australia/Adelaide","600,0":"Australia/Brisbane","600,1":"Asia/Vladivostok","600,1,s":"Australia/Sydney","630,1,s":"Australia/Lord_Howe","660,1":"Asia/Kamchatka","660,0":"Pacific/Noumea","690,0":"Pacific/Norfolk","720,1,s":"Pacific/Auckland","720,0":"Pacific/Majuro","765,1,s":"Pacific/Chatham","780,0":"Pacific/Tongatapu","780,1,s":"Pacific/Apia","840,0":"Pacific/Kiritimati"};t.olson.dst_rules={years:[2008,2009,2010,2011,2012,2013,2014],zones:[{name:"Africa/Cairo",rules:[{e:12199572e5,s:12090744e5},{e:1250802e6,s:1240524e6},{e:12858804e5,s:12840696e5},!1,!1,!1,{e:14116788e5,s:1406844e6}]},{name:"Africa/Casablanca",rules:[{e:12202236e5,s:12122784e5},{e:12508092e5,s:12438144e5},{e:1281222e6,s:12727584e5},{e:13120668e5,s:13017888e5},{e:13489704e5,s:1345428e6},{e:13828392e5,s:13761e8},{e:14142888e5,s:14069448e5}]},{name:"America/Asuncion",rules:[{e:12050316e5,s:12243888e5},{e:12364812e5,s:12558384e5},{e:12709548e5,s:12860784e5},{e:13024044e5,s:1317528e6},{e:1333854e6,s:13495824e5},{e:1364094e6,s:1381032e6},{e:13955436e5,s:14124816e5}]},{name:"America/Campo_Grande",rules:[{e:12032172e5,s:12243888e5},{e:12346668e5,s:12558384e5},{e:12667212e5,s:1287288e6},{e:12981708e5,s:13187376e5},{e:13302252e5,s:1350792e6},{e:136107e7,s:13822416e5},{e:13925196e5,s:14136912e5}]},{name:"America/Goose_Bay",rules:[{e:122559486e4,s:120503526e4},{e:125704446e4,s:123648486e4},{e:128909886e4,s:126853926e4},{e:13205556e5,s:129998886e4},{e:13520052e5,s:13314456e5},{e:13834548e5,s:13628952e5},{e:14149044e5,s:13943448e5}]},{name:"America/Havana",rules:[{e:12249972e5,s:12056436e5},{e:12564468e5,s:12364884e5},{e:12885012e5,s:12685428e5},{e:13211604e5,s:13005972e5},{e:13520052e5,s:13332564e5},{e:13834548e5,s:13628916e5},{e:14149044e5,s:13943412e5}]},{name:"America/Mazatlan",rules:[{e:1225008e6,s:12074724e5},{e:12564576e5,s:1238922e6},{e:1288512e6,s:12703716e5},{e:13199616e5,s:13018212e5},{e:13514112e5,s:13332708e5},{e:13828608e5,s:13653252e5},{e:14143104e5,s:13967748e5}]},{name:"America/Mexico_City",rules:[{e:12250044e5,s:12074688e5},{e:1256454e6,s:12389184e5},{e:12885084e5,s:1270368e6},{e:1319958e6,s:13018176e5},{e:13514076e5,s:13332672e5},{e:13828572e5,s:13653216e5},{e:14143068e5,s:13967712e5}]},{name:"America/Miquelon",rules:[{e:12255984e5,s:12050388e5},{e:1257048e6,s:12364884e5},{e:12891024e5,s:12685428e5},{e:1320552e6,s:12999924e5},{e:13520016e5,s:1331442e6},{e:13834512e5,s:13628916e5},{e:14149008e5,s:13943412e5}]},{name:"America/Santa_Isabel",rules:[{e:12250116e5,s:1207476e6},{e:12564612e5,s:12389256e5},{e:12885156e5,s:12703752e5},{e:13199652e5,s:13018248e5},{e:13514148e5,s:13332744e5},{e:13828644e5,s:13653288e5},{e:1414314e6,s:13967784e5}]},{name:"America/Santiago",rules:[{e:1206846e6,s:1223784e6},{e:1237086e6,s:12552336e5},{e:127035e7,s:12866832e5},{e:13048236e5,s:13138992e5},{e:13356684e5,s:13465584e5},{e:1367118e6,s:13786128e5},{e:13985676e5,s:14100624e5}]},{name:"America/Sao_Paulo",rules:[{e:12032136e5,s:12243852e5},{e:12346632e5,s:12558348e5},{e:12667176e5,s:12872844e5},{e:12981672e5,s:1318734e6},{e:13302216e5,s:13507884e5},{e:13610664e5,s:1382238e6},{e:1392516e6,s:14136876e5}]},{name:"Asia/Amman",rules:[{e:1225404e6,s:12066552e5},{e:12568536e5,s:12381048e5},{e:12883032e5,s:12695544e5},{e:13197528e5,s:13016088e5},!1,!1,{e:14147064e5,s:13959576e5}]},{name:"Asia/Damascus",rules:[{e:12254868e5,s:120726e7},{e:125685e7,s:12381048e5},{e:12882996e5,s:12701592e5},{e:13197492e5,s:13016088e5},{e:13511988e5,s:13330584e5},{e:13826484e5,s:1364508e6},{e:14147028e5,s:13959576e5}]},{name:"Asia/Dubai",rules:[!1,!1,!1,!1,!1,!1,!1]},{name:"Asia/Gaza",rules:[{e:12199572e5,s:12066552e5},{e:12520152e5,s:12381048e5},{e:1281474e6,s:126964086e4},{e:1312146e6,s:130160886e4},{e:13481784e5,s:13330584e5},{e:13802292e5,s:1364508e6},{e:1414098e6,s:13959576e5}]},{name:"Asia/Irkutsk",rules:[{e:12249576e5,s:12068136e5},{e:12564072e5,s:12382632e5},{e:12884616e5,s:12697128e5},!1,!1,!1,!1]},{name:"Asia/Jerusalem",rules:[{e:12231612e5,s:12066624e5},{e:1254006e6,s:1238112e6},{e:1284246e6,s:12695616e5},{e:131751e7,s:1301616e6},{e:13483548e5,s:13330656e5},{e:13828284e5,s:13645152e5},{e:1414278e6,s:13959648e5}]},{name:"Asia/Kamchatka",rules:[{e:12249432e5,s:12067992e5},{e:12563928e5,s:12382488e5},{e:12884508e5,s:12696984e5},!1,!1,!1,!1]},{name:"Asia/Krasnoyarsk",rules:[{e:12249612e5,s:12068172e5},{e:12564108e5,s:12382668e5},{e:12884652e5,s:12697164e5},!1,!1,!1,!1]},{name:"Asia/Omsk",rules:[{e:12249648e5,s:12068208e5},{e:12564144e5,s:12382704e5},{e:12884688e5,s:126972e7},!1,!1,!1,!1]},{name:"Asia/Vladivostok",rules:[{e:12249504e5,s:12068064e5},{e:12564e8,s:1238256e6},{e:12884544e5,s:12697056e5},!1,!1,!1,!1]},{name:"Asia/Yakutsk",rules:[{e:1224954e6,s:120681e7},{e:12564036e5,s:12382596e5},{e:1288458e6,s:12697092e5},!1,!1,!1,!1]},{name:"Asia/Yekaterinburg",rules:[{e:12249684e5,s:12068244e5},{e:1256418e6,s:1238274e6},{e:12884724e5,s:12697236e5},!1,!1,!1,!1]},{name:"Asia/Yerevan",rules:[{e:1224972e6,s:1206828e6},{e:12564216e5,s:12382776e5},{e:1288476e6,s:12697272e5},{e:13199256e5,s:13011768e5},!1,!1,!1]},{name:"Australia/Lord_Howe",rules:[{e:12074076e5,s:12231342e5},{e:12388572e5,s:12545838e5},{e:12703068e5,s:12860334e5},{e:13017564e5,s:1317483e6},{e:1333206e6,s:13495374e5},{e:13652604e5,s:1380987e6},{e:139671e7,s:14124366e5}]},{name:"Australia/Perth",rules:[{e:12068136e5,s:12249576e5},!1,!1,!1,!1,!1,!1]},{name:"Europe/Helsinki",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]},{name:"Europe/Minsk",rules:[{e:12249792e5,s:12068352e5},{e:12564288e5,s:12382848e5},{e:12884832e5,s:12697344e5},!1,!1,!1,!1]},{name:"Europe/Moscow",rules:[{e:12249756e5,s:12068316e5},{e:12564252e5,s:12382812e5},{e:12884796e5,s:12697308e5},!1,!1,!1,!1]},{name:"Pacific/Apia",rules:[!1,!1,!1,{e:13017528e5,s:13168728e5},{e:13332024e5,s:13489272e5},{e:13652568e5,s:13803768e5},{e:13967064e5,s:14118264e5}]},{name:"Pacific/Fiji",rules:[!1,!1,{e:12696984e5,s:12878424e5},{e:13271544e5,s:1319292e6},{e:1358604e6,s:13507416e5},{e:139005e7,s:1382796e6},{e:14215032e5,s:14148504e5}]},{name:"Europe/London",rules:[{e:12249828e5,s:12068388e5},{e:12564324e5,s:12382884e5},{e:12884868e5,s:1269738e6},{e:13199364e5,s:13011876e5},{e:1351386e6,s:13326372e5},{e:13828356e5,s:13646916e5},{e:14142852e5,s:13961412e5}]}]};"undefined"!=typeof module&&"undefined"!=typeof module.exports?module.exports=t:"undefined"!=typeof define&&null!==define&&null!=define.amd?define([],function(){return t}):"undefined"==typeof n?window.jstz=t:n.jstz=t}()