bootstrap-table-rails 1.15.5 → 1.16.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -4
  3. data/lib/bootstrap-table-rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +106 -64
  5. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +678 -208
  6. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +680 -210
  7. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +66 -10
  8. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +742 -489
  9. data/vendor/assets/javascripts/bootstrap-table/extensions/accent-neutralise/bootstrap-table-accent-neutralise.js +1103 -213
  10. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +226 -80
  11. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +136 -64
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/cell-input/bootstrap-table-cell-input.js +338 -177
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +402 -110
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +133 -61
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +82 -41
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +243 -75
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +347 -179
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +1 -1
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +687 -358
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.css +12 -14
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +545 -422
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +488 -92
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +2 -2
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +216 -72
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +142 -65
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +345 -137
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +136 -64
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +86 -41
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +218 -123
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +640 -254
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +347 -135
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +83 -43
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.css +0 -1
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +203 -75
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +449 -199
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +207 -114
  37. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +82 -41
  38. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +82 -41
  39. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +82 -41
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +82 -41
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +82 -41
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +82 -41
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +82 -41
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +82 -41
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +104 -62
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +82 -41
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +82 -41
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +82 -41
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +82 -41
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +82 -41
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +82 -41
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +82 -41
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +82 -41
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +82 -41
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +82 -41
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +82 -41
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +82 -41
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +83 -42
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +82 -41
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +82 -41
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +82 -41
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +82 -41
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +82 -41
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +82 -41
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +82 -41
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +82 -41
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +82 -41
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +82 -41
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +82 -41
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +82 -41
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +82 -41
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +82 -41
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +83 -42
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +82 -41
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +82 -41
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +82 -41
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +82 -41
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +82 -41
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +82 -41
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +82 -41
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +82 -41
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +82 -41
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +82 -41
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +82 -41
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +82 -41
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +82 -41
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +82 -41
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +82 -41
  89. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +80 -11
  90. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +106 -60
  91. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +79 -13
  92. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +111 -62
  93. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +74 -9
  94. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +109 -63
  95. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +80 -13
  96. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +110 -64
  97. metadata +1 -2
  98. data/vendor/assets/javascripts/bootstrap-table/extensions/natural-sorting/bootstrap-table-natural-sorting.js +0 -1265
@@ -2,7 +2,7 @@
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3
3
  typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4
4
  (global = global || self, factory(global.jQuery));
