mp-darkmode 1.2.3-beta.7 → 1.2.3-beta.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/darkmode.js +1652 -1499
- package/dist/darkmode.js.map +1 -1
- package/dist/darkmode.min.js +1 -1
- package/package.json +1 -1
package/dist/darkmode.js
CHANGED
|
@@ -107,6 +107,7 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
107
107
|
|
|
108
108
|
|
|
109
109
|
var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
|
|
110
|
+
|
|
110
111
|
var $apply = __webpack_require__(/*! ./functionApply */ "./node_modules/call-bind-apply-helpers/functionApply.js");
|
|
111
112
|
var $call = __webpack_require__(/*! ./functionCall */ "./node_modules/call-bind-apply-helpers/functionCall.js");
|
|
112
113
|
var $reflectApply = __webpack_require__(/*! ./reflectApply */ "./node_modules/call-bind-apply-helpers/reflectApply.js");
|
|
@@ -114,6 +115,7 @@ var $reflectApply = __webpack_require__(/*! ./reflectApply */ "./node_modules/ca
|
|
|
114
115
|
/** @type {import('./actualApply')} */
|
|
115
116
|
module.exports = $reflectApply || bind.call($call, $apply);
|
|
116
117
|
|
|
118
|
+
|
|
117
119
|
/***/ }),
|
|
118
120
|
|
|
119
121
|
/***/ "./node_modules/call-bind-apply-helpers/functionApply.js":
|
|
@@ -129,6 +131,7 @@ module.exports = $reflectApply || bind.call($call, $apply);
|
|
|
129
131
|
/** @type {import('./functionApply')} */
|
|
130
132
|
module.exports = Function.prototype.apply;
|
|
131
133
|
|
|
134
|
+
|
|
132
135
|
/***/ }),
|
|
133
136
|
|
|
134
137
|
/***/ "./node_modules/call-bind-apply-helpers/functionCall.js":
|
|
@@ -144,6 +147,7 @@ module.exports = Function.prototype.apply;
|
|
|
144
147
|
/** @type {import('./functionCall')} */
|
|
145
148
|
module.exports = Function.prototype.call;
|
|
146
149
|
|
|
150
|
+
|
|
147
151
|
/***/ }),
|
|
148
152
|
|
|
149
153
|
/***/ "./node_modules/call-bind-apply-helpers/index.js":
|
|
@@ -158,17 +162,19 @@ module.exports = Function.prototype.call;
|
|
|
158
162
|
|
|
159
163
|
var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
|
|
160
164
|
var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
|
|
165
|
+
|
|
161
166
|
var $call = __webpack_require__(/*! ./functionCall */ "./node_modules/call-bind-apply-helpers/functionCall.js");
|
|
162
167
|
var $actualApply = __webpack_require__(/*! ./actualApply */ "./node_modules/call-bind-apply-helpers/actualApply.js");
|
|
163
168
|
|
|
164
169
|
/** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
|
|
165
170
|
module.exports = function callBindBasic(args) {
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
171
|
+
if (args.length < 1 || typeof args[0] !== 'function') {
|
|
172
|
+
throw new $TypeError('a function is required');
|
|
173
|
+
}
|
|
174
|
+
return $actualApply(bind, $call, args);
|
|
170
175
|
};
|
|
171
176
|
|
|
177
|
+
|
|
172
178
|
/***/ }),
|
|
173
179
|
|
|
174
180
|
/***/ "./node_modules/call-bind-apply-helpers/reflectApply.js":
|
|
@@ -184,6 +190,7 @@ module.exports = function callBindBasic(args) {
|
|
|
184
190
|
/** @type {import('./reflectApply')} */
|
|
185
191
|
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
186
192
|
|
|
193
|
+
|
|
187
194
|
/***/ }),
|
|
188
195
|
|
|
189
196
|
/***/ "./node_modules/call-bound/index.js":
|
|
@@ -197,6 +204,7 @@ module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
|
197
204
|
|
|
198
205
|
|
|
199
206
|
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
|
|
207
|
+
|
|
200
208
|
var callBindBasic = __webpack_require__(/*! call-bind-apply-helpers */ "./node_modules/call-bind-apply-helpers/index.js");
|
|
201
209
|
|
|
202
210
|
/** @type {(thisArg: string, searchString: string, position?: number) => number} */
|
|
@@ -204,15 +212,16 @@ var $indexOf = callBindBasic([GetIntrinsic('%String.prototype.indexOf%')]);
|
|
|
204
212
|
|
|
205
213
|
/** @type {import('.')} */
|
|
206
214
|
module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
207
|
-
|
|
215
|
+
/* eslint no-extra-parens: 0 */
|
|
208
216
|
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
217
|
+
var intrinsic = /** @type {(this: unknown, ...args: unknown[]) => unknown} */ (GetIntrinsic(name, !!allowMissing));
|
|
218
|
+
if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
|
|
219
|
+
return callBindBasic(/** @type {const} */ ([intrinsic]));
|
|
220
|
+
}
|
|
221
|
+
return intrinsic;
|
|
214
222
|
};
|
|
215
223
|
|
|
224
|
+
|
|
216
225
|
/***/ }),
|
|
217
226
|
|
|
218
227
|
/***/ "./node_modules/color-blend/dist/index.modern.js":
|
|
@@ -10031,54 +10040,62 @@ Color.extend(contrastMethods);
|
|
|
10031
10040
|
"use strict";
|
|
10032
10041
|
|
|
10033
10042
|
|
|
10034
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10035
10043
|
var $defineProperty = __webpack_require__(/*! es-define-property */ "./node_modules/es-define-property/index.js");
|
|
10044
|
+
|
|
10036
10045
|
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "./node_modules/es-errors/syntax.js");
|
|
10037
10046
|
var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
|
|
10047
|
+
|
|
10038
10048
|
var gopd = __webpack_require__(/*! gopd */ "./node_modules/gopd/index.js");
|
|
10039
10049
|
|
|
10040
10050
|
/** @type {import('.')} */
|
|
10041
|
-
module.exports = function defineDataProperty(
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10058
|
-
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
10063
|
-
|
|
10064
|
-
|
|
10065
|
-
|
|
10066
|
-
|
|
10067
|
-
|
|
10068
|
-
|
|
10069
|
-
|
|
10070
|
-
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
|
|
10051
|
+
module.exports = function defineDataProperty(
|
|
10052
|
+
obj,
|
|
10053
|
+
property,
|
|
10054
|
+
value
|
|
10055
|
+
) {
|
|
10056
|
+
if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
|
|
10057
|
+
throw new $TypeError('`obj` must be an object or a function`');
|
|
10058
|
+
}
|
|
10059
|
+
if (typeof property !== 'string' && typeof property !== 'symbol') {
|
|
10060
|
+
throw new $TypeError('`property` must be a string or a symbol`');
|
|
10061
|
+
}
|
|
10062
|
+
if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
|
|
10063
|
+
throw new $TypeError('`nonEnumerable`, if provided, must be a boolean or null');
|
|
10064
|
+
}
|
|
10065
|
+
if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
|
|
10066
|
+
throw new $TypeError('`nonWritable`, if provided, must be a boolean or null');
|
|
10067
|
+
}
|
|
10068
|
+
if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
|
|
10069
|
+
throw new $TypeError('`nonConfigurable`, if provided, must be a boolean or null');
|
|
10070
|
+
}
|
|
10071
|
+
if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
|
|
10072
|
+
throw new $TypeError('`loose`, if provided, must be a boolean');
|
|
10073
|
+
}
|
|
10074
|
+
|
|
10075
|
+
var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
|
|
10076
|
+
var nonWritable = arguments.length > 4 ? arguments[4] : null;
|
|
10077
|
+
var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
|
|
10078
|
+
var loose = arguments.length > 6 ? arguments[6] : false;
|
|
10079
|
+
|
|
10080
|
+
/* @type {false | TypedPropertyDescriptor<unknown>} */
|
|
10081
|
+
var desc = !!gopd && gopd(obj, property);
|
|
10082
|
+
|
|
10083
|
+
if ($defineProperty) {
|
|
10084
|
+
$defineProperty(obj, property, {
|
|
10085
|
+
configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
|
|
10086
|
+
enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
|
|
10087
|
+
value: value,
|
|
10088
|
+
writable: nonWritable === null && desc ? desc.writable : !nonWritable
|
|
10089
|
+
});
|
|
10090
|
+
} else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
|
|
10091
|
+
// must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
|
|
10092
|
+
obj[property] = value; // eslint-disable-line no-param-reassign
|
|
10093
|
+
} else {
|
|
10094
|
+
throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
|
|
10095
|
+
}
|
|
10080
10096
|
};
|
|
10081
10097
|
|
|
10098
|
+
|
|
10082
10099
|
/***/ }),
|
|
10083
10100
|
|
|
10084
10101
|
/***/ "./node_modules/define-properties/index.js":
|
|
@@ -10091,45 +10108,53 @@ module.exports = function defineDataProperty(obj, property, value) {
|
|
|
10091
10108
|
"use strict";
|
|
10092
10109
|
|
|
10093
10110
|
|
|
10094
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10095
10111
|
var keys = __webpack_require__(/*! object-keys */ "./node_modules/object-keys/index.js");
|
|
10096
|
-
var hasSymbols = typeof Symbol === 'function' &&
|
|
10112
|
+
var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
|
|
10113
|
+
|
|
10097
10114
|
var toStr = Object.prototype.toString;
|
|
10098
10115
|
var concat = Array.prototype.concat;
|
|
10099
10116
|
var defineDataProperty = __webpack_require__(/*! define-data-property */ "./node_modules/define-data-property/index.js");
|
|
10100
|
-
|
|
10101
|
-
|
|
10117
|
+
|
|
10118
|
+
var isFunction = function (fn) {
|
|
10119
|
+
return typeof fn === 'function' && toStr.call(fn) === '[object Function]';
|
|
10102
10120
|
};
|
|
10121
|
+
|
|
10103
10122
|
var supportsDescriptors = __webpack_require__(/*! has-property-descriptors */ "./node_modules/has-property-descriptors/index.js")();
|
|
10104
|
-
|
|
10105
|
-
|
|
10106
|
-
|
|
10107
|
-
|
|
10108
|
-
|
|
10109
|
-
|
|
10110
|
-
|
|
10111
|
-
|
|
10112
|
-
|
|
10113
|
-
|
|
10114
|
-
|
|
10115
|
-
|
|
10116
|
-
|
|
10117
|
-
|
|
10118
|
-
|
|
10119
|
-
|
|
10120
|
-
|
|
10121
|
-
|
|
10122
|
-
|
|
10123
|
-
|
|
10124
|
-
|
|
10125
|
-
|
|
10126
|
-
|
|
10127
|
-
|
|
10128
|
-
|
|
10123
|
+
|
|
10124
|
+
var defineProperty = function (object, name, value, predicate) {
|
|
10125
|
+
if (name in object) {
|
|
10126
|
+
if (predicate === true) {
|
|
10127
|
+
if (object[name] === value) {
|
|
10128
|
+
return;
|
|
10129
|
+
}
|
|
10130
|
+
} else if (!isFunction(predicate) || !predicate()) {
|
|
10131
|
+
return;
|
|
10132
|
+
}
|
|
10133
|
+
}
|
|
10134
|
+
|
|
10135
|
+
if (supportsDescriptors) {
|
|
10136
|
+
defineDataProperty(object, name, value, true);
|
|
10137
|
+
} else {
|
|
10138
|
+
defineDataProperty(object, name, value);
|
|
10139
|
+
}
|
|
10140
|
+
};
|
|
10141
|
+
|
|
10142
|
+
var defineProperties = function (object, map) {
|
|
10143
|
+
var predicates = arguments.length > 2 ? arguments[2] : {};
|
|
10144
|
+
var props = keys(map);
|
|
10145
|
+
if (hasSymbols) {
|
|
10146
|
+
props = concat.call(props, Object.getOwnPropertySymbols(map));
|
|
10147
|
+
}
|
|
10148
|
+
for (var i = 0; i < props.length; i += 1) {
|
|
10149
|
+
defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
|
|
10150
|
+
}
|
|
10129
10151
|
};
|
|
10152
|
+
|
|
10130
10153
|
defineProperties.supportsDescriptors = !!supportsDescriptors;
|
|
10154
|
+
|
|
10131
10155
|
module.exports = defineProperties;
|
|
10132
10156
|
|
|
10157
|
+
|
|
10133
10158
|
/***/ }),
|
|
10134
10159
|
|
|
10135
10160
|
/***/ "./node_modules/dunder-proto/get.js":
|
|
@@ -10142,29 +10167,35 @@ module.exports = defineProperties;
|
|
|
10142
10167
|
"use strict";
|
|
10143
10168
|
|
|
10144
10169
|
|
|
10145
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10146
10170
|
var callBind = __webpack_require__(/*! call-bind-apply-helpers */ "./node_modules/call-bind-apply-helpers/index.js");
|
|
10147
10171
|
var gOPD = __webpack_require__(/*! gopd */ "./node_modules/gopd/index.js");
|
|
10172
|
+
|
|
10148
10173
|
var hasProtoAccessor;
|
|
10149
10174
|
try {
|
|
10150
|
-
|
|
10151
|
-
|
|
10175
|
+
// eslint-disable-next-line no-extra-parens, no-proto
|
|
10176
|
+
hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
|
|
10152
10177
|
} catch (e) {
|
|
10153
|
-
|
|
10154
|
-
|
|
10155
|
-
|
|
10178
|
+
if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
|
|
10179
|
+
throw e;
|
|
10180
|
+
}
|
|
10156
10181
|
}
|
|
10157
10182
|
|
|
10158
10183
|
// eslint-disable-next-line no-extra-parens
|
|
10159
|
-
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */'__proto__');
|
|
10184
|
+
var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
|
|
10185
|
+
|
|
10160
10186
|
var $Object = Object;
|
|
10161
10187
|
var $getPrototypeOf = $Object.getPrototypeOf;
|
|
10162
10188
|
|
|
10163
10189
|
/** @type {import('./get')} */
|
|
10164
|
-
module.exports = desc && typeof desc.get === 'function'
|
|
10165
|
-
|
|
10166
|
-
|
|
10167
|
-
}
|
|
10190
|
+
module.exports = desc && typeof desc.get === 'function'
|
|
10191
|
+
? callBind([desc.get])
|
|
10192
|
+
: typeof $getPrototypeOf === 'function'
|
|
10193
|
+
? /** @type {import('./get')} */ function getDunder(value) {
|
|
10194
|
+
// eslint-disable-next-line eqeqeq
|
|
10195
|
+
return $getPrototypeOf(value == null ? value : $Object(value));
|
|
10196
|
+
}
|
|
10197
|
+
: false;
|
|
10198
|
+
|
|
10168
10199
|
|
|
10169
10200
|
/***/ }),
|
|
10170
10201
|
|
|
@@ -10179,8 +10210,11 @@ module.exports = desc && typeof desc.get === 'function' ? callBind([desc.get]) :
|
|
|
10179
10210
|
|
|
10180
10211
|
|
|
10181
10212
|
var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
|
|
10213
|
+
|
|
10182
10214
|
var isCallable = __webpack_require__(/*! is-callable */ "./node_modules/is-callable/index.js");
|
|
10215
|
+
|
|
10183
10216
|
var inspect = __webpack_require__(/*! object-inspect */ "./node_modules/object-inspect/index.js");
|
|
10217
|
+
|
|
10184
10218
|
var GetV = __webpack_require__(/*! ./GetV */ "./node_modules/es-abstract-get/GetV.js");
|
|
10185
10219
|
var isPropertyKey = __webpack_require__(/*! ./isPropertyKey */ "./node_modules/es-abstract-get/isPropertyKey.js");
|
|
10186
10220
|
|
|
@@ -10188,28 +10222,29 @@ var isPropertyKey = __webpack_require__(/*! ./isPropertyKey */ "./node_modules/e
|
|
|
10188
10222
|
|
|
10189
10223
|
/** @type {import('./GetMethod')} */
|
|
10190
10224
|
module.exports = function GetMethod(O, P) {
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
10225
|
+
// 7.3.9.1
|
|
10226
|
+
if (!isPropertyKey(P)) {
|
|
10227
|
+
throw new $TypeError('Assertion failed: P is not a Property Key');
|
|
10228
|
+
}
|
|
10195
10229
|
|
|
10196
|
-
|
|
10197
|
-
|
|
10230
|
+
// 7.3.9.2
|
|
10231
|
+
var func = GetV(O, P);
|
|
10198
10232
|
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10233
|
+
// 7.3.9.4
|
|
10234
|
+
if (func == null) {
|
|
10235
|
+
return void 0;
|
|
10236
|
+
}
|
|
10203
10237
|
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
10238
|
+
// 7.3.9.5
|
|
10239
|
+
if (!isCallable(func)) {
|
|
10240
|
+
throw new $TypeError(inspect(P) + ' is not a function: ' + inspect(func));
|
|
10241
|
+
}
|
|
10208
10242
|
|
|
10209
|
-
|
|
10210
|
-
|
|
10243
|
+
// 7.3.9.6
|
|
10244
|
+
return func;
|
|
10211
10245
|
};
|
|
10212
10246
|
|
|
10247
|
+
|
|
10213
10248
|
/***/ }),
|
|
10214
10249
|
|
|
10215
10250
|
/***/ "./node_modules/es-abstract-get/GetV.js":
|
|
@@ -10223,26 +10258,28 @@ module.exports = function GetMethod(O, P) {
|
|
|
10223
10258
|
|
|
10224
10259
|
|
|
10225
10260
|
var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
|
|
10261
|
+
|
|
10226
10262
|
var inspect = __webpack_require__(/*! object-inspect */ "./node_modules/object-inspect/index.js");
|
|
10263
|
+
|
|
10227
10264
|
var isPropertyKey = __webpack_require__(/*! ./isPropertyKey */ "./node_modules/es-abstract-get/isPropertyKey.js");
|
|
10228
10265
|
|
|
10229
10266
|
// https://262.ecma-international.org/6.0/#sec-getv
|
|
10230
10267
|
|
|
10231
10268
|
/** @type {import('./GetV')} */
|
|
10232
10269
|
module.exports = function GetV(V, P) {
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
|
|
10236
|
-
|
|
10270
|
+
// 7.3.2.1
|
|
10271
|
+
if (!isPropertyKey(P)) {
|
|
10272
|
+
throw new $TypeError('Assertion failed: P is not a Property Key, got ' + inspect(P));
|
|
10273
|
+
}
|
|
10237
10274
|
|
|
10238
|
-
|
|
10239
|
-
|
|
10275
|
+
// 7.3.2.2-3
|
|
10276
|
+
// var O = ToObject(V);
|
|
10240
10277
|
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
); // O.[[Get]](P, V)
|
|
10278
|
+
// 7.3.2.4
|
|
10279
|
+
return /** @type {Record<typeof P, unknown>} */ (V)[P]; // O.[[Get]](P, V)
|
|
10244
10280
|
};
|
|
10245
10281
|
|
|
10282
|
+
|
|
10246
10283
|
/***/ }),
|
|
10247
10284
|
|
|
10248
10285
|
/***/ "./node_modules/es-abstract-get/isPropertyKey.js":
|
|
@@ -10256,11 +10293,11 @@ module.exports = function GetV(V, P) {
|
|
|
10256
10293
|
|
|
10257
10294
|
|
|
10258
10295
|
/** @type {import('./isPropertyKey')} */
|
|
10259
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10260
10296
|
module.exports = function isPropertyKey(argument) {
|
|
10261
|
-
|
|
10297
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
10262
10298
|
};
|
|
10263
10299
|
|
|
10300
|
+
|
|
10264
10301
|
/***/ }),
|
|
10265
10302
|
|
|
10266
10303
|
/***/ "./node_modules/es-abstract/2024/HasOwnProperty.js":
|
|
@@ -10274,22 +10311,25 @@ module.exports = function isPropertyKey(argument) {
|
|
|
10274
10311
|
|
|
10275
10312
|
|
|
10276
10313
|
var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
|
|
10314
|
+
|
|
10277
10315
|
var hasOwn = __webpack_require__(/*! hasown */ "./node_modules/hasown/index.js");
|
|
10278
10316
|
var isObject = __webpack_require__(/*! es-object-atoms/isObject */ "./node_modules/es-object-atoms/isObject.js");
|
|
10317
|
+
|
|
10279
10318
|
var isPropertyKey = __webpack_require__(/*! ../helpers/isPropertyKey */ "./node_modules/es-abstract/helpers/isPropertyKey.js");
|
|
10280
10319
|
|
|
10281
10320
|
// https://262.ecma-international.org/6.0/#sec-hasownproperty
|
|
10282
10321
|
|
|
10283
10322
|
module.exports = function HasOwnProperty(O, P) {
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10323
|
+
if (!isObject(O)) {
|
|
10324
|
+
throw new $TypeError('Assertion failed: `O` must be an Object');
|
|
10325
|
+
}
|
|
10326
|
+
if (!isPropertyKey(P)) {
|
|
10327
|
+
throw new $TypeError('Assertion failed: `P` must be a Property Key');
|
|
10328
|
+
}
|
|
10329
|
+
return hasOwn(O, P);
|
|
10291
10330
|
};
|
|
10292
10331
|
|
|
10332
|
+
|
|
10293
10333
|
/***/ }),
|
|
10294
10334
|
|
|
10295
10335
|
/***/ "./node_modules/es-abstract/2024/ToPrimitive.js":
|
|
@@ -10307,12 +10347,13 @@ var toPrimitive = __webpack_require__(/*! es-to-primitive/es2015 */ "./node_modu
|
|
|
10307
10347
|
// https://262.ecma-international.org/6.0/#sec-toprimitive
|
|
10308
10348
|
|
|
10309
10349
|
module.exports = function ToPrimitive(input) {
|
|
10310
|
-
|
|
10311
|
-
|
|
10312
|
-
|
|
10313
|
-
|
|
10350
|
+
if (arguments.length > 1) {
|
|
10351
|
+
return toPrimitive(input, arguments[1]);
|
|
10352
|
+
}
|
|
10353
|
+
return toPrimitive(input);
|
|
10314
10354
|
};
|
|
10315
10355
|
|
|
10356
|
+
|
|
10316
10357
|
/***/ }),
|
|
10317
10358
|
|
|
10318
10359
|
/***/ "./node_modules/es-abstract/2024/ToPropertyKey.js":
|
|
@@ -10325,19 +10366,21 @@ module.exports = function ToPrimitive(input) {
|
|
|
10325
10366
|
"use strict";
|
|
10326
10367
|
|
|
10327
10368
|
|
|
10328
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10329
10369
|
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
|
|
10370
|
+
|
|
10330
10371
|
var $String = GetIntrinsic('%String%');
|
|
10372
|
+
|
|
10331
10373
|
var ToPrimitive = __webpack_require__(/*! ./ToPrimitive */ "./node_modules/es-abstract/2024/ToPrimitive.js");
|
|
10332
10374
|
var ToString = __webpack_require__(/*! ./ToString */ "./node_modules/es-abstract/2024/ToString.js");
|
|
10333
10375
|
|
|
10334
10376
|
// https://262.ecma-international.org/6.0/#sec-topropertykey
|
|
10335
10377
|
|
|
10336
10378
|
module.exports = function ToPropertyKey(argument) {
|
|
10337
|
-
|
|
10338
|
-
|
|
10379
|
+
var key = ToPrimitive(argument, $String);
|
|
10380
|
+
return typeof key === 'symbol' ? key : ToString(key);
|
|
10339
10381
|
};
|
|
10340
10382
|
|
|
10383
|
+
|
|
10341
10384
|
/***/ }),
|
|
10342
10385
|
|
|
10343
10386
|
/***/ "./node_modules/es-abstract/2024/ToString.js":
|
|
@@ -10350,20 +10393,21 @@ module.exports = function ToPropertyKey(argument) {
|
|
|
10350
10393
|
"use strict";
|
|
10351
10394
|
|
|
10352
10395
|
|
|
10353
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10354
10396
|
var GetIntrinsic = __webpack_require__(/*! get-intrinsic */ "./node_modules/get-intrinsic/index.js");
|
|
10397
|
+
|
|
10355
10398
|
var $String = GetIntrinsic('%String%');
|
|
10356
10399
|
var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
|
|
10357
10400
|
|
|
10358
10401
|
// https://262.ecma-international.org/6.0/#sec-tostring
|
|
10359
10402
|
|
|
10360
10403
|
module.exports = function ToString(argument) {
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10364
|
-
|
|
10404
|
+
if (typeof argument === 'symbol') {
|
|
10405
|
+
throw new $TypeError('Cannot convert a Symbol value to a string');
|
|
10406
|
+
}
|
|
10407
|
+
return $String(argument);
|
|
10365
10408
|
};
|
|
10366
10409
|
|
|
10410
|
+
|
|
10367
10411
|
/***/ }),
|
|
10368
10412
|
|
|
10369
10413
|
/***/ "./node_modules/es-abstract/helpers/isPropertyKey.js":
|
|
@@ -10376,11 +10420,11 @@ module.exports = function ToString(argument) {
|
|
|
10376
10420
|
"use strict";
|
|
10377
10421
|
|
|
10378
10422
|
|
|
10379
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10380
10423
|
module.exports = function isPropertyKey(argument) {
|
|
10381
|
-
|
|
10424
|
+
return typeof argument === 'string' || typeof argument === 'symbol';
|
|
10382
10425
|
};
|
|
10383
10426
|
|
|
10427
|
+
|
|
10384
10428
|
/***/ }),
|
|
10385
10429
|
|
|
10386
10430
|
/***/ "./node_modules/es-define-property/index.js":
|
|
@@ -10396,17 +10440,17 @@ module.exports = function isPropertyKey(argument) {
|
|
|
10396
10440
|
/** @type {import('.')} */
|
|
10397
10441
|
var $defineProperty = Object.defineProperty || false;
|
|
10398
10442
|
if ($defineProperty) {
|
|
10399
|
-
|
|
10400
|
-
|
|
10401
|
-
|
|
10402
|
-
|
|
10403
|
-
|
|
10404
|
-
|
|
10405
|
-
$defineProperty = false;
|
|
10406
|
-
}
|
|
10443
|
+
try {
|
|
10444
|
+
$defineProperty({}, 'a', { value: 1 });
|
|
10445
|
+
} catch (e) {
|
|
10446
|
+
// IE 8 has a broken defineProperty
|
|
10447
|
+
$defineProperty = false;
|
|
10448
|
+
}
|
|
10407
10449
|
}
|
|
10450
|
+
|
|
10408
10451
|
module.exports = $defineProperty;
|
|
10409
10452
|
|
|
10453
|
+
|
|
10410
10454
|
/***/ }),
|
|
10411
10455
|
|
|
10412
10456
|
/***/ "./node_modules/es-errors/eval.js":
|
|
@@ -10422,6 +10466,7 @@ module.exports = $defineProperty;
|
|
|
10422
10466
|
/** @type {import('./eval')} */
|
|
10423
10467
|
module.exports = EvalError;
|
|
10424
10468
|
|
|
10469
|
+
|
|
10425
10470
|
/***/ }),
|
|
10426
10471
|
|
|
10427
10472
|
/***/ "./node_modules/es-errors/index.js":
|
|
@@ -10437,6 +10482,7 @@ module.exports = EvalError;
|
|
|
10437
10482
|
/** @type {import('.')} */
|
|
10438
10483
|
module.exports = Error;
|
|
10439
10484
|
|
|
10485
|
+
|
|
10440
10486
|
/***/ }),
|
|
10441
10487
|
|
|
10442
10488
|
/***/ "./node_modules/es-errors/range.js":
|
|
@@ -10452,6 +10498,7 @@ module.exports = Error;
|
|
|
10452
10498
|
/** @type {import('./range')} */
|
|
10453
10499
|
module.exports = RangeError;
|
|
10454
10500
|
|
|
10501
|
+
|
|
10455
10502
|
/***/ }),
|
|
10456
10503
|
|
|
10457
10504
|
/***/ "./node_modules/es-errors/ref.js":
|
|
@@ -10467,6 +10514,7 @@ module.exports = RangeError;
|
|
|
10467
10514
|
/** @type {import('./ref')} */
|
|
10468
10515
|
module.exports = ReferenceError;
|
|
10469
10516
|
|
|
10517
|
+
|
|
10470
10518
|
/***/ }),
|
|
10471
10519
|
|
|
10472
10520
|
/***/ "./node_modules/es-errors/syntax.js":
|
|
@@ -10482,6 +10530,7 @@ module.exports = ReferenceError;
|
|
|
10482
10530
|
/** @type {import('./syntax')} */
|
|
10483
10531
|
module.exports = SyntaxError;
|
|
10484
10532
|
|
|
10533
|
+
|
|
10485
10534
|
/***/ }),
|
|
10486
10535
|
|
|
10487
10536
|
/***/ "./node_modules/es-errors/type.js":
|
|
@@ -10497,6 +10546,7 @@ module.exports = SyntaxError;
|
|
|
10497
10546
|
/** @type {import('./type')} */
|
|
10498
10547
|
module.exports = TypeError;
|
|
10499
10548
|
|
|
10549
|
+
|
|
10500
10550
|
/***/ }),
|
|
10501
10551
|
|
|
10502
10552
|
/***/ "./node_modules/es-errors/uri.js":
|
|
@@ -10512,6 +10562,7 @@ module.exports = TypeError;
|
|
|
10512
10562
|
/** @type {import('./uri')} */
|
|
10513
10563
|
module.exports = URIError;
|
|
10514
10564
|
|
|
10565
|
+
|
|
10515
10566
|
/***/ }),
|
|
10516
10567
|
|
|
10517
10568
|
/***/ "./node_modules/es-object-atoms/RequireObjectCoercible.js":
|
|
@@ -10528,12 +10579,13 @@ var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-er
|
|
|
10528
10579
|
|
|
10529
10580
|
/** @type {import('./RequireObjectCoercible')} */
|
|
10530
10581
|
module.exports = function RequireObjectCoercible(value) {
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10582
|
+
if (value == null) {
|
|
10583
|
+
throw new $TypeError((arguments.length > 0 && arguments[1]) || ('Cannot call method on ' + value));
|
|
10584
|
+
}
|
|
10585
|
+
return value;
|
|
10535
10586
|
};
|
|
10536
10587
|
|
|
10588
|
+
|
|
10537
10589
|
/***/ }),
|
|
10538
10590
|
|
|
10539
10591
|
/***/ "./node_modules/es-object-atoms/ToObject.js":
|
|
@@ -10551,10 +10603,11 @@ var RequireObjectCoercible = __webpack_require__(/*! ./RequireObjectCoercible */
|
|
|
10551
10603
|
|
|
10552
10604
|
/** @type {import('./ToObject')} */
|
|
10553
10605
|
module.exports = function ToObject(value) {
|
|
10554
|
-
|
|
10555
|
-
|
|
10606
|
+
RequireObjectCoercible(value);
|
|
10607
|
+
return $Object(value);
|
|
10556
10608
|
};
|
|
10557
10609
|
|
|
10610
|
+
|
|
10558
10611
|
/***/ }),
|
|
10559
10612
|
|
|
10560
10613
|
/***/ "./node_modules/es-object-atoms/index.js":
|
|
@@ -10570,6 +10623,7 @@ module.exports = function ToObject(value) {
|
|
|
10570
10623
|
/** @type {import('.')} */
|
|
10571
10624
|
module.exports = Object;
|
|
10572
10625
|
|
|
10626
|
+
|
|
10573
10627
|
/***/ }),
|
|
10574
10628
|
|
|
10575
10629
|
/***/ "./node_modules/es-object-atoms/isObject.js":
|
|
@@ -10583,11 +10637,11 @@ module.exports = Object;
|
|
|
10583
10637
|
|
|
10584
10638
|
|
|
10585
10639
|
/** @type {import('./isObject')} */
|
|
10586
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10587
10640
|
module.exports = function isObject(x) {
|
|
10588
|
-
|
|
10641
|
+
return !!x && (typeof x === 'function' || typeof x === 'object');
|
|
10589
10642
|
};
|
|
10590
10643
|
|
|
10644
|
+
|
|
10591
10645
|
/***/ }),
|
|
10592
10646
|
|
|
10593
10647
|
/***/ "./node_modules/es-to-primitive/es2015.js":
|
|
@@ -10600,80 +10654,86 @@ module.exports = function isObject(x) {
|
|
|
10600
10654
|
"use strict";
|
|
10601
10655
|
|
|
10602
10656
|
|
|
10603
|
-
|
|
10604
|
-
|
|
10657
|
+
var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
|
|
10658
|
+
|
|
10605
10659
|
var isCallable = __webpack_require__(/*! is-callable */ "./node_modules/is-callable/index.js");
|
|
10606
10660
|
var isDate = __webpack_require__(/*! is-date-object */ "./node_modules/is-date-object/index.js");
|
|
10607
10661
|
var isSymbol = __webpack_require__(/*! is-symbol */ "./node_modules/is-symbol/index.js");
|
|
10608
10662
|
var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
|
|
10663
|
+
|
|
10609
10664
|
var isPrimitive = __webpack_require__(/*! ./helpers/isPrimitive */ "./node_modules/es-to-primitive/helpers/isPrimitive.js");
|
|
10610
10665
|
|
|
10611
10666
|
/** @import { primitiveES6 } from './es2015' */
|
|
10612
10667
|
|
|
10613
10668
|
/** @type {(O: { valueOf?: () => unknown, toString?: () => unknown }, hint: 'number' | 'string') => primitiveES6} */
|
|
10614
10669
|
function OrdinaryToPrimitive(O, hint) {
|
|
10615
|
-
|
|
10616
|
-
|
|
10617
|
-
|
|
10618
|
-
|
|
10619
|
-
|
|
10620
|
-
|
|
10621
|
-
|
|
10622
|
-
|
|
10623
|
-
|
|
10624
|
-
|
|
10625
|
-
|
|
10626
|
-
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
-
|
|
10631
|
-
|
|
10632
|
-
|
|
10633
|
-
|
|
10634
|
-
throw new $TypeError('No default value');
|
|
10670
|
+
if (typeof O === 'undefined' || O === null) {
|
|
10671
|
+
throw new $TypeError('Cannot call method on ' + O);
|
|
10672
|
+
}
|
|
10673
|
+
if (typeof hint !== 'string' || (hint !== 'number' && hint !== 'string')) {
|
|
10674
|
+
throw new $TypeError('hint must be "string" or "number"');
|
|
10675
|
+
}
|
|
10676
|
+
/** @type {('toString' | 'valueOf')[]} */
|
|
10677
|
+
var methodNames = hint === 'string' ? ['toString', 'valueOf'] : ['valueOf', 'toString'];
|
|
10678
|
+
var method, result, i;
|
|
10679
|
+
for (i = 0; i < methodNames.length; ++i) {
|
|
10680
|
+
method = O[methodNames[i]];
|
|
10681
|
+
if (isCallable(method)) {
|
|
10682
|
+
result = method.call(O);
|
|
10683
|
+
if (isPrimitive(result)) {
|
|
10684
|
+
return /** @type {primitiveES6} */ (result);
|
|
10685
|
+
}
|
|
10686
|
+
}
|
|
10687
|
+
}
|
|
10688
|
+
throw new $TypeError('No default value');
|
|
10635
10689
|
}
|
|
10690
|
+
|
|
10636
10691
|
var GetMethod = __webpack_require__(/*! es-abstract-get/GetMethod */ "./node_modules/es-abstract-get/GetMethod.js");
|
|
10637
10692
|
|
|
10638
10693
|
/** @type {import('./es2015')} */
|
|
10639
10694
|
// http://www.ecma-international.org/ecma-262/6.0/#sec-toprimitive
|
|
10640
10695
|
module.exports = function ToPrimitive(input) {
|
|
10641
|
-
|
|
10642
|
-
|
|
10643
|
-
|
|
10644
|
-
|
|
10645
|
-
|
|
10646
|
-
|
|
10647
|
-
|
|
10648
|
-
|
|
10649
|
-
|
|
10650
|
-
|
|
10651
|
-
|
|
10652
|
-
|
|
10653
|
-
|
|
10654
|
-
|
|
10655
|
-
|
|
10656
|
-
|
|
10657
|
-
|
|
10658
|
-
|
|
10659
|
-
|
|
10660
|
-
|
|
10661
|
-
|
|
10662
|
-
|
|
10663
|
-
|
|
10664
|
-
|
|
10665
|
-
|
|
10666
|
-
|
|
10667
|
-
|
|
10668
|
-
|
|
10669
|
-
|
|
10670
|
-
|
|
10671
|
-
|
|
10672
|
-
|
|
10673
|
-
|
|
10674
|
-
|
|
10696
|
+
if (isPrimitive(input)) {
|
|
10697
|
+
return /** @type {primitiveES6} */ (input);
|
|
10698
|
+
}
|
|
10699
|
+
/** @type {'default' | 'string' | 'number'} */
|
|
10700
|
+
var hint = 'default';
|
|
10701
|
+
if (arguments.length > 1) {
|
|
10702
|
+
if (arguments[1] === String) {
|
|
10703
|
+
hint = 'string';
|
|
10704
|
+
} else if (arguments[1] === Number) {
|
|
10705
|
+
hint = 'number';
|
|
10706
|
+
}
|
|
10707
|
+
}
|
|
10708
|
+
|
|
10709
|
+
var exoticToPrim;
|
|
10710
|
+
if (hasSymbols) {
|
|
10711
|
+
if (Symbol.toPrimitive) {
|
|
10712
|
+
|
|
10713
|
+
exoticToPrim = GetMethod(
|
|
10714
|
+
/** @type {{ [k in SymbolConstructor['toPrimitive']]?: Function }} */
|
|
10715
|
+
(input),
|
|
10716
|
+
Symbol.toPrimitive
|
|
10717
|
+
);
|
|
10718
|
+
} else if (isSymbol(input)) {
|
|
10719
|
+
exoticToPrim = Symbol.prototype.valueOf;
|
|
10720
|
+
}
|
|
10721
|
+
}
|
|
10722
|
+
if (typeof exoticToPrim !== 'undefined') {
|
|
10723
|
+
var result = exoticToPrim.call(input, hint);
|
|
10724
|
+
if (isPrimitive(result)) {
|
|
10725
|
+
return /** @type {primitiveES6} */ (result);
|
|
10726
|
+
}
|
|
10727
|
+
throw new $TypeError('unable to convert exotic object to primitive');
|
|
10728
|
+
}
|
|
10729
|
+
if (hint === 'default' && (isDate(input) || isSymbol(input))) {
|
|
10730
|
+
hint = /** @type {const} */ ('string');
|
|
10731
|
+
}
|
|
10732
|
+
|
|
10733
|
+
return OrdinaryToPrimitive(input, hint === 'default' ? 'number' : hint);
|
|
10675
10734
|
};
|
|
10676
10735
|
|
|
10736
|
+
|
|
10677
10737
|
/***/ }),
|
|
10678
10738
|
|
|
10679
10739
|
/***/ "./node_modules/es-to-primitive/helpers/isPrimitive.js":
|
|
@@ -10690,11 +10750,11 @@ module.exports = function ToPrimitive(input) {
|
|
|
10690
10750
|
/** @import { primitiveES5 } from '../es5' */
|
|
10691
10751
|
|
|
10692
10752
|
/** @type {<T extends primitive | primitiveES5>(value: unknown) => value is T} */
|
|
10693
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10694
10753
|
module.exports = function isPrimitive(value) {
|
|
10695
|
-
|
|
10754
|
+
return value === null || (typeof value !== 'function' && typeof value !== 'object');
|
|
10696
10755
|
};
|
|
10697
10756
|
|
|
10757
|
+
|
|
10698
10758
|
/***/ }),
|
|
10699
10759
|
|
|
10700
10760
|
/***/ "./node_modules/function-bind/implementation.js":
|
|
@@ -10708,69 +10768,89 @@ module.exports = function isPrimitive(value) {
|
|
|
10708
10768
|
|
|
10709
10769
|
|
|
10710
10770
|
/* eslint no-invalid-this: 1 */
|
|
10771
|
+
|
|
10711
10772
|
var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
|
|
10712
10773
|
var toStr = Object.prototype.toString;
|
|
10713
10774
|
var max = Math.max;
|
|
10714
10775
|
var funcType = '[object Function]';
|
|
10776
|
+
|
|
10715
10777
|
var concatty = function concatty(a, b) {
|
|
10716
|
-
|
|
10717
|
-
|
|
10718
|
-
|
|
10719
|
-
|
|
10720
|
-
|
|
10721
|
-
|
|
10722
|
-
|
|
10723
|
-
|
|
10778
|
+
var arr = [];
|
|
10779
|
+
|
|
10780
|
+
for (var i = 0; i < a.length; i += 1) {
|
|
10781
|
+
arr[i] = a[i];
|
|
10782
|
+
}
|
|
10783
|
+
for (var j = 0; j < b.length; j += 1) {
|
|
10784
|
+
arr[j + a.length] = b[j];
|
|
10785
|
+
}
|
|
10786
|
+
|
|
10787
|
+
return arr;
|
|
10724
10788
|
};
|
|
10789
|
+
|
|
10725
10790
|
var slicy = function slicy(arrLike, offset) {
|
|
10726
|
-
|
|
10727
|
-
|
|
10728
|
-
|
|
10729
|
-
|
|
10730
|
-
|
|
10791
|
+
var arr = [];
|
|
10792
|
+
for (var i = offset || 0, j = 0; i < arrLike.length; i += 1, j += 1) {
|
|
10793
|
+
arr[j] = arrLike[i];
|
|
10794
|
+
}
|
|
10795
|
+
return arr;
|
|
10731
10796
|
};
|
|
10732
|
-
|
|
10733
|
-
|
|
10734
|
-
|
|
10735
|
-
|
|
10736
|
-
|
|
10737
|
-
|
|
10797
|
+
|
|
10798
|
+
var joiny = function (arr, joiner) {
|
|
10799
|
+
var str = '';
|
|
10800
|
+
for (var i = 0; i < arr.length; i += 1) {
|
|
10801
|
+
str += arr[i];
|
|
10802
|
+
if (i + 1 < arr.length) {
|
|
10803
|
+
str += joiner;
|
|
10804
|
+
}
|
|
10738
10805
|
}
|
|
10739
|
-
|
|
10740
|
-
return str;
|
|
10806
|
+
return str;
|
|
10741
10807
|
};
|
|
10808
|
+
|
|
10742
10809
|
module.exports = function bind(that) {
|
|
10743
|
-
|
|
10744
|
-
|
|
10745
|
-
|
|
10746
|
-
|
|
10747
|
-
|
|
10748
|
-
|
|
10749
|
-
|
|
10750
|
-
|
|
10751
|
-
|
|
10752
|
-
|
|
10753
|
-
|
|
10754
|
-
|
|
10755
|
-
|
|
10810
|
+
var target = this;
|
|
10811
|
+
if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
|
|
10812
|
+
throw new TypeError(ERROR_MESSAGE + target);
|
|
10813
|
+
}
|
|
10814
|
+
var args = slicy(arguments, 1);
|
|
10815
|
+
|
|
10816
|
+
var bound;
|
|
10817
|
+
var binder = function () {
|
|
10818
|
+
if (this instanceof bound) {
|
|
10819
|
+
var result = target.apply(
|
|
10820
|
+
this,
|
|
10821
|
+
concatty(args, arguments)
|
|
10822
|
+
);
|
|
10823
|
+
if (Object(result) === result) {
|
|
10824
|
+
return result;
|
|
10825
|
+
}
|
|
10826
|
+
return this;
|
|
10827
|
+
}
|
|
10828
|
+
return target.apply(
|
|
10829
|
+
that,
|
|
10830
|
+
concatty(args, arguments)
|
|
10831
|
+
);
|
|
10832
|
+
|
|
10833
|
+
};
|
|
10834
|
+
|
|
10835
|
+
var boundLength = max(0, target.length - args.length);
|
|
10836
|
+
var boundArgs = [];
|
|
10837
|
+
for (var i = 0; i < boundLength; i++) {
|
|
10838
|
+
boundArgs[i] = '$' + i;
|
|
10756
10839
|
}
|
|
10757
|
-
|
|
10758
|
-
|
|
10759
|
-
|
|
10760
|
-
|
|
10761
|
-
|
|
10762
|
-
|
|
10763
|
-
|
|
10764
|
-
|
|
10765
|
-
|
|
10766
|
-
|
|
10767
|
-
|
|
10768
|
-
bound.prototype = new Empty();
|
|
10769
|
-
Empty.prototype = null;
|
|
10770
|
-
}
|
|
10771
|
-
return bound;
|
|
10840
|
+
|
|
10841
|
+
bound = Function('binder', 'return function (' + joiny(boundArgs, ',') + '){ return binder.apply(this,arguments); }')(binder);
|
|
10842
|
+
|
|
10843
|
+
if (target.prototype) {
|
|
10844
|
+
var Empty = function Empty() {};
|
|
10845
|
+
Empty.prototype = target.prototype;
|
|
10846
|
+
bound.prototype = new Empty();
|
|
10847
|
+
Empty.prototype = null;
|
|
10848
|
+
}
|
|
10849
|
+
|
|
10850
|
+
return bound;
|
|
10772
10851
|
};
|
|
10773
10852
|
|
|
10853
|
+
|
|
10774
10854
|
/***/ }),
|
|
10775
10855
|
|
|
10776
10856
|
/***/ "./node_modules/function-bind/index.js":
|
|
@@ -10784,8 +10864,10 @@ module.exports = function bind(that) {
|
|
|
10784
10864
|
|
|
10785
10865
|
|
|
10786
10866
|
var implementation = __webpack_require__(/*! ./implementation */ "./node_modules/function-bind/implementation.js");
|
|
10867
|
+
|
|
10787
10868
|
module.exports = Function.prototype.bind || implementation;
|
|
10788
10869
|
|
|
10870
|
+
|
|
10789
10871
|
/***/ }),
|
|
10790
10872
|
|
|
10791
10873
|
/***/ "./node_modules/get-intrinsic/index.js":
|
|
@@ -10798,9 +10880,10 @@ module.exports = Function.prototype.bind || implementation;
|
|
|
10798
10880
|
"use strict";
|
|
10799
10881
|
|
|
10800
10882
|
|
|
10801
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
10802
10883
|
var undefined;
|
|
10884
|
+
|
|
10803
10885
|
var $Object = __webpack_require__(/*! es-object-atoms */ "./node_modules/es-object-atoms/index.js");
|
|
10886
|
+
|
|
10804
10887
|
var $Error = __webpack_require__(/*! es-errors */ "./node_modules/es-errors/index.js");
|
|
10805
10888
|
var $EvalError = __webpack_require__(/*! es-errors/eval */ "./node_modules/es-errors/eval.js");
|
|
10806
10889
|
var $RangeError = __webpack_require__(/*! es-errors/range */ "./node_modules/es-errors/range.js");
|
|
@@ -10808,6 +10891,7 @@ var $ReferenceError = __webpack_require__(/*! es-errors/ref */ "./node_modules/e
|
|
|
10808
10891
|
var $SyntaxError = __webpack_require__(/*! es-errors/syntax */ "./node_modules/es-errors/syntax.js");
|
|
10809
10892
|
var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
|
|
10810
10893
|
var $URIError = __webpack_require__(/*! es-errors/uri */ "./node_modules/es-errors/uri.js");
|
|
10894
|
+
|
|
10811
10895
|
var abs = __webpack_require__(/*! math-intrinsics/abs */ "./node_modules/math-intrinsics/abs.js");
|
|
10812
10896
|
var floor = __webpack_require__(/*! math-intrinsics/floor */ "./node_modules/math-intrinsics/floor.js");
|
|
10813
10897
|
var max = __webpack_require__(/*! math-intrinsics/max */ "./node_modules/math-intrinsics/max.js");
|
|
@@ -10815,210 +10899,227 @@ var min = __webpack_require__(/*! math-intrinsics/min */ "./node_modules/math-in
|
|
|
10815
10899
|
var pow = __webpack_require__(/*! math-intrinsics/pow */ "./node_modules/math-intrinsics/pow.js");
|
|
10816
10900
|
var round = __webpack_require__(/*! math-intrinsics/round */ "./node_modules/math-intrinsics/round.js");
|
|
10817
10901
|
var sign = __webpack_require__(/*! math-intrinsics/sign */ "./node_modules/math-intrinsics/sign.js");
|
|
10902
|
+
|
|
10818
10903
|
var $Function = Function;
|
|
10819
10904
|
|
|
10820
10905
|
// eslint-disable-next-line consistent-return
|
|
10821
|
-
var getEvalledConstructor = function
|
|
10822
|
-
|
|
10823
|
-
|
|
10824
|
-
|
|
10906
|
+
var getEvalledConstructor = function (expressionSyntax) {
|
|
10907
|
+
try {
|
|
10908
|
+
return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
|
|
10909
|
+
} catch (e) {}
|
|
10825
10910
|
};
|
|
10911
|
+
|
|
10826
10912
|
var $gOPD = __webpack_require__(/*! gopd */ "./node_modules/gopd/index.js");
|
|
10827
10913
|
var $defineProperty = __webpack_require__(/*! es-define-property */ "./node_modules/es-define-property/index.js");
|
|
10828
|
-
|
|
10829
|
-
|
|
10830
|
-
|
|
10831
|
-
|
|
10832
|
-
|
|
10833
|
-
|
|
10834
|
-
|
|
10835
|
-
|
|
10836
|
-
|
|
10837
|
-
|
|
10838
|
-
|
|
10839
|
-
|
|
10840
|
-
|
|
10841
|
-
|
|
10842
|
-
|
|
10843
|
-
|
|
10844
|
-
}
|
|
10914
|
+
|
|
10915
|
+
var throwTypeError = function () {
|
|
10916
|
+
throw new $TypeError();
|
|
10917
|
+
};
|
|
10918
|
+
var ThrowTypeError = $gOPD
|
|
10919
|
+
? (function () {
|
|
10920
|
+
try {
|
|
10921
|
+
// eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
|
|
10922
|
+
arguments.callee; // IE 8 does not throw here
|
|
10923
|
+
return throwTypeError;
|
|
10924
|
+
} catch (calleeThrows) {
|
|
10925
|
+
try {
|
|
10926
|
+
// IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
|
|
10927
|
+
return $gOPD(arguments, 'callee').get;
|
|
10928
|
+
} catch (gOPDthrows) {
|
|
10929
|
+
return throwTypeError;
|
|
10930
|
+
}
|
|
10931
|
+
}
|
|
10932
|
+
}())
|
|
10933
|
+
: throwTypeError;
|
|
10934
|
+
|
|
10845
10935
|
var hasSymbols = __webpack_require__(/*! has-symbols */ "./node_modules/has-symbols/index.js")();
|
|
10936
|
+
|
|
10846
10937
|
var getProto = __webpack_require__(/*! get-proto */ "./node_modules/get-proto/index.js");
|
|
10847
10938
|
var $ObjectGPO = __webpack_require__(/*! get-proto/Object.getPrototypeOf */ "./node_modules/get-proto/Object.getPrototypeOf.js");
|
|
10848
10939
|
var $ReflectGPO = __webpack_require__(/*! get-proto/Reflect.getPrototypeOf */ "./node_modules/get-proto/Reflect.getPrototypeOf.js");
|
|
10940
|
+
|
|
10849
10941
|
var $apply = __webpack_require__(/*! call-bind-apply-helpers/functionApply */ "./node_modules/call-bind-apply-helpers/functionApply.js");
|
|
10850
10942
|
var $call = __webpack_require__(/*! call-bind-apply-helpers/functionCall */ "./node_modules/call-bind-apply-helpers/functionCall.js");
|
|
10943
|
+
|
|
10851
10944
|
var needsEval = {};
|
|
10945
|
+
|
|
10852
10946
|
var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined : getProto(Uint8Array);
|
|
10947
|
+
|
|
10853
10948
|
var INTRINSICS = {
|
|
10854
|
-
|
|
10855
|
-
|
|
10856
|
-
|
|
10857
|
-
|
|
10858
|
-
|
|
10859
|
-
|
|
10860
|
-
|
|
10861
|
-
|
|
10862
|
-
|
|
10863
|
-
|
|
10864
|
-
|
|
10865
|
-
|
|
10866
|
-
|
|
10867
|
-
|
|
10868
|
-
|
|
10869
|
-
|
|
10870
|
-
|
|
10871
|
-
|
|
10872
|
-
|
|
10873
|
-
|
|
10874
|
-
|
|
10875
|
-
|
|
10876
|
-
|
|
10877
|
-
|
|
10878
|
-
|
|
10879
|
-
|
|
10880
|
-
|
|
10881
|
-
|
|
10882
|
-
|
|
10883
|
-
|
|
10884
|
-
|
|
10885
|
-
|
|
10886
|
-
|
|
10887
|
-
|
|
10888
|
-
|
|
10889
|
-
|
|
10890
|
-
|
|
10891
|
-
|
|
10892
|
-
|
|
10893
|
-
|
|
10894
|
-
|
|
10895
|
-
|
|
10896
|
-
|
|
10897
|
-
|
|
10898
|
-
|
|
10899
|
-
|
|
10900
|
-
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
|
|
10909
|
-
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10919
|
-
|
|
10920
|
-
|
|
10921
|
-
|
|
10922
|
-
|
|
10923
|
-
|
|
10924
|
-
|
|
10925
|
-
|
|
10926
|
-
|
|
10927
|
-
|
|
10928
|
-
|
|
10929
|
-
|
|
10930
|
-
|
|
10931
|
-
|
|
10932
|
-
|
|
10933
|
-
|
|
10934
|
-
|
|
10935
|
-
|
|
10949
|
+
__proto__: null,
|
|
10950
|
+
'%AggregateError%': typeof AggregateError === 'undefined' ? undefined : AggregateError,
|
|
10951
|
+
'%Array%': Array,
|
|
10952
|
+
'%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined : ArrayBuffer,
|
|
10953
|
+
'%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined,
|
|
10954
|
+
'%AsyncFromSyncIteratorPrototype%': undefined,
|
|
10955
|
+
'%AsyncFunction%': needsEval,
|
|
10956
|
+
'%AsyncGenerator%': needsEval,
|
|
10957
|
+
'%AsyncGeneratorFunction%': needsEval,
|
|
10958
|
+
'%AsyncIteratorPrototype%': needsEval,
|
|
10959
|
+
'%Atomics%': typeof Atomics === 'undefined' ? undefined : Atomics,
|
|
10960
|
+
'%BigInt%': typeof BigInt === 'undefined' ? undefined : BigInt,
|
|
10961
|
+
'%BigInt64Array%': typeof BigInt64Array === 'undefined' ? undefined : BigInt64Array,
|
|
10962
|
+
'%BigUint64Array%': typeof BigUint64Array === 'undefined' ? undefined : BigUint64Array,
|
|
10963
|
+
'%Boolean%': Boolean,
|
|
10964
|
+
'%DataView%': typeof DataView === 'undefined' ? undefined : DataView,
|
|
10965
|
+
'%Date%': Date,
|
|
10966
|
+
'%decodeURI%': decodeURI,
|
|
10967
|
+
'%decodeURIComponent%': decodeURIComponent,
|
|
10968
|
+
'%encodeURI%': encodeURI,
|
|
10969
|
+
'%encodeURIComponent%': encodeURIComponent,
|
|
10970
|
+
'%Error%': $Error,
|
|
10971
|
+
'%eval%': eval, // eslint-disable-line no-eval
|
|
10972
|
+
'%EvalError%': $EvalError,
|
|
10973
|
+
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
|
|
10974
|
+
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
|
|
10975
|
+
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
|
|
10976
|
+
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
|
|
10977
|
+
'%Function%': $Function,
|
|
10978
|
+
'%GeneratorFunction%': needsEval,
|
|
10979
|
+
'%Int8Array%': typeof Int8Array === 'undefined' ? undefined : Int8Array,
|
|
10980
|
+
'%Int16Array%': typeof Int16Array === 'undefined' ? undefined : Int16Array,
|
|
10981
|
+
'%Int32Array%': typeof Int32Array === 'undefined' ? undefined : Int32Array,
|
|
10982
|
+
'%isFinite%': isFinite,
|
|
10983
|
+
'%isNaN%': isNaN,
|
|
10984
|
+
'%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined,
|
|
10985
|
+
'%JSON%': typeof JSON === 'object' ? JSON : undefined,
|
|
10986
|
+
'%Map%': typeof Map === 'undefined' ? undefined : Map,
|
|
10987
|
+
'%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Map()[Symbol.iterator]()),
|
|
10988
|
+
'%Math%': Math,
|
|
10989
|
+
'%Number%': Number,
|
|
10990
|
+
'%Object%': $Object,
|
|
10991
|
+
'%Object.getOwnPropertyDescriptor%': $gOPD,
|
|
10992
|
+
'%parseFloat%': parseFloat,
|
|
10993
|
+
'%parseInt%': parseInt,
|
|
10994
|
+
'%Promise%': typeof Promise === 'undefined' ? undefined : Promise,
|
|
10995
|
+
'%Proxy%': typeof Proxy === 'undefined' ? undefined : Proxy,
|
|
10996
|
+
'%RangeError%': $RangeError,
|
|
10997
|
+
'%ReferenceError%': $ReferenceError,
|
|
10998
|
+
'%Reflect%': typeof Reflect === 'undefined' ? undefined : Reflect,
|
|
10999
|
+
'%RegExp%': RegExp,
|
|
11000
|
+
'%Set%': typeof Set === 'undefined' ? undefined : Set,
|
|
11001
|
+
'%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined : getProto(new Set()[Symbol.iterator]()),
|
|
11002
|
+
'%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined : SharedArrayBuffer,
|
|
11003
|
+
'%String%': String,
|
|
11004
|
+
'%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined,
|
|
11005
|
+
'%Symbol%': hasSymbols ? Symbol : undefined,
|
|
11006
|
+
'%SyntaxError%': $SyntaxError,
|
|
11007
|
+
'%ThrowTypeError%': ThrowTypeError,
|
|
11008
|
+
'%TypedArray%': TypedArray,
|
|
11009
|
+
'%TypeError%': $TypeError,
|
|
11010
|
+
'%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined : Uint8Array,
|
|
11011
|
+
'%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined : Uint8ClampedArray,
|
|
11012
|
+
'%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined : Uint16Array,
|
|
11013
|
+
'%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined : Uint32Array,
|
|
11014
|
+
'%URIError%': $URIError,
|
|
11015
|
+
'%WeakMap%': typeof WeakMap === 'undefined' ? undefined : WeakMap,
|
|
11016
|
+
'%WeakRef%': typeof WeakRef === 'undefined' ? undefined : WeakRef,
|
|
11017
|
+
'%WeakSet%': typeof WeakSet === 'undefined' ? undefined : WeakSet,
|
|
11018
|
+
|
|
11019
|
+
'%Function.prototype.call%': $call,
|
|
11020
|
+
'%Function.prototype.apply%': $apply,
|
|
11021
|
+
'%Object.defineProperty%': $defineProperty,
|
|
11022
|
+
'%Object.getPrototypeOf%': $ObjectGPO,
|
|
11023
|
+
'%Math.abs%': abs,
|
|
11024
|
+
'%Math.floor%': floor,
|
|
11025
|
+
'%Math.max%': max,
|
|
11026
|
+
'%Math.min%': min,
|
|
11027
|
+
'%Math.pow%': pow,
|
|
11028
|
+
'%Math.round%': round,
|
|
11029
|
+
'%Math.sign%': sign,
|
|
11030
|
+
'%Reflect.getPrototypeOf%': $ReflectGPO
|
|
10936
11031
|
};
|
|
11032
|
+
|
|
10937
11033
|
if (getProto) {
|
|
10938
|
-
|
|
10939
|
-
|
|
10940
|
-
|
|
10941
|
-
|
|
10942
|
-
|
|
10943
|
-
|
|
10944
|
-
|
|
11034
|
+
try {
|
|
11035
|
+
null.error; // eslint-disable-line no-unused-expressions
|
|
11036
|
+
} catch (e) {
|
|
11037
|
+
// https://github.com/tc39/proposal-shadowrealm/pull/384#issuecomment-1364264229
|
|
11038
|
+
var errorProto = getProto(getProto(e));
|
|
11039
|
+
INTRINSICS['%Error.prototype%'] = errorProto;
|
|
11040
|
+
}
|
|
10945
11041
|
}
|
|
11042
|
+
|
|
10946
11043
|
var doEval = function doEval(name) {
|
|
10947
|
-
|
|
10948
|
-
|
|
10949
|
-
|
|
10950
|
-
|
|
10951
|
-
|
|
10952
|
-
|
|
10953
|
-
|
|
10954
|
-
|
|
10955
|
-
|
|
10956
|
-
|
|
10957
|
-
|
|
10958
|
-
|
|
10959
|
-
|
|
10960
|
-
|
|
10961
|
-
|
|
10962
|
-
|
|
10963
|
-
|
|
10964
|
-
|
|
10965
|
-
|
|
10966
|
-
|
|
11044
|
+
var value;
|
|
11045
|
+
if (name === '%AsyncFunction%') {
|
|
11046
|
+
value = getEvalledConstructor('async function () {}');
|
|
11047
|
+
} else if (name === '%GeneratorFunction%') {
|
|
11048
|
+
value = getEvalledConstructor('function* () {}');
|
|
11049
|
+
} else if (name === '%AsyncGeneratorFunction%') {
|
|
11050
|
+
value = getEvalledConstructor('async function* () {}');
|
|
11051
|
+
} else if (name === '%AsyncGenerator%') {
|
|
11052
|
+
var fn = doEval('%AsyncGeneratorFunction%');
|
|
11053
|
+
if (fn) {
|
|
11054
|
+
value = fn.prototype;
|
|
11055
|
+
}
|
|
11056
|
+
} else if (name === '%AsyncIteratorPrototype%') {
|
|
11057
|
+
var gen = doEval('%AsyncGenerator%');
|
|
11058
|
+
if (gen && getProto) {
|
|
11059
|
+
value = getProto(gen.prototype);
|
|
11060
|
+
}
|
|
11061
|
+
}
|
|
11062
|
+
|
|
11063
|
+
INTRINSICS[name] = value;
|
|
11064
|
+
|
|
11065
|
+
return value;
|
|
10967
11066
|
};
|
|
11067
|
+
|
|
10968
11068
|
var LEGACY_ALIASES = {
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
|
|
10972
|
-
|
|
10973
|
-
|
|
10974
|
-
|
|
10975
|
-
|
|
10976
|
-
|
|
10977
|
-
|
|
10978
|
-
|
|
10979
|
-
|
|
10980
|
-
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
|
|
10988
|
-
|
|
10989
|
-
|
|
10990
|
-
|
|
10991
|
-
|
|
10992
|
-
|
|
10993
|
-
|
|
10994
|
-
|
|
10995
|
-
|
|
10996
|
-
|
|
10997
|
-
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
-
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11069
|
+
__proto__: null,
|
|
11070
|
+
'%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
|
|
11071
|
+
'%ArrayPrototype%': ['Array', 'prototype'],
|
|
11072
|
+
'%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
|
|
11073
|
+
'%ArrayProto_forEach%': ['Array', 'prototype', 'forEach'],
|
|
11074
|
+
'%ArrayProto_keys%': ['Array', 'prototype', 'keys'],
|
|
11075
|
+
'%ArrayProto_values%': ['Array', 'prototype', 'values'],
|
|
11076
|
+
'%AsyncFunctionPrototype%': ['AsyncFunction', 'prototype'],
|
|
11077
|
+
'%AsyncGenerator%': ['AsyncGeneratorFunction', 'prototype'],
|
|
11078
|
+
'%AsyncGeneratorPrototype%': ['AsyncGeneratorFunction', 'prototype', 'prototype'],
|
|
11079
|
+
'%BooleanPrototype%': ['Boolean', 'prototype'],
|
|
11080
|
+
'%DataViewPrototype%': ['DataView', 'prototype'],
|
|
11081
|
+
'%DatePrototype%': ['Date', 'prototype'],
|
|
11082
|
+
'%ErrorPrototype%': ['Error', 'prototype'],
|
|
11083
|
+
'%EvalErrorPrototype%': ['EvalError', 'prototype'],
|
|
11084
|
+
'%Float32ArrayPrototype%': ['Float32Array', 'prototype'],
|
|
11085
|
+
'%Float64ArrayPrototype%': ['Float64Array', 'prototype'],
|
|
11086
|
+
'%FunctionPrototype%': ['Function', 'prototype'],
|
|
11087
|
+
'%Generator%': ['GeneratorFunction', 'prototype'],
|
|
11088
|
+
'%GeneratorPrototype%': ['GeneratorFunction', 'prototype', 'prototype'],
|
|
11089
|
+
'%Int8ArrayPrototype%': ['Int8Array', 'prototype'],
|
|
11090
|
+
'%Int16ArrayPrototype%': ['Int16Array', 'prototype'],
|
|
11091
|
+
'%Int32ArrayPrototype%': ['Int32Array', 'prototype'],
|
|
11092
|
+
'%JSONParse%': ['JSON', 'parse'],
|
|
11093
|
+
'%JSONStringify%': ['JSON', 'stringify'],
|
|
11094
|
+
'%MapPrototype%': ['Map', 'prototype'],
|
|
11095
|
+
'%NumberPrototype%': ['Number', 'prototype'],
|
|
11096
|
+
'%ObjectPrototype%': ['Object', 'prototype'],
|
|
11097
|
+
'%ObjProto_toString%': ['Object', 'prototype', 'toString'],
|
|
11098
|
+
'%ObjProto_valueOf%': ['Object', 'prototype', 'valueOf'],
|
|
11099
|
+
'%PromisePrototype%': ['Promise', 'prototype'],
|
|
11100
|
+
'%PromiseProto_then%': ['Promise', 'prototype', 'then'],
|
|
11101
|
+
'%Promise_all%': ['Promise', 'all'],
|
|
11102
|
+
'%Promise_reject%': ['Promise', 'reject'],
|
|
11103
|
+
'%Promise_resolve%': ['Promise', 'resolve'],
|
|
11104
|
+
'%RangeErrorPrototype%': ['RangeError', 'prototype'],
|
|
11105
|
+
'%ReferenceErrorPrototype%': ['ReferenceError', 'prototype'],
|
|
11106
|
+
'%RegExpPrototype%': ['RegExp', 'prototype'],
|
|
11107
|
+
'%SetPrototype%': ['Set', 'prototype'],
|
|
11108
|
+
'%SharedArrayBufferPrototype%': ['SharedArrayBuffer', 'prototype'],
|
|
11109
|
+
'%StringPrototype%': ['String', 'prototype'],
|
|
11110
|
+
'%SymbolPrototype%': ['Symbol', 'prototype'],
|
|
11111
|
+
'%SyntaxErrorPrototype%': ['SyntaxError', 'prototype'],
|
|
11112
|
+
'%TypedArrayPrototype%': ['TypedArray', 'prototype'],
|
|
11113
|
+
'%TypeErrorPrototype%': ['TypeError', 'prototype'],
|
|
11114
|
+
'%Uint8ArrayPrototype%': ['Uint8Array', 'prototype'],
|
|
11115
|
+
'%Uint8ClampedArrayPrototype%': ['Uint8ClampedArray', 'prototype'],
|
|
11116
|
+
'%Uint16ArrayPrototype%': ['Uint16Array', 'prototype'],
|
|
11117
|
+
'%Uint32ArrayPrototype%': ['Uint32Array', 'prototype'],
|
|
11118
|
+
'%URIErrorPrototype%': ['URIError', 'prototype'],
|
|
11119
|
+
'%WeakMapPrototype%': ['WeakMap', 'prototype'],
|
|
11120
|
+
'%WeakSetPrototype%': ['WeakSet', 'prototype']
|
|
11021
11121
|
};
|
|
11122
|
+
|
|
11022
11123
|
var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bind/index.js");
|
|
11023
11124
|
var hasOwn = __webpack_require__(/*! hasown */ "./node_modules/hasown/index.js");
|
|
11024
11125
|
var $concat = bind.call($call, Array.prototype.concat);
|
|
@@ -11031,114 +11132,132 @@ var $exec = bind.call($call, RegExp.prototype.exec);
|
|
|
11031
11132
|
var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
|
|
11032
11133
|
var reEscapeChar = /\\(\\)?/g; /** Used to match backslashes in property paths. */
|
|
11033
11134
|
var stringToPath = function stringToPath(string) {
|
|
11034
|
-
|
|
11035
|
-
|
|
11036
|
-
|
|
11037
|
-
|
|
11038
|
-
|
|
11039
|
-
|
|
11040
|
-
|
|
11041
|
-
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11135
|
+
var first = $strSlice(string, 0, 1);
|
|
11136
|
+
var last = $strSlice(string, -1);
|
|
11137
|
+
if (first === '%' && last !== '%') {
|
|
11138
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
|
|
11139
|
+
} else if (last === '%' && first !== '%') {
|
|
11140
|
+
throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
|
|
11141
|
+
}
|
|
11142
|
+
var result = [];
|
|
11143
|
+
$replace(string, rePropName, function (match, number, quote, subString) {
|
|
11144
|
+
result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
|
|
11145
|
+
});
|
|
11146
|
+
return result;
|
|
11046
11147
|
};
|
|
11047
11148
|
/* end adaptation */
|
|
11048
11149
|
|
|
11049
11150
|
var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11057
|
-
|
|
11058
|
-
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
|
|
11151
|
+
var intrinsicName = name;
|
|
11152
|
+
var alias;
|
|
11153
|
+
if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
|
|
11154
|
+
alias = LEGACY_ALIASES[intrinsicName];
|
|
11155
|
+
intrinsicName = '%' + alias[0] + '%';
|
|
11156
|
+
}
|
|
11157
|
+
|
|
11158
|
+
if (hasOwn(INTRINSICS, intrinsicName)) {
|
|
11159
|
+
var value = INTRINSICS[intrinsicName];
|
|
11160
|
+
if (value === needsEval) {
|
|
11161
|
+
value = doEval(intrinsicName);
|
|
11162
|
+
}
|
|
11163
|
+
if (typeof value === 'undefined' && !allowMissing) {
|
|
11164
|
+
throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
|
|
11165
|
+
}
|
|
11166
|
+
|
|
11167
|
+
return {
|
|
11168
|
+
alias: alias,
|
|
11169
|
+
name: intrinsicName,
|
|
11170
|
+
value: value
|
|
11171
|
+
};
|
|
11172
|
+
}
|
|
11173
|
+
|
|
11174
|
+
throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
|
|
11071
11175
|
};
|
|
11176
|
+
|
|
11072
11177
|
module.exports = function GetIntrinsic(name, allowMissing) {
|
|
11073
|
-
|
|
11074
|
-
|
|
11075
|
-
|
|
11076
|
-
|
|
11077
|
-
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
|
|
11085
|
-
|
|
11086
|
-
|
|
11087
|
-
|
|
11088
|
-
|
|
11089
|
-
|
|
11090
|
-
|
|
11091
|
-
|
|
11092
|
-
|
|
11093
|
-
|
|
11094
|
-
|
|
11095
|
-
|
|
11096
|
-
|
|
11097
|
-
|
|
11098
|
-
|
|
11099
|
-
|
|
11100
|
-
|
|
11101
|
-
|
|
11102
|
-
|
|
11103
|
-
|
|
11104
|
-
|
|
11105
|
-
|
|
11106
|
-
|
|
11107
|
-
|
|
11108
|
-
|
|
11109
|
-
|
|
11110
|
-
|
|
11111
|
-
|
|
11112
|
-
|
|
11113
|
-
|
|
11114
|
-
|
|
11115
|
-
|
|
11116
|
-
|
|
11117
|
-
|
|
11118
|
-
|
|
11119
|
-
|
|
11120
|
-
|
|
11121
|
-
|
|
11122
|
-
|
|
11123
|
-
|
|
11124
|
-
|
|
11125
|
-
|
|
11126
|
-
|
|
11127
|
-
|
|
11128
|
-
|
|
11129
|
-
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
|
|
11133
|
-
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11137
|
-
|
|
11138
|
-
|
|
11139
|
-
|
|
11178
|
+
if (typeof name !== 'string' || name.length === 0) {
|
|
11179
|
+
throw new $TypeError('intrinsic name must be a non-empty string');
|
|
11180
|
+
}
|
|
11181
|
+
if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
|
|
11182
|
+
throw new $TypeError('"allowMissing" argument must be a boolean');
|
|
11183
|
+
}
|
|
11184
|
+
|
|
11185
|
+
if ($exec(/^%?[^%]*%?$/, name) === null) {
|
|
11186
|
+
throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
|
|
11187
|
+
}
|
|
11188
|
+
var parts = stringToPath(name);
|
|
11189
|
+
var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
|
|
11190
|
+
|
|
11191
|
+
var intrinsic = getBaseIntrinsic('%' + intrinsicBaseName + '%', allowMissing);
|
|
11192
|
+
var intrinsicRealName = intrinsic.name;
|
|
11193
|
+
var value = intrinsic.value;
|
|
11194
|
+
var skipFurtherCaching = false;
|
|
11195
|
+
|
|
11196
|
+
var alias = intrinsic.alias;
|
|
11197
|
+
if (alias) {
|
|
11198
|
+
intrinsicBaseName = alias[0];
|
|
11199
|
+
$spliceApply(parts, $concat([0, 1], alias));
|
|
11200
|
+
}
|
|
11201
|
+
|
|
11202
|
+
for (var i = 1, isOwn = true; i < parts.length; i += 1) {
|
|
11203
|
+
var part = parts[i];
|
|
11204
|
+
var first = $strSlice(part, 0, 1);
|
|
11205
|
+
var last = $strSlice(part, -1);
|
|
11206
|
+
if (
|
|
11207
|
+
(
|
|
11208
|
+
(first === '"' || first === "'" || first === '`')
|
|
11209
|
+
|| (last === '"' || last === "'" || last === '`')
|
|
11210
|
+
)
|
|
11211
|
+
&& first !== last
|
|
11212
|
+
) {
|
|
11213
|
+
throw new $SyntaxError('property names with quotes must have matching quotes');
|
|
11214
|
+
}
|
|
11215
|
+
if (part === 'constructor' || !isOwn) {
|
|
11216
|
+
skipFurtherCaching = true;
|
|
11217
|
+
}
|
|
11218
|
+
|
|
11219
|
+
intrinsicBaseName += '.' + part;
|
|
11220
|
+
intrinsicRealName = '%' + intrinsicBaseName + '%';
|
|
11221
|
+
|
|
11222
|
+
if (hasOwn(INTRINSICS, intrinsicRealName)) {
|
|
11223
|
+
value = INTRINSICS[intrinsicRealName];
|
|
11224
|
+
} else if (value != null) {
|
|
11225
|
+
if (!(part in value)) {
|
|
11226
|
+
if (!allowMissing) {
|
|
11227
|
+
throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
|
|
11228
|
+
}
|
|
11229
|
+
return void undefined;
|
|
11230
|
+
}
|
|
11231
|
+
if ($gOPD && (i + 1) >= parts.length) {
|
|
11232
|
+
var desc = $gOPD(value, part);
|
|
11233
|
+
isOwn = !!desc;
|
|
11234
|
+
|
|
11235
|
+
// By convention, when a data property is converted to an accessor
|
|
11236
|
+
// property to emulate a data property that does not suffer from
|
|
11237
|
+
// the override mistake, that accessor's getter is marked with
|
|
11238
|
+
// an `originalValue` property. Here, when we detect this, we
|
|
11239
|
+
// uphold the illusion by pretending to see that original data
|
|
11240
|
+
// property, i.e., returning the value rather than the getter
|
|
11241
|
+
// itself.
|
|
11242
|
+
if (isOwn && 'get' in desc && !('originalValue' in desc.get)) {
|
|
11243
|
+
value = desc.get;
|
|
11244
|
+
} else {
|
|
11245
|
+
value = value[part];
|
|
11246
|
+
}
|
|
11247
|
+
} else {
|
|
11248
|
+
isOwn = hasOwn(value, part);
|
|
11249
|
+
value = value[part];
|
|
11250
|
+
}
|
|
11251
|
+
|
|
11252
|
+
if (isOwn && !skipFurtherCaching) {
|
|
11253
|
+
INTRINSICS[intrinsicRealName] = value;
|
|
11254
|
+
}
|
|
11255
|
+
}
|
|
11256
|
+
}
|
|
11257
|
+
return value;
|
|
11140
11258
|
};
|
|
11141
11259
|
|
|
11260
|
+
|
|
11142
11261
|
/***/ }),
|
|
11143
11262
|
|
|
11144
11263
|
/***/ "./node_modules/get-proto/Object.getPrototypeOf.js":
|
|
@@ -11156,6 +11275,7 @@ var $Object = __webpack_require__(/*! es-object-atoms */ "./node_modules/es-obje
|
|
|
11156
11275
|
/** @type {import('./Object.getPrototypeOf')} */
|
|
11157
11276
|
module.exports = $Object.getPrototypeOf || null;
|
|
11158
11277
|
|
|
11278
|
+
|
|
11159
11279
|
/***/ }),
|
|
11160
11280
|
|
|
11161
11281
|
/***/ "./node_modules/get-proto/Reflect.getPrototypeOf.js":
|
|
@@ -11169,7 +11289,8 @@ module.exports = $Object.getPrototypeOf || null;
|
|
|
11169
11289
|
|
|
11170
11290
|
|
|
11171
11291
|
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
11172
|
-
module.exports = typeof Reflect !== 'undefined' && Reflect.getPrototypeOf || null;
|
|
11292
|
+
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
11293
|
+
|
|
11173
11294
|
|
|
11174
11295
|
/***/ }),
|
|
11175
11296
|
|
|
@@ -11183,25 +11304,32 @@ module.exports = typeof Reflect !== 'undefined' && Reflect.getPrototypeOf || nul
|
|
|
11183
11304
|
"use strict";
|
|
11184
11305
|
|
|
11185
11306
|
|
|
11186
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
11187
11307
|
var reflectGetProto = __webpack_require__(/*! ./Reflect.getPrototypeOf */ "./node_modules/get-proto/Reflect.getPrototypeOf.js");
|
|
11188
11308
|
var originalGetProto = __webpack_require__(/*! ./Object.getPrototypeOf */ "./node_modules/get-proto/Object.getPrototypeOf.js");
|
|
11309
|
+
|
|
11189
11310
|
var getDunderProto = __webpack_require__(/*! dunder-proto/get */ "./node_modules/dunder-proto/get.js");
|
|
11190
11311
|
|
|
11191
11312
|
/** @type {import('.')} */
|
|
11192
|
-
module.exports = reflectGetProto
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
}
|
|
11202
|
-
|
|
11203
|
-
|
|
11204
|
-
}
|
|
11313
|
+
module.exports = reflectGetProto
|
|
11314
|
+
? function getProto(O) {
|
|
11315
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
11316
|
+
return reflectGetProto(O);
|
|
11317
|
+
}
|
|
11318
|
+
: originalGetProto
|
|
11319
|
+
? function getProto(O) {
|
|
11320
|
+
if (!O || (typeof O !== 'object' && typeof O !== 'function')) {
|
|
11321
|
+
throw new TypeError('getProto: not an object');
|
|
11322
|
+
}
|
|
11323
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
11324
|
+
return originalGetProto(O);
|
|
11325
|
+
}
|
|
11326
|
+
: getDunderProto
|
|
11327
|
+
? function getProto(O) {
|
|
11328
|
+
// @ts-expect-error TS can't narrow inside a closure, for some reason
|
|
11329
|
+
return getDunderProto(O);
|
|
11330
|
+
}
|
|
11331
|
+
: null;
|
|
11332
|
+
|
|
11205
11333
|
|
|
11206
11334
|
/***/ }),
|
|
11207
11335
|
|
|
@@ -11218,6 +11346,7 @@ module.exports = reflectGetProto ? function getProto(O) {
|
|
|
11218
11346
|
/** @type {import('./gOPD')} */
|
|
11219
11347
|
module.exports = Object.getOwnPropertyDescriptor;
|
|
11220
11348
|
|
|
11349
|
+
|
|
11221
11350
|
/***/ }),
|
|
11222
11351
|
|
|
11223
11352
|
/***/ "./node_modules/gopd/index.js":
|
|
@@ -11232,16 +11361,19 @@ module.exports = Object.getOwnPropertyDescriptor;
|
|
|
11232
11361
|
|
|
11233
11362
|
/** @type {import('.')} */
|
|
11234
11363
|
var $gOPD = __webpack_require__(/*! ./gOPD */ "./node_modules/gopd/gOPD.js");
|
|
11364
|
+
|
|
11235
11365
|
if ($gOPD) {
|
|
11236
|
-
|
|
11237
|
-
|
|
11238
|
-
|
|
11239
|
-
|
|
11240
|
-
|
|
11241
|
-
|
|
11366
|
+
try {
|
|
11367
|
+
$gOPD([], 'length');
|
|
11368
|
+
} catch (e) {
|
|
11369
|
+
// IE 8 has a broken gOPD
|
|
11370
|
+
$gOPD = null;
|
|
11371
|
+
}
|
|
11242
11372
|
}
|
|
11373
|
+
|
|
11243
11374
|
module.exports = $gOPD;
|
|
11244
11375
|
|
|
11376
|
+
|
|
11245
11377
|
/***/ }),
|
|
11246
11378
|
|
|
11247
11379
|
/***/ "./node_modules/has-property-descriptors/index.js":
|
|
@@ -11255,25 +11387,27 @@ module.exports = $gOPD;
|
|
|
11255
11387
|
|
|
11256
11388
|
|
|
11257
11389
|
var $defineProperty = __webpack_require__(/*! es-define-property */ "./node_modules/es-define-property/index.js");
|
|
11390
|
+
|
|
11258
11391
|
var hasPropertyDescriptors = function hasPropertyDescriptors() {
|
|
11259
|
-
|
|
11392
|
+
return !!$defineProperty;
|
|
11260
11393
|
};
|
|
11394
|
+
|
|
11261
11395
|
hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
11268
|
-
|
|
11269
|
-
|
|
11270
|
-
|
|
11271
|
-
|
|
11272
|
-
return true;
|
|
11273
|
-
}
|
|
11396
|
+
// node v0.6 has a bug where array lengths can be Set but not Defined
|
|
11397
|
+
if (!$defineProperty) {
|
|
11398
|
+
return null;
|
|
11399
|
+
}
|
|
11400
|
+
try {
|
|
11401
|
+
return $defineProperty([], 'length', { value: 1 }).length !== 1;
|
|
11402
|
+
} catch (e) {
|
|
11403
|
+
// In Firefox 4-22, defining length on an array throws an exception.
|
|
11404
|
+
return true;
|
|
11405
|
+
}
|
|
11274
11406
|
};
|
|
11407
|
+
|
|
11275
11408
|
module.exports = hasPropertyDescriptors;
|
|
11276
11409
|
|
|
11410
|
+
|
|
11277
11411
|
/***/ }),
|
|
11278
11412
|
|
|
11279
11413
|
/***/ "./node_modules/has-symbols/index.js":
|
|
@@ -11286,27 +11420,20 @@ module.exports = hasPropertyDescriptors;
|
|
|
11286
11420
|
"use strict";
|
|
11287
11421
|
|
|
11288
11422
|
|
|
11289
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
11290
11423
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
11291
11424
|
var hasSymbolSham = __webpack_require__(/*! ./shams */ "./node_modules/has-symbols/shams.js");
|
|
11292
11425
|
|
|
11293
11426
|
/** @type {import('.')} */
|
|
11294
11427
|
module.exports = function hasNativeSymbols() {
|
|
11295
|
-
|
|
11296
|
-
|
|
11297
|
-
|
|
11298
|
-
|
|
11299
|
-
|
|
11300
|
-
|
|
11301
|
-
if (_typeof(origSymbol('foo')) !== 'symbol') {
|
|
11302
|
-
return false;
|
|
11303
|
-
}
|
|
11304
|
-
if (_typeof(Symbol('bar')) !== 'symbol') {
|
|
11305
|
-
return false;
|
|
11306
|
-
}
|
|
11307
|
-
return hasSymbolSham();
|
|
11428
|
+
if (typeof origSymbol !== 'function') { return false; }
|
|
11429
|
+
if (typeof Symbol !== 'function') { return false; }
|
|
11430
|
+
if (typeof origSymbol('foo') !== 'symbol') { return false; }
|
|
11431
|
+
if (typeof Symbol('bar') !== 'symbol') { return false; }
|
|
11432
|
+
|
|
11433
|
+
return hasSymbolSham();
|
|
11308
11434
|
};
|
|
11309
11435
|
|
|
11436
|
+
|
|
11310
11437
|
/***/ }),
|
|
11311
11438
|
|
|
11312
11439
|
/***/ "./node_modules/has-symbols/shams.js":
|
|
@@ -11321,65 +11448,49 @@ module.exports = function hasNativeSymbols() {
|
|
|
11321
11448
|
|
|
11322
11449
|
/** @type {import('./shams')} */
|
|
11323
11450
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
11324
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
11325
11451
|
module.exports = function hasSymbols() {
|
|
11326
|
-
|
|
11327
|
-
|
|
11328
|
-
}
|
|
11329
|
-
if (_typeof(Symbol.iterator) === 'symbol') {
|
|
11330
|
-
return true;
|
|
11331
|
-
}
|
|
11452
|
+
if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
|
|
11453
|
+
if (typeof Symbol.iterator === 'symbol') { return true; }
|
|
11332
11454
|
|
|
11333
|
-
|
|
11334
|
-
|
|
11335
|
-
|
|
11336
|
-
|
|
11337
|
-
|
|
11338
|
-
return false;
|
|
11339
|
-
}
|
|
11340
|
-
if (Object.prototype.toString.call(sym) !== '[object Symbol]') {
|
|
11341
|
-
return false;
|
|
11342
|
-
}
|
|
11343
|
-
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') {
|
|
11344
|
-
return false;
|
|
11345
|
-
}
|
|
11455
|
+
/** @type {{ [k in symbol]?: unknown }} */
|
|
11456
|
+
var obj = {};
|
|
11457
|
+
var sym = Symbol('test');
|
|
11458
|
+
var symObj = Object(sym);
|
|
11459
|
+
if (typeof sym === 'string') { return false; }
|
|
11346
11460
|
|
|
11347
|
-
|
|
11348
|
-
|
|
11349
|
-
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
11350
|
-
// if (!(symObj instanceof Symbol)) { return false; }
|
|
11461
|
+
if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
|
|
11462
|
+
if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
|
|
11351
11463
|
|
|
11352
|
-
|
|
11353
|
-
|
|
11464
|
+
// temp disabled per https://github.com/ljharb/object.assign/issues/17
|
|
11465
|
+
// if (sym instanceof Symbol) { return false; }
|
|
11466
|
+
// temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
|
|
11467
|
+
// if (!(symObj instanceof Symbol)) { return false; }
|
|
11354
11468
|
|
|
11355
|
-
|
|
11356
|
-
|
|
11357
|
-
|
|
11358
|
-
|
|
11359
|
-
|
|
11360
|
-
|
|
11361
|
-
|
|
11362
|
-
|
|
11363
|
-
|
|
11364
|
-
|
|
11365
|
-
|
|
11366
|
-
|
|
11367
|
-
|
|
11368
|
-
|
|
11369
|
-
|
|
11370
|
-
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
|
|
11374
|
-
|
|
11375
|
-
|
|
11376
|
-
|
|
11377
|
-
return false;
|
|
11378
|
-
}
|
|
11379
|
-
}
|
|
11380
|
-
return true;
|
|
11469
|
+
// if (typeof Symbol.prototype.toString !== 'function') { return false; }
|
|
11470
|
+
// if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
|
|
11471
|
+
|
|
11472
|
+
var symVal = 42;
|
|
11473
|
+
obj[sym] = symVal;
|
|
11474
|
+
for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
|
|
11475
|
+
if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
|
|
11476
|
+
|
|
11477
|
+
if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
|
|
11478
|
+
|
|
11479
|
+
var syms = Object.getOwnPropertySymbols(obj);
|
|
11480
|
+
if (syms.length !== 1 || syms[0] !== sym) { return false; }
|
|
11481
|
+
|
|
11482
|
+
if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
|
|
11483
|
+
|
|
11484
|
+
if (typeof Object.getOwnPropertyDescriptor === 'function') {
|
|
11485
|
+
// eslint-disable-next-line no-extra-parens
|
|
11486
|
+
var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
|
|
11487
|
+
if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
|
|
11488
|
+
}
|
|
11489
|
+
|
|
11490
|
+
return true;
|
|
11381
11491
|
};
|
|
11382
11492
|
|
|
11493
|
+
|
|
11383
11494
|
/***/ }),
|
|
11384
11495
|
|
|
11385
11496
|
/***/ "./node_modules/has-tostringtag/shams.js":
|
|
@@ -11396,9 +11507,10 @@ var hasSymbols = __webpack_require__(/*! has-symbols/shams */ "./node_modules/ha
|
|
|
11396
11507
|
|
|
11397
11508
|
/** @type {import('.')} */
|
|
11398
11509
|
module.exports = function hasToStringTagShams() {
|
|
11399
|
-
|
|
11510
|
+
return hasSymbols() && !!Symbol.toStringTag;
|
|
11400
11511
|
};
|
|
11401
11512
|
|
|
11513
|
+
|
|
11402
11514
|
/***/ }),
|
|
11403
11515
|
|
|
11404
11516
|
/***/ "./node_modules/hasown/index.js":
|
|
@@ -11418,6 +11530,7 @@ var bind = __webpack_require__(/*! function-bind */ "./node_modules/function-bin
|
|
|
11418
11530
|
/** @type {import('.')} */
|
|
11419
11531
|
module.exports = bind.call(call, $hasOwn);
|
|
11420
11532
|
|
|
11533
|
+
|
|
11421
11534
|
/***/ }),
|
|
11422
11535
|
|
|
11423
11536
|
/***/ "./node_modules/is-callable/index.js":
|
|
@@ -11430,51 +11543,47 @@ module.exports = bind.call(call, $hasOwn);
|
|
|
11430
11543
|
"use strict";
|
|
11431
11544
|
|
|
11432
11545
|
|
|
11433
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
11434
11546
|
var fnToStr = Function.prototype.toString;
|
|
11435
|
-
var reflectApply =
|
|
11547
|
+
var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
|
|
11436
11548
|
var badArrayLike;
|
|
11437
11549
|
var isCallableMarker;
|
|
11438
11550
|
if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
|
|
11439
|
-
|
|
11440
|
-
|
|
11441
|
-
|
|
11442
|
-
|
|
11443
|
-
|
|
11444
|
-
|
|
11445
|
-
|
|
11446
|
-
|
|
11447
|
-
|
|
11448
|
-
|
|
11449
|
-
|
|
11450
|
-
|
|
11451
|
-
|
|
11452
|
-
|
|
11453
|
-
}
|
|
11454
|
-
}
|
|
11551
|
+
try {
|
|
11552
|
+
badArrayLike = Object.defineProperty({}, 'length', {
|
|
11553
|
+
get: function () {
|
|
11554
|
+
throw isCallableMarker;
|
|
11555
|
+
}
|
|
11556
|
+
});
|
|
11557
|
+
isCallableMarker = {};
|
|
11558
|
+
// eslint-disable-next-line no-throw-literal
|
|
11559
|
+
reflectApply(function () { throw 42; }, null, badArrayLike);
|
|
11560
|
+
} catch (_) {
|
|
11561
|
+
if (_ !== isCallableMarker) {
|
|
11562
|
+
reflectApply = null;
|
|
11563
|
+
}
|
|
11564
|
+
}
|
|
11455
11565
|
} else {
|
|
11456
|
-
|
|
11566
|
+
reflectApply = null;
|
|
11457
11567
|
}
|
|
11568
|
+
|
|
11458
11569
|
var constructorRegex = /^\s*class\b/;
|
|
11459
11570
|
var isES6ClassFn = function isES6ClassFunction(value) {
|
|
11460
|
-
|
|
11461
|
-
|
|
11462
|
-
|
|
11463
|
-
|
|
11464
|
-
|
|
11465
|
-
|
|
11571
|
+
try {
|
|
11572
|
+
var fnStr = fnToStr.call(value);
|
|
11573
|
+
return constructorRegex.test(fnStr);
|
|
11574
|
+
} catch (e) {
|
|
11575
|
+
return false; // not a function
|
|
11576
|
+
}
|
|
11466
11577
|
};
|
|
11467
11578
|
|
|
11468
11579
|
var tryFunctionObject = function tryFunctionToStr(value) {
|
|
11469
|
-
|
|
11470
|
-
|
|
11471
|
-
|
|
11472
|
-
|
|
11473
|
-
|
|
11474
|
-
|
|
11475
|
-
|
|
11476
|
-
return false;
|
|
11477
|
-
}
|
|
11580
|
+
try {
|
|
11581
|
+
if (isES6ClassFn(value)) { return false; }
|
|
11582
|
+
fnToStr.call(value);
|
|
11583
|
+
return true;
|
|
11584
|
+
} catch (e) {
|
|
11585
|
+
return false;
|
|
11586
|
+
}
|
|
11478
11587
|
};
|
|
11479
11588
|
var toStr = Object.prototype.toString;
|
|
11480
11589
|
var objectClass = '[object Object]';
|
|
@@ -11487,68 +11596,53 @@ var hasToStringTag = typeof Symbol === 'function' && !!Symbol.toStringTag; // be
|
|
|
11487
11596
|
|
|
11488
11597
|
var isIE68 = !(0 in [,]); // eslint-disable-line no-sparse-arrays, comma-spacing
|
|
11489
11598
|
|
|
11490
|
-
var isDDA = function isDocumentDotAll() {
|
|
11491
|
-
|
|
11492
|
-
|
|
11493
|
-
|
|
11494
|
-
|
|
11495
|
-
|
|
11496
|
-
|
|
11497
|
-
|
|
11498
|
-
|
|
11499
|
-
|
|
11500
|
-
|
|
11501
|
-
|
|
11502
|
-
|
|
11503
|
-
|
|
11504
|
-
|
|
11505
|
-
|
|
11506
|
-
|
|
11507
|
-
|
|
11508
|
-
|
|
11509
|
-
|
|
11510
|
-
|
|
11511
|
-
}
|
|
11512
|
-
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11531
|
-
|
|
11532
|
-
|
|
11533
|
-
|
|
11534
|
-
|
|
11535
|
-
|
|
11536
|
-
|
|
11537
|
-
if (typeof value !== 'function' && _typeof(value) !== 'object') {
|
|
11538
|
-
return false;
|
|
11539
|
-
}
|
|
11540
|
-
if (hasToStringTag) {
|
|
11541
|
-
return tryFunctionObject(value);
|
|
11542
|
-
}
|
|
11543
|
-
if (isES6ClassFn(value)) {
|
|
11544
|
-
return false;
|
|
11545
|
-
}
|
|
11546
|
-
var strClass = toStr.call(value);
|
|
11547
|
-
if (strClass !== fnClass && strClass !== genClass && !/^\[object HTML/.test(strClass)) {
|
|
11548
|
-
return false;
|
|
11549
|
-
}
|
|
11550
|
-
return tryFunctionObject(value);
|
|
11551
|
-
};
|
|
11599
|
+
var isDDA = function isDocumentDotAll() { return false; };
|
|
11600
|
+
if (typeof document === 'object') {
|
|
11601
|
+
// Firefox 3 canonicalizes DDA to undefined when it's not accessed directly
|
|
11602
|
+
var all = document.all;
|
|
11603
|
+
if (toStr.call(all) === toStr.call(document.all)) {
|
|
11604
|
+
isDDA = function isDocumentDotAll(value) {
|
|
11605
|
+
/* globals document: false */
|
|
11606
|
+
// in IE 6-8, typeof document.all is "object" and it's truthy
|
|
11607
|
+
if ((isIE68 || !value) && (typeof value === 'undefined' || typeof value === 'object')) {
|
|
11608
|
+
try {
|
|
11609
|
+
var str = toStr.call(value);
|
|
11610
|
+
return (
|
|
11611
|
+
str === ddaClass
|
|
11612
|
+
|| str === ddaClass2
|
|
11613
|
+
|| str === ddaClass3 // opera 12.16
|
|
11614
|
+
|| str === objectClass // IE 6-8
|
|
11615
|
+
) && value('') == null; // eslint-disable-line eqeqeq
|
|
11616
|
+
} catch (e) { /**/ }
|
|
11617
|
+
}
|
|
11618
|
+
return false;
|
|
11619
|
+
};
|
|
11620
|
+
}
|
|
11621
|
+
}
|
|
11622
|
+
|
|
11623
|
+
module.exports = reflectApply
|
|
11624
|
+
? function isCallable(value) {
|
|
11625
|
+
if (isDDA(value)) { return true; }
|
|
11626
|
+
if (!value) { return false; }
|
|
11627
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
11628
|
+
try {
|
|
11629
|
+
reflectApply(value, null, badArrayLike);
|
|
11630
|
+
} catch (e) {
|
|
11631
|
+
if (e !== isCallableMarker) { return false; }
|
|
11632
|
+
}
|
|
11633
|
+
return !isES6ClassFn(value) && tryFunctionObject(value);
|
|
11634
|
+
}
|
|
11635
|
+
: function isCallable(value) {
|
|
11636
|
+
if (isDDA(value)) { return true; }
|
|
11637
|
+
if (!value) { return false; }
|
|
11638
|
+
if (typeof value !== 'function' && typeof value !== 'object') { return false; }
|
|
11639
|
+
if (hasToStringTag) { return tryFunctionObject(value); }
|
|
11640
|
+
if (isES6ClassFn(value)) { return false; }
|
|
11641
|
+
var strClass = toStr.call(value);
|
|
11642
|
+
if (strClass !== fnClass && strClass !== genClass && !(/^\[object HTML/).test(strClass)) { return false; }
|
|
11643
|
+
return tryFunctionObject(value);
|
|
11644
|
+
};
|
|
11645
|
+
|
|
11552
11646
|
|
|
11553
11647
|
/***/ }),
|
|
11554
11648
|
|
|
@@ -11562,17 +11656,17 @@ module.exports = reflectApply ? function isCallable(value) {
|
|
|
11562
11656
|
"use strict";
|
|
11563
11657
|
|
|
11564
11658
|
|
|
11565
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
11566
11659
|
var callBound = __webpack_require__(/*! call-bound */ "./node_modules/call-bound/index.js");
|
|
11660
|
+
|
|
11567
11661
|
var getDay = callBound('Date.prototype.getDay');
|
|
11568
11662
|
/** @type {import('.')} */
|
|
11569
11663
|
var tryDateObject = function tryDateGetDayCall(value) {
|
|
11570
|
-
|
|
11571
|
-
|
|
11572
|
-
|
|
11573
|
-
|
|
11574
|
-
|
|
11575
|
-
|
|
11664
|
+
try {
|
|
11665
|
+
getDay(value);
|
|
11666
|
+
return true;
|
|
11667
|
+
} catch (e) {
|
|
11668
|
+
return false;
|
|
11669
|
+
}
|
|
11576
11670
|
};
|
|
11577
11671
|
|
|
11578
11672
|
/** @type {(value: unknown) => string} */
|
|
@@ -11582,12 +11676,13 @@ var hasToStringTag = __webpack_require__(/*! has-tostringtag/shams */ "./node_mo
|
|
|
11582
11676
|
|
|
11583
11677
|
/** @type {import('.')} */
|
|
11584
11678
|
module.exports = function isDateObject(value) {
|
|
11585
|
-
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11679
|
+
if (typeof value !== 'object' || value === null) {
|
|
11680
|
+
return false;
|
|
11681
|
+
}
|
|
11682
|
+
return hasToStringTag ? tryDateObject(value) : toStr(value) === dateClass;
|
|
11589
11683
|
};
|
|
11590
11684
|
|
|
11685
|
+
|
|
11591
11686
|
/***/ }),
|
|
11592
11687
|
|
|
11593
11688
|
/***/ "./node_modules/is-regex/index.js":
|
|
@@ -11600,7 +11695,6 @@ module.exports = function isDateObject(value) {
|
|
|
11600
11695
|
"use strict";
|
|
11601
11696
|
|
|
11602
11697
|
|
|
11603
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
11604
11698
|
var callBound = __webpack_require__(/*! call-bound */ "./node_modules/call-bound/index.js");
|
|
11605
11699
|
var hasToStringTag = __webpack_require__(/*! has-tostringtag/shams */ "./node_modules/has-tostringtag/shams.js")();
|
|
11606
11700
|
var hasOwn = __webpack_require__(/*! hasown */ "./node_modules/hasown/index.js");
|
|
@@ -11608,61 +11702,68 @@ var gOPD = __webpack_require__(/*! gopd */ "./node_modules/gopd/index.js");
|
|
|
11608
11702
|
|
|
11609
11703
|
/** @type {import('.')} */
|
|
11610
11704
|
var fn;
|
|
11705
|
+
|
|
11611
11706
|
if (hasToStringTag) {
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
|
|
11620
|
-
|
|
11621
|
-
|
|
11622
|
-
|
|
11623
|
-
|
|
11624
|
-
|
|
11625
|
-
|
|
11626
|
-
|
|
11707
|
+
/** @type {(receiver: ThisParameterType<typeof RegExp.prototype.exec>, ...args: Parameters<typeof RegExp.prototype.exec>) => ReturnType<typeof RegExp.prototype.exec>} */
|
|
11708
|
+
var $exec = callBound('RegExp.prototype.exec');
|
|
11709
|
+
/** @type {object} */
|
|
11710
|
+
var isRegexMarker = {};
|
|
11711
|
+
|
|
11712
|
+
var throwRegexMarker = function () {
|
|
11713
|
+
throw isRegexMarker;
|
|
11714
|
+
};
|
|
11715
|
+
/** @type {{ toString(): never, valueOf(): never, [Symbol.toPrimitive]?(): never }} */
|
|
11716
|
+
var badStringifier = {
|
|
11717
|
+
toString: throwRegexMarker,
|
|
11718
|
+
valueOf: throwRegexMarker
|
|
11719
|
+
};
|
|
11720
|
+
|
|
11721
|
+
if (typeof Symbol.toPrimitive === 'symbol') {
|
|
11722
|
+
badStringifier[Symbol.toPrimitive] = throwRegexMarker;
|
|
11723
|
+
}
|
|
11724
|
+
|
|
11725
|
+
/** @type {import('.')} */
|
|
11726
|
+
// @ts-expect-error TS can't figure out that the $exec call always throws
|
|
11727
|
+
// eslint-disable-next-line consistent-return
|
|
11728
|
+
fn = function isRegex(value) {
|
|
11729
|
+
if (!value || typeof value !== 'object') {
|
|
11730
|
+
return false;
|
|
11731
|
+
}
|
|
11732
|
+
|
|
11733
|
+
// eslint-disable-next-line no-extra-parens
|
|
11734
|
+
var descriptor = /** @type {NonNullable<typeof gOPD>} */ (gOPD)(/** @type {{ lastIndex?: unknown }} */ (value), 'lastIndex');
|
|
11735
|
+
var hasLastIndexDataProperty = descriptor && hasOwn(descriptor, 'value');
|
|
11736
|
+
if (!hasLastIndexDataProperty) {
|
|
11737
|
+
return false;
|
|
11738
|
+
}
|
|
11739
|
+
|
|
11740
|
+
try {
|
|
11741
|
+
// eslint-disable-next-line no-extra-parens
|
|
11742
|
+
$exec(value, /** @type {string} */ (/** @type {unknown} */ (badStringifier)));
|
|
11743
|
+
} catch (e) {
|
|
11744
|
+
return e === isRegexMarker;
|
|
11745
|
+
}
|
|
11746
|
+
};
|
|
11747
|
+
} else {
|
|
11748
|
+
/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
|
|
11749
|
+
var $toString = callBound('Object.prototype.toString');
|
|
11750
|
+
/** @const @type {'[object RegExp]'} */
|
|
11751
|
+
var regexClass = '[object RegExp]';
|
|
11627
11752
|
|
|
11628
|
-
|
|
11629
|
-
|
|
11630
|
-
|
|
11631
|
-
|
|
11632
|
-
|
|
11633
|
-
|
|
11634
|
-
}
|
|
11753
|
+
/** @type {import('.')} */
|
|
11754
|
+
fn = function isRegex(value) {
|
|
11755
|
+
// In older browsers, typeof regex incorrectly returns 'function'
|
|
11756
|
+
if (!value || (typeof value !== 'object' && typeof value !== 'function')) {
|
|
11757
|
+
return false;
|
|
11758
|
+
}
|
|
11635
11759
|
|
|
11636
|
-
|
|
11637
|
-
|
|
11638
|
-
var hasLastIndexDataProperty = descriptor && hasOwn(descriptor, 'value');
|
|
11639
|
-
if (!hasLastIndexDataProperty) {
|
|
11640
|
-
return false;
|
|
11641
|
-
}
|
|
11642
|
-
try {
|
|
11643
|
-
// eslint-disable-next-line no-extra-parens
|
|
11644
|
-
$exec(value, /** @type {string} */ /** @type {unknown} */badStringifier);
|
|
11645
|
-
} catch (e) {
|
|
11646
|
-
return e === isRegexMarker;
|
|
11647
|
-
}
|
|
11648
|
-
};
|
|
11649
|
-
} else {
|
|
11650
|
-
/** @type {(receiver: ThisParameterType<typeof Object.prototype.toString>, ...args: Parameters<typeof Object.prototype.toString>) => ReturnType<typeof Object.prototype.toString>} */
|
|
11651
|
-
var $toString = callBound('Object.prototype.toString');
|
|
11652
|
-
/** @const @type {'[object RegExp]'} */
|
|
11653
|
-
var regexClass = '[object RegExp]';
|
|
11654
|
-
|
|
11655
|
-
/** @type {import('.')} */
|
|
11656
|
-
fn = function isRegex(value) {
|
|
11657
|
-
// In older browsers, typeof regex incorrectly returns 'function'
|
|
11658
|
-
if (!value || _typeof(value) !== 'object' && typeof value !== 'function') {
|
|
11659
|
-
return false;
|
|
11660
|
-
}
|
|
11661
|
-
return $toString(value) === regexClass;
|
|
11662
|
-
};
|
|
11760
|
+
return $toString(value) === regexClass;
|
|
11761
|
+
};
|
|
11663
11762
|
}
|
|
11763
|
+
|
|
11664
11764
|
module.exports = fn;
|
|
11665
11765
|
|
|
11766
|
+
|
|
11666
11767
|
/***/ }),
|
|
11667
11768
|
|
|
11668
11769
|
/***/ "./node_modules/is-symbol/index.js":
|
|
@@ -11675,45 +11776,46 @@ module.exports = fn;
|
|
|
11675
11776
|
"use strict";
|
|
11676
11777
|
|
|
11677
11778
|
|
|
11678
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
11679
11779
|
var callBound = __webpack_require__(/*! call-bound */ "./node_modules/call-bound/index.js");
|
|
11680
11780
|
var $toString = callBound('Object.prototype.toString');
|
|
11681
11781
|
var hasSymbols = __webpack_require__(/*! has-symbols */ "./node_modules/has-symbols/index.js")();
|
|
11682
11782
|
var safeRegexTest = __webpack_require__(/*! safe-regex-test */ "./node_modules/safe-regex-test/index.js");
|
|
11683
|
-
if (hasSymbols) {
|
|
11684
|
-
var $symToStr = callBound('Symbol.prototype.toString');
|
|
11685
|
-
var isSymString = safeRegexTest(/^Symbol\(.*\)$/);
|
|
11686
11783
|
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11698
|
-
|
|
11699
|
-
|
|
11700
|
-
|
|
11701
|
-
|
|
11702
|
-
|
|
11703
|
-
|
|
11704
|
-
|
|
11705
|
-
|
|
11706
|
-
|
|
11707
|
-
|
|
11708
|
-
|
|
11784
|
+
if (hasSymbols) {
|
|
11785
|
+
var $symToStr = callBound('Symbol.prototype.toString');
|
|
11786
|
+
var isSymString = safeRegexTest(/^Symbol\(.*\)$/);
|
|
11787
|
+
|
|
11788
|
+
/** @type {(value: object) => value is Symbol} */
|
|
11789
|
+
var isSymbolObject = function isRealSymbolObject(value) {
|
|
11790
|
+
if (typeof value.valueOf() !== 'symbol') {
|
|
11791
|
+
return false;
|
|
11792
|
+
}
|
|
11793
|
+
return isSymString($symToStr(value));
|
|
11794
|
+
};
|
|
11795
|
+
|
|
11796
|
+
/** @type {import('.')} */
|
|
11797
|
+
module.exports = function isSymbol(value) {
|
|
11798
|
+
if (typeof value === 'symbol') {
|
|
11799
|
+
return true;
|
|
11800
|
+
}
|
|
11801
|
+
if (!value || typeof value !== 'object' || $toString(value) !== '[object Symbol]') {
|
|
11802
|
+
return false;
|
|
11803
|
+
}
|
|
11804
|
+
try {
|
|
11805
|
+
return isSymbolObject(value);
|
|
11806
|
+
} catch (e) {
|
|
11807
|
+
return false;
|
|
11808
|
+
}
|
|
11809
|
+
};
|
|
11709
11810
|
} else {
|
|
11710
|
-
|
|
11711
|
-
|
|
11712
|
-
|
|
11713
|
-
|
|
11714
|
-
|
|
11811
|
+
/** @type {import('.')} */
|
|
11812
|
+
module.exports = function isSymbol(value) {
|
|
11813
|
+
// this environment does not support Symbols.
|
|
11814
|
+
return false && false;
|
|
11815
|
+
};
|
|
11715
11816
|
}
|
|
11716
11817
|
|
|
11818
|
+
|
|
11717
11819
|
/***/ }),
|
|
11718
11820
|
|
|
11719
11821
|
/***/ "./node_modules/math-intrinsics/abs.js":
|
|
@@ -11729,6 +11831,7 @@ if (hasSymbols) {
|
|
|
11729
11831
|
/** @type {import('./abs')} */
|
|
11730
11832
|
module.exports = Math.abs;
|
|
11731
11833
|
|
|
11834
|
+
|
|
11732
11835
|
/***/ }),
|
|
11733
11836
|
|
|
11734
11837
|
/***/ "./node_modules/math-intrinsics/floor.js":
|
|
@@ -11744,6 +11847,7 @@ module.exports = Math.abs;
|
|
|
11744
11847
|
/** @type {import('./floor')} */
|
|
11745
11848
|
module.exports = Math.floor;
|
|
11746
11849
|
|
|
11850
|
+
|
|
11747
11851
|
/***/ }),
|
|
11748
11852
|
|
|
11749
11853
|
/***/ "./node_modules/math-intrinsics/isNaN.js":
|
|
@@ -11758,9 +11862,10 @@ module.exports = Math.floor;
|
|
|
11758
11862
|
|
|
11759
11863
|
/** @type {import('./isNaN')} */
|
|
11760
11864
|
module.exports = Number.isNaN || function isNaN(a) {
|
|
11761
|
-
|
|
11865
|
+
return a !== a;
|
|
11762
11866
|
};
|
|
11763
11867
|
|
|
11868
|
+
|
|
11764
11869
|
/***/ }),
|
|
11765
11870
|
|
|
11766
11871
|
/***/ "./node_modules/math-intrinsics/max.js":
|
|
@@ -11776,6 +11881,7 @@ module.exports = Number.isNaN || function isNaN(a) {
|
|
|
11776
11881
|
/** @type {import('./max')} */
|
|
11777
11882
|
module.exports = Math.max;
|
|
11778
11883
|
|
|
11884
|
+
|
|
11779
11885
|
/***/ }),
|
|
11780
11886
|
|
|
11781
11887
|
/***/ "./node_modules/math-intrinsics/min.js":
|
|
@@ -11791,6 +11897,7 @@ module.exports = Math.max;
|
|
|
11791
11897
|
/** @type {import('./min')} */
|
|
11792
11898
|
module.exports = Math.min;
|
|
11793
11899
|
|
|
11900
|
+
|
|
11794
11901
|
/***/ }),
|
|
11795
11902
|
|
|
11796
11903
|
/***/ "./node_modules/math-intrinsics/pow.js":
|
|
@@ -11806,6 +11913,7 @@ module.exports = Math.min;
|
|
|
11806
11913
|
/** @type {import('./pow')} */
|
|
11807
11914
|
module.exports = Math.pow;
|
|
11808
11915
|
|
|
11916
|
+
|
|
11809
11917
|
/***/ }),
|
|
11810
11918
|
|
|
11811
11919
|
/***/ "./node_modules/math-intrinsics/round.js":
|
|
@@ -11821,6 +11929,7 @@ module.exports = Math.pow;
|
|
|
11821
11929
|
/** @type {import('./round')} */
|
|
11822
11930
|
module.exports = Math.round;
|
|
11823
11931
|
|
|
11932
|
+
|
|
11824
11933
|
/***/ }),
|
|
11825
11934
|
|
|
11826
11935
|
/***/ "./node_modules/math-intrinsics/sign.js":
|
|
@@ -11837,12 +11946,13 @@ var $isNaN = __webpack_require__(/*! ./isNaN */ "./node_modules/math-intrinsics/
|
|
|
11837
11946
|
|
|
11838
11947
|
/** @type {import('./sign')} */
|
|
11839
11948
|
module.exports = function sign(number) {
|
|
11840
|
-
|
|
11841
|
-
|
|
11842
|
-
|
|
11843
|
-
|
|
11949
|
+
if ($isNaN(number) || number === 0) {
|
|
11950
|
+
return number;
|
|
11951
|
+
}
|
|
11952
|
+
return number < 0 ? -1 : +1;
|
|
11844
11953
|
};
|
|
11845
11954
|
|
|
11955
|
+
|
|
11846
11956
|
/***/ }),
|
|
11847
11957
|
|
|
11848
11958
|
/***/ "./node_modules/object-inspect/index.js":
|
|
@@ -11852,8 +11962,7 @@ module.exports = function sign(number) {
|
|
|
11852
11962
|
/*! no static exports found */
|
|
11853
11963
|
/***/ (function(module, exports, __webpack_require__) {
|
|
11854
11964
|
|
|
11855
|
-
/* WEBPACK VAR INJECTION */(function(global) {
|
|
11856
|
-
var hasMap = typeof Map === 'function' && Map.prototype;
|
|
11965
|
+
/* WEBPACK VAR INJECTION */(function(global) {var hasMap = typeof Map === 'function' && Map.prototype;
|
|
11857
11966
|
var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
|
|
11858
11967
|
var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === 'function' ? mapSizeDescriptor.get : null;
|
|
11859
11968
|
var mapForEach = hasMap && Map.prototype.forEach;
|
|
@@ -11882,507 +11991,522 @@ var $arrSlice = Array.prototype.slice;
|
|
|
11882
11991
|
var $floor = Math.floor;
|
|
11883
11992
|
var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
|
|
11884
11993
|
var gOPS = Object.getOwnPropertySymbols;
|
|
11885
|
-
var symToString = typeof Symbol === 'function' &&
|
|
11886
|
-
var hasShammedSymbols = typeof Symbol === 'function' &&
|
|
11994
|
+
var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
|
|
11995
|
+
var hasShammedSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'object';
|
|
11887
11996
|
// ie, `has-tostringtag/shams
|
|
11888
|
-
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (
|
|
11997
|
+
var toStringTag = typeof Symbol === 'function' && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? 'object' : 'symbol')
|
|
11998
|
+
? Symbol.toStringTag
|
|
11999
|
+
: null;
|
|
11889
12000
|
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
11890
|
-
|
|
11891
|
-
|
|
11892
|
-
|
|
11893
|
-
|
|
12001
|
+
|
|
12002
|
+
var gPO = (typeof Reflect === 'function' ? Reflect.getPrototypeOf : Object.getPrototypeOf) || (
|
|
12003
|
+
[].__proto__ === Array.prototype // eslint-disable-line no-proto
|
|
12004
|
+
? function (O) {
|
|
12005
|
+
return O.__proto__; // eslint-disable-line no-proto
|
|
12006
|
+
}
|
|
12007
|
+
: null
|
|
12008
|
+
);
|
|
12009
|
+
|
|
11894
12010
|
function addNumericSeparator(num, str) {
|
|
11895
|
-
|
|
11896
|
-
|
|
11897
|
-
|
|
11898
|
-
|
|
11899
|
-
|
|
11900
|
-
|
|
11901
|
-
|
|
11902
|
-
|
|
11903
|
-
|
|
11904
|
-
|
|
12011
|
+
if (
|
|
12012
|
+
num === Infinity
|
|
12013
|
+
|| num === -Infinity
|
|
12014
|
+
|| num !== num
|
|
12015
|
+
|| (num && num > -1000 && num < 1000)
|
|
12016
|
+
|| $test.call(/e/, str)
|
|
12017
|
+
) {
|
|
12018
|
+
return str;
|
|
12019
|
+
}
|
|
12020
|
+
var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
|
|
12021
|
+
if (typeof num === 'number') {
|
|
12022
|
+
var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
|
|
12023
|
+
if (int !== num) {
|
|
12024
|
+
var intStr = String(int);
|
|
12025
|
+
var dec = $slice.call(str, intStr.length + 1);
|
|
12026
|
+
return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
|
|
12027
|
+
}
|
|
11905
12028
|
}
|
|
11906
|
-
|
|
11907
|
-
return $replace.call(str, sepRegex, '$&_');
|
|
12029
|
+
return $replace.call(str, sepRegex, '$&_');
|
|
11908
12030
|
}
|
|
12031
|
+
|
|
11909
12032
|
var utilInspect = __webpack_require__(/*! ./util.inspect */ 0);
|
|
11910
12033
|
var inspectCustom = utilInspect.custom;
|
|
11911
12034
|
var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
|
|
12035
|
+
|
|
11912
12036
|
var quotes = {
|
|
11913
|
-
|
|
11914
|
-
|
|
11915
|
-
|
|
12037
|
+
__proto__: null,
|
|
12038
|
+
'double': '"',
|
|
12039
|
+
single: "'"
|
|
11916
12040
|
};
|
|
11917
12041
|
var quoteREs = {
|
|
11918
|
-
|
|
11919
|
-
|
|
11920
|
-
|
|
12042
|
+
__proto__: null,
|
|
12043
|
+
'double': /(["\\])/g,
|
|
12044
|
+
single: /(['\\])/g
|
|
11921
12045
|
};
|
|
12046
|
+
|
|
11922
12047
|
module.exports = function inspect_(obj, options, depth, seen) {
|
|
11923
|
-
|
|
11924
|
-
|
|
11925
|
-
|
|
11926
|
-
|
|
11927
|
-
if (has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
|
|
11928
|
-
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
11929
|
-
}
|
|
11930
|
-
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
11931
|
-
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
11932
|
-
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
11933
|
-
}
|
|
11934
|
-
if (has(opts, 'indent') && opts.indent !== null && opts.indent !== '\t' && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
|
|
11935
|
-
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
11936
|
-
}
|
|
11937
|
-
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
11938
|
-
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
11939
|
-
}
|
|
11940
|
-
var numericSeparator = opts.numericSeparator;
|
|
11941
|
-
if (typeof obj === 'undefined') {
|
|
11942
|
-
return 'undefined';
|
|
11943
|
-
}
|
|
11944
|
-
if (obj === null) {
|
|
11945
|
-
return 'null';
|
|
11946
|
-
}
|
|
11947
|
-
if (typeof obj === 'boolean') {
|
|
11948
|
-
return obj ? 'true' : 'false';
|
|
11949
|
-
}
|
|
11950
|
-
if (typeof obj === 'string') {
|
|
11951
|
-
return inspectString(obj, opts);
|
|
11952
|
-
}
|
|
11953
|
-
if (typeof obj === 'number') {
|
|
11954
|
-
if (obj === 0) {
|
|
11955
|
-
return Infinity / obj > 0 ? '0' : '-0';
|
|
12048
|
+
var opts = options || {};
|
|
12049
|
+
|
|
12050
|
+
if (has(opts, 'quoteStyle') && !has(quotes, opts.quoteStyle)) {
|
|
12051
|
+
throw new TypeError('option "quoteStyle" must be "single" or "double"');
|
|
11956
12052
|
}
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
11965
|
-
if (typeof depth === 'undefined') {
|
|
11966
|
-
depth = 0;
|
|
11967
|
-
}
|
|
11968
|
-
if (depth >= maxDepth && maxDepth > 0 && _typeof(obj) === 'object') {
|
|
11969
|
-
return isArray(obj) ? '[Array]' : '[Object]';
|
|
11970
|
-
}
|
|
11971
|
-
var indent = getIndent(opts, depth);
|
|
11972
|
-
if (typeof seen === 'undefined') {
|
|
11973
|
-
seen = [];
|
|
11974
|
-
} else if (indexOf(seen, obj) >= 0) {
|
|
11975
|
-
return '[Circular]';
|
|
11976
|
-
}
|
|
11977
|
-
function inspect(value, from, noIndent) {
|
|
11978
|
-
if (from) {
|
|
11979
|
-
seen = $arrSlice.call(seen);
|
|
11980
|
-
seen.push(from);
|
|
12053
|
+
if (
|
|
12054
|
+
has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number'
|
|
12055
|
+
? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity
|
|
12056
|
+
: opts.maxStringLength !== null
|
|
12057
|
+
)
|
|
12058
|
+
) {
|
|
12059
|
+
throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
|
|
11981
12060
|
}
|
|
11982
|
-
|
|
11983
|
-
|
|
11984
|
-
|
|
11985
|
-
};
|
|
11986
|
-
if (has(opts, 'quoteStyle')) {
|
|
11987
|
-
newOpts.quoteStyle = opts.quoteStyle;
|
|
11988
|
-
}
|
|
11989
|
-
return inspect_(value, newOpts, depth + 1, seen);
|
|
12061
|
+
var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
|
|
12062
|
+
if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
|
|
12063
|
+
throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
|
|
11990
12064
|
}
|
|
11991
|
-
|
|
11992
|
-
|
|
11993
|
-
|
|
11994
|
-
|
|
11995
|
-
|
|
11996
|
-
|
|
11997
|
-
|
|
11998
|
-
|
|
11999
|
-
if (isSymbol(obj)) {
|
|
12000
|
-
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
12001
|
-
return _typeof(obj) === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
12002
|
-
}
|
|
12003
|
-
if (isElement(obj)) {
|
|
12004
|
-
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
|
12005
|
-
var attrs = obj.attributes || [];
|
|
12006
|
-
for (var i = 0; i < attrs.length; i++) {
|
|
12007
|
-
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
12065
|
+
|
|
12066
|
+
if (
|
|
12067
|
+
has(opts, 'indent')
|
|
12068
|
+
&& opts.indent !== null
|
|
12069
|
+
&& opts.indent !== '\t'
|
|
12070
|
+
&& !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)
|
|
12071
|
+
) {
|
|
12072
|
+
throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
|
|
12008
12073
|
}
|
|
12009
|
-
|
|
12010
|
-
|
|
12011
|
-
s += '...';
|
|
12074
|
+
if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
|
|
12075
|
+
throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
|
|
12012
12076
|
}
|
|
12013
|
-
|
|
12014
|
-
|
|
12015
|
-
|
|
12016
|
-
|
|
12017
|
-
if (obj.length === 0) {
|
|
12018
|
-
return '[]';
|
|
12077
|
+
var numericSeparator = opts.numericSeparator;
|
|
12078
|
+
|
|
12079
|
+
if (typeof obj === 'undefined') {
|
|
12080
|
+
return 'undefined';
|
|
12019
12081
|
}
|
|
12020
|
-
|
|
12021
|
-
|
|
12022
|
-
return '[' + indentedJoin(xs, indent) + ']';
|
|
12082
|
+
if (obj === null) {
|
|
12083
|
+
return 'null';
|
|
12023
12084
|
}
|
|
12024
|
-
|
|
12025
|
-
|
|
12026
|
-
if (isError(obj)) {
|
|
12027
|
-
var parts = arrObjKeys(obj, inspect);
|
|
12028
|
-
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
12029
|
-
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
12085
|
+
if (typeof obj === 'boolean') {
|
|
12086
|
+
return obj ? 'true' : 'false';
|
|
12030
12087
|
}
|
|
12031
|
-
|
|
12032
|
-
|
|
12088
|
+
|
|
12089
|
+
if (typeof obj === 'string') {
|
|
12090
|
+
return inspectString(obj, opts);
|
|
12033
12091
|
}
|
|
12034
|
-
|
|
12035
|
-
|
|
12036
|
-
|
|
12037
|
-
|
|
12038
|
-
|
|
12039
|
-
|
|
12040
|
-
});
|
|
12041
|
-
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
12042
|
-
return obj.inspect();
|
|
12092
|
+
if (typeof obj === 'number') {
|
|
12093
|
+
if (obj === 0) {
|
|
12094
|
+
return Infinity / obj > 0 ? '0' : '-0';
|
|
12095
|
+
}
|
|
12096
|
+
var str = String(obj);
|
|
12097
|
+
return numericSeparator ? addNumericSeparator(obj, str) : str;
|
|
12043
12098
|
}
|
|
12044
|
-
|
|
12045
|
-
|
|
12046
|
-
|
|
12047
|
-
if (mapForEach) {
|
|
12048
|
-
mapForEach.call(obj, function (value, key) {
|
|
12049
|
-
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
12050
|
-
});
|
|
12099
|
+
if (typeof obj === 'bigint') {
|
|
12100
|
+
var bigIntStr = String(obj) + 'n';
|
|
12101
|
+
return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
|
|
12051
12102
|
}
|
|
12052
|
-
|
|
12053
|
-
|
|
12054
|
-
|
|
12055
|
-
|
|
12056
|
-
|
|
12057
|
-
setForEach.call(obj, function (value) {
|
|
12058
|
-
setParts.push(inspect(value, obj));
|
|
12059
|
-
});
|
|
12103
|
+
|
|
12104
|
+
var maxDepth = typeof opts.depth === 'undefined' ? 5 : opts.depth;
|
|
12105
|
+
if (typeof depth === 'undefined') { depth = 0; }
|
|
12106
|
+
if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
|
|
12107
|
+
return isArray(obj) ? '[Array]' : '[Object]';
|
|
12060
12108
|
}
|
|
12061
|
-
|
|
12062
|
-
|
|
12063
|
-
|
|
12064
|
-
|
|
12065
|
-
|
|
12066
|
-
|
|
12067
|
-
|
|
12068
|
-
}
|
|
12069
|
-
if (isWeakRef(obj)) {
|
|
12070
|
-
return weakCollectionOf('WeakRef');
|
|
12071
|
-
}
|
|
12072
|
-
if (isNumber(obj)) {
|
|
12073
|
-
return markBoxed(inspect(Number(obj)));
|
|
12074
|
-
}
|
|
12075
|
-
if (isBigInt(obj)) {
|
|
12076
|
-
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
12077
|
-
}
|
|
12078
|
-
if (isBoolean(obj)) {
|
|
12079
|
-
return markBoxed(booleanValueOf.call(obj));
|
|
12080
|
-
}
|
|
12081
|
-
if (isString(obj)) {
|
|
12082
|
-
return markBoxed(inspect(String(obj)));
|
|
12083
|
-
}
|
|
12084
|
-
// note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
|
|
12085
|
-
/* eslint-env browser */
|
|
12086
|
-
if (typeof window !== 'undefined' && obj === window) {
|
|
12087
|
-
return '{ [object Window] }';
|
|
12088
|
-
}
|
|
12089
|
-
if (typeof globalThis !== 'undefined' && obj === globalThis || typeof global !== 'undefined' && obj === global) {
|
|
12090
|
-
return '{ [object globalThis] }';
|
|
12091
|
-
}
|
|
12092
|
-
if (!isDate(obj) && !isRegExp(obj)) {
|
|
12093
|
-
var ys = arrObjKeys(obj, inspect);
|
|
12094
|
-
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
12095
|
-
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
12096
|
-
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
12097
|
-
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
12098
|
-
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
12099
|
-
if (ys.length === 0) {
|
|
12100
|
-
return tag + '{}';
|
|
12109
|
+
|
|
12110
|
+
var indent = getIndent(opts, depth);
|
|
12111
|
+
|
|
12112
|
+
if (typeof seen === 'undefined') {
|
|
12113
|
+
seen = [];
|
|
12114
|
+
} else if (indexOf(seen, obj) >= 0) {
|
|
12115
|
+
return '[Circular]';
|
|
12101
12116
|
}
|
|
12102
|
-
|
|
12103
|
-
|
|
12117
|
+
|
|
12118
|
+
function inspect(value, from, noIndent) {
|
|
12119
|
+
if (from) {
|
|
12120
|
+
seen = $arrSlice.call(seen);
|
|
12121
|
+
seen.push(from);
|
|
12122
|
+
}
|
|
12123
|
+
if (noIndent) {
|
|
12124
|
+
var newOpts = {
|
|
12125
|
+
depth: opts.depth
|
|
12126
|
+
};
|
|
12127
|
+
if (has(opts, 'quoteStyle')) {
|
|
12128
|
+
newOpts.quoteStyle = opts.quoteStyle;
|
|
12129
|
+
}
|
|
12130
|
+
return inspect_(value, newOpts, depth + 1, seen);
|
|
12131
|
+
}
|
|
12132
|
+
return inspect_(value, opts, depth + 1, seen);
|
|
12104
12133
|
}
|
|
12105
|
-
|
|
12106
|
-
|
|
12107
|
-
|
|
12134
|
+
|
|
12135
|
+
if (typeof obj === 'function' && !isRegExp(obj)) { // in older engines, regexes are callable
|
|
12136
|
+
var name = nameOf(obj);
|
|
12137
|
+
var keys = arrObjKeys(obj, inspect);
|
|
12138
|
+
return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
|
|
12139
|
+
}
|
|
12140
|
+
if (isSymbol(obj)) {
|
|
12141
|
+
var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
|
|
12142
|
+
return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
|
|
12143
|
+
}
|
|
12144
|
+
if (isElement(obj)) {
|
|
12145
|
+
var s = '<' + $toLowerCase.call(String(obj.nodeName));
|
|
12146
|
+
var attrs = obj.attributes || [];
|
|
12147
|
+
for (var i = 0; i < attrs.length; i++) {
|
|
12148
|
+
s += ' ' + attrs[i].name + '=' + wrapQuotes(quote(attrs[i].value), 'double', opts);
|
|
12149
|
+
}
|
|
12150
|
+
s += '>';
|
|
12151
|
+
if (obj.childNodes && obj.childNodes.length) { s += '...'; }
|
|
12152
|
+
s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
|
|
12153
|
+
return s;
|
|
12154
|
+
}
|
|
12155
|
+
if (isArray(obj)) {
|
|
12156
|
+
if (obj.length === 0) { return '[]'; }
|
|
12157
|
+
var xs = arrObjKeys(obj, inspect);
|
|
12158
|
+
if (indent && !singleLineValues(xs)) {
|
|
12159
|
+
return '[' + indentedJoin(xs, indent) + ']';
|
|
12160
|
+
}
|
|
12161
|
+
return '[ ' + $join.call(xs, ', ') + ' ]';
|
|
12162
|
+
}
|
|
12163
|
+
if (isError(obj)) {
|
|
12164
|
+
var parts = arrObjKeys(obj, inspect);
|
|
12165
|
+
if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
|
|
12166
|
+
return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
|
|
12167
|
+
}
|
|
12168
|
+
if (parts.length === 0) { return '[' + String(obj) + ']'; }
|
|
12169
|
+
return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
|
|
12170
|
+
}
|
|
12171
|
+
if (typeof obj === 'object' && customInspect) {
|
|
12172
|
+
if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
|
|
12173
|
+
return utilInspect(obj, { depth: maxDepth - depth });
|
|
12174
|
+
} else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
|
|
12175
|
+
return obj.inspect();
|
|
12176
|
+
}
|
|
12177
|
+
}
|
|
12178
|
+
if (isMap(obj)) {
|
|
12179
|
+
var mapParts = [];
|
|
12180
|
+
if (mapForEach) {
|
|
12181
|
+
mapForEach.call(obj, function (value, key) {
|
|
12182
|
+
mapParts.push(inspect(key, obj, true) + ' => ' + inspect(value, obj));
|
|
12183
|
+
});
|
|
12184
|
+
}
|
|
12185
|
+
return collectionOf('Map', mapSize.call(obj), mapParts, indent);
|
|
12186
|
+
}
|
|
12187
|
+
if (isSet(obj)) {
|
|
12188
|
+
var setParts = [];
|
|
12189
|
+
if (setForEach) {
|
|
12190
|
+
setForEach.call(obj, function (value) {
|
|
12191
|
+
setParts.push(inspect(value, obj));
|
|
12192
|
+
});
|
|
12193
|
+
}
|
|
12194
|
+
return collectionOf('Set', setSize.call(obj), setParts, indent);
|
|
12195
|
+
}
|
|
12196
|
+
if (isWeakMap(obj)) {
|
|
12197
|
+
return weakCollectionOf('WeakMap');
|
|
12198
|
+
}
|
|
12199
|
+
if (isWeakSet(obj)) {
|
|
12200
|
+
return weakCollectionOf('WeakSet');
|
|
12201
|
+
}
|
|
12202
|
+
if (isWeakRef(obj)) {
|
|
12203
|
+
return weakCollectionOf('WeakRef');
|
|
12204
|
+
}
|
|
12205
|
+
if (isNumber(obj)) {
|
|
12206
|
+
return markBoxed(inspect(Number(obj)));
|
|
12207
|
+
}
|
|
12208
|
+
if (isBigInt(obj)) {
|
|
12209
|
+
return markBoxed(inspect(bigIntValueOf.call(obj)));
|
|
12210
|
+
}
|
|
12211
|
+
if (isBoolean(obj)) {
|
|
12212
|
+
return markBoxed(booleanValueOf.call(obj));
|
|
12213
|
+
}
|
|
12214
|
+
if (isString(obj)) {
|
|
12215
|
+
return markBoxed(inspect(String(obj)));
|
|
12216
|
+
}
|
|
12217
|
+
// note: in IE 8, sometimes `global !== window` but both are the prototypes of each other
|
|
12218
|
+
/* eslint-env browser */
|
|
12219
|
+
if (typeof window !== 'undefined' && obj === window) {
|
|
12220
|
+
return '{ [object Window] }';
|
|
12221
|
+
}
|
|
12222
|
+
if (
|
|
12223
|
+
(typeof globalThis !== 'undefined' && obj === globalThis)
|
|
12224
|
+
|| (typeof global !== 'undefined' && obj === global)
|
|
12225
|
+
) {
|
|
12226
|
+
return '{ [object globalThis] }';
|
|
12227
|
+
}
|
|
12228
|
+
if (!isDate(obj) && !isRegExp(obj)) {
|
|
12229
|
+
var ys = arrObjKeys(obj, inspect);
|
|
12230
|
+
var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
|
|
12231
|
+
var protoTag = obj instanceof Object ? '' : 'null prototype';
|
|
12232
|
+
var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
|
|
12233
|
+
var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
|
|
12234
|
+
var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
|
|
12235
|
+
if (ys.length === 0) { return tag + '{}'; }
|
|
12236
|
+
if (indent) {
|
|
12237
|
+
return tag + '{' + indentedJoin(ys, indent) + '}';
|
|
12238
|
+
}
|
|
12239
|
+
return tag + '{ ' + $join.call(ys, ', ') + ' }';
|
|
12240
|
+
}
|
|
12241
|
+
return String(obj);
|
|
12108
12242
|
};
|
|
12243
|
+
|
|
12109
12244
|
function wrapQuotes(s, defaultStyle, opts) {
|
|
12110
|
-
|
|
12111
|
-
|
|
12112
|
-
|
|
12245
|
+
var style = opts.quoteStyle || defaultStyle;
|
|
12246
|
+
var quoteChar = quotes[style];
|
|
12247
|
+
return quoteChar + s + quoteChar;
|
|
12113
12248
|
}
|
|
12249
|
+
|
|
12114
12250
|
function quote(s) {
|
|
12115
|
-
|
|
12251
|
+
return $replace.call(String(s), /"/g, '"');
|
|
12116
12252
|
}
|
|
12253
|
+
|
|
12117
12254
|
function canTrustToString(obj) {
|
|
12118
|
-
|
|
12119
|
-
}
|
|
12120
|
-
function isArray(obj) {
|
|
12121
|
-
return toStr(obj) === '[object Array]' && canTrustToString(obj);
|
|
12122
|
-
}
|
|
12123
|
-
function isDate(obj) {
|
|
12124
|
-
return toStr(obj) === '[object Date]' && canTrustToString(obj);
|
|
12125
|
-
}
|
|
12126
|
-
function isRegExp(obj) {
|
|
12127
|
-
return toStr(obj) === '[object RegExp]' && canTrustToString(obj);
|
|
12128
|
-
}
|
|
12129
|
-
function isError(obj) {
|
|
12130
|
-
return toStr(obj) === '[object Error]' && canTrustToString(obj);
|
|
12131
|
-
}
|
|
12132
|
-
function isString(obj) {
|
|
12133
|
-
return toStr(obj) === '[object String]' && canTrustToString(obj);
|
|
12134
|
-
}
|
|
12135
|
-
function isNumber(obj) {
|
|
12136
|
-
return toStr(obj) === '[object Number]' && canTrustToString(obj);
|
|
12137
|
-
}
|
|
12138
|
-
function isBoolean(obj) {
|
|
12139
|
-
return toStr(obj) === '[object Boolean]' && canTrustToString(obj);
|
|
12255
|
+
return !toStringTag || !(typeof obj === 'object' && (toStringTag in obj || typeof obj[toStringTag] !== 'undefined'));
|
|
12140
12256
|
}
|
|
12257
|
+
function isArray(obj) { return toStr(obj) === '[object Array]' && canTrustToString(obj); }
|
|
12258
|
+
function isDate(obj) { return toStr(obj) === '[object Date]' && canTrustToString(obj); }
|
|
12259
|
+
function isRegExp(obj) { return toStr(obj) === '[object RegExp]' && canTrustToString(obj); }
|
|
12260
|
+
function isError(obj) { return toStr(obj) === '[object Error]' && canTrustToString(obj); }
|
|
12261
|
+
function isString(obj) { return toStr(obj) === '[object String]' && canTrustToString(obj); }
|
|
12262
|
+
function isNumber(obj) { return toStr(obj) === '[object Number]' && canTrustToString(obj); }
|
|
12263
|
+
function isBoolean(obj) { return toStr(obj) === '[object Boolean]' && canTrustToString(obj); }
|
|
12141
12264
|
|
|
12142
12265
|
// Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
|
|
12143
12266
|
function isSymbol(obj) {
|
|
12144
|
-
|
|
12145
|
-
|
|
12146
|
-
|
|
12147
|
-
|
|
12148
|
-
|
|
12149
|
-
|
|
12150
|
-
|
|
12267
|
+
if (hasShammedSymbols) {
|
|
12268
|
+
return obj && typeof obj === 'object' && obj instanceof Symbol;
|
|
12269
|
+
}
|
|
12270
|
+
if (typeof obj === 'symbol') {
|
|
12271
|
+
return true;
|
|
12272
|
+
}
|
|
12273
|
+
if (!obj || typeof obj !== 'object' || !symToString) {
|
|
12274
|
+
return false;
|
|
12275
|
+
}
|
|
12276
|
+
try {
|
|
12277
|
+
symToString.call(obj);
|
|
12278
|
+
return true;
|
|
12279
|
+
} catch (e) {}
|
|
12151
12280
|
return false;
|
|
12152
|
-
}
|
|
12153
|
-
try {
|
|
12154
|
-
symToString.call(obj);
|
|
12155
|
-
return true;
|
|
12156
|
-
} catch (e) {}
|
|
12157
|
-
return false;
|
|
12158
12281
|
}
|
|
12282
|
+
|
|
12159
12283
|
function isBigInt(obj) {
|
|
12160
|
-
|
|
12284
|
+
if (!obj || typeof obj !== 'object' || !bigIntValueOf) {
|
|
12285
|
+
return false;
|
|
12286
|
+
}
|
|
12287
|
+
try {
|
|
12288
|
+
bigIntValueOf.call(obj);
|
|
12289
|
+
return true;
|
|
12290
|
+
} catch (e) {}
|
|
12161
12291
|
return false;
|
|
12162
|
-
}
|
|
12163
|
-
try {
|
|
12164
|
-
bigIntValueOf.call(obj);
|
|
12165
|
-
return true;
|
|
12166
|
-
} catch (e) {}
|
|
12167
|
-
return false;
|
|
12168
12292
|
}
|
|
12169
|
-
|
|
12170
|
-
|
|
12171
|
-
};
|
|
12293
|
+
|
|
12294
|
+
var hasOwn = Object.prototype.hasOwnProperty || function (key) { return key in this; };
|
|
12172
12295
|
function has(obj, key) {
|
|
12173
|
-
|
|
12296
|
+
return hasOwn.call(obj, key);
|
|
12174
12297
|
}
|
|
12298
|
+
|
|
12175
12299
|
function toStr(obj) {
|
|
12176
|
-
|
|
12300
|
+
return objectToString.call(obj);
|
|
12177
12301
|
}
|
|
12302
|
+
|
|
12178
12303
|
function nameOf(f) {
|
|
12179
|
-
|
|
12180
|
-
|
|
12181
|
-
|
|
12182
|
-
|
|
12183
|
-
if (m) {
|
|
12184
|
-
return m[1];
|
|
12185
|
-
}
|
|
12186
|
-
return null;
|
|
12304
|
+
if (f.name) { return f.name; }
|
|
12305
|
+
var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
|
|
12306
|
+
if (m) { return m[1]; }
|
|
12307
|
+
return null;
|
|
12187
12308
|
}
|
|
12309
|
+
|
|
12188
12310
|
function indexOf(xs, x) {
|
|
12189
|
-
|
|
12190
|
-
|
|
12191
|
-
|
|
12192
|
-
for (var i = 0, l = xs.length; i < l; i++) {
|
|
12193
|
-
if (xs[i] === x) {
|
|
12194
|
-
return i;
|
|
12311
|
+
if (xs.indexOf) { return xs.indexOf(x); }
|
|
12312
|
+
for (var i = 0, l = xs.length; i < l; i++) {
|
|
12313
|
+
if (xs[i] === x) { return i; }
|
|
12195
12314
|
}
|
|
12196
|
-
|
|
12197
|
-
return -1;
|
|
12315
|
+
return -1;
|
|
12198
12316
|
}
|
|
12317
|
+
|
|
12199
12318
|
function isMap(x) {
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
}
|
|
12203
|
-
try {
|
|
12204
|
-
mapSize.call(x);
|
|
12205
|
-
try {
|
|
12206
|
-
setSize.call(x);
|
|
12207
|
-
} catch (s) {
|
|
12208
|
-
return true;
|
|
12319
|
+
if (!mapSize || !x || typeof x !== 'object') {
|
|
12320
|
+
return false;
|
|
12209
12321
|
}
|
|
12210
|
-
|
|
12211
|
-
|
|
12212
|
-
|
|
12322
|
+
try {
|
|
12323
|
+
mapSize.call(x);
|
|
12324
|
+
try {
|
|
12325
|
+
setSize.call(x);
|
|
12326
|
+
} catch (s) {
|
|
12327
|
+
return true;
|
|
12328
|
+
}
|
|
12329
|
+
return x instanceof Map; // core-js workaround, pre-v2.5.0
|
|
12330
|
+
} catch (e) {}
|
|
12331
|
+
return false;
|
|
12213
12332
|
}
|
|
12333
|
+
|
|
12214
12334
|
function isWeakMap(x) {
|
|
12215
|
-
|
|
12216
|
-
|
|
12217
|
-
}
|
|
12218
|
-
try {
|
|
12219
|
-
weakMapHas.call(x, weakMapHas);
|
|
12220
|
-
try {
|
|
12221
|
-
weakSetHas.call(x, weakSetHas);
|
|
12222
|
-
} catch (s) {
|
|
12223
|
-
return true;
|
|
12335
|
+
if (!weakMapHas || !x || typeof x !== 'object') {
|
|
12336
|
+
return false;
|
|
12224
12337
|
}
|
|
12225
|
-
|
|
12226
|
-
|
|
12227
|
-
|
|
12338
|
+
try {
|
|
12339
|
+
weakMapHas.call(x, weakMapHas);
|
|
12340
|
+
try {
|
|
12341
|
+
weakSetHas.call(x, weakSetHas);
|
|
12342
|
+
} catch (s) {
|
|
12343
|
+
return true;
|
|
12344
|
+
}
|
|
12345
|
+
return x instanceof WeakMap; // core-js workaround, pre-v2.5.0
|
|
12346
|
+
} catch (e) {}
|
|
12347
|
+
return false;
|
|
12228
12348
|
}
|
|
12349
|
+
|
|
12229
12350
|
function isWeakRef(x) {
|
|
12230
|
-
|
|
12351
|
+
if (!weakRefDeref || !x || typeof x !== 'object') {
|
|
12352
|
+
return false;
|
|
12353
|
+
}
|
|
12354
|
+
try {
|
|
12355
|
+
weakRefDeref.call(x);
|
|
12356
|
+
return true;
|
|
12357
|
+
} catch (e) {}
|
|
12231
12358
|
return false;
|
|
12232
|
-
}
|
|
12233
|
-
try {
|
|
12234
|
-
weakRefDeref.call(x);
|
|
12235
|
-
return true;
|
|
12236
|
-
} catch (e) {}
|
|
12237
|
-
return false;
|
|
12238
12359
|
}
|
|
12360
|
+
|
|
12239
12361
|
function isSet(x) {
|
|
12240
|
-
|
|
12241
|
-
|
|
12242
|
-
}
|
|
12243
|
-
try {
|
|
12244
|
-
setSize.call(x);
|
|
12245
|
-
try {
|
|
12246
|
-
mapSize.call(x);
|
|
12247
|
-
} catch (m) {
|
|
12248
|
-
return true;
|
|
12362
|
+
if (!setSize || !x || typeof x !== 'object') {
|
|
12363
|
+
return false;
|
|
12249
12364
|
}
|
|
12250
|
-
|
|
12251
|
-
|
|
12252
|
-
|
|
12365
|
+
try {
|
|
12366
|
+
setSize.call(x);
|
|
12367
|
+
try {
|
|
12368
|
+
mapSize.call(x);
|
|
12369
|
+
} catch (m) {
|
|
12370
|
+
return true;
|
|
12371
|
+
}
|
|
12372
|
+
return x instanceof Set; // core-js workaround, pre-v2.5.0
|
|
12373
|
+
} catch (e) {}
|
|
12374
|
+
return false;
|
|
12253
12375
|
}
|
|
12376
|
+
|
|
12254
12377
|
function isWeakSet(x) {
|
|
12255
|
-
|
|
12256
|
-
|
|
12257
|
-
}
|
|
12258
|
-
try {
|
|
12259
|
-
weakSetHas.call(x, weakSetHas);
|
|
12260
|
-
try {
|
|
12261
|
-
weakMapHas.call(x, weakMapHas);
|
|
12262
|
-
} catch (s) {
|
|
12263
|
-
return true;
|
|
12378
|
+
if (!weakSetHas || !x || typeof x !== 'object') {
|
|
12379
|
+
return false;
|
|
12264
12380
|
}
|
|
12265
|
-
|
|
12266
|
-
|
|
12267
|
-
|
|
12381
|
+
try {
|
|
12382
|
+
weakSetHas.call(x, weakSetHas);
|
|
12383
|
+
try {
|
|
12384
|
+
weakMapHas.call(x, weakMapHas);
|
|
12385
|
+
} catch (s) {
|
|
12386
|
+
return true;
|
|
12387
|
+
}
|
|
12388
|
+
return x instanceof WeakSet; // core-js workaround, pre-v2.5.0
|
|
12389
|
+
} catch (e) {}
|
|
12390
|
+
return false;
|
|
12268
12391
|
}
|
|
12392
|
+
|
|
12269
12393
|
function isElement(x) {
|
|
12270
|
-
|
|
12271
|
-
|
|
12272
|
-
|
|
12273
|
-
|
|
12274
|
-
return
|
|
12275
|
-
}
|
|
12276
|
-
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
12394
|
+
if (!x || typeof x !== 'object') { return false; }
|
|
12395
|
+
if (typeof HTMLElement !== 'undefined' && x instanceof HTMLElement) {
|
|
12396
|
+
return true;
|
|
12397
|
+
}
|
|
12398
|
+
return typeof x.nodeName === 'string' && typeof x.getAttribute === 'function';
|
|
12277
12399
|
}
|
|
12400
|
+
|
|
12278
12401
|
function inspectString(str, opts) {
|
|
12279
|
-
|
|
12280
|
-
|
|
12281
|
-
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
|
|
12286
|
-
|
|
12287
|
-
|
|
12288
|
-
|
|
12402
|
+
if (str.length > opts.maxStringLength) {
|
|
12403
|
+
var remaining = str.length - opts.maxStringLength;
|
|
12404
|
+
var trailer = '... ' + remaining + ' more character' + (remaining > 1 ? 's' : '');
|
|
12405
|
+
return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
|
|
12406
|
+
}
|
|
12407
|
+
var quoteRE = quoteREs[opts.quoteStyle || 'single'];
|
|
12408
|
+
quoteRE.lastIndex = 0;
|
|
12409
|
+
// eslint-disable-next-line no-control-regex
|
|
12410
|
+
var s = $replace.call($replace.call(str, quoteRE, '\\$1'), /[\x00-\x1f]/g, lowbyte);
|
|
12411
|
+
return wrapQuotes(s, 'single', opts);
|
|
12289
12412
|
}
|
|
12413
|
+
|
|
12290
12414
|
function lowbyte(c) {
|
|
12291
|
-
|
|
12292
|
-
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
|
|
12296
|
-
|
|
12297
|
-
|
|
12298
|
-
|
|
12299
|
-
|
|
12300
|
-
return '\\' +
|
|
12301
|
-
}
|
|
12302
|
-
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
12415
|
+
var n = c.charCodeAt(0);
|
|
12416
|
+
var x = {
|
|
12417
|
+
8: 'b',
|
|
12418
|
+
9: 't',
|
|
12419
|
+
10: 'n',
|
|
12420
|
+
12: 'f',
|
|
12421
|
+
13: 'r'
|
|
12422
|
+
}[n];
|
|
12423
|
+
if (x) { return '\\' + x; }
|
|
12424
|
+
return '\\x' + (n < 0x10 ? '0' : '') + $toUpperCase.call(n.toString(16));
|
|
12303
12425
|
}
|
|
12426
|
+
|
|
12304
12427
|
function markBoxed(str) {
|
|
12305
|
-
|
|
12428
|
+
return 'Object(' + str + ')';
|
|
12306
12429
|
}
|
|
12430
|
+
|
|
12307
12431
|
function weakCollectionOf(type) {
|
|
12308
|
-
|
|
12432
|
+
return type + ' { ? }';
|
|
12309
12433
|
}
|
|
12434
|
+
|
|
12310
12435
|
function collectionOf(type, size, entries, indent) {
|
|
12311
|
-
|
|
12312
|
-
|
|
12436
|
+
var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ', ');
|
|
12437
|
+
return type + ' (' + size + ') {' + joinedEntries + '}';
|
|
12313
12438
|
}
|
|
12439
|
+
|
|
12314
12440
|
function singleLineValues(xs) {
|
|
12315
|
-
|
|
12316
|
-
|
|
12317
|
-
|
|
12441
|
+
for (var i = 0; i < xs.length; i++) {
|
|
12442
|
+
if (indexOf(xs[i], '\n') >= 0) {
|
|
12443
|
+
return false;
|
|
12444
|
+
}
|
|
12318
12445
|
}
|
|
12319
|
-
|
|
12320
|
-
return true;
|
|
12446
|
+
return true;
|
|
12321
12447
|
}
|
|
12448
|
+
|
|
12322
12449
|
function getIndent(opts, depth) {
|
|
12323
|
-
|
|
12324
|
-
|
|
12325
|
-
|
|
12326
|
-
|
|
12327
|
-
|
|
12328
|
-
|
|
12329
|
-
|
|
12330
|
-
|
|
12331
|
-
|
|
12332
|
-
|
|
12333
|
-
|
|
12334
|
-
|
|
12450
|
+
var baseIndent;
|
|
12451
|
+
if (opts.indent === '\t') {
|
|
12452
|
+
baseIndent = '\t';
|
|
12453
|
+
} else if (typeof opts.indent === 'number' && opts.indent > 0) {
|
|
12454
|
+
baseIndent = $join.call(Array(opts.indent + 1), ' ');
|
|
12455
|
+
} else {
|
|
12456
|
+
return null;
|
|
12457
|
+
}
|
|
12458
|
+
return {
|
|
12459
|
+
base: baseIndent,
|
|
12460
|
+
prev: $join.call(Array(depth + 1), baseIndent)
|
|
12461
|
+
};
|
|
12335
12462
|
}
|
|
12463
|
+
|
|
12336
12464
|
function indentedJoin(xs, indent) {
|
|
12337
|
-
|
|
12338
|
-
|
|
12339
|
-
|
|
12340
|
-
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
12341
|
-
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
12465
|
+
if (xs.length === 0) { return ''; }
|
|
12466
|
+
var lineJoiner = '\n' + indent.prev + indent.base;
|
|
12467
|
+
return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
|
|
12342
12468
|
}
|
|
12469
|
+
|
|
12343
12470
|
function arrObjKeys(obj, inspect) {
|
|
12344
|
-
|
|
12345
|
-
|
|
12346
|
-
|
|
12347
|
-
|
|
12348
|
-
|
|
12349
|
-
|
|
12471
|
+
var isArr = isArray(obj);
|
|
12472
|
+
var xs = [];
|
|
12473
|
+
if (isArr) {
|
|
12474
|
+
xs.length = obj.length;
|
|
12475
|
+
for (var i = 0; i < obj.length; i++) {
|
|
12476
|
+
xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
|
|
12477
|
+
}
|
|
12350
12478
|
}
|
|
12351
|
-
|
|
12352
|
-
|
|
12353
|
-
|
|
12354
|
-
|
|
12355
|
-
|
|
12356
|
-
|
|
12357
|
-
|
|
12479
|
+
var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
|
|
12480
|
+
var symMap;
|
|
12481
|
+
if (hasShammedSymbols) {
|
|
12482
|
+
symMap = {};
|
|
12483
|
+
for (var k = 0; k < syms.length; k++) {
|
|
12484
|
+
symMap['$' + syms[k]] = syms[k];
|
|
12485
|
+
}
|
|
12358
12486
|
}
|
|
12359
|
-
|
|
12360
|
-
|
|
12361
|
-
|
|
12362
|
-
|
|
12363
|
-
|
|
12364
|
-
|
|
12365
|
-
|
|
12366
|
-
|
|
12367
|
-
|
|
12368
|
-
|
|
12369
|
-
|
|
12370
|
-
|
|
12371
|
-
} else if ($test.call(/[^\w$]/, key)) {
|
|
12372
|
-
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
12373
|
-
} else {
|
|
12374
|
-
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
12487
|
+
|
|
12488
|
+
for (var key in obj) { // eslint-disable-line no-restricted-syntax
|
|
12489
|
+
if (!has(obj, key)) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
12490
|
+
if (isArr && String(Number(key)) === key && key < obj.length) { continue; } // eslint-disable-line no-restricted-syntax, no-continue
|
|
12491
|
+
if (hasShammedSymbols && symMap['$' + key] instanceof Symbol) {
|
|
12492
|
+
// this is to prevent shammed Symbols, which are stored as strings, from being included in the string key section
|
|
12493
|
+
continue; // eslint-disable-line no-restricted-syntax, no-continue
|
|
12494
|
+
} else if ($test.call(/[^\w$]/, key)) {
|
|
12495
|
+
xs.push(inspect(key, obj) + ': ' + inspect(obj[key], obj));
|
|
12496
|
+
} else {
|
|
12497
|
+
xs.push(key + ': ' + inspect(obj[key], obj));
|
|
12498
|
+
}
|
|
12375
12499
|
}
|
|
12376
|
-
|
|
12377
|
-
|
|
12378
|
-
|
|
12379
|
-
|
|
12380
|
-
|
|
12381
|
-
|
|
12500
|
+
if (typeof gOPS === 'function') {
|
|
12501
|
+
for (var j = 0; j < syms.length; j++) {
|
|
12502
|
+
if (isEnumerable.call(obj, syms[j])) {
|
|
12503
|
+
xs.push('[' + inspect(syms[j]) + ']: ' + inspect(obj[syms[j]], obj));
|
|
12504
|
+
}
|
|
12505
|
+
}
|
|
12382
12506
|
}
|
|
12383
|
-
|
|
12384
|
-
return xs;
|
|
12507
|
+
return xs;
|
|
12385
12508
|
}
|
|
12509
|
+
|
|
12386
12510
|
/* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(/*! ./../webpack/buildin/global.js */ "./node_modules/webpack/buildin/global.js")))
|
|
12387
12511
|
|
|
12388
12512
|
/***/ }),
|
|
@@ -12397,118 +12521,128 @@ function arrObjKeys(obj, inspect) {
|
|
|
12397
12521
|
"use strict";
|
|
12398
12522
|
|
|
12399
12523
|
|
|
12400
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12401
12524
|
var keysShim;
|
|
12402
12525
|
if (!Object.keys) {
|
|
12403
|
-
|
|
12404
|
-
|
|
12405
|
-
|
|
12406
|
-
|
|
12407
|
-
|
|
12408
|
-
|
|
12409
|
-
|
|
12410
|
-
|
|
12411
|
-
|
|
12412
|
-
|
|
12413
|
-
|
|
12414
|
-
|
|
12415
|
-
|
|
12416
|
-
|
|
12417
|
-
|
|
12418
|
-
|
|
12419
|
-
|
|
12420
|
-
|
|
12421
|
-
|
|
12422
|
-
|
|
12423
|
-
|
|
12424
|
-
|
|
12425
|
-
|
|
12426
|
-
|
|
12427
|
-
|
|
12428
|
-
|
|
12429
|
-
|
|
12430
|
-
|
|
12431
|
-
|
|
12432
|
-
|
|
12433
|
-
|
|
12434
|
-
|
|
12435
|
-
|
|
12436
|
-
|
|
12437
|
-
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
|
|
12441
|
-
|
|
12442
|
-
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
12446
|
-
|
|
12447
|
-
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
|
|
12451
|
-
|
|
12452
|
-
|
|
12453
|
-
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
|
|
12457
|
-
|
|
12458
|
-
|
|
12459
|
-
|
|
12460
|
-
|
|
12461
|
-
|
|
12462
|
-
|
|
12463
|
-
|
|
12464
|
-
|
|
12465
|
-
|
|
12466
|
-
|
|
12467
|
-
|
|
12468
|
-
|
|
12469
|
-
|
|
12470
|
-
|
|
12471
|
-
|
|
12472
|
-
|
|
12473
|
-
|
|
12474
|
-
|
|
12475
|
-
|
|
12476
|
-
|
|
12477
|
-
|
|
12478
|
-
|
|
12479
|
-
|
|
12480
|
-
|
|
12481
|
-
|
|
12482
|
-
|
|
12483
|
-
|
|
12484
|
-
|
|
12485
|
-
|
|
12486
|
-
|
|
12487
|
-
|
|
12488
|
-
|
|
12489
|
-
|
|
12490
|
-
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
|
|
12498
|
-
|
|
12499
|
-
|
|
12500
|
-
|
|
12501
|
-
|
|
12502
|
-
|
|
12503
|
-
|
|
12504
|
-
|
|
12505
|
-
|
|
12506
|
-
|
|
12507
|
-
|
|
12508
|
-
|
|
12526
|
+
// modified from https://github.com/es-shims/es5-shim
|
|
12527
|
+
var has = Object.prototype.hasOwnProperty;
|
|
12528
|
+
var toStr = Object.prototype.toString;
|
|
12529
|
+
var isArgs = __webpack_require__(/*! ./isArguments */ "./node_modules/object-keys/isArguments.js"); // eslint-disable-line global-require
|
|
12530
|
+
var isEnumerable = Object.prototype.propertyIsEnumerable;
|
|
12531
|
+
var hasDontEnumBug = !isEnumerable.call({ toString: null }, 'toString');
|
|
12532
|
+
var hasProtoEnumBug = isEnumerable.call(function () {}, 'prototype');
|
|
12533
|
+
var dontEnums = [
|
|
12534
|
+
'toString',
|
|
12535
|
+
'toLocaleString',
|
|
12536
|
+
'valueOf',
|
|
12537
|
+
'hasOwnProperty',
|
|
12538
|
+
'isPrototypeOf',
|
|
12539
|
+
'propertyIsEnumerable',
|
|
12540
|
+
'constructor'
|
|
12541
|
+
];
|
|
12542
|
+
var equalsConstructorPrototype = function (o) {
|
|
12543
|
+
var ctor = o.constructor;
|
|
12544
|
+
return ctor && ctor.prototype === o;
|
|
12545
|
+
};
|
|
12546
|
+
var excludedKeys = {
|
|
12547
|
+
$applicationCache: true,
|
|
12548
|
+
$console: true,
|
|
12549
|
+
$external: true,
|
|
12550
|
+
$frame: true,
|
|
12551
|
+
$frameElement: true,
|
|
12552
|
+
$frames: true,
|
|
12553
|
+
$innerHeight: true,
|
|
12554
|
+
$innerWidth: true,
|
|
12555
|
+
$onmozfullscreenchange: true,
|
|
12556
|
+
$onmozfullscreenerror: true,
|
|
12557
|
+
$outerHeight: true,
|
|
12558
|
+
$outerWidth: true,
|
|
12559
|
+
$pageXOffset: true,
|
|
12560
|
+
$pageYOffset: true,
|
|
12561
|
+
$parent: true,
|
|
12562
|
+
$scrollLeft: true,
|
|
12563
|
+
$scrollTop: true,
|
|
12564
|
+
$scrollX: true,
|
|
12565
|
+
$scrollY: true,
|
|
12566
|
+
$self: true,
|
|
12567
|
+
$webkitIndexedDB: true,
|
|
12568
|
+
$webkitStorageInfo: true,
|
|
12569
|
+
$window: true
|
|
12570
|
+
};
|
|
12571
|
+
var hasAutomationEqualityBug = (function () {
|
|
12572
|
+
/* global window */
|
|
12573
|
+
if (typeof window === 'undefined') { return false; }
|
|
12574
|
+
for (var k in window) {
|
|
12575
|
+
try {
|
|
12576
|
+
if (!excludedKeys['$' + k] && has.call(window, k) && window[k] !== null && typeof window[k] === 'object') {
|
|
12577
|
+
try {
|
|
12578
|
+
equalsConstructorPrototype(window[k]);
|
|
12579
|
+
} catch (e) {
|
|
12580
|
+
return true;
|
|
12581
|
+
}
|
|
12582
|
+
}
|
|
12583
|
+
} catch (e) {
|
|
12584
|
+
return true;
|
|
12585
|
+
}
|
|
12586
|
+
}
|
|
12587
|
+
return false;
|
|
12588
|
+
}());
|
|
12589
|
+
var equalsConstructorPrototypeIfNotBuggy = function (o) {
|
|
12590
|
+
/* global window */
|
|
12591
|
+
if (typeof window === 'undefined' || !hasAutomationEqualityBug) {
|
|
12592
|
+
return equalsConstructorPrototype(o);
|
|
12593
|
+
}
|
|
12594
|
+
try {
|
|
12595
|
+
return equalsConstructorPrototype(o);
|
|
12596
|
+
} catch (e) {
|
|
12597
|
+
return false;
|
|
12598
|
+
}
|
|
12599
|
+
};
|
|
12600
|
+
|
|
12601
|
+
keysShim = function keys(object) {
|
|
12602
|
+
var isObject = object !== null && typeof object === 'object';
|
|
12603
|
+
var isFunction = toStr.call(object) === '[object Function]';
|
|
12604
|
+
var isArguments = isArgs(object);
|
|
12605
|
+
var isString = isObject && toStr.call(object) === '[object String]';
|
|
12606
|
+
var theKeys = [];
|
|
12607
|
+
|
|
12608
|
+
if (!isObject && !isFunction && !isArguments) {
|
|
12609
|
+
throw new TypeError('Object.keys called on a non-object');
|
|
12610
|
+
}
|
|
12611
|
+
|
|
12612
|
+
var skipProto = hasProtoEnumBug && isFunction;
|
|
12613
|
+
if (isString && object.length > 0 && !has.call(object, 0)) {
|
|
12614
|
+
for (var i = 0; i < object.length; ++i) {
|
|
12615
|
+
theKeys.push(String(i));
|
|
12616
|
+
}
|
|
12617
|
+
}
|
|
12618
|
+
|
|
12619
|
+
if (isArguments && object.length > 0) {
|
|
12620
|
+
for (var j = 0; j < object.length; ++j) {
|
|
12621
|
+
theKeys.push(String(j));
|
|
12622
|
+
}
|
|
12623
|
+
} else {
|
|
12624
|
+
for (var name in object) {
|
|
12625
|
+
if (!(skipProto && name === 'prototype') && has.call(object, name)) {
|
|
12626
|
+
theKeys.push(String(name));
|
|
12627
|
+
}
|
|
12628
|
+
}
|
|
12629
|
+
}
|
|
12630
|
+
|
|
12631
|
+
if (hasDontEnumBug) {
|
|
12632
|
+
var skipConstructor = equalsConstructorPrototypeIfNotBuggy(object);
|
|
12633
|
+
|
|
12634
|
+
for (var k = 0; k < dontEnums.length; ++k) {
|
|
12635
|
+
if (!(skipConstructor && dontEnums[k] === 'constructor') && has.call(object, dontEnums[k])) {
|
|
12636
|
+
theKeys.push(dontEnums[k]);
|
|
12637
|
+
}
|
|
12638
|
+
}
|
|
12639
|
+
}
|
|
12640
|
+
return theKeys;
|
|
12641
|
+
};
|
|
12509
12642
|
}
|
|
12510
12643
|
module.exports = keysShim;
|
|
12511
12644
|
|
|
12645
|
+
|
|
12512
12646
|
/***/ }),
|
|
12513
12647
|
|
|
12514
12648
|
/***/ "./node_modules/object-keys/index.js":
|
|
@@ -12523,34 +12657,36 @@ module.exports = keysShim;
|
|
|
12523
12657
|
|
|
12524
12658
|
var slice = Array.prototype.slice;
|
|
12525
12659
|
var isArgs = __webpack_require__(/*! ./isArguments */ "./node_modules/object-keys/isArguments.js");
|
|
12660
|
+
|
|
12526
12661
|
var origKeys = Object.keys;
|
|
12527
|
-
var keysShim = origKeys ? function keys(o) {
|
|
12528
|
-
|
|
12529
|
-
} : __webpack_require__(/*! ./implementation */ "./node_modules/object-keys/implementation.js");
|
|
12662
|
+
var keysShim = origKeys ? function keys(o) { return origKeys(o); } : __webpack_require__(/*! ./implementation */ "./node_modules/object-keys/implementation.js");
|
|
12663
|
+
|
|
12530
12664
|
var originalKeys = Object.keys;
|
|
12665
|
+
|
|
12531
12666
|
keysShim.shim = function shimObjectKeys() {
|
|
12532
|
-
|
|
12533
|
-
|
|
12534
|
-
|
|
12535
|
-
|
|
12536
|
-
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
|
|
12540
|
-
|
|
12541
|
-
|
|
12542
|
-
|
|
12543
|
-
|
|
12544
|
-
|
|
12545
|
-
|
|
12546
|
-
|
|
12547
|
-
|
|
12548
|
-
|
|
12549
|
-
|
|
12550
|
-
return Object.keys || keysShim;
|
|
12667
|
+
if (Object.keys) {
|
|
12668
|
+
var keysWorksWithArguments = (function () {
|
|
12669
|
+
// Safari 5.0 bug
|
|
12670
|
+
var args = Object.keys(arguments);
|
|
12671
|
+
return args && args.length === arguments.length;
|
|
12672
|
+
}(1, 2));
|
|
12673
|
+
if (!keysWorksWithArguments) {
|
|
12674
|
+
Object.keys = function keys(object) { // eslint-disable-line func-name-matching
|
|
12675
|
+
if (isArgs(object)) {
|
|
12676
|
+
return originalKeys(slice.call(object));
|
|
12677
|
+
}
|
|
12678
|
+
return originalKeys(object);
|
|
12679
|
+
};
|
|
12680
|
+
}
|
|
12681
|
+
} else {
|
|
12682
|
+
Object.keys = keysShim;
|
|
12683
|
+
}
|
|
12684
|
+
return Object.keys || keysShim;
|
|
12551
12685
|
};
|
|
12686
|
+
|
|
12552
12687
|
module.exports = keysShim;
|
|
12553
12688
|
|
|
12689
|
+
|
|
12554
12690
|
/***/ }),
|
|
12555
12691
|
|
|
12556
12692
|
/***/ "./node_modules/object-keys/isArguments.js":
|
|
@@ -12563,17 +12699,23 @@ module.exports = keysShim;
|
|
|
12563
12699
|
"use strict";
|
|
12564
12700
|
|
|
12565
12701
|
|
|
12566
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12567
12702
|
var toStr = Object.prototype.toString;
|
|
12703
|
+
|
|
12568
12704
|
module.exports = function isArguments(value) {
|
|
12569
|
-
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12705
|
+
var str = toStr.call(value);
|
|
12706
|
+
var isArgs = str === '[object Arguments]';
|
|
12707
|
+
if (!isArgs) {
|
|
12708
|
+
isArgs = str !== '[object Array]' &&
|
|
12709
|
+
value !== null &&
|
|
12710
|
+
typeof value === 'object' &&
|
|
12711
|
+
typeof value.length === 'number' &&
|
|
12712
|
+
value.length >= 0 &&
|
|
12713
|
+
toStr.call(value.callee) === '[object Function]';
|
|
12714
|
+
}
|
|
12715
|
+
return isArgs;
|
|
12575
12716
|
};
|
|
12576
12717
|
|
|
12718
|
+
|
|
12577
12719
|
/***/ }),
|
|
12578
12720
|
|
|
12579
12721
|
/***/ "./node_modules/object.hasown/auto.js":
|
|
@@ -12588,6 +12730,7 @@ module.exports = function isArguments(value) {
|
|
|
12588
12730
|
|
|
12589
12731
|
__webpack_require__(/*! ./shim */ "./node_modules/object.hasown/shim.js")();
|
|
12590
12732
|
|
|
12733
|
+
|
|
12591
12734
|
/***/ }),
|
|
12592
12735
|
|
|
12593
12736
|
/***/ "./node_modules/object.hasown/implementation.js":
|
|
@@ -12603,12 +12746,14 @@ __webpack_require__(/*! ./shim */ "./node_modules/object.hasown/shim.js")();
|
|
|
12603
12746
|
var ToObject = __webpack_require__(/*! es-object-atoms/ToObject */ "./node_modules/es-object-atoms/ToObject.js");
|
|
12604
12747
|
var ToPropertyKey = __webpack_require__(/*! es-abstract/2024/ToPropertyKey */ "./node_modules/es-abstract/2024/ToPropertyKey.js");
|
|
12605
12748
|
var HasOwnProperty = __webpack_require__(/*! es-abstract/2024/HasOwnProperty */ "./node_modules/es-abstract/2024/HasOwnProperty.js");
|
|
12749
|
+
|
|
12606
12750
|
module.exports = function hasOwn(O, P) {
|
|
12607
|
-
|
|
12608
|
-
|
|
12609
|
-
|
|
12751
|
+
var obj = ToObject(O);
|
|
12752
|
+
var key = ToPropertyKey(P);
|
|
12753
|
+
return HasOwnProperty(obj, key);
|
|
12610
12754
|
};
|
|
12611
12755
|
|
|
12756
|
+
|
|
12612
12757
|
/***/ }),
|
|
12613
12758
|
|
|
12614
12759
|
/***/ "./node_modules/object.hasown/polyfill.js":
|
|
@@ -12622,10 +12767,12 @@ module.exports = function hasOwn(O, P) {
|
|
|
12622
12767
|
|
|
12623
12768
|
|
|
12624
12769
|
var implementation = __webpack_require__(/*! ./implementation */ "./node_modules/object.hasown/implementation.js");
|
|
12770
|
+
|
|
12625
12771
|
module.exports = function getPolyfill() {
|
|
12626
|
-
|
|
12772
|
+
return Object.hasOwn || implementation;
|
|
12627
12773
|
};
|
|
12628
12774
|
|
|
12775
|
+
|
|
12629
12776
|
/***/ }),
|
|
12630
12777
|
|
|
12631
12778
|
/***/ "./node_modules/object.hasown/shim.js":
|
|
@@ -12640,18 +12787,18 @@ module.exports = function getPolyfill() {
|
|
|
12640
12787
|
|
|
12641
12788
|
var getPolyfill = __webpack_require__(/*! ./polyfill */ "./node_modules/object.hasown/polyfill.js");
|
|
12642
12789
|
var define = __webpack_require__(/*! define-properties */ "./node_modules/define-properties/index.js");
|
|
12790
|
+
|
|
12643
12791
|
module.exports = function shimObjectHasOwn() {
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
});
|
|
12652
|
-
return polyfill;
|
|
12792
|
+
var polyfill = getPolyfill();
|
|
12793
|
+
define(
|
|
12794
|
+
Object,
|
|
12795
|
+
{ hasOwn: polyfill },
|
|
12796
|
+
{ hasOwn: function () { return Object.hasOwn !== polyfill; } }
|
|
12797
|
+
);
|
|
12798
|
+
return polyfill;
|
|
12653
12799
|
};
|
|
12654
12800
|
|
|
12801
|
+
|
|
12655
12802
|
/***/ }),
|
|
12656
12803
|
|
|
12657
12804
|
/***/ "./node_modules/safe-regex-test/index.js":
|
|
@@ -12666,19 +12813,21 @@ module.exports = function shimObjectHasOwn() {
|
|
|
12666
12813
|
|
|
12667
12814
|
var callBound = __webpack_require__(/*! call-bound */ "./node_modules/call-bound/index.js");
|
|
12668
12815
|
var isRegex = __webpack_require__(/*! is-regex */ "./node_modules/is-regex/index.js");
|
|
12816
|
+
|
|
12669
12817
|
var $exec = callBound('RegExp.prototype.exec');
|
|
12670
12818
|
var $TypeError = __webpack_require__(/*! es-errors/type */ "./node_modules/es-errors/type.js");
|
|
12671
12819
|
|
|
12672
12820
|
/** @type {import('.')} */
|
|
12673
12821
|
module.exports = function regexTester(regex) {
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12822
|
+
if (!isRegex(regex)) {
|
|
12823
|
+
throw new $TypeError('`regex` must be a RegExp');
|
|
12824
|
+
}
|
|
12825
|
+
return function test(s) {
|
|
12826
|
+
return $exec(regex, s) !== null;
|
|
12827
|
+
};
|
|
12680
12828
|
};
|
|
12681
12829
|
|
|
12830
|
+
|
|
12682
12831
|
/***/ }),
|
|
12683
12832
|
|
|
12684
12833
|
/***/ "./node_modules/webpack/buildin/global.js":
|
|
@@ -12688,19 +12837,19 @@ module.exports = function regexTester(regex) {
|
|
|
12688
12837
|
/*! no static exports found */
|
|
12689
12838
|
/***/ (function(module, exports) {
|
|
12690
12839
|
|
|
12691
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
12692
12840
|
var g;
|
|
12693
12841
|
|
|
12694
12842
|
// This works in non-strict mode
|
|
12695
|
-
g = function
|
|
12696
|
-
|
|
12697
|
-
}();
|
|
12843
|
+
g = (function() {
|
|
12844
|
+
return this;
|
|
12845
|
+
})();
|
|
12846
|
+
|
|
12698
12847
|
try {
|
|
12699
|
-
|
|
12700
|
-
|
|
12848
|
+
// This works if eval is allowed (see CSP)
|
|
12849
|
+
g = g || new Function("return this")();
|
|
12701
12850
|
} catch (e) {
|
|
12702
|
-
|
|
12703
|
-
|
|
12851
|
+
// This works if the window reference is available
|
|
12852
|
+
if (typeof window === "object") g = window;
|
|
12704
12853
|
}
|
|
12705
12854
|
|
|
12706
12855
|
// g can still be undefined, but nothing to do about it...
|
|
@@ -12709,6 +12858,7 @@ try {
|
|
|
12709
12858
|
|
|
12710
12859
|
module.exports = g;
|
|
12711
12860
|
|
|
12861
|
+
|
|
12712
12862
|
/***/ }),
|
|
12713
12863
|
|
|
12714
12864
|
/***/ "./src/darkmode.js":
|
|
@@ -12726,10 +12876,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12726
12876
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "updateStyle", function() { return updateStyle; });
|
|
12727
12877
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getContrast", function() { return getContrast; });
|
|
12728
12878
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "extend", function() { return extend; });
|
|
12729
|
-
/* harmony import */ var
|
|
12730
|
-
/* harmony import */ var
|
|
12731
|
-
/* harmony import */ var
|
|
12732
|
-
/* harmony import */ var
|
|
12879
|
+
/* harmony import */ var object_hasown_auto__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! object.hasown/auto */ "./node_modules/object.hasown/auto.js");
|
|
12880
|
+
/* harmony import */ var object_hasown_auto__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(object_hasown_auto__WEBPACK_IMPORTED_MODULE_0__);
|
|
12881
|
+
/* harmony import */ var _modules_constant__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./modules/constant */ "./src/modules/constant.js");
|
|
12882
|
+
/* harmony import */ var _modules_config__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./modules/config */ "./src/modules/config.js");
|
|
12883
|
+
/* harmony import */ var _modules_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./modules/global */ "./src/modules/global.js");
|
|
12884
|
+
/* harmony import */ var _modules_domUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./modules/domUtils */ "./src/modules/domUtils.js");
|
|
12733
12885
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
12734
12886
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12735
12887
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -12782,9 +12934,13 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
12782
12934
|
*
|
|
12783
12935
|
*/
|
|
12784
12936
|
|
|
12937
|
+
// Object.hasOwn polyfill:color-string / colorjs.io 等依赖在模块初始化时即调用 Object.hasOwn,
|
|
12938
|
+
// 而该 API 在 iOS 15.4 以下不支持,因此必须作为最顶部、最先执行的 import
|
|
12939
|
+
|
|
12940
|
+
|
|
12785
12941
|
// 常量
|
|
12786
12942
|
|
|
12787
|
-
var classReg = new RegExp("".concat(
|
|
12943
|
+
var classReg = new RegExp("".concat(_modules_constant__WEBPACK_IMPORTED_MODULE_1__["CLASS_PREFIX"], "[^ ]+"), 'g');
|
|
12788
12944
|
|
|
12789
12945
|
// Darkmode配置
|
|
12790
12946
|
|
|
@@ -12797,24 +12953,24 @@ var switchToDarkmode = function switchToDarkmode(mqlObj) {
|
|
|
12797
12953
|
var opt = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
|
|
12798
12954
|
type: 'dom'
|
|
12799
12955
|
};
|
|
12800
|
-
opt.force && (
|
|
12956
|
+
opt.force && (_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].isFinish = false); // 如果是强制运行Dark Mode处理逻辑,则重置为未运行
|
|
12801
12957
|
|
|
12802
|
-
if (
|
|
12958
|
+
if (_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].isFinish) return; // 已运行过Dark Mode处理逻辑则不再运行
|
|
12803
12959
|
|
|
12804
12960
|
try {
|
|
12805
|
-
|
|
12961
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].isDarkmode = _modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].mode ? _modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].mode === 'dark' : mqlObj.matches;
|
|
12806
12962
|
if (opt.type === 'dom') {
|
|
12807
12963
|
// 处理节点
|
|
12808
|
-
|
|
12809
|
-
Array.prototype.forEach.call(
|
|
12810
|
-
if (
|
|
12964
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].isDarkmode && typeof _modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].begin === 'function' && _modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].begin(_modules_global__WEBPACK_IMPORTED_MODULE_3__["domUtils"].hasDelay());
|
|
12965
|
+
Array.prototype.forEach.call(_modules_global__WEBPACK_IMPORTED_MODULE_3__["domUtils"].get(), function (node) {
|
|
12966
|
+
if (_modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].isDarkmode && node.className && typeof node.className === 'string') {
|
|
12811
12967
|
node.className = node.className.replace(classReg, ''); // 过滤掉原有的Dark Mode class,避免外部复制文章时把文章内的Dark Mode class也复制过去导致新文章在Dark Mode下样式错乱
|
|
12812
12968
|
}
|
|
12813
12969
|
|
|
12814
|
-
if (
|
|
12815
|
-
if (!
|
|
12970
|
+
if (_modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].isDarkmode || _modules_global__WEBPACK_IMPORTED_MODULE_3__["plugins"].length) {
|
|
12971
|
+
if (!_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].needJudgeFirstPage) {
|
|
12816
12972
|
// 不需要判断首屏
|
|
12817
|
-
|
|
12973
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].addCss(_modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].convert(node)); // 写入非首屏样式
|
|
12818
12974
|
} else {
|
|
12819
12975
|
// 判断首屏
|
|
12820
12976
|
var rect = node.getBoundingClientRect();
|
|
@@ -12822,32 +12978,32 @@ var switchToDarkmode = function switchToDarkmode(mqlObj) {
|
|
|
12822
12978
|
var bottom = rect.bottom;
|
|
12823
12979
|
if (top <= 0 && bottom <= 0) {
|
|
12824
12980
|
// 首屏前面
|
|
12825
|
-
|
|
12826
|
-
} else if (top > 0 && top <
|
|
12981
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].addCss(_modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].convert(node)); // 写入非首屏样式
|
|
12982
|
+
} else if (top > 0 && top < _modules_constant__WEBPACK_IMPORTED_MODULE_1__["PAGE_HEIGHT"] || bottom > 0 && bottom < _modules_constant__WEBPACK_IMPORTED_MODULE_1__["PAGE_HEIGHT"]) {
|
|
12827
12983
|
// 首屏
|
|
12828
|
-
|
|
12829
|
-
|
|
12984
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["domUtils"].addFirstPageNode(node); // 记录首屏节点
|
|
12985
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].addCss(_modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].convert(node), true); // 写入首屏样式
|
|
12830
12986
|
} else {
|
|
12831
12987
|
// 首屏后面,理论上,这里最多只会进来一次
|
|
12832
|
-
|
|
12988
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].needJudgeFirstPage = false; // 至此,不需要再判断首屏了
|
|
12833
12989
|
|
|
12834
12990
|
// 显示首屏
|
|
12835
|
-
|
|
12836
|
-
|
|
12837
|
-
typeof
|
|
12991
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].writeStyle(true); // 写入首屏样式表
|
|
12992
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["domUtils"].showFirstPageNodes(); // 显示首屏节点
|
|
12993
|
+
typeof _modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].showFirstPage === 'function' && _modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].showFirstPage(); // 执行首屏回调
|
|
12838
12994
|
|
|
12839
|
-
|
|
12995
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].addCss(_modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].convert(node)); // 写入非首屏样式
|
|
12840
12996
|
}
|
|
12841
12997
|
}
|
|
12842
12998
|
}
|
|
12843
12999
|
});
|
|
12844
13000
|
|
|
12845
|
-
|
|
13001
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["plugins"].loopTimes++;
|
|
12846
13002
|
} else if (opt.type === 'bg') {
|
|
12847
13003
|
// 处理背景
|
|
12848
|
-
|
|
12849
|
-
return
|
|
12850
|
-
|
|
13004
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].isDarkmode && _modules_global__WEBPACK_IMPORTED_MODULE_3__["tnQueue"].forEach(function (text) {
|
|
13005
|
+
return _modules_global__WEBPACK_IMPORTED_MODULE_3__["bgStack"].contains(text, function (bg) {
|
|
13006
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].addCss(_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].genCss(bg.className, bg.cssKV)); // 写入非首屏样式
|
|
12851
13007
|
typeof bg.cb === 'function' && bg.cb(bg);
|
|
12852
13008
|
|
|
12853
13009
|
// 还得处理该背景下的所有新老节点
|
|
@@ -12855,8 +13011,8 @@ var switchToDarkmode = function switchToDarkmode(mqlObj) {
|
|
|
12855
13011
|
bg.elOld !== bg.el && els.push(bg.el);
|
|
12856
13012
|
els.forEach(function (el) {
|
|
12857
13013
|
var _el$COLORATTR, _el$BGCOLORATTR, _el$ORIGINAL_COLORATT, _el$ORIGINAL_BGCOLORA, _el$BGIMAGEATTR, _el$COMPLEMENTARY_BGI;
|
|
12858
|
-
var inheritAttrs = [[
|
|
12859
|
-
var children = Object(
|
|
13014
|
+
var inheritAttrs = [[_modules_constant__WEBPACK_IMPORTED_MODULE_1__["COLORATTR"], (_el$COLORATTR = el[_modules_constant__WEBPACK_IMPORTED_MODULE_1__["COLORATTR"]]) !== null && _el$COLORATTR !== void 0 ? _el$COLORATTR : null], [_modules_constant__WEBPACK_IMPORTED_MODULE_1__["BGCOLORATTR"], (_el$BGCOLORATTR = el[_modules_constant__WEBPACK_IMPORTED_MODULE_1__["BGCOLORATTR"]]) !== null && _el$BGCOLORATTR !== void 0 ? _el$BGCOLORATTR : null], [_modules_constant__WEBPACK_IMPORTED_MODULE_1__["ORIGINAL_COLORATTR"], (_el$ORIGINAL_COLORATT = el[_modules_constant__WEBPACK_IMPORTED_MODULE_1__["ORIGINAL_COLORATTR"]]) !== null && _el$ORIGINAL_COLORATT !== void 0 ? _el$ORIGINAL_COLORATT : null], [_modules_constant__WEBPACK_IMPORTED_MODULE_1__["ORIGINAL_BGCOLORATTR"], (_el$ORIGINAL_BGCOLORA = el[_modules_constant__WEBPACK_IMPORTED_MODULE_1__["ORIGINAL_BGCOLORATTR"]]) !== null && _el$ORIGINAL_BGCOLORA !== void 0 ? _el$ORIGINAL_BGCOLORA : null], [_modules_constant__WEBPACK_IMPORTED_MODULE_1__["BGIMAGEATTR"], (_el$BGIMAGEATTR = el[_modules_constant__WEBPACK_IMPORTED_MODULE_1__["BGIMAGEATTR"]]) !== null && _el$BGIMAGEATTR !== void 0 ? _el$BGIMAGEATTR : null], [_modules_constant__WEBPACK_IMPORTED_MODULE_1__["COMPLEMENTARY_BGIMAGECOLORATTR"], (_el$COMPLEMENTARY_BGI = el[_modules_constant__WEBPACK_IMPORTED_MODULE_1__["COMPLEMENTARY_BGIMAGECOLORATTR"]]) !== null && _el$COMPLEMENTARY_BGI !== void 0 ? _el$COMPLEMENTARY_BGI : null]];
|
|
13015
|
+
var children = Object(_modules_domUtils__WEBPACK_IMPORTED_MODULE_4__["getChildrenAndIt"])(el, true);
|
|
12860
13016
|
children.forEach(function (child) {
|
|
12861
13017
|
// 重置继承属性
|
|
12862
13018
|
inheritAttrs.forEach(function (_ref) {
|
|
@@ -12872,35 +13028,35 @@ var switchToDarkmode = function switchToDarkmode(mqlObj) {
|
|
|
12872
13028
|
});
|
|
12873
13029
|
children.forEach(function (child) {
|
|
12874
13030
|
// 重新运行Dark Mode处理逻辑
|
|
12875
|
-
|
|
13031
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].addCss(_modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].convert(child, undefined, false, true));
|
|
12876
13032
|
});
|
|
12877
13033
|
});
|
|
12878
13034
|
});
|
|
12879
13035
|
});
|
|
12880
13036
|
}
|
|
12881
|
-
if (
|
|
13037
|
+
if (_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].needJudgeFirstPage || !_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].needJudgeFirstPage && !_modules_global__WEBPACK_IMPORTED_MODULE_3__["domUtils"].showFirstPage) {
|
|
12882
13038
|
// config.needJudgeFirstPage === ture,表示需要判断首屏但是正文长度没超过一屏
|
|
12883
13039
|
// config.needJudgeFirstPage === false && domUtils.showFirstPage === false,表示不需要判断首屏且没有做首屏优化
|
|
12884
|
-
typeof
|
|
13040
|
+
typeof _modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].showFirstPage === 'function' && _modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].showFirstPage(); // 执行首屏回调
|
|
12885
13041
|
}
|
|
12886
13042
|
|
|
12887
|
-
|
|
12888
|
-
|
|
13043
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].writeStyle(); // 写入非首屏样式表
|
|
13044
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["domUtils"].emptyFirstPageNodes(); // 清空记录的首屏节点
|
|
12889
13045
|
|
|
12890
|
-
if (!
|
|
13046
|
+
if (!_modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].isDarkmode) {
|
|
12891
13047
|
// 非Dark Mode
|
|
12892
13048
|
// 首次加载页面时为非Dark Mode,标记为不需要判断首屏
|
|
12893
|
-
|
|
13049
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].needJudgeFirstPage = false;
|
|
12894
13050
|
|
|
12895
13051
|
// 首次加载页面时为非Dark Mode,标记为不延迟判断背景
|
|
12896
|
-
|
|
12897
|
-
if (
|
|
12898
|
-
|
|
13052
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].delayBgJudge = false;
|
|
13053
|
+
if (_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].container === null && opt.type === 'dom' && _modules_global__WEBPACK_IMPORTED_MODULE_3__["domUtils"].length) {
|
|
13054
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["domUtils"].delay(); // 将节点转移到延迟处理队列里
|
|
12899
13055
|
}
|
|
12900
13056
|
}
|
|
12901
13057
|
} catch (e) {
|
|
12902
13058
|
console.log('An error occurred when running the dark mode conversion algorithm\n', e);
|
|
12903
|
-
typeof
|
|
13059
|
+
typeof _modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].error === 'function' && _modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].error(e);
|
|
12904
13060
|
}
|
|
12905
13061
|
};
|
|
12906
13062
|
|
|
@@ -12908,7 +13064,7 @@ var switchToDarkmode = function switchToDarkmode(mqlObj) {
|
|
|
12908
13064
|
function run(nodes, opt) {
|
|
12909
13065
|
init(opt); // 初始化配置
|
|
12910
13066
|
|
|
12911
|
-
|
|
13067
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["domUtils"].set(nodes);
|
|
12912
13068
|
switchToDarkmode(mql, {
|
|
12913
13069
|
force: true,
|
|
12914
13070
|
type: 'dom'
|
|
@@ -12919,12 +13075,12 @@ function run(nodes, opt) {
|
|
|
12919
13075
|
// 初始化Dark Mode配置
|
|
12920
13076
|
function init() {
|
|
12921
13077
|
var opt = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
12922
|
-
if (
|
|
13078
|
+
if (_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].hasInit) return; // 只可设置一次配置
|
|
12923
13079
|
|
|
12924
|
-
|
|
13080
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].hasInit = true; // 记录为配置已设置
|
|
12925
13081
|
|
|
12926
|
-
var tagName =
|
|
12927
|
-
var attribute =
|
|
13082
|
+
var tagName = _modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].whitelist.tagName;
|
|
13083
|
+
var attribute = _modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].whitelist.attribute;
|
|
12928
13084
|
if (opt.whitelist) {
|
|
12929
13085
|
opt.whitelist.tagName instanceof Array && opt.whitelist.tagName.forEach(function (item) {
|
|
12930
13086
|
item = item.toUpperCase();
|
|
@@ -12935,24 +13091,24 @@ function init() {
|
|
|
12935
13091
|
});
|
|
12936
13092
|
}
|
|
12937
13093
|
if (['dark', 'light'].indexOf(opt.mode) > -1) {
|
|
12938
|
-
|
|
12939
|
-
opt.mode === 'dark' && document.getElementsByTagName('html')[0].classList.add(
|
|
12940
|
-
}
|
|
12941
|
-
|
|
12942
|
-
|
|
12943
|
-
|
|
12944
|
-
|
|
12945
|
-
|
|
12946
|
-
|
|
12947
|
-
|
|
12948
|
-
|
|
12949
|
-
|
|
12950
|
-
|
|
12951
|
-
|
|
12952
|
-
|
|
12953
|
-
if (!
|
|
13094
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].set('string', opt, 'mode');
|
|
13095
|
+
opt.mode === 'dark' && document.getElementsByTagName('html')[0].classList.add(_modules_constant__WEBPACK_IMPORTED_MODULE_1__["HTML_CLASS"]);
|
|
13096
|
+
}
|
|
13097
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].set('function', opt, 'begin');
|
|
13098
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].set('function', opt, 'showFirstPage');
|
|
13099
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].set('function', opt, 'error');
|
|
13100
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].set('boolean', opt, 'needJudgeFirstPage');
|
|
13101
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].set('boolean', opt, 'delayBgJudge');
|
|
13102
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].set('dom', opt, 'container');
|
|
13103
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].set('string', opt, 'cssSelectorsPrefix');
|
|
13104
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].set('string', opt, 'defaultLightTextColor');
|
|
13105
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].set('string', opt, 'defaultLightBgColor');
|
|
13106
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].set('string', opt, 'defaultDarkTextColor');
|
|
13107
|
+
_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].set('string', opt, 'defaultDarkBgColor');
|
|
13108
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].init();
|
|
13109
|
+
if (!_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].mode && mql === null && window.matchMedia) {
|
|
12954
13110
|
// 匹配媒体查询
|
|
12955
|
-
mql = window.matchMedia(
|
|
13111
|
+
mql = window.matchMedia(_modules_constant__WEBPACK_IMPORTED_MODULE_1__["MEDIA_QUERY"]);
|
|
12956
13112
|
mql.addListener(switchToDarkmode); // 监听
|
|
12957
13113
|
}
|
|
12958
13114
|
}
|
|
@@ -12961,10 +13117,10 @@ function init() {
|
|
|
12961
13117
|
|
|
12962
13118
|
// 处理背景
|
|
12963
13119
|
function convertBg(nodes) {
|
|
12964
|
-
|
|
12965
|
-
if (
|
|
12966
|
-
|
|
12967
|
-
|
|
13120
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["domUtils"].set(nodes);
|
|
13121
|
+
if (_modules_config__WEBPACK_IMPORTED_MODULE_2__["default"].container !== null) {
|
|
13122
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["bgStack"].update(nodes); // 更新背景堆栈
|
|
13123
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["tnQueue"].update(nodes); // 更新文字队列
|
|
12968
13124
|
}
|
|
12969
13125
|
|
|
12970
13126
|
switchToDarkmode(mql, {
|
|
@@ -12976,24 +13132,24 @@ function convertBg(nodes) {
|
|
|
12976
13132
|
|
|
12977
13133
|
// 更新节点Dark Mode样式
|
|
12978
13134
|
function updateStyle(node, styles) {
|
|
12979
|
-
if (!
|
|
12980
|
-
|
|
13135
|
+
if (!_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].isFinish) return; // 没有运行过Dark Mode处理逻辑则无需运行
|
|
13136
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].addCss(_modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].convert(node, styles ? Object.keys(styles).map(function (key) {
|
|
12981
13137
|
return [key, styles[key]];
|
|
12982
13138
|
}) : undefined, true), false);
|
|
12983
|
-
|
|
13139
|
+
_modules_global__WEBPACK_IMPORTED_MODULE_3__["cssUtils"].writeStyle();
|
|
12984
13140
|
}
|
|
12985
13141
|
;
|
|
12986
13142
|
|
|
12987
13143
|
// 获取两个颜色的对比度
|
|
12988
13144
|
function getContrast(color1, color2) {
|
|
12989
|
-
return
|
|
13145
|
+
return _modules_global__WEBPACK_IMPORTED_MODULE_3__["sdk"].getContrast(color1, color2);
|
|
12990
13146
|
}
|
|
12991
13147
|
;
|
|
12992
13148
|
|
|
12993
13149
|
// 挂载插件
|
|
12994
13150
|
function extend(pluginList) {
|
|
12995
13151
|
pluginList.forEach(function (plugin) {
|
|
12996
|
-
return
|
|
13152
|
+
return _modules_global__WEBPACK_IMPORTED_MODULE_3__["plugins"].extend(plugin);
|
|
12997
13153
|
});
|
|
12998
13154
|
}
|
|
12999
13155
|
;
|
|
@@ -13132,13 +13288,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13132
13288
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mixColors", function() { return mixColors; });
|
|
13133
13289
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getColorPerceivedBrightness", function() { return getColorPerceivedBrightness; });
|
|
13134
13290
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "adjustBrightnessTo", function() { return adjustBrightnessTo; });
|
|
13135
|
-
/* harmony import */ var
|
|
13136
|
-
/* harmony import */ var
|
|
13137
|
-
/* harmony import */ var
|
|
13138
|
-
/* harmony import */ var
|
|
13139
|
-
/* harmony import */ var
|
|
13140
|
-
/* harmony import */ var colorjs_io__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! colorjs.io */ "./node_modules/colorjs.io/dist/color.js");
|
|
13141
|
-
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./constant */ "./src/modules/constant.js");
|
|
13291
|
+
/* harmony import */ var color__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! color */ "./node_modules/color/index.js");
|
|
13292
|
+
/* harmony import */ var color_name__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! color-name */ "./node_modules/color-name/index.js");
|
|
13293
|
+
/* harmony import */ var color_blend__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! color-blend */ "./node_modules/color-blend/dist/index.modern.js");
|
|
13294
|
+
/* harmony import */ var colorjs_io__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! colorjs.io */ "./node_modules/colorjs.io/dist/color.js");
|
|
13295
|
+
/* harmony import */ var _constant__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./constant */ "./src/modules/constant.js");
|
|
13142
13296
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
13143
13297
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
13144
13298
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -13179,10 +13333,9 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
13179
13333
|
|
|
13180
13334
|
|
|
13181
13335
|
|
|
13182
|
-
|
|
13183
13336
|
// 常量
|
|
13184
13337
|
|
|
13185
|
-
var COLOR_NAME = _objectSpread(_objectSpread({},
|
|
13338
|
+
var COLOR_NAME = _objectSpread(_objectSpread({}, color_name__WEBPACK_IMPORTED_MODULE_1__["default"]), {}, {
|
|
13186
13339
|
windowtext: [0, 0, 0],
|
|
13187
13340
|
// 补上这个colorName
|
|
13188
13341
|
transparent: [255, 255, 255, 0] // 支持透明,暂定用白色透明度0来表示
|
|
@@ -13211,10 +13364,10 @@ var colorBlend2Color = function colorBlend2Color(colorBlend) {
|
|
|
13211
13364
|
var ColorParser = function ColorParser(color) {
|
|
13212
13365
|
var res = null;
|
|
13213
13366
|
try {
|
|
13214
|
-
res = color instanceof
|
|
13367
|
+
res = color instanceof color__WEBPACK_IMPORTED_MODULE_0__["default"] ? color : Object(color__WEBPACK_IMPORTED_MODULE_0__["default"])(color);
|
|
13215
13368
|
} catch (e) {
|
|
13216
13369
|
try {
|
|
13217
|
-
res = ColorParser(new
|
|
13370
|
+
res = ColorParser(new colorjs_io__WEBPACK_IMPORTED_MODULE_3__["default"](color).to('srgb').toString()); // 对于lch、oklch、lab、oklab、color等色值尝试使用colorjs.io来解析,然后再转成Color对象
|
|
13218
13371
|
} catch (e) {
|
|
13219
13372
|
console.log("ignore the invalid color: `".concat(color, "`"));
|
|
13220
13373
|
}
|
|
@@ -13224,7 +13377,7 @@ var ColorParser = function ColorParser(color) {
|
|
|
13224
13377
|
|
|
13225
13378
|
// 处理颜色,包括清除!important和转换英文定义颜色
|
|
13226
13379
|
var parseColorName = function parseColorName(color, supportTransparent) {
|
|
13227
|
-
return color.replace(
|
|
13380
|
+
return color.replace(_constant__WEBPACK_IMPORTED_MODULE_4__["IMPORTANT_REGEXP"], '').replace(COLOR_NAME_REG, function (match) {
|
|
13228
13381
|
if (!supportTransparent && match === 'transparent') return match; // 如果不支持转换transparent,直接返回transparent
|
|
13229
13382
|
|
|
13230
13383
|
var color = COLOR_NAME[match.toLowerCase()];
|
|
@@ -13235,7 +13388,7 @@ var parseColorName = function parseColorName(color, supportTransparent) {
|
|
|
13235
13388
|
// 处理-webkit-fill-color和-webkit-text-stroke-color,返回处理后的色值,无则返回空字符串
|
|
13236
13389
|
var parseWebkitFillColorAndStrokeColor = function parseWebkitFillColorAndStrokeColor(color) {
|
|
13237
13390
|
var newValue = parseColorName(color);
|
|
13238
|
-
return
|
|
13391
|
+
return _constant__WEBPACK_IMPORTED_MODULE_4__["COLOR_REGEXP"].test(newValue) ? newValue : '';
|
|
13239
13392
|
};
|
|
13240
13393
|
|
|
13241
13394
|
// 计算混合颜色
|
|
@@ -13255,7 +13408,7 @@ var mixColors = function mixColors(colors) {
|
|
|
13255
13408
|
color1 = ColorParser(colors.shift());
|
|
13256
13409
|
} else if (color1 && color2) {
|
|
13257
13410
|
// 如果两个色值都合法,执行mix
|
|
13258
|
-
color1 = type === 'mix' ? color1.mix(color2, color2.alpha()) : colorBlend2Color(
|
|
13411
|
+
color1 = type === 'mix' ? color1.mix(color2, color2.alpha()) : colorBlend2Color(color_blend__WEBPACK_IMPORTED_MODULE_2__[type](color2ColorBlend(color1), color2ColorBlend(color2)));
|
|
13259
13412
|
} // 如果当前色值合法,混入色值非法,无需处理
|
|
13260
13413
|
|
|
13261
13414
|
if (colors.length === 0) break;
|
|
@@ -13282,7 +13435,7 @@ var adjustBrightnessTo = function adjustBrightnessTo(target, rgb) {
|
|
|
13282
13435
|
} else if (newTextB === 0 || newTextG === 255) {
|
|
13283
13436
|
newTextB = (target * 1000 - newTextR * 299 - newTextG * 587) / 114;
|
|
13284
13437
|
}
|
|
13285
|
-
return
|
|
13438
|
+
return color__WEBPACK_IMPORTED_MODULE_0__["default"].rgb(newTextR, newTextG, newTextB);
|
|
13286
13439
|
};
|
|
13287
13440
|
|
|
13288
13441
|
/***/ }),
|