@unicom-cloud/ui 0.8.55 → 0.8.56

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 (428) hide show
  1. package/Affix.js +36 -36
  2. package/Alert.js +41 -45
  3. package/Anchor.js +1 -1
  4. package/AutoComplete.js +40 -40
  5. package/Avatar.js +36 -36
  6. package/BackTop.js +26 -26
  7. package/Badge.js +43 -43
  8. package/Breadcrumb.js +17 -17
  9. package/Button.js +42 -42
  10. package/Calendar.js +54 -56
  11. package/Card.js +28 -28
  12. package/Carousel.js +42 -43
  13. package/Cascader.js +1 -1
  14. package/Checkbox.js +1 -1
  15. package/Collapse.js +1 -1
  16. package/ColorPicker.js +11 -580
  17. package/Comment.js +14 -14
  18. package/ConfigProvider.js +2 -2
  19. package/Copy.js +26 -26
  20. package/DatePicker.js +661 -670
  21. package/Descriptions.js +53 -53
  22. package/Divider.js +15 -15
  23. package/Draggable.js +16 -16
  24. package/Drawer.js +1 -1
  25. package/Dropdown.js +10 -10
  26. package/Empty.js +3 -3
  27. package/Form.js +10 -1410
  28. package/Grid.js +49 -49
  29. package/Icon.js +10 -10
  30. package/IconHover.js +2 -2
  31. package/Image.js +1 -1
  32. package/Input.js +1 -1
  33. package/InputNumber.js +7 -7
  34. package/InputTag.js +1 -1
  35. package/Layout.js +34 -34
  36. package/Link.js +26 -26
  37. package/List.js +39 -39
  38. package/Mentions.js +17 -17
  39. package/Menu.js +1 -1
  40. package/Message.js +3 -3
  41. package/Modal.js +1 -1
  42. package/Notice.js +4 -10
  43. package/Notification.js +3 -3
  44. package/OverflowEllipsis.js +18 -18
  45. package/PageHeader.js +26 -27
  46. package/Pagination.js +1 -1
  47. package/Picker.js +1 -1
  48. package/Popconfirm.js +15 -15
  49. package/Popover.js +22 -22
  50. package/Progress.js +18 -18
  51. package/Radio.js +2 -2
  52. package/Rate.js +40 -43
  53. package/ResizeBox.js +191 -192
  54. package/Result.js +17 -17
  55. package/Select.js +1 -1
  56. package/SelectView.js +56 -56
  57. package/Skeleton.js +35 -35
  58. package/Slider.js +81 -81
  59. package/Space.js +27 -27
  60. package/SpeechSynthesis.js +29 -32
  61. package/Spin.js +15 -15
  62. package/Statistic.js +54 -54
  63. package/Steps.js +44 -44
  64. package/Switch.js +39 -38
  65. package/Table.js +488 -488
  66. package/Tabs.js +1 -1
  67. package/Tag.js +13 -14
  68. package/TimePicker.js +68 -68
  69. package/Timeline.js +1 -1
  70. package/Tooltip.js +27 -28
  71. package/Transfer.js +29 -30
  72. package/Tree.js +1 -1
  73. package/TreeSelect.js +1 -1
  74. package/Trigger.js +53 -52
  75. package/Typography.js +2 -737
  76. package/Upload.js +1 -1
  77. package/VerificationCode.js +1 -1
  78. package/Version.js +1 -1
  79. package/Watermark.js +1 -1
  80. package/chunk/1mEO29GP.js +23 -0
  81. package/chunk/5pZ3ayqs.js +29 -0
  82. package/chunk/9Gh1afjL.js +23 -0
  83. package/chunk/B1S1OEw6.js +29 -0
  84. package/chunk/{RRWbBHK-.js → B2Bp3i5u.js} +221 -221
  85. package/chunk/B45v5S9k.js +209 -0
  86. package/chunk/B6fn5y_s.js +23 -0
  87. package/chunk/B9PsJar0.js +118 -0
  88. package/chunk/BA02BFUV.js +41 -0
  89. package/chunk/BCk8e9fj.js +29 -0
  90. package/chunk/BHK9zpXn.js +207 -0
  91. package/chunk/BHLTzWzi.js +29 -0
  92. package/chunk/BK1FKNAX.js +41 -0
  93. package/chunk/BM6dpkeM.js +32 -0
  94. package/chunk/{DQ3uFRJD.js → BP7xX86Q.js} +223 -202
  95. package/chunk/BWx1cVT_.js +66 -0
  96. package/chunk/BbI3gqVr.js +23 -0
  97. package/chunk/{CIc4yo9k.js → BbYzi8M0.js} +46 -46
  98. package/chunk/Be7oeWU8.js +34 -0
  99. package/chunk/BeM2hfks.js +88 -0
  100. package/chunk/BkHxm4sv.js +41 -0
  101. package/chunk/{BUQBof6z.js → Bl-ODC57.js} +206 -207
  102. package/chunk/BlKc_pDZ.js +678 -0
  103. package/chunk/{BzqZZHGK.js → Bny52uiG.js} +48 -48
  104. package/chunk/{PuuHmqnW.js → BpwDupra.js} +238 -238
  105. package/chunk/BqxwlITu.js +52 -0
  106. package/chunk/BuEC_zcc.js +278 -0
  107. package/chunk/{CqcZfQQ4.js → Bv8ZRDFt.js} +80 -80
  108. package/chunk/{DZGcv_9A.js → C-w9pFY-.js} +32 -32
  109. package/chunk/C2fspJbE.js +23 -0
  110. package/chunk/C7Okdv4u.js +34 -0
  111. package/chunk/C95ipQ6b.js +41 -0
  112. package/chunk/{BzMYgxgO.js → CF3Telny.js} +26 -26
  113. package/chunk/CPl52AZh.js +206 -0
  114. package/chunk/CXNW5Y2a.js +23 -0
  115. package/chunk/Cb_oWoGj.js +40 -0
  116. package/chunk/CcX2pBUh.js +46 -0
  117. package/chunk/{BdJcAQ0Q.js → CggcswbO.js} +18 -18
  118. package/chunk/CilQ012k.js +1796 -0
  119. package/chunk/CkAOsst1.js +73 -0
  120. package/chunk/CnY8SvgY.js +126 -0
  121. package/chunk/{CTSIr-Pr.js → CwXmtKib.js} +89 -101
  122. package/chunk/{C3I_L73_.js → CwjaGytU.js} +39 -40
  123. package/chunk/{DTgc2wl4.js → D6RTBH4C.js} +36 -36
  124. package/chunk/D6mVoX-C.js +116 -0
  125. package/chunk/D9TqtOhq.js +40 -0
  126. package/chunk/{CZ8iz63Z.js → DBJ8d0o0.js} +210 -217
  127. package/chunk/{RL1SNlng.js → DDda6s72.js} +16 -16
  128. package/chunk/{BH5fVprw.js → DJmWXheU.js} +9 -9
  129. package/chunk/DPvnQJ-H.js +52 -0
  130. package/chunk/DQXq1QT0.js +58 -0
  131. package/chunk/DRJO1GfY.js +855 -0
  132. package/chunk/DUxWiN2U.js +1465 -0
  133. package/chunk/DYZzQ2uT.js +29 -0
  134. package/chunk/{CK0H_Yi4.js → DafaH1Qt.js} +140 -138
  135. package/chunk/{ShWkfsJd.js → DalIRWr7.js} +21 -21
  136. package/chunk/{CzTYWtfa.js → Dg2DmtzA.js} +31 -30
  137. package/chunk/DhLbnw3R.js +29 -0
  138. package/chunk/{BmtF7P8U.js → DkIjpuBZ.js} +170 -170
  139. package/chunk/Do1aMgY3.js +12 -0
  140. package/chunk/Dtnux4qL.js +38 -0
  141. package/chunk/{Niaq_og8.js → Dw4SJ4o1.js} +219 -225
  142. package/chunk/{DbtCtriE.js → DxNRWF67.js} +30 -31
  143. package/chunk/JnyGFb5j.js +284 -0
  144. package/chunk/Lk60-jkf.js +1098 -0
  145. package/chunk/V_IcWDFx.js +49 -0
  146. package/chunk/{DG7VgAhL.js → WkB0MERB.js} +107 -108
  147. package/chunk/bsawGxt8.js +32 -0
  148. package/chunk/cUuQh7L_.js +46 -0
  149. package/chunk/fqgc8r6C.js +29 -0
  150. package/chunk/m_kOQCiU.js +29 -0
  151. package/chunk/sl8s35SK.js +29 -0
  152. package/chunk/{Dki1RB5p.js → t51ig1FZ.js} +154 -155
  153. package/chunk/{BC0PujUD.js → yvbAFxtk.js} +119 -121
  154. package/hooks/index.js +52 -246
  155. package/hooks/useForceUpdate.js +6 -6
  156. package/hooks/useIntersectionObserver.js +12 -10
  157. package/hooks/useKeyboardEvent.js +7 -7
  158. package/hooks/useMedia.js +9 -12
  159. package/hooks/useMergeValue.js +10 -8
  160. package/hooks/useResizeObserver.js +16 -0
  161. package/hooks/useUpdateEffect.js +7 -9
  162. package/hooks/useWindowSize.js +16 -20
  163. package/icons.js +6003 -0
  164. package/index.js +377 -472
  165. package/locale/en-US.js +20 -6
  166. package/locale/ja-JP.js +4 -2
  167. package/locale/ko-KR.js +2 -2
  168. package/locale/pt-BR.js +3 -3
  169. package/locale/pt-PT.js +3 -3
  170. package/locale/tr-TR.js +11 -3
  171. package/locale/zh-CN.js +6 -0
  172. package/locale/zh-HK.js +2 -0
  173. package/locale/zh-TW.js +2 -0
  174. package/package.json +1 -1
  175. package/style.css +1 -1
  176. package/types/anchor/util.d.ts +1 -0
  177. package/types/button/index.d.ts +2 -2
  178. package/types/color-picker/colors.d.ts +1 -1
  179. package/types/date-picker/util.d.ts +1 -1
  180. package/types/hooks/index.d.ts +3 -101
  181. package/types/hooks/useForceUpdate.d.ts +1 -2
  182. package/types/hooks/useIntersectionObserver.d.ts +1 -1
  183. package/types/hooks/useKeyboardEvent.d.ts +2 -2
  184. package/types/hooks/useMergeProps.d.ts +1 -1
  185. package/types/hooks/useResizeObserver.d.ts +5 -0
  186. package/types/hooks/useUpdateEffect.d.ts +2 -3
  187. package/types/hooks/useWindowSize.d.ts +1 -1
  188. package/types/icons.d.ts +4 -0
  189. package/types/index.d.ts +12 -2
  190. package/types/locale/en-US.d.ts +4 -0
  191. package/types/locale/interface.d.ts +2 -0
  192. package/types/locale/ja-JP.d.ts +4 -0
  193. package/types/locale/zh-CN.d.ts +4 -0
  194. package/types/locale/zh-HK.d.ts +4 -0
  195. package/types/locale/zh-TW.d.ts +4 -0
  196. package/types/version/index.d.ts +1 -1
  197. package/utils/CSSTransition.js +1 -1
  198. package/utils/className.js +2 -3
  199. package/utils/contextHolder.js +2 -2
  200. package/utils/copy.js +2 -3
  201. package/utils/is.js +127 -90
  202. package/utils/reactDOM.js +17 -15
  203. package/utils/responsiveObserve.js +16 -16
  204. package/utils/saveAs.js +2 -3
  205. package/utils/scrollIntoView.js +1 -1
  206. package/chunk/BdYAMaw9.js +0 -6
  207. package/chunk/CiZVOdJ3.js +0 -122
  208. package/chunk/DdtfPvgk.js +0 -272
  209. package/chunk/I4RV9SKZ.js +0 -135
  210. package/chunk/TXCrI0jN.js +0 -20
  211. package/chunk/i1A7W8Qt.js +0 -277
  212. package/chunk/xPzFRQJn.js +0 -740
  213. package/hooks/useAsync.js +0 -13
  214. package/hooks/useAsyncFn.js +0 -15
  215. package/hooks/useAsyncRetry.js +0 -17
  216. package/hooks/useAudio.js +0 -5
  217. package/hooks/useBeforeUnload.js +0 -18
  218. package/hooks/useBoolean.js +0 -4
  219. package/hooks/useClickAway.js +0 -22
  220. package/hooks/useCopyToClipboard.js +0 -51
  221. package/hooks/useCounter.js +0 -45
  222. package/hooks/useCreation.js +0 -17
  223. package/hooks/useCustomCompareEffect.js +0 -15
  224. package/hooks/useDebounce.js +0 -9
  225. package/hooks/useDefault.js +0 -10
  226. package/hooks/useDrop.js +0 -44
  227. package/hooks/useDropArea.js +0 -45
  228. package/hooks/useEffectOnce.js +0 -7
  229. package/hooks/useEffectState.js +0 -9
  230. package/hooks/useEnsuredForwardedRef.js +0 -17
  231. package/hooks/useError.js +0 -13
  232. package/hooks/useEvent.js +0 -13
  233. package/hooks/useEventListener.js +0 -39
  234. package/hooks/useFavicon.js +0 -16
  235. package/hooks/useFirstMountState.js +0 -8
  236. package/hooks/useFullscreen.js +0 -39
  237. package/hooks/useGeolocation.js +0 -38
  238. package/hooks/useGetSet.js +0 -18
  239. package/hooks/useGetSetState.js +0 -12
  240. package/hooks/useHash.js +0 -26
  241. package/hooks/useHover.js +0 -16
  242. package/hooks/useHoverDirty.js +0 -17
  243. package/hooks/useIdle.js +0 -34
  244. package/hooks/useIntersection.js +0 -19
  245. package/hooks/useIsomorphicLayoutEffect2.js +0 -6
  246. package/hooks/useKey.js +0 -16
  247. package/hooks/useKeyPress.js +0 -13
  248. package/hooks/useKeyPressEvent.js +0 -11
  249. package/hooks/useLatest.js +0 -8
  250. package/hooks/useLifecycles.js +0 -9
  251. package/hooks/useList.js +0 -67
  252. package/hooks/useLocalStorage.js +0 -42
  253. package/hooks/useLocation.js +0 -51
  254. package/hooks/useLockBodyScroll.js +0 -55
  255. package/hooks/useLogger.js +0 -10
  256. package/hooks/useLongPress.js +0 -24
  257. package/hooks/useMap.js +0 -31
  258. package/hooks/useMeasure.js +0 -34
  259. package/hooks/useMeasureDirty.js +0 -24
  260. package/hooks/useMediaDevices.js +0 -26
  261. package/hooks/useMediatedState.js +0 -14
  262. package/hooks/useMethods.js +0 -14
  263. package/hooks/useMotion.js +0 -56
  264. package/hooks/useMount.js +0 -9
  265. package/hooks/useMountedState.js +0 -10
  266. package/hooks/useMouse.js +0 -44
  267. package/hooks/useMouseHovered.js +0 -9
  268. package/hooks/useMouseWheel.js +0 -14
  269. package/hooks/useMultiStateValidator.js +0 -19
  270. package/hooks/useNetworkState.js +0 -31
  271. package/hooks/useNumber.js +0 -4
  272. package/hooks/useObservable.js +0 -12
  273. package/hooks/useOrientation.js +0 -30
  274. package/hooks/usePageLeave.js +0 -19
  275. package/hooks/usePermission.js +0 -19
  276. package/hooks/usePinchZoom.js +0 -40
  277. package/hooks/usePreviousDistinct.js +0 -10
  278. package/hooks/usePromise.js +0 -19
  279. package/hooks/useQueue.js +0 -25
  280. package/hooks/useRaf.js +0 -24
  281. package/hooks/useRafLoop.js +0 -24
  282. package/hooks/useRafState.js +0 -15
  283. package/hooks/useReactive.js +0 -21
  284. package/hooks/useRendersCount.js +0 -7
  285. package/hooks/useScroll.js +0 -27
  286. package/hooks/useScrolling.js +0 -23
  287. package/hooks/useSearchParam.js +0 -18
  288. package/hooks/useSessionStorage.js +0 -29
  289. package/hooks/useSet.js +0 -15
  290. package/hooks/useSetState.js +0 -16
  291. package/hooks/useSize.js +0 -58
  292. package/hooks/useSlider.js +0 -48
  293. package/hooks/useSpeech.js +0 -45
  294. package/hooks/useStartTyping.js +0 -30
  295. package/hooks/useStateList.js +0 -37
  296. package/hooks/useStateValidator.js +0 -17
  297. package/hooks/useStateWithHistory.js +0 -46
  298. package/hooks/useSyncState.js +0 -14
  299. package/hooks/useThrottle.js +0 -21
  300. package/hooks/useThrottleFn.js +0 -21
  301. package/hooks/useTimeout.js +0 -17
  302. package/hooks/useTimeoutFn.js +0 -16
  303. package/hooks/useTitle.js +0 -18
  304. package/hooks/useToggle.js +0 -5
  305. package/hooks/useTween.js +0 -11
  306. package/hooks/useUnmount.js +0 -9
  307. package/hooks/useUnmountPromise.js +0 -20
  308. package/hooks/useUpdate.js +0 -10
  309. package/hooks/useUpdateTimeout.js +0 -9
  310. package/hooks/useUpsert.js +0 -16
  311. package/hooks/useVibrate.js +0 -21
  312. package/hooks/useVideo.js +0 -5
  313. package/hooks/useWindowScroll.js +0 -29
  314. package/types/hooks/component/UseKey.d.ts +0 -2
  315. package/types/hooks/factory/createBreakpoint.d.ts +0 -4
  316. package/types/hooks/factory/createGlobalState.d.ts +0 -7
  317. package/types/hooks/factory/createHTMLMediaHook.d.ts +0 -33
  318. package/types/hooks/factory/createMemo.d.ts +0 -2
  319. package/types/hooks/factory/createReducer.d.ts +0 -8
  320. package/types/hooks/factory/createReducerContext.d.ts +0 -5
  321. package/types/hooks/factory/createRenderProp.d.ts +0 -1
  322. package/types/hooks/factory/createRouter.d.ts +0 -7
  323. package/types/hooks/factory/createStateContext.d.ts +0 -5
  324. package/types/hooks/misc/hookState.d.ts +0 -8
  325. package/types/hooks/misc/parseTimeRanges.d.ts +0 -4
  326. package/types/hooks/misc/types.d.ts +0 -2
  327. package/types/hooks/misc/util.d.ts +0 -5
  328. package/types/hooks/useAsync.d.ts +0 -20
  329. package/types/hooks/useAsyncFn.d.ts +0 -23
  330. package/types/hooks/useAsyncRetry.d.ts +0 -27
  331. package/types/hooks/useAudio.d.ts +0 -11
  332. package/types/hooks/useBeforeUnload.d.ts +0 -2
  333. package/types/hooks/useBoolean.d.ts +0 -2
  334. package/types/hooks/useClickAway.d.ts +0 -3
  335. package/types/hooks/useCopyToClipboard.d.ts +0 -7
  336. package/types/hooks/useCounter.d.ts +0 -9
  337. package/types/hooks/useCreation.d.ts +0 -2
  338. package/types/hooks/useCustomCompareEffect.d.ts +0 -4
  339. package/types/hooks/useDebounce.d.ts +0 -3
  340. package/types/hooks/useDefault.d.ts +0 -2
  341. package/types/hooks/useDrop.d.ts +0 -17
  342. package/types/hooks/useDropArea.d.ts +0 -18
  343. package/types/hooks/useEffectOnce.d.ts +0 -3
  344. package/types/hooks/useEffectState.d.ts +0 -2
  345. package/types/hooks/useEnsuredForwardedRef.d.ts +0 -3
  346. package/types/hooks/useError.d.ts +0 -2
  347. package/types/hooks/useEvent.d.ts +0 -13
  348. package/types/hooks/useEventListener.d.ts +0 -2
  349. package/types/hooks/useFavicon.d.ts +0 -2
  350. package/types/hooks/useFirstMountState.d.ts +0 -1
  351. package/types/hooks/useFullscreen.d.ts +0 -10
  352. package/types/hooks/useGeolocation.d.ts +0 -21
  353. package/types/hooks/useGetSet.d.ts +0 -3
  354. package/types/hooks/useGetSetState.d.ts +0 -2
  355. package/types/hooks/useHash.d.ts +0 -2
  356. package/types/hooks/useHover.d.ts +0 -4
  357. package/types/hooks/useHoverDirty.d.ts +0 -3
  358. package/types/hooks/useIdle.d.ts +0 -2
  359. package/types/hooks/useIntersection.d.ts +0 -3
  360. package/types/hooks/useIsomorphicLayoutEffect2.d.ts +0 -3
  361. package/types/hooks/useKey.d.ts +0 -12
  362. package/types/hooks/useKeyPress.d.ts +0 -3
  363. package/types/hooks/useKeyPressEvent.d.ts +0 -3
  364. package/types/hooks/useLatest.d.ts +0 -4
  365. package/types/hooks/useLifecycles.d.ts +0 -2
  366. package/types/hooks/useList.d.ts +0 -18
  367. package/types/hooks/useLocalStorage.d.ts +0 -10
  368. package/types/hooks/useLocation.d.ts +0 -16
  369. package/types/hooks/useLockBodyScroll.d.ts +0 -8
  370. package/types/hooks/useLogger.d.ts +0 -2
  371. package/types/hooks/useLongPress.d.ts +0 -12
  372. package/types/hooks/useMap.d.ts +0 -11
  373. package/types/hooks/useMeasure.d.ts +0 -9
  374. package/types/hooks/useMeasureDirty.d.ts +0 -11
  375. package/types/hooks/useMediaDevices.d.ts +0 -2
  376. package/types/hooks/useMediatedState.d.ts +0 -9
  377. package/types/hooks/useMethods.d.ts +0 -8
  378. package/types/hooks/useMotion.d.ts +0 -20
  379. package/types/hooks/useMount.d.ts +0 -2
  380. package/types/hooks/useMountedState.d.ts +0 -1
  381. package/types/hooks/useMouse.d.ts +0 -13
  382. package/types/hooks/useMouseHovered.d.ts +0 -8
  383. package/types/hooks/useMouseWheel.d.ts +0 -2
  384. package/types/hooks/useMultiStateValidator.d.ts +0 -9
  385. package/types/hooks/useNetworkState.d.ts +0 -22
  386. package/types/hooks/useNumber.d.ts +0 -2
  387. package/types/hooks/useObservable.d.ts +0 -8
  388. package/types/hooks/useOrientation.d.ts +0 -6
  389. package/types/hooks/usePageLeave.d.ts +0 -2
  390. package/types/hooks/usePermission.d.ts +0 -16
  391. package/types/hooks/usePinchZoom.d.ts +0 -18
  392. package/types/hooks/usePreviousDistinct.d.ts +0 -2
  393. package/types/hooks/usePromise.d.ts +0 -3
  394. package/types/hooks/useQueue.d.ts +0 -9
  395. package/types/hooks/useRaf.d.ts +0 -2
  396. package/types/hooks/useRafLoop.d.ts +0 -2
  397. package/types/hooks/useRafState.d.ts +0 -3
  398. package/types/hooks/useReactive.d.ts +0 -2
  399. package/types/hooks/useRendersCount.d.ts +0 -1
  400. package/types/hooks/useScroll.d.ts +0 -7
  401. package/types/hooks/useScrolling.d.ts +0 -3
  402. package/types/hooks/useSearchParam.d.ts +0 -3
  403. package/types/hooks/useSessionStorage.d.ts +0 -2
  404. package/types/hooks/useSet.d.ts +0 -11
  405. package/types/hooks/useSetState.d.ts +0 -2
  406. package/types/hooks/useSize.d.ts +0 -8
  407. package/types/hooks/useSlider.d.ts +0 -15
  408. package/types/hooks/useSpeech.d.ts +0 -16
  409. package/types/hooks/useStartTyping.d.ts +0 -2
  410. package/types/hooks/useStateList.d.ts +0 -9
  411. package/types/hooks/useStateValidator.d.ts +0 -8
  412. package/types/hooks/useStateWithHistory.d.ts +0 -18
  413. package/types/hooks/useSyncState.d.ts +0 -3
  414. package/types/hooks/useThrottle.d.ts +0 -2
  415. package/types/hooks/useThrottleFn.d.ts +0 -2
  416. package/types/hooks/useTimeout.d.ts +0 -2
  417. package/types/hooks/useTimeoutFn.d.ts +0 -2
  418. package/types/hooks/useTitle.d.ts +0 -6
  419. package/types/hooks/useToggle.d.ts +0 -2
  420. package/types/hooks/useTween.d.ts +0 -3
  421. package/types/hooks/useUnmount.d.ts +0 -2
  422. package/types/hooks/useUnmountPromise.d.ts +0 -3
  423. package/types/hooks/useUpdate.d.ts +0 -2
  424. package/types/hooks/useUpdateTimeout.d.ts +0 -2
  425. package/types/hooks/useUpsert.d.ts +0 -6
  426. package/types/hooks/useVibrate.d.ts +0 -4
  427. package/types/hooks/useVideo.d.ts +0 -11
  428. package/types/hooks/useWindowScroll.d.ts +0 -6