5
- }(this, function ($) { 'use strict';
5
+ }(this, (function ($) { 'use strict';
6
6
 
7
7
  $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
8
8
 
@@ -12,7 +12,6 @@
12
12
  return module = { exports: {} }, fn(module, module.exports), module.exports;
13
13
  }
14
14
 
15
- var O = 'object';
16
15
  var check = function (it) {
17
16
  return it && it.Math == Math && it;
18
17
  };
@@ -20,10 +19,10 @@
20
19
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
21
20
  var global_1 =
22
21
  // eslint-disable-next-line no-undef
23
- check(typeof globalThis == O && globalThis) ||
24
- check(typeof window == O && window) ||
25
- check(typeof self == O && self) ||
26
- check(typeof commonjsGlobal == O && commonjsGlobal) ||
22
+ check(typeof globalThis == 'object' && globalThis) ||
23
+ check(typeof window == 'object' && window) ||
24
+ check(typeof self == 'object' && self) ||
25
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
27
26
  // eslint-disable-next-line no-new-func
28
27
  Function('return this')();
29
28
 
@@ -121,12 +120,12 @@
121
120
  return hasOwnProperty.call(it, key);
122
121
  };
123
122
 
124
- var document = global_1.document;
123
+ var document$1 = global_1.document;
125
124
  // typeof document.createElement is 'object' in old IE
126
- var EXISTS = isObject(document) && isObject(document.createElement);
125
+ var EXISTS = isObject(document$1) && isObject(document$1.createElement);
127
126
 
128
127
  var documentCreateElement = function (it) {
129
- return EXISTS ? document.createElement(it) : {};
128
+ return EXISTS ? document$1.createElement(it) : {};
130
129
  };
131
130
 
132
131
  // Thank's IE8 for his funny defineProperty
@@ -179,7 +178,7 @@
179
178
  f: f$2
180
179
  };
181
180
 
182
- var hide = descriptors ? function (object, key, value) {
181
+ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
183
182
  return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
184
183
  } : function (object, key, value) {
185
184
  object[key] = value;
@@ -188,31 +187,42 @@
188
187
 
189
188
  var setGlobal = function (key, value) {
190
189
  try {
191
- hide(global_1, key, value);
190
+ createNonEnumerableProperty(global_1, key, value);
192
191
  } catch (error) {
193
192
  global_1[key] = value;
194
193
  } return value;
195
194
  };
196
195
 
197
- var shared = createCommonjsModule(function (module) {
198
196
  var SHARED = '__core-js_shared__';
199
197
  var store = global_1[SHARED] || setGlobal(SHARED, {});
200
198
 
199
+ var sharedStore = store;
200
+
201
+ var functionToString = Function.toString;
202
+
203
+ // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
204
+ if (typeof sharedStore.inspectSource != 'function') {
205
+ sharedStore.inspectSource = function (it) {
206
+ return functionToString.call(it);
207
+ };
208
+ }
209
+
210
+ var inspectSource = sharedStore.inspectSource;
211
+
212
+ var WeakMap = global_1.WeakMap;
213
+
214
+ var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
215
+
216
+ var shared = createCommonjsModule(function (module) {
201
217
  (module.exports = function (key, value) {
202
- return store[key] || (store[key] = value !== undefined ? value : {});
218
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
203
219
  })('versions', []).push({
204
- version: '3.1.3',
220
+ version: '3.6.0',
205
221
  mode: 'global',
206
222
  copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
207
223
  });
208
224
  });
209
225
 
210
- var functionToString = shared('native-function-to-string', Function.toString);
211
-
212
- var WeakMap = global_1.WeakMap;
213
-
214
- var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(functionToString.call(WeakMap));
215
-
216
226
  var id = 0;
217
227
  var postfix = Math.random();
218
228
 
@@ -245,25 +255,25 @@
245
255
  };
246
256
 
247
257
  if (nativeWeakMap) {
248
- var store = new WeakMap$1();
249
- var wmget = store.get;
250
- var wmhas = store.has;
251
- var wmset = store.set;
258
+ var store$1 = new WeakMap$1();
259
+ var wmget = store$1.get;
260
+ var wmhas = store$1.has;
261
+ var wmset = store$1.set;
252
262
  set = function (it, metadata) {
253
- wmset.call(store, it, metadata);
263
+ wmset.call(store$1, it, metadata);
254
264
  return metadata;
255
265
  };
256
266
  get = function (it) {
257
- return wmget.call(store, it) || {};
267
+ return wmget.call(store$1, it) || {};
258
268
  };
259
269
  has$1 = function (it) {
260
- return wmhas.call(store, it);
270
+ return wmhas.call(store$1, it);
261
271
  };
262
272
  } else {
263
273
  var STATE = sharedKey('state');
264
274
  hiddenKeys[STATE] = true;
265
275
  set = function (it, metadata) {
266
- hide(it, STATE, metadata);
276
+ createNonEnumerableProperty(it, STATE, metadata);
267
277
  return metadata;
268
278
  };
269
279
  get = function (it) {
@@ -285,18 +295,14 @@
285
295
  var redefine = createCommonjsModule(function (module) {
286
296
  var getInternalState = internalState.get;
287
297
  var enforceInternalState = internalState.enforce;
288
- var TEMPLATE = String(functionToString).split('toString');
289
-
290
- shared('inspectSource', function (it) {
291
- return functionToString.call(it);
292
- });
298
+ var TEMPLATE = String(String).split('String');
293
299
 
294
300
  (module.exports = function (O, key, value, options) {
295
301
  var unsafe = options ? !!options.unsafe : false;
296
302
  var simple = options ? !!options.enumerable : false;
297
303
  var noTargetGet = options ? !!options.noTargetGet : false;
298
304
  if (typeof value == 'function') {
299
- if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
305
+ if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
300
306
  enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
301
307
  }
302
308
  if (O === global_1) {
@@ -309,10 +315,10 @@
309
315
  simple = true;
310
316
  }
311
317
  if (simple) O[key] = value;
312
- else hide(O, key, value);
318
+ else createNonEnumerableProperty(O, key, value);
313
319
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
314
320
  })(Function.prototype, 'toString', function toString() {
315
- return typeof this == 'function' && getInternalState(this).source || functionToString.call(this);
321
+ return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
316
322
  });
317
323
  });
318
324
 
@@ -349,7 +355,7 @@
349
355
 
350
356
  // Helper for a popular repeating case of the spec:
351
357
  // Let integer be ? ToInteger(index).
352
- // If integer < 0, let result be max((length + integer), 0); else let result be min(length, length).
358
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
353
359
  var toAbsoluteIndex = function (index, length) {
354
360
  var integer = toInteger(index);
355
361
  return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
@@ -513,7 +519,7 @@
513
519
  }
514
520
  // add a flag to not completely full polyfills
515
521
  if (options.sham || (targetProperty && targetProperty.sham)) {
516
- hide(sourceProperty, 'sham', true);
522
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
517
523
  }
518
524
  // extend global
519
525
  redefine(target, key, sourceProperty, options);
@@ -526,6 +532,12 @@
526
532
  return !String(Symbol());
527
533
  });
528
534
 
535
+ var useSymbolAsUid = nativeSymbol
536
+ // eslint-disable-next-line no-undef
537
+ && !Symbol.sham
538
+ // eslint-disable-next-line no-undef
539
+ && typeof Symbol() == 'symbol';
540
+
529
541
  // `IsArray` abstract operation
530
542
  // https://tc39.github.io/ecma262/#sec-isarray
531
543
  var isArray = Array.isArray || function isArray(arg) {
@@ -558,49 +570,77 @@
558
570
 
559
571
  var html = getBuiltIn('document', 'documentElement');
560
572
 
573
+ var GT = '>';
574
+ var LT = '<';
575
+ var PROTOTYPE = 'prototype';
576
+ var SCRIPT = 'script';
561
577
  var IE_PROTO = sharedKey('IE_PROTO');
562
578
 
563
- var PROTOTYPE = 'prototype';
564
- var Empty = function () { /* empty */ };
579
+ var EmptyConstructor = function () { /* empty */ };
580
+
581
+ var scriptTag = function (content) {
582
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
583
+ };
584
+
585
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
586
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
587
+ activeXDocument.write(scriptTag(''));
588
+ activeXDocument.close();
589
+ var temp = activeXDocument.parentWindow.Object;
590
+ activeXDocument = null; // avoid memory leak
591
+ return temp;
592
+ };
565
593
 
566
594
  // Create object with fake `null` prototype: use iframe Object with cleared prototype
567
- var createDict = function () {
595
+ var NullProtoObjectViaIFrame = function () {
568
596
  // Thrash, waste and sodomy: IE GC bug
569
597
  var iframe = documentCreateElement('iframe');
570
- var length = enumBugKeys.length;
571
- var lt = '<';
572
- var script = 'script';
573
- var gt = '>';
574
- var js = 'java' + script + ':';
598
+ var JS = 'java' + SCRIPT + ':';
575
599
  var iframeDocument;
576
600
  iframe.style.display = 'none';
577
601
  html.appendChild(iframe);
578
- iframe.src = String(js);
602
+ // https://github.com/zloirock/core-js/issues/475
603
+ iframe.src = String(JS);
579
604
  iframeDocument = iframe.contentWindow.document;
580
605
  iframeDocument.open();
581
- iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
606
+ iframeDocument.write(scriptTag('document.F=Object'));
582
607
  iframeDocument.close();
583
- createDict = iframeDocument.F;
584
- while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
585
- return createDict();
608
+ return iframeDocument.F;
609
+ };
610
+
611
+ // Check for document.domain and active x support
612
+ // No need to use active x approach when document.domain is not set
613
+ // see https://github.com/es-shims/es5-shim/issues/150
614
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
615
+ // avoid IE GC bug
616
+ var activeXDocument;
617
+ var NullProtoObject = function () {
618
+ try {
619
+ /* global ActiveXObject */
620
+ activeXDocument = document.domain && new ActiveXObject('htmlfile');
621
+ } catch (error) { /* ignore */ }
622
+ NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
623
+ var length = enumBugKeys.length;
624
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
625
+ return NullProtoObject();
586
626
  };
587
627
 
628
+ hiddenKeys[IE_PROTO] = true;
629
+
588
630
  // `Object.create` method
589
631
  // https://tc39.github.io/ecma262/#sec-object.create
590
632
  var objectCreate = Object.create || function create(O, Properties) {
591
633
  var result;
592
634
  if (O !== null) {
593
- Empty[PROTOTYPE] = anObject(O);
594
- result = new Empty();
595
- Empty[PROTOTYPE] = null;
635
+ EmptyConstructor[PROTOTYPE] = anObject(O);
636
+ result = new EmptyConstructor();
637
+ EmptyConstructor[PROTOTYPE] = null;
596
638
  // add "__proto__" for Object.getPrototypeOf polyfill
597
639
  result[IE_PROTO] = O;
598
- } else result = createDict();
640
+ } else result = NullProtoObject();
599
641
  return Properties === undefined ? result : objectDefineProperties(result, Properties);
600
642
  };
601
643
 
602
- hiddenKeys[IE_PROTO] = true;
603
-
604
644
  var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
605
645
 
606
646
  var toString$1 = {}.toString;
@@ -627,12 +667,15 @@
627
667
  f: f$5
628
668
  };
629
669
 
670
+ var WellKnownSymbolsStore = shared('wks');
630
671
  var Symbol$1 = global_1.Symbol;
631
- var store$1 = shared('wks');
672
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
632
673
 
633
674
  var wellKnownSymbol = function (name) {
634
- return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
635
- || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
675
+ if (!has(WellKnownSymbolsStore, name)) {
676
+ if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
677
+ else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
678
+ } return WellKnownSymbolsStore[name];
636
679
  };
637
680
 
638
681
  var f$6 = wellKnownSymbol;
@@ -778,8 +821,7 @@
778
821
  var getInternalState = internalState.getterFor(SYMBOL);
779
822
  var ObjectPrototype = Object[PROTOTYPE$1];
780
823
  var $Symbol = global_1.Symbol;
781
- var JSON = global_1.JSON;
782
- var nativeJSONStringify = JSON && JSON.stringify;
824
+ var $stringify = getBuiltIn('JSON', 'stringify');
783
825
  var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
784
826
  var nativeDefineProperty$1 = objectDefineProperty.f;
785
827
  var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
@@ -788,7 +830,7 @@
788
830
  var ObjectPrototypeSymbols = shared('op-symbols');
789
831
  var StringToSymbolRegistry = shared('string-to-symbol-registry');
790
832
  var SymbolToStringRegistry = shared('symbol-to-string-registry');
791
- var WellKnownSymbolsStore = shared('wks');
833
+ var WellKnownSymbolsStore$1 = shared('wks');
792
834
  var QObject = global_1.QObject;
793
835
  // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
794
836
  var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
@@ -931,7 +973,9 @@
931
973
  redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
932
974
  }
933
975
  }
