bromcom-ui 2.9.1-rc.0 → 2.9.1-rc.1

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 (369) hide show
  1. package/dist/bromcom-ui/bromcom-ui.css +1 -1
  2. package/dist/bromcom-ui/bromcom-ui.esm.js +1 -1
  3. package/dist/bromcom-ui/{p-7c5763cc.entry.js → p-03337609.entry.js} +1 -1
  4. package/dist/bromcom-ui/{p-6edf985f.js → p-034bbcdd.js} +1 -1
  5. package/dist/bromcom-ui/p-0be0c743.entry.js +5 -0
  6. package/dist/bromcom-ui/{p-430c0a24.entry.js → p-0efc9196.entry.js} +1 -1
  7. package/dist/bromcom-ui/{p-c1a992e7.entry.js → p-107f11df.entry.js} +1 -1
  8. package/dist/bromcom-ui/{p-7d18ce0e.entry.js → p-181f2f4a.entry.js} +1 -1
  9. package/dist/bromcom-ui/p-1845fc18.js +5 -0
  10. package/dist/bromcom-ui/{p-2aaeb247.entry.js → p-188b9079.entry.js} +1 -1
  11. package/dist/bromcom-ui/{p-26290ed5.entry.js → p-18bc4e04.entry.js} +1 -1
  12. package/dist/bromcom-ui/{p-74e6d2b6.js → p-197aba37.js} +1 -1
  13. package/dist/bromcom-ui/{p-80ee3d97.entry.js → p-1998815a.entry.js} +1 -1
  14. package/dist/bromcom-ui/p-1a31fc0b.entry.js +5 -0
  15. package/dist/bromcom-ui/{p-a664cc20.entry.js → p-1a33d7a3.entry.js} +1 -1
  16. package/dist/bromcom-ui/{p-efc75375.entry.js → p-1c043ab6.entry.js} +1 -1
  17. package/dist/bromcom-ui/{p-fff1a0f9.entry.js → p-1e8559ac.entry.js} +1 -1
  18. package/dist/bromcom-ui/p-21da70e5.entry.js +5 -0
  19. package/dist/bromcom-ui/{p-28a748ad.entry.js → p-226c8c0a.entry.js} +1 -1
  20. package/dist/bromcom-ui/p-292861ed.entry.js +5 -0
  21. package/dist/bromcom-ui/{p-4f5f5090.entry.js → p-2aa9e3e8.entry.js} +1 -1
  22. package/dist/bromcom-ui/{p-6880da84.entry.js → p-2bfd7aa8.entry.js} +1 -1
  23. package/dist/bromcom-ui/{p-70d3ff0a.entry.js → p-2d3e225b.entry.js} +1 -1
  24. package/dist/bromcom-ui/{p-541fc5ec.entry.js → p-2ebba9f4.entry.js} +1 -1
  25. package/dist/bromcom-ui/p-3182df7e.js +10 -0
  26. package/dist/bromcom-ui/p-32df2233.js +5 -0
  27. package/dist/bromcom-ui/p-3469c1bb.js +5 -0
  28. package/dist/bromcom-ui/p-3a1eabb1.entry.js +5 -0
  29. package/dist/bromcom-ui/{p-67343ad8.entry.js → p-3b079331.entry.js} +1 -1
  30. package/dist/bromcom-ui/p-3b78f74e.entry.js +5 -0
  31. package/dist/bromcom-ui/{p-15a16b4a.entry.js → p-3c783cae.entry.js} +1 -1
  32. package/dist/bromcom-ui/{p-8c018ae0.js → p-3c7a0345.js} +1 -1
  33. package/dist/bromcom-ui/{p-67d13512.entry.js → p-417e8067.entry.js} +1 -1
  34. package/dist/bromcom-ui/{p-14cafd64.entry.js → p-4438d629.entry.js} +1 -1
  35. package/dist/bromcom-ui/{p-5699f67d.entry.js → p-468157a0.entry.js} +1 -1
  36. package/dist/bromcom-ui/{p-61db1f1f.js → p-4798d827.js} +1 -1
  37. package/dist/bromcom-ui/{p-69260d36.entry.js → p-48f5a3c9.entry.js} +1 -1
  38. package/dist/bromcom-ui/{p-d6cd20cf.entry.js → p-4c7cd784.entry.js} +1 -1
  39. package/dist/bromcom-ui/{p-ece578ef.entry.js → p-4d7ea23c.entry.js} +1 -1
  40. package/dist/bromcom-ui/p-4e4504ca.js +5 -0
  41. package/dist/bromcom-ui/{p-64c6092c.js → p-51d2c673.js} +1 -1
  42. package/dist/bromcom-ui/p-52f879b2.entry.js +5 -0
  43. package/dist/bromcom-ui/{p-c6a6a181.entry.js → p-535d02b9.entry.js} +1 -1
  44. package/dist/bromcom-ui/p-5a3f8a49.entry.js +5 -0
  45. package/dist/bromcom-ui/{p-7e44e6b5.js → p-5ae0a59b.js} +1 -1
  46. package/dist/bromcom-ui/{p-12f997c1.entry.js → p-5be009b0.entry.js} +1 -1
  47. package/dist/bromcom-ui/p-5ccb0675.entry.js +5 -0
  48. package/dist/bromcom-ui/p-5ea9881d.entry.js +5 -0
  49. package/dist/bromcom-ui/p-5ee8a018.js +5 -0
  50. package/dist/bromcom-ui/{p-5f071adc.entry.js → p-5fc98177.entry.js} +1 -1
  51. package/dist/bromcom-ui/p-62369801.entry.js +5 -0
  52. package/dist/bromcom-ui/p-626a65e9.js +5 -0
  53. package/dist/bromcom-ui/{p-d551a51d.entry.js → p-63138ee5.entry.js} +1 -1
  54. package/dist/bromcom-ui/p-6385e735.entry.js +5 -0
  55. package/dist/bromcom-ui/p-67bb1c06.js +5 -0
  56. package/dist/bromcom-ui/p-6d0a02d7.entry.js +5 -0
  57. package/dist/bromcom-ui/{p-ba9eff2a.entry.js → p-6e7bb16f.entry.js} +1 -1
  58. package/dist/bromcom-ui/p-6f11eb8e.entry.js +5 -0
  59. package/dist/bromcom-ui/p-76edf59f.js +7 -0
  60. package/dist/bromcom-ui/p-77035c08.entry.js +5 -0
  61. package/dist/bromcom-ui/{p-a3e0482c.entry.js → p-788de9cf.entry.js} +1 -1
  62. package/dist/bromcom-ui/{p-626b805d.entry.js → p-7a89243a.entry.js} +1 -1
  63. package/dist/bromcom-ui/p-7b506ccb.entry.js +5 -0
  64. package/dist/bromcom-ui/p-7c623da0.js +5 -0
  65. package/dist/bromcom-ui/p-7e3209a0.js +14 -0
  66. package/dist/bromcom-ui/p-7e35d915.entry.js +5 -0
  67. package/dist/bromcom-ui/{p-1d7509e4.entry.js → p-7f63e25c.entry.js} +1 -1
  68. package/dist/bromcom-ui/p-80249663.entry.js +5 -0
  69. package/dist/bromcom-ui/p-89abd5ea.entry.js +5 -0
  70. package/dist/bromcom-ui/p-8b318727.entry.js +5 -0
  71. package/dist/bromcom-ui/{p-2c5a0863.js → p-8c951a73.js} +1 -1
  72. package/dist/bromcom-ui/p-8d4482d6.entry.js +5 -0
  73. package/dist/bromcom-ui/{p-9850cbce.js → p-8e5e362a.js} +1 -1
  74. package/dist/bromcom-ui/{p-1c801d0c.entry.js → p-95a2c489.entry.js} +1 -1
  75. package/dist/bromcom-ui/{p-6dcfdb90.entry.js → p-99dc26dd.entry.js} +1 -1
  76. package/dist/bromcom-ui/p-a0bd7793.entry.js +5 -0
  77. package/dist/bromcom-ui/p-a1b1750c.js +1 -1
  78. package/dist/bromcom-ui/{p-68280506.entry.js → p-a907cae6.entry.js} +1 -1
  79. package/dist/bromcom-ui/{p-7bb1f30b.entry.js → p-a9c22560.entry.js} +1 -1
  80. package/dist/bromcom-ui/p-ae94dfa8.js +5 -0
  81. package/dist/bromcom-ui/p-b11dd428.entry.js +5 -0
  82. package/dist/bromcom-ui/p-b6bac5f5.entry.js +5 -0
  83. package/dist/bromcom-ui/p-bc8d7f89.entry.js +5 -0
  84. package/dist/bromcom-ui/p-bed627ab.js +11 -0
  85. package/dist/bromcom-ui/{p-b550b336.js → p-c3422601.js} +1 -1
  86. package/dist/bromcom-ui/p-c495a13f.js +5 -0
  87. package/dist/bromcom-ui/{p-3672a932.entry.js → p-c49c79ca.entry.js} +1 -1
  88. package/dist/bromcom-ui/p-c8058a21.entry.js +5 -0
  89. package/dist/bromcom-ui/p-cc61ed4c.entry.js +5 -0
  90. package/dist/bromcom-ui/p-ce62273f.entry.js +5 -0
  91. package/dist/bromcom-ui/{p-69dd585e.entry.js → p-cf022deb.entry.js} +1 -1
  92. package/dist/bromcom-ui/{p-f7215c0e.js → p-d22b7435.js} +1 -1
  93. package/dist/bromcom-ui/p-d7b9ab98.entry.js +5 -0
  94. package/dist/bromcom-ui/p-d9eaa208.entry.js +5 -0
  95. package/dist/bromcom-ui/p-dc290a64.entry.js +5 -0
  96. package/dist/bromcom-ui/p-dd2a36fa.entry.js +5 -0
  97. package/dist/bromcom-ui/{p-170cf07d.js → p-e037ee2b.js} +1 -1
  98. package/dist/bromcom-ui/{p-b4729876.entry.js → p-e321ccff.entry.js} +1 -1
  99. package/dist/bromcom-ui/{p-1c9314bd.entry.js → p-e32ab4da.entry.js} +1 -1
  100. package/dist/bromcom-ui/{p-85eedabc.js → p-e45c1546.js} +1 -1
  101. package/dist/bromcom-ui/{p-bacd1841.entry.js → p-e8f8aa3b.entry.js} +1 -1
  102. package/dist/bromcom-ui/p-eb6b6010.entry.js +5 -0
  103. package/dist/bromcom-ui/{p-e688b044.entry.js → p-f03e56b9.entry.js} +1 -1
  104. package/dist/bromcom-ui/{p-5898ecd1.entry.js → p-f0adf08c.entry.js} +1 -1
  105. package/dist/bromcom-ui/p-f709a2e2.entry.js +5 -0
  106. package/dist/bromcom-ui/p-f711588b.js +1 -1
  107. package/dist/bromcom-ui/{p-99824717.entry.js → p-f9119bec.entry.js} +1 -1
  108. package/dist/bromcom-ui/{p-d153c7fc.js → p-f95797df.js} +1 -1
  109. package/dist/bromcom-ui/{p-3c1b1624.entry.js → p-fa057fc4.entry.js} +1 -1
  110. package/dist/bromcom-ui/{p-59af8bab.entry.js → p-fa8300a2.entry.js} +1 -1
  111. package/dist/bromcom-ui/p-fbb959f4.entry.js +5 -0
  112. package/dist/bromcom-ui/{p-39ae9f7f.entry.js → p-fe88e003.entry.js} +1 -1
  113. package/dist/bromcom-ui/p-ff012d63.entry.js +5 -0
  114. package/dist/bromcom-ui/{p-49cb669b.entry.js → p-ff714da2.entry.js} +1 -1
  115. package/dist/bromcom-ui/p-ff8d5e17.entry.js +5 -0
  116. package/dist/cjs/{bcm-7f703055.js → bcm-9e47c4b2.js} +4 -4
  117. package/dist/cjs/bcm-accordion.cjs.entry.js +2 -2
  118. package/dist/cjs/bcm-alert.cjs.entry.js +4 -4
  119. package/dist/cjs/bcm-attendance.cjs.entry.js +2 -2
  120. package/dist/cjs/bcm-avatar_2.cjs.entry.js +11 -10
  121. package/dist/cjs/bcm-breadcrumb.cjs.entry.js +2 -2
  122. package/dist/cjs/bcm-button-group.cjs.entry.js +7 -7
  123. package/dist/cjs/bcm-button.cjs.entry.js +372 -0
  124. package/dist/cjs/bcm-card.cjs.entry.js +5 -5
  125. package/dist/cjs/bcm-checkbox-group.cjs.entry.js +25 -25
  126. package/dist/cjs/bcm-checkbox-lite_9.cjs.entry.js +6 -6
  127. package/dist/cjs/bcm-checkbox_2.cjs.entry.js +10 -10
  128. package/dist/cjs/bcm-chip-group.cjs.entry.js +10 -9
  129. package/dist/cjs/bcm-chip.cjs.entry.js +2 -2
  130. package/dist/cjs/bcm-collapse.cjs.entry.js +2 -2
  131. package/dist/cjs/bcm-color-input.cjs.entry.js +7 -6
  132. package/dist/cjs/bcm-colorful_2.cjs.entry.js +17585 -0
  133. package/dist/cjs/bcm-date-picker.cjs.entry.js +182 -0
  134. package/dist/cjs/bcm-date.cjs.entry.js +182 -0
  135. package/dist/cjs/bcm-datetime-picker.cjs.entry.js +1451 -0
  136. package/dist/cjs/bcm-default.cjs.entry.js +2 -2
  137. package/dist/cjs/bcm-drawer.cjs.entry.js +9 -8
  138. package/dist/cjs/bcm-dropdown.cjs.entry.js +7 -7
  139. package/dist/cjs/bcm-expansion-panel.cjs.entry.js +4 -4
  140. package/dist/cjs/bcm-form-2.cjs.entry.js +212 -0
  141. package/dist/cjs/bcm-form.cjs.entry.js +489 -0
  142. package/dist/cjs/bcm-icon.cjs.entry.js +39 -0
  143. package/dist/cjs/bcm-input-custom.cjs.entry.js +2 -2
  144. package/dist/cjs/bcm-input-dropdown.cjs.entry.js +9 -8
  145. package/dist/cjs/bcm-item.cjs.entry.js +4 -4
  146. package/dist/cjs/bcm-items.cjs.entry.js +4 -4
  147. package/dist/cjs/bcm-label_2.cjs.entry.js +126 -0
  148. package/dist/cjs/bcm-link.cjs.entry.js +3 -3
  149. package/dist/cjs/bcm-linked_2.cjs.entry.js +289 -0
  150. package/dist/cjs/bcm-list_3.cjs.entry.js +35 -33
  151. package/dist/cjs/bcm-menu.cjs.entry.js +9 -8
  152. package/dist/cjs/bcm-modal-2-footer.cjs.entry.js +7 -6
  153. package/dist/cjs/bcm-modal-2-header.cjs.entry.js +7 -6
  154. package/dist/cjs/bcm-modal-2.cjs.entry.js +8 -7
  155. package/dist/cjs/bcm-modal.cjs.entry.js +13 -10
  156. package/dist/cjs/bcm-old-input.cjs.entry.js +397 -0
  157. package/dist/cjs/bcm-popconfirm-box.cjs.entry.js +5 -5
  158. package/dist/cjs/bcm-popconfirm.cjs.entry.js +5 -5
  159. package/dist/cjs/bcm-popover.cjs.entry.js +10 -9
  160. package/dist/cjs/bcm-progress.cjs.entry.js +4 -4
  161. package/dist/cjs/bcm-radio-group.cjs.entry.js +11 -10
  162. package/dist/cjs/bcm-radio.cjs.entry.js +14 -13
  163. package/dist/cjs/bcm-range.cjs.entry.js +6 -6
  164. package/dist/cjs/bcm-rc-picker.cjs.entry.js +9404 -0
  165. package/dist/cjs/bcm-select.cjs.entry.js +2 -2
  166. package/dist/cjs/bcm-step.cjs.entry.js +3 -3
  167. package/dist/cjs/bcm-stepper.cjs.entry.js +10 -9
  168. package/dist/cjs/bcm-switch.cjs.entry.js +9 -9
  169. package/dist/cjs/bcm-tab-group.cjs.entry.js +8 -7
  170. package/dist/cjs/bcm-tab-item-header.cjs.entry.js +11 -10
  171. package/dist/cjs/bcm-tab-item.cjs.entry.js +7 -6
  172. package/dist/cjs/bcm-table.cjs.entry.js +7 -6
  173. package/dist/cjs/bcm-tag.cjs.entry.js +15 -15
  174. package/dist/cjs/bcm-text.cjs.entry.js +3 -3
  175. package/dist/cjs/bcm-textarea.cjs.entry.js +7 -7
  176. package/dist/cjs/bcm-time-picker.cjs.entry.js +150 -0
  177. package/dist/cjs/bcm-toast.cjs.entry.js +11 -11
  178. package/dist/cjs/bromcom-ui.cjs.js +3 -3
  179. package/dist/cjs/datetime-helper-eaf4fadb.js +11 -0
  180. package/dist/cjs/{floating-ui-b441ea7c.js → floating-ui-4a2c2bd4.js} +2 -2
  181. package/dist/cjs/{generate-7bd78318.js → generate-efeda203.js} +1 -1
  182. package/dist/cjs/{global-aca5c011.js → global-38efbdd7.js} +1 -1
  183. package/dist/cjs/index-3d67f613.js +1610 -0
  184. package/dist/cjs/{index-7eed931f.js → index-e05a7c6f.js} +24 -1625
  185. package/dist/cjs/{input-template-4952273e.js → input-template-c1e96592.js} +6 -6
  186. package/dist/cjs/{json-parse-decarator-7529151b.js → json-parse-decarator-7d2677f0.js} +1 -1
  187. package/dist/cjs/{label-template-80235581.js → label-template-d531dfb7.js} +3 -3
  188. package/dist/cjs/loader.cjs.js +3 -3
  189. package/dist/cjs/moment-d06b012f.js +4601 -0
  190. package/dist/cjs/{number-helper-6c8e0d90.js → number-helper-b178b610.js} +1 -1
  191. package/dist/cjs/old-bcm-popover-box.cjs.entry.js +7 -7
  192. package/dist/cjs/old-bcm-popover.cjs.entry.js +5 -5
  193. package/dist/cjs/{package-21f7555f.js → package-2899048c.js} +1 -1
  194. package/dist/cjs/{popover-placement-f20020a6.js → popover-placement-4156a9ec.js} +1 -1
  195. package/dist/cjs/{slot-template-873b0cd5.js → slot-template-46018683.js} +1 -1
  196. package/dist/cjs/{stepper-states-736e2aa7.js → stepper-states-9bd52bd4.js} +1 -1
  197. package/dist/cjs/{string-helper-fda7cbba.js → string-helper-4cd32dbb.js} +2 -2
  198. package/dist/cjs/{tooltip-helper-0475ad78.js → tooltip-helper-f828ebee.js} +10 -9
  199. package/dist/cjs/{validators-9b9662d9.js → validators-2adde99d.js} +1 -6
  200. package/dist/collection/components/molecules/modal/modal.js +22 -5
  201. package/dist/collection/components/molecules/skeleton/skeleton.css +133 -0
  202. package/dist/collection/components/molecules/skeleton/skeleton.js +167 -26
  203. package/dist/collection/components/molecules/skeleton/skeleton.style.js +35 -0
  204. package/dist/collection/components/organism/list/list.js +2 -2
  205. package/dist/components/bcm-modal.js +7 -4
  206. package/dist/components/generate.js +1 -1
  207. package/dist/components/list.js +2 -2
  208. package/dist/components/skeleton.js +75 -23
  209. package/dist/esm/{_commonjsHelpers-7002e5de.js → _commonjsHelpers-be0d4ec8.js} +1 -1
  210. package/dist/esm/bcm-accordion.entry.js +5 -5
  211. package/dist/esm/bcm-alert.entry.js +8 -8
  212. package/dist/esm/bcm-attendance.entry.js +5 -5
  213. package/dist/esm/bcm-autocomplete.entry.js +3 -3
  214. package/dist/esm/bcm-avatar_2.entry.js +13 -12
  215. package/dist/esm/bcm-box.entry.js +1 -1
  216. package/dist/esm/bcm-breadcrumb.entry.js +6 -6
  217. package/dist/esm/bcm-button-group.entry.js +8 -8
  218. package/dist/esm/bcm-button.entry.js +368 -0
  219. package/dist/esm/bcm-card.entry.js +10 -10
  220. package/dist/esm/bcm-checkbox-group.entry.js +19 -19
  221. package/dist/esm/bcm-checkbox-lite_9.entry.js +8 -8
  222. package/dist/esm/bcm-checkbox_2.entry.js +13 -13
  223. package/dist/esm/bcm-chip-group.entry.js +17 -16
  224. package/dist/esm/bcm-chip.entry.js +8 -8
  225. package/dist/esm/bcm-collapse-group.entry.js +2 -2
  226. package/dist/esm/bcm-collapse.entry.js +6 -6
  227. package/dist/esm/bcm-color-input.entry.js +12 -11
  228. package/dist/esm/bcm-colorful_2.entry.js +17580 -0
  229. package/dist/esm/bcm-colorpicker.entry.js +5 -5
  230. package/dist/esm/bcm-content.entry.js +1 -1
  231. package/dist/esm/bcm-d45dc47d.js +1 -1
  232. package/dist/esm/bcm-date-picker.entry.js +178 -0
  233. package/dist/esm/bcm-date.entry.js +178 -0
  234. package/dist/esm/bcm-datetime-picker.entry.js +1447 -0
  235. package/dist/esm/bcm-default.entry.js +5 -5
  236. package/dist/esm/bcm-drawer.entry.js +14 -13
  237. package/dist/esm/bcm-dropdown.entry.js +9 -9
  238. package/dist/esm/bcm-error-layout.entry.js +3 -3
  239. package/dist/esm/bcm-expansion-panel.entry.js +9 -9
  240. package/dist/esm/bcm-form-2.entry.js +208 -0
  241. package/dist/esm/bcm-form-group.entry.js +1 -1
  242. package/dist/esm/bcm-form.entry.js +485 -0
  243. package/dist/esm/bcm-icon.entry.js +35 -0
  244. package/dist/esm/bcm-input-custom.entry.js +6 -6
  245. package/dist/esm/bcm-input-dropdown.entry.js +15 -14
  246. package/dist/esm/bcm-item.entry.js +9 -9
  247. package/dist/esm/bcm-items.entry.js +6 -6
  248. package/dist/esm/bcm-label_2.entry.js +121 -0
  249. package/dist/esm/bcm-link.entry.js +4 -4
  250. package/dist/esm/bcm-linked_2.entry.js +284 -0
  251. package/dist/esm/bcm-list_3.entry.js +24 -22
  252. package/dist/esm/bcm-menu.entry.js +15 -14
  253. package/dist/esm/bcm-message.entry.js +3 -3
  254. package/dist/esm/bcm-modal-2-footer.entry.js +13 -12
  255. package/dist/esm/bcm-modal-2-header.entry.js +12 -11
  256. package/dist/esm/bcm-modal-2.entry.js +14 -13
  257. package/dist/esm/bcm-modal.entry.js +15 -12
  258. package/dist/esm/bcm-notification.entry.js +3 -3
  259. package/dist/esm/bcm-old-input.entry.js +393 -0
  260. package/dist/esm/bcm-old-tag_2.entry.js +4 -4
  261. package/dist/esm/bcm-overlay_2.entry.js +4 -4
  262. package/dist/esm/bcm-popconfirm-box.entry.js +10 -10
  263. package/dist/esm/bcm-popconfirm.entry.js +7 -7
  264. package/dist/esm/bcm-popover.entry.js +13 -12
  265. package/dist/esm/bcm-progress.entry.js +9 -9
  266. package/dist/esm/bcm-radio-group.entry.js +16 -15
  267. package/dist/esm/bcm-radio.entry.js +14 -13
  268. package/dist/esm/bcm-range.entry.js +8 -8
  269. package/dist/esm/bcm-rc-picker.entry.js +9400 -0
  270. package/dist/esm/bcm-result.entry.js +3 -3
  271. package/dist/esm/bcm-select-group.entry.js +3 -3
  272. package/dist/esm/bcm-select-option.entry.js +3 -3
  273. package/dist/esm/bcm-select.entry.js +5 -5
  274. package/dist/esm/bcm-step.entry.js +8 -8
  275. package/dist/esm/bcm-stepper.entry.js +16 -15
  276. package/dist/esm/bcm-switch.entry.js +10 -10
  277. package/dist/esm/bcm-tab-group.entry.js +13 -12
  278. package/dist/esm/bcm-tab-item-header.entry.js +14 -13
  279. package/dist/esm/bcm-tab-item.entry.js +12 -11
  280. package/dist/esm/bcm-tab-pane.entry.js +3 -3
  281. package/dist/esm/bcm-tab.entry.js +3 -3
  282. package/dist/esm/bcm-table.entry.js +13 -12
  283. package/dist/esm/bcm-tabs-content.entry.js +4 -4
  284. package/dist/esm/bcm-tabs.entry.js +4 -4
  285. package/dist/esm/bcm-tag.entry.js +9 -9
  286. package/dist/esm/bcm-text.entry.js +8 -8
  287. package/dist/esm/bcm-textarea.entry.js +11 -11
  288. package/dist/esm/bcm-time-picker.entry.js +146 -0
  289. package/dist/esm/bcm-timeline-item.entry.js +3 -3
  290. package/dist/esm/bcm-timeline.entry.js +3 -3
  291. package/dist/esm/bcm-toast.entry.js +9 -9
  292. package/dist/esm/bcm-treeview-group.entry.js +1 -1
  293. package/dist/esm/bromcom-ui.js +5 -5
  294. package/dist/esm/{caption-template-d47f338f.js → caption-template-a1a968fd.js} +2 -2
  295. package/dist/esm/{color-helper-845ba523.js → color-helper-c4fa9ebc.js} +2 -2
  296. package/dist/esm/{colors-ebea297f.js → colors-e1c31f79.js} +1 -1
  297. package/dist/esm/datetime-helper-df25808a.js +9 -0
  298. package/dist/esm/{element-dragger-89bb52fd.js → element-dragger-7ea06c76.js} +1 -1
  299. package/dist/esm/floating-ui-8a0c54d6.js +1 -1
  300. package/dist/esm/{generate-c80869fa.js → generate-40dfe3b0.js} +2 -2
  301. package/dist/esm/{global-55ab75e6.js → global-85f037ac.js} +2 -2
  302. package/dist/esm/{index-0615c2b8.js → index-4614b7f0.js} +1 -1
  303. package/dist/esm/{index-e4b6a4ce.js → index-a6d9d0af.js} +26 -1612
  304. package/dist/esm/{index-00c8a8f7.js → index-b84bc8c9.js} +1 -1
  305. package/dist/esm/index-c4568336.js +1594 -0
  306. package/dist/esm/{index-7e71bbc8.js → index-f38e3364.js} +1 -1
  307. package/dist/esm/{input-template-82ba633e.js → input-template-92b19880.js} +4 -4
  308. package/dist/esm/{is-load-decorator-8277e3b8.js → is-load-decorator-b8ca22f2.js} +1 -1
  309. package/dist/esm/{json-parse-decarator-fb399cf2.js → json-parse-decarator-f4803289.js} +2 -2
  310. package/dist/esm/{label-template-946d4062.js → label-template-54c28821.js} +4 -4
  311. package/dist/esm/loader.js +5 -5
  312. package/dist/esm/moment-15cd9198.js +4598 -0
  313. package/dist/esm/{number-helper-2eb7011a.js → number-helper-352d1d80.js} +1 -1
  314. package/dist/esm/old-bcm-popover-box.entry.js +11 -11
  315. package/dist/esm/old-bcm-popover.entry.js +7 -7
  316. package/dist/esm/{package-20c9971a.js → package-1618c1e9.js} +1 -1
  317. package/dist/esm/{popover-placement-be68c848.js → popover-placement-941bf3f3.js} +1 -1
  318. package/dist/esm/{slot-template-fcc7846e.js → slot-template-4b683d1f.js} +2 -2
  319. package/dist/esm/{stepper-states-f497b41f.js → stepper-states-08b2aa7c.js} +3 -3
  320. package/dist/esm/{string-helper-b0e05041.js → string-helper-5bd646f2.js} +2 -2
  321. package/dist/esm/{tooltip-helper-8eff46a3.js → tooltip-helper-d538cdf3.js} +9 -8
  322. package/dist/esm/{utils-57652744.js → utils-b3338faf.js} +1 -1
  323. package/dist/esm/{validators-81296897.js → validators-68717171.js} +2 -6
  324. package/dist/types/components/molecules/modal/modal.d.ts +1 -0
  325. package/dist/types/components/molecules/skeleton/skeleton.d.ts +14 -3
  326. package/dist/types/components/molecules/skeleton/skeleton.style.d.ts +147 -0
  327. package/dist/types/components.d.ts +17 -2
  328. package/package.json +4 -1
  329. package/dist/bromcom-ui/p-07fe2bbc.entry.js +0 -5
  330. package/dist/bromcom-ui/p-0cf6e779.entry.js +0 -5
  331. package/dist/bromcom-ui/p-0fdaadf9.entry.js +0 -7
  332. package/dist/bromcom-ui/p-228c74e9.entry.js +0 -5
  333. package/dist/bromcom-ui/p-27b52583.js +0 -5
  334. package/dist/bromcom-ui/p-30bd67ba.js +0 -5
  335. package/dist/bromcom-ui/p-310da4b9.entry.js +0 -5
  336. package/dist/bromcom-ui/p-33014b15.entry.js +0 -5
  337. package/dist/bromcom-ui/p-338ace45.entry.js +0 -5
  338. package/dist/bromcom-ui/p-3432a82d.js +0 -19
  339. package/dist/bromcom-ui/p-3d86a6c3.entry.js +0 -5
  340. package/dist/bromcom-ui/p-3e68c7d0.js +0 -5
  341. package/dist/bromcom-ui/p-438689a5.entry.js +0 -5
  342. package/dist/bromcom-ui/p-4acc1848.entry.js +0 -5
  343. package/dist/bromcom-ui/p-4dad64ed.entry.js +0 -5
  344. package/dist/bromcom-ui/p-543af368.entry.js +0 -5
  345. package/dist/bromcom-ui/p-5797aab3.entry.js +0 -5
  346. package/dist/bromcom-ui/p-5871767a.entry.js +0 -5
  347. package/dist/bromcom-ui/p-5e2a0bda.js +0 -5
  348. package/dist/bromcom-ui/p-5fb8a43a.entry.js +0 -5
  349. package/dist/bromcom-ui/p-60a8f967.entry.js +0 -5
  350. package/dist/bromcom-ui/p-64fad38b.js +0 -11
  351. package/dist/bromcom-ui/p-67244c91.entry.js +0 -5
  352. package/dist/bromcom-ui/p-7cb30513.js +0 -5
  353. package/dist/bromcom-ui/p-8279be1f.entry.js +0 -5
  354. package/dist/bromcom-ui/p-97527e91.entry.js +0 -5
  355. package/dist/bromcom-ui/p-9fe07d94.entry.js +0 -5
  356. package/dist/bromcom-ui/p-ae57f046.entry.js +0 -5
  357. package/dist/bromcom-ui/p-b3d495fd.js +0 -5
  358. package/dist/bromcom-ui/p-b81e8f91.js +0 -5
  359. package/dist/bromcom-ui/p-b8646a61.entry.js +0 -5
  360. package/dist/bromcom-ui/p-bfd24601.entry.js +0 -5
  361. package/dist/bromcom-ui/p-cc52cff4.entry.js +0 -5
  362. package/dist/bromcom-ui/p-ccf0872d.js +0 -5
  363. package/dist/bromcom-ui/p-d3f182c1.entry.js +0 -5
  364. package/dist/bromcom-ui/p-ea701411.js +0 -5
  365. package/dist/bromcom-ui/p-f2c1ffb4.entry.js +0 -5
  366. package/dist/cjs/bcm-button_15.cjs.entry.js +0 -35172
  367. package/dist/cjs/bcm-skeleton.cjs.entry.js +0 -45
  368. package/dist/esm/bcm-button_15.entry.js +0 -35154
  369. package/dist/esm/bcm-skeleton.entry.js +0 -41
