bootstrap-table-rails 1.15.5 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (109) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +143 -36
  3. data/lib/bootstrap-table-rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +1012 -83
  5. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +684 -208
  6. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +686 -210
  7. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +75 -12
  8. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +1617 -763
  9. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +280 -93
  10. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +200 -78
  11. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1349 -258
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +216 -77
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.js +1198 -0
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +83 -42
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +1219 -208
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +458 -204
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +1 -1
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +1420 -901
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/utils.js +2361 -0
  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 +589 -423
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.css +3 -2
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +552 -487
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +3 -3
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +219 -74
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +143 -66
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +326 -462
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +137 -65
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +87 -42
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +452 -155
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +643 -255
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +348 -136
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +84 -44
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.css +0 -1
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +218 -76
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +558 -217
  37. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +221 -115
  38. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +98 -42
  39. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +98 -42
  40. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-bg-BG.js +777 -0
  41. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +98 -42
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +98 -42
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +98 -42
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +98 -42
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +98 -42
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +98 -42
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +120 -63
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +98 -42
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +98 -42
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +98 -42
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +98 -42
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +98 -42
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +98 -42
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +98 -42
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +98 -42
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +98 -42
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +98 -42
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +98 -42
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +98 -42
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +99 -43
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +98 -42
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +98 -42
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +98 -42
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +98 -42
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +98 -42
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +113 -57
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +98 -42
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +98 -42
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +98 -42
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +98 -42
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +98 -42
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +99 -43
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +98 -42
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +98 -42
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +102 -45
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +98 -42
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +98 -42
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +98 -42
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +98 -42
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Cyrl-RS.js +98 -42
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sr-Latn-RS.js +98 -42
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +98 -42
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +98 -42
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +98 -42
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +98 -42
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +98 -42
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +98 -42
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +98 -42
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +98 -42
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +98 -42
  91. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.css +776 -0
  92. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/bootstrap-table.js +1049 -0
  93. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/fonts/bootstrap-table.eot +0 -0
  94. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/fonts/bootstrap-table.svg +28 -0
  95. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/fonts/bootstrap-table.ttf +0 -0
  96. data/vendor/assets/javascripts/bootstrap-table/themes/bootstrap-table/fonts/bootstrap-table.woff +0 -0
  97. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +89 -13
  98. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +161 -63
  99. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +88 -15
  100. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +166 -65
  101. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +83 -11
  102. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +164 -66
  103. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +89 -15
  104. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +164 -66
  105. metadata +10 -5
  106. data/vendor/assets/javascripts/bootstrap-table/extensions/accent-neutralise/bootstrap-table-accent-neutralise.js +0 -1757
  107. data/vendor/assets/javascripts/bootstrap-table/extensions/cell-input/bootstrap-table-cell-input.css +0 -12
  108. data/vendor/assets/javascripts/bootstrap-table/extensions/cell-input/bootstrap-table-cell-input.js +0 -2087
  109. 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' ? module.exports = factory() :
3
3
  typeof define === 'function' && define.amd ? define(factory) :
4
4
  (global = global || self, global.BootstrapTable = factory());