976
+ }
934
977
 
978
+ if (!useSymbolAsUid) {
935
979
  wrappedWellKnownSymbol.f = function (name) {
936
980
  return wrap(wellKnownSymbol(name), name);
937
981
  };
@@ -941,7 +985,7 @@
941
985
  Symbol: $Symbol
942
986
  });
943
987
 
944
- $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
988
+ $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {
945
989
  defineWellKnownSymbol(name);
946
990
  });
947
991
 
@@ -1000,34 +1044,41 @@
1000
1044
 
1001
1045
  // `JSON.stringify` method behavior with symbols
1002
1046
  // https://tc39.github.io/ecma262/#sec-json.stringify
1003
- JSON && _export({ target: 'JSON', stat: true, forced: !nativeSymbol || fails(function () {
1004
- var symbol = $Symbol();
1005
- // MS Edge converts symbol values to JSON as {}
1006
- return nativeJSONStringify([symbol]) != '[null]'
1007
- // WebKit converts symbol values to JSON as null
1008
- || nativeJSONStringify({ a: symbol }) != '{}'
1009
- // V8 throws on boxed symbols
1010
- || nativeJSONStringify(Object(symbol)) != '{}';
1011
- }) }, {
1012
- stringify: function stringify(it) {
1013
- var args = [it];
1014
- var index = 1;
1015
- var replacer, $replacer;
1016
- while (arguments.length > index) args.push(arguments[index++]);
1017
- $replacer = replacer = args[1];
1018
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
1019
- if (!isArray(replacer)) replacer = function (key, value) {
1020
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1021
- if (!isSymbol(value)) return value;
1022
- };
1023
- args[1] = replacer;
1024
- return nativeJSONStringify.apply(JSON, args);
1025
- }
1026
- });
1047
+ if ($stringify) {
1048
+ var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {
1049
+ var symbol = $Symbol();
1050
+ // MS Edge converts symbol values to JSON as {}
1051
+ return $stringify([symbol]) != '[null]'
1052
+ // WebKit converts symbol values to JSON as null
1053
+ || $stringify({ a: symbol }) != '{}'
1054
+ // V8 throws on boxed symbols
1055
+ || $stringify(Object(symbol)) != '{}';
1056
+ });
1057
+
1058
+ _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
1059
+ // eslint-disable-next-line no-unused-vars
1060
+ stringify: function stringify(it, replacer, space) {
1061
+ var args = [it];
1062
+ var index = 1;
1063
+ var $replacer;
1064
+ while (arguments.length > index) args.push(arguments[index++]);
1065
+ $replacer = replacer;
1066
+ if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
1067
+ if (!isArray(replacer)) replacer = function (key, value) {
1068
+ if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1069
+ if (!isSymbol(value)) return value;
1070
+ };
1071
+ args[1] = replacer;
1072
+ return $stringify.apply(null, args);
1073
+ }
1074
+ });
1075
+ }
1027
1076
 
