'})}return!1}function doLogout(){window.location.href="/fb.fcgi?todo=doLogout"}function showLogin(){BootstrapDialog.show({message:$("



Lade Loginmaske ...
").load("/fb.fcgi?todo=getLogin"),title:"Dein persönlicher Login"})}function showFoto(t,e){BootstrapDialog.show({message:"
",title:e})}function myAlarm(t,e,i){i||(i=BootstrapDialog.TYPE_PRIMARY),BootstrapDialog.alert({type:i,title:t,message:e})}function saveForm(form){var lademeldung=$(form).attr("msg-laden")||"Speichere...",sendebutton;sendebutton=$(form).attr("submit-buttonid")?$("#"+$(form).attr("submit-buttonid")):$(form).find("button[type='submit']");var buttontext=sendebutton.html();sendebutton.addClass("disabled").prop("disabled",!0).html(" "+lademeldung);var felder=$(form).serializeHash2(),e=$.post("/fb.fcgi",felder,function(data){sendebutton.prop("disabled",!1).removeClass("disabled").html(buttontext);var erg=new Object;try{erg=eval("("+data+")")}catch(t){return void alert("Fehler: "+t+" / "+data)}finally{}if(1==erg.status)return erg.evl&&(console.log("EVAL: "+erg.evl),eval(erg.evl)),erg.alert&&(erg.zusatztext||(erg.zusatztext="Du kannst nun dieses Fenster schliessen."),myAlarm(erg.alert,erg.zusatztext,"type-success")),erg.msg?$(form).parent().html(erg.msg):erg.seitenwechsel?seitenwechsel("#"+erg.seitenwechsel):erg.redirect?document.location.assign(erg.redirect):erg.formmsg?$(form).append(erg.formmsg):erg.formersatz?$(form).html(erg.formersatz):erg.buttonmsg?$("#"+erg.buttonid).html(erg.buttonmsg):erg.html&&$(erg.html_target).html(erg.html).fadeIn(),erg.html_prepend&&($(erg.html_target).first().prepend(erg.html_prepend).fadeIn(),scrollTo($(erg.html_target))),erg.hide_form&&$(form).hide(),erg.show_html_target&&$(erg.show_html_target).slideDown(),1==erg.reload?void location.reload(!0):(updateUI(),erg.scrollTo&&$(erg.scrollTo).length>0&&$(erg.scrollTo)[0].scrollIntoView(),!1);void 0!==erg.fehler_hilfe?myAlarm(erg.fehler_msg||erg.msg,erg.fehler_hilfe,"type-warning"):void 0!==erg.fehler_direkt?($("#"+erg.fehler_direkt).html(erg.fehler_msg),void 0!==erg.fehler_feld&&$("#"+erg.fehler_feld).focus()):myAlarm("Es ist ein Fehler aufgetreten!",erg.fehler_msg||erg.msg,"type-warning"),void 0!==erg.fehler_feld&&$("#"+erg.fehler_feld).focus()})}function addMerkzettel(t,e){$.post("/fb.fcgi",{todo:"saveMerkzettel",k:t,a:e},function(t){})}function suise(t,e,i){if($("#cng").hide(),e||(e="Artikel",i="Artikel"),console.log("Suche "+t),t.length<3&&t.length>0)$("#suchhinweis").html("mind. 3 Zeichen");else if(0==t.length){$("#suchhinweis").empty(),$("#content .list-group-item").removeClass("gefiltert");var n=$("#content .list-group-item");n.slice(0,5).show(),n.slice(5).hide(),makePages()}else{$("#suchhinweis").html(" Suche läuft ...");var o=0,a=new RegExp(t,"i");$("#content .list-group-item").each(function(t,e){a.test(e.innerHTML)?($(this).removeClass("gefiltert").show(),++o):$(this).addClass("gefiltert").hide()});var n=$("#content .list-group-item:visible");n.slice(0,5).show(),n.slice(5).hide(),0==o?($("#cng").fadeIn(),$("#suchhinweis").html(""),$.get("/fb.fcgi?todo=optimize&wo=texte&was="+t)):(s=o>1?i:e,$("#suchhinweis").empty().append(o+" "+s+" gefunden")),makePages()}}function makePages(){if(cont=$("#content .list-group-item:not(.gefiltert)"),cont.length<2)return void console.log("Keine Einträge für makePages gefunden");cont.length<4?$(".pagination").addClass("disabled"):$(".pagination").removeClass("disabled"),console.log("L: "+cont.length),TMP._paging&&$(".pagination").twbsPagination("destroy"),TMP._paging=$(".pagination").twbsPagination({totalPages:Math.round(cont.length/5),visiblePages:8,startPage:1,first:"",last:"",prev:"",next:"",onPageClick:function(t,e){var i=5*(e-1);return cont.slice().hide(),cont.slice(i,i+5).fadeIn(),!0}})}function updateCounters(){if(vn.m||(vn.m={}),vn.w||(vn.w={}),"object"==typeof vn){var t=0;try{t=Object.keys(vn.m).length+Object.keys(vn.w).length}catch(t){}finally{}t>0?$("._counter_mz_vornamen").html(t):$("._counter_mz_vornamen").html("leer")}else console.log("Kein Objekt!")}function toggleChevron(t){$(t.target).prev(".panel-heading").find("i.indicator").toggleClass("fa-chevron-circle-down fa-chevron-circle-up")}function mischeListe(t){for(var e,i,n=t.length;n;e=Math.floor(Math.random()*n),i=t[--n],t[n]=t[e],t[e]=i);return t}function editPerson(t,e){e||(e="_neu",t="eine neue Person"),BootstrapDialog.show({message:$("



