bootstrap-table-rails 1.18.1 → 1.19.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (104) hide show
  1. checksums.yaml +4 -4
  2. data/.DS_Store +0 -0
  3. data/Gemfile.lock +1 -1
  4. data/README.md +31 -133
  5. data/lib/bootstrap-table-rails/version.rb +1 -1
  6. data/vendor/.DS_Store +0 -0
  7. data/vendor/assets/.DS_Store +0 -0
  8. data/vendor/assets/javascripts/.DS_Store +0 -0
  9. data/vendor/assets/javascripts/bootstrap-table/.DS_Store +0 -0
  10. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +375 -306
  11. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +585 -1374
  12. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +1499 -2288
  13. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +12 -2
  14. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +7534 -7805
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1787 -1671
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +1224 -1137
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +2610 -3020
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +1255 -1176
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +1269 -1193
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +876 -815
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +1912 -2459
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +2238 -2742
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +3163 -3028
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +2442 -2367
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +1622 -1547
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +1619 -1542
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +45 -11
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +1473 -1377
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +1305 -1232
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +1809 -1760
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.css +5 -2
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +1132 -1061
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +343 -309
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +1660 -2282
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +1486 -1407
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +1067 -984
  37. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +927 -711
  38. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +1263 -1160
  39. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +2049 -2634
  40. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +1250 -1918
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +149 -120
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +149 -120
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +149 -120
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +149 -120
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +149 -120
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +149 -120
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +188 -120
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +149 -120
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +149 -120
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +149 -120
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +149 -120
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +149 -120
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +149 -120
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +167 -137
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +149 -120
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +149 -120
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +149 -120
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +149 -120
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +168 -139
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +149 -120
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +149 -120
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +149 -120
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +149 -120
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +149 -120
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +149 -120
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +149 -120
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +149 -120
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +149 -120
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +149 -120
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +149 -120
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +149 -120
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +149 -120
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +149 -120
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +149 -120
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +149 -120
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +149 -120
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +149 -120
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +149 -120
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +172 -143
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +149 -120
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +172 -143
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +149 -120
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +149 -120
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +149 -120
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +149 -120
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +149 -120
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +149 -120
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +149 -120
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +149 -120
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +149 -120
  91. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +149 -120
  92. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +149 -120
  93. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +149 -120
  94. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +11 -1
  95. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +1133 -1044
  96. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +11 -1
  97. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +1125 -1036
  98. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +15 -1
  99. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +1141 -1052
  100. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +15 -1
  101. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +1134 -1045
  102. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +11 -1
  103. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +1102 -1013
  104. metadata +8 -3
@@ -1,3 +1,142 @@
1
+ function _defineProperty(obj, key, value) {
2
+ if (key in obj) {
3
+ Object.defineProperty(obj, key, {
4
+ value: value,
5
+ enumerable: true,
6
+ configurable: true,
7
+ writable: true
8
+ });
9
+ } else {
10
+ obj[key] = value;
11
+ }
12
+
13
+ return obj;
14
+ }
15
+
16
+ function ownKeys$1(object, enumerableOnly) {
17
+ var keys = Object.keys(object);
18
+
19
+ if (Object.getOwnPropertySymbols) {
20
+ var symbols = Object.getOwnPropertySymbols(object);
21
+ if (enumerableOnly) symbols = symbols.filter(function (sym) {
22
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
23
+ });
24
+ keys.push.apply(keys, symbols);
25
+ }
26
+
27
+ return keys;
28
+ }
29
+
30
+ function _objectSpread2(target) {
31
+ for (var i = 1; i < arguments.length; i++) {
32
+ var source = arguments[i] != null ? arguments[i] : {};
33
+
34
+ if (i % 2) {
35
+ ownKeys$1(Object(source), true).forEach(function (key) {
36
+ _defineProperty(target, key, source[key]);
37
+ });
38
+ } else if (Object.getOwnPropertyDescriptors) {
39
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
40
+ } else {
41
+ ownKeys$1(Object(source)).forEach(function (key) {
42
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
43
+ });
44
+ }
45
+ }
46
+
47
+ return target;
48
+ }
49
+
50
+ function _toConsumableArray(arr) {
51
+ return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
52
+ }
53
+
54
+ function _arrayWithoutHoles(arr) {
55
+ if (Array.isArray(arr)) return _arrayLikeToArray(arr);
56
+ }
57
+
58
+ function _iterableToArray(iter) {
59
+ if (typeof Symbol !== "undefined" && Symbol.iterator in Object(iter)) return Array.from(iter);
60
+ }
61
+
62
+ function _unsupportedIterableToArray(o, minLen) {
63
+ if (!o) return;
64
+ if (typeof o === "string") return _arrayLikeToArray(o, minLen);
65
+ var n = Object.prototype.toString.call(o).slice(8, -1);
66
+ if (n === "Object" && o.constructor) n = o.constructor.name;
67
+ if (n === "Map" || n === "Set") return Array.from(o);
68
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
69
+ }
70
+
71
+ function _arrayLikeToArray(arr, len) {
72
+ if (len == null || len > arr.length) len = arr.length;
73
+
74
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
75
+
76
+ return arr2;
77
+ }
78
+
79
+ function _nonIterableSpread() {
80
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
81
+ }
82
+
83
+ function _createForOfIteratorHelper(o, allowArrayLike) {
84
+ var it;
85
+
86
+ if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) {
87
+ if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") {
88
+ if (it) o = it;
89
+ var i = 0;
90
+
91
+ var F = function () {};
92
+
93
+ return {
94
+ s: F,
95
+ n: function () {
96
+ if (i >= o.length) return {
97
+ done: true
98
+ };
99
+ return {
100
+ done: false,
101
+ value: o[i++]
102
+ };
103
+ },
104
+ e: function (e) {
105
+ throw e;
106
+ },
107
+ f: F
108
+ };
109
+ }
110
+
111
+ throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
112
+ }
113
+
114
+ var normalCompletion = true,
115
+ didErr = false,
116
+ err;
117
+ return {
118
+ s: function () {
119
+ it = o[Symbol.iterator]();
120
+ },
121
+ n: function () {
122
+ var step = it.next();
123
+ normalCompletion = step.done;
124
+ return step;
125
+ },
126
+ e: function (e) {
127
+ didErr = true;
128
+ err = e;
129
+ },
130
+ f: function () {
131
+ try {
132
+ if (!normalCompletion && it.return != null) it.return();
133
+ } finally {
134
+ if (didErr) throw err;
135
+ }
136
+ }
137
+ };
138
+ }
139
+
1
140
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
2
141
 
