cy-element-ui 1.0.47 → 1.0.49

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 (303) hide show
  1. package/README.md +1 -1
  2. package/lib/alert.js +108 -108
  3. package/lib/aside.js +77 -77
  4. package/lib/autocomplete.js +5199 -360
  5. package/lib/avatar.js +4 -4
  6. package/lib/backtop.js +192 -101
  7. package/lib/badge.js +108 -108
  8. package/lib/breadcrumb-item.js +108 -108
  9. package/lib/breadcrumb.js +94 -94
  10. package/lib/button-group.js +4 -4
  11. package/lib/button.js +4 -4
  12. package/lib/calendar.js +1734 -137
  13. package/lib/card.js +96 -96
  14. package/lib/carousel-item.js +452 -108
  15. package/lib/carousel.js +1256 -105
  16. package/lib/cascader-panel.js +3524 -191
  17. package/lib/cascader.js +8077 -717
  18. package/lib/checkbox-button.js +151 -119
  19. package/lib/checkbox-group.js +47 -15
  20. package/lib/checkbox.js +47 -15
  21. package/lib/col.js +2 -2
  22. package/lib/collapse-item.js +815 -110
  23. package/lib/collapse.js +108 -108
  24. package/lib/color-picker.js +4705 -828
  25. package/lib/container.js +88 -88
  26. package/lib/date-picker.js +10735 -4739
  27. package/lib/descriptions-item.js +2 -2
  28. package/lib/descriptions.js +63 -8
  29. package/lib/dialog.js +1200 -22
  30. package/lib/divider.js +104 -104
  31. package/lib/drawer.js +875 -105
  32. package/lib/dropdown-item.js +128 -96
  33. package/lib/dropdown-menu.js +2301 -99
  34. package/lib/dropdown.js +990 -54
  35. package/lib/element-ui.common.js +31058 -13663
  36. package/lib/empty.js +793 -99
  37. package/lib/fileUpload.js +2542 -26
  38. package/lib/footer.js +77 -77
  39. package/lib/form-item.js +3305 -202
  40. package/lib/form.js +129 -115
  41. package/lib/header.js +77 -77
  42. package/lib/icon.js +67 -67
  43. package/lib/image.js +1662 -146
  44. package/lib/index.js +1 -1
  45. package/lib/infinite-scroll.js +435 -26
  46. package/lib/input-number.js +1421 -32
  47. package/lib/input.js +509 -37
  48. package/lib/link.js +4 -4
  49. package/lib/loading.js +886 -149
  50. package/lib/main.js +64 -64
  51. package/lib/menu-item-group.js +103 -103
  52. package/lib/menu-item.js +3140 -137
  53. package/lib/menu.js +959 -268
  54. package/lib/message-box.js +2743 -188
  55. package/lib/message.js +1196 -118
  56. package/lib/notification.js +1196 -119
  57. package/lib/option-group.js +151 -119
  58. package/lib/option.js +392 -16
  59. package/lib/page-header.js +781 -87
  60. package/lib/pagination.js +7747 -646
  61. package/lib/popconfirm.js +3606 -219
  62. package/lib/popover.js +2604 -79
  63. package/lib/progress.js +4 -4
  64. package/lib/radio-button.js +151 -119
  65. package/lib/radio-group.js +151 -119
  66. package/lib/radio.js +47 -15
  67. package/lib/rate.js +756 -113
  68. package/lib/result.js +108 -108
  69. package/lib/row.js +2 -2
  70. package/lib/scrollbar.js +1813 -41
  71. package/lib/select.js +5547 -209
  72. package/lib/selectDisplayInput.js +4 -4
  73. package/lib/skeleton-item.js +108 -108
  74. package/lib/skeleton.js +108 -108
  75. package/lib/slider.js +4768 -530
  76. package/lib/spinner.js +100 -100
  77. package/lib/statistic.js +9600 -112
  78. package/lib/step.js +108 -108
  79. package/lib/steps.js +514 -99
  80. package/lib/subTitle.js +91 -91
  81. package/lib/submenu.js +2397 -76
  82. package/lib/switch.js +582 -127
  83. package/lib/tab-pane.js +108 -108
  84. package/lib/tabDialog.js +1630 -104
  85. package/lib/table-column.js +1115 -267
  86. package/lib/table.js +7067 -1253
  87. package/lib/tabs.js +1615 -113
  88. package/lib/tag.js +4 -4
  89. package/lib/theme-chalk/README.md +33 -0
  90. package/lib/theme-chalk/base.css +1 -1
  91. package/lib/theme-chalk/gulpfile.js +27 -0
  92. package/lib/theme-chalk/index.css +1 -1
  93. package/lib/theme-chalk/package.json +35 -0
  94. package/lib/theme-chalk/src/alert.scss +147 -0
  95. package/lib/theme-chalk/src/aside.scss +7 -0
  96. package/lib/theme-chalk/src/autocomplete.scss +80 -0
  97. package/lib/theme-chalk/src/avatar.scss +51 -0
  98. package/lib/theme-chalk/src/backtop.scss +22 -0
  99. package/lib/theme-chalk/src/badge.scss +57 -0
  100. package/lib/theme-chalk/src/base.scss +2 -0
  101. package/lib/theme-chalk/src/breadcrumb.scss +55 -0
  102. package/lib/theme-chalk/src/button.scss +262 -0
  103. package/lib/theme-chalk/src/calendar.scss +79 -0
  104. package/lib/theme-chalk/src/card.scss +32 -0
  105. package/lib/theme-chalk/src/carousel-item.scss +50 -0
  106. package/lib/theme-chalk/src/carousel.scss +161 -0
  107. package/lib/theme-chalk/src/cascader-panel.scss +120 -0
  108. package/lib/theme-chalk/src/cascader.scss +182 -0
  109. package/lib/theme-chalk/src/checkbox.scss +359 -0
  110. package/lib/theme-chalk/src/col.scss +156 -0
  111. package/lib/theme-chalk/src/collapse.scss +63 -0
  112. package/lib/theme-chalk/src/color-picker.scss +384 -0
  113. package/lib/theme-chalk/src/common/popup.scss +42 -0
  114. package/lib/theme-chalk/src/common/transition.scss +99 -0
  115. package/lib/theme-chalk/src/common/var.scss +1028 -0
  116. package/lib/theme-chalk/src/container.scss +14 -0
  117. package/lib/theme-chalk/src/date-picker/date-picker.scss +97 -0
  118. package/lib/theme-chalk/src/date-picker/date-range-picker.scss +101 -0
  119. package/lib/theme-chalk/src/date-picker/date-table.scss +151 -0
  120. package/lib/theme-chalk/src/date-picker/month-table.scss +82 -0
  121. package/lib/theme-chalk/src/date-picker/picker-panel.scss +117 -0
  122. package/lib/theme-chalk/src/date-picker/picker.scss +197 -0
  123. package/lib/theme-chalk/src/date-picker/time-picker.scss +85 -0
  124. package/lib/theme-chalk/src/date-picker/time-range-picker.scss +31 -0
  125. package/lib/theme-chalk/src/date-picker/time-spinner.scss +110 -0
  126. package/lib/theme-chalk/src/date-picker/year-table.scss +51 -0
  127. package/lib/theme-chalk/src/date-picker.scss +12 -0
  128. package/lib/theme-chalk/src/descriptions-item.scss +42 -0
  129. package/lib/theme-chalk/src/descriptions.scss +111 -0
  130. package/lib/theme-chalk/src/dialog.scss +123 -0
  131. package/lib/theme-chalk/src/display.scss +12 -0
  132. package/lib/theme-chalk/src/divider.scss +47 -0
  133. package/lib/theme-chalk/src/drawer.scss +219 -0
  134. package/lib/theme-chalk/src/dropdown.scss +182 -0
  135. package/lib/theme-chalk/src/empty.scss +45 -0
  136. package/lib/theme-chalk/src/footer.scss +8 -0
  137. package/lib/theme-chalk/src/form.scss +167 -0
  138. package/lib/theme-chalk/src/header.scss +8 -0
  139. package/lib/theme-chalk/src/icon.scss +1167 -0
  140. package/lib/theme-chalk/src/image.scss +179 -0
  141. package/lib/theme-chalk/src/index.scss +90 -0
  142. package/lib/theme-chalk/src/input-number.scss +180 -0
  143. package/lib/theme-chalk/src/input.scss +360 -0
  144. package/lib/theme-chalk/src/link.scss +81 -0
  145. package/lib/theme-chalk/src/loading.scss +96 -0
  146. package/lib/theme-chalk/src/main.scss +12 -0
  147. package/lib/theme-chalk/src/menu.scss +289 -0
  148. package/lib/theme-chalk/src/message-box.scss +226 -0
  149. package/lib/theme-chalk/src/message.scss +120 -0
  150. package/lib/theme-chalk/src/mixins/_button.scss +81 -0
  151. package/lib/theme-chalk/src/mixins/config.scss +4 -0
  152. package/lib/theme-chalk/src/mixins/function.scss +44 -0
  153. package/lib/theme-chalk/src/mixins/mixins.scss +190 -0
  154. package/lib/theme-chalk/src/mixins/utils.scss +39 -0
  155. package/lib/theme-chalk/src/notification.scss +99 -0
  156. package/lib/theme-chalk/src/option-group.scss +42 -0
  157. package/lib/theme-chalk/src/option.scss +36 -0
  158. package/lib/theme-chalk/src/page-header.scss +41 -0
  159. package/lib/theme-chalk/src/pagination.scss +295 -0
  160. package/lib/theme-chalk/src/popconfirm.scss +16 -0
  161. package/lib/theme-chalk/src/popover.scss +40 -0
  162. package/lib/theme-chalk/src/popper.scss +101 -0
  163. package/lib/theme-chalk/src/progress.scss +141 -0
  164. package/lib/theme-chalk/src/radio-button.scss +113 -0
  165. package/lib/theme-chalk/src/radio-group.scss +9 -0
  166. package/lib/theme-chalk/src/radio.scss +199 -0
  167. package/lib/theme-chalk/src/rate.scss +49 -0
  168. package/lib/theme-chalk/src/reset.scss +79 -0
  169. package/lib/theme-chalk/src/result.scss +61 -0
  170. package/lib/theme-chalk/src/row.scss +43 -0
  171. package/lib/theme-chalk/src/scrollbar.scss +72 -0
  172. package/lib/theme-chalk/src/select-dropdown.scss +62 -0
  173. package/lib/theme-chalk/src/select.scss +152 -0
  174. package/lib/theme-chalk/src/skeleton-item.scss +84 -0
  175. package/lib/theme-chalk/src/skeleton.scss +40 -0
  176. package/lib/theme-chalk/src/slider.scss +250 -0
  177. package/lib/theme-chalk/src/spinner.scss +44 -0
  178. package/lib/theme-chalk/src/statistic.scss +38 -0
  179. package/lib/theme-chalk/src/step.scss +317 -0
  180. package/lib/theme-chalk/src/steps.scss +20 -0
  181. package/lib/theme-chalk/src/switch.scss +116 -0
  182. package/lib/theme-chalk/src/table-column.scss +97 -0
  183. package/lib/theme-chalk/src/table.scss +564 -0
  184. package/lib/theme-chalk/src/tabs.scss +602 -0
  185. package/lib/theme-chalk/src/tag.scss +163 -0
  186. package/lib/theme-chalk/src/time-picker.scss +8 -0
  187. package/lib/theme-chalk/src/time-select.scss +37 -0
  188. package/lib/theme-chalk/src/timeline-item.scss +86 -0
  189. package/lib/theme-chalk/src/timeline.scss +14 -0
  190. package/lib/theme-chalk/src/tooltip.scss +141 -0
  191. package/lib/theme-chalk/src/transfer.scss +227 -0
  192. package/lib/theme-chalk/src/tree.scss +123 -0
  193. package/lib/theme-chalk/src/upload.scss +603 -0
  194. package/lib/time-picker.js +6481 -589
  195. package/lib/time-select.js +6334 -407
  196. package/lib/timeline-item.js +108 -108
  197. package/lib/timeline.js +4 -4
  198. package/lib/tooltip.js +2688 -44
  199. package/lib/transfer.js +2238 -146
  200. package/lib/tree.js +1563 -148
  201. package/lib/treeSelect.js +3421 -106
  202. package/lib/upload.js +1198 -31
  203. package/package.json +3 -3
  204. package/packages/theme-chalk/gulpfile.js +1 -14
  205. package/packages/theme-chalk/src/common/var.scss +16 -16
  206. package/packages/theme-cy/gulpfile.js +1 -14
  207. package/src/index.js +1 -1
  208. package/lib/theme-chalk/alert.css +0 -1
  209. package/lib/theme-chalk/aside.css +0 -1
  210. package/lib/theme-chalk/autocomplete.css +0 -1
  211. package/lib/theme-chalk/avatar.css +0 -1
  212. package/lib/theme-chalk/backtop.css +0 -1
  213. package/lib/theme-chalk/badge.css +0 -1
  214. package/lib/theme-chalk/breadcrumb.css +0 -1
  215. package/lib/theme-chalk/button.css +0 -1
  216. package/lib/theme-chalk/calendar.css +0 -1
  217. package/lib/theme-chalk/card.css +0 -1
  218. package/lib/theme-chalk/carousel-item.css +0 -1
  219. package/lib/theme-chalk/carousel.css +0 -1
  220. package/lib/theme-chalk/cascader-panel.css +0 -1
  221. package/lib/theme-chalk/cascader.css +0 -1
  222. package/lib/theme-chalk/checkbox.css +0 -1
  223. package/lib/theme-chalk/col.css +0 -1
  224. package/lib/theme-chalk/collapse.css +0 -1
  225. package/lib/theme-chalk/color-picker.css +0 -1
  226. package/lib/theme-chalk/container.css +0 -1
  227. package/lib/theme-chalk/date-picker.css +0 -1
  228. package/lib/theme-chalk/descriptions-item.css +0 -1
  229. package/lib/theme-chalk/descriptions.css +0 -1
  230. package/lib/theme-chalk/dialog.css +0 -1
  231. package/lib/theme-chalk/display.css +0 -1
  232. package/lib/theme-chalk/divider.css +0 -1
  233. package/lib/theme-chalk/drawer.css +0 -1
  234. package/lib/theme-chalk/dropdown.css +0 -1
  235. package/lib/theme-chalk/empty.css +0 -1
  236. package/lib/theme-chalk/footer.css +0 -1
  237. package/lib/theme-chalk/form.css +0 -1
  238. package/lib/theme-chalk/header.css +0 -1
  239. package/lib/theme-chalk/icon.css +0 -1
  240. package/lib/theme-chalk/image.css +0 -1
  241. package/lib/theme-chalk/input-number.css +0 -1
  242. package/lib/theme-chalk/input.css +0 -1
  243. package/lib/theme-chalk/link.css +0 -1
  244. package/lib/theme-chalk/loading.css +0 -1
  245. package/lib/theme-chalk/main.css +0 -1
  246. package/lib/theme-chalk/menu.css +0 -1
  247. package/lib/theme-chalk/message-box.css +0 -1
  248. package/lib/theme-chalk/message.css +0 -1
  249. package/lib/theme-chalk/notification.css +0 -1
  250. package/lib/theme-chalk/option-group.css +0 -1
  251. package/lib/theme-chalk/option.css +0 -1
  252. package/lib/theme-chalk/page-header.css +0 -1
  253. package/lib/theme-chalk/pagination.css +0 -1
  254. package/lib/theme-chalk/popconfirm.css +0 -1
  255. package/lib/theme-chalk/popover.css +0 -1
  256. package/lib/theme-chalk/popper.css +0 -1
  257. package/lib/theme-chalk/progress.css +0 -1
  258. package/lib/theme-chalk/radio-button.css +0 -1
  259. package/lib/theme-chalk/radio-group.css +0 -1
  260. package/lib/theme-chalk/radio.css +0 -1
  261. package/lib/theme-chalk/rate.css +0 -1
  262. package/lib/theme-chalk/reset.css +0 -1
  263. package/lib/theme-chalk/result.css +0 -1
  264. package/lib/theme-chalk/row.css +0 -1
  265. package/lib/theme-chalk/scrollbar.css +0 -1
  266. package/lib/theme-chalk/select-dropdown.css +0 -1
  267. package/lib/theme-chalk/select.css +0 -1
  268. package/lib/theme-chalk/skeleton-item.css +0 -1
  269. package/lib/theme-chalk/skeleton.css +0 -1
  270. package/lib/theme-chalk/slider.css +0 -1
  271. package/lib/theme-chalk/spinner.css +0 -1
  272. package/lib/theme-chalk/statistic.css +0 -1
  273. package/lib/theme-chalk/step.css +0 -1
  274. package/lib/theme-chalk/steps.css +0 -1
  275. package/lib/theme-chalk/switch.css +0 -1
  276. package/lib/theme-chalk/table-column.css +0 -1
  277. package/lib/theme-chalk/table.css +0 -1
  278. package/lib/theme-chalk/tabs.css +0 -1
  279. package/lib/theme-chalk/tag.css +0 -1
  280. package/lib/theme-chalk/time-picker.css +0 -1
  281. package/lib/theme-chalk/time-select.css +0 -1
  282. package/lib/theme-chalk/timeline-item.css +0 -1
  283. package/lib/theme-chalk/timeline.css +0 -1
  284. package/lib/theme-chalk/tooltip.css +0 -1
  285. package/lib/theme-chalk/transfer.css +0 -1
  286. package/lib/theme-chalk/tree.css +0 -1
  287. package/lib/theme-chalk/upload.css +0 -1
  288. /package/lib/theme-chalk/{breadcrumb-item.css → src/breadcrumb-item.scss} +0 -0
  289. /package/lib/theme-chalk/{button-group.css → src/button-group.scss} +0 -0
  290. /package/lib/theme-chalk/{checkbox-button.css → src/checkbox-button.scss} +0 -0
  291. /package/lib/theme-chalk/{checkbox-group.css → src/checkbox-group.scss} +0 -0
  292. /package/lib/theme-chalk/{collapse-item.css → src/collapse-item.scss} +0 -0
  293. /package/lib/theme-chalk/{dropdown-item.css → src/dropdown-item.scss} +0 -0
  294. /package/lib/theme-chalk/{dropdown-menu.css → src/dropdown-menu.scss} +0 -0
  295. /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.ttf +0 -0
  296. /package/lib/theme-chalk/{fonts → src/fonts}/element-icons.woff +0 -0
  297. /package/lib/theme-chalk/{form-item.css → src/form-item.scss} +0 -0
  298. /package/lib/theme-chalk/{infinite-scroll.css → src/infinite-scroll.scss} +0 -0
  299. /package/lib/theme-chalk/{infiniteScroll.css → src/infiniteScroll.scss} +0 -0
  300. /package/lib/theme-chalk/{menu-item-group.css → src/menu-item-group.scss} +0 -0
  301. /package/lib/theme-chalk/{menu-item.css → src/menu-item.scss} +0 -0
  302. /package/lib/theme-chalk/{submenu.css → src/submenu.scss} +0 -0
  303. /package/lib/theme-chalk/{tab-pane.css → src/tab-pane.scss} +0 -0
