index.js 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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__(1682324647450, function(require, module, exports) {
  8. /**
  9. * A minimal path module to resolve Unix, Windows and URL paths alike.
  10. * @memberof util
  11. * @namespace
  12. */
  13. var path = exports;
  14. var isAbsolute =
  15. /**
  16. * Tests if the specified path is absolute.
  17. * @param {string} path Path to test
  18. * @returns {boolean} `true` if path is absolute
  19. */
  20. path.isAbsolute = function isAbsolute(path) {
  21. return /^(?:\/|\w+:)/.test(path);
  22. };
  23. var normalize =
  24. /**
  25. * Normalizes the specified path.
  26. * @param {string} path Path to normalize
  27. * @returns {string} Normalized path
  28. */
  29. path.normalize = function normalize(path) {
  30. path = path.replace(/\\/g, "/")
  31. .replace(/\/{2,}/g, "/");
  32. var parts = path.split("/"),
  33. absolute = isAbsolute(path),
  34. prefix = "";
  35. if (absolute)
  36. prefix = parts.shift() + "/";
  37. for (var i = 0; i < parts.length;) {
  38. if (parts[i] === "..") {
  39. if (i > 0 && parts[i - 1] !== "..")
  40. parts.splice(--i, 2);
  41. else if (absolute)
  42. parts.splice(i, 1);
  43. else
  44. ++i;
  45. } else if (parts[i] === ".")
  46. parts.splice(i, 1);
  47. else
  48. ++i;
  49. }
  50. return prefix + parts.join("/");
  51. };
  52. /**
  53. * Resolves the specified include path against the specified origin path.
  54. * @param {string} originPath Path to the origin file
  55. * @param {string} includePath Include path relative to origin path
  56. * @param {boolean} [alreadyNormalized=false] `true` if both paths are already known to be normalized
  57. * @returns {string} Path to the include file
  58. */
  59. path.resolve = function resolve(originPath, includePath, alreadyNormalized) {
  60. if (!alreadyNormalized)
  61. includePath = normalize(includePath);
  62. if (isAbsolute(includePath))
  63. return includePath;
  64. if (!alreadyNormalized)
  65. originPath = normalize(originPath);
  66. return (originPath = originPath.replace(/(?:\/|^)[^/]+$/, "")).length ? normalize(originPath + "/" + includePath) : includePath;
  67. };
  68. }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
  69. return __REQUIRE__(1682324647450);
  70. })()
  71. //miniprogram-npm-outsideDeps=[]
  72. //# sourceMappingURL=index.js.map