3
142
  function createCommonjsModule(fn, module) {
@@ -10,13 +149,14 @@ var check = function (it) {
10
149
 
11
150
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
12
151
  var global_1 =
13
- // eslint-disable-next-line no-undef
152
+ // eslint-disable-next-line es/no-global-this -- safe
14
153
  check(typeof globalThis == 'object' && globalThis) ||
15
154
  check(typeof window == 'object' && window) ||
155
+ // eslint-disable-next-line no-restricted-globals -- safe
16
156
  check(typeof self == 'object' && self) ||
17
157
  check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
18
- // eslint-disable-next-line no-new-func
19
- Function('return this')();
158
+ // eslint-disable-next-line no-new-func -- fallback
159
+ (function () { return this; })() || Function('return this')();
20
160
 
21
161
  var fails = function (exec) {
22
162
  try {
@@ -26,26 +166,28 @@ var fails = function (exec) {
26
166
  }
27
167
  };
28
168
 
29
- // Thank's IE8 for his funny defineProperty
169
+ // Detect IE8's incomplete defineProperty implementation
30
170
  var descriptors = !fails(function () {
31
- return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
171
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
172
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
32
173
  });
33
174
 
34
- var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
35
- var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
175
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
176
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
177
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
36
178
 
37
179
  // Nashorn ~ JDK8 bug
38
- var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
180
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
39
181
 
40
182
  // `Object.prototype.propertyIsEnumerable` method implementation
41
- // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
42
- var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
43
- var descriptor = getOwnPropertyDescriptor(this, V);
183
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
184
+ var f$4 = NASHORN_BUG ? function propertyIsEnumerable(V) {
185
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
44
186
  return !!descriptor && descriptor.enumerable;
45
- } : nativePropertyIsEnumerable;
187
+ } : $propertyIsEnumerable;
46
188
 
47
189
  var objectPropertyIsEnumerable = {
48
- f: f
190
+ f: f$4
49
191
  };
50
192
 
51
193
  var createPropertyDescriptor = function (bitmap, value) {
@@ -68,14 +210,14 @@ var split = ''.split;
68
210
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
69
211
  var indexedObject = fails(function () {
70
212
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
71
- // eslint-disable-next-line no-prototype-builtins
213
+ // eslint-disable-next-line no-prototype-builtins -- safe
72
214
  return !Object('z').propertyIsEnumerable(0);
73
215
  }) ? function (it) {
74
216
  return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
75
217
  } : Object;
76
218
 
77
219
  // `RequireObjectCoercible` abstract operation
78
- // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
220
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
79
221
  var requireObjectCoercible = function (it) {
80
222
  if (it == undefined) throw TypeError("Can't call method on " + it);
81
223
  return it;
@@ -94,7 +236,7 @@ var isObject = function (it) {
94
236
  };
95
237
 
96
238
  // `ToPrimitive` abstract operation
97
- // https://tc39.github.io/ecma262/#sec-toprimitive
239
+ // https://tc39.es/ecma262/#sec-toprimitive
98
240
  // instead of the ES6 spec version, we didn't implement @@toPrimitive case
99
241
  // and the second argument - flag - preferred type is a string
100
242
  var toPrimitive = function (input, PREFERRED_STRING) {
@@ -108,40 +250,42 @@ var toPrimitive = function (input, PREFERRED_STRING) {
108
250
 
109
251
  var hasOwnProperty = {}.hasOwnProperty;
110
252
 
111
- var has = function (it, key) {
253
+ var has$1 = function (it, key) {
112
254
  return hasOwnProperty.call(it, key);
113
255
  };
114
256
 
115
- var document$1 = global_1.document;
257
+ var document = global_1.document;
116
258
  // typeof document.createElement is 'object' in old IE
117
- var EXISTS = isObject(document$1) && isObject(document$1.createElement);
259
+ var EXISTS = isObject(document) && isObject(document.createElement);
118
260
 
119
261
  var documentCreateElement = function (it) {
120
- return EXISTS ? document$1.createElement(it) : {};
262
+ return EXISTS ? document.createElement(it) : {};
121
263
  };
122
264
 
123
265
  // Thank's IE8 for his funny defineProperty
124
266
  var ie8DomDefine = !descriptors && !fails(function () {
267
+ // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
125
268
  return Object.defineProperty(documentCreateElement('div'), 'a', {
126
269
  get: function () { return 7; }
127
270
  }).a != 7;
128
271
  });
129
272
 
130
- var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
273
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
274
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
131
275
 
132
276
  // `Object.getOwnPropertyDescriptor` method
133
- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
134
- var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
277
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
278
+ var f$3 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
135
279
  O = toIndexedObject(O);
136
280
  P = toPrimitive(P, true);
137
281
  if (ie8DomDefine) try {
138
- return nativeGetOwnPropertyDescriptor(O, P);
282
+ return $getOwnPropertyDescriptor(O, P);
139
283
  } catch (error) { /* empty */ }
140
- if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
284
+ if (has$1(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
141
285
  };
142
286
 
143
287
  var objectGetOwnPropertyDescriptor = {
144
- f: f$1
288
+ f: f$3
145
289
  };
146
290
 
147
291
  var anObject = function (it) {
@@ -150,16 +294,17 @@ var anObject = function (it) {
150
294
  } return it;
151
295
  };
152
296
 
153
- var nativeDefineProperty = Object.defineProperty;
297
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
298
+ var $defineProperty = Object.defineProperty;
154
299
 
155
300
  // `Object.defineProperty` method
156
- // https://tc39.github.io/ecma262/#sec-object.defineproperty
157
- var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
301
+ // https://tc39.es/ecma262/#sec-object.defineproperty
302
+ var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
158
303
  anObject(O);
159
304
  P = toPrimitive(P, true);
160
305
  anObject(Attributes);
161
306
  if (ie8DomDefine) try {
162
- return nativeDefineProperty(O, P, Attributes);
307
+ return $defineProperty(O, P, Attributes);
163
308
  } catch (error) { /* empty */ }
164
309
  if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
165
310
  if ('value' in Attributes) O[P] = Attributes.value;
@@ -186,9 +331,9 @@ var setGlobal = function (key, value) {
186
331
  };
187
332
 
188
333
  var SHARED = '__core-js_shared__';
189
- var store = global_1[SHARED] || setGlobal(SHARED, {});
334
+ var store$1 = global_1[SHARED] || setGlobal(SHARED, {});
190
335
 
191
- var sharedStore = store;
336
+ var sharedStore = store$1;
192
337
 
193
338
  var functionToString = Function.toString;
194
339
 
@@ -201,17 +346,17 @@ if (typeof sharedStore.inspectSource != 'function') {
201
346
 
202
347
  var inspectSource = sharedStore.inspectSource;
203
348
 
204
- var WeakMap = global_1.WeakMap;
349
+ var WeakMap$1 = global_1.WeakMap;
205
350
 
206
- var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
351
+ var nativeWeakMap = typeof WeakMap$1 === 'function' && /native code/.test(inspectSource(WeakMap$1));
207
352
 
208
353
  var shared = createCommonjsModule(function (module) {
209
354
  (module.exports = function (key, value) {
210
355
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
211
356
  })('versions', []).push({
212
- version: '3.6.0',
213
- mode: 'global',
214
- copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
357
+ version: '3.10.1',
358
+ mode: 'global',
359
+ copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
215
360
  });
216
361
  });
217
362
 
@@ -228,13 +373,13 @@ var sharedKey = function (key) {
228
373
  return keys[key] || (keys[key] = uid(key));
229
374
  };
230
375
 
231
- var hiddenKeys = {};
376
+ var hiddenKeys$1 = {};
232
377
 
233
- var WeakMap$1 = global_1.WeakMap;
234
- var set, get, has$1;
378
+ var WeakMap = global_1.WeakMap;
379
+ var set, get, has;
235
380
 
236
381
  var enforce = function (it) {
237
- return has$1(it) ? get(it) : set(it, {});
382
+ return has(it) ? get(it) : set(it, {});
238
383
  };
239
384
 
240
385
  var getterFor = function (TYPE) {
@@ -247,39 +392,41 @@ var getterFor = function (TYPE) {
247
392
  };
248
393
 
249
394
  if (nativeWeakMap) {
250
- var store$1 = new WeakMap$1();
251
- var wmget = store$1.get;
252
- var wmhas = store$1.has;
253
- var wmset = store$1.set;
395
+ var store = sharedStore.state || (sharedStore.state = new WeakMap());
396
+ var wmget = store.get;
397
+ var wmhas = store.has;
398
+ var wmset = store.set;
254
399
  set = function (it, metadata) {
255
- wmset.call(store$1, it, metadata);
400
+ metadata.facade = it;
401
+ wmset.call(store, it, metadata);
256
402
  return metadata;
257
403
  };
258
404
  get = function (it) {
259
- return wmget.call(store$1, it) || {};
405
+ return wmget.call(store, it) || {};
260
406
  };
261
- has$1 = function (it) {
262
- return wmhas.call(store$1, it);
407
+ has = function (it) {
408
+ return wmhas.call(store, it);
263
409
  };
264
410
  } else {
265
411
  var STATE = sharedKey('state');
266
- hiddenKeys[STATE] = true;
412
+ hiddenKeys$1[STATE] = true;
267
413
  set = function (it, metadata) {
414
+ metadata.facade = it;
268
415
  createNonEnumerableProperty(it, STATE, metadata);
269
416
  return metadata;
270
417
  };
271
418
  get = function (it) {
272
- return has(it, STATE) ? it[STATE] : {};
419
+ return has$1(it, STATE) ? it[STATE] : {};
273
420
  };
274
- has$1 = function (it) {
275
- return has(it, STATE);
421
+ has = function (it) {
422
+ return has$1(it, STATE);
276
423
  };
277
424
  }
278
425
 
279
426
  var internalState = {
280
427
  set: set,
281
428
  get: get,
282
- has: has$1,
429
+ has: has,
283
430
  enforce: enforce,
284
431
  getterFor: getterFor
285
432
  };
@@ -293,9 +440,15 @@ var TEMPLATE = String(String).split('String');
293
440
  var unsafe = options ? !!options.unsafe : false;
294
441
  var simple = options ? !!options.enumerable : false;
295
442
  var noTargetGet = options ? !!options.noTargetGet : false;
443
+ var state;
296
444
  if (typeof value == 'function') {
297
- if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
298
- enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
445
+ if (typeof key == 'string' && !has$1(value, 'name')) {
446
+ createNonEnumerableProperty(value, 'name', key);
447
+ }
448
+ state = enforceInternalState(value);
449
+ if (!state.source) {
450
+ state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
451
+ }
299
452
  }
300
453
  if (O === global_1) {
301
454
  if (simple) O[key] = value;
@@ -326,23 +479,23 @@ var getBuiltIn = function (namespace, method) {
326
479
  };
327
480
 
328
481
  var ceil = Math.ceil;
329
- var floor = Math.floor;
482
+ var floor$1 = Math.floor;
330
483
 
331
484
  // `ToInteger` abstract operation
332
- // https://tc39.github.io/ecma262/#sec-tointeger
485
+ // https://tc39.es/ecma262/#sec-tointeger
333
486
  var toInteger = function (argument) {
334
- return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
487
+ return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor$1 : ceil)(argument);
335
488
  };
336
489
 
337
- var min = Math.min;
490
+ var min$2 = Math.min;
338
491
 
339
492
  // `ToLength` abstract operation
340
- // https://tc39.github.io/ecma262/#sec-tolength
493
+ // https://tc39.es/ecma262/#sec-tolength
341
494
  var toLength = function (argument) {
342
- return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
495
+ return argument > 0 ? min$2(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
343
496
  };
344
497
 
345
- var max = Math.max;
498
+ var max$1 = Math.max;
346
499
  var min$1 = Math.min;
347
500
 
348
501
  // Helper for a popular repeating case of the spec:
@@ -350,21 +503,21 @@ var min$1 = Math.min;
350
503
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
351
504
  var toAbsoluteIndex = function (index, length) {
352
505
  var integer = toInteger(index);
353
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
506
+ return integer < 0 ? max$1(integer + length, 0) : min$1(integer, length);
354
507
  };
355
508
 
356
509
  // `Array.prototype.{ indexOf, includes }` methods implementation
357
- var createMethod = function (IS_INCLUDES) {
510
+ var createMethod$1 = function (IS_INCLUDES) {
358
511
  return function ($this, el, fromIndex) {
359
512
  var O = toIndexedObject($this);
360
513
  var length = toLength(O.length);
361
514
  var index = toAbsoluteIndex(fromIndex, length);
362
515
  var value;
363
516
  // Array#includes uses SameValueZero equality algorithm
364
- // eslint-disable-next-line no-self-compare
517
+ // eslint-disable-next-line no-self-compare -- NaN check
365
518
  if (IS_INCLUDES && el != el) while (length > index) {
366
519
  value = O[index++];
367
- // eslint-disable-next-line no-self-compare
520
+ // eslint-disable-next-line no-self-compare -- NaN check
368
521
  if (value != value) return true;
369
522
  // Array#indexOf ignores holes, Array#includes - not
370
523
  } else for (;length > index; index++) {
@@ -375,11 +528,11 @@ var createMethod = function (IS_INCLUDES) {
375
528
 
376
529
  var arrayIncludes = {
377
530
  // `Array.prototype.includes` method
378
- // https://tc39.github.io/ecma262/#sec-array.prototype.includes
379
- includes: createMethod(true),
531
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
532
+ includes: createMethod$1(true),
380
533
  // `Array.prototype.indexOf` method
381
- // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
382
- indexOf: createMethod(false)
534
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
535
+ indexOf: createMethod$1(false)
383
536
  };
384
537
 
385
538
  var indexOf = arrayIncludes.indexOf;
@@ -390,9 +543,9 @@ var objectKeysInternal = function (object, names) {
390
543
  var i = 0;
391
544
  var result = [];
392
545
  var key;
393
- for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
546
+ for (key in O) !has$1(hiddenKeys$1, key) && has$1(O, key) && result.push(key);
394
547
  // Don't enum bug & hidden keys
395
- while (names.length > i) if (has(O, key = names[i++])) {
548
+ while (names.length > i) if (has$1(O, key = names[i++])) {
396
549
  ~indexOf(result, key) || result.push(key);
397
550
  }
398
551
  return result;
@@ -409,22 +562,24 @@ var enumBugKeys = [
409
562
  'valueOf'
410
563
  ];
411
564
 
412
- var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
565
+ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
413
566
 
414
567
  // `Object.getOwnPropertyNames` method
415
- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
416
- var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
417
- return objectKeysInternal(O, hiddenKeys$1);
568
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
569
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
570
+ var f$1 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
571
+ return objectKeysInternal(O, hiddenKeys);
418
572
  };
419
573
 
420
574
  var objectGetOwnPropertyNames = {
421
- f: f$3
575
+ f: f$1
422
576
  };
423
577
 
424
- var f$4 = Object.getOwnPropertySymbols;
578
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
579
+ var f = Object.getOwnPropertySymbols;
425
580
 
426
581
  var objectGetOwnPropertySymbols = {
427
- f: f$4
582
+ f: f
428
583
  };
429
584
 
430
585
  // all object keys, includes non-enumerable and symbols
@@ -440,7 +595,7 @@ var copyConstructorProperties = function (target, source) {
440
595
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
441
596
  for (var i = 0; i < keys.length; i++) {
442
597
  var key = keys[i];
443
- if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
598
+ if (!has$1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
444
599
  }
445
600
  };
446
601
 
@@ -464,7 +619,7 @@ var POLYFILL = isForced.POLYFILL = 'P';
464
619
 
465
620
  var isForced_1 = isForced;
466
621
 
467
- var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
622
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
468
623
 
469
624
 
470
625
 
@@ -500,7 +655,7 @@ var _export = function (options, source) {
500
655
  if (target) for (key in source) {
501
656
  sourceProperty = source[key];
502
657
  if (options.noTargetGet) {
503
- descriptor = getOwnPropertyDescriptor$1(target, key);
658
+ descriptor = getOwnPropertyDescriptor(target, key);
504
659
  targetProperty = descriptor && descriptor.value;
505
660
  } else targetProperty = target[key];
506
661
  FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
@@ -518,1148 +673,193 @@ var _export = function (options, source) {
518
673
  }
519
674
  };
520
675
 
521
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
522
- // Chrome 38 Symbol has incorrect toString conversion
523
- // eslint-disable-next-line no-undef
524
- return !String(Symbol());
676
+ // `RegExp.prototype.flags` getter implementation
677
+ // https://tc39.es/ecma262/#sec-get-regexp.prototype.flags
678
+ var regexpFlags = function () {
679
+ var that = anObject(this);
680
+ var result = '';
681
+ if (that.global) result += 'g';
682
+ if (that.ignoreCase) result += 'i';
683
+ if (that.multiline) result += 'm';
684
+ if (that.dotAll) result += 's';
685
+ if (that.unicode) result += 'u';
686
+ if (that.sticky) result += 'y';
687
+ return result;
688
+ };
689
+
690
+ // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
691
+ // so we use an intermediate function.
692
+ function RE(s, f) {
693
+ return RegExp(s, f);
694
+ }
695
+
696
+ var UNSUPPORTED_Y$1 = fails(function () {
697
+ // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
698
+ var re = RE('a', 'y');
699
+ re.lastIndex = 2;
700
+ return re.exec('abcd') != null;
525
701
  });
526
702
 
527
- var useSymbolAsUid = nativeSymbol
528
- // eslint-disable-next-line no-undef
529
- && !Symbol.sham
530
- // eslint-disable-next-line no-undef
531
- && typeof Symbol() == 'symbol';
703
+ var BROKEN_CARET = fails(function () {
704
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
705
+ var re = RE('^r', 'gy');
706
+ re.lastIndex = 2;
707
+ return re.exec('str') != null;
708
+ });
532
709
 
533
- // `IsArray` abstract operation
534
- // https://tc39.github.io/ecma262/#sec-isarray
535
- var isArray = Array.isArray || function isArray(arg) {
536
- return classofRaw(arg) == 'Array';
710
+ var regexpStickyHelpers = {
711
+ UNSUPPORTED_Y: UNSUPPORTED_Y$1,
712
+ BROKEN_CARET: BROKEN_CARET
537
713
  };
538
714
 
539
- // `ToObject` abstract operation
540
- // https://tc39.github.io/ecma262/#sec-toobject
541
- var toObject = function (argument) {
542
- return Object(requireObjectCoercible(argument));
543
- };
715
+ var nativeExec = RegExp.prototype.exec;
716
+ var nativeReplace = shared('native-string-replace', String.prototype.replace);
544
717
 
545
- // `Object.keys` method
546
- // https://tc39.github.io/ecma262/#sec-object.keys
547
- var objectKeys = Object.keys || function keys(O) {
548
- return objectKeysInternal(O, enumBugKeys);
549
- };
718
+ var patchedExec = nativeExec;
550
719
 
551
- // `Object.defineProperties` method
552
- // https://tc39.github.io/ecma262/#sec-object.defineproperties
553
- var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
554
- anObject(O);
555
- var keys = objectKeys(Properties);
556
- var length = keys.length;
557
- var index = 0;
558
- var key;
559
- while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
560
- return O;
561
- };
720
+ var UPDATES_LAST_INDEX_WRONG = (function () {
721
+ var re1 = /a/;
722
+ var re2 = /b*/g;
723
+ nativeExec.call(re1, 'a');
724
+ nativeExec.call(re2, 'a');
725
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
726
+ })();
562
727
 
563
- var html = getBuiltIn('document', 'documentElement');
728
+ var UNSUPPORTED_Y = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
564
729
 
565
- var GT = '>';
566
- var LT = '<';
567
- var PROTOTYPE = 'prototype';
568
- var SCRIPT = 'script';
569
- var IE_PROTO = sharedKey('IE_PROTO');
730
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
731
+ // eslint-disable-next-line regexp/no-assertion-capturing-group, regexp/no-empty-group -- required for testing
732
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
570
733
 
571
- var EmptyConstructor = function () { /* empty */ };
734
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y;
572
735
 
573
- var scriptTag = function (content) {
574
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
575
- };
736
+ if (PATCH) {
737
+ patchedExec = function exec(str) {
738
+ var re = this;
739
+ var lastIndex, reCopy, match, i;
740
+ var sticky = UNSUPPORTED_Y && re.sticky;
741
+ var flags = regexpFlags.call(re);
742
+ var source = re.source;
743
+ var charsAdded = 0;
744
+ var strCopy = str;
576
745
 
577
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
578
- var NullProtoObjectViaActiveX = function (activeXDocument) {
579
- activeXDocument.write(scriptTag(''));
580
- activeXDocument.close();
581
- var temp = activeXDocument.parentWindow.Object;
582
- activeXDocument = null; // avoid memory leak
583
- return temp;
584
- };
746
+ if (sticky) {
747
+ flags = flags.replace('y', '');
748
+ if (flags.indexOf('g') === -1) {
749
+ flags += 'g';
750
+ }
585
751
 
586
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
587
- var NullProtoObjectViaIFrame = function () {
588
- // Thrash, waste and sodomy: IE GC bug
589
- var iframe = documentCreateElement('iframe');
590
- var JS = 'java' + SCRIPT + ':';
591
- var iframeDocument;
592
- iframe.style.display = 'none';
593
- html.appendChild(iframe);
594
- // https://github.com/zloirock/core-js/issues/475
595
- iframe.src = String(JS);
596
- iframeDocument = iframe.contentWindow.document;
597
- iframeDocument.open();
598
- iframeDocument.write(scriptTag('document.F=Object'));
599
- iframeDocument.close();
600
- return iframeDocument.F;
601
- };
752
+ strCopy = String(str).slice(re.lastIndex);
753
+ // Support anchored sticky behavior.
754
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
755
+ source = '(?: ' + source + ')';
756
+ strCopy = ' ' + strCopy;
757
+ charsAdded++;
758
+ }
759
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
760
+ // simulate the 'y' flag.
761
+ reCopy = new RegExp('^(?:' + source + ')', flags);
762
+ }
602
763
 
603
- // Check for document.domain and active x support
604
- // No need to use active x approach when document.domain is not set
605
- // see https://github.com/es-shims/es5-shim/issues/150
606
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
607
- // avoid IE GC bug
608
- var activeXDocument;
609
- var NullProtoObject = function () {
610
- try {
611
- /* global ActiveXObject */
612
- activeXDocument = document.domain && new ActiveXObject('htmlfile');
613
- } catch (error) { /* ignore */ }
614
- NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
615
- var length = enumBugKeys.length;
616
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
617
- return NullProtoObject();
618
- };
764
+ if (NPCG_INCLUDED) {
765
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
766
+ }
767
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
619
768
 
620
- hiddenKeys[IE_PROTO] = true;
621
-
622
- // `Object.create` method
623
- // https://tc39.github.io/ecma262/#sec-object.create
624
- var objectCreate = Object.create || function create(O, Properties) {
625
- var result;
626
- if (O !== null) {
627
- EmptyConstructor[PROTOTYPE] = anObject(O);
628
- result = new EmptyConstructor();
629
- EmptyConstructor[PROTOTYPE] = null;
630
- // add "__proto__" for Object.getPrototypeOf polyfill
631
- result[IE_PROTO] = O;
632
- } else result = NullProtoObject();
633
- return Properties === undefined ? result : objectDefineProperties(result, Properties);
634
- };
769
+ match = nativeExec.call(sticky ? reCopy : re, strCopy);
635
770
 
636
- var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
771
+ if (sticky) {
772
+ if (match) {
773
+ match.input = match.input.slice(charsAdded);
774
+ match[0] = match[0].slice(charsAdded);
775
+ match.index = re.lastIndex;
776
+ re.lastIndex += match[0].length;
777
+ } else re.lastIndex = 0;
778
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
779
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
780
+ }
781
+ if (NPCG_INCLUDED && match && match.length > 1) {
782
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
783
+ // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
784
+ nativeReplace.call(match[0], reCopy, function () {
785
+ for (i = 1; i < arguments.length - 2; i++) {
786
+ if (arguments[i] === undefined) match[i] = undefined;
787
+ }
788
+ });
789
+ }
637
790
 
638
- var toString$1 = {}.toString;
791
+ return match;
792
+ };
793
+ }
639
794
 
640
- var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
641
- ? Object.getOwnPropertyNames(window) : [];
795
+ var regexpExec = patchedExec;
642
796
 
643
- var getWindowNames = function (it) {
644
- try {
645
- return nativeGetOwnPropertyNames(it);
646
- } catch (error) {
647
- return windowNames.slice();
797
+ // `RegExp.prototype.exec` method
798
+ // https://tc39.es/ecma262/#sec-regexp.prototype.exec
799
+ _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
800
+ exec: regexpExec
801
+ });
802
+
803
+ var engineIsNode = classofRaw(global_1.process) == 'process';
804
+
805
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
806
+
807
+ var process = global_1.process;
808
+ var versions = process && process.versions;
809
+ var v8 = versions && versions.v8;
810
+ var match, version;
811
+
812
+ if (v8) {
813
+ match = v8.split('.');
814
+ version = match[0] + match[1];
815
+ } else if (engineUserAgent) {
816
+ match = engineUserAgent.match(/Edge\/(\d+)/);
817
+ if (!match || match[1] >= 74) {
818
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
819
+ if (match) version = match[1];
648
820
  }
649
- };
821
+ }
650
822
 
651
- // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
652
- var f$5 = function getOwnPropertyNames(it) {
653
- return windowNames && toString$1.call(it) == '[object Window]'
654
- ? getWindowNames(it)
655
- : nativeGetOwnPropertyNames(toIndexedObject(it));
656
- };
823
+ var engineV8Version = version && +version;
657
824
 
658
- var objectGetOwnPropertyNamesExternal = {
659
- f: f$5
660
- };
825
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
826
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
827
+ // eslint-disable-next-line es/no-symbol -- required for testing
828
+ return !Symbol.sham &&
829
+ // Chrome 38 Symbol has incorrect toString conversion
830
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
831
+ (engineIsNode ? engineV8Version === 38 : engineV8Version > 37 && engineV8Version < 41);
832
+ });
833
+
834
+ /* eslint-disable es/no-symbol -- required for testing */
835
+
836
+
837
+ var useSymbolAsUid = nativeSymbol
838
+ && !Symbol.sham
839
+ && typeof Symbol.iterator == 'symbol';
661
840
 
662
841
  var WellKnownSymbolsStore = shared('wks');
663
842
  var Symbol$1 = global_1.Symbol;
664
- var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
843
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
665
844
 
666
845
  var wellKnownSymbol = function (name) {
667
- if (!has(WellKnownSymbolsStore, name)) {
668
- if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
669
- else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
846
+ if (!has$1(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
847
+ if (nativeSymbol && has$1(Symbol$1, name)) {
848
+ WellKnownSymbolsStore[name] = Symbol$1[name];
849
+ } else {
850
+ WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
851
+ }
670
852
  } return WellKnownSymbolsStore[name];
671
853
  };
672
854
 
673
- var f$6 = wellKnownSymbol;
674
-
675
- var wrappedWellKnownSymbol = {
676
- f: f$6
677
- };
855
+ // TODO: Remove from `core-js@4` since it's moved to entry points
678
856
 
679
- var defineProperty = objectDefineProperty.f;
680
857
 
681
- var defineWellKnownSymbol = function (NAME) {
682
- var Symbol = path.Symbol || (path.Symbol = {});
683
- if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
684
- value: wrappedWellKnownSymbol.f(NAME)
685
- });
686
- };
687
858
 
688
- var defineProperty$1 = objectDefineProperty.f;
689
859
 
690
860
 
691
861
 
692
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
693
-
694
- var setToStringTag = function (it, TAG, STATIC) {
695
- if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
696
- defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
697
- }
698
- };
699
-
700
- var aFunction$1 = function (it) {
701
- if (typeof it != 'function') {
702
- throw TypeError(String(it) + ' is not a function');
703
- } return it;
704
- };
705
-
706
- // optional / simple context binding
707
- var bindContext = function (fn, that, length) {
708
- aFunction$1(fn);
709
- if (that === undefined) return fn;
710
- switch (length) {
711
- case 0: return function () {
712
- return fn.call(that);
713
- };
714
- case 1: return function (a) {
715
- return fn.call(that, a);
716
- };
717
- case 2: return function (a, b) {
718
- return fn.call(that, a, b);
719
- };
720
- case 3: return function (a, b, c) {
721
- return fn.call(that, a, b, c);
722
- };
723
- }
724
- return function (/* ...args */) {
725
- return fn.apply(that, arguments);
726
- };
727
- };
728
-
729
- var SPECIES = wellKnownSymbol('species');
730
-
731
- // `ArraySpeciesCreate` abstract operation
732
- // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
733
- var arraySpeciesCreate = function (originalArray, length) {
734
- var C;
735
- if (isArray(originalArray)) {
736
- C = originalArray.constructor;
737
- // cross-realm fallback
738
- if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
739
- else if (isObject(C)) {
740
- C = C[SPECIES];
741
- if (C === null) C = undefined;
742
- }
743
- } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
744
- };
745
-
746
- var push = [].push;
747
-
748
- // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
749
- var createMethod$1 = function (TYPE) {
750
- var IS_MAP = TYPE == 1;
751
- var IS_FILTER = TYPE == 2;
752
- var IS_SOME = TYPE == 3;
753
- var IS_EVERY = TYPE == 4;
754
- var IS_FIND_INDEX = TYPE == 6;
755
- var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
756
- return function ($this, callbackfn, that, specificCreate) {
757
- var O = toObject($this);
758
- var self = indexedObject(O);
759
- var boundFunction = bindContext(callbackfn, that, 3);
760
- var length = toLength(self.length);
761
- var index = 0;
762
- var create = specificCreate || arraySpeciesCreate;
763
- var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
764
- var value, result;
765
- for (;length > index; index++) if (NO_HOLES || index in self) {
766
- value = self[index];
767
- result = boundFunction(value, index, O);
768
- if (TYPE) {
769
- if (IS_MAP) target[index] = result; // map
770
- else if (result) switch (TYPE) {
771
- case 3: return true; // some
772
- case 5: return value; // find
773
- case 6: return index; // findIndex
774
- case 2: push.call(target, value); // filter
775
- } else if (IS_EVERY) return false; // every
776
- }
777
- }
778
- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
779
- };
780
- };
781
-
782
- var arrayIteration = {
783
- // `Array.prototype.forEach` method
784
- // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
785
- forEach: createMethod$1(0),
786
- // `Array.prototype.map` method
787
- // https://tc39.github.io/ecma262/#sec-array.prototype.map
788
- map: createMethod$1(1),
789
- // `Array.prototype.filter` method
790
- // https://tc39.github.io/ecma262/#sec-array.prototype.filter
791
- filter: createMethod$1(2),
792
- // `Array.prototype.some` method
793
- // https://tc39.github.io/ecma262/#sec-array.prototype.some
794
- some: createMethod$1(3),
795
- // `Array.prototype.every` method
796
- // https://tc39.github.io/ecma262/#sec-array.prototype.every
797
- every: createMethod$1(4),
798
- // `Array.prototype.find` method
799
- // https://tc39.github.io/ecma262/#sec-array.prototype.find
800
- find: createMethod$1(5),
801
- // `Array.prototype.findIndex` method
802
- // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
803
- findIndex: createMethod$1(6)
804
- };
805
-
806
- var $forEach = arrayIteration.forEach;
807
-
808
- var HIDDEN = sharedKey('hidden');
809
- var SYMBOL = 'Symbol';
810
- var PROTOTYPE$1 = 'prototype';
811
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
812
- var setInternalState = internalState.set;
813
- var getInternalState = internalState.getterFor(SYMBOL);
814
- var ObjectPrototype = Object[PROTOTYPE$1];
815
- var $Symbol = global_1.Symbol;
816
- var $stringify = getBuiltIn('JSON', 'stringify');
817
- var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
818
- var nativeDefineProperty$1 = objectDefineProperty.f;
819
- var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
820
- var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;
821
- var AllSymbols = shared('symbols');
822
- var ObjectPrototypeSymbols = shared('op-symbols');
823
- var StringToSymbolRegistry = shared('string-to-symbol-registry');
824
- var SymbolToStringRegistry = shared('symbol-to-string-registry');
825
- var WellKnownSymbolsStore$1 = shared('wks');
826
- var QObject = global_1.QObject;
827
- // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
828
- var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
829
-
830
- // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
831
- var setSymbolDescriptor = descriptors && fails(function () {
832
- return objectCreate(nativeDefineProperty$1({}, 'a', {
833
- get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
834
- })).a != 7;
835
- }) ? function (O, P, Attributes) {
836
- var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);
837
- if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
838
- nativeDefineProperty$1(O, P, Attributes);
839
- if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
840
- nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);
841
- }
842
- } : nativeDefineProperty$1;
843
-
844
- var wrap = function (tag, description) {
845
- var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);
846
- setInternalState(symbol, {
847
- type: SYMBOL,
848
- tag: tag,
849
- description: description
850
- });
851
- if (!descriptors) symbol.description = description;
852
- return symbol;
853
- };
854
-
855
- var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {
856
- return typeof it == 'symbol';
857
- } : function (it) {
858
- return Object(it) instanceof $Symbol;
859
- };
860
-
861
- var $defineProperty = function defineProperty(O, P, Attributes) {
862
- if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
863
- anObject(O);
864
- var key = toPrimitive(P, true);
865
- anObject(Attributes);
866
- if (has(AllSymbols, key)) {
867
- if (!Attributes.enumerable) {
868
- if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));
869
- O[HIDDEN][key] = true;
870
- } else {
871
- if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
872
- Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
873
- } return setSymbolDescriptor(O, key, Attributes);
874
- } return nativeDefineProperty$1(O, key, Attributes);
875
- };
876
-
877
- var $defineProperties = function defineProperties(O, Properties) {
878
- anObject(O);
879
- var properties = toIndexedObject(Properties);
880
- var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
881
- $forEach(keys, function (key) {
882
- if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
883
- });
884
- return O;
885
- };
886
-
887
- var $create = function create(O, Properties) {
888
- return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);
889
- };
890
-
891
- var $propertyIsEnumerable = function propertyIsEnumerable(V) {
892
- var P = toPrimitive(V, true);
893
- var enumerable = nativePropertyIsEnumerable$1.call(this, P);
894
- if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
895
- return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
896
- };
897
-
898
- var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
899
- var it = toIndexedObject(O);
900
- var key = toPrimitive(P, true);
901
- if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
902
- var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
903
- if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
904
- descriptor.enumerable = true;
905
- }
906
- return descriptor;
907
- };
908
-
909
- var $getOwnPropertyNames = function getOwnPropertyNames(O) {
910
- var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));
911
- var result = [];
912
- $forEach(names, function (key) {
913
- if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
914
- });
915
- return result;
916
- };
917
-
918
- var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
919
- var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
920
- var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
921
- var result = [];
922
- $forEach(names, function (key) {
923
- if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
924
- result.push(AllSymbols[key]);
925
- }
926
- });
927
- return result;
928
- };
929
-
930
- // `Symbol` constructor
931
- // https://tc39.github.io/ecma262/#sec-symbol-constructor
932
- if (!nativeSymbol) {
933
- $Symbol = function Symbol() {
934
- if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
935
- var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
936
- var tag = uid(description);
937
- var setter = function (value) {
938
- if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
939
- if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
940
- setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
941
- };
942
- if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
943
- return wrap(tag, description);
944
- };
945
-
946
- redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {
947
- return getInternalState(this).tag;
948
- });
949
-
950
- objectPropertyIsEnumerable.f = $propertyIsEnumerable;
951
- objectDefineProperty.f = $defineProperty;
952
- objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
953
- objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
954
- objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;
955
-
956
- if (descriptors) {
957
- // https://github.com/tc39/proposal-Symbol-description
958
- nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {
959
- configurable: true,
960
- get: function description() {
961
- return getInternalState(this).description;
962
- }
963
- });
964
- {
965
- redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
966
- }
967
- }
968
- }
969
-
970
- if (!useSymbolAsUid) {
971
- wrappedWellKnownSymbol.f = function (name) {
972
- return wrap(wellKnownSymbol(name), name);
973
- };
974
- }
975
-
976
- _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {
977
- Symbol: $Symbol
978
- });
979
-
980
- $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {
981
- defineWellKnownSymbol(name);
982
- });
983
-
984
- _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
985
- // `Symbol.for` method
986
- // https://tc39.github.io/ecma262/#sec-symbol.for
987
- 'for': function (key) {
988
- var string = String(key);
989
- if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
990
- var symbol = $Symbol(string);
991
- StringToSymbolRegistry[string] = symbol;
992
- SymbolToStringRegistry[symbol] = string;
993
- return symbol;
994
- },
995
- // `Symbol.keyFor` method
996
- // https://tc39.github.io/ecma262/#sec-symbol.keyfor
997
- keyFor: function keyFor(sym) {
998
- if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
999
- if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
1000
- },
1001
- useSetter: function () { USE_SETTER = true; },
1002
- useSimple: function () { USE_SETTER = false; }
1003
- });
1004
-
1005
- _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {
1006
- // `Object.create` method
1007
- // https://tc39.github.io/ecma262/#sec-object.create
1008
- create: $create,
1009
- // `Object.defineProperty` method
1010
- // https://tc39.github.io/ecma262/#sec-object.defineproperty
1011
- defineProperty: $defineProperty,
1012
- // `Object.defineProperties` method
1013
- // https://tc39.github.io/ecma262/#sec-object.defineproperties
1014
- defineProperties: $defineProperties,
1015
- // `Object.getOwnPropertyDescriptor` method
1016
- // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
1017
- getOwnPropertyDescriptor: $getOwnPropertyDescriptor
1018
- });
1019
-
1020
- _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
1021
- // `Object.getOwnPropertyNames` method
1022
- // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
1023
- getOwnPropertyNames: $getOwnPropertyNames,
1024
- // `Object.getOwnPropertySymbols` method
1025
- // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
1026
- getOwnPropertySymbols: $getOwnPropertySymbols
1027
- });
1028
-
1029
- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
1030
- // https://bugs.chromium.org/p/v8/issues/detail?id=3443
1031
- _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {
1032
- getOwnPropertySymbols: function getOwnPropertySymbols(it) {
1033
- return objectGetOwnPropertySymbols.f(toObject(it));
1034
- }
1035
- });
1036
-
1037
- // `JSON.stringify` method behavior with symbols
1038
- // https://tc39.github.io/ecma262/#sec-json.stringify
1039
- if ($stringify) {
1040
- var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {
1041
- var symbol = $Symbol();
1042
- // MS Edge converts symbol values to JSON as {}
1043
- return $stringify([symbol]) != '[null]'
1044
- // WebKit converts symbol values to JSON as null
1045
- || $stringify({ a: symbol }) != '{}'
1046
- // V8 throws on boxed symbols
1047
- || $stringify(Object(symbol)) != '{}';
1048
- });
1049
-
1050
- _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
1051
- // eslint-disable-next-line no-unused-vars
1052
- stringify: function stringify(it, replacer, space) {
1053
- var args = [it];
1054
- var index = 1;
1055
- var $replacer;
1056
- while (arguments.length > index) args.push(arguments[index++]);
1057
- $replacer = replacer;
1058
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
1059
- if (!isArray(replacer)) replacer = function (key, value) {
1060
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1061
- if (!isSymbol(value)) return value;
1062
- };
1063
- args[1] = replacer;
1064
- return $stringify.apply(null, args);
1065
- }
1066
- });
1067
- }
1068
-
1069
- // `Symbol.prototype[@@toPrimitive]` method
1070
- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
1071
- if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {
1072
- createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
1073
- }
1074
- // `Symbol.prototype[@@toStringTag]` property
1075
- // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
1076
- setToStringTag($Symbol, SYMBOL);
1077
-
1078
- hiddenKeys[HIDDEN] = true;
1079
-
1080
- var defineProperty$2 = objectDefineProperty.f;
1081
-
1082
-
1083
- var NativeSymbol = global_1.Symbol;
1084
-
1085
- if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
1086
- // Safari 12 bug
1087
- NativeSymbol().description !== undefined
1088
- )) {
1089
- var EmptyStringDescriptionStore = {};
1090
- // wrap Symbol constructor for correct work with undefined description
1091
- var SymbolWrapper = function Symbol() {
1092
- var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
1093
- var result = this instanceof SymbolWrapper
1094
- ? new NativeSymbol(description)
1095
- // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
1096
- : description === undefined ? NativeSymbol() : NativeSymbol(description);
1097
- if (description === '') EmptyStringDescriptionStore[result] = true;
1098
- return result;
1099
- };
1100
- copyConstructorProperties(SymbolWrapper, NativeSymbol);
1101
- var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
1102
- symbolPrototype.constructor = SymbolWrapper;
1103
-
1104
- var symbolToString = symbolPrototype.toString;
1105
- var native = String(NativeSymbol('test')) == 'Symbol(test)';
1106
- var regexp = /^Symbol\((.*)\)[^)]+$/;
1107
- defineProperty$2(symbolPrototype, 'description', {
1108
- configurable: true,
1109
- get: function description() {
1110
- var symbol = isObject(this) ? this.valueOf() : this;
1111
- var string = symbolToString.call(symbol);
1112
- if (has(EmptyStringDescriptionStore, symbol)) return '';
1113
- var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
1114
- return desc === '' ? undefined : desc;
1115
- }
1116
- });
1117
-
1118
- _export({ global: true, forced: true }, {
1119
- Symbol: SymbolWrapper
1120
- });
1121
- }
1122
-
1123
- // `Symbol.iterator` well-known symbol
1124
- // https://tc39.github.io/ecma262/#sec-symbol.iterator
1125
- defineWellKnownSymbol('iterator');
1126
-
1127
- var createProperty = function (object, key, value) {
1128
- var propertyKey = toPrimitive(key);
1129
- if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1130
- else object[propertyKey] = value;
1131
- };
1132
-
1133
- var userAgent = getBuiltIn('navigator', 'userAgent') || '';
1134
-
1135
- var process = global_1.process;
1136
- var versions = process && process.versions;
1137
- var v8 = versions && versions.v8;
1138
- var match, version;
1139
-
1140
- if (v8) {
1141
- match = v8.split('.');
1142
- version = match[0] + match[1];
1143
- } else if (userAgent) {
1144
- match = userAgent.match(/Edge\/(\d+)/);
1145
- if (!match || match[1] >= 74) {
1146
- match = userAgent.match(/Chrome\/(\d+)/);
1147
- if (match) version = match[1];
1148
- }
1149
- }
1150
-
1151
- var v8Version = version && +version;
1152
-
1153
- var SPECIES$1 = wellKnownSymbol('species');
1154
-
1155
- var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1156
- // We can't use this feature detection in V8 since it causes
1157
- // deoptimization and serious performance degradation
1158
- // https://github.com/zloirock/core-js/issues/677
1159
- return v8Version >= 51 || !fails(function () {
1160
- var array = [];
1161
- var constructor = array.constructor = {};
1162
- constructor[SPECIES$1] = function () {
1163
- return { foo: 1 };
1164
- };
1165
- return array[METHOD_NAME](Boolean).foo !== 1;
1166
- });
1167
- };
1168
-
1169
- var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1170
- var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1171
- var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1172
-
1173
- // We can't use this feature detection in V8 since it causes
1174
- // deoptimization and serious performance degradation
1175
- // https://github.com/zloirock/core-js/issues/679
1176
- var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {
1177
- var array = [];
1178
- array[IS_CONCAT_SPREADABLE] = false;
1179
- return array.concat()[0] !== array;
1180
- });
1181
-
1182
- var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
1183
-
1184
- var isConcatSpreadable = function (O) {
1185
- if (!isObject(O)) return false;
1186
- var spreadable = O[IS_CONCAT_SPREADABLE];
1187
- return spreadable !== undefined ? !!spreadable : isArray(O);
1188
- };
1189
-
1190
- var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1191
-
1192
- // `Array.prototype.concat` method
1193
- // https://tc39.github.io/ecma262/#sec-array.prototype.concat
1194
- // with adding support of @@isConcatSpreadable and @@species
1195
- _export({ target: 'Array', proto: true, forced: FORCED }, {
1196
- concat: function concat(arg) { // eslint-disable-line no-unused-vars
1197
- var O = toObject(this);
1198
- var A = arraySpeciesCreate(O, 0);
1199
- var n = 0;
1200
- var i, k, length, len, E;
1201
- for (i = -1, length = arguments.length; i < length; i++) {
1202
- E = i === -1 ? O : arguments[i];
1203
- if (isConcatSpreadable(E)) {
1204
- len = toLength(E.length);
1205
- if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1206
- for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1207
- } else {
1208
- if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1209
- createProperty(A, n++, E);
1210
- }
1211
- }
1212
- A.length = n;
1213
- return A;
1214
- }
1215
- });
1216
-
1217
- var UNSCOPABLES = wellKnownSymbol('unscopables');
1218
- var ArrayPrototype = Array.prototype;
1219
-
1220
- // Array.prototype[@@unscopables]
1221
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1222
- if (ArrayPrototype[UNSCOPABLES] == undefined) {
1223
- objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
1224
- configurable: true,
1225
- value: objectCreate(null)
1226
- });
1227
- }
1228
-
1229
- // add a key to Array.prototype[@@unscopables]
1230
- var addToUnscopables = function (key) {
1231
- ArrayPrototype[UNSCOPABLES][key] = true;
1232
- };
1233
-
1234
- var correctPrototypeGetter = !fails(function () {
1235
- function F() { /* empty */ }
1236
- F.prototype.constructor = null;
1237
- return Object.getPrototypeOf(new F()) !== F.prototype;
1238
- });
1239
-
1240
- var IE_PROTO$1 = sharedKey('IE_PROTO');
1241
- var ObjectPrototype$1 = Object.prototype;
1242
-
1243
- // `Object.getPrototypeOf` method
1244
- // https://tc39.github.io/ecma262/#sec-object.getprototypeof
1245
- var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
1246
- O = toObject(O);
1247
- if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
1248
- if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1249
- return O.constructor.prototype;
1250
- } return O instanceof Object ? ObjectPrototype$1 : null;
1251
- };
1252
-
1253
- var ITERATOR = wellKnownSymbol('iterator');
1254
- var BUGGY_SAFARI_ITERATORS = false;
1255
-
1256
- var returnThis = function () { return this; };
1257
-
1258
- // `%IteratorPrototype%` object
1259
- // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
1260
- var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
1261
-
1262
- if ([].keys) {
1263
- arrayIterator = [].keys();
1264
- // Safari 8 has buggy iterators w/o `next`
1265
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
1266
- else {
1267
- PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
1268
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
1269
- }
1270
- }
1271
-
1272
- if (IteratorPrototype == undefined) IteratorPrototype = {};
1273
-
1274
- // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
1275
- if ( !has(IteratorPrototype, ITERATOR)) {
1276
- createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
1277
- }
1278
-
1279
- var iteratorsCore = {
1280
- IteratorPrototype: IteratorPrototype,
1281
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1282
- };
1283
-
1284
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1285
-
1286
- var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
1287
- var TO_STRING_TAG = NAME + ' Iterator';
1288
- IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
1289
- setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
1290
- return IteratorConstructor;
1291
- };
1292
-
1293
- var aPossiblePrototype = function (it) {
1294
- if (!isObject(it) && it !== null) {
1295
- throw TypeError("Can't set " + String(it) + ' as a prototype');
1296
- } return it;
1297
- };
1298
-
1299
- // `Object.setPrototypeOf` method
1300
- // https://tc39.github.io/ecma262/#sec-object.setprototypeof
1301
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1302
- /* eslint-disable no-proto */
1303
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1304
- var CORRECT_SETTER = false;
1305
- var test = {};
1306
- var setter;
1307
- try {
1308
- setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
1309
- setter.call(test, []);
1310
- CORRECT_SETTER = test instanceof Array;
1311
- } catch (error) { /* empty */ }
1312
- return function setPrototypeOf(O, proto) {
1313
- anObject(O);
1314
- aPossiblePrototype(proto);
1315
- if (CORRECT_SETTER) setter.call(O, proto);
1316
- else O.__proto__ = proto;
1317
- return O;
1318
- };
1319
- }() : undefined);
1320
-
1321
- var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
1322
- var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
1323
- var ITERATOR$1 = wellKnownSymbol('iterator');
1324
- var KEYS = 'keys';
1325
- var VALUES = 'values';
1326
- var ENTRIES = 'entries';
1327
-
1328
- var returnThis$1 = function () { return this; };
1329
-
1330
- var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1331
- createIteratorConstructor(IteratorConstructor, NAME, next);
1332
-
1333
- var getIterationMethod = function (KIND) {
1334
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1335
- if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
1336
- switch (KIND) {
1337
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1338
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1339
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1340
- } return function () { return new IteratorConstructor(this); };
1341
- };
1342
-
1343
- var TO_STRING_TAG = NAME + ' Iterator';
1344
- var INCORRECT_VALUES_NAME = false;
1345
- var IterablePrototype = Iterable.prototype;
1346
- var nativeIterator = IterablePrototype[ITERATOR$1]
1347
- || IterablePrototype['@@iterator']
1348
- || DEFAULT && IterablePrototype[DEFAULT];
1349
- var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
1350
- var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1351
- var CurrentIteratorPrototype, methods, KEY;
1352
-
1353
- // fix native
1354
- if (anyNativeIterator) {
1355
- CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
1356
- if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
1357
- if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
1358
- if (objectSetPrototypeOf) {
1359
- objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
1360
- } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
1361
- createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
1362
- }
1363
- }
1364
- // Set @@toStringTag to native iterators
1365
- setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1366
- }
1367
- }
1368
-
1369
- // fix Array#{values, @@iterator}.name in V8 / FF
1370
- if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1371
- INCORRECT_VALUES_NAME = true;
1372
- defaultIterator = function values() { return nativeIterator.call(this); };
1373
- }
1374
-
1375
- // define iterator
1376
- if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
1377
- createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);
1378
- }
1379
-
1380
- // export additional methods
1381
- if (DEFAULT) {
1382
- methods = {
1383
- values: getIterationMethod(VALUES),
1384
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1385
- entries: getIterationMethod(ENTRIES)
1386
- };
1387
- if (FORCED) for (KEY in methods) {
1388
- if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1389
- redefine(IterablePrototype, KEY, methods[KEY]);
1390
- }
1391
- } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
1392
- }
1393
-
1394
- return methods;
1395
- };
1396
-
1397
- var ARRAY_ITERATOR = 'Array Iterator';
1398
- var setInternalState$1 = internalState.set;
1399
- var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
1400
-
1401
- // `Array.prototype.entries` method
1402
- // https://tc39.github.io/ecma262/#sec-array.prototype.entries
1403
- // `Array.prototype.keys` method
1404
- // https://tc39.github.io/ecma262/#sec-array.prototype.keys
1405
- // `Array.prototype.values` method
1406
- // https://tc39.github.io/ecma262/#sec-array.prototype.values
1407
- // `Array.prototype[@@iterator]` method
1408
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
1409
- // `CreateArrayIterator` internal method
1410
- // https://tc39.github.io/ecma262/#sec-createarrayiterator
1411
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1412
- setInternalState$1(this, {
1413
- type: ARRAY_ITERATOR,
1414
- target: toIndexedObject(iterated), // target
1415
- index: 0, // next index
1416
- kind: kind // kind
1417
- });
1418
- // `%ArrayIteratorPrototype%.next` method
1419
- // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
1420
- }, function () {
1421
- var state = getInternalState$1(this);
1422
- var target = state.target;
1423
- var kind = state.kind;
1424
- var index = state.index++;
1425
- if (!target || index >= target.length) {
1426
- state.target = undefined;
1427
- return { value: undefined, done: true };
1428
- }
1429
- if (kind == 'keys') return { value: index, done: false };
1430
- if (kind == 'values') return { value: target[index], done: false };
1431
- return { value: [index, target[index]], done: false };
1432
- }, 'values');
1433
-
1434
- // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1435
- addToUnscopables('keys');
1436
- addToUnscopables('values');
1437
- addToUnscopables('entries');
1438
-
1439
- var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1440
- var test = {};
1441
-
1442
- test[TO_STRING_TAG$1] = 'z';
1443
-
1444
- var toStringTagSupport = String(test) === '[object z]';
1445
-
1446
- var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
1447
- // ES3 wrong here
1448
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1449
-
1450
- // fallback for IE11 Script Access Denied error
1451
- var tryGet = function (it, key) {
1452
- try {
1453
- return it[key];
1454
- } catch (error) { /* empty */ }
1455
- };
1456
-
1457
- // getting tag from ES6+ `Object.prototype.toString`
1458
- var classof = toStringTagSupport ? classofRaw : function (it) {
1459
- var O, tag, result;
1460
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1461
- // @@toStringTag case
1462
- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag
1463
- // builtinTag case
1464
- : CORRECT_ARGUMENTS ? classofRaw(O)
1465
- // ES3 arguments fallback
1466
- : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
1467
- };
1468
-
1469
- // `Object.prototype.toString` method implementation
1470
- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1471
- var objectToString = toStringTagSupport ? {}.toString : function toString() {
1472
- return '[object ' + classof(this) + ']';
1473
- };
1474
-
1475
- // `Object.prototype.toString` method
1476
- // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1477
- if (!toStringTagSupport) {
1478
- redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
1479
- }
1480
-
1481
- // `RegExp.prototype.flags` getter implementation
1482
- // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
1483
- var regexpFlags = function () {
1484
- var that = anObject(this);
1485
- var result = '';
1486
- if (that.global) result += 'g';
1487
- if (that.ignoreCase) result += 'i';
1488
- if (that.multiline) result += 'm';
1489
- if (that.dotAll) result += 's';
1490
- if (that.unicode) result += 'u';
1491
- if (that.sticky) result += 'y';
1492
- return result;
1493
- };
1494
-
1495
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
1496
- // so we use an intermediate function.
1497
- function RE(s, f) {
1498
- return RegExp(s, f);
1499
- }
1500
-
1501
- var UNSUPPORTED_Y = fails(function () {
1502
- // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1503
- var re = RE('a', 'y');
1504
- re.lastIndex = 2;
1505
- return re.exec('abcd') != null;
1506
- });
1507
-
1508
- var BROKEN_CARET = fails(function () {
1509
- // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1510
- var re = RE('^r', 'gy');
1511
- re.lastIndex = 2;
1512
- return re.exec('str') != null;
1513
- });
1514
-
1515
- var regexpStickyHelpers = {
1516
- UNSUPPORTED_Y: UNSUPPORTED_Y,
1517
- BROKEN_CARET: BROKEN_CARET
1518
- };
1519
-
1520
- var nativeExec = RegExp.prototype.exec;
1521
- // This always refers to the native implementation, because the
1522
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
1523
- // which loads this file before patching the method.
1524
- var nativeReplace = String.prototype.replace;
1525
-
1526
- var patchedExec = nativeExec;
1527
-
1528
- var UPDATES_LAST_INDEX_WRONG = (function () {
1529
- var re1 = /a/;
1530
- var re2 = /b*/g;
1531
- nativeExec.call(re1, 'a');
1532
- nativeExec.call(re2, 'a');
1533
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1534
- })();
1535
-
1536
- var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
1537
-
1538
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
1539
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1540
-
1541
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
1542
-
1543
- if (PATCH) {
1544
- patchedExec = function exec(str) {
1545
- var re = this;
1546
- var lastIndex, reCopy, match, i;
1547
- var sticky = UNSUPPORTED_Y$1 && re.sticky;
1548
- var flags = regexpFlags.call(re);
1549
- var source = re.source;
1550
- var charsAdded = 0;
1551
- var strCopy = str;
1552
-
1553
- if (sticky) {
1554
- flags = flags.replace('y', '');
1555
- if (flags.indexOf('g') === -1) {
1556
- flags += 'g';
1557
- }
1558
-
1559
- strCopy = String(str).slice(re.lastIndex);
1560
- // Support anchored sticky behavior.
1561
- if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
1562
- source = '(?: ' + source + ')';
1563
- strCopy = ' ' + strCopy;
1564
- charsAdded++;
1565
- }
1566
- // ^(? + rx + ) is needed, in combination with some str slicing, to
1567
- // simulate the 'y' flag.
1568
- reCopy = new RegExp('^(?:' + source + ')', flags);
1569
- }
1570
-
1571
- if (NPCG_INCLUDED) {
1572
- reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1573
- }
1574
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1575
-
1576
- match = nativeExec.call(sticky ? reCopy : re, strCopy);
1577
-
1578
- if (sticky) {
1579
- if (match) {
1580
- match.input = match.input.slice(charsAdded);
1581
- match[0] = match[0].slice(charsAdded);
1582
- match.index = re.lastIndex;
1583
- re.lastIndex += match[0].length;
1584
- } else re.lastIndex = 0;
1585
- } else if (UPDATES_LAST_INDEX_WRONG && match) {
1586
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1587
- }
1588
- if (NPCG_INCLUDED && match && match.length > 1) {
1589
- // Fix browsers whose `exec` methods don't consistently return `undefined`
1590
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1591
- nativeReplace.call(match[0], reCopy, function () {
1592
- for (i = 1; i < arguments.length - 2; i++) {
1593
- if (arguments[i] === undefined) match[i] = undefined;
1594
- }
1595
- });
1596
- }
1597
-
1598
- return match;
1599
- };
1600
- }
1601
-
1602
- var regexpExec = patchedExec;
1603
-
1604
- _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
1605
- exec: regexpExec
1606
- });
1607
-
1608
- // `String.prototype.{ codePointAt, at }` methods implementation
1609
- var createMethod$2 = function (CONVERT_TO_STRING) {
1610
- return function ($this, pos) {
1611
- var S = String(requireObjectCoercible($this));
1612
- var position = toInteger(pos);
1613
- var size = S.length;
1614
- var first, second;
1615
- if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1616
- first = S.charCodeAt(position);
1617
- return first < 0xD800 || first > 0xDBFF || position + 1 === size
1618
- || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1619
- ? CONVERT_TO_STRING ? S.charAt(position) : first
1620
- : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1621
- };
1622
- };
1623
-
1624
- var stringMultibyte = {
1625
- // `String.prototype.codePointAt` method
1626
- // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
1627
- codeAt: createMethod$2(false),
1628
- // `String.prototype.at` method
1629
- // https://github.com/mathiasbynens/String.prototype.at
1630
- charAt: createMethod$2(true)
1631
- };
1632
-
1633
- var charAt = stringMultibyte.charAt;
1634
-
1635
-
1636
-
1637
- var STRING_ITERATOR = 'String Iterator';
1638
- var setInternalState$2 = internalState.set;
1639
- var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
1640
-
1641
- // `String.prototype[@@iterator]` method
1642
- // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
1643
- defineIterator(String, 'String', function (iterated) {
1644
- setInternalState$2(this, {
1645
- type: STRING_ITERATOR,
1646
- string: String(iterated),
1647
- index: 0
1648
- });
1649
- // `%StringIteratorPrototype%.next` method
1650
- // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
1651
- }, function next() {
1652
- var state = getInternalState$2(this);
1653
- var string = state.string;
1654
- var index = state.index;
1655
- var point;
1656
- if (index >= string.length) return { value: undefined, done: true };
1657
- point = charAt(string, index);
1658
- state.index += point.length;
1659
- return { value: point, done: false };
1660
- });
1661
-
1662
- var SPECIES$2 = wellKnownSymbol('species');
862
+ var SPECIES$2 = wellKnownSymbol('species');
1663
863
 