package/lib/scrollbar.js CHANGED
@@ -82,30 +82,1803 @@ module.exports =
82
82
  /******/
83
83
  /******/
84
84
  /******/ // Load entry module and return exports
85
- /******/ return __webpack_require__(__webpack_require__.s = 141);
85
+ /******/ return __webpack_require__(__webpack_require__.s = 26);
86
86
  /******/ })
87
87
  /************************************************************************/
88
- /******/ ({
88
+ /******/ ([
89
+ /* 0 */
90
+ /***/ (function(module, exports) {
91
+
92
+ module.exports = require("vue");
93
+
94
+ /***/ }),
95
+ /* 1 */
96
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
97
+
98
+ "use strict";
99
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return on; });
100
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return off; });
101
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return once; });
102
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hasClass; });
103
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addClass; });
104
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return removeClass; });
105
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return getStyle; });
106
+ /* unused harmony export setStyle */
107
+ /* unused harmony export isScroll */
108
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return getScrollContainer; });
109
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isInContainer; });
110
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
111
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
112
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
113
+
114
+ /* istanbul ignore next */
115
+
116
+
117
+
118
+ var isServer = vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer;
119
+ var SPECIAL_CHARS_REGEXP = /([\:\-\_]+(.))/g;
120
+ var MOZ_HACK_REGEXP = /^moz([A-Z])/;
121
+ var ieVersion = isServer ? 0 : Number(document.documentMode);
122
+
123
+ /* istanbul ignore next */
124
+ var trim = function trim(string) {
125
+ return (string || '').replace(/^[\s\uFEFF]+|[\s\uFEFF]+$/g, '');
126
+ };
127
+ /* istanbul ignore next */
128
+ var camelCase = function camelCase(name) {
129
+ return name.replace(SPECIAL_CHARS_REGEXP, function (_, separator, letter, offset) {
130
+ return offset ? letter.toUpperCase() : letter;
131
+ }).replace(MOZ_HACK_REGEXP, 'Moz$1');
132
+ };
133
+
134
+ /* istanbul ignore next */
135
+ var on = function () {
136
+ if (!isServer && document.addEventListener) {
137
+ return function (element, event, handler) {
138
+ if (element && event && handler) {
139
+ element.addEventListener(event, handler, false);
140
+ }
141
+ };
142
+ } else {
143
+ return function (element, event, handler) {
144
+ if (element && event && handler) {
145
+ element.attachEvent('on' + event, handler);
146
+ }
147
+ };
148
+ }
149
+ }();
150
+
151
+ /* istanbul ignore next */
152
+ var off = function () {
153
+ if (!isServer && document.removeEventListener) {
154
+ return function (element, event, handler) {
155
+ if (element && event) {
156
+ element.removeEventListener(event, handler, false);
157
+ }
158
+ };
159
+ } else {
160
+ return function (element, event, handler) {
161
+ if (element && event) {
162
+ element.detachEvent('on' + event, handler);
163
+ }
164
+ };
165
+ }
166
+ }();
167
+
168
+ /* istanbul ignore next */
169
+ var once = function once(el, event, fn) {
170
+ var listener = function listener() {
171
+ if (fn) {
172
+ fn.apply(this, arguments);
173
+ }
174
+ off(el, event, listener);
175
+ };
176
+ on(el, event, listener);
177
+ };
178
+
179
+ /* istanbul ignore next */
180
+ function hasClass(el, cls) {
181
+ if (!el || !cls) return false;
182
+ if (cls.indexOf(' ') !== -1) throw new Error('className should not contain space.');
183
+ if (el.classList) {
184
+ return el.classList.contains(cls);
185
+ } else {
186
+ return (' ' + el.className + ' ').indexOf(' ' + cls + ' ') > -1;
187
+ }
188
+ };
189
+
190
+ /* istanbul ignore next */
191
+ function addClass(el, cls) {
192
+ if (!el) return;
193
+ var curClass = el.className;
194
+ var classes = (cls || '').split(' ');
195
+
196
+ for (var i = 0, j = classes.length; i < j; i++) {
197
+ var clsName = classes[i];
198
+ if (!clsName) continue;
199
+
200
+ if (el.classList) {
201
+ el.classList.add(clsName);
202
+ } else if (!hasClass(el, clsName)) {
203
+ curClass += ' ' + clsName;
204
+ }
205
+ }
206
+ if (!el.classList) {
207
+ el.setAttribute('class', curClass);
208
+ }
209
+ };
210
+
211
+ /* istanbul ignore next */
212
+ function removeClass(el, cls) {
213
+ if (!el || !cls) return;
214
+ var classes = cls.split(' ');
215
+ var curClass = ' ' + el.className + ' ';
216
+
217
+ for (var i = 0, j = classes.length; i < j; i++) {
218
+ var clsName = classes[i];
219
+ if (!clsName) continue;
220
+
221
+ if (el.classList) {
222
+ el.classList.remove(clsName);
223
+ } else if (hasClass(el, clsName)) {
224
+ curClass = curClass.replace(' ' + clsName + ' ', ' ');
225
+ }
226
+ }
227
+ if (!el.classList) {
228
+ el.setAttribute('class', trim(curClass));
229
+ }
230
+ };
231
+
232
+ /* istanbul ignore next */
233
+ var getStyle = ieVersion < 9 ? function (element, styleName) {
234
+ if (isServer) return;
235
+ if (!element || !styleName) return null;
236
+ styleName = camelCase(styleName);
237
+ if (styleName === 'float') {
238
+ styleName = 'styleFloat';
239
+ }
240
+ try {
241
+ switch (styleName) {
242
+ case 'opacity':
243
+ try {
244
+ return element.filters.item('alpha').opacity / 100;
245
+ } catch (e) {
246
+ return 1.0;
247
+ }
248
+ default:
249
+ return element.style[styleName] || element.currentStyle ? element.currentStyle[styleName] : null;
250
+ }
251
+ } catch (e) {
252
+ return element.style[styleName];
253
+ }
254
+ } : function (element, styleName) {
255
+ if (isServer) return;
256
+ if (!element || !styleName) return null;
257
+ styleName = camelCase(styleName);
258
+ if (styleName === 'float') {
259
+ styleName = 'cssFloat';
260
+ }
261
+ try {
262
+ var computed = document.defaultView.getComputedStyle(element, '');
263
+ return element.style[styleName] || computed ? computed[styleName] : null;
264
+ } catch (e) {
265
+ return element.style[styleName];
266
+ }
267
+ };
268
+
269
+ /* istanbul ignore next */
270
+ function setStyle(element, styleName, value) {
271
+ if (!element || !styleName) return;
272
+
273
+ if ((typeof styleName === 'undefined' ? 'undefined' : _typeof(styleName)) === 'object') {
274
+ for (var prop in styleName) {
275
+ if (styleName.hasOwnProperty(prop)) {
276
+ setStyle(element, prop, styleName[prop]);
277
+ }
278
+ }
279
+ } else {
280
+ styleName = camelCase(styleName);
281
+ if (styleName === 'opacity' && ieVersion < 9) {
282
+ element.style.filter = isNaN(value) ? '' : 'alpha(opacity=' + value * 100 + ')';
283
+ } else {
284
+ element.style[styleName] = value;
285
+ }
286
+ }
287
+ };
288
+
289
+ var isScroll = function isScroll(el, vertical) {
290
+ if (isServer) return;
291
+
292
+ var determinedDirection = vertical !== null && vertical !== undefined;
293
+ var overflow = determinedDirection ? vertical ? getStyle(el, 'overflow-y') : getStyle(el, 'overflow-x') : getStyle(el, 'overflow');
89
294
 
90
- /***/ 141:
295
+ return overflow.match(/(scroll|auto|overlay)/);
296
+ };
297
+
298
+ var getScrollContainer = function getScrollContainer(el, vertical) {
299
+ if (isServer) return;
300
+
301
+ var parent = el;
302
+ while (parent) {
303
+ if ([window, document, document.documentElement].includes(parent)) {
304
+ return window;
305
+ }
306
+ if (isScroll(parent, vertical)) {
307
+ return parent;
308
+ }
309
+ parent = parent.parentNode;
310
+ }
311
+
312
+ return parent;
313
+ };
314
+
315
+ var isInContainer = function isInContainer(el, container) {
316
+ if (isServer || !el || !container) return false;
317
+
318
+ var elRect = el.getBoundingClientRect();
319
+ var containerRect = void 0;
320
+
321
+ if ([window, document, document.documentElement, null, undefined].includes(container)) {
322
+ containerRect = {
323
+ top: 0,
324
+ right: window.innerWidth,
325
+ bottom: window.innerHeight,
326
+ left: 0
327
+ };
328
+ } else {
329
+ containerRect = container.getBoundingClientRect();
330
+ }
331
+
332
+ return elRect.top < containerRect.bottom && elRect.bottom > containerRect.top && elRect.right > containerRect.left && elRect.left < containerRect.right;
333
+ };
334
+
335
+ /***/ }),
336
+ /* 2 */,
337
+ /* 3 */
338
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
339
+
340
+ "use strict";
341
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "r", function() { return noop; });
342
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return hasOwn; });
343
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "t", function() { return toObject; });
344
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return getValueByPath; });
345
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return getPropByPath; });
346
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return generateId; });
347
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "u", function() { return valueEquals; });
348
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return escapeRegexpString; });
349
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return arrayFindIndex; });
350
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return arrayFind; });
351
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return coerceTruthyValueToArray; });
352
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return isIE; });
353
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return isEdge; });
354
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "n", function() { return isFirefox; });
355
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return autoprefixer; });
356
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "q", function() { return kebabCase; });
357
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return capitalize; });
358
+ /* unused harmony export looseEqual */
359
+ /* unused harmony export arrayEquals */
360
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "m", function() { return isEqual; });
361
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "l", function() { return isEmpty; });
362
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "s", function() { return rafThrottle; });
363
+ /* unused harmony export objToArray */
364
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "p", function() { return isMac; });
365
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
366
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
367
+ /* harmony import */ var element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4);
368
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
369
+
370
+
371
+
372
+
373
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
374
+
375
+ function noop() {};
376
+
377
+ function hasOwn(obj, key) {
378
+ return hasOwnProperty.call(obj, key);
379
+ };
380
+
381
+ function extend(to, _from) {
382
+ for (var key in _from) {
383
+ to[key] = _from[key];
384
+ }
385
+ return to;
386
+ };
387
+
388
+ function toObject(arr) {
389
+ var res = {};
390
+ for (var i = 0; i < arr.length; i++) {
391
+ if (arr[i]) {
392
+ extend(res, arr[i]);
393
+ }
394
+ }
395
+ return res;
396
+ };
397
+
398
+ var getValueByPath = function getValueByPath(object, prop) {
399
+ prop = prop || '';
400
+ var paths = prop.split('.');
401
+ var current = object;
402
+ var result = null;
403
+ for (var i = 0, j = paths.length; i < j; i++) {
404
+ var path = paths[i];
405
+ if (!current) break;
406
+
407
+ if (i === j - 1) {
408
+ result = current[path];
409
+ break;
410
+ }
411
+ current = current[path];
412
+ }
413
+ return result;
414
+ };
415
+
416
+ function getPropByPath(obj, path, strict) {
417
+ var tempObj = obj;
418
+ path = path.replace(/\[(\w+)\]/g, '.$1');
419
+ path = path.replace(/^\./, '');
420
+
421
+ var keyArr = path.split('.');
422
+ var i = 0;
423
+ for (var len = keyArr.length; i < len - 1; ++i) {
424
+ if (!tempObj && !strict) break;
425
+ var key = keyArr[i];
426
+ if (key in tempObj) {
427
+ tempObj = tempObj[key];
428
+ } else {
429
+ if (strict) {
430
+ throw new Error('please transfer a valid prop path to form item!');
431
+ }
432
+ break;
433
+ }
434
+ }
435
+ return {
436
+ o: tempObj,
437
+ k: keyArr[i],
438
+ v: tempObj ? tempObj[keyArr[i]] : null
439
+ };
440
+ };
441
+
442
+ var generateId = function generateId() {
443
+ return Math.floor(Math.random() * 10000);
444
+ };
445
+
446
+ var valueEquals = function valueEquals(a, b) {
447
+ // see: https://stackoverflow.com/questions/3115982/how-to-check-if-two-arrays-are-equal-with-javascript
448
+ if (a === b) return true;
449
+ if (!(a instanceof Array)) return false;
450
+ if (!(b instanceof Array)) return false;
451
+ if (a.length !== b.length) return false;
452
+ for (var i = 0; i !== a.length; ++i) {
453
+ if (a[i] !== b[i]) return false;
454
+ }
455
+ return true;
456
+ };
457
+
458
+ var escapeRegexpString = function escapeRegexpString() {
459
+ var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
460
+ return String(value).replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
461
+ };
462
+
463
+ // TODO: use native Array.find, Array.findIndex when IE support is dropped
464
+ var arrayFindIndex = function arrayFindIndex(arr, pred) {
465
+ for (var i = 0; i !== arr.length; ++i) {
466
+ if (pred(arr[i])) {
467
+ return i;
468
+ }
469
+ }
470
+ return -1;
471
+ };
472
+
473
+ var arrayFind = function arrayFind(arr, pred) {
474
+ var idx = arrayFindIndex(arr, pred);
475
+ return idx !== -1 ? arr[idx] : undefined;
476
+ };
477
+
478
+ // coerce truthy value to array
479
+ var coerceTruthyValueToArray = function coerceTruthyValueToArray(val) {
480
+ if (Array.isArray(val)) {
481
+ return val;
482
+ } else if (val) {
483
+ return [val];
484
+ } else {
485
+ return [];
486
+ }
487
+ };
488
+
489
+ var isIE = function isIE() {
490
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !isNaN(Number(document.documentMode));
491
+ };
492
+
493
+ var isEdge = function isEdge() {
494
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && navigator.userAgent.indexOf('Edge') > -1;
495
+ };
496
+
497
+ var isFirefox = function isFirefox() {
498
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && !!window.navigator.userAgent.match(/firefox/i);
499
+ };
500
+
501
+ var autoprefixer = function autoprefixer(style) {
502
+ if ((typeof style === 'undefined' ? 'undefined' : _typeof(style)) !== 'object') return style;
503
+ var rules = ['transform', 'transition', 'animation'];
504
+ var prefixes = ['ms-', 'webkit-'];
505
+ rules.forEach(function (rule) {
506
+ var value = style[rule];
507
+ if (rule && value) {
508
+ prefixes.forEach(function (prefix) {
509
+ style[prefix + rule] = value;
510
+ });
511
+ }
512
+ });
513
+ return style;
514
+ };
515
+
516
+ var kebabCase = function kebabCase(str) {
517
+ var hyphenateRE = /([^-])([A-Z])/g;
518
+ return str.replace(hyphenateRE, '$1-$2').replace(hyphenateRE, '$1-$2').toLowerCase();
519
+ };
520
+
521
+ var capitalize = function capitalize(str) {
522
+ if (!Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isString */ "e"])(str)) return str;
523
+ return str.charAt(0).toUpperCase() + str.slice(1);
524
+ };
525
+
526
+ var looseEqual = function looseEqual(a, b) {
527
+ var isObjectA = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(a);
528
+ var isObjectB = Object(element_ui_src_utils_types__WEBPACK_IMPORTED_MODULE_1__[/* isObject */ "d"])(b);
529
+ if (isObjectA && isObjectB) {
530
+ return JSON.stringify(a) === JSON.stringify(b);
531
+ } else if (!isObjectA && !isObjectB) {
532
+ return String(a) === String(b);
533
+ } else {
534
+ return false;
535
+ }
536
+ };
537
+
538
+ var arrayEquals = function arrayEquals(arrayA, arrayB) {
539
+ arrayA = arrayA || [];
540
+ arrayB = arrayB || [];
541
+
542
+ if (arrayA.length !== arrayB.length) {
543
+ return false;
544
+ }
545
+
546
+ for (var i = 0; i < arrayA.length; i++) {
547
+ if (!looseEqual(arrayA[i], arrayB[i])) {
548
+ return false;
549
+ }
550
+ }
551
+
552
+ return true;
553
+ };
554
+
555
+ var isEqual = function isEqual(value1, value2) {
556
+ if (Array.isArray(value1) && Array.isArray(value2)) {
557
+ return arrayEquals(value1, value2);
558
+ }
559
+ return looseEqual(value1, value2);
560
+ };
561
+
562
+ var isEmpty = function isEmpty(val) {
563
+ // null or undefined
564
+ if (val == null) return true;
565
+
566
+ if (typeof val === 'boolean') return false;
567
+
568
+ if (typeof val === 'number') return !val;
569
+
570
+ if (val instanceof Error) return val.message === '';
571
+
572
+ switch (Object.prototype.toString.call(val)) {
573
+ // String or Array
574
+ case '[object String]':
575
+ case '[object Array]':
576
+ return !val.length;
577
+
578
+ // Map or Set or File
579
+ case '[object File]':
580
+ case '[object Map]':
581
+ case '[object Set]':
582
+ {
583
+ return !val.size;
584
+ }
585
+ // Plain Object
586
+ case '[object Object]':
587
+ {
588
+ return !Object.keys(val).length;
589
+ }
590
+ }
591
+
592
+ return false;
593
+ };
594
+
595
+ function rafThrottle(fn) {
596
+ var locked = false;
597
+ return function () {
598
+ var _this = this;
599
+
600
+ for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
601
+ args[_key] = arguments[_key];
602
+ }
603
+
604
+ if (locked) return;
605
+ locked = true;
606
+ window.requestAnimationFrame(function (_) {
607
+ fn.apply(_this, args);
608
+ locked = false;
609
+ });
610
+ };
611
+ }
612
+
613
+ function objToArray(obj) {
614
+ if (Array.isArray(obj)) {
615
+ return obj;
616
+ }
617
+ return isEmpty(obj) ? [] : [obj];
618
+ }
619
+
620
+ var isMac = function isMac() {
621
+ return !vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer && /macintosh|mac os x/i.test(navigator.userAgent);
622
+ };
623
+
624
+ /***/ }),
625
+ /* 4 */
626
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
627
+
628
+ "use strict";
629
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return isString; });
630
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return isObject; });
631
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return isHtmlElement; });
632
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return isFunction; });
633
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return isUndefined; });
634
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return isDefined; });
635
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
636
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
637
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
638
+
639
+
640
+
641
+ function isString(obj) {
642
+ return Object.prototype.toString.call(obj) === '[object String]';
643
+ }
644
+
645
+ function isObject(obj) {
646
+ return Object.prototype.toString.call(obj) === '[object Object]';
647
+ }
648
+
649
+ function isHtmlElement(node) {
650
+ return node && node.nodeType === Node.ELEMENT_NODE;
651
+ }
652
+
653
+ /**
654
+ * - Inspired:
655
+ * https://github.com/jashkenas/underscore/blob/master/modules/isFunction.js
656
+ */
657
+ var isFunction = function isFunction(functionToCheck) {
658
+ var getType = {};
659
+ return functionToCheck && getType.toString.call(functionToCheck) === '[object Function]';
660
+ };
661
+
662
+ if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer || typeof document.childNodes !== 'function')) {
663
+ isFunction = function isFunction(obj) {
664
+ return typeof obj === 'function' || false;
665
+ };
666
+ }
667
+
668
+
669
+
670
+ var isUndefined = function isUndefined(val) {
671
+ return val === void 0;
672
+ };
673
+
674
+ var isDefined = function isDefined(val) {
675
+ return val !== undefined && val !== null;
676
+ };
677
+
678
+ /***/ }),
679
+ /* 5 */,
680
+ /* 6 */,
681
+ /* 7 */,
682
+ /* 8 */
683
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
684
+
685
+ "use strict";
686
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(0);
687
+ /* harmony import */ var vue__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(vue__WEBPACK_IMPORTED_MODULE_0__);
688
+
689
+
690
+ var scrollBarWidth = void 0;
691
+
692
+ /* harmony default export */ __webpack_exports__["a"] = (function () {
693
+ if (vue__WEBPACK_IMPORTED_MODULE_0___default.a.prototype.$isServer) return 0;
694
+ if (scrollBarWidth !== undefined) return scrollBarWidth;
695
+
696
+ var outer = document.createElement('div');
697
+ outer.className = 'el-scrollbar__wrap';
698
+ outer.style.visibility = 'hidden';
699
+ outer.style.width = '100px';
700
+ outer.style.position = 'absolute';
701
+ outer.style.top = '-9999px';
702
+ document.body.appendChild(outer);
703
+
704
+ var widthNoScroll = outer.offsetWidth;
705
+ outer.style.overflow = 'scroll';
706
+
707
+ var inner = document.createElement('div');
708
+ inner.style.width = '100%';
709
+ outer.appendChild(inner);
710
+
711
+ var widthWithScroll = inner.offsetWidth;
712
+ outer.parentNode.removeChild(outer);
713
+ scrollBarWidth = widthNoScroll - widthWithScroll;
714
+
715
+ return scrollBarWidth;
716
+ });;
717
+
718
+ /***/ }),
719
+ /* 9 */,
720
+ /* 10 */,
721
+ /* 11 */,
722
+ /* 12 */,
723
+ /* 13 */,
724
+ /* 14 */
725
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
726
+
727
+ "use strict";
728
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return addResizeListener; });
729
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return removeResizeListener; });
730
+ /* harmony import */ var resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22);
731
+ /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
732
+ /* harmony import */ var throttle_debounce__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(throttle_debounce__WEBPACK_IMPORTED_MODULE_1__);
733
+
734
+
735
+
736
+ var isServer = typeof window === 'undefined';
737
+
738
+ /* istanbul ignore next */
739
+ var resizeHandler = function resizeHandler(entries) {
740
+ for (var _iterator = entries, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
741
+ var _ref;
742
+
743
+ if (_isArray) {
744
+ if (_i >= _iterator.length) break;
745
+ _ref = _iterator[_i++];
746
+ } else {
747
+ _i = _iterator.next();
748
+ if (_i.done) break;
749
+ _ref = _i.value;
750
+ }
751
+
752
+ var entry = _ref;
753
+
754
+ var listeners = entry.target.__resizeListeners__ || [];
755
+ if (listeners.length) {
756
+ listeners.forEach(function (fn) {
757
+ fn();
758
+ });
759
+ }
760
+ }
761
+ };
762
+
763
+ /* istanbul ignore next */
764
+ var addResizeListener = function addResizeListener(element, fn) {
765
+ if (isServer) return;
766
+ if (!element.__resizeListeners__) {
767
+ element.__resizeListeners__ = [];
768
+ element.__ro__ = new resize_observer_polyfill__WEBPACK_IMPORTED_MODULE_0__[/* default */ "a"](Object(throttle_debounce__WEBPACK_IMPORTED_MODULE_1__["debounce"])(16, resizeHandler));
769
+ element.__ro__.observe(element);
770
+ }
771
+ element.__resizeListeners__.push(fn);
772
+ };
773
+
774
+ /* istanbul ignore next */
775
+ var removeResizeListener = function removeResizeListener(element, fn) {
776
+ if (!element || !element.__resizeListeners__) return;
777
+ element.__resizeListeners__.splice(element.__resizeListeners__.indexOf(fn), 1);
778
+ if (!element.__resizeListeners__.length) {
779
+ element.__ro__.disconnect();
780
+ }
781
+ };
782
+
783
+ /***/ }),
784
+ /* 15 */,
785
+ /* 16 */
786
+ /***/ (function(module, exports, __webpack_require__) {
787
+
788
+ /* eslint-disable no-undefined */
789
+
790
+ var throttle = __webpack_require__(17);
791
+
792
+ /**
793
+ * Debounce execution of a function. Debouncing, unlike throttling,
794
+ * guarantees that a function is only executed a single time, either at the
795
+ * very beginning of a series of calls, or at the very end.
796
+ *
797
+ * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
798
+ * @param {Boolean} [atBegin] Optional, defaults to false. If atBegin is false or unspecified, callback will only be executed `delay` milliseconds
799
+ * after the last debounced-function call. If atBegin is true, callback will be executed only at the first debounced-function call.
800
+ * (After the throttled-function has not been called for `delay` milliseconds, the internal counter is reset).
801
+ * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
802
+ * to `callback` when the debounced-function is executed.
803
+ *
804
+ * @return {Function} A new, debounced function.
805
+ */
806
+ module.exports = function ( delay, atBegin, callback ) {
807
+ return callback === undefined ? throttle(delay, atBegin, false) : throttle(delay, callback, atBegin !== false);
808
+ };
809
+
810
+
811
+ /***/ }),
812
+ /* 17 */
813
+ /***/ (function(module, exports) {
814
+
815
+ /* eslint-disable no-undefined,no-param-reassign,no-shadow */
816
+
817
+ /**
818
+ * Throttle execution of a function. Especially useful for rate limiting
819
+ * execution of handlers on events like resize and scroll.
820
+ *
821
+ * @param {Number} delay A zero-or-greater delay in milliseconds. For event callbacks, values around 100 or 250 (or even higher) are most useful.
822
+ * @param {Boolean} [noTrailing] Optional, defaults to false. If noTrailing is true, callback will only execute every `delay` milliseconds while the
823
+ * throttled-function is being called. If noTrailing is false or unspecified, callback will be executed one final time
824
+ * after the last throttled-function call. (After the throttled-function has not been called for `delay` milliseconds,
825
+ * the internal counter is reset)
826
+ * @param {Function} callback A function to be executed after delay milliseconds. The `this` context and all arguments are passed through, as-is,
827
+ * to `callback` when the throttled-function is executed.
828
+ * @param {Boolean} [debounceMode] If `debounceMode` is true (at begin), schedule `clear` to execute after `delay` ms. If `debounceMode` is false (at end),
829
+ * schedule `callback` to execute after `delay` ms.
830
+ *
831
+ * @return {Function} A new, throttled, function.
832
+ */
833
+ module.exports = function ( delay, noTrailing, callback, debounceMode ) {
834
+
835
+ // After wrapper has stopped being called, this timeout ensures that
836
+ // `callback` is executed at the proper times in `throttle` and `end`
837
+ // debounce modes.
838
+ var timeoutID;
839
+
840
+ // Keep track of the last time `callback` was executed.
841
+ var lastExec = 0;
842
+
843
+ // `noTrailing` defaults to falsy.
844
+ if ( typeof noTrailing !== 'boolean' ) {
845
+ debounceMode = callback;
846
+ callback = noTrailing;
847
+ noTrailing = undefined;
848
+ }
849
+
850
+ // The `wrapper` function encapsulates all of the throttling / debouncing
851
+ // functionality and when executed will limit the rate at which `callback`
852
+ // is executed.
853
+ function wrapper () {
854
+
855
+ var self = this;
856
+ var elapsed = Number(new Date()) - lastExec;
857
+ var args = arguments;
858
+
859
+ // Execute `callback` and update the `lastExec` timestamp.
860
+ function exec () {
861
+ lastExec = Number(new Date());
862
+ callback.apply(self, args);
863
+ }
864
+
865
+ // If `debounceMode` is true (at begin) this is used to clear the flag
866
+ // to allow future `callback` executions.
867
+ function clear () {
868
+ timeoutID = undefined;
869
+ }
870
+
871
+ if ( debounceMode && !timeoutID ) {
872
+ // Since `wrapper` is being called for the first time and
873
+ // `debounceMode` is true (at begin), execute `callback`.
874
+ exec();
875
+ }
876
+
877
+ // Clear any existing timeout.
878
+ if ( timeoutID ) {
879
+ clearTimeout(timeoutID);
880
+ }
881
+
882
+ if ( debounceMode === undefined && elapsed > delay ) {
883
+ // In throttle mode, if `delay` time has been exceeded, execute
884
+ // `callback`.
885
+ exec();
886
+
887
+ } else if ( noTrailing !== true ) {
888
+ // In trailing throttle mode, since `delay` time has not been
889
+ // exceeded, schedule `callback` to execute `delay` ms after most
890
+ // recent execution.
891
+ //
892
+ // If `debounceMode` is true (at begin), schedule `clear` to execute
893
+ // after `delay` ms.
894
+ //
895
+ // If `debounceMode` is false (at end), schedule `callback` to
896
+ // execute after `delay` ms.
897
+ timeoutID = setTimeout(debounceMode ? clear : exec, debounceMode === undefined ? delay - elapsed : delay);
898
+ }
899
+
900
+ }
901
+
902
+ // Return the wrapper function.
903
+ return wrapper;
904
+
905
+ };
906
+
907
+
908
+ /***/ }),
909
+ /* 18 */,
910
+ /* 19 */,
911
+ /* 20 */,
912
+ /* 21 */
913
+ /***/ (function(module, exports, __webpack_require__) {
914
+
915
+ var throttle = __webpack_require__(17);
916
+ var debounce = __webpack_require__(16);
917
+
918
+ module.exports = {
919
+ throttle: throttle,
920
+ debounce: debounce
921
+ };
922
+
923
+
924
+ /***/ }),
925
+ /* 22 */
926
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
927
+
928
+ "use strict";
929
+ /* WEBPACK VAR INJECTION */(function(global) {/**
930
+ * A collection of shims that provide minimal functionality of the ES6 collections.
931
+ *
932
+ * These implementations are not meant to be used outside of the ResizeObserver
933
+ * modules as they cover only a limited range of use cases.
934
+ */
935
+ /* eslint-disable require-jsdoc, valid-jsdoc */
936
+ var MapShim = (function () {
937
+ if (typeof Map !== 'undefined') {
938
+ return Map;
939
+ }
940
+ /**
941
+ * Returns index in provided array that matches the specified key.
942
+ *
943
+ * @param {Array<Array>} arr
944
+ * @param {*} key
945
+ * @returns {number}
946
+ */
947
+ function getIndex(arr, key) {
948
+ var result = -1;
949
+ arr.some(function (entry, index) {
950
+ if (entry[0] === key) {
951
+ result = index;
952
+ return true;
953
+ }
954
+ return false;
955
+ });
956
+ return result;
957
+ }
958
+ return /** @class */ (function () {
959
+ function class_1() {
960
+ this.__entries__ = [];
961
+ }
962
+ Object.defineProperty(class_1.prototype, "size", {
963
+ /**
964
+ * @returns {boolean}
965
+ */
966
+ get: function () {
967
+ return this.__entries__.length;
968
+ },
969
+ enumerable: true,
970
+ configurable: true
971
+ });
972
+ /**
973
+ * @param {*} key
974
+ * @returns {*}
975
+ */
976
+ class_1.prototype.get = function (key) {
977
+ var index = getIndex(this.__entries__, key);
978
+ var entry = this.__entries__[index];
979
+ return entry && entry[1];
980
+ };
981
+ /**
982
+ * @param {*} key
983
+ * @param {*} value
984
+ * @returns {void}
985
+ */
986
+ class_1.prototype.set = function (key, value) {
987
+ var index = getIndex(this.__entries__, key);
988
+ if (~index) {
989
+ this.__entries__[index][1] = value;
990
+ }
991
+ else {
992
+ this.__entries__.push([key, value]);
993
+ }
994
+ };
995
+ /**
996
+ * @param {*} key
997
+ * @returns {void}
998
+ */
999
+ class_1.prototype.delete = function (key) {
1000
+ var entries = this.__entries__;
1001
+ var index = getIndex(entries, key);
1002
+ if (~index) {
1003
+ entries.splice(index, 1);
1004
+ }
1005
+ };
1006
+ /**
1007
+ * @param {*} key
1008
+ * @returns {void}
1009
+ */
1010
+ class_1.prototype.has = function (key) {
1011
+ return !!~getIndex(this.__entries__, key);
1012
+ };
1013
+ /**
1014
+ * @returns {void}
1015
+ */
1016
+ class_1.prototype.clear = function () {
1017
+ this.__entries__.splice(0);
1018
+ };
1019
+ /**
1020
+ * @param {Function} callback
1021
+ * @param {*} [ctx=null]
1022
+ * @returns {void}
1023
+ */
1024
+ class_1.prototype.forEach = function (callback, ctx) {
1025
+ if (ctx === void 0) { ctx = null; }
1026
+ for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
1027
+ var entry = _a[_i];
1028
+ callback.call(ctx, entry[1], entry[0]);
1029
+ }
1030
+ };
1031
+ return class_1;
1032
+ }());
1033
+ })();
1034
+
1035
+ /**
1036
+ * Detects whether window and document objects are available in current environment.
1037
+ */
1038
+ var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
1039
+
1040
+ // Returns global object of a current environment.
1041
+ var global$1 = (function () {
1042
+ if (typeof global !== 'undefined' && global.Math === Math) {
1043
+ return global;
1044
+ }
1045
+ if (typeof self !== 'undefined' && self.Math === Math) {
1046
+ return self;
1047
+ }
1048
+ if (typeof window !== 'undefined' && window.Math === Math) {
1049
+ return window;
1050
+ }
1051
+ // eslint-disable-next-line no-new-func
1052
+ return Function('return this')();
1053
+ })();
1054
+
1055
+ /**
1056
+ * A shim for the requestAnimationFrame which falls back to the setTimeout if
1057
+ * first one is not supported.
1058
+ *
1059
+ * @returns {number} Requests' identifier.
1060
+ */
1061
+ var requestAnimationFrame$1 = (function () {
1062
+ if (typeof requestAnimationFrame === 'function') {
1063
+ // It's required to use a bounded function because IE sometimes throws
1064
+ // an "Invalid calling object" error if rAF is invoked without the global
1065
+ // object on the left hand side.
1066
+ return requestAnimationFrame.bind(global$1);
1067
+ }
1068
+ return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
1069
+ })();
1070
+
1071
+ // Defines minimum timeout before adding a trailing call.
1072
+ var trailingTimeout = 2;
1073
+ /**
1074
+ * Creates a wrapper function which ensures that provided callback will be
1075
+ * invoked only once during the specified delay period.
1076
+ *
1077
+ * @param {Function} callback - Function to be invoked after the delay period.
1078
+ * @param {number} delay - Delay after which to invoke callback.
1079
+ * @returns {Function}
1080
+ */
1081
+ function throttle (callback, delay) {
1082
+ var leadingCall = false, trailingCall = false, lastCallTime = 0;
1083
+ /**
1084
+ * Invokes the original callback function and schedules new invocation if
1085
+ * the "proxy" was called during current request.
1086
+ *
1087
+ * @returns {void}
1088
+ */
1089
+ function resolvePending() {
1090
+ if (leadingCall) {
1091
+ leadingCall = false;
1092
+ callback();
1093
+ }
1094
+ if (trailingCall) {
1095
+ proxy();
1096
+ }
1097
+ }
1098
+ /**
1099
+ * Callback invoked after the specified delay. It will further postpone
1100
+ * invocation of the original function delegating it to the
1101
+ * requestAnimationFrame.
1102
+ *
1103
+ * @returns {void}
1104
+ */
1105
+ function timeoutCallback() {
1106
+ requestAnimationFrame$1(resolvePending);
1107
+ }
1108
+ /**
1109
+ * Schedules invocation of the original function.
1110
+ *
1111
+ * @returns {void}
1112
+ */
1113
+ function proxy() {
1114
+ var timeStamp = Date.now();
1115
+ if (leadingCall) {
1116
+ // Reject immediately following calls.
1117
+ if (timeStamp - lastCallTime < trailingTimeout) {
1118
+ return;
1119
+ }
1120
+ // Schedule new call to be in invoked when the pending one is resolved.
1121
+ // This is important for "transitions" which never actually start
1122
+ // immediately so there is a chance that we might miss one if change
1123
+ // happens amids the pending invocation.
1124
+ trailingCall = true;
1125
+ }
1126
+ else {
1127
+ leadingCall = true;
1128
+ trailingCall = false;
1129
+ setTimeout(timeoutCallback, delay);
1130
+ }
1131
+ lastCallTime = timeStamp;
1132
+ }
1133
+ return proxy;
1134
+ }
1135
+
1136
+ // Minimum delay before invoking the update of observers.
1137
+ var REFRESH_DELAY = 20;
1138
+ // A list of substrings of CSS properties used to find transition events that
1139
+ // might affect dimensions of observed elements.
1140
+ var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
1141
+ // Check if MutationObserver is available.
1142
+ var mutationObserverSupported = typeof MutationObserver !== 'undefined';
1143
+ /**
1144
+ * Singleton controller class which handles updates of ResizeObserver instances.
1145
+ */
1146
+ var ResizeObserverController = /** @class */ (function () {
1147
+ /**
1148
+ * Creates a new instance of ResizeObserverController.
1149
+ *
1150
+ * @private
1151
+ */
1152
+ function ResizeObserverController() {
1153
+ /**
1154
+ * Indicates whether DOM listeners have been added.
1155
+ *
1156
+ * @private {boolean}
1157
+ */
1158
+ this.connected_ = false;
1159
+ /**
1160
+ * Tells that controller has subscribed for Mutation Events.
1161
+ *
1162
+ * @private {boolean}
1163
+ */
1164
+ this.mutationEventsAdded_ = false;
1165
+ /**
1166
+ * Keeps reference to the instance of MutationObserver.
1167
+ *
1168
+ * @private {MutationObserver}
1169
+ */
1170
+ this.mutationsObserver_ = null;
1171
+ /**
1172
+ * A list of connected observers.
1173
+ *
1174
+ * @private {Array<ResizeObserverSPI>}
1175
+ */
1176
+ this.observers_ = [];
1177
+ this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
1178
+ this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
1179
+ }
1180
+ /**
1181
+ * Adds observer to observers list.
1182
+ *
1183
+ * @param {ResizeObserverSPI} observer - Observer to be added.
1184
+ * @returns {void}
1185
+ */
1186
+ ResizeObserverController.prototype.addObserver = function (observer) {
1187
+ if (!~this.observers_.indexOf(observer)) {
1188
+ this.observers_.push(observer);
1189
+ }
1190
+ // Add listeners if they haven't been added yet.
1191
+ if (!this.connected_) {
1192
+ this.connect_();
1193
+ }
1194
+ };
1195
+ /**
1196
+ * Removes observer from observers list.
1197
+ *
1198
+ * @param {ResizeObserverSPI} observer - Observer to be removed.
1199
+ * @returns {void}
1200
+ */
1201
+ ResizeObserverController.prototype.removeObserver = function (observer) {
1202
+ var observers = this.observers_;
1203
+ var index = observers.indexOf(observer);
1204
+ // Remove observer if it's present in registry.
1205
+ if (~index) {
1206
+ observers.splice(index, 1);
1207
+ }
1208
+ // Remove listeners if controller has no connected observers.
1209
+ if (!observers.length && this.connected_) {
1210
+ this.disconnect_();
1211
+ }
1212
+ };
1213
+ /**
1214
+ * Invokes the update of observers. It will continue running updates insofar
1215
+ * it detects changes.
1216
+ *
1217
+ * @returns {void}
1218
+ */
1219
+ ResizeObserverController.prototype.refresh = function () {
1220
+ var changesDetected = this.updateObservers_();
1221
+ // Continue running updates if changes have been detected as there might
1222
+ // be future ones caused by CSS transitions.
1223
+ if (changesDetected) {
1224
+ this.refresh();
1225
+ }
1226
+ };
1227
+ /**
1228
+ * Updates every observer from observers list and notifies them of queued
1229
+ * entries.
1230
+ *
1231
+ * @private
1232
+ * @returns {boolean} Returns "true" if any observer has detected changes in
1233
+ * dimensions of it's elements.
1234
+ */
1235
+ ResizeObserverController.prototype.updateObservers_ = function () {
1236
+ // Collect observers that have active observations.
1237
+ var activeObservers = this.observers_.filter(function (observer) {
1238
+ return observer.gatherActive(), observer.hasActive();
1239
+ });
1240
+ // Deliver notifications in a separate cycle in order to avoid any
1241
+ // collisions between observers, e.g. when multiple instances of
1242
+ // ResizeObserver are tracking the same element and the callback of one
1243
+ // of them changes content dimensions of the observed target. Sometimes
1244
+ // this may result in notifications being blocked for the rest of observers.
1245
+ activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
1246
+ return activeObservers.length > 0;
1247
+ };
1248
+ /**
1249
+ * Initializes DOM listeners.
1250
+ *
1251
+ * @private
1252
+ * @returns {void}
1253
+ */
1254
+ ResizeObserverController.prototype.connect_ = function () {
1255
+ // Do nothing if running in a non-browser environment or if listeners
1256
+ // have been already added.
1257
+ if (!isBrowser || this.connected_) {
1258
+ return;
1259
+ }
1260
+ // Subscription to the "Transitionend" event is used as a workaround for
1261
+ // delayed transitions. This way it's possible to capture at least the
1262
+ // final state of an element.
1263
+ document.addEventListener('transitionend', this.onTransitionEnd_);
1264
+ window.addEventListener('resize', this.refresh);
1265
+ if (mutationObserverSupported) {
1266
+ this.mutationsObserver_ = new MutationObserver(this.refresh);
1267
+ this.mutationsObserver_.observe(document, {
1268
+ attributes: true,
1269
+ childList: true,
1270
+ characterData: true,
1271
+ subtree: true
1272
+ });
1273
+ }
1274
+ else {
1275
+ document.addEventListener('DOMSubtreeModified', this.refresh);
1276
+ this.mutationEventsAdded_ = true;
1277
+ }
1278
+ this.connected_ = true;
1279
+ };
1280
+ /**
1281
+ * Removes DOM listeners.
1282
+ *
1283
+ * @private
1284
+ * @returns {void}
1285
+ */
1286
+ ResizeObserverController.prototype.disconnect_ = function () {
1287
+ // Do nothing if running in a non-browser environment or if listeners
1288
+ // have been already removed.
1289
+ if (!isBrowser || !this.connected_) {
1290
+ return;
1291
+ }
1292
+ document.removeEventListener('transitionend', this.onTransitionEnd_);
1293
+ window.removeEventListener('resize', this.refresh);
1294
+ if (this.mutationsObserver_) {
1295
+ this.mutationsObserver_.disconnect();
1296
+ }
1297
+ if (this.mutationEventsAdded_) {
1298
+ document.removeEventListener('DOMSubtreeModified', this.refresh);
1299
+ }
1300
+ this.mutationsObserver_ = null;
1301
+ this.mutationEventsAdded_ = false;
1302
+ this.connected_ = false;
1303
+ };
1304
+ /**
1305
+ * "Transitionend" event handler.
1306
+ *
1307
+ * @private
1308
+ * @param {TransitionEvent} event
1309
+ * @returns {void}
1310
+ */
1311
+ ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
1312
+ var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
1313
+ // Detect whether transition may affect dimensions of an element.
1314
+ var isReflowProperty = transitionKeys.some(function (key) {
1315
+ return !!~propertyName.indexOf(key);
1316
+ });
1317
+ if (isReflowProperty) {
1318
+ this.refresh();
1319
+ }
1320
+ };
1321
+ /**
1322
+ * Returns instance of the ResizeObserverController.
1323
+ *
1324
+ * @returns {ResizeObserverController}
1325
+ */
1326
+ ResizeObserverController.getInstance = function () {
1327
+ if (!this.instance_) {
1328
+ this.instance_ = new ResizeObserverController();
1329
+ }
1330
+ return this.instance_;
1331
+ };
1332
+ /**
1333
+ * Holds reference to the controller's instance.
1334
+ *
1335
+ * @private {ResizeObserverController}
1336
+ */
1337
+ ResizeObserverController.instance_ = null;
1338
+ return ResizeObserverController;
1339
+ }());
1340
+
1341
+ /**
1342
+ * Defines non-writable/enumerable properties of the provided target object.
1343
+ *
1344
+ * @param {Object} target - Object for which to define properties.
1345
+ * @param {Object} props - Properties to be defined.
1346
+ * @returns {Object} Target object.
1347
+ */
1348
+ var defineConfigurable = (function (target, props) {
1349
+ for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
1350
+ var key = _a[_i];
1351
+ Object.defineProperty(target, key, {
1352
+ value: props[key],
1353
+ enumerable: false,
1354
+ writable: false,
1355
+ configurable: true
1356
+ });
1357
+ }
1358
+ return target;
1359
+ });
1360
+
1361
+ /**
1362
+ * Returns the global object associated with provided element.
1363
+ *
1364
+ * @param {Object} target
1365
+ * @returns {Object}
1366
+ */
1367
+ var getWindowOf = (function (target) {
1368
+ // Assume that the element is an instance of Node, which means that it
1369
+ // has the "ownerDocument" property from which we can retrieve a
1370
+ // corresponding global object.
1371
+ var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
1372
+ // Return the local global object if it's not possible extract one from
1373
+ // provided element.
1374
+ return ownerGlobal || global$1;
1375
+ });
1376
+
1377
+ // Placeholder of an empty content rectangle.
1378
+ var emptyRect = createRectInit(0, 0, 0, 0);
1379
+ /**
1380
+ * Converts provided string to a number.
1381
+ *
1382
+ * @param {number|string} value
1383
+ * @returns {number}
1384
+ */
1385
+ function toFloat(value) {
1386
+ return parseFloat(value) || 0;
1387
+ }
1388
+ /**
1389
+ * Extracts borders size from provided styles.
1390
+ *
1391
+ * @param {CSSStyleDeclaration} styles
1392
+ * @param {...string} positions - Borders positions (top, right, ...)
1393
+ * @returns {number}
1394
+ */
1395
+ function getBordersSize(styles) {
1396
+ var positions = [];
1397
+ for (var _i = 1; _i < arguments.length; _i++) {
1398
+ positions[_i - 1] = arguments[_i];
1399
+ }
1400
+ return positions.reduce(function (size, position) {
1401
+ var value = styles['border-' + position + '-width'];
1402
+ return size + toFloat(value);
1403
+ }, 0);
1404
+ }
1405
+ /**
1406
+ * Extracts paddings sizes from provided styles.
1407
+ *
1408
+ * @param {CSSStyleDeclaration} styles
1409
+ * @returns {Object} Paddings box.
1410
+ */
1411
+ function getPaddings(styles) {
1412
+ var positions = ['top', 'right', 'bottom', 'left'];
1413
+ var paddings = {};
1414
+ for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
1415
+ var position = positions_1[_i];
1416
+ var value = styles['padding-' + position];
1417
+ paddings[position] = toFloat(value);
1418
+ }
1419
+ return paddings;
1420
+ }
1421
+ /**
1422
+ * Calculates content rectangle of provided SVG element.
1423
+ *
1424
+ * @param {SVGGraphicsElement} target - Element content rectangle of which needs
1425
+ * to be calculated.
1426
+ * @returns {DOMRectInit}
1427
+ */
1428
+ function getSVGContentRect(target) {
1429
+ var bbox = target.getBBox();
1430
+ return createRectInit(0, 0, bbox.width, bbox.height);
1431
+ }
1432
+ /**
1433
+ * Calculates content rectangle of provided HTMLElement.
1434
+ *
1435
+ * @param {HTMLElement} target - Element for which to calculate the content rectangle.
1436
+ * @returns {DOMRectInit}
1437
+ */
1438
+ function getHTMLElementContentRect(target) {
1439
+ // Client width & height properties can't be
1440
+ // used exclusively as they provide rounded values.
1441
+ var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
1442
+ // By this condition we can catch all non-replaced inline, hidden and
1443
+ // detached elements. Though elements with width & height properties less
1444
+ // than 0.5 will be discarded as well.
1445
+ //
1446
+ // Without it we would need to implement separate methods for each of
1447
+ // those cases and it's not possible to perform a precise and performance
1448
+ // effective test for hidden elements. E.g. even jQuery's ':visible' filter
1449
+ // gives wrong results for elements with width & height less than 0.5.
1450
+ if (!clientWidth && !clientHeight) {
1451
+ return emptyRect;
1452
+ }
1453
+ var styles = getWindowOf(target).getComputedStyle(target);
1454
+ var paddings = getPaddings(styles);
1455
+ var horizPad = paddings.left + paddings.right;
1456
+ var vertPad = paddings.top + paddings.bottom;
1457
+ // Computed styles of width & height are being used because they are the
1458
+ // only dimensions available to JS that contain non-rounded values. It could
1459
+ // be possible to utilize the getBoundingClientRect if only it's data wasn't
1460
+ // affected by CSS transformations let alone paddings, borders and scroll bars.
1461
+ var width = toFloat(styles.width), height = toFloat(styles.height);
1462
+ // Width & height include paddings and borders when the 'border-box' box
1463
+ // model is applied (except for IE).
1464
+ if (styles.boxSizing === 'border-box') {
1465
+ // Following conditions are required to handle Internet Explorer which
1466
+ // doesn't include paddings and borders to computed CSS dimensions.
1467
+ //
1468
+ // We can say that if CSS dimensions + paddings are equal to the "client"
1469
+ // properties then it's either IE, and thus we don't need to subtract
1470
+ // anything, or an element merely doesn't have paddings/borders styles.
1471
+ if (Math.round(width + horizPad) !== clientWidth) {
1472
+ width -= getBordersSize(styles, 'left', 'right') + horizPad;
1473
+ }
1474
+ if (Math.round(height + vertPad) !== clientHeight) {
1475
+ height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
1476
+ }
1477
+ }
1478
+ // Following steps can't be applied to the document's root element as its
1479
+ // client[Width/Height] properties represent viewport area of the window.
1480
+ // Besides, it's as well not necessary as the <html> itself neither has
1481
+ // rendered scroll bars nor it can be clipped.
1482
+ if (!isDocumentElement(target)) {
1483
+ // In some browsers (only in Firefox, actually) CSS width & height
1484
+ // include scroll bars size which can be removed at this step as scroll
1485
+ // bars are the only difference between rounded dimensions + paddings
1486
+ // and "client" properties, though that is not always true in Chrome.
1487
+ var vertScrollbar = Math.round(width + horizPad) - clientWidth;
1488
+ var horizScrollbar = Math.round(height + vertPad) - clientHeight;
1489
+ // Chrome has a rather weird rounding of "client" properties.
1490
+ // E.g. for an element with content width of 314.2px it sometimes gives
1491
+ // the client width of 315px and for the width of 314.7px it may give
1492
+ // 314px. And it doesn't happen all the time. So just ignore this delta
1493
+ // as a non-relevant.
1494
+ if (Math.abs(vertScrollbar) !== 1) {
1495
+ width -= vertScrollbar;
1496
+ }
1497
+ if (Math.abs(horizScrollbar) !== 1) {
1498
+ height -= horizScrollbar;
1499
+ }
1500
+ }
1501
+ return createRectInit(paddings.left, paddings.top, width, height);
1502
+ }
1503
+ /**
1504
+ * Checks whether provided element is an instance of the SVGGraphicsElement.
1505
+ *
1506
+ * @param {Element} target - Element to be checked.
1507
+ * @returns {boolean}
1508
+ */
1509
+ var isSVGGraphicsElement = (function () {
1510
+ // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
1511
+ // interface.
1512
+ if (typeof SVGGraphicsElement !== 'undefined') {
1513
+ return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
1514
+ }
1515
+ // If it's so, then check that element is at least an instance of the
1516
+ // SVGElement and that it has the "getBBox" method.
1517
+ // eslint-disable-next-line no-extra-parens
1518
+ return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
1519
+ typeof target.getBBox === 'function'); };
1520
+ })();
1521
+ /**
1522
+ * Checks whether provided element is a document element (<html>).
1523
+ *
1524
+ * @param {Element} target - Element to be checked.
1525
+ * @returns {boolean}
1526
+ */
1527
+ function isDocumentElement(target) {
1528
+ return target === getWindowOf(target).document.documentElement;
1529
+ }
1530
+ /**
1531
+ * Calculates an appropriate content rectangle for provided html or svg element.
1532
+ *
1533
+ * @param {Element} target - Element content rectangle of which needs to be calculated.
1534
+ * @returns {DOMRectInit}
1535
+ */
1536
+ function getContentRect(target) {
1537
+ if (!isBrowser) {
1538
+ return emptyRect;
1539
+ }
1540
+ if (isSVGGraphicsElement(target)) {
1541
+ return getSVGContentRect(target);
1542
+ }
1543
+ return getHTMLElementContentRect(target);
1544
+ }
1545
+ /**
1546
+ * Creates rectangle with an interface of the DOMRectReadOnly.
1547
+ * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
1548
+ *
1549
+ * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
1550
+ * @returns {DOMRectReadOnly}
1551
+ */
1552
+ function createReadOnlyRect(_a) {
1553
+ var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
1554
+ // If DOMRectReadOnly is available use it as a prototype for the rectangle.
1555
+ var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
1556
+ var rect = Object.create(Constr.prototype);
1557
+ // Rectangle's properties are not writable and non-enumerable.
1558
+ defineConfigurable(rect, {
1559
+ x: x, y: y, width: width, height: height,
1560
+ top: y,
1561
+ right: x + width,
1562
+ bottom: height + y,
1563
+ left: x
1564
+ });
1565
+ return rect;
1566
+ }
1567
+ /**
1568
+ * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
1569
+ * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
1570
+ *
1571
+ * @param {number} x - X coordinate.
1572
+ * @param {number} y - Y coordinate.
1573
+ * @param {number} width - Rectangle's width.
1574
+ * @param {number} height - Rectangle's height.
1575
+ * @returns {DOMRectInit}
1576
+ */
1577
+ function createRectInit(x, y, width, height) {
1578
+ return { x: x, y: y, width: width, height: height };
1579
+ }
1580
+
1581
+ /**
1582
+ * Class that is responsible for computations of the content rectangle of
1583
+ * provided DOM element and for keeping track of it's changes.
1584
+ */
1585
+ var ResizeObservation = /** @class */ (function () {
1586
+ /**
1587
+ * Creates an instance of ResizeObservation.
1588
+ *
1589
+ * @param {Element} target - Element to be observed.
1590
+ */
1591
+ function ResizeObservation(target) {
1592
+ /**
1593
+ * Broadcasted width of content rectangle.
1594
+ *
1595
+ * @type {number}
1596
+ */
1597
+ this.broadcastWidth = 0;
1598
+ /**
1599
+ * Broadcasted height of content rectangle.
1600
+ *
1601
+ * @type {number}
1602
+ */
1603
+ this.broadcastHeight = 0;
1604
+ /**
1605
+ * Reference to the last observed content rectangle.
1606
+ *
1607
+ * @private {DOMRectInit}
1608
+ */
1609
+ this.contentRect_ = createRectInit(0, 0, 0, 0);
1610
+ this.target = target;
1611
+ }
1612
+ /**
1613
+ * Updates content rectangle and tells whether it's width or height properties
1614
+ * have changed since the last broadcast.
1615
+ *
1616
+ * @returns {boolean}
1617
+ */
1618
+ ResizeObservation.prototype.isActive = function () {
1619
+ var rect = getContentRect(this.target);
1620
+ this.contentRect_ = rect;
1621
+ return (rect.width !== this.broadcastWidth ||
1622
+ rect.height !== this.broadcastHeight);
1623
+ };
1624
+ /**
1625
+ * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
1626
+ * from the corresponding properties of the last observed content rectangle.
1627
+ *
1628
+ * @returns {DOMRectInit} Last observed content rectangle.
1629
+ */
1630
+ ResizeObservation.prototype.broadcastRect = function () {
1631
+ var rect = this.contentRect_;
1632
+ this.broadcastWidth = rect.width;
1633
+ this.broadcastHeight = rect.height;
1634
+ return rect;
1635
+ };
1636
+ return ResizeObservation;
1637
+ }());
1638
+
1639
+ var ResizeObserverEntry = /** @class */ (function () {
1640
+ /**
1641
+ * Creates an instance of ResizeObserverEntry.
1642
+ *
1643
+ * @param {Element} target - Element that is being observed.
1644
+ * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
1645
+ */
1646
+ function ResizeObserverEntry(target, rectInit) {
1647
+ var contentRect = createReadOnlyRect(rectInit);
1648
+ // According to the specification following properties are not writable
1649
+ // and are also not enumerable in the native implementation.
1650
+ //
1651
+ // Property accessors are not being used as they'd require to define a
1652
+ // private WeakMap storage which may cause memory leaks in browsers that
1653
+ // don't support this type of collections.
1654
+ defineConfigurable(this, { target: target, contentRect: contentRect });
1655
+ }
1656
+ return ResizeObserverEntry;
1657
+ }());
1658
+
1659
+ var ResizeObserverSPI = /** @class */ (function () {
1660
+ /**
1661
+ * Creates a new instance of ResizeObserver.
1662
+ *
1663
+ * @param {ResizeObserverCallback} callback - Callback function that is invoked
1664
+ * when one of the observed elements changes it's content dimensions.
1665
+ * @param {ResizeObserverController} controller - Controller instance which
1666
+ * is responsible for the updates of observer.
1667
+ * @param {ResizeObserver} callbackCtx - Reference to the public
1668
+ * ResizeObserver instance which will be passed to callback function.
1669
+ */
1670
+ function ResizeObserverSPI(callback, controller, callbackCtx) {
1671
+ /**
1672
+ * Collection of resize observations that have detected changes in dimensions
1673
+ * of elements.
1674
+ *
1675
+ * @private {Array<ResizeObservation>}
1676
+ */
1677
+ this.activeObservations_ = [];
1678
+ /**
1679
+ * Registry of the ResizeObservation instances.
1680
+ *
1681
+ * @private {Map<Element, ResizeObservation>}
1682
+ */
1683
+ this.observations_ = new MapShim();
1684
+ if (typeof callback !== 'function') {
1685
+ throw new TypeError('The callback provided as parameter 1 is not a function.');
1686
+ }
1687
+ this.callback_ = callback;
1688
+ this.controller_ = controller;
1689
+ this.callbackCtx_ = callbackCtx;
1690
+ }
1691
+ /**
1692
+ * Starts observing provided element.
1693
+ *
1694
+ * @param {Element} target - Element to be observed.
1695
+ * @returns {void}
1696
+ */
1697
+ ResizeObserverSPI.prototype.observe = function (target) {
1698
+ if (!arguments.length) {
1699
+ throw new TypeError('1 argument required, but only 0 present.');
1700
+ }
1701
+ // Do nothing if current environment doesn't have the Element interface.
1702
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
1703
+ return;
1704
+ }
1705
+ if (!(target instanceof getWindowOf(target).Element)) {
1706
+ throw new TypeError('parameter 1 is not of type "Element".');
1707
+ }
1708
+ var observations = this.observations_;
1709
+ // Do nothing if element is already being observed.
1710
+ if (observations.has(target)) {
1711
+ return;
1712
+ }
1713
+ observations.set(target, new ResizeObservation(target));
1714
+ this.controller_.addObserver(this);
1715
+ // Force the update of observations.
1716
+ this.controller_.refresh();
1717
+ };
1718
+ /**
1719
+ * Stops observing provided element.
1720
+ *
1721
+ * @param {Element} target - Element to stop observing.
1722
+ * @returns {void}
1723
+ */
1724
+ ResizeObserverSPI.prototype.unobserve = function (target) {
1725
+ if (!arguments.length) {
1726
+ throw new TypeError('1 argument required, but only 0 present.');
1727
+ }
1728
+ // Do nothing if current environment doesn't have the Element interface.
1729
+ if (typeof Element === 'undefined' || !(Element instanceof Object)) {
1730
+ return;
1731
+ }
1732
+ if (!(target instanceof getWindowOf(target).Element)) {
1733
+ throw new TypeError('parameter 1 is not of type "Element".');
1734
+ }
1735
+ var observations = this.observations_;
1736
+ // Do nothing if element is not being observed.
1737
+ if (!observations.has(target)) {
1738
+ return;
1739
+ }
1740
+ observations.delete(target);
1741
+ if (!observations.size) {
1742
+ this.controller_.removeObserver(this);
1743
+ }
1744
+ };
1745
+ /**
1746
+ * Stops observing all elements.
1747
+ *
1748
+ * @returns {void}
1749
+ */
1750
+ ResizeObserverSPI.prototype.disconnect = function () {
1751
+ this.clearActive();
1752
+ this.observations_.clear();
1753
+ this.controller_.removeObserver(this);
1754
+ };
1755
+ /**
1756
+ * Collects observation instances the associated element of which has changed
1757
+ * it's content rectangle.
1758
+ *
1759
+ * @returns {void}
1760
+ */
1761
+ ResizeObserverSPI.prototype.gatherActive = function () {
1762
+ var _this = this;
1763
+ this.clearActive();
1764
+ this.observations_.forEach(function (observation) {
1765
+ if (observation.isActive()) {
1766
+ _this.activeObservations_.push(observation);
1767
+ }
1768
+ });
1769
+ };
1770
+ /**
1771
+ * Invokes initial callback function with a list of ResizeObserverEntry
1772
+ * instances collected from active resize observations.
1773
+ *
1774
+ * @returns {void}
1775
+ */
1776
+ ResizeObserverSPI.prototype.broadcastActive = function () {
1777
+ // Do nothing if observer doesn't have active observations.
1778
+ if (!this.hasActive()) {
1779
+ return;
1780
+ }
1781
+ var ctx = this.callbackCtx_;
1782
+ // Create ResizeObserverEntry instance for every active observation.
1783
+ var entries = this.activeObservations_.map(function (observation) {
1784
+ return new ResizeObserverEntry(observation.target, observation.broadcastRect());
1785
+ });
1786
+ this.callback_.call(ctx, entries, ctx);
1787
+ this.clearActive();
1788
+ };
1789
+ /**
1790
+ * Clears the collection of active observations.
1791
+ *
1792
+ * @returns {void}
1793
+ */
1794
+ ResizeObserverSPI.prototype.clearActive = function () {
1795
+ this.activeObservations_.splice(0);
1796
+ };
1797
+ /**
1798
+ * Tells whether observer has active observations.
1799
+ *
1800
+ * @returns {boolean}
1801
+ */
1802
+ ResizeObserverSPI.prototype.hasActive = function () {
1803
+ return this.activeObservations_.length > 0;
1804
+ };
1805
+ return ResizeObserverSPI;
1806
+ }());
1807
+
1808
+ // Registry of internal observers. If WeakMap is not available use current shim
1809
+ // for the Map collection as it has all required methods and because WeakMap
1810
+ // can't be fully polyfilled anyway.
1811
+ var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
1812
+ /**
1813
+ * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
1814
+ * exposing only those methods and properties that are defined in the spec.
1815
+ */
1816
+ var ResizeObserver = /** @class */ (function () {
1817
+ /**
1818
+ * Creates a new instance of ResizeObserver.
1819
+ *
1820
+ * @param {ResizeObserverCallback} callback - Callback that is invoked when
1821
+ * dimensions of the observed elements change.
1822
+ */
1823
+ function ResizeObserver(callback) {
1824
+ if (!(this instanceof ResizeObserver)) {
1825
+ throw new TypeError('Cannot call a class as a function.');
1826
+ }
1827
+ if (!arguments.length) {
1828
+ throw new TypeError('1 argument required, but only 0 present.');
1829
+ }
1830
+ var controller = ResizeObserverController.getInstance();
1831
+ var observer = new ResizeObserverSPI(callback, controller, this);
1832
+ observers.set(this, observer);
1833
+ }
1834
+ return ResizeObserver;
1835
+ }());
1836
+ // Expose public methods of ResizeObserver.
1837
+ [
1838
+ 'observe',
1839
+ 'unobserve',
1840
+ 'disconnect'
1841
+ ].forEach(function (method) {
1842
+ ResizeObserver.prototype[method] = function () {
1843
+ var _a;
1844
+ return (_a = observers.get(this))[method].apply(_a, arguments);
1845
+ };
1846
+ });
1847
+
1848
+ var index = (function () {
1849
+ // Export existing implementation if available.
1850
+ if (typeof global$1.ResizeObserver !== 'undefined') {
1851
+ return global$1.ResizeObserver;
1852
+ }
1853
+ return ResizeObserver;
1854
+ })();
1855
+
1856
+ /* harmony default export */ __webpack_exports__["a"] = (index);
1857
+
1858
+ /* WEBPACK VAR INJECTION */}.call(this, __webpack_require__(29)))
1859
+
1860
+ /***/ }),
1861
+ /* 23 */,
1862
+ /* 24 */,
1863
+ /* 25 */,
1864
+ /* 26 */
91
1865
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
92
1866
 