Lade Formular...
").load("/fb.fcgi?todo=getPerson&id="+e),title:"Eintrag für "+t+" bearbeiten"})}function ucfirst(t){return t.charAt(0).toUpperCase()+t.toLowerCase().substr(1)}function lcfirst(t){return t.charAt(0).toLowerCase()+t.substr(1)}function scrollTo(t){if(t)try{$("html, body").animate({scrollTop:$(t).offset().top},"slow")}catch(t){}finally{}}function sortKommentare(t){"no"==t?(mixer_kommentare.sort("age:desc"),$("#dropdownMenu1").html("Neueste oben ")):"nu"==t?(mixer_kommentare.sort("age:asc"),$("#dropdownMenu1").html("Älteste oben ")):"bo"==t?(mixer_kommentare.sort("punkte:desc"),$("#dropdownMenu1").html("Bestbewertete oben ")):(mixer_kommentare.sort("punkte:asc"),$("#dropdownMenu1").html("Bestbewertete unten "))}!function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}(function(t){t.extend(t.fn,{validate:function(e){if(!this.length)return void(e&&e.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing."));var i=t.data(this[0],"validator");return i?i:(this.attr("novalidate","novalidate"),i=new t.validator(e,this[0]),t.data(this[0],"validator",i),i.settings.onsubmit&&(this.on("click.validate",":submit",function(e){i.settings.submitHandler&&(i.submitButton=e.target),t(this).hasClass("cancel")&&(i.cancelSubmit=!0),void 0!==t(this).attr("formnovalidate")&&(i.cancelSubmit=!0)}),this.on("submit.validate",function(e){function n(){var n,s;return!i.settings.submitHandler||(i.submitButton&&(n=t("").attr("name",i.submitButton.name).val(t(i.submitButton).val()).appendTo(i.currentForm)),s=i.settings.submitHandler.call(i,i.currentForm,e),i.submitButton&&n.remove(),void 0!==s&&s)}return i.settings.debug&&e.preventDefault(),i.cancelSubmit?(i.cancelSubmit=!1,n()):i.form()?i.pendingRequest?(i.formSubmitted=!0,!1):n():(i.focusInvalid(),!1)})),i)},valid:function(){var e,i,n;return t(this[0]).is("form")?e=this.validate().form():(n=[],e=!0,i=t(this[0].form).validate(),this.each(function(){e=i.element(this)&&e,n=n.concat(i.errorList)}),i.errorList=n),e},rules:function(e,i){var n,s,o,a,r,l,c=this[0];if(e)switch(n=t.data(c.form,"validator").settings,s=n.rules,o=t.validator.staticRules(c),e){case"add":t.extend(o,t.validator.normalizeRule(i)),delete o.messages,s[c.name]=o,i.messages&&(n.messages[c.name]=t.extend(n.messages[c.name],i.messages));break;case"remove":return i?(l={},t.each(i.split(/\s/),function(e,i){l[i]=o[i],delete o[i],"required"===i&&t(c).removeAttr("aria-required")}),l):(delete s[c.name],o)}return a=t.validator.normalizeRules(t.extend({},t.validator.classRules(c),t.validator.attributeRules(c),t.validator.dataRules(c),t.validator.staticRules(c)),c),a.required&&(r=a.required,delete a.required,a=t.extend({required:r},a),t(c).attr("aria-required","true")),a.remote&&(r=a.remote,delete a.remote,a=t.extend(a,{remote:r})),a}}),t.extend(t.expr[":"],{blank:function(e){return!t.trim(""+t(e).val())},filled:function(e){return!!t.trim(""+t(e).val())},unchecked:function(e){return!t(e).prop("checked")}}),t.validator=function(e,i){this.settings=t.extend(!0,{},t.validator.defaults,e),this.currentForm=i,this.init()},t.validator.format=function(e,i){return 1===arguments.length?function(){var i=t.makeArray(arguments);return i.unshift(e),t.validator.format.apply(this,i)}:(arguments.length>2&&i.constructor!==Array&&(i=t.makeArray(arguments).slice(1)),i.constructor!==Array&&(i=[i]),t.each(i,function(t,i){e=e.replace(new RegExp("\\{"+t+"\\}","g"),function(){return i})}),e)},t.extend(t.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:t([]),errorLabelContainer:t([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(t){this.lastActive=t,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,t,this.settings.errorClass,this.settings.validClass),this.hideThese(this.errorsFor(t)))},onfocusout:function(t){this.checkable(t)||!(t.name in this.submitted)&&this.optional(t)||this.element(t)},onkeyup:function(e,i){var n=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===i.which&&""===this.elementValue(e)||-1!==t.inArray(i.keyCode,n)||(e.name in this.submitted||e===this.lastElement)&&this.element(e)},onclick:function(t){t.name in this.submitted?this.element(t):t.parentNode.name in this.submitted&&this.element(t.parentNode)},highlight:function(e,i,n){"radio"===e.type?this.findByName(e.name).addClass(i).removeClass(n):t(e).addClass(i).removeClass(n)},unhighlight:function(e,i,n){"radio"===e.type?this.findByName(e.name).removeClass(i).addClass(n):t(e).removeClass(i).addClass(n)}},setDefaults:function(e){t.extend(t.validator.defaults,e)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date ( ISO ).",number:"Please enter a valid number.",digits:"Please enter only digits.",creditcard:"Please enter a valid credit card number.",equalTo:"Please enter the same value again.",maxlength:t.validator.format("Please enter no more than {0} characters."),minlength:t.validator.format("Please enter at least {0} characters."),rangelength:t.validator.format("Please enter a value between {0} and {1} characters long."),range:t.validator.format("Please enter a value between {0} and {1}."),max:t.validator.format("Please enter a value less than or equal to {0}."),min:t.validator.format("Please enter a value greater than or equal to {0}.")},autoCreateRanges:!1,prototype:{init:function(){function e(e){var i=t.data(this.form,"validator"),n="on"+e.type.replace(/^validate/,""),s=i.settings;s[n]&&!t(this).is(s.ignore)&&s[n].call(i,this,e)}this.labelContainer=t(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||t(this.currentForm),this.containers=t(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var i,n=this.groups={};t.each(this.settings.groups,function(e,i){"string"==typeof i&&(i=i.split(/\s/)),t.each(i,function(t,i){n[i]=e})}),i=this.settings.rules,t.each(i,function(e,n){i[e]=t.validator.normalizeRule(n)}),t(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox']",e).on("click.validate","select, option, [type='radio'], [type='checkbox']",e),this.settings.invalidHandler&&t(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler),t(this.currentForm).find("[required], [data-rule-required], .required").attr("aria-required","true")},form:function(){return this.checkForm(),t.extend(this.submitted,this.errorMap),this.invalid=t.extend({},this.errorMap),this.valid()||t(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var t=0,e=this.currentElements=this.elements();e[t];t++)this.check(e[t]);return this.valid()},element:function(e){var i=this.clean(e),n=this.validationTargetFor(i),s=!0;return this.lastElement=n,void 0===n?delete this.invalid[i.name]:(this.prepareElement(n),this.currentElements=t(n),s=this.check(n)!==!1,s?delete this.invalid[n.name]:this.invalid[n.name]=!0),t(e).attr("aria-invalid",!s),this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers)),this.showErrors(),s},showErrors:function(e){if(e){t.extend(this.errorMap,e),this.errorList=[];for(var i in e)this.errorList.push({message:e[i],element:this.findByName(i)[0]});this.successList=t.grep(this.successList,function(t){return!(t.name in e)})}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){t.fn.resetForm&&t(this.currentForm).resetForm(),this.submitted={},this.lastElement=null,this.prepareForm(),this.hideErrors();var e,i=this.elements().removeData("previousValue").removeAttr("aria-invalid");if(this.settings.unhighlight)for(e=0;i[e];e++)this.settings.unhighlight.call(this,i[e],this.settings.errorClass,"");else i.removeClass(this.settings.errorClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(t){var e,i=0;for(e in t)i++;return i},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(t){t.not(this.containers).text(""),this.addWrapper(t).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{t(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").focus().trigger("focusin")}catch(t){}},findLastActive:function(){var e=this.lastActive;return e&&1===t.grep(this.errorList,function(t){return t.element.name===e.name}).length&&e},elements:function(){var e=this,i={};return t(this.currentForm).find("input, select, textarea").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){return!this.name&&e.settings.debug&&window.console&&console.error("%o has no name assigned",this),!(this.name in i||!e.objectLength(t(this).rules()))&&(i[this.name]=!0,!0)})},clean:function(e){return t(e)[0]},errors:function(){var e=this.settings.errorClass.split(" ").join(".");return t(this.settings.errorElement+"."+e,this.errorContext)},reset:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=t([]),this.toHide=t([]),this.currentElements=t([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(t){this.reset(),this.toHide=this.errorsFor(t)},elementValue:function(e){var i,n=t(e),s=e.type;return"radio"===s||"checkbox"===s?this.findByName(e.name).filter(":checked").val():"number"===s&&void 0!==e.validity?!e.validity.badInput&&n.val():(i=n.val(),"string"==typeof i?i.replace(/\r/g,""):i)},check:function(e){e=this.validationTargetFor(this.clean(e));var i,n,s,o=t(e).rules(),a=t.map(o,function(t,e){return e}).length,r=!1,l=this.elementValue(e);for(n in o){s={method:n,parameters:o[n]};try{if("dependency-mismatch"===(i=t.validator.methods[n].call(this,l,e,s.parameters))&&1===a){r=!0;continue}if(r=!1,"pending"===i)return void(this.toHide=this.toHide.not(this.errorsFor(e)));if(!i)return this.formatAndAdd(e,s),!1}catch(t){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+e.id+", check the '"+s.method+"' method.",t),t instanceof TypeError&&(t.message+=". Exception occurred when checking element "+e.id+", check the '"+s.method+"' method."),t}}if(!r)return this.objectLength(o)&&this.successList.push(e),!0},customDataMessage:function(e,i){return t(e).data("msg"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase())||t(e).data("msg")},customMessage:function(t,e){var i=this.settings.messages[t];return i&&(i.constructor===String?i:i[e])},findDefined:function(){for(var t=0;tWarning: No message defined for "+e.name+"")},formatAndAdd:function(e,i){var n=this.defaultMessage(e,i.method),s=/\$?\{(\d+)\}/g;"function"==typeof n?n=n.call(this,i.parameters,e):s.test(n)&&(n=t.validator.format(n.replace(s,"{$1}"),i.parameters)),this.errorList.push({message:n,element:e,method:i.method}),this.errorMap[e.name]=n,this.submitted[e.name]=n},addWrapper:function(t){return this.settings.wrapper&&(t=t.add(t.parent(this.settings.wrapper))),t},defaultShowErrors:function(){var t,e,i;for(t=0;this.errorList[t];t++)i=this.errorList[t],this.settings.highlight&&this.settings.highlight.call(this,i.element,this.settings.errorClass,this.settings.validClass),this.showLabel(i.element,i.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(t=0;this.successList[t];t++)this.showLabel(this.successList[t]);if(this.settings.unhighlight)for(t=0,e=this.validElements();e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return t(this.errorList).map(function(){return this.element})},showLabel:function(e,i){var n,s,o,a=this.errorsFor(e),r=this.idOrName(e),l=t(e).attr("aria-describedby");a.length?(a.removeClass(this.settings.validClass).addClass(this.settings.errorClass),a.html(i)):(a=t("<"+this.settings.errorElement+">").attr("id",r+"-error").addClass(this.settings.errorClass).html(i||""),n=a,this.settings.wrapper&&(n=a.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(n):this.settings.errorPlacement?this.settings.errorPlacement(n,t(e)):n.insertAfter(e),a.is("label")?a.attr("for",r):0===a.parents("label[for='"+r+"']").length&&(o=a.attr("id").replace(/(:|\.|\[|\]|\$)/g,"\\$1"),l?l.match(new RegExp("\\b"+o+"\\b"))||(l+=" "+o):l=o,t(e).attr("aria-describedby",l),(s=this.groups[e.name])&&t.each(this.groups,function(e,i){i===s&&t("[name='"+e+"']",this.currentForm).attr("aria-describedby",a.attr("id"))}))),!i&&this.settings.success&&(a.text(""),"string"==typeof this.settings.success?a.addClass(this.settings.success):this.settings.success(a,e)),this.toShow=this.toShow.add(a)},errorsFor:function(e){var i=this.idOrName(e),n=t(e).attr("aria-describedby"),s="label[for='"+i+"'], label[for='"+i+"'] *";return n&&(s=s+", #"+n.replace(/\s+/g,", #")),this.errors().filter(s)},idOrName:function(t){return this.groups[t.name]||(this.checkable(t)?t.name:t.id||t.name)},validationTargetFor:function(e){return this.checkable(e)&&(e=this.findByName(e.name)),t(e).not(this.settings.ignore)[0]},checkable:function(t){return/radio|checkbox/i.test(t.type)},findByName:function(e){return t(this.currentForm).find("[name='"+e+"']")},getLength:function(e,i){switch(i.nodeName.toLowerCase()){case"select":return t("option:selected",i).length;case"input":if(this.checkable(i))return this.findByName(i.name).filter(":checked").length}return e.length},depend:function(t,e){return!this.dependTypes[typeof t]||this.dependTypes[typeof t](t,e)},dependTypes:{boolean:function(t){return t},string:function(e,i){return!!t(e,i.form).length},function:function(t,e){return t(e)}},optional:function(e){var i=this.elementValue(e);return!t.validator.methods.required.call(this,i,e)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,this.pending[t.name]=!0)},stopRequest:function(e,i){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[e.name],i&&0===this.pendingRequest&&this.formSubmitted&&this.form()?(t(this.currentForm).submit(),this.formSubmitted=!1):!i&&0===this.pendingRequest&&this.formSubmitted&&(t(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(e){return t.data(e,"previousValue")||t.data(e,"previousValue",{old:null,valid:!0,message:this.defaultMessage(e,"remote")})},destroy:function(){this.resetForm(),t(this.currentForm).off(".validate").removeData("validator")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(e,i){e.constructor===String?this.classRuleSettings[e]=i:t.extend(this.classRuleSettings,e)},classRules:function(e){var i={},n=t(e).attr("class");return n&&t.each(n.split(" "),function(){this in t.validator.classRuleSettings&&t.extend(i,t.validator.classRuleSettings[this])}),i},normalizeAttributeRule:function(t,e,i,n){/min|max/.test(i)&&(null===e||/number|range|text/.test(e))&&(n=Number(n),isNaN(n)&&(n=void 0)),n||0===n?t[i]=n:e===i&&"range"!==e&&(t[i]=!0)},attributeRules:function(e){var i,n,s={},o=t(e),a=e.getAttribute("type");for(i in t.validator.methods)"required"===i?(n=e.getAttribute(i),""===n&&(n=!0),n=!!n):n=o.attr(i),this.normalizeAttributeRule(s,a,i,n);return s.maxlength&&/-1|2147483647|524288/.test(s.maxlength)&&delete s.maxlength,s},dataRules:function(e){var i,n,s={},o=t(e),a=e.getAttribute("type");for(i in t.validator.methods)n=o.data("rule"+i.charAt(0).toUpperCase()+i.substring(1).toLowerCase()),this.normalizeAttributeRule(s,a,i,n);return s},staticRules:function(e){var i={},n=t.data(e.form,"validator");return n.settings.rules&&(i=t.validator.normalizeRule(n.settings.rules[e.name])||{}),i},normalizeRules:function(e,i){return t.each(e,function(n,s){if(s===!1)return void delete e[n];if(s.param||s.depends){var o=!0;switch(typeof s.depends){case"string":o=!!t(s.depends,i.form).length;break;case"function":o=s.depends.call(i,i)}o?e[n]=void 0===s.param||s.param:delete e[n]}}),t.each(e,function(n,s){e[n]=t.isFunction(s)?s(i):s}),t.each(["minlength","maxlength"],function(){e[this]&&(e[this]=Number(e[this]))}),t.each(["rangelength","range"],function(){var i;e[this]&&(t.isArray(e[this])?e[this]=[Number(e[this][0]),Number(e[this][1])]:"string"==typeof e[this]&&(i=e[this].replace(/[\[\]]/g,"").split(/[\s,]+/),e[this]=[Number(i[0]),Number(i[1])]))}),t.validator.autoCreateRanges&&(null!=e.min&&null!=e.max&&(e.range=[e.min,e.max],delete e.min,delete e.max),null!=e.minlength&&null!=e.maxlength&&(e.rangelength=[e.minlength,e.maxlength],delete e.minlength,delete e.maxlength)),e},normalizeRule:function(e){if("string"==typeof e){var i={};t.each(e.split(/\s/),function(){i[this]=!0}),e=i}return e},addMethod:function(e,i,n){t.validator.methods[e]=i,t.validator.messages[e]=void 0!==n?n:t.validator.messages[e],i.length<3&&t.validator.addClassRules(e,t.validator.normalizeRule(e))},methods:{required:function(e,i,n){if(!this.depend(n,i))return"dependency-mismatch";if("select"===i.nodeName.toLowerCase()){var s=t(i).val();return s&&s.length>0}return this.checkable(i)?this.getLength(e,i)>0:e.length>0},email:function(t,e){return this.optional(e)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(t)},url:function(t,e){return this.optional(e)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,})).?)(?::\d{2,5})?(?:[\/?#]\S*)?$/i.test(t)},date:function(t,e){return this.optional(e)||!/Invalid|NaN/.test(new Date(t).toString())},dateISO:function(t,e){return this.optional(e)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(t)},number:function(t,e){return this.optional(e)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(t)},digits:function(t,e){return this.optional(e)||/^\d+$/.test(t)},creditcard:function(t,e){if(this.optional(e))return"dependency-mismatch";if(/[^0-9 \-]+/.test(t))return!1;var i,n,s=0,o=0,a=!1;if(t=t.replace(/\D/g,""),t.length<13||t.length>19)return!1;for(i=t.length-1;i>=0;i--)n=t.charAt(i),o=parseInt(n,10),a&&(o*=2)>9&&(o-=9),s+=o,a=!a;return s%10==0},minlength:function(e,i,n){var s=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||s>=n},maxlength:function(e,i,n){var s=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||n>=s},rangelength:function(e,i,n){var s=t.isArray(e)?e.length:this.getLength(e,i);return this.optional(i)||s>=n[0]&&s<=n[1]},min:function(t,e,i){return this.optional(e)||t>=i},max:function(t,e,i){return this.optional(e)||i>=t},range:function(t,e,i){return this.optional(e)||t>=i[0]&&t<=i[1]},equalTo:function(e,i,n){var s=t(n) ;return this.settings.onfocusout&&s.off(".validate-equalTo").on("blur.validate-equalTo",function(){t(i).valid()}),e===s.val()},remote:function(e,i,n){if(this.optional(i))return"dependency-mismatch";var s,o,a=this.previousValue(i);return this.settings.messages[i.name]||(this.settings.messages[i.name]={}),a.originalMessage=this.settings.messages[i.name].remote,this.settings.messages[i.name].remote=a.message,n="string"==typeof n&&{url:n}||n,a.old===e?a.valid:(a.old=e,s=this,this.startRequest(i),o={},o[i.name]=e,t.ajax(t.extend(!0,{mode:"abort",port:"validate"+i.name,dataType:"json",data:o,context:s.currentForm,success:function(n){var o,r,l,c=n===!0||"true"===n;s.settings.messages[i.name].remote=a.originalMessage,c?(l=s.formSubmitted,s.prepareElement(i),s.formSubmitted=l,s.successList.push(i),delete s.invalid[i.name],s.showErrors()):(o={},r=n||s.defaultMessage(i,"remote"),o[i.name]=a.message=t.isFunction(r)?r(e):r,s.invalid[i.name]=!0,s.showErrors(o)),a.valid=c,s.stopRequest(i,c)}},n)),"pending")}}});var e,i={};t.ajaxPrefilter?t.ajaxPrefilter(function(t,e,n){var s=t.port;"abort"===t.mode&&(i[s]&&i[s].abort(),i[s]=n)}):(e=t.ajax,t.ajax=function(n){var s=("mode"in n?n:t.ajaxSettings).mode,o=("port"in n?n:t.ajaxSettings).port;return"abort"===s?(i[o]&&i[o].abort(),i[o]=e.apply(this,arguments),i[o]):e.apply(this,arguments)})}),function(t){t.extend(t.validator.messages,{required:"Dieses Feld ist ein Pflichtfeld.",maxlength:t.validator.format("Trage hier bitte bitte maximal {0} Zeichen ein."),minlength:t.validator.format("Trage hier bitte mindestens {0} Zeichen ein."),rangelength:t.validator.format("Bitte mindestens {0} und maximal {1} Zeichen eingeben"),email:"Bitte eine gültige E-Mail Adresse eintragen",url:"Bitte eine gültige URL eintragen",date:"Bitte ein gültiges Datum eintragen",number:"Bitte trage hier eine Nummer ein.",digits:"Bitte nur Ziffern eingeben",equalTo:"Bitte denselben Wert wiederholen.",range:t.validator.format("Gib bitte einen Wert zwischen {0} und {1} ein."),max:t.validator.format("Gib bitte einen Wert kleiner oder gleich {0} ein."),min:t.validator.format("Gib bitte einen Wert größer oder gleich {0} ein."),creditcard:"Geben Sie bitte eine gültige Kreditkarten-Nummer ein."})}(jQuery),jQuery.extend(jQuery.validator.methods,{date:function(t,e){return this.optional(e)||/^\d\d?\.\d\d?\.\d\d\d?\d?$/.test(t)},number:function(t,e){return this.optional(e)||/^-?(?:\d+|\d{1,3}(?:\.\d{3})+)(?:,\d+)?$/.test(t)}}),function(t,e,i,n){var s=t.fn.twbsPagination,o=function(i,n){if(this.$element=t(i),this.options=t.extend({},t.fn.twbsPagination.defaults,n),this.options.startPage<1||this.options.startPage>this.options.totalPages)throw new Error("Start page option is incorrect");if(this.options.totalPages=parseInt(this.options.totalPages),isNaN(this.options.totalPages))throw new Error("Total pages option is not correct!");if(this.options.visiblePages=parseInt(this.options.visiblePages),isNaN(this.options.visiblePages))throw new Error("Visible pages option is not correct!");if(this.options.totalPages"),this.$listContainer.addClass(this.options.paginationClass),"UL"!==a&&this.$element.append(this.$listContainer),this.render(this.getPages(this.options.startPage)),this.setupEvents(),this};o.prototype={constructor:o,destroy:function(){return this.$element.empty(),this.$element.removeData("twbs-pagination"),this.$element.unbind("page"),this},show:function(t){if(t<1||t>this.options.totalPages)throw new Error("Page is incorrect.");return this.render(this.getPages(t)),this.setupEvents(),this.$element.trigger("page",t),this},buildListItems:function(e){var i=t();if(this.options.first&&(i=i.add(this.buildItem("first",1))),this.options.prev){var n=e.currentPage>1?e.currentPage-1:this.options.loop?this.options.totalPages:1;i=i.add(this.buildItem("prev",n))}for(var s=0;s"),s=t(""),o=null;switch(e){case"page":o=i,n.addClass(this.options.pageClass);break;case"first":o=this.options.first,n.addClass(this.options.firstClass);break;case"prev":o=this.options.prev,n.addClass(this.options.prevClass);break;case"next":o=this.options.next,n.addClass(this.options.nextClass);break;case"last":o=this.options.last,n.addClass(this.options.lastClass)}return n.data("page",i),n.data("page-type",e),n.append(s.attr("href",this.makeHref(i)).html(o)),n},getPages:function(t){var e=[],i=Math.floor(this.options.visiblePages/2),n=t-i+1-this.options.visiblePages%2,s=t+i;n<=0&&(n=1,s=this.options.visiblePages),s>this.options.totalPages&&(n=this.options.totalPages-this.options.visiblePages+1,s=this.options.totalPages);for(var o=n;o<=s;)e.push(o),o++;return{currentPage:t,numeric:e}},render:function(e){this.$listContainer.children().remove(),this.$listContainer.append(this.buildListItems(e));var i=this.$listContainer.children();i.filter(function(){return t(this).data("page")===e.currentPage&&"page"===t(this).data("page-type")}).addClass(this.options.activeClass),i.filter(function(){return"first"===t(this).data("page-type")}).toggleClass(this.options.disabledClass,1===e.currentPage),i.filter(function(){return"last"===t(this).data("page-type")}).toggleClass(this.options.disabledClass,e.currentPage===this.options.totalPages),i.filter(function(){return"prev"===t(this).data("page-type")}).toggleClass(this.options.disabledClass,!this.options.loop&&1===e.currentPage),i.filter(function(){return"next"===t(this).data("page-type")}).toggleClass(this.options.disabledClass,!this.options.loop&&e.currentPage===this.options.totalPages)},setupEvents:function(){var e=this;this.$listContainer.find("li").each(function(){var i=t(this);if(i.off(),i.hasClass(e.options.disabledClass)||i.hasClass(e.options.activeClass))return void i.click(function(t){t.preventDefault()});i.click(function(t){!e.options.href&&t.preventDefault(),e.show(parseInt(i.data("page"),10))})})},makeHref:function(t){return this.options.href?this.options.href.replace(this.options.hrefVariable,t):"#"}},t.fn.twbsPagination=function(e){var i,n=Array.prototype.slice.call(arguments,1),s=t(this),a=s.data("twbs-pagination"),r="object"==typeof e&&e;return a||s.data("twbs-pagination",a=new o(this,r)),"string"==typeof e&&(i=a[e].apply(a,n)),void 0===i?s:i},t.fn.twbsPagination.defaults={totalPages:0,startPage:1,visiblePages:5,href:!1,hrefVariable:"{{number}}",first:"First",prev:"Previous",next:"Next",last:"Last",loop:!1,onPageClick:null,paginationClass:"pagination",nextClass:"next",prevClass:"prev",lastClass:"last",firstClass:"first",pageClass:"page",activeClass:"active",disabledClass:"disabled"},t.fn.twbsPagination.Constructor=o,t.fn.twbsPagination.noConflict=function(){return t.fn.twbsPagination=s,this}}(jQuery,window,document),function(t,e,i){"use strict";t.fn.backstretch=function(n,o){return(n===i||0===n.length)&&t.error("No images were supplied for Backstretch"),0===t(e).scrollTop()&&e.scrollTo(0,0),this.each(function(){var e=t(this),i=e.data("backstretch");i&&(o=t.extend(i.options,o),i.destroy(!0)),i=new s(this,n,o),e.data("backstretch",i)})},t.backstretch=function(e,i){return t("body").backstretch(e,i).data("backstretch")},t.expr[":"].backstretch=function(e){return t(e).data("backstretch")!==i},t.fn.backstretch.defaults={centeredX:!0,centeredY:!0,duration:5e3,fade:0};var n={wrap:{left:0,top:0,overflow:"hidden",margin:0,padding:0,height:"100%",width:"100%",zIndex:-999999},img:{position:"absolute",display:"none",margin:0,padding:0,border:"none",width:"auto",height:"auto",maxWidth:"none",zIndex:-999999}},s=function(i,s,a){if(this.options=t.extend({},t.fn.backstretch.defaults,a||{}),this.images=t.isArray(s)?s:[s],t.each(this.images,function(){t("")[0].src=this}),this.isBody=i===document.body,this.$container=t(i),this.$wrap=t('
').css(n.wrap).appendTo(this.$container),this.$root=this.isBody?t(o?e:document):this.$container,!this.isBody){var r=this.$container.css("position"),l=this.$container.css("zIndex");this.$container.css({position:"static"===r?"relative":r,zIndex:"auto"===l?0:l,background:"none"}),this.$wrap.css({zIndex:-999998})}this.$wrap.css({position:this.isBody&&o?"fixed":"absolute"}),this.index=0,this.show(this.index),t(e).on("resize.backstretch",t.proxy(this.resize,this)).on("orientationchange.backstretch",t.proxy(function(){this.isBody&&0===e.pageYOffset&&(e.scrollTo(0,1),this.resize())},this))};s.prototype={resize:function(){try{var t,i={left:0,top:0},n=this.isBody?this.$root.width():this.$root.innerWidth(),s=n,o=this.isBody?e.innerHeight?e.innerHeight:this.$root.height():this.$root.innerHeight(),a=s/this.$img.data("ratio");a>=o?(t=(a-o)/2,this.options.centeredY&&(i.top="-"+t+"px")):(a=o,s=a*this.$img.data("ratio"),t=(s-n)/2,this.options.centeredX&&(i.left="-"+t+"px")),this.$wrap.css({width:n,height:o}).find("img:not(.deleteable)").css({width:s,height:a}).css(i)}catch(t){}return this},show:function(e){if(!(Math.abs(e)>this.images.length-1)){this.index=e;var i=this,s=i.$wrap.find("img").addClass("deleteable"),o=t.Event("backstretch.show",{relatedTarget:i.$container[0]});return clearInterval(i.interval),i.$img=t("").css(n.img).bind("load",function(e){var n=this.width||t(e.target).width(),a=this.height||t(e.target).height();t(this).data("ratio",n/a),t(this).fadeIn(i.options.speed||i.options.fade,function(){s.remove(),i.paused||i.cycle(),i.$container.trigger(o,i)}),i.resize()}).appendTo(i.$wrap),i.$img.attr("src",i.images[e]),i}},next:function(){return this.show(this.index1&&(clearInterval(this.interval),this.interval=setInterval(t.proxy(function(){this.paused||this.next()},this),this.options.duration)),this},destroy:function(i){t(e).off("resize.backstretch orientationchange.backstretch"),clearInterval(this.interval),i||this.$wrap.remove(),this.$container.removeData("backstretch")}};var o=function(){var t=navigator.userAgent,i=navigator.platform,n=t.match(/AppleWebKit\/([0-9]+)/),s=!!n&&n[1],o=t.match(/Fennec\/([0-9]+)/),a=!!o&&o[1],r=t.match(/Opera Mobi\/([0-9]+)/),l=!!r&&r[1],c=t.match(/MSIE ([0-9]+)/),h=!!c&&c[1];return!((i.indexOf("iPhone")>-1||i.indexOf("iPad")>-1||i.indexOf("iPod")>-1)&&s&&s<534||e.operamini&&"[object OperaMini]"==={}.toString.call(e.operamini)||r&&l<7458||t.indexOf("Android")>-1&&s&&s<533||a&&a<6||"palmGetResource"in e&&s&&s<534||t.indexOf("MeeGo")>-1&&t.indexOf("NokiaBrowser/8.5.0")>-1||h&&h<=6)}()}(jQuery,window),jQuery.fn.sexyVote=function(t){t=t||{};var e={defmsg:'Wähle mit der Maus',trenn:" ",activeImageSrc:"http://q3w.de/g/voting_aktuell.png",passiveImageSrc:"http://q3w.de/g/voting_inaktiv.png",maxScore:5,fn:new Function,messages:["Speichere ...","Schlecht","Nicht gut","Geht so","Gut","Sehr gut"]};return t=jQuery.extend(e,t),this.each(function(){for(var e=jQuery(this),i=0,n=2*t.maxScore;i").appendTo(e);jQuery(t.trenn+t.defmsg).appendTo(e),e.find("img:even").attr("src",t.passiveImageSrc).css({display:"inline"}).bind("mouseover",function(i){var n=e.find("img:even").index(i.target)+1;e.find("img:even").slice(0,n).css({display:"none"}),e.find("img:odd").slice(0,n).css({display:"inline"}),e.find("span").hide().empty().fadeIn("fast").append(t.messages[n])}).end().find("img:odd").attr("src",t.activeImageSrc).css({display:"none"}).bind("mouseout",function(i){var n=e.find("img:odd").index(i.target)+1;e.find("img:odd").slice(0,n).css({display:"none"}),e.find("img:even").slice(0,n).css({display:"inline"}),e.find("span").empty().append(t.defmsg)}).bind("click",function(i){e.find("img").unbind("mouseover").unbind("mouseout").unbind("click"),e.find("span").html(t.messages[0]),t.fn.call(this,i,e.find("img:odd").index(i.target)+1)})})},function(t){var e={init:function(i){return this.each(function(){e.destroy.call(this),this.opt=t.extend(!0,{},t.fn.raty.defaults,i);var n=t(this),s=["number","readOnly","score","scoreName"];e._callback.call(this,s),this.opt.precision&&e._adjustPrecision.call(this),this.opt.number=e._between(this.opt.number,0,this.opt.numberMax),this.opt.path=this.opt.path||"",this.opt.path&&"/"!==this.opt.path.slice(this.opt.path.length-1,this.opt.path.length)&&(this.opt.path+="/"),this.stars=e._createStars.call(this),this.score=e._createScore.call(this),e._apply.call(this,this.opt.score);var o=this.opt.space?4:0,a=this.opt.width||this.opt.number*this.opt.size+this.opt.number*o;this.opt.cancel&&(this.cancel=e._createCancel.call(this),a+=this.opt.size+o),this.opt.readOnly?e._lock.call(this):(n.css("cursor","pointer"),e._binds.call(this)),this.opt.width!==!1&&n.css("width",a),e._target.call(this,this.opt.score),n.data({settings:this.opt,raty:!0})})},_adjustPrecision:function(){this.opt.targetType="score",this.opt.half=!0},_apply:function(t){t&&t>0&&(t=e._between(t,0,this.opt.number),this.score.val(t)),e._fill.call(this,t),t&&e._roundStars.call(this,t)},_between:function(t,e,i){return Math.min(Math.max(parseFloat(t),e),i)},_binds:function(){this.cancel&&e._bindCancel.call(this),e._bindClick.call(this),e._bindOut.call(this),e._bindOver.call(this)},_bindCancel:function(){e._bindClickCancel.call(this),e._bindOutCancel.call(this),e._bindOverCancel.call(this)},_bindClick:function(){var e=this,i=t(e);e.stars.on("click.raty",function(t){e.score.val(e.opt.half||e.opt.precision?i.data("score"):this.alt),e.opt.click&&e.opt.click.call(e,parseFloat(e.score.val()),t)})},_bindClickCancel:function(){var t=this;t.cancel.on("click.raty",function(e){t.score.removeAttr("value"),t.opt.click&&t.opt.click.call(t,null,e)})},_bindOut:function(){var i=this;t(this).on("mouseleave.raty",function(t){var n=parseFloat(i.score.val())||void 0;e._apply.call(i,n),e._target.call(i,n,t),i.opt.mouseout&&i.opt.mouseout.call(i,n,t)})},_bindOutCancel:function(){var e=this;e.cancel.on("mouseleave.raty",function(i){t(this).attr("src",e.opt.path+e.opt.cancelOff),e.opt.mouseout&&e.opt.mouseout.call(e,e.score.val()||null,i)})},_bindOverCancel:function(){var i=this;i.cancel.on("mouseover.raty",function(n){t(this).attr("src",i.opt.path+i.opt.cancelOn),i.stars.attr("src",i.opt.path+i.opt.starOff),e._target.call(i,null,n),i.opt.mouseover&&i.opt.mouseover.call(i,null)})},_bindOver:function(){var i=this,n=t(i),s=i.opt.half?"mousemove.raty":"mouseover.raty";i.stars.on(s,function(s){var o=parseInt(this.alt,10);if(i.opt.half){var a=parseFloat((s.pageX-t(this).offset().left)/i.opt.size),r=a>.5?1:.5;o=o-1+r,e._fill.call(i,o),i.opt.precision&&(o=o-r+a),e._roundStars.call(i,o),n.data("score",o)}else e._fill.call(i,o);e._target.call(i,o,s),i.opt.mouseover&&i.opt.mouseover.call(i,o,s)})},_callback:function(t){for(i in t)"function"==typeof this.opt[t[i]]&&(this.opt[t[i]]=this.opt[t[i]].call(this))},_createCancel:function(){var e=t(this),i=this.opt.path+this.opt.cancelOff,n=t("",{src:i,alt:"x",title:this.opt.cancelHint,class:"raty-cancel"});return"left"==this.opt.cancelPlace?e.prepend(" ").prepend(n):e.append(" ").append(n),n},_createScore:function(){return t("",{type:"hidden",name:this.opt.scoreName}).appendTo(this)},_createStars:function(){for(var i=t(this),n=1;n<=this.opt.number;n++){var s=e._getHint.call(this,n),o=this.opt.score&&this.opt.score>=n?"starOn":"starOff";o=this.opt.path+this.opt[o],t("",{src:o,alt:n,title:s}).appendTo(this),this.opt.space&&i.append(ni){var a=e.opt.iconRange[i],r=a.on||e.opt.starOn,l=a.off||e.opt.starOff,c=o?r:l;n<=a.range&&s.attr("src",e.opt.path+c),n==a.range&&i++}else{var c=o?"starOn":"starOff";s.attr("src",this.opt.path+this.opt[c])}}},_getHint:function(t){var e=this.opt.hints[t-1];return""===e?"":e||t},_lock:function(){var i=parseInt(this.score.val(),10),n=i?e._getHint.call(this,i):this.opt.noRatedMsg;t(this).data("readonly",!0).css("cursor","").attr("title",n),this.score.attr("readonly","readonly"),this.stars.attr("title",n),this.cancel&&this.cancel.hide()},_roundStars:function(t){var e=(t-Math.floor(t)).toFixed(2);if(e>this.opt.round.down){var i="starOn";this.opt.halfShow&&e1?i:i[0]},readOnly:function(i){return this.each(function(){var n=t(this);n.data("readonly")!==i&&(i?(n.off(".raty").children("img").off(".raty"),e._lock.call(this)):(e._binds.call(this),e._unlock.call(this)),n.data("readonly",i))})},reload:function(){return e.set.call(this,{})},score:function(){return arguments.length?e.setScore.apply(this,arguments):e.getScore.call(this)},set:function(e){return this.each(function(){var i=t(this),n=i.data("settings"),s=t.extend({},n,e);i.raty(s)})},setScore:function(i){return t(this).each(function(){t(this).data("readonly")!==!0&&(e._apply.call(this,i),e._target.call(this,i))})}};t.fn.raty=function(i){return e[i]?e[i].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof i&&i?void t.error("Method "+i+" does not exist!"):e.init.apply(this,arguments)},t.fn.raty.defaults={cancel:!1,cancelHint:"Cancel this rating!",cancelOff:"cancel-off.png",cancelOn:"cancel-on.png",cancelPlace:"left",click:void 0,half:!1,halfShow:!0,hints:["bad","poor","regular","good","gorgeous"],iconRange:void 0,mouseout:void 0,mouseover:void 0,noRatedMsg:"Not rated yet!",number:5,numberMax:20,path:"",precision:!1,readOnly:!1,round:{down:.25,full:.6,up:.76},score:void 0,scoreName:"score",single:!1,size:16,space:!0,starHalf:"star-half.png",starOff:"star-off.png",starOn:"star-on.png",target:void 0,targetFormat:"{score}",targetKeep:!1,targetText:"",targetType:"hint",width:void 0}}(jQuery),function(t){t.fn.serializeHash2=function(){function e(t,i){var n=t.lastIndexOf("[");if(n==-1){var s={};return s[t]=i,s}var o=t.substr(0,n),a={};return a[t.substring(n+1,t.length-1)]=i,e(o,a)}var i=new Object,n=t(this).find(":input").get();return t.each(n,function(){if(this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/hidden|text|search|tel|url|email|password|datetime|date|month|week|time|datetime-local|number|range|color/i.test(this.type))){var n=t(this).val();if(void 0!==i[this.name])if("string"==typeof i[this.name]){var s=new Array;s.push(i[this.name]),s.push(n),i[this.name]=s}else i[this.name].push(n);else t.extend(!0,i,e(this.name,n))}}),i}}(jQuery),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports&&"function"==typeof require?require("jquery"):jQuery)}(function(t){"use strict";function e(i,n){var s=function(){},o=this,a={ajaxSettings:{},autoSelectFirst:!1,appendTo:document.body,serviceUrl:null,lookup:null,onSelect:null,width:"auto",minChars:1,maxHeight:300,deferRequestBy:0,params:{},formatResult:e.formatResult,delimiter:null,zIndex:9999,type:"GET",noCache:!1,onSearchStart:s,onSearchComplete:s,onSearchError:s,preserveInput:!1,containerClass:"autocomplete-suggestions",tabDisabled:!1,dataType:"text",currentRequest:null,triggerSelectOnValidInput:!0,preventBadQueries:!0,lookupFilter:function(t,e,i){return-1!==t.value.toLowerCase().indexOf(i)},paramName:"query",transformResult:function(e){return"string"==typeof e?t.parseJSON(e):e},showNoSuggestionNotice:!1,noSuggestionNotice:"No results",orientation:"bottom",forceFixPosition:!1};o.element=i,o.el=t(i),o.suggestions=[],o.badQueries=[],o.selectedIndex=-1,o.currentValue=o.element.value,o.intervalId=0,o.cachedResponse={},o.onChangeInterval=null,o.onChange=null,o.isLocal=!1,o.suggestionsContainer=null,o.noSuggestionsContainer=null,o.options=t.extend({},a,n),o.classes={selected:"autocomplete-selected",suggestion:"autocomplete-suggestion"},o.hint=null,o.hintValue="",o.selection=null,o.initialize(),o.setOptions(n)}var i=function(){return{escapeRegExChars:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},createNode:function(t){var e=document.createElement("div");return e.className=t,e.style.position="absolute",e.style.display="none",e}}}(),n={ESC:27,TAB:9,RETURN:13,LEFT:37,UP:38,RIGHT:39,DOWN:40};e.utils=i,t.Autocomplete=e,e.formatResult=function(t,e){var n=t.value.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),s="("+i.escapeRegExChars(e)+")";return n.replace(new RegExp(s,"gi"),"$1")},e.prototype={killerFn:null,initialize:function(){var i,n=this,s="."+n.classes.suggestion,o=n.classes.selected,a=n.options;n.element.setAttribute("autocomplete","off"),n.killerFn=function(e){0===t(e.target).closest("."+n.options.containerClass).length&&(n.killSuggestions(),n.disableKillerFn())},n.noSuggestionsContainer=t('
').html(this.options.noSuggestionNotice).get(0),n.suggestionsContainer=e.utils.createNode(a.containerClass),i=t(n.suggestionsContainer),i.appendTo(a.appendTo),"auto"!==a.width&&i.width(a.width),i.on("mouseover.autocomplete",s,function(){n.activate(t(this).data("index"))}),i.on("mouseout.autocomplete",function(){n.selectedIndex=-1,i.children("."+o).removeClass(o)}),i.on("click.autocomplete",s,function(){n.select(t(this).data("index"))}),n.fixPositionCapture=function(){n.visible&&n.fixPosition()},t(window).on("resize.autocomplete",n.fixPositionCapture),n.el.on("keydown.autocomplete",function(t){n.onKeyPress(t)}),n.el.on("keyup.autocomplete",function(t){n.onKeyUp(t)}),n.el.on("blur.autocomplete",function(){n.onBlur()}),n.el.on("focus.autocomplete",function(){n.onFocus()}),n.el.on("change.autocomplete",function(t){n.onKeyUp(t)}),n.el.on("input.autocomplete",function(t){n.onKeyUp(t)})},onFocus:function(){var t=this;t.fixPosition(),0===t.options.minChars&&0===t.el.val().length&&t.onValueChange()},onBlur:function(){this.enableKillerFn()},abortAjax:function(){var t=this;t.currentRequest&&(t.currentRequest.abort(),t.currentRequest=null)},setOptions:function(e){var i=this,n=i.options;t.extend(n,e),i.isLocal=t.isArray(n.lookup),i.isLocal&&(n.lookup=i.verifySuggestionsFormat(n.lookup)),n.orientation=i.validateOrientation(n.orientation,"bottom"),t(i.suggestionsContainer).css({"max-height":n.maxHeight+"px",width:n.width+"px","z-index":n.zIndex})},clearCache:function(){this.cachedResponse={},this.badQueries=[]},clear:function(){this.clearCache(),this.currentValue="",this.suggestions=[]},disable:function(){var t=this;t.disabled=!0,clearInterval(t.onChangeInterval),t.abortAjax()},enable:function(){this.disabled=!1},fixPosition:function(){var e=this,i=t(e.suggestionsContainer),n=i.parent().get(0);if(n===document.body||e.options.forceFixPosition){var s=e.options.orientation,o=i.outerHeight(),a=e.el.outerHeight(),r=e.el.offset(),l={top:r.top,left:r.left};if("auto"===s){var c=t(window).height(),h=t(window).scrollTop(),u=-h+r.top-o,d=h+c-(r.top+a+o);s=Math.max(u,d)===u?"top":"bottom"}if(l.top+="top"===s?-o:a,n!==document.body){var f,p=i.css("opacity");e.visible||i.css("opacity",0).show(),f=i.offsetParent().offset(),l.top-=f.top,l.left-=f.left,e.visible||i.css("opacity",p).hide()}"auto"===e.options.width&&(l.width=e.el.outerWidth()-2+"px"),i.css(l)}},enableKillerFn:function(){var e=this;t(document).on("click.autocomplete",e.killerFn)},disableKillerFn:function(){var e=this;t(document).off("click.autocomplete",e.killerFn)},killSuggestions:function(){var t=this;t.stopKillSuggestions(),t.intervalId=window.setInterval(function(){t.hide(),t.stopKillSuggestions()},50)},stopKillSuggestions:function(){window.clearInterval(this.intervalId)},isCursorAtEnd:function(){var t,e=this,i=e.el.val().length,n=e.element.selectionStart;return"number"==typeof n?n===i:!document.selection||(t=document.selection.createRange(),t.moveStart("character",-i),i===t.text.length)},onKeyPress:function(t){var e=this;if(!e.disabled&&!e.visible&&t.which===n.DOWN&&e.currentValue)return void e.suggest();if(!e.disabled&&e.visible){switch(t.which){case n.ESC:e.el.val(e.currentValue),e.hide();break;case n.RIGHT:if(e.hint&&e.options.onHint&&e.isCursorAtEnd()){e.selectHint();break}return;case n.TAB:if(e.hint&&e.options.onHint)return void e.selectHint();if(-1===e.selectedIndex)return void e.hide();if(e.select(e.selectedIndex),e.options.tabDisabled===!1)return;break;case n.RETURN:if(-1===e.selectedIndex)return void e.hide();e.select(e.selectedIndex);break;case n.UP:e.moveUp();break;case n.DOWN:e.moveDown();break;default:return}t.stopImmediatePropagation(),t.preventDefault()}},onKeyUp:function(t){var e=this;if(!e.disabled){switch(t.which){case n.UP:case n.DOWN:return}clearInterval(e.onChangeInterval),e.currentValue!==e.el.val()&&(e.findBestHint(),e.options.deferRequestBy>0?e.onChangeInterval=setInterval(function(){e.onValueChange()},e.options.deferRequestBy):e.onValueChange())}},onValueChange:function(){var e=this,i=e.options,n=e.el.val(),s=e.getQuery(n);return e.selection&&e.currentValue!==s&&(e.selection=null,(i.onInvalidateSelection||t.noop).call(e.element)),clearInterval(e.onChangeInterval),e.currentValue=n,e.selectedIndex=-1,i.triggerSelectOnValidInput&&e.isExactMatch(s)?void e.select(0):void(s.lengthr&&(i.suggestions=i.suggestions.slice(0,r)),i},getSuggestions:function(e){var i,n,s,o,a=this,r=a.options,l=r.serviceUrl;if(r.params[r.paramName]=e,n=r.ignoreParams?null:r.params,r.onSearchStart.call(a.element,r.params)!==!1){if(t.isFunction(r.lookup))return void r.lookup(e,function(t){a.suggestions=t.suggestions,a.suggest(),r.onSearchComplete.call(a.element,e,t.suggestions)});a.isLocal?i=a.getSuggestionsLocal(e):(t.isFunction(l)&&(l=l.call(a.element,e)),s=l+"?"+t.param(n||{}),i=a.cachedResponse[s]),i&&t.isArray(i.suggestions)?(a.suggestions=i.suggestions,a.suggest(),r.onSearchComplete.call(a.element,e,i.suggestions)):a.isBadQuery(e)?r.onSearchComplete.call(a.element,e,[]):(a.abortAjax(),o={url:l,data:n,type:r.type,dataType:r.dataType},t.extend(o,r.ajaxSettings),a.currentRequest=t.ajax(o).done(function(t){var i;a.currentRequest=null,i=r.transformResult(t,e),a.processResponse(i,e,s),r.onSearchComplete.call(a.element,e,i.suggestions)}).fail(function(t,i,n){r.onSearchError.call(a.element,e,t,i,n)}))}},isBadQuery:function(t){if(!this.options.preventBadQueries)return!1;for(var e=this.badQueries,i=e.length;i--;)if(0===t.indexOf(e[i]))return!0;return!1},hide:function(){var e=this,i=t(e.suggestionsContainer);t.isFunction(e.options.onHide)&&e.visible&&e.options.onHide.call(e.element,i),e.visible=!1,e.selectedIndex=-1,clearInterval(e.onChangeInterval),t(e.suggestionsContainer).hide(),e.signalHint(null)},suggest:function(){if(0===this.suggestions.length)return void(this.options.showNoSuggestionNotice?this.noSuggestions():this.hide());var e,i=this,n=i.options,s=n.groupBy,o=n.formatResult,a=i.getQuery(i.currentValue),r=i.classes.suggestion,l=i.classes.selected,c=t(i.suggestionsContainer),h=t(i.noSuggestionsContainer),u=n.beforeRender,d="",f=function(t){var i=t.data[s];return e===i?"":'
'+(e=i)+"
"};return n.triggerSelectOnValidInput&&i.isExactMatch(a)?void i.select(0):(t.each(i.suggestions,function(t,e){s&&(d+=f(e)),d+='
'+o(e,a)+"
"}),this.adjustContainerWidth(),h.detach(),c.html(d),t.isFunction(u)&&u.call(i.element,c),i.fixPosition(),c.show(),n.autoSelectFirst&&(i.selectedIndex=0,c.scrollTop(0),c.children("."+r).first().addClass(l)),i.visible=!0,void i.findBestHint())},noSuggestions:function(){var e=this,i=t(e.suggestionsContainer),n=t(e.noSuggestionsContainer);this.adjustContainerWidth(),n.detach(),i.empty(),i.append(n),e.fixPosition(),i.show(),e.visible=!0},adjustContainerWidth:function(){var e,i=this,n=i.options,s=t(i.suggestionsContainer);"auto"===n.width&&(e=i.el.outerWidth()-2,s.width(e>0?e:300))},findBestHint:function(){var e=this,i=e.el.val().toLowerCase(),n=null;i&&(t.each(e.suggestions,function(t,e){var s=0===e.value.toLowerCase().indexOf(i);return s&&(n=e),!s}),e.signalHint(n))},signalHint:function(e){var i="",n=this;e&&(i=n.currentValue+e.value.substr(n.currentValue.length)),n.hintValue!==i&&(n.hintValue=i,n.hint=e,(this.options.onHint||t.noop)(i))},verifySuggestionsFormat:function(e){return e.length&&"string"==typeof e[0]?t.map(e,function(t){return{value:t,data:null}}):e},validateOrientation:function(e,i){return e=t.trim(e||"").toLowerCase(),-1===t.inArray(e,["auto","bottom","top"])&&(e=i),e},processResponse:function(t,e,i){var n=this,s=n.options;t.suggestions=n.verifySuggestionsFormat(t.suggestions),s.noCache||(n.cachedResponse[i]=t,s.preventBadQueries&&0===t.suggestions.length&&n.badQueries.push(e)),e===n.getQuery(n.currentValue)&&(n.suggestions=t.suggestions,n.suggest())},activate:function(e){var i,n=this,s=n.classes.selected,o=t(n.suggestionsContainer),a=o.find("."+n.classes.suggestion);return o.find("."+s).removeClass(s),n.selectedIndex=e, -1!==n.selectedIndex&&a.length>n.selectedIndex?(i=a.get(n.selectedIndex),t(i).addClass(s),i):null},selectHint:function(){var e=this,i=t.inArray(e.hint,e.suggestions);e.select(i)},select:function(t){var e=this;e.hide(),e.onSelect(t)},moveUp:function(){var e=this;if(-1!==e.selectedIndex)return 0===e.selectedIndex?(t(e.suggestionsContainer).children().first().removeClass(e.classes.selected),e.selectedIndex=-1,e.el.val(e.currentValue),void e.findBestHint()):void e.adjustScroll(e.selectedIndex-1)},moveDown:function(){var t=this;t.selectedIndex!==t.suggestions.length-1&&t.adjustScroll(t.selectedIndex+1)},adjustScroll:function(e){var i=this,n=i.activate(e);if(n){var s,o,a,r=t(n).outerHeight();s=n.offsetTop,o=t(i.suggestionsContainer).scrollTop(),a=o+i.options.maxHeight-r,o>s?t(i.suggestionsContainer).scrollTop(s):s>a&&t(i.suggestionsContainer).scrollTop(s-i.options.maxHeight+r),i.options.preserveInput||i.el.val(i.getValue(i.suggestions[e].value)),i.signalHint(null)}},onSelect:function(e){var i=this,n=i.options.onSelect,s=i.suggestions[e];i.currentValue=i.getValue(s.value),i.currentValue===i.el.val()||i.options.preserveInput||i.el.val(i.currentValue),i.signalHint(null),i.suggestions=[],i.selection=s,t.isFunction(n)&&n.call(i.element,s)},getValue:function(t){var e,i,n=this,s=n.options.delimiter;return s?(e=n.currentValue,i=e.split(s),1===i.length?t:e.substr(0,e.length-i[i.length-1].length)+t):t},dispose:function(){var e=this;e.el.off(".autocomplete").removeData("autocomplete"),e.disableKillerFn(),t(window).off("resize.autocomplete",e.fixPositionCapture),t(e.suggestionsContainer).remove()}},t.fn.autocomplete=t.fn.devbridgeAutocomplete=function(i,n){var s="autocomplete";return 0===arguments.length?this.first().data(s):this.each(function(){var o=t(this),a=o.data(s);"string"==typeof i?a&&"function"==typeof a[i]&&a[i](n):(a&&a.dispose&&a.dispose(),a=new e(this,i),o.data(s,a))})}}),jQuery.easing.jswing=jQuery.easing.swing,jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(t,e,i,n,s){return jQuery.easing[jQuery.easing.def](t,e,i,n,s)},easeInQuad:function(t,e,i,n,s){return n*(e/=s)*e+i},easeOutQuad:function(t,e,i,n,s){return-n*(e/=s)*(e-2)+i},easeInOutQuad:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e+i:-n/2*(--e*(e-2)-1)+i},easeInCubic:function(t,e,i,n,s){return n*(e/=s)*e*e+i},easeOutCubic:function(t,e,i,n,s){return n*((e=e/s-1)*e*e+1)+i},easeInOutCubic:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e*e+i:n/2*((e-=2)*e*e+2)+i},easeInQuart:function(t,e,i,n,s){return n*(e/=s)*e*e*e+i},easeOutQuart:function(t,e,i,n,s){return-n*((e=e/s-1)*e*e*e-1)+i},easeInOutQuart:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e*e*e+i:-n/2*((e-=2)*e*e*e-2)+i},easeInQuint:function(t,e,i,n,s){return n*(e/=s)*e*e*e*e+i},easeOutQuint:function(t,e,i,n,s){return n*((e=e/s-1)*e*e*e*e+1)+i},easeInOutQuint:function(t,e,i,n,s){return(e/=s/2)<1?n/2*e*e*e*e*e+i:n/2*((e-=2)*e*e*e*e+2)+i},easeInSine:function(t,e,i,n,s){return-n*Math.cos(e/s*(Math.PI/2))+n+i},easeOutSine:function(t,e,i,n,s){return n*Math.sin(e/s*(Math.PI/2))+i},easeInOutSine:function(t,e,i,n,s){return-n/2*(Math.cos(Math.PI*e/s)-1)+i},easeInExpo:function(t,e,i,n,s){return 0==e?i:n*Math.pow(2,10*(e/s-1))+i},easeOutExpo:function(t,e,i,n,s){return e==s?i+n:n*(1-Math.pow(2,-10*e/s))+i},easeInOutExpo:function(t,e,i,n,s){return 0==e?i:e==s?i+n:(e/=s/2)<1?n/2*Math.pow(2,10*(e-1))+i:n/2*(2-Math.pow(2,-10*--e))+i},easeInCirc:function(t,e,i,n,s){return-n*(Math.sqrt(1-(e/=s)*e)-1)+i},easeOutCirc:function(t,e,i,n,s){return n*Math.sqrt(1-(e=e/s-1)*e)+i},easeInOutCirc:function(t,e,i,n,s){return(e/=s/2)<1?-n/2*(Math.sqrt(1-e*e)-1)+i:n/2*(Math.sqrt(1-(e-=2)*e)+1)+i},easeInElastic:function(t,e,i,n,s){var o=1.70158,a=0,r=n;if(0==e)return i;if(1==(e/=s))return i+n;if(a||(a=.3*s),r0)||o.isTime(e)&&e.attr("title")||e.attr("title",i)}return e.data("timeago")}function n(t){return o.inWords(s(t))}function s(t){return(new Date).getTime()-t.getTime()}t.timeago=function(e){return n(e instanceof Date?e:"string"==typeof e?t.timeago.parse(e):"number"==typeof e?new Date(e):t.timeago.datetime(e))};var o=t.timeago;t.extend(t.timeago,{settings:{refreshMillis:6e4,allowFuture:!1,localeTitle:!1,cutoff:0,strings:{prefixAgo:"vor",prefixFromNow:"in",suffixAgo:"",suffixFromNow:"",seconds:"wenigen Sekunden",minute:"etwa einer Minute",minutes:"%d Minuten",hour:"etwa einer Stunde",hours:"%d Stunden",day:"etwa einem Tag",days:"%d Tagen",month:"etwa einem Monat",months:"%d Monaten",year:"etwa einem Jahr",years:"%d Jahren",wordSeparator:" ",numbers:[]}},inWords:function(e){function i(i,s){var o=t.isFunction(i)?i(s,e):i,a=n.numbers&&n.numbers[s]||s;return o.replace(/%d/i,a)}var n=this.settings.strings,s=n.prefixAgo,o=n.suffixAgo;this.settings.allowFuture&&e<0&&(s=n.prefixFromNow,o=n.suffixFromNow);var a=Math.abs(e)/1e3,r=a/60,l=r/60,c=l/24,h=c/365,u=a<45&&i(n.seconds,Math.round(a))||a<90&&i(n.minute,1)||r<45&&i(n.minutes,Math.round(r))||r<90&&i(n.hour,1)||l<24&&i(n.hours,Math.round(l))||l<42&&i(n.day,1)||c<30&&i(n.days,Math.round(c))||c<45&&i(n.month,1)||c<365&&i(n.months,Math.round(c/30))||h<1.5&&i(n.year,1)||i(n.years,Math.round(h)),d=n.wordSeparator||"";return void 0===n.wordSeparator&&(d=" "),t.trim([s,u,o].join(d))},parse:function(e){var i=t.trim(e);return i=i.replace(/\.\d+/,""),i=i.replace(/-/,"/").replace(/-/,"/"),i=i.replace(/T/," ").replace(/Z/," UTC"),i=i.replace(/([\+\-]\d\d)\:?(\d\d)/," $1$2"),i=i.replace(/([\+\-]\d\d)$/," $100"),new Date(i)},datetime:function(e){var i=o.isTime(e)?t(e).attr("datetime"):t(e).attr("title");return o.parse(i)},isTime:function(e){return"time"===t(e).get(0).tagName.toLowerCase()}});var a={init:function(){t.proxy(e,this)(),o.settings.refreshMillis},update:function(i){var n=o.parse(i);t(this).data("timeago",{datetime:n}),o.settings.localeTitle&&t(this).attr("title",n.toLocaleString()),e.apply(this)},updateFromDOM:function(){t(this).data("timeago",{datetime:o.parse(o.isTime(this)?t(this).attr("datetime"):t(this).attr("title"))}),e.apply(this)},dispose:function(){this._timeagoInterval&&(window.clearInterval(this._timeagoInterval),this._timeagoInterval=null)}};t.fn.timeago=function(t,e){var i=t?a[t]:a.init;if(!i)throw new Error("Unknown function name '"+t+"' for timeago");return this.each(function(){i.call(this,e)}),this},document.createElement("abbr"),document.createElement("time")}),$.fn.extend({insertAtCaret:function(t){this.each(function(e){if(document.selection)this.focus(),sel=document.selection.createRange(),sel.text=t,this.focus();else if(this.selectionStart||"0"==this.selectionStart){var i=this.selectionStart,n=this.selectionEnd,s=this.scrollTop;this.value=this.value.substring(0,i)+t+this.value.substring(n,this.value.length),this.focus(),this.selectionStart=i+t.length,this.selectionEnd=i+t.length,this.scrollTop=s}else this.value+=t,this.focus()})}}),function(t){"use strict";var e=null,i=null,n=null;!function(){var e=["webkit","moz","o","ms"],i=t.document.createElement("div"),n=-1;for(n=0;n-1}}(t.Element.prototype),Object.keys||(Object.keys=function(){var t=Object.prototype.hasOwnProperty,e=!1,i=[],n=-1;return e=!{toString:null}.propertyIsEnumerable("toString"),i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],n=i.length,function(s){var o=[],a="",r=-1;if("object"!=typeof s&&("function"!=typeof s||null===s))throw new TypeError("Object.keys called on non-object");for(a in s)t.call(s,a)&&o.push(a);if(e)for(r=0;r>>0))return-1;if(e=0,arguments.length>1&&(e=Number(arguments[1]),e!==e?e=0:0!==e&&e!==1/0&&e!==-(1/0)&&(e=(e>0||-1)*Math.floor(Math.abs(e)))),e>=s)return-1;for(i=e>=0?e:Math.max(s-Math.abs(e),0);i0)||r);p++)a.id?d=a.id:(d="MixItUp"+i.randomHex(),a.id=d),e.instances[d]instanceof e.Mixer?(l=e.instances[d],(!s||s&&s.debug&&s.debug.showWarnings!==!1)&&console.warn(e.messages.warningFactoryPreexistingInstance())):(l=new e.Mixer,l.attach(a,h,d,s),e.instances[d]=l),c=new e.Facade(l),s&&s.debug&&s.debug.enable?u.push(l):u.push(c);return r?new e.Collection(u):u[0]},e.use=function(t){e.Base.prototype.callActions.call(e,"beforeUse",arguments),"function"==typeof t&&"mixitup-extension"===t.TYPE?void 0===e.extensions[t.NAME]&&(t(e),e.extensions[t.NAME]=t):t.fn&&t.fn.jquery&&(e.libraries.$=t,e.registerJqPlugin(t)),e.Base.prototype.callActions.call(e,"afterUse",arguments)},e.registerJqPlugin=function(t){t.fn.mixItUp=function(){var t=arguments[0],i=arguments[1],n=Array.prototype.slice.call(arguments,1),s=[],o=[];return o=this.each(function(){var o=null,a=null;t&&"string"==typeof t?(o=e.instances[this.id],void 0!==(a=o[t].apply(o,n))&&null!==a&&"function"!=typeof a.then&&s.push(a)):e(this,i)}),s.length?s.length>1?s:s[0]:o}},e.instances={},e.extensions={},e.libraries={},i={hasClass:function(t,e){return!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},addClass:function(t,e){this.hasClass(t,e)||(t.className+=t.className?" "+e:e)},removeClass:function(t,e){if(this.hasClass(t,e)){var i=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(i," ").trim()}},extend:function(t,e,i,n){var s=[],o="",a=-1;i=i||!1,n=n||!1;try{if(Array.isArray(e))for(a=0;ah&&(h=u,l=c)}throw h>1&&(r=e.messages.errorConfigInvalidPropertySuggestion({probableMatch:l})),a=e.messages.errorConfigInvalidProperty({erroneous:o,suggestion:r}),new TypeError(a)}throw t},template:function(t){for(var e=/\${([\w]*)}/g,i={},n=null;n=e.exec(t);)i[n[1]]=new RegExp("\\${"+n[1]+"}","g");return function(e){var n="",s=t;e=e||{};for(n in i)s=s.replace(i[n],void 0!==e[n]?e[n]:"");return s}},on:function(e,i,n,s){e&&(e.addEventListener?e.addEventListener(i,n,s):e.attachEvent&&(e["e"+i+n]=n,e[i+n]=function(){e["e"+i+n](t.event)},e.attachEvent("on"+i,e[i+n])))},off:function(t,e,i){t&&(t.removeEventListener?t.removeEventListener(e,i,!1):t.detachEvent&&(t.detachEvent("on"+e,t[e+i]),t[e+i]=null))},getCustomEvent:function(e,i,n){var s=null;return n=n||t.document,"function"==typeof t.CustomEvent?s=new t.CustomEvent(e,{detail:i,bubbles:!0,cancelable:!0}):"function"==typeof n.createEvent?(s=n.createEvent("CustomEvent"),s.initCustomEvent(e,!0,!0,i)):(s=n.createEventObject(),s.type=e,s.returnValue=!1,s.cancelBubble=!1,s.detail=i),s},getOriginalEvent:function(t){return t.touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t},index:function(t,e){for(var i=0;null!==(t=t.previousElementSibling);)e&&!t.matches(e)||++i;return i},camelCase:function(t){return t.toLowerCase().replace(/([_-][a-z])/g,function(t){return t.toUpperCase().replace(/[_-]/,"")})},pascalCase:function(t){return(t=this.camelCase(t)).charAt(0).toUpperCase()+t.slice(1)},dashCase:function(t){return t.replace(/([A-Z])/g,"-$1").replace(/^-/,"").toLowerCase()},isElement:function(e,i){return i=i||t.document,!!(t.HTMLElement&&e instanceof t.HTMLElement)||!!(i.defaultView&&i.defaultView.HTMLElement&&e instanceof i.defaultView.HTMLElement)||null!==e&&1===e.nodeType&&"string"==typeof e.nodeName},createElement:function(e,i){var n=null,s=null;for(i=i||t.document,n=i.createDocumentFragment(),s=i.createElement("div"),s.innerHTML=e;s.firstChild;)n.appendChild(s.firstChild);return n},removeWhitespace:function(t){for(var e;t&&"#text"===t.nodeName;)e=t,t=t.previousSibling,e.parentElement&&e.parentElement.removeChild(e)},isEqualArray:function(t,e){var i=t.length;if(i!==e.length)return!1;for(;i--;)if(t[i]!==e[i])return!1;return!0},deepEquals:function(t,e){var i;if("object"==typeof t&&t&&"object"==typeof e&&e){if(Object.keys(t).length!==Object.keys(e).length)return!1;for(i in t)if(!e.hasOwnProperty(i)||!this.deepEquals(t[i],e[i]))return!1}else if(t!==e)return!1;return!0},arrayShuffle:function(t){for(var e=t.slice(),i=e.length,n=i,s=-1,o=[];n--;)s=~~(Math.random()*i),o=e[n],e[n]=e[s],e[s]=o;return e},arrayFromList:function(t){var e,i;try{return Array.prototype.slice.call(t)}catch(n){for(e=[],i=0;i "+i),o&&e.removeAttribute("id")),s},clean:function(t){var e=[],i=-1;for(i=0;is)return!0}return!0},Deferred:function(){this.promise=null,this.resolve=null,this.reject=null,this.id=i.randomHex()},isEmptyObject:function(t){var e="";if("function"==typeof Object.keys)return 0===Object.keys(t).length;for(e in t)if(t.hasOwnProperty(e))return!1;return!0},getClassname:function(t,e,i){var n="";return n+=t.block,n.length&&(n+=t.delineatorElement),n+=t["element"+this.pascalCase(e)],i?(n.length&&(n+=t.delineatorModifier),n+=i):n},getProperty:function(t,e){var i=e.split("."),n=null,s="",o=0;if(!e)return t;for(n=function(t){return t?t[s]:null};o-1,e.callFilters("afterIsBound",i,arguments)},addBinding:function(t){var e=this;this.callActions("beforeAddBinding",arguments),e.isBound()||e.bound.push(t),this.callActions("afterAddBinding",arguments)},removeBinding:function(t){var i=this,n=-1;this.callActions("beforeRemoveBinding",arguments),(n=i.bound.indexOf(t))>-1&&i.bound.splice(n,1),i.bound.length<1&&(i.unbindClick(),n=e.controls.indexOf(i),e.controls.splice(n,1),"active"===i.status&&i.renderStatus(i.el,"inactive")),this.callActions("afterRemoveBinding",arguments)},bindClick:function(){var t=this;this.callActions("beforeBindClick",arguments),t.handler=function(e){t.handleClick(e)},i.on(t.el,"click",t.handler),this.callActions("afterBindClick",arguments)},unbindClick:function(){var t=this;this.callActions("beforeUnbindClick",arguments),i.off(t.el,"click",t.handler),t.handler=null,this.callActions("afterUnbindClick",arguments)},handleClick:function(t){var n=this,s=null,o=null,a=!1,r={},l=null,c=[],h=-1;if(this.callActions("beforeHandleClick",arguments),this.pending=0,o=n.bound[0],!(s=n.selector?i.closestParent(t.target,o.config.selectors.control+n.selector,!0,o.dom.document):n.el))return void n.callActions("afterHandleClick",arguments);switch(n.type){case"filter":r.filter=n.filter||s.getAttribute("data-filter");break;case"sort":r.sort=n.sort||s.getAttribute("data-sort");break;case"multimix":r.filter=n.filter||s.getAttribute("data-filter"),r.sort=n.sort||s.getAttribute("data-sort");break;case"toggle":r.filter=n.filter||s.getAttribute("data-toggle"),a="live"===n.status?i.hasClass(s,n.classNames.active):"active"===n.status}for(h=0;h0||("live"===n.status?n.updateLive(t,i):(s.sort=n.sort,s.filter=n.filter,n.callFilters("actionsUpdate",s,arguments),n.parseStatusChange(n.el,t,s,i)),n.callActions("afterUpdate",arguments))},updateLive:function(t,i){var n=this,s=null,o=null,a=null,r=-1;if(n.callActions("beforeUpdateLive",arguments),n.el){for(s=n.el.querySelectorAll(n.selector),r=0;a=s[r];r++){switch(o=new e.CommandMultimix,n.type){case"filter":o.filter=a.getAttribute("data-filter");break;case"sort":o.sort=a.getAttribute("data-sort");break;case"multimix":o.filter=a.getAttribute("data-filter"),o.sort=a.getAttribute("data-sort");break;case"toggle":o.filter=a.getAttribute("data-toggle")}o=n.callFilters("actionsUpdateLive",o,arguments),n.parseStatusChange(a,t,o,i)}n.callActions("afterUpdateLive",arguments)}},parseStatusChange:function(t,e,i,n){var s=this,o="",a=-1;switch(s.callActions("beforeParseStatusChange",arguments),s.type){case"filter":e.filter===i.filter?s.renderStatus(t,"active"):s.renderStatus(t,"inactive");break;case"multimix":e.sort===i.sort&&e.filter===i.filter?s.renderStatus(t,"active"):s.renderStatus(t,"inactive");break;case"sort":e.sort.match(/:asc/g)&&(o=e.sort.replace(/:asc/g,"")),e.sort===i.sort||o===i.sort?s.renderStatus(t,"active"):s.renderStatus(t,"inactive");break;case"toggle":for(n.length<1&&s.renderStatus(t,"inactive"),e.filter===i.filter&&s.renderStatus(t,"active"),a=0;a-1)throw new Error(e.messages.errorInsertPreexistingElement());c.style.display="none",r.appendChild(c),r.appendChild(s.dom.document.createTextNode(" ")),i.isElement(c,s.dom.document)&&c.matches(s.config.selectors.target)&&(l=new e.Target,l.init(c,s),l.isInDom=!0,s.targets.splice(a,0,l),a++)}s.dom.parent.insertBefore(r,o)}n.startOrder=s.origOrder=s.targets,s.callActions("afterInsertTargets",arguments)},getNextSibling:function(t,e,i){var n=this,s=null;return t=Math.max(t,0),e&&"before"===i?s=e:e&&"after"===i?s=e.nextElementSibling||null:n.targets.length>0&&void 0!==t?s=t0&&(n.config.layout.siblingAfter?s=n.config.layout.siblingAfter:n.config.layout.siblingBefore?s=n.config.layout.siblingBefore.nextElementSibling:n.dom.parent.children[0]),n.callFilters("elementGetNextSibling",s,arguments)},filterOperation:function(t){var e=this,i=!1,n=-1,s="",o=null,a=-1;for(e.callActions("beforeFilterOperation",arguments),s=t.newFilter.action,a=0;o=t.newOrder[a];a++)i=t.newFilter.collection?t.newFilter.collection.indexOf(o.dom.el)>-1:""!==t.newFilter.selector&&o.dom.el.matches(t.newFilter.selector),e.evaluateHideShow(i,o,s,t);if(t.toRemove.length)for(a=0;o=t.show[a];a++)t.toRemove.indexOf(o)>-1&&(t.show.splice(a,1),(n=t.toShow.indexOf(o))>-1&&t.toShow.splice(n,1),t.toHide.push(o),t.hide.push(o),a--);t.matching=t.show.slice(),0===t.show.length&&""!==t.newFilter.selector&&0!==e.targets.length&&(t.hasFailed=!0),e.callActions("afterFilterOperation",arguments)},evaluateHideShow:function(t,e,i,n){var s=this;s.callActions("beforeEvaluateHideShow",arguments),t===!0&&"show"===i||t===!1&&"hide"===i?(n.show.push(e),!e.isShown&&n.toShow.push(e)):(n.hide.push(e),e.isShown&&n.toHide.push(e)),s.callActions("afterEvaluateHideShow",arguments)},sortOperation:function(t){var e=this;e.callActions("beforeSortOperation",arguments),t.startOrder=e.targets,t.newSort.collection?t.newOrder=t.newSort.collection:"random"===t.newSort.order?t.newOrder=i.arrayShuffle(t.startOrder):""===t.newSort.attribute?(t.newOrder=e.origOrder.slice(),"desc"===t.newSort.order&&t.newOrder.reverse()):(t.newOrder=t.startOrder.slice(),t.newOrder.sort(function(i,n){return e.compare(i,n,t.newSort)})),i.isEqualArray(t.newOrder,t.startOrder)&&(t.willSort=!1),e.callActions("afterSortOperation",arguments)},compare:function(t,e,i){var n=this,s=i.order,o=n.getAttributeValue(t,i.attribute),a=n.getAttributeValue(e,i.attribute);return isNaN(1*o)||isNaN(1*a)?(o=o.toLowerCase(),a=a.toLowerCase()):(o*=1,a*=1),oa?"asc"===s?1:-1:o===a&&i.next?n.compare(t,e,i.next):0},getAttributeValue:function(t,i){var n=this,s="";return s=t.dom.el.getAttribute("data-"+i),null===s&&n.config.debug.showWarnings&&console.warn(e.messages.warningInconsistentSortingAttributes({attribute:"data-"+i})),n.callFilters("valueGetAttributeValue",s||0,arguments)},printSort:function(e,n){var s=this,o=e?n.newOrder:n.startOrder,a=e?n.startOrder:n.newOrder,r=o.length?o[o.length-1].dom.el.nextElementSibling:null,l=t.document.createDocumentFragment(),c=null,h=null,u=null,d=-1;for(s.callActions("beforePrintSort",arguments),d=0;h=o[d];d++)u=h.dom.el,"absolute"!==u.style.position&&(i.removeWhitespace(u.previousSibling),u.parentElement.removeChild(u));for(c=r?r.previousSibling:s.dom.parent.lastChild,c&&"#text"===c.nodeName&&i.removeWhitespace(c),d=0;h=a[d];d++)u=h.dom.el,i.isElement(l.lastChild)&&l.appendChild(t.document.createTextNode(" ")),l.appendChild(u);s.dom.parent.firstChild&&s.dom.parent.firstChild!==r&&l.insertBefore(t.document.createTextNode(" "),l.childNodes[0]),r?(l.appendChild(t.document.createTextNode(" ")),s.dom.parent.insertBefore(l,r)):s.dom.parent.appendChild(l),s.callActions("afterPrintSort",arguments)},parseSortString:function(t,n){var s=this,o=t.split(" "),a=n,r=[],l=-1;for(l=0;l-1&&(c=i.substring(l),h=r.exec(c),u=h[1]),t){case"fade":n.opacity=u?parseFloat(u):0;break;case"stagger":a.staggerDuration=u?parseFloat(u):100;break;default:if(o&&a.config.animation.reverseOut&&"scale"!==t?n[t].value=(u?parseFloat(u):e.transformDefaults[t].value)*-1:n[t].value=u?parseFloat(u):e.transformDefaults[t].value,u){for(p=0;f=d[p];p++)if(u.indexOf(f)>-1){n[t].unit=f;break}}else n[t].unit=e.transformDefaults[t].unit;s.push(t+"("+n[t].value+n[t].unit+")")}a.callActions("afterParseEffect",arguments)},buildState:function(t){var i=this,n=new e.State,s=null,o=-1;for(i.callActions("beforeBuildState",arguments),o=0;s=i.targets[o];o++)(!t.toRemove.length||t.toRemove.indexOf(s)<0)&&n.targets.push(s.dom.el);for(o=0;s=t.matching[o];o++)n.matching.push(s.dom.el);for(o=0;s=t.show[o];o++)n.show.push(s.dom.el);for(o=0;s=t.hide[o];o++)(!t.toRemove.length||t.toRemove.indexOf(s)<0)&&n.hide.push(s.dom.el);return n.id=i.id,n.container=i.dom.container,n.activeFilter=t.newFilter,n.activeSort=t.newSort,n.activeDataset=t.newDataset,n.activeContainerClassName=t.newContainerClassName,n.hasFailed=t.hasFailed,n.totalTargets=i.targets.length,n.totalShow=t.show.length,n.totalHide=t.hide.length,n.totalMatching=t.matching.length,n.triggerElement=t.triggerElement,i.callFilters("stateBuildState",n,arguments)},goMix:function(n,s){var o=this,a=null;return o.callActions("beforeGoMix",arguments),o.config.animation.duration&&o.config.animation.effects&&i.isVisible(o.dom.container)||(n=!1),s.toShow.length||s.toHide.length||s.willSort||s.willChangeLayout||(n=!1),s.startState.show.length||s.show.length||(n=!1),e.events.fire("mixStart",o.dom.container,{state:s.startState,futureState:s.newState,instance:o},o.dom.document),"function"==typeof o.config.callbacks.onMixStart&&o.config.callbacks.onMixStart.call(o.dom.container,s.startState,s.newState,o),i.removeClass(o.dom.container,i.getClassname(o.config.classNames,"container",o.config.classNames.modifierFailed)),a=o.userDeferred?o.userDeferred:o.userDeferred=i.defer(e.libraries),o.isBusy=!0,n&&e.features.has.transitions?(t.pageYOffset!==s.docState.scrollTop&&t.scrollTo(s.docState.scrollLeft,s.docState.scrollTop),o.config.animation.applyPerspective&&(o.dom.parent.style[e.features.perspectiveProp]=o.config.animation.perspectiveDistance,o.dom.parent.style[e.features.perspectiveOriginProp]=o.config.animation.perspectiveOrigin),(o.config.animation.animateResizeContainer||s.startHeight===s.newHeight)&&(o.dom.parent.style.height=s.startHeight+"px"),(o.config.animation.animateResizeContainer||s.startWidth===s.newWidth)&&(o.dom.parent.style.width=s.startWidth+"px"),requestAnimationFrame(function(){o.moveTargets(s)}),o.callFilters("promiseGoMix",a.promise,arguments)):(o.config.debug.fauxAsync?setTimeout(function(){o.cleanUp(s)},o.config.animation.duration):o.cleanUp(s),o.callFilters("promiseGoMix",a.promise,arguments))},getStartMixData:function(i){var n=this,s=t.getComputedStyle(n.dom.parent),o=n.dom.parent.getBoundingClientRect(),a=null,r={},l=-1,c=s[e.features.boxSizingProp];for(n.incPadding="border-box"===c,n.callActions("beforeGetStartMixData",arguments),l=0;a=i.show[l];l++)r=a.getPosData(),i.showPosData[l]={startPosData:r};for(l=0;a=i.toHide[l];l++)r=a.getPosData(),i.toHidePosData[l]={startPosData:r};i.startX=o.left,i.startY=o.top,i.startHeight=n.incPadding?o.height:o.height-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)-parseFloat(s.borderTop)-parseFloat(s.borderBottom),i.startWidth=n.incPadding?o.width:o.width-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)-parseFloat(s.borderLeft)-parseFloat(s.borderRight),n.callActions("afterGetStartMixData",arguments)},setInter:function(t){var e=this,n=null,s=-1;for(e.callActions("beforeSetInter",arguments),e.config.animation.clampHeight&&(e.dom.parent.style.height=t.startHeight,e.dom.parent.style.overflow="hidden"),s=0;n=t.toShow[s];s++)n.show();t.willChangeLayout&&(i.removeClass(e.dom.container,t.startContainerClassName),i.addClass(e.dom.container,t.newContainerClassName)),e.callActions("afterSetInter",arguments)},getInterMixData:function(t){var e=this,i=null,n=-1;for(e.callActions("beforeGetInterMixData",arguments),n=0;i=t.show[n];n++)t.showPosData[n].interPosData=i.getPosData();for(n=0;i=t.toHide[n];n++)t.toHidePosData[n].interPosData=i.getPosData();e.callActions("afterGetInterMixData",arguments)},setFinal:function(t){var e=this,i=null,n=-1;for(e.callActions("beforeSetFinal",arguments),e.config.animation.clampHeight&&(e.dom.parent.style.height=e.dom.parent.style.overflow=""),t.willSort&&e.printSort(!1,t),n=0;i=t.toHide[n];n++)i.hide();e.callActions("afterSetFinal",arguments)},getFinalMixData:function(e){var n=this,s=null,o=n.dom.parent.getBoundingClientRect(),a=null,r=-1;for(n.incPadding||(s=t.getComputedStyle(n.dom.parent)),n.callActions("beforeGetFinalMixData",arguments),r=0;a=e.show[r];r++)e.showPosData[r].finalPosData=a.getPosData();for(r=0;a=e.toHide[r];r++)e.toHidePosData[r].finalPosData=a.getPosData();for(e.newX=o.left,e.newY=o.top,e.newHeight=n.incPadding?o.height:o.height-parseFloat(s.paddingTop)-parseFloat(s.paddingBottom)-parseFloat(s.borderTop)-parseFloat(s.borderBottom),e.newWidth=n.incPadding?o.width:o.width-parseFloat(s.paddingLeft)-parseFloat(s.paddingRight)-parseFloat(s.borderLeft)-parseFloat(s.borderRight),e.willSort&&n.printSort(!0,e),r=0;a=e.toShow[r];r++)a.hide();for(r=0;a=e.toHide[r];r++)a.show();e.willChangeLayout&&(i.removeClass(n.dom.container,e.newContainerClassName),i.addClass(n.dom.container,n.config.layout.containerClassName)),n.callActions("afterGetFinalMixData",arguments)},getTweenData:function(t){var i=this,n=null,s=null,o=Object.getOwnPropertyNames(i.effectsIn),a="",r=null,l=-1,c=-1,h=-1,u=-1;for(i.callActions("beforeGetTweenData",arguments),h=0;n=t.show[h];h++)for(s=t.showPosData[h],s.posIn=new e.StyleData,s.posOut=new e.StyleData,s.tweenData=new e.StyleData,n.isShown?(s.posIn.x=s.startPosData.x-s.interPosData.x,s.posIn.y=s.startPosData.y-s.interPosData.y):s.posIn.x=s.posIn.y=0,s.posOut.x=s.finalPosData.x-s.interPosData.x,s.posOut.y=s.finalPosData.y-s.interPosData.y,s.posIn.opacity=n.isShown?1:i.effectsIn.opacity,s.posOut.opacity=1,s.tweenData.opacity=s.posOut.opacity-s.posIn.opacity,n.isShown||i.config.animation.nudge||(s.posIn.x=s.posOut.x,s.posIn.y=s.posOut.y),s.tweenData.x=s.posOut.x-s.posIn.x,s.tweenData.y=s.posOut.y-s.posIn.y,i.config.animation.animateResizeTargets&&(s.posIn.width=s.startPosData.width,s.posIn.height=s.startPosData.height,l=(s.startPosData.width||s.finalPosData.width)-s.interPosData.width,s.posIn.marginRight=s.startPosData.marginRight-l,c=(s.startPosData.height||s.finalPosData.height)-s.interPosData.height,s.posIn.marginBottom=s.startPosData.marginBottom-c,s.posOut.width=s.finalPosData.width,s.posOut.height=s.finalPosData.height,l=(s.finalPosData.width||s.startPosData.width)-s.interPosData.width,s.posOut.marginRight=s.finalPosData.marginRight-l,c=(s.finalPosData.height||s.startPosData.height)-s.interPosData.height,s.posOut.marginBottom=s.finalPosData.marginBottom-c,s.tweenData.width=s.posOut.width-s.posIn.width,s.tweenData.height=s.posOut.height-s.posIn.height,s.tweenData.marginRight=s.posOut.marginRight-s.posIn.marginRight,s.tweenData.marginBottom=s.posOut.marginBottom-s.posIn.marginBottom),u=0;a=o[u];u++)(r=i.effectsIn[a])instanceof e.TransformData&&r.value&&(s.posIn[a].value=r.value,s.posOut[a].value=0,s.tweenData[a].value=s.posOut[a].value-s.posIn[a].value,s.posIn[a].unit=s.posOut[a].unit=s.tweenData[a].unit=r.unit);for(h=0;n=t.toHide[h];h++)for(s=t.toHidePosData[h],s.posIn=new e.StyleData,s.posOut=new e.StyleData,s.tweenData=new e.StyleData,s.posIn.x=n.isShown?s.startPosData.x-s.interPosData.x:0,s.posIn.y=n.isShown?s.startPosData.y-s.interPosData.y:0,s.posOut.x=i.config.animation.nudge?0:s.posIn.x,s.posOut.y=i.config.animation.nudge?0:s.posIn.y,s.tweenData.x=s.posOut.x-s.posIn.x,s.tweenData.y=s.posOut.y-s.posIn.y,i.config.animation.animateResizeTargets&&(s.posIn.width=s.startPosData.width,s.posIn.height=s.startPosData.height,l=s.startPosData.width-s.interPosData.width,s.posIn.marginRight=s.startPosData.marginRight-l,c=s.startPosData.height-s.interPosData.height,s.posIn.marginBottom=s.startPosData.marginBottom-c),s.posIn.opacity=1,s.posOut.opacity=i.effectsOut.opacity,s.tweenData.opacity=s.posOut.opacity-s.posIn.opacity,u=0;a=o[u];u++)(r=i.effectsOut[a])instanceof e.TransformData&&r.value&&(s.posIn[a].value=0,s.posOut[a].value=r.value,s.tweenData[a].value=s.posOut[a].value-s.posIn[a].value,s.posIn[a].unit=s.posOut[a].unit=s.tweenData[a].unit=r.unit);i.callActions("afterGetTweenData",arguments)},moveTargets:function(t){var n=this,s=null,o=null,a=null,r="",l=!1,c=-1,h=-1,u=n.checkProgress.bind(n);for(n.callActions("beforeMoveTargets",arguments),h=0;s=t.show[h];h++)o=new e.IMoveData,a=t.showPosData[h],r=s.isShown?"none":"show",l=n.willTransition(r,t.hasEffect,a.posIn,a.posOut),l&&c++,s.show(),o.posIn=a.posIn,o.posOut=a.posOut,o.statusChange=r,o.staggerIndex=c,o.operation=t,o.callback=l?u:null,s.move(o);for(h=0;s=t.toHide[h];h++)a=t.toHidePosData[h],o=new e.IMoveData,r="hide",l=n.willTransition(r,a.posIn,a.posOut),o.posIn=a.posIn,o.posOut=a.posOut,o.statusChange=r,o.staggerIndex=h,o.operation=t,o.callback=l?u:null,s.move(o);n.config.animation.animateResizeContainer&&(n.dom.parent.style[e.features.transitionProp]="height "+n.config.animation.duration+"ms ease, width "+n.config.animation.duration+"ms ease ",requestAnimationFrame(function(){n.dom.parent.style.height=t.newHeight+"px",n.dom.parent.style.width=t.newWidth+"px"})),t.willChangeLayout&&(i.removeClass(n.dom.container,n.config.layout.ContainerClassName),i.addClass(n.dom.container,t.newContainerClassName)),n.callActions("afterMoveTargets",arguments)},hasEffect:function(){var t=this,e=["scale","translateX","translateY","translateZ","rotateX","rotateY","rotateZ"],i="",n=null,s=!1,o=-1;if(1!==t.effectsIn.opacity)return t.callFilters("resultHasEffect",!0,arguments);for(o=0;i=e[o];o++)if(n=t.effectsIn[i],0!==("undefined"!==n.value?n.value:n)){s=!0;break}return t.callFilters("resultHasEffect",s,arguments)},willTransition:function(t,e,n,s){var o=this,a=!1;return a=!(!i.isVisible(o.dom.container)||!("none"!==t&&e||n.x!==s.x||n.y!==s.y)&&(!o.config.animation.animateResizeTargets||n.width===s.width&&n.height===s.height&&n.marginRight===s.marginRight&&n.marginTop===s.marginTop)),o.callFilters("resultWillTransition",a,arguments)},checkProgress:function(t){var e=this;e.targetsDone++,e.targetsBound===e.targetsDone&&e.cleanUp(t)},cleanUp:function(t){var n=this,s=null,o=null,a=null,r=null,l=-1;for(n.callActions("beforeCleanUp",arguments),n.targetsMoved=n.targetsImmovable=n.targetsBound=n.targetsDone=0,l=0;s=t.show[l];l++)s.cleanUp(),s.show();for(l=0;s=t.toHide[l];l++)s.cleanUp(),s.hide();if(t.willSort&&n.printSort(!1,t), n.dom.parent.style[e.features.transitionProp]=n.dom.parent.style.height=n.dom.parent.style.width=n.dom.parent.style[e.features.perspectiveProp]=n.dom.parent.style[e.features.perspectiveOriginProp]="",t.willChangeLayout&&(i.removeClass(n.dom.container,t.startContainerClassName),i.addClass(n.dom.container,t.newContainerClassName)),t.toRemove.length){for(l=0;s=n.targets[l];l++)t.toRemove.indexOf(s)>-1&&((o=s.dom.el.previousSibling)&&"#text"===o.nodeName&&(a=s.dom.el.nextSibling)&&"#text"===a.nodeName&&i.removeWhitespace(o),t.willSort||n.dom.parent.removeChild(s.dom.el),n.targets.splice(l,1),s.isInDom=!1,l--);n.origOrder=n.targets}t.willSort&&(n.targets=t.newOrder),n.state=t.newState,n.lastOperation=t,n.dom.targets=n.state.targets,e.events.fire("mixEnd",n.dom.container,{state:n.state,instance:n},n.dom.document),"function"==typeof n.config.callbacks.onMixEnd&&n.config.callbacks.onMixEnd.call(n.dom.container,n.state,n),t.hasFailed&&(e.events.fire("mixFail",n.dom.container,{state:n.state,instance:n},n.dom.document),"function"==typeof n.config.callbacks.onMixFail&&n.config.callbacks.onMixFail.call(n.dom.container,n.state,n),i.addClass(n.dom.container,i.getClassname(n.config.classNames,"container",n.config.classNames.modifierFailed))),"function"==typeof n.userCallback&&n.userCallback.call(n.dom.container,n.state,n),"function"==typeof n.userDeferred.resolve&&n.userDeferred.resolve(n.state),n.userCallback=null,n.userDeferred=null,n.lastClicked=null,n.isToggling=!1,n.isBusy=!1,n.queue.length&&(n.callActions("beforeReadQueueCleanUp",arguments),r=n.queue.shift(),n.userDeferred=r.deferred,n.isToggling=r.isToggling,n.lastClicked=r.triggerElement,r.instruction.command instanceof e.CommandMultimix?n.multimix.apply(n,r.args):n.dataset.apply(n,r.args)),n.callActions("afterCleanUp",arguments)},parseMultimixArgs:function(t){var n=this,s=new e.UserInstruction,o=null,a=-1;for(s.animate=n.config.animation.enable,s.command=new e.CommandMultimix,a=0;a-1?s.command.position=o:"string"==typeof o?s.command.collection=i.arrayFromList(i.createElement(o).childNodes):"object"==typeof o&&i.isElement(o,n.dom.document)?s.command.collection.length?s.command.sibling=o:s.command.collection=[o]:"object"==typeof o&&o.length?s.command.collection.length?s.command.sibling=o[0]:s.command.collection=o:"object"==typeof o&&o.childNodes&&o.childNodes.length?s.command.collection.length?s.command.sibling=o.childNodes[0]:s.command.collection=i.arrayFromList(o.childNodes):"object"==typeof o?i.extend(s.command,o):"boolean"==typeof o?s.animate=o:"function"==typeof o&&(s.callback=o));if(s.command.index&&s.command.sibling)throw new Error(e.messages.errorInsertInvalidArguments());return!s.command.collection.length&&n.config.debug.showWarnings&&console.warn(e.messages.warningInsertNoElements()),s=n.callFilters("instructionParseInsertArgs",s,arguments),i.freeze(s),s},parseRemoveArgs:function(t){var n=this,s=new e.UserInstruction,o=null,a=null,r=-1;for(s.animate=n.config.animation.enable,s.command=new e.CommandRemove,r=0;r-1&&s.command.targets.push(o);return!s.command.targets.length&&n.config.debug.showWarnings&&console.warn(e.messages.warningRemoveNoElements()),i.freeze(s),s},parseDatasetArgs:function(t){var n=this,s=new e.UserInstruction,o=null,a=-1;for(s.animate=n.config.animation.enable,s.command=new e.CommandDataset,a=0;a-1&&(n=t.toHidePosData[s],i.isShown||i.show(),i.applyTween(n,e))},insert:function(){var t=this,e=t.parseInsertArgs(arguments);return t.multimix({insert:e.command},e.animate,e.callback)},insertBefore:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(e.command.collection,"before",e.command.sibling,e.animate,e.callback)},insertAfter:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(e.command.collection,"after",e.command.sibling,e.animate,e.callback)},prepend:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(0,e.command.collection,e.animate,e.callback)},append:function(){var t=this,e=t.parseInsertArgs(arguments);return t.insert(t.state.totalTargets,e.command.collection,e.animate,e.callback)},remove:function(){var t=this,e=t.parseRemoveArgs(arguments);return t.multimix({remove:e.command},e.animate,e.callback)},getConfig:function(t){var e=this,n=null;return n=t?i.getProperty(e.config,t):e.config,e.callFilters("valueGetConfig",n,arguments)},configure:function(t){var e=this;e.callActions("beforeConfigure",arguments),i.extend(e.config,t,!0,!0),e.callActions("afterConfigure",arguments)},getState:function(){var t=this,n=null;return n=new e.State,i.extend(n,t.state),i.freeze(n),t.callFilters("stateGetState",n,arguments)},forceRefresh:function(){this.indexTargets()},destroy:function(t){var i=this,n=null,s=null,o=0;for(i.callActions("beforeDestroy",arguments),o=0;n=i.controls[o];o++)n.removeBinding(i);for(o=0;s=i.targets[o];o++)t&&s.show(),s.unbindEvents();i.dom.container.id.match(/^MixItUp/)&&i.dom.container.removeAttribute("id"),delete e.instances[i.id],i.callActions("afterDestroy",arguments)}}),e.IMoveData=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.posIn=null,this.posOut=null,this.operation=null,this.callback=null,this.statusChange="",this.duration=-1,this.staggerIndex=-1,this.callActions("afterConstruct"),i.seal(this)},e.BaseStatic.call(e.IMoveData),e.IMoveData.prototype=Object.create(e.Base.prototype),e.IMoveData.prototype.constructor=e.IMoveData,e.TargetDom=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.el=null,this.callActions("afterConstruct"),i.seal(this)},e.BaseStatic.call(e.TargetDom),e.TargetDom.prototype=Object.create(e.Base.prototype),e.TargetDom.prototype.constructor=e.TargetDom,e.Target=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.sortString="",this.mixer=null,this.callback=null,this.isShown=!1,this.isBound=!1,this.isExcluded=!1,this.isInDom=!1,this.handler=null,this.operation=null,this.data=null,this.dom=new e.TargetDom,this.callActions("afterConstruct"),i.seal(this)},e.BaseStatic.call(e.Target),e.Target.prototype=Object.create(e.Base.prototype),i.extend(e.Target.prototype,{constructor:e.Target,init:function(t,i,n){var s=this,o="";if(s.callActions("beforeInit",arguments),s.mixer=i,t||(t=s.render(n)),s.cacheDom(t),s.bindEvents(),"none"!==s.dom.el.style.display&&(s.isShown=!0),n&&i.config.data.uidKey){if(void 0===(o=n[i.config.data.uidKey])||o.toString().length<1)throw new TypeError(e.messages.errorDatasetInvalidUidKey({uidKey:i.config.data.uidKey}));s.id=o,s.data=n,i.cache[o]=s}s.callActions("afterInit",arguments)},render:function(t){var n=this,s=null,o=null,a=null,r="";if(n.callActions("beforeRender",arguments),"function"!=typeof(s=n.callFilters("renderRender",n.mixer.config.render.target,arguments)))throw new TypeError(e.messages.errorDatasetRendererNotSet());return r=s(t),r&&"object"==typeof r&&i.isElement(r)?o=r:"string"==typeof r&&(a=document.createElement("div"),a.innerHTML=r,o=a.firstElementChild),n.callFilters("elRender",o,arguments)},cacheDom:function(t){var e=this;e.callActions("beforeCacheDom",arguments),e.dom.el=t,e.callActions("afterCacheDom",arguments)},getSortString:function(t){var e=this,i=e.dom.el.getAttribute("data-"+t)||"";e.callActions("beforeGetSortString",arguments),i=isNaN(1*i)?i.toLowerCase():1*i,e.sortString=i,e.callActions("afterGetSortString",arguments)},show:function(){var t=this;t.callActions("beforeShow",arguments),t.isShown||(t.dom.el.style.display="",t.isShown=!0),t.callActions("afterShow",arguments)},hide:function(){var t=this;t.callActions("beforeHide",arguments),t.isShown&&(t.dom.el.style.display="none",t.isShown=!1),t.callActions("afterHide",arguments)},move:function(t){var e=this;e.callActions("beforeMove",arguments),e.isExcluded||e.mixer.targetsMoved++,e.applyStylesIn(t),requestAnimationFrame(function(){e.applyStylesOut(t)}),e.callActions("afterMove",arguments)},applyTween:function(t,i){var n=this,s="",o=null,a=t.posIn,r=[],l=new e.StyleData,c=-1;for(n.callActions("beforeApplyTween",arguments),l.x=a.x,l.y=a.y,0===i?n.hide():n.isShown||n.show(),c=0;s=e.features.TWEENABLE[c];c++)if(o=t.tweenData[s],"x"===s){if(!o)continue;l.x=a.x+o*i}else if("y"===s){if(!o)continue;l.y=a.y+o*i}else if(o instanceof e.TransformData){if(!o.value)continue;l[s].value=a[s].value+o.value*i,l[s].unit=o.unit,r.push(s+"("+l[s].value+o.unit+")")}else{if(!o)continue;l[s]=a[s]+o*i,n.dom.el.style[s]=l[s]}(l.x||l.y)&&r.unshift("translate("+l.x+"px, "+l.y+"px)"),r.length&&(n.dom.el.style[e.features.transformProp]=r.join(" ")),n.callActions("afterApplyTween",arguments)},applyStylesIn:function(t){var i=this,n=t.posIn,s=1!==i.mixer.effectsIn.opacity,o=[];i.callActions("beforeApplyStylesIn",arguments),o.push("translate("+n.x+"px, "+n.y+"px)"),i.mixer.config.animation.animateResizeTargets&&("show"!==t.statusChange&&(i.dom.el.style.width=n.width+"px",i.dom.el.style.height=n.height+"px"),i.dom.el.style.marginRight=n.marginRight+"px",i.dom.el.style.marginBottom=n.marginBottom+"px"),s&&(i.dom.el.style.opacity=n.opacity),"show"===t.statusChange&&(o=o.concat(i.mixer.transformIn)),i.dom.el.style[e.features.transformProp]=o.join(" "),i.callActions("afterApplyStylesIn",arguments)},applyStylesOut:function(t){var i=this,n=[],s=[],o=i.mixer.config.animation.animateResizeTargets,a=void 0!==i.mixer.effectsIn.opacity;if(i.callActions("beforeApplyStylesOut",arguments),n.push(i.writeTransitionRule(e.features.transformRule,t.staggerIndex)),"none"!==t.statusChange&&n.push(i.writeTransitionRule("opacity",t.staggerIndex,t.duration)),o&&(n.push(i.writeTransitionRule("width",t.staggerIndex,t.duration)),n.push(i.writeTransitionRule("height",t.staggerIndex,t.duration)),n.push(i.writeTransitionRule("margin",t.staggerIndex,t.duration))),!t.callback)return i.mixer.targetsImmovable++,void(i.mixer.targetsMoved===i.mixer.targetsImmovable&&i.mixer.cleanUp(t.operation));switch(i.operation=t.operation,i.callback=t.callback,!i.isExcluded&&i.mixer.targetsBound++,i.isBound=!0,i.applyTransition(n),o&&t.posOut.width>0&&t.posOut.height>0&&(i.dom.el.style.width=t.posOut.width+"px",i.dom.el.style.height=t.posOut.height+"px",i.dom.el.style.marginRight=t.posOut.marginRight+"px",i.dom.el.style.marginBottom=t.posOut.marginBottom+"px"),i.mixer.config.animation.nudge||"hide"!==t.statusChange||s.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),t.statusChange){case"hide":a&&(i.dom.el.style.opacity=i.mixer.effectsOut.opacity),s=s.concat(i.mixer.transformOut);break;case"show":a&&(i.dom.el.style.opacity=1)}(i.mixer.config.animation.nudge||!i.mixer.config.animation.nudge&&"hide"!==t.statusChange)&&s.push("translate("+t.posOut.x+"px, "+t.posOut.y+"px)"),i.dom.el.style[e.features.transformProp]=s.join(" "),i.callActions("afterApplyStylesOut",arguments)},writeTransitionRule:function(t,e,i){var n=this,s=n.getDelay(e),o="";return o=t+" "+(i>0?i:n.mixer.config.animation.duration)+"ms "+s+"ms "+("opacity"===t?"linear":n.mixer.config.animation.easing),n.callFilters("ruleWriteTransitionRule",o,arguments)},getDelay:function(t){var e=this,i=-1;return"function"==typeof e.mixer.config.animation.staggerSequence&&(t=e.mixer.config.animation.staggerSequence.call(e,t,e.state)),i=e.mixer.staggerDuration?t*e.mixer.staggerDuration:0,e.callFilters("delayGetDelay",i,arguments)},applyTransition:function(t){var i=this,n=t.join(", ");i.callActions("beforeApplyTransition",arguments),i.dom.el.style[e.features.transitionProp]=n,i.callActions("afterApplyTransition",arguments)},handleTransitionEnd:function(t){var e=this,i=t.propertyName,n=e.mixer.config.animation.animateResizeTargets;e.callActions("beforeHandleTransitionEnd",arguments),e.isBound&&t.target.matches(e.mixer.config.selectors.target)&&(i.indexOf("transform")>-1||i.indexOf("opacity")>-1||n&&i.indexOf("height")>-1||n&&i.indexOf("width")>-1||n&&i.indexOf("margin")>-1)&&(e.callback.call(e,e.operation),e.isBound=!1,e.callback=null,e.operation=null),e.callActions("afterHandleTransitionEnd",arguments)},eventBus:function(t){var e=this;switch(e.callActions("beforeEventBus",arguments),t.type){case"webkitTransitionEnd":case"transitionend":e.handleTransitionEnd(t)}e.callActions("afterEventBus",arguments)},unbindEvents:function(){var t=this;t.callActions("beforeUnbindEvents",arguments),i.off(t.dom.el,"webkitTransitionEnd",t.handler),i.off(t.dom.el,"transitionend",t.handler),t.callActions("afterUnbindEvents",arguments)},bindEvents:function(){var t=this,n="";t.callActions("beforeBindEvents",arguments),n="webkit"===e.features.transitionPrefix?"webkitTransitionEnd":"transitionend",t.handler=function(e){return t.eventBus(e)},i.on(t.dom.el,n,t.handler),t.callActions("afterBindEvents",arguments)},getPosData:function(i){var n=this,s={},o=null,a=new e.StyleData;return n.callActions("beforeGetPosData",arguments),a.x=n.dom.el.offsetLeft,a.y=n.dom.el.offsetTop,(n.mixer.config.animation.animateResizeTargets||i)&&(o=n.dom.el.getBoundingClientRect(),a.top=o.top,a.right=o.right,a.bottom=o.bottom,a.left=o.left,a.width=o.width,a.height=o.height),n.mixer.config.animation.animateResizeTargets&&(s=t.getComputedStyle(n.dom.el),a.marginBottom=parseFloat(s.marginBottom),a.marginRight=parseFloat(s.marginRight)),n.callFilters("posDataGetPosData",a,arguments)},cleanUp:function(){var t=this;t.callActions("beforeCleanUp",arguments),t.dom.el.style[e.features.transformProp]="",t.dom.el.style[e.features.transitionProp]="",t.dom.el.style.opacity="",t.mixer.config.animation.animateResizeTargets&&(t.dom.el.style.width="",t.dom.el.style.height="",t.dom.el.style.marginRight="",t.dom.el.style.marginBottom=""),t.callActions("afterCleanUp",arguments)}}),e.Collection=function(t){var e=null,n=-1;for(this.callActions("beforeConstruct"),n=0;e=t[n];n++)this[n]=e;this.length=t.length,this.callActions("afterConstruct"),i.freeze(this)},e.BaseStatic.call(e.Collection),e.Collection.prototype=Object.create(e.Base.prototype),i.extend(e.Collection.prototype,{constructor:e.Collection,mixitup:function(t){var n=this,s=null,o=Array.prototype.slice.call(arguments),a=[],r=-1;for(this.callActions("beforeMixitup"),o.shift(),r=0;s=n[r];r++)a.push(s[t].apply(s,o));return n.callFilters("promiseMixitup",i.all(a,e.libraries),arguments)}}),e.Operation=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.args=[],this.command=null,this.showPosData=[],this.toHidePosData=[],this.startState=null,this.newState=null,this.docState=null,this.willSort=!1,this.willChangeLayout=!1,this.hasEffect=!1,this.hasFailed=!1,this.triggerElement=null,this.show=[],this.hide=[],this.matching=[],this.toShow=[],this.toHide=[],this.toMove=[],this.toRemove=[],this.startOrder=[],this.newOrder=[],this.startSort=null,this.newSort=null,this.startFilter=null,this.newFilter=null,this.startDataset=null,this.newDataset=null,this.startX=0,this.startY=0,this.startHeight=0,this.startWidth=0,this.newX=0,this.newY=0,this.newHeight=0,this.newWidth=0,this.startContainerClassName="",this.startDisplay="",this.newContainerClassName="",this.newDisplay="",this.callActions("afterConstruct"),i.seal(this)},e.BaseStatic.call(e.Operation),e.Operation.prototype=Object.create(e.Base.prototype),e.Operation.prototype.constructor=e.Operation,e.State=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.id="",this.activeFilter=null,this.activeSort=null,this.activeContainerClassName="",this.container=null,this.targets=[],this.hide=[],this.show=[],this.matching=[],this.totalTargets=-1,this.totalShow=-1,this.totalHide=-1,this.totalMatching=-1,this.hasFailed=!1,this.triggerElement=null,this.activeDataset=null,this.callActions("afterConstruct"),i.seal(this)},e.BaseStatic.call(e.State),e.State.prototype=Object.create(e.Base.prototype),e.State.prototype.constructor=e.State,e.UserInstruction=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.command={},this.animate=!1,this.callback=null,this.callActions("afterConstruct"),i.seal(this)},e.BaseStatic.call(e.UserInstruction),e.UserInstruction.prototype=Object.create(e.Base.prototype),e.UserInstruction.prototype.constructor=e.UserInstruction,e.Messages=function(){e.Base.call(this),this.callActions("beforeConstruct"),this.ERROR_FACTORY_INVALID_CONTAINER="[MixItUp] An invalid selector or element reference was passed to the mixitup factory function",this.ERROR_FACTORY_CONTAINER_NOT_FOUND="[MixItUp] The provided selector yielded no container element",this.ERROR_CONFIG_INVALID_ANIMATION_EFFECTS="[MixItUp] Invalid value for `animation.effects`",this.ERROR_CONFIG_INVALID_CONTROLS_SCOPE="[MixItUp] Invalid value for `controls.scope`",this.ERROR_CONFIG_INVALID_PROPERTY='[MixitUp] Invalid configuration object property "${erroneous}"${suggestion}',this.ERROR_CONFIG_INVALID_PROPERTY_SUGGESTION='. Did you mean "${probableMatch}"?',this.ERROR_CONFIG_DATA_UID_KEY_NOT_SET="[MixItUp] To use the dataset API, a UID key must be specified using `data.uidKey`",this.ERROR_DATASET_INVALID_UID_KEY='[MixItUp] The specified UID key "${uidKey}" is not present on one or more dataset items',this.ERROR_DATASET_DUPLICATE_UID='[MixItUp] The UID "${uid}" was found on two or more dataset items. UIDs must be unique.',this.ERROR_INSERT_INVALID_ARGUMENTS="[MixItUp] Please provider either an index or a sibling and position to insert, not both",this.ERROR_INSERT_PREEXISTING_ELEMENT="[MixItUp] An element to be inserted already exists in the container",this.ERROR_FILTER_INVALID_ARGUMENTS="[MixItUp] Please provide either a selector or collection `.filter()`, not both",this.ERROR_DATASET_NOT_SET="[MixItUp] To use the dataset API with pre-rendered targets, a starting dataset must be set using `load.dataset`",this.ERROR_DATASET_PRERENDERED_MISMATCH="[MixItUp] `load.dataset` does not match pre-rendered targets",this.ERROR_DATASET_RENDERER_NOT_SET="[MixItUp] To insert an element via the dataset API, a target renderer function must be provided to `render.target`",this.WARNING_FACTORY_PREEXISTING_INSTANCE="[MixItUp] WARNING: This element already has an active MixItUp instance. The provided configuration object will be ignored. If you wish to perform additional methods on this instance, please create a reference.",this.WARNING_INSERT_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.insert()`",this.WARNING_REMOVE_NO_ELEMENTS="[MixItUp] WARNING: No valid elements were passed to `.remove()`",this.WARNING_MULTIMIX_INSTANCE_QUEUE_FULL="[MixItUp] WARNING: An operation was requested but the MixItUp instance was busy. The operation was rejected because the queue is full or queuing is disabled.",this.WARNING_GET_OPERATION_INSTANCE_BUSY="[MixItUp] WARNING: Operations can be be created while the MixItUp instance is busy.",this.WARNING_NO_PROMISE_IMPLEMENTATION="[MixItUp] WARNING: No Promise implementations could be found. If you wish to use promises with MixItUp please install an ES6 Promise polyfill.",this.WARNING_INCONSISTENT_SORTING_ATTRIBUTES='[MixItUp] WARNING: The requested sorting data attribute "${attribute}" was not present on one or more target elements which may product unexpected sort output',this.callActions("afterConstruct"),this.compileTemplates(),i.seal(this)},e.BaseStatic.call(e.Messages),e.Messages.prototype=Object.create(e.Base.prototype),e.Messages.prototype.constructor=e.Messages,e.Messages.prototype.compileTemplates=function(){var t="",e="";for(t in this)"string"==typeof(e=this[t])&&(this[i.camelCase(t)]=i.template(e))},e.messages=new e.Messages,e.Facade=function(t){e.Base.call(this),this.callActions("beforeConstruct",arguments),this.configure=t.configure.bind(t),this.show=t.show.bind(t),this.hide=t.hide.bind(t),this.filter=t.filter.bind(t),this.toggleOn=t.toggleOn.bind(t),this.toggleOff=t.toggleOff.bind(t),this.sort=t.sort.bind(t),this.changeLayout=t.changeLayout.bind(t),this.multimix=t.multimix.bind(t),this.multiMix=t.multimix.bind(t),this.dataset=t.dataset.bind(t),this.tween=t.tween.bind(t),this.insert=t.insert.bind(t),this.insertBefore=t.insertBefore.bind(t),this.insertAfter=t.insertAfter.bind(t),this.prepend=t.prepend.bind(t),this.append=t.append.bind(t),this.remove=t.remove.bind(t),this.destroy=t.destroy.bind(t),this.forceRefresh=t.forceRefresh.bind(t),this.isMixing=t.isMixing.bind(t),this.getOperation=t.getOperation.bind(t),this.getConfig=t.getConfig.bind(t),this.getState=t.getState.bind(t),this.callActions("afterConstruct",arguments),i.freeze(this),i.seal(this)},e.BaseStatic.call(e.Facade),e.Facade.prototype=Object.create(e.Base.prototype),e.Facade.prototype.constructor=e.Facade,"object"==typeof exports&&"object"==typeof module?module.exports=e:"function"==typeof define&&define.amd?define(function(){return e}):void 0!==t.mixitup&&"function"==typeof t.mixitup||(t.mixitup=t.mixItUp=e),(n=t.$||t.jQuery)&&n.fn.jquery&&e.registerJqPlugin(n),e.BaseStatic.call(e.constructor),e.NAME="mixitup",e.CORE_VERSION="3.1.7"}(window),function(t){t.fn.fitText=function(e,i){var n=e||1,s=t.extend({minFontSize:10,maxFontSize:80},i);return this.each(function(){var e=t(this),i=function(){var t=parseFloat(s.minFontSize),i=parseFloat(s.maxFontSize);e.css("font-size",Math.max(Math.min(e.width()/(10*n),i),t))};i(),t(window).on("resize.fittext orientationchange.fittext",i)})}}(jQuery),function(t,e,i){function n(t){return t}function s(t){return decodeURIComponent(t.replace(o," "))}var o=/\+/g,a=t.cookie=function(i,o,r){if(void 0!==o){if(r=t.extend({},a.defaults,r),null===o&&(r.expires=-1),"number"==typeof r.expires){var l=r.expires,c=r.expires=new Date;c.setDate(c.getDate()+l)}return o=a.json?JSON.stringify(o):String(o), e.cookie=[encodeURIComponent(i),"=",a.raw?o:encodeURIComponent(o),r.expires?"; expires="+r.expires.toUTCString():"","; path=/",r.domain?"; domain="+r.domain:"",r.secure?"; secure":""].join("")}for(var h,u=a.raw?n:s,d=e.cookie.split("; "),f=0;h=d[f]&&d[f].split("=");f++)if(u(h.shift())===i){var p=u(h.join("="));return a.json?JSON.parse(p):p}return null};a.defaults={},t.removeCookie=function(e,i){return null!==t.cookie(e)&&(t.cookie(e,null,i),!0)}}(jQuery,document);var TMP=new Object,PLUGINS=new Object,CONF=new Object,vn=new Object;if(vn.w={},vn.m={},"undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(t){"use strict";var e=t.fn.jquery.split(" ")[0].split(".");if(e[0]<2&&e[1]<9||1==e[0]&&9==e[1]&&e[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),function(t){"use strict";function e(){var t=document.createElement("bootstrap"),e={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var i in e)if(void 0!==t.style[i])return{end:e[i]};return!1}t.fn.emulateTransitionEnd=function(e){var i=!1,n=this;t(this).one("bsTransitionEnd",function(){i=!0});var s=function(){i||t(n).trigger(t.support.transition.end)};return setTimeout(s,e),this},t(function(){t.support.transition=e(),t.support.transition&&(t.event.special.bsTransitionEnd={bindType:t.support.transition.end,delegateType:t.support.transition.end,handle:function(e){return t(e.target).is(this)?e.handleObj.handler.apply(this,arguments):void 0}})})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var i=t(this),s=i.data("bs.alert");s||i.data("bs.alert",s=new n(this)),"string"==typeof e&&s[e].call(i)})}var i='[data-dismiss="alert"]',n=function(e){t(e).on("click",i,this.close)};n.VERSION="3.3.5",n.TRANSITION_DURATION=150,n.prototype.close=function(e){function i(){a.detach().trigger("closed.bs.alert").remove()}var s=t(this),o=s.attr("data-target");o||(o=s.attr("href"),o=o&&o.replace(/.*(?=#[^\s]*$)/,""));var a=t(o);e&&e.preventDefault(),a.length||(a=s.closest(".alert")),a.trigger(e=t.Event("close.bs.alert")),e.isDefaultPrevented()||(a.removeClass("in"),t.support.transition&&a.hasClass("fade")?a.one("bsTransitionEnd",i).emulateTransitionEnd(n.TRANSITION_DURATION):i())};var s=t.fn.alert;t.fn.alert=e,t.fn.alert.Constructor=n,t.fn.alert.noConflict=function(){return t.fn.alert=s,this},t(document).on("click.bs.alert.data-api",i,n.prototype.close)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.button"),o="object"==typeof e&&e;s||n.data("bs.button",s=new i(this,o)),"toggle"==e?s.toggle():e&&s.setState(e)})}var i=function(e,n){this.$element=t(e),this.options=t.extend({},i.DEFAULTS,n),this.isLoading=!1};i.VERSION="3.3.5",i.DEFAULTS={loadingText:"loading..."},i.prototype.setState=function(e){var i="disabled",n=this.$element,s=n.is("input")?"val":"html",o=n.data();e+="Text",null==o.resetText&&n.data("resetText",n[s]()),setTimeout(t.proxy(function(){n[s](null==o[e]?this.options[e]:o[e]),"loadingText"==e?(this.isLoading=!0,n.addClass(i).attr(i,i)):this.isLoading&&(this.isLoading=!1,n.removeClass(i).removeAttr(i))},this),0)},i.prototype.toggle=function(){var t=!0,e=this.$element.closest('[data-toggle="buttons"]');if(e.length){var i=this.$element.find("input");"radio"==i.prop("type")?(i.prop("checked")&&(t=!1),e.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==i.prop("type")&&(i.prop("checked")!==this.$element.hasClass("active")&&(t=!1),this.$element.toggleClass("active")),i.prop("checked",this.$element.hasClass("active")),t&&i.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var n=t.fn.button;t.fn.button=e,t.fn.button.Constructor=i,t.fn.button.noConflict=function(){return t.fn.button=n,this},t(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(i){var n=t(i.target);n.hasClass("btn")||(n=n.closest(".btn")),e.call(n,"toggle"),t(i.target).is('input[type="radio"]')||t(i.target).is('input[type="checkbox"]')||i.preventDefault()}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(e){t(e.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(e.type))})}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.carousel"),o=t.extend({},i.DEFAULTS,n.data(),"object"==typeof e&&e),a="string"==typeof e?e:o.slide;s||n.data("bs.carousel",s=new i(this,o)),"number"==typeof e?s.to(e):a?s[a]():o.interval&&s.pause().cycle()})}var i=function(e,i){this.$element=t(e),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",t.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",t.proxy(this.pause,this)).on("mouseleave.bs.carousel",t.proxy(this.cycle,this))};i.VERSION="3.3.5",i.TRANSITION_DURATION=600,i.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},i.prototype.keydown=function(t){if(!/input|textarea/i.test(t.target.tagName)){switch(t.which){case 37:this.prev();break;case 39:this.next();break;default:return}t.preventDefault()}},i.prototype.cycle=function(e){return e||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(t.proxy(this.next,this),this.options.interval)),this},i.prototype.getItemIndex=function(t){return this.$items=t.parent().children(".item"),this.$items.index(t||this.$active)},i.prototype.getItemForDirection=function(t,e){var i=this.getItemIndex(e);if(("prev"==t&&0===i||"next"==t&&i==this.$items.length-1)&&!this.options.wrap)return e;var n="prev"==t?-1:1,s=(i+n)%this.$items.length;return this.$items.eq(s)},i.prototype.to=function(t){var e=this,i=this.getItemIndex(this.$active=this.$element.find(".item.active"));return t>this.$items.length-1||0>t?void 0:this.sliding?this.$element.one("slid.bs.carousel",function(){e.to(t)}):i==t?this.pause().cycle():this.slide(t>i?"next":"prev",this.$items.eq(t))},i.prototype.pause=function(e){return e||(this.paused=!0),this.$element.find(".next, .prev").length&&t.support.transition&&(this.$element.trigger(t.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},i.prototype.next=function(){return this.sliding?void 0:this.slide("next")},i.prototype.prev=function(){return this.sliding?void 0:this.slide("prev")},i.prototype.slide=function(e,n){var s=this.$element.find(".item.active"),o=n||this.getItemForDirection(e,s),a=this.interval,r="next"==e?"left":"right",l=this;if(o.hasClass("active"))return this.sliding=!1;var c=o[0],h=t.Event("slide.bs.carousel",{relatedTarget:c,direction:r});if(this.$element.trigger(h),!h.isDefaultPrevented()){if(this.sliding=!0,a&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var u=t(this.$indicators.children()[this.getItemIndex(o)]);u&&u.addClass("active")}var d=t.Event("slid.bs.carousel",{relatedTarget:c,direction:r});return t.support.transition&&this.$element.hasClass("slide")?(o.addClass(e),o[0].offsetWidth,s.addClass(r),o.addClass(r),s.one("bsTransitionEnd",function(){o.removeClass([e,r].join(" ")).addClass("active"),s.removeClass(["active",r].join(" ")),l.sliding=!1,setTimeout(function(){l.$element.trigger(d)},0)}).emulateTransitionEnd(i.TRANSITION_DURATION)):(s.removeClass("active"),o.addClass("active"),this.sliding=!1,this.$element.trigger(d)),a&&this.cycle(),this}};var n=t.fn.carousel;t.fn.carousel=e,t.fn.carousel.Constructor=i,t.fn.carousel.noConflict=function(){return t.fn.carousel=n,this};var s=function(i){var n,s=t(this),o=t(s.attr("data-target")||(n=s.attr("href"))&&n.replace(/.*(?=#[^\s]+$)/,""));if(o.hasClass("carousel")){var a=t.extend({},o.data(),s.data()),r=s.attr("data-slide-to");r&&(a.interval=!1),e.call(o,a),r&&o.data("bs.carousel").to(r),i.preventDefault()}};t(document).on("click.bs.carousel.data-api","[data-slide]",s).on("click.bs.carousel.data-api","[data-slide-to]",s),t(window).on("load",function(){t('[data-ride="carousel"]').each(function(){var i=t(this);e.call(i,i.data())})})}(jQuery),function(t){"use strict";function e(e){var i;return t(e.attr("data-target")||(i=e.attr("href"))&&i.replace(/.*(?=#[^\s]+$)/,""))}function i(e){return this.each(function(){var i=t(this),s=i.data("bs.collapse"),o=t.extend({},n.DEFAULTS,i.data(),"object"==typeof e&&e);!s&&o.toggle&&/show|hide/.test(e)&&(o.toggle=!1),s||i.data("bs.collapse",s=new n(this,o)),"string"==typeof e&&s[e]()})}var n=function(e,i){this.$element=t(e),this.options=t.extend({},n.DEFAULTS,i),this.$trigger=t('[data-toggle="collapse"][href="#'+e.id+'"],[data-toggle="collapse"][data-target="#'+e.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};n.VERSION="3.3.5",n.TRANSITION_DURATION=350,n.DEFAULTS={toggle:!0},n.prototype.dimension=function(){return this.$element.hasClass("width")?"width":"height"},n.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var e,s=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(s&&s.length&&(e=s.data("bs.collapse"))&&e.transitioning)){var o=t.Event("show.bs.collapse");if(this.$element.trigger(o),!o.isDefaultPrevented()){s&&s.length&&(i.call(s,"hide"),e||s.data("bs.collapse",null));var a=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[a](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var r=function(){this.$element.removeClass("collapsing").addClass("collapse in")[a](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!t.support.transition)return r.call(this);var l=t.camelCase(["scroll",a].join("-"));this.$element.one("bsTransitionEnd",t.proxy(r,this)).emulateTransitionEnd(n.TRANSITION_DURATION)[a](this.$element[0][l])}}}},n.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var e=t.Event("hide.bs.collapse");if(this.$element.trigger(e),!e.isDefaultPrevented()){var 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;var s=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return t.support.transition?void this.$element[i](0).one("bsTransitionEnd",t.proxy(s,this)).emulateTransitionEnd(n.TRANSITION_DURATION):s.call(this)}}},n.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},n.prototype.getParent=function(){return t(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(t.proxy(function(i,n){var s=t(n);this.addAriaAndCollapsedClass(e(s),s)},this)).end()},n.prototype.addAriaAndCollapsedClass=function(t,e){var i=t.hasClass("in");t.attr("aria-expanded",i),e.toggleClass("collapsed",!i).attr("aria-expanded",i)};var s=t.fn.collapse;t.fn.collapse=i,t.fn.collapse.Constructor=n,t.fn.collapse.noConflict=function(){return t.fn.collapse=s,this},t(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(n){var s=t(this);s.attr("data-target")||n.preventDefault();var o=e(s),a=o.data("bs.collapse"),r=a?"toggle":s.data();i.call(o,r)})}(jQuery),function(t){"use strict";function e(e){var i=e.attr("data-target");i||(i=e.attr("href"),i=i&&/#[A-Za-z]/.test(i)&&i.replace(/.*(?=#[^\s]*$)/,""));var n=i&&t(i);return n&&n.length?n:e.parent()}function i(i){i&&3===i.which||(t(s).remove(),t(o).each(function(){var n=t(this),s=e(n),o={relatedTarget:this};s.hasClass("open")&&(i&&"click"==i.type&&/input|textarea/i.test(i.target.tagName)&&t.contains(s[0],i.target)||(s.trigger(i=t.Event("hide.bs.dropdown",o)),i.isDefaultPrevented()||(n.attr("aria-expanded","false"),s.removeClass("open").trigger("hidden.bs.dropdown",o))))}))}function n(e){return this.each(function(){var i=t(this),n=i.data("bs.dropdown");n||i.data("bs.dropdown",n=new a(this)),"string"==typeof e&&n[e].call(i)})}var s=".dropdown-backdrop",o='[data-toggle="dropdown"]',a=function(e){t(e).on("click.bs.dropdown",this.toggle)};a.VERSION="3.3.5",a.prototype.toggle=function(n){var s=t(this);if(!s.is(".disabled, :disabled")){var o=e(s),a=o.hasClass("open");if(i(),!a){"ontouchstart"in document.documentElement&&!o.closest(".navbar-nav").length&&t(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(t(this)).on("click",i);var r={relatedTarget:this};if(o.trigger(n=t.Event("show.bs.dropdown",r)),n.isDefaultPrevented())return;s.trigger("focus").attr("aria-expanded","true"),o.toggleClass("open").trigger("shown.bs.dropdown",r)}return!1}},a.prototype.keydown=function(i){if(/(38|40|27|32)/.test(i.which)&&!/input|textarea/i.test(i.target.tagName)){var n=t(this);if(i.preventDefault(),i.stopPropagation(),!n.is(".disabled, :disabled")){var s=e(n),a=s.hasClass("open");if(!a&&27!=i.which||a&&27==i.which)return 27==i.which&&s.find(o).trigger("focus"),n.trigger("click");var r=s.find(".dropdown-menu li:not(.disabled):visible a");if(r.length){var l=r.index(i.target);38==i.which&&l>0&&l--,40==i.which&&ldocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&t?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!t?this.scrollbarWidth:""})},i.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},i.prototype.checkScrollbar=function(){var t=window.innerWidth;if(!t){var e=document.documentElement.getBoundingClientRect();t=e.right-Math.abs(e.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},i.prototype.init=function(e,i,n){if(this.enabled=!0,this.type=e,this.$element=t(i),this.options=this.getOptions(n),this.$viewport=this.options.viewport&&t(t.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(var s=this.options.trigger.split(" "),o=s.length;o--;){var a=s[o];if("click"==a)this.$element.on("click."+this.type,this.options.selector,t.proxy(this.toggle,this));else if("manual"!=a){var r="hover"==a?"mouseenter":"focusin",l="hover"==a?"mouseleave":"focusout";this.$element.on(r+"."+this.type,this.options.selector,t.proxy(this.enter,this)),this.$element.on(l+"."+this.type,this.options.selector,t.proxy(this.leave,this))}}this.options.selector?this._options=t.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.getOptions=function(e){return e=t.extend({},this.getDefaults(),this.$element.data(),e),e.delay&&"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),e},i.prototype.getDelegateOptions=function(){var e={},i=this.getDefaults();return this._options&&t.each(this._options,function(t,n){i[t]!=n&&(e[t]=n)}),e},i.prototype.enter=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusin"==e.type?"focus":"hover"]=!0),i.tip().hasClass("in")||"in"==i.hoverState?void(i.hoverState="in"):(clearTimeout(i.timeout),i.hoverState="in",i.options.delay&&i.options.delay.show?void(i.timeout=setTimeout(function(){"in"==i.hoverState&&i.show()},i.options.delay.show)):i.show())},i.prototype.isInStateTrue=function(){for(var t in this.inState)if(this.inState[t])return!0;return!1},i.prototype.leave=function(e){var i=e instanceof this.constructor?e:t(e.currentTarget).data("bs."+this.type);return i||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i)),e instanceof t.Event&&(i.inState["focusout"==e.type?"focus":"hover"]=!1),i.isInStateTrue()?void 0:(clearTimeout(i.timeout),i.hoverState="out",i.options.delay&&i.options.delay.hide?void(i.timeout=setTimeout(function(){"out"==i.hoverState&&i.hide()},i.options.delay.hide)):i.hide())},i.prototype.show=function(){var e=t.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(e);var n=t.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(e.isDefaultPrevented()||!n)return;var s=this,o=this.tip(),a=this.getUID(this.type);this.setContent(),o.attr("id",a),this.$element.attr("aria-describedby",a),this.options.animation&&o.addClass("fade");var r="function"==typeof this.options.placement?this.options.placement.call(this,o[0],this.$element[0]):this.options.placement,l=/\s?auto?\s?/i,c=l.test(r);c&&(r=r.replace(l,"")||"top"),o.detach().css({top:0,left:0,display:"block"}).addClass(r).data("bs."+this.type,this),this.options.container?o.appendTo(this.options.container):o.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var h=this.getPosition(),u=o[0].offsetWidth,d=o[0].offsetHeight;if(c){var f=r,p=this.getPosition(this.$viewport);r="bottom"==r&&h.bottom+d>p.bottom?"top":"top"==r&&h.top-dp.width?"left":"left"==r&&h.left-ua.top+a.height&&(s.top=a.top+a.height-l)}else{var c=e.left-o,h=e.left+o+i;ca.right&&(s.left=a.left+a.width-h)}return s},i.prototype.getTitle=function(){var t=this.$element,e=this.options;return t.attr("data-original-title")||("function"==typeof e.title?e.title.call(t[0]):e.title)},i.prototype.getUID=function(t){do{t+=~~(1e6*Math.random())}while(document.getElementById(t));return t},i.prototype.tip=function(){if(!this.$tip&&(this.$tip=t(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},i.prototype.enable=function(){this.enabled=!0},i.prototype.disable=function(){this.enabled=!1},i.prototype.toggleEnabled=function(){this.enabled=!this.enabled},i.prototype.toggle=function(e){var i=this;e&&((i=t(e.currentTarget).data("bs."+this.type))||(i=new this.constructor(e.currentTarget,this.getDelegateOptions()),t(e.currentTarget).data("bs."+this.type,i))),e?(i.inState.click=!i.inState.click,i.isInStateTrue()?i.enter(i):i.leave(i)):i.tip().hasClass("in")?i.leave(i):i.enter(i)},i.prototype.destroy=function(){var t=this;clearTimeout(this.timeout),this.hide(function(){t.$element.off("."+t.type).removeData("bs."+t.type),t.$tip&&t.$tip.detach(),t.$tip=null,t.$arrow=null,t.$viewport=null})};var n=t.fn.tooltip;t.fn.tooltip=e,t.fn.tooltip.Constructor=i,t.fn.tooltip.noConflict=function(){return t.fn.tooltip=n,this}}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.popover"),o="object"==typeof e&&e;(s||!/destroy|hide/.test(e))&&(s||n.data("bs.popover",s=new i(this,o)),"string"==typeof e&&s[e]())})}var i=function(t,e){this.init("popover",t,e)};if(!t.fn.tooltip)throw new Error("Popover requires tooltip.js");i.VERSION="3.3.5",i.DEFAULTS=t.extend({},t.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),i.prototype=t.extend({},t.fn.tooltip.Constructor.prototype),i.prototype.constructor=i,i.prototype.getDefaults=function(){return i.DEFAULTS},i.prototype.setContent=function(){var t=this.tip(),e=this.getTitle(),i=this.getContent();t.find(".popover-title")[this.options.html?"html":"text"](e),t.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof i?"html":"append":"text"](i),t.removeClass("fade top bottom left right in"),t.find(".popover-title").html()||t.find(".popover-title").hide()},i.prototype.hasContent=function(){return this.getTitle()||this.getContent()},i.prototype.getContent=function(){var t=this.$element,e=this.options;return t.attr("data-content")||("function"==typeof e.content?e.content.call(t[0]):e.content)},i.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var n=t.fn.popover;t.fn.popover=e,t.fn.popover.Constructor=i,t.fn.popover.noConflict=function(){return t.fn.popover=n,this}}(jQuery),function(t){"use strict";function e(i,n){this.$body=t(document.body),this.$scrollElement=t(t(i).is(document.body)?window:i),this.options=t.extend({},e.DEFAULTS,n),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",t.proxy(this.process,this)),this.refresh(),this.process()}function i(i){return this.each(function(){var n=t(this),s=n.data("bs.scrollspy"),o="object"==typeof i&&i;s||n.data("bs.scrollspy",s=new e(this,o)),"string"==typeof i&&s[i]()})}e.VERSION="3.3.5",e.DEFAULTS={offset:10},e.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},e.prototype.refresh=function(){var e=this,i="offset",n=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),t.isWindow(this.$scrollElement[0])||(i="position",n=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var e=t(this),s=e.data("target")||e.attr("href"),o=/^#./.test(s)&&t(s);return o&&o.length&&o.is(":visible")&&[[o[i]().top+n,s]]||null}).sort(function(t,e){return t[0]-e[0]}).each(function(){e.offsets.push(this[0]),e.targets.push(this[1])})},e.prototype.process=function(){ var t,e=this.$scrollElement.scrollTop()+this.options.offset,i=this.getScrollHeight(),n=this.options.offset+i-this.$scrollElement.height(),s=this.offsets,o=this.targets,a=this.activeTarget;if(this.scrollHeight!=i&&this.refresh(),e>=n)return a!=(t=o[o.length-1])&&this.activate(t);if(a&&e=s[t]&&(void 0===s[t+1]||e .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),e.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),r?(e[0].offsetWidth,e.addClass("in")):e.removeClass("fade"),e.parent(".dropdown-menu").length&&e.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),s&&s()}var a=n.find("> .active"),r=s&&t.support.transition&&(a.length&&a.hasClass("fade")||!!n.find("> .fade").length);a.length&&r?a.one("bsTransitionEnd",o).emulateTransitionEnd(i.TRANSITION_DURATION):o(),a.removeClass("in")};var n=t.fn.tab;t.fn.tab=e,t.fn.tab.Constructor=i,t.fn.tab.noConflict=function(){return t.fn.tab=n,this};var s=function(i){i.preventDefault(),e.call(t(this),"show")};t(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',s).on("click.bs.tab.data-api",'[data-toggle="pill"]',s)}(jQuery),function(t){"use strict";function e(e){return this.each(function(){var n=t(this),s=n.data("bs.affix"),o="object"==typeof e&&e;s||n.data("bs.affix",s=new i(this,o)),"string"==typeof e&&s[e]()})}var i=function(e,n){this.options=t.extend({},i.DEFAULTS,n),this.$target=t(this.options.target).on("scroll.bs.affix.data-api",t.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",t.proxy(this.checkPositionWithEventLoop,this)),this.$element=t(e),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};i.VERSION="3.3.5",i.RESET="affix affix-top affix-bottom",i.DEFAULTS={offset:0,target:window},i.prototype.getState=function(t,e,i,n){var s=this.$target.scrollTop(),o=this.$element.offset(),a=this.$target.height();if(null!=i&&"top"==this.affixed)return i>s&&"top";if("bottom"==this.affixed)return null!=i?!(s+this.unpin<=o.top)&&"bottom":!(t-n>=s+a)&&"bottom";var r=null==this.affixed,l=r?s:o.top,c=r?a:e;return null!=i&&i>=s?"top":null!=n&&l+c>=t-n&&"bottom"},i.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(i.RESET).addClass("affix");var t=this.$target.scrollTop(),e=this.$element.offset();return this.pinnedOffset=e.top-t},i.prototype.checkPositionWithEventLoop=function(){setTimeout(t.proxy(this.checkPosition,this),1)},i.prototype.checkPosition=function(){if(this.$element.is(":visible")){var e=this.$element.height(),n=this.options.offset,s=n.top,o=n.bottom,a=Math.max(t(document).height(),t(document.body).height());"object"!=typeof n&&(o=s=n),"function"==typeof s&&(s=n.top(this.$element)),"function"==typeof o&&(o=n.bottom(this.$element));var r=this.getState(a,e,s,o);if(this.affixed!=r){null!=this.unpin&&this.$element.css("top","");var l="affix"+(r?"-"+r:""),c=t.Event(l+".bs.affix");if(this.$element.trigger(c),c.isDefaultPrevented())return;this.affixed=r,this.unpin="bottom"==r?this.getPinnedOffset():null,this.$element.removeClass(i.RESET).addClass(l).trigger(l.replace("affix","affixed")+".bs.affix")}"bottom"==r&&this.$element.offset({top:a-e-o})}};var n=t.fn.affix;t.fn.affix=e,t.fn.affix.Constructor=i,t.fn.affix.noConflict=function(){return t.fn.affix=n,this},t(window).on("load",function(){t('[data-spy="affix"]').each(function(){var i=t(this),n=i.data();n.offset=n.offset||{},null!=n.offsetBottom&&(n.offset.bottom=n.offsetBottom),null!=n.offsetTop&&(n.offset.top=n.offsetTop),e.call(i,n)})})}(jQuery),function(t,e){"use strict";"undefined"!=typeof module&&module.exports?module.exports=e(require("jquery"),require("bootstrap")):"function"==typeof define&&define.amd?define("bootstrap-dialog",["jquery","bootstrap"],function(t){return e(t)}):t.BootstrapDialog=e(t.jQuery)}(this,function(t){"use strict";var e=t.fn.modal.Constructor,i=function(t,i){e.call(this,t,i)};i.getModalVersion=function(){return void 0===t.fn.modal.Constructor.VERSION?"v3.1":/3\.2\.\d+/.test(t.fn.modal.Constructor.VERSION)?"v3.2":/3\.3\.[1,2]/.test(t.fn.modal.Constructor.VERSION)?"v3.3":"v3.3.4"},i.ORIGINAL_BODY_PADDING=parseInt(t("body").css("padding-right")||0,10),i.METHODS_TO_OVERRIDE={},i.METHODS_TO_OVERRIDE["v3.1"]={},i.METHODS_TO_OVERRIDE["v3.2"]={hide:function(e){if(e&&e.preventDefault(),e=t.Event("hide.bs.modal"),this.$element.trigger(e),this.isShown&&!e.isDefaultPrevented()){this.isShown=!1;0===this.getGlobalOpenedDialogs().length&&this.$body.removeClass("modal-open"),this.resetScrollbar(),this.escape(),t(document).off("focusin.bs.modal"),this.$element.removeClass("in").attr("aria-hidden",!0).off("click.dismiss.bs.modal"),t.support.transition&&this.$element.hasClass("fade")?this.$element.one("bsTransitionEnd",t.proxy(this.hideModal,this)).emulateTransitionEnd(300):this.hideModal()}}},i.METHODS_TO_OVERRIDE["v3.3"]={setScrollbar:function(){var t=i.ORIGINAL_BODY_PADDING;this.bodyIsOverflowing&&this.$body.css("padding-right",t+this.scrollbarWidth)},resetScrollbar:function(){0===this.getGlobalOpenedDialogs().length&&this.$body.css("padding-right",i.ORIGINAL_BODY_PADDING)},hideModal:function(){this.$element.hide(),this.backdrop(t.proxy(function(){0===this.getGlobalOpenedDialogs().length&&this.$body.removeClass("modal-open"),this.resetAdjustments(),this.resetScrollbar(),this.$element.trigger("hidden.bs.modal")},this))}},i.METHODS_TO_OVERRIDE["v3.3.4"]=t.extend({},i.METHODS_TO_OVERRIDE["v3.3"]),i.prototype={constructor:i,getGlobalOpenedDialogs:function(){var e=[];return t.each(n.dialogs,function(t,i){i.isRealized()&&i.isOpened()&&e.push(i)}),e}},i.prototype=t.extend(i.prototype,e.prototype,i.METHODS_TO_OVERRIDE[i.getModalVersion()]);var n=function(e){this.defaultOptions=t.extend(!0,{id:n.newGuid(),buttons:[],data:{},onshow:null,onshown:null,onhide:null,onhidden:null},n.defaultOptions),this.indexedButtons={},this.registeredButtonHotkeys={},this.draggableData={isMouseDown:!1,mouseOffset:{}},this.realized=!1,this.opened=!1,this.initOptions(e),this.holdThisInstance()};return n.BootstrapDialogModal=i,n.NAMESPACE="bootstrap-dialog",n.TYPE_DEFAULT="type-default",n.TYPE_INFO="type-info",n.TYPE_PRIMARY="type-primary",n.TYPE_SUCCESS="type-success",n.TYPE_WARNING="type-warning",n.TYPE_DANGER="type-danger",n.DEFAULT_TEXTS={},n.DEFAULT_TEXTS[n.TYPE_DEFAULT]="Information",n.DEFAULT_TEXTS[n.TYPE_INFO]="Information",n.DEFAULT_TEXTS[n.TYPE_PRIMARY]="Information",n.DEFAULT_TEXTS[n.TYPE_SUCCESS]="Success",n.DEFAULT_TEXTS[n.TYPE_WARNING]="Warning",n.DEFAULT_TEXTS[n.TYPE_DANGER]="Danger",n.DEFAULT_TEXTS.OK="OK",n.DEFAULT_TEXTS.CANCEL="Cancel",n.DEFAULT_TEXTS.CONFIRM="Confirmation",n.SIZE_NORMAL="size-normal",n.SIZE_SMALL="size-small",n.SIZE_WIDE="size-wide",n.SIZE_LARGE="size-large",n.BUTTON_SIZES={},n.BUTTON_SIZES[n.SIZE_NORMAL]="",n.BUTTON_SIZES[n.SIZE_SMALL]="",n.BUTTON_SIZES[n.SIZE_WIDE]="",n.BUTTON_SIZES[n.SIZE_LARGE]="btn-lg",n.ICON_SPINNER="glyphicon glyphicon-asterisk",n.defaultOptions={type:n.TYPE_PRIMARY,size:n.SIZE_NORMAL,cssClass:"",title:null,message:null,nl2br:!0,closable:!0,closeByBackdrop:!0,closeByKeyboard:!0,spinicon:n.ICON_SPINNER,autodestroy:!0,draggable:!1,animate:!0,description:"",tabindex:-1},n.configDefaultOptions=function(e){n.defaultOptions=t.extend(!0,n.defaultOptions,e)},n.dialogs={},n.openAll=function(){t.each(n.dialogs,function(t,e){e.open()})},n.closeAll=function(){t.each(n.dialogs,function(t,e){e.close()})},n.moveFocus=function(){var e=null;t.each(n.dialogs,function(t,i){e=i}),null!==e&&e.isRealized()&&e.getModal().focus()},n.METHODS_TO_OVERRIDE={},n.METHODS_TO_OVERRIDE["v3.1"]={handleModalBackdropEvent:function(){return this.getModal().on("click",{dialog:this},function(t){t.target===this&&t.data.dialog.isClosable()&&t.data.dialog.canCloseByBackdrop()&&t.data.dialog.close()}),this},updateZIndex:function(){var e=0;t.each(n.dialogs,function(t,i){e++});var i=this.getModal(),s=i.data("bs.modal").$backdrop;return i.css("z-index",1050+20*(e-1)),s.css("z-index",1040+20*(e-1)),this},open:function(){return!this.isRealized()&&this.realize(),this.getModal().modal("show"),this.updateZIndex(),this}},n.METHODS_TO_OVERRIDE["v3.2"]={handleModalBackdropEvent:n.METHODS_TO_OVERRIDE["v3.1"].handleModalBackdropEvent,updateZIndex:n.METHODS_TO_OVERRIDE["v3.1"].updateZIndex,open:n.METHODS_TO_OVERRIDE["v3.1"].open},n.METHODS_TO_OVERRIDE["v3.3"]={},n.METHODS_TO_OVERRIDE["v3.3.4"]=t.extend({},n.METHODS_TO_OVERRIDE["v3.1"]),n.prototype={constructor:n,initOptions:function(e){return this.options=t.extend(!0,this.defaultOptions,e),this},holdThisInstance:function(){return n.dialogs[this.getId()]=this,this},initModalStuff:function(){return this.setModal(this.createModal()).setModalDialog(this.createModalDialog()).setModalContent(this.createModalContent()).setModalHeader(this.createModalHeader()).setModalBody(this.createModalBody()).setModalFooter(this.createModalFooter()),this.getModal().append(this.getModalDialog()),this.getModalDialog().append(this.getModalContent()),this.getModalContent().append(this.getModalHeader()).append(this.getModalBody()).append(this.getModalFooter()),this},createModal:function(){var e=t('');return e.prop("id",this.getId()),e.attr("aria-labelledby",this.getId()+"_title"),e},getModal:function(){return this.$modal},setModal:function(t){return this.$modal=t,this},createModalDialog:function(){return t('')},getModalDialog:function(){return this.$modalDialog},setModalDialog:function(t){return this.$modalDialog=t,this},createModalContent:function(){return t('')},getModalContent:function(){return this.$modalContent},setModalContent:function(t){return this.$modalContent=t,this},createModalHeader:function(){return t('')},getModalHeader:function(){return this.$modalHeader},setModalHeader:function(t){return this.$modalHeader=t,this},createModalBody:function(){return t('')},getModalBody:function(){return this.$modalBody},setModalBody:function(t){return this.$modalBody=t,this},createModalFooter:function(){return t('')},getModalFooter:function(){return this.$modalFooter},setModalFooter:function(t){return this.$modalFooter=t,this},createDynamicContent:function(t){var e=null;return e="function"==typeof t?t.call(t,this):t,"string"==typeof e&&(e=this.formatStringContent(e)),e},formatStringContent:function(t){return this.options.nl2br?t.replace(/\r\n/g,"
").replace(/[\r\n]/g,"
"):t},setData:function(t,e){return this.options.data[t]=e,this},getData:function(t){return this.options.data[t]},setId:function(t){return this.options.id=t,this},getId:function(){return this.options.id},getType:function(){return this.options.type},setType:function(t){return this.options.type=t,this.updateType(),this},updateType:function(){if(this.isRealized()){var t=[n.TYPE_DEFAULT,n.TYPE_INFO,n.TYPE_PRIMARY,n.TYPE_SUCCESS,n.TYPE_WARNING,n.TYPE_DANGER];this.getModal().removeClass(t.join(" ")).addClass(this.getType())}return this},getSize:function(){return this.options.size},setSize:function(t){return this.options.size=t,this.updateSize(),this},updateSize:function(){if(this.isRealized()){var e=this;this.getModal().removeClass(n.SIZE_NORMAL).removeClass(n.SIZE_SMALL).removeClass(n.SIZE_WIDE).removeClass(n.SIZE_LARGE),this.getModal().addClass(this.getSize()),this.getModalDialog().removeClass("modal-sm"),this.getSize()===n.SIZE_SMALL&&this.getModalDialog().addClass("modal-sm"),this.getModalDialog().removeClass("modal-lg"),this.getSize()===n.SIZE_WIDE&&this.getModalDialog().addClass("modal-lg"),t.each(this.options.buttons,function(i,n){var s=e.getButton(n.id),o=["btn-lg","btn-sm","btn-xs"],a=!1;if("string"==typeof n.cssClass){var r=n.cssClass.split(" ");t.each(r,function(e,i){-1!==t.inArray(i,o)&&(a=!0)})}a||(s.removeClass(o.join(" ")),s.addClass(e.getButtonSize()))})}return this},getCssClass:function(){return this.options.cssClass},setCssClass:function(t){return this.options.cssClass=t,this},getTitle:function(){return this.options.title},setTitle:function(t){return this.options.title=t,this.updateTitle(),this},updateTitle:function(){if(this.isRealized()){var t=null!==this.getTitle()?this.createDynamicContent(this.getTitle()):this.getDefaultText();this.getModalHeader().find("."+this.getNamespace("title")).html("").append(t).prop("id",this.getId()+"_title")}return this},getMessage:function(){return this.options.message},setMessage:function(t){return this.options.message=t,this.updateMessage(),this},updateMessage:function(){if(this.isRealized()){var t=this.createDynamicContent(this.getMessage());this.getModalBody().find("."+this.getNamespace("message")).html("").append(t)}return this},isClosable:function(){return this.options.closable},setClosable:function(t){return this.options.closable=t,this.updateClosable(),this},setCloseByBackdrop:function(t){return this.options.closeByBackdrop=t,this},canCloseByBackdrop:function(){return this.options.closeByBackdrop},setCloseByKeyboard:function(t){return this.options.closeByKeyboard=t,this},canCloseByKeyboard:function(){return this.options.closeByKeyboard},isAnimate:function(){return this.options.animate},setAnimate:function(t){return this.options.animate=t,this},updateAnimate:function(){return this.isRealized()&&this.getModal().toggleClass("fade",this.isAnimate()),this},getSpinicon:function(){return this.options.spinicon},setSpinicon:function(t){return this.options.spinicon=t,this},addButton:function(t){return this.options.buttons.push(t),this},addButtons:function(e){var i=this;return t.each(e,function(t,e){i.addButton(e)}),this},getButtons:function(){return this.options.buttons},setButtons:function(t){return this.options.buttons=t,this.updateButtons(),this},getButton:function(t){return void 0!==this.indexedButtons[t]?this.indexedButtons[t]:null},getButtonSize:function(){return void 0!==n.BUTTON_SIZES[this.getSize()]?n.BUTTON_SIZES[this.getSize()]:""},updateButtons:function(){return this.isRealized()&&(0===this.getButtons().length?this.getModalFooter().hide():this.getModalFooter().show().find("."+this.getNamespace("footer")).html("").append(this.createFooterButtons())),this},isAutodestroy:function(){return this.options.autodestroy},setAutodestroy:function(t){this.options.autodestroy=t},getDescription:function(){return this.options.description},setDescription:function(t){return this.options.description=t,this},setTabindex:function(t){return this.options.tabindex=t,this},getTabindex:function(){return this.options.tabindex},updateTabindex:function(){return this.isRealized()&&this.getModal().attr("tabindex",this.getTabindex()),this},getDefaultText:function(){return n.DEFAULT_TEXTS[this.getType()]},getNamespace:function(t){return n.NAMESPACE+"-"+t},createHeaderContent:function(){var e=t("
");return e.addClass(this.getNamespace("header")),e.append(this.createTitleContent()),e.prepend(this.createCloseButton()),e},createTitleContent:function(){var e=t("
");return e.addClass(this.getNamespace("title")),e},createCloseButton:function(){var e=t("
");e.addClass(this.getNamespace("close-button"));var i=t('');return e.append(i),e.on("click",{dialog:this},function(t){t.data.dialog.close()}),e},createBodyContent:function(){var e=t("
");return e.addClass(this.getNamespace("body")),e.append(this.createMessageContent()),e},createMessageContent:function(){var e=t("
");return e.addClass(this.getNamespace("message")),e},createFooterContent:function(){var e=t("
");return e.addClass(this.getNamespace("footer")),e},createFooterButtons:function(){var e=this,i=t("
");return i.addClass(this.getNamespace("footer-buttons")),this.indexedButtons={},t.each(this.options.buttons,function(t,s){s.id||(s.id=n.newGuid());var o=e.createButton(s);e.indexedButtons[s.id]=o,i.append(o)}),i},createButton:function(e){var i=t('');return i.prop("id",e.id),i.data("button",e),void 0!==e.icon&&""!==t.trim(e.icon)&&i.append(this.createButtonIcon(e.icon)),void 0!==e.label&&i.append(e.label),i.addClass(void 0!==e.cssClass&&""!==t.trim(e.cssClass)?e.cssClass:"btn-default"),void 0!==e.hotkey&&(this.registeredButtonHotkeys[e.hotkey]=i),i.on("click",{dialog:this,$button:i,button:e},function(t){var e=t.data.dialog,i=t.data.$button,n=i.data("button");"function"==typeof n.action&&n.action.call(i,e,t),n.autospin&&i.toggleSpin(!0)}),this.enhanceButton(i),i},enhanceButton:function(t){return t.dialog=this,t.toggleEnable=function(t){var e=this;return void 0!==t?e.prop("disabled",!t).toggleClass("disabled",!t):e.prop("disabled",!e.prop("disabled")),e},t.enable=function(){var t=this;return t.toggleEnable(!0),t},t.disable=function(){var t=this;return t.toggleEnable(!1),t},t.toggleSpin=function(e){var i=this,n=i.dialog,s=i.find("."+n.getNamespace("button-icon"));return void 0===e&&(e=!(t.find(".icon-spin").length>0)),e?(s.hide(),t.prepend(n.createButtonIcon(n.getSpinicon()).addClass("icon-spin"))):(s.show(),t.find(".icon-spin").remove()),i},t.spin=function(){var t=this;return t.toggleSpin(!0),t},t.stopSpin=function(){var t=this;return t.toggleSpin(!1),t},this},createButtonIcon:function(e){var i=t("");return i.addClass(this.getNamespace("button-icon")).addClass(e),i},enableButtons:function(e){return t.each(this.indexedButtons,function(t,i){i.toggleEnable(e)}),this},updateClosable:function(){return this.isRealized()&&this.getModalHeader().find("."+this.getNamespace("close-button")).toggle(this.isClosable()),this},onShow:function(t){return this.options.onshow=t,this},onShown:function(t){return this.options.onshown=t,this},onHide:function(t){return this.options.onhide=t,this},onHidden:function(t){return this.options.onhidden=t,this},isRealized:function(){return this.realized},setRealized:function(t){return this.realized=t,this},isOpened:function(){return this.opened},setOpened:function(t){return this.opened=t,this},handleModalEvents:function(){return this.getModal().on("show.bs.modal",{dialog:this},function(t){var e=t.data.dialog;if(e.setOpened(!0),e.isModalEvent(t)&&"function"==typeof e.options.onshow){var i=e.options.onshow(e);return i===!1&&e.setOpened(!1),i}}),this.getModal().on("shown.bs.modal",{dialog:this},function(t){var e=t.data.dialog;e.isModalEvent(t)&&"function"==typeof e.options.onshown&&e.options.onshown(e)}),this.getModal().on("hide.bs.modal",{dialog:this},function(t){var e=t.data.dialog;if(e.setOpened(!1),e.isModalEvent(t)&&"function"==typeof e.options.onhide){var i=e.options.onhide(e);return i===!1&&e.setOpened(!0),i}}),this.getModal().on("hidden.bs.modal",{dialog:this},function(e){var i=e.data.dialog;i.isModalEvent(e)&&"function"==typeof i.options.onhidden&&i.options.onhidden(i),i.isAutodestroy()&&(delete n.dialogs[i.getId()],t(this).remove()),n.moveFocus()}),this.handleModalBackdropEvent(),this.getModal().on("keyup",{dialog:this},function(t){27===t.which&&t.data.dialog.isClosable()&&t.data.dialog.canCloseByKeyboard()&&t.data.dialog.close()}),this.getModal().on("keyup",{dialog:this},function(e){var i=e.data.dialog;if(void 0!==i.registeredButtonHotkeys[e.which]){var n=t(i.registeredButtonHotkeys[e.which]);!n.prop("disabled")&&n.focus().trigger("click")}}),this},handleModalBackdropEvent:function(){return this.getModal().on("click",{dialog:this},function(e){t(e.target).hasClass("modal-backdrop")&&e.data.dialog.isClosable()&&e.data.dialog.canCloseByBackdrop()&&e.data.dialog.close()}),this},isModalEvent:function(t){return void 0!==t.namespace&&"bs.modal"===t.namespace},makeModalDraggable:function(){return this.options.draggable&&(this.getModalHeader().addClass(this.getNamespace("draggable")).on("mousedown",{dialog:this},function(t){var e=t.data.dialog;e.draggableData.isMouseDown=!0;var i=e.getModalDialog().offset();e.draggableData.mouseOffset={top:t.clientY-i.top,left:t.clientX-i.left}}),this.getModal().on("mouseup mouseleave",{dialog:this},function(t){t.data.dialog.draggableData.isMouseDown=!1}),t("body").on("mousemove",{dialog:this},function(t){var e=t.data.dialog;e.draggableData.isMouseDown&&e.getModalDialog().offset({top:t.clientY-e.draggableData.mouseOffset.top,left:t.clientX-e.draggableData.mouseOffset.left})})),this},realize:function(){return this.initModalStuff(),this.getModal().addClass(n.NAMESPACE).addClass(this.getCssClass()),this.updateSize(),this.getDescription()&&this.getModal().attr("aria-describedby",this.getDescription()),this.getModalFooter().append(this.createFooterContent()),this.getModalHeader().append(this.createHeaderContent()),this.getModalBody().append(this.createBodyContent()),this.getModal().data("bs.modal",new i(this.getModal(),{backdrop:"static",keyboard:!1,show:!1})),this.makeModalDraggable(),this.handleModalEvents(),this.setRealized(!0),this.updateButtons(),this.updateType(),this.updateTitle(),this.updateMessage(),this.updateClosable(),this.updateAnimate(),this.updateSize(),this.updateTabindex(),this},open:function(){return!this.isRealized()&&this.realize(),this.getModal().modal("show"),this},close:function(){return this.getModal().modal("hide"),this}},n.prototype=t.extend(n.prototype,n.METHODS_TO_OVERRIDE[i.getModalVersion()]),n.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})},n.show=function(t){return new n(t).open()},n.alert=function(){var e={},i={type:n.TYPE_PRIMARY,title:null,message:null,closable:!1,draggable:!1,buttonLabel:n.DEFAULT_TEXTS.OK,callback:null};return e="object"==typeof arguments[0]&&arguments[0].constructor==={}.constructor?t.extend(!0,i,arguments[0]):t.extend(!0,i,{message:arguments[0],callback:void 0!==arguments[1]?arguments[1]:null}),new n({type:e.type,title:e.title,message:e.message,closable:e.closable,draggable:e.draggable,data:{callback:e.callback},onhide:function(t){!t.getData("btnClicked")&&t.isClosable()&&"function"==typeof t.getData("callback")&&t.getData("callback")(!1)},buttons:[{label:e.buttonLabel,action:function(t){t.setData("btnClicked",!0),"function"==typeof t.getData("callback")&&t.getData("callback")(!0),t.close()}}]}).open()},n.confirm=function(){var e={},i={type:n.TYPE_PRIMARY,title:null,message:null,closable:!1,draggable:!1,btnCancelLabel:n.DEFAULT_TEXTS.CANCEL,btnOKLabel:n.DEFAULT_TEXTS.OK,btnOKClass:null,callback:null};return e="object"==typeof arguments[0]&&arguments[0].constructor==={}.constructor?t.extend(!0,i,arguments[0]):t.extend(!0,i,{message:arguments[0],closable:!1,buttonLabel:n.DEFAULT_TEXTS.OK,callback:void 0!==arguments[1]?arguments[1]:null}),null===e.btnOKClass&&(e.btnOKClass=["btn",e.type.split("-")[1]].join("-")),new n({type:e.type,title:e.title,message:e.message,closable:e.closable,draggable:e.draggable,data:{callback:e.callback},buttons:[{label:e.btnCancelLabel,action:function(t){"function"==typeof t.getData("callback")&&t.getData("callback")(!1),t.close()}},{label:e.btnOKLabel,cssClass:e.btnOKClass,action:function(t){"function"==typeof t.getData("callback")&&t.getData("callback")(!0),t.close()}}]}).open()},n.warning=function(t,e){return new n({type:n.TYPE_WARNING,message:t}).open()},n.danger=function(t,e){return new n({type:n.TYPE_DANGER,message:t}).open()},n.success=function(t,e){return new n({type:n.TYPE_SUCCESS,message:t}).open()},n});var wa=!0,wtc=5,wt,first_resize=!1;$(document).ready(function(){if($('[data-toggle="offcanvas"]').click(function(){if(TMP.h_i_l_m=parseInt($("#i_l_m").height()),$(".row-offcanvas").toggleClass("active"),$(".sidebar-offcanvas").toggleClass("hidden-sm"),$(".sidebar-offcanvas").toggleClass("hidden-xs"),$(".row-offcanvas").hasClass("active")){var t=$("#content").position(),e=(t.left,$("#content").width(),$("#btn-menu-rechts").offset()),i=e.top+$("#btn-menu-rechts").height()-$("#cont-navi").height()-15;$("ASIDE").css("position","absolute").css("top",i+"px").css("right",0).css("display","block")}else $("ASIDE").css("position","static").show()}),PLUGINS.smartscroll={speed:500,easing:"easeInOutCubic",updateURL:!1,offset:100},$(window).resize(function(){update_resize()}),$(".kasten").each(function(t){if(!$(this).hasClass("no-close")){var e=$(this).find("h2:first-child").html(),i="

