{"version":3,"sources":["jsdelivr-header.js","/npm/@zxcvbn-ts/core@3.0.2/dist/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aAEA,IAAI,SAAW,QAAQ,iBACnB,MAAQ,QAAQ,sBAChB,cAAgB,QAAQ,sBACxB,SAAW,QAAQ,iBACnB,QAAU,QAAQ,gBAClB,SAAW,QAAQ,iBAEvB,MAAM,KAAO,KAAM,IAAI,MAAO,UACxB,kBAAoB,CAAC,EAAiB,EAAU,KACpD,MAAM,EAAW,IAAI,SACf,EAAgB,IAAI,cACpB,EAAgB,MAAM,2BAA2B,EAAU,GAC3D,EAAW,OAAS,EACpB,EAAc,EAAc,oBAAoB,EAAc,SACpE,MAAO,CACL,cACG,KACA,EACH,SAAU,EAAS,YAAY,EAAY,MAAO,EAAc,UACjE,EAEG,KAAO,CAAC,EAAU,KAClB,GACF,QAAQ,cAAc,2BAA2B,GAGnD,OADiB,IAAI,UACL,MAAM,EAAS,EAE3B,OAAS,CAAC,EAAU,KACxB,MAAM,EAAQ,OACR,EAAU,KAAK,EAAU,GAC/B,GAAI,aAAmB,QACrB,MAAM,IAAI,MAAM,sEAElB,OAAO,kBAAkB,EAAS,EAAU,EAAM,EAE9C,YAAc,MAAO,EAAU,KACnC,MAAM,EAAe,EAAS,UAAU,EAAG,QAAQ,cAAc,WAC3D,EAAQ,OACR,QAAgB,KAAK,EAAc,GACzC,OAAO,kBAAkB,EAAS,EAAc,EAAM,EAGxD,QAAQ,QAAU,QAAQ,QAC1B,QAAQ,cAAgB,QAAQ,cAChC,QAAQ,SAAW,SACnB,QAAQ,OAAS,OACjB,QAAQ,YAAc","file":"/npm/@zxcvbn-ts/core@3.0.2/dist/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/@zxcvbn-ts/core@3.0.2/dist/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\n\nvar Matching = require('./Matching.js');\nvar index = require('./scoring/index.js');\nvar TimeEstimates = require('./TimeEstimates.js');\nvar Feedback = require('./Feedback.js');\nvar Options = require('./Options.js');\nvar debounce = require('./debounce.js');\n\nconst time = () => new Date().getTime();\nconst createReturnValue = (resolvedMatches, password, start) => {\n  const feedback = new Feedback();\n  const timeEstimates = new TimeEstimates();\n  const matchSequence = index.mostGuessableMatchSequence(password, resolvedMatches);\n  const calcTime = time() - start;\n  const attackTimes = timeEstimates.estimateAttackTimes(matchSequence.guesses);\n  return {\n    calcTime,\n    ...matchSequence,\n    ...attackTimes,\n    feedback: feedback.getFeedback(attackTimes.score, matchSequence.sequence)\n  };\n};\nconst main = (password, userInputs) => {\n  if (userInputs) {\n    Options.zxcvbnOptions.extendUserInputsDictionary(userInputs);\n  }\n  const matching = new Matching();\n  return matching.match(password);\n};\nconst zxcvbn = (password, userInputs) => {\n  const start = time();\n  const matches = main(password, userInputs);\n  if (matches instanceof Promise) {\n    throw new Error('You are using a Promised matcher, please use `zxcvbnAsync` for it.');\n  }\n  return createReturnValue(matches, password, start);\n};\nconst zxcvbnAsync = async (password, userInputs) => {\n  const usedPassword = password.substring(0, Options.zxcvbnOptions.maxLength);\n  const start = time();\n  const matches = await main(usedPassword, userInputs);\n  return createReturnValue(matches, usedPassword, start);\n};\n\nexports.Options = Options.Options;\nexports.zxcvbnOptions = Options.zxcvbnOptions;\nexports.debounce = debounce;\nexports.zxcvbn = zxcvbn;\nexports.zxcvbnAsync = zxcvbnAsync;\n\n"]}