93
1867
  "use strict";
94
1868
  // ESM COMPAT FLAG
95
1869
  __webpack_require__.r(__webpack_exports__);
96
1870
 
97
- // EXTERNAL MODULE: external "element-ui/lib/utils/resize-event"
98
- var resize_event_ = __webpack_require__(17);
1871
+ // EXTERNAL MODULE: ./src/utils/resize-event.js
1872
+ var resize_event = __webpack_require__(14);
99
1873
 
100
- // EXTERNAL MODULE: external "element-ui/lib/utils/scrollbar-width"
101
- var scrollbar_width_ = __webpack_require__(39);
102
- var scrollbar_width_default = /*#__PURE__*/__webpack_require__.n(scrollbar_width_);
1874
+ // EXTERNAL MODULE: ./src/utils/scrollbar-width.js
1875
+ var scrollbar_width = __webpack_require__(8);
103
1876
 
104
- // EXTERNAL MODULE: external "element-ui/lib/utils/util"
105
- var util_ = __webpack_require__(3);
1877
+ // EXTERNAL MODULE: ./src/utils/util.js
1878
+ var util = __webpack_require__(3);
106
1879
 
107
- // EXTERNAL MODULE: external "element-ui/lib/utils/dom"
108
- var dom_ = __webpack_require__(2);
1880
+ // EXTERNAL MODULE: ./src/utils/dom.js
1881
+ var dom = __webpack_require__(1);
109
1882
 