1664
864
  var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1665
865
  // #replace needs built-in support for named groups.
@@ -1677,12 +877,23 @@ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1677
877
  // IE <= 11 replaces $0 with the whole match, as if it was $&
1678
878
  // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1679
879
  var REPLACE_KEEPS_$0 = (function () {
880
+ // eslint-disable-next-line regexp/prefer-escape-replacement-dollar-char -- required for testing
1680
881
  return 'a'.replace(/./, '$0') === '$0';
1681
882
  })();
1682
883
 
884
+ var REPLACE = wellKnownSymbol('replace');
885
+ // Safari <= 13.0.3(?) substitutes nth capture where n>m with an empty string
886
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = (function () {
887
+ if (/./[REPLACE]) {
888
+ return /./[REPLACE]('a', '$0') === '';
889
+ }
890
+ return false;
891
+ })();
892
+
1683
893
  // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1684
894
  // Weex JS has frozen built-in prototypes, so use try / catch wrapper
1685
895
  var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
896
+ // eslint-disable-next-line regexp/no-empty-group -- required for testing
1686
897
  var re = /(?:)/;
1687
898
  var originalExec = re.exec;
1688
899
  re.exec = function () { return originalExec.apply(this, arguments); };
@@ -1727,12 +938,16 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
1727
938
  if (
1728
939
  !DELEGATES_TO_SYMBOL ||
1729
940
  !DELEGATES_TO_EXEC ||
1730
- (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||
941
+ (KEY === 'replace' && !(
942
+ REPLACE_SUPPORTS_NAMED_GROUPS &&
943
+ REPLACE_KEEPS_$0 &&
944
+ !REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
945
+ )) ||
1731
946
  (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1732
947
  ) {
1733
948
  var nativeRegExpMethod = /./[SYMBOL];
1734
949
  var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1735
- if (regexp.exec === regexpExec) {
950
+ if (regexp.exec === RegExp.prototype.exec) {
1736
951
  if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1737
952
  // The native String method already delegates to @@method (this
1738
953
  // polyfilled function), leasing to infinite recursion.
@@ -1742,7 +957,10 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
1742
957
  return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1743
958
  }
1744
959
  return { done: false };
1745
- }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });
960
+ }, {
961
+ REPLACE_KEEPS_$0: REPLACE_KEEPS_$0,
962
+ REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE
963
+ });
1746
964
  var stringMethod = methods[0];