@@ -0,0 +1,1098 @@
1
+ /*!
2
+ * decimal.js v10.4.3
3
+ * An arbitrary-precision Decimal type for JavaScript.
4
+ * https://github.com/MikeMcl/decimal.js
5
+ * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
6
+ * MIT Licence
7
+ */
8
+ let V = 9e15, H = 1e9, cn = "0123456789abcdef", X = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", Y = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", ln = {
9
+ // These values must be integers within the stated ranges (inclusive).
10
+ // Most of these values can be changed at run-time using the `Decimal.config` method.
11
+ // The maximum number of significant digits of the result of a calculation or base conversion.
12
+ // E.g. `Decimal.config({ precision: 20 });`
13
+ precision: 20,
14
+ // 1 to MAX_DIGITS
15
+ // The rounding mode used when rounding to `precision`.
16
+ //
17
+ // ROUND_UP 0 Away from zero.
18
+ // ROUND_DOWN 1 Towards zero.
19
+ // ROUND_CEIL 2 Towards +Infinity.
20
+ // ROUND_FLOOR 3 Towards -Infinity.
21
+ // ROUND_HALF_UP 4 Towards nearest neighbour. If equidistant, up.
22
+ // ROUND_HALF_DOWN 5 Towards nearest neighbour. If equidistant, down.
23
+ // ROUND_HALF_EVEN 6 Towards nearest neighbour. If equidistant, towards even neighbour.
24
+ // ROUND_HALF_CEIL 7 Towards nearest neighbour. If equidistant, towards +Infinity.
25
+ // ROUND_HALF_FLOOR 8 Towards nearest neighbour. If equidistant, towards -Infinity.
26
+ //
27
+ // E.g.
28
+ // `Decimal.rounding = 4;`
29
+ // `Decimal.rounding = Decimal.ROUND_HALF_UP;`
30
+ rounding: 4,
31
+ // 0 to 8
32
+ // The modulo mode used when calculating the modulus: a mod n.
33
+ // The quotient (q = a / n) is calculated according to the corresponding rounding mode.
34
+ // The remainder (r) is calculated as: r = a - n * q.
35
+ //
36
+ // UP 0 The remainder is positive if the dividend is negative, else is negative.
37
+ // DOWN 1 The remainder has the same sign as the dividend (JavaScript %).
38
+ // FLOOR 3 The remainder has the same sign as the divisor (Python %).
39
+ // HALF_EVEN 6 The IEEE 754 remainder function.
40
+ // EUCLID 9 Euclidian division. q = sign(n) * floor(a / abs(n)). Always positive.
41
+ //
42
+ // Truncated division (1), floored division (3), the IEEE 754 remainder (6), and Euclidian
43
+ // division (9) are commonly used for the modulus operation. The other rounding modes can also
44
+ // be used, but they may not give useful results.
45
+ modulo: 1,
46
+ // 0 to 9
47
+ // The exponent value at and beneath which `toString` returns exponential notation.
48
+ // JavaScript numbers: -7
49
+ toExpNeg: -7,
50
+ // 0 to -EXP_LIMIT
51
+ // The exponent value at and above which `toString` returns exponential notation.
52
+ // JavaScript numbers: 21
53
+ toExpPos: 21,
54
+ // 0 to EXP_LIMIT
55
+ // The minimum exponent value, beneath which underflow to zero occurs.
56
+ // JavaScript numbers: -324 (5e-324)
57
+ minE: -V,
58
+ // -1 to -EXP_LIMIT
59
+ // The maximum exponent value, above which overflow to Infinity occurs.
60
+ // JavaScript numbers: 308 (1.7976931348623157e+308)
61
+ maxE: V,
62
+ // 1 to EXP_LIMIT
63
+ // Whether to use cryptographically-secure random number generation, if available.
64
+ crypto: !1
65
+ // true/false
66
+ }, wn, L, w = !0, tn = "[DecimalError] ", C = tn + "Invalid argument: ", Nn = tn + "Precision limit exceeded", bn = tn + "crypto unavailable", En = "[object Decimal]", A = Math.floor, M = Math.pow, Pn = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, Rn = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Tn = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, vn = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, T = 1e7, m = 7, _n = 9007199254740991, kn = X.length - 1, fn = Y.length - 1, a = { toStringTag: En };
67
+ a.absoluteValue = a.abs = function() {
68
+ let n = new this.constructor(this);
69
+ return n.s < 0 && (n.s = 1), g(n);
70
+ };
71
+ a.ceil = function() {
72
+ return g(new this.constructor(this), this.e + 1, 2);
73
+ };
74
+ a.clampedTo = a.clamp = function(n, t) {
75
+ let e, r = this, i = r.constructor;
76
+ if (n = new i(n), t = new i(t), !n.s || !t.s) return new i(NaN);
77
+ if (n.gt(t)) throw Error(C + t);
78
+ return e = r.cmp(n), e < 0 ? n : r.cmp(t) > 0 ? t : new i(r);
79
+ };
80
+ a.comparedTo = a.cmp = function(n) {
81
+ let t, e, r, i, s = this, o = s.d, u = (n = new s.constructor(n)).d, l = s.s, c = n.s;
82
+ if (!o || !u)
83
+ return !l || !c ? NaN : l !== c ? l : o === u ? 0 : !o ^ l < 0 ? 1 : -1;
84
+ if (!o[0] || !u[0]) return o[0] ? l : u[0] ? -c : 0;
85
+ if (l !== c) return l;
86
+ if (s.e !== n.e) return s.e > n.e ^ l < 0 ? 1 : -1;
87
+ for (r = o.length, i = u.length, t = 0, e = r < i ? r : i; t < e; ++t)
88
+ if (o[t] !== u[t]) return o[t] > u[t] ^ l < 0 ? 1 : -1;
89
+ return r === i ? 0 : r > i ^ l < 0 ? 1 : -1;
90
+ };
91
+ a.cosine = a.cos = function() {
92
+ let n, t, e = this, r = e.constructor;
93
+ return e.d ? e.d[0] ? (n = r.precision, t = r.rounding, r.precision = n + Math.max(e.e, e.sd()) + m, r.rounding = 1, e = Ln(r, On(r, e)), r.precision = n, r.rounding = t, g(L == 2 || L == 3 ? e.neg() : e, n, t, !0)) : new r(1) : new r(NaN);
94
+ };
95
+ a.cubeRoot = a.cbrt = function() {
96
+ let n, t, e, r, i, s, o, u, l, c, f = this, h = f.constructor;
97
+ if (!f.isFinite() || f.isZero()) return new h(f);
98
+ for (w = !1, s = f.s * M(f.s * f, 1 / 3), !s || Math.abs(s) == 1 / 0 ? (e = q(f.d), n = f.e, (s = (n - e.length + 1) % 3) && (e += s == 1 || s == -2 ? "0" : "00"), s = M(e, 1 / 3), n = A((n + 1) / 3) - (n % 3 == (n < 0 ? -1 : 2)), s == 1 / 0 ? e = "5e" + n : (e = s.toExponential(), e = e.slice(0, e.indexOf("e") + 1) + n), r = new h(e), r.s = f.s) : r = new h(s.toString()), o = (n = h.precision) + 3; ; )
99
+ if (u = r, l = u.times(u).times(u), c = l.plus(f), r = v(c.plus(f).times(u), c.plus(l), o + 2, 1), q(u.d).slice(0, o) === (e = q(r.d)).slice(0, o))
100
+ if (e = e.slice(o - 3, o + 1), e == "9999" || !i && e == "4999") {
101
+ if (!i && (g(u, n + 1, 0), u.times(u).times(u).eq(f))) {
102
+ r = u;
103
+ break;
104
+ }
105
+ o += 4, i = 1;
106
+ } else {
107
+ (!+e || !+e.slice(1) && e.charAt(0) == "5") && (g(r, n + 1, 1), t = !r.times(r).times(r).eq(f));
108
+ break;
109
+ }
110
+ return w = !0, g(r, n, h.rounding, t);
111
+ };
112
+ a.decimalPlaces = a.dp = function() {
113
+ let n, t = this.d, e = NaN;
114
+ if (t) {
115
+ if (n = t.length - 1, e = (n - A(this.e / m)) * m, n = t[n], n) for (; n % 10 == 0; n /= 10) e--;
116
+ e < 0 && (e = 0);
117
+ }
118
+ return e;
119
+ };
120
+ a.dividedBy = a.div = function(n) {
121
+ return v(this, new this.constructor(n));
122
+ };
123
+ a.dividedToIntegerBy = a.divToInt = function(n) {
124
+ let t = this, e = t.constructor;
125
+ return g(
126
+ v(t, new e(n), 0, 1, 1),
127
+ e.precision,
128
+ e.rounding
129
+ );
130
+ };
131
+ a.equals = a.eq = function(n) {
132
+ return this.cmp(n) === 0;
133
+ };
134
+ a.floor = function() {
135
+ return g(new this.constructor(this), this.e + 1, 3);
136
+ };
137
+ a.greaterThan = a.gt = function(n) {
138
+ return this.cmp(n) > 0;
139
+ };
140
+ a.greaterThanOrEqualTo = a.gte = function(n) {
141
+ let t = this.cmp(n);
142
+ return t == 1 || t === 0;
143
+ };
144
+ a.hyperbolicCosine = a.cosh = function() {
145
+ let n, t, e, r, i, s = this, o = s.constructor, u = new o(1);
146
+ if (!s.isFinite()) return new o(s.s ? 1 / 0 : NaN);
147
+ if (s.isZero()) return u;
148
+ e = o.precision, r = o.rounding, o.precision = e + Math.max(s.e, s.sd()) + 4, o.rounding = 1, i = s.d.length, i < 32 ? (n = Math.ceil(i / 3), t = (1 / rn(4, n)).toString()) : (n = 16, t = "2.3283064365386962890625e-10"), s = $(o, 1, s.times(t), new o(1), !0);
149
+ let l, c = n, f = new o(8);
150
+ for (; c--; )
151
+ l = s.times(s), s = u.minus(l.times(f.minus(l.times(f))));
152
+ return g(s, o.precision = e, o.rounding = r, !0);
153
+ };
154
+ a.hyperbolicSine = a.sinh = function() {
155
+ let n, t, e, r, i = this, s = i.constructor;
156
+ if (!i.isFinite() || i.isZero()) return new s(i);
157
+ if (t = s.precision, e = s.rounding, s.precision = t + Math.max(i.e, i.sd()) + 4, s.rounding = 1, r = i.d.length, r < 3)
158
+ i = $(s, 2, i, i, !0);
159
+ else {
160
+ n = 1.4 * Math.sqrt(r), n = n > 16 ? 16 : n | 0, i = i.times(1 / rn(5, n)), i = $(s, 2, i, i, !0);
161
+ let o, u = new s(5), l = new s(16), c = new s(20);
162
+ for (; n--; )
163
+ o = i.times(i), i = i.times(u.plus(o.times(l.times(o).plus(c))));
164
+ }
165
+ return s.precision = t, s.rounding = e, g(i, t, e, !0);
166
+ };
167
+ a.hyperbolicTangent = a.tanh = function() {
168
+ let n, t, e = this, r = e.constructor;
169
+ return e.isFinite() ? e.isZero() ? new r(e) : (n = r.precision, t = r.rounding, r.precision = n + 7, r.rounding = 1, v(
170
+ e.sinh(),
171
+ e.cosh(),
172
+ r.precision = n,
173
+ r.rounding = t
174
+ )) : new r(e.s);
175
+ };
176
+ a.inverseCosine = a.acos = function() {
177
+ let n, t = this, e = t.constructor, r = t.abs().cmp(1), i = e.precision, s = e.rounding;
178
+ return r !== -1 ? r === 0 ? (
179
+ // |x| is 1
180
+ t.isNeg() ? R(e, i, s) : new e(0)
181
+ ) : (
182
+ // |x| > 1 or x is NaN
183
+ new e(NaN)
184
+ ) : t.isZero() ? R(e, i + 4, s).times(0.5) : (e.precision = i + 6, e.rounding = 1, t = t.asin(), n = R(e, i + 4, s).times(0.5), e.precision = i, e.rounding = s, n.minus(t));
185
+ };
186
+ a.inverseHyperbolicCosine = a.acosh = function() {
187
+ let n, t, e = this, r = e.constructor;
188
+ return e.lte(1) ? new r(e.eq(1) ? 0 : NaN) : e.isFinite() ? (n = r.precision, t = r.rounding, r.precision = n + Math.max(Math.abs(e.e), e.sd()) + 4, r.rounding = 1, w = !1, e = e.times(e).minus(1).sqrt().plus(e), w = !0, r.precision = n, r.rounding = t, e.ln()) : new r(e);
189
+ };
190
+ a.inverseHyperbolicSine = a.asinh = function() {
191
+ let n, t, e = this, r = e.constructor;
192
+ return !e.isFinite() || e.isZero() ? new r(e) : (n = r.precision, t = r.rounding, r.precision = n + 2 * Math.max(Math.abs(e.e), e.sd()) + 6, r.rounding = 1, w = !1, e = e.times(e).plus(1).sqrt().plus(e), w = !0, r.precision = n, r.rounding = t, e.ln());
193
+ };
194
+ a.inverseHyperbolicTangent = a.atanh = function() {
195
+ let n, t, e, r, i = this, s = i.constructor;
196
+ return i.isFinite() ? i.e >= 0 ? new s(i.abs().eq(1) ? i.s / 0 : i.isZero() ? i : NaN) : (n = s.precision, t = s.rounding, r = i.sd(), Math.max(r, n) < 2 * -i.e - 1 ? g(new s(i), n, t, !0) : (s.precision = e = r - i.e, i = v(i.plus(1), new s(1).minus(i), e + n, 1), s.precision = n + 4, s.rounding = 1, i = i.ln(), s.precision = n, s.rounding = t, i.times(0.5))) : new s(NaN);
197
+ };
198
+ a.inverseSine = a.asin = function() {
199
+ let n, t, e, r, i = this, s = i.constructor;
200
+ return i.isZero() ? new s(i) : (t = i.abs().cmp(1), e = s.precision, r = s.rounding, t !== -1 ? t === 0 ? (n = R(s, e + 4, r).times(0.5), n.s = i.s, n) : new s(NaN) : (s.precision = e + 6, s.rounding = 1, i = i.div(new s(1).minus(i.times(i)).sqrt().plus(1)).atan(), s.precision = e, s.rounding = r, i.times(2)));
201
+ };
202
+ a.inverseTangent = a.atan = function() {
203
+ let n, t, e, r, i, s, o, u, l, c = this, f = c.constructor, h = f.precision, d = f.rounding;
204
+ if (c.isFinite()) {
205
+ if (c.isZero())
206
+ return new f(c);
207
+ if (c.abs().eq(1) && h + 4 <= fn)
208
+ return o = R(f, h + 4, d).times(0.25), o.s = c.s, o;
209
+ } else {
210
+ if (!c.s) return new f(NaN);
211
+ if (h + 4 <= fn)
212
+ return o = R(f, h + 4, d).times(0.5), o.s = c.s, o;
213
+ }
214
+ for (f.precision = u = h + 10, f.rounding = 1, e = Math.min(28, u / m + 2 | 0), n = e; n; --n) c = c.div(c.times(c).plus(1).sqrt().plus(1));
215
+ for (w = !1, t = Math.ceil(u / m), r = 1, l = c.times(c), o = new f(c), i = c; n !== -1; )
216
+ if (i = i.times(l), s = o.minus(i.div(r += 2)), i = i.times(l), o = s.plus(i.div(r += 2)), o.d[t] !== void 0) for (n = t; o.d[n] === s.d[n] && n--; ) ;
217
+ return e && (o = o.times(2 << e - 1)), w = !0, g(o, f.precision = h, f.rounding = d, !0);
218
+ };
219
+ a.isFinite = function() {
220
+ return !!this.d;
221
+ };
222
+ a.isInteger = a.isInt = function() {
223
+ return !!this.d && A(this.e / m) > this.d.length - 2;
224
+ };
225
+ a.isNaN = function() {
226
+ return !this.s;
227
+ };
228
+ a.isNegative = a.isNeg = function() {
229
+ return this.s < 0;
230
+ };
231
+ a.isPositive = a.isPos = function() {
232
+ return this.s > 0;
233
+ };
234
+ a.isZero = function() {
235
+ return !!this.d && this.d[0] === 0;
236
+ };
237
+ a.lessThan = a.lt = function(n) {
238
+ return this.cmp(n) < 0;
239
+ };
240
+ a.lessThanOrEqualTo = a.lte = function(n) {
241
+ return this.cmp(n) < 1;
242
+ };
243
+ a.logarithm = a.log = function(n) {
244
+ let t, e, r, i, s, o, u, l, c = this, f = c.constructor, h = f.precision, d = f.rounding, p = 5;
245
+ if (n == null)
246
+ n = new f(10), t = !0;
247
+ else {
248
+ if (n = new f(n), e = n.d, n.s < 0 || !e || !e[0] || n.eq(1)) return new f(NaN);
249
+ t = n.eq(10);
250
+ }
251
+ if (e = c.d, c.s < 0 || !e || !e[0] || c.eq(1))
252
+ return new f(e && !e[0] ? -1 / 0 : c.s != 1 ? NaN : e ? 0 : 1 / 0);
253
+ if (t)
254
+ if (e.length > 1)
255
+ s = !0;
256
+ else {
257
+ for (i = e[0]; i % 10 === 0; ) i /= 10;
258
+ s = i !== 1;
259
+ }
260
+ if (w = !1, u = h + p, o = I(c, u), r = t ? nn(f, u + 10) : I(n, u), l = v(o, r, u, 1), W(l.d, i = h, d))
261
+ do
262
+ if (u += 10, o = I(c, u), r = t ? nn(f, u + 10) : I(n, u), l = v(o, r, u, 1), !s) {
263
+ +q(l.d).slice(i + 1, i + 15) + 1 == 1e14 && (l = g(l, h + 1, 0));
264
+ break;
265
+ }
266
+ while (W(l.d, i += 10, d));
267
+ return w = !0, g(l, h, d);
268
+ };
269
+ a.minus = a.sub = function(n) {
270
+ let t, e, r, i, s, o, u, l, c, f, h, d, p = this, b = p.constructor;
271
+ if (n = new b(n), !p.d || !n.d)
272
+ return !p.s || !n.s ? n = new b(NaN) : p.d ? n.s = -n.s : n = new b(n.d || p.s !== n.s ? p : NaN), n;
273
+ if (p.s != n.s)
274
+ return n.s = -n.s, p.plus(n);
275
+ if (c = p.d, d = n.d, u = b.precision, l = b.rounding, !c[0] || !d[0]) {
276
+ if (d[0]) n.s = -n.s;
277
+ else if (c[0]) n = new b(p);
278
+ else return new b(l === 3 ? -0 : 0);
279
+ return w ? g(n, u, l) : n;
280
+ }
281
+ if (e = A(n.e / m), f = A(p.e / m), c = c.slice(), s = f - e, s) {
282
+ for (h = s < 0, h ? (t = c, s = -s, o = d.length) : (t = d, e = f, o = c.length), r = Math.max(Math.ceil(u / m), o) + 2, s > r && (s = r, t.length = 1), t.reverse(), r = s; r--; ) t.push(0);
283
+ t.reverse();
284
+ } else {
285
+ for (r = c.length, o = d.length, h = r < o, h && (o = r), r = 0; r < o; r++)
286
+ if (c[r] != d[r]) {
287
+ h = c[r] < d[r];
288
+ break;
289
+ }
290
+ s = 0;
291
+ }
292
+ for (h && (t = c, c = d, d = t, n.s = -n.s), o = c.length, r = d.length - o; r > 0; --r) c[o++] = 0;
293
+ for (r = d.length; r > s; ) {
294
+ if (c[--r] < d[r]) {
295
+ for (i = r; i && c[--i] === 0; ) c[i] = T - 1;
296
+ --c[i], c[r] += T;
297
+ }
298
+ c[r] -= d[r];
299
+ }
300
+ for (; c[--o] === 0; ) c.pop();
301
+ for (; c[0] === 0; c.shift()) --e;
302
+ return c[0] ? (n.d = c, n.e = en(c, e), w ? g(n, u, l) : n) : new b(l === 3 ? -0 : 0);
303
+ };
304
+ a.modulo = a.mod = function(n) {
305
+ let t, e = this, r = e.constructor;
306
+ return n = new r(n), !e.d || !n.s || n.d && !n.d[0] ? new r(NaN) : !n.d || e.d && !e.d[0] ? g(new r(e), r.precision, r.rounding) : (w = !1, r.modulo == 9 ? (t = v(e, n.abs(), 0, 3, 1), t.s *= n.s) : t = v(e, n, 0, r.modulo, 1), t = t.times(n), w = !0, e.minus(t));
307
+ };
308
+ a.naturalExponential = a.exp = function() {
309
+ return hn(this);
310
+ };
311
+ a.naturalLogarithm = a.ln = function() {
312
+ return I(this);
313
+ };
314
+ a.negated = a.neg = function() {
315
+ let n = new this.constructor(this);
316
+ return n.s = -n.s, g(n);
317
+ };
318
+ a.plus = a.add = function(n) {
319
+ let t, e, r, i, s, o, u, l, c, f, h = this, d = h.constructor;
320
+ if (n = new d(n), !h.d || !n.d)
321
+ return !h.s || !n.s ? n = new d(NaN) : h.d || (n = new d(n.d || h.s === n.s ? h : NaN)), n;
322
+ if (h.s != n.s)
323
+ return n.s = -n.s, h.minus(n);
324
+ if (c = h.d, f = n.d, u = d.precision, l = d.rounding, !c[0] || !f[0])
325
+ return f[0] || (n = new d(h)), w ? g(n, u, l) : n;
326
+ if (s = A(h.e / m), r = A(n.e / m), c = c.slice(), i = s - r, i) {
327
+ for (i < 0 ? (e = c, i = -i, o = f.length) : (e = f, r = s, o = c.length), s = Math.ceil(u / m), o = s > o ? s + 1 : o + 1, i > o && (i = o, e.length = 1), e.reverse(); i--; ) e.push(0);
328
+ e.reverse();
329
+ }
330
+ for (o = c.length, i = f.length, o - i < 0 && (i = o, e = f, f = c, c = e), t = 0; i; )
331
+ t = (c[--i] = c[i] + f[i] + t) / T | 0, c[i] %= T;
332
+ for (t && (c.unshift(t), ++r), o = c.length; c[--o] == 0; ) c.pop();
333
+ return n.d = c, n.e = en(c, r), w ? g(n, u, l) : n;
334
+ };
335
+ a.precision = a.sd = function(n) {
336
+ let t, e = this;
337
+ if (n !== void 0 && n !== !!n && n !== 1 && n !== 0)
338
+ throw Error(C + n);
339
+ return e.d ? (t = xn(e.d), n && e.e + 1 > t && (t = e.e + 1)) : t = NaN, t;
340
+ };
341
+ a.round = function() {
342
+ let n = this, t = n.constructor;
343
+ return g(new t(n), n.e + 1, t.rounding);
344
+ };
345
+ a.sine = a.sin = function() {
346
+ let n, t, e = this, r = e.constructor;
347
+ return e.isFinite() ? e.isZero() ? new r(e) : (n = r.precision, t = r.rounding, r.precision = n + Math.max(e.e, e.sd()) + m, r.rounding = 1, e = In(r, On(r, e)), r.precision = n, r.rounding = t, g(L > 2 ? e.neg() : e, n, t, !0)) : new r(NaN);
348
+ };
349
+ a.squareRoot = a.sqrt = function() {
350
+ let n, t, e, r, i, s, o = this, u = o.d, l = o.e, c = o.s, f = o.constructor;
351
+ if (c !== 1 || !u || !u[0])
352
+ return new f(!c || c < 0 && (!u || u[0]) ? NaN : u ? o : 1 / 0);
353
+ for (w = !1, c = Math.sqrt(+o), c == 0 || c == 1 / 0 ? (t = q(u), (t.length + l) % 2 == 0 && (t += "0"), c = Math.sqrt(t), l = A((l + 1) / 2) - (l < 0 || l % 2), c == 1 / 0 ? t = "5e" + l : (t = c.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + l), r = new f(t)) : r = new f(c.toString()), e = (l = f.precision) + 3; ; )
354
+ if (s = r, r = s.plus(v(o, s, e + 2, 1)).times(0.5), q(s.d).slice(0, e) === (t = q(r.d)).slice(0, e))
355
+ if (t = t.slice(e - 3, e + 1), t == "9999" || !i && t == "4999") {
356
+ if (!i && (g(s, l + 1, 0), s.times(s).eq(o))) {
357
+ r = s;
358
+ break;
359
+ }
360
+ e += 4, i = 1;
361
+ } else {
362
+ (!+t || !+t.slice(1) && t.charAt(0) == "5") && (g(r, l + 1, 1), n = !r.times(r).eq(o));
363
+ break;
364
+ }
365
+ return w = !0, g(r, l, f.rounding, n);
366
+ };
367
+ a.tangent = a.tan = function() {
368
+ let n, t, e = this, r = e.constructor;
369
+ return e.isFinite() ? e.isZero() ? new r(e) : (n = r.precision, t = r.rounding, r.precision = n + 10, r.rounding = 1, e = e.sin(), e.s = 1, e = v(e, new r(1).minus(e.times(e)).sqrt(), n + 10, 0), r.precision = n, r.rounding = t, g(L == 2 || L == 4 ? e.neg() : e, n, t, !0)) : new r(NaN);
370
+ };
371
+ a.times = a.mul = function(n) {
372
+ let t, e, r, i, s, o, u, l, c, f = this, h = f.constructor, d = f.d, p = (n = new h(n)).d;
373
+ if (n.s *= f.s, !d || !d[0] || !p || !p[0])
374
+ return new h(
375
+ !n.s || d && !d[0] && !p || p && !p[0] && !d ? (
376
+ // Return NaN if either is NaN.
377
+ // Return NaN if x is ±0 and y is ±Infinity, or y is ±0 and x is ±Infinity.
378
+ NaN
379
+ ) : (
380
+ // Return ±Infinity if either is ±Infinity.
381
+ // Return ±0 if either is ±0.
382
+ !d || !p ? n.s / 0 : n.s * 0
383
+ )
384
+ );
385
+ for (e = A(f.e / m) + A(n.e / m), l = d.length, c = p.length, l < c && (s = d, d = p, p = s, o = l, l = c, c = o), s = [], o = l + c, r = o; r--; ) s.push(0);
386
+ for (r = c; --r >= 0; ) {
387
+ for (t = 0, i = l + r; i > r; )
388
+ u = s[i] + p[r] * d[i - r - 1] + t, s[i--] = u % T | 0, t = u / T | 0;
389
+ s[i] = (s[i] + t) % T | 0;
390
+ }
391
+ for (; !s[--o]; ) s.pop();
392
+ return t ? ++e : s.shift(), n.d = s, n.e = en(s, e), w ? g(n, h.precision, h.rounding) : n;
393
+ };
394
+ a.toBinary = function(n, t) {
395
+ return an(this, 2, n, t);
396
+ };
397
+ a.toDecimalPlaces = a.toDP = function(n, t) {
398
+ let e = this, r = e.constructor;
399
+ return e = new r(e), n === void 0 ? e : (D(n, 0, H), t === void 0 ? t = r.rounding : D(t, 0, 8), g(e, n + e.e + 1, t));
400
+ };
401
+ a.toExponential = function(n, t) {
402
+ let e, r = this, i = r.constructor;
403
+ return n === void 0 ? e = _(r, !0) : (D(n, 0, H), t === void 0 ? t = i.rounding : D(t, 0, 8), r = g(new i(r), n + 1, t), e = _(r, !0, n + 1)), r.isNeg() && !r.isZero() ? "-" + e : e;
404
+ };
405
+ a.toFixed = function(n, t) {
406
+ let e, r, i = this, s = i.constructor;
407
+ return n === void 0 ? e = _(i) : (D(n, 0, H), t === void 0 ? t = s.rounding : D(t, 0, 8), r = g(new s(i), n + i.e + 1, t), e = _(r, !1, n + r.e + 1)), i.isNeg() && !i.isZero() ? "-" + e : e;
408
+ };
409
+ a.toFraction = function(n) {
410
+ let t, e, r, i, s, o, u, l, c, f, h, d, p = this, b = p.d, N = p.constructor;
411
+ if (!b) return new N(p);
412
+ if (c = e = new N(1), r = l = new N(0), t = new N(r), s = t.e = xn(b) - p.e - 1, o = s % m, t.d[0] = M(10, o < 0 ? m + o : o), n == null)
413
+ n = s > 0 ? t : c;
414
+ else {
415
+ if (u = new N(n), !u.isInt() || u.lt(c)) throw Error(C + u);
416
+ n = u.gt(t) ? s > 0 ? t : c : u;
417
+ }
418
+ for (w = !1, u = new N(q(b)), f = N.precision, N.precision = s = b.length * m * 2; h = v(u, t, 0, 1, 1), i = e.plus(h.times(r)), i.cmp(n) != 1; )
419
+ e = r, r = i, i = c, c = l.plus(h.times(i)), l = i, i = t, t = u.minus(h.times(i)), u = i;
420
+ return i = v(n.minus(e), r, 0, 1, 1), l = l.plus(i.times(c)), e = e.plus(i.times(r)), l.s = c.s = p.s, d = v(c, r, s, 1).minus(p).abs().cmp(v(l, e, s, 1).minus(p).abs()) < 1 ? [c, r] : [l, e], N.precision = f, w = !0, d;
421
+ };
422
+ a.toHexadecimal = a.toHex = function(n, t) {
423
+ return an(this, 16, n, t);
424
+ };
425
+ a.toNearest = function(n, t) {
426
+ let e = this, r = e.constructor;
427
+ if (e = new r(e), n == null) {
428
+ if (!e.d) return e;
429
+ n = new r(1), t = r.rounding;
430
+ } else {
431
+ if (n = new r(n), t === void 0 ? t = r.rounding : D(t, 0, 8), !e.d) return n.s ? e : n;
432
+ if (!n.d)
433
+ return n.s && (n.s = e.s), n;
434
+ }
435
+ return n.d[0] ? (w = !1, e = v(e, n, 0, t, 1).times(n), w = !0, g(e)) : (n.s = e.s, e = n), e;
436
+ };
437
+ a.toNumber = function() {
438
+ return +this;
439
+ };
440
+ a.toOctal = function(n, t) {
441
+ return an(this, 8, n, t);
442
+ };
443
+ a.toPower = a.pow = function(n) {
444
+ let t, e, r, i, s, o, u = this, l = u.constructor, c = +(n = new l(n));
445
+ if (!u.d || !n.d || !u.d[0] || !n.d[0]) return new l(M(+u, c));
446
+ if (u = new l(u), u.eq(1)) return u;
447
+ if (r = l.precision, s = l.rounding, n.eq(1)) return g(u, r, s);
448
+ if (t = A(n.e / m), t >= n.d.length - 1 && (e = c < 0 ? -c : c) <= _n)
449
+ return i = yn(l, u, e, r), n.s < 0 ? new l(1).div(i) : g(i, r, s);
450
+ if (o = u.s, o < 0) {
451
+ if (t < n.d.length - 1) return new l(NaN);
452
+ if (n.d[t] & 1 || (o = 1), u.e == 0 && u.d[0] == 1 && u.d.length == 1)
453
+ return u.s = o, u;
454
+ }
455
+ return e = M(+u, c), t = e == 0 || !isFinite(e) ? A(
456
+ c * (Math.log("0." + q(u.d)) / Math.LN10 + u.e + 1)
457
+ ) : new l(e + "").e, t > l.maxE + 1 || t < l.minE - 1 ? new l(t > 0 ? o / 0 : 0) : (w = !1, l.rounding = u.s = 1, e = Math.min(12, (t + "").length), i = hn(n.times(I(u, r + e)), r), i.d && (i = g(i, r + 5, 1), W(i.d, r, s) && (t = r + 10, i = g(
458
+ hn(n.times(I(u, t + e)), t),
459
+ t + 5,
460
+ 1
461
+ ), +q(i.d).slice(r + 1, r + 15) + 1 == 1e14 && (i = g(i, r + 1, 0)))), i.s = o, w = !0, l.rounding = s, g(i, r, s));
462
+ };
463
+ a.toPrecision = function(n, t) {
464
+ let e, r = this, i = r.constructor;
465
+ return n === void 0 ? e = _(r, r.e <= i.toExpNeg || r.e >= i.toExpPos) : (D(n, 1, H), t === void 0 ? t = i.rounding : D(t, 0, 8), r = g(new i(r), n, t), e = _(r, n <= r.e || r.e <= i.toExpNeg, n)), r.isNeg() && !r.isZero() ? "-" + e : e;
466
+ };
467
+ a.toSignificantDigits = a.toSD = function(n, t) {
468
+ let e = this, r = e.constructor;
469
+ return n === void 0 ? (n = r.precision, t = r.rounding) : (D(n, 1, H), t === void 0 ? t = r.rounding : D(t, 0, 8)), g(new r(e), n, t);
470
+ };
471
+ a.toString = function() {
472
+ let n = this, t = n.constructor, e = _(n, n.e <= t.toExpNeg || n.e >= t.toExpPos);
473
+ return n.isNeg() && !n.isZero() ? "-" + e : e;
474
+ };
475
+ a.truncated = a.trunc = function() {
476
+ return g(new this.constructor(this), this.e + 1, 1);
477
+ };
478
+ a.valueOf = a.toJSON = function() {
479
+ let n = this, t = n.constructor, e = _(n, n.e <= t.toExpNeg || n.e >= t.toExpPos);
480
+ return n.isNeg() ? "-" + e : e;
481
+ };
482
+ function q(n) {
483
+ let t, e, r, i = n.length - 1, s = "", o = n[0];
484
+ if (i > 0) {
485
+ for (s += o, t = 1; t < i; t++)
486
+ r = n[t] + "", e = m - r.length, e && (s += U(e)), s += r;
487
+ o = n[t], r = o + "", e = m - r.length, e && (s += U(e));
488
+ } else if (o === 0)
489
+ return "0";
490
+ for (; o % 10 === 0; ) o /= 10;
491
+ return s + o;
492
+ }
493
+ function D(n, t, e) {
494
+ if (n !== ~~n || n < t || n > e)
495
+ throw Error(C + n);
496
+ }
497
+ function W(n, t, e, r) {
498
+ let i, s, o, u;
499
+ for (s = n[0]; s >= 10; s /= 10) --t;
500
+ return --t < 0 ? (t += m, i = 0) : (i = Math.ceil((t + 1) / m), t %= m), s = M(10, m - t), u = n[i] % s | 0, r == null ? t < 3 ? (t == 0 ? u = u / 100 | 0 : t == 1 && (u = u / 10 | 0), o = e < 4 && u == 99999 || e > 3 && u == 49999 || u == 5e4 || u == 0) : o = (e < 4 && u + 1 == s || e > 3 && u + 1 == s / 2) && (n[i + 1] / s / 100 | 0) == M(10, t - 2) - 1 || (u == s / 2 || u == 0) && (n[i + 1] / s / 100 | 0) == 0 : t < 4 ? (t == 0 ? u = u / 1e3 | 0 : t == 1 ? u = u / 100 | 0 : t == 2 && (u = u / 10 | 0), o = (r || e < 4) && u == 9999 || !r && e > 3 && u == 4999) : o = ((r || e < 4) && u + 1 == s || !r && e > 3 && u + 1 == s / 2) && (n[i + 1] / s / 1e3 | 0) == M(10, t - 3) - 1, o;
501
+ }
502
+ function Q(n, t, e) {
503
+ let r, i = [0], s, o = 0, u = n.length;
504
+ for (; o < u; ) {
505
+ for (s = i.length; s--; ) i[s] *= t;
506
+ for (i[0] += cn.indexOf(n.charAt(o++)), r = 0; r < i.length; r++)
507
+ i[r] > e - 1 && (i[r + 1] === void 0 && (i[r + 1] = 0), i[r + 1] += i[r] / e | 0, i[r] %= e);
508
+ }
509
+ return i.reverse();
510
+ }
511
+ function Ln(n, t) {
512
+ let e, r, i;
513
+ if (t.isZero()) return t;
514
+ r = t.d.length, r < 32 ? (e = Math.ceil(r / 3), i = (1 / rn(4, e)).toString()) : (e = 16, i = "2.3283064365386962890625e-10"), n.precision += e, t = $(n, 1, t.times(i), new n(1));
515
+ for (let s = e; s--; ) {
516
+ let o = t.times(t);
517
+ t = o.times(o).minus(o).times(8).plus(1);
518
+ }
519
+ return n.precision -= e, t;
520
+ }
521
+ let v = /* @__PURE__ */ function() {
522
+ function n(r, i, s) {
523
+ let o, u = 0, l = r.length;
524
+ for (r = r.slice(); l--; )
525
+ o = r[l] * i + u, r[l] = o % s | 0, u = o / s | 0;
526
+ return u && r.unshift(u), r;
527
+ }
528
+ function t(r, i, s, o) {
529
+ let u, l;
530
+ if (s != o)
531
+ l = s > o ? 1 : -1;
532
+ else
533
+ for (u = l = 0; u < s; u++)
534
+ if (r[u] != i[u]) {
535
+ l = r[u] > i[u] ? 1 : -1;
536
+ break;
537
+ }
538
+ return l;
539
+ }
540
+ function e(r, i, s, o) {
541
+ let u = 0;
542
+ for (; s--; )
543
+ r[s] -= u, u = r[s] < i[s] ? 1 : 0, r[s] = u * o + r[s] - i[s];
544
+ for (; !r[0] && r.length > 1; ) r.shift();
545
+ }
546
+ return function(r, i, s, o, u, l) {
547
+ let c, f, h, d, p, b, N, Z, y, S, E, O, J, k, sn, z, j, on, P, G, K = r.constructor, un = r.s == i.s ? 1 : -1, F = r.d, x = i.d;
548
+ if (!F || !F[0] || !x || !x[0])
549
+ return new K(
550
+ // Return NaN if either NaN, or both Infinity or 0.
551
+ !r.s || !i.s || (F ? x && F[0] == x[0] : !x) ? NaN : (
552
+ // Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0.
553
+ F && F[0] == 0 || !x ? un * 0 : un / 0
554
+ )
555
+ );
556
+ for (l ? (p = 1, f = r.e - i.e) : (l = T, p = m, f = A(r.e / p) - A(i.e / p)), P = x.length, j = F.length, y = new K(un), S = y.d = [], h = 0; x[h] == (F[h] || 0); h++) ;
557
+ if (x[h] > (F[h] || 0) && f--, s == null ? (k = s = K.precision, o = K.rounding) : u ? k = s + (r.e - i.e) + 1 : k = s, k < 0)
558
+ S.push(1), b = !0;
559
+ else {
560
+ if (k = k / p + 2 | 0, h = 0, P == 1) {
561
+ for (d = 0, x = x[0], k++; (h < j || d) && k--; h++)
562
+ sn = d * l + (F[h] || 0), S[h] = sn / x | 0, d = sn % x | 0;
563
+ b = d || h < j;
564
+ } else {
565
+ for (d = l / (x[0] + 1) | 0, d > 1 && (x = n(x, d, l), F = n(F, d, l), P = x.length, j = F.length), z = P, E = F.slice(0, P), O = E.length; O < P; ) E[O++] = 0;
566
+ G = x.slice(), G.unshift(0), on = x[0], x[1] >= l / 2 && ++on;
567
+ do
568
+ d = 0, c = t(x, E, P, O), c < 0 ? (J = E[0], P != O && (J = J * l + (E[1] || 0)), d = J / on | 0, d > 1 ? (d >= l && (d = l - 1), N = n(x, d, l), Z = N.length, O = E.length, c = t(N, E, Z, O), c == 1 && (d--, e(N, P < Z ? G : x, Z, l))) : (d == 0 && (c = d = 1), N = x.slice()), Z = N.length, Z < O && N.unshift(0), e(E, N, O, l), c == -1 && (O = E.length, c = t(x, E, P, O), c < 1 && (d++, e(E, P < O ? G : x, O, l))), O = E.length) : c === 0 && (d++, E = [0]), S[h++] = d, c && E[0] ? E[O++] = F[z] || 0 : (E = [F[z]], O = 1);
569
+ while ((z++ < j || E[0] !== void 0) && k--);
570
+ b = E[0] !== void 0;
571
+ }
572
+ S[0] || S.shift();
573
+ }
574
+ if (p == 1)
575
+ y.e = f, wn = b;
576
+ else {
577
+ for (h = 1, d = S[0]; d >= 10; d /= 10) h++;
578
+ y.e = h + f * p - 1, g(y, u ? s + y.e + 1 : s, o, b);
579
+ }
580
+ return y;
581
+ };
582
+ }();
583
+ function g(n, t, e, r) {
584
+ let i, s, o, u, l, c, f, h, d, p = n.constructor;
585
+ n: if (t != null) {
586
+ if (h = n.d, !h) return n;
587
+ for (i = 1, u = h[0]; u >= 10; u /= 10) i++;
588
+ if (s = t - i, s < 0)
589
+ s += m, o = t, f = h[d = 0], l = f / M(10, i - o - 1) % 10 | 0;
590
+ else if (d = Math.ceil((s + 1) / m), u = h.length, d >= u)
591
+ if (r) {
592
+ for (; u++ <= d; ) h.push(0);
593
+ f = l = 0, i = 1, s %= m, o = s - m + 1;
594
+ } else
595
+ break n;
596
+ else {
597
+ for (f = u = h[d], i = 1; u >= 10; u /= 10) i++;
598
+ s %= m, o = s - m + i, l = o < 0 ? 0 : f / M(10, i - o - 1) % 10 | 0;
599
+ }
600
+ if (r = r || t < 0 || h[d + 1] !== void 0 || (o < 0 ? f : f % M(10, i - o - 1)), c = e < 4 ? (l || r) && (e == 0 || e == (n.s < 0 ? 3 : 2)) : l > 5 || l == 5 && (e == 4 || r || e == 6 && // Check whether the digit to the left of the rounding digit is odd.
601
+ (s > 0 ? o > 0 ? f / M(10, i - o) : 0 : h[d - 1]) % 10 & 1 || e == (n.s < 0 ? 8 : 7)), t < 1 || !h[0])
602
+ return h.length = 0, c ? (t -= n.e + 1, h[0] = M(10, (m - t % m) % m), n.e = -t || 0) : h[0] = n.e = 0, n;
603
+ if (s == 0 ? (h.length = d, u = 1, d--) : (h.length = d + 1, u = M(10, m - s), h[d] = o > 0 ? (f / M(10, i - o) % M(10, o) | 0) * u : 0), c)
604
+ for (; ; )
605
+ if (d == 0) {
606
+ for (s = 1, o = h[0]; o >= 10; o /= 10) s++;
607
+ for (o = h[0] += u, u = 1; o >= 10; o /= 10) u++;
608
+ s != u && (n.e++, h[0] == T && (h[0] = 1));
609
+ break;
610
+ } else {
611
+ if (h[d] += u, h[d] != T) break;
612
+ h[d--] = 0, u = 1;
613
+ }
614
+ for (s = h.length; h[--s] === 0; ) h.pop();
615
+ }
616
+ return w && (n.e > p.maxE ? (n.d = null, n.e = NaN) : n.e < p.minE && (n.e = 0, n.d = [0])), n;
617
+ }
618
+ function _(n, t, e) {
619
+ if (!n.isFinite()) return qn(n);
620
+ let r, i = n.e, s = q(n.d), o = s.length;
621
+ return t ? (e && (r = e - o) > 0 ? s = s.charAt(0) + "." + s.slice(1) + U(r) : o > 1 && (s = s.charAt(0) + "." + s.slice(1)), s = s + (n.e < 0 ? "e" : "e+") + n.e) : i < 0 ? (s = "0." + U(-i - 1) + s, e && (r = e - o) > 0 && (s += U(r))) : i >= o ? (s += U(i + 1 - o), e && (r = e - i - 1) > 0 && (s = s + "." + U(r))) : ((r = i + 1) < o && (s = s.slice(0, r) + "." + s.slice(r)), e && (r = e - o) > 0 && (i + 1 === o && (s += "."), s += U(r))), s;
622
+ }
623
+ function en(n, t) {
624
+ let e = n[0];
625
+ for (t *= m; e >= 10; e /= 10) t++;
626
+ return t;
627
+ }
628
+ function nn(n, t, e) {
629
+ if (t > kn)
630
+ throw w = !0, e && (n.precision = e), Error(Nn);
631
+ return g(new n(X), t, 1, !0);
632
+ }
633
+ function R(n, t, e) {
634
+ if (t > fn) throw Error(Nn);
635
+ return g(new n(Y), t, e, !0);
636
+ }
637
+ function xn(n) {
638
+ let t = n.length - 1, e = t * m + 1;
639
+ if (t = n[t], t) {
640
+ for (; t % 10 == 0; t /= 10) e--;
641
+ for (t = n[0]; t >= 10; t /= 10) e++;
642
+ }
643
+ return e;
644
+ }
645
+ function U(n) {
646
+ let t = "";
647
+ for (; n--; ) t += "0";
648
+ return t;
649
+ }
650
+ function yn(n, t, e, r) {
651
+ let i, s = new n(1), o = Math.ceil(r / m + 4);
652
+ for (w = !1; ; ) {
653
+ if (e % 2 && (s = s.times(t), pn(s.d, o) && (i = !0)), e = A(e / 2), e === 0) {
654
+ e = s.d.length - 1, i && s.d[e] === 0 && ++s.d[e];
655
+ break;
656
+ }
657
+ t = t.times(t), pn(t.d, o);
658
+ }
659
+ return w = !0, s;
660
+ }
661
+ function gn(n) {
662
+ return n.d[n.d.length - 1] & 1;
663
+ }
664
+ function Mn(n, t, e) {
665
+ let r, i = new n(t[0]), s = 0;
666
+ for (; ++s < t.length; )
667
+ if (r = new n(t[s]), r.s)
668
+ i[e](r) && (i = r);
669
+ else {
670
+ i = r;
671
+ break;
672
+ }
673
+ return i;
674
+ }
675
+ function hn(n, t) {
676
+ let e, r, i, s, o, u, l, c = 0, f = 0, h = 0, d = n.constructor, p = d.rounding, b = d.precision;
677
+ if (!n.d || !n.d[0] || n.e > 17)
678
+ return new d(
679
+ n.d ? n.d[0] ? n.s < 0 ? 0 : 1 / 0 : 1 : n.s ? n.s < 0 ? 0 : n : NaN
680
+ );
681
+ for (t == null ? (w = !1, l = b) : l = t, u = new d(0.03125); n.e > -2; )
682
+ n = n.times(u), h += 5;
683
+ for (r = Math.log(M(2, h)) / Math.LN10 * 2 + 5 | 0, l += r, e = s = o = new d(1), d.precision = l; ; ) {
684
+ if (s = g(s.times(n), l, 1), e = e.times(++f), u = o.plus(v(s, e, l, 1)), q(u.d).slice(0, l) === q(o.d).slice(0, l)) {
685
+ for (i = h; i--; ) o = g(o.times(o), l, 1);
686
+ if (t == null)
687
+ if (c < 3 && W(o.d, l - r, p, c))
688
+ d.precision = l += 10, e = s = u = new d(1), f = 0, c++;
689
+ else
690
+ return g(o, d.precision = b, p, w = !0);
691
+ else
692
+ return d.precision = b, o;
693
+ }
694
+ o = u;
695
+ }
696
+ }
697
+ function I(n, t) {
698
+ let e, r, i, s, o, u, l, c, f, h, d, p = 1, b = 10, N = n, Z = N.d, y = N.constructor, S = y.rounding, E = y.precision;
699
+ if (N.s < 0 || !Z || !Z[0] || !N.e && Z[0] == 1 && Z.length == 1)
700
+ return new y(Z && !Z[0] ? -1 / 0 : N.s != 1 ? NaN : Z ? 0 : N);
701
+ if (t == null ? (w = !1, f = E) : f = t, y.precision = f += b, e = q(Z), r = e.charAt(0), Math.abs(s = N.e) < 15e14) {
702
+ for (; r < 7 && r != 1 || r == 1 && e.charAt(1) > 3; )
703
+ N = N.times(n), e = q(N.d), r = e.charAt(0), p++;
704
+ s = N.e, r > 1 ? (N = new y("0." + e), s++) : N = new y(r + "." + e.slice(1));
705
+ } else
706
+ return c = nn(y, f + 2, E).times(s + ""), N = I(new y(r + "." + e.slice(1)), f - b).plus(c), y.precision = E, t == null ? g(N, E, S, w = !0) : N;
707
+ for (h = N, l = o = N = v(N.minus(1), N.plus(1), f, 1), d = g(N.times(N), f, 1), i = 3; ; ) {
708
+ if (o = g(o.times(d), f, 1), c = l.plus(v(o, new y(i), f, 1)), q(c.d).slice(0, f) === q(l.d).slice(0, f))
709
+ if (l = l.times(2), s !== 0 && (l = l.plus(nn(y, f + 2, E).times(s + ""))), l = v(l, new y(p), f, 1), t == null)
710
+ if (W(l.d, f - b, S, u))
711
+ y.precision = f += b, c = o = N = v(h.minus(1), h.plus(1), f, 1), d = g(N.times(N), f, 1), i = u = 1;
712
+ else
713
+ return g(l, y.precision = E, S, w = !0);
714
+ else
715
+ return y.precision = E, l;
716
+ l = c, i += 2;
717
+ }
718
+ }
719
+ function qn(n) {
720
+ return String(n.s * n.s / 0);
721
+ }
722
+ function dn(n, t) {
723
+ let e, r, i;
724
+ for ((e = t.indexOf(".")) > -1 && (t = t.replace(".", "")), (r = t.search(/e/i)) > 0 ? (e < 0 && (e = r), e += +t.slice(r + 1), t = t.substring(0, r)) : e < 0 && (e = t.length), r = 0; t.charCodeAt(r) === 48; r++) ;
725
+ for (i = t.length; t.charCodeAt(i - 1) === 48; --i) ;
726
+ if (t = t.slice(r, i), t) {
727
+ if (i -= r, n.e = e = e - r - 1, n.d = [], r = (e + 1) % m, e < 0 && (r += m), r < i) {
728
+ for (r && n.d.push(+t.slice(0, r)), i -= m; r < i; ) n.d.push(+t.slice(r, r += m));
729
+ t = t.slice(r), r = m - t.length;
730
+ } else
731
+ r -= i;
732
+ for (; r--; ) t += "0";
733
+ n.d.push(+t), w && (n.e > n.constructor.maxE ? (n.d = null, n.e = NaN) : n.e < n.constructor.minE && (n.e = 0, n.d = [0]));
734
+ } else
735
+ n.e = 0, n.d = [0];
736
+ return n;
737
+ }
738
+ function Un(n, t) {
739
+ let e, r, i, s, o, u, l, c, f;
740
+ if (t.indexOf("_") > -1) {
741
+ if (t = t.replace(/(\d)_(?=\d)/g, "$1"), vn.test(t)) return dn(n, t);
742
+ } else if (t === "Infinity" || t === "NaN")
743
+ return +t || (n.s = NaN), n.e = NaN, n.d = null, n;
744
+ if (Rn.test(t))
745
+ e = 16, t = t.toLowerCase();
746
+ else if (Pn.test(t))
747
+ e = 2;
748
+ else if (Tn.test(t))
749
+ e = 8;
750
+ else
751
+ throw Error(C + t);
752
+ for (s = t.search(/p/i), s > 0 ? (l = +t.slice(s + 1), t = t.substring(2, s)) : t = t.slice(2), s = t.indexOf("."), o = s >= 0, r = n.constructor, o && (t = t.replace(".", ""), u = t.length, s = u - s, i = yn(r, new r(e), s, s * 2)), c = Q(t, e, T), f = c.length - 1, s = f; c[s] === 0; --s) c.pop();
753
+ return s < 0 ? new r(n.s * 0) : (n.e = en(c, f), n.d = c, w = !1, o && (n = v(n, i, u * 4)), l && (n = n.times(Math.abs(l) < 54 ? M(2, l) : B.pow(2, l))), w = !0, n);
754
+ }
755
+ function In(n, t) {
756
+ let e, r = t.d.length;
757
+ if (r < 3)
758
+ return t.isZero() ? t : $(n, 2, t, t);
759
+ e = 1.4 * Math.sqrt(r), e = e > 16 ? 16 : e | 0, t = t.times(1 / rn(5, e)), t = $(n, 2, t, t);
760
+ let i, s = new n(5), o = new n(16), u = new n(20);
761
+ for (; e--; )
762
+ i = t.times(t), t = t.times(s.plus(i.times(o.times(i).minus(u))));
763
+ return t;
764
+ }
765
+ function $(n, t, e, r, i) {
766
+ let s, o, u, l, c = n.precision, f = Math.ceil(c / m);
767
+ for (w = !1, l = e.times(e), u = new n(r); ; ) {
768
+ if (o = v(u.times(l), new n(t++ * t++), c, 1), u = i ? r.plus(o) : r.minus(o), r = v(o.times(l), new n(t++ * t++), c, 1), o = u.plus(r), o.d[f] !== void 0) {
769
+ for (s = f; o.d[s] === u.d[s] && s--; ) ;
770
+ if (s == -1) break;
771
+ }
772
+ s = u, u = r, r = o, o = s;
773
+ }
774
+ return w = !0, o.d.length = f + 1, o;
775
+ }
776
+ function rn(n, t) {
777
+ let e = n;
778
+ for (; --t; ) e *= n;
779
+ return e;
780
+ }
781
+ function On(n, t) {
782
+ let e, r = t.s < 0, i = R(n, n.precision, 1), s = i.times(0.5);
783
+ if (t = t.abs(), t.lte(s))
784
+ return L = r ? 4 : 1, t;
785
+ if (e = t.divToInt(i), e.isZero())
786
+ L = r ? 3 : 2;
787
+ else {
788
+ if (t = t.minus(e.times(i)), t.lte(s))
789
+ return L = gn(e) ? r ? 2 : 3 : r ? 4 : 1, t;
790
+ L = gn(e) ? r ? 1 : 4 : r ? 3 : 2;
791
+ }
792
+ return t.minus(i).abs();
793
+ }
794
+ function an(n, t, e, r) {
795
+ let i, s, o, u, l, c, f, h, d, p = n.constructor, b = e !== void 0;
796
+ if (b ? (D(e, 1, H), r === void 0 ? r = p.rounding : D(r, 0, 8)) : (e = p.precision, r = p.rounding), !n.isFinite())
797
+ f = qn(n);
798
+ else {
799
+ for (f = _(n), o = f.indexOf("."), b ? (i = 2, t == 16 ? e = e * 4 - 3 : t == 8 && (e = e * 3 - 2)) : i = t, o >= 0 && (f = f.replace(".", ""), d = new p(1), d.e = f.length - o, d.d = Q(_(d), 10, i), d.e = d.d.length), h = Q(f, 10, i), s = l = h.length; h[--l] == 0; ) h.pop();
800
+ if (!h[0])
801
+ f = b ? "0p+0" : "0";
802
+ else {
803
+ if (o < 0 ? s-- : (n = new p(n), n.d = h, n.e = s, n = v(n, d, e, r, 0, i), h = n.d, s = n.e, c = wn), o = h[e], u = i / 2, c = c || h[e + 1] !== void 0, c = r < 4 ? (o !== void 0 || c) && (r === 0 || r === (n.s < 0 ? 3 : 2)) : o > u || o === u && (r === 4 || c || r === 6 && h[e - 1] & 1 || r === (n.s < 0 ? 8 : 7)), h.length = e, c)
804
+ for (; ++h[--e] > i - 1; )
805
+ h[e] = 0, e || (++s, h.unshift(1));
806
+ for (l = h.length; !h[l - 1]; --l) ;
807
+ for (o = 0, f = ""; o < l; o++) f += cn.charAt(h[o]);
808
+ if (b) {
809
+ if (l > 1)
810
+ if (t == 16 || t == 8) {
811
+ for (o = t == 16 ? 4 : 3, --l; l % o; l++) f += "0";
812
+ for (h = Q(f, i, t), l = h.length; !h[l - 1]; --l) ;
813
+ for (o = 1, f = "1."; o < l; o++) f += cn.charAt(h[o]);
814
+ } else
815
+ f = f.charAt(0) + "." + f.slice(1);
816
+ f = f + (s < 0 ? "p" : "p+") + s;
817
+ } else if (s < 0) {
818
+ for (; ++s; ) f = "0" + f;
819
+ f = "0." + f;
820
+ } else if (++s > l) for (s -= l; s--; ) f += "0";
821
+ else s < l && (f = f.slice(0, s) + "." + f.slice(s));
822
+ }
823
+ f = (t == 16 ? "0x" : t == 2 ? "0b" : t == 8 ? "0o" : "") + f;
824
+ }
825
+ return n.s < 0 ? "-" + f : f;
826
+ }
827
+ function pn(n, t) {
828
+ if (n.length > t)
829
+ return n.length = t, !0;
830
+ }
831
+ function Cn(n) {
832
+ return new this(n).abs();
833
+ }
834
+ function Hn(n) {
835
+ return new this(n).acos();
836
+ }
837
+ function Bn(n) {
838
+ return new this(n).acosh();
839
+ }
840
+ function Vn(n, t) {
841
+ return new this(n).plus(t);
842
+ }
843
+ function $n(n) {
844
+ return new this(n).asin();
845
+ }
846
+ function jn(n) {
847
+ return new this(n).asinh();
848
+ }
849
+ function Wn(n) {
850
+ return new this(n).atan();
851
+ }
852
+ function Jn(n) {
853
+ return new this(n).atanh();
854
+ }
855
+ function zn(n, t) {
856
+ n = new this(n), t = new this(t);
857
+ let e, r = this.precision, i = this.rounding, s = r + 4;
858
+ return !n.s || !t.s ? e = new this(NaN) : !n.d && !t.d ? (e = R(this, s, 1).times(t.s > 0 ? 0.25 : 0.75), e.s = n.s) : !t.d || n.isZero() ? (e = t.s < 0 ? R(this, r, i) : new this(0), e.s = n.s) : !n.d || t.isZero() ? (e = R(this, s, 1).times(0.5), e.s = n.s) : t.s < 0 ? (this.precision = s, this.rounding = 1, e = this.atan(v(n, t, s, 1)), t = R(this, s, 1), this.precision = r, this.rounding = i, e = n.s < 0 ? e.minus(t) : e.plus(t)) : e = this.atan(v(n, t, s, 1)), e;
859
+ }
860
+ function Gn(n) {
861
+ return new this(n).cbrt();
862
+ }
863
+ function Kn(n) {
864
+ return g(n = new this(n), n.e + 1, 2);
865
+ }
866
+ function Qn(n, t, e) {
867
+ return new this(n).clamp(t, e);
868
+ }
869
+ function Xn(n) {
870
+ if (!n || typeof n != "object")
871
+ throw Error(tn + "Object expected");
872
+ let t, e, r, i = n.defaults === !0, s = [
873
+ "precision",
874
+ 1,
875
+ H,
876
+ "rounding",
877
+ 0,
878
+ 8,
879
+ "toExpNeg",
880
+ -V,
881
+ 0,
882
+ "toExpPos",
883
+ 0,
884
+ V,
885
+ "maxE",
886
+ 0,
887
+ V,
888
+ "minE",
889
+ -V,
890
+ 0,
891
+ "modulo",
892
+ 0,
893
+ 9
894
+ ];
895
+ for (t = 0; t < s.length; t += 3)
896
+ if (e = s[t], i && (this[e] = ln[e]), (r = n[e]) !== void 0)
897
+ if (A(r) === r && r >= s[t + 1] && r <= s[t + 2]) this[e] = r;
898
+ else throw Error(C + e + ": " + r);
899
+ if (e = "crypto", i && (this[e] = ln[e]), (r = n[e]) !== void 0)
900
+ if (r === !0 || r === !1 || r === 0 || r === 1)
901
+ if (r)
902
+ if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
903
+ this[e] = !0;
904
+ else
905
+ throw Error(bn);
906
+ else
907
+ this[e] = !1;
908
+ else
909
+ throw Error(C + e + ": " + r);
910
+ return this;
911
+ }
912
+ function Yn(n) {
913
+ return new this(n).cos();
914
+ }
915
+ function nt(n) {
916
+ return new this(n).cosh();
917
+ }
918
+ function Fn(n) {
919
+ let t, e, r;
920
+ function i(s) {
921
+ let o, u, l, c = this;
922
+ if (!(c instanceof i)) return new i(s);
923
+ if (c.constructor = i, mn(s)) {
924
+ c.s = s.s, w ? !s.d || s.e > i.maxE ? (c.e = NaN, c.d = null) : s.e < i.minE ? (c.e = 0, c.d = [0]) : (c.e = s.e, c.d = s.d.slice()) : (c.e = s.e, c.d = s.d ? s.d.slice() : s.d);
925
+ return;
926
+ }
927
+ if (l = typeof s, l === "number") {
928
+ if (s === 0) {
929
+ c.s = 1 / s < 0 ? -1 : 1, c.e = 0, c.d = [0];
930
+ return;
931
+ }
932
+ if (s < 0 ? (s = -s, c.s = -1) : c.s = 1, s === ~~s && s < 1e7) {
933
+ for (o = 0, u = s; u >= 10; u /= 10) o++;
934
+ w ? o > i.maxE ? (c.e = NaN, c.d = null) : o < i.minE ? (c.e = 0, c.d = [0]) : (c.e = o, c.d = [s]) : (c.e = o, c.d = [s]);
935
+ return;
936
+ } else if (s * 0 !== 0) {
937
+ s || (c.s = NaN), c.e = NaN, c.d = null;
938
+ return;
939
+ }
940
+ return dn(c, s.toString());
941
+ } else if (l !== "string")
942
+ throw Error(C + s);
943
+ return (u = s.charCodeAt(0)) === 45 ? (s = s.slice(1), c.s = -1) : (u === 43 && (s = s.slice(1)), c.s = 1), vn.test(s) ? dn(c, s) : Un(c, s);
944
+ }
945
+ if (i.prototype = a, i.ROUND_UP = 0, i.ROUND_DOWN = 1, i.ROUND_CEIL = 2, i.ROUND_FLOOR = 3, i.ROUND_HALF_UP = 4, i.ROUND_HALF_DOWN = 5, i.ROUND_HALF_EVEN = 6, i.ROUND_HALF_CEIL = 7, i.ROUND_HALF_FLOOR = 8, i.EUCLID = 9, i.config = i.set = Xn, i.clone = Fn, i.isDecimal = mn, i.abs = Cn, i.acos = Hn, i.acosh = Bn, i.add = Vn, i.asin = $n, i.asinh = jn, i.atan = Wn, i.atanh = Jn, i.atan2 = zn, i.cbrt = Gn, i.ceil = Kn, i.clamp = Qn, i.cos = Yn, i.cosh = nt, i.div = tt, i.exp = et, i.floor = rt, i.hypot = it, i.ln = st, i.log = ot, i.log10 = ct, i.log2 = ut, i.max = lt, i.min = ft, i.mod = ht, i.mul = dt, i.pow = at, i.random = gt, i.round = pt, i.sign = mt, i.sin = wt, i.sinh = Nt, i.sqrt = bt, i.sub = Et, i.sum = vt, i.tan = xt, i.tanh = yt, i.trunc = Mt, n === void 0 && (n = {}), n && n.defaults !== !0)
946
+ for (r = [
947
+ "precision",
948
+ "rounding",
949
+ "toExpNeg",
950
+ "toExpPos",
951
+ "maxE",
952
+ "minE",
953
+ "modulo",
954
+ "crypto"
955
+ ], t = 0; t < r.length; )
956
+ Object.prototype.hasOwnProperty.call(n, e = r[t++]) || (n[e] = this[e]);
957
+ return i.config(n), i;
958
+ }
959
+ function tt(n, t) {
960
+ return new this(n).div(t);
961
+ }
962
+ function et(n) {
963
+ return new this(n).exp();
964
+ }
965
+ function rt(n) {
966
+ return g(n = new this(n), n.e + 1, 3);
967
+ }
968
+ function it() {
969
+ let n, t, e = new this(0);
970
+ for (w = !1, n = 0; n < arguments.length; )
971
+ if (t = new this(arguments[n++]), t.d)
972
+ e.d && (e = e.plus(t.times(t)));
973
+ else {
974
+ if (t.s)
975
+ return w = !0, new this(1 / 0);
976
+ e = t;
977
+ }
978
+ return w = !0, e.sqrt();
979
+ }
980
+ function mn(n) {
981
+ return n instanceof B || n && n.toStringTag === En || !1;
982
+ }
983
+ function st(n) {
984
+ return new this(n).ln();
985
+ }
986
+ function ot(n, t) {
987
+ return new this(n).log(t);
988
+ }
989
+ function ut(n) {
990
+ return new this(n).log(2);
991
+ }
992
+ function ct(n) {
993
+ return new this(n).log(10);
994
+ }
995
+ function lt() {
996
+ return Mn(this, arguments, "lt");
997
+ }
998
+ function ft() {
999
+ return Mn(this, arguments, "gt");
1000
+ }
1001
+ function ht(n, t) {
1002
+ return new this(n).mod(t);
1003
+ }
1004
+ function dt(n, t) {
1005
+ return new this(n).mul(t);
1006
+ }
1007
+ function at(n, t) {
1008
+ return new this(n).pow(t);
1009
+ }
1010
+ function gt(n) {
1011
+ let t, e, r, i, s = 0, o = new this(1), u = [];
1012
+ if (n === void 0 ? n = this.precision : D(n, 1, H), r = Math.ceil(n / m), this.crypto)
1013
+ if (crypto.getRandomValues)
1014
+ for (t = crypto.getRandomValues(new Uint32Array(r)); s < r; )
1015
+ i = t[s], i >= 429e7 ? t[s] = crypto.getRandomValues(new Uint32Array(1))[0] : u[s++] = i % 1e7;
1016
+ else if (crypto.randomBytes) {
1017
+ for (t = crypto.randomBytes(r *= 4); s < r; )
1018
+ i = t[s] + (t[s + 1] << 8) + (t[s + 2] << 16) + ((t[s + 3] & 127) << 24), i >= 214e7 ? crypto.randomBytes(4).copy(t, s) : (u.push(i % 1e7), s += 4);
1019
+ s = r / 4;
1020
+ } else
1021
+ throw Error(bn);
1022
+ else for (; s < r; ) u[s++] = Math.random() * 1e7 | 0;
1023
+ for (r = u[--s], n %= m, r && n && (i = M(10, m - n), u[s] = (r / i | 0) * i); u[s] === 0; s--) u.pop();
1024
+ if (s < 0)
1025
+ e = 0, u = [0];
1026
+ else {
1027
+ for (e = -1; u[0] === 0; e -= m) u.shift();
1028
+ for (r = 1, i = u[0]; i >= 10; i /= 10) r++;
1029
+ r < m && (e -= m - r);
1030
+ }
1031
+ return o.e = e, o.d = u, o;
1032
+ }
1033
+ function pt(n) {
1034
+ return g(n = new this(n), n.e + 1, this.rounding);
1035
+ }
1036
+ function mt(n) {
1037
+ return n = new this(n), n.d ? n.d[0] ? n.s : 0 * n.s : n.s || NaN;
1038
+ }
1039
+ function wt(n) {
1040
+ return new this(n).sin();
1041
+ }
1042
+ function Nt(n) {
1043
+ return new this(n).sinh();
1044
+ }
1045
+ function bt(n) {
1046
+ return new this(n).sqrt();
1047
+ }
1048
+ function Et(n, t) {
1049
+ return new this(n).sub(t);
1050
+ }
1051
+ function vt() {
1052
+ let n = 0, t = arguments, e = new this(t[n]);
1053
+ for (w = !1; e.s && ++n < t.length; ) e = e.plus(t[n]);
1054
+ return w = !0, g(e, this.precision, this.rounding);
1055
+ }
1056
+ function xt(n) {
1057
+ return new this(n).tan();
1058
+ }
1059
+ function yt(n) {
1060
+ return new this(n).tanh();
1061
+ }
1062
+ function Mt(n) {
1063
+ return g(n = new this(n), n.e + 1, 1);
1064
+ }
1065
+ a[Symbol.for("nodejs.util.inspect.custom")] = a.toString;
1066
+ a[Symbol.toStringTag] = "Decimal";
1067
+ let B = a.constructor = Fn(ln);
1068
+ X = new B(X);
1069
+ Y = new B(Y);
1070
+ function An(n, t) {
1071
+ return new B(n).plus(t).toNumber();
1072
+ }
1073
+ function Zn(n, t) {
1074
+ return new B(n).minus(t).toNumber();
1075
+ }
1076
+ function Dn(n, t) {
1077
+ return new B(n).times(t).toNumber();
1078
+ }
1079
+ function Sn(n, t) {
1080
+ return new B(n).div(t).toNumber();
1081
+ }
1082
+ const qt = An, Ot = Zn, Ft = Dn, At = Sn, Zt = {
1083
+ plus: An,
1084
+ minus: Zn,
1085
+ times: Dn,
1086
+ div: Sn,
1087
+ add: qt,
1088
+ subtract: Ot,
1089
+ multiply: Ft,
1090
+ divide: At
1091
+ };
1092
+ export {
1093
+ At as d,
1094
+ Zn as i,
1095
+ Zt as l,
1096
+ Dn as o,
1097
+ An as u
1098
+ };