110
1883
  // CONCATENATED MODULE: ./packages/scrollbar/src/util.js
111
1884
  var BAR_MAP = {
@@ -215,8 +1988,8 @@ function renderThumbStyle(_ref) {
215
1988
  e.stopImmediatePropagation();
216
1989
  this.cursorDown = true;
217
1990
 
218
- Object(dom_["on"])(document, 'mousemove', this.mouseMoveDocumentHandler);
219
- Object(dom_["on"])(document, 'mouseup', this.mouseUpDocumentHandler);
1991
+ Object(dom["g" /* on */])(document, 'mousemove', this.mouseMoveDocumentHandler);
1992
+ Object(dom["g" /* on */])(document, 'mouseup', this.mouseUpDocumentHandler);
220
1993
  document.onselectstart = function () {
221
1994
  return false;
222
1995
  };
@@ -236,13 +2009,13 @@ function renderThumbStyle(_ref) {
236
2009
  mouseUpDocumentHandler: function mouseUpDocumentHandler(e) {
237
2010
  this.cursorDown = false;
238
2011
  this[this.bar.axis] = 0;
239
- Object(dom_["off"])(document, 'mousemove', this.mouseMoveDocumentHandler);
2012
+ Object(dom["f" /* off */])(document, 'mousemove', this.mouseMoveDocumentHandler);
240
2013
  document.onselectstart = null;
241
2014
  }
242
2015
  },
243
2016
 
244
2017
  destroyed: function destroyed() {
245
- Object(dom_["off"])(document, 'mouseup', this.mouseUpDocumentHandler);
2018
+ Object(dom["f" /* off */])(document, 'mouseup', this.mouseUpDocumentHandler);
246
2019
  }
247
2020
  });
