bootstrap-table-rails 1.13.4 → 1.15.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +76 -52
  3. data/lib/bootstrap-table-rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +5195 -2758
  5. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.esm.js +1809 -0
  6. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-vue.js +1817 -0
  7. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.css +109 -50
  8. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +6923 -3853
  9. data/vendor/assets/javascripts/bootstrap-table/extensions/accent-neutralise/bootstrap-table-accent-neutralise.js +1756 -276
  10. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1484 -270
  11. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +1019 -92
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/cell-input/bootstrap-table-cell-input.css +12 -0
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/cell-input/bootstrap-table-cell-input.js +2087 -0
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1933 -549
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +1041 -120
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +778 -48
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +1450 -259
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +2493 -335
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.css +3 -3
  20. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +2501 -910
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.css +27 -0
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +1378 -0
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.css +2 -6
  24. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +1477 -233
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +112 -37
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +1242 -101
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +1161 -151
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +1904 -424
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/natural-sorting/bootstrap-table-natural-sorting.js +1216 -34
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.css +11 -8
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +970 -57
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +1127 -340
  33. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +1959 -144
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +1014 -196
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.css +10 -10
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +773 -131
  37. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +675 -85
  38. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.css +1 -1
  39. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +1018 -193
  40. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +2296 -372
  41. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +1816 -118
  42. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +720 -52
  43. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +721 -53
  44. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +721 -56
  45. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +721 -56
  46. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +720 -64
  47. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +720 -64
  48. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +720 -40
  49. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +720 -61
  50. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +720 -43
  51. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +721 -56
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +720 -52
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +720 -107
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +722 -63
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +720 -52
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +720 -52
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +720 -55
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +720 -55
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +720 -55
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +720 -61
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +721 -40
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +721 -0
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +722 -107
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +721 -0
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +720 -55
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +721 -56
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +720 -55
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +720 -61
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +722 -63
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +720 -55
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +720 -52
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +720 -49
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +720 -55
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +720 -49
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +721 -0
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +721 -64
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +720 -49
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +722 -53
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +720 -55
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +720 -55
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +720 -85
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +720 -61
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +720 -49
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +720 -49
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +721 -53
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +720 -85
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +720 -49
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +720 -61
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +720 -40
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +720 -58
  91. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +720 -52
  92. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +352 -0
  93. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +943 -0
  94. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +329 -0
  95. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +950 -0
  96. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +326 -0
  97. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +946 -0
  98. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +336 -0
  99. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +920 -0
  100. metadata +23 -7
