bootstrap-table-rails 1.11.1.1 → 1.15.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (195) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +152 -98
  3. data/lib/bootstrap-table-rails/version.rb +1 -1
  4. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table-locale-all.js +5196 -0
  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 +296 -0
  8. data/vendor/assets/javascripts/bootstrap-table/bootstrap-table.js +6924 -0
  9. data/vendor/assets/javascripts/bootstrap-table/extensions/accent-neutralise/bootstrap-table-accent-neutralise.js +1757 -0
  10. data/vendor/assets/javascripts/bootstrap-table/extensions/addrbar/bootstrap-table-addrbar.js +1485 -0
  11. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.css +3 -0
  12. data/vendor/assets/javascripts/bootstrap-table/extensions/auto-refresh/bootstrap-table-auto-refresh.js +1020 -0
  13. data/vendor/assets/javascripts/bootstrap-table/extensions/cell-input/bootstrap-table-cell-input.css +12 -0
  14. data/vendor/assets/javascripts/bootstrap-table/extensions/cell-input/bootstrap-table-cell-input.js +2087 -0
  15. data/vendor/assets/javascripts/bootstrap-table/extensions/cookie/bootstrap-table-cookie.js +1934 -0
  16. data/vendor/assets/javascripts/bootstrap-table/extensions/copy-rows/bootstrap-table-copy-rows.js +1042 -0
  17. data/vendor/assets/javascripts/bootstrap-table/extensions/defer-url/bootstrap-table-defer-url.js +779 -0
  18. data/vendor/assets/javascripts/bootstrap-table/extensions/editable/bootstrap-table-editable.js +1451 -0
  19. data/vendor/assets/javascripts/bootstrap-table/extensions/export/bootstrap-table-export.js +2494 -0
  20. data/vendor/assets/{stylesheets/extensions → javascripts/bootstrap-table/extensions/filter-control}/bootstrap-table-filter-control.css +3 -3
  21. data/vendor/assets/javascripts/bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.js +2502 -0
  22. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.css +27 -0
  23. data/vendor/assets/javascripts/bootstrap-table/extensions/fixed-columns/bootstrap-table-fixed-columns.js +1378 -0
  24. data/vendor/assets/{stylesheets/extensions → javascripts/bootstrap-table/extensions/group-by}/bootstrap-table-group-by.css +0 -0
  25. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by/bootstrap-table-group-by.js +257 -0
  26. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.css +7 -0
  27. data/vendor/assets/javascripts/bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.js +1478 -0
  28. data/vendor/assets/javascripts/bootstrap-table/extensions/i18n-enhance/bootstrap-table-i18n-enhance.js +125 -0
  29. data/vendor/assets/javascripts/bootstrap-table/extensions/key-events/bootstrap-table-key-events.js +1243 -0
  30. data/vendor/assets/javascripts/bootstrap-table/extensions/mobile/bootstrap-table-mobile.js +1162 -0
  31. data/vendor/assets/javascripts/bootstrap-table/extensions/multi-column-toggle/bootstrap-table-multi-toggle.js +105 -0
  32. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-search/bootstrap-table-multiple-search.js +85 -0
  33. data/vendor/assets/{stylesheets/extensions → javascripts/bootstrap-table/extensions/multiple-selection-row}/bootstrap-table-multiple-selection-row.css +0 -0
  34. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-selection-row/bootstrap-table-multiple-selection-row.js +143 -0
  35. data/vendor/assets/javascripts/bootstrap-table/extensions/multiple-sort/bootstrap-table-multiple-sort.js +1905 -0
  36. data/vendor/assets/javascripts/bootstrap-table/extensions/natural-sorting/bootstrap-table-natural-sorting.js +1265 -0
  37. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.css +11 -0
  38. data/vendor/assets/javascripts/bootstrap-table/extensions/page-jump-to/bootstrap-table-page-jump-to.js +971 -0
  39. data/vendor/assets/javascripts/bootstrap-table/extensions/pipeline/bootstrap-table-pipeline.js +1128 -0
  40. data/vendor/assets/javascripts/bootstrap-table/extensions/print/bootstrap-table-print.js +1960 -0
  41. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-columns/bootstrap-table-reorder-columns.js +1015 -0
  42. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.css +14 -0
  43. data/vendor/assets/javascripts/bootstrap-table/extensions/reorder-rows/bootstrap-table-reorder-rows.js +774 -0
  44. data/vendor/assets/javascripts/bootstrap-table/extensions/resizable/bootstrap-table-resizable.js +676 -0
  45. data/vendor/assets/javascripts/bootstrap-table/extensions/select2-filter/bootstrap-table-select2-filter.js +341 -0
  46. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.css +22 -0
  47. data/vendor/assets/javascripts/bootstrap-table/extensions/sticky-header/bootstrap-table-sticky-header.js +1019 -0
  48. data/vendor/assets/javascripts/bootstrap-table/extensions/toolbar/bootstrap-table-toolbar.js +2297 -0
  49. data/vendor/assets/{stylesheets/extensions → javascripts/bootstrap-table/extensions/tree-column}/bootstrap-table-tree-column.css +0 -0
  50. data/vendor/assets/javascripts/bootstrap-table/extensions/tree-column/bootstrap-table-tree-column.js +142 -0
  51. data/vendor/assets/javascripts/bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.js +1817 -0
  52. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-af-ZA.js +721 -0
  53. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ar-SA.js +722 -0
  54. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ca-ES.js +722 -0
  55. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-cs-CZ.js +722 -0
  56. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-da-DK.js +721 -0
  57. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-de-DE.js +721 -0
  58. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-el-GR.js +721 -0
  59. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-en-US.js +721 -0
  60. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-AR.js +721 -0
  61. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CL.js +722 -0
  62. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-CR.js +721 -0
  63. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-ES.js +721 -0
  64. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-MX.js +723 -0
  65. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-NI.js +721 -0
  66. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-es-SP.js +721 -0
  67. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-et-EE.js +721 -0
  68. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-eu-EU.js +721 -0
  69. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fa-IR.js +721 -0
  70. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fi-FI.js +721 -0
  71. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-BE.js +722 -0
  72. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-CH.js +721 -0
  73. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-FR.js +723 -0
  74. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-fr-LU.js +721 -0
  75. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-he-IL.js +721 -0
  76. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hr-HR.js +722 -0
  77. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-hu-HU.js +721 -0
  78. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-id-ID.js +721 -0
  79. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-it-IT.js +723 -0
  80. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ja-JP.js +721 -0
  81. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ka-GE.js +721 -0
  82. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ko-KR.js +721 -0
  83. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ms-MY.js +721 -0
  84. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nb-NO.js +721 -0
  85. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-BE.js +721 -0
  86. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-nl-NL.js +722 -0
  87. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pl-PL.js +721 -0
  88. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-BR.js +723 -0
  89. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-pt-PT.js +721 -0
  90. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ro-RO.js +721 -0
  91. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ru-RU.js +721 -0
  92. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sk-SK.js +721 -0
  93. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-sv-SE.js +721 -0
  94. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-th-TH.js +721 -0
  95. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-tr-TR.js +722 -0
  96. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uk-UA.js +721 -0
  97. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-ur-PK.js +721 -0
  98. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-uz-Latn-UZ.js +721 -0
  99. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-vi-VN.js +721 -0
  100. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-CN.js +721 -0
  101. data/vendor/assets/javascripts/bootstrap-table/locale/bootstrap-table-zh-TW.js +721 -0
  102. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.css +352 -0
  103. data/vendor/assets/javascripts/bootstrap-table/themes/bulma/bootstrap-table-bulma.js +943 -0
  104. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.css +329 -0
  105. data/vendor/assets/javascripts/bootstrap-table/themes/foundation/bootstrap-table-foundation.js +950 -0
  106. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.css +326 -0
  107. data/vendor/assets/javascripts/bootstrap-table/themes/materialize/bootstrap-table-materialize.js +946 -0
  108. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.css +336 -0
  109. data/vendor/assets/javascripts/bootstrap-table/themes/semantic/bootstrap-table-semantic.js +920 -0
  110. metadata +112 -96
  111. data/vendor/assets/images/icon.png +0 -0
  112. data/vendor/assets/javascripts/bootstrap-table-locale-all.js +0 -1698
  113. data/vendor/assets/javascripts/bootstrap-table.js +0 -3094
  114. data/vendor/assets/javascripts/extensions/bootstrap-table-accent-neutralise.js +0 -182
  115. data/vendor/assets/javascripts/extensions/bootstrap-table-angular.js +0 -107
  116. data/vendor/assets/javascripts/extensions/bootstrap-table-auto-refresh.js +0 -84
  117. data/vendor/assets/javascripts/extensions/bootstrap-table-click-edit-row.js +0 -142
  118. data/vendor/assets/javascripts/extensions/bootstrap-table-cookie.js +0 -434
  119. data/vendor/assets/javascripts/extensions/bootstrap-table-copy-rows.js +0 -102
  120. data/vendor/assets/javascripts/extensions/bootstrap-table-editable.js +0 -146
  121. data/vendor/assets/javascripts/extensions/bootstrap-table-export.js +0 -131
  122. data/vendor/assets/javascripts/extensions/bootstrap-table-filter-control.js +0 -697
  123. data/vendor/assets/javascripts/extensions/bootstrap-table-filter.js +0 -67
  124. data/vendor/assets/javascripts/extensions/bootstrap-table-flat-json.js +0 -62
  125. data/vendor/assets/javascripts/extensions/bootstrap-table-group-by-v2.js +0 -226
  126. data/vendor/assets/javascripts/extensions/bootstrap-table-group-by.js +0 -243
  127. data/vendor/assets/javascripts/extensions/bootstrap-table-i18n-enhance.js +0 -34
  128. data/vendor/assets/javascripts/extensions/bootstrap-table-key-events.js +0 -80
  129. data/vendor/assets/javascripts/extensions/bootstrap-table-mobile.js +0 -136
  130. data/vendor/assets/javascripts/extensions/bootstrap-table-multi-toggle.js +0 -88
  131. data/vendor/assets/javascripts/extensions/bootstrap-table-multiple-search.js +0 -71
  132. data/vendor/assets/javascripts/extensions/bootstrap-table-multiple-selection-row.js +0 -127
  133. data/vendor/assets/javascripts/extensions/bootstrap-table-multiple-sort.js +0 -393
  134. data/vendor/assets/javascripts/extensions/bootstrap-table-natural-sorting.js +0 -67
  135. data/vendor/assets/javascripts/extensions/bootstrap-table-print.js +0 -133
  136. data/vendor/assets/javascripts/extensions/bootstrap-table-reorder-columns.js +0 -181
  137. data/vendor/assets/javascripts/extensions/bootstrap-table-reorder-rows.js +0 -118
  138. data/vendor/assets/javascripts/extensions/bootstrap-table-resizable.js +0 -74
  139. data/vendor/assets/javascripts/extensions/bootstrap-table-select2-filter.js +0 -303
  140. data/vendor/assets/javascripts/extensions/bootstrap-table-sticky-header.js +0 -111
  141. data/vendor/assets/javascripts/extensions/bootstrap-table-toolbar.js +0 -211
  142. data/vendor/assets/javascripts/extensions/bootstrap-table-tree-column.js +0 -130
  143. data/vendor/assets/javascripts/locale/README.md +0 -179
  144. data/vendor/assets/javascripts/locale/bootstrap-table-af-ZA.js +0 -40
  145. data/vendor/assets/javascripts/locale/bootstrap-table-ar-SA.js +0 -40
  146. data/vendor/assets/javascripts/locale/bootstrap-table-ca-ES.js +0 -44
  147. data/vendor/assets/javascripts/locale/bootstrap-table-cs-CZ.js +0 -44
  148. data/vendor/assets/javascripts/locale/bootstrap-table-da-DK.js +0 -37
  149. data/vendor/assets/javascripts/locale/bootstrap-table-de-DE.js +0 -43
  150. data/vendor/assets/javascripts/locale/bootstrap-table-el-GR.js +0 -28
  151. data/vendor/assets/javascripts/locale/bootstrap-table-en-US.js +0 -49
  152. data/vendor/assets/javascripts/locale/bootstrap-table-en-US.js.template +0 -49
  153. data/vendor/assets/javascripts/locale/bootstrap-table-es-AR.js +0 -31
  154. data/vendor/assets/javascripts/locale/bootstrap-table-es-CL.js +0 -44
  155. data/vendor/assets/javascripts/locale/bootstrap-table-es-CR.js +0 -40
  156. data/vendor/assets/javascripts/locale/bootstrap-table-es-ES.js +0 -43
  157. data/vendor/assets/javascripts/locale/bootstrap-table-es-MX.js +0 -32
  158. data/vendor/assets/javascripts/locale/bootstrap-table-es-NI.js +0 -40
  159. data/vendor/assets/javascripts/locale/bootstrap-table-es-SP.js +0 -40
  160. data/vendor/assets/javascripts/locale/bootstrap-table-et-EE.js +0 -43
  161. data/vendor/assets/javascripts/locale/bootstrap-table-fa-IR.js +0 -43
  162. data/vendor/assets/javascripts/locale/bootstrap-table-fr-BE.js +0 -28
  163. data/vendor/assets/javascripts/locale/bootstrap-table-fr-FR.js +0 -41
  164. data/vendor/assets/javascripts/locale/bootstrap-table-he-IL.js +0 -43
  165. data/vendor/assets/javascripts/locale/bootstrap-table-hr-HR.js +0 -44
  166. data/vendor/assets/javascripts/locale/bootstrap-table-hu-HU.js +0 -43
  167. data/vendor/assets/javascripts/locale/bootstrap-table-id-ID.js +0 -49
  168. data/vendor/assets/javascripts/locale/bootstrap-table-it-IT.js +0 -52
  169. data/vendor/assets/javascripts/locale/bootstrap-table-ja-JP.js +0 -43
  170. data/vendor/assets/javascripts/locale/bootstrap-table-ka-GE.js +0 -40
  171. data/vendor/assets/javascripts/locale/bootstrap-table-ko-KR.js +0 -37
  172. data/vendor/assets/javascripts/locale/bootstrap-table-ms-MY.js +0 -43
  173. data/vendor/assets/javascripts/locale/bootstrap-table-nb-NO.js +0 -37
  174. data/vendor/assets/javascripts/locale/bootstrap-table-nl-NL.js +0 -52
  175. data/vendor/assets/javascripts/locale/bootstrap-table-pl-PL.js +0 -37
  176. data/vendor/assets/javascripts/locale/bootstrap-table-pt-BR.js +0 -41
  177. data/vendor/assets/javascripts/locale/bootstrap-table-pt-PT.js +0 -43
  178. data/vendor/assets/javascripts/locale/bootstrap-table-ro-RO.js +0 -43
  179. data/vendor/assets/javascripts/locale/bootstrap-table-ru-RU.js +0 -72
  180. data/vendor/assets/javascripts/locale/bootstrap-table-sk-SK.js +0 -37
  181. data/vendor/assets/javascripts/locale/bootstrap-table-sv-SE.js +0 -37
  182. data/vendor/assets/javascripts/locale/bootstrap-table-th-TH.js +0 -37
  183. data/vendor/assets/javascripts/locale/bootstrap-table-tr-TR.js +0 -41
  184. data/vendor/assets/javascripts/locale/bootstrap-table-uk-UA.js +0 -73
  185. data/vendor/assets/javascripts/locale/bootstrap-table-ur-PK.js +0 -37
  186. data/vendor/assets/javascripts/locale/bootstrap-table-uz-Latn-UZ.js +0 -49
  187. data/vendor/assets/javascripts/locale/bootstrap-table-vi-VN.js +0 -28
  188. data/vendor/assets/javascripts/locale/bootstrap-table-zh-CN.js +0 -46
  189. data/vendor/assets/javascripts/locale/bootstrap-table-zh-TW.js +0 -40
  190. data/vendor/assets/stylesheets/bootstrap-table.css +0 -313
  191. data/vendor/assets/stylesheets/extensions/bootstrap-table-auto-refresh.css +0 -3
  192. data/vendor/assets/stylesheets/extensions/bootstrap-table-click-edit-row.css +0 -21
  193. data/vendor/assets/stylesheets/extensions/bootstrap-table-group-by-v2.css +0 -7
  194. data/vendor/assets/stylesheets/extensions/bootstrap-table-reorder-rows.css +0 -14
  195. data/vendor/assets/stylesheets/extensions/bootstrap-table-sticky-header.css +0 -22
