index.js 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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__(1684551215093, function(require, module, exports) {
  8. var __assign = (this && this.__assign) || function () {
  9. __assign = Object.assign || function(t) {
  10. for (var s, i = 1, n = arguments.length; i < n; i++) {
  11. s = arguments[i];
  12. for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
  13. t[p] = s[p];
  14. }
  15. return t;
  16. };
  17. return __assign.apply(this, arguments);
  18. };
  19. var __read = (this && this.__read) || function (o, n) {
  20. var m = typeof Symbol === "function" && o[Symbol.iterator];
  21. if (!m) return o;
  22. var i = m.call(o), r, ar = [], e;
  23. try {
  24. while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
  25. }
  26. catch (error) { e = { error: error }; }
  27. finally {
  28. try {
  29. if (r && !r.done && (m = i["return"])) m.call(i);
  30. }
  31. finally { if (e) throw e.error; }
  32. }
  33. return ar;
  34. };
  35. var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
  36. if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
  37. if (ar || !(i in from)) {
  38. if (!ar) ar = Array.prototype.slice.call(from, 0, i);
  39. ar[i] = from[i];
  40. }
  41. }
  42. return to.concat(ar || Array.prototype.slice.call(from));
  43. };
  44. Object.defineProperty(exports, "__esModule", { value: true });
  45. // istanbul ignore next
  46. var isObject = function (obj) {
  47. if (typeof obj === "object" && obj !== null) {
  48. if (typeof Object.getPrototypeOf === "function") {
  49. var prototype = Object.getPrototypeOf(obj);
  50. return prototype === Object.prototype || prototype === null;
  51. }
  52. return Object.prototype.toString.call(obj) === "[object Object]";
  53. }
  54. return false;
  55. };
  56. var merge = function () {
  57. var objects = [];
  58. for (var _i = 0; _i < arguments.length; _i++) {
  59. objects[_i] = arguments[_i];
  60. }
  61. return objects.reduce(function (result, current) {
  62. if (Array.isArray(current)) {
  63. throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");
  64. }
  65. Object.keys(current).forEach(function (key) {
  66. if (["__proto__", "constructor", "prototype"].includes(key)) {
  67. return;
  68. }
  69. if (Array.isArray(result[key]) && Array.isArray(current[key])) {
  70. result[key] = merge.options.mergeArrays
  71. ? Array.from(new Set(result[key].concat(current[key])))
  72. : current[key];
  73. }
  74. else if (isObject(result[key]) && isObject(current[key])) {
  75. result[key] = merge(result[key], current[key]);
  76. }
  77. else {
  78. result[key] = current[key];
  79. }
  80. });
  81. return result;
  82. }, {});
  83. };
  84. var defaultOptions = {
  85. mergeArrays: true,
  86. };
  87. merge.options = defaultOptions;
  88. merge.withOptions = function (options) {
  89. var objects = [];
  90. for (var _i = 1; _i < arguments.length; _i++) {
  91. objects[_i - 1] = arguments[_i];
  92. }
  93. merge.options = __assign({ mergeArrays: true }, options);
  94. var result = merge.apply(void 0, __spreadArray([], __read(objects), false));
  95. merge.options = defaultOptions;
  96. return result;
  97. };
  98. exports.default = merge;
  99. }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
  100. return __REQUIRE__(1684551215093);
  101. })()
  102. //miniprogram-npm-outsideDeps=[]
  103. //# sourceMappingURL=index.js.map