bootstrap-table-rails 1.18.3 → 1.20.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +1 -1
- data/bootstrap-table-rails.gemspec +2 -2
- data/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +939 -357
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +947 -392
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +953 -396
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +3 -1
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +3034 -2119
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1017 -430
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +564 -249
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1488 -961
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +579 -260
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +574 -258
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +486 -189
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +909 -538
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +921 -501
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +9 -1
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +2712 -1132
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +1326 -747
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +586 -275
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +892 -425
- data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +16 -8
- data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +670 -357
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +590 -252
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +820 -386
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.css +5 -2
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +549 -240
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +557 -251
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +773 -304
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +586 -258
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +547 -205
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +487 -189
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +559 -247
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +901 -551
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +600 -245
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +480 -191
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +492 -203
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +490 -200
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +475 -185
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +1083 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +497 -207
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +1083 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +511 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +511 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +472 -183
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +2 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +564 -258
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +2 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +560 -238
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +2 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +564 -242
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +2 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +562 -255
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +2 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +558 -236
- metadata +8 -6
data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
|
3
3
|
typeof define === 'function' && define.amd ? define(['jquery'], factory) :
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jQuery));
|
5
|
-
}(this, (function ($) { 'use strict';
|
5
|
+
})(this, (function ($) { 'use strict';
|
6
6
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
8
8
|
|
@@ -11,17 +11,11 @@
|
|
11
11
|
function _typeof(obj) {
|
12
12
|
"@babel/helpers - typeof";
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
}
|
19
|
-
_typeof = function (obj) {
|
20
|
-
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
21
|
-
};
|
22
|
-
}
|
23
|
-
|
24
|
-
return _typeof(obj);
|
14
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
15
|
+
return typeof obj;
|
16
|
+
} : function (obj) {
|
17
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
18
|
+
}, _typeof(obj);
|
25
19
|
}
|
26
20
|
|
27
21
|
function _classCallCheck(instance, Constructor) {
|
@@ -43,6 +37,9 @@
|
|
43
37
|
function _createClass(Constructor, protoProps, staticProps) {
|
44
38
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
45
39
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
40
|
+
Object.defineProperty(Constructor, "prototype", {
|
41
|
+
writable: false
|
42
|
+
});
|
46
43
|
return Constructor;
|
47
44
|
}
|
48
45
|
|
@@ -58,6 +55,9 @@
|
|
58
55
|
configurable: true
|
59
56
|
}
|
60
57
|
});
|
58
|
+
Object.defineProperty(subClass, "prototype", {
|
59
|
+
writable: false
|
60
|
+
});
|
61
61
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
62
62
|
}
|
63
63
|
|
@@ -101,6 +101,8 @@
|
|
101
101
|
function _possibleConstructorReturn(self, call) {
|
102
102
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
103
103
|
return call;
|
104
|
+
} else if (call !== void 0) {
|
105
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
104
106
|
}
|
105
107
|
|
106
108
|
return _assertThisInitialized(self);
|
@@ -134,7 +136,7 @@
|
|
134
136
|
return object;
|
135
137
|
}
|
136
138
|
|
137
|
-
function _get(
|
139
|
+
function _get() {
|
138
140
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
139
141
|
_get = Reflect.get;
|
140
142
|
} else {
|
@@ -145,14 +147,14 @@
|
|
145
147
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
146
148
|
|
147
149
|
if (desc.get) {
|
148
|
-
return desc.get.call(receiver);
|
150
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
149
151
|
}
|
150
152
|
|
151
153
|
return desc.value;
|
152
154
|
};
|
153
155
|
}
|
154
156
|
|
155
|
-
return _get(
|
157
|
+
return _get.apply(this, arguments);
|
156
158
|
}
|
157
159
|
|
158
160
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
@@ -167,78 +169,42 @@
|
|
167
169
|
|
168
170
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
169
171
|
var global_1 =
|
170
|
-
|
172
|
+
// eslint-disable-next-line es/no-global-this -- safe
|
171
173
|
check(typeof globalThis == 'object' && globalThis) ||
|
172
174
|
check(typeof window == 'object' && window) ||
|
175
|
+
// eslint-disable-next-line no-restricted-globals -- safe
|
173
176
|
check(typeof self == 'object' && self) ||
|
174
177
|
check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
|
175
178
|
// eslint-disable-next-line no-new-func -- fallback
|
176
179
|
(function () { return this; })() || Function('return this')();
|
177
180
|
|
178
|
-
//
|
179
|
-
|
180
|
-
var domIterables = {
|
181
|
-
CSSRuleList: 0,
|
182
|
-
CSSStyleDeclaration: 0,
|
183
|
-
CSSValueList: 0,
|
184
|
-
ClientRectList: 0,
|
185
|
-
DOMRectList: 0,
|
186
|
-
DOMStringList: 0,
|
187
|
-
DOMTokenList: 1,
|
188
|
-
DataTransferItemList: 0,
|
189
|
-
FileList: 0,
|
190
|
-
HTMLAllCollection: 0,
|
191
|
-
HTMLCollection: 0,
|
192
|
-
HTMLFormElement: 0,
|
193
|
-
HTMLSelectElement: 0,
|
194
|
-
MediaList: 0,
|
195
|
-
MimeTypeArray: 0,
|
196
|
-
NamedNodeMap: 0,
|
197
|
-
NodeList: 1,
|
198
|
-
PaintRequestList: 0,
|
199
|
-
Plugin: 0,
|
200
|
-
PluginArray: 0,
|
201
|
-
SVGLengthList: 0,
|
202
|
-
SVGNumberList: 0,
|
203
|
-
SVGPathSegList: 0,
|
204
|
-
SVGPointList: 0,
|
205
|
-
SVGStringList: 0,
|
206
|
-
SVGTransformList: 0,
|
207
|
-
SourceBufferList: 0,
|
208
|
-
StyleSheetList: 0,
|
209
|
-
TextTrackCueList: 0,
|
210
|
-
TextTrackList: 0,
|
211
|
-
TouchList: 0
|
212
|
-
};
|
181
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
182
|
+
var defineProperty$2 = Object.defineProperty;
|
213
183
|
|
214
|
-
var
|
215
|
-
|
216
|
-
|
217
|
-
}
|
184
|
+
var setGlobal = function (key, value) {
|
185
|
+
try {
|
186
|
+
defineProperty$2(global_1, key, { value: value, configurable: true, writable: true });
|
187
|
+
} catch (error) {
|
188
|
+
global_1[key] = value;
|
189
|
+
} return value;
|
218
190
|
};
|
219
191
|
|
220
|
-
|
221
|
-
var
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
};
|
237
|
-
}
|
238
|
-
return function (/* ...args */) {
|
239
|
-
return fn.apply(that, arguments);
|
240
|
-
};
|
241
|
-
};
|
192
|
+
var SHARED = '__core-js_shared__';
|
193
|
+
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
194
|
+
|
195
|
+
var sharedStore = store$1;
|
196
|
+
|
197
|
+
var shared = createCommonjsModule(function (module) {
|
198
|
+
(module.exports = function (key, value) {
|
199
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
200
|
+
})('versions', []).push({
|
201
|
+
version: '3.21.1',
|
202
|
+
mode: 'global',
|
203
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
204
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
|
205
|
+
source: 'https://github.com/zloirock/core-js'
|
206
|
+
});
|
207
|
+
});
|
242
208
|
|
243
209
|
var fails = function (exec) {
|
244
210
|
try {
|
@@ -248,120 +214,310 @@
|
|
248
214
|
}
|
249
215
|
};
|
250
216
|
|
251
|
-
var
|
217
|
+
var functionBindNative = !fails(function () {
|
218
|
+
var test = (function () { /* empty */ }).bind();
|
219
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
220
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
221
|
+
});
|
252
222
|
|
253
|
-
var
|
254
|
-
|
255
|
-
|
223
|
+
var FunctionPrototype$2 = Function.prototype;
|
224
|
+
var bind$1 = FunctionPrototype$2.bind;
|
225
|
+
var call$1 = FunctionPrototype$2.call;
|
226
|
+
var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
|
256
227
|
|
257
|
-
var
|
228
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
229
|
+
return fn && uncurryThis(fn);
|
230
|
+
} : function (fn) {
|
231
|
+
return fn && function () {
|
232
|
+
return call$1.apply(fn, arguments);
|
233
|
+
};
|
234
|
+
};
|
258
235
|
|
259
|
-
|
260
|
-
var indexedObject = fails(function () {
|
261
|
-
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
262
|
-
// eslint-disable-next-line no-prototype-builtins -- safe
|
263
|
-
return !Object('z').propertyIsEnumerable(0);
|
264
|
-
}) ? function (it) {
|
265
|
-
return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
|
266
|
-
} : Object;
|
236
|
+
var TypeError$8 = global_1.TypeError;
|
267
237
|
|
268
238
|
// `RequireObjectCoercible` abstract operation
|
269
239
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
270
240
|
var requireObjectCoercible = function (it) {
|
271
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
241
|
+
if (it == undefined) throw TypeError$8("Can't call method on " + it);
|
272
242
|
return it;
|
273
243
|
};
|
274
244
|
|
245
|
+
var Object$4 = global_1.Object;
|
246
|
+
|
275
247
|
// `ToObject` abstract operation
|
276
248
|
// https://tc39.es/ecma262/#sec-toobject
|
277
249
|
var toObject = function (argument) {
|
278
|
-
return Object(requireObjectCoercible(argument));
|
250
|
+
return Object$4(requireObjectCoercible(argument));
|
279
251
|
};
|
280
252
|
|
281
|
-
var
|
282
|
-
var floor = Math.floor;
|
253
|
+
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
283
254
|
|
284
|
-
// `
|
285
|
-
// https://tc39.es/ecma262/#sec-
|
286
|
-
var
|
287
|
-
return
|
255
|
+
// `HasOwnProperty` abstract operation
|
256
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
257
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
258
|
+
return hasOwnProperty(toObject(it), key);
|
288
259
|
};
|
289
260
|
|
290
|
-
var
|
261
|
+
var id = 0;
|
262
|
+
var postfix = Math.random();
|
263
|
+
var toString$1 = functionUncurryThis(1.0.toString);
|
291
264
|
|
292
|
-
|
293
|
-
|
294
|
-
var toLength = function (argument) {
|
295
|
-
return argument > 0 ? min$1(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
265
|
+
var uid = function (key) {
|
266
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$1(++id + postfix, 36);
|
296
267
|
};
|
297
268
|
|
298
|
-
|
299
|
-
|
269
|
+
// `IsCallable` abstract operation
|
270
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
271
|
+
var isCallable = function (argument) {
|
272
|
+
return typeof argument == 'function';
|
300
273
|
};
|
301
274
|
|
302
|
-
|
303
|
-
|
304
|
-
|
305
|
-
|
275
|
+
var aFunction = function (argument) {
|
276
|
+
return isCallable(argument) ? argument : undefined;
|
277
|
+
};
|
278
|
+
|
279
|
+
var getBuiltIn = function (namespace, method) {
|
280
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
281
|
+
};
|
282
|
+
|
283
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
284
|
+
|
285
|
+
var process = global_1.process;
|
286
|
+
var Deno = global_1.Deno;
|
287
|
+
var versions = process && process.versions || Deno && Deno.version;
|
288
|
+
var v8 = versions && versions.v8;
|
289
|
+
var match, version;
|
290
|
+
|
291
|
+
if (v8) {
|
292
|
+
match = v8.split('.');
|
293
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
294
|
+
// but their correct versions are not interesting for us
|
295
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
296
|
+
}
|
297
|
+
|
298
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
299
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
300
|
+
if (!version && engineUserAgent) {
|
301
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
302
|
+
if (!match || match[1] >= 74) {
|
303
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
304
|
+
if (match) version = +match[1];
|
305
|
+
}
|
306
|
+
}
|
307
|
+
|
308
|
+
var engineV8Version = version;
|
309
|
+
|
310
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
315
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
316
|
+
var symbol = Symbol();
|
317
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
318
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
319
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
320
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
321
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
322
|
+
});
|
323
|
+
|
324
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
325
|
+
|
326
|
+
|
327
|
+
var useSymbolAsUid = nativeSymbol
|
328
|
+
&& !Symbol.sham
|
329
|
+
&& typeof Symbol.iterator == 'symbol';
|
330
|
+
|
331
|
+
var WellKnownSymbolsStore = shared('wks');
|
332
|
+
var Symbol$1 = global_1.Symbol;
|
333
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
334
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
335
|
+
|
336
|
+
var wellKnownSymbol = function (name) {
|
337
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
338
|
+
var description = 'Symbol.' + name;
|
339
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
340
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
341
|
+
} else if (useSymbolAsUid && symbolFor) {
|
342
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
343
|
+
} else {
|
344
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
345
|
+
}
|
346
|
+
} return WellKnownSymbolsStore[name];
|
306
347
|
};
|
307
348
|
|
349
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
350
|
+
var test$1 = {};
|
351
|
+
|
352
|
+
test$1[TO_STRING_TAG$1] = 'z';
|
353
|
+
|
354
|
+
var toStringTagSupport = String(test$1) === '[object z]';
|
355
|
+
|
308
356
|
// Detect IE8's incomplete defineProperty implementation
|
309
357
|
var descriptors = !fails(function () {
|
358
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
310
359
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
311
360
|
});
|
312
361
|
|
362
|
+
var isObject = function (it) {
|
363
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
364
|
+
};
|
365
|
+
|
313
366
|
var document$1 = global_1.document;
|
314
367
|
// typeof document.createElement is 'object' in old IE
|
315
|
-
var EXISTS = isObject(document$1) && isObject(document$1.createElement);
|
368
|
+
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
316
369
|
|
317
370
|
var documentCreateElement = function (it) {
|
318
|
-
return EXISTS ? document$1.createElement(it) : {};
|
371
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
319
372
|
};
|
320
373
|
|
321
|
-
//
|
374
|
+
// Thanks to IE8 for its funny defineProperty
|
322
375
|
var ie8DomDefine = !descriptors && !fails(function () {
|
376
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
323
377
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
324
378
|
get: function () { return 7; }
|
325
379
|
}).a != 7;
|
326
380
|
});
|
327
381
|
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
382
|
+
// V8 ~ Chrome 36-
|
383
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
384
|
+
var v8PrototypeDefineBug = descriptors && fails(function () {
|
385
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
386
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
387
|
+
value: 42,
|
388
|
+
writable: false
|
389
|
+
}).prototype != 42;
|
390
|
+
});
|
391
|
+
|
392
|
+
var String$3 = global_1.String;
|
393
|
+
var TypeError$7 = global_1.TypeError;
|
394
|
+
|
395
|
+
// `Assert: Type(argument) is Object`
|
396
|
+
var anObject = function (argument) {
|
397
|
+
if (isObject(argument)) return argument;
|
398
|
+
throw TypeError$7(String$3(argument) + ' is not an object');
|
399
|
+
};
|
400
|
+
|
401
|
+
var call = Function.prototype.call;
|
402
|
+
|
403
|
+
var functionCall = functionBindNative ? call.bind(call) : function () {
|
404
|
+
return call.apply(call, arguments);
|
405
|
+
};
|
406
|
+
|
407
|
+
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
408
|
+
|
409
|
+
var Object$3 = global_1.Object;
|
410
|
+
|
411
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
412
|
+
return typeof it == 'symbol';
|
413
|
+
} : function (it) {
|
414
|
+
var $Symbol = getBuiltIn('Symbol');
|
415
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
|
416
|
+
};
|
417
|
+
|
418
|
+
var String$2 = global_1.String;
|
419
|
+
|
420
|
+
var tryToString = function (argument) {
|
421
|
+
try {
|
422
|
+
return String$2(argument);
|
423
|
+
} catch (error) {
|
424
|
+
return 'Object';
|
425
|
+
}
|
426
|
+
};
|
427
|
+
|
428
|
+
var TypeError$6 = global_1.TypeError;
|
429
|
+
|
430
|
+
// `Assert: IsCallable(argument) is true`
|
431
|
+
var aCallable = function (argument) {
|
432
|
+
if (isCallable(argument)) return argument;
|
433
|
+
throw TypeError$6(tryToString(argument) + ' is not a function');
|
434
|
+
};
|
435
|
+
|
436
|
+
// `GetMethod` abstract operation
|
437
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
438
|
+
var getMethod = function (V, P) {
|
439
|
+
var func = V[P];
|
440
|
+
return func == null ? undefined : aCallable(func);
|
441
|
+
};
|
442
|
+
|
443
|
+
var TypeError$5 = global_1.TypeError;
|
444
|
+
|
445
|
+
// `OrdinaryToPrimitive` abstract operation
|
446
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
447
|
+
var ordinaryToPrimitive = function (input, pref) {
|
448
|
+
var fn, val;
|
449
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
450
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
451
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
452
|
+
throw TypeError$5("Can't convert object to primitive value");
|
332
453
|
};
|
333
454
|
|
455
|
+
var TypeError$4 = global_1.TypeError;
|
456
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
457
|
+
|
334
458
|
// `ToPrimitive` abstract operation
|
335
459
|
// https://tc39.es/ecma262/#sec-toprimitive
|
336
|
-
|
337
|
-
|
338
|
-
|
339
|
-
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
460
|
+
var toPrimitive = function (input, pref) {
|
461
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
462
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
463
|
+
var result;
|
464
|
+
if (exoticToPrim) {
|
465
|
+
if (pref === undefined) pref = 'default';
|
466
|
+
result = functionCall(exoticToPrim, input, pref);
|
467
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
468
|
+
throw TypeError$4("Can't convert object to primitive value");
|
469
|
+
}
|
470
|
+
if (pref === undefined) pref = 'number';
|
471
|
+
return ordinaryToPrimitive(input, pref);
|
472
|
+
};
|
473
|
+
|
474
|
+
// `ToPropertyKey` abstract operation
|
475
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
476
|
+
var toPropertyKey = function (argument) {
|
477
|
+
var key = toPrimitive(argument, 'string');
|
478
|
+
return isSymbol(key) ? key : key + '';
|
345
479
|
};
|
346
480
|
|
347
|
-
var
|
481
|
+
var TypeError$3 = global_1.TypeError;
|
482
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
483
|
+
var $defineProperty = Object.defineProperty;
|
484
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
485
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
486
|
+
var ENUMERABLE = 'enumerable';
|
487
|
+
var CONFIGURABLE$1 = 'configurable';
|
488
|
+
var WRITABLE = 'writable';
|
348
489
|
|
349
490
|
// `Object.defineProperty` method
|
350
491
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
351
|
-
var f$
|
492
|
+
var f$5 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
352
493
|
anObject(O);
|
353
|
-
P =
|
494
|
+
P = toPropertyKey(P);
|
495
|
+
anObject(Attributes);
|
496
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
497
|
+
var current = $getOwnPropertyDescriptor$1(O, P);
|
498
|
+
if (current && current[WRITABLE]) {
|
499
|
+
O[P] = Attributes.value;
|
500
|
+
Attributes = {
|
501
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
502
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
503
|
+
writable: false
|
504
|
+
};
|
505
|
+
}
|
506
|
+
} return $defineProperty(O, P, Attributes);
|
507
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
508
|
+
anObject(O);
|
509
|
+
P = toPropertyKey(P);
|
354
510
|
anObject(Attributes);
|
355
511
|
if (ie8DomDefine) try {
|
356
|
-
return
|
512
|
+
return $defineProperty(O, P, Attributes);
|
357
513
|
} catch (error) { /* empty */ }
|
358
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
514
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$3('Accessors not supported');
|
359
515
|
if ('value' in Attributes) O[P] = Attributes.value;
|
360
516
|
return O;
|
361
517
|
};
|
362
518
|
|
363
519
|
var objectDefineProperty = {
|
364
|
-
f: f$
|
520
|
+
f: f$5
|
365
521
|
};
|
366
522
|
|
367
523
|
var createPropertyDescriptor = function (bitmap, value) {
|
@@ -380,138 +536,377 @@
|
|
380
536
|
return object;
|
381
537
|
};
|
382
538
|
|
383
|
-
var
|
539
|
+
var functionToString$1 = functionUncurryThis(Function.toString);
|
540
|
+
|
541
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
542
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
543
|
+
sharedStore.inspectSource = function (it) {
|
544
|
+
return functionToString$1(it);
|
545
|
+
};
|
546
|
+
}
|
547
|
+
|
548
|
+
var inspectSource = sharedStore.inspectSource;
|
549
|
+
|
550
|
+
var WeakMap$1 = global_1.WeakMap;
|
551
|
+
|
552
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
553
|
+
|
554
|
+
var keys = shared('keys');
|
555
|
+
|
556
|
+
var sharedKey = function (key) {
|
557
|
+
return keys[key] || (keys[key] = uid(key));
|
558
|
+
};
|
559
|
+
|
560
|
+
var hiddenKeys$1 = {};
|
561
|
+
|
562
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
563
|
+
var TypeError$2 = global_1.TypeError;
|
564
|
+
var WeakMap = global_1.WeakMap;
|
565
|
+
var set, get, has;
|
566
|
+
|
567
|
+
var enforce = function (it) {
|
568
|
+
return has(it) ? get(it) : set(it, {});
|
569
|
+
};
|
570
|
+
|
571
|
+
var getterFor = function (TYPE) {
|
572
|
+
return function (it) {
|
573
|
+
var state;
|
574
|
+
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
575
|
+
throw TypeError$2('Incompatible receiver, ' + TYPE + ' required');
|
576
|
+
} return state;
|
577
|
+
};
|
578
|
+
};
|
579
|
+
|
580
|
+
if (nativeWeakMap || sharedStore.state) {
|
581
|
+
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
582
|
+
var wmget = functionUncurryThis(store.get);
|
583
|
+
var wmhas = functionUncurryThis(store.has);
|
584
|
+
var wmset = functionUncurryThis(store.set);
|
585
|
+
set = function (it, metadata) {
|
586
|
+
if (wmhas(store, it)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
587
|
+
metadata.facade = it;
|
588
|
+
wmset(store, it, metadata);
|
589
|
+
return metadata;
|
590
|
+
};
|
591
|
+
get = function (it) {
|
592
|
+
return wmget(store, it) || {};
|
593
|
+
};
|
594
|
+
has = function (it) {
|
595
|
+
return wmhas(store, it);
|
596
|
+
};
|
597
|
+
} else {
|
598
|
+
var STATE = sharedKey('state');
|
599
|
+
hiddenKeys$1[STATE] = true;
|
600
|
+
set = function (it, metadata) {
|
601
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$2(OBJECT_ALREADY_INITIALIZED);
|
602
|
+
metadata.facade = it;
|
603
|
+
createNonEnumerableProperty(it, STATE, metadata);
|
604
|
+
return metadata;
|
605
|
+
};
|
606
|
+
get = function (it) {
|
607
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
608
|
+
};
|
609
|
+
has = function (it) {
|
610
|
+
return hasOwnProperty_1(it, STATE);
|
611
|
+
};
|
612
|
+
}
|
613
|
+
|
614
|
+
var internalState = {
|
615
|
+
set: set,
|
616
|
+
get: get,
|
617
|
+
has: has,
|
618
|
+
enforce: enforce,
|
619
|
+
getterFor: getterFor
|
620
|
+
};
|
621
|
+
|
622
|
+
var FunctionPrototype$1 = Function.prototype;
|
623
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
624
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
625
|
+
|
626
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
627
|
+
// additional protection from minified / mangled / dropped function names
|
628
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
629
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
630
|
+
|
631
|
+
var functionName = {
|
632
|
+
EXISTS: EXISTS,
|
633
|
+
PROPER: PROPER,
|
634
|
+
CONFIGURABLE: CONFIGURABLE
|
635
|
+
};
|
636
|
+
|
637
|
+
var redefine = createCommonjsModule(function (module) {
|
638
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
639
|
+
|
640
|
+
var getInternalState = internalState.get;
|
641
|
+
var enforceInternalState = internalState.enforce;
|
642
|
+
var TEMPLATE = String(String).split('String');
|
643
|
+
|
644
|
+
(module.exports = function (O, key, value, options) {
|
645
|
+
var unsafe = options ? !!options.unsafe : false;
|
646
|
+
var simple = options ? !!options.enumerable : false;
|
647
|
+
var noTargetGet = options ? !!options.noTargetGet : false;
|
648
|
+
var name = options && options.name !== undefined ? options.name : key;
|
649
|
+
var state;
|
650
|
+
if (isCallable(value)) {
|
651
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
652
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
653
|
+
}
|
654
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
655
|
+
createNonEnumerableProperty(value, 'name', name);
|
656
|
+
}
|
657
|
+
state = enforceInternalState(value);
|
658
|
+
if (!state.source) {
|
659
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
660
|
+
}
|
661
|
+
}
|
662
|
+
if (O === global_1) {
|
663
|
+
if (simple) O[key] = value;
|
664
|
+
else setGlobal(key, value);
|
665
|
+
return;
|
666
|
+
} else if (!unsafe) {
|
667
|
+
delete O[key];
|
668
|
+
} else if (!noTargetGet && O[key]) {
|
669
|
+
simple = true;
|
670
|
+
}
|
671
|
+
if (simple) O[key] = value;
|
672
|
+
else createNonEnumerableProperty(O, key, value);
|
673
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
674
|
+
})(Function.prototype, 'toString', function toString() {
|
675
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
676
|
+
});
|
677
|
+
});
|
678
|
+
|
679
|
+
var toString = functionUncurryThis({}.toString);
|
680
|
+
var stringSlice = functionUncurryThis(''.slice);
|
681
|
+
|
682
|
+
var classofRaw = function (it) {
|
683
|
+
return stringSlice(toString(it), 8, -1);
|
684
|
+
};
|
685
|
+
|
686
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
687
|
+
var Object$2 = global_1.Object;
|
688
|
+
|
689
|
+
// ES3 wrong here
|
690
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
691
|
+
|
692
|
+
// fallback for IE11 Script Access Denied error
|
693
|
+
var tryGet = function (it, key) {
|
384
694
|
try {
|
385
|
-
|
386
|
-
} catch (error) {
|
387
|
-
|
388
|
-
|
695
|
+
return it[key];
|
696
|
+
} catch (error) { /* empty */ }
|
697
|
+
};
|
698
|
+
|
699
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
700
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
701
|
+
var O, tag, result;
|
702
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
703
|
+
// @@toStringTag case
|
704
|
+
: typeof (tag = tryGet(O = Object$2(it), TO_STRING_TAG)) == 'string' ? tag
|
705
|
+
// builtinTag case
|
706
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
707
|
+
// ES3 arguments fallback
|
708
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
709
|
+
};
|
710
|
+
|
711
|
+
// `Object.prototype.toString` method implementation
|
712
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
713
|
+
var objectToString = toStringTagSupport ? {}.toString : function toString() {
|
714
|
+
return '[object ' + classof(this) + ']';
|
715
|
+
};
|
716
|
+
|
717
|
+
// `Object.prototype.toString` method
|
718
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
719
|
+
if (!toStringTagSupport) {
|
720
|
+
redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
|
721
|
+
}
|
722
|
+
|
723
|
+
// iterable DOM collections
|
724
|
+
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
725
|
+
var domIterables = {
|
726
|
+
CSSRuleList: 0,
|
727
|
+
CSSStyleDeclaration: 0,
|
728
|
+
CSSValueList: 0,
|
729
|
+
ClientRectList: 0,
|
730
|
+
DOMRectList: 0,
|
731
|
+
DOMStringList: 0,
|
732
|
+
DOMTokenList: 1,
|
733
|
+
DataTransferItemList: 0,
|
734
|
+
FileList: 0,
|
735
|
+
HTMLAllCollection: 0,
|
736
|
+
HTMLCollection: 0,
|
737
|
+
HTMLFormElement: 0,
|
738
|
+
HTMLSelectElement: 0,
|
739
|
+
MediaList: 0,
|
740
|
+
MimeTypeArray: 0,
|
741
|
+
NamedNodeMap: 0,
|
742
|
+
NodeList: 1,
|
743
|
+
PaintRequestList: 0,
|
744
|
+
Plugin: 0,
|
745
|
+
PluginArray: 0,
|
746
|
+
SVGLengthList: 0,
|
747
|
+
SVGNumberList: 0,
|
748
|
+
SVGPathSegList: 0,
|
749
|
+
SVGPointList: 0,
|
750
|
+
SVGStringList: 0,
|
751
|
+
SVGTransformList: 0,
|
752
|
+
SourceBufferList: 0,
|
753
|
+
StyleSheetList: 0,
|
754
|
+
TextTrackCueList: 0,
|
755
|
+
TextTrackList: 0,
|
756
|
+
TouchList: 0
|
389
757
|
};
|
390
758
|
|
391
|
-
|
392
|
-
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
759
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
393
760
|
|
394
|
-
var sharedStore = store$1;
|
395
761
|
|
396
|
-
var
|
397
|
-
|
398
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
399
|
-
})('versions', []).push({
|
400
|
-
version: '3.9.1',
|
401
|
-
mode: 'global',
|
402
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
403
|
-
});
|
404
|
-
});
|
762
|
+
var classList = documentCreateElement('span').classList;
|
763
|
+
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
|
405
764
|
|
406
|
-
var
|
765
|
+
var domTokenListPrototype = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
|
407
766
|
|
408
|
-
var
|
409
|
-
|
767
|
+
var bind = functionUncurryThis(functionUncurryThis.bind);
|
768
|
+
|
769
|
+
// optional / simple context binding
|
770
|
+
var functionBindContext = function (fn, that) {
|
771
|
+
aCallable(fn);
|
772
|
+
return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
|
773
|
+
return fn.apply(that, arguments);
|
774
|
+
};
|
410
775
|
};
|
411
776
|
|
412
|
-
var
|
413
|
-
var
|
777
|
+
var Object$1 = global_1.Object;
|
778
|
+
var split = functionUncurryThis(''.split);
|
414
779
|
|
415
|
-
|
416
|
-
|
417
|
-
|
780
|
+
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
781
|
+
var indexedObject = fails(function () {
|
782
|
+
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
783
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
784
|
+
return !Object$1('z').propertyIsEnumerable(0);
|
785
|
+
}) ? function (it) {
|
786
|
+
return classofRaw(it) == 'String' ? split(it, '') : Object$1(it);
|
787
|
+
} : Object$1;
|
788
|
+
|
789
|
+
var ceil = Math.ceil;
|
790
|
+
var floor$1 = Math.floor;
|
418
791
|
|
419
|
-
|
792
|
+
// `ToIntegerOrInfinity` abstract operation
|
793
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
794
|
+
var toIntegerOrInfinity = function (argument) {
|
795
|
+
var number = +argument;
|
796
|
+
// eslint-disable-next-line no-self-compare -- safe
|
797
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
|
798
|
+
};
|
420
799
|
|
421
|
-
var
|
800
|
+
var min$1 = Math.min;
|
422
801
|
|
423
|
-
|
424
|
-
|
802
|
+
// `ToLength` abstract operation
|
803
|
+
// https://tc39.es/ecma262/#sec-tolength
|
804
|
+
var toLength = function (argument) {
|
805
|
+
return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
425
806
|
};
|
426
807
|
|
427
|
-
|
428
|
-
|
429
|
-
|
808
|
+
// `LengthOfArrayLike` abstract operation
|
809
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
810
|
+
var lengthOfArrayLike = function (obj) {
|
811
|
+
return toLength(obj.length);
|
430
812
|
};
|
431
813
|
|
432
|
-
|
814
|
+
// `IsArray` abstract operation
|
815
|
+
// https://tc39.es/ecma262/#sec-isarray
|
816
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
817
|
+
var isArray = Array.isArray || function isArray(argument) {
|
818
|
+
return classofRaw(argument) == 'Array';
|
819
|
+
};
|
433
820
|
|
434
|
-
var
|
435
|
-
var
|
436
|
-
var
|
437
|
-
var
|
821
|
+
var noop = function () { /* empty */ };
|
822
|
+
var empty = [];
|
823
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
824
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
825
|
+
var exec = functionUncurryThis(constructorRegExp.exec);
|
826
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
438
827
|
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
if (match) version = match[1];
|
828
|
+
var isConstructorModern = function isConstructor(argument) {
|
829
|
+
if (!isCallable(argument)) return false;
|
830
|
+
try {
|
831
|
+
construct(noop, empty, argument);
|
832
|
+
return true;
|
833
|
+
} catch (error) {
|
834
|
+
return false;
|
447
835
|
}
|
448
|
-
}
|
449
|
-
|
450
|
-
var engineV8Version = version && +version;
|
451
|
-
|
452
|
-
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
453
|
-
/* global Symbol -- required for testing */
|
454
|
-
return !Symbol.sham &&
|
455
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
456
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
457
|
-
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
|
458
|
-
});
|
836
|
+
};
|
459
837
|
|
460
|
-
var
|
461
|
-
|
462
|
-
|
463
|
-
|
838
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
839
|
+
if (!isCallable(argument)) return false;
|
840
|
+
switch (classof(argument)) {
|
841
|
+
case 'AsyncFunction':
|
842
|
+
case 'GeneratorFunction':
|
843
|
+
case 'AsyncGeneratorFunction': return false;
|
844
|
+
}
|
845
|
+
try {
|
846
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
847
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
848
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
849
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
850
|
+
} catch (error) {
|
851
|
+
return true;
|
852
|
+
}
|
853
|
+
};
|
464
854
|
|
465
|
-
|
466
|
-
var Symbol$1 = global_1.Symbol;
|
467
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
855
|
+
isConstructorLegacy.sham = true;
|
468
856
|
|
469
|
-
|
470
|
-
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
}
|
476
|
-
|
477
|
-
};
|
857
|
+
// `IsConstructor` abstract operation
|
858
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
859
|
+
var isConstructor = !construct || fails(function () {
|
860
|
+
var called;
|
861
|
+
return isConstructorModern(isConstructorModern.call)
|
862
|
+
|| !isConstructorModern(Object)
|
863
|
+
|| !isConstructorModern(function () { called = true; })
|
864
|
+
|| called;
|
865
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
478
866
|
|
479
867
|
var SPECIES$2 = wellKnownSymbol('species');
|
868
|
+
var Array$3 = global_1.Array;
|
480
869
|
|
481
|
-
// `ArraySpeciesCreate` abstract operation
|
870
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
482
871
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
483
|
-
var
|
872
|
+
var arraySpeciesConstructor = function (originalArray) {
|
484
873
|
var C;
|
485
874
|
if (isArray(originalArray)) {
|
486
875
|
C = originalArray.constructor;
|
487
876
|
// cross-realm fallback
|
488
|
-
if (
|
877
|
+
if (isConstructor(C) && (C === Array$3 || isArray(C.prototype))) C = undefined;
|
489
878
|
else if (isObject(C)) {
|
490
879
|
C = C[SPECIES$2];
|
491
880
|
if (C === null) C = undefined;
|
492
881
|
}
|
493
|
-
} return
|
882
|
+
} return C === undefined ? Array$3 : C;
|
883
|
+
};
|
884
|
+
|
885
|
+
// `ArraySpeciesCreate` abstract operation
|
886
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
887
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
888
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
494
889
|
};
|
495
890
|
|
496
|
-
var push = [].push;
|
891
|
+
var push$2 = functionUncurryThis([].push);
|
497
892
|
|
498
|
-
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex,
|
893
|
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
499
894
|
var createMethod$1 = function (TYPE) {
|
500
895
|
var IS_MAP = TYPE == 1;
|
501
896
|
var IS_FILTER = TYPE == 2;
|
502
897
|
var IS_SOME = TYPE == 3;
|
503
898
|
var IS_EVERY = TYPE == 4;
|
504
899
|
var IS_FIND_INDEX = TYPE == 6;
|
505
|
-
var
|
900
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
506
901
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
507
902
|
return function ($this, callbackfn, that, specificCreate) {
|
508
903
|
var O = toObject($this);
|
509
904
|
var self = indexedObject(O);
|
510
|
-
var boundFunction = functionBindContext(callbackfn, that
|
511
|
-
var length =
|
905
|
+
var boundFunction = functionBindContext(callbackfn, that);
|
906
|
+
var length = lengthOfArrayLike(self);
|
512
907
|
var index = 0;
|
513
908
|
var create = specificCreate || arraySpeciesCreate;
|
514
|
-
var target = IS_MAP ? create($this, length) : IS_FILTER ||
|
909
|
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
515
910
|
var value, result;
|
516
911
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
517
912
|
value = self[index];
|
@@ -522,10 +917,10 @@
|
|
522
917
|
case 3: return true; // some
|
523
918
|
case 5: return value; // find
|
524
919
|
case 6: return index; // findIndex
|
525
|
-
case 2: push
|
920
|
+
case 2: push$2(target, value); // filter
|
526
921
|
} else switch (TYPE) {
|
527
922
|
case 4: return false; // every
|
528
|
-
case 7: push
|
923
|
+
case 7: push$2(target, value); // filterReject
|
529
924
|
}
|
530
925
|
}
|
531
926
|
}
|
@@ -555,16 +950,16 @@
|
|
555
950
|
// `Array.prototype.findIndex` method
|
556
951
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
557
952
|
findIndex: createMethod$1(6),
|
558
|
-
// `Array.prototype.
|
953
|
+
// `Array.prototype.filterReject` method
|
559
954
|
// https://github.com/tc39/proposal-array-filtering
|
560
|
-
|
955
|
+
filterReject: createMethod$1(7)
|
561
956
|
};
|
562
957
|
|
563
958
|
var arrayMethodIsStrict = function (METHOD_NAME, argument) {
|
564
959
|
var method = [][METHOD_NAME];
|
565
960
|
return !!method && fails(function () {
|
566
|
-
// eslint-disable-next-line no-useless-call
|
567
|
-
method.call(null, argument || function () {
|
961
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
962
|
+
method.call(null, argument || function () { return 1; }, 1);
|
568
963
|
});
|
569
964
|
};
|
570
965
|
|
@@ -577,34 +972,42 @@
|
|
577
972
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
578
973
|
var arrayForEach = !STRICT_METHOD$2 ? function forEach(callbackfn /* , thisArg */) {
|
579
974
|
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
975
|
+
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
580
976
|
} : [].forEach;
|
581
977
|
|
582
|
-
|
583
|
-
var Collection = global_1[COLLECTION_NAME];
|
584
|
-
var CollectionPrototype = Collection && Collection.prototype;
|
978
|
+
var handlePrototype = function (CollectionPrototype) {
|
585
979
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
586
980
|
if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try {
|
587
981
|
createNonEnumerableProperty(CollectionPrototype, 'forEach', arrayForEach);
|
588
982
|
} catch (error) {
|
589
983
|
CollectionPrototype.forEach = arrayForEach;
|
590
984
|
}
|
985
|
+
};
|
986
|
+
|
987
|
+
for (var COLLECTION_NAME in domIterables) {
|
988
|
+
if (domIterables[COLLECTION_NAME]) {
|
989
|
+
handlePrototype(global_1[COLLECTION_NAME] && global_1[COLLECTION_NAME].prototype);
|
990
|
+
}
|
591
991
|
}
|
592
992
|
|
593
|
-
|
993
|
+
handlePrototype(domTokenListPrototype);
|
994
|
+
|
995
|
+
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
996
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
594
997
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
595
998
|
|
596
999
|
// Nashorn ~ JDK8 bug
|
597
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 &&
|
1000
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
598
1001
|
|
599
1002
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
600
1003
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
601
|
-
var f$
|
1004
|
+
var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
602
1005
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
603
1006
|
return !!descriptor && descriptor.enumerable;
|
604
|
-
} :
|
1007
|
+
} : $propertyIsEnumerable;
|
605
1008
|
|
606
1009
|
var objectPropertyIsEnumerable = {
|
607
|
-
f: f$
|
1010
|
+
f: f$4
|
608
1011
|
};
|
609
1012
|
|
610
1013
|
// toObject with fallback for non-array-like ES3 strings
|
@@ -615,154 +1018,40 @@
|
|
615
1018
|
return indexedObject(requireObjectCoercible(it));
|
616
1019
|
};
|
617
1020
|
|
618
|
-
|
1021
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
1022
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
619
1023
|
|
620
1024
|
// `Object.getOwnPropertyDescriptor` method
|
621
1025
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
622
|
-
var f$
|
1026
|
+
var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
|
623
1027
|
O = toIndexedObject(O);
|
624
|
-
P =
|
1028
|
+
P = toPropertyKey(P);
|
625
1029
|
if (ie8DomDefine) try {
|
626
|
-
return
|
1030
|
+
return $getOwnPropertyDescriptor(O, P);
|
627
1031
|
} catch (error) { /* empty */ }
|
628
|
-
if (
|
1032
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
|
629
1033
|
};
|
630
1034
|
|
631
1035
|
var objectGetOwnPropertyDescriptor = {
|
632
|
-
f: f$
|
633
|
-
};
|
634
|
-
|
635
|
-
var functionToString = Function.toString;
|
636
|
-
|
637
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
638
|
-
if (typeof sharedStore.inspectSource != 'function') {
|
639
|
-
sharedStore.inspectSource = function (it) {
|
640
|
-
return functionToString.call(it);
|
641
|
-
};
|
642
|
-
}
|
643
|
-
|
644
|
-
var inspectSource = sharedStore.inspectSource;
|
645
|
-
|
646
|
-
var WeakMap$1 = global_1.WeakMap;
|
647
|
-
|
648
|
-
var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
|
649
|
-
|
650
|
-
var keys = shared('keys');
|
651
|
-
|
652
|
-
var sharedKey = function (key) {
|
653
|
-
return keys[key] || (keys[key] = uid(key));
|
654
|
-
};
|
655
|
-
|
656
|
-
var hiddenKeys$1 = {};
|
657
|
-
|
658
|
-
var WeakMap = global_1.WeakMap;
|
659
|
-
var set, get, has;
|
660
|
-
|
661
|
-
var enforce = function (it) {
|
662
|
-
return has(it) ? get(it) : set(it, {});
|
663
|
-
};
|
664
|
-
|
665
|
-
var getterFor = function (TYPE) {
|
666
|
-
return function (it) {
|
667
|
-
var state;
|
668
|
-
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
669
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
670
|
-
} return state;
|
671
|
-
};
|
672
|
-
};
|
673
|
-
|
674
|
-
if (nativeWeakMap) {
|
675
|
-
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
676
|
-
var wmget = store.get;
|
677
|
-
var wmhas = store.has;
|
678
|
-
var wmset = store.set;
|
679
|
-
set = function (it, metadata) {
|
680
|
-
metadata.facade = it;
|
681
|
-
wmset.call(store, it, metadata);
|
682
|
-
return metadata;
|
683
|
-
};
|
684
|
-
get = function (it) {
|
685
|
-
return wmget.call(store, it) || {};
|
686
|
-
};
|
687
|
-
has = function (it) {
|
688
|
-
return wmhas.call(store, it);
|
689
|
-
};
|
690
|
-
} else {
|
691
|
-
var STATE = sharedKey('state');
|
692
|
-
hiddenKeys$1[STATE] = true;
|
693
|
-
set = function (it, metadata) {
|
694
|
-
metadata.facade = it;
|
695
|
-
createNonEnumerableProperty(it, STATE, metadata);
|
696
|
-
return metadata;
|
697
|
-
};
|
698
|
-
get = function (it) {
|
699
|
-
return has$1(it, STATE) ? it[STATE] : {};
|
700
|
-
};
|
701
|
-
has = function (it) {
|
702
|
-
return has$1(it, STATE);
|
703
|
-
};
|
704
|
-
}
|
705
|
-
|
706
|
-
var internalState = {
|
707
|
-
set: set,
|
708
|
-
get: get,
|
709
|
-
has: has,
|
710
|
-
enforce: enforce,
|
711
|
-
getterFor: getterFor
|
1036
|
+
f: f$3
|
712
1037
|
};
|
713
1038
|
|
714
|
-
var
|
715
|
-
var getInternalState = internalState.get;
|
716
|
-
var enforceInternalState = internalState.enforce;
|
717
|
-
var TEMPLATE = String(String).split('String');
|
718
|
-
|
719
|
-
(module.exports = function (O, key, value, options) {
|
720
|
-
var unsafe = options ? !!options.unsafe : false;
|
721
|
-
var simple = options ? !!options.enumerable : false;
|
722
|
-
var noTargetGet = options ? !!options.noTargetGet : false;
|
723
|
-
var state;
|
724
|
-
if (typeof value == 'function') {
|
725
|
-
if (typeof key == 'string' && !has$1(value, 'name')) {
|
726
|
-
createNonEnumerableProperty(value, 'name', key);
|
727
|
-
}
|
728
|
-
state = enforceInternalState(value);
|
729
|
-
if (!state.source) {
|
730
|
-
state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
731
|
-
}
|
732
|
-
}
|
733
|
-
if (O === global_1) {
|
734
|
-
if (simple) O[key] = value;
|
735
|
-
else setGlobal(key, value);
|
736
|
-
return;
|
737
|
-
} else if (!unsafe) {
|
738
|
-
delete O[key];
|
739
|
-
} else if (!noTargetGet && O[key]) {
|
740
|
-
simple = true;
|
741
|
-
}
|
742
|
-
if (simple) O[key] = value;
|
743
|
-
else createNonEnumerableProperty(O, key, value);
|
744
|
-
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
745
|
-
})(Function.prototype, 'toString', function toString() {
|
746
|
-
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
747
|
-
});
|
748
|
-
});
|
749
|
-
|
750
|
-
var max$1 = Math.max;
|
1039
|
+
var max$2 = Math.max;
|
751
1040
|
var min = Math.min;
|
752
1041
|
|
753
1042
|
// Helper for a popular repeating case of the spec:
|
754
1043
|
// Let integer be ? ToInteger(index).
|
755
1044
|
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
756
1045
|
var toAbsoluteIndex = function (index, length) {
|
757
|
-
var integer =
|
758
|
-
return integer < 0 ? max$
|
1046
|
+
var integer = toIntegerOrInfinity(index);
|
1047
|
+
return integer < 0 ? max$2(integer + length, 0) : min(integer, length);
|
759
1048
|
};
|
760
1049
|
|
761
1050
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
762
1051
|
var createMethod = function (IS_INCLUDES) {
|
763
1052
|
return function ($this, el, fromIndex) {
|
764
1053
|
var O = toIndexedObject($this);
|
765
|
-
var length =
|
1054
|
+
var length = lengthOfArrayLike(O);
|
766
1055
|
var index = toAbsoluteIndex(fromIndex, length);
|
767
1056
|
var value;
|
768
1057
|
// Array#includes uses SameValueZero equality algorithm
|
@@ -790,15 +1079,17 @@
|
|
790
1079
|
var indexOf = arrayIncludes.indexOf;
|
791
1080
|
|
792
1081
|
|
1082
|
+
var push$1 = functionUncurryThis([].push);
|
1083
|
+
|
793
1084
|
var objectKeysInternal = function (object, names) {
|
794
1085
|
var O = toIndexedObject(object);
|
795
1086
|
var i = 0;
|
796
1087
|
var result = [];
|
797
1088
|
var key;
|
798
|
-
for (key in O) !
|
1089
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$1(result, key);
|
799
1090
|
// Don't enum bug & hidden keys
|
800
|
-
while (names.length > i) if (
|
801
|
-
~indexOf(result, key) ||
|
1091
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
1092
|
+
~indexOf(result, key) || push$1(result, key);
|
802
1093
|
}
|
803
1094
|
return result;
|
804
1095
|
};
|
@@ -818,34 +1109,40 @@
|
|
818
1109
|
|
819
1110
|
// `Object.getOwnPropertyNames` method
|
820
1111
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
821
|
-
|
1112
|
+
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
1113
|
+
var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
822
1114
|
return objectKeysInternal(O, hiddenKeys);
|
823
1115
|
};
|
824
1116
|
|
825
1117
|
var objectGetOwnPropertyNames = {
|
826
|
-
f: f$
|
1118
|
+
f: f$2
|
827
1119
|
};
|
828
1120
|
|
829
|
-
|
1121
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
1122
|
+
var f$1 = Object.getOwnPropertySymbols;
|
830
1123
|
|
831
1124
|
var objectGetOwnPropertySymbols = {
|
832
|
-
f: f
|
1125
|
+
f: f$1
|
833
1126
|
};
|
834
1127
|
|
1128
|
+
var concat$1 = functionUncurryThis([].concat);
|
1129
|
+
|
835
1130
|
// all object keys, includes non-enumerable and symbols
|
836
1131
|
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
837
1132
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
838
1133
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
839
|
-
return getOwnPropertySymbols ?
|
1134
|
+
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
840
1135
|
};
|
841
1136
|
|
842
|
-
var copyConstructorProperties = function (target, source) {
|
1137
|
+
var copyConstructorProperties = function (target, source, exceptions) {
|
843
1138
|
var keys = ownKeys(source);
|
844
1139
|
var defineProperty = objectDefineProperty.f;
|
845
1140
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
846
1141
|
for (var i = 0; i < keys.length; i++) {
|
847
1142
|
var key = keys[i];
|
848
|
-
if (!
|
1143
|
+
if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
|
1144
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
1145
|
+
}
|
849
1146
|
}
|
850
1147
|
};
|
851
1148
|
|
@@ -855,7 +1152,7 @@
|
|
855
1152
|
var value = data[normalize(feature)];
|
856
1153
|
return value == POLYFILL ? true
|
857
1154
|
: value == NATIVE ? false
|
858
|
-
:
|
1155
|
+
: isCallable(detection) ? fails(detection)
|
859
1156
|
: !!detection;
|
860
1157
|
};
|
861
1158
|
|
@@ -889,6 +1186,7 @@
|
|
889
1186
|
options.sham - add a flag to not completely full polyfills
|
890
1187
|
options.enumerable - export as enumerable property
|
891
1188
|
options.noTargetGet - prevent calling a getter on target
|
1189
|
+
options.name - the .name of the function if it does not match the key
|
892
1190
|
*/
|
893
1191
|
var _export = function (options, source) {
|
894
1192
|
var TARGET = options.target;
|
@@ -911,7 +1209,7 @@
|
|
911
1209
|
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
912
1210
|
// contained in target
|
913
1211
|
if (!FORCED && targetProperty !== undefined) {
|
914
|
-
if (typeof sourceProperty
|
1212
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
915
1213
|
copyConstructorProperties(sourceProperty, targetProperty);
|
916
1214
|
}
|
917
1215
|
// add a flag to not completely full polyfills
|
@@ -924,7 +1222,7 @@
|
|
924
1222
|
};
|
925
1223
|
|
926
1224
|
var createProperty = function (object, key, value) {
|
927
|
-
var propertyKey =
|
1225
|
+
var propertyKey = toPropertyKey(key);
|
928
1226
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
929
1227
|
else object[propertyKey] = value;
|
930
1228
|
};
|
@@ -945,11 +1243,13 @@
|
|
945
1243
|
});
|
946
1244
|
};
|
947
1245
|
|
1246
|
+
var arraySlice = functionUncurryThis([].slice);
|
1247
|
+
|
948
1248
|
var HAS_SPECIES_SUPPORT$1 = arrayMethodHasSpeciesSupport('slice');
|
949
1249
|
|
950
1250
|
var SPECIES = wellKnownSymbol('species');
|
951
|
-
var
|
952
|
-
var max = Math.max;
|
1251
|
+
var Array$2 = global_1.Array;
|
1252
|
+
var max$1 = Math.max;
|
953
1253
|
|
954
1254
|
// `Array.prototype.slice` method
|
955
1255
|
// https://tc39.es/ecma262/#sec-array.prototype.slice
|
@@ -957,7 +1257,7 @@
|
|
957
1257
|
_export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$1 }, {
|
958
1258
|
slice: function slice(start, end) {
|
959
1259
|
var O = toIndexedObject(this);
|
960
|
-
var length =
|
1260
|
+
var length = lengthOfArrayLike(O);
|
961
1261
|
var k = toAbsoluteIndex(start, length);
|
962
1262
|
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
963
1263
|
// inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
|
@@ -965,25 +1265,99 @@
|
|
965
1265
|
if (isArray(O)) {
|
966
1266
|
Constructor = O.constructor;
|
967
1267
|
// cross-realm fallback
|
968
|
-
if (
|
1268
|
+
if (isConstructor(Constructor) && (Constructor === Array$2 || isArray(Constructor.prototype))) {
|
969
1269
|
Constructor = undefined;
|
970
1270
|
} else if (isObject(Constructor)) {
|
971
1271
|
Constructor = Constructor[SPECIES];
|
972
1272
|
if (Constructor === null) Constructor = undefined;
|
973
1273
|
}
|
974
|
-
if (Constructor === Array || Constructor === undefined) {
|
975
|
-
return
|
1274
|
+
if (Constructor === Array$2 || Constructor === undefined) {
|
1275
|
+
return arraySlice(O, k, fin);
|
976
1276
|
}
|
977
1277
|
}
|
978
|
-
result = new (Constructor === undefined ? Array : Constructor)(max(fin - k, 0));
|
1278
|
+
result = new (Constructor === undefined ? Array$2 : Constructor)(max$1(fin - k, 0));
|
979
1279
|
for (n = 0; k < fin; k++, n++) if (k in O) createProperty(result, n, O[k]);
|
980
1280
|
result.length = n;
|
981
1281
|
return result;
|
982
1282
|
}
|
983
1283
|
});
|
984
1284
|
|
1285
|
+
var String$1 = global_1.String;
|
1286
|
+
|
1287
|
+
var toString_1 = function (argument) {
|
1288
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
1289
|
+
return String$1(argument);
|
1290
|
+
};
|
1291
|
+
|
1292
|
+
var Array$1 = global_1.Array;
|
1293
|
+
var max = Math.max;
|
1294
|
+
|
1295
|
+
var arraySliceSimple = function (O, start, end) {
|
1296
|
+
var length = lengthOfArrayLike(O);
|
1297
|
+
var k = toAbsoluteIndex(start, length);
|
1298
|
+
var fin = toAbsoluteIndex(end === undefined ? length : end, length);
|
1299
|
+
var result = Array$1(max(fin - k, 0));
|
1300
|
+
for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
|
1301
|
+
result.length = n;
|
1302
|
+
return result;
|
1303
|
+
};
|
1304
|
+
|
1305
|
+
var floor = Math.floor;
|
1306
|
+
|
1307
|
+
var mergeSort = function (array, comparefn) {
|
1308
|
+
var length = array.length;
|
1309
|
+
var middle = floor(length / 2);
|
1310
|
+
return length < 8 ? insertionSort(array, comparefn) : merge(
|
1311
|
+
array,
|
1312
|
+
mergeSort(arraySliceSimple(array, 0, middle), comparefn),
|
1313
|
+
mergeSort(arraySliceSimple(array, middle), comparefn),
|
1314
|
+
comparefn
|
1315
|
+
);
|
1316
|
+
};
|
1317
|
+
|
1318
|
+
var insertionSort = function (array, comparefn) {
|
1319
|
+
var length = array.length;
|
1320
|
+
var i = 1;
|
1321
|
+
var element, j;
|
1322
|
+
|
1323
|
+
while (i < length) {
|
1324
|
+
j = i;
|
1325
|
+
element = array[i];
|
1326
|
+
while (j && comparefn(array[j - 1], element) > 0) {
|
1327
|
+
array[j] = array[--j];
|
1328
|
+
}
|
1329
|
+
if (j !== i++) array[j] = element;
|
1330
|
+
} return array;
|
1331
|
+
};
|
1332
|
+
|
1333
|
+
var merge = function (array, left, right, comparefn) {
|
1334
|
+
var llength = left.length;
|
1335
|
+
var rlength = right.length;
|
1336
|
+
var lindex = 0;
|
1337
|
+
var rindex = 0;
|
1338
|
+
|
1339
|
+
while (lindex < llength || rindex < rlength) {
|
1340
|
+
array[lindex + rindex] = (lindex < llength && rindex < rlength)
|
1341
|
+
? comparefn(left[lindex], right[rindex]) <= 0 ? left[lindex++] : right[rindex++]
|
1342
|
+
: lindex < llength ? left[lindex++] : right[rindex++];
|
1343
|
+
} return array;
|
1344
|
+
};
|
1345
|
+
|
1346
|
+
var arraySort = mergeSort;
|
1347
|
+
|
1348
|
+
var firefox = engineUserAgent.match(/firefox\/(\d+)/i);
|
1349
|
+
|
1350
|
+
var engineFfVersion = !!firefox && +firefox[1];
|
1351
|
+
|
1352
|
+
var engineIsIeOrEdge = /MSIE|Trident/.test(engineUserAgent);
|
1353
|
+
|
1354
|
+
var webkit = engineUserAgent.match(/AppleWebKit\/(\d+)\./);
|
1355
|
+
|
1356
|
+
var engineWebkitVersion = !!webkit && +webkit[1];
|
1357
|
+
|
985
1358
|
var test = [];
|
986
|
-
var
|
1359
|
+
var un$Sort = functionUncurryThis(test.sort);
|
1360
|
+
var push = functionUncurryThis(test.push);
|
987
1361
|
|
988
1362
|
// IE8-
|
989
1363
|
var FAILS_ON_UNDEFINED = fails(function () {
|
@@ -996,19 +1370,83 @@
|
|
996
1370
|
// Old WebKit
|
997
1371
|
var STRICT_METHOD$1 = arrayMethodIsStrict('sort');
|
998
1372
|
|
999
|
-
var
|
1373
|
+
var STABLE_SORT = !fails(function () {
|
1374
|
+
// feature detection can be too slow, so check engines versions
|
1375
|
+
if (engineV8Version) return engineV8Version < 70;
|
1376
|
+
if (engineFfVersion && engineFfVersion > 3) return;
|
1377
|
+
if (engineIsIeOrEdge) return true;
|
1378
|
+
if (engineWebkitVersion) return engineWebkitVersion < 603;
|
1379
|
+
|
1380
|
+
var result = '';
|
1381
|
+
var code, chr, value, index;
|
1382
|
+
|
1383
|
+
// generate an array with more 512 elements (Chakra and old V8 fails only in this case)
|
1384
|
+
for (code = 65; code < 76; code++) {
|
1385
|
+
chr = String.fromCharCode(code);
|
1386
|
+
|
1387
|
+
switch (code) {
|
1388
|
+
case 66: case 69: case 70: case 72: value = 3; break;
|
1389
|
+
case 68: case 71: value = 4; break;
|
1390
|
+
default: value = 2;
|
1391
|
+
}
|
1392
|
+
|
1393
|
+
for (index = 0; index < 47; index++) {
|
1394
|
+
test.push({ k: chr + index, v: value });
|
1395
|
+
}
|
1396
|
+
}
|
1397
|
+
|
1398
|
+
test.sort(function (a, b) { return b.v - a.v; });
|
1399
|
+
|
1400
|
+
for (index = 0; index < test.length; index++) {
|
1401
|
+
chr = test[index].k.charAt(0);
|
1402
|
+
if (result.charAt(result.length - 1) !== chr) result += chr;
|
1403
|
+
}
|
1404
|
+
|
1405
|
+
return result !== 'DGBEFHACIJK';
|
1406
|
+
});
|
1407
|
+
|
1408
|
+
var FORCED$1 = FAILS_ON_UNDEFINED || !FAILS_ON_NULL || !STRICT_METHOD$1 || !STABLE_SORT;
|
1409
|
+
|
1410
|
+
var getSortCompare = function (comparefn) {
|
1411
|
+
return function (x, y) {
|
1412
|
+
if (y === undefined) return -1;
|
1413
|
+
if (x === undefined) return 1;
|
1414
|
+
if (comparefn !== undefined) return +comparefn(x, y) || 0;
|
1415
|
+
return toString_1(x) > toString_1(y) ? 1 : -1;
|
1416
|
+
};
|
1417
|
+
};
|
1000
1418
|
|
1001
1419
|
// `Array.prototype.sort` method
|
1002
1420
|
// https://tc39.es/ecma262/#sec-array.prototype.sort
|
1003
1421
|
_export({ target: 'Array', proto: true, forced: FORCED$1 }, {
|
1004
1422
|
sort: function sort(comparefn) {
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1423
|
+
if (comparefn !== undefined) aCallable(comparefn);
|
1424
|
+
|
1425
|
+
var array = toObject(this);
|
1426
|
+
|
1427
|
+
if (STABLE_SORT) return comparefn === undefined ? un$Sort(array) : un$Sort(array, comparefn);
|
1428
|
+
|
1429
|
+
var items = [];
|
1430
|
+
var arrayLength = lengthOfArrayLike(array);
|
1431
|
+
var itemsLength, index;
|
1432
|
+
|
1433
|
+
for (index = 0; index < arrayLength; index++) {
|
1434
|
+
if (index in array) push(items, array[index]);
|
1435
|
+
}
|
1436
|
+
|
1437
|
+
arraySort(items, getSortCompare(comparefn));
|
1438
|
+
|
1439
|
+
itemsLength = items.length;
|
1440
|
+
index = 0;
|
1441
|
+
|
1442
|
+
while (index < itemsLength) array[index] = items[index++];
|
1443
|
+
while (index < arrayLength) delete array[index++];
|
1444
|
+
|
1445
|
+
return array;
|
1008
1446
|
}
|
1009
1447
|
});
|
1010
1448
|
|
1011
|
-
var
|
1449
|
+
var un$Join = functionUncurryThis([].join);
|
1012
1450
|
|
1013
1451
|
var ES3_STRINGS = indexedObject != Object;
|
1014
1452
|
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
|
@@ -1017,25 +1455,28 @@
|
|
1017
1455
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
1018
1456
|
_export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
|
1019
1457
|
join: function join(separator) {
|
1020
|
-
return
|
1458
|
+
return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
|
1021
1459
|
}
|
1022
1460
|
});
|
1023
1461
|
|
1462
|
+
var FUNCTION_NAME_EXISTS = functionName.EXISTS;
|
1463
|
+
|
1024
1464
|
var defineProperty$1 = objectDefineProperty.f;
|
1025
1465
|
|
1026
1466
|
var FunctionPrototype = Function.prototype;
|
1027
|
-
var
|
1028
|
-
var nameRE =
|
1467
|
+
var functionToString = functionUncurryThis(FunctionPrototype.toString);
|
1468
|
+
var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
|
1469
|
+
var regExpExec = functionUncurryThis(nameRE.exec);
|
1029
1470
|
var NAME = 'name';
|
1030
1471
|
|
1031
1472
|
// Function instances `.name` property
|
1032
1473
|
// https://tc39.es/ecma262/#sec-function-instances-name
|
1033
|
-
if (descriptors && !
|
1474
|
+
if (descriptors && !FUNCTION_NAME_EXISTS) {
|
1034
1475
|
defineProperty$1(FunctionPrototype, NAME, {
|
1035
1476
|
configurable: true,
|
1036
1477
|
get: function () {
|
1037
1478
|
try {
|
1038
|
-
return
|
1479
|
+
return regExpExec(nameRE, functionToString(this))[1];
|
1039
1480
|
} catch (error) {
|
1040
1481
|
return '';
|
1041
1482
|
}
|
@@ -1046,6 +1487,7 @@
|
|
1046
1487
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
1047
1488
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
1048
1489
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1490
|
+
var TypeError$1 = global_1.TypeError;
|
1049
1491
|
|
1050
1492
|
// We can't use this feature detection in V8 since it causes
|
1051
1493
|
// deoptimization and serious performance degradation
|
@@ -1079,11 +1521,11 @@
|
|
1079
1521
|
for (i = -1, length = arguments.length; i < length; i++) {
|
1080
1522
|
E = i === -1 ? O : arguments[i];
|
1081
1523
|
if (isConcatSpreadable(E)) {
|
1082
|
-
len =
|
1083
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1524
|
+
len = lengthOfArrayLike(E);
|
1525
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1084
1526
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
1085
1527
|
} else {
|
1086
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1528
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1087
1529
|
createProperty(A, n++, E);
|
1088
1530
|
}
|
1089
1531
|
}
|
@@ -1094,24 +1536,40 @@
|
|
1094
1536
|
|
1095
1537
|
// `Object.keys` method
|
1096
1538
|
// https://tc39.es/ecma262/#sec-object.keys
|
1539
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
1097
1540
|
var objectKeys = Object.keys || function keys(O) {
|
1098
1541
|
return objectKeysInternal(O, enumBugKeys);
|
1099
1542
|
};
|
1100
1543
|
|
1101
1544
|
// `Object.defineProperties` method
|
1102
1545
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1103
|
-
|
1546
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
1547
|
+
var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
1104
1548
|
anObject(O);
|
1549
|
+
var props = toIndexedObject(Properties);
|
1105
1550
|
var keys = objectKeys(Properties);
|
1106
1551
|
var length = keys.length;
|
1107
1552
|
var index = 0;
|
1108
1553
|
var key;
|
1109
|
-
while (length > index) objectDefineProperty.f(O, key = keys[index++],
|
1554
|
+
while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
|
1110
1555
|
return O;
|
1111
1556
|
};
|
1112
1557
|
|
1558
|
+
var objectDefineProperties = {
|
1559
|
+
f: f
|
1560
|
+
};
|
1561
|
+
|
1113
1562
|
var html = getBuiltIn('document', 'documentElement');
|
1114
1563
|
|
1564
|
+
/* global ActiveXObject -- old IE, WSH */
|
1565
|
+
|
1566
|
+
|
1567
|
+
|
1568
|
+
|
1569
|
+
|
1570
|
+
|
1571
|
+
|
1572
|
+
|
1115
1573
|
var GT = '>';
|
1116
1574
|
var LT = '<';
|
1117
1575
|
var PROTOTYPE = 'prototype';
|
@@ -1158,10 +1616,13 @@
|
|
1158
1616
|
var activeXDocument;
|
1159
1617
|
var NullProtoObject = function () {
|
1160
1618
|
try {
|
1161
|
-
|
1162
|
-
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
1619
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
1163
1620
|
} catch (error) { /* ignore */ }
|
1164
|
-
NullProtoObject =
|
1621
|
+
NullProtoObject = typeof document != 'undefined'
|
1622
|
+
? document.domain && activeXDocument
|
1623
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
1624
|
+
: NullProtoObjectViaIFrame()
|
1625
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
1165
1626
|
var length = enumBugKeys.length;
|
1166
1627
|
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
1167
1628
|
return NullProtoObject();
|
@@ -1180,7 +1641,7 @@
|
|
1180
1641
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
1181
1642
|
result[IE_PROTO] = O;
|
1182
1643
|
} else result = NullProtoObject();
|
1183
|
-
return Properties === undefined ? result : objectDefineProperties(result, Properties);
|
1644
|
+
return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
|
1184
1645
|
};
|
1185
1646
|
|
1186
1647
|
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
@@ -1234,14 +1695,17 @@
|
|
1234
1695
|
}
|
1235
1696
|
});
|
1236
1697
|
|
1237
|
-
|
1698
|
+
// eslint-disable-next-line es/no-object-assign -- safe
|
1699
|
+
var $assign = Object.assign;
|
1700
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
1238
1701
|
var defineProperty = Object.defineProperty;
|
1702
|
+
var concat = functionUncurryThis([].concat);
|
1239
1703
|
|
1240
1704
|
// `Object.assign` method
|
1241
1705
|
// https://tc39.es/ecma262/#sec-object.assign
|
1242
|
-
var objectAssign =
|
1706
|
+
var objectAssign = !$assign || fails(function () {
|
1243
1707
|
// should have correct order of operations (Edge bug)
|
1244
|
-
if (descriptors &&
|
1708
|
+
if (descriptors && $assign({ b: 1 }, $assign(defineProperty({}, 'a', {
|
1245
1709
|
enumerable: true,
|
1246
1710
|
get: function () {
|
1247
1711
|
defineProperty(this, 'b', {
|
@@ -1253,12 +1717,12 @@
|
|
1253
1717
|
// should work with symbols and should have deterministic property order (V8 bug)
|
1254
1718
|
var A = {};
|
1255
1719
|
var B = {};
|
1256
|
-
|
1720
|
+
// eslint-disable-next-line es/no-symbol -- safe
|
1257
1721
|
var symbol = Symbol();
|
1258
1722
|
var alphabet = 'abcdefghijklmnopqrst';
|
1259
1723
|
A[symbol] = 7;
|
1260
1724
|
alphabet.split('').forEach(function (chr) { B[chr] = chr; });
|
1261
|
-
return
|
1725
|
+
return $assign({}, A)[symbol] != 7 || objectKeys($assign({}, B)).join('') != alphabet;
|
1262
1726
|
}) ? function assign(target, source) { // eslint-disable-line no-unused-vars -- required for `.length`
|
1263
1727
|
var T = toObject(target);
|
1264
1728
|
var argumentsLength = arguments.length;
|
@@ -1267,19 +1731,20 @@
|
|
1267
1731
|
var propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
1268
1732
|
while (argumentsLength > index) {
|
1269
1733
|
var S = indexedObject(arguments[index++]);
|
1270
|
-
var keys = getOwnPropertySymbols ? objectKeys(S)
|
1734
|
+
var keys = getOwnPropertySymbols ? concat(objectKeys(S), getOwnPropertySymbols(S)) : objectKeys(S);
|
1271
1735
|
var length = keys.length;
|
1272
1736
|
var j = 0;
|
1273
1737
|
var key;
|
1274
1738
|
while (length > j) {
|
1275
1739
|
key = keys[j++];
|
1276
|
-
if (!descriptors || propertyIsEnumerable
|
1740
|
+
if (!descriptors || functionCall(propertyIsEnumerable, S, key)) T[key] = S[key];
|
1277
1741
|
}
|
1278
1742
|
} return T;
|
1279
|
-
} :
|
1743
|
+
} : $assign;
|
1280
1744
|
|
1281
1745
|
// `Object.assign` method
|
1282
1746
|
// https://tc39.es/ecma262/#sec-object.assign
|
1747
|
+
// eslint-disable-next-line es/no-object-assign -- required for testing
|
1283
1748
|
_export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
|
1284
1749
|
assign: objectAssign
|
1285
1750
|
});
|
@@ -1301,17 +1766,19 @@
|
|
1301
1766
|
return tmpGroups;
|
1302
1767
|
};
|
1303
1768
|
|
1304
|
-
$__default[
|
1769
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults.icons, {
|
1305
1770
|
collapseGroup: {
|
1306
1771
|
bootstrap3: 'glyphicon-chevron-up',
|
1772
|
+
bootstrap5: 'bi-chevron-up',
|
1307
1773
|
materialize: 'arrow_drop_down'
|
1308
|
-
}[$__default[
|
1774
|
+
}[$__default["default"].fn.bootstrapTable.theme] || 'fa-angle-up',
|
1309
1775
|
expandGroup: {
|
1310
1776
|
bootstrap3: 'glyphicon-chevron-down',
|
1777
|
+
bootstrap5: 'bi-chevron-down',
|
1311
1778
|
materialize: 'arrow_drop_up'
|
1312
|
-
}[$__default[
|
1779
|
+
}[$__default["default"].fn.bootstrapTable.theme] || 'fa-angle-down'
|
1313
1780
|
});
|
1314
|
-
$__default[
|
1781
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
|
1315
1782
|
groupBy: false,
|
1316
1783
|
groupByField: '',
|
1317
1784
|
groupByFormatter: undefined,
|
@@ -1319,8 +1786,8 @@
|
|
1319
1786
|
groupByShowToggleIcon: false,
|
1320
1787
|
groupByCollapsedGroups: []
|
1321
1788
|
});
|
1322
|
-
var Utils = $__default[
|
1323
|
-
var BootstrapTable = $__default[
|
1789
|
+
var Utils = $__default["default"].fn.bootstrapTable.utils;
|
1790
|
+
var BootstrapTable = $__default["default"].fn.bootstrapTable.Constructor;
|
1324
1791
|
var _initSort = BootstrapTable.prototype.initSort;
|
1325
1792
|
var _initBody = BootstrapTable.prototype.initBody;
|
1326
1793
|
var _updateSelected = BootstrapTable.prototype.updateSelected;
|
@@ -1347,7 +1814,7 @@
|
|
1347
1814
|
|
1348
1815
|
var fieldValuesA = [];
|
1349
1816
|
var fieldValuesB = [];
|
1350
|
-
$__default[
|
1817
|
+
$__default["default"].each(groupByFields, function (i, field) {
|
1351
1818
|
fieldValuesA.push(a[field]);
|
1352
1819
|
fieldValuesB.push(b[field]);
|
1353
1820
|
});
|
@@ -1364,13 +1831,13 @@
|
|
1364
1831
|
var groupByFields = _this.getGroupByFields();
|
1365
1832
|
|
1366
1833
|
var groupValues = [];
|
1367
|
-
$__default[
|
1834
|
+
$__default["default"].each(groupByFields, function (i, field) {
|
1368
1835
|
groupValues.push(item[field]);
|
1369
1836
|
});
|
1370
1837
|
return groupValues.join(', ');
|
1371
1838
|
});
|
1372
1839
|
var index = 0;
|
1373
|
-
$__default[
|
1840
|
+
$__default["default"].each(groups, function (key, value) {
|
1374
1841
|
_this.tableGroups.push({
|
1375
1842
|
id: index,
|
1376
1843
|
name: key,
|
@@ -1383,7 +1850,7 @@
|
|
1383
1850
|
}
|
1384
1851
|
|
1385
1852
|
if (_this.isCollapsed(key, value)) {
|
1386
|
-
item._class
|
1853
|
+
item._class += ' hidden';
|
1387
1854
|
}
|
1388
1855
|
|
1389
1856
|
item._data['parent-index'] = index;
|
@@ -1450,38 +1917,38 @@
|
|
1450
1917
|
}
|
1451
1918
|
|
1452
1919
|
html.push('</td></tr>');
|
1453
|
-
that.$body.find("tr[data-parent-index=".concat(item.id, "]:first")).before($__default[
|
1920
|
+
that.$body.find("tr[data-parent-index=".concat(item.id, "]:first")).before($__default["default"](html.join('')));
|
1454
1921
|
});
|
1455
1922
|
this.$selectGroup = [];
|
1456
1923
|
this.$body.find('[name="btSelectGroup"]').each(function () {
|
1457
|
-
var self = $__default[
|
1924
|
+
var self = $__default["default"](this);
|
1458
1925
|
that.$selectGroup.push({
|
1459
1926
|
group: self,
|
1460
1927
|
item: that.$selectItem.filter(function () {
|
1461
|
-
return $__default[
|
1928
|
+
return $__default["default"](this).closest('tr').data('parent-index') === self.closest('tr').data('group-index');
|
1462
1929
|
})
|
1463
1930
|
});
|
1464
1931
|
});
|
1465
1932
|
|
1466
1933
|
if (this.options.groupByToggle) {
|
1467
1934
|
this.$container.off('click', '.groupBy').on('click', '.groupBy', function () {
|
1468
|
-
var $this = $__default[
|
1935
|
+
var $this = $__default["default"](this);
|
1469
1936
|
var groupIndex = $this.closest('tr').data('group-index');
|
1470
1937
|
var $groupRows = that.$body.find("tr[data-parent-index=".concat(groupIndex, "]"));
|
1471
1938
|
$this.toggleClass('expanded collapsed');
|
1472
1939
|
$this.find('span').toggleClass("".concat(that.options.icons.collapseGroup, " ").concat(that.options.icons.expandGroup));
|
1473
1940
|
$groupRows.toggleClass('hidden');
|
1474
1941
|
$groupRows.each(function (i, element) {
|
1475
|
-
return that.collapseRow($__default[
|
1942
|
+
return that.collapseRow($__default["default"](element).data('index'));
|
1476
1943
|
});
|
1477
1944
|
});
|
1478
1945
|
}
|
1479
1946
|
|
1480
1947
|
this.$container.off('click', '[name="btSelectGroup"]').on('click', '[name="btSelectGroup"]', function (event) {
|
1481
1948
|
event.stopImmediatePropagation();
|
1482
|
-
var self = $__default[
|
1949
|
+
var self = $__default["default"](this);
|
1483
1950
|
var checked = self.prop('checked');
|
1484
|
-
that[checked ? 'checkGroup' : 'uncheckGroup']($__default[
|
1951
|
+
that[checked ? 'checkGroup' : 'uncheckGroup']($__default["default"](this).closest('tr').data('group-index'));
|
1485
1952
|
});
|
1486
1953
|
}
|
1487
1954
|
|
@@ -1518,7 +1985,7 @@
|
|
1518
1985
|
if (this.options.groupByCollapsedGroups) {
|
1519
1986
|
var collapsedGroups = Utils.calculateObjectValue(this, this.options.groupByCollapsedGroups, [groupKey, items], true);
|
1520
1987
|
|
1521
|
-
if ($__default[
|
1988
|
+
if ($__default["default"].inArray(groupKey, collapsedGroups) > -1) {
|
1522
1989
|
return true;
|
1523
1990
|
}
|
1524
1991
|
}
|
@@ -1530,7 +1997,7 @@
|
|
1530
1997
|
var rowsBefore = this.getSelections();
|
1531
1998
|
|
1532
1999
|
var filter = function filter() {
|
1533
|
-
return $__default[
|
2000
|
+
return $__default["default"](this).closest('tr').data('parent-index') === index;
|
1534
2001
|
};
|
1535
2002
|
|
1536
2003
|
this.$selectItem.filter(filter).prop('checked', checked);
|
@@ -1549,14 +2016,14 @@
|
|
1549
2016
|
BootstrapTable.prototype.getGroupByFields = function () {
|
1550
2017
|
var groupByFields = this.options.groupByField;
|
1551
2018
|
|
1552
|
-
if (!$__default[
|
2019
|
+
if (!$__default["default"].isArray(this.options.groupByField)) {
|
1553
2020
|
groupByFields = [this.options.groupByField];
|
1554
2021
|
}
|
1555
2022
|
|
1556
2023
|
return groupByFields;
|
1557
2024
|
};
|
1558
2025
|
|
1559
|
-
$__default[
|
2026
|
+
$__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
|
1560
2027
|
_inherits(_class, _$$BootstrapTable);
|
1561
2028
|
|
1562
2029
|
var _super = _createSuper(_class);
|
@@ -1583,11 +2050,11 @@
|
|
1583
2050
|
if (options.unit === 'rows') {
|
1584
2051
|
var scrollTo = 0;
|
1585
2052
|
this.$body.find("> tr:not(.groupBy):lt(".concat(options.value, ")")).each(function (i, el) {
|
1586
|
-
scrollTo += $__default[
|
2053
|
+
scrollTo += $__default["default"](el).outerHeight(true);
|
1587
2054
|
});
|
1588
2055
|
var $targetColumn = this.$body.find("> tr:not(.groupBy):eq(".concat(options.value, ")"));
|
1589
2056
|
$targetColumn.prevAll('.groupBy').each(function (i, el) {
|
1590
|
-
scrollTo += $__default[
|
2057
|
+
scrollTo += $__default["default"](el).outerHeight(true);
|
1591
2058
|
});
|
1592
2059
|
this.$tableBody.scrollTop(scrollTo);
|
1593
2060
|
return;
|
@@ -1599,6 +2066,6 @@
|
|
1599
2066
|
}]);
|
1600
2067
|
|
1601
2068
|
return _class;
|
1602
|
-
}($__default[
|
2069
|
+
}($__default["default"].BootstrapTable);
|
1603
2070
|
|
1604
|
-
}))
|
2071
|
+
}));
|