"+e+"

",e=$(this).find("h2:first-child").remove();$(this).prepend(i)}}),$(".ic_schliessen").each(function(t){var e=$(this).parent().parent().parent(),i=e.children("h2:first").attr("desc");void 0!==i?("off"==$.cookie("showk"+i)&&(e.children(".fb-container").hide(),$(this).addClass("rot180")),$(this).click(function(t){var i=e.children("h2:first").attr("desc");e.children(".fb-container").is(":visible")?(e.children(".fb-container").slideUp(300),$(this).addClass("rot180"),$.cookie("showk"+i,"off")):(e.children(".fb-container").slideDown(300),$(this).removeClass("rot180"),$.cookie("showk"+i,""))})):$(this).hide()}),$(".fitText").fitText(1.2),$(".fitText2").fitText(1),$(".suchbox_ac").each(function(){$(this).autocomplete({serviceUrl:"/cgibin/ac.cgi",params:{f:$(this).attr("name")},minChars:2,onSelect:function(t,e){$(this).parent().submit()}})}),!$.cookie("id")){var t=539*Math.floor(100*Math.random());$.cookie("id","gast"+t)}jQuery.validator.addMethod("preis",function(t,e){return this.optional(e)||/^[\d\,]+$/i.test(t)},"Nur Zahlen und Komma sind erlaubt"),validateLogin(),updateUI(),update_resize(),JSA=1}),function(t,e,i,n){var s=e.createElement("canvas").getContext,o=t.fn.peity=function(e,i){return s&&this.each(function(){var n=t(this),s=n.data("peity");if(s)e&&(s.type=e),t.extend(s.opts,i),s.draw();else{var r=o.defaults[e],l={};t.each(n.data(),function(t,e){t in r&&(l[t]=e)});var c=t.extend({},r,l,i),s=new a(n,e,c);s.draw(),n.change(function(){s.draw()}).data("peity",s)}}),this},a=function(t,e,i){this.$el=t,this.type=e,this.opts=i},e=a.prototype;e.colours=function(){var e=this.opts.colours,i=e;return t.isFunction(i)||(i=function(t,i){return e[i%e.length]}),i},e.draw=function(){o.graphers[this.type].call(this,this.opts)},e.prepareCanvas=function(e,i){var s,o=this.canvas;return o?(this.context.clearRect(0,0,o.width,o.height),s=t(o)):(s=t("").css({height:i,width:e}).addClass("peity").data("peity",this),this.canvas=o=s[0],this.context=o.getContext("2d"),this.$el.hide().after(o)),o.height=s.height()*n,o.width=s.width()*n,o},e.values=function(){return t.map(this.$el.text().split(this.opts.delimiter),function(t){return parseFloat(t)})},o.defaults={},o.graphers={},o.register=function(t,e,i){this.defaults[t]=e,this.graphers[t]=i},o.register("pie",{colours:["#ff9900","#fff4dd","#ffc66e"],delimiter:null,diameter:16},function(t){if(!t.delimiter){var e=this.$el.text().match(/[^0-9\.]/);t.delimiter=e?e[0]:","}if(e=this.values(),"/"==t.delimiter)var n=e[0],e=[n,e[1]-n];for(var s=0,n=e.length,o=0;s