248
2021
  // CONCATENATED MODULE: ./packages/scrollbar/src/main.js
@@ -289,7 +2062,7 @@ function renderThumbStyle(_ref) {
289
2062
  },
290
2063
 
291
2064
  render: function render(h) {
292
- var gutter = scrollbar_width_default()();
2065
+ var gutter = Object(scrollbar_width["a" /* default */])();
293
2066
  var style = this.wrapStyle;
294
2067
 
295
2068
  if (gutter) {
@@ -297,7 +2070,7 @@ function renderThumbStyle(_ref) {
297
2070
  var gutterStyle = 'margin-bottom: ' + gutterWith + '; margin-right: ' + gutterWith + ';';
298
2071
 
299
2072
  if (Array.isArray(this.wrapStyle)) {
300
- style = Object(util_["toObject"])(this.wrapStyle);
2073
+ style = Object(util["t" /* toObject */])(this.wrapStyle);
301
2074
  style.marginRight = style.marginBottom = gutterWith;
302
2075
  } else if (typeof this.wrapStyle === 'string') {
303
2076
  style += gutterStyle;
@@ -373,11 +2146,11 @@ function renderThumbStyle(_ref) {
373
2146
  mounted: function mounted() {
374
2147
  if (this.native) return;
375
2148
  this.$nextTick(this.update);
376
- !this.noresize && Object(resize_event_["addResizeListener"])(this.$refs.resize, this.update);
2149
+ !this.noresize && Object(resize_event["a" /* addResizeListener */])(this.$refs.resize, this.update);
377
2150
  },
378
2151
  beforeDestroy: function beforeDestroy() {
379
2152
  if (this.native) return;
380
- !this.noresize && Object(resize_event_["removeResizeListener"])(this.$refs.resize, this.update);
2153
+ !this.noresize && Object(resize_event["b" /* removeResizeListener */])(this.$refs.resize, this.update);
381
2154
  }
382
2155
  });
383
2156
  // CONCATENATED MODULE: ./packages/scrollbar/index.js
@@ -391,33 +2164,32 @@ main.install = function (Vue) {
391
2164
  /* harmony default export */ var scrollbar = __webpack_exports__["default"] = (main);
392
2165
 
393
2166
  /***/ }),
394
-
395
- /***/ 17:
2167
+ /* 27 */,
2168
+ /* 28 */,
2169
+ /* 29 */
396
2170
  /***/ (function(module, exports) {
397
2171
 
398
- module.exports = require("element-ui/lib/utils/resize-event");
2172
+ var g;
399
2173
 
400
- /***/ }),
2174
+ // This works in non-strict mode
2175
+ g = (function() {
2176
+ return this;
2177
+ })();
401
2178
 
402
- /***/ 2:
403
- /***/ (function(module, exports) {
2179
+ try {
2180
+ // This works if eval is allowed (see CSP)
2181
+ g = g || new Function("return this")();
2182
+ } catch (e) {
2183
+ // This works if the window reference is available
2184
+ if (typeof window === "object") g = window;
2185
+ }
404
2186
 
405
- module.exports = require("element-ui/lib/utils/dom");
2187
+ // g can still be undefined, but nothing to do about it...
2188
+ // We return undefined, instead of nothing here, so it's
2189
+ // easier to handle this case. if(!global) { ...}
406
2190
 
407
- /***/ }),
2191
+ module.exports = g;
408
2192
 
409
- /***/ 3:
410
- /***/ (function(module, exports) {
411
-
412
- module.exports = require("element-ui/lib/utils/util");
413
-
414
- /***/ }),
415
-
416
- /***/ 39:
417
- /***/ (function(module, exports) {
418
-
419
- module.exports = require("element-ui/lib/utils/scrollbar-width");
420
2193
 
421
2194
  /***/ })
422
-
423
- /******/ });
2195
+ /******/ ]);