@nutui/nutui-react-taro 2.0.4 → 2.0.5

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 (205) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/esm/ActionSheet.js +3 -3
  3. package/dist/esm/Address.js +8 -8
  4. package/dist/esm/Animate.js +1 -1
  5. package/dist/esm/AnimatingNumbers.js +7 -7
  6. package/dist/esm/Audio.js +5 -5
  7. package/dist/esm/Avatar.js +3 -3
  8. package/dist/esm/AvatarGroup.js +1 -1
  9. package/dist/esm/BackTop.js +1 -1
  10. package/dist/esm/Badge.js +1 -1
  11. package/dist/esm/Barrage.js +1 -1
  12. package/dist/esm/Button.js +1 -1
  13. package/dist/esm/Calendar.js +6 -6
  14. package/dist/esm/CalendarItem.js +3 -3
  15. package/dist/esm/Card.js +3 -3
  16. package/dist/esm/Cascader.js +6 -6
  17. package/dist/esm/Cell.js +2 -2
  18. package/dist/esm/CellGroup.js +1 -1
  19. package/dist/esm/Checkbox.js +2 -2
  20. package/dist/esm/CheckboxGroup.js +2 -2
  21. package/dist/esm/CircleProgress.js +1 -1
  22. package/dist/esm/Col.js +1 -1
  23. package/dist/esm/Collapse.js +3 -3
  24. package/dist/esm/CollapseItem.js +1 -1
  25. package/dist/esm/ConfigProvider.js +2 -3
  26. package/dist/esm/CountDown.js +2 -2
  27. package/dist/esm/DatePicker.js +6 -6
  28. package/dist/esm/Dialog.js +4 -4
  29. package/dist/esm/Divider.js +1 -1
  30. package/dist/esm/Drag.js +1 -1
  31. package/dist/esm/Elevator.js +1 -1
  32. package/dist/esm/Ellipsis.js +1 -1
  33. package/dist/esm/Empty.js +2 -2
  34. package/dist/esm/FixedNav.js +3 -3
  35. package/dist/esm/Form.js +4 -4
  36. package/dist/esm/FormItem.js +3 -3
  37. package/dist/esm/Grid.js +3 -4
  38. package/dist/esm/GridItem.js +2 -3
  39. package/dist/esm/Image.js +1 -1
  40. package/dist/esm/ImagePreview.js +6 -6
  41. package/dist/esm/Indicator.js +1 -1
  42. package/dist/esm/InfiniteLoading.js +2 -2
  43. package/dist/esm/Input.js +3 -3
  44. package/dist/esm/InputNumber.js +2 -2
  45. package/dist/esm/Layout.js +1 -1
  46. package/dist/esm/Menu.js +3 -3
  47. package/dist/esm/MenuItem.js +2 -2
  48. package/dist/esm/NavBar.js +1 -1
  49. package/dist/esm/NoticeBar.js +1 -1
  50. package/dist/esm/Notify.js +1 -1
  51. package/dist/esm/NumberKeyboard.js +4 -4
  52. package/dist/esm/Overlay.js +1 -1
  53. package/dist/esm/Pagination.js +3 -3
  54. package/dist/esm/Picker.js +5 -5
  55. package/dist/esm/Popover.js +3 -3
  56. package/dist/esm/Popup.js +2 -2
  57. package/dist/esm/Price.js +1 -1
  58. package/dist/esm/Progress.js +1 -1
  59. package/dist/esm/PullToRefresh.js +3 -3
  60. package/dist/esm/Radio.js +2 -2
  61. package/dist/esm/RadioGroup.js +2 -2
  62. package/dist/esm/Range.js +2 -2
  63. package/dist/esm/Rate.js +2 -2
  64. package/dist/esm/Row.js +1 -1
  65. package/dist/esm/SearchBar/style/style.css +1 -1
  66. package/dist/esm/SearchBar.js +2 -2
  67. package/dist/esm/ShortPassword.js +5 -5
  68. package/dist/esm/SideNavBar.js +3 -3
  69. package/dist/esm/SideNavBarItem.js +1 -1
  70. package/dist/esm/Signature.js +1 -1
  71. package/dist/esm/Skeleton.js +4 -4
  72. package/dist/esm/Step.js +1 -1
  73. package/dist/esm/Steps.js +1 -1
  74. package/dist/esm/Sticky.js +1 -1
  75. package/dist/esm/SubSideNavBar.js +1 -1
  76. package/dist/esm/Swipe.js +1 -1
  77. package/dist/esm/Swiper.js +10 -10
  78. package/dist/esm/SwiperItem.js +1 -1
  79. package/dist/esm/Switch.js +2 -2
  80. package/dist/esm/TabPane.js +1 -1
  81. package/dist/esm/Tabbar.js +4 -4
  82. package/dist/esm/TabbarItem.js +2 -2
  83. package/dist/esm/Table.js +2 -2
  84. package/dist/esm/Tabs.js +3 -3
  85. package/dist/esm/Tag.js +1 -1
  86. package/dist/esm/TextArea.js +3 -3
  87. package/dist/esm/TimeDetail.js +1 -1
  88. package/dist/esm/TimeSelect.js +5 -5
  89. package/dist/esm/Toast.js +2 -2
  90. package/dist/esm/TrendArrow.js +1 -1
  91. package/dist/esm/Uploader.js +4 -4
  92. package/dist/esm/Video.js +1 -1
  93. package/dist/esm/VirtualList.js +1 -1
  94. package/dist/esm/WaterMark.js +2 -2
  95. package/dist/esm/{actionsheet.taro-8a2b2622.js → actionsheet.taro-b642975d.js} +9 -9
  96. package/dist/esm/{address.taro-dc981f3b.js → address.taro-35c68034.js} +23 -23
  97. package/dist/esm/{animate.taro-c8b29242.js → animate.taro-37bf4eab.js} +3 -3
  98. package/dist/esm/{audio.taro-672e02c2.js → audio.taro-198b2c31.js} +22 -22
  99. package/dist/esm/{avatar.taro-a45e2e71.js → avatar.taro-dd654a49.js} +11 -11
  100. package/dist/esm/{avatargroup.taro-0672aa1e.js → avatargroup.taro-1f8b7174.js} +3 -3
  101. package/dist/esm/{backtop.taro-7de36464.js → backtop.taro-61b1eeaf.js} +3 -3
  102. package/dist/esm/{badge.taro-872605bf.js → badge.taro-289489e5.js} +5 -5
  103. package/dist/esm/{barrage.taro-1de16de1.js → barrage.taro-d77c34b4.js} +5 -5
  104. package/dist/esm/{button.taro-60dfd83e.js → button.taro-25f559e1.js} +6 -6
  105. package/dist/esm/{calendar.taro-4e0f6821.js → calendar.taro-a91e6a63.js} +8 -8
  106. package/dist/esm/{calendaritem.taro-332af5b7.js → calendaritem.taro-a4532b45.js} +27 -27
  107. package/dist/esm/card.taro-c0e9cfba.js +64 -0
  108. package/dist/esm/{cascader.taro-69230aa4.js → cascader.taro-b68a89ca.js} +19 -19
  109. package/dist/esm/{cell.taro-f200bd2b.js → cell.taro-0a9f80bc.js} +9 -9
  110. package/dist/esm/{cellgroup.taro-a790d91b.js → cellgroup.taro-d2fad5e7.js} +5 -5
  111. package/dist/esm/{checkbox.taro-ab8ef36e.js → checkbox.taro-07d5c9d5.js} +13 -13
  112. package/dist/esm/{circleprogress.taro-fd2326fc.js → circleprogress.taro-417e1d3f.js} +4 -4
  113. package/dist/esm/{col.taro-d6a46a7d.js → col.taro-23d5f6bd.js} +2 -2
  114. package/dist/esm/{collapse.taro-5aa2b225.js → collapse.taro-bd6b2bb3.js} +5 -5
  115. package/dist/esm/{collapseitem.taro-eac33538.js → collapseitem.taro-e99fb1a2.js} +9 -9
  116. package/dist/esm/configprovider.taro-974adb9a.js +1136 -0
  117. package/dist/esm/{countdown.taro-77749251.js → countdown.taro-43884964.js} +4 -4
  118. package/dist/esm/{datepicker.taro-45d5235c.js → datepicker.taro-9ca00609.js} +5 -5
  119. package/dist/esm/{dialog.taro-be862b5a.js → dialog.taro-0a2dfa58.js} +21 -21
  120. package/dist/esm/{divider.taro-0cb5f894.js → divider.taro-c61ab869.js} +2 -2
  121. package/dist/esm/{drag.taro-48e1ff38.js → drag.taro-ce333e51.js} +3 -3
  122. package/dist/esm/{elevator.taro-459f7322.js → elevator.taro-fae469b2.js} +19 -19
  123. package/dist/esm/{ellipsis.taro-5653d0b2.js → ellipsis.taro-21b13b31.js} +17 -17
  124. package/dist/esm/{empty.taro-ef1b390a.js → empty.taro-bfe29449.js} +8 -8
  125. package/dist/esm/{fixednav.taro-a8b0d089.js → fixednav.taro-579c4f66.js} +14 -14
  126. package/dist/esm/{form.taro-aa11d488.js → form.taro-16cb71e2.js} +8 -8
  127. package/dist/esm/{formitem.taro-6316e0f9.js → formitem.taro-34af0204.js} +15 -15
  128. package/dist/esm/{grid.taro-0202c062.js → grid.taro-1fdfe6eb.js} +6 -6
  129. package/dist/esm/{griditem.taro-08a3e7dc.js → griditem.taro-751fb091.js} +7 -7
  130. package/dist/esm/{image.taro-c4be8323.js → image.taro-a7ad2272.js} +11 -11
  131. package/dist/esm/{imagepreview.taro-c62cdc3a.js → imagepreview.taro-0daf3f50.js} +11 -11
  132. package/dist/esm/{indicator.taro-edbc71df.js → indicator.taro-4ed0d6da.js} +3 -3
  133. package/dist/esm/{infiniteloading.taro-d4dd2cd9.js → infiniteloading.taro-87006d3e.js} +8 -8
  134. package/dist/esm/{input.taro-9dce4ce2.js → input.taro-fb8e7a49.js} +9 -9
  135. package/dist/esm/{inputnumber.taro-96165704.js → inputnumber.taro-9c74cc1c.js} +8 -8
  136. package/dist/esm/{layout.taro-9659a928.js → layout.taro-7711a89c.js} +2 -2
  137. package/dist/esm/{menu.taro-f412b55d.js → menu.taro-7cab4e8c.js} +13 -13
  138. package/dist/esm/{menuitem.taro-f145c755.js → menuitem.taro-567bf91f.js} +11 -11
  139. package/dist/esm/{navbar.taro-f2d4215d.js → navbar.taro-23394f73.js} +7 -7
  140. package/dist/esm/{noticebar.taro-2720ca1e.js → noticebar.taro-d95c13b6.js} +17 -17
  141. package/dist/esm/{notify.taro-5768403d.js → notify.taro-05bd231c.js} +5 -5
  142. package/dist/esm/{numberkeyboard.taro-eef4087f.js → numberkeyboard.taro-c4fc80ed.js} +21 -21
  143. package/dist/esm/nutui-react.es.js +89 -89
  144. package/dist/esm/{overlay.taro-08f8efbc.js → overlay.taro-8f1e4912.js} +5 -5
  145. package/dist/esm/{pagination.taro-04ed7371.js → pagination.taro-afc104ce.js} +10 -10
  146. package/dist/esm/{picker.taro-53bb8322.js → picker.taro-bfe36c06.js} +31 -31
  147. package/dist/esm/{popover.taro-c8cac618.js → popover.taro-fbf1ba5e.js} +31 -28
  148. package/dist/esm/{popup.taro-938ee260.js → popup.taro-6ecef0f4.js} +14 -14
  149. package/dist/esm/{price.taro-479f1b82.js → price.taro-0bd3f07a.js} +6 -6
  150. package/dist/esm/{progress.taro-437b9f6a.js → progress.taro-421575b9.js} +4 -4
  151. package/dist/esm/{pulltorefresh.taro-1a96ae6f.js → pulltorefresh.taro-efb36521.js} +6 -6
  152. package/dist/esm/{radio.taro-410f7b07.js → radio.taro-802db0e9.js} +18 -18
  153. package/dist/esm/{range.taro-e88b568c.js → range.taro-9f854c57.js} +13 -13
  154. package/dist/esm/{rate.taro-2e2898ec.js → rate.taro-f090e140.js} +8 -8
  155. package/dist/esm/{row.taro-8b7febd4.js → row.taro-a71fbf76.js} +2 -2
  156. package/dist/esm/{searchbar.taro-f5bbc140.js → searchbar.taro-14821587.js} +13 -13
  157. package/dist/esm/{shortpassword.taro-16eaa16b.js → shortpassword.taro-2533954b.js} +20 -20
  158. package/dist/esm/{sidenavbar.taro-25564345.js → sidenavbar.taro-1fb6115f.js} +10 -10
  159. package/dist/esm/{sidenavbaritem.taro-7d805f92.js → sidenavbaritem.taro-69b0784d.js} +2 -2
  160. package/dist/esm/{signature.taro-4f68516a.js → signature.taro-3e0c2694.js} +5 -5
  161. package/dist/esm/{skeleton.taro-9ac4b4b8.js → skeleton.taro-51b91a1a.js} +9 -9
  162. package/dist/esm/{step.taro-2f55e4f2.js → step.taro-dd522794.js} +8 -8
  163. package/dist/esm/{steps.taro-196c1f59.js → steps.taro-0680ae4f.js} +2 -2
  164. package/dist/esm/{sticky.taro-6bc62a96.js → sticky.taro-2d78a04e.js} +3 -3
  165. package/dist/esm/{subsidenavbar.taro-47bb6e74.js → subsidenavbar.taro-797ce379.js} +5 -5
  166. package/dist/esm/{swipe.taro-4eb0cc9a.js → swipe.taro-36f8782e.js} +4 -4
  167. package/dist/esm/{swiperitem.taro-ef7342e8.js → swiperitem.taro-da39a67b.js} +2 -2
  168. package/dist/esm/{switch.taro-81197983.js → switch.taro-bbdada9e.js} +6 -6
  169. package/dist/esm/{tabbar.taro-978c27b0.js → tabbar.taro-3046d794.js} +8 -8
  170. package/dist/esm/{tabbaritem.taro-16a380db.js → tabbaritem.taro-fdaf7d3a.js} +10 -10
  171. package/dist/esm/{table.taro-c8241b30.js → table.taro-0254a4e5.js} +12 -12
  172. package/dist/esm/{tabpane.taro-f8d92ece.js → tabpane.taro-d0eea168.js} +2 -2
  173. package/dist/esm/{tabs.taro-e944cce9.js → tabs.taro-927b95e4.js} +17 -17
  174. package/dist/esm/{tag.taro-614758eb.js → tag.taro-518b9c70.js} +6 -6
  175. package/dist/esm/{textarea.taro-484b08c0.js → textarea.taro-38d284c4.js} +6 -6
  176. package/dist/esm/{timedetail.taro-d7aa4c1b.js → timedetail.taro-958b8c07.js} +2 -2
  177. package/dist/esm/{timeselect.taro-8354e37d.js → timeselect.taro-3f2aa90b.js} +10 -10
  178. package/dist/esm/{toast.taro-56e9d2a1.js → toast.taro-9e5afd6d.js} +12 -12
  179. package/dist/esm/{trendarrow.taro-fa177b5c.js → trendarrow.taro-53d6e250.js} +4 -4
  180. package/dist/esm/types/src/packages/configprovider/configprovider.d.ts +3 -4
  181. package/dist/esm/types/src/packages/configprovider/configprovider.taro.d.ts +3 -4
  182. package/dist/esm/types/src/utils/use-memo.d.ts +1 -0
  183. package/dist/esm/{uploader.taro-3d52a0ed.js → uploader.taro-8964a9b8.js} +32 -32
  184. package/dist/esm/{use-props-value-1f54346f.js → use-props-value-e8331e19.js} +3 -3
  185. package/dist/esm/{video.taro-2a26d7da.js → video.taro-672ca6b8.js} +3 -3
  186. package/dist/esm/{virtuallist.taro-1de01855.js → virtuallist.taro-e552d954.js} +6 -6
  187. package/dist/esm/{watermark.taro-5ff0bd9d.js → watermark.taro-c269110c.js} +3 -3
  188. package/dist/locales/base.js +1 -1
  189. package/dist/locales/en-US.js +1 -1
  190. package/dist/locales/id-ID.js +1 -1
  191. package/dist/locales/tr-TR.js +1 -1
  192. package/dist/locales/zh-CN.js +1 -1
  193. package/dist/locales/zh-TW.js +1 -1
  194. package/dist/locales/zh-UG.js +1 -1
  195. package/dist/nutui.react.es.js +1226 -549
  196. package/dist/nutui.react.umd.js +736 -43
  197. package/dist/packages/searchbar/searchbar.scss +0 -1
  198. package/dist/style.css +1 -1
  199. package/dist/style.mjs +1 -1
  200. package/dist/types/packages/configprovider/configprovider.d.ts +3 -4
  201. package/dist/types/packages/configprovider/configprovider.taro.d.ts +3 -4
  202. package/dist/types/utils/use-memo.d.ts +1 -0
  203. package/package.json +2 -1
  204. package/dist/esm/card.taro-92fe9733.js +0 -64
  205. package/dist/esm/configprovider.taro-510947ea.js +0 -468