Das Fertighaus als familienfreundliche Wohnlösung

Foto von  Das Fertighaus als familienfreundliche Wohnlösung
Die Vorstellung vom Eigenheim wächst bei vielen Familien besonders stark – ein Platz, an dem Kinder unbeschwert aufwachsen, gemeinsame Erinnerungen geschaffen und langfristige Pläne verwirklicht werden.

Was ist ein Fertighaus?

Ein Fertighaus ist ein Gebäude, das aus vorgefertigten Bauelementen wie Wänden, Dächern und Decken besteht, die in einer Produktionshalle unter kontrollierten Bedingungen hergestellt werden. Diese Bauelemente werden anschließend zur Baustelle transportiert und dort zusammengesetzt – das spart Zeit und bietet eine hohe Präzision bei der Umsetzung.

Durch die industrielle Vorproduktion profitieren Fertighäuser von standardisierten Abläufen, die Bauzeiten verkürzen und die Bauqualität verbessern. Anders als oft angenommen, sind Fertighäuser jedoch keineswegs „Häuser von der Stange“: Moderne Fertighäuser bieten vielfältige Designmöglichkeiten und können ganz individuell an die Wünsche und Bedürfnisse von Familien angepasst werden.

Für Familien, die schnell ins Eigenheim einziehen und gleichzeitig ihre Wohnräume nach eigenen Vorstellungen gestalten möchten, bieten Fertighäuser eine attraktive und zukunftssichere Wohnlösung.