5
- }(this, function () { 'use strict';
5
+ }(this, (function () { 'use strict';
6
6
 
7
7
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
8
8
 
@@ -10,7 +10,6 @@
10
10
  return module = { exports: {} }, fn(module, module.exports), module.exports;
11
11
  }
12
12
 
13
- var O = 'object';
14
13
  var check = function (it) {
15
14
  return it && it.Math == Math && it;
16
15
  };
@@ -18,10 +17,10 @@
18
17
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
19
18
  var global_1 =
20
19
  // eslint-disable-next-line no-undef
21
- check(typeof globalThis == O && globalThis) ||
22
- check(typeof window == O && window) ||
23
- check(typeof self == O && self) ||
24
- check(typeof commonjsGlobal == O && commonjsGlobal) ||
20
+ check(typeof globalThis == 'object' && globalThis) ||
21
+ check(typeof window == 'object' && window) ||
22
+ check(typeof self == 'object' && self) ||
23
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
25
24
  // eslint-disable-next-line no-new-func
26
25
  Function('return this')();
27
26
 
@@ -119,12 +118,12 @@
119
118
  return hasOwnProperty.call(it, key);
120
119
  };
121
120
 
122
- var document = global_1.document;
121
+ var document$1 = global_1.document;
123
122
  // typeof document.createElement is 'object' in old IE
124
- var EXISTS = isObject(document) && isObject(document.createElement);
123
+ var EXISTS = isObject(document$1) && isObject(document$1.createElement);
125
124
 
126
125
  var documentCreateElement = function (it) {
127
- return EXISTS ? document.createElement(it) : {};
126
+ return EXISTS ? document$1.createElement(it) : {};
128
127
  };
129
128
 
130
129
  // Thank's IE8 for his funny defineProperty
@@ -177,7 +176,7 @@
177
176
  f: f$2
178
177
  };
179
178
 
180
- var hide = descriptors ? function (object, key, value) {
179
+ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
181
180
  return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
182
181
  } : function (object, key, value) {
183
182
  object[key] = value;
@@ -186,31 +185,42 @@
186
185
 
187
186
  var setGlobal = function (key, value) {
188
187
  try {
189
- hide(global_1, key, value);
188
+ createNonEnumerableProperty(global_1, key, value);
190
189
  } catch (error) {
191
190
  global_1[key] = value;
192
191
  } return value;
193
192
  };
194
193
 
195
- var shared = createCommonjsModule(function (module) {
196
194
  var SHARED = '__core-js_shared__';
197
195
  var store = global_1[SHARED] || setGlobal(SHARED, {});
198
196
 
197
+ var sharedStore = store;
198
+
199
+ var functionToString = Function.toString;
200
+
201
+ // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
202
+ if (typeof sharedStore.inspectSource != 'function') {
203
+ sharedStore.inspectSource = function (it) {
204
+ return functionToString.call(it);
205
+ };
206
+ }
207
+
208
+ var inspectSource = sharedStore.inspectSource;
209
+
210
+ var WeakMap = global_1.WeakMap;
211
+
212
+ var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
213
+
214
+ var shared = createCommonjsModule(function (module) {
199
215
  (module.exports = function (key, value) {
200
- return store[key] || (store[key] = value !== undefined ? value : {});
216
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
201
217
  })('versions', []).push({
202
- version: '3.1.3',
218
+ version: '3.6.0',
203
219
  mode: 'global',
204
220
  copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
205
221
  });
206
222
  });
207
223
 
208
- var functionToString = shared('native-function-to-string', Function.toString);
209
-
210
- var WeakMap = global_1.WeakMap;
211
-
212
- var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(functionToString.call(WeakMap));
213
-
214
224
  var id = 0;
215
225
  var postfix = Math.random();
216
226
 
@@ -243,25 +253,25 @@
243
253
  };
244
254
 
245
255
  if (nativeWeakMap) {
246
- var store = new WeakMap$1();
247
- var wmget = store.get;
248
- var wmhas = store.has;
249
- var wmset = store.set;
256
+ var store$1 = new WeakMap$1();
257
+ var wmget = store$1.get;
258
+ var wmhas = store$1.has;
259
+ var wmset = store$1.set;
250
260
  set = function (it, metadata) {
251
- wmset.call(store, it, metadata);
261
+ wmset.call(store$1, it, metadata);
252
262
  return metadata;
253
263
  };
254
264
  get = function (it) {
255
- return wmget.call(store, it) || {};
265
+ return wmget.call(store$1, it) || {};
256
266
  };
257
267
  has$1 = function (it) {
258
- return wmhas.call(store, it);
268
+ return wmhas.call(store$1, it);
259
269
  };
260
270
  } else {
261
271
  var STATE = sharedKey('state');
262
272
  hiddenKeys[STATE] = true;
263
273
  set = function (it, metadata) {
264
- hide(it, STATE, metadata);
274
+ createNonEnumerableProperty(it, STATE, metadata);
265
275
  return metadata;
266
276
  };
267
277
  get = function (it) {
@@ -283,18 +293,14 @@
283
293
  var redefine = createCommonjsModule(function (module) {
284
294
  var getInternalState = internalState.get;
285
295
  var enforceInternalState = internalState.enforce;
286
- var TEMPLATE = String(functionToString).split('toString');
287
-
288
- shared('inspectSource', function (it) {
289
- return functionToString.call(it);
290
- });
296
+ var TEMPLATE = String(String).split('String');
291
297
 
292
298
  (module.exports = function (O, key, value, options) {
293
299
  var unsafe = options ? !!options.unsafe : false;
294
300
  var simple = options ? !!options.enumerable : false;
295
301
  var noTargetGet = options ? !!options.noTargetGet : false;
296
302
  if (typeof value == 'function') {
297
- if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
303
+ if (typeof key == 'string' && !has(value, 'name')) createNonEnumerableProperty(value, 'name', key);
298
304
  enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
299
305
  }
300
306
  if (O === global_1) {
@@ -307,10 +313,10 @@
307
313
  simple = true;
308
314
  }
309
315
  if (simple) O[key] = value;
310
- else hide(O, key, value);
316
+ else createNonEnumerableProperty(O, key, value);
311
317
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
312
318
  })(Function.prototype, 'toString', function toString() {
313
- return typeof this == 'function' && getInternalState(this).source || functionToString.call(this);
319
+ return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
314
320
  });
315
321
  });
316
322
 
@@ -347,7 +353,7 @@
347
353
 
348
354
  // Helper for a popular repeating case of the spec:
349
355
  // Let integer be ? ToInteger(index).
350
- // If integer < 0, let result be max((length + integer), 0); else let result be min(length, length).
356
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
351
357
  var toAbsoluteIndex = function (index, length) {
352
358
  var integer = toInteger(index);
353
359
  return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
@@ -511,7 +517,7 @@
511
517
  }
512
518
  // add a flag to not completely full polyfills
513
519
  if (options.sham || (targetProperty && targetProperty.sham)) {
514
- hide(sourceProperty, 'sham', true);
520
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
515
521
  }
516
522
  // extend global
517
523
  redefine(target, key, sourceProperty, options);
@@ -524,6 +530,12 @@
524
530
  return !String(Symbol());
525
531
  });
526
532
 
533
+ var useSymbolAsUid = nativeSymbol
534
+ // eslint-disable-next-line no-undef
535
+ && !Symbol.sham
536
+ // eslint-disable-next-line no-undef
537
+ && typeof Symbol() == 'symbol';
538
+
527
539
  // `IsArray` abstract operation
528
540
  // https://tc39.github.io/ecma262/#sec-isarray
529
541
  var isArray = Array.isArray || function isArray(arg) {
@@ -556,49 +568,77 @@
556
568
 
557
569
  var html = getBuiltIn('document', 'documentElement');
558
570
 
571
+ var GT = '>';
572
+ var LT = '<';
573
+ var PROTOTYPE = 'prototype';
574
+ var SCRIPT = 'script';
559
575
  var IE_PROTO = sharedKey('IE_PROTO');
560
576
 
561
- var PROTOTYPE = 'prototype';
562
- var Empty = function () { /* empty */ };
577
+ var EmptyConstructor = function () { /* empty */ };
578
+
579
+ var scriptTag = function (content) {
580
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
581
+ };
582
+
583
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
584
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
585
+ activeXDocument.write(scriptTag(''));
586
+ activeXDocument.close();
587
+ var temp = activeXDocument.parentWindow.Object;
588
+ activeXDocument = null; // avoid memory leak
589
+ return temp;
590
+ };
563
591
 
564
592
  // Create object with fake `null` prototype: use iframe Object with cleared prototype
565
- var createDict = function () {
593
+ var NullProtoObjectViaIFrame = function () {
566
594
  // Thrash, waste and sodomy: IE GC bug
567
595
  var iframe = documentCreateElement('iframe');
568
- var length = enumBugKeys.length;
569
- var lt = '<';
570
- var script = 'script';
571
- var gt = '>';
572
- var js = 'java' + script + ':';
596
+ var JS = 'java' + SCRIPT + ':';
573
597
  var iframeDocument;
574
598
  iframe.style.display = 'none';
575
599
  html.appendChild(iframe);
576
- iframe.src = String(js);
600
+ // https://github.com/zloirock/core-js/issues/475
601
+ iframe.src = String(JS);
577
602
  iframeDocument = iframe.contentWindow.document;
578
603
  iframeDocument.open();
579
- iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
604
+ iframeDocument.write(scriptTag('document.F=Object'));
580
605
  iframeDocument.close();
581
- createDict = iframeDocument.F;
582
- while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
583
- return createDict();
606
+ return iframeDocument.F;
584
607
  };
585
608
 
609
+ // Check for document.domain and active x support
610
+ // No need to use active x approach when document.domain is not set
611
+ // see https://github.com/es-shims/es5-shim/issues/150
612
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
613
+ // avoid IE GC bug
614
+ var activeXDocument;
615
+ var NullProtoObject = function () {
616
+ try {
617
+ /* global ActiveXObject */
618
+ activeXDocument = document.domain && new ActiveXObject('htmlfile');
619
+ } catch (error) { /* ignore */ }
620
+ NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
621
+ var length = enumBugKeys.length;
622
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
623
+ return NullProtoObject();
624
+ };
625
+
626
+ hiddenKeys[IE_PROTO] = true;
627
+
586
628
  // `Object.create` method
587
629
  // https://tc39.github.io/ecma262/#sec-object.create
588
630
  var objectCreate = Object.create || function create(O, Properties) {
589
631
  var result;
590
632
  if (O !== null) {
591
- Empty[PROTOTYPE] = anObject(O);
592
- result = new Empty();
593
- Empty[PROTOTYPE] = null;
633
+ EmptyConstructor[PROTOTYPE] = anObject(O);
634
+ result = new EmptyConstructor();
635
+ EmptyConstructor[PROTOTYPE] = null;
594
636
  // add "__proto__" for Object.getPrototypeOf polyfill
595
637
  result[IE_PROTO] = O;
596
- } else result = createDict();
638
+ } else result = NullProtoObject();
597
639
  return Properties === undefined ? result : objectDefineProperties(result, Properties);
598
640
  };
599
641
 
600
- hiddenKeys[IE_PROTO] = true;
601
-
602
642
  var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
603
643
 
604
644
  var toString$1 = {}.toString;
@@ -625,12 +665,15 @@
625
665
  f: f$5
626
666
  };
627
667
 
668
+ var WellKnownSymbolsStore = shared('wks');
628
669
  var Symbol$1 = global_1.Symbol;
629
- var store$1 = shared('wks');
670
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : uid;
630
671
 
631
672
  var wellKnownSymbol = function (name) {
632
- return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
633
- || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
673
+ if (!has(WellKnownSymbolsStore, name)) {
674
+ if (nativeSymbol && has(Symbol$1, name)) WellKnownSymbolsStore[name] = Symbol$1[name];
675
+ else WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
676
+ } return WellKnownSymbolsStore[name];
634
677
  };
635
678
 
636
679
  var f$6 = wellKnownSymbol;
@@ -776,8 +819,7 @@
776
819
  var getInternalState = internalState.getterFor(SYMBOL);
777
820
  var ObjectPrototype = Object[PROTOTYPE$1];
778
821
  var $Symbol = global_1.Symbol;
779
- var JSON = global_1.JSON;
780
- var nativeJSONStringify = JSON && JSON.stringify;
822
+ var $stringify = getBuiltIn('JSON', 'stringify');
781
823
  var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
782
824
  var nativeDefineProperty$1 = objectDefineProperty.f;
783
825
  var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
@@ -786,7 +828,7 @@
786
828
  var ObjectPrototypeSymbols = shared('op-symbols');
787
829
  var StringToSymbolRegistry = shared('string-to-symbol-registry');
788
830
  var SymbolToStringRegistry = shared('symbol-to-string-registry');
789
- var WellKnownSymbolsStore = shared('wks');
831
+ var WellKnownSymbolsStore$1 = shared('wks');
790
832
  var QObject = global_1.QObject;
791
833
  // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
792
834
  var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
@@ -929,7 +971,9 @@
929
971
  redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
930
972
  }
931
973
  }
