bootstrap-table-rails 1.19.1 → 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/lib/bootstrap-table-rails/version.rb +1 -1
- data/vendor/assets/javascripts/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +906 -337
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +816 -382
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +817 -383
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +2 -1
- data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +2787 -2003
- data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1003 -429
- data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +536 -240
- data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1381 -923
- data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +546 -250
- data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +547 -249
- data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +471 -186
- data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +883 -525
- data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +852 -449
- 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 +2649 -1097
- data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +1276 -710
- data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +566 -272
- data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +861 -414
- 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 +652 -351
- data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +572 -249
- data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +782 -370
- data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +532 -237
- data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +538 -246
- data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +744 -294
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +572 -258
- data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +510 -200
- data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +471 -186
- data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +539 -244
- data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +864 -531
- data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +526 -235
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +465 -188
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +477 -200
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +460 -182
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +457 -180
- 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 +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +482 -204
- 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 +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +496 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +496 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +457 -180
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +547 -255
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +543 -235
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +547 -239
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +545 -252
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +1 -0
- data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +541 -233
- metadata +5 -3
data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.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
|
|
@@ -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
|
function _slicedToArray(arr, i) {
|
@@ -148,14 +156,17 @@
|
|
148
156
|
}
|
149
157
|
|
150
158
|
function _iterableToArrayLimit(arr, i) {
|
151
|
-
|
159
|
+
var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
|
160
|
+
|
161
|
+
if (_i == null) return;
|
152
162
|
var _arr = [];
|
153
163
|
var _n = true;
|
154
164
|
var _d = false;
|
155
|
-
|
165
|
+
|
166
|
+
var _s, _e;
|
156
167
|
|
157
168
|
try {
|
158
|
-
for (
|
169
|
+
for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) {
|
159
170
|
_arr.push(_s.value);
|
160
171
|
|
161
172
|
if (i && _arr.length === i) break;
|
@@ -196,9 +207,9 @@
|
|
196
207
|
}
|
197
208
|
|
198
209
|
function _createForOfIteratorHelper(o, allowArrayLike) {
|
199
|
-
var it;
|
210
|
+
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"];
|
200
211
|
|
201
|
-
if (
|
212
|
+
if (!it) {
|
202
213
|
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
|
203
214
|
if (it) o = it;
|
204
215
|
var i = 0;
|
@@ -231,7 +242,7 @@
|
|
231
242
|
err;
|
232
243
|
return {
|
233
244
|
s: function () {
|
234
|
-
it =
|
245
|
+
it = it.call(o);
|
235
246
|
},
|
236
247
|
n: function () {
|
237
248
|
var step = it.next();
|
@@ -287,22 +298,34 @@
|
|
287
298
|
return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
|
288
299
|
});
|
289
300
|
|
290
|
-
var
|
301
|
+
var functionBindNative = !fails(function () {
|
302
|
+
var test = (function () { /* empty */ }).bind();
|
303
|
+
// eslint-disable-next-line no-prototype-builtins -- safe
|
304
|
+
return typeof test != 'function' || test.hasOwnProperty('prototype');
|
305
|
+
});
|
306
|
+
|
307
|
+
var call$2 = Function.prototype.call;
|
308
|
+
|
309
|
+
var functionCall = functionBindNative ? call$2.bind(call$2) : function () {
|
310
|
+
return call$2.apply(call$2, arguments);
|
311
|
+
};
|
312
|
+
|
313
|
+
var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
|
291
314
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
292
315
|
var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
293
316
|
|
294
317
|
// Nashorn ~ JDK8 bug
|
295
|
-
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
|
318
|
+
var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable$1.call({ 1: 2 }, 1);
|
296
319
|
|
297
320
|
// `Object.prototype.propertyIsEnumerable` method implementation
|
298
321
|
// https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
|
299
|
-
var f$
|
322
|
+
var f$5 = NASHORN_BUG ? function propertyIsEnumerable(V) {
|
300
323
|
var descriptor = getOwnPropertyDescriptor$1(this, V);
|
301
324
|
return !!descriptor && descriptor.enumerable;
|
302
|
-
} : $propertyIsEnumerable;
|
325
|
+
} : $propertyIsEnumerable$1;
|
303
326
|
|
304
327
|
var objectPropertyIsEnumerable = {
|
305
|
-
f: f$
|
328
|
+
f: f$5
|
306
329
|
};
|
307
330
|
|
308
331
|
var createPropertyDescriptor = function (bitmap, value) {
|
@@ -314,27 +337,44 @@
|
|
314
337
|
};
|
315
338
|
};
|
316
339
|
|
317
|
-
var
|
340
|
+
var FunctionPrototype$2 = Function.prototype;
|
341
|
+
var bind$1 = FunctionPrototype$2.bind;
|
342
|
+
var call$1 = FunctionPrototype$2.call;
|
343
|
+
var uncurryThis = functionBindNative && bind$1.bind(call$1, call$1);
|
344
|
+
|
345
|
+
var functionUncurryThis = functionBindNative ? function (fn) {
|
346
|
+
return fn && uncurryThis(fn);
|
347
|
+
} : function (fn) {
|
348
|
+
return fn && function () {
|
349
|
+
return call$1.apply(fn, arguments);
|
350
|
+
};
|
351
|
+
};
|
352
|
+
|
353
|
+
var toString$1 = functionUncurryThis({}.toString);
|
354
|
+
var stringSlice$4 = functionUncurryThis(''.slice);
|
318
355
|
|
319
356
|
var classofRaw = function (it) {
|
320
|
-
return toString
|
357
|
+
return stringSlice$4(toString$1(it), 8, -1);
|
321
358
|
};
|
322
359
|
|
323
|
-
var
|
360
|
+
var Object$4 = global_1.Object;
|
361
|
+
var split = functionUncurryThis(''.split);
|
324
362
|
|
325
363
|
// fallback for non-array-like ES3 and non-enumerable old V8 strings
|
326
364
|
var indexedObject = fails(function () {
|
327
365
|
// throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
|
328
366
|
// eslint-disable-next-line no-prototype-builtins -- safe
|
329
|
-
return !Object('z').propertyIsEnumerable(0);
|
367
|
+
return !Object$4('z').propertyIsEnumerable(0);
|
330
368
|
}) ? function (it) {
|
331
|
-
return classofRaw(it) == 'String' ? split
|
332
|
-
} : Object;
|
369
|
+
return classofRaw(it) == 'String' ? split(it, '') : Object$4(it);
|
370
|
+
} : Object$4;
|
371
|
+
|
372
|
+
var TypeError$9 = global_1.TypeError;
|
333
373
|
|
334
374
|
// `RequireObjectCoercible` abstract operation
|
335
375
|
// https://tc39.es/ecma262/#sec-requireobjectcoercible
|
336
376
|
var requireObjectCoercible = function (it) {
|
337
|
-
if (it == undefined) throw TypeError("Can't call method on " + it);
|
377
|
+
if (it == undefined) throw TypeError$9("Can't call method on " + it);
|
338
378
|
return it;
|
339
379
|
};
|
340
380
|
|
@@ -346,88 +386,309 @@
|
|
346
386
|
return indexedObject(requireObjectCoercible(it));
|
347
387
|
};
|
348
388
|
|
389
|
+
// `IsCallable` abstract operation
|
390
|
+
// https://tc39.es/ecma262/#sec-iscallable
|
391
|
+
var isCallable = function (argument) {
|
392
|
+
return typeof argument == 'function';
|
393
|
+
};
|
394
|
+
|
349
395
|
var isObject = function (it) {
|
350
|
-
return typeof it
|
396
|
+
return typeof it == 'object' ? it !== null : isCallable(it);
|
351
397
|
};
|
352
398
|
|
353
|
-
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
var
|
358
|
-
|
399
|
+
var aFunction = function (argument) {
|
400
|
+
return isCallable(argument) ? argument : undefined;
|
401
|
+
};
|
402
|
+
|
403
|
+
var getBuiltIn = function (namespace, method) {
|
404
|
+
return arguments.length < 2 ? aFunction(global_1[namespace]) : global_1[namespace] && global_1[namespace][method];
|
405
|
+
};
|
406
|
+
|
407
|
+
var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
|
408
|
+
|
409
|
+
var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
|
410
|
+
|
411
|
+
var process = global_1.process;
|
412
|
+
var Deno = global_1.Deno;
|
413
|
+
var versions = process && process.versions || Deno && Deno.version;
|
414
|
+
var v8 = versions && versions.v8;
|
415
|
+
var match, version;
|
416
|
+
|
417
|
+
if (v8) {
|
418
|
+
match = v8.split('.');
|
419
|
+
// in old Chrome, versions of V8 isn't V8 = Chrome / 10
|
420
|
+
// but their correct versions are not interesting for us
|
421
|
+
version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
|
422
|
+
}
|
423
|
+
|
424
|
+
// BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
|
425
|
+
// so check `userAgent` even if `.v8` exists, but 0
|
426
|
+
if (!version && engineUserAgent) {
|
427
|
+
match = engineUserAgent.match(/Edge\/(\d+)/);
|
428
|
+
if (!match || match[1] >= 74) {
|
429
|
+
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
430
|
+
if (match) version = +match[1];
|
431
|
+
}
|
432
|
+
}
|
433
|
+
|
434
|
+
var engineV8Version = version;
|
435
|
+
|
436
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
437
|
+
|
438
|
+
|
439
|
+
|
440
|
+
// eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
|
441
|
+
var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
|
442
|
+
var symbol = Symbol();
|
443
|
+
// Chrome 38 Symbol has incorrect toString conversion
|
444
|
+
// `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
|
445
|
+
return !String(symbol) || !(Object(symbol) instanceof Symbol) ||
|
446
|
+
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
447
|
+
!Symbol.sham && engineV8Version && engineV8Version < 41;
|
448
|
+
});
|
449
|
+
|
450
|
+
/* eslint-disable es/no-symbol -- required for testing */
|
451
|
+
|
452
|
+
|
453
|
+
var useSymbolAsUid = nativeSymbol
|
454
|
+
&& !Symbol.sham
|
455
|
+
&& typeof Symbol.iterator == 'symbol';
|
456
|
+
|
457
|
+
var Object$3 = global_1.Object;
|
458
|
+
|
459
|
+
var isSymbol = useSymbolAsUid ? function (it) {
|
460
|
+
return typeof it == 'symbol';
|
461
|
+
} : function (it) {
|
462
|
+
var $Symbol = getBuiltIn('Symbol');
|
463
|
+
return isCallable($Symbol) && objectIsPrototypeOf($Symbol.prototype, Object$3(it));
|
464
|
+
};
|
465
|
+
|
466
|
+
var String$3 = global_1.String;
|
467
|
+
|
468
|
+
var tryToString = function (argument) {
|
469
|
+
try {
|
470
|
+
return String$3(argument);
|
471
|
+
} catch (error) {
|
472
|
+
return 'Object';
|
473
|
+
}
|
474
|
+
};
|
475
|
+
|
476
|
+
var TypeError$8 = global_1.TypeError;
|
477
|
+
|
478
|
+
// `Assert: IsCallable(argument) is true`
|
479
|
+
var aCallable = function (argument) {
|
480
|
+
if (isCallable(argument)) return argument;
|
481
|
+
throw TypeError$8(tryToString(argument) + ' is not a function');
|
482
|
+
};
|
483
|
+
|
484
|
+
// `GetMethod` abstract operation
|
485
|
+
// https://tc39.es/ecma262/#sec-getmethod
|
486
|
+
var getMethod = function (V, P) {
|
487
|
+
var func = V[P];
|
488
|
+
return func == null ? undefined : aCallable(func);
|
489
|
+
};
|
490
|
+
|
491
|
+
var TypeError$7 = global_1.TypeError;
|
492
|
+
|
493
|
+
// `OrdinaryToPrimitive` abstract operation
|
494
|
+
// https://tc39.es/ecma262/#sec-ordinarytoprimitive
|
495
|
+
var ordinaryToPrimitive = function (input, pref) {
|
359
496
|
var fn, val;
|
360
|
-
if (
|
361
|
-
if (
|
362
|
-
if (
|
363
|
-
throw TypeError("Can't convert object to primitive value");
|
497
|
+
if (pref === 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
498
|
+
if (isCallable(fn = input.valueOf) && !isObject(val = functionCall(fn, input))) return val;
|
499
|
+
if (pref !== 'string' && isCallable(fn = input.toString) && !isObject(val = functionCall(fn, input))) return val;
|
500
|
+
throw TypeError$7("Can't convert object to primitive value");
|
501
|
+
};
|
502
|
+
|
503
|
+
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
504
|
+
var defineProperty = Object.defineProperty;
|
505
|
+
|
506
|
+
var setGlobal = function (key, value) {
|
507
|
+
try {
|
508
|
+
defineProperty(global_1, key, { value: value, configurable: true, writable: true });
|
509
|
+
} catch (error) {
|
510
|
+
global_1[key] = value;
|
511
|
+
} return value;
|
512
|
+
};
|
513
|
+
|
514
|
+
var SHARED = '__core-js_shared__';
|
515
|
+
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
516
|
+
|
517
|
+
var sharedStore = store$1;
|
518
|
+
|
519
|
+
var shared = createCommonjsModule(function (module) {
|
520
|
+
(module.exports = function (key, value) {
|
521
|
+
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
522
|
+
})('versions', []).push({
|
523
|
+
version: '3.21.1',
|
524
|
+
mode: 'global',
|
525
|
+
copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
|
526
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
|
527
|
+
source: 'https://github.com/zloirock/core-js'
|
528
|
+
});
|
529
|
+
});
|
530
|
+
|
531
|
+
var Object$2 = global_1.Object;
|
532
|
+
|
533
|
+
// `ToObject` abstract operation
|
534
|
+
// https://tc39.es/ecma262/#sec-toobject
|
535
|
+
var toObject = function (argument) {
|
536
|
+
return Object$2(requireObjectCoercible(argument));
|
537
|
+
};
|
538
|
+
|
539
|
+
var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
|
540
|
+
|
541
|
+
// `HasOwnProperty` abstract operation
|
542
|
+
// https://tc39.es/ecma262/#sec-hasownproperty
|
543
|
+
var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
|
544
|
+
return hasOwnProperty(toObject(it), key);
|
545
|
+
};
|
546
|
+
|
547
|
+
var id = 0;
|
548
|
+
var postfix = Math.random();
|
549
|
+
var toString = functionUncurryThis(1.0.toString);
|
550
|
+
|
551
|
+
var uid = function (key) {
|
552
|
+
return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
|
553
|
+
};
|
554
|
+
|
555
|
+
var WellKnownSymbolsStore = shared('wks');
|
556
|
+
var Symbol$1 = global_1.Symbol;
|
557
|
+
var symbolFor = Symbol$1 && Symbol$1['for'];
|
558
|
+
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
559
|
+
|
560
|
+
var wellKnownSymbol = function (name) {
|
561
|
+
if (!hasOwnProperty_1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
562
|
+
var description = 'Symbol.' + name;
|
563
|
+
if (nativeSymbol && hasOwnProperty_1(Symbol$1, name)) {
|
564
|
+
WellKnownSymbolsStore[name] = Symbol$1[name];
|
565
|
+
} else if (useSymbolAsUid && symbolFor) {
|
566
|
+
WellKnownSymbolsStore[name] = symbolFor(description);
|
567
|
+
} else {
|
568
|
+
WellKnownSymbolsStore[name] = createWellKnownSymbol(description);
|
569
|
+
}
|
570
|
+
} return WellKnownSymbolsStore[name];
|
364
571
|
};
|
365
572
|
|
366
|
-
var
|
573
|
+
var TypeError$6 = global_1.TypeError;
|
574
|
+
var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
|
575
|
+
|
576
|
+
// `ToPrimitive` abstract operation
|
577
|
+
// https://tc39.es/ecma262/#sec-toprimitive
|
578
|
+
var toPrimitive = function (input, pref) {
|
579
|
+
if (!isObject(input) || isSymbol(input)) return input;
|
580
|
+
var exoticToPrim = getMethod(input, TO_PRIMITIVE);
|
581
|
+
var result;
|
582
|
+
if (exoticToPrim) {
|
583
|
+
if (pref === undefined) pref = 'default';
|
584
|
+
result = functionCall(exoticToPrim, input, pref);
|
585
|
+
if (!isObject(result) || isSymbol(result)) return result;
|
586
|
+
throw TypeError$6("Can't convert object to primitive value");
|
587
|
+
}
|
588
|
+
if (pref === undefined) pref = 'number';
|
589
|
+
return ordinaryToPrimitive(input, pref);
|
590
|
+
};
|
367
591
|
|
368
|
-
|
369
|
-
|
592
|
+
// `ToPropertyKey` abstract operation
|
593
|
+
// https://tc39.es/ecma262/#sec-topropertykey
|
594
|
+
var toPropertyKey = function (argument) {
|
595
|
+
var key = toPrimitive(argument, 'string');
|
596
|
+
return isSymbol(key) ? key : key + '';
|
370
597
|
};
|
371
598
|
|
372
599
|
var document$1 = global_1.document;
|
373
600
|
// typeof document.createElement is 'object' in old IE
|
374
|
-
var EXISTS = isObject(document$1) && isObject(document$1.createElement);
|
601
|
+
var EXISTS$1 = isObject(document$1) && isObject(document$1.createElement);
|
375
602
|
|
376
603
|
var documentCreateElement = function (it) {
|
377
|
-
return EXISTS ? document$1.createElement(it) : {};
|
604
|
+
return EXISTS$1 ? document$1.createElement(it) : {};
|
378
605
|
};
|
379
606
|
|
380
|
-
//
|
607
|
+
// Thanks to IE8 for its funny defineProperty
|
381
608
|
var ie8DomDefine = !descriptors && !fails(function () {
|
382
|
-
// eslint-disable-next-line es/no-object-defineproperty --
|
609
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
383
610
|
return Object.defineProperty(documentCreateElement('div'), 'a', {
|
384
611
|
get: function () { return 7; }
|
385
612
|
}).a != 7;
|
386
613
|
});
|
387
614
|
|
388
615
|
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
389
|
-
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
616
|
+
var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
|
390
617
|
|
391
618
|
// `Object.getOwnPropertyDescriptor` method
|
392
619
|
// https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
|
393
|
-
var f$
|
620
|
+
var f$4 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
|
394
621
|
O = toIndexedObject(O);
|
395
|
-
P =
|
622
|
+
P = toPropertyKey(P);
|
396
623
|
if (ie8DomDefine) try {
|
397
|
-
return $getOwnPropertyDescriptor(O, P);
|
624
|
+
return $getOwnPropertyDescriptor$1(O, P);
|
398
625
|
} catch (error) { /* empty */ }
|
399
|
-
if (
|
626
|
+
if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
|
400
627
|
};
|
401
628
|
|
402
629
|
var objectGetOwnPropertyDescriptor = {
|
403
|
-
f: f$
|
630
|
+
f: f$4
|
404
631
|
};
|
405
632
|
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
|
633
|
+
// V8 ~ Chrome 36-
|
634
|
+
// https://bugs.chromium.org/p/v8/issues/detail?id=3334
|
635
|
+
var v8PrototypeDefineBug = descriptors && fails(function () {
|
636
|
+
// eslint-disable-next-line es/no-object-defineproperty -- required for testing
|
637
|
+
return Object.defineProperty(function () { /* empty */ }, 'prototype', {
|
638
|
+
value: 42,
|
639
|
+
writable: false
|
640
|
+
}).prototype != 42;
|
641
|
+
});
|
642
|
+
|
643
|
+
var String$2 = global_1.String;
|
644
|
+
var TypeError$5 = global_1.TypeError;
|
645
|
+
|
646
|
+
// `Assert: Type(argument) is Object`
|
647
|
+
var anObject = function (argument) {
|
648
|
+
if (isObject(argument)) return argument;
|
649
|
+
throw TypeError$5(String$2(argument) + ' is not an object');
|
410
650
|
};
|
411
651
|
|
652
|
+
var TypeError$4 = global_1.TypeError;
|
412
653
|
// eslint-disable-next-line es/no-object-defineproperty -- safe
|
413
654
|
var $defineProperty = Object.defineProperty;
|
655
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
656
|
+
var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
|
657
|
+
var ENUMERABLE = 'enumerable';
|
658
|
+
var CONFIGURABLE$1 = 'configurable';
|
659
|
+
var WRITABLE = 'writable';
|
414
660
|
|
415
661
|
// `Object.defineProperty` method
|
416
662
|
// https://tc39.es/ecma262/#sec-object.defineproperty
|
417
|
-
var f$
|
663
|
+
var f$3 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
|
664
|
+
anObject(O);
|
665
|
+
P = toPropertyKey(P);
|
666
|
+
anObject(Attributes);
|
667
|
+
if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
|
668
|
+
var current = $getOwnPropertyDescriptor(O, P);
|
669
|
+
if (current && current[WRITABLE]) {
|
670
|
+
O[P] = Attributes.value;
|
671
|
+
Attributes = {
|
672
|
+
configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
|
673
|
+
enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
|
674
|
+
writable: false
|
675
|
+
};
|
676
|
+
}
|
677
|
+
} return $defineProperty(O, P, Attributes);
|
678
|
+
} : $defineProperty : function defineProperty(O, P, Attributes) {
|
418
679
|
anObject(O);
|
419
|
-
P =
|
680
|
+
P = toPropertyKey(P);
|
420
681
|
anObject(Attributes);
|
421
682
|
if (ie8DomDefine) try {
|
422
683
|
return $defineProperty(O, P, Attributes);
|
423
684
|
} catch (error) { /* empty */ }
|
424
|
-
if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
|
685
|
+
if ('get' in Attributes || 'set' in Attributes) throw TypeError$4('Accessors not supported');
|
425
686
|
if ('value' in Attributes) O[P] = Attributes.value;
|
426
687
|
return O;
|
427
688
|
};
|
428
689
|
|
429
690
|
var objectDefineProperty = {
|
430
|
-
f: f$
|
691
|
+
f: f$3
|
431
692
|
};
|
432
693
|
|
433
694
|
var createNonEnumerableProperty = descriptors ? function (object, key, value) {
|
@@ -437,25 +698,12 @@
|
|
437
698
|
return object;
|
438
699
|
};
|
439
700
|
|
440
|
-
var
|
441
|
-
try {
|
442
|
-
createNonEnumerableProperty(global_1, key, value);
|
443
|
-
} catch (error) {
|
444
|
-
global_1[key] = value;
|
445
|
-
} return value;
|
446
|
-
};
|
447
|
-
|
448
|
-
var SHARED = '__core-js_shared__';
|
449
|
-
var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
|
450
|
-
|
451
|
-
var sharedStore = store$1;
|
452
|
-
|
453
|
-
var functionToString = Function.toString;
|
701
|
+
var functionToString = functionUncurryThis(Function.toString);
|
454
702
|
|
455
|
-
// this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
|
456
|
-
if (
|
703
|
+
// this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
|
704
|
+
if (!isCallable(sharedStore.inspectSource)) {
|
457
705
|
sharedStore.inspectSource = function (it) {
|
458
|
-
return functionToString
|
706
|
+
return functionToString(it);
|
459
707
|
};
|
460
708
|
}
|
461
709
|
|
@@ -463,24 +711,7 @@
|
|
463
711
|
|
464
712
|
var WeakMap$1 = global_1.WeakMap;
|
465
713
|
|
466
|
-
var nativeWeakMap =
|
467
|
-
|
468
|
-
var shared = createCommonjsModule(function (module) {
|
469
|
-
(module.exports = function (key, value) {
|
470
|
-
return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
|
471
|
-
})('versions', []).push({
|
472
|
-
version: '3.10.1',
|
473
|
-
mode: 'global',
|
474
|
-
copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
|
475
|
-
});
|
476
|
-
});
|
477
|
-
|
478
|
-
var id = 0;
|
479
|
-
var postfix = Math.random();
|
480
|
-
|
481
|
-
var uid = function (key) {
|
482
|
-
return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
|
483
|
-
};
|
714
|
+
var nativeWeakMap = isCallable(WeakMap$1) && /native code/.test(inspectSource(WeakMap$1));
|
484
715
|
|
485
716
|
var keys = shared('keys');
|
486
717
|
|
@@ -490,6 +721,8 @@
|
|
490
721
|
|
491
722
|
var hiddenKeys$1 = {};
|
492
723
|
|
724
|
+
var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
|
725
|
+
var TypeError$3 = global_1.TypeError;
|
493
726
|
var WeakMap = global_1.WeakMap;
|
494
727
|
var set, get, has;
|
495
728
|
|
@@ -501,40 +734,42 @@
|
|
501
734
|
return function (it) {
|
502
735
|
var state;
|
503
736
|
if (!isObject(it) || (state = get(it)).type !== TYPE) {
|
504
|
-
throw TypeError('Incompatible receiver, ' + TYPE + ' required');
|
737
|
+
throw TypeError$3('Incompatible receiver, ' + TYPE + ' required');
|
505
738
|
} return state;
|
506
739
|
};
|
507
740
|
};
|
508
741
|
|
509
|
-
if (nativeWeakMap) {
|
742
|
+
if (nativeWeakMap || sharedStore.state) {
|
510
743
|
var store = sharedStore.state || (sharedStore.state = new WeakMap());
|
511
|
-
var wmget = store.get;
|
512
|
-
var wmhas = store.has;
|
513
|
-
var wmset = store.set;
|
744
|
+
var wmget = functionUncurryThis(store.get);
|
745
|
+
var wmhas = functionUncurryThis(store.has);
|
746
|
+
var wmset = functionUncurryThis(store.set);
|
514
747
|
set = function (it, metadata) {
|
748
|
+
if (wmhas(store, it)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
|
515
749
|
metadata.facade = it;
|
516
|
-
wmset
|
750
|
+
wmset(store, it, metadata);
|
517
751
|
return metadata;
|
518
752
|
};
|
519
753
|
get = function (it) {
|
520
|
-
return wmget
|
754
|
+
return wmget(store, it) || {};
|
521
755
|
};
|
522
756
|
has = function (it) {
|
523
|
-
return wmhas
|
757
|
+
return wmhas(store, it);
|
524
758
|
};
|
525
759
|
} else {
|
526
760
|
var STATE = sharedKey('state');
|
527
761
|
hiddenKeys$1[STATE] = true;
|
528
762
|
set = function (it, metadata) {
|
763
|
+
if (hasOwnProperty_1(it, STATE)) throw new TypeError$3(OBJECT_ALREADY_INITIALIZED);
|
529
764
|
metadata.facade = it;
|
530
765
|
createNonEnumerableProperty(it, STATE, metadata);
|
531
766
|
return metadata;
|
532
767
|
};
|
533
768
|
get = function (it) {
|
534
|
-
return
|
769
|
+
return hasOwnProperty_1(it, STATE) ? it[STATE] : {};
|
535
770
|
};
|
536
771
|
has = function (it) {
|
537
|
-
return
|
772
|
+
return hasOwnProperty_1(it, STATE);
|
538
773
|
};
|
539
774
|
}
|
540
775
|
|
@@ -546,7 +781,24 @@
|
|
546
781
|
getterFor: getterFor
|
547
782
|
};
|
548
783
|
|
784
|
+
var FunctionPrototype$1 = Function.prototype;
|
785
|
+
// eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
|
786
|
+
var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
|
787
|
+
|
788
|
+
var EXISTS = hasOwnProperty_1(FunctionPrototype$1, 'name');
|
789
|
+
// additional protection from minified / mangled / dropped function names
|
790
|
+
var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
|
791
|
+
var CONFIGURABLE = EXISTS && (!descriptors || (descriptors && getDescriptor(FunctionPrototype$1, 'name').configurable));
|
792
|
+
|
793
|
+
var functionName = {
|
794
|
+
EXISTS: EXISTS,
|
795
|
+
PROPER: PROPER,
|
796
|
+
CONFIGURABLE: CONFIGURABLE
|
797
|
+
};
|
798
|
+
|
549
799
|
var redefine = createCommonjsModule(function (module) {
|
800
|
+
var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
|
801
|
+
|
550
802
|
var getInternalState = internalState.get;
|
551
803
|
var enforceInternalState = internalState.enforce;
|
552
804
|
var TEMPLATE = String(String).split('String');
|
@@ -555,14 +807,18 @@
|
|
555
807
|
var unsafe = options ? !!options.unsafe : false;
|
556
808
|
var simple = options ? !!options.enumerable : false;
|
557
809
|
var noTargetGet = options ? !!options.noTargetGet : false;
|
810
|
+
var name = options && options.name !== undefined ? options.name : key;
|
558
811
|
var state;
|
559
|
-
if (
|
560
|
-
if (
|
561
|
-
|
812
|
+
if (isCallable(value)) {
|
813
|
+
if (String(name).slice(0, 7) === 'Symbol(') {
|
814
|
+
name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
|
815
|
+
}
|
816
|
+
if (!hasOwnProperty_1(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
|
817
|
+
createNonEnumerableProperty(value, 'name', name);
|
562
818
|
}
|
563
819
|
state = enforceInternalState(value);
|
564
820
|
if (!state.source) {
|
565
|
-
state.source = TEMPLATE.join(typeof
|
821
|
+
state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
|
566
822
|
}
|
567
823
|
}
|
568
824
|
if (O === global_1) {
|
@@ -578,54 +834,51 @@
|
|
578
834
|
else createNonEnumerableProperty(O, key, value);
|
579
835
|
// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
|
580
836
|
})(Function.prototype, 'toString', function toString() {
|
581
|
-
return
|
837
|
+
return isCallable(this) && getInternalState(this).source || inspectSource(this);
|
582
838
|
});
|
583
839
|
});
|
584
840
|
|
585
|
-
var path = global_1;
|
586
|
-
|
587
|
-
var aFunction$1 = function (variable) {
|
588
|
-
return typeof variable == 'function' ? variable : undefined;
|
589
|
-
};
|
590
|
-
|
591
|
-
var getBuiltIn = function (namespace, method) {
|
592
|
-
return arguments.length < 2 ? aFunction$1(path[namespace]) || aFunction$1(global_1[namespace])
|
593
|
-
: path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
|
594
|
-
};
|
595
|
-
|
596
841
|
var ceil = Math.ceil;
|
597
842
|
var floor$1 = Math.floor;
|
598
843
|
|
599
|
-
// `
|
600
|
-
// https://tc39.es/ecma262/#sec-
|
601
|
-
var
|
602
|
-
|
844
|
+
// `ToIntegerOrInfinity` abstract operation
|
845
|
+
// https://tc39.es/ecma262/#sec-tointegerorinfinity
|
846
|
+
var toIntegerOrInfinity = function (argument) {
|
847
|
+
var number = +argument;
|
848
|
+
// eslint-disable-next-line no-self-compare -- safe
|
849
|
+
return number !== number || number === 0 ? 0 : (number > 0 ? floor$1 : ceil)(number);
|
603
850
|
};
|
604
851
|
|
852
|
+
var max$1 = Math.max;
|
605
853
|
var min$2 = Math.min;
|
606
854
|
|
855
|
+
// Helper for a popular repeating case of the spec:
|
856
|
+
// Let integer be ? ToInteger(index).
|
857
|
+
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
858
|
+
var toAbsoluteIndex = function (index, length) {
|
859
|
+
var integer = toIntegerOrInfinity(index);
|
860
|
+
return integer < 0 ? max$1(integer + length, 0) : min$2(integer, length);
|
861
|
+
};
|
862
|
+
|
863
|
+
var min$1 = Math.min;
|
864
|
+
|
607
865
|
// `ToLength` abstract operation
|
608
866
|
// https://tc39.es/ecma262/#sec-tolength
|
609
867
|
var toLength = function (argument) {
|
610
|
-
return argument > 0 ? min$
|
868
|
+
return argument > 0 ? min$1(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
|
611
869
|
};
|
612
870
|
|
613
|
-
|
614
|
-
|
615
|
-
|
616
|
-
|
617
|
-
// Let integer be ? ToInteger(index).
|
618
|
-
// If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
|
619
|
-
var toAbsoluteIndex = function (index, length) {
|
620
|
-
var integer = toInteger(index);
|
621
|
-
return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
|
871
|
+
// `LengthOfArrayLike` abstract operation
|
872
|
+
// https://tc39.es/ecma262/#sec-lengthofarraylike
|
873
|
+
var lengthOfArrayLike = function (obj) {
|
874
|
+
return toLength(obj.length);
|
622
875
|
};
|
623
876
|
|
624
877
|
// `Array.prototype.{ indexOf, includes }` methods implementation
|
625
878
|
var createMethod$3 = function (IS_INCLUDES) {
|
626
879
|
return function ($this, el, fromIndex) {
|
627
880
|
var O = toIndexedObject($this);
|
628
|
-
var length =
|
881
|
+
var length = lengthOfArrayLike(O);
|
629
882
|
var index = toAbsoluteIndex(fromIndex, length);
|
630
883
|
var value;
|
631
884
|
// Array#includes uses SameValueZero equality algorithm
|
@@ -650,18 +903,20 @@
|
|
650
903
|
indexOf: createMethod$3(false)
|
651
904
|
};
|
652
905
|
|
653
|
-
var indexOf = arrayIncludes.indexOf;
|
906
|
+
var indexOf$1 = arrayIncludes.indexOf;
|
907
|
+
|
654
908
|
|
909
|
+
var push$3 = functionUncurryThis([].push);
|
655
910
|
|
656
911
|
var objectKeysInternal = function (object, names) {
|
657
912
|
var O = toIndexedObject(object);
|
658
913
|
var i = 0;
|
659
914
|
var result = [];
|
660
915
|
var key;
|
661
|
-
for (key in O) !
|
916
|
+
for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$3(result, key);
|
662
917
|
// Don't enum bug & hidden keys
|
663
|
-
while (names.length > i) if (
|
664
|
-
~indexOf(result, key) ||
|
918
|
+
while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
|
919
|
+
~indexOf$1(result, key) || push$3(result, key);
|
665
920
|
}
|
666
921
|
return result;
|
667
922
|
};
|
@@ -682,35 +937,39 @@
|
|
682
937
|
// `Object.getOwnPropertyNames` method
|
683
938
|
// https://tc39.es/ecma262/#sec-object.getownpropertynames
|
684
939
|
// eslint-disable-next-line es/no-object-getownpropertynames -- safe
|
685
|
-
var f$
|
940
|
+
var f$2 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
|
686
941
|
return objectKeysInternal(O, hiddenKeys);
|
687
942
|
};
|
688
943
|
|
689
944
|
var objectGetOwnPropertyNames = {
|
690
|
-
f: f$
|
945
|
+
f: f$2
|
691
946
|
};
|
692
947
|
|
693
948
|
// eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
|
694
|
-
var f = Object.getOwnPropertySymbols;
|
949
|
+
var f$1 = Object.getOwnPropertySymbols;
|
695
950
|
|
696
951
|
var objectGetOwnPropertySymbols = {
|
697
|
-
f: f
|
952
|
+
f: f$1
|
698
953
|
};
|
699
954
|
|
955
|
+
var concat$1 = functionUncurryThis([].concat);
|
956
|
+
|
700
957
|
// all object keys, includes non-enumerable and symbols
|
701
958
|
var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
|
702
959
|
var keys = objectGetOwnPropertyNames.f(anObject(it));
|
703
960
|
var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
|
704
|
-
return getOwnPropertySymbols ?
|
961
|
+
return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
|
705
962
|
};
|
706
963
|
|
707
|
-
var copyConstructorProperties = function (target, source) {
|
964
|
+
var copyConstructorProperties = function (target, source, exceptions) {
|
708
965
|
var keys = ownKeys(source);
|
709
966
|
var defineProperty = objectDefineProperty.f;
|
710
967
|
var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
|
711
968
|
for (var i = 0; i < keys.length; i++) {
|
712
969
|
var key = keys[i];
|
713
|
-
if (!
|
970
|
+
if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
|
971
|
+
defineProperty(target, key, getOwnPropertyDescriptor(source, key));
|
972
|
+
}
|
714
973
|
}
|
715
974
|
};
|
716
975
|
|
@@ -720,7 +979,7 @@
|
|
720
979
|
var value = data[normalize(feature)];
|
721
980
|
return value == POLYFILL ? true
|
722
981
|
: value == NATIVE ? false
|
723
|
-
:
|
982
|
+
: isCallable(detection) ? fails(detection)
|
724
983
|
: !!detection;
|
725
984
|
};
|
726
985
|
|
@@ -754,6 +1013,7 @@
|
|
754
1013
|
options.sham - add a flag to not completely full polyfills
|
755
1014
|
options.enumerable - export as enumerable property
|
756
1015
|
options.noTargetGet - prevent calling a getter on target
|
1016
|
+
options.name - the .name of the function if it does not match the key
|
757
1017
|
*/
|
758
1018
|
var _export = function (options, source) {
|
759
1019
|
var TARGET = options.target;
|
@@ -776,7 +1036,7 @@
|
|
776
1036
|
FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
|
777
1037
|
// contained in target
|
778
1038
|
if (!FORCED && targetProperty !== undefined) {
|
779
|
-
if (typeof sourceProperty
|
1039
|
+
if (typeof sourceProperty == typeof targetProperty) continue;
|
780
1040
|
copyConstructorProperties(sourceProperty, targetProperty);
|
781
1041
|
}
|
782
1042
|
// add a flag to not completely full polyfills
|
@@ -788,6 +1048,45 @@
|
|
788
1048
|
}
|
789
1049
|
};
|
790
1050
|
|
1051
|
+
var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
|
1052
|
+
var test = {};
|
1053
|
+
|
1054
|
+
test[TO_STRING_TAG$1] = 'z';
|
1055
|
+
|
1056
|
+
var toStringTagSupport = String(test) === '[object z]';
|
1057
|
+
|
1058
|
+
var TO_STRING_TAG = wellKnownSymbol('toStringTag');
|
1059
|
+
var Object$1 = global_1.Object;
|
1060
|
+
|
1061
|
+
// ES3 wrong here
|
1062
|
+
var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
|
1063
|
+
|
1064
|
+
// fallback for IE11 Script Access Denied error
|
1065
|
+
var tryGet = function (it, key) {
|
1066
|
+
try {
|
1067
|
+
return it[key];
|
1068
|
+
} catch (error) { /* empty */ }
|
1069
|
+
};
|
1070
|
+
|
1071
|
+
// getting tag from ES6+ `Object.prototype.toString`
|
1072
|
+
var classof = toStringTagSupport ? classofRaw : function (it) {
|
1073
|
+
var O, tag, result;
|
1074
|
+
return it === undefined ? 'Undefined' : it === null ? 'Null'
|
1075
|
+
// @@toStringTag case
|
1076
|
+
: typeof (tag = tryGet(O = Object$1(it), TO_STRING_TAG)) == 'string' ? tag
|
1077
|
+
// builtinTag case
|
1078
|
+
: CORRECT_ARGUMENTS ? classofRaw(O)
|
1079
|
+
// ES3 arguments fallback
|
1080
|
+
: (result = classofRaw(O)) == 'Object' && isCallable(O.callee) ? 'Arguments' : result;
|
1081
|
+
};
|
1082
|
+
|
1083
|
+
var String$1 = global_1.String;
|
1084
|
+
|
1085
|
+
var toString_1 = function (argument) {
|
1086
|
+
if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
|
1087
|
+
return String$1(argument);
|
1088
|
+
};
|
1089
|
+
|
791
1090
|
// `RegExp.prototype.flags` getter implementation
|
792
1091
|
// https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
|
793
1092
|
var regexpFlags = function () {
|
@@ -802,71 +1101,228 @@
|
|
802
1101
|
return result;
|
803
1102
|
};
|
804
1103
|
|
805
|
-
// babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
806
|
-
|
807
|
-
function RE(s, f) {
|
808
|
-
return RegExp(s, f);
|
809
|
-
}
|
1104
|
+
// babel-minify and Closure Compiler transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
|
1105
|
+
var $RegExp$2 = global_1.RegExp;
|
810
1106
|
|
811
1107
|
var UNSUPPORTED_Y$1 = fails(function () {
|
812
|
-
|
813
|
-
var re = RE('a', 'y');
|
1108
|
+
var re = $RegExp$2('a', 'y');
|
814
1109
|
re.lastIndex = 2;
|
815
1110
|
return re.exec('abcd') != null;
|
816
1111
|
});
|
817
1112
|
|
818
|
-
|
1113
|
+
// UC Browser bug
|
1114
|
+
// https://github.com/zloirock/core-js/issues/1008
|
1115
|
+
var MISSED_STICKY = UNSUPPORTED_Y$1 || fails(function () {
|
1116
|
+
return !$RegExp$2('a', 'y').sticky;
|
1117
|
+
});
|
1118
|
+
|
1119
|
+
var BROKEN_CARET = UNSUPPORTED_Y$1 || fails(function () {
|
819
1120
|
// https://bugzilla.mozilla.org/show_bug.cgi?id=773687
|
820
|
-
var re =
|
1121
|
+
var re = $RegExp$2('^r', 'gy');
|
821
1122
|
re.lastIndex = 2;
|
822
1123
|
return re.exec('str') != null;
|
823
1124
|
});
|
824
1125
|
|
825
1126
|
var regexpStickyHelpers = {
|
826
|
-
|
827
|
-
|
1127
|
+
BROKEN_CARET: BROKEN_CARET,
|
1128
|
+
MISSED_STICKY: MISSED_STICKY,
|
1129
|
+
UNSUPPORTED_Y: UNSUPPORTED_Y$1
|
828
1130
|
};
|
829
1131
|
|
830
|
-
|
831
|
-
|
1132
|
+
// `Object.keys` method
|
1133
|
+
// https://tc39.es/ecma262/#sec-object.keys
|
1134
|
+
// eslint-disable-next-line es/no-object-keys -- safe
|
1135
|
+
var objectKeys = Object.keys || function keys(O) {
|
1136
|
+
return objectKeysInternal(O, enumBugKeys);
|
1137
|
+
};
|
832
1138
|
|
833
|
-
|
1139
|
+
// `Object.defineProperties` method
|
1140
|
+
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1141
|
+
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
1142
|
+
var f = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
|
1143
|
+
anObject(O);
|
1144
|
+
var props = toIndexedObject(Properties);
|
1145
|
+
var keys = objectKeys(Properties);
|
1146
|
+
var length = keys.length;
|
1147
|
+
var index = 0;
|
1148
|
+
var key;
|
1149
|
+
while (length > index) objectDefineProperty.f(O, key = keys[index++], props[key]);
|
1150
|
+
return O;
|
1151
|
+
};
|
834
1152
|
|
835
|
-
var
|
836
|
-
|
837
|
-
|
838
|
-
nativeExec.call(re1, 'a');
|
839
|
-
nativeExec.call(re2, 'a');
|
840
|
-
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
841
|
-
})();
|
1153
|
+
var objectDefineProperties = {
|
1154
|
+
f: f
|
1155
|
+
};
|
842
1156
|
|
843
|
-
var
|
1157
|
+
var html = getBuiltIn('document', 'documentElement');
|
844
1158
|
|
845
|
-
|
846
|
-
// eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
|
847
|
-
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
1159
|
+
/* global ActiveXObject -- old IE, WSH */
|
848
1160
|
|
849
|
-
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
|
850
1161
|
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
1162
|
+
|
1163
|
+
|
1164
|
+
|
1165
|
+
|
1166
|
+
|
1167
|
+
|
1168
|
+
var GT = '>';
|
1169
|
+
var LT = '<';
|
1170
|
+
var PROTOTYPE = 'prototype';
|
1171
|
+
var SCRIPT = 'script';
|
1172
|
+
var IE_PROTO = sharedKey('IE_PROTO');
|
1173
|
+
|
1174
|
+
var EmptyConstructor = function () { /* empty */ };
|
1175
|
+
|
1176
|
+
var scriptTag = function (content) {
|
1177
|
+
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
1178
|
+
};
|
1179
|
+
|
1180
|
+
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
1181
|
+
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
1182
|
+
activeXDocument.write(scriptTag(''));
|
1183
|
+
activeXDocument.close();
|
1184
|
+
var temp = activeXDocument.parentWindow.Object;
|
1185
|
+
activeXDocument = null; // avoid memory leak
|
1186
|
+
return temp;
|
1187
|
+
};
|
1188
|
+
|
1189
|
+
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
1190
|
+
var NullProtoObjectViaIFrame = function () {
|
1191
|
+
// Thrash, waste and sodomy: IE GC bug
|
1192
|
+
var iframe = documentCreateElement('iframe');
|
1193
|
+
var JS = 'java' + SCRIPT + ':';
|
1194
|
+
var iframeDocument;
|
1195
|
+
iframe.style.display = 'none';
|
1196
|
+
html.appendChild(iframe);
|
1197
|
+
// https://github.com/zloirock/core-js/issues/475
|
1198
|
+
iframe.src = String(JS);
|
1199
|
+
iframeDocument = iframe.contentWindow.document;
|
1200
|
+
iframeDocument.open();
|
1201
|
+
iframeDocument.write(scriptTag('document.F=Object'));
|
1202
|
+
iframeDocument.close();
|
1203
|
+
return iframeDocument.F;
|
1204
|
+
};
|
1205
|
+
|
1206
|
+
// Check for document.domain and active x support
|
1207
|
+
// No need to use active x approach when document.domain is not set
|
1208
|
+
// see https://github.com/es-shims/es5-shim/issues/150
|
1209
|
+
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
1210
|
+
// avoid IE GC bug
|
1211
|
+
var activeXDocument;
|
1212
|
+
var NullProtoObject = function () {
|
1213
|
+
try {
|
1214
|
+
activeXDocument = new ActiveXObject('htmlfile');
|
1215
|
+
} catch (error) { /* ignore */ }
|
1216
|
+
NullProtoObject = typeof document != 'undefined'
|
1217
|
+
? document.domain && activeXDocument
|
1218
|
+
? NullProtoObjectViaActiveX(activeXDocument) // old IE
|
1219
|
+
: NullProtoObjectViaIFrame()
|
1220
|
+
: NullProtoObjectViaActiveX(activeXDocument); // WSH
|
1221
|
+
var length = enumBugKeys.length;
|
1222
|
+
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
1223
|
+
return NullProtoObject();
|
1224
|
+
};
|
1225
|
+
|
1226
|
+
hiddenKeys$1[IE_PROTO] = true;
|
1227
|
+
|
1228
|
+
// `Object.create` method
|
1229
|
+
// https://tc39.es/ecma262/#sec-object.create
|
1230
|
+
var objectCreate = Object.create || function create(O, Properties) {
|
1231
|
+
var result;
|
1232
|
+
if (O !== null) {
|
1233
|
+
EmptyConstructor[PROTOTYPE] = anObject(O);
|
1234
|
+
result = new EmptyConstructor();
|
1235
|
+
EmptyConstructor[PROTOTYPE] = null;
|
1236
|
+
// add "__proto__" for Object.getPrototypeOf polyfill
|
1237
|
+
result[IE_PROTO] = O;
|
1238
|
+
} else result = NullProtoObject();
|
1239
|
+
return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
|
1240
|
+
};
|
1241
|
+
|
1242
|
+
// babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
|
1243
|
+
var $RegExp$1 = global_1.RegExp;
|
1244
|
+
|
1245
|
+
var regexpUnsupportedDotAll = fails(function () {
|
1246
|
+
var re = $RegExp$1('.', 's');
|
1247
|
+
return !(re.dotAll && re.exec('\n') && re.flags === 's');
|
1248
|
+
});
|
1249
|
+
|
1250
|
+
// babel-minify and Closure Compiler transpiles RegExp('(?<a>b)', 'g') -> /(?<a>b)/g and it causes SyntaxError
|
1251
|
+
var $RegExp = global_1.RegExp;
|
1252
|
+
|
1253
|
+
var regexpUnsupportedNcg = fails(function () {
|
1254
|
+
var re = $RegExp('(?<a>b)', 'g');
|
1255
|
+
return re.exec('b').groups.a !== 'b' ||
|
1256
|
+
'b'.replace(re, '$<a>c') !== 'bc';
|
1257
|
+
});
|
1258
|
+
|
1259
|
+
/* eslint-disable regexp/no-empty-capturing-group, regexp/no-empty-group, regexp/no-lazy-ends -- testing */
|
1260
|
+
/* eslint-disable regexp/no-useless-quantifier -- testing */
|
1261
|
+
|
1262
|
+
|
1263
|
+
|
1264
|
+
|
1265
|
+
|
1266
|
+
|
1267
|
+
|
1268
|
+
var getInternalState = internalState.get;
|
1269
|
+
|
1270
|
+
|
1271
|
+
|
1272
|
+
var nativeReplace = shared('native-string-replace', String.prototype.replace);
|
1273
|
+
var nativeExec = RegExp.prototype.exec;
|
1274
|
+
var patchedExec = nativeExec;
|
1275
|
+
var charAt$3 = functionUncurryThis(''.charAt);
|
1276
|
+
var indexOf = functionUncurryThis(''.indexOf);
|
1277
|
+
var replace$1 = functionUncurryThis(''.replace);
|
1278
|
+
var stringSlice$3 = functionUncurryThis(''.slice);
|
1279
|
+
|
1280
|
+
var UPDATES_LAST_INDEX_WRONG = (function () {
|
1281
|
+
var re1 = /a/;
|
1282
|
+
var re2 = /b*/g;
|
1283
|
+
functionCall(nativeExec, re1, 'a');
|
1284
|
+
functionCall(nativeExec, re2, 'a');
|
1285
|
+
return re1.lastIndex !== 0 || re2.lastIndex !== 0;
|
1286
|
+
})();
|
1287
|
+
|
1288
|
+
var UNSUPPORTED_Y = regexpStickyHelpers.BROKEN_CARET;
|
1289
|
+
|
1290
|
+
// nonparticipating capturing group, copied from es5-shim's String#split patch.
|
1291
|
+
var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
|
1292
|
+
|
1293
|
+
var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y || regexpUnsupportedDotAll || regexpUnsupportedNcg;
|
1294
|
+
|
1295
|
+
if (PATCH) {
|
1296
|
+
patchedExec = function exec(string) {
|
1297
|
+
var re = this;
|
1298
|
+
var state = getInternalState(re);
|
1299
|
+
var str = toString_1(string);
|
1300
|
+
var raw = state.raw;
|
1301
|
+
var result, reCopy, lastIndex, match, i, object, group;
|
1302
|
+
|
1303
|
+
if (raw) {
|
1304
|
+
raw.lastIndex = re.lastIndex;
|
1305
|
+
result = functionCall(patchedExec, raw, str);
|
1306
|
+
re.lastIndex = raw.lastIndex;
|
1307
|
+
return result;
|
1308
|
+
}
|
1309
|
+
|
1310
|
+
var groups = state.groups;
|
1311
|
+
var sticky = UNSUPPORTED_Y && re.sticky;
|
1312
|
+
var flags = functionCall(regexpFlags, re);
|
1313
|
+
var source = re.source;
|
858
1314
|
var charsAdded = 0;
|
859
1315
|
var strCopy = str;
|
860
1316
|
|
861
1317
|
if (sticky) {
|
862
|
-
flags =
|
863
|
-
if (
|
1318
|
+
flags = replace$1(flags, 'y', '');
|
1319
|
+
if (indexOf(flags, 'g') === -1) {
|
864
1320
|
flags += 'g';
|
865
1321
|
}
|
866
1322
|
|
867
|
-
strCopy =
|
1323
|
+
strCopy = stringSlice$3(str, re.lastIndex);
|
868
1324
|
// Support anchored sticky behavior.
|
869
|
-
if (re.lastIndex > 0 && (!re.multiline || re.multiline && str
|
1325
|
+
if (re.lastIndex > 0 && (!re.multiline || re.multiline && charAt$3(str, re.lastIndex - 1) !== '\n')) {
|
870
1326
|
source = '(?: ' + source + ')';
|
871
1327
|
strCopy = ' ' + strCopy;
|
872
1328
|
charsAdded++;
|
@@ -881,12 +1337,12 @@
|
|
881
1337
|
}
|
882
1338
|
if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
|
883
1339
|
|
884
|
-
match = nativeExec
|
1340
|
+
match = functionCall(nativeExec, sticky ? reCopy : re, strCopy);
|
885
1341
|
|
886
1342
|
if (sticky) {
|
887
1343
|
if (match) {
|
888
|
-
match.input = match.input
|
889
|
-
match[0] = match[0]
|
1344
|
+
match.input = stringSlice$3(match.input, charsAdded);
|
1345
|
+
match[0] = stringSlice$3(match[0], charsAdded);
|
890
1346
|
match.index = re.lastIndex;
|
891
1347
|
re.lastIndex += match[0].length;
|
892
1348
|
} else re.lastIndex = 0;
|
@@ -896,13 +1352,21 @@
|
|
896
1352
|
if (NPCG_INCLUDED && match && match.length > 1) {
|
897
1353
|
// Fix browsers whose `exec` methods don't consistently return `undefined`
|
898
1354
|
// for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
|
899
|
-
nativeReplace
|
1355
|
+
functionCall(nativeReplace, match[0], reCopy, function () {
|
900
1356
|
for (i = 1; i < arguments.length - 2; i++) {
|
901
1357
|
if (arguments[i] === undefined) match[i] = undefined;
|
902
1358
|
}
|
903
1359
|
});
|
904
1360
|
}
|
905
1361
|
|
1362
|
+
if (match && groups) {
|
1363
|
+
match.groups = object = objectCreate(null);
|
1364
|
+
for (i = 0; i < groups.length; i++) {
|
1365
|
+
group = groups[i];
|
1366
|
+
object[group[0]] = match[group[1]];
|
1367
|
+
}
|
1368
|
+
}
|
1369
|
+
|
906
1370
|
return match;
|
907
1371
|
};
|
908
1372
|
}
|
@@ -915,58 +1379,15 @@
|
|
915
1379
|
exec: regexpExec
|
916
1380
|
});
|
917
1381
|
|
918
|
-
var
|
919
|
-
|
920
|
-
var
|
921
|
-
|
922
|
-
var process = global_1.process;
|
923
|
-
var versions = process && process.versions;
|
924
|
-
var v8 = versions && versions.v8;
|
925
|
-
var match, version;
|
926
|
-
|
927
|
-
if (v8) {
|
928
|
-
match = v8.split('.');
|
929
|
-
version = match[0] + match[1];
|
930
|
-
} else if (engineUserAgent) {
|
931
|
-
match = engineUserAgent.match(/Edge\/(\d+)/);
|
932
|
-
if (!match || match[1] >= 74) {
|
933
|
-
match = engineUserAgent.match(/Chrome\/(\d+)/);
|
934
|
-
if (match) version = match[1];
|
935
|
-
}
|
936
|
-
}
|
937
|
-
|
938
|
-
var engineV8Version = version && +version;
|
1382
|
+
var FunctionPrototype = Function.prototype;
|
1383
|
+
var apply = FunctionPrototype.apply;
|
1384
|
+
var call = FunctionPrototype.call;
|
939
1385
|
|
940
|
-
// eslint-disable-next-line es/no-
|
941
|
-
var
|
942
|
-
|
943
|
-
return !Symbol.sham &&
|
944
|
-
// Chrome 38 Symbol has incorrect toString conversion
|
945
|
-
// Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
|
946
|
-
(engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
|
1386
|
+
// eslint-disable-next-line es/no-reflect -- safe
|
1387
|
+
var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
|
1388
|
+
return call.apply(apply, arguments);
|
947
1389
|
});
|
948
1390
|
|
949
|
-
/* eslint-disable es/no-symbol -- required for testing */
|
950
|
-
|
951
|
-
|
952
|
-
var useSymbolAsUid = nativeSymbol
|
953
|
-
&& !Symbol.sham
|
954
|
-
&& typeof Symbol.iterator == 'symbol';
|
955
|
-
|
956
|
-
var WellKnownSymbolsStore = shared('wks');
|
957
|
-
var Symbol$1 = global_1.Symbol;
|
958
|
-
var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
|
959
|
-
|
960
|
-
var wellKnownSymbol = function (name) {
|
961
|
-
if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
|
962
|
-
if (nativeSymbol && has$1(Symbol$1, name)) {
|
963
|
-
WellKnownSymbolsStore[name] = Symbol$1[name];
|
964
|
-
} else {
|
965
|
-
WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
|
966
|
-
}
|
967
|
-
} return WellKnownSymbolsStore[name];
|
968
|
-
};
|
969
|
-
|
970
1391
|
// TODO: Remove from `core-js@4` since it's moved to entry points
|
971
1392
|
|
972
1393
|
|
@@ -974,49 +1395,12 @@
|
|
974
1395
|
|
975
1396
|
|
976
1397
|
|
977
|
-
var SPECIES$2 = wellKnownSymbol('species');
|
978
|
-
|
979
|
-
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
980
|
-
// #replace needs built-in support for named groups.
|
981
|
-
// #match works fine because it just return the exec results, even if it has
|
982
|
-
// a "grops" property.
|
983
|
-
var re = /./;
|
984
|
-
re.exec = function () {
|
985
|
-
var result = [];
|
986
|
-
result.groups = { a: '7' };
|
987
|
-
return result;
|
988
|
-
};
|
989
|
-
return ''.replace(re, '$<a>') !== '7';
|
990
|
-
});
|
991
1398
|
|
992
|
-
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
993
|
-
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
994
|
-
var REPLACE_KEEPS_$0 = (function () {
|
995
|
-
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
996
|
-
return 'a'.replace(/./, '$0') === '$0';
|
997
|
-
})();
|
998
|
-
|
999
|
-
var REPLACE = wellKnownSymbol('replace');
|
1000
|
-
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
1001
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
1002
|
-
if (/./[REPLACE]) {
|
1003
|
-
return /./[REPLACE]('a', '$0') === '';
|
1004
|
-
}
|
1005
|
-
return false;
|
1006
|
-
})();
|
1007
1399
|
|
1008
|
-
|
1009
|
-
|
1010
|
-
var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
|
1011
|
-
// eslint-disable-next-line regexp/no-empty-group -- required for testing
|
1012
|
-
var re = /(?:)/;
|
1013
|
-
var originalExec = re.exec;
|
1014
|
-
re.exec = function () { return originalExec.apply(this, arguments); };
|
1015
|
-
var result = 'ab'.split(re);
|
1016
|
-
return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
|
1017
|
-
});
|
1400
|
+
var SPECIES$2 = wellKnownSymbol('species');
|
1401
|
+
var RegExpPrototype = RegExp.prototype;
|
1018
1402
|
|
1019
|
-
var fixRegexpWellKnownSymbolLogic = function (KEY,
|
1403
|
+
var fixRegexpWellKnownSymbolLogic = function (KEY, exec, FORCED, SHAM) {
|
1020
1404
|
var SYMBOL = wellKnownSymbol(KEY);
|
1021
1405
|
|
1022
1406
|
var DELEGATES_TO_SYMBOL = !fails(function () {
|
@@ -1053,59 +1437,51 @@
|
|
1053
1437
|
if (
|
1054
1438
|
!DELEGATES_TO_SYMBOL ||
|
1055
1439
|
!DELEGATES_TO_EXEC ||
|
1056
|
-
|
1057
|
-
REPLACE_SUPPORTS_NAMED_GROUPS &&
|
1058
|
-
REPLACE_KEEPS_$0 &&
|
1059
|
-
!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
1060
|
-
)) ||
|
1061
|
-
(KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
|
1440
|
+
FORCED
|
1062
1441
|
) {
|
1063
|
-
var
|
1442
|
+
var uncurriedNativeRegExpMethod = functionUncurryThis(/./[SYMBOL]);
|
1064
1443
|
var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
|
1065
|
-
|
1444
|
+
var uncurriedNativeMethod = functionUncurryThis(nativeMethod);
|
1445
|
+
var $exec = regexp.exec;
|
1446
|
+
if ($exec === regexpExec || $exec === RegExpPrototype.exec) {
|
1066
1447
|
if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
|
1067
1448
|
// The native String method already delegates to @@method (this
|
1068
1449
|
// polyfilled function), leasing to infinite recursion.
|
1069
1450
|
// We avoid it by directly calling the native @@method method.
|
1070
|
-
return { done: true, value:
|
1451
|
+
return { done: true, value: uncurriedNativeRegExpMethod(regexp, str, arg2) };
|
1071
1452
|
}
|
1072
|
-
return { done: true, value:
|
1453
|
+
return { done: true, value: uncurriedNativeMethod(str, regexp, arg2) };
|
1073
1454
|
}
|
1074
1455
|
return { done: false };
|
1075
|
-
}, {
|
1076
|
-
REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
|
1077
|
-
REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
|
1078
1456
|
});
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1082
|
-
redefine(String.prototype, KEY, stringMethod);
|
1083
|
-
redefine(RegExp.prototype, SYMBOL, length == 2
|
1084
|
-
// 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
|
1085
|
-
// 21.2.5.11 RegExp.prototype[@@split](string, limit)
|
1086
|
-
? function (string, arg) { return regexMethod.call(string, this, arg); }
|
1087
|
-
// 21.2.5.6 RegExp.prototype[@@match](string)
|
1088
|
-
// 21.2.5.9 RegExp.prototype[@@search](string)
|
1089
|
-
: function (string) { return regexMethod.call(string, this); }
|
1090
|
-
);
|
1457
|
+
|
1458
|
+
redefine(String.prototype, KEY, methods[0]);
|
1459
|
+
redefine(RegExpPrototype, SYMBOL, methods[1]);
|
1091
1460
|
}
|
1092
1461
|
|
1093
|
-
if (
|
1462
|
+
if (SHAM) createNonEnumerableProperty(RegExpPrototype[SYMBOL], 'sham', true);
|
1094
1463
|
};
|
1095
1464
|
|
1096
|
-
|
1465
|
+
var charAt$2 = functionUncurryThis(''.charAt);
|
1466
|
+
var charCodeAt = functionUncurryThis(''.charCodeAt);
|
1467
|
+
var stringSlice$2 = functionUncurryThis(''.slice);
|
1468
|
+
|
1097
1469
|
var createMethod$2 = function (CONVERT_TO_STRING) {
|
1098
1470
|
return function ($this, pos) {
|
1099
|
-
var S =
|
1100
|
-
var position =
|
1471
|
+
var S = toString_1(requireObjectCoercible($this));
|
1472
|
+
var position = toIntegerOrInfinity(pos);
|
1101
1473
|
var size = S.length;
|
1102
1474
|
var first, second;
|
1103
1475
|
if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
|
1104
|
-
first =
|
1476
|
+
first = charCodeAt(S, position);
|
1105
1477
|
return first < 0xD800 || first > 0xDBFF || position + 1 === size
|
1106
|
-
|| (second =
|
1107
|
-
? CONVERT_TO_STRING
|
1108
|
-
|
1478
|
+
|| (second = charCodeAt(S, position + 1)) < 0xDC00 || second > 0xDFFF
|
1479
|
+
? CONVERT_TO_STRING
|
1480
|
+
? charAt$2(S, position)
|
1481
|
+
: first
|
1482
|
+
: CONVERT_TO_STRING
|
1483
|
+
? stringSlice$2(S, position, position + 2)
|
1484
|
+
: (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
|
1109
1485
|
};
|
1110
1486
|
};
|
1111
1487
|
|
@@ -1118,25 +1494,22 @@
|
|
1118
1494
|
charAt: createMethod$2(true)
|
1119
1495
|
};
|
1120
1496
|
|
1121
|
-
var charAt = stringMultibyte.charAt;
|
1497
|
+
var charAt$1 = stringMultibyte.charAt;
|
1122
1498
|
|
1123
1499
|
// `AdvanceStringIndex` abstract operation
|
1124
1500
|
// https://tc39.es/ecma262/#sec-advancestringindex
|
1125
1501
|
var advanceStringIndex = function (S, index, unicode) {
|
1126
|
-
return index + (unicode ? charAt(S, index).length : 1);
|
1127
|
-
};
|
1128
|
-
|
1129
|
-
// `ToObject` abstract operation
|
1130
|
-
// https://tc39.es/ecma262/#sec-toobject
|
1131
|
-
var toObject = function (argument) {
|
1132
|
-
return Object(requireObjectCoercible(argument));
|
1502
|
+
return index + (unicode ? charAt$1(S, index).length : 1);
|
1133
1503
|
};
|
1134
1504
|
|
1135
1505
|
var floor = Math.floor;
|
1136
|
-
var
|
1506
|
+
var charAt = functionUncurryThis(''.charAt);
|
1507
|
+
var replace = functionUncurryThis(''.replace);
|
1508
|
+
var stringSlice$1 = functionUncurryThis(''.slice);
|
1137
1509
|
var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
|
1138
1510
|
var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
|
1139
1511
|
|
1512
|
+
// `GetSubstitution` abstract operation
|
1140
1513
|
// https://tc39.es/ecma262/#sec-getsubstitution
|
1141
1514
|
var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
|
1142
1515
|
var tailPos = position + matched.length;
|
@@ -1146,15 +1519,15 @@
|
|
1146
1519
|
namedCaptures = toObject(namedCaptures);
|
1147
1520
|
symbols = SUBSTITUTION_SYMBOLS;
|
1148
1521
|
}
|
1149
|
-
return replace
|
1522
|
+
return replace(replacement, symbols, function (match, ch) {
|
1150
1523
|
var capture;
|
1151
|
-
switch (
|
1524
|
+
switch (charAt(ch, 0)) {
|
1152
1525
|
case '$': return '$';
|
1153
1526
|
case '&': return matched;
|
1154
|
-
case '`': return str
|
1155
|
-
case "'": return str
|
1527
|
+
case '`': return stringSlice$1(str, 0, position);
|
1528
|
+
case "'": return stringSlice$1(str, tailPos);
|
1156
1529
|
case '<':
|
1157
|
-
capture = namedCaptures[ch
|
1530
|
+
capture = namedCaptures[stringSlice$1(ch, 1, -1)];
|
1158
1531
|
break;
|
1159
1532
|
default: // \d\d?
|
1160
1533
|
var n = +ch;
|
@@ -1162,7 +1535,7 @@
|
|
1162
1535
|
if (n > m) {
|
1163
1536
|
var f = floor(n / 10);
|
1164
1537
|
if (f === 0) return match;
|
1165
|
-
if (f <= m) return captures[f - 1] === undefined ?
|
1538
|
+
if (f <= m) return captures[f - 1] === undefined ? charAt(ch, 1) : captures[f - 1] + charAt(ch, 1);
|
1166
1539
|
return match;
|
1167
1540
|
}
|
1168
1541
|
capture = captures[n - 1];
|
@@ -1171,36 +1544,61 @@
|
|
1171
1544
|
});
|
1172
1545
|
};
|
1173
1546
|
|
1547
|
+
var TypeError$2 = global_1.TypeError;
|
1548
|
+
|
1174
1549
|
// `RegExpExec` abstract operation
|
1175
1550
|
// https://tc39.es/ecma262/#sec-regexpexec
|
1176
1551
|
var regexpExecAbstract = function (R, S) {
|
1177
1552
|
var exec = R.exec;
|
1178
|
-
if (
|
1179
|
-
var result = exec
|
1180
|
-
if (
|
1181
|
-
throw TypeError('RegExp exec method returned something other than an Object or null');
|
1182
|
-
}
|
1553
|
+
if (isCallable(exec)) {
|
1554
|
+
var result = functionCall(exec, R, S);
|
1555
|
+
if (result !== null) anObject(result);
|
1183
1556
|
return result;
|
1184
1557
|
}
|
1185
|
-
|
1186
|
-
|
1187
|
-
throw TypeError('RegExp#exec called on incompatible receiver');
|
1188
|
-
}
|
1189
|
-
|
1190
|
-
return regexpExec.call(R, S);
|
1558
|
+
if (classofRaw(R) === 'RegExp') return functionCall(regexpExec, R, S);
|
1559
|
+
throw TypeError$2('RegExp#exec called on incompatible receiver');
|
1191
1560
|
};
|
1192
1561
|
|
1562
|
+
var REPLACE = wellKnownSymbol('replace');
|
1193
1563
|
var max = Math.max;
|
1194
1564
|
var min = Math.min;
|
1565
|
+
var concat = functionUncurryThis([].concat);
|
1566
|
+
var push$2 = functionUncurryThis([].push);
|
1567
|
+
var stringIndexOf = functionUncurryThis(''.indexOf);
|
1568
|
+
var stringSlice = functionUncurryThis(''.slice);
|
1195
1569
|
|
1196
1570
|
var maybeToString = function (it) {
|
1197
1571
|
return it === undefined ? it : String(it);
|
1198
1572
|
};
|
1199
1573
|
|
1574
|
+
// IE <= 11 replaces $0 with the whole match, as if it was $&
|
1575
|
+
// https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
|
1576
|
+
var REPLACE_KEEPS_$0 = (function () {
|
1577
|
+
// eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
|
1578
|
+
return 'a'.replace(/./, '$0') === '$0';
|
1579
|
+
})();
|
1580
|
+
|
1581
|
+
// Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
|
1582
|
+
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
|
1583
|
+
if (/./[REPLACE]) {
|
1584
|
+
return /./[REPLACE]('a', '$0') === '';
|
1585
|
+
}
|
1586
|
+
return false;
|
1587
|
+
})();
|
1588
|
+
|
1589
|
+
var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
|
1590
|
+
var re = /./;
|
1591
|
+
re.exec = function () {
|
1592
|
+
var result = [];
|
1593
|
+
result.groups = { a: '7' };
|
1594
|
+
return result;
|
1595
|
+
};
|
1596
|
+
// eslint-disable-next-line regexp/no-useless-dollar-replacements -- false positive
|
1597
|
+
return ''.replace(re, '$<a>') !== '7';
|
1598
|
+
});
|
1599
|
+
|
1200
1600
|
// @@replace logic
|
1201
|
-
fixRegexpWellKnownSymbolLogic('replace',
|
1202
|
-
var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
|
1203
|
-
var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
|
1601
|
+
fixRegexpWellKnownSymbolLogic('replace', function (_, nativeReplace, maybeCallNative) {
|
1204
1602
|
var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
|
1205
1603
|
|
1206
1604
|
return [
|
@@ -1208,27 +1606,28 @@
|
|
1208
1606
|
// https://tc39.es/ecma262/#sec-string.prototype.replace
|
1209
1607
|
function replace(searchValue, replaceValue) {
|
1210
1608
|
var O = requireObjectCoercible(this);
|
1211
|
-
var replacer = searchValue == undefined ? undefined : searchValue
|
1212
|
-
return replacer
|
1213
|
-
? replacer
|
1214
|
-
: nativeReplace
|
1609
|
+
var replacer = searchValue == undefined ? undefined : getMethod(searchValue, REPLACE);
|
1610
|
+
return replacer
|
1611
|
+
? functionCall(replacer, searchValue, O, replaceValue)
|
1612
|
+
: functionCall(nativeReplace, toString_1(O), searchValue, replaceValue);
|
1215
1613
|
},
|
1216
1614
|
// `RegExp.prototype[@@replace]` method
|
1217
1615
|
// https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
|
1218
|
-
function (
|
1616
|
+
function (string, replaceValue) {
|
1617
|
+
var rx = anObject(this);
|
1618
|
+
var S = toString_1(string);
|
1619
|
+
|
1219
1620
|
if (
|
1220
|
-
|
1221
|
-
(
|
1621
|
+
typeof replaceValue == 'string' &&
|
1622
|
+
stringIndexOf(replaceValue, UNSAFE_SUBSTITUTE) === -1 &&
|
1623
|
+
stringIndexOf(replaceValue, '$<') === -1
|
1222
1624
|
) {
|
1223
|
-
var res = maybeCallNative(nativeReplace,
|
1625
|
+
var res = maybeCallNative(nativeReplace, rx, S, replaceValue);
|
1224
1626
|
if (res.done) return res.value;
|
1225
1627
|
}
|
1226
1628
|
|
1227
|
-
var
|
1228
|
-
|
1229
|
-
|
1230
|
-
var functionalReplace = typeof replaceValue === 'function';
|
1231
|
-
if (!functionalReplace) replaceValue = String(replaceValue);
|
1629
|
+
var functionalReplace = isCallable(replaceValue);
|
1630
|
+
if (!functionalReplace) replaceValue = toString_1(replaceValue);
|
1232
1631
|
|
1233
1632
|
var global = rx.global;
|
1234
1633
|
if (global) {
|
@@ -1240,10 +1639,10 @@
|
|
1240
1639
|
var result = regexpExecAbstract(rx, S);
|
1241
1640
|
if (result === null) break;
|
1242
1641
|
|
1243
|
-
|
1642
|
+
push$2(results, result);
|
1244
1643
|
if (!global) break;
|
1245
1644
|
|
1246
|
-
var matchStr =
|
1645
|
+
var matchStr = toString_1(result[0]);
|
1247
1646
|
if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
|
1248
1647
|
}
|
1249
1648
|
|
@@ -1252,90 +1651,145 @@
|
|
1252
1651
|
for (var i = 0; i < results.length; i++) {
|
1253
1652
|
result = results[i];
|
1254
1653
|
|
1255
|
-
var matched =
|
1256
|
-
var position = max(min(
|
1654
|
+
var matched = toString_1(result[0]);
|
1655
|
+
var position = max(min(toIntegerOrInfinity(result.index), S.length), 0);
|
1257
1656
|
var captures = [];
|
1258
1657
|
// NOTE: This is equivalent to
|
1259
1658
|
// captures = result.slice(1).map(maybeToString)
|
1260
1659
|
// but for some reason `nativeSlice.call(result, 1, result.length)` (called in
|
1261
1660
|
// the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
|
1262
1661
|
// causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
|
1263
|
-
for (var j = 1; j < result.length; j++)
|
1662
|
+
for (var j = 1; j < result.length; j++) push$2(captures, maybeToString(result[j]));
|
1264
1663
|
var namedCaptures = result.groups;
|
1265
1664
|
if (functionalReplace) {
|
1266
|
-
var replacerArgs = [matched]
|
1267
|
-
if (namedCaptures !== undefined)
|
1268
|
-
var replacement =
|
1665
|
+
var replacerArgs = concat([matched], captures, position, S);
|
1666
|
+
if (namedCaptures !== undefined) push$2(replacerArgs, namedCaptures);
|
1667
|
+
var replacement = toString_1(functionApply(replaceValue, undefined, replacerArgs));
|
1269
1668
|
} else {
|
1270
1669
|
replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
|
1271
1670
|
}
|
1272
1671
|
if (position >= nextSourcePosition) {
|
1273
|
-
accumulatedResult += S
|
1672
|
+
accumulatedResult += stringSlice(S, nextSourcePosition, position) + replacement;
|
1274
1673
|
nextSourcePosition = position + matched.length;
|
1275
1674
|
}
|
1276
1675
|
}
|
1277
|
-
return accumulatedResult + S
|
1676
|
+
return accumulatedResult + stringSlice(S, nextSourcePosition);
|
1278
1677
|
}
|
1279
1678
|
];
|
1280
|
-
});
|
1679
|
+
}, !REPLACE_SUPPORTS_NAMED_GROUPS || !REPLACE_KEEPS_$0 || REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE);
|
1281
1680
|
|
1282
1681
|
var arrayMethodIsStrict = function (METHOD_NAME, argument) {
|
1283
1682
|
var method = [][METHOD_NAME];
|
1284
1683
|
return !!method && fails(function () {
|
1285
|
-
// eslint-disable-next-line no-useless-call
|
1286
|
-
method.call(null, argument || function () {
|
1684
|
+
// eslint-disable-next-line no-useless-call -- required for testing
|
1685
|
+
method.call(null, argument || function () { return 1; }, 1);
|
1287
1686
|
});
|
1288
1687
|
};
|
1289
1688
|
|
1290
1689
|
/* eslint-disable es/no-array-prototype-indexof -- required for testing */
|
1291
1690
|
|
1292
|
-
|
1691
|
+
|
1692
|
+
var $IndexOf = arrayIncludes.indexOf;
|
1293
1693
|
|
1294
1694
|
|
1295
|
-
var
|
1695
|
+
var un$IndexOf = functionUncurryThis([].indexOf);
|
1296
1696
|
|
1297
|
-
var NEGATIVE_ZERO = !!
|
1697
|
+
var NEGATIVE_ZERO = !!un$IndexOf && 1 / un$IndexOf([1], 1, -0) < 0;
|
1298
1698
|
var STRICT_METHOD$1 = arrayMethodIsStrict('indexOf');
|
1299
1699
|
|
1300
1700
|
// `Array.prototype.indexOf` method
|
1301
1701
|
// https://tc39.es/ecma262/#sec-array.prototype.indexof
|
1302
1702
|
_export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD$1 }, {
|
1303
1703
|
indexOf: function indexOf(searchElement /* , fromIndex = 0 */) {
|
1704
|
+
var fromIndex = arguments.length > 1 ? arguments[1] : undefined;
|
1304
1705
|
return NEGATIVE_ZERO
|
1305
1706
|
// convert -0 to +0
|
1306
|
-
?
|
1307
|
-
: $
|
1707
|
+
? un$IndexOf(this, searchElement, fromIndex) || 0
|
1708
|
+
: $IndexOf(this, searchElement, fromIndex);
|
1308
1709
|
}
|
1309
1710
|
});
|
1310
1711
|
|
1311
1712
|
// `IsArray` abstract operation
|
1312
1713
|
// https://tc39.es/ecma262/#sec-isarray
|
1313
1714
|
// eslint-disable-next-line es/no-array-isarray -- safe
|
1314
|
-
var isArray = Array.isArray || function isArray(
|
1315
|
-
return classofRaw(
|
1715
|
+
var isArray = Array.isArray || function isArray(argument) {
|
1716
|
+
return classofRaw(argument) == 'Array';
|
1316
1717
|
};
|
1317
1718
|
|
1318
1719
|
var createProperty = function (object, key, value) {
|
1319
|
-
var propertyKey =
|
1720
|
+
var propertyKey = toPropertyKey(key);
|
1320
1721
|
if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
|
1321
1722
|
else object[propertyKey] = value;
|
1322
1723
|
};
|
1323
1724
|
|
1725
|
+
var noop = function () { /* empty */ };
|
1726
|
+
var empty = [];
|
1727
|
+
var construct = getBuiltIn('Reflect', 'construct');
|
1728
|
+
var constructorRegExp = /^\s*(?:class|function)\b/;
|
1729
|
+
var exec = functionUncurryThis(constructorRegExp.exec);
|
1730
|
+
var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
|
1731
|
+
|
1732
|
+
var isConstructorModern = function isConstructor(argument) {
|
1733
|
+
if (!isCallable(argument)) return false;
|
1734
|
+
try {
|
1735
|
+
construct(noop, empty, argument);
|
1736
|
+
return true;
|
1737
|
+
} catch (error) {
|
1738
|
+
return false;
|
1739
|
+
}
|
1740
|
+
};
|
1741
|
+
|
1742
|
+
var isConstructorLegacy = function isConstructor(argument) {
|
1743
|
+
if (!isCallable(argument)) return false;
|
1744
|
+
switch (classof(argument)) {
|
1745
|
+
case 'AsyncFunction':
|
1746
|
+
case 'GeneratorFunction':
|
1747
|
+
case 'AsyncGeneratorFunction': return false;
|
1748
|
+
}
|
1749
|
+
try {
|
1750
|
+
// we can't check .prototype since constructors produced by .bind haven't it
|
1751
|
+
// `Function#toString` throws on some built-it function in some legacy engines
|
1752
|
+
// (for example, `DOMQuad` and similar in FF41-)
|
1753
|
+
return INCORRECT_TO_STRING || !!exec(constructorRegExp, inspectSource(argument));
|
1754
|
+
} catch (error) {
|
1755
|
+
return true;
|
1756
|
+
}
|
1757
|
+
};
|
1758
|
+
|
1759
|
+
isConstructorLegacy.sham = true;
|
1760
|
+
|
1761
|
+
// `IsConstructor` abstract operation
|
1762
|
+
// https://tc39.es/ecma262/#sec-isconstructor
|
1763
|
+
var isConstructor = !construct || fails(function () {
|
1764
|
+
var called;
|
1765
|
+
return isConstructorModern(isConstructorModern.call)
|
1766
|
+
|| !isConstructorModern(Object)
|
1767
|
+
|| !isConstructorModern(function () { called = true; })
|
1768
|
+
|| called;
|
1769
|
+
}) ? isConstructorLegacy : isConstructorModern;
|
1770
|
+
|
1324
1771
|
var SPECIES$1 = wellKnownSymbol('species');
|
1772
|
+
var Array$1 = global_1.Array;
|
1325
1773
|
|
1326
|
-
// `ArraySpeciesCreate` abstract operation
|
1774
|
+
// a part of `ArraySpeciesCreate` abstract operation
|
1327
1775
|
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1328
|
-
var
|
1776
|
+
var arraySpeciesConstructor = function (originalArray) {
|
1329
1777
|
var C;
|
1330
1778
|
if (isArray(originalArray)) {
|
1331
1779
|
C = originalArray.constructor;
|
1332
1780
|
// cross-realm fallback
|
1333
|
-
if (
|
1781
|
+
if (isConstructor(C) && (C === Array$1 || isArray(C.prototype))) C = undefined;
|
1334
1782
|
else if (isObject(C)) {
|
1335
1783
|
C = C[SPECIES$1];
|
1336
1784
|
if (C === null) C = undefined;
|
1337
1785
|
}
|
1338
|
-
} return
|
1786
|
+
} return C === undefined ? Array$1 : C;
|
1787
|
+
};
|
1788
|
+
|
1789
|
+
// `ArraySpeciesCreate` abstract operation
|
1790
|
+
// https://tc39.es/ecma262/#sec-arrayspeciescreate
|
1791
|
+
var arraySpeciesCreate = function (originalArray, length) {
|
1792
|
+
return new (arraySpeciesConstructor(originalArray))(length === 0 ? 0 : length);
|
1339
1793
|
};
|
1340
1794
|
|
1341
1795
|
var SPECIES = wellKnownSymbol('species');
|
@@ -1357,6 +1811,7 @@
|
|
1357
1811
|
var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
|
1358
1812
|
var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
|
1359
1813
|
var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
|
1814
|
+
var TypeError$1 = global_1.TypeError;
|
1360
1815
|
|
1361
1816
|
// We can't use this feature detection in V8 since it causes
|
1362
1817
|
// deoptimization and serious performance degradation
|
@@ -1390,11 +1845,11 @@
|
|
1390
1845
|
for (i = -1, length = arguments.length; i < length; i++) {
|
1391
1846
|
E = i === -1 ? O : arguments[i];
|
1392
1847
|
if (isConcatSpreadable(E)) {
|
1393
|
-
len =
|
1394
|
-
if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1848
|
+
len = lengthOfArrayLike(E);
|
1849
|
+
if (n + len > MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1395
1850
|
for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
|
1396
1851
|
} else {
|
1397
|
-
if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1852
|
+
if (n >= MAX_SAFE_INTEGER) throw TypeError$1(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
|
1398
1853
|
createProperty(A, n++, E);
|
1399
1854
|
}
|
1400
1855
|
}
|
@@ -1403,7 +1858,7 @@
|
|
1403
1858
|
}
|
1404
1859
|
});
|
1405
1860
|
|
1406
|
-
var
|
1861
|
+
var un$Join = functionUncurryThis([].join);
|
1407
1862
|
|
1408
1863
|
var ES3_STRINGS = indexedObject != Object;
|
1409
1864
|
var STRICT_METHOD = arrayMethodIsStrict('join', ',');
|
@@ -1412,58 +1867,39 @@
|
|
1412
1867
|
// https://tc39.es/ecma262/#sec-array.prototype.join
|
1413
1868
|
_export({ target: 'Array', proto: true, forced: ES3_STRINGS || !STRICT_METHOD }, {
|
1414
1869
|
join: function join(separator) {
|
1415
|
-
return
|
1870
|
+
return un$Join(toIndexedObject(this), separator === undefined ? ',' : separator);
|
1416
1871
|
}
|
1417
1872
|
});
|
1418
1873
|
|
1419
|
-
var
|
1420
|
-
if (typeof it != 'function') {
|
1421
|
-
throw TypeError(String(it) + ' is not a function');
|
1422
|
-
} return it;
|
1423
|
-
};
|
1874
|
+
var bind = functionUncurryThis(functionUncurryThis.bind);
|
1424
1875
|
|
1425
1876
|
// optional / simple context binding
|
1426
|
-
var functionBindContext = function (fn, that
|
1427
|
-
|
1428
|
-
|
1429
|
-
switch (length) {
|
1430
|
-
case 0: return function () {
|
1431
|
-
return fn.call(that);
|
1432
|
-
};
|
1433
|
-
case 1: return function (a) {
|
1434
|
-
return fn.call(that, a);
|
1435
|
-
};
|
1436
|
-
case 2: return function (a, b) {
|
1437
|
-
return fn.call(that, a, b);
|
1438
|
-
};
|
1439
|
-
case 3: return function (a, b, c) {
|
1440
|
-
return fn.call(that, a, b, c);
|
1441
|
-
};
|
1442
|
-
}
|
1443
|
-
return function (/* ...args */) {
|
1877
|
+
var functionBindContext = function (fn, that) {
|
1878
|
+
aCallable(fn);
|
1879
|
+
return that === undefined ? fn : functionBindNative ? bind(fn, that) : function (/* ...args */) {
|
1444
1880
|
return fn.apply(that, arguments);
|
1445
1881
|
};
|
1446
1882
|
};
|
1447
1883
|
|
1448
|
-
var push = [].push;
|
1884
|
+
var push$1 = functionUncurryThis([].push);
|
1449
1885
|
|
1450
|
-
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex,
|
1886
|
+
// `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterReject }` methods implementation
|
1451
1887
|
var createMethod$1 = function (TYPE) {
|
1452
1888
|
var IS_MAP = TYPE == 1;
|
1453
1889
|
var IS_FILTER = TYPE == 2;
|
1454
1890
|
var IS_SOME = TYPE == 3;
|
1455
1891
|
var IS_EVERY = TYPE == 4;
|
1456
1892
|
var IS_FIND_INDEX = TYPE == 6;
|
1457
|
-
var
|
1893
|
+
var IS_FILTER_REJECT = TYPE == 7;
|
1458
1894
|
var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
|
1459
1895
|
return function ($this, callbackfn, that, specificCreate) {
|
1460
1896
|
var O = toObject($this);
|
1461
1897
|
var self = indexedObject(O);
|
1462
|
-
var boundFunction = functionBindContext(callbackfn, that
|
1463
|
-
var length =
|
1898
|
+
var boundFunction = functionBindContext(callbackfn, that);
|
1899
|
+
var length = lengthOfArrayLike(self);
|
1464
1900
|
var index = 0;
|
1465
1901
|
var create = specificCreate || arraySpeciesCreate;
|
1466
|
-
var target = IS_MAP ? create($this, length) : IS_FILTER ||
|
1902
|
+
var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_REJECT ? create($this, 0) : undefined;
|
1467
1903
|
var value, result;
|
1468
1904
|
for (;length > index; index++) if (NO_HOLES || index in self) {
|
1469
1905
|
value = self[index];
|
@@ -1474,10 +1910,10 @@
|
|
1474
1910
|
case 3: return true; // some
|
1475
1911
|
case 5: return value; // find
|
1476
1912
|
case 6: return index; // findIndex
|
1477
|
-
case 2: push
|
1913
|
+
case 2: push$1(target, value); // filter
|
1478
1914
|
} else switch (TYPE) {
|
1479
1915
|
case 4: return false; // every
|
1480
|
-
case 7: push
|
1916
|
+
case 7: push$1(target, value); // filterReject
|
1481
1917
|
}
|
1482
1918
|
}
|
1483
1919
|
}
|
@@ -1507,102 +1943,9 @@
|
|
1507
1943
|
// `Array.prototype.findIndex` method
|
1508
1944
|
// https://tc39.es/ecma262/#sec-array.prototype.findIndex
|
1509
1945
|
findIndex: createMethod$1(6),
|
1510
|
-
// `Array.prototype.
|
1946
|
+
// `Array.prototype.filterReject` method
|
1511
1947
|
// https://github.com/tc39/proposal-array-filtering
|
1512
|
-
|
1513
|
-
};
|
1514
|
-
|
1515
|
-
// `Object.keys` method
|
1516
|
-
// https://tc39.es/ecma262/#sec-object.keys
|
1517
|
-
// eslint-disable-next-line es/no-object-keys -- safe
|
1518
|
-
var objectKeys = Object.keys || function keys(O) {
|
1519
|
-
return objectKeysInternal(O, enumBugKeys);
|
1520
|
-
};
|
1521
|
-
|
1522
|
-
// `Object.defineProperties` method
|
1523
|
-
// https://tc39.es/ecma262/#sec-object.defineproperties
|
1524
|
-
// eslint-disable-next-line es/no-object-defineproperties -- safe
|
1525
|
-
var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
|
1526
|
-
anObject(O);
|
1527
|
-
var keys = objectKeys(Properties);
|
1528
|
-
var length = keys.length;
|
1529
|
-
var index = 0;
|
1530
|
-
var key;
|
1531
|
-
while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
|
1532
|
-
return O;
|
1533
|
-
};
|
1534
|
-
|
1535
|
-
var html = getBuiltIn('document', 'documentElement');
|
1536
|
-
|
1537
|
-
var GT = '>';
|
1538
|
-
var LT = '<';
|
1539
|
-
var PROTOTYPE = 'prototype';
|
1540
|
-
var SCRIPT = 'script';
|
1541
|
-
var IE_PROTO = sharedKey('IE_PROTO');
|
1542
|
-
|
1543
|
-
var EmptyConstructor = function () { /* empty */ };
|
1544
|
-
|
1545
|
-
var scriptTag = function (content) {
|
1546
|
-
return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
|
1547
|
-
};
|
1548
|
-
|
1549
|
-
// Create object with fake `null` prototype: use ActiveX Object with cleared prototype
|
1550
|
-
var NullProtoObjectViaActiveX = function (activeXDocument) {
|
1551
|
-
activeXDocument.write(scriptTag(''));
|
1552
|
-
activeXDocument.close();
|
1553
|
-
var temp = activeXDocument.parentWindow.Object;
|
1554
|
-
activeXDocument = null; // avoid memory leak
|
1555
|
-
return temp;
|
1556
|
-
};
|
1557
|
-
|
1558
|
-
// Create object with fake `null` prototype: use iframe Object with cleared prototype
|
1559
|
-
var NullProtoObjectViaIFrame = function () {
|
1560
|
-
// Thrash, waste and sodomy: IE GC bug
|
1561
|
-
var iframe = documentCreateElement('iframe');
|
1562
|
-
var JS = 'java' + SCRIPT + ':';
|
1563
|
-
var iframeDocument;
|
1564
|
-
iframe.style.display = 'none';
|
1565
|
-
html.appendChild(iframe);
|
1566
|
-
// https://github.com/zloirock/core-js/issues/475
|
1567
|
-
iframe.src = String(JS);
|
1568
|
-
iframeDocument = iframe.contentWindow.document;
|
1569
|
-
iframeDocument.open();
|
1570
|
-
iframeDocument.write(scriptTag('document.F=Object'));
|
1571
|
-
iframeDocument.close();
|
1572
|
-
return iframeDocument.F;
|
1573
|
-
};
|
1574
|
-
|
1575
|
-
// Check for document.domain and active x support
|
1576
|
-
// No need to use active x approach when document.domain is not set
|
1577
|
-
// see https://github.com/es-shims/es5-shim/issues/150
|
1578
|
-
// variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
|
1579
|
-
// avoid IE GC bug
|
1580
|
-
var activeXDocument;
|
1581
|
-
var NullProtoObject = function () {
|
1582
|
-
try {
|
1583
|
-
/* global ActiveXObject -- old IE */
|
1584
|
-
activeXDocument = document.domain && new ActiveXObject('htmlfile');
|
1585
|
-
} catch (error) { /* ignore */ }
|
1586
|
-
NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
|
1587
|
-
var length = enumBugKeys.length;
|
1588
|
-
while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
|
1589
|
-
return NullProtoObject();
|
1590
|
-
};
|
1591
|
-
|
1592
|
-
hiddenKeys$1[IE_PROTO] = true;
|
1593
|
-
|
1594
|
-
// `Object.create` method
|
1595
|
-
// https://tc39.es/ecma262/#sec-object.create
|
1596
|
-
var objectCreate = Object.create || function create(O, Properties) {
|
1597
|
-
var result;
|
1598
|
-
if (O !== null) {
|
1599
|
-
EmptyConstructor[PROTOTYPE] = anObject(O);
|
1600
|
-
result = new EmptyConstructor();
|
1601
|
-
EmptyConstructor[PROTOTYPE] = null;
|
1602
|
-
// add "__proto__" for Object.getPrototypeOf polyfill
|
1603
|
-
result[IE_PROTO] = O;
|
1604
|
-
} else result = NullProtoObject();
|
1605
|
-
return Properties === undefined ? result : objectDefineProperties(result, Properties);
|
1948
|
+
filterReject: createMethod$1(7)
|
1606
1949
|
};
|
1607
1950
|
|
1608
1951
|
var UNSCOPABLES = wellKnownSymbol('unscopables');
|
@@ -1642,7 +1985,22 @@
|
|
1642
1985
|
// https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
|
1643
1986
|
addToUnscopables(FIND);
|
1644
1987
|
|
1645
|
-
|
1988
|
+
// `Object.prototype.toString` method implementation
|
1989
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1990
|
+
var objectToString = toStringTagSupport ? {}.toString : function toString() {
|
1991
|
+
return '[object ' + classof(this) + ']';
|
1992
|
+
};
|
1993
|
+
|
1994
|
+
// `Object.prototype.toString` method
|
1995
|
+
// https://tc39.es/ecma262/#sec-object.prototype.tostring
|
1996
|
+
if (!toStringTagSupport) {
|
1997
|
+
redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
|
1998
|
+
}
|
1999
|
+
|
2000
|
+
var $propertyIsEnumerable = objectPropertyIsEnumerable.f;
|
2001
|
+
|
2002
|
+
var propertyIsEnumerable = functionUncurryThis($propertyIsEnumerable);
|
2003
|
+
var push = functionUncurryThis([].push);
|
1646
2004
|
|
1647
2005
|
// `Object.{ entries, values }` methods implementation
|
1648
2006
|
var createMethod = function (TO_ENTRIES) {
|
@@ -1655,8 +2013,8 @@
|
|
1655
2013
|
var key;
|
1656
2014
|
while (length > i) {
|
1657
2015
|
key = keys[i++];
|
1658
|
-
if (!descriptors || propertyIsEnumerable
|
1659
|
-
|
2016
|
+
if (!descriptors || propertyIsEnumerable(O, key)) {
|
2017
|
+
push(result, TO_ENTRIES ? [key, O[key]] : O[key]);
|
1660
2018
|
}
|
1661
2019
|
}
|
1662
2020
|
return result;
|
@@ -1689,8 +2047,8 @@
|
|
1689
2047
|
* extensions: https://github.com/vitalets/x-editable
|
1690
2048
|
*/
|
1691
2049
|
|
1692
|
-
var Utils = $__default[
|
1693
|
-
$__default[
|
2050
|
+
var Utils = $__default["default"].fn.bootstrapTable.utils;
|
2051
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.defaults, {
|
1694
2052
|
editable: true,
|
1695
2053
|
onEditableInit: function onEditableInit() {
|
1696
2054
|
return false;
|
@@ -1705,17 +2063,17 @@
|
|
1705
2063
|
return false;
|
1706
2064
|
}
|
1707
2065
|
});
|
1708
|
-
$__default[
|
2066
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.columnDefaults, {
|
1709
2067
|
alwaysUseFormatter: false
|
1710
2068
|
});
|
1711
|
-
$__default[
|
2069
|
+
$__default["default"].extend($__default["default"].fn.bootstrapTable.Constructor.EVENTS, {
|
1712
2070
|
'editable-init.bs.table': 'onEditableInit',
|
1713
2071
|
'editable-save.bs.table': 'onEditableSave',
|
1714
2072
|
'editable-shown.bs.table': 'onEditableShown',
|
1715
2073
|
'editable-hidden.bs.table': 'onEditableHidden'
|
1716
2074
|
});
|
1717
2075
|
|
1718
|
-
$__default[
|
2076
|
+
$__default["default"].BootstrapTable = /*#__PURE__*/function (_$$BootstrapTable) {
|
1719
2077
|
_inherits(_class, _$$BootstrapTable);
|
1720
2078
|
|
1721
2079
|
var _super = _createSuper(_class);
|
@@ -1738,7 +2096,7 @@
|
|
1738
2096
|
}
|
1739
2097
|
|
1740
2098
|
this.editedCells = [];
|
1741
|
-
$__default[
|
2099
|
+
$__default["default"].each(this.columns, function (i, column) {
|
1742
2100
|
if (!column.editable) {
|
1743
2101
|
return;
|
1744
2102
|
}
|
@@ -1758,7 +2116,7 @@
|
|
1758
2116
|
}
|
1759
2117
|
};
|
1760
2118
|
|
1761
|
-
$__default[
|
2119
|
+
$__default["default"].each(_this.options, processDataOptions);
|
1762
2120
|
|
1763
2121
|
column.formatter = column.formatter || function (value) {
|
1764
2122
|
return value;
|
@@ -1773,13 +2131,13 @@
|
|
1773
2131
|
if (_this.options.uniqueId !== undefined && !column.alwaysUseFormatter) {
|
1774
2132
|
var uniqueId = Utils.getItemField(row, _this.options.uniqueId, false);
|
1775
2133
|
|
1776
|
-
if ($__default[
|
2134
|
+
if ($__default["default"].inArray(column.field + uniqueId, _this.editedCells) !== -1) {
|
1777
2135
|
result = value;
|
1778
2136
|
}
|
1779
2137
|
}
|
1780
2138
|
|
1781
|
-
$__default[
|
1782
|
-
$__default[
|
2139
|
+
$__default["default"].each(column, processDataOptions);
|
2140
|
+
$__default["default"].each(editableOptions, function (key, value) {
|
1783
2141
|
editableDataMarkup.push(" ".concat(key, "=\"").concat(value, "\""));
|
1784
2142
|
});
|
1785
2143
|
var noEditFormatter = false;
|
@@ -1808,7 +2166,7 @@
|
|
1808
2166
|
return;
|
1809
2167
|
}
|
1810
2168
|
|
1811
|
-
$__default[
|
2169
|
+
$__default["default"].each(this.columns, function (i, column) {
|
1812
2170
|
if (!column.editable) {
|
1813
2171
|
return;
|
1814
2172
|
}
|
@@ -1820,7 +2178,7 @@
|
|
1820
2178
|
var $field = _this2.$body.find("a[data-name=\"".concat(column.field, "\"]"));
|
1821
2179
|
|
1822
2180
|
$field.each(function (i, element) {
|
1823
|
-
var $element = $__default[
|
2181
|
+
var $element = $__default["default"](element);
|
1824
2182
|
var $tr = $element.closest('tr');
|
1825
2183
|
var index = $tr.data('index');
|
1826
2184
|
var row = data[index];
|
@@ -1830,7 +2188,7 @@
|
|
1830
2188
|
$field.off('save').on('save', function (_ref, _ref2) {
|
1831
2189
|
var currentTarget = _ref.currentTarget;
|
1832
2190
|
var submitValue = _ref2.submitValue;
|
1833
|
-
var $this = $__default[
|
2191
|
+
var $this = $__default["default"](currentTarget);
|
1834
2192
|
|
1835
2193
|
var data = _this2.getData();
|
1836
2194
|
|
@@ -1841,7 +2199,7 @@
|
|
1841
2199
|
if (_this2.options.uniqueId !== undefined && !column.alwaysUseFormatter) {
|
1842
2200
|
var uniqueId = Utils.getItemField(row, _this2.options.uniqueId, false);
|
1843
2201
|
|
1844
|
-
if ($__default[
|
2202
|
+
if ($__default["default"].inArray(column.field + uniqueId, _this2.editedCells) === -1) {
|
1845
2203
|
_this2.editedCells.push(column.field + uniqueId);
|
1846
2204
|
}
|
1847
2205
|
}
|
@@ -1856,7 +2214,7 @@
|
|
1856
2214
|
});
|
1857
2215
|
$field.off('shown').on('shown', function (_ref3, editable) {
|
1858
2216
|
var currentTarget = _ref3.currentTarget;
|
1859
|
-
var $this = $__default[
|
2217
|
+
var $this = $__default["default"](currentTarget);
|
1860
2218
|
|
1861
2219
|
var data = _this2.getData();
|
1862
2220
|
|
@@ -1867,7 +2225,7 @@
|
|
1867
2225
|
});
|
1868
2226
|
$field.off('hidden').on('hidden', function (_ref4, reason) {
|
1869
2227
|
var currentTarget = _ref4.currentTarget;
|
1870
|
-
var $this = $__default[
|
2228
|
+
var $this = $__default["default"](currentTarget);
|
1871
2229
|
|
1872
2230
|
var data = _this2.getData();
|
1873
2231
|
|
@@ -1912,6 +2270,6 @@
|
|
1912
2270
|
}]);
|
1913
2271
|
|
1914
2272
|
return _class;
|
1915
|
-
}($__default[
|
2273
|
+
}($__default["default"].BootstrapTable);
|
1916
2274
|
|
1917
|
-
}))
|
2275
|
+
}));
|