Vorteile eines Fertighauses für Familien

Fertighäuser bieten Familien zahlreiche Vorteile, die den Weg ins Eigenheim erleichtern. Diese drei Aspekte machen sie besonders attraktiv:

  • Zeitersparnis: Der Bau eines Fertighauses ist schnell und effizient. Durch die Vorproduktion der Bauteile in wetterunabhängigen Hallen kann das Haus oft innerhalb weniger Tage aufgestellt werden. Für Interessierte besteht die Möglichkeit, direkt Fertighäuser anzufragen und sich über die vielfältigen Optionen zu informieren. Für Familien bedeutet das: weniger Wartezeit, weniger Mietkosten und schneller ins eigene Zuhause.

  • Flexibilität im Design: Ein Fertighaus klingt zwar nach Standard, doch die meisten Anbieter ermöglichen heute eine individuelle Gestaltung. Ob offener Wohnbereich, kinderfreundliche Grundrisse oder ein großes Esszimmer – Familien können das Zuhause ganz nach ihren Bedürfnissen planen und auf zukünftige Veränderungen ausrichten.

  • Energieeffizienz und Nachhaltigkeit: Moderne Fertighäuser setzen oft auf nachhaltige Bauweisen und energiesparende Technologien. Die Verwendung von natürlichen Materialien und energiesparenden Heizsystemen schont das Familienbudget und bietet ein gesundes Raumklima, was besonders für junge Familien wichtig ist.

  • Kostensicherheit: Viele Fertighausanbieter arbeiten mit Festpreisen, wodurch Familien eine klare Übersicht über die Kosten erhalten. So gibt es weniger Überraschungen, und das Budget bleibt planbar.

  • Gesundes Wohnklima: Fertighäuser setzen häufig auf natürliche Materialien wie Holz und allergikerfreundliche Bauweisen. Familien, besonders mit kleinen Kindern oder Allergikern, profitieren so von einer besseren Luftqualität und einem angenehmen Raumklima.

  • Umweltfreundlichkeit: Neben der Energieeffizienz legt der Fertighausbau oft Wert auf ökologische Materialien und eine nachhaltige Bauweise, was umweltbewussten Familien zugutekommt.