974
+ }
932
975
 
976
+ if (!useSymbolAsUid) {
933
977
  wrappedWellKnownSymbol.f = function (name) {
934
978
  return wrap(wellKnownSymbol(name), name);
935
979
  };
@@ -939,7 +983,7 @@
939
983
  Symbol: $Symbol
940
984
  });
941
985
 
942
- $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
986
+ $forEach(objectKeys(WellKnownSymbolsStore$1), function (name) {
943
987
  defineWellKnownSymbol(name);
944
988
  });
945
989
 
@@ -998,34 +1042,41 @@
998
1042
 
999
1043
  // `JSON.stringify` method behavior with symbols
1000
1044
  // https://tc39.github.io/ecma262/#sec-json.stringify
1001
- JSON && _export({ target: 'JSON', stat: true, forced: !nativeSymbol || fails(function () {
1002
- var symbol = $Symbol();
1003
- // MS Edge converts symbol values to JSON as {}
1004
- return nativeJSONStringify([symbol]) != '[null]'
1005
- // WebKit converts symbol values to JSON as null
1006
- || nativeJSONStringify({ a: symbol }) != '{}'
1007
- // V8 throws on boxed symbols
1008
- || nativeJSONStringify(Object(symbol)) != '{}';
1009
- }) }, {
1010
- stringify: function stringify(it) {
1011
- var args = [it];
1012
- var index = 1;
1013
- var replacer, $replacer;
1014
- while (arguments.length > index) args.push(arguments[index++]);
1015
- $replacer = replacer = args[1];
1016
- if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
1017
- if (!isArray(replacer)) replacer = function (key, value) {
1018
- if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1019
- if (!isSymbol(value)) return value;
1020
- };
1021
- args[1] = replacer;
1022
- return nativeJSONStringify.apply(JSON, args);
1023
- }
1024
- });
1045
+ if ($stringify) {
1046
+ var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {
1047
+ var symbol = $Symbol();
1048
+ // MS Edge converts symbol values to JSON as {}
1049
+ return $stringify([symbol]) != '[null]'
1050
+ // WebKit converts symbol values to JSON as null
1051
+ || $stringify({ a: symbol }) != '{}'
1052
+ // V8 throws on boxed symbols
1053
+ || $stringify(Object(symbol)) != '{}';
1054
+ });
1055
+
1056
+ _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
1057
+ // eslint-disable-next-line no-unused-vars
1058
+ stringify: function stringify(it, replacer, space) {
1059
+ var args = [it];
1060
+ var index = 1;
1061
+ var $replacer;
1062
+ while (arguments.length > index) args.push(arguments[index++]);
1063
+ $replacer = replacer;
1064
+ if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
1065
+ if (!isArray(replacer)) replacer = function (key, value) {
1066
+ if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1067
+ if (!isSymbol(value)) return value;
1068
+ };
1069
+ args[1] = replacer;
1070
+ return $stringify.apply(null, args);
1071
+ }
1072
+ });
1073
+ }
1025
1074
 
1026
1075
  // `Symbol.prototype[@@toPrimitive]` method
1027
1076
  // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
1028
- if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) hide($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
1077
+ if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) {
1078
+ createNonEnumerableProperty($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
1079
+ }
1029
1080
  // `Symbol.prototype[@@toStringTag]` property
1030
1081
  // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
1031
1082
  setToStringTag($Symbol, SYMBOL);
@@ -1085,10 +1136,33 @@
1085
1136
  else object[propertyKey] = value;
1086
1137
  };
1087
1138
 
1139
+ var userAgent = getBuiltIn('navigator', 'userAgent') || '';
1140
+
1141
+ var process = global_1.process;
1142
+ var versions = process && process.versions;
1143
+ var v8 = versions && versions.v8;
1144
+ var match, version;
1145
+
1146
+ if (v8) {
1147
+ match = v8.split('.');
1148
+ version = match[0] + match[1];
1149
+ } else if (userAgent) {
1150
+ match = userAgent.match(/Edge\/(\d+)/);
1151
+ if (!match || match[1] >= 74) {
1152
+ match = userAgent.match(/Chrome\/(\d+)/);
1153
+ if (match) version = match[1];
1154
+ }
1155
+ }
1156
+
1157
+ var v8Version = version && +version;
1158
+
1088
1159
  var SPECIES$1 = wellKnownSymbol('species');
