dd763fae6135f440ec47772e2c5d27459b84d9e4bcc606f11a88fcda4b69bc03c5e0bfde1097c458e94066338b80d950c52bd5c0e0d4979a5766004544c4a0 639 B

1234567891011121314151617
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. exports.normalizeUnicode = void 0;
  4. // warning: extremely hot code path.
  5. // This has been meticulously optimized for use
  6. // within npm install on large package trees.
  7. // Do not edit without careful benchmarking.
  8. const normalizeCache = Object.create(null);
  9. const { hasOwnProperty } = Object.prototype;
  10. const normalizeUnicode = (s) => {
  11. if (!hasOwnProperty.call(normalizeCache, s)) {
  12. normalizeCache[s] = s.normalize('NFD');
  13. }
  14. return normalizeCache[s];
  15. };
  16. exports.normalizeUnicode = normalizeUnicode;
  17. //# sourceMappingURL=normalize-unicode.js.map