{"version":3,"file":"canonical-CS3QyXCc.js","sources":["../../../node_modules/@slideslive/fuse-kit/dist/utils/string/canonical.js"],"sourcesContent":["import isVariableDefinedNotNull from \"../utilities/is_variable_defined_not_null.js\";\nfunction canonical(string) {\n  if (!isVariableDefinedNotNull(string)) return null;\n  if (string.normalize) {\n    return string.toLowerCase().normalize(\"NFKD\").replace(/[^a-z0-9 ]/gi, \"\").replace(/ +/g, \"-\").replace(/-+/, \"-\");\n  }\n  return string;\n}\nexport {\n  canonical as default\n};\n"],"names":["canonical","string","isVariableDefinedNotNull"],"mappings":"uDACA,SAASA,EAAUC,EAAQ,CACzB,OAAKC,EAAyBD,CAAM,EAChCA,EAAO,UACFA,EAAO,YAAa,EAAC,UAAU,MAAM,EAAE,QAAQ,eAAgB,EAAE,EAAE,QAAQ,MAAO,GAAG,EAAE,QAAQ,KAAM,GAAG,EAE1GA,EAJuC,IAKhD","x_google_ignoreList":[0]}