1747
965
  var regexMethod = methods[1];
1748
966
 
@@ -1760,16 +978,86 @@ var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
1760
978
  if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1761
979
  };
1762
980
 
1763
- var charAt$1 = stringMultibyte.charAt;
981
+ // `String.prototype.{ codePointAt, at }` methods implementation
982
+ var createMethod = function (CONVERT_TO_STRING) {
983
+ return function ($this, pos) {
984
+ var S = String(requireObjectCoercible($this));
985
+ var position = toInteger(pos);
986
+ var size = S.length;
987
+ var first, second;
988
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
989
+ first = S.charCodeAt(position);
990
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
991
+ || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
992
+ ? CONVERT_TO_STRING ? S.charAt(position) : first
993
+ : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
994
+ };
995
+ };
996
+
997
+ var stringMultibyte = {
998
+ // `String.prototype.codePointAt` method
999
+ // https://tc39.es/ecma262/#sec-string.prototype.codepointat
1000
+ codeAt: createMethod(false),
1001
+ // `String.prototype.at` method
1002
+ // https://github.com/mathiasbynens/String.prototype.at
1003
+ charAt: createMethod(true)
1004
+ };
1005
+
1006
+ var charAt = stringMultibyte.charAt;
1764
1007
 
1765
1008
  // `AdvanceStringIndex` abstract operation
