jQuery.webshims.register("form-message",function(a,c,r,i,v,k){var g=c.validityMessages,r=k.overrideMessages||k.customMessages?["customValidationMessage"]:[];g.en=a.extend(!0,{typeMismatch:{email:"Please enter an email address.",url:"Please enter a URL.",number:"Please enter a number.",date:"Please enter a date.",time:"Please enter a time.",range:"Invalid input.","datetime-local":"Please enter a datetime."},rangeUnderflow:{defaultMessage:"Value must be greater than or equal to {%min}."},rangeOverflow:{defaultMessage:"Value must be less than or equal to {%max}."}, stepMismatch:"Invalid input.",tooLong:"Please enter at most {%maxlength} character(s). You entered {%valueLen}.",patternMismatch:"Invalid input. {%title}",valueMissing:{defaultMessage:"Please fill out this field.",checkbox:"Please check this box if you want to proceed."}},g.en||g["en-US"]||{});["select","radio"].forEach(function(a){g.en.valueMissing[a]="Please select an option."});["date","time","datetime-local"].forEach(function(a){g.en.rangeUnderflow[a]="Value must be at or after {%min}."});["date", "time","datetime-local"].forEach(function(a){g.en.rangeOverflow[a]="Value must be at or before {%max}."});g["en-US"]=g["en-US"]||g.en;g[""]=g[""]||g["en-US"];g.de=a.extend(!0,{typeMismatch:{email:"{%value} ist keine zul\u00e4ssige E-Mail-Adresse",url:"{%value} ist keine zul\u00e4ssige Webadresse",number:"{%value} ist keine Nummer!",date:"{%value} ist kein Datum",time:"{%value} ist keine Uhrzeit",range:"{%value} ist keine Nummer!","datetime-local":"{%value} ist kein Datum-Uhrzeit Format."},rangeUnderflow:{defaultMessage:"{%value} ist zu niedrig. {%min} ist der unterste Wert, den Sie benutzen k\u00f6nnen."}, rangeOverflow:{defaultMessage:"{%value} ist zu hoch. {%max} ist der oberste Wert, den Sie benutzen k\u00f6nnen."},stepMismatch:"Der Wert {%value} ist in diesem Feld nicht zul\u00e4ssig. Hier sind nur bestimmte Werte zul\u00e4ssig. {%title}",tooLong:"Der eingegebene Text ist zu lang! Sie haben {%valueLen} Zeichen eingegeben, dabei sind {%maxlength} das Maximum.",patternMismatch:"{%value} hat f\u00fcr dieses Eingabefeld ein falsches Format! {%title}",valueMissing:{defaultMessage:"Bitte geben Sie einen Wert ein", checkbox:"Bitte aktivieren Sie das K\u00e4stchen"}},g.de||{});["select","radio"].forEach(function(a){g.de.valueMissing[a]="Bitte w\u00e4hlen Sie eine Option aus"});["date","time","datetime-local"].forEach(function(a){g.de.rangeUnderflow[a]="{%value} ist zu fr\u00fch. {%min} ist die fr\u00fcheste Zeit, die Sie benutzen k\u00f6nnen."});["date","time","datetime-local"].forEach(function(a){g.de.rangeOverflow[a]="{%value} ist zu sp\u00e4t. {%max} ist die sp\u00e4teste Zeit, die Sie benutzen k\u00f6nnen."}); var u=g[""];c.createValidationMessage=function(g,i){var j=u[i];j&&"string"!==typeof j&&(j=j[a.prop(g,"type")]||j[(g.nodeName||"").toLowerCase()]||j.defaultMessage);j&&"value,min,max,title,maxlength,label".split(",").forEach(function(q){if(-1!==j.indexOf("{%"+q)){var p=("label"==q?a.trim(a('label[for="'+g.id+'"]',g.form).text()).replace(/\*$|:$/,""):a.attr(g,q))||"";"patternMismatch"==i&&"title"==q&&!p&&c.error("no title for patternMismatch provided. Always add a title attribute.");j=j.replace("{%"+ q+"}",p);"value"==q&&(j=j.replace("{%valueLen}",p.length))}});return j||""};(c.bugs.validationMessage||!Modernizr.formvalidation||c.bugs.bustedValidity)&&r.push("validationMessage");c.activeLang({langObj:g,module:"form-core",callback:function(a){u=a}});r.forEach(function(g){c.defineNodeNamesProperty(["fieldset","output","button"],g,{prop:{value:"",writeable:!1}});["input","select","textarea"].forEach(function(i){var j=c.defineNodeNameProperty(i,g,{prop:{get:function(){var g=this,i="";if(!a.prop(g, "willValidate"))return i;var k=a.prop(g,"validity")||{valid:1};if(k.valid||(i=c.getContentValidationMessage(g,k)))return i;if(k.customError&&g.nodeName&&(i=Modernizr.formvalidation&&!c.bugs.bustedValidity&&j.prop._supget?j.prop._supget.call(g):c.data(g,"customvalidationMessage")))return i;a.each(k,function(a,j){if("valid"!=a&&j&&(i=c.createValidationMessage(g,a)))return!1});return i||""},writeable:!1}})})})}); (!Modernizr.formvalidation||jQuery.webshims.bugs.bustedValidity)&&jQuery.webshims.register("form-extend",function(a,c,r,i){c.inputTypes=c.inputTypes||{};var v=c.cfg.forms,k,g=c.inputTypes,u={radio:1,checkbox:1};c.addInputType=function(a,d){g[a]=d};var y={customError:!1,typeMismatch:!1,rangeUnderflow:!1,rangeOverflow:!1,stepMismatch:!1,tooLong:!1,patternMismatch:!1,valueMissing:!1,valid:!0},w={valueMissing:function(b,d,e){if(!b.prop("required"))return!1;var h=!1;if(!("type"in e))e.type=(b[0].getAttribute("type")|| b[0].type||"").toLowerCase();if("select"==e.nodeName){if(d=!d)if(!(d=0>b[0].selectedIndex))b=b[0],d="select-one"==b.type&&2>b.size?!!a("> option:first-child",b).prop("selected"):!1;b=d}else b=u[e.type]?"checkbox"==e.type?!b.is(":checked"):!c.modules["form-core"].getGroupElements(b).filter(":checked")[0]:!d;return b},tooLong:function(){return!1},typeMismatch:function(a,d,e){if(""===d||"select"==e.nodeName)return!1;var c=!1;if(!("type"in e))e.type=(a[0].getAttribute("type")||a[0].type||"").toLowerCase(); if(g[e.type]&&g[e.type].mismatch)c=g[e.type].mismatch(d,a);else if("validity"in a[0])c=a[0].validity.typeMismatch;return c},patternMismatch:function(a,d,e){if(""===d||"select"==e.nodeName)return!1;a=a.attr("pattern");if(!a)return!1;try{a=RegExp("^(?:"+a+")$")}catch(h){c.error('invalid pattern value: "'+a+'" | '+h),a=!1}return!a?!1:!a.test(d)}};c.addValidityRule=function(a,d){w[a]=d};a.event.special.invalid={add:function(){a.event.special.invalid.setup.call(this.form||this)},setup:function(){var b= this.form||this;if(!a.data(b,"invalidEventShim")&&(a(b).data("invalidEventShim",!0).on("submit",a.event.special.invalid.handler),c.moveToFirstEvent(b,"submit"),c.bugs.bustedValidity&&a.nodeName(b,"form"))){var d=b.getAttribute("novalidate");b.setAttribute("novalidate","novalidate");c.data(b,"bustedNoValidate",null==d?null:d)}},teardown:a.noop,handler:function(b){if(!("submit"!=b.type||b.testedValidity||!b.originalEvent||!a.nodeName(b.target,"form")||a.prop(b.target,"noValidate"))){k=!0;b.testedValidity= !0;if(!a(b.target).checkValidity())return b.stopImmediatePropagation(),k=!1;k=!1}}};var j=function(b){if(!a.support.submitBubbles&&b&&"object"==typeof b&&!b._submit_attached)a.event.add(b,"submit._submit",function(a){a._submit_bubble=!0}),b._submit_attached=!0};if(!a.support.submitBubbles&&a.event.special.submit)a.event.special.submit.setup=function(){if(a.nodeName(this,"form"))return!1;a.event.add(this,"click._submit keypress._submit",function(b){b=b.target;b=a.nodeName(b,"input")||a.nodeName(b, "button")?a.prop(b,"form"):void 0;j(b)})};a.event.special.submit=a.event.special.submit||{setup:function(){return!1}};var q=a.event.special.submit.setup;a.extend(a.event.special.submit,{setup:function(){if(a.nodeName(this,"form"))a(this).on("invalid",a.noop);else a("form",this).on("invalid",a.noop);return q.apply(this,arguments)}});a(r).on("invalid",a.noop);c.addInputType("email",{mismatch:function(){var a=v.emailReg||/^[a-zA-Z0-9.!#$%&'*+-\/=?\^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/;return function(d){return!a.test(d)}}()}); c.addInputType("url",{mismatch:function(){var a=v.urlReg||/^([a-z]([a-z]|\d|\+|-|\.)*):(\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?((\[(|(v[\da-f]{1,}\.(([a-z]|\d|-|\.|_|~)|[!\$&'\(\)\*\+,;=]|:)+))\])|((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=])*)(:\d*)?)(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*|(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)|((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)){0})(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i; return function(d){return!a.test(d)}}()});c.defineNodeNameProperty("input","type",{prop:{get:function(){var a=(this.getAttribute("type")||"").toLowerCase();return c.inputTypes[a]?a:this.type}}});c.defineNodeNamesProperties(["button","fieldset","output"],{checkValidity:{value:function(){return!0}},willValidate:{value:!1},setCustomValidity:{value:a.noop},validity:{writeable:!1,get:function(){return a.extend({},y)}}},"prop");var p=function(b){var d,e=a.prop(b,"validity");if(e)a.data(b,"cachedValidity", e);else return!0;if(!e.valid){d=a.Event("invalid");var h=a(b).trigger(d);if(k&&!p.unhandledInvalids&&!d.isDefaultPrevented())c.validityAlert.showFor(h),p.unhandledInvalids=!0}a.removeData(b,"cachedValidity");return e.valid},B=/^(?:select|textarea|input)/i;c.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){var b=!0,d=a(a.prop(this,"elements")).filter(function(){if(!B.test(this.nodeName))return!1;var a=c.data(this,"shadowData");return!a||!a.nativeElement||a.nativeElement===this}); p.unhandledInvalids=!1;for(var e=0,h=d.length;ed&&b>h&&(b=Math.max(d,h),c.prop("value",a.substr(0,b)));d=b},n=function(){clearTimeout(b);c.unbind(".maxlengthconstraint")}; return function(t,z){n();if(-1a)throw"INDEX_SIZE_ERR";a=parseInt(a,10);this.setAttribute("maxlength",a);s.update(this,a)}else this.setAttribute("maxlength","0"),s.update(this,0)},get:function(){var a=this.getAttribute("maxlength");return("number"==typeof a||a&&a==1*a)&& 0<=a?parseInt(a,10):-1}}});c.defineNodeNameProperty("textarea","maxLength",{prop:{set:function(b){a.prop(this,"maxlength",b)},get:function(){return a.prop(this,"maxlength")}}})}var C={submit:1,button:1,image:1},m={};[{name:"enctype",limitedTo:{"application/x-www-form-urlencoded":1,"multipart/form-data":1,"text/plain":1},defaultProp:"application/x-www-form-urlencoded",proptype:"enum"},{name:"method",limitedTo:{get:1,post:1},defaultProp:"get",proptype:"enum"},{name:"action",proptype:"url"},{name:"target"}, {name:"novalidate",propName:"noValidate",proptype:"boolean"}].forEach(function(b){var d="form"+(b.propName||b.name).replace(/^[a-z]/,function(a){return a.toUpperCase()}),c="form"+b.name,h=b.name,f="click.webshimssubmittermutate"+h,n=function(){if("form"in this&&C[this.type]){var n=a.prop(this,"form");if(n){var f=a.attr(this,c);if(null!=f&&(!b.limitedTo||f.toLowerCase()===a.prop(this,d))){var l=a.attr(n,h);a.attr(n,h,f);setTimeout(function(){if(null!=l)a.attr(n,h,l);else try{a(n).removeAttr(h)}catch(b){n.removeAttribute(h)}}, 9)}}}};switch(b.proptype){case "url":var t=i.createElement("form");m[d]={prop:{set:function(b){a.attr(this,c,b)},get:function(){var b=a.attr(this,c);if(null==b)return"";t.setAttribute("action",b);return t.action}}};break;case "boolean":m[d]={prop:{set:function(b){b?a.attr(this,"formnovalidate","formnovalidate"):a(this).removeAttr("formnovalidate")},get:function(){return null!=a.attr(this,"formnovalidate")}}};break;case "enum":m[d]={prop:{set:function(b){a.attr(this,c,b)},get:function(){var d=a.attr(this, c);return!d||(d=d.toLowerCase())&&!b.limitedTo[d]?b.defaultProp:d}}};break;default:m[d]={prop:{set:function(b){a.attr(this,c,b)},get:function(){var b=a.attr(this,c);return null!=b?b:""}}}}m[c]||(m[c]={});m[c].attr={set:function(b){m[c].attr._supset.call(this,b);a(this).unbind(f).on(f,n)},get:function(){return m[c].attr._supget.call(this)}};m[c].initAttr=!0;m[c].removeAttr={value:function(){a(this).unbind(f);m[c].removeAttr._supvalue.call(this)}}});c.defineNodeNamesProperties(["input","button"],m); !a.support.getSetAttribute&&null==a("
").attr("novalidate")?c.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){this.setAttribute("novalidate",""+a)},get:function(){var a=this.getAttribute("novalidate");return null==a?void 0:a}}}):c.bugs.bustedValidity&&(c.defineNodeNameProperty("form","novalidate",{attr:{set:function(a){c.data(this,"bustedNoValidate",""+a)},get:function(){var a=c.data(this,"bustedNoValidate");return null==a?void 0:a}},removeAttr:{value:function(){c.data(this, "bustedNoValidate",null)}}}),a.each(["rangeUnderflow","rangeOverflow","stepMismatch"],function(a,c){w[c]=function(a){return(a[0].validity||{})[c]||!1}}));c.defineNodeNameProperty("form","noValidate",{prop:{set:function(b){b?a.attr(this,"novalidate","novalidate"):a(this).removeAttr("novalidate")},get:function(){return null!=a.attr(this,"novalidate")}}});a.browser.webkit&&Modernizr.inputtypes.date&&function(){var b={updateInput:1,input:1},d={date:1,time:1,"datetime-local":1},e={focusout:1,blur:1},h= {updateInput:1,change:1},f=function(a){var c,d=!0,f=a.prop("value"),l=f,o=function(c){if(a){var o=a.prop("value");o!==f&&(f=o,(!c||!b[c.type])&&a.trigger("input"));c&&h[c.type]&&(l=o);!d&&o!==l&&a.trigger("change")}},A,g=function(b){clearInterval(c);setTimeout(function(){b&&e[b.type]&&(d=!1);a&&(a.unbind("focusout blur",g).unbind("input change updateInput",o),o());a=null},1)};clearInterval(c);c=setInterval(o,160);clearTimeout(A);A=setTimeout(o,9);a.off({"focusout blur":g,"input change updateInput":o}).on({"focusout blur":g, "input updateInput change":o})};if(a.event.customEvent)a.event.customEvent.updateInput=!0;(function(){var b=function(b){var c=1,d,f;if("date"==b.type&&(k||!a(b).is(":focus")))if((f=b.value)&&10>f.length&&(f=f.split("-"))&&3==f.length){for(;3>c;c++)if(1==f[c].length)f[c]="0"+f[c];else if(2!=f[c].length){d=!0;break}if(!d)return f=f.join("-"),a.prop(b,"value",f),f}},d,f,e,l;d=c.defineNodeNameProperty("input","checkValidity",{prop:{value:function(){b(this);return d.prop._supvalue.apply(this,arguments)}}}); f=c.defineNodeNameProperty("form","checkValidity",{prop:{value:function(){a("input",this).each(function(){b(this)});return f.prop._supvalue.apply(this,arguments)}}});e=c.defineNodeNameProperty("input","value",{prop:{set:function(){return e.prop._supset.apply(this,arguments)},get:function(){return b(this)||e.prop._supget.apply(this,arguments)}}});l=c.defineNodeNameProperty("input","validity",{prop:{writeable:!1,get:function(){b(this);return l.prop._supget.apply(this,arguments)}}});a(i).on("change", function(a){isChangeSubmit=!0;b(a.target);isChangeSubmit=!1})})();a(i).on("focusin",function(b){b.target&&d[b.target.type]&&!b.target.readOnly&&!b.target.disabled&&f(a(b.target))})}();c.addReady(function(b,c){var e;a("form",b).add(c.filter("form")).bind("invalid",a.noop);try{if(b==i&&!("form"in(i.activeElement||{})))(e=a("input[autofocus], select[autofocus], textarea[autofocus]",b).eq(0).getShadowFocusElement()[0])&&e.offsetHeight&&e.offsetWidth&&e.focus()}catch(h){}});(!Modernizr.formattribute|| !Modernizr.fieldsetdisabled)&&function(){(function(b,c){a.prop=function(d,e,h){var l;if(d&&1==d.nodeType&&h===c&&a.nodeName(d,"form")&&d.id){l=i.getElementsByName(e);if(!l||!l.length)l=i.getElementById(e);if(l&&(l=a(l).filter(function(){return a.prop(this,"form")==d}).get(),l.length))return 1==l.length?l[0]:l}return b.apply(this,arguments)}})(a.prop,void 0);var b=function(b){var c=a.data(b,"webshimsAddedElements");c&&(c.remove(),a.removeData(b,"webshimsAddedElements"))},d=/\r?\n/g,e=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i, h=/^(?:select|textarea)/i;Modernizr.formattribute||(c.defineNodeNamesProperty(["input","textarea","select","button","fieldset"],"form",{prop:{get:function(){var b=c.contentAttr(this,"form");b&&(b=i.getElementById(b))&&!a.nodeName(b,"form")&&(b=null);return b||this.form},writeable:!1}}),c.defineNodeNamesProperty(["form"],"elements",{prop:{get:function(){var b=this.id,c=a.makeArray(this.elements);b&&(c=a(c).add('input[form="'+b+'"], select[form="'+b+'"], textarea[form="'+b+'"], button[form="'+b+'"], fieldset[form="'+ b+'"]').not(".webshims-visual-hide > *").get());return c},writeable:!1}}),a(function(){var c=function(a){a.stopPropagation()};a(i).on("submit",function(c){if(!c.isDefaultPrevented()){var d=c.target;if(c=d.id)b(d),c=a('input[form="'+c+'"], select[form="'+c+'"], textarea[form="'+c+'"]').filter(function(){return!this.disabled&&this.name&&this.form!=d}).clone(),c.length&&(a.data(d,"webshimsAddedElements",a('
').append(c).appendTo(d)),setTimeout(function(){b(d)},9)), c=null}});a(i).on("click",function(b){if(!b.isDefaultPrevented()&&a(b.target).is('input[type="submit"][form], button[form], input[type="button"][form], input[type="image"][form], input[type="reset"][form]')){var d=a.prop(b.target,"form"),e=b.target.form,h;d&&d!=e&&(h=a(b.target).clone().removeAttr("form").addClass("webshims-visual-hide").on("click",c).appendTo(d),e&&b.preventDefault(),j(d),h.trigger("click"),setTimeout(function(){h.remove();h=null},9))}})}));Modernizr.fieldsetdisabled||c.defineNodeNamesProperty(["fieldset"], "elements",{prop:{get:function(){return a("input, select, textarea, button, fieldset",this).get()||[]},writeable:!1}});a.fn.serializeArray=function(){return this.map(function(){var b=a.prop(this,"elements");return b?a.makeArray(b):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||h.test(this.nodeName)||e.test(this.type))}).map(function(b,c){var e=a(this).val();return null==e?null:a.isArray(e)?a.map(e,function(a){return{name:c.name,value:a.replace(d,"\r\n")}}):{name:c.name, value:e.replace(d,"\r\n")}}).get()}}();try{i.querySelector(":checked")}catch(D){(function(){var b={radio:1,checkbox:1},d=function(){var b=this.options||[],c,d,e;for(c=0,d=b.length;c")[0]);var b=a.browser.webkit&&Modernizr.textareaPlaceholder&& 535>c.browserVersion;if(!Modernizr.input.placeholder||!Modernizr.textareaPlaceholder||b){var d="over"==c.cfg.forms.placeholderType,e=c.cfg.forms.responsivePlaceholder,h=["textarea"];Modernizr.input.placeholder||h.push("input");var f=function(a){try{if(a.setSelectionRange)return a.setSelectionRange(0,0),!0;if(a.createTextRange){var b=a.createTextRange();b.collapse(!0);b.moveEnd("character",0);b.moveStart("character",0);b.select();return!0}}catch(c){}},g=function(b,c,e,g){!1===e&&(e=a.prop(b,"value")); if(!d&&"password"!=b.type){if(!e&&g&&f(b)){var h=setTimeout(function(){f(b)},9);a(b).off(".placeholderremove").on({"keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove":function(d){if(!d||!(17==d.keyCode||16==d.keyCode))b.value=a.prop(b,"value"),c.box.removeClass("placeholder-visible"),clearTimeout(h),a(b).unbind(".placeholderremove")},"mousedown.placeholderremove drag.placeholderremove select.placeholderremove":function(){f(b);clearTimeout(h);h=setTimeout(function(){f(b)}, 9)},"blur.placeholderremove":function(){clearTimeout(h);a(b).unbind(".placeholderremove")}});return}b.value=e}else if(!e&&g){a(b).off(".placeholderremove").on({"keydown.placeholderremove keypress.placeholderremove paste.placeholderremove input.placeholderremove":function(d){if(!d||!(17==d.keyCode||16==d.keyCode))c.box.removeClass("placeholder-visible"),a(b).unbind(".placeholderremove")},"blur.placeholderremove":function(){a(b).unbind(".placeholderremove")}});return}c.box.removeClass("placeholder-visible")}, i=function(b,c,e,f,h){if(!f&&(f=a.data(b,"placeHolder"),!f))return;a(b).unbind(".placeholderremove");if("focus"==h||!h&&a(b).is(":focus"))("password"==b.type||d||a(b).hasClass("placeholder-visible"))&&g(b,f,"",!0);else if(!1===c&&(c=a.prop(b,"value")),c)g(b,f,c);else if(!1===e&&(e=a.attr(b,"placeholder")||""),e&&!c){c=f;!1===e&&(e=a.prop(b,"placeholder"));if(!d&&"password"!=b.type)b.value=e;c.box.addClass("placeholder-visible")}else g(b,f,c)},j=function(b){var b=a(b),c=b.prop("id"),d=!(!b.prop("title")&& !b.attr("aria-labelledby"));!d&&c&&(d=!!a('label[for="'+c+'"]',b[0].form)[0]);d||(c||(c=a.webshims.getID(b)),d=!!a("label #"+c)[0]);return a(d?'':'')},x=function(){var b={text:1,search:1,url:1,email:1,password:1,tel:1};return{create:function(b){var c=a.data(b,"placeHolder"),f;if(c)return c;c=a.data(b,"placeHolder",{});a(b).on("focus.placeholder blur.placeholder",function(a){i(this,!1,!1,c,a.type);c.box["focus"== a.type?"addClass":"removeClass"]("placeholder-focused")});if(f=a.prop(b,"form"))a(f).on("reset.placeholder",function(a){setTimeout(function(){i(b,!1,!1,c,a.type)},0)});if("password"==b.type||d)c.text=j(b),c.box=e||a(b).is(".responsive-width")||-1!=(b.currentStyle||{width:""}).width.indexOf("%")?c.text:a(b).wrap('').parent(),c.text.insertAfter(b).on("mousedown.placeholder",function(){i(this, !1,!1,c,"focus");try{setTimeout(function(){b.focus()},0)}catch(a){}return!1}),a.each(["lineHeight","fontSize","fontFamily","fontWeight"],function(d,e){var f=a.css(b,e);c.text.css(e)!=f&&c.text.css(e,f)}),a.each(["Left","Top"],function(d,e){var f=(parseInt(a.css(b,"padding"+e),10)||0)+Math.max(parseInt(a.css(b,"margin"+e),10)||0,0)+(parseInt(a.css(b,"border"+e+"Width"),10)||0);c.text.css("padding"+e,f)}),a(b).on("updateshadowdom",function(){var d,e;((e=b.offsetWidth)||(d=b.offsetHeight))&&c.text.css({width:e, height:d}).css(a(b).position())}).triggerHandler("updateshadowdom");else{var h=function(d){a(b).hasClass("placeholder-visible")&&(g(b,c,""),d&&"submit"==d.type&&setTimeout(function(){d.isDefaultPrevented()&&i(b,!1,!1,c)},9))};a(r).on("beforeunload",h);c.box=a(b);f&&a(f).submit(h)}return c},update:function(d,e){var f=(a.attr(d,"type")||a.prop(d,"type")||"").toLowerCase();!b[f]&&!a.nodeName(d,"textarea")?(c.error('placeholder not allowed on input[type="'+f+'"]'),"date"==f&&c.error('but you can use data-placeholder for input[type="date"]')): (f=x.create(d),f.text&&f.text.text(e),i(d,!1,e,f))}}}();a.webshims.publicMethods={pHolder:x};h.forEach(function(a){c.defineNodeNameProperty(a,"placeholder",{attr:{set:function(a){b?(c.data(this,"textareaPlaceholder",a),this.placeholder=""):c.contentAttr(this,"placeholder",a);x.update(this,a)},get:function(){return(b?c.data(this,"textareaPlaceholder"):"")||c.contentAttr(this,"placeholder")}},reflect:!0,initAttr:!0})});h.forEach(function(d){var e={},f;["attr","prop"].forEach(function(d){e[d]={set:function(e){var h; b&&(h=c.data(this,"textareaPlaceholder"));h||(h=c.contentAttr(this,"placeholder"));a.removeData(this,"cachedValidity");var g=f[d]._supset.call(this,e);h&&"value"in this&&i(this,e,h);return g},get:function(){return a(this).hasClass("placeholder-visible")?"":f[d]._supget.call(this)}}});f=c.defineNodeNameProperty(d,"value",e)})}})();(function(){if(!("value"in i.createElement("output"))){c.defineNodeNameProperty("output","value",{prop:{set:function(c){var e=a.data(this,"outputShim");e||(e=b(this));e(c)}, get:function(){return c.contentAttr(this,"value")||a(this).text()||""}}});c.onNodeNamesPropertyModify("input","value",function(b,c,h){"removeAttr"!=h&&(c=a.data(this,"outputShim"))&&c(b)});var b=function(b){if(!b.getAttribute("aria-live")){var b=a(b),e=(b.text()||"").trim(),h=b.attr("id"),f=b.attr("for"),g=a('').insertAfter(b),j=g[0].form||i,k=function(a){g[0].value=a; a=g[0].value;b.text(a);c.contentAttr(b[0],"value",a)};b[0].defaultValue=e;c.contentAttr(b[0],"value",e);b.attr({"aria-live":"polite"});h&&(g.attr("id",h),b.attr("aria-labelledby",c.getID(a('label[for="'+h+'"]',j))));f&&(h=c.getID(b),f.split(" ").forEach(function(a){(a=i.getElementById(a))&&a.setAttribute("aria-controls",h)}));b.data("outputShim",k);g.data("outputShim",k);return k}};c.addReady(function(c,e){a("output",c).add(e.filter("output")).each(function(){b(this)})});(function(){var b={updateInput:1, input:1},e={radio:1,checkbox:1,submit:1,button:1,image:1,reset:1,file:1,color:1},h=function(a){var e,h=a.prop("value"),g=function(e){if(a){var g=a.prop("value");g!==h&&(h=g,(!e||!b[e.type])&&c.triggerInlineForm&&c.triggerInlineForm(a[0],"input"))}},i,j=function(){clearTimeout(i);i=setTimeout(g,9)},k=function(){a.unbind("focusout",k).unbind("keyup keypress keydown paste cut",j).unbind("input change updateInput",g);clearInterval(e);setTimeout(function(){g();a=null},1)};clearInterval(e);e=setInterval(g, 99);j();a.on({"keyup keypress keydown paste cut":j,focusout:k,"input updateInput change":g})};if(a.event.customEvent)a.event.customEvent.updateInput=!0;a(i).on("focusin",function(b){b.target&&b.target.type&&!b.target.readOnly&&!b.target.disabled&&"input"==(b.target.nodeName||"").toLowerCase()&&!e[b.target.type]&&h(a(b.target))})})()}})()});