bootstrap-table-rails 1.19.0 → 1.20.1
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/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 +946 -358
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +858 -403
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +859 -404
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +7 -6
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +2900 -2041
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1066 -465
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +585 -268
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1443 -949
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +594 -278
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +595 -277
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +511 -207
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +921 -542
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +912 -478
- 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 +2798 -1187
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +1352 -754
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +610 -296
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +902 -435
- 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 +697 -375
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +623 -274
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +847 -403
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +575 -260
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +578 -267
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +800 -324
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +615 -281
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +555 -222
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +511 -207
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +582 -267
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +916 -556
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +566 -256
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +505 -209
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +517 -221
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +500 -203
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hi-IN.js +1102 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +522 -225
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-lb-LU.js +1102 -0
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +536 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +536 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +497 -201
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +596 -278
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +592 -258
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +596 -262
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +594 -275
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +6 -5
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +590 -256
- metadata +9 -8
- data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
@@ -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
|
|
@@ -27,6 +27,9 @@
|
|
27
27
|
function _createClass(Constructor, protoProps, staticProps) {
|
28
28
|
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
29
29
|
if (staticProps) _defineProperties(Constructor, staticProps);
|
30
|
+
Object.defineProperty(Constructor, "prototype", {
|
31
|
+
writable: false
|
32
|
+
});
|
30
33
|
return Constructor;
|
31
34
|
}
|
32
35
|
|
@@ -42,6 +45,9 @@
|
|
42
45
|
configurable: true
|
43
46
|
}
|
44
47
|
});
|
48
|
+
Object.defineProperty(subClass, "prototype", {
|
49
|
+
writable: false
|
50
|
+
});
|
45
51
|
if (superClass) _setPrototypeOf(subClass, superClass);
|
46
52
|
}
|
47
53
|
|
@@ -85,6 +91,8 @@
|
|
85
91
|
function _possibleConstructorReturn(self, call) {
|
86
92
|
if (call && (typeof call === "object" || typeof call === "function")) {
|
87
93
|
return call;
|
94
|
+
} else if (call !== void 0) {
|
95
|
+
throw new TypeError("Derived constructors may only return object or undefined");
|
88
96
|
}
|
89
97
|
|
90
98
|
return _assertThisInitialized(self);
|
@@ -118,7 +126,7 @@
|
|
118
126
|
return object;
|
119
127
|
}
|
120
128
|
|
121
|
-
function _get(
|
129
|
+
function _get() {
|
122
130
|
if (typeof Reflect !== "undefined" && Reflect.get) {
|
123
131
|
_get = Reflect.get;
|
124
132
|
} else {
|
@@ -129,14 +137,14 @@
|
|
129
137
|
var desc = Object.getOwnPropertyDescriptor(base, property);
|
130
138
|
|
131
139
|
if (desc.get) {
|
132
|
-
return desc.get.call(receiver);
|
140
|
+
return desc.get.call(arguments.length < 3 ? target : receiver);
|
133
141
|
}
|
134
142
|
|
135
143
|
return desc.value;
|
136
144
|
};
|
137
145
|
}
|
138
146
|
|
139
|
-
return _get(
|
147
|
+
return _get.apply(this, arguments);
|
140
148
|
}
|
141
149
|
|
142
150
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
@@ -151,7 +159,7 @@
|
|
151
159
|
|
152
160
|
// https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
|
153
161
|
var global_1 =
|
154
|
-
// eslint-disable-next-line es/no-global-this -- safe
|
162
|
+
// eslint-disable-next-line es-x/no-global-this -- safe
|
155
163
|
check(typeof globalThis == 'object' && globalThis) ||
|
156
164
|
check(typeof window == 'object' && window) ||
|
157
165
|
// eslint-disable-next-line no-restricted-globals -- safe
|
@@ -170,12 +178,25 @@
|
|
170
178
|
|
171
179
|
// Detect IE8's incomplete defineProperty implementation
|
172
180
|
var descriptors = !fails(function () {
|
173
|
-
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
181
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
174
182
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
175
183
|
});
|
176
184
|
|
185
|
+
var functionBindNative = !fails(function () {
|
186
|
+
// eslint-disable-next-line es-x/no-function-prototype-bind -- safe
|
187
|
+
var test = (function () { /* empty */ }).bind();
|
188
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
189
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
190
|
+
});
|
191
|
+
|
192
|
+
var call$1 = Function.prototype.call;
|
193
|
+
|
194
|
+
var functionCall = functionBindNative ? call$1.bind(call$1) : function () {
|
195
|
+
return call$1.apply(call$1, arguments);
|
196
|
+
};
|
197
|
+
|
177
198
|
var $propertyIsEnumerable = {}.propertyIsEnumerable;
|
178
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
199
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
179
200
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
180
201
|
|
181
202
|
// Nashorn ~ JDK8 bug
|
@@ -183,13 +204,13 @@
|
|
183
204
|
|
184
205
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
185
206
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
186
|
-
var f$
|
207
|
+
var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
187
208
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
188
209
|
return !!descriptor && descriptor.enumerable;
|
189
210
|
} : $propertyIsEnumerable;
|
190
211
|
|
191
212
|
var objectPropertyIsEnumerable = {
|
192
|
-
f: f$
|
213
|
+
f: f$5
|
193
214
|
};
|
194
215
|
|
195
216
|
var createPropertyDescriptor = function (bitmap, value) {
|
@@ -201,27 +222,44 @@
|
|
201
222
|
};
|
202
223
|
};
|
203
224
|
|
204
|
-
var
|
225
|
+
var FunctionPrototype$1 = Function.prototype;
|
226
|
+
var bind$1 = FunctionPrototype$1.bind;
|
227
|
+
var call = FunctionPrototype$1.call;
|
228
|
+
var uncurryThis = functionBindNative && bind$1.bind(call, call);
|
229
|
+
|
230
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
231
|
+
return fn && uncurryThis(fn);
|
232
|
+
} : function (fn) {
|
233
|
+
return fn && function () {
|
234
|
+
return call.apply(fn, arguments);
|
235
|
+
};
|
236
|
+
};
|
237
|
+
|
238
|
+
var toString$1 = functionUncurryThis({}.toString);
|
239
|
+
var stringSlice = functionUncurryThis(''.slice);
|
205
240
|
|
206
241
|
var classofRaw = function (it) {
|
207
|
-
return toString
|
242
|
+
return stringSlice(toString$1(it), 8, -1);
|
208
243
|
};
|
209
244
|
|
210
|
-
var
|
245
|
+
var Object$4 = global_1.Object;
|
246
|
+
var split = functionUncurryThis(''.split);
|
211
247
|
|
212
248
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
213
249
|
var indexedObject = fails(function () {
|
214
250
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
215
251
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
216
|
-
return !Object('z').propertyIsEnumerable(0);
|
252
|
+
return !Object$4('z').propertyIsEnumerable(0);
|
217
253
|
}) ? function (it) {
|
218
|
-
return classofRaw(it) == 'String' ? split
|
219
|
-
} : Object;
|
254
|
+
return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
|
255
|
+
} : Object$4;
|
256
|
+
|
257
|
+
var TypeError$9 = global_1.TypeError;
|
220
258
|
|
221
259
|
// `RequireObjectCoercible` abstract operation
|
222
260
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
223
261
|
var requireObjectCoercible = function (it) {
|
224
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
262
|
+
if (it == undefined) throw TypeError$9("Can't call method on " + it);
|
225
263
|
return it;
|
226
264
|
};
|
227
265
|
|
@@ -233,88 +271,310 @@
|
|
233
271
|
return indexedObject(requireObjectCoercible(it));
|
234
272
|
};
|
235
273
|
|
274
|
+
// `IsCallable` abstract operation
|
275
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
276
|
+
var isCallable = function (argument) {
|
277
|
+
return typeof argument == 'function';
|
278
|
+
};
|
279
|
+
|
236
280
|
var isObject = function (it) {
|
237
|
-
return typeof it
|
281
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
238
282
|
};
|
239
283
|
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
var
|
245
|
-
|
284
|
+
var aFunction = function (argument) {
|
285
|
+
return isCallable(argument) ? argument : undefined;
|
286
|
+
};
|
287
|
+
|
288
|
+
var getBuiltIn = function (namespace, method) {
|
289
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
290
|
+
};
|
291
|
+
|
292
|
+
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
293
|
+
|
294
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
295
|
+
|
296
|
+
var process = global_1.process;
|
297
|
+
var Deno = global_1.Deno;
|
298
|
+
var versions = process && process.versions || Deno && Deno.version;
|
299
|
+
var v8 = versions && versions.v8;
|
300
|
+
var match, version;
|
301
|
+
|
302
|
+
if (v8) {
|
303
|
+
match = v8.split('.');
|
304
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
305
|
+
// but their correct versions are not interesting for us
|
306
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
307
|
+
}
|
308
|
+
|
309
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
310
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
311
|
+
if (!version && engineUserAgent) {
|
312
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
313
|
+
if (!match || match[1] >= 74) {
|
314
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
315
|
+
if (match) version = +match[1];
|
316
|
+
}
|
317
|
+
}
|
318
|
+
|
319
|
+
var engineV8Version = version;
|
320
|
+
|
321
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
|
326
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
327
|
+
var symbol = Symbol();
|
328
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
329
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
330
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
331
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
332
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
333
|
+
});
|
334
|
+
|
335
|
+
/* eslint-disable es-x/no-symbol -- required for testing */
|
336
|
+
|
337
|
+
|
338
|
+
var useSymbolAsUid = nativeSymbol
|
339
|
+
&& !Symbol.sham
|
340
|
+
&& typeof Symbol.iterator == 'symbol';
|
341
|
+
|
342
|
+
var Object$3 = global_1.Object;
|
343
|
+
|
344
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
345
|
+
return typeof it == 'symbol';
|
346
|
+
} : function (it) {
|
347
|
+
var $Symbol = getBuiltIn('Symbol');
|
348
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
|
349
|
+
};
|
350
|
+
|
351
|
+
var String$3 = global_1.String;
|
352
|
+
|
353
|
+
var tryToString = function (argument) {
|
354
|
+
try {
|
355
|
+
return String$3(argument);
|
356
|
+
} catch (error) {
|
357
|
+
return 'Object';
|
358
|
+
}
|
359
|
+
};
|
360
|
+
|
361
|
+
var TypeError$8 = global_1.TypeError;
|
362
|
+
|
363
|
+
// `Assert: IsCallable(argument) is true`
|
364
|
+
var aCallable = function (argument) {
|
365
|
+
if (isCallable(argument)) return argument;
|
366
|
+
throw TypeError$8(tryToString(argument) + ' is not a function');
|
367
|
+
};
|
368
|
+
|
369
|
+
// `GetMethod` abstract operation
|
370
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
371
|
+
var getMethod = function (V, P) {
|
372
|
+
var func = V[P];
|
373
|
+
return func == null ? undefined : aCallable(func);
|
374
|
+
};
|
375
|
+
|
376
|
+
var TypeError$7 = global_1.TypeError;
|
377
|
+
|
378
|
+
// `OrdinaryToPrimitive` abstract operation
|
379
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
380
|
+
var ordinaryToPrimitive = function (input, pref) {
|
246
381
|
var fn, val;
|
247
|
-
if (
|
248
|
-
if (
|
249
|
-
if (
|
250
|
-
throw TypeError("Can't convert object to primitive value");
|
382
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
383
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
384
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
385
|
+
throw TypeError$7("Can't convert object to primitive value");
|
386
|
+
};
|
387
|
+
|
388
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
389
|
+
var defineProperty = Object.defineProperty;
|
390
|
+
|
391
|
+
var setGlobal = function (key, value) {
|
392
|
+
try {
|
393
|
+
defineProperty(global_1, key, { value: value, configurable: true, writable: true });
|
394
|
+
} catch (error) {
|
395
|
+
global_1[key] = value;
|
396
|
+
} return value;
|
251
397
|
};
|
252
398
|
|
253
|
-
var
|
399
|
+
var SHARED = '__core-js_shared__';
|
400
|
+
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
401
|
+
|
402
|
+
var sharedStore = store$1;
|
403
|
+
|
404
|
+
var shared = createCommonjsModule(function (module) {
|
405
|
+
(module.exports = function (key, value) {
|
406
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
407
|
+
})('versions', []).push({
|
408
|
+
version: '3.22.4',
|
409
|
+
mode: 'global',
|
410
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
411
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.22.4/LICENSE',
|
412
|
+
source: 'https://github.com/zloirock/core-js'
|
413
|
+
});
|
414
|
+
});
|
415
|
+
|
416
|
+
var Object$2 = global_1.Object;
|
417
|
+
|
418
|
+
// `ToObject` abstract operation
|
419
|
+
// https://tc39.es/ecma262/#sec-toobject
|
420
|
+
var toObject = function (argument) {
|
421
|
+
return Object$2(requireObjectCoercible(argument));
|
422
|
+
};
|
254
423
|
|
255
|
-
var
|
256
|
-
|
424
|
+
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
425
|
+
|
426
|
+
// `HasOwnProperty` abstract operation
|
427
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
428
|
+
// eslint-disable-next-line es-x/no-object-hasown -- safe
|
429
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
430
|
+
return hasOwnProperty(toObject(it), key);
|
431
|
+
};
|
432
|
+
|
433
|
+
var id = 0;
|
434
|
+
var postfix = Math.random();
|
435
|
+
var toString = functionUncurryThis(1.0.toString);
|
436
|
+
|
437
|
+
var uid = function (key) {
|
438
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
439
|
+
};
|
440
|
+
|
441
|
+
var WellKnownSymbolsStore = shared('wks');
|
442
|
+
var Symbol$1 = global_1.Symbol;
|
443
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
444
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
445
|
+
|
446
|
+
var wellKnownSymbol = function (name) {
|
447
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
448
|
+
var description = 'Symbol.' + name;
|
449
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
450
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
451
|
+
} else if (useSymbolAsUid && symbolFor) {
|
452
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
453
|
+
} else {
|
454
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
455
|
+
}
|
456
|
+
} return WellKnownSymbolsStore[name];
|
457
|
+
};
|
458
|
+
|
459
|
+
var TypeError$6 = global_1.TypeError;
|
460
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
461
|
+
|
462
|
+
// `ToPrimitive` abstract operation
|
463
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
464
|
+
var toPrimitive = function (input, pref) {
|
465
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
466
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
467
|
+
var result;
|
468
|
+
if (exoticToPrim) {
|
469
|
+
if (pref === undefined) pref = 'default';
|
470
|
+
result = functionCall(exoticToPrim, input, pref);
|
471
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
472
|
+
throw TypeError$6("Can't convert object to primitive value");
|
473
|
+
}
|
474
|
+
if (pref === undefined) pref = 'number';
|
475
|
+
return ordinaryToPrimitive(input, pref);
|
476
|
+
};
|
477
|
+
|
478
|
+
// `ToPropertyKey` abstract operation
|
479
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
480
|
+
var toPropertyKey = function (argument) {
|
481
|
+
var key = toPrimitive(argument, 'string');
|
482
|
+
return isSymbol(key) ? key : key + '';
|
257
483
|
};
|
258
484
|
|
259
485
|
var document$1 = global_1.document;
|
260
486
|
// typeof document.createElement is 'object' in old IE
|
261
|
-
var EXISTS = isObject(document$1) && isObject(document$1.createElement);
|
487
|
+
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
262
488
|
|
263
489
|
var documentCreateElement = function (it) {
|
264
|
-
return EXISTS ? document$1.createElement(it) : {};
|
490
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
265
491
|
};
|
266
492
|
|
267
|
-
//
|
493
|
+
// Thanks to IE8 for its funny defineProperty
|
268
494
|
var ie8DomDefine = !descriptors && !fails(function () {
|
269
|
-
// eslint-disable-next-line es/no-object-defineproperty --
|
495
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
270
496
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
271
497
|
get: function () { return 7; }
|
272
498
|
}).a != 7;
|
273
499
|
});
|
274
500
|
|
275
|
-
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
276
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
501
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
502
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
277
503
|
|
278
504
|
// `Object.getOwnPropertyDescriptor` method
|
279
505
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
280
|
-
var f$
|
506
|
+
var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
281
507
|
O = toIndexedObject(O);
|
282
|
-
P =
|
508
|
+
P = toPropertyKey(P);
|
283
509
|
if (ie8DomDefine) try {
|
284
|
-
return $getOwnPropertyDescriptor(O, P);
|
510
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
285
511
|
} catch (error) { /* empty */ }
|
286
|
-
if (
|
512
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
|
287
513
|
};
|
288
514
|
|
289
515
|
var objectGetOwnPropertyDescriptor = {
|
290
|
-
f: f$
|
516
|
+
f: f$4
|
291
517
|
};
|
292
518
|
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
519
|
+
// V8 ~ Chrome 36-
|
520
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
521
|
+
var v8PrototypeDefineBug = descriptors && fails(function () {
|
522
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
|
523
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
524
|
+
value: 42,
|
525
|
+
writable: false
|
526
|
+
}).prototype != 42;
|
527
|
+
});
|
528
|
+
|
529
|
+
var String$2 = global_1.String;
|
530
|
+
var TypeError$5 = global_1.TypeError;
|
531
|
+
|
532
|
+
// `Assert: Type(argument) is Object`
|
533
|
+
var anObject = function (argument) {
|
534
|
+
if (isObject(argument)) return argument;
|
535
|
+
throw TypeError$5(String$2(argument) + ' is not an object');
|
297
536
|
};
|
298
537
|
|
299
|
-
|
538
|
+
var TypeError$4 = global_1.TypeError;
|
539
|
+
// eslint-disable-next-line es-x/no-object-defineproperty -- safe
|
300
540
|
var $defineProperty = Object.defineProperty;
|
541
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
542
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
543
|
+
var ENUMERABLE = 'enumerable';
|
544
|
+
var CONFIGURABLE$1 = 'configurable';
|
545
|
+
var WRITABLE = 'writable';
|
301
546
|
|
302
547
|
// `Object.defineProperty` method
|
303
548
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
304
|
-
var f$
|
549
|
+
var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
305
550
|
anObject(O);
|
306
|
-
P =
|
551
|
+
P = toPropertyKey(P);
|
552
|
+
anObject(Attributes);
|
553
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
554
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
555
|
+
if (current && current[WRITABLE]) {
|
556
|
+
O[P] = Attributes.value;
|
557
|
+
Attributes = {
|
558
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
559
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
560
|
+
writable: false
|
561
|
+
};
|
562
|
+
}
|
563
|
+
} return $defineProperty(O, P, Attributes);
|
564
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
565
|
+
anObject(O);
|
566
|
+
P = toPropertyKey(P);
|
307
567
|
anObject(Attributes);
|
308
568
|
if (ie8DomDefine) try {
|
309
569
|
return $defineProperty(O, P, Attributes);
|
310
570
|
} catch (error) { /* empty */ }
|
311
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
571
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$4('Accessors not supported');
|
312
572
|
if ('value' in Attributes) O[P] = Attributes.value;
|
313
573
|
return O;
|
314
574
|
};
|
315
575
|
|
316
576
|
var objectDefineProperty = {
|
317
|
-
f: f$
|
577
|
+
f: f$3
|
318
578
|
};
|
319
579
|
|
320
580
|
var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
@@ -324,25 +584,27 @@
|
|
324
584
|
return object;
|
325
585
|
};
|
326
586
|
|
327
|
-
var
|
328
|
-
|
329
|
-
|
330
|
-
} catch (error) {
|
331
|
-
global_1[key] = value;
|
332
|
-
} return value;
|
333
|
-
};
|
587
|
+
var FunctionPrototype = Function.prototype;
|
588
|
+
// eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
|
589
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
334
590
|
|
335
|
-
var
|
336
|
-
|
591
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
|
592
|
+
// additional protection from minified / mangled / dropped function names
|
593
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
594
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype, 'name').configurable));
|
337
595
|
|
338
|
-
var
|
596
|
+
var functionName = {
|
597
|
+
EXISTS: EXISTS,
|
598
|
+
PROPER: PROPER,
|
599
|
+
CONFIGURABLE: CONFIGURABLE
|
600
|
+
};
|
339
601
|
|
340
|
-
var functionToString = Function.toString;
|
602
|
+
var functionToString = functionUncurryThis(Function.toString);
|
341
603
|
|
342
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
343
|
-
if (
|
604
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
605
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
344
606
|
sharedStore.inspectSource = function (it) {
|
345
|
-
return functionToString
|
607
|
+
return functionToString(it);
|
346
608
|
};
|
347
609
|
}
|
348
610
|
|
@@ -350,24 +612,7 @@
|
|
350
612
|
|
351
613
|
var WeakMap$1 = global_1.WeakMap;
|
352
614
|
|
353
|
-
var nativeWeakMap =
|
354
|
-
|
355
|
-
var shared = createCommonjsModule(function (module) {
|
356
|
-
(module.exports = function (key, value) {
|
357
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
358
|
-
})('versions', []).push({
|
359
|
-
version: '3.10.1',
|
360
|
-
mode: 'global',
|
361
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
362
|
-
});
|
363
|
-
});
|
364
|
-
|
365
|
-
var id = 0;
|
366
|
-
var postfix = Math.random();
|
367
|
-
|
368
|
-
var uid = function (key) {
|
369
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
370
|
-
};
|
615
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
371
616
|
|
372
617
|
var keys = shared('keys');
|
373
618
|
|
@@ -377,6 +622,8 @@
|
|
377
622
|
|
378
623
|
var hiddenKeys$1 = {};
|
379
624
|
|
625
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
626
|
+
var TypeError$3 = global_1.TypeError;
|
380
627
|
var WeakMap = global_1.WeakMap;
|
381
628
|
var set, get, has;
|
382
629
|
|
@@ -388,40 +635,42 @@
|
|
388
635
|
return function (it) {
|
389
636
|
var state;
|
390
637
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
391
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
638
|
+
throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
|
392
639
|
} return state;
|
393
640
|
};
|
394
641
|
};
|
395
642
|
|
396
|
-
if (nativeWeakMap) {
|
643
|
+
if (nativeWeakMap || sharedStore.state) {
|
397
644
|
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
398
|
-
var wmget = store.get;
|
399
|
-
var wmhas = store.has;
|
400
|
-
var wmset = store.set;
|
645
|
+
var wmget = functionUncurryThis(store.get);
|
646
|
+
var wmhas = functionUncurryThis(store.has);
|
647
|
+
var wmset = functionUncurryThis(store.set);
|
401
648
|
set = function (it, metadata) {
|
649
|
+
if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
|
402
650
|
metadata.facade = it;
|
403
|
-
wmset
|
651
|
+
wmset(store, it, metadata);
|
404
652
|
return metadata;
|
405
653
|
};
|
406
654
|
get = function (it) {
|
407
|
-
return wmget
|
655
|
+
return wmget(store, it) || {};
|
408
656
|
};
|
409
657
|
has = function (it) {
|
410
|
-
return wmhas
|
658
|
+
return wmhas(store, it);
|
411
659
|
};
|
412
660
|
} else {
|
413
661
|
var STATE = sharedKey('state');
|
414
662
|
hiddenKeys$1[STATE] = true;
|
415
663
|
set = function (it, metadata) {
|
664
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
|
416
665
|
metadata.facade = it;
|
417
666
|
createNonEnumerableProperty(it, STATE, metadata);
|
418
667
|
return metadata;
|
419
668
|
};
|
420
669
|
get = function (it) {
|
421
|
-
return
|
670
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
422
671
|
};
|
423
672
|
has = function (it) {
|
424
|
-
return
|
673
|
+
return hasOwnProperty_1(it, STATE);
|
425
674
|
};
|
426
675
|
}
|
427
676
|
|
@@ -433,29 +682,56 @@
|
|
433
682
|
getterFor: getterFor
|
434
683
|
};
|
435
684
|
|
436
|
-
var
|
437
|
-
var
|
685
|
+
var makeBuiltIn_1 = createCommonjsModule(function (module) {
|
686
|
+
var defineProperty = objectDefineProperty.f;
|
687
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
688
|
+
|
689
|
+
|
690
|
+
|
438
691
|
var enforceInternalState = internalState.enforce;
|
692
|
+
var getInternalState = internalState.get;
|
693
|
+
|
694
|
+
var CONFIGURABLE_LENGTH = !fails(function () {
|
695
|
+
return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
|
696
|
+
});
|
697
|
+
|
439
698
|
var TEMPLATE = String(String).split('String');
|
440
699
|
|
441
|
-
|
700
|
+
var makeBuiltIn = module.exports = function (value, name, options) {
|
701
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
702
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
703
|
+
}
|
704
|
+
if (options && options.getter) name = 'get ' + name;
|
705
|
+
if (options && options.setter) name = 'set ' + name;
|
706
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
707
|
+
defineProperty(value, 'name', { value: name, configurable: true });
|
708
|
+
}
|
709
|
+
if (CONFIGURABLE_LENGTH && options && hasOwnProperty_1(options, 'arity') && value.length !== options.arity) {
|
710
|
+
defineProperty(value, 'length', { value: options.arity });
|
711
|
+
}
|
712
|
+
var state = enforceInternalState(value);
|
713
|
+
if (!hasOwnProperty_1(state, 'source')) {
|
714
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
715
|
+
} return value;
|
716
|
+
};
|
717
|
+
|
718
|
+
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
719
|
+
// eslint-disable-next-line no-extend-native -- required
|
720
|
+
Function.prototype.toString = makeBuiltIn(function toString() {
|
721
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
722
|
+
}, 'toString');
|
723
|
+
});
|
724
|
+
|
725
|
+
var defineBuiltIn = function (O, key, value, options) {
|
442
726
|
var unsafe = options ? !!options.unsafe : false;
|
443
727
|
var simple = options ? !!options.enumerable : false;
|
444
728
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
445
|
-
var
|
446
|
-
if (
|
447
|
-
if (typeof key == 'string' && !has$1(value, 'name')) {
|
448
|
-
createNonEnumerableProperty(value, 'name', key);
|
449
|
-
}
|
450
|
-
state = enforceInternalState(value);
|
451
|
-
if (!state.source) {
|
452
|
-
state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
|
453
|
-
}
|
454
|
-
}
|
729
|
+
var name = options && options.name !== undefined ? options.name : key;
|
730
|
+
if (isCallable(value)) makeBuiltIn_1(value, name, options);
|
455
731
|
if (O === global_1) {
|
456
732
|
if (simple) O[key] = value;
|
457
733
|
else setGlobal(key, value);
|
458
|
-
return;
|
734
|
+
return O;
|
459
735
|
} else if (!unsafe) {
|
460
736
|
delete O[key];
|
461
737
|
} else if (!noTargetGet && O[key]) {
|
@@ -463,56 +739,50 @@
|
|
463
739
|
}
|
464
740
|
if (simple) O[key] = value;
|
465
741
|
else createNonEnumerableProperty(O, key, value);
|
466
|
-
|
467
|
-
})(Function.prototype, 'toString', function toString() {
|
468
|
-
return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
|
469
|
-
});
|
470
|
-
});
|
471
|
-
|
472
|
-
var path = global_1;
|
473
|
-
|
474
|
-
var aFunction$1 = function (variable) {
|
475
|
-
return typeof variable == 'function' ? variable : undefined;
|
476
|
-
};
|
477
|
-
|
478
|
-
var getBuiltIn = function (namespace, method) {
|
479
|
-
return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
|
480
|
-
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
742
|
+
return O;
|
481
743
|
};
|
482
744
|
|
483
745
|
var ceil = Math.ceil;
|
484
746
|
var floor = Math.floor;
|
485
747
|
|
486
|
-
// `
|
487
|
-
// https://tc39.es/ecma262/#sec-
|
488
|
-
var
|
489
|
-
|
748
|
+
// `ToIntegerOrInfinity` abstract operation
|
749
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
750
|
+
var toIntegerOrInfinity = function (argument) {
|
751
|
+
var number = +argument;
|
752
|
+
// eslint-disable-next-line no-self-compare -- safe
|
753
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
|
490
754
|
};
|
491
755
|
|
756
|
+
var max = Math.max;
|
492
757
|
var min$1 = Math.min;
|
493
758
|
|
759
|
+
// Helper for a popular repeating case of the spec:
|
760
|
+
// Let integer be ? ToInteger(index).
|
761
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
762
|
+
var toAbsoluteIndex = function (index, length) {
|
763
|
+
var integer = toIntegerOrInfinity(index);
|
764
|
+
return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
|
765
|
+
};
|
766
|
+
|
767
|
+
var min = Math.min;
|
768
|
+
|
494
769
|
// `ToLength` abstract operation
|
495
770
|
// https://tc39.es/ecma262/#sec-tolength
|
496
771
|
var toLength = function (argument) {
|
497
|
-
return argument > 0 ? min
|
772
|
+
return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
498
773
|
};
|
499
774
|
|
500
|
-
|
501
|
-
|
502
|
-
|
503
|
-
|
504
|
-
// Let integer be ? ToInteger(index).
|
505
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
506
|
-
var toAbsoluteIndex = function (index, length) {
|
507
|
-
var integer = toInteger(index);
|
508
|
-
return integer < 0 ? max(integer + length, 0) : min(integer, length);
|
775
|
+
// `LengthOfArrayLike` abstract operation
|
776
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
777
|
+
var lengthOfArrayLike = function (obj) {
|
778
|
+
return toLength(obj.length);
|
509
779
|
};
|
510
780
|
|
511
781
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
512
782
|
var createMethod$1 = function (IS_INCLUDES) {
|
513
783
|
return function ($this, el, fromIndex) {
|
514
784
|
var O = toIndexedObject($this);
|
515
|
-
var length =
|
785
|
+
var length = lengthOfArrayLike(O);
|
516
786
|
var index = toAbsoluteIndex(fromIndex, length);
|
517
787
|
var value;
|
518
788
|
// Array#includes uses SameValueZero equality algorithm
|
@@ -540,15 +810,17 @@
|
|
540
810
|
var indexOf = arrayIncludes.indexOf;
|
541
811
|
|
542
812
|
|
813
|
+
var push$1 = functionUncurryThis([].push);
|
814
|
+
|
543
815
|
var objectKeysInternal = function (object, names) {
|
544
816
|
var O = toIndexedObject(object);
|
545
817
|
var i = 0;
|
546
818
|
var result = [];
|
547
819
|
var key;
|
548
|
-
for (key in O) !
|
820
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$1(result, key);
|
549
821
|
// Don't enum bug & hidden keys
|
550
|
-
while (names.length > i) if (
|
551
|
-
~indexOf(result, key) ||
|
822
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
823
|
+
~indexOf(result, key) || push$1(result, key);
|
552
824
|
}
|
553
825
|
return result;
|
554
826
|
};
|
@@ -568,36 +840,40 @@
|
|
568
840
|
|
569
841
|
// `Object.getOwnPropertyNames` method
|
570
842
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
571
|
-
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
572
|
-
var f$
|
843
|
+
// eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
|
844
|
+
var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
573
845
|
return objectKeysInternal(O, hiddenKeys);
|
574
846
|
};
|
575
847
|
|
576
848
|
var objectGetOwnPropertyNames = {
|
577
|
-
f: f$
|
849
|
+
f: f$2
|
578
850
|
};
|
579
851
|
|
580
|
-
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
581
|
-
var f = Object.getOwnPropertySymbols;
|
852
|
+
// eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
|
853
|
+
var f$1 = Object.getOwnPropertySymbols;
|
582
854
|
|
583
855
|
var objectGetOwnPropertySymbols = {
|
584
|
-
f: f
|
856
|
+
f: f$1
|
585
857
|
};
|
586
858
|
|
859
|
+
var concat = functionUncurryThis([].concat);
|
860
|
+
|
587
861
|
// all object keys, includes non-enumerable and symbols
|
588
862
|
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
589
863
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
590
864
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
591
|
-
return getOwnPropertySymbols ?
|
865
|
+
return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
|
592
866
|
};
|
593
867
|
|
594
|
-
var copyConstructorProperties = function (target, source) {
|
868
|
+
var copyConstructorProperties = function (target, source, exceptions) {
|
595
869
|
var keys = ownKeys(source);
|
596
870
|
var defineProperty = objectDefineProperty.f;
|
597
871
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
598
872
|
for (var i = 0; i < keys.length; i++) {
|
599
873
|
var key = keys[i];
|
600
|
-
if (!
|
874
|
+
if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
|
875
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
876
|
+
}
|
601
877
|
}
|
602
878
|
};
|
603
879
|
|
@@ -607,7 +883,7 @@
|
|
607
883
|
var value = data[normalize(feature)];
|
608
884
|
return value == POLYFILL ? true
|
609
885
|
: value == NATIVE ? false
|
610
|
-
:
|
886
|
+
: isCallable(detection) ? fails(detection)
|
611
887
|
: !!detection;
|
612
888
|
};
|
613
889
|
|
@@ -641,6 +917,7 @@
|
|
641
917
|
options.sham - add a flag to not completely full polyfills
|
642
918
|
options.enumerable - export as enumerable property
|
643
919
|
options.noTargetGet - prevent calling a getter on target
|
920
|
+
options.name - the .name of the function if it does not match the key
|
644
921
|
*/
|
645
922
|
var _export = function (options, source) {
|
646
923
|
var TARGET = options.target;
|
@@ -663,104 +940,130 @@
|
|
663
940
|
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
664
941
|
// contained in target
|
665
942
|
if (!FORCED && targetProperty !== undefined) {
|
666
|
-
if (typeof sourceProperty
|
943
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
667
944
|
copyConstructorProperties(sourceProperty, targetProperty);
|
668
945
|
}
|
669
946
|
// add a flag to not completely full polyfills
|
670
947
|
if (options.sham || (targetProperty && targetProperty.sham)) {
|
671
948
|
createNonEnumerableProperty(sourceProperty, 'sham', true);
|
672
949
|
}
|
673
|
-
|
674
|
-
redefine(target, key, sourceProperty, options);
|
950
|
+
defineBuiltIn(target, key, sourceProperty, options);
|
675
951
|
}
|
676
952
|
};
|
677
953
|
|
678
954
|
// `IsArray` abstract operation
|
679
955
|
// https://tc39.es/ecma262/#sec-isarray
|
680
|
-
// eslint-disable-next-line es/no-array-isarray -- safe
|
681
|
-
var isArray = Array.isArray || function isArray(
|
682
|
-
return classofRaw(
|
683
|
-
};
|
684
|
-
|
685
|
-
// `ToObject` abstract operation
|
686
|
-
// https://tc39.es/ecma262/#sec-toobject
|
687
|
-
var toObject = function (argument) {
|
688
|
-
return Object(requireObjectCoercible(argument));
|
956
|
+
// eslint-disable-next-line es-x/no-array-isarray -- safe
|
957
|
+
var isArray = Array.isArray || function isArray(argument) {
|
958
|
+
return classofRaw(argument) == 'Array';
|
689
959
|
};
|
690
960
|
|
691
961
|
var createProperty = function (object, key, value) {
|
692
|
-
var propertyKey =
|
962
|
+
var propertyKey = toPropertyKey(key);
|
693
963
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
694
964
|
else object[propertyKey] = value;
|
695
965
|
};
|
696
966
|
|
697
|
-
var
|
967
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
968
|
+
var test = {};
|
698
969
|
|
699
|
-
|
970
|
+
test[TO_STRING_TAG$1] = 'z';
|
700
971
|
|
701
|
-
var
|
702
|
-
var versions = process && process.versions;
|
703
|
-
var v8 = versions && versions.v8;
|
704
|
-
var match, version;
|
972
|
+
var toStringTagSupport = String(test) === '[object z]';
|
705
973
|
|
706
|
-
|
707
|
-
|
708
|
-
version = match[0] + match[1];
|
709
|
-
} else if (engineUserAgent) {
|
710
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
711
|
-
if (!match || match[1] >= 74) {
|
712
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
713
|
-
if (match) version = match[1];
|
714
|
-
}
|
715
|
-
}
|
974
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
975
|
+
var Object$1 = global_1.Object;
|
716
976
|
|
717
|
-
|
977
|
+
// ES3 wrong here
|
978
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
718
979
|
|
719
|
-
//
|
720
|
-
var
|
721
|
-
|
722
|
-
|
723
|
-
|
724
|
-
|
725
|
-
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
|
726
|
-
});
|
727
|
-
|
728
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
980
|
+
// fallback for IE11 Script Access Denied error
|
981
|
+
var tryGet = function (it, key) {
|
982
|
+
try {
|
983
|
+
return it[key];
|
984
|
+
} catch (error) { /* empty */ }
|
985
|
+
};
|
729
986
|
|
987
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
988
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
989
|
+
var O, tag, result;
|
990
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
991
|
+
// @@toStringTag case
|
992
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
993
|
+
// builtinTag case
|
994
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
995
|
+
// ES3 arguments fallback
|
996
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
997
|
+
};
|
730
998
|
|
731
|
-
var
|
732
|
-
|
733
|
-
|
999
|
+
var noop = function () { /* empty */ };
|
1000
|
+
var empty = [];
|
1001
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
1002
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
1003
|
+
var exec = functionUncurryThis(constructorRegExp.exec);
|
1004
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
734
1005
|
|
735
|
-
var
|
736
|
-
|
737
|
-
|
1006
|
+
var isConstructorModern = function isConstructor(argument) {
|
1007
|
+
if (!isCallable(argument)) return false;
|
1008
|
+
try {
|
1009
|
+
construct(noop, empty, argument);
|
1010
|
+
return true;
|
1011
|
+
} catch (error) {
|
1012
|
+
return false;
|
1013
|
+
}
|
1014
|
+
};
|
738
1015
|
|
739
|
-
var
|
740
|
-
if (!
|
741
|
-
|
742
|
-
|
743
|
-
|
744
|
-
|
745
|
-
|
746
|
-
|
1016
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
1017
|
+
if (!isCallable(argument)) return false;
|
1018
|
+
switch (classof(argument)) {
|
1019
|
+
case 'AsyncFunction':
|
1020
|
+
case 'GeneratorFunction':
|
1021
|
+
case 'AsyncGeneratorFunction': return false;
|
1022
|
+
}
|
1023
|
+
try {
|
1024
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
1025
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
1026
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
1027
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
1028
|
+
} catch (error) {
|
1029
|
+
return true;
|
1030
|
+
}
|
747
1031
|
};
|
748
1032
|
|
1033
|
+
isConstructorLegacy.sham = true;
|
1034
|
+
|
1035
|
+
// `IsConstructor` abstract operation
|
1036
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
1037
|
+
var isConstructor = !construct || fails(function () {
|
1038
|
+
var called;
|
1039
|
+
return isConstructorModern(isConstructorModern.call)
|
1040
|
+
|| !isConstructorModern(Object)
|
1041
|
+
|| !isConstructorModern(function () { called = true; })
|
1042
|
+
|| called;
|
1043
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
1044
|
+
|
749
1045
|
var SPECIES$1 = wellKnownSymbol('species');
|
1046
|
+
var Array$1 = global_1.Array;
|
750
1047
|
|
751
|
-
// `ArraySpeciesCreate` abstract operation
|
1048
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
752
1049
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
753
|
-
var
|
1050
|
+
var arraySpeciesConstructor = function (originalArray) {
|
754
1051
|
var C;
|
755
1052
|
if (isArray(originalArray)) {
|
756
1053
|
C = originalArray.constructor;
|
757
1054
|
// cross-realm fallback
|
758
|
-
if (
|
1055
|
+
if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
|
759
1056
|
else if (isObject(C)) {
|
760
1057
|
C = C[SPECIES$1];
|
761
1058
|
if (C === null) C = undefined;
|
762
1059
|
}
|
763
|
-
} return
|
1060
|
+
} return C === undefined ? Array$1 : C;
|
1061
|
+
};
|
1062
|
+
|
1063
|
+
// `ArraySpeciesCreate` abstract operation
|
1064
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1065
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
1066
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
764
1067
|
};
|
765
1068
|
|
766
1069
|
var SPECIES = wellKnownSymbol('species');
|
@@ -782,6 +1085,7 @@
|
|
782
1085
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
783
1086
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
784
1087
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1088
|
+
var TypeError$2 = global_1.TypeError;
|
785
1089
|
|
786
1090
|
// We can't use this feature detection in V8 since it causes
|
787
1091
|
// deoptimization and serious performance degradation
|
@@ -805,7 +1109,7 @@
|
|
805
1109
|
// `Array.prototype.concat` method
|
806
1110
|
// https://tc39.es/ecma262/#sec-array.prototype.concat
|
807
1111
|
// with adding support of @@isConcatSpreadable and @@species
|
808
|
-
_export({ target: 'Array', proto: true, forced: FORCED }, {
|
1112
|
+
_export({ target: 'Array', proto: true, arity: 1, forced: FORCED }, {
|
809
1113
|
// eslint-disable-next-line no-unused-vars -- required for `.length`
|
810
1114
|
concat: function concat(arg) {
|
811
1115
|
var O = toObject(this);
|
@@ -815,11 +1119,11 @@
|
|
815
1119
|
for (i = -1, length = arguments.length; i < length; i++) {
|
816
1120
|
E = i === -1 ? O : arguments[i];
|
817
1121
|
if (isConcatSpreadable(E)) {
|
818
|
-
len =
|
819
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1122
|
+
len = lengthOfArrayLike(E);
|
1123
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError$2(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
820
1124
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
821
1125
|
} else {
|
822
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1126
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError$2(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
823
1127
|
createProperty(A, n++, E);
|
824
1128
|
}
|
825
1129
|
}
|
@@ -830,26 +1134,40 @@
|
|
830
1134
|
|
831
1135
|
// `Object.keys` method
|
832
1136
|
// https://tc39.es/ecma262/#sec-object.keys
|
833
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
1137
|
+
// eslint-disable-next-line es-x/no-object-keys -- safe
|
834
1138
|
var objectKeys = Object.keys || function keys(O) {
|
835
1139
|
return objectKeysInternal(O, enumBugKeys);
|
836
1140
|
};
|
837
1141
|
|
838
1142
|
// `Object.defineProperties` method
|
839
1143
|
// https://tc39.es/ecma262/#sec-object.defineproperties
|
840
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
841
|
-
var
|
1144
|
+
// eslint-disable-next-line es-x/no-object-defineproperties -- safe
|
1145
|
+
var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
842
1146
|
anObject(O);
|
1147
|
+
var props = toIndexedObject(Properties);
|
843
1148
|
var keys = objectKeys(Properties);
|
844
1149
|
var length = keys.length;
|
845
1150
|
var index = 0;
|
846
1151
|
var key;
|
847
|
-
while (length > index) objectDefineProperty.f(O, key = keys[index++],
|
1152
|
+
while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
|
848
1153
|
return O;
|
849
1154
|
};
|
850
1155
|
|
1156
|
+
var objectDefineProperties = {
|
1157
|
+
f: f
|
1158
|
+
};
|
1159
|
+
|
851
1160
|
var html = getBuiltIn('document', 'documentElement');
|
852
1161
|
|
1162
|
+
/* global ActiveXObject -- old IE, WSH */
|
1163
|
+
|
1164
|
+
|
1165
|
+
|
1166
|
+
|
1167
|
+
|
1168
|
+
|
1169
|
+
|
1170
|
+
|
853
1171
|
var GT = '>';
|
854
1172
|
var LT = '<';
|
855
1173
|
var PROTOTYPE = 'prototype';
|
@@ -896,10 +1214,13 @@
|
|
896
1214
|
var activeXDocument;
|
897
1215
|
var NullProtoObject = function () {
|
898
1216
|
try {
|
899
|
-
|
900
|
-
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
1217
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
901
1218
|
} catch (error) { /* ignore */ }
|
902
|
-
NullProtoObject =
|
1219
|
+
NullProtoObject = typeof document != 'undefined'
|
1220
|
+
? document.domain && activeXDocument
|
1221
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
1222
|
+
: NullProtoObjectViaIFrame()
|
1223
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
903
1224
|
var length = enumBugKeys.length;
|
904
1225
|
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
905
1226
|
return NullProtoObject();
|
@@ -909,6 +1230,7 @@
|
|
909
1230
|
|
910
1231
|
// `Object.create` method
|
911
1232
|
// https://tc39.es/ecma262/#sec-object.create
|
1233
|
+
// eslint-disable-next-line es-x/no-object-create -- safe
|
912
1234
|
var objectCreate = Object.create || function create(O, Properties) {
|
913
1235
|
var result;
|
914
1236
|
if (O !== null) {
|
@@ -918,7 +1240,7 @@
|
|
918
1240
|
// add "__proto__" for Object.getPrototypeOf polyfill
|
919
1241
|
result[IE_PROTO] = O;
|
920
1242
|
} else result = NullProtoObject();
|
921
|
-
return Properties === undefined ? result : objectDefineProperties(result, Properties);
|
1243
|
+
return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
|
922
1244
|
};
|
923
1245
|
|
924
1246
|
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
@@ -941,9 +1263,15 @@
|
|
941
1263
|
var $includes = arrayIncludes.includes;
|
942
1264
|
|
943
1265
|
|
1266
|
+
|
1267
|
+
// FF99+ bug
|
1268
|
+
var BROKEN_ON_SPARSE = fails(function () {
|
1269
|
+
return !Array(1).includes();
|
1270
|
+
});
|
1271
|
+
|
944
1272
|
// `Array.prototype.includes` method
|
945
1273
|
// https://tc39.es/ecma262/#sec-array.prototype.includes
|
946
|
-
_export({ target: 'Array', proto: true }, {
|
1274
|
+
_export({ target: 'Array', proto: true, forced: BROKEN_ON_SPARSE }, {
|
947
1275
|
includes: function includes(el /* , fromIndex = 0 */) {
|
948
1276
|
return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
|
949
1277
|
}
|
@@ -952,6 +1280,18 @@
|
|
952
1280
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
953
1281
|
addToUnscopables('includes');
|
954
1282
|
|
1283
|
+
// `Object.prototype.toString` method implementation
|
1284
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1285
|
+
var objectToString = toStringTagSupport ? {}.toString : function toString() {
|
1286
|
+
return '[object ' + classof(this) + ']';
|
1287
|
+
};
|
1288
|
+
|
1289
|
+
// `Object.prototype.toString` method
|
1290
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1291
|
+
if (!toStringTagSupport) {
|
1292
|
+
defineBuiltIn(Object.prototype, 'toString', objectToString, { unsafe: true });
|
1293
|
+
}
|
1294
|
+
|
955
1295
|
// iterable DOM collections
|
956
1296
|
// flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
|
957
1297
|
var domIterables = {
|
@@ -988,54 +1328,43 @@
|
|
988
1328
|
TouchList: 0
|
989
1329
|
};
|
990
1330
|
|
991
|
-
|
992
|
-
|
993
|
-
|
994
|
-
|
995
|
-
|
1331
|
+
// in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
|
1332
|
+
|
1333
|
+
|
1334
|
+
var classList = documentCreateElement('span').classList;
|
1335
|
+
var DOMTokenListPrototype = classList && classList.constructor && classList.constructor.prototype;
|
1336
|
+
|
1337
|
+
var domTokenListPrototype = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
|
1338
|
+
|
1339
|
+
var bind = functionUncurryThis(functionUncurryThis.bind);
|
996
1340
|
|
997
1341
|
// optional / simple context binding
|
998
|
-
var functionBindContext = function (fn, that
|
999
|
-
|
1000
|
-
|
1001
|
-
switch (length) {
|
1002
|
-
case 0: return function () {
|
1003
|
-
return fn.call(that);
|
1004
|
-
};
|
1005
|
-
case 1: return function (a) {
|
1006
|
-
return fn.call(that, a);
|
1007
|
-
};
|
1008
|
-
case 2: return function (a, b) {
|
1009
|
-
return fn.call(that, a, b);
|
1010
|
-
};
|
1011
|
-
case 3: return function (a, b, c) {
|
1012
|
-
return fn.call(that, a, b, c);
|
1013
|
-
};
|
1014
|
-
}
|
1015
|
-
return function (/* ...args */) {
|
1342
|
+
var functionBindContext = function (fn, that) {
|
1343
|
+
aCallable(fn);
|
1344
|
+
return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
|
1016
1345
|
return fn.apply(that, arguments);
|
1017
1346
|
};
|
1018
1347
|
};
|
1019
1348
|
|
1020
|
-
var push = [].push;
|
1349
|
+
var push = functionUncurryThis([].push);
|
1021
1350
|
|
1022
|
-
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex,
|
1351
|
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
1023
1352
|
var createMethod = function (TYPE) {
|
1024
1353
|
var IS_MAP = TYPE == 1;
|
1025
1354
|
var IS_FILTER = TYPE == 2;
|
1026
1355
|
var IS_SOME = TYPE == 3;
|
1027
1356
|
var IS_EVERY = TYPE == 4;
|
1028
1357
|
var IS_FIND_INDEX = TYPE == 6;
|
1029
|
-
var
|
1358
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
1030
1359
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
1031
1360
|
return function ($this, callbackfn, that, specificCreate) {
|
1032
1361
|
var O = toObject($this);
|
1033
1362
|
var self = indexedObject(O);
|
1034
|
-
var boundFunction = functionBindContext(callbackfn, that
|
1035
|
-
var length =
|
1363
|
+
var boundFunction = functionBindContext(callbackfn, that);
|
1364
|
+
var length = lengthOfArrayLike(self);
|
1036
1365
|
var index = 0;
|
1037
1366
|
var create = specificCreate || arraySpeciesCreate;
|
1038
|
-
var target = IS_MAP ? create($this, length) : IS_FILTER ||
|
1367
|
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
1039
1368
|
var value, result;
|
1040
1369
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
1041
1370
|
value = self[index];
|
@@ -1046,10 +1375,10 @@
|
|
1046
1375
|
case 3: return true; // some
|
1047
1376
|
case 5: return value; // find
|
1048
1377
|
case 6: return index; // findIndex
|
1049
|
-
case 2: push
|
1378
|
+
case 2: push(target, value); // filter
|
1050
1379
|
} else switch (TYPE) {
|
1051
1380
|
case 4: return false; // every
|
1052
|
-
case 7: push
|
1381
|
+
case 7: push(target, value); // filterReject
|
1053
1382
|
}
|
1054
1383
|
}
|
1055
1384
|
}
|
@@ -1079,16 +1408,16 @@
|
|
1079
1408
|
// `Array.prototype.findIndex` method
|
1080
1409
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
1081
1410
|
findIndex: createMethod(6),
|
1082
|
-
// `Array.prototype.
|
1411
|
+
// `Array.prototype.filterReject` method
|
1083
1412
|
// https://github.com/tc39/proposal-array-filtering
|
1084
|
-
|
1413
|
+
filterReject: createMethod(7)
|
1085
1414
|
};
|
1086
1415
|
|
1087
1416
|
var arrayMethodIsStrict = function (METHOD_NAME, argument) {
|
1088
1417
|
var method = [][METHOD_NAME];
|
1089
1418
|
return !!method && fails(function () {
|
1090
|
-
// eslint-disable-next-line no-useless-call
|
1091
|
-
method.call(null, argument || function () {
|
1419
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
1420
|
+
method.call(null, argument || function () { return 1; }, 1);
|
1092
1421
|
});
|
1093
1422
|
};
|
1094
1423
|
|
@@ -1101,20 +1430,26 @@
|
|
1101
1430
|
// https://tc39.es/ecma262/#sec-array.prototype.foreach
|
1102
1431
|
var arrayForEach = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
1103
1432
|
return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
|
1104
|
-
// eslint-disable-next-line es/no-array-prototype-foreach -- safe
|
1433
|
+
// eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
|
1105
1434
|
} : [].forEach;
|
1106
1435
|
|
1107
|
-
|
1108
|
-
var Collection = global_1[COLLECTION_NAME];
|
1109
|
-
var CollectionPrototype = Collection && Collection.prototype;
|
1436
|
+
var handlePrototype = function (CollectionPrototype) {
|
1110
1437
|
// some Chrome versions have non-configurable methods on DOMTokenList
|
1111
1438
|
if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try {
|
1112
1439
|
createNonEnumerableProperty(CollectionPrototype, 'forEach', arrayForEach);
|
1113
1440
|
} catch (error) {
|
1114
1441
|
CollectionPrototype.forEach = arrayForEach;
|
1115
1442
|
}
|
1443
|
+
};
|
1444
|
+
|
1445
|
+
for (var COLLECTION_NAME in domIterables) {
|
1446
|
+
if (domIterables[COLLECTION_NAME]) {
|
1447
|
+
handlePrototype(global_1[COLLECTION_NAME] && global_1[COLLECTION_NAME].prototype);
|
1448
|
+
}
|
1116
1449
|
}
|
1117
1450
|
|
1451
|
+
handlePrototype(domTokenListPrototype);
|
1452
|
+
|
1118
1453
|
var MATCH$1 = wellKnownSymbol('match');
|
1119
1454
|
|
1120
1455
|
// `IsRegExp` abstract operation
|
@@ -1124,12 +1459,21 @@
|
|
1124
1459
|
return isObject(it) && ((isRegExp = it[MATCH$1]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
|
1125
1460
|
};
|
1126
1461
|
|
1462
|
+
var TypeError$1 = global_1.TypeError;
|
1463
|
+
|
1127
1464
|
var notARegexp = function (it) {
|
1128
1465
|
if (isRegexp(it)) {
|
1129
|
-
throw TypeError("The method doesn't accept regular expressions");
|
1466
|
+
throw TypeError$1("The method doesn't accept regular expressions");
|
1130
1467
|
} return it;
|
1131
1468
|
};
|
1132
1469
|
|
1470
|
+
var String$1 = global_1.String;
|
1471
|
+
|
1472
|
+
var toString_1 = function (argument) {
|
1473
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
1474
|
+
return String$1(argument);
|
1475
|
+
};
|
1476
|
+
|
1133
1477
|
var MATCH = wellKnownSymbol('match');
|
1134
1478
|
|
1135
1479
|
var correctIsRegexpLogic = function (METHOD_NAME) {
|
@@ -1144,12 +1488,17 @@
|
|
1144
1488
|
} return false;
|
1145
1489
|
};
|
1146
1490
|
|
1491
|
+
var stringIndexOf = functionUncurryThis(''.indexOf);
|
1492
|
+
|
1147
1493
|
// `String.prototype.includes` method
|
1148
1494
|
// https://tc39.es/ecma262/#sec-string.prototype.includes
|
1149
1495
|
_export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
|
1150
1496
|
includes: function includes(searchString /* , position = 0 */) {
|
1151
|
-
return !!~
|
1152
|
-
|
1497
|
+
return !!~stringIndexOf(
|
1498
|
+
toString_1(requireObjectCoercible(this)),
|
1499
|
+
toString_1(notARegexp(searchString)),
|
1500
|
+
arguments.length > 1 ? arguments[1] : undefined
|
1501
|
+
);
|
1153
1502
|
}
|
1154
1503
|
});
|
1155
1504
|
|
@@ -1176,7 +1525,7 @@
|
|
1176
1525
|
};
|
1177
1526
|
};
|
1178
1527
|
|
1179
|
-
$__default[
|
1528
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
|
1180
1529
|
mobileResponsive: false,
|
1181
1530
|
minWidth: 562,
|
1182
1531
|
minHeight: undefined,
|
@@ -1186,7 +1535,7 @@
|
|
1186
1535
|
columnsHidden: []
|
1187
1536
|
});
|
1188
1537
|
|
1189
|
-
$__default[
|
1538
|
+
$__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
|
1190
1539
|
_inherits(_class, _$$BootstrapTable);
|
1191
1540
|
|
1192
1541
|
var _super = _createSuper(_class);
|
@@ -1219,14 +1568,14 @@
|
|
1219
1568
|
}
|
1220
1569
|
|
1221
1570
|
var old = {
|
1222
|
-
width: $__default[
|
1223
|
-
height: $__default[
|
1571
|
+
width: $__default["default"](window).width(),
|
1572
|
+
height: $__default["default"](window).height()
|
1224
1573
|
};
|
1225
|
-
$__default[
|
1574
|
+
$__default["default"](window).on('resize orientationchange', debounce(function () {
|
1226
1575
|
// reset view if height has only changed by at least the threshold.
|
1227
|
-
var width = $__default[
|
1228
|
-
var height = $__default[
|
1229
|
-
var $activeElement = $__default[
|
1576
|
+
var width = $__default["default"](window).width();
|
1577
|
+
var height = $__default["default"](window).height();
|
1578
|
+
var $activeElement = $__default["default"](document.activeElement);
|
1230
1579
|
|
1231
1580
|
if ($activeElement.length && ['INPUT', 'SELECT', 'TEXTAREA'].includes($activeElement.prop('nodeName'))) {
|
1232
1581
|
return;
|
@@ -1243,8 +1592,8 @@
|
|
1243
1592
|
}, 200));
|
1244
1593
|
|
1245
1594
|
if (this.options.checkOnInit) {
|
1246
|
-
var width = $__default[
|
1247
|
-
var height = $__default[
|
1595
|
+
var width = $__default["default"](window).width();
|
1596
|
+
var height = $__default["default"](window).height();
|
1248
1597
|
this.changeView(width, height);
|
1249
1598
|
old = {
|
1250
1599
|
width: width,
|
@@ -1305,6 +1654,6 @@
|
|
1305
1654
|
}]);
|
1306
1655
|
|
1307
1656
|
return _class;
|
1308
|
-
}($__default[
|
1657
|
+
}($__default["default"].BootstrapTable);
|
1309
1658
|
|
1310
|
-
}))
|
1659
|
+
}));
|