@@ -8,11 +8,28 @@ var __publicField = (obj, key, value) => {
8
8
  return value;
9
9
  };
10
10
  /*!
11
- * @nutui/nutui-react-taro v2.0.4 Fri Jul 14 2023 14:21:48 GMT+0800 (China Standard Time)
11
+ * @nutui/nutui-react-taro v2.0.5 Wed Jul 19 2023 14:22:09 GMT+0800 (China Standard Time)
12
12
  * (c) 2023 @jdf2e.
13
13
  * Released under the MIT License.
14
14
  */
15
15
 
16
+ function _interopNamespaceDefault(e) {
17
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
18
+ if (e) {
19
+ for (const k in e) {
20
+ if (k !== "default") {
21
+ const d = Object.getOwnPropertyDescriptor(e, k);
22
+ Object.defineProperty(n, k, d.get ? d : {
23
+ enumerable: true,
24
+ get: () => e[k]
25
+ });
26
+ }
27
+ }
28
+ }
29
+ n.default = e;
30
+ return Object.freeze(n);
31
+ }
32
+ const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
16
33
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
17
34
  var classnamesExports = {};
18
35
  var classnames = {
@@ -1861,7 +1878,7 @@ var __publicField = (obj, key, value) => {
1861
1878
  style: {}
1862
1879
  };
1863
1880
  const prefixCls = "nut-button";
1864
- const defaultProps$1s = {
1881
+ const defaultProps$1r = {
1865
1882
  ...ComponentDefaults,
1866
1883
  color: "",
1867
1884
  type: "default",
@@ -1893,7 +1910,7 @@ var __publicField = (obj, key, value) => {
1893
1910
  style,
1894
1911
  ...rest
1895
1912
  } = {
1896
- ...defaultProps$1s,
1913
+ ...defaultProps$1r,
1897
1914
  ...props
1898
1915
  };
1899
1916
  const getStyle = React.useCallback(() => {
@@ -1951,7 +1968,7 @@ var __publicField = (obj, key, value) => {
1951
1968
  }
1952
1969
  );
1953
1970
  Button.displayName = "NutButton";
1954
- const defaultProps$1r = {
1971
+ const defaultProps$1q = {
1955
1972
  ...ComponentDefaults,
1956
1973
  title: "",
1957
1974
  description: "",
@@ -1960,7 +1977,7 @@ var __publicField = (obj, key, value) => {
1960
1977
  const classPrefix$o = "nut-cell-group";
1961
1978
  const CellGroup = (props) => {
1962
1979
  const { children, className, style, title, description, divider, ...rest } = {
1963
- ...defaultProps$1r,
1980
+ ...defaultProps$1q,
1964
1981
  ...props
1965
1982
  };
1966
1983
  return /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$o, className), ...rest }, title ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$o}__title` }, title) : null, description ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$o}__description` }, description) : null, /* @__PURE__ */ React.createElement(
@@ -1971,9 +1988,9 @@ var __publicField = (obj, key, value) => {
1971
1988
  children
1972
1989
  ));
1973
1990
  };
1974
- CellGroup.defaultProps = defaultProps$1r;
1991
+ CellGroup.defaultProps = defaultProps$1q;
1975
1992
  CellGroup.displayName = "NutCellGroup";
1976
- const defaultProps$1q = {
1993
+ const defaultProps$1p = {
1977
1994
  ...ComponentDefaults,
1978
1995
  title: null,
1979
1996
  description: null,
@@ -1997,7 +2014,7 @@ var __publicField = (obj, key, value) => {
1997
2014
  style,
1998
2015
  ...rest
1999
2016
  } = {
2000
- ...defaultProps$1q,
2017
+ ...defaultProps$1p,
2001
2018
  ...props
2002
2019
  };
2003
2020
  const handleClick = (event) => {
@@ -2029,7 +2046,7 @@ var __publicField = (obj, key, value) => {
2029
2046
  ) : null, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix$n}__divider` }))
2030
2047
  );
2031
2048
  };
2032
- Cell.defaultProps = defaultProps$1q;
2049
+ Cell.defaultProps = defaultProps$1p;
2033
2050
  Cell.displayName = "NutCell";
2034
2051
  Cell.Group = CellGroup;
2035
2052
  var INFINITY = 1 / 0;
@@ -2316,6 +2333,672 @@ var __publicField = (obj, key, value) => {
2316
2333
  return string2.match(pattern2) || [];
2317
2334
  }
2318
2335
  var lodash_kebabcase = kebabCase;
2336
+ var lodash_isequalExports = {};
2337
+ var lodash_isequal = {
2338
+ get exports() {
2339
+ return lodash_isequalExports;
2340
+ },
2341
+ set exports(v) {
2342
+ lodash_isequalExports = v;
2343
+ }
2344
+ };
2345
+ (function(module2, exports3) {
2346
+ var LARGE_ARRAY_SIZE = 200;
2347
+ var HASH_UNDEFINED = "__lodash_hash_undefined__";
2348
+ var COMPARE_PARTIAL_FLAG = 1, COMPARE_UNORDERED_FLAG = 2;
2349
+ var MAX_SAFE_INTEGER = 9007199254740991;
2350
+ var argsTag = "[object Arguments]", arrayTag = "[object Array]", asyncTag = "[object AsyncFunction]", boolTag = "[object Boolean]", dateTag = "[object Date]", errorTag = "[object Error]", funcTag = "[object Function]", genTag = "[object GeneratorFunction]", mapTag = "[object Map]", numberTag = "[object Number]", nullTag = "[object Null]", objectTag = "[object Object]", promiseTag = "[object Promise]", proxyTag = "[object Proxy]", regexpTag = "[object RegExp]", setTag = "[object Set]", stringTag = "[object String]", symbolTag2 = "[object Symbol]", undefinedTag = "[object Undefined]", weakMapTag = "[object WeakMap]";
2351
+ var arrayBufferTag = "[object ArrayBuffer]", dataViewTag = "[object DataView]", float32Tag = "[object Float32Array]", float64Tag = "[object Float64Array]", int8Tag = "[object Int8Array]", int16Tag = "[object Int16Array]", int32Tag = "[object Int32Array]", uint8Tag = "[object Uint8Array]", uint8ClampedTag = "[object Uint8ClampedArray]", uint16Tag = "[object Uint16Array]", uint32Tag = "[object Uint32Array]";
2352
+ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g;
2353
+ var reIsHostCtor = /^\[object .+?Constructor\]$/;
2354
+ var reIsUint = /^(?:0|[1-9]\d*)$/;
2355
+ var typedArrayTags = {};
2356
+ typedArrayTags[float32Tag] = typedArrayTags[float64Tag] = typedArrayTags[int8Tag] = typedArrayTags[int16Tag] = typedArrayTags[int32Tag] = typedArrayTags[uint8Tag] = typedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] = typedArrayTags[uint32Tag] = true;
2357
+ typedArrayTags[argsTag] = typedArrayTags[arrayTag] = typedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] = typedArrayTags[dataViewTag] = typedArrayTags[dateTag] = typedArrayTags[errorTag] = typedArrayTags[funcTag] = typedArrayTags[mapTag] = typedArrayTags[numberTag] = typedArrayTags[objectTag] = typedArrayTags[regexpTag] = typedArrayTags[setTag] = typedArrayTags[stringTag] = typedArrayTags[weakMapTag] = false;
2358
+ var freeGlobal2 = typeof commonjsGlobal == "object" && commonjsGlobal && commonjsGlobal.Object === Object && commonjsGlobal;
2359
+ var freeSelf2 = typeof self == "object" && self && self.Object === Object && self;
2360
+ var root2 = freeGlobal2 || freeSelf2 || Function("return this")();
2361
+ var freeExports = exports3 && !exports3.nodeType && exports3;
2362
+ var freeModule = freeExports && true && module2 && !module2.nodeType && module2;
2363
+ var moduleExports = freeModule && freeModule.exports === freeExports;
2364
+ var freeProcess = moduleExports && freeGlobal2.process;
2365
+ var nodeUtil = function() {
2366
+ try {
2367
+ return freeProcess && freeProcess.binding && freeProcess.binding("util");
2368
+ } catch (e) {
2369
+ }
2370
+ }();
2371
+ var nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;
2372
+ function arrayFilter(array2, predicate) {
2373
+ var index = -1, length = array2 == null ? 0 : array2.length, resIndex = 0, result = [];
2374
+ while (++index < length) {
2375
+ var value = array2[index];
2376
+ if (predicate(value, index, array2)) {
2377
+ result[resIndex++] = value;
2378
+ }
2379
+ }
2380
+ return result;
2381
+ }
2382
+ function arrayPush(array2, values) {
2383
+ var index = -1, length = values.length, offset = array2.length;
2384
+ while (++index < length) {
2385
+ array2[offset + index] = values[index];
2386
+ }
2387
+ return array2;
2388
+ }
2389
+ function arraySome(array2, predicate) {
2390
+ var index = -1, length = array2 == null ? 0 : array2.length;
2391
+ while (++index < length) {
2392
+ if (predicate(array2[index], index, array2)) {
2393
+ return true;
2394
+ }
2395
+ }
2396
+ return false;
2397
+ }
2398
+ function baseTimes(n, iteratee) {
2399
+ var index = -1, result = Array(n);
2400
+ while (++index < n) {
2401
+ result[index] = iteratee(index);
2402
+ }
2403
+ return result;
2404
+ }
2405
+ function baseUnary(func) {
2406
+ return function(value) {
2407
+ return func(value);
2408
+ };
2409
+ }
2410
+ function cacheHas(cache, key) {
2411
+ return cache.has(key);
2412
+ }
2413
+ function getValue2(object2, key) {
2414
+ return object2 == null ? void 0 : object2[key];
2415
+ }
2416
+ function mapToArray(map) {
2417
+ var index = -1, result = Array(map.size);
2418
+ map.forEach(function(value, key) {
2419
+ result[++index] = [key, value];
2420
+ });
2421
+ return result;
2422
+ }
2423
+ function overArg(func, transform) {
2424
+ return function(arg) {
2425
+ return func(transform(arg));
2426
+ };
2427
+ }
2428
+ function setToArray(set) {
2429
+ var index = -1, result = Array(set.size);
2430
+ set.forEach(function(value) {
2431
+ result[++index] = value;
2432
+ });
2433
+ return result;
2434
+ }
2435
+ var arrayProto = Array.prototype, funcProto = Function.prototype, objectProto2 = Object.prototype;
2436
+ var coreJsData = root2["__core-js_shared__"];
2437
+ var funcToString = funcProto.toString;
2438
+ var hasOwnProperty = objectProto2.hasOwnProperty;
2439
+ var maskSrcKey = function() {
2440
+ var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || "");
2441
+ return uid ? "Symbol(src)_1." + uid : "";
2442
+ }();
2443
+ var nativeObjectToString = objectProto2.toString;
2444
+ var reIsNative = RegExp(
2445
+ "^" + funcToString.call(hasOwnProperty).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
2446
+ );
2447
+ var Buffer2 = moduleExports ? root2.Buffer : void 0, Symbol2 = root2.Symbol, Uint8Array2 = root2.Uint8Array, propertyIsEnumerable = objectProto2.propertyIsEnumerable, splice = arrayProto.splice, symToStringTag = Symbol2 ? Symbol2.toStringTag : void 0;
2448
+ var nativeGetSymbols = Object.getOwnPropertySymbols, nativeIsBuffer = Buffer2 ? Buffer2.isBuffer : void 0, nativeKeys = overArg(Object.keys, Object);
2449
+ var DataView = getNative(root2, "DataView"), Map2 = getNative(root2, "Map"), Promise2 = getNative(root2, "Promise"), Set = getNative(root2, "Set"), WeakMap = getNative(root2, "WeakMap"), nativeCreate = getNative(Object, "create");
2450
+ var dataViewCtorString = toSource(DataView), mapCtorString = toSource(Map2), promiseCtorString = toSource(Promise2), setCtorString = toSource(Set), weakMapCtorString = toSource(WeakMap);
2451
+ var symbolProto2 = Symbol2 ? Symbol2.prototype : void 0, symbolValueOf = symbolProto2 ? symbolProto2.valueOf : void 0;
2452
+ function Hash(entries) {
2453
+ var index = -1, length = entries == null ? 0 : entries.length;
2454
+ this.clear();
2455
+ while (++index < length) {
2456
+ var entry = entries[index];
2457
+ this.set(entry[0], entry[1]);
2458
+ }
2459
+ }
2460
+ function hashClear() {
2461
+ this.__data__ = nativeCreate ? nativeCreate(null) : {};
2462
+ this.size = 0;
2463
+ }
2464
+ function hashDelete(key) {
2465
+ var result = this.has(key) && delete this.__data__[key];
2466
+ this.size -= result ? 1 : 0;
2467
+ return result;
2468
+ }
2469
+ function hashGet(key) {
2470
+ var data = this.__data__;
2471
+ if (nativeCreate) {
2472
+ var result = data[key];
2473
+ return result === HASH_UNDEFINED ? void 0 : result;
2474
+ }
2475
+ return hasOwnProperty.call(data, key) ? data[key] : void 0;
2476
+ }
2477
+ function hashHas(key) {
2478
+ var data = this.__data__;
2479
+ return nativeCreate ? data[key] !== void 0 : hasOwnProperty.call(data, key);
2480
+ }
2481
+ function hashSet(key, value) {
2482
+ var data = this.__data__;
2483
+ this.size += this.has(key) ? 0 : 1;
2484
+ data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED : value;
2485
+ return this;
2486
+ }
2487
+ Hash.prototype.clear = hashClear;
2488
+ Hash.prototype["delete"] = hashDelete;
2489
+ Hash.prototype.get = hashGet;
2490
+ Hash.prototype.has = hashHas;
2491
+ Hash.prototype.set = hashSet;
2492
+ function ListCache(entries) {
2493
+ var index = -1, length = entries == null ? 0 : entries.length;
2494
+ this.clear();
2495
+ while (++index < length) {
2496
+ var entry = entries[index];
2497
+ this.set(entry[0], entry[1]);
2498
+ }
2499
+ }
2500
+ function listCacheClear() {
2501
+ this.__data__ = [];
2502
+ this.size = 0;
2503
+ }
2504
+ function listCacheDelete(key) {
2505
+ var data = this.__data__, index = assocIndexOf(data, key);
2506
+ if (index < 0) {
2507
+ return false;
2508
+ }
2509
+ var lastIndex = data.length - 1;
2510
+ if (index == lastIndex) {
2511
+ data.pop();
2512
+ } else {
2513
+ splice.call(data, index, 1);
2514
+ }
2515
+ --this.size;
2516
+ return true;
2517
+ }
2518
+ function listCacheGet(key) {
2519
+ var data = this.__data__, index = assocIndexOf(data, key);
2520
+ return index < 0 ? void 0 : data[index][1];
2521
+ }
2522
+ function listCacheHas(key) {
2523
+ return assocIndexOf(this.__data__, key) > -1;
2524
+ }
2525
+ function listCacheSet(key, value) {
2526
+ var data = this.__data__, index = assocIndexOf(data, key);
2527
+ if (index < 0) {
2528
+ ++this.size;
2529
+ data.push([key, value]);
2530
+ } else {
2531
+ data[index][1] = value;
2532
+ }
2533
+ return this;
2534
+ }
2535
+ ListCache.prototype.clear = listCacheClear;
2536
+ ListCache.prototype["delete"] = listCacheDelete;
2537
+ ListCache.prototype.get = listCacheGet;
2538
+ ListCache.prototype.has = listCacheHas;
2539
+ ListCache.prototype.set = listCacheSet;
2540
+ function MapCache(entries) {
2541
+ var index = -1, length = entries == null ? 0 : entries.length;
2542
+ this.clear();
2543
+ while (++index < length) {
2544
+ var entry = entries[index];
2545
+ this.set(entry[0], entry[1]);
2546
+ }
2547
+ }
2548
+ function mapCacheClear() {
2549
+ this.size = 0;
2550
+ this.__data__ = {
2551
+ "hash": new Hash(),
2552
+ "map": new (Map2 || ListCache)(),
2553
+ "string": new Hash()
2554
+ };
2555
+ }
2556
+ function mapCacheDelete(key) {
2557
+ var result = getMapData(this, key)["delete"](key);
2558
+ this.size -= result ? 1 : 0;
2559
+ return result;
2560
+ }
2561
+ function mapCacheGet(key) {
2562
+ return getMapData(this, key).get(key);
2563
+ }
2564
+ function mapCacheHas(key) {
2565
+ return getMapData(this, key).has(key);
2566
+ }
2567
+ function mapCacheSet(key, value) {
2568
+ var data = getMapData(this, key), size = data.size;
2569
+ data.set(key, value);
2570
+ this.size += data.size == size ? 0 : 1;
2571
+ return this;
2572
+ }
2573
+ MapCache.prototype.clear = mapCacheClear;
2574
+ MapCache.prototype["delete"] = mapCacheDelete;
2575
+ MapCache.prototype.get = mapCacheGet;
2576
+ MapCache.prototype.has = mapCacheHas;
2577
+ MapCache.prototype.set = mapCacheSet;
2578
+ function SetCache(values) {
2579
+ var index = -1, length = values == null ? 0 : values.length;
2580
+ this.__data__ = new MapCache();
2581
+ while (++index < length) {
2582
+ this.add(values[index]);
2583
+ }
2584
+ }
2585
+ function setCacheAdd(value) {
2586
+ this.__data__.set(value, HASH_UNDEFINED);
2587
+ return this;
2588
+ }
2589
+ function setCacheHas(value) {
2590
+ return this.__data__.has(value);
2591
+ }
2592
+ SetCache.prototype.add = SetCache.prototype.push = setCacheAdd;
2593
+ SetCache.prototype.has = setCacheHas;
2594
+ function Stack(entries) {
2595
+ var data = this.__data__ = new ListCache(entries);
2596
+ this.size = data.size;
2597
+ }
2598
+ function stackClear() {
2599
+ this.__data__ = new ListCache();
2600
+ this.size = 0;
2601
+ }
2602
+ function stackDelete(key) {
2603
+ var data = this.__data__, result = data["delete"](key);
2604
+ this.size = data.size;
2605
+ return result;
2606
+ }
2607
+ function stackGet(key) {
2608
+ return this.__data__.get(key);
2609
+ }
2610
+ function stackHas(key) {
2611
+ return this.__data__.has(key);
2612
+ }
2613
+ function stackSet(key, value) {
2614
+ var data = this.__data__;
2615
+ if (data instanceof ListCache) {
2616
+ var pairs = data.__data__;
2617
+ if (!Map2 || pairs.length < LARGE_ARRAY_SIZE - 1) {
2618
+ pairs.push([key, value]);
2619
+ this.size = ++data.size;
2620
+ return this;
2621
+ }
2622
+ data = this.__data__ = new MapCache(pairs);
2623
+ }
2624
+ data.set(key, value);
2625
+ this.size = data.size;
2626
+ return this;
2627
+ }
2628
+ Stack.prototype.clear = stackClear;
2629
+ Stack.prototype["delete"] = stackDelete;
2630
+ Stack.prototype.get = stackGet;
2631
+ Stack.prototype.has = stackHas;
2632
+ Stack.prototype.set = stackSet;
2633
+ function arrayLikeKeys(value, inherited) {
2634
+ var isArr = isArray(value), isArg = !isArr && isArguments(value), isBuff = !isArr && !isArg && isBuffer(value), isType = !isArr && !isArg && !isBuff && isTypedArray(value), skipIndexes = isArr || isArg || isBuff || isType, result = skipIndexes ? baseTimes(value.length, String) : [], length = result.length;
2635
+ for (var key in value) {
2636
+ if ((inherited || hasOwnProperty.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
2637
+ (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
2638
+ isBuff && (key == "offset" || key == "parent") || // PhantomJS 2 has enumerable non-index properties on typed arrays.
2639
+ isType && (key == "buffer" || key == "byteLength" || key == "byteOffset") || // Skip index properties.
2640
+ isIndex(key, length)))) {
2641
+ result.push(key);
2642
+ }
2643
+ }
2644
+ return result;
2645
+ }
2646
+ function assocIndexOf(array2, key) {
2647
+ var length = array2.length;
2648
+ while (length--) {
2649
+ if (eq(array2[length][0], key)) {
2650
+ return length;
2651
+ }
2652
+ }
2653
+ return -1;
2654
+ }
2655
+ function baseGetAllKeys(object2, keysFunc, symbolsFunc) {
2656
+ var result = keysFunc(object2);
2657
+ return isArray(object2) ? result : arrayPush(result, symbolsFunc(object2));
2658
+ }
2659
+ function baseGetTag(value) {
2660
+ if (value == null) {
2661
+ return value === void 0 ? undefinedTag : nullTag;
2662
+ }
2663
+ return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString2(value);
2664
+ }
2665
+ function baseIsArguments(value) {
2666
+ return isObjectLike2(value) && baseGetTag(value) == argsTag;
2667
+ }
2668
+ function baseIsEqual(value, other, bitmask, customizer, stack) {
2669
+ if (value === other) {
2670
+ return true;
2671
+ }
2672
+ if (value == null || other == null || !isObjectLike2(value) && !isObjectLike2(other)) {
2673
+ return value !== value && other !== other;
2674
+ }
2675
+ return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);
2676
+ }
2677
+ function baseIsEqualDeep(object2, other, bitmask, customizer, equalFunc, stack) {
2678
+ var objIsArr = isArray(object2), othIsArr = isArray(other), objTag = objIsArr ? arrayTag : getTag(object2), othTag = othIsArr ? arrayTag : getTag(other);
2679
+ objTag = objTag == argsTag ? objectTag : objTag;
2680
+ othTag = othTag == argsTag ? objectTag : othTag;
2681
+ var objIsObj = objTag == objectTag, othIsObj = othTag == objectTag, isSameTag = objTag == othTag;
2682
+ if (isSameTag && isBuffer(object2)) {
2683
+ if (!isBuffer(other)) {
2684
+ return false;
2685
+ }
2686
+ objIsArr = true;
2687
+ objIsObj = false;
2688
+ }
2689
+ if (isSameTag && !objIsObj) {
2690
+ stack || (stack = new Stack());
2691
+ return objIsArr || isTypedArray(object2) ? equalArrays(object2, other, bitmask, customizer, equalFunc, stack) : equalByTag(object2, other, objTag, bitmask, customizer, equalFunc, stack);
2692
+ }
2693
+ if (!(bitmask & COMPARE_PARTIAL_FLAG)) {
2694
+ var objIsWrapped = objIsObj && hasOwnProperty.call(object2, "__wrapped__"), othIsWrapped = othIsObj && hasOwnProperty.call(other, "__wrapped__");
2695
+ if (objIsWrapped || othIsWrapped) {
2696
+ var objUnwrapped = objIsWrapped ? object2.value() : object2, othUnwrapped = othIsWrapped ? other.value() : other;
2697
+ stack || (stack = new Stack());
2698
+ return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);
2699
+ }
2700
+ }
2701
+ if (!isSameTag) {
2702
+ return false;
2703
+ }
2704
+ stack || (stack = new Stack());
2705
+ return equalObjects(object2, other, bitmask, customizer, equalFunc, stack);
2706
+ }
2707
+ function baseIsNative(value) {
2708
+ if (!isObject2(value) || isMasked(value)) {
2709
+ return false;
2710
+ }
2711
+ var pattern2 = isFunction2(value) ? reIsNative : reIsHostCtor;
2712
+ return pattern2.test(toSource(value));
2713
+ }
2714
+ function baseIsTypedArray(value) {
2715
+ return isObjectLike2(value) && isLength(value.length) && !!typedArrayTags[baseGetTag(value)];
2716
+ }
2717
+ function baseKeys(object2) {
2718
+ if (!isPrototype(object2)) {
2719
+ return nativeKeys(object2);
2720
+ }
2721
+ var result = [];
2722
+ for (var key in Object(object2)) {
2723
+ if (hasOwnProperty.call(object2, key) && key != "constructor") {
2724
+ result.push(key);
2725
+ }
2726
+ }
2727
+ return result;
2728
+ }
2729
+ function equalArrays(array2, other, bitmask, customizer, equalFunc, stack) {
2730
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG, arrLength = array2.length, othLength = other.length;
2731
+ if (arrLength != othLength && !(isPartial && othLength > arrLength)) {
2732
+ return false;
2733
+ }
2734
+ var stacked = stack.get(array2);
2735
+ if (stacked && stack.get(other)) {
2736
+ return stacked == other;
2737
+ }
2738
+ var index = -1, result = true, seen = bitmask & COMPARE_UNORDERED_FLAG ? new SetCache() : void 0;
2739
+ stack.set(array2, other);
2740
+ stack.set(other, array2);
2741
+ while (++index < arrLength) {
2742
+ var arrValue = array2[index], othValue = other[index];
2743
+ if (customizer) {
2744
+ var compared = isPartial ? customizer(othValue, arrValue, index, other, array2, stack) : customizer(arrValue, othValue, index, array2, other, stack);
2745
+ }
2746
+ if (compared !== void 0) {
2747
+ if (compared) {
2748
+ continue;
2749
+ }
2750
+ result = false;
2751
+ break;
2752
+ }
2753
+ if (seen) {
2754
+ if (!arraySome(other, function(othValue2, othIndex) {
2755
+ if (!cacheHas(seen, othIndex) && (arrValue === othValue2 || equalFunc(arrValue, othValue2, bitmask, customizer, stack))) {
2756
+ return seen.push(othIndex);
2757
+ }
2758
+ })) {
2759
+ result = false;
2760
+ break;
2761
+ }
2762
+ } else if (!(arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {
2763
+ result = false;
2764
+ break;
2765
+ }
2766
+ }
2767
+ stack["delete"](array2);
2768
+ stack["delete"](other);
2769
+ return result;
2770
+ }
2771
+ function equalByTag(object2, other, tag, bitmask, customizer, equalFunc, stack) {
2772
+ switch (tag) {
2773
+ case dataViewTag:
2774
+ if (object2.byteLength != other.byteLength || object2.byteOffset != other.byteOffset) {
2775
+ return false;
2776
+ }
2777
+ object2 = object2.buffer;
2778
+ other = other.buffer;
2779
+ case arrayBufferTag:
2780
+ if (object2.byteLength != other.byteLength || !equalFunc(new Uint8Array2(object2), new Uint8Array2(other))) {
2781
+ return false;
2782
+ }
2783
+ return true;
2784
+ case boolTag:
2785
+ case dateTag:
2786
+ case numberTag:
2787
+ return eq(+object2, +other);
2788
+ case errorTag:
2789
+ return object2.name == other.name && object2.message == other.message;
2790
+ case regexpTag:
2791
+ case stringTag:
2792
+ return object2 == other + "";
2793
+ case mapTag:
2794
+ var convert = mapToArray;
2795
+ case setTag:
2796
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG;
2797
+ convert || (convert = setToArray);
2798
+ if (object2.size != other.size && !isPartial) {
2799
+ return false;
2800
+ }
2801
+ var stacked = stack.get(object2);
2802
+ if (stacked) {
2803
+ return stacked == other;
2804
+ }
2805
+ bitmask |= COMPARE_UNORDERED_FLAG;
2806
+ stack.set(object2, other);
2807
+ var result = equalArrays(convert(object2), convert(other), bitmask, customizer, equalFunc, stack);
2808
+ stack["delete"](object2);
2809
+ return result;
2810
+ case symbolTag2:
2811
+ if (symbolValueOf) {
2812
+ return symbolValueOf.call(object2) == symbolValueOf.call(other);
2813
+ }
2814
+ }
2815
+ return false;
2816
+ }
2817
+ function equalObjects(object2, other, bitmask, customizer, equalFunc, stack) {
2818
+ var isPartial = bitmask & COMPARE_PARTIAL_FLAG, objProps = getAllKeys(object2), objLength = objProps.length, othProps = getAllKeys(other), othLength = othProps.length;
2819
+ if (objLength != othLength && !isPartial) {
2820
+ return false;
2821
+ }
2822
+ var index = objLength;
2823
+ while (index--) {
2824
+ var key = objProps[index];
2825
+ if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {
2826
+ return false;
2827
+ }
2828
+ }
2829
+ var stacked = stack.get(object2);
2830
+ if (stacked && stack.get(other)) {
2831
+ return stacked == other;
2832
+ }
2833
+ var result = true;
2834
+ stack.set(object2, other);
2835
+ stack.set(other, object2);
2836
+ var skipCtor = isPartial;
2837
+ while (++index < objLength) {
2838
+ key = objProps[index];
2839
+ var objValue = object2[key], othValue = other[key];
2840
+ if (customizer) {
2841
+ var compared = isPartial ? customizer(othValue, objValue, key, other, object2, stack) : customizer(objValue, othValue, key, object2, other, stack);
2842
+ }
2843
+ if (!(compared === void 0 ? objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack) : compared)) {
2844
+ result = false;
2845
+ break;
2846
+ }
2847
+ skipCtor || (skipCtor = key == "constructor");
2848
+ }
2849
+ if (result && !skipCtor) {
2850
+ var objCtor = object2.constructor, othCtor = other.constructor;
2851
+ if (objCtor != othCtor && ("constructor" in object2 && "constructor" in other) && !(typeof objCtor == "function" && objCtor instanceof objCtor && typeof othCtor == "function" && othCtor instanceof othCtor)) {
2852
+ result = false;
2853
+ }
2854
+ }
2855
+ stack["delete"](object2);
2856
+ stack["delete"](other);
2857
+ return result;
2858
+ }
2859
+ function getAllKeys(object2) {
2860
+ return baseGetAllKeys(object2, keys, getSymbols);
2861
+ }
2862
+ function getMapData(map, key) {
2863
+ var data = map.__data__;
2864
+ return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map;
2865
+ }
2866
+ function getNative(object2, key) {
2867
+ var value = getValue2(object2, key);
2868
+ return baseIsNative(value) ? value : void 0;
2869
+ }
2870
+ function getRawTag(value) {
2871
+ var isOwn = hasOwnProperty.call(value, symToStringTag), tag = value[symToStringTag];
2872
+ try {
2873
+ value[symToStringTag] = void 0;
2874
+ var unmasked = true;
2875
+ } catch (e) {
2876
+ }
2877
+ var result = nativeObjectToString.call(value);
2878
+ if (unmasked) {
2879
+ if (isOwn) {
2880
+ value[symToStringTag] = tag;
2881
+ } else {
2882
+ delete value[symToStringTag];
2883
+ }
2884
+ }
2885
+ return result;
2886
+ }
2887
+ var getSymbols = !nativeGetSymbols ? stubArray : function(object2) {
2888
+ if (object2 == null) {
2889
+ return [];
2890
+ }
2891
+ object2 = Object(object2);
2892
+ return arrayFilter(nativeGetSymbols(object2), function(symbol) {
2893
+ return propertyIsEnumerable.call(object2, symbol);
2894
+ });
2895
+ };
2896
+ var getTag = baseGetTag;
2897
+ if (DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag || Map2 && getTag(new Map2()) != mapTag || Promise2 && getTag(Promise2.resolve()) != promiseTag || Set && getTag(new Set()) != setTag || WeakMap && getTag(new WeakMap()) != weakMapTag) {
2898
+ getTag = function(value) {
2899
+ var result = baseGetTag(value), Ctor = result == objectTag ? value.constructor : void 0, ctorString = Ctor ? toSource(Ctor) : "";
2900
+ if (ctorString) {
2901
+ switch (ctorString) {
2902
+ case dataViewCtorString:
2903
+ return dataViewTag;
2904
+ case mapCtorString:
2905
+ return mapTag;
2906
+ case promiseCtorString:
2907
+ return promiseTag;
2908
+ case setCtorString:
2909
+ return setTag;
2910
+ case weakMapCtorString:
2911
+ return weakMapTag;
2912
+ }
2913
+ }
2914
+ return result;
2915
+ };
2916
+ }
2917
+ function isIndex(value, length) {
2918
+ length = length == null ? MAX_SAFE_INTEGER : length;
2919
+ return !!length && (typeof value == "number" || reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length);
2920
+ }
2921
+ function isKeyable(value) {
2922
+ var type2 = typeof value;
2923
+ return type2 == "string" || type2 == "number" || type2 == "symbol" || type2 == "boolean" ? value !== "__proto__" : value === null;
2924
+ }
2925
+ function isMasked(func) {
2926
+ return !!maskSrcKey && maskSrcKey in func;
2927
+ }
2928
+ function isPrototype(value) {
2929
+ var Ctor = value && value.constructor, proto = typeof Ctor == "function" && Ctor.prototype || objectProto2;
2930
+ return value === proto;
2931
+ }
2932
+ function objectToString2(value) {
2933
+ return nativeObjectToString.call(value);
2934
+ }
2935
+ function toSource(func) {
2936
+ if (func != null) {
2937
+ try {
2938
+ return funcToString.call(func);
2939
+ } catch (e) {
2940
+ }
2941
+ try {
2942
+ return func + "";
2943
+ } catch (e) {
2944
+ }
2945
+ }
2946
+ return "";
2947
+ }
2948
+ function eq(value, other) {
2949
+ return value === other || value !== value && other !== other;
2950
+ }
2951
+ var isArguments = baseIsArguments(function() {
2952
+ return arguments;
2953
+ }()) ? baseIsArguments : function(value) {
2954
+ return isObjectLike2(value) && hasOwnProperty.call(value, "callee") && !propertyIsEnumerable.call(value, "callee");
2955
+ };
2956
+ var isArray = Array.isArray;
2957
+ function isArrayLike(value) {
2958
+ return value != null && isLength(value.length) && !isFunction2(value);
2959
+ }
2960
+ var isBuffer = nativeIsBuffer || stubFalse;
2961
+ function isEqual(value, other) {
2962
+ return baseIsEqual(value, other);
2963
+ }
2964
+ function isFunction2(value) {
2965
+ if (!isObject2(value)) {
2966
+ return false;
2967
+ }
2968
+ var tag = baseGetTag(value);
2969
+ return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;
2970
+ }
2971
+ function isLength(value) {
2972
+ return typeof value == "number" && value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;
2973
+ }
2974
+ function isObject2(value) {
2975
+ var type2 = typeof value;
2976
+ return value != null && (type2 == "object" || type2 == "function");
2977
+ }
2978
+ function isObjectLike2(value) {
2979
+ return value != null && typeof value == "object";
2980
+ }
2981
+ var isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;
2982
+ function keys(object2) {
2983
+ return isArrayLike(object2) ? arrayLikeKeys(object2) : baseKeys(object2);
2984
+ }
2985
+ function stubArray() {
2986
+ return [];
2987
+ }
2988
+ function stubFalse() {
2989
+ return false;
2990
+ }
2991
+ module2.exports = isEqual;
2992
+ })(lodash_isequal, lodash_isequalExports);
2993
+ const isequal = lodash_isequalExports;
2994
+ function useMemo(getValue2, condition, shouldUpdate) {
2995
+ const cacheRef = React__namespace.useRef({});
2996
+ if (!("value" in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
2997
+ cacheRef.current.value = getValue2();
2998
+ cacheRef.current.condition = condition;
2999
+ }
3000
+ return cacheRef.current.value;
3001
+ }
2319
3002
  const zhCN = {
2320
3003
  save: "保存",
2321
3004
  confirm: "确认",
@@ -2445,10 +3128,6 @@ var __publicField = (obj, key, value) => {
2445
3128
  errorCanvasTips: "当前环境不支持Canvas"
2446
3129
  }
2447
3130
  };
2448
- const defaultProps$1p = {
2449
- ...ComponentDefaults,
2450
- locale: zhCN
2451
- };
2452
3131
  const classPrefix$m = "nut-configprovider";
2453
3132
  const defaultConfigRef = {
2454
3133
  current: {
@@ -2470,24 +3149,35 @@ var __publicField = (obj, key, value) => {
2470
3149
  return cssVars;
2471
3150
  }
2472
3151
  const ConfigProvider = (props) => {
2473
- const { children, className, ...config2 } = { ...defaultProps$1p, ...props };
2474
- const parentConfig = useConfig();
2475
- const style = {
2476
- ...convertThemeVarsToCSSVars(config2.theme || {}),
2477
- ...config2.style
2478
- };
2479
- return /* @__PURE__ */ React.createElement(
2480
- ConfigContext.Provider,
2481
- {
2482
- value: {
2483
- ...parentConfig,
3152
+ const { style, className, children, ...config2 } = props;
3153
+ const mergedConfig = useMemo(
3154
+ () => {
3155
+ return {
3156
+ ...getDefaultConfig(),
2484
3157
  ...config2
2485
- }
3158
+ };
2486
3159
  },
2487
- /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix$m, className), style }, children)
3160
+ [config2],
3161
+ (prev, next) => prev.some((prevTheme, index) => {
3162
+ const nextTheme = next[index];
3163
+ return !isequal(prevTheme, nextTheme);
3164
+ })
2488
3165
  );
3166
+ const cssVarStyle = React.useMemo(() => {
3167
+ return convertThemeVarsToCSSVars(mergedConfig.theme || {});
3168
+ }, [mergedConfig.theme]);
3169
+ return /* @__PURE__ */ React.createElement(ConfigContext.Provider, { value: mergedConfig }, /* @__PURE__ */ React.createElement(
3170
+ "div",
3171
+ {
3172
+ className: classNames(classPrefix$m, className),
3173
+ style: {
3174
+ ...cssVarStyle,
3175
+ ...style
3176
+ }
3177
+ },
3178
+ children
3179
+ ));
2489
3180
  };
2490
- ConfigProvider.defaultProps = defaultProps$1p;
2491
3181
  ConfigProvider.displayName = "NutConfigProvider";
2492
3182
  const defaultProps$1o = {
2493
3183
  src: "",
@@ -13634,7 +14324,7 @@ var __publicField = (obj, key, value) => {
13634
14324
  const getScrollHeight = () => {
13635
14325
  const parentElement = getParentElement("scroller");
13636
14326
  parentElement.boundingClientRect((rect) => {
13637
- scrollHeight.current = rect.height;
14327
+ scrollHeight.current = (rect == null ? void 0 : rect.height) ?? 0;
13638
14328
  }).exec();
13639
14329
  };
13640
14330
  const getStyle = () => {
@@ -14279,22 +14969,25 @@ var __publicField = (obj, key, value) => {
14279
14969
  }, [visible]);
14280
14970
  const getContentWidth = async () => {
14281
14971
  let rect;
14282
- if (targetId) {
14283
- if (Taro.getEnv() === Taro.ENV_TYPE.WEB) {
14284
- rect = getRect(document.querySelector(`#${targetId}`));
14972
+ Taro.createSelectorQuery().selectViewport().scrollOffset(async (res) => {
14973
+ const distance = res.scrollTop;
14974
+ if (targetId) {
14975
+ if (Taro.getEnv() === Taro.ENV_TYPE.WEB) {
14976
+ rect = getRect(document.querySelector(`#${targetId}`));
14977
+ } else {
14978
+ rect = await getRectTaro(targetId);
14979
+ }
14285
14980
  } else {
14286
- rect = await getRectTaro(targetId);
14981
+ rect = await getRectByTaro(popoverRef.current);
14287
14982
  }
14288
- } else {
14289
- rect = await getRectByTaro(popoverRef.current);
14290
- }
14291
- setRootPosition({
14292
- width: rect.width,
14293
- height: rect.height,
14294
- left: rect.left,
14295
- top: rect.top,
14296
- right: rect.right
14297
- });
14983
+ setRootPosition({
14984
+ width: rect.width,
14985
+ height: rect.height,
14986
+ left: rect.left,
14987
+ top: rect.top + distance,
14988
+ right: rect.right
14989
+ });
14990
+ }).exec();
14298
14991
  setTimeout(() => {
14299
14992
  getPopoverContentW();
14300
14993
  }, 300);
@@ -14428,7 +15121,7 @@ var __publicField = (obj, key, value) => {
14428
15121
  },
14429
15122
  item.className
14430
15123
  ),
14431
- key: item.key,
15124
+ key: item.key || index,
14432
15125
  onClick: () => handleSelect(item, index)
14433
15126
  },
14434
15127
  item.icon ? item.icon : null,