@@ -95,31 +95,31 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
95
95
  return to;
96
96
  };
97
97
 
98
- var n$1="function"===typeof Symbol&&Symbol.for,p$1=n$1?Symbol.for("react.element"):60103,q$1=n$1?Symbol.for("react.portal"):60106,r$1=n$1?Symbol.for("react.fragment"):60107,t$1=n$1?Symbol.for("react.strict_mode"):60108,u$1=n$1?Symbol.for("react.profiler"):60114,v$2=n$1?Symbol.for("react.provider"):60109,w$1=n$1?Symbol.for("react.context"):60110,x$1=n$1?Symbol.for("react.forward_ref"):60112,y$1=n$1?Symbol.for("react.suspense"):60113,z$1=n$1?Symbol.for("react.memo"):60115,A$1=n$1?Symbol.for("react.lazy"):
98
+ var n="function"===typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u$1=n?Symbol.for("react.profiler"):60114,v$1=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.forward_ref"):60112,y=n?Symbol.for("react.suspense"):60113,z=n?Symbol.for("react.memo"):60115,A=n?Symbol.for("react.lazy"):
99
99
  60116,B="function"===typeof Symbol&&Symbol.iterator;function C$1(a){for(var b="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=1;c<arguments.length;c++)b+="&args[]="+encodeURIComponent(arguments[c]);return "Minified React error #"+a+"; visit "+b+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}
100
100
  var D={isMounted:function(){return !1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},E$1={};function F$1(a,b,c){this.props=a;this.context=b;this.refs=E$1;this.updater=c||D;}F$1.prototype.isReactComponent={};F$1.prototype.setState=function(a,b){if("object"!==typeof a&&"function"!==typeof a&&null!=a)throw Error(C$1(85));this.updater.enqueueSetState(this,a,b,"setState");};F$1.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate");};
101
101
  function G$1(){}G$1.prototype=F$1.prototype;function H$1(a,b,c){this.props=a;this.context=b;this.refs=E$1;this.updater=c||D;}var I$1=H$1.prototype=new G$1;I$1.constructor=H$1;objectAssign(I$1,F$1.prototype);I$1.isPureReactComponent=!0;var J$1={current:null},K$1=Object.prototype.hasOwnProperty,L$1={key:!0,ref:!0,__self:!0,__source:!0};
102
- function M$1(a,b,c){var e,d={},g=null,k=null;if(null!=b)for(e in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)K$1.call(b,e)&&!L$1.hasOwnProperty(e)&&(d[e]=b[e]);var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var h=Array(f),m=0;m<f;m++)h[m]=arguments[m+2];d.children=h;}if(a&&a.defaultProps)for(e in f=a.defaultProps,f)void 0===d[e]&&(d[e]=f[e]);return {$$typeof:p$1,type:a,key:g,ref:k,props:d,_owner:J$1.current}}
103
- function N$1(a,b){return {$$typeof:p$1,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O$1(a){return "object"===typeof a&&null!==a&&a.$$typeof===p$1}function escape(a){var b={"=":"=0",":":"=2"};return "$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var P$1=/\/+/g,Q$1=[];function R$1(a,b,c,e){if(Q$1.length){var d=Q$1.pop();d.result=a;d.keyPrefix=b;d.func=c;d.context=e;d.count=0;return d}return {result:a,keyPrefix:b,func:c,context:e,count:0}}
102
+ function M$1(a,b,c){var e,d={},g=null,k=null;if(null!=b)for(e in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),b)K$1.call(b,e)&&!L$1.hasOwnProperty(e)&&(d[e]=b[e]);var f=arguments.length-2;if(1===f)d.children=c;else if(1<f){for(var h=Array(f),m=0;m<f;m++)h[m]=arguments[m+2];d.children=h;}if(a&&a.defaultProps)for(e in f=a.defaultProps,f)void 0===d[e]&&(d[e]=f[e]);return {$$typeof:p,type:a,key:g,ref:k,props:d,_owner:J$1.current}}
103
+ function N$1(a,b){return {$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O$1(a){return "object"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={"=":"=0",":":"=2"};return "$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var P$1=/\/+/g,Q$1=[];function R$1(a,b,c,e){if(Q$1.length){var d=Q$1.pop();d.result=a;d.keyPrefix=b;d.func=c;d.context=e;d.count=0;return d}return {result:a,keyPrefix:b,func:c,context:e,count:0}}
104
104
  function S$1(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q$1.length&&Q$1.push(a);}
105
- function T$1(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p$1:case q$1:g=!0;}}if(g)return c(e,a,""===b?"."+U$1(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){d=a[k];var f=b+U$1(d,k);g+=T$1(d,f,c,e);}else if(null===a||"object"!==typeof a?f=null:(f=B&&a[B]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),k=
105
+ function T$1(a,b,c,e){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0;}}if(g)return c(e,a,""===b?"."+U$1(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){d=a[k];var f=b+U$1(d,k);g+=T$1(d,f,c,e);}else if(null===a||"object"!==typeof a?f=null:(f=B&&a[B]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),k=
106
106
  0;!(d=a.next()).done;)d=d.value,f=b+U$1(d,k++),g+=T$1(d,f,c,e);else if("object"===d)throw c=""+a,Error(C$1(31,"[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return g}function V$1(a,b,c){return null==a?0:T$1(a,"",b,c)}function U$1(a,b){return "object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function W$1(a,b){a.func.call(a.context,b,a.count++);}
107
107
  function aa(a,b,c){var e=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?X$1(a,e,c,function(a){return a}):null!=a&&(O$1(a)&&(a=N$1(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(P$1,"$&/")+"/")+c)),e.push(a));}function X$1(a,b,c,e,d){var g="";null!=c&&(g=(""+c).replace(P$1,"$&/")+"/");b=R$1(b,g,e,d);V$1(a,aa,b);S$1(b);}var Y$1={current:null};function Z$1(){var a=Y$1.current;if(null===a)throw Error(C$1(321));return a}
108
108
  var ba$1={ReactCurrentDispatcher:Y$1,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:J$1,IsSomeRendererActing:{current:!1},assign:objectAssign};var Children={map:function(a,b,c){if(null==a)return a;var e=[];X$1(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=R$1(null,null,b,c);V$1(a,W$1,b);S$1(b);},count:function(a){return V$1(a,function(){return null},null)},toArray:function(a){var b=[];X$1(a,b,null,function(a){return a});return b},only:function(a){if(!O$1(a))throw Error(C$1(143));return a}};
109
- var Component=F$1;var Fragment$1=r$1;var Profiler$1=u$1;var PureComponent=H$1;var StrictMode$1=t$1;var Suspense$1=y$1;var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED$1=ba$1;
110
- var cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(C$1(267,a));var e=objectAssign({},a.props),d=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=J$1.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(h in b)K$1.call(b,h)&&!L$1.hasOwnProperty(h)&&(e[h]=void 0===b[h]&&void 0!==f?f[h]:b[h]);}var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){f=Array(h);for(var m=0;m<h;m++)f[m]=arguments[m+2];e.children=f;}return {$$typeof:p$1,type:a.type,
111
- key:d,ref:g,props:e,_owner:k}};var createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:w$1,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v$2,_context:a};return a.Consumer=a};var createElement=M$1;var createFactory=function(a){var b=M$1.bind(null,a);b.type=a;return b};var createRef=function(){return {current:null}};var forwardRef=function(a){return {$$typeof:x$1,render:a}};var isValidElement=O$1;
112
- var lazy=function(a){return {$$typeof:A$1,_ctor:a,_status:-1,_result:null}};var memo=function(a,b){return {$$typeof:z$1,type:a,compare:void 0===b?null:b}};var useCallback=function(a,b){return Z$1().useCallback(a,b)};var useContext=function(a,b){return Z$1().useContext(a,b)};var useDebugValue=function(){};var useEffect=function(a,b){return Z$1().useEffect(a,b)};var useImperativeHandle=function(a,b,c){return Z$1().useImperativeHandle(a,b,c)};
113
- var useLayoutEffect$1=function(a,b){return Z$1().useLayoutEffect(a,b)};var useMemo$1=function(a,b){return Z$1().useMemo(a,b)};var useReducer=function(a,b,c){return Z$1().useReducer(a,b,c)};var useRef=function(a){return Z$1().useRef(a)};var useState=function(a){return Z$1().useState(a)};var version$1="16.14.0";
109
+ var Component=F$1;var Fragment=r;var Profiler=u$1;var PureComponent=H$1;var StrictMode=t;var Suspense=y;var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED$1=ba$1;
110
+ var cloneElement=function(a,b,c){if(null===a||void 0===a)throw Error(C$1(267,a));var e=objectAssign({},a.props),d=a.key,g=a.ref,k=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,k=J$1.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(h in b)K$1.call(b,h)&&!L$1.hasOwnProperty(h)&&(e[h]=void 0===b[h]&&void 0!==f?f[h]:b[h]);}var h=arguments.length-2;if(1===h)e.children=c;else if(1<h){f=Array(h);for(var m=0;m<h;m++)f[m]=arguments[m+2];e.children=f;}return {$$typeof:p,type:a.type,
111
+ key:d,ref:g,props:e,_owner:k}};var createContext=function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,_currentValue:a,_currentValue2:a,_threadCount:0,Provider:null,Consumer:null};a.Provider={$$typeof:v$1,_context:a};return a.Consumer=a};var createElement=M$1;var createFactory=function(a){var b=M$1.bind(null,a);b.type=a;return b};var createRef=function(){return {current:null}};var forwardRef=function(a){return {$$typeof:x,render:a}};var isValidElement=O$1;
112
+ var lazy=function(a){return {$$typeof:A,_ctor:a,_status:-1,_result:null}};var memo=function(a,b){return {$$typeof:z,type:a,compare:void 0===b?null:b}};var useCallback=function(a,b){return Z$1().useCallback(a,b)};var useContext=function(a,b){return Z$1().useContext(a,b)};var useDebugValue=function(){};var useEffect=function(a,b){return Z$1().useEffect(a,b)};var useImperativeHandle=function(a,b,c){return Z$1().useImperativeHandle(a,b,c)};
113
+ var useLayoutEffect=function(a,b){return Z$1().useLayoutEffect(a,b)};var useMemo=function(a,b){return Z$1().useMemo(a,b)};var useReducer=function(a,b,c){return Z$1().useReducer(a,b,c)};var useRef=function(a){return Z$1().useRef(a)};var useState=function(a){return Z$1().useState(a)};var version$1="16.14.0";
114
114
 
115
115
  var react_production_min = {
116
116
  Children: Children,
117
117
  Component: Component,
118
- Fragment: Fragment$1,
119
- Profiler: Profiler$1,
118
+ Fragment: Fragment,
119
+ Profiler: Profiler,
120
120
  PureComponent: PureComponent,
121
- StrictMode: StrictMode$1,
122
- Suspense: Suspense$1,
121
+ StrictMode: StrictMode,
122
+ Suspense: Suspense,
123
123
  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED$1,
124
124
  cloneElement: cloneElement,
125
125
  createContext: createContext,
@@ -135,8 +135,8 @@ var react_production_min = {
135
135
  useDebugValue: useDebugValue,
136
136
  useEffect: useEffect,
137
137
  useImperativeHandle: useImperativeHandle,
138
- useLayoutEffect: useLayoutEffect$1,
139
- useMemo: useMemo$1,
138
+ useLayoutEffect: useLayoutEffect,
139
+ useMemo: useMemo,
140
140
  useReducer: useReducer,
141
141
  useRef: useRef,
142
142
  useState: useState,
@@ -190,13 +190,13 @@ function ua(a,b,c){if(va[a])throw Error(u(100,a));va[a]=b;wa[a]=b.eventTypes[c].
190
190
  function Ca(a){if(a=ma(a)){if("function"!==typeof za)throw Error(u(280));var b=a.stateNode;b&&(b=la(b),za(a.stateNode,a.type,b));}}function Da(a){Aa?Ba?Ba.push(a):Ba=[a]:Aa=a;}function Ea(){if(Aa){var a=Aa,b=Ba;Ba=Aa=null;Ca(a);if(b)for(a=0;a<b.length;a++)Ca(b[a]);}}function Fa(a,b){return a(b)}function Ga(a,b,c,d,e){return a(b,c,d,e)}function Ha(){}var Ia=Fa,Ja=!1,Ka=!1;function La(){if(null!==Aa||null!==Ba)Ha(),Ea();}
191
191
  function Ma(a,b,c){if(Ka)return a(b,c);Ka=!0;try{return Ia(a,b,c)}finally{Ka=!1,La();}}var Na=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Oa=Object.prototype.hasOwnProperty,Pa={},Qa={};
192
192
  function Ra(a){if(Oa.call(Qa,a))return !0;if(Oa.call(Pa,a))return !1;if(Na.test(a))return Qa[a]=!0;Pa[a]=!0;return !1}function Sa(a,b,c,d){if(null!==c&&0===c.type)return !1;switch(typeof b){case "function":case "symbol":return !0;case "boolean":if(d)return !1;if(null!==c)return !c.acceptsBooleans;a=a.toLowerCase().slice(0,5);return "data-"!==a&&"aria-"!==a;default:return !1}}
193
- function Ta(a,b,c,d){if(null===b||"undefined"===typeof b||Sa(a,b,c,d))return !0;if(d)return !1;if(null!==c)switch(c.type){case 3:return !b;case 4:return !1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return !1}function v$1(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;}var C={};
194
- "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){C[a]=new v$1(a,0,!1,a,null,!1);});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];C[b]=new v$1(b,1,!1,a[1],null,!1);});["contentEditable","draggable","spellCheck","value"].forEach(function(a){C[a]=new v$1(a,2,!1,a.toLowerCase(),null,!1);});
195
- ["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){C[a]=new v$1(a,2,!1,a,null,!1);});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){C[a]=new v$1(a,3,!1,a.toLowerCase(),null,!1);});
196
- ["checked","multiple","muted","selected"].forEach(function(a){C[a]=new v$1(a,3,!0,a,null,!1);});["capture","download"].forEach(function(a){C[a]=new v$1(a,4,!1,a,null,!1);});["cols","rows","size","span"].forEach(function(a){C[a]=new v$1(a,6,!1,a,null,!1);});["rowSpan","start"].forEach(function(a){C[a]=new v$1(a,5,!1,a.toLowerCase(),null,!1);});var Ua=/[\-:]([a-z])/g;function Va(a){return a[1].toUpperCase()}
193
+ function Ta(a,b,c,d){if(null===b||"undefined"===typeof b||Sa(a,b,c,d))return !0;if(d)return !1;if(null!==c)switch(c.type){case 3:return !b;case 4:return !1===b;case 5:return isNaN(b);case 6:return isNaN(b)||1>b}return !1}function v(a,b,c,d,e,f){this.acceptsBooleans=2===b||3===b||4===b;this.attributeName=d;this.attributeNamespace=e;this.mustUseProperty=c;this.propertyName=a;this.type=b;this.sanitizeURL=f;}var C={};
194
+ "children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(a){C[a]=new v(a,0,!1,a,null,!1);});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(a){var b=a[0];C[b]=new v(b,1,!1,a[1],null,!1);});["contentEditable","draggable","spellCheck","value"].forEach(function(a){C[a]=new v(a,2,!1,a.toLowerCase(),null,!1);});
195
+ ["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(a){C[a]=new v(a,2,!1,a,null,!1);});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(a){C[a]=new v(a,3,!1,a.toLowerCase(),null,!1);});
196
+ ["checked","multiple","muted","selected"].forEach(function(a){C[a]=new v(a,3,!0,a,null,!1);});["capture","download"].forEach(function(a){C[a]=new v(a,4,!1,a,null,!1);});["cols","rows","size","span"].forEach(function(a){C[a]=new v(a,6,!1,a,null,!1);});["rowSpan","start"].forEach(function(a){C[a]=new v(a,5,!1,a.toLowerCase(),null,!1);});var Ua=/[\-:]([a-z])/g;function Va(a){return a[1].toUpperCase()}
197
197
  "accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(a){var b=a.replace(Ua,
198
- Va);C[b]=new v$1(b,1,!1,a,null,!1);});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v$1(b,1,!1,a,"http://www.w3.org/1999/xlink",!1);});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v$1(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1);});["tabIndex","crossOrigin"].forEach(function(a){C[a]=new v$1(a,1,!1,a.toLowerCase(),null,!1);});
199
- C.xlinkHref=new v$1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){C[a]=new v$1(a,1,!1,a.toLowerCase(),null,!0);});var Wa=react.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Wa.hasOwnProperty("ReactCurrentDispatcher")||(Wa.ReactCurrentDispatcher={current:null});Wa.hasOwnProperty("ReactCurrentBatchConfig")||(Wa.ReactCurrentBatchConfig={suspense:null});
198
+ Va);C[b]=new v(b,1,!1,a,null,!1);});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,"http://www.w3.org/1999/xlink",!1);});["xml:base","xml:lang","xml:space"].forEach(function(a){var b=a.replace(Ua,Va);C[b]=new v(b,1,!1,a,"http://www.w3.org/XML/1998/namespace",!1);});["tabIndex","crossOrigin"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!1);});
199
+ C.xlinkHref=new v("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0);["src","href","action","formAction"].forEach(function(a){C[a]=new v(a,1,!1,a.toLowerCase(),null,!0);});var Wa=react.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Wa.hasOwnProperty("ReactCurrentDispatcher")||(Wa.ReactCurrentDispatcher={current:null});Wa.hasOwnProperty("ReactCurrentBatchConfig")||(Wa.ReactCurrentBatchConfig={suspense:null});
200
200
  function Xa(a,b,c,d){var e=C.hasOwnProperty(b)?C[b]:null;var f=null!==e?0===e.type:d?!1:!(2<b.length)||"o"!==b[0]&&"O"!==b[0]||"n"!==b[1]&&"N"!==b[1]?!1:!0;f||(Ta(b,c,e,d)&&(c=null),d||null===e?Ra(b)&&(null===c?a.removeAttribute(b):a.setAttribute(b,""+c)):e.mustUseProperty?a[e.propertyName]=null===c?3===e.type?!1:"":c:(b=e.attributeName,d=e.attributeNamespace,null===c?a.removeAttribute(b):(e=e.type,c=3===e||4===e&&!0===c?"":""+c,d?a.setAttributeNS(d,b,c):a.setAttribute(b,c))));}
201
201
  var Ya=/^(.*)[\\\/]/,E="function"===typeof Symbol&&Symbol.for,Za=E?Symbol.for("react.element"):60103,$a=E?Symbol.for("react.portal"):60106,ab=E?Symbol.for("react.fragment"):60107,bb=E?Symbol.for("react.strict_mode"):60108,cb=E?Symbol.for("react.profiler"):60114,db=E?Symbol.for("react.provider"):60109,eb=E?Symbol.for("react.context"):60110,fb=E?Symbol.for("react.concurrent_mode"):60111,gb=E?Symbol.for("react.forward_ref"):60112,hb=E?Symbol.for("react.suspense"):60113,ib=E?Symbol.for("react.suspense_list"):
202
202
  60120,jb=E?Symbol.for("react.memo"):60115,kb=E?Symbol.for("react.lazy"):60116,lb=E?Symbol.for("react.block"):60121,mb="function"===typeof Symbol&&Symbol.iterator;function nb(a){if(null===a||"object"!==typeof a)return null;a=mb&&a[mb]||a["@@iterator"];return "function"===typeof a?a:null}function ob(a){if(-1===a._status){a._status=0;var b=a._ctor;b=b();a._result=b;b.then(function(b){0===a._status&&(b=b.default,a._status=1,a._result=b);},function(b){0===a._status&&(a._status=2,a._result=b);});}}
@@ -458,7 +458,7 @@ wc=function(a){if(13===a.tag){var b=hg(Gg(),150,100);Ig(a,b);ek(a,b);}};xc=funct
458
458
  za=function(a,b,c){switch(b){case "input":Cb(a,c);b=c.name;if("radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Qd(d);if(!e)throw Error(u(90));yb(d);Cb(d,e);}}}break;case "textarea":Kb(a,c);break;case "select":b=c.value,null!=b&&Hb(a,!!c.multiple,b,!1);}};Fa=Mj;
459
459
  Ga=function(a,b,c,d,e){var f=W;W|=4;try{return cg(98,a.bind(null,b,c,d,e))}finally{W=f,W===V&&gg();}};Ha=function(){(W&(1|fj|gj))===V&&(Lj(),Dj());};Ia=function(a,b){var c=W;W|=2;try{return a(b)}finally{W=c,W===V&&gg();}};function kk(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!gk(b))throw Error(u(200));return jk(a,b,null,c)}var lk={Events:[Nc,Pd,Qd,xa,ta,Xd,function(a){jc(a,Wd);},Da,Ea,id,mc,Dj,{current:!1}]};
460
460
  (function(a){var b=a.findFiberByHostInstance;return Yj(objectAssign({},a,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Wa.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=hc(a);return null===a?null:a.stateNode},findFiberByHostInstance:function(a){return b?b(a):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))})({findFiberByHostInstance:tc,bundleType:0,version:"16.14.0",
461
- rendererPackageName:"react-dom"});var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lk;var createPortal=kk;var findDOMNode$1=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternalFiber;if(void 0===b){if("function"===typeof a.render)throw Error(u(188));throw Error(u(268,Object.keys(a)));}a=hc(b);a=null===a?null:a.stateNode;return a};
461
+ rendererPackageName:"react-dom"});var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=lk;var createPortal=kk;var findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternalFiber;if(void 0===b){if("function"===typeof a.render)throw Error(u(188));throw Error(u(268,Object.keys(a)));}a=hc(b);a=null===a?null:a.stateNode;return a};
462
462
  var flushSync=function(a,b){if((W&(fj|gj))!==V)throw Error(u(187));var c=W;W|=1;try{return cg(99,a.bind(null,b))}finally{W=c,gg();}};var hydrate=function(a,b,c){if(!gk(b))throw Error(u(200));return ik(null,a,b,!0,c)};var render=function(a,b,c){if(!gk(b))throw Error(u(200));return ik(null,a,b,!1,c)};