1766
- // https://tc39.github.io/ecma262/#sec-advancestringindex
1009
+ // https://tc39.es/ecma262/#sec-advancestringindex
1767
1010
  var advanceStringIndex = function (S, index, unicode) {
1768
- return index + (unicode ? charAt$1(S, index).length : 1);
1011
+ return index + (unicode ? charAt(S, index).length : 1);
1012
+ };
1013
+
1014
+ // `ToObject` abstract operation
1015
+ // https://tc39.es/ecma262/#sec-toobject
1016
+ var toObject = function (argument) {
1017
+ return Object(requireObjectCoercible(argument));
1018
+ };
1019
+
1020
+ var floor = Math.floor;
1021
+ var replace = ''.replace;
1022
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d{1,2}|<[^>]*>)/g;
1023
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d{1,2})/g;
1024
+
1025
+ // https://tc39.es/ecma262/#sec-getsubstitution
1026
+ var getSubstitution = function (matched, str, position, captures, namedCaptures, replacement) {
1027
+ var tailPos = position + matched.length;
1028
+ var m = captures.length;
1029
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1030
+ if (namedCaptures !== undefined) {
1031
+ namedCaptures = toObject(namedCaptures);
1032
+ symbols = SUBSTITUTION_SYMBOLS;
1033
+ }
1034
+ return replace.call(replacement, symbols, function (match, ch) {
1035
+ var capture;
1036
+ switch (ch.charAt(0)) {
1037
+ case '$': return '$';
1038
+ case '&': return matched;
1039
+ case '`': return str.slice(0, position);
1040
+ case "'": return str.slice(tailPos);
1041
+ case '<':
1042
+ capture = namedCaptures[ch.slice(1, -1)];
1043
+ break;
1044
+ default: // \d\d?
1045
+ var n = +ch;
1046
+ if (n === 0) return match;
1047
+ if (n > m) {
1048
+ var f = floor(n / 10);
1049
+ if (f === 0) return match;
1050
+ if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1051
+ return match;
1052
+ }
1053
+ capture = captures[n - 1];
1054
+ }
1055
+ return capture === undefined ? '' : capture;
1056
+ });
1769
1057
  };