Diese Vorteile machen das Fertighaus zu einer flexiblen und familienfreundlichen Wahl, die nicht nur finanzielle, sondern auch praktische Vorteile bietet.


Fördermöglichkeiten: Unterstützung für Familien

Der Bau eines Eigenheims ist eine große Investition, aber für energieeffiziente Fertighäuser gibt es attraktive Fördermöglichkeiten, die Familien finanziell entlasten können. Verschiedene staatliche Programme und Kredite helfen dabei, die Kosten zu senken und langfristig zu sparen.

  • KfW-Förderprogramme: Die Kreditanstalt für Wiederaufbau (KfW) bietet spezielle Förderungen für energieeffiziente Neubauten, die bestimmte Standards in Bezug auf Dämmung und Energieeinsparung erfüllen. Besonders beliebt sind das KfW-Programm 153 für energieeffiziente Häuser sowie weitere Zuschüsse, die Familien beim Bau eines nachhaltigen und sparsamen Zuhauses unterstützen.

  • BAFA-Förderung: Das Bundesamt für Wirtschaft und Ausfuhrkontrolle (BAFA) unterstützt ebenfalls Maßnahmen, die den Energieverbrauch senken. Förderungen gibt es hier zum Beispiel für den Einbau von Wärmepumpen und Solarthermie-Anlagen, die die Energiekosten langfristig senken und das Eigenheim umweltfreundlicher machen.

  • Regionale Förderungen: Viele Bundesländer und Gemeinden bieten zusätzliche Zuschüsse und Förderprogramme für den Hausbau an. Familien sollten sich daher vor Ort bei den zuständigen Ämtern oder auf den Webseiten ihrer Stadt über mögliche Unterstützungen informieren.

