PageSourceSearch

https://www.antikvarium.hu/dist/assets/js/js/3rd-party/pwstrength-c0d197187e.min.js

js antikvarium.hu collected 2026-10-02 08:37:24 UTC 9,638 bytes, 1 lines download raw bytes

1!function(r){var i,a,e,c={};try{!r&&module&&module.exports&&(r=(r=require("jquery"))((0,require("jsdom").jsdom)().parentWindow))}catch(r){}i=r,e={},(a=c).forbiddenSequences=["0123456789","abcdefghijklmnopqrstuvwxyz","qwertyuiop","asdfghjkl","zxcvbnm","!@#$%^&*()_+"],e.wordNotEmail=function(r,e,o){return e.match(/^([\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+\.)*[\w\!\#$\%\&\'\*\+\-\/\=\?\^\`{\|\}\~]+@((((([a-z0-9]{1}[a-z0-9\-]{0,62}[a-z0-9]{1})|[a-z])\.)+[a-z]{2,6})|(\d{1,3}\.){3}\d{1,3}(\:\d{1,5})?)$/i)?o:0},e.wordLength=function(r,e,o){var e=e.length,t=Math.pow(e,r.rules.raisePower);return e<r.common.minChar&&(t+=o),t},e.wordSimilarToUsername=function(r,e,o){r=i(r.common.usernameField).val();return r&&e.toLowerCase().match(r.toLowerCase())?o:0},e.wordTwoCharacterClasses=function(r,e,o){return e.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)||e.match(/([a-zA-Z])/)&&e.match(/([0-9])/)||e.match(/(.[!,@,#,$,%,\^,&,*,?,_,~])/)&&e.match(/[a-zA-Z0-9_]/)?o:0},e.wordRepetitions=function(r,e,o){return e.match(/(.)\1\1/)?o:0},e.wordSequences=function(r,o,e){var t,s=!1;return 2<o.length&&(i.each(a.forbiddenSequences,function(r,e){e=[e,e.split("").reverse().join("")];i.each(e,function(r,e){for(t=0;t<o.length-2;t+=1)-1<e.indexOf(o.toLowerCase().substring(t,t+3))&&(s=!0)})}),s)?e:0},e.wordLowercase=function(r,e,o){return e.match(/[a-z]/)&&o},e.wordUppercase=function(r,e,o){return e.match(/[A-Z]/)&&o},e.wordOneNumber=function(r,e,o){return e.match(/\d+/)&&o},e.wordThreeNumbers=function(r,e,o){return e.match(/(.*[0-9].*[0-9].*[0-9])/)&&o},e.wordOneSpecialChar=function(r,e,o){return e.match(/.[!,@,#,$,%,\^,&,*,?,_,~]/)&&o},e.wordTwoSpecialChar=function(r,e,o){return e.match(/(.*[!,@,#,$,%,\^,&,*,?,_,~].*[!,@,#,$,%,\^,&,*,?,_,~])/)&&o},e.wordUpperLowerCombo=function(r,e,o){return e.match(/([a-z].*[A-Z])|([A-Z].*[a-z])/)&&o},e.wordLetterNumberCombo=function(r,e,o){return e.match(/([a-zA-Z])/)&&e.match(/([0-9])/)&&o},e.wordLetterNumberCharCombo=function(r,e,o){return e.match(/([a-zA-Z0-9].*[!,@,#,$,%,\^,&,*,?,_,~])|([!,@,#,$,%,\^,&,*,?,_,~].*[a-zA-Z0-9])/)&&o},a.validation=e,a.executeRules=function(t,s){var n=0;return i.each(t.rules.activated,function(r,e){var o;e&&(e=t.rules.scores[r],o=a.validation[r],i.isFunction(o)||(o=t.rules.extra[r]),i.isFunction(o)&&((o=o(t,s,e))&&(n+=o),(o<0||!i.isNumeric(o)&&!o)&&0<(e=t.ui.spanError(t,r)).length&&t.instances.errors.push(e)))}),n};try{module&&module.exports&&(module.exports=c)}catch(r){}var u,d,p,n,l,o,t,s,m={common:{}},w=(m.common.minChar=6,m.common.usernameField="#username",m.common.userInputs=[],m.common.onLoad=void 0,m.common.onKeyUp=void 0,m.common.zxcvbn=!1,m.common.debug=!1,m.rules={},m.rules.extra={},m.rules.scores={wordNotEmail:-100,wordLength:-50,wordSimilarToUsername:-100,wordSequences:-50,wordTwoCharacterClasses:2,wordRepetitions:-25,wordLowercase:1,wordUppercase:3,wordOneNumber:3,wordThreeNumbers:5,wordOneSpecialChar:3,wordTwoSpecialChar:5,wordUpperLowerCombo:2,wordLetterNumberCombo:2,wordLetterNumberCharCombo:2},m.rules.activated={wordNotEmail:!0,wordLength:!0,wordSimilarToUsername:!0,wordSequences:!0,wordTwoCharacterClasses:!1,wordRepetitions:!1,wordLowercase:!0,wordUppercase:!0,wordOneNumber:!0,wordThreeNumbers:!0,wordOneSpecialChar:!0,wordTwoSpecialChar:!0,wordUpperLowerCombo:!0,wordLetterNumberCombo:!0,wordLetterNumberCharCombo:!0},m.rules.raisePower=1.4,m.ui={},m.ui.bootstrap2=!1,m.ui.showProgressBar=!0,m.ui.showPopover=!1,m.ui.showStatus=!0,m.ui.spanError=function(r,e){r=r.ui.errorMessages[e];return r?'<span style="color: #d52929">'+r+"</span>":""},m.ui.errorMessages={wordLength:"Túl rövid jelszó",wordNotEmail:"Ne használd az e-mail címed jelszóként",wordSimilarToUsername:"A jelszó nem tartalmazhatja a felhasználónevet",wordTwoCharacterClasses:"Használj másik karaktertípust",wordRepetitions:"Túl sok azonos betű",wordSequences:"Sorozatot tartalmaz a jelszó (pl: 123, asd, stb.)"},m.ui.verdicts=["Gyenge","Normál","Közepes","Erős","Nagyon erős"],m.ui.showVerdicts=!0,m.ui.showVerdictsInsideProgressBar=!0,m.ui.showErrors=!1,m.ui.container=void 0,m.ui.viewports={progress:void 0,verdict:void 0,errors:void 0},m.ui.scores=[14,26,38,50],{});u=r,p=["danger","warning","success"],n=["error","warning","success"],(d=w).getContainer=function(r,e){r=u(r.ui.container);return r=r&&1===r.length?r:e.parent()},d.findElement=function(r,e,o){return(e?r.find(e):r).find(o)},d.getUIElements=function(r,e){var o;return r.instances.viewports||(e=d.getContainer(r,e),(o={}).$progressbar=d.findElement(e,r.ui.viewports.progress,"div.progress"),r.ui.showVerdictsInsideProgressBar&&(o.$verdict=o.$progressbar.find("span.password-verdict")),r.ui.showPopover||(r.ui.showVerdictsInsideProgressBar||(o.$verdict=d.findElement(e,r.ui.viewports.verdict,"span.password-verdict")),o.$errors=d.findElement(e,r.ui.viewports.errors,"ul.error-list")),r.instances.viewports=o)},d.initProgressBar=function(r,e){var o=d.getContainer(r,e),t="<div class='progress'><div class='";r.ui.bootstrap2||(t+="progress-"),t+="bar'>",r.ui.showVerdictsInsideProgressBar&&(t+="<span class='password-verdict'></span>"),t+="</div></div>",r.ui.viewports.progress?o.find(r.ui.viewports.progress).append(t):u(t).insertAfter(e)},d.initHelper=function(r,e,o,t){r=d.getContainer(r,e);t?r.find(t).append(o):u(o).insertAfter(e)},d.initVerdict=function(r,e){d.initHelper(r,e,"<span class='password-verdict'></span>",r.ui.viewports.verdict)},d.initErrorList=function(r,e){d.initHelper(r,e,"<ul class='error-list'></ul>",r.ui.viewports.errors)},d.initPopover=function(r,e){e.popover("destroy"),e.popover({html:!0,placement:"bottom",trigger:"manual",content:" "})},d.initUI=function(r,e){r.ui.showPopover?d.initPopover(r,e):(r.ui.showErrors&&d.initErrorList(r,e),r.ui.showVerdicts&&!r.ui.showVerdictsInsideProgressBar&&d.initVerdict(r,e)),r.ui.showProgressBar&&d.initProgressBar(r,e)},d.possibleProgressBarClasses=["danger","warning","success"],d.updateProgressBar=function(r,e,o,t){var e=d.getUIElements(r,e).$progressbar,s=e.find(".progress-bar"),n="progress-";r.ui.bootstrap2&&(s=e.find(".bar"),n=""),u.each(d.possibleProgressBarClasses,function(r,e){s.removeClass(n+"bar-"+e)}),s.addClass(n+"bar-"+p[o]),s.css("width",t+"%")},d.updateVerdict=function(r,e,o){d.getUIElements(r,e).$verdict.text(
1o)},d.updateErrors=function(r,e){var e=d.getUIElements(r,e).$errors,o="";u.each(r.instances.errors,function(r,e){o+="<li>"+e+"</li>"}),e.html(o)},d.updatePopover=function(r,e,o){var t=e.data("bs.popover"),s="",n=!0;r.ui.showVerdicts&&!r.ui.showVerdictsInsideProgressBar&&0<o.length&&(s="<h5><span class='password-verdict'>"+o+"</span></h5>",n=!1),r.ui.showErrors&&(s+="<div>Errors:<ul class='error-list' style='margin-bottom: 0;'>",u.each(r.instances.errors,function(r,e){s+="<li>"+e+"</li>",n=!1}),s+="</ul></div>"),n?e.popover("hide"):(t=r.ui.bootstrap2?e.data("popover"):t).$arrow&&0<t.$arrow.parents("body").length?e.find("+ .popover .popover-content").html(s):(t.options.content=s,e.popover("show"))},d.updateFieldStatus=function(o,r,e){var t=o.ui.bootstrap2?".control-group":".form-group",s=r.parents(t).first();u.each(n,function(r,e){o.ui.bootstrap2||(e="has-"+e),s.removeClass(e)}),e=n[e],o.ui.bootstrap2||(e="has-"+e),s.addClass(e)},d.percentage=function(r,e){r=Math.floor(100*r/e);return r=100<(r=r<0?0:r)?100:r},d.getVerdictAndCssClass=function(r,e){var o,t,e=e<=0?(t=-1,r.ui.verdicts[o=0]):e<r.ui.scores[0]?r.ui.verdicts[t=o=0]:e<r.ui.scores[1]?(o=0,r.ui.verdicts[t=1]):e<r.ui.scores[2]?(o=1,r.ui.verdicts[t=2]):e<r.ui.scores[3]?(o=1,r.ui.verdicts[t=3]):(o=2,r.ui.verdicts[t=4]);return[e,o,t]},d.updateUI=function(r,e,o){var t=d.getVerdictAndCssClass(r,o),s=t[0];t=t[1],r.ui.showProgressBar&&(o=d.percentage(o,r.ui.scores[3]),d.updateProgressBar(r,e,t,o),r.ui.showVerdictsInsideProgressBar&&d.updateVerdict(r,e,s)),r.ui.showStatus&&d.updateFieldStatus(r,e,t),r.ui.showPopover?d.updatePopover(r,e,s):(r.ui.showVerdicts&&!r.ui.showVerdictsInsideProgressBar&&d.updateVerdict(r,e,s),r.ui.showErrors&&d.updateErrors(r,e))};s=function(r){var o,e,t=l(r.target),s=t.data("pwstrength-bootstrap"),n=t.val();void 0!==s&&(s.instances.errors=[],n=s.common.zxcvbn?(o=[],l.each(s.common.userInputs,function(r,e){o.push(l(e).val())}),o.push(l(s.common.usernameField).val()),zxcvbn(n,o).entropy):c.executeRules(s,n),w.updateUI(s,t,n),e=(t=w.getVerdictAndCssClass(s,n))[2],t=t[0],s.common.debug&&console.log(n+" - "+t),l.isFunction(s.common.onKeyUp)&&s.common.onKeyUp(r,{score:n,verdictText:t,verdictLevel:e}))},t=function(o,t,s){this.each(function(r,e){l(e).data("pwstrength-bootstrap").rules[t][o]=s})},o={init:function(t){return this.each(function(r,e){var o=l.extend(!0,{},m),o=l.extend(!0,o,t),e=l(e);o.instances={},e.data("pwstrength-bootstrap",o),e.on("keyup",s),e.on("change",s),e.on("onpaste",s),w.initUI(o,e),l.trim(e.val())&&e.trigger("keyup"),l.isFunction(o.common.onLoad)&&o.common.onLoad()}),this},destroy:function(){this.each(function(r,e){var e=l(e),o=e.data("pwstrength-bootstrap"),o=w.getUIElements(o,e);o.$progressbar.remove(),o.$verdict.remove(),o.$errors.remove(),e.removeData("pwstrength-bootstrap")})},forceUpdate:function(){this.each(function(r,e){s({target:e})})},addRule:function(o,t,s,n){this.each(function(r,e){e=l(e).data("pwstrength-bootstrap");e.rules.activated[o]=n,e.rules.scores[o]=s,e.rules.extra[o]=t})},changeScore:function(r,e){t.call(this,r,"scores",e)},ruleActive:function(r,e){t.call(this,r,"activated",e)}},(l=r).fn.pwstrength=function(r){var e;return o[r]?e=o[r].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof r&&r?l.error("Method "+r+" does not exist on jQuery.pwstrength-bootstrap"):e=o.init.apply(this,arguments),e}}(jQuery);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.