1770
1058
 
1771
1059
  // `RegExpExec` abstract operation
1772
- // https://tc39.github.io/ecma262/#sec-regexpexec
1060
+ // https://tc39.es/ecma262/#sec-regexpexec
1773
1061
  var regexpExecAbstract = function (R, S) {
1774
1062
  var exec = R.exec;
1775
1063
  if (typeof exec === 'function') {
@@ -1787,11 +1075,8 @@ var regexpExecAbstract = function (R, S) {
1787
1075
  return regexpExec.call(R, S);
1788
1076
  };
1789
1077
 
1790
- var max$1 = Math.max;
1791
- var min$2 = Math.min;
1792
- var floor$1 = Math.floor;
1793
- var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
1794
- var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
1078
+ var max = Math.max;
1079
+ var min = Math.min;
1795
1080
 
1796
1081
  var maybeToString = function (it) {
1797
1082
  return it === undefined ? it : String(it);
@@ -1799,9 +1084,13 @@ var maybeToString = function (it) {
1799
1084
 
1800
1085
  // @@replace logic
1801
1086
  fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1087
+ var REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE = reason.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE;
1088
+ var REPLACE_KEEPS_$0 = reason.REPLACE_KEEPS_$0;
1089
+ var UNSAFE_SUBSTITUTE = REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE ? '$' : '$0';
1090
+
1802
1091
  return [
1803
1092
  // `String.prototype.replace` method
1804
- // https://tc39.github.io/ecma262/#sec-string.prototype.replace
1093
+ // https://tc39.es/ecma262/#sec-string.prototype.replace
1805
1094
  function replace(searchValue, replaceValue) {
1806
1095
  var O = requireObjectCoercible(this);
1807
1096
  var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
@@ -1810,9 +1099,12 @@ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, ma
1810
1099
  : nativeReplace.call(String(O), searchValue, replaceValue);
1811
1100
  },
1812
1101
  // `RegExp.prototype[@@replace]` method
1813
- // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1102
+ // https://tc39.es/ecma262/#sec-regexp.prototype-@@replace
1814
1103
  function (regexp, replaceValue) {
1815
- if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {
1104
+ if (
1105
+ (!REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE && REPLACE_KEEPS_$0) ||
1106
+ (typeof replaceValue === 'string' && replaceValue.indexOf(UNSAFE_SUBSTITUTE) === -1)
1107
+ ) {
1816
1108
  var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1817
1109
  if (res.done) return res.value;
1818
1110
  }
@@ -1846,7 +1138,7 @@ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, ma
1846
1138
  result = results[i];
1847
1139
 
1848
1140
  var matched = String(result[0]);
1849
- var position = max$1(min$2(toInteger(result.index), S.length), 0);
1141
+ var position = max(min(toInteger(result.index), S.length), 0);
1850
1142
  var captures = [];
1851
1143
  // NOTE: This is equivalent to
1852
1144
  // captures = result.slice(1).map(maybeToString)
@@ -1870,174 +1162,102 @@ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, ma
1870
1162
  return accumulatedResult + S.slice(nextSourcePosition);
1871
1163
  }
1872
1164
  ];
1873
-
1874
- // https://tc39.github.io/ecma262/#sec-getsubstitution
1875
- function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
1876
- var tailPos = position + matched.length;
1877
- var m = captures.length;
1878
- var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1879
- if (namedCaptures !== undefined) {
1880
- namedCaptures = toObject(namedCaptures);
1881
- symbols = SUBSTITUTION_SYMBOLS;
1882
- }
1883
- return nativeReplace.call(replacement, symbols, function (match, ch) {
1884
- var capture;
1885
- switch (ch.charAt(0)) {
1886
- case '$': return '$';
1887
- case '&': return matched;
1888
- case '`': return str.slice(0, position);
1889
- case "'": return str.slice(tailPos);
1890
- case '<':
1891
- capture = namedCaptures[ch.slice(1, -1)];
1892
- break;
1893
- default: // \d\d?
1894
- var n = +ch;
1895
- if (n === 0) return match;
1896
- if (n > m) {
1897
- var f = floor$1(n / 10);
1898
- if (f === 0) return match;
1899
- if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1900
- return match;
1901
- }
1902
- capture = captures[n - 1];
1903
- }
1904
- return capture === undefined ? '' : capture;
1905
- });
1906
- }
1907
1165
  });
1908
1166
 
1909
- // iterable DOM collections
1910
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1911
- var domIterables = {
1912
- CSSRuleList: 0,
1913
- CSSStyleDeclaration: 0,
1914
- CSSValueList: 0,
1915
- ClientRectList: 0,
1916
- DOMRectList: 0,
1917
- DOMStringList: 0,
1918
- DOMTokenList: 1,
1919
- DataTransferItemList: 0,
1920
- FileList: 0,
1921
- HTMLAllCollection: 0,
1922
- HTMLCollection: 0,
1923
- HTMLFormElement: 0,
1924
- HTMLSelectElement: 0,
1925
- MediaList: 0,
1926
- MimeTypeArray: 0,
1927
- NamedNodeMap: 0,
1928
- NodeList: 1,
1929
- PaintRequestList: 0,
1930
- Plugin: 0,
1931
- PluginArray: 0,
1932
- SVGLengthList: 0,
1933
- SVGNumberList: 0,
1934
- SVGPathSegList: 0,
1935
- SVGPointList: 0,
1936
- SVGStringList: 0,
1937
- SVGTransformList: 0,
1938
- SourceBufferList: 0,
1939
- StyleSheetList: 0,
1940
- TextTrackCueList: 0,
1941
- TextTrackList: 0,
1942
- TouchList: 0
1167
+ // `IsArray` abstract operation
1168
+ // https://tc39.es/ecma262/#sec-isarray
1169
+ // eslint-disable-next-line es/no-array-isarray -- safe
1170
+ var isArray = Array.isArray || function isArray(arg) {
1171
+ return classofRaw(arg) == 'Array';
1943
1172
  };
1944
1173
 
1945
- var ITERATOR$2 = wellKnownSymbol('iterator');
1946
- var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
1947
- var ArrayValues = es_array_iterator.values;
1948
-
1949
- for (var COLLECTION_NAME in domIterables) {
1950
- var Collection = global_1[COLLECTION_NAME];
1951
- var CollectionPrototype = Collection && Collection.prototype;
1952
- if (CollectionPrototype) {
1953
- // some Chrome versions have non-configurable methods on DOMTokenList
1954
- if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
1955
- createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues);
1956
- } catch (error) {
1957
- CollectionPrototype[ITERATOR$2] = ArrayValues;
1958
- }
1959
- if (!CollectionPrototype[TO_STRING_TAG$3]) {
1960
- createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
1961
- }
1962
- if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
1963
- // some Chrome versions have non-configurable methods on DOMTokenList
1964
- if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
1965
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
1966
- } catch (error) {
1967
- CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
1968
- }
1969
- }
1970
- }
1971
- }
1972
-
1973
- function _defineProperty(obj, key, value) {
1974
- if (key in obj) {
1975
- Object.defineProperty(obj, key, {
1976
- value: value,
1977
- enumerable: true,
1978
- configurable: true,
1979
- writable: true
1980
- });
1981
- } else {
1982
- obj[key] = value;
1983
- }
1174
+ var createProperty = function (object, key, value) {
1175
+ var propertyKey = toPrimitive(key);
1176
+ if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1177
+ else object[propertyKey] = value;
1178
+ };
1984
1179
 
1985
- return obj;
1986
- }
1180
+ var SPECIES$1 = wellKnownSymbol('species');
1987
1181
 