@@ -1,152 +1,1162 @@
1
1
  (function (global, factory) {
2
- if (typeof define === "function" && define.amd) {
3
- define([], factory);
4
- } else if (typeof exports !== "undefined") {
5
- factory();
6
- } else {
7
- var mod = {
8
- exports: {}
9
- };
10
- factory();
11
- global.bootstrapTableMobile = mod.exports;
12
- }
13
- })(this, function () {
14
- 'use strict';
15
-
16
- /**
17
- * @author: Dennis Hernández
18
- * @webSite: http://djhvscf.github.io/Blog
19
- * @version: v1.1.0
20
- */
21
-
22
- !function ($) {
23
-
24
- 'use strict';
25
-
26
- var showHideColumns = function showHideColumns(that, checked) {
27
- if (that.options.columnsHidden.length > 0) {
28
- $.each(that.columns, function (i, column) {
29
- if (that.options.columnsHidden.indexOf(column.field) !== -1) {
30
- if (column.visible !== checked) {
31
- that.toggleColumn(that.fieldsColumnsIndex[column.field], checked, true);
32
- }
33
- }
34
- });
35
- }
36
- };
37
-
38
- var resetView = function resetView(that) {
39
- if (that.options.height || that.options.showFooter) {
40
- setTimeout(function () {
41
- that.resetView.call(that);
42
- }, 1);
43
- }
44
- };
45
-
46
- var changeView = function changeView(that, width, height) {
47
- if (that.options.minHeight) {
48
- if (width <= that.options.minWidth && height <= that.options.minHeight) {
49
- conditionCardView(that);
50
- } else if (width > that.options.minWidth && height > that.options.minHeight) {
51
- conditionFullView(that);
52
- }
53
- } else {
54
- if (width <= that.options.minWidth) {
55
- conditionCardView(that);
56
- } else if (width > that.options.minWidth) {
57
- conditionFullView(that);
58
- }
59
- }
60
-
61
- resetView(that);
62
- };
63
-
64
- var conditionCardView = function conditionCardView(that) {
65
- changeTableView(that, false);
66
- showHideColumns(that, false);
67
- };
68
-
69
- var conditionFullView = function conditionFullView(that) {
70
- changeTableView(that, true);
71
- showHideColumns(that, true);
72
- };
73
-
74
- var changeTableView = function changeTableView(that, cardViewState) {
75
- that.options.cardView = cardViewState;
76
- that.toggleView();
77
- };
78
-
79
- var debounce = function debounce(func, wait) {
80
- var timeout;
81
- return function () {
82
- var context = this,
83
- args = arguments;
84
- var later = function later() {
85
- timeout = null;
86
- func.apply(context, args);
87
- };
88
- clearTimeout(timeout);
89
- timeout = setTimeout(later, wait);
90
- };
91
- };
92
-
93
- $.extend($.fn.bootstrapTable.defaults, {
94
- mobileResponsive: false,
95
- minWidth: 562,
96
- minHeight: undefined,
97
- heightThreshold: 100, // just slightly larger than mobile chrome's auto-hiding toolbar
98
- checkOnInit: true,
99
- columnsHidden: []
100
- });
101
-
102
- var BootstrapTable = $.fn.bootstrapTable.Constructor,
103
- _init = BootstrapTable.prototype.init;
104
-
105
- BootstrapTable.prototype.init = function () {
106
- _init.apply(this, Array.prototype.slice.apply(arguments));
107
-
108
- if (!this.options.mobileResponsive) {
109
- return;
110
- }
111
-
112
- if (!this.options.minWidth) {
113
- return;
114
- }
115
-
116
- if (this.options.minWidth < 100 && this.options.resizable) {
117
- console.log("The minWidth when the resizable extension is active should be greater or equal than 100");
118
- this.options.minWidth = 100;
119
- }
120
-
121
- var that = this,
122
- old = {
123
- width: $(window).width(),
124
- height: $(window).height()
125
- };
126
-
127
- $(window).on('resize orientationchange', debounce(function (evt) {
128
- // reset view if height has only changed by at least the threshold.
129
- var height = $(this).height(),
130
- width = $(this).width();
131
-
132
- if (Math.abs(old.height - height) > that.options.heightThreshold || old.width != width) {
133
- changeView(that, width, height);
134
- old = {
135
- width: width,
136
- height: height
137
- };
138
- }
139
- }, 200));
140
-
141
- if (this.options.checkOnInit) {
142
- var height = $(window).height(),
143
- width = $(window).width();
144
- changeView(this, width, height);
145
- old = {
146
- width: width,
147
- height: height
148
- };
149
- }
150
- };
151
- }(jQuery);
152
- });
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('jquery')) :
3
+ typeof define === 'function' && define.amd ? define(['jquery'], factory) :
4
+ (global = global || self, factory(global.jQuery));
5
+ }(this, function ($) { 'use strict';
6
+
7
+ $ = $ && $.hasOwnProperty('default') ? $['default'] : $;
8
+
9
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
10
+
11
+ function createCommonjsModule(fn, module) {
12
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
13
+ }
14
+
15
+ var O = 'object';
16
+ var check = function (it) {
17
+ return it && it.Math == Math && it;
18
+ };
19
+
20
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
21
+ var global_1 =
22
+ // 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) ||
27
+ // eslint-disable-next-line no-new-func
28
+ Function('return this')();
29
+
30
+ var fails = function (exec) {
31
+ try {
32
+ return !!exec();
33
+ } catch (error) {
34
+ return true;
35
+ }
36
+ };
37
+
38
+ // Thank's IE8 for his funny defineProperty
39
+ var descriptors = !fails(function () {
40
+ return Object.defineProperty({}, 'a', { get: function () { return 7; } }).a != 7;
41
+ });
42
+
43
+ var nativePropertyIsEnumerable = {}.propertyIsEnumerable;
44
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
45
+
46
+ // Nashorn ~ JDK8 bug
47
+ var NASHORN_BUG = getOwnPropertyDescriptor && !nativePropertyIsEnumerable.call({ 1: 2 }, 1);
48
+
49
+ // `Object.prototype.propertyIsEnumerable` method implementation
50
+ // https://tc39.github.io/ecma262/#sec-object.prototype.propertyisenumerable
51
+ var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
52
+ var descriptor = getOwnPropertyDescriptor(this, V);
53
+ return !!descriptor && descriptor.enumerable;
54
+ } : nativePropertyIsEnumerable;
55
+
56
+ var objectPropertyIsEnumerable = {
57
+ f: f
58
+ };
59
+
60
+ var createPropertyDescriptor = function (bitmap, value) {
61
+ return {
62
+ enumerable: !(bitmap & 1),
63
+ configurable: !(bitmap & 2),
64
+ writable: !(bitmap & 4),
65
+ value: value
66
+ };
67
+ };
68
+
69
+ var toString = {}.toString;
70
+
71
+ var classofRaw = function (it) {
72
+ return toString.call(it).slice(8, -1);
73
+ };
74
+
75
+ var split = ''.split;
76
+
77
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
78
+ var indexedObject = fails(function () {
79
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
80
+ // eslint-disable-next-line no-prototype-builtins
81
+ return !Object('z').propertyIsEnumerable(0);
82
+ }) ? function (it) {
83
+ return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
84
+ } : Object;
85
+
86
+ // `RequireObjectCoercible` abstract operation
87
+ // https://tc39.github.io/ecma262/#sec-requireobjectcoercible
88
+ var requireObjectCoercible = function (it) {
89
+ if (it == undefined) throw TypeError("Can't call method on " + it);
90
+ return it;
91
+ };
92
+
93
+ // toObject with fallback for non-array-like ES3 strings
94
+
95
+
96
+
97
+ var toIndexedObject = function (it) {
98
+ return indexedObject(requireObjectCoercible(it));
99
+ };
100
+
101
+ var isObject = function (it) {
102
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
103
+ };
104
+
105
+ // `ToPrimitive` abstract operation
106
+ // https://tc39.github.io/ecma262/#sec-toprimitive
107
+ // instead of the ES6 spec version, we didn't implement @@toPrimitive case
108
+ // and the second argument - flag - preferred type is a string
109
+ var toPrimitive = function (input, PREFERRED_STRING) {
110
+ if (!isObject(input)) return input;
111
+ var fn, val;
112
+ if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
113
+ if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
114
+ if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
115
+ throw TypeError("Can't convert object to primitive value");
116
+ };
117
+
118
+ var hasOwnProperty = {}.hasOwnProperty;
119
+
120
+ var has = function (it, key) {
121
+ return hasOwnProperty.call(it, key);
122
+ };
123
+
124
+ var document = global_1.document;
125
+ // typeof document.createElement is 'object' in old IE
126
+ var EXISTS = isObject(document) && isObject(document.createElement);
127
+
128
+ var documentCreateElement = function (it) {
129
+ return EXISTS ? document.createElement(it) : {};
130
+ };
131
+
132
+ // Thank's IE8 for his funny defineProperty
133
+ var ie8DomDefine = !descriptors && !fails(function () {
134
+ return Object.defineProperty(documentCreateElement('div'), 'a', {
135
+ get: function () { return 7; }
136
+ }).a != 7;
137
+ });
138
+
139
+ var nativeGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
140
+
141
+ // `Object.getOwnPropertyDescriptor` method
142
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptor
143
+ var f$1 = descriptors ? nativeGetOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
144
+ O = toIndexedObject(O);
145
+ P = toPrimitive(P, true);
146
+ if (ie8DomDefine) try {
147
+ return nativeGetOwnPropertyDescriptor(O, P);
148
+ } catch (error) { /* empty */ }
149
+ if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
150
+ };
151
+
152
+ var objectGetOwnPropertyDescriptor = {
153
+ f: f$1
154
+ };
155
+
156
+ var anObject = function (it) {
157
+ if (!isObject(it)) {
158
+ throw TypeError(String(it) + ' is not an object');
159
+ } return it;
160
+ };
161
+
162
+ var nativeDefineProperty = Object.defineProperty;
163
+
164
+ // `Object.defineProperty` method
165
+ // https://tc39.github.io/ecma262/#sec-object.defineproperty
166
+ var f$2 = descriptors ? nativeDefineProperty : function defineProperty(O, P, Attributes) {
167
+ anObject(O);
168
+ P = toPrimitive(P, true);
169
+ anObject(Attributes);
170
+ if (ie8DomDefine) try {
171
+ return nativeDefineProperty(O, P, Attributes);
172
+ } catch (error) { /* empty */ }
173
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
174
+ if ('value' in Attributes) O[P] = Attributes.value;
175
+ return O;
176
+ };
177
+
178
+ var objectDefineProperty = {
179
+ f: f$2
180
+ };
181
+
182
+ var hide = descriptors ? function (object, key, value) {
183
+ return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
184
+ } : function (object, key, value) {
185
+ object[key] = value;
186
+ return object;
187
+ };
188
+
189
+ var setGlobal = function (key, value) {
190
+ try {
191
+ hide(global_1, key, value);
192
+ } catch (error) {
193
+ global_1[key] = value;
194
+ } return value;
195
+ };
196
+
197
+ var shared = createCommonjsModule(function (module) {
198
+ var SHARED = '__core-js_shared__';
199
+ var store = global_1[SHARED] || setGlobal(SHARED, {});
200
+
201
+ (module.exports = function (key, value) {
202
+ return store[key] || (store[key] = value !== undefined ? value : {});
203
+ })('versions', []).push({
204
+ version: '3.1.3',
205
+ mode: 'global',
206
+ copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
207
+ });
208
+ });
209
+
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
+ var id = 0;
217
+ var postfix = Math.random();
218
+
219
+ var uid = function (key) {
220
+ return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
221
+ };
222
+
223
+ var keys = shared('keys');
224
+
225
+ var sharedKey = function (key) {
226
+ return keys[key] || (keys[key] = uid(key));
227
+ };
228
+
229
+ var hiddenKeys = {};
230
+
231
+ var WeakMap$1 = global_1.WeakMap;
232
+ var set, get, has$1;
233
+
234
+ var enforce = function (it) {
235
+ return has$1(it) ? get(it) : set(it, {});
236
+ };
237
+
238
+ var getterFor = function (TYPE) {
239
+ return function (it) {
240
+ var state;
241
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
242
+ throw TypeError('Incompatible receiver, ' + TYPE + ' required');
243
+ } return state;
244
+ };
245
+ };
246
+
247
+ if (nativeWeakMap) {
248
+ var store = new WeakMap$1();
249
+ var wmget = store.get;
250
+ var wmhas = store.has;
251
+ var wmset = store.set;
252
+ set = function (it, metadata) {
253
+ wmset.call(store, it, metadata);
254
+ return metadata;
255
+ };
256
+ get = function (it) {
257
+ return wmget.call(store, it) || {};
258
+ };
259
+ has$1 = function (it) {
260
+ return wmhas.call(store, it);
261
+ };
262
+ } else {
263
+ var STATE = sharedKey('state');
264
+ hiddenKeys[STATE] = true;
265
+ set = function (it, metadata) {
266
+ hide(it, STATE, metadata);
267
+ return metadata;
268
+ };
269
+ get = function (it) {
270
+ return has(it, STATE) ? it[STATE] : {};
271
+ };
272
+ has$1 = function (it) {
273
+ return has(it, STATE);
274
+ };
275
+ }
276
+
277
+ var internalState = {
278
+ set: set,
279
+ get: get,
280
+ has: has$1,
281
+ enforce: enforce,
282
+ getterFor: getterFor
283
+ };
284
+
285
+ var redefine = createCommonjsModule(function (module) {
286
+ var getInternalState = internalState.get;
287
+ var enforceInternalState = internalState.enforce;
288
+ var TEMPLATE = String(functionToString).split('toString');
289
+
290
+ shared('inspectSource', function (it) {
291
+ return functionToString.call(it);
292
+ });
293
+
294
+ (module.exports = function (O, key, value, options) {
295
+ var unsafe = options ? !!options.unsafe : false;
296
+ var simple = options ? !!options.enumerable : false;
297
+ var noTargetGet = options ? !!options.noTargetGet : false;
298
+ if (typeof value == 'function') {
299
+ if (typeof key == 'string' && !has(value, 'name')) hide(value, 'name', key);
300
+ enforceInternalState(value).source = TEMPLATE.join(typeof key == 'string' ? key : '');
301
+ }
302
+ if (O === global_1) {
303
+ if (simple) O[key] = value;
304
+ else setGlobal(key, value);
305
+ return;
306
+ } else if (!unsafe) {
307
+ delete O[key];
308
+ } else if (!noTargetGet && O[key]) {
309
+ simple = true;
310
+ }
311
+ if (simple) O[key] = value;
312
+ else hide(O, key, value);
313
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
314
+ })(Function.prototype, 'toString', function toString() {
315
+ return typeof this == 'function' && getInternalState(this).source || functionToString.call(this);
316
+ });
317
+ });
318
+
319
+ var path = global_1;
320
+
321
+ var aFunction = function (variable) {
322
+ return typeof variable == 'function' ? variable : undefined;
323
+ };
324
+
325
+ var getBuiltIn = function (namespace, method) {
326
+ return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
327
+ : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
328
+ };
329
+
330
+ var ceil = Math.ceil;
331
+ var floor = Math.floor;
332
+
333
+ // `ToInteger` abstract operation
334
+ // https://tc39.github.io/ecma262/#sec-tointeger
335
+ var toInteger = function (argument) {
336
+ return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
337
+ };
338
+
339
+ var min = Math.min;
340
+
341
+ // `ToLength` abstract operation
342
+ // https://tc39.github.io/ecma262/#sec-tolength
343
+ var toLength = function (argument) {
344
+ return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
345
+ };
346
+
347
+ var max = Math.max;
348
+ var min$1 = Math.min;
349
+
350
+ // Helper for a popular repeating case of the spec:
351
+ // Let integer be ? ToInteger(index).
352
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(length, length).
353
+ var toAbsoluteIndex = function (index, length) {
354
+ var integer = toInteger(index);
355
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
356
+ };
357
+
358
+ // `Array.prototype.{ indexOf, includes }` methods implementation
359
+ var createMethod = function (IS_INCLUDES) {
360
+ return function ($this, el, fromIndex) {
361
+ var O = toIndexedObject($this);
362
+ var length = toLength(O.length);
363
+ var index = toAbsoluteIndex(fromIndex, length);
364
+ var value;
365
+ // Array#includes uses SameValueZero equality algorithm
366
+ // eslint-disable-next-line no-self-compare
367
+ if (IS_INCLUDES && el != el) while (length > index) {
368
+ value = O[index++];
369
+ // eslint-disable-next-line no-self-compare
370
+ if (value != value) return true;
371
+ // Array#indexOf ignores holes, Array#includes - not
372
+ } else for (;length > index; index++) {
373
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
374
+ } return !IS_INCLUDES && -1;
375
+ };
376
+ };
377
+
378
+ var arrayIncludes = {
379
+ // `Array.prototype.includes` method
380
+ // https://tc39.github.io/ecma262/#sec-array.prototype.includes
381
+ includes: createMethod(true),
382
+ // `Array.prototype.indexOf` method
383
+ // https://tc39.github.io/ecma262/#sec-array.prototype.indexof
384
+ indexOf: createMethod(false)
385
+ };
386
+
387
+ var indexOf = arrayIncludes.indexOf;
388
+
389
+
390
+ var objectKeysInternal = function (object, names) {
391
+ var O = toIndexedObject(object);
392
+ var i = 0;
393
+ var result = [];
394
+ var key;
395
+ for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
396
+ // Don't enum bug & hidden keys
397
+ while (names.length > i) if (has(O, key = names[i++])) {
398
+ ~indexOf(result, key) || result.push(key);
399
+ }
400
+ return result;
401
+ };
402
+
403
+ // IE8- don't enum bug keys
404
+ var enumBugKeys = [
405
+ 'constructor',
406
+ 'hasOwnProperty',
407
+ 'isPrototypeOf',
408
+ 'propertyIsEnumerable',
409
+ 'toLocaleString',
410
+ 'toString',
411
+ 'valueOf'
412
+ ];
413
+
414
+ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
415
+
416
+ // `Object.getOwnPropertyNames` method
417
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
418
+ var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
419
+ return objectKeysInternal(O, hiddenKeys$1);
420
+ };
421
+
422
+ var objectGetOwnPropertyNames = {
423
+ f: f$3
424
+ };
425
+
426
+ var f$4 = Object.getOwnPropertySymbols;
427
+
428
+ var objectGetOwnPropertySymbols = {
429
+ f: f$4
430
+ };
431
+
432
+ // all object keys, includes non-enumerable and symbols
433
+ var ownKeys = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
434
+ var keys = objectGetOwnPropertyNames.f(anObject(it));
435
+ var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
436
+ return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
437
+ };
438
+
439
+ var copyConstructorProperties = function (target, source) {
440
+ var keys = ownKeys(source);
441
+ var defineProperty = objectDefineProperty.f;
442
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
443
+ for (var i = 0; i < keys.length; i++) {
444
+ var key = keys[i];
445
+ if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
446
+ }
447
+ };
448
+
449
+ var replacement = /#|\.prototype\./;
450
+
451
+ var isForced = function (feature, detection) {
452
+ var value = data[normalize(feature)];
453
+ return value == POLYFILL ? true
454
+ : value == NATIVE ? false
455
+ : typeof detection == 'function' ? fails(detection)
456
+ : !!detection;
457
+ };
458
+
459
+ var normalize = isForced.normalize = function (string) {
460
+ return String(string).replace(replacement, '.').toLowerCase();
461
+ };
462
+
463
+ var data = isForced.data = {};
464
+ var NATIVE = isForced.NATIVE = 'N';
465
+ var POLYFILL = isForced.POLYFILL = 'P';
466
+
467
+ var isForced_1 = isForced;
468
+
469
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
470
+
471
+
472
+
473
+
474
+
475
+
476
+ /*
477
+ options.target - name of the target object
478
+ options.global - target is the global object
479
+ options.stat - export as static methods of target
480
+ options.proto - export as prototype methods of target
481
+ options.real - real prototype method for the `pure` version
482
+ options.forced - export even if the native feature is available
483
+ options.bind - bind methods to the target, required for the `pure` version
484
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
485
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
486
+ options.sham - add a flag to not completely full polyfills
487
+ options.enumerable - export as enumerable property
488
+ options.noTargetGet - prevent calling a getter on target
489
+ */
490
+ var _export = function (options, source) {
491
+ var TARGET = options.target;
492
+ var GLOBAL = options.global;
493
+ var STATIC = options.stat;
494
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
495
+ if (GLOBAL) {
496
+ target = global_1;
497
+ } else if (STATIC) {
498
+ target = global_1[TARGET] || setGlobal(TARGET, {});
499
+ } else {
500
+ target = (global_1[TARGET] || {}).prototype;
501
+ }
502
+ if (target) for (key in source) {
503
+ sourceProperty = source[key];
504
+ if (options.noTargetGet) {
505
+ descriptor = getOwnPropertyDescriptor$1(target, key);
506
+ targetProperty = descriptor && descriptor.value;
507
+ } else targetProperty = target[key];
508
+ FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
509
+ // contained in target
510
+ if (!FORCED && targetProperty !== undefined) {
511
+ if (typeof sourceProperty === typeof targetProperty) continue;
512
+ copyConstructorProperties(sourceProperty, targetProperty);
513
+ }
514
+ // add a flag to not completely full polyfills
515
+ if (options.sham || (targetProperty && targetProperty.sham)) {
516
+ hide(sourceProperty, 'sham', true);
517
+ }
518
+ // extend global
519
+ redefine(target, key, sourceProperty, options);
520
+ }
521
+ };
522
+
523
+ // `IsArray` abstract operation
524
+ // https://tc39.github.io/ecma262/#sec-isarray
525
+ var isArray = Array.isArray || function isArray(arg) {
526
+ return classofRaw(arg) == 'Array';
527
+ };
528
+
529
+ // `ToObject` abstract operation
530
+ // https://tc39.github.io/ecma262/#sec-toobject
531
+ var toObject = function (argument) {
532
+ return Object(requireObjectCoercible(argument));
533
+ };
534
+
535
+ var createProperty = function (object, key, value) {
536
+ var propertyKey = toPrimitive(key);
537
+ if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
538
+ else object[propertyKey] = value;
539
+ };
540
+
541
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
542
+ // Chrome 38 Symbol has incorrect toString conversion
543
+ // eslint-disable-next-line no-undef
544
+ return !String(Symbol());
545
+ });
546
+
547
+ var Symbol$1 = global_1.Symbol;
548
+ var store$1 = shared('wks');
549
+
550
+ var wellKnownSymbol = function (name) {
551
+ return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
552
+ || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
553
+ };
554
+
555
+ var SPECIES = wellKnownSymbol('species');
556
+
557
+ // `ArraySpeciesCreate` abstract operation
558
+ // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
559
+ var arraySpeciesCreate = function (originalArray, length) {
560
+ var C;
561
+ if (isArray(originalArray)) {
562
+ C = originalArray.constructor;
563
+ // cross-realm fallback
564
+ if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
565
+ else if (isObject(C)) {
566
+ C = C[SPECIES];
567
+ if (C === null) C = undefined;
568
+ }
569
+ } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
570
+ };
571
+
572
+ var SPECIES$1 = wellKnownSymbol('species');
573
+
574
+ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
575
+ return !fails(function () {
576
+ var array = [];
577
+ var constructor = array.constructor = {};
578
+ constructor[SPECIES$1] = function () {
579
+ return { foo: 1 };
580
+ };
581
+ return array[METHOD_NAME](Boolean).foo !== 1;
582
+ });
583
+ };
584
+
585
+ var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
586
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
587
+ var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
588
+
589
+ var IS_CONCAT_SPREADABLE_SUPPORT = !fails(function () {
590
+ var array = [];
591
+ array[IS_CONCAT_SPREADABLE] = false;
592
+ return array.concat()[0] !== array;
593
+ });
594
+
595
+ var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
596
+
597
+ var isConcatSpreadable = function (O) {
598
+ if (!isObject(O)) return false;
599
+ var spreadable = O[IS_CONCAT_SPREADABLE];
600
+ return spreadable !== undefined ? !!spreadable : isArray(O);
601
+ };
602
+
603
+ var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
604
+
605
+ // `Array.prototype.concat` method
606
+ // https://tc39.github.io/ecma262/#sec-array.prototype.concat
607
+ // with adding support of @@isConcatSpreadable and @@species
608
+ _export({ target: 'Array', proto: true, forced: FORCED }, {
609
+ concat: function concat(arg) { // eslint-disable-line no-unused-vars
610
+ var O = toObject(this);
611
+ var A = arraySpeciesCreate(O, 0);
612
+ var n = 0;
613
+ var i, k, length, len, E;
614
+ for (i = -1, length = arguments.length; i < length; i++) {
615
+ E = i === -1 ? O : arguments[i];
616
+ if (isConcatSpreadable(E)) {
617
+ len = toLength(E.length);
618
+ if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
619
+ for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
620
+ } else {
621
+ if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
622
+ createProperty(A, n++, E);
623
+ }
624
+ }
625
+ A.length = n;
626
+ return A;
627
+ }
628
+ });
629
+
630
+ // `Object.keys` method
631
+ // https://tc39.github.io/ecma262/#sec-object.keys
632
+ var objectKeys = Object.keys || function keys(O) {
633
+ return objectKeysInternal(O, enumBugKeys);
634
+ };
635
+
636
+ // `Object.defineProperties` method
637
+ // https://tc39.github.io/ecma262/#sec-object.defineproperties
638
+ var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
639
+ anObject(O);
640
+ var keys = objectKeys(Properties);
641
+ var length = keys.length;
642
+ var index = 0;
643
+ var key;
644
+ while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
645
+ return O;
646
+ };
647
+
648
+ var html = getBuiltIn('document', 'documentElement');
649
+
650
+ var IE_PROTO = sharedKey('IE_PROTO');
651
+
652
+ var PROTOTYPE = 'prototype';
653
+ var Empty = function () { /* empty */ };
654
+
655
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
656
+ var createDict = function () {
657
+ // Thrash, waste and sodomy: IE GC bug
658
+ var iframe = documentCreateElement('iframe');
659
+ var length = enumBugKeys.length;
660
+ var lt = '<';
661
+ var script = 'script';
662
+ var gt = '>';
663
+ var js = 'java' + script + ':';
664
+ var iframeDocument;
665
+ iframe.style.display = 'none';
666
+ html.appendChild(iframe);
667
+ iframe.src = String(js);
668
+ iframeDocument = iframe.contentWindow.document;
669
+ iframeDocument.open();
670
+ iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
671
+ iframeDocument.close();
672
+ createDict = iframeDocument.F;
673
+ while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
674
+ return createDict();
675
+ };
676
+
677
+ // `Object.create` method
678
+ // https://tc39.github.io/ecma262/#sec-object.create
679
+ var objectCreate = Object.create || function create(O, Properties) {
680
+ var result;
681
+ if (O !== null) {
682
+ Empty[PROTOTYPE] = anObject(O);
683
+ result = new Empty();
684
+ Empty[PROTOTYPE] = null;
685
+ // add "__proto__" for Object.getPrototypeOf polyfill
686
+ result[IE_PROTO] = O;
687
+ } else result = createDict();
688
+ return Properties === undefined ? result : objectDefineProperties(result, Properties);
689
+ };
690
+
691
+ hiddenKeys[IE_PROTO] = true;
692
+
693
+ var UNSCOPABLES = wellKnownSymbol('unscopables');
694
+ var ArrayPrototype = Array.prototype;
695
+
696
+ // Array.prototype[@@unscopables]
697
+ // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
698
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
699
+ hide(ArrayPrototype, UNSCOPABLES, objectCreate(null));
700
+ }
701
+
702
+ // add a key to Array.prototype[@@unscopables]
703
+ var addToUnscopables = function (key) {
704
+ ArrayPrototype[UNSCOPABLES][key] = true;
705
+ };
706
+
707
+ var $includes = arrayIncludes.includes;
708
+
709
+
710
+ // `Array.prototype.includes` method
711
+ // https://tc39.github.io/ecma262/#sec-array.prototype.includes
712
+ _export({ target: 'Array', proto: true }, {
713
+ includes: function includes(el /* , fromIndex = 0 */) {
714
+ return $includes(this, el, arguments.length > 1 ? arguments[1] : undefined);
715
+ }
716
+ });
717
+
718
+ // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
719
+ addToUnscopables('includes');
720
+
721
+ var MATCH = wellKnownSymbol('match');
722
+
723
+ // `IsRegExp` abstract operation
724
+ // https://tc39.github.io/ecma262/#sec-isregexp
725
+ var isRegexp = function (it) {
726
+ var isRegExp;
727
+ return isObject(it) && ((isRegExp = it[MATCH]) !== undefined ? !!isRegExp : classofRaw(it) == 'RegExp');
728
+ };
729
+
730
+ var notARegexp = function (it) {
731
+ if (isRegexp(it)) {
732
+ throw TypeError("The method doesn't accept regular expressions");
733
+ } return it;
734
+ };
735
+
736
+ var MATCH$1 = wellKnownSymbol('match');
737
+
738
+ var correctIsRegexpLogic = function (METHOD_NAME) {
739
+ var regexp = /./;
740
+ try {
741
+ '/./'[METHOD_NAME](regexp);
742
+ } catch (e) {
743
+ try {
744
+ regexp[MATCH$1] = false;
745
+ return '/./'[METHOD_NAME](regexp);
746
+ } catch (f) { /* empty */ }
747
+ } return false;
748
+ };
749
+
750
+ // `String.prototype.includes` method
751
+ // https://tc39.github.io/ecma262/#sec-string.prototype.includes
752
+ _export({ target: 'String', proto: true, forced: !correctIsRegexpLogic('includes') }, {
753
+ includes: function includes(searchString /* , position = 0 */) {
754
+ return !!~String(requireObjectCoercible(this))
755
+ .indexOf(notARegexp(searchString), arguments.length > 1 ? arguments[1] : undefined);
756
+ }
757
+ });
758
+
759
+ // iterable DOM collections
760
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
761
+ var domIterables = {
762
+ CSSRuleList: 0,
763
+ CSSStyleDeclaration: 0,
764
+ CSSValueList: 0,
765
+ ClientRectList: 0,
766
+ DOMRectList: 0,
767
+ DOMStringList: 0,
768
+ DOMTokenList: 1,
769
+ DataTransferItemList: 0,
770
+ FileList: 0,
771
+ HTMLAllCollection: 0,
772
+ HTMLCollection: 0,
773
+ HTMLFormElement: 0,
774
+ HTMLSelectElement: 0,
775
+ MediaList: 0,
776
+ MimeTypeArray: 0,
777
+ NamedNodeMap: 0,
778
+ NodeList: 1,
779
+ PaintRequestList: 0,
780
+ Plugin: 0,
781
+ PluginArray: 0,
782
+ SVGLengthList: 0,
783
+ SVGNumberList: 0,
784
+ SVGPathSegList: 0,
785
+ SVGPointList: 0,
786
+ SVGStringList: 0,
787
+ SVGTransformList: 0,
788
+ SourceBufferList: 0,
789
+ StyleSheetList: 0,
790
+ TextTrackCueList: 0,
791
+ TextTrackList: 0,
792
+ TouchList: 0
793
+ };
794
+
795
+ var aFunction$1 = function (it) {
796
+ if (typeof it != 'function') {
797
+ throw TypeError(String(it) + ' is not a function');
798
+ } return it;
799
+ };
800
+
801
+ // optional / simple context binding
802
+ var bindContext = function (fn, that, length) {
803
+ aFunction$1(fn);
804
+ if (that === undefined) return fn;
805
+ switch (length) {
806
+ case 0: return function () {
807
+ return fn.call(that);
808
+ };
809
+ case 1: return function (a) {
810
+ return fn.call(that, a);
811
+ };
812
+ case 2: return function (a, b) {
813
+ return fn.call(that, a, b);
814
+ };
815
+ case 3: return function (a, b, c) {
816
+ return fn.call(that, a, b, c);
817
+ };
818
+ }
819
+ return function (/* ...args */) {
820
+ return fn.apply(that, arguments);
821
+ };
822
+ };
823
+
824
+ var push = [].push;
825
+
826
+ // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
827
+ var createMethod$1 = function (TYPE) {
828
+ var IS_MAP = TYPE == 1;
829
+ var IS_FILTER = TYPE == 2;
830
+ var IS_SOME = TYPE == 3;
831
+ var IS_EVERY = TYPE == 4;
832
+ var IS_FIND_INDEX = TYPE == 6;
833
+ var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
834
+ return function ($this, callbackfn, that, specificCreate) {
835
+ var O = toObject($this);
836
+ var self = indexedObject(O);
837
+ var boundFunction = bindContext(callbackfn, that, 3);
838
+ var length = toLength(self.length);
839
+ var index = 0;
840
+ var create = specificCreate || arraySpeciesCreate;
841
+ var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
842
+ var value, result;
843
+ for (;length > index; index++) if (NO_HOLES || index in self) {
844
+ value = self[index];
845
+ result = boundFunction(value, index, O);
846
+ if (TYPE) {
847
+ if (IS_MAP) target[index] = result; // map
848
+ else if (result) switch (TYPE) {
849
+ case 3: return true; // some
850
+ case 5: return value; // find
851
+ case 6: return index; // findIndex
852
+ case 2: push.call(target, value); // filter
853
+ } else if (IS_EVERY) return false; // every
854
+ }
855
+ }
856
+ return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
857
+ };
858
+ };
859
+
860
+ var arrayIteration = {
861
+ // `Array.prototype.forEach` method
862
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
863
+ forEach: createMethod$1(0),
864
+ // `Array.prototype.map` method
865
+ // https://tc39.github.io/ecma262/#sec-array.prototype.map
866
+ map: createMethod$1(1),
867
+ // `Array.prototype.filter` method
868
+ // https://tc39.github.io/ecma262/#sec-array.prototype.filter
869
+ filter: createMethod$1(2),
870
+ // `Array.prototype.some` method
871
+ // https://tc39.github.io/ecma262/#sec-array.prototype.some
872
+ some: createMethod$1(3),
873
+ // `Array.prototype.every` method
874
+ // https://tc39.github.io/ecma262/#sec-array.prototype.every
875
+ every: createMethod$1(4),
876
+ // `Array.prototype.find` method
877
+ // https://tc39.github.io/ecma262/#sec-array.prototype.find
878
+ find: createMethod$1(5),
879
+ // `Array.prototype.findIndex` method
880
+ // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
881
+ findIndex: createMethod$1(6)
882
+ };
883
+
884
+ var sloppyArrayMethod = function (METHOD_NAME, argument) {
885
+ var method = [][METHOD_NAME];
886
+ return !method || !fails(function () {
887
+ // eslint-disable-next-line no-useless-call,no-throw-literal
888
+ method.call(null, argument || function () { throw 1; }, 1);
889
+ });
890
+ };
891
+
892
+ var $forEach = arrayIteration.forEach;
893
+
894
+
895
+ // `Array.prototype.forEach` method implementation
896
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
897
+ var arrayForEach = sloppyArrayMethod('forEach') ? function forEach(callbackfn /* , thisArg */) {
898
+ return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
899
+ } : [].forEach;
900
+
901
+ for (var COLLECTION_NAME in domIterables) {
902
+ var Collection = global_1[COLLECTION_NAME];
903
+ var CollectionPrototype = Collection && Collection.prototype;
904
+ // some Chrome versions have non-configurable methods on DOMTokenList
905
+ if (CollectionPrototype && CollectionPrototype.forEach !== arrayForEach) try {
906
+ hide(CollectionPrototype, 'forEach', arrayForEach);
907
+ } catch (error) {
908
+ CollectionPrototype.forEach = arrayForEach;
909
+ }
910
+ }
911
+
912
+ function _classCallCheck(instance, Constructor) {
913
+ if (!(instance instanceof Constructor)) {
914
+ throw new TypeError("Cannot call a class as a function");
915
+ }
916
+ }
917
+
918
+ function _defineProperties(target, props) {
919
+ for (var i = 0; i < props.length; i++) {
920
+ var descriptor = props[i];
921
+ descriptor.enumerable = descriptor.enumerable || false;
922
+ descriptor.configurable = true;
923
+ if ("value" in descriptor) descriptor.writable = true;
924
+ Object.defineProperty(target, descriptor.key, descriptor);
925
+ }
926
+ }
927
+
928
+ function _createClass(Constructor, protoProps, staticProps) {
929
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
930
+ if (staticProps) _defineProperties(Constructor, staticProps);
931
+ return Constructor;
932
+ }
933
+
934
+ function _inherits(subClass, superClass) {
935
+ if (typeof superClass !== "function" && superClass !== null) {
936
+ throw new TypeError("Super expression must either be null or a function");
937
+ }
938
+
939
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
940
+ constructor: {
941
+ value: subClass,
942
+ writable: true,
943
+ configurable: true
944
+ }
945
+ });
946
+ if (superClass) _setPrototypeOf(subClass, superClass);
947
+ }
948
+
949
+ function _getPrototypeOf(o) {
950
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
951
+ return o.__proto__ || Object.getPrototypeOf(o);
952
+ };
953
+ return _getPrototypeOf(o);
954
+ }
955
+
956
+ function _setPrototypeOf(o, p) {
957
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
958
+ o.__proto__ = p;
959
+ return o;
960
+ };
961
+
962
+ return _setPrototypeOf(o, p);
963
+ }
964
+
965
+ function _assertThisInitialized(self) {
966
+ if (self === void 0) {
967
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
968
+ }
969
+
970
+ return self;
971
+ }
972
+
973
+ function _possibleConstructorReturn(self, call) {
974
+ if (call && (typeof call === "object" || typeof call === "function")) {
975
+ return call;
976
+ }
977
+
978
+ return _assertThisInitialized(self);
979
+ }
980
+
981
+ function _superPropBase(object, property) {
982
+ while (!Object.prototype.hasOwnProperty.call(object, property)) {
983
+ object = _getPrototypeOf(object);
984
+ if (object === null) break;
985
+ }
986
+
987
+ return object;
988
+ }
989
+
990
+ function _get(target, property, receiver) {
991
+ if (typeof Reflect !== "undefined" && Reflect.get) {
992
+ _get = Reflect.get;
993
+ } else {
994
+ _get = function _get(target, property, receiver) {
995
+ var base = _superPropBase(target, property);
996
+
997
+ if (!base) return;
998
+ var desc = Object.getOwnPropertyDescriptor(base, property);
999
+
1000
+ if (desc.get) {
1001
+ return desc.get.call(receiver);
1002
+ }
1003
+
1004
+ return desc.value;
1005
+ };
1006
+ }
1007
+
1008
+ return _get(target, property, receiver || target);
1009
+ }
1010
+
1011
+ /**
1012
+ * @author: Dennis Hernández
1013
+ * @webSite: http://djhvscf.github.io/Blog
1014
+ * @update zhixin wen <wenzhixin2010@gmail.com>
1015
+ */
1016
+
1017
+ var debounce = function debounce(func, wait) {
1018
+ var timeout = 0;
1019
+ return function () {
1020
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1021
+ args[_key] = arguments[_key];
1022
+ }
1023
+
1024
+ var later = function later() {
1025
+ timeout = 0;
1026
+ func.apply(void 0, args);
1027
+ };
1028
+
1029
+ clearTimeout(timeout);
1030
+ timeout = setTimeout(later, wait);
1031
+ };
1032
+ };
1033
+
1034
+ $.extend($.fn.bootstrapTable.defaults, {
1035
+ mobileResponsive: false,
1036
+ minWidth: 562,
1037
+ minHeight: undefined,
1038
+ heightThreshold: 100,
1039
+ // just slightly larger than mobile chrome's auto-hiding toolbar
1040
+ checkOnInit: true,
1041
+ columnsHidden: []
1042
+ });
1043
+
1044
+ $.BootstrapTable =
1045
+ /*#__PURE__*/
1046
+ function (_$$BootstrapTable) {
1047
+ _inherits(_class, _$$BootstrapTable);
1048
+
1049
+ function _class() {
1050
+ _classCallCheck(this, _class);
1051
+
1052
+ return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments));
1053
+ }
1054
+
1055
+ _createClass(_class, [{
1056
+ key: "init",
1057
+ value: function init() {
1058
+ var _get2,
1059
+ _this = this;
1060
+
1061
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1062
+ args[_key2] = arguments[_key2];
1063
+ }
1064
+
1065
+ (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
1066
+
1067
+ if (!this.options.mobileResponsive || !this.options.minWidth) {
1068
+ return;
1069
+ }
1070
+
1071
+ if (this.options.minWidth < 100 && this.options.resizable) {
1072
+ console.info('The minWidth when the resizable extension is active should be greater or equal than 100');
1073
+ this.options.minWidth = 100;
1074
+ }
1075
+
1076
+ var old = {
1077
+ width: $(window).width(),
1078
+ height: $(window).height()
1079
+ };
1080
+ $(window).on('resize orientationchange', debounce(function () {
1081
+ // reset view if height has only changed by at least the threshold.
1082
+ var width = $(window).width();
1083
+ var height = $(window).height();
1084
+
1085
+ if (Math.abs(old.height - height) > _this.options.heightThreshold || old.width !== width) {
1086
+ _this.changeView(width, height);
1087
+
1088
+ old = {
1089
+ width: width,
1090
+ height: height
1091
+ };
1092
+ }
1093
+ }, 200));
1094
+
1095
+ if (this.options.checkOnInit) {
1096
+ var width = $(window).width();
1097
+ var height = $(window).height();
1098
+ this.changeView(width, height);
1099
+ old = {
1100
+ width: width,
1101
+ height: height
1102
+ };
1103
+ }
1104
+ }
1105
+ }, {
1106
+ key: "conditionCardView",
1107
+ value: function conditionCardView() {
1108
+ this.changeTableView(false);
1109
+ this.showHideColumns(false);
1110
+ }
1111
+ }, {
1112
+ key: "conditionFullView",
1113
+ value: function conditionFullView() {
1114
+ this.changeTableView(true);
1115
+ this.showHideColumns(true);
1116
+ }
1117
+ }, {
1118
+ key: "changeTableView",
1119
+ value: function changeTableView(cardViewState) {
1120
+ this.options.cardView = cardViewState;
1121
+ this.toggleView();
1122
+ }
1123
+ }, {
1124
+ key: "showHideColumns",
1125
+ value: function showHideColumns(checked) {
1126
+ var _this2 = this;
1127
+
1128
+ if (this.options.columnsHidden.length > 0) {
1129
+ this.columns.forEach(function (column) {
1130
+ if (_this2.options.columnsHidden.includes(column.field)) {
1131
+ if (column.visible !== checked) {
1132
+ _this2._toggleColumn(_this2.fieldsColumnsIndex[column.field], checked, true);
1133
+ }
1134
+ }
1135
+ });
1136
+ }
1137
+ }
1138
+ }, {
1139
+ key: "changeView",
1140
+ value: function changeView(width, height) {
1141
+ if (this.options.minHeight) {
1142
+ if (width <= this.options.minWidth && height <= this.options.minHeight) {
1143
+ this.conditionCardView();
1144
+ } else if (width > this.options.minWidth && height > this.options.minHeight) {
1145
+ this.conditionFullView();
1146
+ }
1147
+ } else {
1148
+ if (width <= this.options.minWidth) {
1149
+ this.conditionCardView();
1150
+ } else if (width > this.options.minWidth) {
1151
+ this.conditionFullView();
1152
+ }
1153
+ }
1154
+
1155
+ this.resetView();
1156
+ }
1157
+ }]);
1158
+
1159
+ return _class;
1160
+ }($.BootstrapTable);
1161
+
1162
+ }));