text: !function(t,e,n,a){"use strict";var i=n.PassField=n.PassField||{};i.CharTypes={DIGIT:"digits",LETTER:"letters",LETTER_UP:"letters_up",SYMBOL:"symbols",UNKNOWN:"unknown"},i.CheckModes={MODERATE:0,STRICT:1},i.Config={defaults:{pattern:"abcdef12",acceptRate:.8,allowEmpty:!0,isMasked:!0,showToggle:!0,showGenerate:!0,showWarn:!0,showTip:!0,tipPopoverStyle:{},strengthCheckTimeout:500,validationCallback:null,blackList:[],locale:"",localeMsg:{},warnMsgClassName:"help-inline form-control-static",errorWrapClassName:"error",allowAnyChars:!0,checkMode:i.CheckModes.MODERATE,chars:{digits:"1234567890",letters:"abcdefghijklmnopqrstuvwxyzßабвгедёжзийклмнопрстуфхцчшщъыьэюяґєåäâáàãéèêëíìîїóòôõöüúùûýñçøåæþðαβγδεζηθικλμνξοπρσςτυφχψω",letters_up:"ABCDEFGHIJKLMNOPQRSTUVWXYZАБВГЕДЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯҐЄÅÄÂÁÀÃÉÈÊËÍÌÎЇÓÒÔÕÖÜÚÙÛÝÑÇØÅÆÞÐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ",symbols:"@#$%^&*()-_=+[]{};:<>/?!"},events:{generated:null,switched:null},nonMatchField:null,length:{min:null,max:null},maskBtn:{textMasked:"abc",textUnmasked:"&bull;&bull;&bull;",className:!1,classMasked:!1,classUnmasked:!1}},locales:i.Config?i.Config.locales:{},blackList:["password","123456","12345678","abc123","qwerty","monkey","letmein","dragon","111111","baseball","iloveyou","trustno1","1234567","sunshine","master","123123","welcome","shadow","ashley","football","jesus","michael","ninja","mustang","password1","p@ssw0rd","miss","root","secret"],generationChars:{digits:"1234567890",letters:"abcdefghijklmnopqrstuvwxyz",letters_up:"ABCDEFGHIJKLMNOPQRSTUVWXYZ"},dataAttr:"PassField.Field"},i.Field=function(r,o){function l(){c(),p()&&(u(),d(),N(),f(),A(),U(Et.isMasked,!1),H(),bt(i.Config.dataAttr,this))}function c(){Et.blackList=(Et.blackList||[]).concat(i.Config.blackList)}function p(){return"string"==typeof r&&(r=e.getElementById(r)),Nt.mainInput=r,yt(r.parentNode,Kt,!0)&&(St=!0),!!Nt.mainInput}function u(){var t="en",e=Et.locale;!e&&navigator.language&&(e=navigator.language.replace(/\-.*/g,"")),e&&(wt=Tt.locales[e]),wt&&(wt=s.extend({},Tt.locales[t],wt)),wt||(wt=s.extend({},Tt.locales[t])),Et.localeMsg&&s.extend(wt.msg,Et.localeMsg)}function h(t){Nt.mainInput.value=t,Nt.clearInput&&(Nt.clearInput.value=t),S()}function d(){It=Nt.mainInput.id,It||(It="i"+Math.round(1e5*Math.random()),Nt.mainInput.id=It)}function f(){var t=lt(Nt.mainInput);t.top+=ut(Nt.mainInput,"marginTop"),m(),g(),v(),y(),k(),b(),w(t),I(t),B(),setTimeout(M,0)}function m(){Nt.wrapper=Nt.mainInput.parentNode,gt(Nt.wrapper,"wrap"),xt.hasInlineBlock||gt(Nt.wrapper,"wrap-no-ib"),"static"==pt(Nt.wrapper,"position")&&(Nt.wrapper.style.position="relative")}function g(){Et.length&&Et.length.max&&Nt.mainInput.setAttribute("maxLength",Et.length.max.toString())}function v(){if(!xt.changeType){Nt.clearInput=nt("input",{type:"text",id:"txt-clear",className:"txt-clear",value:Nt.mainInput.value},{display:"none"});var t=Nt.mainInput.className;t&&gt(Nt.clearInput,t,!0);var e=Nt.mainInput.style.cssText;e&&(Nt.clearInput.style.cssText=e),s.each(["maxLength","size","placeholder"],function(t){var e=Nt.mainInput.getAttribute(t);e&&Nt.clearInput.setAttribute(t,e)}),ht(Nt.mainInput,Nt.clearInput)}gt(Nt.mainInput,"txt-pass")}function y(){if(Et.showWarn){Nt.warnMsg=nt("p",{id:"warn",className:"warn"},{margin:"0 0 0 3px"}),gt(Nt.warnMsg,"empty"),Et.warnMsgClassName&&gt(Nt.warnMsg,Et.warnMsgClassName,!0);var t=Nt.clearInput||Nt.mainInput;yt(r.parentNode,Kt,!0)&&(t=t.parentNode),ht(t,Nt.warnMsg)}}function k(){if(Et.showToggle){var t=pt(Nt.mainInput,"z-index");Nt.maskBtn=nt("div",{id:"btn-mask",className:"btn-mask",title:wt.msg.showPass},{position:"absolute",margin:"0",padding:"0","z-index":t?t+1:null}),gt(Nt.maskBtn,"btn"),Et.maskBtn.className&&gt(Nt.maskBtn,Et.maskBtn.className,!0),Et.maskBtn.classMasked&&gt(Nt.maskBtn,Et.maskBtn.classMasked,!0),ft(Nt.maskBtn,Et.maskBtn.textMasked),dt(Nt.mainInput,Nt.maskBtn)}}function b(){if(Et.showGenerate){var t=pt(Nt.mainInput,"z-index");Nt.genBtn=nt("div",{id:"btn-gen",className:"btn-gen",title:wt.msg.genPass},{position:"absolute",margin:"0",padding:"0","z-index":t?t+1:null}),gt(Nt.genBtn,"btn"),dt(Nt.mainInput,Nt.genBtn),Nt.genBtnInner=nt("div",{id:"btn-gen-i",className:"btn-gen-i",title:wt.msg.genPass}),Nt.genBtn.appendChild(Nt.genBtnInner)}}function w(e){if(Et.showTip)if(Et.tipPopoverStyle&&t&&"function"==typeof t.fn.popover)t(Nt.mainInput).popover(s.extend({title:null,placement:Et.tipPopoverStyle.placement||function(e,a){var i=t(a).position().top-t(n).scrollTop(),s=t(n).height()-i;return s>300||s>i?"bottom":"top"},animation:!1},Et.tipPopoverStyle,{trigger:"manual",html:!0,content:function(){return Ut}}));else{Nt.tip=nt("div",{id:"tip",className:"tip"},{position:"absolute",margin:"0",padding:"0",width:e.width+"px"}),dt(Nt.mainInput,Nt.tip);var a=nt("div",{id:"tip-arr-wrap",className:"tip-arr-wrap"});Nt.tip.appendChild(a),a.appendChild(nt("div",{id:"tip-arr",className:"tip-arr"})),a.appendChild(nt("div",{id:"tip-arr-in",className:"tip-arr-in"})),Nt.tipBody=nt("div",{id:"tip-body",className:"tip-body"}),Nt.tip.appendChild(Nt.tipBody)}}function I(t){if(xt.placeholders)!Nt.mainInput.getAttribute("placeholder")&&Nt.mainInput.getAttribute("data-placeholder")&&Nt.mainInput.setAttribute("placeholder",Nt.mainInput.getAttribute("data-placeholder"));else{var e=Nt.mainInput.getAttribute("placeholder")||Nt.mainInput.getAttribute("data-placeholder");e&&(Nt.placeholder=nt("div",{id:"placeholder",className:"placeholder"},{position:"absolute",margin:"0",padding:"0",height:t.height+"px",lineHeight:t.height+"px"}),ft(Nt.placeholder,e),dt(Nt.mainInput,Nt.placeholder))}}function B(){xt.passSymbol&&(Nt.passLengthChecker=nt("div",{id:"len"},{position:"absolute",height:pt(Nt.mainInput,"height"),top:"-10000px",left:"-10000px",display:"block",color:"transparent",border:"none"}),dt(Nt.mainInput,Nt.passLengthChecker),setTimeout(function(){s.each(["marginLeft","fontFamily","fontSize","fontWeight","fontStyle","fontVariant"],function(t){var e=pt(Nt.mainInput,t);e&&(Nt.passLengthChecker.style[t]=e)})},50))}function M(){x(),T();var t=lt(E()),e=C();Nt.maskBtn&&"none"!=Nt.maskBtn.style.display&&(e+=ut(Nt.maskBtn,"width"),ct(Nt.maskBtn,{top:t.top,left:t.left+t.width-e,height:t.height})),Nt.genBtn&&"none"!=Nt.genBtn.style.display&&(e+=ut(Nt.genBtn,"width"),ct(Nt.genBtn,{top:t.top,left:t.left+t.width-e,height:t.height}),Nt.genBtnInner.style.marginTop=Math.max(0,Math.round((t.height-19)/2))+"px"),Nt.placeholder&&"none"!=Nt.placeholder.style.display&&ct(Nt.placeholder,{top:t.top,left:t.left+7,height:t.height}),Nt.tip&&"none"!=Nt.tip.style.display&&ct(Nt.tip,{left:t.left,top:t.top+t.height,width:t.width})}function C(){var t=ut(E(),"paddingRight");return Math.max(Ht,t)}function x(){Nt.genBtn&&(Nt.genBtn.style.display=Ot||Wt&&!Ft?"block":"none"),Nt.maskBtn&&(Nt.maskBtn.style.display=Ot||Wt&&!Rt?"block":"none")}function T(){if(Et.showTip)if(Nt.tip)Nt.tip.style.display=Lt&&Wt?"block":"none";else if(Lt&&Wt){if(!jt||Ut!=jt){var e=t(Nt.mainInput).data("popover")||t(Nt.mainInput).data("bs.popover"),n=e.options,a=n.animation;jt&&(n.animation=!1);var i=E().offsetWidth-2,s=e.$tip;s?s.width(i):e.options.template&&(e.options.template=e.options.template.replace('class="popover"','class="popover" style="width: '+i+'px"')),Nt.clearInput&&(e.$element=t(E())),t(Nt.mainInput).popover("show"),jt=Ut,n.animation=a}}else jt&&(jt=null,t(Nt.mainInput).popover("hide"))}function N(){var t=!0,n=!0,a=e.createElement("input");"placeholder"in a||(t=!1),a.setAttribute("style","position:absolute;left:-10000px;top:-10000px;"),e.body.appendChild(a);try{a.setAttribute("type","password")}catch(i){n=!1}e.body.removeChild(a);var s=e.createElement("div");s.setAttribute("style","display:inline-block"),s.style.paddingLeft=s.style.width="1px",e.body.appendChild(s);var r=2==s.offsetWidth,o="inline-block"===pt(s,"display");e.body.removeChild(s);var l=navigator.userAgent.indexOf("AppleWebKit")>=0||navigator.userAgent.indexOf("Opera")>=0||navigator.userAgent.indexOf("Firefox")>=0&&navigator.platform.indexOf("Mac")>=0?"•":"●";xt={placeholders:t,changeType:n,boxModel:r,hasInlineBlock:o,passSymbol:l}}function E(){return At?Nt.mainInput:Nt.clearInput||Nt.mainInput}function A(){if(s.each(Nt.clearInput?[Nt.mainInput,Nt.clearInput]:[Nt.mainInput],function(t){s.attachEvent(t,"onkeyup",S),s.attachEvent(t,"onfocus",F),s.attachEvent(t,"onblur",R),s.attachEvent(t,"onmouseover",P),s.attachEvent(t,"onmouseout",P),Nt.placeholder&&s.attachEvent(t,"onkeydown",W)}),s.attachEvent(n,"onresize",M),Nt.maskBtn&&(s.attachEvent(Nt.maskBtn,"onclick",function(){U()}),s.attachEvent(Nt.maskBtn,"onmouseover",P),s.attachEvent(Nt.maskBtn,"onmouseout",P)),Nt.genBtn&&(s.attachEvent(Nt.genBtn,"onclick",function(){Y()}),s.attachEvent(Nt.genBtn,"onmouseover",P),s.attachEvent(Nt.genBtn,"onmouseout",P)),Nt.placeholder&&s.attachEvent(Nt.placeholder,"onclick",L),Et.nonMatchField){var t=mt(Et.nonMatchField);t&&s.attachEvent(t,"onkeyup",j)}}function L(){E().focus()}function P(t){var e="mouseover"===t.type,n=t.relatedTarget?t.relatedTarget:e?t.fromElement:t.toElement;(!n||!n.id||0!==n.id.indexOf(zt+"btn")&&n!==Nt.mainInput&&n!==Nt.clearInput)&&(Ot=e,M())}function S(t){var e,n=t?t.which||t.keyCode:null,a=n===qt||n===Yt;e=Nt.clearInput?At?Nt.clearInput.value=Nt.mainInput.value:Nt.mainInput.value=Nt.clearInput.value:Nt.mainInput.value,Et.strengthCheckTimeout>0&&!Lt&&!a?(Bt&&clearTimeout(Bt),Bt=setTimeout(q,Et.strengthCheckTimeout)):q(),Nt.placeholder&&!e&&(Nt.placeholder.style.display="block"),O()}function O(){if(Nt.passLengthChecker){var t=E().value;At&&(t=t.replace(/./g,xt.passSymbol)),ft(Nt.passLengthChecker,t);var e=Nt.passLengthChecker.offsetWidth;e+=ut(Nt.mainInput,"paddingLeft");var n=0,a=0,i=ot(E()),s=i.width,r=!1,o=C();if(Nt.maskBtn){n=ut(Nt.maskBtn,"width");var l=s-n-o,c=e>l;Rt!=c&&(r=!0,Rt=c)}if(Nt.genBtn){a=ut(Nt.genBtn,"width");var p=s-n-a-o,u=e>p;Ft!=u&&(r=!0,Ft=u)}r&&M()}}function W(){Nt.placeholder&&(Nt.placeholder.style.display="none")}function F(){Mt&&(clearTimeout(Mt),Mt=null),Ct&&(clearTimeout(Ct),Ct=null),Wt=!0,M()}function R(){Mt=setTimeout(function(){Mt=null,Wt=!1,M(),Et.isMasked&&!Ct&&(Ct=setTimeout(function(){Ct=null,U(!0,!1)},1500))},100)}function j(){Lt&&q()}function U(t,e){e===a&&(e=!0);var n=t!=At;if(t=t===a?!At:!!t,xt.changeType){var i=E(),r=z(i);i.setAttribute("type",t?"password":"text"),e&&(D(i,r),i.focus())}else{var o=pt(E(),"display")||"block",l=t?Nt.clearInput:Nt.mainInput,c=t?Nt.mainInput:Nt.clearInput;At!=t&&s.each(["paddingRight","width","backgroundImage","backgroundPosition","backgroundRepeat","backgroundAttachment","border"],function(t){var e=l.style[t];e&&(c.style[t]=e)});var p=z(l);c.style.display=o,l.style.display="none",c.value=l.value,e&&(D(c,p),c.focus()),Nt.mainInput.nextSibling!=Nt.clearInput&&ht(Nt.mainInput,Nt.clearInput)}Nt.maskBtn&&(ft(Nt.maskBtn,t?Et.maskBtn.textMasked:Et.maskBtn.textUnmasked),t?(Et.maskBtn.classUnmasked&&vt(Nt.maskBtn,Et.maskBtn.classUnmasked,!0),Et.maskBtn.classMasked&&gt(Nt.maskBtn,Et.maskBtn.classMasked,!0)):(Et.maskBtn.classMasked&&vt(Nt.maskBtn,Et.maskBtn.classMasked,!0),Et.maskBtn.classUnmasked&&gt(Nt.maskBtn,Et.maskBtn.classUnmasked,!0)),Nt.maskBtn.title=t?wt.msg.showPass:wt.msg.hidePass),At=t,O(),M(),n&&kt("switched",At)}function z(t){return"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd?{start:t.selectionStart,end:t.selectionEnd}:null}function D(t,e){e&&"number"==typeof t.selectionStart&&"number"==typeof t.selectionEnd&&(t.selectionStart=e.start,t.selectionEnd=e.end)}function H(){("function"==typeof Nt.mainInput.hasAttribute&&Nt.mainInput.hasAttribute("autofocus")||Nt.mainInput.getAttribute("autofocus"))&&(Nt.mainInput.focus(),F())}function Y(){var t=J();Nt.mainInput.value=t,Nt.clearInput&&(Nt.clearInput.value=t),kt("generated",t),U(!1),Bt&&(clearTimeout(Bt),Bt=null),q(),Nt.placeholder&&(Nt.placeholder.style.display="none")}function q(){Bt&&(clearTimeout(Bt),Bt=null);var t=E().value,e=K(t);if(0===t.length)e={strength:Et.allowEmpty?0:null,messages:[wt.msg.passRequired]};else{!Et.allowAnyChars&&e.charTypes[i.CharTypes.UNKNOWN]&&(e={strength:null,messages:[wt.msg.badChars.replace("{}",e.charTypes[i.CharTypes.UNKNOWN])]}),delete e.charTypes;var n=!1;s.each(Et.blackList,function(e){return e==t?(n=!0,!1):!0}),n&&(e={strength:0,messages:[wt.msg.inBlackList]}),t&&t===Q()&&(e={strength:0,messages:[wt.msg.equalTo]})}if("function"==typeof Et.validationCallback){var a,r,o=Et.validationCallback(Nt.mainInput,e);o&&o.messages&&s.isArray(o.messages)&&(a=o.messages),o&&Object.prototype.hasOwnProperty.call(o,"strength")&&("number"==typeof o.strength||null===o.strength)&&(r=o.strength),a&&a.length?(e.messages=a,e.strength=r):r&&r>e.strength&&(e.strength=r)}return 0===t.length&&Et.allowEmpty?(G(),Pt={strength:0},!0):null===e.strength||e.strength<Et.acceptRate?(_(e.strength,e.messages),!1):(G(),Pt={strength:e.strength},!0)}function K(t){var e=Z(Et.pattern,i.CharTypes.SYMBOL),n=Z(t,Et.allowAnyChars?i.CharTypes.SYMBOL:i.CharTypes.UNKNOWN),a=[],r=0;s.each(e,function(t){if(r++,!n[t]){var e=wt.msg[t];if(t==i.CharTypes.SYMBOL){var s=4,o=Et.chars[t];o.length>s&&(o=o.substring(0,s)),e=e+" ("+o+")"}a.push(e)}});var o=1-a.length/r;if(a.length&&(a=[V(a)]),Et.checkMode==i.CheckModes.MODERATE){var l=0;s.each(n,function(t){e[t]||l++}),o+=l/r}var c=Et.pattern.length,p=t.length/c-1;if(Et.length&&Et.length.min&&t.length<Et.length.min&&(p=-10,Et.length.min>c&&(c=Et.length.min)),0>p?(o+=p,a.push(wt.msg.passTooShort.replace("{}",c.toString()))):Et.checkMode==i.CheckModes.MODERATE&&(o+=p/r),t.length>2){for(var u=t.charAt(0),h=!0,d=0;d<t.length;d++)if(t.charAt(d)!=u){h=!1;break}h&&(o=0,a=[wt.msg.repeat])}return 0>o&&(o=0),o>1&&(o=1),{strength:o,messages:a,charTypes:n}}function V(t){for(var e=t[0],n=1;n<t.length;n++)e+=n==t.length-1?" "+wt.msg.and+" ":", ",e+=t[n];return wt.msg.noCharType.replace("{}",e)}function _(t,e){var n="",a="";if(null===t)n=wt.msg.invalidPassWarn,a=e[0].charAt(0).toUpperCase()+e[0].substring(1);else if(n=wt.msg.weakWarn,a="",e)for(var i=0;i<e.length;i++){var s=e[i].charAt(0);0===i?(a+=wt.msg.weakTitle+": ",wt.lower&&(s=s.toLowerCase())):(a+="<br/>",s=s.toUpperCase()),a+=s+e[i].substring(1),a&&"."!=a.charAt(a.length-1)&&(a+=".")}if(a&&"."!=a.charAt(a.length-1)&&(a+="."),Pt={strength:t,message:a},Nt.warnMsg&&(ft(Nt.warnMsg,n),Nt.warnMsg.title=a,Et.errorWrapClassName&&gt(Nt.wrapper,Et.errorWrapClassName,!0),n?vt(Nt.warnMsg,"empty"):gt(Nt.warnMsg,"empty")),Et.showTip){var r=a;Nt.genBtn&&(r+="<br/>"+wt.msg.generateMsg.replace("{}",'<div class="'+et("btn-gen-help")+'"></div>')),Ut=r,Nt.tipBody&&ft(Nt.tipBody,r)}Lt=!0,M()}function G(){Nt.warnMsg&&(ft(Nt.warnMsg,""),Nt.warnMsg.title="",Et.errorWrapClassName&&vt(Nt.wrapper,Et.errorWrapClassName,!0),gt(Nt.warnMsg,"empty")),Ut=null,Lt=!1,M()}function Q(){if(!Et.nonMatchField)return null;var t=mt(Et.nonMatchField);return t?t.value:null}function $(){return Pt?Pt.message:null}function X(){return Pt?Pt.strength:-1}function J(){var t="",e=Z(Et.pattern,i.CharTypes.SYMBOL),n=[];return s.each(e,function(t,e){for(var a=0;a<e.length;a++)n.push(t)}),n.sort(function(){return.7-Math.random()}),s.each(n,function(e){var n=Tt.generationChars[e];n?Et.chars[e]&&Et.chars[e].indexOf(n)<0&&(n=Et.chars[e]):n=Et.chars[e],t+=s.selectRandom(n)}),t}function Z(t,e){for(var n={},a=0;a<t.length;a++){var i=t.charAt(a),r=e;s.each(Et.chars,function(t,e){return e.indexOf(i)>=0?(r=t,!1):!0}),n[r]=(n[r]||"")+i}return n}function tt(t){return zt+t+"-"+It}function et(t){return zt+t}function nt(t,e,n){return e.id&&(e.id=tt(e.id)),e.className&&(e.className=et(e.className)),s.newEl(t,e,n)}function at(t){try{return t.getBoundingClientRect()}catch(e){return{top:0,left:0}}}function it(t){var e=t.ownerDocument;if(!e)return{top:0,left:0};var a=at(t);return{top:a.top+(n.pageYOffset||0)-(e.documentElement.clientTop||0),left:a.left+(n.pageXOffset||0)-(e.documentElement.clientLeft||0)}}function st(t){var n;try{n=t.offsetParent}catch(a){}for(n||(n=e.documentElement);n&&"html"!=n.nodeName.toLowerCase()&&"static"===pt(n,"position");)n=n.offsetParent;return n||e.documentElement}function rt(t){var e,n={top:0,left:0};if("fixed"===pt(t,"position"))e=at(t);else{var a=st(t);e=it(t),"html"!=a.nodeName.toLowerCase()&&(n=it(a)),n.top+=ut(a,"borderTopWidth"),n.left+=ut(a,"borderLeftWidth")}return{top:e.top-n.top-ut(t,"marginTop"),left:e.left-n.left-ut(t,"marginLeft")}}function ot(t){return{width:t.offsetWidth,height:t.offsetHeight}}function lt(t){return s.extend(it(t),ot(t))}function ct(t,e){if(e.height&&!isNaN(e.height)&&(t.style.height=e.height+"px",t.style.lineHeight=e.height+"px"),e.width&&!isNaN(e.width)&&(t.style.width=e.width+"px"),e.top||e.left){if("none"==pt(t,"display"))return t.style.top=e.top+"px",void(t.style.left=e.left+"px");var n,a,i;if(i=it(t),a=pt(t,"top")||0,n=pt(t,"left")||0,(a+n+"").indexOf("auto")>-1){var s=rt(t);a=s.top,n=s.left}else a=parseFloat(a)||0,n=parseFloat(n)||0;e.top&&(t.style.top=e.top-i.top+a+"px"),e.left&&(t.style.left=e.left-i.left+n+"px")}}function pt(t,e){var a="function"==typeof n.getComputedStyle?n.getComputedStyle(t,null):t.currentStyle;return a?a[e]:null}function ut(t,e){var n=pt(t,e);if(!n)return 0;var a=parseFloat(n);return isNaN(a)?0:a}function ht(t,e){t.parentNode&&t.parentNode.insertBefore(e,t.nextSibling)}function dt(t,e){t.parentNode&&t.parentNode.insertBefore(e,t)}function ft(t,n){try{t.innerHTML=n}catch(a){var i=e.createElement("c");for(i.innerHTML=n;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(i)}}function mt(t){return"string"==typeof t?e.getElementById(t):t.jquery?t[0]:t}function gt(t,e,n){yt(t,e,n)||(t.className=t.className+(t.className?" ":"")+(n===!0?e:et(e)))}function vt(t,e,n){yt(t,e,n)&&(t.className=(" "+t.className+" ").replace((n===!0?e:et(e))+" ","").replace(/^\s+|\s+$/g,""))}function yt(t,e,n){return e=" "+(n===!0?e:et(e))+" ",(" "+t.className+" ").replace(/[\n\t]/g," ").indexOf(e)>-1}function kt(e,n){if(t)try{t(Nt.mainInput).trigger(Dt+e,n)}catch(a){}if(Et.events&&"function"==typeof Et.events[e])try{Et.events[e].call(Nt.mainInput,n)}catch(a){}}function bt(e,n){t&&t(Nt.mainInput).data(e,n)}var wt,It,Bt,Mt,Ct,xt,Tt=i.Config,Nt={},Et=s.extend({},Tt.defaults,o),At=!0,Lt=!1,Pt=null,St=!1,Ot=!1,Wt=!1,Ft=!1,Rt=!1,jt=!1,Ut=null,zt="a_pf-",Dt="pass:",Ht=5,Yt=46,qt=8,Kt="input-group";this.toggleMasking=function(t){U(t)},this.setPass=h,this.validatePass=q,this.getPassValidationMessage=$,this.getPassStrength=X,l.call(this)};var s={};s.extend=function(){for(var t=arguments,e=1;e<t.length;e++)s.each(t[e],function(e,n){s.isArray(t[0][e])||s.isArray(n)?t[0][e]=t[0][e]?t[0][e].concat(n||[]):n:s.isElement(n)?t[0][e]=n:"object"==typeof t[0][e]&&"object"==typeof n&&null!==n?t[0][e]=s.extend({},t[0][e],n):"object"==typeof n&&null!==n?t[0][e]=s.extend({},n):t[0][e]=n});return t[0]},s.newEl=function(t,n,a){var i=e.createElement(t);return n&&s.each(n,function(t,e){e&&(i[t]=e)}),a&&s.each(a,function(t,e){e&&(i.style[t]=e)}),i},s.attachEvent=function(t,e,a){var i=t[e];t[e]=function(t){t||(t=n.event),a(t),"function"==typeof i&&i(t)}},s.each=function(t,e){if(s.isArray(t)){for(var n=0;n<t.length;n++)if(e(t[n])===!1)return}else for(var a in t)if(Object.prototype.hasOwnProperty.call(t,a)&&e(a,t[a])===!1)return},s.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},s.isElement=function(e){if(!e)return!1;try{return e instanceof HTMLElement||t&&e instanceof jQuery}catch(n){return"object"==typeof e&&e.nodeType||e.jquery}},s.selectRandom=function(t){var e=Math.floor(Math.random()*t.length);return s.isArray(t)?t[e]:t.charAt(e)},s.contains=function(t,e){if(!t)return!1;var n=!1;return s.each(t,function(t){return t===e?(n=!0,!1):!0}),n},t&&(t.fn.passField=function(t){return this.each(function(){new i.Field(this,t)})},t.fn.togglePassMasking=function(e){return this.each(function(){var n=t(this).data(i.Config.dataAttr);n&&n.toggleMasking(e)})},t.fn.setPass=function(e){return this.each(function(){var n=t(this).data(i.Config.dataAttr);n&&n.setPass(e)})},t.fn.validatePass=function(){var e=!0;return this.each(function(){var n=t(this).data(i.Config.dataAttr);n&&!n.validatePass()&&(e=!1)}),e},t.fn.getPassValidationMessage=function(){var t=this.first();if(t){var e=t.data(i.Config.dataAttr);if(e)return e.getPassValidationMessage()}return null},t.fn.getPassStrength=function(){var t=this.first();if(t){var e=t.data(i.Config.dataAttr);if(e)return e.getPassStrength()}return null}),t&&t.validator&&jQuery.validator.addMethod("passfield",function(e,n){return t(n).validatePass()},function(e,n){return t(n).getPassValidationMessage()})}(window.jQuery,document,window);