1988
- function ownKeys$1(object, enumerableOnly) {
1989
- var keys = Object.keys(object);
1182
+ // `ArraySpeciesCreate` abstract operation
1183
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
1184
+ var arraySpeciesCreate = function (originalArray, length) {
1185
+ var C;
1186
+ if (isArray(originalArray)) {
1187
+ C = originalArray.constructor;
1188
+ // cross-realm fallback
1189
+ if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
1190
+ else if (isObject(C)) {
1191
+ C = C[SPECIES$1];
1192
+ if (C === null) C = undefined;
1193
+ }
1194
+ } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
1195
+ };
1990
1196
 
1991
- if (Object.getOwnPropertySymbols) {
1992
- var symbols = Object.getOwnPropertySymbols(object);
1993
- if (enumerableOnly) symbols = symbols.filter(function (sym) {
1994
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
1995
- });
1996
- keys.push.apply(keys, symbols);
1997
- }
1197
+ var SPECIES = wellKnownSymbol('species');
1998
1198
 
1999
- return keys;
2000
- }
1199
+ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1200
+ // We can't use this feature detection in V8 since it causes
1201
+ // deoptimization and serious performance degradation
1202
+ // https://github.com/zloirock/core-js/issues/677
1203
+ return engineV8Version >= 51 || !fails(function () {
1204
+ var array = [];
1205
+ var constructor = array.constructor = {};
1206
+ constructor[SPECIES] = function () {
1207
+ return { foo: 1 };
1208
+ };
1209
+ return array[METHOD_NAME](Boolean).foo !== 1;
1210
+ });
1211
+ };
2001
1212
 