Familien, die diese Fördermöglichkeiten nutzen möchten, sollten sich frühzeitig beraten lassen, da oft spezielle Anforderungen erfüllt werden müssen. Informationen zu den einzelnen Programmen und eine persönliche Beratung bieten unter anderem Banken, die KfW sowie Energieberater. Eine umfassende Planung kann helfen, die besten Förderungen zu kombinieren und das Budget optimal zu entlasten.

Den richtigen Anbieter finden

Die Wahl des passenden Anbieters ist ein entscheidender Schritt für Familien, die ein Fertighaus bauen möchten. Qualität, Zuverlässigkeit und eine transparente Kommunikation sind hierbei besonders wichtig, um böse Überraschungen zu vermeiden und das neue Zuhause auf solider Grundlage zu errichten.

  • Materialqualität und Bauweise: Die Qualität der verwendeten Materialien und die Bauweise des Anbieters sind ausschlaggebend für die Lebensdauer und den Komfort des Hauses. Familien sollten auf Zertifizierungen, Qualitätsstandards und Kundenbewertungen achten, um sicherzustellen, dass der Anbieter ihren Ansprüchen gerecht wird.

  • Garantien und Service: Ein guter Anbieter bietet umfassende Garantien und einen zuverlässigen Kundenservice. Dies schließt häufige Kontrolltermine und die Möglichkeit ein, den Baufortschritt jederzeit zu prüfen. Einige Anbieter erlauben Familien auch, an bestimmten Bauphasen teilzunehmen, um Fragen zu klären und das Vertrauen in die Bauqualität zu stärken.

  • Referenzen und Bewertungen: Referenzen und Kundenbewertungen sind wertvolle Quellen, um die Seriosität eines Anbieters einzuschätzen. Viele Familien berichten online über ihre Erfahrungen, die bei der Entscheidungsfindung helfen können. Zusätzlich kann ein Besuch bei bereits realisierten Bauprojekten des Anbieters einen authentischen Eindruck vermitteln.