1028
1077
  // `Symbol.prototype[@@toPrimitive]` method
1029
1078
  // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
1030
- if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) hide($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
1079
+ if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {
1080
+ createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
1081
+ }
1031
1082
  // `Symbol.prototype[@@toStringTag]` property
1032
1083
  // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
1033
1084
  setToStringTag($Symbol, SYMBOL);
@@ -1087,10 +1138,33 @@
1087
1138
  else object[propertyKey] = value;
1088
1139
  };
1089
1140
 
1141
+ var userAgent = getBuiltIn('navigator', 'userAgent') || '';
1142
+
1143
+ var process = global_1.process;
1144
+ var versions = process && process.versions;
1145
+ var v8 = versions && versions.v8;
1146
+ var match, version;
1147
+
1148
+ if (v8) {
1149
+ match = v8.split('.');
1150
+ version = match[0] + match[1];
1151
+ } else if (userAgent) {
1152
+ match = userAgent.match(/Edge\/(\d+)/);
1153
+ if (!match || match[1] >= 74) {
1154
+ match = userAgent.match(/Chrome\/(\d+)/);
1155
+ if (match) version = match[1];
1156
+ }
1157
+ }
1158
+
1159
+ var v8Version = version && +version;
1160
+
1090
1161
  var SPECIES$1 = wellKnownSymbol('species');
1091
1162
 
1092
1163
  var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1093
- return !fails(function () {
1164
+ // We can't use this feature detection in V8 since it causes
1165
+ // deoptimization and serious performance degradation
1166
+ // https://github.com/zloirock/core-js/issues/677
1167
+ return v8Version >= 51 || !fails(function () {
1094
1168
  var array = [];
1095
1169
  var constructor = array.constructor = {};
1096
1170
  constructor[SPECIES$1] = function () {
@@ -1104,7 +1178,10 @@
1104
1178
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1105
1179
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1106
1180
 
1107
- var IS_CONCAT_SPREADABLE_SUPPORT = !fails(function () {
1181
+ // We can't use this feature detection in V8 since it causes
1182
+ // deoptimization and serious performance degradation
1183
+ // https://github.com/zloirock/core-js/issues/679
1184
+ var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {
1108
1185
  var array = [];
1109
1186
  array[IS_CONCAT_SPREADABLE] = false;
1110
1187
  return array.concat()[0] !== array;
@@ -1148,10 +1225,17 @@
1148
1225
  var $filter = arrayIteration.filter;
1149
1226
 
1150
1227
 
1228
+
1229
+ var HAS_SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('filter');
1230
+ // Edge 14- issue
1231
+ var USES_TO_LENGTH = HAS_SPECIES_SUPPORT && !fails(function () {
1232
+ [].filter.call({ length: -1, 0: 1 }, function (it) { throw it; });
1233
+ });
1234
+
1151
1235
  // `Array.prototype.filter` method
1152
1236
  // https://tc39.github.io/ecma262/#sec-array.prototype.filter
1153
1237
  // with adding support of @@species
1154
- _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('filter') }, {
1238
+ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT || !USES_TO_LENGTH }, {
1155
1239
  filter: function filter(callbackfn /* , thisArg */) {
1156
1240
  return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1157
1241
  }
@@ -1163,7 +1247,10 @@
1163
1247
  // Array.prototype[@@unscopables]
1164
1248
  // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1165
1249
  if (ArrayPrototype[UNSCOPABLES] == undefined) {
1166
- hide(ArrayPrototype, UNSCOPABLES, objectCreate(null));
1250
+ objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
1251
+ configurable: true,
1252
+ value: objectCreate(null)
1253
+ });
1167
1254
  }
1168
1255
 
1169
1256
  // add a key to Array.prototype[@@unscopables]
@@ -1273,7 +1360,9 @@
1273
1360
  if (IteratorPrototype == undefined) IteratorPrototype = {};
1274
1361
 
1275
1362
  // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
1276
- if ( !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);
1363
+ if ( !has(IteratorPrototype, ITERATOR)) {
1364
+ createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
1365
+ }
1277
1366
 
1278
1367
  var iteratorsCore = {
1279
1368
  IteratorPrototype: IteratorPrototype,
@@ -1357,7 +1446,7 @@
1357
1446
  if (objectSetPrototypeOf) {
1358
1447
  objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
1359
1448
  } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
1360
- hide(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
1449
+ createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
1361
1450
  }
1362
1451
  }
1363
1452
  // Set @@toStringTag to native iterators
@@ -1373,7 +1462,7 @@
1373
1462
 
1374
1463
  // define iterator
1375
1464
  if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
1376
- hide(IterablePrototype, ITERATOR$1, defaultIterator);
1465
+ createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);
1377
1466
  }
1378
1467
 
1379
1468
  // export additional methods
@@ -1489,6 +1578,13 @@
1489
1578
  });
1490
1579
 
1491
1580
  var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1581
+ var test = {};
1582
+
1583
+ test[TO_STRING_TAG$1] = 'z';
1584
+
1585
+ var toStringTagSupport = String(test) === '[object z]';
1586
+
1587
+ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
1492
1588
  // ES3 wrong here
1493
1589
  var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1494
1590
 
@@ -1500,36 +1596,156 @@
1500
1596
  };
1501
1597
 
1502
1598
  // getting tag from ES6+ `Object.prototype.toString`
1503
- var classof = function (it) {
1599
+ var classof = toStringTagSupport ? classofRaw : function (it) {
1504
1600
  var O, tag, result;
1505
1601
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1506
1602
  // @@toStringTag case
1507
- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$1)) == 'string' ? tag
1603
+ : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag
1508
1604
  // builtinTag case
1509
1605
  : CORRECT_ARGUMENTS ? classofRaw(O)
1510
1606
  // ES3 arguments fallback
1511
1607
  : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
1512
1608
  };
1513
1609
 