2002
- function _objectSpread2(target) {
2003
- for (var i = 1; i < arguments.length; i++) {
2004
- var source = arguments[i] != null ? arguments[i] : {};
1213
+ var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1214
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1215
+ var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
2005
1216
 
2006
- if (i % 2) {
2007
- ownKeys$1(Object(source), true).forEach(function (key) {
2008
- _defineProperty(target, key, source[key]);
2009
- });
2010
- } else if (Object.getOwnPropertyDescriptors) {
2011
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2012
- } else {
2013
- ownKeys$1(Object(source)).forEach(function (key) {
2014
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2015
- });
2016
- }
2017
- }
1217
+ // We can't use this feature detection in V8 since it causes
1218
+ // deoptimization and serious performance degradation
1219
+ // https://github.com/zloirock/core-js/issues/679
1220
+ var IS_CONCAT_SPREADABLE_SUPPORT = engineV8Version >= 51 || !fails(function () {
1221
+ var array = [];
1222
+ array[IS_CONCAT_SPREADABLE] = false;
1223
+ return array.concat()[0] !== array;
1224
+ });
2018
1225
 
2019
- return target;
2020
- }
1226
+ var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
2021
1227
 
2022
- function _toConsumableArray(arr) {
2023
- return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _nonIterableSpread();
2024
- }
1228
+ var isConcatSpreadable = function (O) {
1229
+ if (!isObject(O)) return false;
1230
+ var spreadable = O[IS_CONCAT_SPREADABLE];
1231
+ return spreadable !== undefined ? !!spreadable : isArray(O);
1232
+ };
2025
1233
 
2026
- function _arrayWithoutHoles(arr) {
2027
- if (Array.isArray(arr)) {
2028
- for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
1234
+ var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
2029
1235
 
2030
- return arr2;
1236
+ // `Array.prototype.concat` method
1237
+ // https://tc39.es/ecma262/#sec-array.prototype.concat
1238
+ // with adding support of @@isConcatSpreadable and @@species
1239
+ _export({ target: 'Array', proto: true, forced: FORCED }, {
1240
+ // eslint-disable-next-line no-unused-vars -- required for `.length`
1241
+ concat: function concat(arg) {
1242
+ var O = toObject(this);
1243
+ var A = arraySpeciesCreate(O, 0);
1244
+ var n = 0;
1245
+ var i, k, length, len, E;
1246
+ for (i = -1, length = arguments.length; i < length; i++) {
1247
+ E = i === -1 ? O : arguments[i];
1248
+ if (isConcatSpreadable(E)) {
1249
+ len = toLength(E.length);
1250
+ if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1251
+ for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1252
+ } else {
1253
+ if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1254
+ createProperty(A, n++, E);
1255
+ }
1256
+ }
1257
+ A.length = n;
1258
+ return A;
2031
1259
  }
2032
- }
2033
-
2034
- function _iterableToArray(iter) {
2035
- if (Symbol.iterator in Object(iter) || Object.prototype.toString.call(iter) === "[object Arguments]") return Array.from(iter);
2036
- }
2037
-
2038
- function _nonIterableSpread() {
2039
- throw new TypeError("Invalid attempt to spread non-iterable instance");
2040
- }
1260
+ });
2041
1261
 
2042
1262
  //
2043
1263
  //
@@ -2090,7 +1310,7 @@ var script = {
2090
1310
  },
2091
1311
  methods: _objectSpread2({
2092
1312
  _initTable: function _initTable() {
2093
- var options = _objectSpread2({}, deepCopy(this.options), {
1313
+ var options = _objectSpread2(_objectSpread2({}, deepCopy(this.options)), {}, {
2094
1314
  columns: deepCopy(this.columns),
2095
1315
  data: deepCopy(this.data)
2096
1316
  });
@@ -2104,9 +1324,9 @@ var script = {
2104
1324
  }
2105
1325
  }, function () {
2106
1326
  var res = {};
2107
- var _iteratorNormalCompletion = true;
2108
- var _didIteratorError = false;
2109
- var _iteratorError = undefined;
1327
+
1328
+ var _iterator = _createForOfIteratorHelper($.fn.bootstrapTable.methods),
1329
+ _step;
2110
1330
 
2111
1331
  try {
2112
1332
  var _loop = function _loop() {
@@ -2123,22 +1343,13 @@ var script = {
2123
1343
  };
2124
1344
  };
2125
1345
 
2126
- for (var _iterator = $.fn.bootstrapTable.methods[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
1346
+ for (_iterator.s(); !(_step = _iterator.n()).done;) {
2127
1347
  _loop();
2128
1348
  }
2129
1349
  } catch (err) {
2130
- _didIteratorError = true;
2131
- _iteratorError = err;
1350
+ _iterator.e(err);
2132
1351
  } finally {
2133
- try {
2134
- if (!_iteratorNormalCompletion && _iterator.return != null) {
2135
- _iterator.return();
2136
- }
2137
- } finally {
2138
- if (_didIteratorError) {
2139
- throw _iteratorError;
2140
- }
2141
- }
1352
+ _iterator.f();
2142
1353
  }
2143
1354
 
2144
1355
  return res;