@@ -0,0 +1,142 @@
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.bootstrapTableTreeColumn = mod.exports;
12
+ }
13
+ })(this, function () {
14
+ 'use strict';
15
+
16
+ /**
17
+ * @author: KingYang
18
+ * @webSite: https://github.com/kingyang
19
+ * @version: v1.0.0
20
+ */
21
+
22
+ !function ($) {
23
+
24
+ 'use strict';
25
+
26
+ $.extend($.fn.bootstrapTable.defaults, {
27
+ treeShowField: null,
28
+ idField: 'id',
29
+ parentIdField: 'pid',
30
+ treeVerticalcls: 'vertical',
31
+ treeVerticalLastcls: 'vertical last',
32
+ treeSpacecls: 'space',
33
+ treeNodecls: 'node',
34
+ treeCellcls: 'treenode',
35
+ treeTextcls: 'text',
36
+ onTreeFormatter: function onTreeFormatter(row) {
37
+ var that = this,
38
+ options = that.options,
39
+ level = row._level || 0,
40
+ plevel = row._parent && row._parent._level || 0,
41
+ paddings = [];
42
+ for (var i = 0; i < plevel; i++) {
43
+ paddings.push('<i class="' + options.treeVerticalcls + '"></i>');
44
+ paddings.push('<i class="' + options.treeSpacecls + '"></i>');
45
+ }
46
+
47
+ for (var i = plevel; i < level; i++) {
48
+ if (row._last && i === level - 1) {
49
+ paddings.push('<i class="' + options.treeVerticalLastcls + '"></i>');
50
+ } else {
51
+ paddings.push('<i class="' + options.treeVerticalcls + '"></i>');
52
+ }
53
+ paddings.push('<i class="' + options.treeNodecls + '"></i>');
54
+ }
55
+ return paddings.join('');
56
+ }, onGetNodes: function onGetNodes(row, data) {
57
+ var that = this;
58
+ var nodes = [];
59
+ $.each(data, function (i, item) {
60
+ if (row[that.options.idField] === item[that.options.parentIdField]) {
61
+ nodes.push(item);
62
+ }
63
+ });
64
+ return nodes;
65
+ },
66
+ onCheckLeaf: function onCheckLeaf(row, data) {
67
+ if (row.isLeaf !== undefined) {
68
+ return row.isLeaf;
69
+ }
70
+ return !row._nodes || !row._nodes.length;
71
+ }, onCheckRoot: function onCheckRoot(row, data) {
72
+ var that = this;
73
+ return !row[that.options.parentIdField];
74
+ }
75
+ });
76
+
77
+ var BootstrapTable = $.fn.bootstrapTable.Constructor,
78
+ _initRow = BootstrapTable.prototype.initRow,
79
+ _initHeader = BootstrapTable.prototype.initHeader;
80
+
81
+ BootstrapTable.prototype.initHeader = function () {
82
+ var that = this;
83
+ _initHeader.apply(that, Array.prototype.slice.apply(arguments));
84
+ var treeShowField = that.options.treeShowField;
85
+ if (treeShowField) {
86
+ $.each(this.header.fields, function (i, field) {
87
+ if (treeShowField === field) {
88
+ that.treeEnable = true;
89
+ var _formatter = that.header.formatters[i];
90
+ var _class = [that.options.treeCellcls];
91
+ if (that.header.classes[i]) {
92
+ _class.push(that.header.classes[i].split('"')[1] || '');
93
+ }
94
+ that.header.classes[i] = ' class="' + _class.join(' ') + '"';
95
+ that.header.formatters[i] = function (value, row, index) {
96
+ var colTree = [that.options.onTreeFormatter.apply(that, [row])];
97
+ colTree.push('<span class="' + that.options.treeTextcls + '">');
98
+ if (_formatter) {
99
+ colTree.push(_formatter.apply(this, Array.prototype.slice.apply(arguments)));
100
+ } else {
101
+ colTree.push(value);
102
+ }
103
+ colTree.push('</span>');
104
+ return colTree.join('');
105
+ };
106
+ return false;
107
+ }
108
+ });
109
+ }
110
+ };
111
+
112
+ var initNode = function initNode(item, idx, data, parentDom) {
113
+ var that = this;
114
+ var nodes = that.options.onGetNodes.apply(that, [item, data]);
115
+ item._nodes = nodes;
116
+ parentDom.append(_initRow.apply(that, [item, idx, data, parentDom]));
117
+ var len = nodes.length - 1;
118
+ for (var i = 0; i <= len; i++) {
119
+ var node = nodes[i];
120
+ node._level = item._level + 1;
121
+ node._parent = item;
122
+ if (i === len) node._last = 1;
123
+ initNode.apply(that, [node, $.inArray(node, data), data, parentDom]);
124
+ }
125
+ };
126
+
127
+ BootstrapTable.prototype.initRow = function (item, idx, data, parentDom) {
128
+ var that = this;
129
+ if (that.treeEnable) {
130
+ if (that.options.onCheckRoot.apply(that, [item, data])) {
131
+ if (item._level === undefined) {
132
+ item._level = 0;
133
+ }
134
+ initNode.apply(that, [item, idx, data, parentDom]);
135
+ return true;
136
+ }
137
+ return false;
138
+ }
139
+ return _initRow.apply(that, Array.prototype.slice.apply(arguments));
140
+ };
141
+ }(jQuery);
142
+ });
@@ -0,0 +1,1817 @@
1
+ (function (global, factory) {
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
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
524
+ // Chrome 38 Symbol has incorrect toString conversion
525
+ // eslint-disable-next-line no-undef
526
+ return !String(Symbol());
527
+ });
528
+
529
+ // `IsArray` abstract operation
530
+ // https://tc39.github.io/ecma262/#sec-isarray
531
+ var isArray = Array.isArray || function isArray(arg) {
532
+ return classofRaw(arg) == 'Array';
533
+ };
534
+
535
+ // `ToObject` abstract operation
536
+ // https://tc39.github.io/ecma262/#sec-toobject
537
+ var toObject = function (argument) {
538
+ return Object(requireObjectCoercible(argument));
539
+ };
540
+
541
+ // `Object.keys` method
542
+ // https://tc39.github.io/ecma262/#sec-object.keys
543
+ var objectKeys = Object.keys || function keys(O) {
544
+ return objectKeysInternal(O, enumBugKeys);
545
+ };
546
+
547
+ // `Object.defineProperties` method
548
+ // https://tc39.github.io/ecma262/#sec-object.defineproperties
549
+ var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
550
+ anObject(O);
551
+ var keys = objectKeys(Properties);
552
+ var length = keys.length;
553
+ var index = 0;
554
+ var key;
555
+ while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
556
+ return O;
557
+ };
558
+
559
+ var html = getBuiltIn('document', 'documentElement');
560
+
561
+ var IE_PROTO = sharedKey('IE_PROTO');
562
+
563
+ var PROTOTYPE = 'prototype';
564
+ var Empty = function () { /* empty */ };
565
+
566
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
567
+ var createDict = function () {
568
+ // Thrash, waste and sodomy: IE GC bug
569
+ var iframe = documentCreateElement('iframe');
570
+ var length = enumBugKeys.length;
571
+ var lt = '<';
572
+ var script = 'script';
573
+ var gt = '>';
574
+ var js = 'java' + script + ':';
575
+ var iframeDocument;
576
+ iframe.style.display = 'none';
577
+ html.appendChild(iframe);
578
+ iframe.src = String(js);
579
+ iframeDocument = iframe.contentWindow.document;
580
+ iframeDocument.open();
581
+ iframeDocument.write(lt + script + gt + 'document.F=Object' + lt + '/' + script + gt);
582
+ iframeDocument.close();
583
+ createDict = iframeDocument.F;
584
+ while (length--) delete createDict[PROTOTYPE][enumBugKeys[length]];
585
+ return createDict();
586
+ };
587
+
588
+ // `Object.create` method
589
+ // https://tc39.github.io/ecma262/#sec-object.create
590
+ var objectCreate = Object.create || function create(O, Properties) {
591
+ var result;
592
+ if (O !== null) {
593
+ Empty[PROTOTYPE] = anObject(O);
594
+ result = new Empty();
595
+ Empty[PROTOTYPE] = null;
596
+ // add "__proto__" for Object.getPrototypeOf polyfill
597
+ result[IE_PROTO] = O;
598
+ } else result = createDict();
599
+ return Properties === undefined ? result : objectDefineProperties(result, Properties);
600
+ };
601
+
602
+ hiddenKeys[IE_PROTO] = true;
603
+
604
+ var nativeGetOwnPropertyNames = objectGetOwnPropertyNames.f;
605
+
606
+ var toString$1 = {}.toString;
607
+
608
+ var windowNames = typeof window == 'object' && window && Object.getOwnPropertyNames
609
+ ? Object.getOwnPropertyNames(window) : [];
610
+
611
+ var getWindowNames = function (it) {
612
+ try {
613
+ return nativeGetOwnPropertyNames(it);
614
+ } catch (error) {
615
+ return windowNames.slice();
616
+ }
617
+ };
618
+
619
+ // fallback for IE11 buggy Object.getOwnPropertyNames with iframe and window
620
+ var f$5 = function getOwnPropertyNames(it) {
621
+ return windowNames && toString$1.call(it) == '[object Window]'
622
+ ? getWindowNames(it)
623
+ : nativeGetOwnPropertyNames(toIndexedObject(it));
624
+ };
625
+
626
+ var objectGetOwnPropertyNamesExternal = {
627
+ f: f$5
628
+ };
629
+
630
+ var Symbol$1 = global_1.Symbol;
631
+ var store$1 = shared('wks');
632
+
633
+ var wellKnownSymbol = function (name) {
634
+ return store$1[name] || (store$1[name] = nativeSymbol && Symbol$1[name]
635
+ || (nativeSymbol ? Symbol$1 : uid)('Symbol.' + name));
636
+ };
637
+
638
+ var f$6 = wellKnownSymbol;
639
+
640
+ var wrappedWellKnownSymbol = {
641
+ f: f$6
642
+ };
643
+
644
+ var defineProperty = objectDefineProperty.f;
645
+
646
+ var defineWellKnownSymbol = function (NAME) {
647
+ var Symbol = path.Symbol || (path.Symbol = {});
648
+ if (!has(Symbol, NAME)) defineProperty(Symbol, NAME, {
649
+ value: wrappedWellKnownSymbol.f(NAME)
650
+ });
651
+ };
652
+
653
+ var defineProperty$1 = objectDefineProperty.f;
654
+
655
+
656
+
657
+ var TO_STRING_TAG = wellKnownSymbol('toStringTag');
658
+
659
+ var setToStringTag = function (it, TAG, STATIC) {
660
+ if (it && !has(it = STATIC ? it : it.prototype, TO_STRING_TAG)) {
661
+ defineProperty$1(it, TO_STRING_TAG, { configurable: true, value: TAG });
662
+ }
663
+ };
664
+
665
+ var aFunction$1 = function (it) {
666
+ if (typeof it != 'function') {
667
+ throw TypeError(String(it) + ' is not a function');
668
+ } return it;
669
+ };
670
+
671
+ // optional / simple context binding
672
+ var bindContext = function (fn, that, length) {
673
+ aFunction$1(fn);
674
+ if (that === undefined) return fn;
675
+ switch (length) {
676
+ case 0: return function () {
677
+ return fn.call(that);
678
+ };
679
+ case 1: return function (a) {
680
+ return fn.call(that, a);
681
+ };
682
+ case 2: return function (a, b) {
683
+ return fn.call(that, a, b);
684
+ };
685
+ case 3: return function (a, b, c) {
686
+ return fn.call(that, a, b, c);
687
+ };
688
+ }
689
+ return function (/* ...args */) {
690
+ return fn.apply(that, arguments);
691
+ };
692
+ };
693
+
694
+ var SPECIES = wellKnownSymbol('species');
695
+
696
+ // `ArraySpeciesCreate` abstract operation
697
+ // https://tc39.github.io/ecma262/#sec-arrayspeciescreate
698
+ var arraySpeciesCreate = function (originalArray, length) {
699
+ var C;
700
+ if (isArray(originalArray)) {
701
+ C = originalArray.constructor;
702
+ // cross-realm fallback
703
+ if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
704
+ else if (isObject(C)) {
705
+ C = C[SPECIES];
706
+ if (C === null) C = undefined;
707
+ }
708
+ } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
709
+ };
710
+
711
+ var push = [].push;
712
+
713
+ // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex }` methods implementation
714
+ var createMethod$1 = function (TYPE) {
715
+ var IS_MAP = TYPE == 1;
716
+ var IS_FILTER = TYPE == 2;
717
+ var IS_SOME = TYPE == 3;
718
+ var IS_EVERY = TYPE == 4;
719
+ var IS_FIND_INDEX = TYPE == 6;
720
+ var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
721
+ return function ($this, callbackfn, that, specificCreate) {
722
+ var O = toObject($this);
723
+ var self = indexedObject(O);
724
+ var boundFunction = bindContext(callbackfn, that, 3);
725
+ var length = toLength(self.length);
726
+ var index = 0;
727
+ var create = specificCreate || arraySpeciesCreate;
728
+ var target = IS_MAP ? create($this, length) : IS_FILTER ? create($this, 0) : undefined;
729
+ var value, result;
730
+ for (;length > index; index++) if (NO_HOLES || index in self) {
731
+ value = self[index];
732
+ result = boundFunction(value, index, O);
733
+ if (TYPE) {
734
+ if (IS_MAP) target[index] = result; // map
735
+ else if (result) switch (TYPE) {
736
+ case 3: return true; // some
737
+ case 5: return value; // find
738
+ case 6: return index; // findIndex
739
+ case 2: push.call(target, value); // filter
740
+ } else if (IS_EVERY) return false; // every
741
+ }
742
+ }
743
+ return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
744
+ };
745
+ };
746
+
747
+ var arrayIteration = {
748
+ // `Array.prototype.forEach` method
749
+ // https://tc39.github.io/ecma262/#sec-array.prototype.foreach
750
+ forEach: createMethod$1(0),
751
+ // `Array.prototype.map` method
752
+ // https://tc39.github.io/ecma262/#sec-array.prototype.map
753
+ map: createMethod$1(1),
754
+ // `Array.prototype.filter` method
755
+ // https://tc39.github.io/ecma262/#sec-array.prototype.filter
756
+ filter: createMethod$1(2),
757
+ // `Array.prototype.some` method
758
+ // https://tc39.github.io/ecma262/#sec-array.prototype.some
759
+ some: createMethod$1(3),
760
+ // `Array.prototype.every` method
761
+ // https://tc39.github.io/ecma262/#sec-array.prototype.every
762
+ every: createMethod$1(4),
763
+ // `Array.prototype.find` method
764
+ // https://tc39.github.io/ecma262/#sec-array.prototype.find
765
+ find: createMethod$1(5),
766
+ // `Array.prototype.findIndex` method
767
+ // https://tc39.github.io/ecma262/#sec-array.prototype.findIndex
768
+ findIndex: createMethod$1(6)
769
+ };
770
+
771
+ var $forEach = arrayIteration.forEach;
772
+
773
+ var HIDDEN = sharedKey('hidden');
774
+ var SYMBOL = 'Symbol';
775
+ var PROTOTYPE$1 = 'prototype';
776
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
777
+ var setInternalState = internalState.set;
778
+ var getInternalState = internalState.getterFor(SYMBOL);
779
+ var ObjectPrototype = Object[PROTOTYPE$1];
780
+ var $Symbol = global_1.Symbol;
781
+ var JSON = global_1.JSON;
782
+ var nativeJSONStringify = JSON && JSON.stringify;
783
+ var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
784
+ var nativeDefineProperty$1 = objectDefineProperty.f;
785
+ var nativeGetOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
786
+ var nativePropertyIsEnumerable$1 = objectPropertyIsEnumerable.f;
787
+ var AllSymbols = shared('symbols');
788
+ var ObjectPrototypeSymbols = shared('op-symbols');
789
+ var StringToSymbolRegistry = shared('string-to-symbol-registry');
790
+ var SymbolToStringRegistry = shared('symbol-to-string-registry');
791
+ var WellKnownSymbolsStore = shared('wks');
792
+ var QObject = global_1.QObject;
793
+ // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
794
+ var USE_SETTER = !QObject || !QObject[PROTOTYPE$1] || !QObject[PROTOTYPE$1].findChild;
795
+
796
+ // fallback for old Android, https://code.google.com/p/v8/issues/detail?id=687
797
+ var setSymbolDescriptor = descriptors && fails(function () {
798
+ return objectCreate(nativeDefineProperty$1({}, 'a', {
799
+ get: function () { return nativeDefineProperty$1(this, 'a', { value: 7 }).a; }
800
+ })).a != 7;
801
+ }) ? function (O, P, Attributes) {
802
+ var ObjectPrototypeDescriptor = nativeGetOwnPropertyDescriptor$1(ObjectPrototype, P);
803
+ if (ObjectPrototypeDescriptor) delete ObjectPrototype[P];
804
+ nativeDefineProperty$1(O, P, Attributes);
805
+ if (ObjectPrototypeDescriptor && O !== ObjectPrototype) {
806
+ nativeDefineProperty$1(ObjectPrototype, P, ObjectPrototypeDescriptor);
807
+ }
808
+ } : nativeDefineProperty$1;
809
+
810
+ var wrap = function (tag, description) {
811
+ var symbol = AllSymbols[tag] = objectCreate($Symbol[PROTOTYPE$1]);
812
+ setInternalState(symbol, {
813
+ type: SYMBOL,
814
+ tag: tag,
815
+ description: description
816
+ });
817
+ if (!descriptors) symbol.description = description;
818
+ return symbol;
819
+ };
820
+
821
+ var isSymbol = nativeSymbol && typeof $Symbol.iterator == 'symbol' ? function (it) {
822
+ return typeof it == 'symbol';
823
+ } : function (it) {
824
+ return Object(it) instanceof $Symbol;
825
+ };
826
+
827
+ var $defineProperty = function defineProperty(O, P, Attributes) {
828
+ if (O === ObjectPrototype) $defineProperty(ObjectPrototypeSymbols, P, Attributes);
829
+ anObject(O);
830
+ var key = toPrimitive(P, true);
831
+ anObject(Attributes);
832
+ if (has(AllSymbols, key)) {
833
+ if (!Attributes.enumerable) {
834
+ if (!has(O, HIDDEN)) nativeDefineProperty$1(O, HIDDEN, createPropertyDescriptor(1, {}));
835
+ O[HIDDEN][key] = true;
836
+ } else {
837
+ if (has(O, HIDDEN) && O[HIDDEN][key]) O[HIDDEN][key] = false;
838
+ Attributes = objectCreate(Attributes, { enumerable: createPropertyDescriptor(0, false) });
839
+ } return setSymbolDescriptor(O, key, Attributes);
840
+ } return nativeDefineProperty$1(O, key, Attributes);
841
+ };
842
+
843
+ var $defineProperties = function defineProperties(O, Properties) {
844
+ anObject(O);
845
+ var properties = toIndexedObject(Properties);
846
+ var keys = objectKeys(properties).concat($getOwnPropertySymbols(properties));
847
+ $forEach(keys, function (key) {
848
+ if (!descriptors || $propertyIsEnumerable.call(properties, key)) $defineProperty(O, key, properties[key]);
849
+ });
850
+ return O;
851
+ };
852
+
853
+ var $create = function create(O, Properties) {
854
+ return Properties === undefined ? objectCreate(O) : $defineProperties(objectCreate(O), Properties);
855
+ };
856
+
857
+ var $propertyIsEnumerable = function propertyIsEnumerable(V) {
858
+ var P = toPrimitive(V, true);
859
+ var enumerable = nativePropertyIsEnumerable$1.call(this, P);
860
+ if (this === ObjectPrototype && has(AllSymbols, P) && !has(ObjectPrototypeSymbols, P)) return false;
861
+ return enumerable || !has(this, P) || !has(AllSymbols, P) || has(this, HIDDEN) && this[HIDDEN][P] ? enumerable : true;
862
+ };
863
+
864
+ var $getOwnPropertyDescriptor = function getOwnPropertyDescriptor(O, P) {
865
+ var it = toIndexedObject(O);
866
+ var key = toPrimitive(P, true);
867
+ if (it === ObjectPrototype && has(AllSymbols, key) && !has(ObjectPrototypeSymbols, key)) return;
868
+ var descriptor = nativeGetOwnPropertyDescriptor$1(it, key);
869
+ if (descriptor && has(AllSymbols, key) && !(has(it, HIDDEN) && it[HIDDEN][key])) {
870
+ descriptor.enumerable = true;
871
+ }
872
+ return descriptor;
873
+ };
874
+
875
+ var $getOwnPropertyNames = function getOwnPropertyNames(O) {
876
+ var names = nativeGetOwnPropertyNames$1(toIndexedObject(O));
877
+ var result = [];
878
+ $forEach(names, function (key) {
879
+ if (!has(AllSymbols, key) && !has(hiddenKeys, key)) result.push(key);
880
+ });
881
+ return result;
882
+ };
883
+
884
+ var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
885
+ var IS_OBJECT_PROTOTYPE = O === ObjectPrototype;
886
+ var names = nativeGetOwnPropertyNames$1(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
887
+ var result = [];
888
+ $forEach(names, function (key) {
889
+ if (has(AllSymbols, key) && (!IS_OBJECT_PROTOTYPE || has(ObjectPrototype, key))) {
890
+ result.push(AllSymbols[key]);
891
+ }
892
+ });
893
+ return result;
894
+ };
895
+
896
+ // `Symbol` constructor
897
+ // https://tc39.github.io/ecma262/#sec-symbol-constructor
898
+ if (!nativeSymbol) {
899
+ $Symbol = function Symbol() {
900
+ if (this instanceof $Symbol) throw TypeError('Symbol is not a constructor');
901
+ var description = !arguments.length || arguments[0] === undefined ? undefined : String(arguments[0]);
902
+ var tag = uid(description);
903
+ var setter = function (value) {
904
+ if (this === ObjectPrototype) setter.call(ObjectPrototypeSymbols, value);
905
+ if (has(this, HIDDEN) && has(this[HIDDEN], tag)) this[HIDDEN][tag] = false;
906
+ setSymbolDescriptor(this, tag, createPropertyDescriptor(1, value));
907
+ };
908
+ if (descriptors && USE_SETTER) setSymbolDescriptor(ObjectPrototype, tag, { configurable: true, set: setter });
909
+ return wrap(tag, description);
910
+ };
911
+
912
+ redefine($Symbol[PROTOTYPE$1], 'toString', function toString() {
913
+ return getInternalState(this).tag;
914
+ });
915
+
916
+ objectPropertyIsEnumerable.f = $propertyIsEnumerable;
917
+ objectDefineProperty.f = $defineProperty;
918
+ objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
919
+ objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
920
+ objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;
921
+
922
+ if (descriptors) {
923
+ // https://github.com/tc39/proposal-Symbol-description
924
+ nativeDefineProperty$1($Symbol[PROTOTYPE$1], 'description', {
925
+ configurable: true,
926
+ get: function description() {
927
+ return getInternalState(this).description;
928
+ }
929
+ });
930
+ {
931
+ redefine(ObjectPrototype, 'propertyIsEnumerable', $propertyIsEnumerable, { unsafe: true });
932
+ }
933
+ }
934
+
935
+ wrappedWellKnownSymbol.f = function (name) {
936
+ return wrap(wellKnownSymbol(name), name);
937
+ };
938
+ }
939
+
940
+ _export({ global: true, wrap: true, forced: !nativeSymbol, sham: !nativeSymbol }, {
941
+ Symbol: $Symbol
942
+ });
943
+
944
+ $forEach(objectKeys(WellKnownSymbolsStore), function (name) {
945
+ defineWellKnownSymbol(name);
946
+ });
947
+
948
+ _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
949
+ // `Symbol.for` method
950
+ // https://tc39.github.io/ecma262/#sec-symbol.for
951
+ 'for': function (key) {
952
+ var string = String(key);
953
+ if (has(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
954
+ var symbol = $Symbol(string);
955
+ StringToSymbolRegistry[string] = symbol;
956
+ SymbolToStringRegistry[symbol] = string;
957
+ return symbol;
958
+ },
959
+ // `Symbol.keyFor` method
960
+ // https://tc39.github.io/ecma262/#sec-symbol.keyfor
961
+ keyFor: function keyFor(sym) {
962
+ if (!isSymbol(sym)) throw TypeError(sym + ' is not a symbol');
963
+ if (has(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
964
+ },
965
+ useSetter: function () { USE_SETTER = true; },
966
+ useSimple: function () { USE_SETTER = false; }
967
+ });
968
+
969
+ _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptors }, {
970
+ // `Object.create` method
971
+ // https://tc39.github.io/ecma262/#sec-object.create
972
+ create: $create,
973
+ // `Object.defineProperty` method
974
+ // https://tc39.github.io/ecma262/#sec-object.defineproperty
975
+ defineProperty: $defineProperty,
976
+ // `Object.defineProperties` method
977
+ // https://tc39.github.io/ecma262/#sec-object.defineproperties
978
+ defineProperties: $defineProperties,
979
+ // `Object.getOwnPropertyDescriptor` method
980
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertydescriptors
981
+ getOwnPropertyDescriptor: $getOwnPropertyDescriptor
982
+ });
983
+
984
+ _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
985
+ // `Object.getOwnPropertyNames` method
986
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertynames
987
+ getOwnPropertyNames: $getOwnPropertyNames,
988
+ // `Object.getOwnPropertySymbols` method
989
+ // https://tc39.github.io/ecma262/#sec-object.getownpropertysymbols
990
+ getOwnPropertySymbols: $getOwnPropertySymbols
991
+ });
992
+
993
+ // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
994
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3443
995
+ _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {
996
+ getOwnPropertySymbols: function getOwnPropertySymbols(it) {
997
+ return objectGetOwnPropertySymbols.f(toObject(it));
998
+ }
999
+ });
1000
+
1001
+ // `JSON.stringify` method behavior with symbols
1002
+ // https://tc39.github.io/ecma262/#sec-json.stringify
1003
+ JSON && _export({ target: 'JSON', stat: true, forced: !nativeSymbol || fails(function () {
1004
+ var symbol = $Symbol();
1005
+ // MS Edge converts symbol values to JSON as {}
1006
+ return nativeJSONStringify([symbol]) != '[null]'
1007
+ // WebKit converts symbol values to JSON as null
1008
+ || nativeJSONStringify({ a: symbol }) != '{}'
1009
+ // V8 throws on boxed symbols
1010
+ || nativeJSONStringify(Object(symbol)) != '{}';
1011
+ }) }, {
1012
+ stringify: function stringify(it) {
1013
+ var args = [it];
1014
+ var index = 1;
1015
+ var replacer, $replacer;
1016
+ while (arguments.length > index) args.push(arguments[index++]);
1017
+ $replacer = replacer = args[1];
1018
+ if (!isObject(replacer) && it === undefined || isSymbol(it)) return; // IE8 returns string on undefined
1019
+ if (!isArray(replacer)) replacer = function (key, value) {
1020
+ if (typeof $replacer == 'function') value = $replacer.call(this, key, value);
1021
+ if (!isSymbol(value)) return value;
1022
+ };
1023
+ args[1] = replacer;
1024
+ return nativeJSONStringify.apply(JSON, args);
1025
+ }
1026
+ });
1027
+
1028
+ // `Symbol.prototype[@@toPrimitive]` method
1029
+ // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@toprimitive
1030
+ if (!$Symbol[PROTOTYPE$1][TO_PRIMITIVE]) hide($Symbol[PROTOTYPE$1], TO_PRIMITIVE, $Symbol[PROTOTYPE$1].valueOf);
1031
+ // `Symbol.prototype[@@toStringTag]` property
1032
+ // https://tc39.github.io/ecma262/#sec-symbol.prototype-@@tostringtag
1033
+ setToStringTag($Symbol, SYMBOL);
1034
+
1035
+ hiddenKeys[HIDDEN] = true;
1036
+
1037
+ var defineProperty$2 = objectDefineProperty.f;
1038
+
1039
+
1040
+ var NativeSymbol = global_1.Symbol;
1041
+
1042
+ if (descriptors && typeof NativeSymbol == 'function' && (!('description' in NativeSymbol.prototype) ||
1043
+ // Safari 12 bug
1044
+ NativeSymbol().description !== undefined
1045
+ )) {
1046
+ var EmptyStringDescriptionStore = {};
1047
+ // wrap Symbol constructor for correct work with undefined description
1048
+ var SymbolWrapper = function Symbol() {
1049
+ var description = arguments.length < 1 || arguments[0] === undefined ? undefined : String(arguments[0]);
1050
+ var result = this instanceof SymbolWrapper
1051
+ ? new NativeSymbol(description)
1052
+ // in Edge 13, String(Symbol(undefined)) === 'Symbol(undefined)'
1053
+ : description === undefined ? NativeSymbol() : NativeSymbol(description);
1054
+ if (description === '') EmptyStringDescriptionStore[result] = true;
1055
+ return result;
1056
+ };
1057
+ copyConstructorProperties(SymbolWrapper, NativeSymbol);
1058
+ var symbolPrototype = SymbolWrapper.prototype = NativeSymbol.prototype;
1059
+ symbolPrototype.constructor = SymbolWrapper;
1060
+
1061
+ var symbolToString = symbolPrototype.toString;
1062
+ var native = String(NativeSymbol('test')) == 'Symbol(test)';
1063
+ var regexp = /^Symbol\((.*)\)[^)]+$/;
1064
+ defineProperty$2(symbolPrototype, 'description', {
1065
+ configurable: true,
1066
+ get: function description() {
1067
+ var symbol = isObject(this) ? this.valueOf() : this;
1068
+ var string = symbolToString.call(symbol);
1069
+ if (has(EmptyStringDescriptionStore, symbol)) return '';
1070
+ var desc = native ? string.slice(7, -1) : string.replace(regexp, '$1');
1071
+ return desc === '' ? undefined : desc;
1072
+ }
1073
+ });
1074
+
1075
+ _export({ global: true, forced: true }, {
1076
+ Symbol: SymbolWrapper
1077
+ });
1078
+ }
1079
+
1080
+ // `Symbol.iterator` well-known symbol
1081
+ // https://tc39.github.io/ecma262/#sec-symbol.iterator
1082
+ defineWellKnownSymbol('iterator');
1083
+
1084
+ var createProperty = function (object, key, value) {
1085
+ var propertyKey = toPrimitive(key);
1086
+ if (propertyKey in object) objectDefineProperty.f(object, propertyKey, createPropertyDescriptor(0, value));
1087
+ else object[propertyKey] = value;
1088
+ };
1089
+
1090
+ var SPECIES$1 = wellKnownSymbol('species');
1091
+
1092
+ var arrayMethodHasSpeciesSupport = function (METHOD_NAME) {
1093
+ return !fails(function () {
1094
+ var array = [];
1095
+ var constructor = array.constructor = {};
1096
+ constructor[SPECIES$1] = function () {
1097
+ return { foo: 1 };
1098
+ };
1099
+ return array[METHOD_NAME](Boolean).foo !== 1;
1100
+ });
1101
+ };
1102
+
1103
+ var IS_CONCAT_SPREADABLE = wellKnownSymbol('isConcatSpreadable');
1104
+ var MAX_SAFE_INTEGER = 0x1FFFFFFFFFFFFF;
1105
+ var MAXIMUM_ALLOWED_INDEX_EXCEEDED = 'Maximum allowed index exceeded';
1106
+
1107
+ var IS_CONCAT_SPREADABLE_SUPPORT = !fails(function () {
1108
+ var array = [];
1109
+ array[IS_CONCAT_SPREADABLE] = false;
1110
+ return array.concat()[0] !== array;
1111
+ });
1112
+
1113
+ var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
1114
+
1115
+ var isConcatSpreadable = function (O) {
1116
+ if (!isObject(O)) return false;
1117
+ var spreadable = O[IS_CONCAT_SPREADABLE];
1118
+ return spreadable !== undefined ? !!spreadable : isArray(O);
1119
+ };
1120
+
1121
+ var FORCED = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1122
+
1123
+ // `Array.prototype.concat` method
1124
+ // https://tc39.github.io/ecma262/#sec-array.prototype.concat
1125
+ // with adding support of @@isConcatSpreadable and @@species
1126
+ _export({ target: 'Array', proto: true, forced: FORCED }, {
1127
+ concat: function concat(arg) { // eslint-disable-line no-unused-vars
1128
+ var O = toObject(this);
1129
+ var A = arraySpeciesCreate(O, 0);
1130
+ var n = 0;
1131
+ var i, k, length, len, E;
1132
+ for (i = -1, length = arguments.length; i < length; i++) {
1133
+ E = i === -1 ? O : arguments[i];
1134
+ if (isConcatSpreadable(E)) {
1135
+ len = toLength(E.length);
1136
+ if (n + len > MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1137
+ for (k = 0; k < len; k++, n++) if (k in E) createProperty(A, n, E[k]);
1138
+ } else {
1139
+ if (n >= MAX_SAFE_INTEGER) throw TypeError(MAXIMUM_ALLOWED_INDEX_EXCEEDED);
1140
+ createProperty(A, n++, E);
1141
+ }
1142
+ }
1143
+ A.length = n;
1144
+ return A;
1145
+ }
1146
+ });
1147
+
1148
+ var $filter = arrayIteration.filter;
1149
+
1150
+
1151
+ // `Array.prototype.filter` method
1152
+ // https://tc39.github.io/ecma262/#sec-array.prototype.filter
1153
+ // with adding support of @@species
1154
+ _export({ target: 'Array', proto: true, forced: !arrayMethodHasSpeciesSupport('filter') }, {
1155
+ filter: function filter(callbackfn /* , thisArg */) {
1156
+ return $filter(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1157
+ }
1158
+ });
1159
+
1160
+ var UNSCOPABLES = wellKnownSymbol('unscopables');
1161
+ var ArrayPrototype = Array.prototype;
1162
+
1163
+ // Array.prototype[@@unscopables]
1164
+ // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1165
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
1166
+ hide(ArrayPrototype, UNSCOPABLES, objectCreate(null));
1167
+ }
1168
+
1169
+ // add a key to Array.prototype[@@unscopables]
1170
+ var addToUnscopables = function (key) {
1171
+ ArrayPrototype[UNSCOPABLES][key] = true;
1172
+ };
1173
+
1174
+ var correctPrototypeGetter = !fails(function () {
1175
+ function F() { /* empty */ }
1176
+ F.prototype.constructor = null;
1177
+ return Object.getPrototypeOf(new F()) !== F.prototype;
1178
+ });
1179
+
1180
+ var IE_PROTO$1 = sharedKey('IE_PROTO');
1181
+ var ObjectPrototype$1 = Object.prototype;
1182
+
1183
+ // `Object.getPrototypeOf` method
1184
+ // https://tc39.github.io/ecma262/#sec-object.getprototypeof
1185
+ var objectGetPrototypeOf = correctPrototypeGetter ? Object.getPrototypeOf : function (O) {
1186
+ O = toObject(O);
1187
+ if (has(O, IE_PROTO$1)) return O[IE_PROTO$1];
1188
+ if (typeof O.constructor == 'function' && O instanceof O.constructor) {
1189
+ return O.constructor.prototype;
1190
+ } return O instanceof Object ? ObjectPrototype$1 : null;
1191
+ };
1192
+
1193
+ var ITERATOR = wellKnownSymbol('iterator');
1194
+ var BUGGY_SAFARI_ITERATORS = false;
1195
+
1196
+ var returnThis = function () { return this; };
1197
+
1198
+ // `%IteratorPrototype%` object
1199
+ // https://tc39.github.io/ecma262/#sec-%iteratorprototype%-object
1200
+ var IteratorPrototype, PrototypeOfArrayIteratorPrototype, arrayIterator;
1201
+
1202
+ if ([].keys) {
1203
+ arrayIterator = [].keys();
1204
+ // Safari 8 has buggy iterators w/o `next`
1205
+ if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS = true;
1206
+ else {
1207
+ PrototypeOfArrayIteratorPrototype = objectGetPrototypeOf(objectGetPrototypeOf(arrayIterator));
1208
+ if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype = PrototypeOfArrayIteratorPrototype;
1209
+ }
1210
+ }
1211
+
1212
+ if (IteratorPrototype == undefined) IteratorPrototype = {};
1213
+
1214
+ // 25.1.2.1.1 %IteratorPrototype%[@@iterator]()
1215
+ if ( !has(IteratorPrototype, ITERATOR)) hide(IteratorPrototype, ITERATOR, returnThis);
1216
+
1217
+ var iteratorsCore = {
1218
+ IteratorPrototype: IteratorPrototype,
1219
+ BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS
1220
+ };
1221
+
1222
+ var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1223
+
1224
+ var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
1225
+ var TO_STRING_TAG = NAME + ' Iterator';
1226
+ IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
1227
+ setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
1228
+ return IteratorConstructor;
1229
+ };
1230
+
1231
+ var aPossiblePrototype = function (it) {
1232
+ if (!isObject(it) && it !== null) {
1233
+ throw TypeError("Can't set " + String(it) + ' as a prototype');
1234
+ } return it;
1235
+ };
1236
+
1237
+ // `Object.setPrototypeOf` method
1238
+ // https://tc39.github.io/ecma262/#sec-object.setprototypeof
1239
+ // Works with __proto__ only. Old v8 can't work with null proto objects.
1240
+ /* eslint-disable no-proto */
1241
+ var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1242
+ var CORRECT_SETTER = false;
1243
+ var test = {};
1244
+ var setter;
1245
+ try {
1246
+ setter = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set;
1247
+ setter.call(test, []);
1248
+ CORRECT_SETTER = test instanceof Array;
1249
+ } catch (error) { /* empty */ }
1250
+ return function setPrototypeOf(O, proto) {
1251
+ anObject(O);
1252
+ aPossiblePrototype(proto);
1253
+ if (CORRECT_SETTER) setter.call(O, proto);
1254
+ else O.__proto__ = proto;
1255
+ return O;
1256
+ };
1257
+ }() : undefined);
1258
+
1259
+ var IteratorPrototype$2 = iteratorsCore.IteratorPrototype;
1260
+ var BUGGY_SAFARI_ITERATORS$1 = iteratorsCore.BUGGY_SAFARI_ITERATORS;
1261
+ var ITERATOR$1 = wellKnownSymbol('iterator');
1262
+ var KEYS = 'keys';
1263
+ var VALUES = 'values';
1264
+ var ENTRIES = 'entries';
1265
+
1266
+ var returnThis$1 = function () { return this; };
1267
+
1268
+ var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1269
+ createIteratorConstructor(IteratorConstructor, NAME, next);
1270
+
1271
+ var getIterationMethod = function (KIND) {
1272
+ if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1273
+ if (!BUGGY_SAFARI_ITERATORS$1 && KIND in IterablePrototype) return IterablePrototype[KIND];
1274
+ switch (KIND) {
1275
+ case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1276
+ case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1277
+ case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1278
+ } return function () { return new IteratorConstructor(this); };
1279
+ };
1280
+
1281
+ var TO_STRING_TAG = NAME + ' Iterator';
1282
+ var INCORRECT_VALUES_NAME = false;
1283
+ var IterablePrototype = Iterable.prototype;
1284
+ var nativeIterator = IterablePrototype[ITERATOR$1]
1285
+ || IterablePrototype['@@iterator']
1286
+ || DEFAULT && IterablePrototype[DEFAULT];
1287
+ var defaultIterator = !BUGGY_SAFARI_ITERATORS$1 && nativeIterator || getIterationMethod(DEFAULT);
1288
+ var anyNativeIterator = NAME == 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1289
+ var CurrentIteratorPrototype, methods, KEY;
1290
+
1291
+ // fix native
1292
+ if (anyNativeIterator) {
1293
+ CurrentIteratorPrototype = objectGetPrototypeOf(anyNativeIterator.call(new Iterable()));
1294
+ if (IteratorPrototype$2 !== Object.prototype && CurrentIteratorPrototype.next) {
1295
+ if ( objectGetPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype$2) {
1296
+ if (objectSetPrototypeOf) {
1297
+ objectSetPrototypeOf(CurrentIteratorPrototype, IteratorPrototype$2);
1298
+ } else if (typeof CurrentIteratorPrototype[ITERATOR$1] != 'function') {
1299
+ hide(CurrentIteratorPrototype, ITERATOR$1, returnThis$1);
1300
+ }
1301
+ }
1302
+ // Set @@toStringTag to native iterators
1303
+ setToStringTag(CurrentIteratorPrototype, TO_STRING_TAG, true);
1304
+ }
1305
+ }
1306
+
1307
+ // fix Array#{values, @@iterator}.name in V8 / FF
1308
+ if (DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1309
+ INCORRECT_VALUES_NAME = true;
1310
+ defaultIterator = function values() { return nativeIterator.call(this); };
1311
+ }
1312
+
1313
+ // define iterator
1314
+ if ( IterablePrototype[ITERATOR$1] !== defaultIterator) {
1315
+ hide(IterablePrototype, ITERATOR$1, defaultIterator);
1316
+ }
1317
+
1318
+ // export additional methods
1319
+ if (DEFAULT) {
1320
+ methods = {
1321
+ values: getIterationMethod(VALUES),
1322
+ keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1323
+ entries: getIterationMethod(ENTRIES)
1324
+ };
1325
+ if (FORCED) for (KEY in methods) {
1326
+ if (BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1327
+ redefine(IterablePrototype, KEY, methods[KEY]);
1328
+ }
1329
+ } else _export({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS$1 || INCORRECT_VALUES_NAME }, methods);
1330
+ }
1331
+
1332
+ return methods;
1333
+ };
1334
+
1335
+ var ARRAY_ITERATOR = 'Array Iterator';
1336
+ var setInternalState$1 = internalState.set;
1337
+ var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
1338
+
1339
+ // `Array.prototype.entries` method
1340
+ // https://tc39.github.io/ecma262/#sec-array.prototype.entries
1341
+ // `Array.prototype.keys` method
1342
+ // https://tc39.github.io/ecma262/#sec-array.prototype.keys
1343
+ // `Array.prototype.values` method
1344
+ // https://tc39.github.io/ecma262/#sec-array.prototype.values
1345
+ // `Array.prototype[@@iterator]` method
1346
+ // https://tc39.github.io/ecma262/#sec-array.prototype-@@iterator
1347
+ // `CreateArrayIterator` internal method
1348
+ // https://tc39.github.io/ecma262/#sec-createarrayiterator
1349
+ var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1350
+ setInternalState$1(this, {
1351
+ type: ARRAY_ITERATOR,
1352
+ target: toIndexedObject(iterated), // target
1353
+ index: 0, // next index
1354
+ kind: kind // kind
1355
+ });
1356
+ // `%ArrayIteratorPrototype%.next` method
1357
+ // https://tc39.github.io/ecma262/#sec-%arrayiteratorprototype%.next
1358
+ }, function () {
1359
+ var state = getInternalState$1(this);
1360
+ var target = state.target;
1361
+ var kind = state.kind;
1362
+ var index = state.index++;
1363
+ if (!target || index >= target.length) {
1364
+ state.target = undefined;
1365
+ return { value: undefined, done: true };
1366
+ }
1367
+ if (kind == 'keys') return { value: index, done: false };
1368
+ if (kind == 'values') return { value: target[index], done: false };
1369
+ return { value: [index, target[index]], done: false };
1370
+ }, 'values');
1371
+
1372
+ // https://tc39.github.io/ecma262/#sec-array.prototype-@@unscopables
1373
+ addToUnscopables('keys');
1374
+ addToUnscopables('values');
1375
+ addToUnscopables('entries');
1376
+
1377
+ var sloppyArrayMethod = function (METHOD_NAME, argument) {
1378
+ var method = [][METHOD_NAME];
1379
+ return !method || !fails(function () {
1380
+ // eslint-disable-next-line no-useless-call,no-throw-literal
1381
+ method.call(null, argument || function () { throw 1; }, 1);
1382
+ });
1383
+ };
1384
+
1385
+ var nativeJoin = [].join;
1386
+
1387
+ var ES3_STRINGS = indexedObject != Object;
1388
+ var SLOPPY_METHOD = sloppyArrayMethod('join', ',');
1389
+
1390
+ // `Array.prototype.join` method
1391
+ // https://tc39.github.io/ecma262/#sec-array.prototype.join
1392
+ _export({ target: 'Array', proto: true, forced: ES3_STRINGS || SLOPPY_METHOD }, {
1393
+ join: function join(separator) {
1394
+ return nativeJoin.call(toIndexedObject(this), separator === undefined ? ',' : separator);
1395
+ }
1396
+ });
1397
+
1398
+ var TO_STRING_TAG$1 = wellKnownSymbol('toStringTag');
1399
+ // ES3 wrong here
1400
+ var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) == 'Arguments';
1401
+
1402
+ // fallback for IE11 Script Access Denied error
1403
+ var tryGet = function (it, key) {
1404
+ try {
1405
+ return it[key];
1406
+ } catch (error) { /* empty */ }
1407
+ };
1408
+
1409
+ // getting tag from ES6+ `Object.prototype.toString`
1410
+ var classof = function (it) {
1411
+ var O, tag, result;
1412
+ return it === undefined ? 'Undefined' : it === null ? 'Null'
1413
+ // @@toStringTag case
1414
+ : typeof (tag = tryGet(O = Object(it), TO_STRING_TAG$1)) == 'string' ? tag
1415
+ // builtinTag case
1416
+ : CORRECT_ARGUMENTS ? classofRaw(O)
1417
+ // ES3 arguments fallback
1418
+ : (result = classofRaw(O)) == 'Object' && typeof O.callee == 'function' ? 'Arguments' : result;
1419
+ };
1420
+
1421
+ var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
1422
+ var test = {};
1423
+
1424
+ test[TO_STRING_TAG$2] = 'z';
1425
+
1426
+ // `Object.prototype.toString` method implementation
1427
+ // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1428
+ var objectToString = String(test) !== '[object z]' ? function toString() {
1429
+ return '[object ' + classof(this) + ']';
1430
+ } : test.toString;
1431
+
1432
+ var ObjectPrototype$2 = Object.prototype;
1433
+
1434
+ // `Object.prototype.toString` method
1435
+ // https://tc39.github.io/ecma262/#sec-object.prototype.tostring
1436
+ if (objectToString !== ObjectPrototype$2.toString) {
1437
+ redefine(ObjectPrototype$2, 'toString', objectToString, { unsafe: true });
1438
+ }
1439
+
1440
+ // `String.prototype.{ codePointAt, at }` methods implementation
1441
+ var createMethod$2 = function (CONVERT_TO_STRING) {
1442
+ return function ($this, pos) {
1443
+ var S = String(requireObjectCoercible($this));
1444
+ var position = toInteger(pos);
1445
+ var size = S.length;
1446
+ var first, second;
1447
+ if (position < 0 || position >= size) return CONVERT_TO_STRING ? '' : undefined;
1448
+ first = S.charCodeAt(position);
1449
+ return first < 0xD800 || first > 0xDBFF || position + 1 === size
1450
+ || (second = S.charCodeAt(position + 1)) < 0xDC00 || second > 0xDFFF
1451
+ ? CONVERT_TO_STRING ? S.charAt(position) : first
1452
+ : CONVERT_TO_STRING ? S.slice(position, position + 2) : (first - 0xD800 << 10) + (second - 0xDC00) + 0x10000;
1453
+ };
1454
+ };
1455
+
1456
+ var stringMultibyte = {
1457
+ // `String.prototype.codePointAt` method
1458
+ // https://tc39.github.io/ecma262/#sec-string.prototype.codepointat
1459
+ codeAt: createMethod$2(false),
1460
+ // `String.prototype.at` method
1461
+ // https://github.com/mathiasbynens/String.prototype.at
1462
+ charAt: createMethod$2(true)
1463
+ };
1464
+
1465
+ var charAt = stringMultibyte.charAt;
1466
+
1467
+
1468
+
1469
+ var STRING_ITERATOR = 'String Iterator';
1470
+ var setInternalState$2 = internalState.set;
1471
+ var getInternalState$2 = internalState.getterFor(STRING_ITERATOR);
1472
+
1473
+ // `String.prototype[@@iterator]` method
1474
+ // https://tc39.github.io/ecma262/#sec-string.prototype-@@iterator
1475
+ defineIterator(String, 'String', function (iterated) {
1476
+ setInternalState$2(this, {
1477
+ type: STRING_ITERATOR,
1478
+ string: String(iterated),
1479
+ index: 0
1480
+ });
1481
+ // `%StringIteratorPrototype%.next` method
1482
+ // https://tc39.github.io/ecma262/#sec-%stringiteratorprototype%.next
1483
+ }, function next() {
1484
+ var state = getInternalState$2(this);
1485
+ var string = state.string;
1486
+ var index = state.index;
1487
+ var point;
1488
+ if (index >= string.length) return { value: undefined, done: true };
1489
+ point = charAt(string, index);
1490
+ state.index += point.length;
1491
+ return { value: point, done: false };
1492
+ });
1493
+
1494
+ // iterable DOM collections
1495
+ // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1496
+ var domIterables = {
1497
+ CSSRuleList: 0,
1498
+ CSSStyleDeclaration: 0,
1499
+ CSSValueList: 0,
1500
+ ClientRectList: 0,
1501
+ DOMRectList: 0,
1502
+ DOMStringList: 0,
1503
+ DOMTokenList: 1,
1504
+ DataTransferItemList: 0,
1505
+ FileList: 0,
1506
+ HTMLAllCollection: 0,
1507
+ HTMLCollection: 0,
1508
+ HTMLFormElement: 0,
1509
+ HTMLSelectElement: 0,
1510
+ MediaList: 0,
1511
+ MimeTypeArray: 0,
1512
+ NamedNodeMap: 0,
1513
+ NodeList: 1,
1514
+ PaintRequestList: 0,
1515
+ Plugin: 0,
1516
+ PluginArray: 0,
1517
+ SVGLengthList: 0,
1518
+ SVGNumberList: 0,
1519
+ SVGPathSegList: 0,
1520
+ SVGPointList: 0,
1521
+ SVGStringList: 0,
1522
+ SVGTransformList: 0,
1523
+ SourceBufferList: 0,
1524
+ StyleSheetList: 0,
1525
+ TextTrackCueList: 0,
1526
+ TextTrackList: 0,
1527
+ TouchList: 0
1528
+ };
1529
+
1530
+ var ITERATOR$2 = wellKnownSymbol('iterator');
1531
+ var TO_STRING_TAG$3 = wellKnownSymbol('toStringTag');
1532
+ var ArrayValues = es_array_iterator.values;
1533
+
1534
+ for (var COLLECTION_NAME in domIterables) {
1535
+ var Collection = global_1[COLLECTION_NAME];
1536
+ var CollectionPrototype = Collection && Collection.prototype;
1537
+ if (CollectionPrototype) {
1538
+ // some Chrome versions have non-configurable methods on DOMTokenList
1539
+ if (CollectionPrototype[ITERATOR$2] !== ArrayValues) try {
1540
+ hide(CollectionPrototype, ITERATOR$2, ArrayValues);
1541
+ } catch (error) {
1542
+ CollectionPrototype[ITERATOR$2] = ArrayValues;
1543
+ }
1544
+ if (!CollectionPrototype[TO_STRING_TAG$3]) hide(CollectionPrototype, TO_STRING_TAG$3, COLLECTION_NAME);
1545
+ if (domIterables[COLLECTION_NAME]) for (var METHOD_NAME in es_array_iterator) {
1546
+ // some Chrome versions have non-configurable methods on DOMTokenList
1547
+ if (CollectionPrototype[METHOD_NAME] !== es_array_iterator[METHOD_NAME]) try {
1548
+ hide(CollectionPrototype, METHOD_NAME, es_array_iterator[METHOD_NAME]);
1549
+ } catch (error) {
1550
+ CollectionPrototype[METHOD_NAME] = es_array_iterator[METHOD_NAME];
1551
+ }
1552
+ }
1553
+ }
1554
+ }
1555
+
1556
+ function _classCallCheck(instance, Constructor) {
1557
+ if (!(instance instanceof Constructor)) {
1558
+ throw new TypeError("Cannot call a class as a function");
1559
+ }
1560
+ }
1561
+
1562
+ function _defineProperties(target, props) {
1563
+ for (var i = 0; i < props.length; i++) {
1564
+ var descriptor = props[i];
1565
+ descriptor.enumerable = descriptor.enumerable || false;
1566
+ descriptor.configurable = true;
1567
+ if ("value" in descriptor) descriptor.writable = true;
1568
+ Object.defineProperty(target, descriptor.key, descriptor);
1569
+ }
1570
+ }
1571
+
1572
+ function _createClass(Constructor, protoProps, staticProps) {
1573
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1574
+ if (staticProps) _defineProperties(Constructor, staticProps);
1575
+ return Constructor;
1576
+ }
1577
+
1578
+ function _inherits(subClass, superClass) {
1579
+ if (typeof superClass !== "function" && superClass !== null) {
1580
+ throw new TypeError("Super expression must either be null or a function");
1581
+ }
1582
+
1583
+ subClass.prototype = Object.create(superClass && superClass.prototype, {
1584
+ constructor: {
1585
+ value: subClass,
1586
+ writable: true,
1587
+ configurable: true
1588
+ }
1589
+ });
1590
+ if (superClass) _setPrototypeOf(subClass, superClass);
1591
+ }
1592
+
1593
+ function _getPrototypeOf(o) {
1594
+ _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) {
1595
+ return o.__proto__ || Object.getPrototypeOf(o);
1596
+ };
1597
+ return _getPrototypeOf(o);
1598
+ }
1599
+
1600
+ function _setPrototypeOf(o, p) {
1601
+ _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
1602
+ o.__proto__ = p;
1603
+ return o;
1604
+ };
1605
+
1606
+ return _setPrototypeOf(o, p);
1607
+ }
1608
+
1609
+ function _assertThisInitialized(self) {
1610
+ if (self === void 0) {
1611
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1612
+ }
1613
+
1614
+ return self;
1615
+ }
1616
+
1617
+ function _possibleConstructorReturn(self, call) {
1618
+ if (call && (typeof call === "object" || typeof call === "function")) {
1619
+ return call;
1620
+ }
1621
+
1622
+ return _assertThisInitialized(self);
1623
+ }
1624
+
1625
+ function _superPropBase(object, property) {
1626
+ while (!Object.prototype.hasOwnProperty.call(object, property)) {
1627
+ object = _getPrototypeOf(object);
1628
+ if (object === null) break;
1629
+ }
1630
+
1631
+ return object;
1632
+ }
1633
+
1634
+ function _get(target, property, receiver) {
1635
+ if (typeof Reflect !== "undefined" && Reflect.get) {
1636
+ _get = Reflect.get;
1637
+ } else {
1638
+ _get = function _get(target, property, receiver) {
1639
+ var base = _superPropBase(target, property);
1640
+
1641
+ if (!base) return;
1642
+ var desc = Object.getOwnPropertyDescriptor(base, property);
1643
+
1644
+ if (desc.get) {
1645
+ return desc.get.call(receiver);
1646
+ }
1647
+
1648
+ return desc.value;
1649
+ };
1650
+ }
1651
+
1652
+ return _get(target, property, receiver || target);
1653
+ }
1654
+
1655
+ /**
1656
+ * @author: YL
1657
+ * @update: zhixin wen <wenzhixin2010@gmail.com>
1658
+ */
1659
+
1660
+ $.extend($.fn.bootstrapTable.defaults, {
1661
+ treeEnable: false,
1662
+ treeShowField: null,
1663
+ idField: 'id',
1664
+ parentIdField: 'pid',
1665
+ rootParentId: null
1666
+ });
1667
+
1668
+ $.BootstrapTable =
1669
+ /*#__PURE__*/
1670
+ function (_$$BootstrapTable) {
1671
+ _inherits(_class, _$$BootstrapTable);
1672
+
1673
+ function _class() {
1674
+ _classCallCheck(this, _class);
1675
+
1676
+ return _possibleConstructorReturn(this, _getPrototypeOf(_class).apply(this, arguments));
1677
+ }
1678
+
1679
+ _createClass(_class, [{
1680
+ key: "init",
1681
+ value: function init() {
1682
+ var _get2;
1683
+
1684
+ this._rowStyle = this.options.rowStyle;
1685
+
1686
+ for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
1687
+ args[_key] = arguments[_key];
1688
+ }
1689
+
1690
+ (_get2 = _get(_getPrototypeOf(_class.prototype), "init", this)).call.apply(_get2, [this].concat(args));
1691
+ }
1692
+ }, {
1693
+ key: "initHeader",
1694
+ value: function initHeader() {
1695
+ var _get3;
1696
+
1697
+ for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
1698
+ args[_key2] = arguments[_key2];
1699
+ }
1700
+
1701
+ (_get3 = _get(_getPrototypeOf(_class.prototype), "initHeader", this)).call.apply(_get3, [this].concat(args));
1702
+
1703
+ var treeShowField = this.options.treeShowField;
1704
+
1705
+ if (treeShowField) {
1706
+ var _iteratorNormalCompletion = true;
1707
+ var _didIteratorError = false;
1708
+ var _iteratorError = undefined;
1709
+
1710
+ try {
1711
+ for (var _iterator = this.header.fields[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
1712
+ var field = _step.value;
1713
+
1714
+ if (treeShowField === field) {
1715
+ this.treeEnable = true;
1716
+ break;
1717
+ }
1718
+ }
1719
+ } catch (err) {
1720
+ _didIteratorError = true;
1721
+ _iteratorError = err;
1722
+ } finally {
1723
+ try {
1724
+ if (!_iteratorNormalCompletion && _iterator.return != null) {
1725
+ _iterator.return();
1726
+ }
1727
+ } finally {
1728
+ if (_didIteratorError) {
1729
+ throw _iteratorError;
1730
+ }
1731
+ }
1732
+ }
1733
+ }
1734
+ }
1735
+ }, {
1736
+ key: "initBody",
1737
+ value: function initBody() {
1738
+ var _get4;
1739
+
1740
+ this.options.virtualScroll = !this.treeEnable;
1741
+
1742
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1743
+ args[_key3] = arguments[_key3];
1744
+ }
1745
+
1746
+ (_get4 = _get(_getPrototypeOf(_class.prototype), "initBody", this)).call.apply(_get4, [this].concat(args));
1747
+ }
1748
+ }, {
1749
+ key: "initTr",
1750
+ value: function initTr(item, idx, data, parentDom) {
1751
+ var _this = this;
1752
+
1753
+ var nodes = data.filter(function (it) {
1754
+ return item[_this.options.idField] === it[_this.options.parentIdField];
1755
+ });
1756
+ parentDom.append(_get(_getPrototypeOf(_class.prototype), "initRow", this).call(this, item, idx, data, parentDom)); // init sub node
1757
+
1758
+ var len = nodes.length - 1;
1759
+
1760
+ for (var i = 0; i <= len; i++) {
1761
+ var node = nodes[i];
1762
+ var defaultItem = $.extend(true, {}, item);
1763
+ node._level = defaultItem._level + 1;
1764
+ node._parent = defaultItem;
1765
+
1766
+ if (i === len) {
1767
+ node._last = 1;
1768
+ } // jquery.treegrid.js
1769
+
1770
+
1771
+ this.options.rowStyle = function (item, idx) {
1772
+ var res = _this._rowStyle(item, idx);
1773
+
1774
+ var id = item[_this.options.idField] ? item[_this.options.idField] : 0;
1775
+ var pid = item[_this.options.parentIdField] ? item[_this.options.parentIdField] : 0;
1776
+ res.classes = [res.classes || '', "treegrid-".concat(id), "treegrid-parent-".concat(pid)].join(' ');
1777
+ return res;
1778
+ };
1779
+
1780
+ this.initTr(node, $.inArray(node, data), data, parentDom);
1781
+ }
1782
+ }
1783
+ }, {
1784
+ key: "initRow",
1785
+ value: function initRow(item, idx, data, parentDom) {
1786
+ var _this2 = this;
1787
+
1788
+ if (this.treeEnable) {
1789
+ if (this.options.rootParentId === item[this.options.parentIdField] || !item[this.options.parentIdField]) {
1790
+ if (item._level === undefined) {
1791
+ item._level = 0;
1792
+ } // jquery.treegrid.js
1793
+
1794
+
1795
+ this.options.rowStyle = function (item, idx) {
1796
+ var res = _this2._rowStyle(item, idx);
1797
+
1798
+ var x = item[_this2.options.idField] ? item[_this2.options.idField] : 0;
1799
+ res.classes = [res.classes || '', "treegrid-".concat(x)].join(' ');
1800
+ return res;
1801
+ };
1802
+
1803
+ this.initTr(item, idx, data, parentDom);
1804
+ return true;
1805
+ }
1806
+
1807
+ return false;
1808
+ }
1809
+
1810
+ return _get(_getPrototypeOf(_class.prototype), "initRow", this).call(this, item, idx, data, parentDom);
1811
+ }
1812
+ }]);
1813
+
1814
+ return _class;
1815
+ }($.BootstrapTable);
1816
+
1817
+ }));