Familien sollten sich die Zeit nehmen, verschiedene Anbieter zu vergleichen und auf Transparenz und eine offene Kommunikation zu achten. Ein vertrauenswürdiger Anbieter wird nicht nur Fragen umfassend beantworten, sondern auch transparente Angebote ohne versteckte Kosten liefern. Diese Sorgfalt in der Anbietersuche schafft die Grundlage für ein Zuhause, das den Ansprüchen der ganzen Familie gerecht wird.

Herausforderungen und Planungsdetails nicht unterschätzen

So verlockend die Vorteile eines Fertighauses auch sein mögen, Familien sollten sich bewusst sein, dass auch hier einige Herausforderungen auf sie warten. Ein oft unterschätzter Faktor ist die Wahl des passenden Grundstücks. Nicht jedes Gelände ist ohne Weiteres für den schnellen Aufbau eines Fertighauses geeignet, und zusätzliche Kosten für die Erschließung können schnell das Budget sprengen. Daher lohnt es sich, bereits bei der Grundstückssuche genau zu prüfen, ob das ausgewählte Grundstück alle Anforderungen erfüllt und der Anbieter es für den Bau freigibt.

Auch rechtliche Fragen spielen eine Rolle: Je nach Region gibt es spezifische Bauvorschriften und Bebauungspläne, die unbedingt berücksichtigt werden müssen. Wer hier nicht gut informiert ist, könnte unangenehme Überraschungen erleben, die den Bauprozess verzögern oder zusätzliche Kosten verursachen. Die meisten Fertighausanbieter unterstützen bei diesen Formalitäten, jedoch ist eine enge Absprache wichtig, damit alle Anforderungen im Vorfeld geklärt sind.

Ein weiterer Punkt ist die spätere Anpassbarkeit des Hauses. Zwar bieten Fertighäuser vielfältige Gestaltungsmöglichkeiten, doch größere bauliche Veränderungen im Nachhinein sind oft aufwendiger als bei konventionellen Häusern. Daher sollten Familien bereits in der Planungsphase darauf achten, dass der Grundriss flexibel genug ist, um zukünftigen Bedürfnissen gerecht zu werden. Modulwände oder Räume, die leicht umfunktioniert werden können, bieten hier eine Lösung für Familien, die langfristig denken.

Fazit: Fertighäuser als familienfreundliche Wahl mit Zukunftspotenzial

Für viele Familien sind Fertighäuser die ideale Lösung, um den Traum vom eigenen Heim schnell und planbar zu verwirklichen. Mit klaren Vorteilen wie Zeitersparnis, finanzieller Transparenz und nachhaltigen Bauweisen bieten Fertighäuser genau die Flexibilität, die junge Familien heute suchen. Sie kombinieren moderne Designs mit individuellen Gestaltungsmöglichkeiten, die es Familien ermöglichen, ein Zuhause ganz nach ihren Bedürfnissen zu schaffen – jetzt und in Zukunft.

Doch ein Fertighaus ist auch eine Investition, die gut durchdacht sein will. Eine sorgfältige Planung, die Wahl des richtigen Anbieters und ein realistischer Blick auf mögliche Herausforderungen sind entscheidend, um am Ende ein Zuhause zu haben, das wirklich zu einem passt. Familien, die diese Punkte beachten, können mit einem Fertighaus eine nachhaltige und flexible Wohnlösung finden, die ihnen viele Jahre Freude bereitet.

Wer frühzeitig mit einem klaren Plan startet und sich umfassend informiert, wird im Fertighaus einen verlässlichen Weg finden, den eigenen Wohntraum umzusetzen und ein Zuhause zu schaffen, in dem die ganze Familie glücklich ist.

Das könnte dich auch interessieren