123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- module.exports = (function() {
- var __MODS__ = {};
- var __DEFINE__ = function(modId, func, req) { var m = { exports: {}, _tempexports: {} }; __MODS__[modId] = { status: 0, func: func, req: req, m: m }; };
- 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; };
- 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; } };
- var __REQUIRE_DEFAULT__ = function(obj) { return obj && obj.__esModule ? obj.default : obj; };
- __DEFINE__(1684551215093, function(require, module, exports) {
- var __assign = (this && this.__assign) || function () {
- __assign = Object.assign || function(t) {
- for (var s, i = 1, n = arguments.length; i < n; i++) {
- s = arguments[i];
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
- t[p] = s[p];
- }
- return t;
- };
- return __assign.apply(this, arguments);
- };
- var __read = (this && this.__read) || function (o, n) {
- var m = typeof Symbol === "function" && o[Symbol.iterator];
- if (!m) return o;
- var i = m.call(o), r, ar = [], e;
- try {
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
- }
- catch (error) { e = { error: error }; }
- finally {
- try {
- if (r && !r.done && (m = i["return"])) m.call(i);
- }
- finally { if (e) throw e.error; }
- }
- return ar;
- };
- var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
- if (ar || !(i in from)) {
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
- ar[i] = from[i];
- }
- }
- return to.concat(ar || Array.prototype.slice.call(from));
- };
- Object.defineProperty(exports, "__esModule", { value: true });
- // istanbul ignore next
- var isObject = function (obj) {
- if (typeof obj === "object" && obj !== null) {
- if (typeof Object.getPrototypeOf === "function") {
- var prototype = Object.getPrototypeOf(obj);
- return prototype === Object.prototype || prototype === null;
- }
- return Object.prototype.toString.call(obj) === "[object Object]";
- }
- return false;
- };
- var merge = function () {
- var objects = [];
- for (var _i = 0; _i < arguments.length; _i++) {
- objects[_i] = arguments[_i];
- }
- return objects.reduce(function (result, current) {
- if (Array.isArray(current)) {
- throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");
- }
- Object.keys(current).forEach(function (key) {
- if (["__proto__", "constructor", "prototype"].includes(key)) {
- return;
- }
- if (Array.isArray(result[key]) && Array.isArray(current[key])) {
- result[key] = merge.options.mergeArrays
- ? Array.from(new Set(result[key].concat(current[key])))
- : current[key];
- }
- else if (isObject(result[key]) && isObject(current[key])) {
- result[key] = merge(result[key], current[key]);
- }
- else {
- result[key] = current[key];
- }
- });
- return result;
- }, {});
- };
- var defaultOptions = {
- mergeArrays: true,
- };
- merge.options = defaultOptions;
- merge.withOptions = function (options) {
- var objects = [];
- for (var _i = 1; _i < arguments.length; _i++) {
- objects[_i - 1] = arguments[_i];
- }
- merge.options = __assign({ mergeArrays: true }, options);
- var result = merge.apply(void 0, __spreadArray([], __read(objects), false));
- merge.options = defaultOptions;
- return result;
- };
- exports.default = merge;
- }, function(modId) {var map = {}; return __REQUIRE__(map[modId], modId); })
- return __REQUIRE__(1684551215093);
- })()
- //miniprogram-npm-outsideDeps=[]
- //# sourceMappingURL=index.js.map
|