1514
- var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
1515
- var test = {};
1516
-
1517
- test[TO_STRING_TAG$2] = 'z';
1518
-
1519
1610
  // `Object.prototype.toString` method implementation
1520
1611
  // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1521
- var objectToString = String(test) !== '[object z]' ? function toString() {
1612
+ var objectToString = toStringTagSupport ? {}.toString : function toString() {
1522
1613
  return '[object ' + classof(this) + ']';
1523
- } : test.toString;
1524
-
1525
- var ObjectPrototype$2 = Object.prototype;
1614
+ };
1526
1615
 
1527
1616
  // `Object.prototype.toString` method
1528
1617
  // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1529
- if (objectToString !== ObjectPrototype$2.toString) {
1530
- redefine(ObjectPrototype$2, 'toString', objectToString, { unsafe: true });
1618
+ if (!toStringTagSupport) {
1619
+ redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
1531
1620
  }
1532
1621
 
1622
+ // `RegExp.prototype.flags` getter implementation
1623
+ // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
1624
+ var regexpFlags = function () {
1625
+ var that = anObject(this);
1626
+ var result = '';
1627
+ if (that.global) result += 'g';
1628
+ if (that.ignoreCase) result += 'i';
1629
+ if (that.multiline) result += 'm';
1630
+ if (that.dotAll) result += 's';
1631
+ if (that.unicode) result += 'u';
1632
+ if (that.sticky) result += 'y';
1633
+ return result;
1634
+ };
1635
+
1636
+ // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
1637
+ // so we use an intermediate function.
1638
+ function RE(s, f) {
1639
+ return RegExp(s, f);
1640
+ }
1641
+
1642
+ var UNSUPPORTED_Y = fails(function () {
1643
+ // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1644
+ var re = RE('a', 'y');
1645
+ re.lastIndex = 2;
1646
+ return re.exec('abcd') != null;
1647
+ });
1648
+
1649
+ var BROKEN_CARET = fails(function () {
1650
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1651
+ var re = RE('^r', 'gy');
1652
+ re.lastIndex = 2;
1653
+ return re.exec('str') != null;
1654
+ });
1655
+
1656
+ var regexpStickyHelpers = {
1657
+ UNSUPPORTED_Y: UNSUPPORTED_Y,
1658
+ BROKEN_CARET: BROKEN_CARET
1659
+ };
1660
+
1661
+ var nativeExec = RegExp.prototype.exec;
1662
+ // This always refers to the native implementation, because the
1663
+ // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
1664
+ // which loads this file before patching the method.
1665
+ var nativeReplace = String.prototype.replace;
1666
+
1667
+ var patchedExec = nativeExec;
1668
+
1669
+ var UPDATES_LAST_INDEX_WRONG = (function () {
1670
+ var re1 = /a/;
1671
+ var re2 = /b*/g;
1672
+ nativeExec.call(re1, 'a');
1673
+ nativeExec.call(re2, 'a');
1674
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1675
+ })();
1676
+
1677
+ var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
1678
+
1679
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
1680
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1681
+
1682
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
1683
+
1684
+ if (PATCH) {
1685
+ patchedExec = function exec(str) {
1686
+ var re = this;
1687
+ var lastIndex, reCopy, match, i;
1688
+ var sticky = UNSUPPORTED_Y$1 && re.sticky;
1689
+ var flags = regexpFlags.call(re);
1690
+ var source = re.source;
1691
+ var charsAdded = 0;
1692
+ var strCopy = str;
1693
+
1694
+ if (sticky) {
1695
+ flags = flags.replace('y', '');
1696
+ if (flags.indexOf('g') === -1) {
1697
+ flags += 'g';
1698
+ }
1699
+
1700
+ strCopy = String(str).slice(re.lastIndex);
1701
+ // Support anchored sticky behavior.
1702
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
1703
+ source = '(?: ' + source + ')';
1704
+ strCopy = ' ' + strCopy;
1705
+ charsAdded++;
1706
+ }
1707
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
1708
+ // simulate the 'y' flag.
1709
+ reCopy = new RegExp('^(?:' + source + ')', flags);
1710
+ }
1711
+
1712
+ if (NPCG_INCLUDED) {
1713
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1714
+ }
1715
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1716
+
1717
+ match = nativeExec.call(sticky ? reCopy : re, strCopy);
1718
+
1719
+ if (sticky) {
1720
+ if (match) {
1721
+ match.input = match.input.slice(charsAdded);
1722
+ match[0] = match[0].slice(charsAdded);
1723
+ match.index = re.lastIndex;
1724
+ re.lastIndex += match[0].length;
1725
+ } else re.lastIndex = 0;
1726
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
1727
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1728
+ }
1729
+ if (NPCG_INCLUDED && match && match.length > 1) {
1730
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
1731
+ // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1732
+ nativeReplace.call(match[0], reCopy, function () {
1733
+ for (i = 1; i < arguments.length - 2; i++) {
1734
+ if (arguments[i] === undefined) match[i] = undefined;
1735
+ }
1736
+ });
1737
+ }
1738
+
1739
+ return match;
1740
+ };
1741
+ }
1742
+
1743
+ var regexpExec = patchedExec;
1744
+
1745
+ _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
1746
+ exec: regexpExec
1747
+ });
1748
+
1533
1749
  var MATCH = wellKnownSymbol('match');
1534
1750
 
1535
1751
  // `IsRegExp` abstract operation
@@ -1622,72 +1838,6 @@
1622
1838
  return { value: point, done: false };
1623
1839
  });
1624
1840
 