1089
1160
 
1090
1161
  var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1091
- return !fails(function () {
1162
+ // We can't use this feature detection in V8 since it causes
1163
+ // deoptimization and serious performance degradation
1164
+ // https://github.com/zloirock/core-js/issues/677
1165
+ return v8Version >= 51 || !fails(function () {
1092
1166
  var array = [];
1093
1167
  var constructor = array.constructor = {};
1094
1168
  constructor[SPECIES$1] = function () {
@@ -1102,7 +1176,10 @@
1102
1176
  var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1103
1177
  var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1104
1178
 
1105
- var IS_CONCAT_SPREADABLE_SUPPORT = !fails(function () {
1179
+ // We can't use this feature detection in V8 since it causes
1180
+ // deoptimization and serious performance degradation
1181
+ // https://github.com/zloirock/core-js/issues/679
1182
+ var IS_CONCAT_SPREADABLE_SUPPORT = v8Version >= 51 || !fails(function () {
1106
1183
  var array = [];
1107
1184
  array[IS_CONCAT_SPREADABLE] = false;
1108
1185
  return array.concat()[0] !== array;
@@ -1149,7 +1226,10 @@
1149
1226
  // Array.prototype[@@unscopables]
1150
1227
  // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1151
1228
  if (ArrayPrototype[UNSCOPABLES] == undefined) {
1152
- hide(ArrayPrototype, UNSCOPABLES, objectCreate(null));
1229
+ objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
1230
+ configurable: true,
1231
+ value: objectCreate(null)
1232
+ });
1153
1233
  }
1154
1234
 
1155
1235
  // add a key to Array.prototype[@@unscopables]
@@ -1198,7 +1278,9 @@
1198
1278
  if (IteratorPrototype == undefined) IteratorPrototype = {};
1199
1279
 
1200
1280
  // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
1201
- if ( !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);
1281
+ if ( !has(IteratorPrototype, ITERATOR)) {
1282
+ createNonEnumerableProperty(IteratorPrototype, ITERATOR, returnThis);
1283
+ }
1202
1284
 
1203
1285
  var iteratorsCore = {
1204
1286
  IteratorPrototype: IteratorPrototype,
@@ -1282,7 +1364,7 @@
1282
1364
  if (objectSetPrototypeOf) {
1283
1365
  objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
1284
1366
  } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
1285
- hide(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
1367
+ createNonEnumerableProperty(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
1286
1368
  }
1287
1369
  }
1288
1370
  // Set @@toStringTag to native iterators
@@ -1298,7 +1380,7 @@
1298
1380
 
1299
1381
  // define iterator
1300
1382
  if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
1301
- hide(IterablePrototype, ITERATOR$1, defaultIterator);
1383
+ createNonEnumerableProperty(IterablePrototype, ITERATOR$1, defaultIterator);
1302
1384
  }
1303
1385
 
1304
1386
  // export additional methods
@@ -1361,6 +1443,13 @@
1361
1443
  addToUnscopables('entries');
1362
1444
 
1363
1445
  var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1446
+ var test = {};
1447
+
1448
+ test[TO_STRING_TAG$1] = 'z';
1449
+
1450
+ var toStringTagSupport = String(test) === '[object z]';
1451
+
1452
+ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
1364
1453
  // ES3 wrong here
1365
1454
  var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1366
1455
 
@@ -1372,36 +1461,156 @@
1372
1461
  };
1373
1462
 
1374
1463
  // getting tag from ES6+ `Object.prototype.toString`
1375
- var classof = function (it) {
1464
+ var classof = toStringTagSupport ? classofRaw : function (it) {
1376
1465
  var O, tag, result;
1377
1466
  return it === undefined ? 'Undefined' : it === null ? 'Null'
1378
1467
  // @@toStringTag case
1379
- : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$1)) == 'string' ? tag
1468
+ : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$2)) == 'string' ? tag
1380
1469
  // builtinTag case
1381
1470
  : CORRECT_ARGUMENTS ? classofRaw(O)
1382
1471
  // ES3 arguments fallback
1383
1472
  : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
1384
1473
  };
1385
1474
 
1386
- var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
1387
- var test = {};
1388
-
1389
- test[TO_STRING_TAG$2] = 'z';
1390
-
1391
1475
  // `Object.prototype.toString` method implementation
1392
1476
  // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1393
- var objectToString = String(test) !== '[object z]' ? function toString() {
1477
+ var objectToString = toStringTagSupport ? {}.toString : function toString() {
1394
1478
  return '[object ' + classof(this) + ']';
1395
- } : test.toString;
1396
-
1397
- var ObjectPrototype$2 = Object.prototype;
1479
+ };
1398
1480
 
1399
1481
  // `Object.prototype.toString` method
1400
1482
  // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1401
- if (objectToString !== ObjectPrototype$2.toString) {
1402
- redefine(ObjectPrototype$2, 'toString', objectToString, { unsafe: true });
1483
+ if (!toStringTagSupport) {
1484
+ redefine(Object.prototype, 'toString', objectToString, { unsafe: true });
1403
1485
  }
1404
1486
 
1487
+ // `RegExp.prototype.flags` getter implementation
1488
+ // https://tc39.github.io/ecma262/#sec-get-regexp.prototype.flags
1489
+ var regexpFlags = function () {
1490
+ var that = anObject(this);
1491
+ var result = '';
1492
+ if (that.global) result += 'g';
1493
+ if (that.ignoreCase) result += 'i';
1494
+ if (that.multiline) result += 'm';
1495
+ if (that.dotAll) result += 's';
1496
+ if (that.unicode) result += 'u';
1497
+ if (that.sticky) result += 'y';
1498
+ return result;
1499
+ };
1500
+
1501
+ // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError,
1502
+ // so we use an intermediate function.
1503
+ function RE(s, f) {
1504
+ return RegExp(s, f);
1505
+ }
1506
+
1507
+ var UNSUPPORTED_Y = fails(function () {
1508
+ // babel-minify transpiles RegExp('a', 'y') -> /a/y and it causes SyntaxError
1509
+ var re = RE('a', 'y');
1510
+ re.lastIndex = 2;
1511
+ return re.exec('abcd') != null;
1512
+ });
1513
+
1514
+ var BROKEN_CARET = fails(function () {
1515
+ // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1516
+ var re = RE('^r', 'gy');
1517
+ re.lastIndex = 2;
1518
+ return re.exec('str') != null;
1519
+ });
1520
+
1521
+ var regexpStickyHelpers = {
1522
+ UNSUPPORTED_Y: UNSUPPORTED_Y,
1523
+ BROKEN_CARET: BROKEN_CARET
1524
+ };
1525
+
1526
+ var nativeExec = RegExp.prototype.exec;
1527
+ // This always refers to the native implementation, because the
1528
+ // String#replace polyfill uses ./fix-regexp-well-known-symbol-logic.js,
1529
+ // which loads this file before patching the method.
1530
+ var nativeReplace = String.prototype.replace;
1531
+
1532
+ var patchedExec = nativeExec;
1533
+
1534
+ var UPDATES_LAST_INDEX_WRONG = (function () {
1535
+ var re1 = /a/;
1536
+ var re2 = /b*/g;
1537
+ nativeExec.call(re1, 'a');
1538
+ nativeExec.call(re2, 'a');
1539
+ return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1540
+ })();
1541
+
1542
+ var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
1543
+
1544
+ // nonparticipating capturing group, copied from es5-shim's String#split patch.
1545
+ var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
1546
+
1547
+ var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$1;
1548
+
1549
+ if (PATCH) {
1550
+ patchedExec = function exec(str) {
1551
+ var re = this;
1552
+ var lastIndex, reCopy, match, i;
1553
+ var sticky = UNSUPPORTED_Y$1 && re.sticky;
1554
+ var flags = regexpFlags.call(re);
1555
+ var source = re.source;
1556
+ var charsAdded = 0;
1557
+ var strCopy = str;
1558
+
1559
+ if (sticky) {
1560
+ flags = flags.replace('y', '');
1561
+ if (flags.indexOf('g') === -1) {
1562
+ flags += 'g';
1563
+ }
1564
+
1565
+ strCopy = String(str).slice(re.lastIndex);
1566
+ // Support anchored sticky behavior.
1567
+ if (re.lastIndex > 0 && (!re.multiline || re.multiline && str[re.lastIndex - 1] !== '\n')) {
1568
+ source = '(?: ' + source + ')';
1569
+ strCopy = ' ' + strCopy;
1570
+ charsAdded++;
1571
+ }
1572
+ // ^(? + rx + ) is needed, in combination with some str slicing, to
1573
+ // simulate the 'y' flag.
1574
+ reCopy = new RegExp('^(?:' + source + ')', flags);
1575
+ }
1576
+
1577
+ if (NPCG_INCLUDED) {
1578
+ reCopy = new RegExp('^' + source + '$(?!\\s)', flags);
1579
+ }
1580
+ if (UPDATES_LAST_INDEX_WRONG) lastIndex = re.lastIndex;
1581
+
1582
+ match = nativeExec.call(sticky ? reCopy : re, strCopy);
1583
+
1584
+ if (sticky) {
1585
+ if (match) {
1586
+ match.input = match.input.slice(charsAdded);
1587
+ match[0] = match[0].slice(charsAdded);
1588
+ match.index = re.lastIndex;
1589
+ re.lastIndex += match[0].length;
1590
+ } else re.lastIndex = 0;
1591
+ } else if (UPDATES_LAST_INDEX_WRONG && match) {
1592
+ re.lastIndex = re.global ? match.index + match[0].length : lastIndex;
1593
+ }
1594
+ if (NPCG_INCLUDED && match && match.length > 1) {
1595
+ // Fix browsers whose `exec` methods don't consistently return `undefined`
1596
+ // for NPCG, like IE8. NOTE: This doesn' work for /(.?)?/
1597
+ nativeReplace.call(match[0], reCopy, function () {
1598
+ for (i = 1; i < arguments.length - 2; i++) {
1599
+ if (arguments[i] === undefined) match[i] = undefined;
1600
+ }
1601
+ });
1602
+ }
1603
+
1604
+ return match;
1605
+ };
1606
+ }
1607
+
1608
+ var regexpExec = patchedExec;
1609
+
1610
+ _export({ target: 'RegExp', proto: true, forced: /./.exec !== regexpExec }, {
1611
+ exec: regexpExec
1612
+ });
1613
+
1405
1614
  // `String.prototype.{ codePointAt, at }` methods implementation
1406
1615
  var createMethod$2 = function (CONVERT_TO_STRING) {
1407
1616
  return function ($this, pos) {
@@ -1456,6 +1665,253 @@
1456
1665
  return { value: point, done: false };
1457
1666
  });
1458
1667
 
1668
+ var SPECIES$2 = wellKnownSymbol('species');
1669
+
1670
+ var REPLACE_SUPPORTS_NAMED_GROUPS = !fails(function () {
1671
+ // #replace needs built-in support for named groups.
1672
+ // #match works fine because it just return the exec results, even if it has
1673
+ // a "grops" property.
1674
+ var re = /./;
1675
+ re.exec = function () {
1676
+ var result = [];
1677
+ result.groups = { a: '7' };
1678
+ return result;
1679
+ };
1680
+ return ''.replace(re, '$<a>') !== '7';
1681
+ });
1682
+
1683
+ // IE <= 11 replaces $0 with the whole match, as if it was $&
1684
+ // https://stackoverflow.com/questions/6024666/getting-ie-to-replace-a-regex-with-the-literal-string-0
1685
+ var REPLACE_KEEPS_$0 = (function () {
1686
+ return 'a'.replace(/./, '$0') === '$0';
1687
+ })();
1688
+
1689
+ // Chrome 51 has a buggy "split" implementation when RegExp#exec !== nativeExec
1690
+ // Weex JS has frozen built-in prototypes, so use try / catch wrapper
1691
+ var SPLIT_WORKS_WITH_OVERWRITTEN_EXEC = !fails(function () {
1692
+ var re = /(?:)/;
1693
+ var originalExec = re.exec;
1694
+ re.exec = function () { return originalExec.apply(this, arguments); };
1695
+ var result = 'ab'.split(re);
1696
+ return result.length !== 2 || result[0] !== 'a' || result[1] !== 'b';
1697
+ });
1698
+
1699
+ var fixRegexpWellKnownSymbolLogic = function (KEY, length, exec, sham) {
1700
+ var SYMBOL = wellKnownSymbol(KEY);
1701
+
1702
+ var DELEGATES_TO_SYMBOL = !fails(function () {
1703
+ // String methods call symbol-named RegEp methods
1704
+ var O = {};
1705
+ O[SYMBOL] = function () { return 7; };
1706
+ return ''[KEY](O) != 7;
1707
+ });
1708
+
1709
+ var DELEGATES_TO_EXEC = DELEGATES_TO_SYMBOL && !fails(function () {
1710
+ // Symbol-named RegExp methods call .exec
1711
+ var execCalled = false;
1712
+ var re = /a/;
1713
+
1714
+ if (KEY === 'split') {
1715
+ // We can't use real regex here since it causes deoptimization
1716
+ // and serious performance degradation in V8
1717
+ // https://github.com/zloirock/core-js/issues/306
1718
+ re = {};
1719
+ // RegExp[@@split] doesn't call the regex's exec method, but first creates
1720
+ // a new one. We need to return the patched regex when creating the new one.
1721
+ re.constructor = {};
1722
+ re.constructor[SPECIES$2] = function () { return re; };
1723
+ re.flags = '';
1724
+ re[SYMBOL] = /./[SYMBOL];
1725
+ }
1726
+
1727
+ re.exec = function () { execCalled = true; return null; };
1728
+
1729
+ re[SYMBOL]('');
1730
+ return !execCalled;
1731
+ });
1732
+
1733
+ if (
1734
+ !DELEGATES_TO_SYMBOL ||
1735
+ !DELEGATES_TO_EXEC ||
1736
+ (KEY === 'replace' && !(REPLACE_SUPPORTS_NAMED_GROUPS && REPLACE_KEEPS_$0)) ||
1737
+ (KEY === 'split' && !SPLIT_WORKS_WITH_OVERWRITTEN_EXEC)
1738
+ ) {
1739
+ var nativeRegExpMethod = /./[SYMBOL];
1740
+ var methods = exec(SYMBOL, ''[KEY], function (nativeMethod, regexp, str, arg2, forceStringMethod) {
1741
+ if (regexp.exec === regexpExec) {
1742
+ if (DELEGATES_TO_SYMBOL && !forceStringMethod) {
1743
+ // The native String method already delegates to @@method (this
1744
+ // polyfilled function), leasing to infinite recursion.
1745
+ // We avoid it by directly calling the native @@method method.
1746
+ return { done: true, value: nativeRegExpMethod.call(regexp, str, arg2) };
1747
+ }
1748
+ return { done: true, value: nativeMethod.call(str, regexp, arg2) };
1749
+ }
1750
+ return { done: false };
1751
+ }, { REPLACE_KEEPS_$0: REPLACE_KEEPS_$0 });
1752
+ var stringMethod = methods[0];
1753
+ var regexMethod = methods[1];
1754
+
1755
+ redefine(String.prototype, KEY, stringMethod);
1756
+ redefine(RegExp.prototype, SYMBOL, length == 2
1757
+ // 21.2.5.8 RegExp.prototype[@@replace](string, replaceValue)
1758
+ // 21.2.5.11 RegExp.prototype[@@split](string, limit)
1759
+ ? function (string, arg) { return regexMethod.call(string, this, arg); }
1760
+ // 21.2.5.6 RegExp.prototype[@@match](string)
1761
+ // 21.2.5.9 RegExp.prototype[@@search](string)
1762
+ : function (string) { return regexMethod.call(string, this); }
1763
+ );
1764
+ }
1765
+
1766
+ if (sham) createNonEnumerableProperty(RegExp.prototype[SYMBOL], 'sham', true);
1767
+ };
1768
+
1769
+ var charAt$1 = stringMultibyte.charAt;
1770
+
1771
+ // `AdvanceStringIndex` abstract operation
1772
+ // https://tc39.github.io/ecma262/#sec-advancestringindex
1773
+ var advanceStringIndex = function (S, index, unicode) {
1774
+ return index + (unicode ? charAt$1(S, index).length : 1);
1775
+ };
1776
+
1777
+ // `RegExpExec` abstract operation
1778
+ // https://tc39.github.io/ecma262/#sec-regexpexec
1779
+ var regexpExecAbstract = function (R, S) {
1780
+ var exec = R.exec;
1781
+ if (typeof exec === 'function') {
1782
+ var result = exec.call(R, S);
1783
+ if (typeof result !== 'object') {
1784
+ throw TypeError('RegExp exec method returned something other than an Object or null');
1785
+ }
1786
+ return result;
1787
+ }
1788
+
1789
+ if (classofRaw(R) !== 'RegExp') {
1790
+ throw TypeError('RegExp#exec called on incompatible receiver');
1791
+ }
1792
+
1793
+ return regexpExec.call(R, S);
1794
+ };
1795
+
1796
+ var max$1 = Math.max;
1797
+ var min$2 = Math.min;
1798
+ var floor$1 = Math.floor;
1799
+ var SUBSTITUTION_SYMBOLS = /\$([$&'`]|\d\d?|<[^>]*>)/g;
1800
+ var SUBSTITUTION_SYMBOLS_NO_NAMED = /\$([$&'`]|\d\d?)/g;
1801
+
1802
+ var maybeToString = function (it) {
1803
+ return it === undefined ? it : String(it);
1804
+ };
1805
+
1806
+ // @@replace logic
1807
+ fixRegexpWellKnownSymbolLogic('replace', 2, function (REPLACE, nativeReplace, maybeCallNative, reason) {
1808
+ return [
1809
+ // `String.prototype.replace` method
1810
+ // https://tc39.github.io/ecma262/#sec-string.prototype.replace
1811
+ function replace(searchValue, replaceValue) {
1812
+ var O = requireObjectCoercible(this);
1813
+ var replacer = searchValue == undefined ? undefined : searchValue[REPLACE];
1814
+ return replacer !== undefined
1815
+ ? replacer.call(searchValue, O, replaceValue)
1816
+ : nativeReplace.call(String(O), searchValue, replaceValue);
1817
+ },
1818
+ // `RegExp.prototype[@@replace]` method
1819
+ // https://tc39.github.io/ecma262/#sec-regexp.prototype-@@replace
1820
+ function (regexp, replaceValue) {
1821
+ if (reason.REPLACE_KEEPS_$0 || (typeof replaceValue === 'string' && replaceValue.indexOf('$0') === -1)) {
1822
+ var res = maybeCallNative(nativeReplace, regexp, this, replaceValue);
1823
+ if (res.done) return res.value;
1824
+ }
1825
+
1826
+ var rx = anObject(regexp);
1827
+ var S = String(this);
1828
+
1829
+ var functionalReplace = typeof replaceValue === 'function';
1830
+ if (!functionalReplace) replaceValue = String(replaceValue);
1831
+
1832
+ var global = rx.global;
1833
+ if (global) {
1834
+ var fullUnicode = rx.unicode;
1835
+ rx.lastIndex = 0;
1836
+ }
1837
+ var results = [];
1838
+ while (true) {
1839
+ var result = regexpExecAbstract(rx, S);
1840
+ if (result === null) break;
1841
+
1842
+ results.push(result);
1843
+ if (!global) break;
1844
+
1845
+ var matchStr = String(result[0]);
1846
+ if (matchStr === '') rx.lastIndex = advanceStringIndex(S, toLength(rx.lastIndex), fullUnicode);
1847
+ }
1848
+
1849
+ var accumulatedResult = '';
1850
+ var nextSourcePosition = 0;
1851
+ for (var i = 0; i < results.length; i++) {
1852
+ result = results[i];
1853
+
1854
+ var matched = String(result[0]);
1855
+ var position = max$1(min$2(toInteger(result.index), S.length), 0);
1856
+ var captures = [];
1857
+ // NOTE: This is equivalent to
1858
+ // captures = result.slice(1).map(maybeToString)
1859
+ // but for some reason `nativeSlice.call(result, 1, result.length)` (called in
1860
+ // the slice polyfill when slicing native arrays) "doesn't work" in safari 9 and
1861
+ // causes a crash (https://pastebin.com/N21QzeQA) when trying to debug it.
1862
+ for (var j = 1; j < result.length; j++) captures.push(maybeToString(result[j]));
1863
+ var namedCaptures = result.groups;
1864
+ if (functionalReplace) {
1865
+ var replacerArgs = [matched].concat(captures, position, S);
1866
+ if (namedCaptures !== undefined) replacerArgs.push(namedCaptures);
1867
+ var replacement = String(replaceValue.apply(undefined, replacerArgs));
1868
+ } else {
1869
+ replacement = getSubstitution(matched, S, position, captures, namedCaptures, replaceValue);
1870
+ }
1871
+ if (position >= nextSourcePosition) {
1872
+ accumulatedResult += S.slice(nextSourcePosition, position) + replacement;
1873
+ nextSourcePosition = position + matched.length;
1874
+ }
1875
+ }
1876
+ return accumulatedResult + S.slice(nextSourcePosition);
1877
+ }
1878
+ ];
1879
+
1880
+ // https://tc39.github.io/ecma262/#sec-getsubstitution
1881
+ function getSubstitution(matched, str, position, captures, namedCaptures, replacement) {
1882
+ var tailPos = position + matched.length;
1883
+ var m = captures.length;
1884
+ var symbols = SUBSTITUTION_SYMBOLS_NO_NAMED;
1885
+ if (namedCaptures !== undefined) {
1886
+ namedCaptures = toObject(namedCaptures);
1887
+ symbols = SUBSTITUTION_SYMBOLS;
1888
+ }
1889
+ return nativeReplace.call(replacement, symbols, function (match, ch) {
1890
+ var capture;
1891
+ switch (ch.charAt(0)) {
1892
+ case '$': return '$';
1893
+ case '&': return matched;
1894
+ case '`': return str.slice(0, position);
1895
+ case "'": return str.slice(tailPos);
1896
+ case '<':
1897
+ capture = namedCaptures[ch.slice(1, -1)];
1898
+ break;
1899
+ default: // \d\d?
1900
+ var n = +ch;
1901
+ if (n === 0) return match;
1902
+ if (n > m) {
1903
+ var f = floor$1(n / 10);
1904
+ if (f === 0) return match;
1905
+ if (f <= m) return captures[f - 1] === undefined ? ch.charAt(1) : captures[f - 1] + ch.charAt(1);
1906
+ return match;
1907
+ }
1908
+ capture = captures[n - 1];
1909
+ }
1910
+ return capture === undefined ? '' : capture;
1911
+ });
1912
+ }
1913
+ });
1914
+
1459
1915
  // iterable DOM collections
1460
1916
  // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1461
1917
  var domIterables = {
@@ -1502,15 +1958,17 @@
1502
1958
  if (CollectionPrototype) {
1503
1959
  // some Chrome versions have non-configurable methods on DOMTokenList
1504
1960
  if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
1505
- hide(CollectionPrototype, ITERATOR$2, ArrayValues);
1961
+ createNonEnumerableProperty(CollectionPrototype, ITERATOR$2, ArrayValues);
1506
1962
  } catch (error) {
1507
1963
  CollectionPrototype[ITERATOR$2] = ArrayValues;
1508
1964
  }
1509
- if (!CollectionPrototype[TO_STRING_TAG$3]) hide(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
1965
+ if (!CollectionPrototype[TO_STRING_TAG$3]) {
1966
+ createNonEnumerableProperty(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
1967
+ }
1510
1968
  if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
1511
1969
  // some Chrome versions have non-configurable methods on DOMTokenList
1512
1970
  if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
1513
- hide(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
1971
+ createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
1514
1972
  } catch (error) {
1515
1973
  CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
1516
1974
  }
@@ -1533,20 +1991,35 @@
1533
1991
  return obj;
1534
1992
  }
1535
1993
 
1536
- function _objectSpread(target) {
1994
+ function ownKeys$1(object, enumerableOnly) {
1995
+ var keys = Object.keys(object);
1996
+
1997
+ if (Object.getOwnPropertySymbols) {
1998
+ var symbols = Object.getOwnPropertySymbols(object);
1999
+ if (enumerableOnly) symbols = symbols.filter(function (sym) {
2000
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
2001
+ });
2002
+ keys.push.apply(keys, symbols);
2003
+ }
2004
+
2005
+ return keys;
2006
+ }
2007
+
2008
+ function _objectSpread2(target) {
1537
2009
  for (var i = 1; i < arguments.length; i++) {
1538
2010
  var source = arguments[i] != null ? arguments[i] : {};
1539
- var ownKeys = Object.keys(source);
1540
2011
 
1541
- if (typeof Object.getOwnPropertySymbols === 'function') {
1542
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) {
1543
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
1544
- }));
2012
+ if (i % 2) {
2013
+ ownKeys$1(Object(source), true).forEach(function (key) {
2014
+ _defineProperty(target, key, source[key]);
2015
+ });
2016
+ } else if (Object.getOwnPropertyDescriptors) {
2017
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2018
+ } else {
2019
+ ownKeys$1(Object(source)).forEach(function (key) {
2020
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2021
+ });
1545
2022
  }
1546
-
1547
- ownKeys.forEach(function (key) {
1548
- _defineProperty(target, key, source[key]);
1549
- });
1550
2023
  }
1551
2024
 
1552
2025
  return target;
@@ -1579,6 +2052,10 @@
1579
2052
  var $ = window.jQuery;
1580
2053
 
1581
2054
  var deepCopy = function deepCopy(arg) {
2055
+ if (arg === undefined) {
2056
+ return arg;
2057
+ }
2058
+
1582
2059
  return $.extend(true, Array.isArray(arg) ? [] : {}, arg);
1583
2060
  };
1584
2061
 
@@ -1607,14 +2084,19 @@
1607
2084
 
1608
2085
  this.$table = $(this.$el);
1609
2086
  this.$table.on('all.bs.table', function (e, name, args) {
1610
- _this.$emit.apply(_this, [$.fn.bootstrapTable.events[name]].concat(_toConsumableArray(args)));
2087
+ var eventName = $.fn.bootstrapTable.events[name];
2088
+ eventName = eventName.replace(/([A-Z])/g, '-$1').toLowerCase();
2089
+
2090
+ _this.$emit.apply(_this, ['on-all'].concat(_toConsumableArray(args)));
2091
+
2092
+ _this.$emit.apply(_this, [eventName].concat(_toConsumableArray(args)));
1611
2093
  });
1612
2094
 
1613
2095
  this._initTable();
1614
2096
  },
1615
- methods: _objectSpread({
2097
+ methods: _objectSpread2({
1616
2098
  _initTable: function _initTable() {
1617
- var options = _objectSpread({}, deepCopy(this.options), {
2099
+ var options = _objectSpread2({}, deepCopy(this.options), {
1618
2100
  columns: deepCopy(this.columns),
1619
2101
  data: deepCopy(this.data)
1620
2102
  });
@@ -1689,91 +2171,81 @@
1689
2171
  }
1690
2172
  };
1691
2173
 
1692
- function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
1693
- /* server only */
1694
- , shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
1695
- if (typeof shadowMode !== 'boolean') {
1696
- createInjectorSSR = createInjector;
1697
- createInjector = shadowMode;
1698
- shadowMode = false;
1699
- } // Vue.extend constructor export interop.
1700
-
1701
-
1702
- var options = typeof script === 'function' ? script.options : script; // render functions
1703
-
1704
- if (template && template.render) {
1705
- options.render = template.render;
1706
- options.staticRenderFns = template.staticRenderFns;
1707
- options._compiled = true; // functional template
1708
-
1709
- if (isFunctionalTemplate) {
1710
- options.functional = true;
1711
- }
1712
- } // scopedId
1713
-
1714
-
1715
- if (scopeId) {
1716
- options._scopeId = scopeId;
1717
- }
1718
-
1719
- var hook;
1720
-
1721
- if (moduleIdentifier) {
1722
- // server build
1723
- hook = function hook(context) {
1724
- // 2.3 injection
1725
- context = context || // cached call
1726
- this.$vnode && this.$vnode.ssrContext || // stateful
1727
- this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
1728
- // 2.2 with runInNewContext: true
1729
-
1730
- if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
1731
- context = __VUE_SSR_CONTEXT__;
1732
- } // inject component styles
1733
-
1734
-
1735
- if (style) {
1736
- style.call(this, createInjectorSSR(context));
1737
- } // register component module identifier for async chunk inference
1738
-
1739
-
1740
- if (context && context._registeredComponents) {
1741
- context._registeredComponents.add(moduleIdentifier);
1742
- }
1743
- }; // used by ssr in case component is cached and beforeCreate
1744
- // never gets called
1745
-
1746
-
1747
- options._ssrRegister = hook;
1748
- } else if (style) {
1749
- hook = shadowMode ? function () {
1750
- style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
1751
- } : function (context) {
1752
- style.call(this, createInjector(context));
1753
- };
1754
- }
1755
-
1756
- if (hook) {
1757
- if (options.functional) {
1758
- // register for functional component in vue file
1759
- var originalRender = options.render;
1760
-
1761
- options.render = function renderWithStyleInjection(h, context) {
1762
- hook.call(context);
1763
- return originalRender(h, context);
1764
- };
1765
- } else {
1766
- // inject component registration as beforeCreate hook
1767
- var existing = options.beforeCreate;
1768
- options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
1769
- }
1770
- }
1771
-
1772
- return script;
2174
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
2175
+ if (typeof shadowMode !== 'boolean') {
2176
+ createInjectorSSR = createInjector;
2177
+ createInjector = shadowMode;
2178
+ shadowMode = false;
2179
+ }
2180
+ // Vue.extend constructor export interop.
2181
+ const options = typeof script === 'function' ? script.options : script;
2182
+ // render functions
2183
+ if (template && template.render) {
2184
+ options.render = template.render;
2185
+ options.staticRenderFns = template.staticRenderFns;
2186
+ options._compiled = true;
2187
+ // functional template
2188
+ if (isFunctionalTemplate) {
2189
+ options.functional = true;
2190
+ }
2191
+ }
2192
+ // scopedId
2193
+ if (scopeId) {
2194
+ options._scopeId = scopeId;
2195
+ }
2196
+ let hook;
2197
+ if (moduleIdentifier) {
2198
+ // server build
2199
+ hook = function (context) {
2200
+ // 2.3 injection
2201
+ context =
2202
+ context || // cached call
2203
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
2204
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
2205
+ // 2.2 with runInNewContext: true
2206
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
2207
+ context = __VUE_SSR_CONTEXT__;
2208
+ }
2209
+ // inject component styles
2210
+ if (style) {
2211
+ style.call(this, createInjectorSSR(context));
2212
+ }
2213
+ // register component module identifier for async chunk inference
2214
+ if (context && context._registeredComponents) {
2215
+ context._registeredComponents.add(moduleIdentifier);
2216
+ }
2217
+ };
2218
+ // used by ssr in case component is cached and beforeCreate
2219
+ // never gets called
2220
+ options._ssrRegister = hook;
2221
+ }
2222
+ else if (style) {
2223
+ hook = shadowMode
2224
+ ? function (context) {
2225
+ style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
2226
+ }
2227
+ : function (context) {
2228
+ style.call(this, createInjector(context));
2229
+ };
2230
+ }
2231
+ if (hook) {
2232
+ if (options.functional) {
2233
+ // register for functional component in vue file
2234
+ const originalRender = options.render;
2235
+ options.render = function renderWithStyleInjection(h, context) {
2236
+ hook.call(context);
2237
+ return originalRender(h, context);
2238
+ };
2239
+ }
2240
+ else {
2241
+ // inject component registration as beforeCreate hook
2242
+ const existing = options.beforeCreate;
2243
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
2244
+ }
2245
+ }
2246
+ return script;
1773
2247
  }
1774
2248
 
1775
- var normalizeComponent_1 = normalizeComponent;
1776
-
1777
2249
  /* script */
1778
2250
  const __vue_script__ = script;
1779
2251
 
@@ -1799,19 +2271,23 @@
1799
2271
 
1800
2272
  /* style inject SSR */
1801
2273
 
2274
+ /* style inject shadow dom */
2275
+
1802
2276
 
1803
2277
 
1804
- var BootstrapTable = normalizeComponent_1(
2278
+ const __vue_component__ = /*#__PURE__*/normalizeComponent(
1805
2279
  { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
1806
2280
  __vue_inject_styles__,
1807
2281
  __vue_script__,
1808
2282
  __vue_scope_id__,
1809
2283
  __vue_is_functional_template__,
1810
2284
  __vue_module_identifier__,
2285
+ false,
2286
+ undefined,
1811
2287
  undefined,
1812
2288
  undefined
1813
2289
  );
1814
2290
 
1815
- return BootstrapTable;
2291
+ return __vue_component__;
1816
2292
 
1817
- }));
2293
+ })));