index.js 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. module.exports = (function() {
  2. var __MODS__ = {};
  3. var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; };
  4. var __REQUIRE__ = function(modId, source) { if(!__MODS__[modId]) return require(source); if(!__MODS__[modId].status) { var m = __MODS__[modId].m; m._exports = m._tempexports; var desp = Object.getOwnPropertyDescriptor(m, "exports"); if (desp && desp.configurable) Object.defineProperty(m, "exports", { set: function (val) { if(typeof val === "object" && val !== m._exports) { m._exports.__proto__ = val.__proto__; Object.keys(val).forEach(function (k) { m._exports[k] = val[k]; }); } m._tempexports = val }, get: function () { return m._tempexports; } }); __MODS__[modId].status = 1; __MODS__[modId].func(__MODS__[modId].req, m, m.exports); } return __MODS__[modId].m.exports; };
  5. var __REQUIRE_WILDCARD__ = function(obj) { if(obj && obj.__esModule) { return obj; } else { var newObj = {}; if(obj != null) { for(var k in obj) { if (Object.prototype.hasOwnProperty.call(obj, k)) newObj[k] = obj[k]; } } newObj.default = obj; return newObj; } };
  6. var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
  7. __DEFINE__(1677462587461, function(require, module, exports) {
  8. /* eslint-disable yoda */
  9. const isFullwidthCodePoint = codePoint => {
  10. if (Number.isNaN(codePoint)) {
  11. return false;
  12. }
  13. // Code points are derived from:
  14. // http://www.unix.org/Public/UNIDATA/EastAsianWidth.txt
  15. if (
  16. codePoint >= 0x1100 && (
  17. codePoint <= 0x115F || // Hangul Jamo
  18. codePoint === 0x2329 || // LEFT-POINTING ANGLE BRACKET
  19. codePoint === 0x232A || // RIGHT-POINTING ANGLE BRACKET
  20. // CJK Radicals Supplement .. Enclosed CJK Letters and Months
  21. (0x2E80 <= codePoint && codePoint <= 0x3247 && codePoint !== 0x303F) ||
  22. // Enclosed CJK Letters and Months .. CJK Unified Ideographs Extension A
  23. (0x3250 <= codePoint && codePoint <= 0x4DBF) ||
  24. // CJK Unified Ideographs .. Yi Radicals
  25. (0x4E00 <= codePoint && codePoint <= 0xA4C6) ||
  26. // Hangul Jamo Extended-A
  27. (0xA960 <= codePoint && codePoint <= 0xA97C) ||
  28. // Hangul Syllables
  29. (0xAC00 <= codePoint && codePoint <= 0xD7A3) ||
  30. // CJK Compatibility Ideographs
  31. (0xF900 <= codePoint && codePoint <= 0xFAFF) ||
  32. // Vertical Forms
  33. (0xFE10 <= codePoint && codePoint <= 0xFE19) ||
  34. // CJK Compatibility Forms .. Small Form Variants
  35. (0xFE30 <= codePoint && codePoint <= 0xFE6B) ||
  36. // Halfwidth and Fullwidth Forms
  37. (0xFF01 <= codePoint && codePoint <= 0xFF60) ||
  38. (0xFFE0 <= codePoint && codePoint <= 0xFFE6) ||
  39. // Kana Supplement
  40. (0x1B000 <= codePoint && codePoint <= 0x1B001) ||
  41. // Enclosed Ideographic Supplement
  42. (0x1F200 <= codePoint && codePoint <= 0x1F251) ||
  43. // CJK Unified Ideographs Extension B .. Tertiary Ideographic Plane
  44. (0x20000 <= codePoint && codePoint <= 0x3FFFD)
  45. )
  46. ) {
  47. return true;
  48. }
  49. return false;
  50. };
  51. module.exports = isFullwidthCodePoint;
  52. module.exports.default = isFullwidthCodePoint;
  53. }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
  54. return __REQUIRE__(1677462587461);
  55. })()
  56. //miniprogram-npm-outsideDeps=[]
  57. //# sourceMappingURL=index.js.map