1625
- // `RegExp.prototype.flags` getter implementation
1626
- // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
1627
- var regexpFlags = function () {
1628
- var that = anObject(this);
1629
- var result = '';
1630
- if (that.global) result += 'g';
1631
- if (that.ignoreCase) result += 'i';
1632
- if (that.multiline) result += 'm';
1633
- if (that.dotAll) result += 's';
1634
- if (that.unicode) result += 'u';
1635
- if (that.sticky) result += 'y';
1636
- return result;
1637
- };
1638
-
1639
- var nativeExec = RegExp.prototype.exec;
1640
- // This always refers to the native implementation, because the
1641
- // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
1642
- // which loads this file before patching the method.
1643
- var nativeReplace = String.prototype.replace;
1644
-
1645
- var patchedExec = nativeExec;
1646
-
1647
- var UPDATES_LAST_INDEX_WRONG = (function () {
1648
- var re1 = /a/;
1649
- var re2 = /b*/g;
1650
- nativeExec.call(re1, 'a');
1651
- nativeExec.call(re2, 'a');
1652
- return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1653
- })();
1654
-
1655
- // nonparticipating capturing group, copied from es5-shim's String#split patch.
1656
- var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1657
-
1658
- var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED;
1659
-
1660
- if (PATCH) {
1661
- patchedExec = function exec(str) {
1662
- var re = this;
1663
- var lastIndex, reCopy, match, i;
1664
-
1665
- if (NPCG_INCLUDED) {
1666
- reCopy = new RegExp('^' + re.source + '$(?!\\s)', regexpFlags.call(re));
1667
- }
1668
- if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1669
-
1670
- match = nativeExec.call(re, str);
1671
-
1672
- if (UPDATES_LAST_INDEX_WRONG && match) {
1673
- re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1674
- }
1675
- if (NPCG_INCLUDED && match && match.length > 1) {
1676
- // Fix browsers whose `exec` methods don't consistently return `undefined`
1677
- // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1678
- nativeReplace.call(match[0], reCopy, function () {
1679
- for (i = 1; i < arguments.length - 2; i++) {
1680
- if (arguments[i] === undefined) match[i] = undefined;
1681
- }
1682
- });
1683
- }
1684
-
1685
- return match;
1686
- };
1687
- }
1688
-
1689
- var regexpExec = patchedExec;
1690
-
1691
1841
  var SPECIES$2 = wellKnownSymbol('species');
1692
1842
 
1693
1843
  var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
@@ -1703,6 +1853,12 @@
1703
1853
  return ''.replace(re, '$<a>') !== '7';
1704
1854
  });
1705
1855
 
1856
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
1857
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1858
+ var REPLACE_KEEPS_$0 = (function () {
1859
+ return 'a'.replace(/./, '$0') === '$0';
1860
+ })();
1861
+
1706
1862
  // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1707
1863
  // Weex JS has frozen built-in prototypes, so use try / catch wrapper
1708
1864
  var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
@@ -1727,15 +1883,22 @@
1727
1883
  // Symbol-named RegExp methods call .exec
1728
1884
  var execCalled = false;
1729
1885
  var re = /a/;
1730
- re.exec = function () { execCalled = true; return null; };
1731
1886
 
1732
1887
  if (KEY === 'split') {
1888
+ // We can't use real regex here since it causes deoptimization
1889
+ // and serious performance degradation in V8
1890
+ // https://github.com/zloirock/core-js/issues/306
1891
+ re = {};
1733
1892
  // RegExp[@@split] doesn't call the regex's exec method, but first creates
1734
1893
  // a new one. We need to return the patched regex when creating the new one.
1735
1894
  re.constructor = {};
1736
1895
  re.constructor[SPECIES$2] = function () { return re; };
1896
+ re.flags = '';
1897
+ re[SYMBOL] = /./[SYMBOL];
1737
1898
  }
1738
1899
 
1900
+ re.exec = function () { execCalled = true; return null; };
1901
+
1739
1902
  re[SYMBOL]('');
1740
1903
  return !execCalled;
1741
1904
  });
@@ -1743,7 +1906,7 @@
1743
1906
  if (
1744
1907
  !DELEGATES_TO_SYMBOL ||
1745
1908
  !DELEGATES_TO_EXEC ||
1746
- (KEY === 'replace' && !REPLACE_SUPPORTS_NAMED_GROUPS) ||
1909
+ (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||
1747
1910
  (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1748
1911
  ) {
1749
1912
  var nativeRegExpMethod = /./[SYMBOL];
@@ -1758,7 +1921,7 @@
1758
1921
  return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1759
1922
  }
1760
1923
  return { done: false };
1761
- });
1924
+ }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });
1762
1925
  var stringMethod = methods[0];
1763
1926
  var regexMethod = methods[1];
1764
1927
 
@@ -1771,8 +1934,9 @@
1771
1934
  // 21.2.5.9 RegExp.prototype[@@search](string)
1772
1935
  : function (string) { return regexMethod.call(string, this); }
1773
1936
  );
1774
- if (sham) hide(RegExp.prototype[SYMBOL], 'sham', true);
1775
1937
  }
1938
+
1939
+ if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1776
1940
  };
1777
1941
 
1778
1942
  // `SameValue` abstract operation
@@ -1926,15 +2090,17 @@
1926
2090
  if (CollectionPrototype) {
1927
2091
  // some Chrome versions have non-configurable methods on DOMTokenList
1928
2092
  if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
1929
- hide(CollectionPrototype, ITERATOR$2, ArrayValues);
2093
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues);
1930
2094
  } catch (error) {
1931
2095
  CollectionPrototype[ITERATOR$2] = ArrayValues;
1932
2096
  }
1933
- if (!CollectionPrototype[TO_STRING_TAG$3]) hide(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
2097
+ if (!CollectionPrototype[TO_STRING_TAG$3]) {
2098
+ createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
2099
+ }
1934
2100
  if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
1935
2101
  // some Chrome versions have non-configurable methods on DOMTokenList
1936
2102
  if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
1937
- hide(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
2103
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
1938
2104
  } catch (error) {
1939
2105
  CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
1940
2106
  }
@@ -2050,6 +2216,10 @@
2050
2216
  }
2051
2217
 
2052
2218
  function _iterableToArrayLimit(arr, i) {
2219
+ if (!(Symbol.iterator in Object(arr) || Object.prototype.toString.call(arr) === "[object Arguments]")) {
2220
+ return;
2221
+ }
2222
+
2053
2223
  var _arr = [];
2054
2224
  var _n = true;
2055
2225
  var _d = false;
@@ -2094,7 +2264,7 @@
2094
2264
  advancedSearchIcon: 'glyphicon-chevron-down'
2095
2265
  },
