"use strict";(self.webpackChunkelement_web=self.webpackChunkelement_web||[]).push([[5866],{"./src/utils/PasswordScorer.ts":(e,n,s)=>{s.d(n,{scorePassword:()=>d});var t=s("./node_modules/@babel/runtime/helpers/esm/defineProperty.js"),r=s("./node_modules/@zxcvbn-ts/core/dist/index.js"),o=s("./node_modules/@zxcvbn-ts/language-common/dist/index.js"),a=s("./node_modules/@zxcvbn-ts/language-en/dist/index.js"),c=s("./src/languageHandler.tsx"),i=s("./src/SdkConfig.ts");function g(e,n){var s=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),s.push.apply(s,t)}return s}function u(e){for(var n=1;n<arguments.length;n++){var s=null!=arguments[n]?arguments[n]:{};n%2?g(Object(s),!0).forEach((function(n){(0,t.A)(e,n,s[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):g(Object(s)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(s,n))}))}return e}function d(e,n,s=[]){if(0===n.length)return null;const t=[...s];if(e){t.push(e.getUserIdLocalpart());try{const n=e.getDomain();t.push(n)}catch{}}r.u2.setTranslations({warnings:{straightRow:(0,c._t)("zxcvbn|warnings|straightRow"),keyPattern:(0,c._t)("zxcvbn|warnings|keyPattern"),simpleRepeat:(0,c._t)("zxcvbn|warnings|simpleRepeat"),extendedRepeat:(0,c._t)("zxcvbn|warnings|extendedRepeat"),sequences:(0,c._t)("zxcvbn|warnings|sequences"),recentYears:(0,c._t)("zxcvbn|warnings|recentYears"),dates:(0,c._t)("zxcvbn|warnings|dates"),topTen:(0,c._t)("zxcvbn|warnings|topTen"),topHundred:(0,c._t)("zxcvbn|warnings|topHundred"),common:(0,c._t)("zxcvbn|warnings|common"),similarToCommon:(0,c._t)("zxcvbn|warnings|similarToCommon"),wordByItself:(0,c._t)("zxcvbn|warnings|wordByItself"),namesByThemselves:(0,c._t)("zxcvbn|warnings|namesByThemselves"),commonNames:(0,c._t)("zxcvbn|warnings|commonNames"),userInputs:(0,c._t)("zxcvbn|warnings|userInputs"),pwned:(0,c._t)("zxcvbn|warnings|pwned")},suggestions:{l33t:(0,c._t)("zxcvbn|suggestions|l33t"),reverseWords:(0,c._t)("zxcvbn|suggestions|reverseWords"),allUppercase:(0,c._t)("zxcvbn|suggestions|allUppercase"),capitalization:(0,c._t)("zxcvbn|suggestions|capitalization"),dates:(0,c._t)("zxcvbn|suggestions|dates"),recentYears:(0,c._t)("zxcvbn|suggestions|recentYears"),associatedYears:(0,c._t)("zxcvbn|suggestions|associatedYears"),sequences:(0,c._t)("zxcvbn|suggestions|sequences"),repeated:(0,c._t)("zxcvbn|suggestions|repeated"),longerKeyboardPattern:(0,c._t)("zxcvbn|suggestions|longerKeyboardPattern"),anotherWord:(0,c._t)("zxcvbn|suggestions|anotherWord"),useWords:(0,c._t)("zxcvbn|suggestions|useWords"),noNeed:(0,c._t)("zxcvbn|suggestions|noNeed"),pwned:(0,c._t)("zxcvbn|suggestions|pwned")},timeEstimation:a.P.timeEstimation});let o=(0,r.K1)(n,t);if(n.includes(" ")){const e=(0,r.K1)(n.replace(/ /g,""),t);e.score<o.score&&(o=e)}return o}r.u2.setOptions({dictionary:u(u(u({},o.z),a.z),{},{userInputs:["riot","matrix","element",i.Ay.get().brand]}),graphs:o.K,useLevenshteinDistance:!0})}}]);
//# sourceMappingURL=5866.js.map