463
463
  var unmountComponentAtNode=function(a){if(!gk(a))throw Error(u(40));return a._reactRootContainer?(Nj(function(){ik(null,null,a,!1,function(){a._reactRootContainer=null;a[Od]=null;});}),!0):!1};var unstable_batchedUpdates=Mj;var unstable_createPortal=function(a,b){return kk(a,b,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)};
464
464
  var unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!gk(c))throw Error(u(200));if(null==a||void 0===a._reactInternalFiber)throw Error(u(38));return ik(a,b,c,!1,d)};var version="16.14.0";
@@ -466,7 +466,7 @@ var unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!gk(c))throw Error(
466
466
  var reactDom_production_min = {
467
467
  __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
468
468
  createPortal: createPortal,
469
- findDOMNode: findDOMNode$1,
469
+ findDOMNode: findDOMNode,
470
470
  flushSync: flushSync,
471
471
  hydrate: hydrate,
472
472
  render: render,
@@ -485,7 +485,7 @@ var reactDom_production_min = {
485
485
  * This source code is licensed under the MIT license found in the
486
486
  * LICENSE file in the root directory of this source tree.
487
487
  */
488
- var b$1=0;var __interactionsRef=null;var __subscriberRef=null;var unstable_clear=function(a){return a()};var unstable_getCurrent=function(){return null};var unstable_getThreadID=function(){return ++b$1};var unstable_subscribe=function(){};var unstable_trace=function(a,d,c){return c()};var unstable_unsubscribe=function(){};var unstable_wrap=function(a){return a};
488
+ var b=0;var __interactionsRef=null;var __subscriberRef=null;var unstable_clear=function(a){return a()};var unstable_getCurrent=function(){return null};var unstable_getThreadID=function(){return ++b};var unstable_subscribe=function(){};var unstable_trace=function(a,d,c){return c()};var unstable_unsubscribe=function(){};var unstable_wrap=function(a){return a};
489
489
 
490
490
  var schedulerTracing_production_min = {
491
491
  __interactionsRef: __interactionsRef,
@@ -540,1607 +540,6 @@ function checkDCE() {
540
540
  }
541
541
  });
542
542
 
543
- function useEvent(callback) {
544
- var fnRef = react.useRef();
545
- fnRef.current = callback;
546
- var memoFn = react.useCallback(function () {
547
- var _fnRef$current;
548
- for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
549
- args[_key] = arguments[_key];
550
- }
551
- return (_fnRef$current = fnRef.current) === null || _fnRef$current === void 0 ? void 0 : _fnRef$current.call.apply(_fnRef$current, [fnRef].concat(args));
552
- }, []);
553
- return memoFn;
554
- }
555
-
556
- function canUseDom() {
557
- return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
558
- }
559
-
560
- /**
561
- * Wrap `React.useLayoutEffect` which will not throw warning message in test env
562
- */
563
- var useInternalLayoutEffect = canUseDom() ? react.useLayoutEffect : react.useEffect;
564
- var useLayoutEffect = function useLayoutEffect(callback, deps) {
565
- var firstMountRef = react.useRef(true);
566
- useInternalLayoutEffect(function () {
567
- return callback(firstMountRef.current);
568
- }, deps);
569
-
570
- // We tell react that first mount has passed
571
- useInternalLayoutEffect(function () {
572
- firstMountRef.current = false;
573
- return function () {
574
- firstMountRef.current = true;
575
- };
576
- }, []);
577
- };
578
- var useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
579
- useLayoutEffect(function (firstMount) {
580
- if (!firstMount) {
581
- return callback();
582
- }
583
- }, deps);
584
- };
585
-
586
- /* eslint-disable no-console */
587
- var warned = {};
588
-
589
- /**
590
- * Pre warning enable you to parse content before console.error.
591
- * Modify to null will prevent warning.
592
- */
593
- var preMessage = function preMessage(fn) {
594
- };
595
- function warning(valid, message) {
596
- }
597
- function note(valid, message) {
598
- }
599
- function resetWarned() {
600
- warned = {};
601
- }
602
- function call(method, valid, message) {
603
- if (!valid && !warned[message]) {
604
- method(false, message);
605
- warned[message] = true;
606
- }
607
- }
608
- function warningOnce(valid, message) {
609
- call(warning, valid, message);
610
- }
611
- function noteOnce(valid, message) {
612
- call(note, valid, message);
613
- }
614
- warningOnce.preMessage = preMessage;
615
- warningOnce.resetWarned = resetWarned;
616
- warningOnce.noteOnce = noteOnce;
617
- /* eslint-enable */
618
-
619
- function _typeof$1(obj) {
620
- "@babel/helpers - typeof";
621
-
622
- return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
623
- return typeof obj;
624
- } : function (obj) {
625
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
626
- }, _typeof$1(obj);
627
- }
628
-
629
- function useMemo(getValue, condition, shouldUpdate) {
630
- var cacheRef = react.useRef({});
631
- if (!('value' in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
632
- cacheRef.current.value = getValue();
633
- cacheRef.current.condition = condition;
634
- }
635
- return cacheRef.current.value;
636
- }
637
-
638
- var raf = function raf(callback) {
639
- return +setTimeout(callback, 16);
640
- };
641
- var caf = function caf(num) {
642
- return clearTimeout(num);
643
- };
644
- if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
645
- raf = function raf(callback) {
646
- return window.requestAnimationFrame(callback);
647
- };
648
- caf = function caf(handle) {
649
- return window.cancelAnimationFrame(handle);
650
- };
651
- }
652
- var rafUUID = 0;
653
- var rafIds = new Map();
654
- function cleanup(id) {
655
- rafIds.delete(id);
656
- }
657
- var wrapperRaf = function wrapperRaf(callback) {
658
- var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
659
- rafUUID += 1;
660
- var id = rafUUID;
661
- function callRef(leftTimes) {
662
- if (leftTimes === 0) {
663
- // Clean up
664
- cleanup(id);
665
-
666
- // Trigger
667
- callback();
668
- } else {
669
- // Next raf
670
- var realId = raf(function () {
671
- callRef(leftTimes - 1);
672
- });
673
-
674
- // Bind real raf id
675
- rafIds.set(id, realId);
676
- }
677
- }
678
- callRef(times);
679
- return id;
680
- };
681
- wrapperRaf.cancel = function (id) {
682
- var realId = rafIds.get(id);
683
- cleanup(realId);
684
- return caf(realId);
685
- };
686
-
687
- /** @license React v16.13.1
688
- * react-is.production.min.js
689
- *
690
- * Copyright (c) Facebook, Inc. and its affiliates.
691
- *
692
- * This source code is licensed under the MIT license found in the
693
- * LICENSE file in the root directory of this source tree.
694
- */
695
- var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
696
- Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
697
- function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element$1=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
698
- var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
699
- var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
700
- var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
701
-
702
- var reactIs_production_min = {
703
- AsyncMode: AsyncMode,
704
- ConcurrentMode: ConcurrentMode,
705
- ContextConsumer: ContextConsumer,
706
- ContextProvider: ContextProvider,
707
- Element: Element$1,
708
- ForwardRef: ForwardRef,
709
- Fragment: Fragment,
710
- Lazy: Lazy,
711
- Memo: Memo,
712
- Portal: Portal,
713
- Profiler: Profiler,
714
- StrictMode: StrictMode,
715
- Suspense: Suspense,
716
- isAsyncMode: isAsyncMode,
717
- isConcurrentMode: isConcurrentMode,
718
- isContextConsumer: isContextConsumer,
719
- isContextProvider: isContextProvider,
720
- isElement: isElement,
721
- isForwardRef: isForwardRef,
722
- isFragment: isFragment,
723
- isLazy: isLazy,
724
- isMemo: isMemo,
725
- isPortal: isPortal,
726
- isProfiler: isProfiler,
727
- isStrictMode: isStrictMode,
728
- isSuspense: isSuspense,
729
- isValidElementType: isValidElementType,
730
- typeOf: typeOf
731
- };
732
-
733
- _commonjsHelpers.createCommonjsModule(function (module, exports) {
734
- });
735
-
736
- var reactIs = _commonjsHelpers.createCommonjsModule(function (module) {
737
-
738
- {
739
- module.exports = reactIs_production_min;
740
- }
741
- });
742
-
743
- function fillRef(ref, node) {
744
- if (typeof ref === 'function') {
745
- ref(node);
746
- } else if (_typeof$1(ref) === 'object' && ref && 'current' in ref) {
747
- ref.current = node;
748
- }
749
- }
750
-
751
- /**
752
- * Merge refs into one ref function to support ref passing.
753
- */
754
- function composeRef() {
755
- for (var _len = arguments.length, refs = new Array(_len), _key = 0; _key < _len; _key++) {
756
- refs[_key] = arguments[_key];
757
- }
758
- var refList = refs.filter(function (ref) {
759
- return ref;
760
- });
761
- if (refList.length <= 1) {
762
- return refList[0];
763
- }
764
- return function (node) {
765
- refs.forEach(function (ref) {
766
- fillRef(ref, node);
767
- });
768
- };
769
- }
770
- function useComposeRef() {
771
- for (var _len2 = arguments.length, refs = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
772
- refs[_key2] = arguments[_key2];
773
- }
774
- return useMemo(function () {
775
- return composeRef.apply(void 0, refs);
776
- }, refs, function (prev, next) {
777
- return prev.length === next.length && prev.every(function (ref, i) {
778
- return ref === next[i];
779
- });
780
- });
781
- }
782
- function supportRef(nodeOrComponent) {
783
- var _type$prototype, _nodeOrComponent$prot;
784
- var type = reactIs.isMemo(nodeOrComponent) ? nodeOrComponent.type.type : nodeOrComponent.type;
785
-
786
- // Function component node
787
- if (typeof type === 'function' && !((_type$prototype = type.prototype) !== null && _type$prototype !== void 0 && _type$prototype.render)) {
788
- return false;
789
- }
790
-
791
- // Class component
792
- if (typeof nodeOrComponent === 'function' && !((_nodeOrComponent$prot = nodeOrComponent.prototype) !== null && _nodeOrComponent$prot !== void 0 && _nodeOrComponent$prot.render)) {
793
- return false;
794
- }
795
- return true;
796
- }
797
- /* eslint-enable */
798
-
799
- function _extends() {
800
- _extends = Object.assign ? Object.assign.bind() : function (target) {
801
- for (var i = 1; i < arguments.length; i++) {
802
- var source = arguments[i];
803
- for (var key in source) {
804
- if (Object.prototype.hasOwnProperty.call(source, key)) {
805
- target[key] = source[key];
806
- }
807
- }
808
- }
809
- return target;
810
- };
811
- return _extends.apply(this, arguments);
812
- }
813
-
814
- function toArray(children) {
815
- var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
816
- var ret = [];
817
- react.Children.forEach(children, function (child) {
818
- if ((child === undefined || child === null) && !option.keepEmpty) {
819
- return;
820
- }
821
- if (Array.isArray(child)) {
822
- ret = ret.concat(toArray(child));
823
- } else if (reactIs.isFragment(child) && child.props) {
824
- ret = ret.concat(toArray(child.props.children, option));
825
- } else {
826
- ret.push(child);
827
- }
828
- });
829
- return ret;
830
- }
831
-
832
- function _typeof(obj) {
833
- "@babel/helpers - typeof";
834
-
835
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
836
- return typeof obj;
837
- } : function (obj) {
838
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
839
- }, _typeof(obj);
840
- }
841
-
842
- function _toPrimitive(input, hint) {
843
- if (_typeof(input) !== "object" || input === null) return input;
844
- var prim = input[Symbol.toPrimitive];
845
- if (prim !== undefined) {
846
- var res = prim.call(input, hint || "default");
847
- if (_typeof(res) !== "object") return res;
848
- throw new TypeError("@@toPrimitive must return a primitive value.");
849
- }
850
- return (hint === "string" ? String : Number)(input);
851
- }
852
-
853
- function _toPropertyKey(arg) {
854
- var key = _toPrimitive(arg, "string");
855
- return _typeof(key) === "symbol" ? key : String(key);
856
- }
857
-
858
- function _defineProperty(obj, key, value) {
859
- key = _toPropertyKey(key);
860
- if (key in obj) {
861
- Object.defineProperty(obj, key, {
862
- value: value,
863
- enumerable: true,
864
- configurable: true,
865
- writable: true
866
- });
867
- } else {
868
- obj[key] = value;
869
- }
870
- return obj;
871
- }
872
-
873
- function ownKeys(object, enumerableOnly) {
874
- var keys = Object.keys(object);
875
- if (Object.getOwnPropertySymbols) {
876
- var symbols = Object.getOwnPropertySymbols(object);
877
- enumerableOnly && (symbols = symbols.filter(function (sym) {
878
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
879
- })), keys.push.apply(keys, symbols);
880
- }
881
- return keys;
882
- }
883
- function _objectSpread2(target) {
884
- for (var i = 1; i < arguments.length; i++) {
885
- var source = null != arguments[i] ? arguments[i] : {};
886
- i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
887
- _defineProperty(target, key, source[key]);
888
- }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
889
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
890
- });
891
- }
892
- return target;
893
- }
894
-
895
- function isDOM(node) {
896
- // https://developer.mozilla.org/en-US/docs/Web/API/Element
897
- // Since XULElement is also subclass of Element, we only need HTMLElement and SVGElement
898
- return node instanceof HTMLElement || node instanceof SVGElement;
899
- }
900
-
901
- /**
902
- * Return if a node is a DOM node. Else will return by `findDOMNode`
903
- */
904
- function findDOMNode(node) {
905
- if (isDOM(node)) {
906
- return node;
907
- }
908
- if (node instanceof react.Component) {
909
- return reactDom.findDOMNode(node);
910
- }
911
- return null;
912
- }
913
-
914
- /**
915
- * A collection of shims that provide minimal functionality of the ES6 collections.
916
- *
917
- * These implementations are not meant to be used outside of the ResizeObserver
918
- * modules as they cover only a limited range of use cases.
919
- */
920
- /* eslint-disable require-jsdoc, valid-jsdoc */
921
- var MapShim = (function () {
922
- if (typeof Map !== 'undefined') {
923
- return Map;
924
- }
925
- /**
926
- * Returns index in provided array that matches the specified key.
927
- *
928
- * @param {Array<Array>} arr
929
- * @param {*} key
930
- * @returns {number}
931
- */
932
- function getIndex(arr, key) {
933
- var result = -1;
934
- arr.some(function (entry, index) {
935
- if (entry[0] === key) {
936
- result = index;
937
- return true;
938
- }
939
- return false;
940
- });
941
- return result;
942
- }
943
- return /** @class */ (function () {
944
- function class_1() {
945
- this.__entries__ = [];
946
- }
947
- Object.defineProperty(class_1.prototype, "size", {
948
- /**
949
- * @returns {boolean}
950
- */
951
- get: function () {
952
- return this.__entries__.length;
953
- },
954
- enumerable: true,
955
- configurable: true
956
- });
957
- /**
958
- * @param {*} key
959
- * @returns {*}
960
- */
961
- class_1.prototype.get = function (key) {
962
- var index = getIndex(this.__entries__, key);
963
- var entry = this.__entries__[index];
964
- return entry && entry[1];
965
- };
966
- /**
967
- * @param {*} key
968
- * @param {*} value
969
- * @returns {void}
970
- */
971
- class_1.prototype.set = function (key, value) {
972
- var index = getIndex(this.__entries__, key);
973
- if (~index) {
974
- this.__entries__[index][1] = value;
975
- }
976
- else {
977
- this.__entries__.push([key, value]);
978
- }
979
- };
980
- /**
981
- * @param {*} key
982
- * @returns {void}
983
- */
984
- class_1.prototype.delete = function (key) {
985
- var entries = this.__entries__;
986
- var index = getIndex(entries, key);
987
- if (~index) {
988
- entries.splice(index, 1);
989
- }
990
- };
991
- /**
992
- * @param {*} key
993
- * @returns {void}
994
- */
995
- class_1.prototype.has = function (key) {
996
- return !!~getIndex(this.__entries__, key);
997
- };
998
- /**
999
- * @returns {void}
1000
- */
1001
- class_1.prototype.clear = function () {
1002
- this.__entries__.splice(0);
1003
- };
1004
- /**
1005
- * @param {Function} callback
1006
- * @param {*} [ctx=null]
1007
- * @returns {void}
1008
- */
1009
- class_1.prototype.forEach = function (callback, ctx) {
1010
- if (ctx === void 0) { ctx = null; }
1011
- for (var _i = 0, _a = this.__entries__; _i < _a.length; _i++) {
1012
- var entry = _a[_i];
1013
- callback.call(ctx, entry[1], entry[0]);
1014
- }
1015
- };
1016
- return class_1;
1017
- }());
1018
- })();
1019
-
1020
- /**
1021
- * Detects whether window and document objects are available in current environment.
1022
- */
1023
- var isBrowser = typeof window !== 'undefined' && typeof document !== 'undefined' && window.document === document;
1024
-
1025
- // Returns global object of a current environment.
1026
- var global$1 = (function () {
1027
- if (typeof global !== 'undefined' && global.Math === Math) {
1028
- return global;
1029
- }
1030
- if (typeof self !== 'undefined' && self.Math === Math) {
1031
- return self;
1032
- }
1033
- if (typeof window !== 'undefined' && window.Math === Math) {
1034
- return window;
1035
- }
1036
- // eslint-disable-next-line no-new-func
1037
- return Function('return this')();
1038
- })();
1039
-
1040
- /**
1041
- * A shim for the requestAnimationFrame which falls back to the setTimeout if
1042
- * first one is not supported.
1043
- *
1044
- * @returns {number} Requests' identifier.
1045
- */
1046
- var requestAnimationFrame$1 = (function () {
1047
- if (typeof requestAnimationFrame === 'function') {
1048
- // It's required to use a bounded function because IE sometimes throws
1049
- // an "Invalid calling object" error if rAF is invoked without the global
1050
- // object on the left hand side.
1051
- return requestAnimationFrame.bind(global$1);
1052
- }
1053
- return function (callback) { return setTimeout(function () { return callback(Date.now()); }, 1000 / 60); };
1054
- })();
1055
-
1056
- // Defines minimum timeout before adding a trailing call.
1057
- var trailingTimeout = 2;
1058
- /**
1059
- * Creates a wrapper function which ensures that provided callback will be
1060
- * invoked only once during the specified delay period.
1061
- *
1062
- * @param {Function} callback - Function to be invoked after the delay period.
1063
- * @param {number} delay - Delay after which to invoke callback.
1064
- * @returns {Function}
1065
- */
1066
- function throttle (callback, delay) {
1067
- var leadingCall = false, trailingCall = false, lastCallTime = 0;
1068
- /**
1069
- * Invokes the original callback function and schedules new invocation if
1070
- * the "proxy" was called during current request.
1071
- *
1072
- * @returns {void}
1073
- */
1074
- function resolvePending() {
1075
- if (leadingCall) {
1076
- leadingCall = false;
1077
- callback();
1078
- }
1079
- if (trailingCall) {
1080
- proxy();
1081
- }
1082
- }
1083
- /**
1084
- * Callback invoked after the specified delay. It will further postpone
1085
- * invocation of the original function delegating it to the
1086
- * requestAnimationFrame.
1087
- *
1088
- * @returns {void}
1089
- */
1090
- function timeoutCallback() {
1091
- requestAnimationFrame$1(resolvePending);
1092
- }
1093
- /**
1094
- * Schedules invocation of the original function.
1095
- *
1096
- * @returns {void}
1097
- */
1098
- function proxy() {
1099
- var timeStamp = Date.now();
1100
- if (leadingCall) {
1101
- // Reject immediately following calls.
1102
- if (timeStamp - lastCallTime < trailingTimeout) {
1103
- return;
1104
- }
1105
- // Schedule new call to be in invoked when the pending one is resolved.
1106
- // This is important for "transitions" which never actually start
1107
- // immediately so there is a chance that we might miss one if change
1108
- // happens amids the pending invocation.
1109
- trailingCall = true;
1110
- }
1111
- else {
1112
- leadingCall = true;
1113
- trailingCall = false;
1114
- setTimeout(timeoutCallback, delay);
1115
- }
1116
- lastCallTime = timeStamp;
1117
- }
1118
- return proxy;
1119
- }
1120
-
1121
- // Minimum delay before invoking the update of observers.
1122
- var REFRESH_DELAY = 20;
1123
- // A list of substrings of CSS properties used to find transition events that
1124
- // might affect dimensions of observed elements.
1125
- var transitionKeys = ['top', 'right', 'bottom', 'left', 'width', 'height', 'size', 'weight'];
1126
- // Check if MutationObserver is available.
1127
- var mutationObserverSupported = typeof MutationObserver !== 'undefined';
1128
- /**
1129
- * Singleton controller class which handles updates of ResizeObserver instances.
1130
- */
1131
- var ResizeObserverController = /** @class */ (function () {
1132
- /**
1133
- * Creates a new instance of ResizeObserverController.
1134
- *
1135
- * @private
1136
- */
1137
- function ResizeObserverController() {
1138
- /**
1139
- * Indicates whether DOM listeners have been added.
1140
- *
1141
- * @private {boolean}
1142
- */
1143
- this.connected_ = false;
1144
- /**
1145
- * Tells that controller has subscribed for Mutation Events.
1146
- *
1147
- * @private {boolean}
1148
- */
1149
- this.mutationEventsAdded_ = false;
1150
- /**
1151
- * Keeps reference to the instance of MutationObserver.
1152
- *
1153
- * @private {MutationObserver}
1154
- */
1155
- this.mutationsObserver_ = null;
1156
- /**
1157
- * A list of connected observers.
1158
- *
1159
- * @private {Array<ResizeObserverSPI>}
1160
- */
1161
- this.observers_ = [];
1162
- this.onTransitionEnd_ = this.onTransitionEnd_.bind(this);
1163
- this.refresh = throttle(this.refresh.bind(this), REFRESH_DELAY);
1164
- }
1165
- /**
1166
- * Adds observer to observers list.
1167
- *
1168
- * @param {ResizeObserverSPI} observer - Observer to be added.
1169
- * @returns {void}
1170
- */
1171
- ResizeObserverController.prototype.addObserver = function (observer) {
1172
- if (!~this.observers_.indexOf(observer)) {
1173
- this.observers_.push(observer);
1174
- }
1175
- // Add listeners if they haven't been added yet.
1176
- if (!this.connected_) {
1177
- this.connect_();
1178
- }
1179
- };
1180
- /**
1181
- * Removes observer from observers list.
1182
- *
1183
- * @param {ResizeObserverSPI} observer - Observer to be removed.
1184
- * @returns {void}
1185
- */
1186
- ResizeObserverController.prototype.removeObserver = function (observer) {
1187
- var observers = this.observers_;
1188
- var index = observers.indexOf(observer);
1189
- // Remove observer if it's present in registry.
1190
- if (~index) {
1191
- observers.splice(index, 1);
1192
- }
1193
- // Remove listeners if controller has no connected observers.
1194
- if (!observers.length && this.connected_) {
1195
- this.disconnect_();
1196
- }
1197
- };
1198
- /**
1199
- * Invokes the update of observers. It will continue running updates insofar
1200
- * it detects changes.
1201
- *
1202
- * @returns {void}
1203
- */
1204
- ResizeObserverController.prototype.refresh = function () {
1205
- var changesDetected = this.updateObservers_();
1206
- // Continue running updates if changes have been detected as there might
1207
- // be future ones caused by CSS transitions.
1208
- if (changesDetected) {
1209
- this.refresh();
1210
- }
1211
- };
1212
- /**
1213
- * Updates every observer from observers list and notifies them of queued
1214
- * entries.
1215
- *
1216
- * @private
1217
- * @returns {boolean} Returns "true" if any observer has detected changes in
1218
- * dimensions of it's elements.
1219
- */
1220
- ResizeObserverController.prototype.updateObservers_ = function () {
1221
- // Collect observers that have active observations.
1222
- var activeObservers = this.observers_.filter(function (observer) {
1223
- return observer.gatherActive(), observer.hasActive();
1224
- });
1225
- // Deliver notifications in a separate cycle in order to avoid any
1226
- // collisions between observers, e.g. when multiple instances of
1227
- // ResizeObserver are tracking the same element and the callback of one
1228
- // of them changes content dimensions of the observed target. Sometimes
1229
- // this may result in notifications being blocked for the rest of observers.
1230
- activeObservers.forEach(function (observer) { return observer.broadcastActive(); });
1231
- return activeObservers.length > 0;
1232
- };
1233
- /**
1234
- * Initializes DOM listeners.
1235
- *
1236
- * @private
1237
- * @returns {void}
1238
- */
1239
- ResizeObserverController.prototype.connect_ = function () {
1240
- // Do nothing if running in a non-browser environment or if listeners
1241
- // have been already added.
1242
- if (!isBrowser || this.connected_) {
1243
- return;
1244
- }
1245
- // Subscription to the "Transitionend" event is used as a workaround for
1246
- // delayed transitions. This way it's possible to capture at least the
1247
- // final state of an element.
1248
- document.addEventListener('transitionend', this.onTransitionEnd_);
1249
- window.addEventListener('resize', this.refresh);
1250
- if (mutationObserverSupported) {
1251
- this.mutationsObserver_ = new MutationObserver(this.refresh);
1252
- this.mutationsObserver_.observe(document, {
1253
- attributes: true,
1254
- childList: true,
1255
- characterData: true,
1256
- subtree: true
1257
- });
1258
- }
1259
- else {
1260
- document.addEventListener('DOMSubtreeModified', this.refresh);
1261
- this.mutationEventsAdded_ = true;
1262
- }
1263
- this.connected_ = true;
1264
- };
1265
- /**
1266
- * Removes DOM listeners.
1267
- *
1268
- * @private
1269
- * @returns {void}
1270
- */
1271
- ResizeObserverController.prototype.disconnect_ = function () {
1272
- // Do nothing if running in a non-browser environment or if listeners
1273
- // have been already removed.
1274
- if (!isBrowser || !this.connected_) {
1275
- return;
1276
- }
1277
- document.removeEventListener('transitionend', this.onTransitionEnd_);
1278
- window.removeEventListener('resize', this.refresh);
1279
- if (this.mutationsObserver_) {
1280
- this.mutationsObserver_.disconnect();
1281
- }
1282
- if (this.mutationEventsAdded_) {
1283
- document.removeEventListener('DOMSubtreeModified', this.refresh);
1284
- }
1285
- this.mutationsObserver_ = null;
1286
- this.mutationEventsAdded_ = false;
1287
- this.connected_ = false;
1288
- };
1289
- /**
1290
- * "Transitionend" event handler.
1291
- *
1292
- * @private
1293
- * @param {TransitionEvent} event
1294
- * @returns {void}
1295
- */
1296
- ResizeObserverController.prototype.onTransitionEnd_ = function (_a) {
1297
- var _b = _a.propertyName, propertyName = _b === void 0 ? '' : _b;
1298
- // Detect whether transition may affect dimensions of an element.
1299
- var isReflowProperty = transitionKeys.some(function (key) {
1300
- return !!~propertyName.indexOf(key);
1301
- });
1302
- if (isReflowProperty) {
1303
- this.refresh();
1304
- }
1305
- };
1306
- /**
1307
- * Returns instance of the ResizeObserverController.
1308
- *
1309
- * @returns {ResizeObserverController}
1310
- */
1311
- ResizeObserverController.getInstance = function () {
1312
- if (!this.instance_) {
1313
- this.instance_ = new ResizeObserverController();
1314
- }
1315
- return this.instance_;
1316
- };
1317
- /**
1318
- * Holds reference to the controller's instance.
1319
- *
1320
- * @private {ResizeObserverController}
1321
- */
1322
- ResizeObserverController.instance_ = null;
1323
- return ResizeObserverController;
1324
- }());
1325
-
1326
- /**
1327
- * Defines non-writable/enumerable properties of the provided target object.
1328
- *
1329
- * @param {Object} target - Object for which to define properties.
1330
- * @param {Object} props - Properties to be defined.
1331
- * @returns {Object} Target object.
1332
- */
1333
- var defineConfigurable = (function (target, props) {
1334
- for (var _i = 0, _a = Object.keys(props); _i < _a.length; _i++) {
1335
- var key = _a[_i];
1336
- Object.defineProperty(target, key, {
1337
- value: props[key],
1338
- enumerable: false,
1339
- writable: false,
1340
- configurable: true
1341
- });
1342
- }
1343
- return target;
1344
- });
1345
-
1346
- /**
1347
- * Returns the global object associated with provided element.
1348
- *
1349
- * @param {Object} target
1350
- * @returns {Object}
1351
- */
1352
- var getWindowOf = (function (target) {
1353
- // Assume that the element is an instance of Node, which means that it
1354
- // has the "ownerDocument" property from which we can retrieve a
1355
- // corresponding global object.
1356
- var ownerGlobal = target && target.ownerDocument && target.ownerDocument.defaultView;
1357
- // Return the local global object if it's not possible extract one from
1358
- // provided element.
1359
- return ownerGlobal || global$1;
1360
- });
1361
-
1362
- // Placeholder of an empty content rectangle.
1363
- var emptyRect = createRectInit(0, 0, 0, 0);
1364
- /**
1365
- * Converts provided string to a number.
1366
- *
1367
- * @param {number|string} value
1368
- * @returns {number}
1369
- */
1370
- function toFloat(value) {
1371
- return parseFloat(value) || 0;
1372
- }
1373
- /**
1374
- * Extracts borders size from provided styles.
1375
- *
1376
- * @param {CSSStyleDeclaration} styles
1377
- * @param {...string} positions - Borders positions (top, right, ...)
1378
- * @returns {number}
1379
- */
1380
- function getBordersSize(styles) {
1381
- var positions = [];
1382
- for (var _i = 1; _i < arguments.length; _i++) {
1383
- positions[_i - 1] = arguments[_i];
1384
- }
1385
- return positions.reduce(function (size, position) {
1386
- var value = styles['border-' + position + '-width'];
1387
- return size + toFloat(value);
1388
- }, 0);
1389
- }
1390
- /**
1391
- * Extracts paddings sizes from provided styles.
1392
- *
1393
- * @param {CSSStyleDeclaration} styles
1394
- * @returns {Object} Paddings box.
1395
- */
1396
- function getPaddings(styles) {
1397
- var positions = ['top', 'right', 'bottom', 'left'];
1398
- var paddings = {};
1399
- for (var _i = 0, positions_1 = positions; _i < positions_1.length; _i++) {
1400
- var position = positions_1[_i];
1401
- var value = styles['padding-' + position];
1402
- paddings[position] = toFloat(value);
1403
- }
1404
- return paddings;
1405
- }
1406
- /**
1407
- * Calculates content rectangle of provided SVG element.
1408
- *
1409
- * @param {SVGGraphicsElement} target - Element content rectangle of which needs
1410
- * to be calculated.
1411
- * @returns {DOMRectInit}
1412
- */
1413
- function getSVGContentRect(target) {
1414
- var bbox = target.getBBox();
1415
- return createRectInit(0, 0, bbox.width, bbox.height);
1416
- }
1417
- /**
1418
- * Calculates content rectangle of provided HTMLElement.
1419
- *
1420
- * @param {HTMLElement} target - Element for which to calculate the content rectangle.
1421
- * @returns {DOMRectInit}
1422
- */
1423
- function getHTMLElementContentRect(target) {
1424
- // Client width & height properties can't be
1425
- // used exclusively as they provide rounded values.
1426
- var clientWidth = target.clientWidth, clientHeight = target.clientHeight;
1427
- // By this condition we can catch all non-replaced inline, hidden and
1428
- // detached elements. Though elements with width & height properties less
1429
- // than 0.5 will be discarded as well.
1430
- //
1431
- // Without it we would need to implement separate methods for each of
1432
- // those cases and it's not possible to perform a precise and performance
1433
- // effective test for hidden elements. E.g. even jQuery's ':visible' filter
1434
- // gives wrong results for elements with width & height less than 0.5.
1435
- if (!clientWidth && !clientHeight) {
1436
- return emptyRect;
1437
- }
1438
- var styles = getWindowOf(target).getComputedStyle(target);
1439
- var paddings = getPaddings(styles);
1440
- var horizPad = paddings.left + paddings.right;
1441
- var vertPad = paddings.top + paddings.bottom;
1442
- // Computed styles of width & height are being used because they are the
1443
- // only dimensions available to JS that contain non-rounded values. It could
1444
- // be possible to utilize the getBoundingClientRect if only it's data wasn't
1445
- // affected by CSS transformations let alone paddings, borders and scroll bars.
1446
- var width = toFloat(styles.width), height = toFloat(styles.height);
1447
- // Width & height include paddings and borders when the 'border-box' box
1448
- // model is applied (except for IE).
1449
- if (styles.boxSizing === 'border-box') {
1450
- // Following conditions are required to handle Internet Explorer which
1451
- // doesn't include paddings and borders to computed CSS dimensions.
1452
- //
1453
- // We can say that if CSS dimensions + paddings are equal to the "client"
1454
- // properties then it's either IE, and thus we don't need to subtract
1455
- // anything, or an element merely doesn't have paddings/borders styles.
1456
- if (Math.round(width + horizPad) !== clientWidth) {
1457
- width -= getBordersSize(styles, 'left', 'right') + horizPad;
1458
- }
1459
- if (Math.round(height + vertPad) !== clientHeight) {
1460
- height -= getBordersSize(styles, 'top', 'bottom') + vertPad;
1461
- }
1462
- }
1463
- // Following steps can't be applied to the document's root element as its
1464
- // client[Width/Height] properties represent viewport area of the window.
1465
- // Besides, it's as well not necessary as the <html> itself neither has
1466
- // rendered scroll bars nor it can be clipped.
1467
- if (!isDocumentElement(target)) {
1468
- // In some browsers (only in Firefox, actually) CSS width & height
1469
- // include scroll bars size which can be removed at this step as scroll
1470
- // bars are the only difference between rounded dimensions + paddings
1471
- // and "client" properties, though that is not always true in Chrome.
1472
- var vertScrollbar = Math.round(width + horizPad) - clientWidth;
1473
- var horizScrollbar = Math.round(height + vertPad) - clientHeight;
1474
- // Chrome has a rather weird rounding of "client" properties.
1475
- // E.g. for an element with content width of 314.2px it sometimes gives
1476
- // the client width of 315px and for the width of 314.7px it may give
1477
- // 314px. And it doesn't happen all the time. So just ignore this delta
1478
- // as a non-relevant.
1479
- if (Math.abs(vertScrollbar) !== 1) {
1480
- width -= vertScrollbar;
1481
- }
1482
- if (Math.abs(horizScrollbar) !== 1) {
1483
- height -= horizScrollbar;
1484
- }
1485
- }
1486
- return createRectInit(paddings.left, paddings.top, width, height);
1487
- }
1488
- /**
1489
- * Checks whether provided element is an instance of the SVGGraphicsElement.
1490
- *
1491
- * @param {Element} target - Element to be checked.
1492
- * @returns {boolean}
1493
- */
1494
- var isSVGGraphicsElement = (function () {
1495
- // Some browsers, namely IE and Edge, don't have the SVGGraphicsElement
1496
- // interface.
1497
- if (typeof SVGGraphicsElement !== 'undefined') {
1498
- return function (target) { return target instanceof getWindowOf(target).SVGGraphicsElement; };
1499
- }
1500
- // If it's so, then check that element is at least an instance of the
1501
- // SVGElement and that it has the "getBBox" method.
1502
- // eslint-disable-next-line no-extra-parens
1503
- return function (target) { return (target instanceof getWindowOf(target).SVGElement &&
1504
- typeof target.getBBox === 'function'); };
1505
- })();
1506
- /**
1507
- * Checks whether provided element is a document element (<html>).
1508
- *
1509
- * @param {Element} target - Element to be checked.
1510
- * @returns {boolean}
1511
- */
1512
- function isDocumentElement(target) {
1513
- return target === getWindowOf(target).document.documentElement;
1514
- }
1515
- /**
1516
- * Calculates an appropriate content rectangle for provided html or svg element.
1517
- *
1518
- * @param {Element} target - Element content rectangle of which needs to be calculated.
1519
- * @returns {DOMRectInit}
1520
- */
1521
- function getContentRect(target) {
1522
- if (!isBrowser) {
1523
- return emptyRect;
1524
- }
1525
- if (isSVGGraphicsElement(target)) {
1526
- return getSVGContentRect(target);
1527
- }
1528
- return getHTMLElementContentRect(target);
1529
- }
1530
- /**
1531
- * Creates rectangle with an interface of the DOMRectReadOnly.
1532
- * Spec: https://drafts.fxtf.org/geometry/#domrectreadonly
1533
- *
1534
- * @param {DOMRectInit} rectInit - Object with rectangle's x/y coordinates and dimensions.
1535
- * @returns {DOMRectReadOnly}
1536
- */
1537
- function createReadOnlyRect(_a) {
1538
- var x = _a.x, y = _a.y, width = _a.width, height = _a.height;
1539
- // If DOMRectReadOnly is available use it as a prototype for the rectangle.
1540
- var Constr = typeof DOMRectReadOnly !== 'undefined' ? DOMRectReadOnly : Object;
1541
- var rect = Object.create(Constr.prototype);
1542
- // Rectangle's properties are not writable and non-enumerable.
1543
- defineConfigurable(rect, {
1544
- x: x, y: y, width: width, height: height,
1545
- top: y,
1546
- right: x + width,
1547
- bottom: height + y,
1548
- left: x
1549
- });
1550
- return rect;
1551
- }
1552
- /**
1553
- * Creates DOMRectInit object based on the provided dimensions and the x/y coordinates.
1554
- * Spec: https://drafts.fxtf.org/geometry/#dictdef-domrectinit
1555
- *
1556
- * @param {number} x - X coordinate.
1557
- * @param {number} y - Y coordinate.
1558
- * @param {number} width - Rectangle's width.
1559
- * @param {number} height - Rectangle's height.
1560
- * @returns {DOMRectInit}
1561
- */
1562
- function createRectInit(x, y, width, height) {
1563
- return { x: x, y: y, width: width, height: height };
1564
- }
1565
-
1566
- /**
1567
- * Class that is responsible for computations of the content rectangle of
1568
- * provided DOM element and for keeping track of it's changes.
1569
- */
1570
- var ResizeObservation = /** @class */ (function () {
1571
- /**
1572
- * Creates an instance of ResizeObservation.
1573
- *
1574
- * @param {Element} target - Element to be observed.
1575
- */
1576
- function ResizeObservation(target) {
1577
- /**
1578
- * Broadcasted width of content rectangle.
1579
- *
1580
- * @type {number}
1581
- */
1582
- this.broadcastWidth = 0;
1583
- /**
1584
- * Broadcasted height of content rectangle.
1585
- *
1586
- * @type {number}
1587
- */
1588
- this.broadcastHeight = 0;
1589
- /**
1590
- * Reference to the last observed content rectangle.
1591
- *
1592
- * @private {DOMRectInit}
1593
- */
1594
- this.contentRect_ = createRectInit(0, 0, 0, 0);
1595
- this.target = target;
1596
- }
1597
- /**
1598
- * Updates content rectangle and tells whether it's width or height properties
1599
- * have changed since the last broadcast.
1600
- *
1601
- * @returns {boolean}
1602
- */
1603
- ResizeObservation.prototype.isActive = function () {
1604
- var rect = getContentRect(this.target);
1605
- this.contentRect_ = rect;
1606
- return (rect.width !== this.broadcastWidth ||
1607
- rect.height !== this.broadcastHeight);
1608
- };
1609
- /**
1610
- * Updates 'broadcastWidth' and 'broadcastHeight' properties with a data
1611
- * from the corresponding properties of the last observed content rectangle.
1612
- *
1613
- * @returns {DOMRectInit} Last observed content rectangle.
1614
- */
1615
- ResizeObservation.prototype.broadcastRect = function () {
1616
- var rect = this.contentRect_;
1617
- this.broadcastWidth = rect.width;
1618
- this.broadcastHeight = rect.height;
1619
- return rect;
1620
- };
1621
- return ResizeObservation;
1622
- }());
1623
-
1624
- var ResizeObserverEntry = /** @class */ (function () {
1625
- /**
1626
- * Creates an instance of ResizeObserverEntry.
1627
- *
1628
- * @param {Element} target - Element that is being observed.
1629
- * @param {DOMRectInit} rectInit - Data of the element's content rectangle.
1630
- */
1631
- function ResizeObserverEntry(target, rectInit) {
1632
- var contentRect = createReadOnlyRect(rectInit);
1633
- // According to the specification following properties are not writable
1634
- // and are also not enumerable in the native implementation.
1635
- //
1636
- // Property accessors are not being used as they'd require to define a
1637
- // private WeakMap storage which may cause memory leaks in browsers that
1638
- // don't support this type of collections.
1639
- defineConfigurable(this, { target: target, contentRect: contentRect });
1640
- }
1641
- return ResizeObserverEntry;
1642
- }());
1643
-
1644
- var ResizeObserverSPI = /** @class */ (function () {
1645
- /**
1646
- * Creates a new instance of ResizeObserver.
1647
- *
1648
- * @param {ResizeObserverCallback} callback - Callback function that is invoked
1649
- * when one of the observed elements changes it's content dimensions.
1650
- * @param {ResizeObserverController} controller - Controller instance which
1651
- * is responsible for the updates of observer.
1652
- * @param {ResizeObserver} callbackCtx - Reference to the public
1653
- * ResizeObserver instance which will be passed to callback function.
1654
- */
1655
- function ResizeObserverSPI(callback, controller, callbackCtx) {
1656
- /**
1657
- * Collection of resize observations that have detected changes in dimensions
1658
- * of elements.
1659
- *
1660
- * @private {Array<ResizeObservation>}
1661
- */
1662
- this.activeObservations_ = [];
1663
- /**
1664
- * Registry of the ResizeObservation instances.
1665
- *
1666
- * @private {Map<Element, ResizeObservation>}
1667
- */
1668
- this.observations_ = new MapShim();
1669
- if (typeof callback !== 'function') {
1670
- throw new TypeError('The callback provided as parameter 1 is not a function.');
1671
- }
1672
- this.callback_ = callback;
1673
- this.controller_ = controller;
1674
- this.callbackCtx_ = callbackCtx;
1675
- }
1676
- /**
1677
- * Starts observing provided element.
1678
- *
1679
- * @param {Element} target - Element to be observed.
1680
- * @returns {void}
1681
- */
1682
- ResizeObserverSPI.prototype.observe = function (target) {
1683
- if (!arguments.length) {
1684
- throw new TypeError('1 argument required, but only 0 present.');
1685
- }
1686
- // Do nothing if current environment doesn't have the Element interface.
1687
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
1688
- return;
1689
- }
1690
- if (!(target instanceof getWindowOf(target).Element)) {
1691
- throw new TypeError('parameter 1 is not of type "Element".');
1692
- }
1693
- var observations = this.observations_;
1694
- // Do nothing if element is already being observed.
1695
- if (observations.has(target)) {
1696
- return;
1697
- }
1698
- observations.set(target, new ResizeObservation(target));
1699
- this.controller_.addObserver(this);
1700
- // Force the update of observations.
1701
- this.controller_.refresh();
1702
- };
1703
- /**
1704
- * Stops observing provided element.
1705
- *
1706
- * @param {Element} target - Element to stop observing.
1707
- * @returns {void}
1708
- */
1709
- ResizeObserverSPI.prototype.unobserve = function (target) {
1710
- if (!arguments.length) {
1711
- throw new TypeError('1 argument required, but only 0 present.');
1712
- }
1713
- // Do nothing if current environment doesn't have the Element interface.
1714
- if (typeof Element === 'undefined' || !(Element instanceof Object)) {
1715
- return;
1716
- }
1717
- if (!(target instanceof getWindowOf(target).Element)) {
1718
- throw new TypeError('parameter 1 is not of type "Element".');
1719
- }
1720
- var observations = this.observations_;
1721
- // Do nothing if element is not being observed.
1722
- if (!observations.has(target)) {
1723
- return;
1724
- }
1725
- observations.delete(target);
1726
- if (!observations.size) {
1727
- this.controller_.removeObserver(this);
1728
- }
1729
- };
1730
- /**
1731
- * Stops observing all elements.
1732
- *
1733
- * @returns {void}
1734
- */
1735
- ResizeObserverSPI.prototype.disconnect = function () {
1736
- this.clearActive();
1737
- this.observations_.clear();
1738
- this.controller_.removeObserver(this);
1739
- };
1740
- /**
1741
- * Collects observation instances the associated element of which has changed
1742
- * it's content rectangle.
1743
- *
1744
- * @returns {void}
1745
- */
1746
- ResizeObserverSPI.prototype.gatherActive = function () {
1747
- var _this = this;
1748
- this.clearActive();
1749
- this.observations_.forEach(function (observation) {
1750
- if (observation.isActive()) {
1751
- _this.activeObservations_.push(observation);
1752
- }
1753
- });
1754
- };
1755
- /**
1756
- * Invokes initial callback function with a list of ResizeObserverEntry
1757
- * instances collected from active resize observations.
1758
- *
1759
- * @returns {void}
1760
- */
1761
- ResizeObserverSPI.prototype.broadcastActive = function () {
1762
- // Do nothing if observer doesn't have active observations.
1763
- if (!this.hasActive()) {
1764
- return;
1765
- }
1766
- var ctx = this.callbackCtx_;
1767
- // Create ResizeObserverEntry instance for every active observation.
1768
- var entries = this.activeObservations_.map(function (observation) {
1769
- return new ResizeObserverEntry(observation.target, observation.broadcastRect());
1770
- });
1771
- this.callback_.call(ctx, entries, ctx);
1772
- this.clearActive();
1773
- };
1774
- /**
1775
- * Clears the collection of active observations.
1776
- *
1777
- * @returns {void}
1778
- */
1779
- ResizeObserverSPI.prototype.clearActive = function () {
1780
- this.activeObservations_.splice(0);
1781
- };
1782
- /**
1783
- * Tells whether observer has active observations.
1784
- *
1785
- * @returns {boolean}
1786
- */
1787
- ResizeObserverSPI.prototype.hasActive = function () {
1788
- return this.activeObservations_.length > 0;
1789
- };
1790
- return ResizeObserverSPI;
1791
- }());
1792
-
1793
- // Registry of internal observers. If WeakMap is not available use current shim
1794
- // for the Map collection as it has all required methods and because WeakMap
1795
- // can't be fully polyfilled anyway.
1796
- var observers = typeof WeakMap !== 'undefined' ? new WeakMap() : new MapShim();
1797
- /**
1798
- * ResizeObserver API. Encapsulates the ResizeObserver SPI implementation
1799
- * exposing only those methods and properties that are defined in the spec.
1800
- */
1801
- var ResizeObserver$1 = /** @class */ (function () {
1802
- /**
1803
- * Creates a new instance of ResizeObserver.
1804
- *
1805
- * @param {ResizeObserverCallback} callback - Callback that is invoked when
1806
- * dimensions of the observed elements change.
1807
- */
1808
- function ResizeObserver(callback) {
1809
- if (!(this instanceof ResizeObserver)) {
1810
- throw new TypeError('Cannot call a class as a function.');
1811
- }
1812
- if (!arguments.length) {
1813
- throw new TypeError('1 argument required, but only 0 present.');
1814
- }
1815
- var controller = ResizeObserverController.getInstance();
1816
- var observer = new ResizeObserverSPI(callback, controller, this);
1817
- observers.set(this, observer);
1818
- }
1819
- return ResizeObserver;
1820
- }());
1821
- // Expose public methods of ResizeObserver.
1822
- [
1823
- 'observe',
1824
- 'unobserve',
1825
- 'disconnect'
1826
- ].forEach(function (method) {
1827
- ResizeObserver$1.prototype[method] = function () {
1828
- var _a;
1829
- return (_a = observers.get(this))[method].apply(_a, arguments);
1830
- };
1831
- });
1832
-
1833
- var index = (function () {
1834
- // Export existing implementation if available.
1835
- if (typeof global$1.ResizeObserver !== 'undefined') {
1836
- return global$1.ResizeObserver;
1837
- }
1838
- return ResizeObserver$1;
1839
- })();
1840
-
1841
- // =============================== Const ===============================
1842
- var elementListeners = new Map();
1843
- function onResize(entities) {
1844
- entities.forEach(function (entity) {
1845
- var _elementListeners$get;
1846
- var target = entity.target;
1847
- (_elementListeners$get = elementListeners.get(target)) === null || _elementListeners$get === void 0 ? void 0 : _elementListeners$get.forEach(function (listener) {
1848
- return listener(target);
1849
- });
1850
- });
1851
- }
1852
- // Note: ResizeObserver polyfill not support option to measure border-box resize
1853
- var resizeObserver = new index(onResize);
1854
- // ============================== Observe ==============================
1855
- function observe(element, callback) {
1856
- if (!elementListeners.has(element)) {
1857
- elementListeners.set(element, new Set());
1858
- resizeObserver.observe(element);
1859
- }
1860
- elementListeners.get(element).add(callback);
1861
- }
1862
- function unobserve(element, callback) {
1863
- if (elementListeners.has(element)) {
1864
- elementListeners.get(element).delete(callback);
1865
- if (!elementListeners.get(element).size) {
1866
- resizeObserver.unobserve(element);
1867
- elementListeners.delete(element);
1868
- }
1869
- }
1870
- }
1871
-
1872
- function _classCallCheck(instance, Constructor) {
1873
- if (!(instance instanceof Constructor)) {
1874
- throw new TypeError("Cannot call a class as a function");
1875
- }
1876
- }
1877
-
1878
- function _defineProperties(target, props) {
1879
- for (var i = 0; i < props.length; i++) {
1880
- var descriptor = props[i];
1881
- descriptor.enumerable = descriptor.enumerable || false;
1882
- descriptor.configurable = true;
1883
- if ("value" in descriptor) descriptor.writable = true;
1884
- Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
1885
- }
1886
- }
1887
- function _createClass(Constructor, protoProps, staticProps) {
1888
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1889
- if (staticProps) _defineProperties(Constructor, staticProps);
1890
- Object.defineProperty(Constructor, "prototype", {
1891
- writable: false
1892
- });
1893
- return Constructor;
1894
- }
1895
-
1896
- function _setPrototypeOf(o, p) {
1897
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
1898
- o.__proto__ = p;
1899
- return o;
1900
- };
1901
- return _setPrototypeOf(o, p);
1902
- }
1903
-
1904
- function _inherits(subClass, superClass) {
1905
- if (typeof superClass !== "function" && superClass !== null) {
1906
- throw new TypeError("Super expression must either be null or a function");
1907
- }
1908
- subClass.prototype = Object.create(superClass && superClass.prototype, {
1909
- constructor: {
1910
- value: subClass,
1911
- writable: true,
1912
- configurable: true
1913
- }
1914
- });
1915
- Object.defineProperty(subClass, "prototype", {
1916
- writable: false
1917
- });
1918
- if (superClass) _setPrototypeOf(subClass, superClass);
1919
- }
1920
-
1921
- function _getPrototypeOf(o) {
1922
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
1923
- return o.__proto__ || Object.getPrototypeOf(o);
1924
- };
1925
- return _getPrototypeOf(o);
1926
- }
1927
-
1928
- function _isNativeReflectConstruct() {
1929
- if (typeof Reflect === "undefined" || !Reflect.construct) return false;
1930
- if (Reflect.construct.sham) return false;
1931
- if (typeof Proxy === "function") return true;
1932
- try {
1933
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {}));
1934
- return true;
1935
- } catch (e) {
1936
- return false;
1937
- }
1938
- }
1939
-
1940
- function _assertThisInitialized(self) {
1941
- if (self === void 0) {
1942
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
1943
- }
1944
- return self;
1945
- }
1946
-
1947
- function _possibleConstructorReturn(self, call) {
1948
- if (call && (_typeof(call) === "object" || typeof call === "function")) {
1949
- return call;
1950
- } else if (call !== void 0) {
1951
- throw new TypeError("Derived constructors may only return object or undefined");
1952
- }
1953
- return _assertThisInitialized(self);
1954
- }
1955
-
1956
- function _createSuper(Derived) {
1957
- var hasNativeReflectConstruct = _isNativeReflectConstruct();
1958
- return function _createSuperInternal() {
1959
- var Super = _getPrototypeOf(Derived),
1960
- result;
1961
- if (hasNativeReflectConstruct) {
1962
- var NewTarget = _getPrototypeOf(this).constructor;
1963
- result = Reflect.construct(Super, arguments, NewTarget);
1964
- } else {
1965
- result = Super.apply(this, arguments);
1966
- }
1967
- return _possibleConstructorReturn(this, result);
1968
- };
1969
- }
1970
-
1971
- /**
1972
- * Fallback to findDOMNode if origin ref do not provide any dom element
1973
- */
1974
- var DomWrapper = /*#__PURE__*/function (_React$Component) {
1975
- _inherits(DomWrapper, _React$Component);
1976
- var _super = _createSuper(DomWrapper);
1977
- function DomWrapper() {
1978
- _classCallCheck(this, DomWrapper);
1979
- return _super.apply(this, arguments);
1980
- }
1981
- _createClass(DomWrapper, [{
1982
- key: "render",
1983
- value: function render() {
1984
- return this.props.children;
1985
- }
1986
- }]);
1987
- return DomWrapper;
1988
- }(react.Component);
1989
-
1990
- var CollectionContext = /*#__PURE__*/react.createContext(null);
1991
- /**
1992
- * Collect all the resize event from children ResizeObserver
1993
- */
1994
- function Collection(_ref) {
1995
- var children = _ref.children,
1996
- onBatchResize = _ref.onBatchResize;
1997
- var resizeIdRef = react.useRef(0);
1998
- var resizeInfosRef = react.useRef([]);
1999
- var onCollectionResize = react.useContext(CollectionContext);
2000
- var onResize = react.useCallback(function (size, element, data) {
2001
- resizeIdRef.current += 1;
2002
- var currentId = resizeIdRef.current;
2003
- resizeInfosRef.current.push({
2004
- size: size,
2005
- element: element,
2006
- data: data
2007
- });
2008
- Promise.resolve().then(function () {
2009
- if (currentId === resizeIdRef.current) {
2010
- onBatchResize === null || onBatchResize === void 0 ? void 0 : onBatchResize(resizeInfosRef.current);
2011
- resizeInfosRef.current = [];
2012
- }
2013
- });
2014
- // Continue bubbling if parent exist
2015
- onCollectionResize === null || onCollectionResize === void 0 ? void 0 : onCollectionResize(size, element, data);
2016
- }, [onBatchResize, onCollectionResize]);
2017
- return /*#__PURE__*/react.createElement(CollectionContext.Provider, {
2018
- value: onResize
2019
- }, children);
2020
- }
2021
-
2022
- function SingleObserver(props, ref) {
2023
- var children = props.children,
2024
- disabled = props.disabled;
2025
- var elementRef = react.useRef(null);
2026
- var wrapperRef = react.useRef(null);
2027
- var onCollectionResize = react.useContext(CollectionContext);
2028
- // =========================== Children ===========================
2029
- var isRenderProps = typeof children === 'function';
2030
- var mergedChildren = isRenderProps ? children(elementRef) : children;
2031
- // ============================= Size =============================
2032
- var sizeRef = react.useRef({
2033
- width: -1,
2034
- height: -1,
2035
- offsetWidth: -1,
2036
- offsetHeight: -1
2037
- });
2038
- // ============================= Ref ==============================
2039
- var canRef = !isRenderProps && /*#__PURE__*/react.isValidElement(mergedChildren) && supportRef(mergedChildren);
2040
- var originRef = canRef ? mergedChildren.ref : null;
2041
- var mergedRef = react.useMemo(function () {
2042
- return composeRef(originRef, elementRef);
2043
- }, [originRef, elementRef]);
2044
- var getDom = function getDom() {
2045
- return findDOMNode(elementRef.current) || findDOMNode(wrapperRef.current);
2046
- };
2047
- react.useImperativeHandle(ref, function () {
2048
- return getDom();
2049
- });
2050
- // =========================== Observe ============================
2051
- var propsRef = react.useRef(props);
2052
- propsRef.current = props;
2053
- // Handler
2054
- var onInternalResize = react.useCallback(function (target) {
2055
- var _propsRef$current = propsRef.current,
2056
- onResize = _propsRef$current.onResize,
2057
- data = _propsRef$current.data;
2058
- var _target$getBoundingCl = target.getBoundingClientRect(),
2059
- width = _target$getBoundingCl.width,
2060
- height = _target$getBoundingCl.height;
2061
- var offsetWidth = target.offsetWidth,
2062
- offsetHeight = target.offsetHeight;
2063
- /**
2064
- * Resize observer trigger when content size changed.
2065
- * In most case we just care about element size,
2066
- * let's use `boundary` instead of `contentRect` here to avoid shaking.
2067
- */
2068
- var fixedWidth = Math.floor(width);
2069
- var fixedHeight = Math.floor(height);
2070
- if (sizeRef.current.width !== fixedWidth || sizeRef.current.height !== fixedHeight || sizeRef.current.offsetWidth !== offsetWidth || sizeRef.current.offsetHeight !== offsetHeight) {
2071
- var size = {
2072
- width: fixedWidth,
2073
- height: fixedHeight,
2074
- offsetWidth: offsetWidth,
2075
- offsetHeight: offsetHeight
2076
- };
2077
- sizeRef.current = size;
2078
- // IE is strange, right?
2079
- var mergedOffsetWidth = offsetWidth === Math.round(width) ? width : offsetWidth;
2080
- var mergedOffsetHeight = offsetHeight === Math.round(height) ? height : offsetHeight;
2081
- var sizeInfo = _objectSpread2(_objectSpread2({}, size), {}, {
2082
- offsetWidth: mergedOffsetWidth,
2083
- offsetHeight: mergedOffsetHeight
2084
- });
2085
- // Let collection know what happened
2086
- onCollectionResize === null || onCollectionResize === void 0 ? void 0 : onCollectionResize(sizeInfo, target, data);
2087
- if (onResize) {
2088
- // defer the callback but not defer to next frame
2089
- Promise.resolve().then(function () {
2090
- onResize(sizeInfo, target);
2091
- });
2092
- }
2093
- }
2094
- }, []);
2095
- // Dynamic observe
2096
- react.useEffect(function () {
2097
- var currentElement = getDom();
2098
- if (currentElement && !disabled) {
2099
- observe(currentElement, onInternalResize);
2100
- }
2101
- return function () {
2102
- return unobserve(currentElement, onInternalResize);
2103
- };
2104
- }, [elementRef.current, disabled]);
2105
- // ============================ Render ============================
2106
- return /*#__PURE__*/react.createElement(DomWrapper, {
2107
- ref: wrapperRef
2108
- }, canRef ? /*#__PURE__*/react.cloneElement(mergedChildren, {
2109
- ref: mergedRef
2110
- }) : mergedChildren);
2111
- }
2112
- var RefSingleObserver = /*#__PURE__*/react.forwardRef(SingleObserver);
2113
-
2114
- var INTERNAL_PREFIX_KEY = 'rc-observer-key';
2115
- function ResizeObserver(props, ref) {
2116
- var children = props.children;
2117
- var childNodes = typeof children === 'function' ? [children] : toArray(children);
2118
- return childNodes.map(function (child, index) {
2119
- var key = (child === null || child === void 0 ? void 0 : child.key) || "".concat(INTERNAL_PREFIX_KEY, "-").concat(index);
2120
- return /*#__PURE__*/react.createElement(RefSingleObserver, _extends({}, props, {
2121
- key: key,
2122
- ref: index === 0 ? ref : undefined
2123
- }), child);
2124
- });
2125
- }
2126
- var RefResizeObserver = /*#__PURE__*/react.forwardRef(ResizeObserver);
2127
- RefResizeObserver.Collection = Collection;
2128
-
2129
543
  exports.React = React;
2130
- exports.RefResizeObserver = RefResizeObserver;
2131
- exports._typeof = _typeof$1;
2132
- exports.canUseDom = canUseDom;
2133
- exports.composeRef = composeRef;
2134
- exports.fillRef = fillRef;
2135
- exports.findDOMNode = findDOMNode;
2136
- exports.isDOM = isDOM;
2137
544
  exports.react = react;
2138
545
  exports.reactDom = reactDom;
2139
- exports.supportRef = supportRef;
2140
- exports.useComposeRef = useComposeRef;
2141
- exports.useEvent = useEvent;
2142
- exports.useLayoutEffect = useLayoutEffect;
2143
- exports.useLayoutUpdateEffect = useLayoutUpdateEffect;
2144
- exports.useMemo = useMemo;
2145
- exports.warningOnce = warningOnce;
2146
- exports.wrapperRaf = wrapperRaf;