2096
2266
  html: {
2097
- modalHeader: "\n <div class=\"modal-header\">\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n <h4 class=\"modal-title\">%s</h4>\n </div>\n "
2267
+ modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">%s</h4>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0px; padding-left: 0px;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
2098
2268
  }
2099
2269
  },
2100
2270
  bootstrap4: {
@@ -2102,7 +2272,39 @@
2102
2272
  advancedSearchIcon: 'fa-chevron-down'
2103
2273
  },
2104
2274
  html: {
2105
- modalHeader: "\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">%s</h4>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n "
2275
+ modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n <div class=\"modal-header\">\n <h4 class=\"modal-title\">%s</h4>\n <button type=\"button\" class=\"close\" data-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n </div>\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_%s\"\n style=\"padding-right: 0px; padding-left: 0px;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_%s\" class=\"btn btn-%s\">%s</button>\n </div>\n </div>\n </div>\n </div>\n "
2276
+ }
2277
+ },
2278
+ bulma: {
2279
+ icons: {
2280
+ advancedSearchIcon: 'fa-chevron-down'
2281
+ },
2282
+ html: {
2283
+ modal: "\n <div class=\"modal\" id=\"avdSearchModal_%s\">\n <div class=\"modal-background\"></div>\n <div class=\"modal-card\">\n <header class=\"modal-card-head\">\n <p class=\"modal-card-title\">%s</p>\n <button class=\"delete\" aria-label=\"close\"></button>\n </header>\n <section class=\"modal-card-body\" id=\"avdSearchModalContent_%s\"></section>\n <footer class=\"modal-card-foot\">\n <button class=\"button\" id=\"btnCloseAvd_%s\" data-close=\"btn btn-%s\">%s</button>\n </footer>\n </div>\n </div>\n "
2284
+ }
2285
+ },
2286
+ foundation: {
2287
+ icons: {
2288
+ advancedSearchIcon: 'fa-chevron-down'
2289
+ },
2290
+ html: {
2291
+ modal: "\n <div class=\"reveal\" id=\"avdSearchModal_%s\" data-reveal>\n <h1>%s</h1>\n <div id=\"avdSearchModalContent_%s\">\n \n </div>\n <button class=\"close-button\" data-close aria-label=\"Close modal\" type=\"button\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n \n <button id=\"btnCloseAvd_%s\" class=\"%s\" type=\"button\">%s</button>\n </div>\n "
2292
+ }
2293
+ },
2294
+ materialize: {
2295
+ icons: {
2296
+ advancedSearchIcon: 'expand_more'
2297
+ },
2298
+ html: {
2299
+ modal: "\n <div id=\"avdSearchModal_%s\" class=\"modal\">\n <div class=\"modal-content\">\n <h4>%s</h4>\n <div id=\"avdSearchModalContent_%s\">\n \n </div>\n </div>\n <div class=\"modal-footer\">\n <a href=\"javascript:void(0)\"\" id=\"btnCloseAvd_%s\" class=\"modal-close waves-effect waves-green btn-flat %s\">%s</a>\n </div>\n </div>\n "
2300
+ }
2301
+ },
2302
+ semantic: {
2303
+ icons: {
2304
+ advancedSearchIcon: 'fa-chevron-down'
2305
+ },
2306
+ html: {
2307
+ modal: "\n <div class=\"ui modal\" id=\"avdSearchModal_%s\">\n <i class=\"close icon\"></i>\n <div class=\"header\">\n %s\n </div>\n <div class=\"image content ui form\" id=\"avdSearchModalContent_%s\"></div>\n <div class=\"actions\">\n <div id=\"btnCloseAvd_%s\" class=\"ui black deny button %s\">%s</div>\n </div>\n </div>\n "
2106
2308
  }
2107
2309
  }
2108
2310
  }[$.fn.bootstrapTable.theme];
@@ -2156,7 +2358,7 @@
2156
2358
  return;
2157
2359
  }
2158
2360
 
2159
- this.$toolbar.find('>.columns').append("\n <button class=\"btn btn-default".concat(Utils.sprintf(' btn-%s', o.buttonsClass)).concat(Utils.sprintf(' btn-%s', o.iconSize), "\"\n type=\"button\"\n name=\"advancedSearch\"\n aria-label=\"advanced search\"\n title=\"").concat(o.formatAdvancedSearch(), "\">\n ").concat(this.options.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.advancedSearchIcon) : '', "\n ").concat(this.options.showButtonText ? this.options.formatAdvancedSearch() : '', "\n </button>\n "));
2361
+ this.$toolbar.find('>.columns').append("\n <button class=\"".concat(this.constants.buttonsClass, " \"\n type=\"button\"\n name=\"advancedSearch\"\n aria-label=\"advanced search\"\n title=\"").concat(o.formatAdvancedSearch(), "\">\n ").concat(this.options.showButtonIcons ? Utils.sprintf(this.constants.html.icon, o.iconsPrefix, o.icons.advancedSearchIcon) : '', "\n ").concat(this.options.showButtonText ? this.options.formatAdvancedSearch() : '', "\n </button>\n "));
2160
2362
  this.$toolbar.find('button[name="advancedSearch"]').off('click').on('click', function () {
2161
2363
  return _this.showAvdSearch();
2162
2364
  });
@@ -2167,9 +2369,10 @@
2167
2369
  var _this2 = this;
2168
2370
 
2169
2371
  var o = this.options;
2372
+ var modalSelector = '#avdSearchModal_' + o.idTable;
2170
2373
 
2171
- if (!$("#avdSearchModal_".concat(o.idTable)).hasClass('modal')) {
2172
- $('body').append("\n <div id=\"avdSearchModal_".concat(o.idTable, "\" class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" aria-labelledby=\"mySmallModalLabel\" aria-hidden=\"true\">\n <div class=\"modal-dialog modal-xs\">\n <div class=\"modal-content\">\n ").concat(Utils.sprintf(bootstrap.html.modalHeader, o.formatAdvancedSearch()), "\n <div class=\"modal-body modal-body-custom\">\n <div class=\"container-fluid\" id=\"avdSearchModalContent_").concat(o.idTable, "\"\n style=\"padding-right: 0px; padding-left: 0px;\" >\n </div>\n </div>\n <div class=\"modal-footer\">\n <button type=\"button\" id=\"btnCloseAvd_").concat(o.idTable, "\" class=\"btn btn-").concat(o.buttonsClass, "\">\n ").concat(o.formatAdvancedCloseButton(), "\n </button>\n </div>\n </div>\n </div>\n </div>\n "));
2374
+ if ($(modalSelector).length <= 0) {
2375
+ $('body').append(Utils.sprintf(bootstrap.html.modal, o.idTable, o.formatAdvancedSearch(), o.idTable, o.idTable, o.buttonsClass, o.formatAdvancedCloseButton()));
2173
2376
  var timeoutId = 0;
2174
2377
  $("#avdSearchModalContent_".concat(o.idTable)).append(this.createFormAvd().join(''));
2175
2378
  $("#".concat(o.idForm)).off('keyup blur', 'input').on('keyup blur', 'input', function (e) {
@@ -2183,19 +2386,66 @@
2183
2386
  }
2184
2387
  });
2185
2388
  $("#btnCloseAvd_".concat(o.idTable)).click(function () {
2186
- $("#avdSearchModal_".concat(o.idTable)).modal('hide');
2187
-
2188
- if (o.sidePagination === 'server') {
2189
- _this2.options.pageNumber = 1;
2389
+ return _this2.hideModal();
2390
+ });
2190
2391
 
2191
- _this2.updatePagination();
2392
+ if ($.fn.bootstrapTable.theme === 'bulma') {
2393
+ $(modalSelector).find('.delete').off('click').on('click', function () {
2394
+ return _this2.hideModal();
2395
+ });
2396
+ }
2192
2397
 
2193
- _this2.trigger('column-advanced-search', _this2.filterColumnsPartial);
2194
- }
2195
- });
2196
- $("#avdSearchModal_".concat(o.idTable)).modal();
2398
+ this.showModal();
2197
2399
  } else {
2198
- $("#avdSearchModal_".concat(o.idTable)).modal();
2400
+ this.showModal();
2401
+ }
2402
+ }
2403
+ }, {
2404
+ key: "showModal",
2405
+ value: function showModal() {
2406
+ var modalSelector = '#avdSearchModal_' + this.options.idTable;
2407
+
2408
+ if ($.inArray($.fn.bootstrapTable.theme, ['bootstrap3', 'bootstrap4']) !== -1) {
2409
+ $(modalSelector).modal();
2410
+ } else if ($.fn.bootstrapTable.theme === 'bulma') {
2411
+ $(modalSelector).toggleClass('is-active');
2412
+ } else if ($.fn.bootstrapTable.theme === 'foundation') {
2413
+ if (!this.toolbarModal) {
2414
+ // eslint-disable-next-line no-undef
2415
+ this.toolbarModal = new Foundation.Reveal($(modalSelector));
2416
+ }
2417
+
2418
+ this.toolbarModal.open();
2419
+ } else if ($.fn.bootstrapTable.theme === 'materialize') {
2420
+ $(modalSelector).modal();
2421
+ $(modalSelector).modal('open');
2422
+ } else if ($.fn.bootstrapTable.theme === 'semantic') {
2423
+ $(modalSelector).modal('show');
2424
+ }
2425
+ }
2426
+ }, {
2427
+ key: "hideModal",
2428
+ value: function hideModal() {
2429
+ var $closeModalButton = $("#avdSearchModal_".concat(this.options.idTable));
2430
+ var modalSelector = '#avdSearchModal_' + this.options.idTable;
2431
+
2432
+ if ($.inArray($.fn.bootstrapTable.theme, ['bootstrap3', 'bootstrap4']) !== -1) {
2433
+ $closeModalButton.modal('hide');
2434
+ } else if ($.fn.bootstrapTable.theme === 'bulma') {
2435
+ $('html').toggleClass('is-clipped');
2436
+ $(modalSelector).toggleClass('is-active');
2437
+ } else if ($.fn.bootstrapTable.theme === 'foundation') {
2438
+ this.toolbarModal.close();
2439
+ } else if ($.fn.bootstrapTable.theme === 'materialize') {
2440
+ $(modalSelector).modal('open');
2441
+ } else if ($.fn.bootstrapTable.theme === 'semantic') {
2442
+ $(modalSelector).modal('close');
2443
+ }
2444
+
2445
+ if (this.options.sidePagination === 'server') {
2446
+ this.options.pageNumber = 1;
2447
+ this.updatePagination();
2448
+ this.trigger('column-advanced-search', this.filterColumnsPartial);
2199
2449
  }
2200
2450
  }
2201
2451
  }, {
@@ -2212,7 +2462,7 @@
2212
2462
  var column = _step.value;
2213
2463
 
2214
2464
  if (!column.checkbox && column.visible && column.searchable) {
2215
- html.push("\n <div class=\"form-group row\">\n <label class=\"col-sm-4 control-label\">".concat(column.title, "</label>\n <div class=\"col-sm-6\">\n <input type=\"text\" class=\"form-control input-md\" name=\"").concat(column.field, "\" placeholder=\"").concat(column.title, "\" id=\"").concat(column.field, "\">\n </div>\n </div>\n "));
2465
+ html.push("\n <div class=\"form-group row\">\n <label class=\"col-sm-4 control-label\">".concat(column.title, "</label>\n <div class=\"col-sm-6\">\n <input type=\"text\" class=\"form-control ").concat(this.constants.classes.input, "\" name=\"").concat(column.field, "\" placeholder=\"").concat(column.title, "\" id=\"").concat(column.field, "\">\n </div>\n </div>\n "));
2216
2466
  }
2217
2467
  }
2218
2468
  } catch (err) {
@@ -2294,4 +2544,4 @@
2294
2544
  return _class;
2295
2545
  }($.BootstrapTable);
2296
2546
 
2297
- }));
2547
+ })));