@unicom-cloud/ui 0.8.67 → 0.8.68

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 (625) hide show
  1. package/Affix.js +15 -124
  2. package/Alert.js +13 -110
  3. package/Anchor.js +2 -2
  4. package/AutoComplete.js +15 -146
  5. package/Avatar.js +4 -154
  6. package/BackTop.js +14 -83
  7. package/Badge.js +12 -176
  8. package/Breadcrumb.js +12 -138
  9. package/Button.js +12 -149
  10. package/Calendar.js +12 -569
  11. package/Card.js +10 -136
  12. package/Carousel.js +13 -380
  13. package/Cascader.js +2 -2
  14. package/Checkbox.js +2 -2
  15. package/Collapse.js +2 -2
  16. package/ColorPicker.js +14 -582
  17. package/Comment.js +10 -71
  18. package/ConfigProvider.js +5 -6
  19. package/Copy.js +12 -61
  20. package/DatePicker.js +11 -2043
  21. package/Descriptions.js +11 -176
  22. package/Divider.js +7 -38
  23. package/Draggable.js +7 -90
  24. package/Drawer.js +2 -2
  25. package/Dropdown.js +15 -199
  26. package/Empty.js +2 -2
  27. package/Form.js +16 -1455
  28. package/Grid.js +9 -252
  29. package/Icon.js +7 -55
  30. package/IconHover.js +1 -1
  31. package/Image.js +6 -5
  32. package/Input.js +12 -12
  33. package/InputNumber.js +7 -5
  34. package/InputTag.js +2 -2
  35. package/Layout.js +16 -56
  36. package/Link.js +9 -60
  37. package/List.js +18 -312
  38. package/Loading.js +4 -59
  39. package/Mentions.js +12 -164
  40. package/Menu.js +8 -7
  41. package/Message.js +6 -5
  42. package/Modal.js +2 -2
  43. package/Notice.js +5 -6
  44. package/Notification.js +7 -6
  45. package/OverflowEllipsis.js +8 -98
  46. package/PageHeader.js +13 -113
  47. package/Pagination.js +2 -2
  48. package/Picker.js +4 -3
  49. package/Popconfirm.js +13 -128
  50. package/Popover.js +10 -76
  51. package/Portal.js +5 -25
  52. package/Progress.js +11 -363
  53. package/Radio.js +5 -6
  54. package/Rate.js +14 -125
  55. package/ResizeBox.js +16 -558
  56. package/Result.js +14 -1434
  57. package/Select.js +5 -4
  58. package/SelectView.js +9 -425
  59. package/Skeleton.js +11 -94
  60. package/Slider.js +21 -776
  61. package/Space.js +11 -94
  62. package/SpeechSynthesis.js +48 -64
  63. package/Spin.js +11 -94
  64. package/Statistic.js +15 -192
  65. package/Steps.js +11 -148
  66. package/SuspenseFallbackTest.js +3 -10
  67. package/Switch.js +13 -114
  68. package/Table.js +16 -2097
  69. package/Tabs.js +6 -6
  70. package/Tag.js +13 -134
  71. package/TimePicker.js +7 -274
  72. package/Timeline.js +4 -4
  73. package/Tooltip.js +12 -137
  74. package/Transfer.js +14 -450
  75. package/Tree.js +3 -2
  76. package/TreeSelect.js +3 -4
  77. package/Trigger.js +21 -809
  78. package/Typography.js +10 -756
  79. package/Upload.js +4 -4
  80. package/VerificationCode.js +2 -2
  81. package/VirtualList.js +2 -2
  82. package/Watermark.js +2 -2
  83. package/affix/index.js +126 -0
  84. package/affix/interface.js +1 -0
  85. package/alert/index.js +112 -0
  86. package/alert/interface.js +1 -0
  87. package/anchor/Anchor.js +198 -0
  88. package/anchor/Link.js +52 -0
  89. package/anchor/context.js +14 -0
  90. package/anchor/index.js +4 -0
  91. package/anchor/interface.js +1 -0
  92. package/anchor/util.js +50 -0
  93. package/auto-complete/index.js +149 -0
  94. package/auto-complete/interface.js +1 -0
  95. package/avatar/Avatar.js +83 -0
  96. package/avatar/Group.js +82 -0
  97. package/avatar/context.js +5 -0
  98. package/avatar/index.js +7 -0
  99. package/avatar/interface.js +1 -0
  100. package/back-top/index.js +85 -0
  101. package/back-top/interface.js +1 -0
  102. package/badge/Count.js +35 -0
  103. package/badge/index.js +151 -0
  104. package/badge/interface.js +1 -0
  105. package/breadcrumb/Item.js +67 -0
  106. package/breadcrumb/index.js +81 -0
  107. package/breadcrumb/interface.js +1 -0
  108. package/button/Group.js +13 -0
  109. package/button/index.js +146 -0
  110. package/button/interface.js +1 -0
  111. package/calendar/Month.js +12 -0
  112. package/calendar/WeekList.js +24 -0
  113. package/calendar/Year.js +74 -0
  114. package/calendar/index.js +320 -0
  115. package/calendar/interface.js +1 -0
  116. package/card/Grid.js +25 -0
  117. package/card/Meta.js +30 -0
  118. package/card/index.js +99 -0
  119. package/card/interface.js +1 -0
  120. package/carousel/Arrow.js +55 -0
  121. package/carousel/Indicator.js +66 -0
  122. package/carousel/index.js +278 -0
  123. package/carousel/interface.js +1 -0
  124. package/cascader/Cascader.js +26 -0
  125. package/cascader/index.js +4 -0
  126. package/cascader/interface.js +1 -0
  127. package/cascader/util.js +14 -0
  128. package/checkbox/Checkbox.js +16 -0
  129. package/checkbox/Group.js +14 -0
  130. package/checkbox/IconCheck.js +19 -0
  131. package/checkbox/index.js +4 -0
  132. package/checkbox/interface.js +1 -0
  133. package/checkbox/useCheckbox.js +45 -0
  134. package/chunk/{qFf1w_Jq.js → 5_U1CBIu.js} +2 -2
  135. package/chunk/B2yFlXke.js +6 -0
  136. package/chunk/B4JiMp8I.js +764 -0
  137. package/chunk/B4YRLi8r.js +11 -0
  138. package/chunk/B5RFT17G.js +15 -0
  139. package/chunk/{CNmmhbCn.js → B6X4lnd0.js} +32 -32
  140. package/chunk/B7M-FGia.js +41 -0
  141. package/chunk/{B7FlazNB.js → BBkdXHrJ.js} +7 -7
  142. package/chunk/{BHF15Dog.js → BDB0LByj.js} +20 -20
  143. package/chunk/BFTV6myl.js +19 -0
  144. package/chunk/BJ1soa2K.js +178 -0
  145. package/chunk/BKKEev13.js +11 -0
  146. package/chunk/BKT9BFf4.js +11 -0
  147. package/chunk/BSCrLtfQ.js +10 -0
  148. package/chunk/{WpO_DsK4.js → BSaQv6mx.js} +62 -60
  149. package/chunk/BXAeh0_V.js +16 -0
  150. package/chunk/Bfq4YEcr.js +23 -0
  151. package/chunk/Bg3uJGPu.js +10 -0
  152. package/chunk/{C_gJWGGh.js → Bi4UkwOR.js} +180 -168
  153. package/chunk/BibHFOCF.js +34 -0
  154. package/chunk/Biupwn8l.js +24 -0
  155. package/chunk/{BCftTxEy.js → BjpUSKM3.js} +184 -181
  156. package/chunk/{Cf5QNhkG.js → Bl7BnD1R.js} +15 -15
  157. package/chunk/BsY85n3_.js +14 -0
  158. package/chunk/C48SmsN-.js +38 -0
  159. package/chunk/C4OrxKE6.js +18 -0
  160. package/chunk/C98ks5S8.js +473 -0
  161. package/chunk/CC---6jO.js +110 -0
  162. package/chunk/{DleQ5HwG.js → CCv-5KFt.js} +58 -58
  163. package/chunk/CD3AUpzo.js +166 -0
  164. package/chunk/CIRG541s.js +22 -0
  165. package/chunk/CKyu68pu.js +312 -0
  166. package/chunk/CQ_WOOmf.js +8 -0
  167. package/chunk/{CKNyIitu.js → CVYWxu00.js} +10 -10
  168. package/chunk/CYhxqVkn.js +9 -0
  169. package/chunk/CbLaCJmG.js +26 -0
  170. package/chunk/CdaT1b_F.js +20 -0
  171. package/chunk/CftuXmo_.js +6 -0
  172. package/chunk/CgurXnoy.js +569 -0
  173. package/chunk/{DKr2_PYd.js → Clo26EcR.js} +10 -10
  174. package/chunk/ClqoGc3r.js +17 -0
  175. package/chunk/CmZzBtA4.js +16 -0
  176. package/chunk/CpGBWmuz.js +1461 -0
  177. package/chunk/CzQObzKd.js +1817 -0
  178. package/chunk/D-TPB2Do.js +56 -0
  179. package/chunk/D090jlwP.js +38 -0
  180. package/chunk/{CJ_o9tZM.js → D0ZWT7db.js} +1 -1
  181. package/chunk/DH7HTOV_.js +11 -0
  182. package/chunk/DKHXj8Kf.js +9 -0
  183. package/chunk/Dh7Osrvr.js +27 -0
  184. package/chunk/DonYzv30.js +14 -0
  185. package/chunk/DpoumMDw.js +50 -0
  186. package/chunk/Duezix3m.js +25 -0
  187. package/chunk/DxVvggX2.js +11 -0
  188. package/chunk/DzVH9IBy.js +1413 -0
  189. package/chunk/SSK90wgo.js +209 -0
  190. package/chunk/{CSC_V_25.js → URXCKjXr.js} +8 -8
  191. package/chunk/VSe_Wq1g.js +10 -0
  192. package/chunk/XTEsYGuF.js +17 -0
  193. package/chunk/b1e8awfs.js +31 -0
  194. package/chunk/hEWZQ8Zi.js +16 -0
  195. package/chunk/k-OUstoD.js +58 -0
  196. package/chunk/ll867Bf3.js +730 -0
  197. package/chunk/{CLiqJm_T.js → oopARUrq.js} +2 -2
  198. package/chunk/tamGhTJp.js +186 -0
  199. package/chunk/{CANgSlh3.js → uKZyjtff.js} +31 -31
  200. package/chunk/vmgkWLYf.js +843 -0
  201. package/chunk/yl4BU7Sd.js +1068 -0
  202. package/chunk/zmmqLCF4.js +20 -0
  203. package/collapse/Collapse.js +15 -0
  204. package/collapse/Item.js +11 -0
  205. package/collapse/index.js +4 -0
  206. package/collapse/interface.js +1 -0
  207. package/color-picker/ControlBar.js +63 -0
  208. package/color-picker/InputAlpha.js +22 -0
  209. package/color-picker/InputHex.js +55 -0
  210. package/color-picker/InputRgb.js +61 -0
  211. package/color-picker/Mode.js +10 -0
  212. package/color-picker/Palette.js +34 -0
  213. package/color-picker/Panel.js +268 -0
  214. package/color-picker/colors.js +37 -0
  215. package/color-picker/index.js +270 -0
  216. package/color-picker/interface.js +4 -0
  217. package/color-picker/utils.js +89 -0
  218. package/comment/index.js +73 -0
  219. package/comment/interface.js +1 -0
  220. package/config-provider/ConfigProvider.js +15 -0
  221. package/config-provider/context.js +8 -0
  222. package/config-provider/index.js +8 -0
  223. package/config-provider/interface.js +1 -0
  224. package/copy/index.js +63 -0
  225. package/copy/interface.js +1 -0
  226. package/date-picker/Picker.js +410 -0
  227. package/date-picker/PickerRange.js +24 -0
  228. package/date-picker/context.js +5 -0
  229. package/date-picker/index.js +50 -0
  230. package/date-picker/interface.js +1 -0
  231. package/date-picker/util.js +76 -0
  232. package/descriptions/index.js +178 -0
  233. package/descriptions/interface.js +1 -0
  234. package/divider/index.js +40 -0
  235. package/divider/interface.js +1 -0
  236. package/draggable/Item.js +67 -0
  237. package/draggable/index.js +32 -0
  238. package/draggable/interface.js +1 -0
  239. package/{chunk/CP0odX99.js → drawer/Drawer.js} +71 -71
  240. package/drawer/index.js +4 -0
  241. package/drawer/interface.js +1 -0
  242. package/dropdown/Button.js +11 -0
  243. package/dropdown/index.js +201 -0
  244. package/dropdown/interface.js +1 -0
  245. package/empty/index.js +9 -0
  246. package/empty/interface.js +1 -0
  247. package/form/Control.js +262 -0
  248. package/form/Form.js +160 -0
  249. package/form/FormItem.js +239 -0
  250. package/form/FormLabel.js +54 -0
  251. package/form/FormList.js +100 -0
  252. package/form/FormProvider.js +48 -0
  253. package/form/IconSymbol.js +20 -0
  254. package/form/context.js +43 -0
  255. package/form/index.js +107 -0
  256. package/form/interface.js +11 -0
  257. package/form/promisify.js +32 -0
  258. package/form/store.js +360 -0
  259. package/form/useForm.js +53 -0
  260. package/form/util.js +75 -0
  261. package/grid/Col.js +85 -0
  262. package/grid/Row.js +86 -0
  263. package/grid/context.js +9 -0
  264. package/grid/grid-item.js +75 -0
  265. package/grid/grid.js +103 -0
  266. package/grid/index.js +15 -0
  267. package/grid/interface.js +1 -0
  268. package/grid/util.js +51 -0
  269. package/hooks/index.js +38 -38
  270. package/hooks/useComputedState.js +2 -2
  271. package/hooks/useCreate.js +2 -2
  272. package/hooks/useForceUpdate.js +1 -1
  273. package/hooks/useId.js +1 -1
  274. package/hooks/useInView.js +1 -1
  275. package/hooks/useIntersectionObserver.js +1 -1
  276. package/hooks/useInterval.js +2 -2
  277. package/hooks/useIsFirstRender.js +1 -1
  278. package/hooks/useIsomorphicLayoutEffect.js +1 -1
  279. package/hooks/useKeyboardEvent.js +1 -1
  280. package/hooks/useMedia.js +1 -1
  281. package/hooks/useMergeProps.js +1 -1
  282. package/hooks/useMergeValue.js +1 -1
  283. package/hooks/useOnlineStatus.js +2 -2
  284. package/hooks/useOverflowHidden.js +1 -1
  285. package/hooks/useOverrideRef.js +1 -1
  286. package/hooks/usePersistCallback.js +1 -1
  287. package/hooks/usePrefersColorSchemeDark.js +1 -1
  288. package/hooks/usePrevious.js +1 -1
  289. package/hooks/useRefs.js +1 -1
  290. package/hooks/useResizeObserver.js +2 -2
  291. package/hooks/useStateCallback.js +1 -1
  292. package/hooks/useStateWithPromise.js +1 -1
  293. package/hooks/useUpdateEffect.js +1 -1
  294. package/hooks/useVerificationCode.js +10 -10
  295. package/hooks/useWatch.js +1 -1
  296. package/hooks/useWatermark.js +25 -25
  297. package/hooks/useWindowSize.js +1 -1
  298. package/icon/addFromIconFontCn.js +7 -0
  299. package/icon/index.js +57 -0
  300. package/icon-hover/index.js +7 -0
  301. package/image/Image.js +191 -0
  302. package/image/ImageFooter.js +8 -0
  303. package/image/ImagePreview.js +41 -0
  304. package/image/ImagePreviewArrow.js +46 -0
  305. package/image/ImagePreviewGroup.js +125 -0
  306. package/image/ImagePreviewToolbar.js +99 -0
  307. package/image/TriggerForToolbar.js +10 -0
  308. package/image/index.js +8 -0
  309. package/image/interface.js +1 -0
  310. package/image/previewGroupContext.js +17 -0
  311. package/index.js +592 -560
  312. package/input/Group.js +18 -0
  313. package/input/Input.js +688 -0
  314. package/input/InputElement.js +235 -0
  315. package/input/Number.js +4 -0
  316. package/input/Password.js +13 -0
  317. package/input/Search.js +14 -0
  318. package/input/Tag.js +4 -0
  319. package/input/Textarea.js +16 -0
  320. package/input/autoSizeTextAreaHeight.js +65 -0
  321. package/input/index.js +15 -0
  322. package/input/interface.js +1 -0
  323. package/input/useComposition.js +39 -0
  324. package/input-number/decimal.js +154 -0
  325. package/input-number/index.js +18 -0
  326. package/input-number/interface.js +1 -0
  327. package/input-number/useSelectionRange.js +26 -0
  328. package/input-number/util.js +57 -0
  329. package/input-tag/InputTag.js +384 -0
  330. package/input-tag/index.js +4 -0
  331. package/input-tag/interface.js +1 -0
  332. package/layout/Content.js +13 -0
  333. package/layout/Footer.js +13 -0
  334. package/layout/Header.js +13 -0
  335. package/{chunk/pZoNQ75H.js → layout/Sider.js} +31 -31
  336. package/layout/index.js +43 -0
  337. package/layout/interface.js +1 -0
  338. package/link/index.js +62 -0
  339. package/link/interface.js +1 -0
  340. package/list/Item.js +44 -0
  341. package/list/Meta.js +19 -0
  342. package/list/index.js +269 -0
  343. package/list/interface.js +1 -0
  344. package/loading/index.js +61 -0
  345. package/locale/en-US.js +1 -1
  346. package/locale/tr-TR.js +1 -1
  347. package/mentions/index.js +146 -0
  348. package/mentions/interface.js +1 -0
  349. package/mentions/util.js +26 -0
  350. package/menu/Indent.js +17 -0
  351. package/menu/Item.js +125 -0
  352. package/menu/ItemGroup.js +39 -0
  353. package/menu/Menu.js +26 -0
  354. package/menu/OverflowWrap.js +10 -0
  355. package/menu/context.js +5 -0
  356. package/menu/index.js +11 -0
  357. package/menu/interface.js +1 -0
  358. package/menu/util.js +80 -0
  359. package/message/index.js +14 -0
  360. package/message/interface.js +1 -0
  361. package/message/useMessage.js +7 -0
  362. package/modal/Confirm.js +13 -0
  363. package/modal/Modal.js +21 -0
  364. package/modal/config.js +25 -0
  365. package/modal/index.js +4 -0
  366. package/modal/interface.js +1 -0
  367. package/notice/index.js +24 -0
  368. package/notification/index.js +16 -0
  369. package/notification/interface.js +1 -0
  370. package/notification/useNotification.js +6 -0
  371. package/notification/withNotification.js +49 -0
  372. package/overflow-ellipsis/OverflowItem.js +35 -0
  373. package/overflow-ellipsis/index.js +74 -0
  374. package/package.json +1 -1
  375. package/page-header/index.js +115 -0
  376. package/page-header/interface.js +1 -0
  377. package/pagination/PageItem.js +119 -0
  378. package/pagination/PageJumper.js +60 -0
  379. package/pagination/PageOption.js +47 -0
  380. package/pagination/Pagination.js +245 -0
  381. package/pagination/index.js +4 -0
  382. package/pagination/interface.js +1 -0
  383. package/picker/Input.js +130 -0
  384. package/picker/InputRange.js +158 -0
  385. package/picker/index.js +6 -0
  386. package/popconfirm/index.js +130 -0
  387. package/popconfirm/interface.js +1 -0
  388. package/popover/index.js +78 -0
  389. package/popover/interface.js +1 -0
  390. package/portal/Portal.js +15 -0
  391. package/portal/index.js +17 -0
  392. package/progress/CircleProgress.js +117 -0
  393. package/progress/LineProgess.js +103 -0
  394. package/progress/StepProgress.js +74 -0
  395. package/progress/index.js +99 -0
  396. package/progress/interface.js +1 -0
  397. package/radio/Group.js +16 -0
  398. package/radio/Radio.js +15 -0
  399. package/radio/index.js +8 -0
  400. package/radio/interface.js +1 -0
  401. package/rate/index.js +127 -0
  402. package/rate/interface.js +1 -0
  403. package/resize-box/ResizeTrigger.js +78 -0
  404. package/resize-box/Split.js +130 -0
  405. package/resize-box/SplitGroup.js +202 -0
  406. package/resize-box/index.js +182 -0
  407. package/resize-box/interface.js +1 -0
  408. package/result/403.js +695 -0
  409. package/result/404.js +513 -0
  410. package/result/500.js +166 -0
  411. package/result/index.js +77 -0
  412. package/result/interface.js +1 -0
  413. package/select/OptGroup.js +20 -0
  414. package/select/Option.js +95 -0
  415. package/select/Select.js +549 -0
  416. package/select/index.js +8 -0
  417. package/select/interface.js +1 -0
  418. package/select/util.js +141 -0
  419. package/select-view/Core.js +370 -0
  420. package/select-view/index.js +67 -0
  421. package/select-view/interface.js +1 -0
  422. package/skeleton/Image.js +24 -0
  423. package/skeleton/Text.js +27 -0
  424. package/skeleton/index.js +57 -0
  425. package/skeleton/interface.js +1 -0
  426. package/slider/Button.js +159 -0
  427. package/slider/Dot.js +43 -0
  428. package/slider/Input.js +75 -0
  429. package/slider/Mark.js +28 -0
  430. package/slider/Tick.js +44 -0
  431. package/slider/index.js +429 -0
  432. package/slider/interface.js +1 -0
  433. package/slider/util.js +63 -0
  434. package/space/index.js +90 -0
  435. package/space/interface.js +1 -0
  436. package/space/toArray.js +11 -0
  437. package/speech-synthesis/index.js +109 -0
  438. package/spin/DotLoading.js +24 -0
  439. package/spin/index.js +79 -0
  440. package/spin/interface.js +1 -0
  441. package/statistic/Countdown.js +55 -0
  442. package/statistic/index.js +120 -0
  443. package/statistic/interface.js +1 -0
  444. package/statistic/util.js +33 -0
  445. package/steps/Step.js +68 -0
  446. package/steps/index.js +89 -0
  447. package/steps/interface.js +1 -0
  448. package/style.css +1 -1
  449. package/suspense-fallback-test/index.js +12 -0
  450. package/switch/index.js +116 -0
  451. package/switch/interface.js +1 -0
  452. package/table/ColGroup.js +59 -0
  453. package/table/Table.js +24 -0
  454. package/table/constant.js +42 -0
  455. package/table/index.js +103 -0
  456. package/table/interface.js +1 -0
  457. package/table/util.js +121 -0
  458. package/tabs/Tab.js +18 -0
  459. package/tabs/TabContent.js +8 -0
  460. package/tabs/TabPane.js +24 -0
  461. package/tabs/index.js +9 -0
  462. package/tabs/interface.js +1 -0
  463. package/tabs/util.js +22 -0
  464. package/tag/index.js +136 -0
  465. package/tag/interface.js +1 -0
  466. package/time-picker/Picker.js +219 -0
  467. package/time-picker/RangePicker.js +56 -0
  468. package/time-picker/TimeColumn.js +65 -0
  469. package/time-picker/TimePicker.js +240 -0
  470. package/time-picker/context.js +5 -0
  471. package/time-picker/index.js +20 -0
  472. package/time-picker/interface.js +1 -0
  473. package/time-picker/util.js +43 -0
  474. package/timeline/Item.js +92 -0
  475. package/timeline/Timeline.js +79 -0
  476. package/timeline/index.js +6 -0
  477. package/timeline/interface.js +1 -0
  478. package/tooltip/index.js +140 -0
  479. package/tooltip/interface.js +1 -0
  480. package/transfer/Item.js +106 -0
  481. package/transfer/List.js +186 -0
  482. package/transfer/index.js +182 -0
  483. package/transfer/interface.js +1 -0
  484. package/tree/Animation.js +11 -0
  485. package/tree/Context.js +5 -0
  486. package/tree/Node.js +16 -0
  487. package/tree/NodeList.js +82 -0
  488. package/tree/Tree.js +580 -0
  489. package/tree/index.js +6 -0
  490. package/tree/interface.js +1 -0
  491. package/tree/util.js +76 -0
  492. package/tree-select/List.js +124 -0
  493. package/tree-select/Select.js +395 -0
  494. package/tree-select/index.js +6 -0
  495. package/tree-select/interface.js +13 -0
  496. package/tree-select/util.js +9 -0
  497. package/trigger/getPopupStyle.js +192 -0
  498. package/trigger/index.js +626 -0
  499. package/trigger/interface.js +1 -0
  500. package/types/color-picker/ControlBar.d.ts +12 -5
  501. package/types/color-picker/Mode.d.ts +7 -0
  502. package/types/color-picker/Panel.d.ts +10 -2
  503. package/types/color-picker/hooks/useColorPicker.d.ts +13 -11
  504. package/types/color-picker/hooks/useControlBlock.d.ts +10 -3
  505. package/types/color-picker/index.d.ts +1 -1
  506. package/types/color-picker/interface.d.ts +19 -7
  507. package/types/color-picker/utils.d.ts +23 -0
  508. package/types/form/Control.d.ts +54 -5
  509. package/types/index.d.ts +1 -2
  510. package/types/table/hook/useThResizable.d.ts +1 -1
  511. package/typography/Base.js +189 -0
  512. package/typography/EditContent.js +46 -0
  513. package/typography/Ellipsis.js +124 -0
  514. package/typography/Operations.js +78 -0
  515. package/typography/Paragraph.js +24 -0
  516. package/typography/Text.js +11 -0
  517. package/typography/Title.js +12 -0
  518. package/typography/Typography.js +13 -0
  519. package/typography/index.js +278 -0
  520. package/typography/interface.js +1 -0
  521. package/typography/useCssEllipsis.js +37 -0
  522. package/typography/useEllipsis.js +150 -0
  523. package/upload/TriggerNode.js +116 -0
  524. package/upload/Upload.js +627 -0
  525. package/upload/Uploader.js +206 -0
  526. package/upload/index.js +8 -0
  527. package/upload/interface.js +9 -0
  528. package/upload/request.js +51 -0
  529. package/upload/request_.js +64 -0
  530. package/upload/util.js +61 -0
  531. package/utils/CSSTransition.js +2 -2
  532. package/utils/constant.js +3 -3
  533. package/utils/contextHolder.js +1 -1
  534. package/utils/dayjs.js +11 -11
  535. package/utils/dom.js +32 -32
  536. package/utils/fillNBSP.js +2 -2
  537. package/utils/getHighlightText.js +2 -2
  538. package/utils/getHotkeyHandler.js +2 -2
  539. package/utils/getStringLength.js +2 -2
  540. package/utils/include.js +2 -2
  541. package/utils/index.js +96 -96
  542. package/utils/is.js +53 -53
  543. package/utils/mergeProps.js +2 -2
  544. package/utils/mergedToString.js +2 -2
  545. package/utils/omit.js +2 -2
  546. package/utils/pad.js +12 -12
  547. package/utils/pick.js +4 -4
  548. package/utils/reactDOM.js +3 -3
  549. package/utils/resizeObserverEffect.js +1 -1
  550. package/utils/screenfull.js +1 -1
  551. package/utils/scrollIntoView.js +2 -2
  552. package/utils/style.js +11 -11
  553. package/utils/throttleByRaf.js +8 -8
  554. package/utils/warning.js +5 -5
  555. package/{chunk/-UuKKT0Z.js → verification-code/VerificationCode.js} +32 -31
  556. package/verification-code/index.js +4 -0
  557. package/verification-code/interface.js +1 -0
  558. package/{Version.js → version/index.js} +1 -1
  559. package/virtual-list/Filler.js +31 -0
  560. package/virtual-list/VirtualList.js +493 -0
  561. package/virtual-list/index.js +4 -0
  562. package/{chunk/CaasmWg_.js → watermark/Watermark.js} +11 -10
  563. package/watermark/index.js +4 -0
  564. package/watermark/interface.js +1 -0
  565. package/chunk/B5gK1Idp.js +0 -19
  566. package/chunk/BBvWDeuZ.js +0 -334
  567. package/chunk/BGny4zSb.js +0 -166
  568. package/chunk/BJQ5UNa-.js +0 -1585
  569. package/chunk/BP9sYyk9.js +0 -8
  570. package/chunk/BUdtVdnv.js +0 -38
  571. package/chunk/BVQlOzTS.js +0 -11
  572. package/chunk/B__a_gb_.js +0 -519
  573. package/chunk/BbEYToV1.js +0 -10
  574. package/chunk/BbdDQAnm.js +0 -15
  575. package/chunk/BdUcgWdu.js +0 -11
  576. package/chunk/BfbXSG70.js +0 -26
  577. package/chunk/BndfNLK4.js +0 -186
  578. package/chunk/BoMCZV6K.js +0 -1098
  579. package/chunk/Br0B6y1T.js +0 -18
  580. package/chunk/BxUs8_Cr.js +0 -9
  581. package/chunk/C42LIMP9.js +0 -970
  582. package/chunk/C4YkFMzC.js +0 -778
  583. package/chunk/C9Wcraj7.js +0 -162
  584. package/chunk/CK5m7rLl.js +0 -166
  585. package/chunk/CPT-OZH2.js +0 -14
  586. package/chunk/CVSF8p0O.js +0 -698
  587. package/chunk/C_agcwLN.js +0 -31
  588. package/chunk/CkNSv2U7.js +0 -56
  589. package/chunk/Cp2f70gB.js +0 -9
  590. package/chunk/CpegYjdC.js +0 -16
  591. package/chunk/CucI3KZr.js +0 -20
  592. package/chunk/CwoFBTYz.js +0 -11
  593. package/chunk/D2KPqPhV.js +0 -17
  594. package/chunk/D7NyvE5f.js +0 -17
  595. package/chunk/D8oTPQ2H.js +0 -384
  596. package/chunk/DC1iHEiy.js +0 -912
  597. package/chunk/DFrfrmfK.js +0 -519
  598. package/chunk/DGTIZ_0O.js +0 -6
  599. package/chunk/DJfpiZn_.js +0 -25
  600. package/chunk/DNUz6zgo.js +0 -11
  601. package/chunk/DRtM649q.js +0 -11
  602. package/chunk/DS_mUWn6.js +0 -41
  603. package/chunk/DU6bs_19.js +0 -10
  604. package/chunk/DWdbwz22.js +0 -10
  605. package/chunk/DcveZuqd.js +0 -6
  606. package/chunk/DdVFknul.js +0 -24
  607. package/chunk/DgRfikwe.js +0 -16
  608. package/chunk/DkyR2EfG.js +0 -243
  609. package/chunk/DnrZEnQ_.js +0 -27
  610. package/chunk/DsRSHWtX.js +0 -1025
  611. package/chunk/Dz5BdmXo.js +0 -270
  612. package/chunk/EANe01DF.js +0 -1030
  613. package/chunk/GoNx5R4F.js +0 -873
  614. package/chunk/HDUQku8d.js +0 -20
  615. package/chunk/HrAP__Hi.js +0 -25
  616. package/chunk/SLWP34OR.js +0 -229
  617. package/chunk/VVKtwaGf.js +0 -278
  618. package/chunk/WPNpLxSI.js +0 -16
  619. package/chunk/fdU3ang6.js +0 -14
  620. package/chunk/fkclKOAL.js +0 -830
  621. package/chunk/flvYlqx3.js +0 -22
  622. package/chunk/kTDayEpF.js +0 -288
  623. package/chunk/w-kM1L5W.js +0 -445
  624. package/types/form/Control-old.d.ts +0 -56
  625. package/types/style/index.d.ts +0 -1
@@ -0,0 +1,1068 @@
1
+ /*!
2
+ * decimal.js v10.5.0
3
+ * An arbitrary-precision Decimal type for JavaScript.
4
+ * https://github.com/MikeMcl/decimal.js
5
+ * Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
6
+ * MIT Licence
7
+ */
8
+ var cn = 9e15, B = 1e9, fn = "0123456789abcdef", X = "2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058", Y = "3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789", an = {
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: -9e15,
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: cn,
62
+ // 1 to EXP_LIMIT
63
+ // Whether to use cryptographically-secure random number generation, if available.
64
+ crypto: !1
65
+ // true/false
66
+ }, _, mn, k, m = !0, rn = "[DecimalError] ", H = rn + "Invalid argument: ", vn = rn + "Precision limit exceeded", Nn = rn + "crypto unavailable", bn = "[object Decimal]", A = Math.floor, M = Math.pow, An = /^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i, Dn = /^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i, Zn = /^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i, En = /^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i, S = 1e7, w = 7, Pn = 9007199254740991, Rn = X.length - 1, ln = Y.length - 1, d = { toStringTag: bn };
67
+ d.absoluteValue = d.abs = function() {
68
+ var n = new this.constructor(this);
69
+ return n.s < 0 && (n.s = 1), g(n);
70
+ };
71
+ d.ceil = function() {
72
+ return g(new this.constructor(this), this.e + 1, 2);
73
+ };
74
+ d.clampedTo = d.clamp = function(n, r) {
75
+ var t, e = this, s = e.constructor;
76
+ if (n = new s(n), r = new s(r), !n.s || !r.s) return new s(NaN);
77
+ if (n.gt(r)) throw Error(H + r);
78
+ return t = e.cmp(n), t < 0 ? n : e.cmp(r) > 0 ? r : new s(e);
79
+ };
80
+ d.comparedTo = d.cmp = function(n) {
81
+ var r, t, e, s, i = this, o = i.d, u = (n = new i.constructor(n)).d, f = i.s, c = n.s;
82
+ if (!o || !u)
83
+ return !f || !c ? NaN : f !== c ? f : o === u ? 0 : !o ^ f < 0 ? 1 : -1;
84
+ if (!o[0] || !u[0]) return o[0] ? f : u[0] ? -c : 0;
85
+ if (f !== c) return f;
86
+ if (i.e !== n.e) return i.e > n.e ^ f < 0 ? 1 : -1;
87
+ for (e = o.length, s = u.length, r = 0, t = e < s ? e : s; r < t; ++r)
88
+ if (o[r] !== u[r]) return o[r] > u[r] ^ f < 0 ? 1 : -1;
89
+ return e === s ? 0 : e > s ^ f < 0 ? 1 : -1;
90
+ };
91
+ d.cosine = d.cos = function() {
92
+ var n, r, t = this, e = t.constructor;
93
+ return t.d ? t.d[0] ? (n = e.precision, r = e.rounding, e.precision = n + Math.max(t.e, t.sd()) + w, e.rounding = 1, t = Sn(e, On(e, t)), e.precision = n, e.rounding = r, g(k == 2 || k == 3 ? t.neg() : t, n, r, !0)) : new e(1) : new e(NaN);
94
+ };
95
+ d.cubeRoot = d.cbrt = function() {
96
+ var n, r, t, e, s, i, o, u, f, c, a = this, l = a.constructor;
97
+ if (!a.isFinite() || a.isZero()) return new l(a);
98
+ for (m = !1, i = a.s * M(a.s * a, 1 / 3), !i || Math.abs(i) == 1 / 0 ? (t = q(a.d), n = a.e, (i = (n - t.length + 1) % 3) && (t += i == 1 || i == -2 ? "0" : "00"), i = M(t, 1 / 3), n = A((n + 1) / 3) - (n % 3 == (n < 0 ? -1 : 2)), i == 1 / 0 ? t = "5e" + n : (t = i.toExponential(), t = t.slice(0, t.indexOf("e") + 1) + n), e = new l(t), e.s = a.s) : e = new l(i.toString()), o = (n = l.precision) + 3; ; )
99
+ if (u = e, f = u.times(u).times(u), c = f.plus(a), e = E(c.plus(a).times(u), c.plus(f), o + 2, 1), q(u.d).slice(0, o) === (t = q(e.d)).slice(0, o))
100
+ if (t = t.slice(o - 3, o + 1), t == "9999" || !s && t == "4999") {
101
+ if (!s && (g(u, n + 1, 0), u.times(u).times(u).eq(a))) {
102
+ e = u;
103
+ break;
104
+ }
105
+ o += 4, s = 1;
106
+ } else {
107
+ (!+t || !+t.slice(1) && t.charAt(0) == "5") && (g(e, n + 1, 1), r = !e.times(e).times(e).eq(a));
108
+ break;
109
+ }
110
+ return m = !0, g(e, n, l.rounding, r);
111
+ };
112
+ d.decimalPlaces = d.dp = function() {
113
+ var n, r = this.d, t = NaN;
114
+ if (r) {
115
+ if (n = r.length - 1, t = (n - A(this.e / w)) * w, n = r[n], n) for (; n % 10 == 0; n /= 10) t--;
116
+ t < 0 && (t = 0);
117
+ }
118
+ return t;
119
+ };
120
+ d.dividedBy = d.div = function(n) {
121
+ return E(this, new this.constructor(n));
122
+ };
123
+ d.dividedToIntegerBy = d.divToInt = function(n) {
124
+ var r = this, t = r.constructor;
125
+ return g(
126
+ E(r, new t(n), 0, 1, 1),
127
+ t.precision,
128
+ t.rounding
129
+ );
130
+ };
131
+ d.equals = d.eq = function(n) {
132
+ return this.cmp(n) === 0;
133
+ };
134
+ d.floor = function() {
135
+ return g(new this.constructor(this), this.e + 1, 3);
136
+ };
137
+ d.greaterThan = d.gt = function(n) {
138
+ return this.cmp(n) > 0;
139
+ };
140
+ d.greaterThanOrEqualTo = d.gte = function(n) {
141
+ var r = this.cmp(n);
142
+ return r == 1 || r === 0;
143
+ };
144
+ d.hyperbolicCosine = d.cosh = function() {
145
+ var n, r, t, e, s, i = this, o = i.constructor, u = new o(1);
146
+ if (!i.isFinite()) return new o(i.s ? 1 / 0 : NaN);
147
+ if (i.isZero()) return u;
148
+ t = o.precision, e = o.rounding, o.precision = t + Math.max(i.e, i.sd()) + 4, o.rounding = 1, s = i.d.length, s < 32 ? (n = Math.ceil(s / 3), r = (1 / en(4, n)).toString()) : (n = 16, r = "2.3283064365386962890625e-10"), i = V(o, 1, i.times(r), new o(1), !0);
149
+ for (var f, c = n, a = new o(8); c--; )
150
+ f = i.times(i), i = u.minus(f.times(a.minus(f.times(a))));
151
+ return g(i, o.precision = t, o.rounding = e, !0);
152
+ };
153
+ d.hyperbolicSine = d.sinh = function() {
154
+ var n, r, t, e, s = this, i = s.constructor;
155
+ if (!s.isFinite() || s.isZero()) return new i(s);
156
+ if (r = i.precision, t = i.rounding, i.precision = r + Math.max(s.e, s.sd()) + 4, i.rounding = 1, e = s.d.length, e < 3)
157
+ s = V(i, 2, s, s, !0);
158
+ else {
159
+ n = 1.4 * Math.sqrt(e), n = n > 16 ? 16 : n | 0, s = s.times(1 / en(5, n)), s = V(i, 2, s, s, !0);
160
+ for (var o, u = new i(5), f = new i(16), c = new i(20); n--; )
161
+ o = s.times(s), s = s.times(u.plus(o.times(f.times(o).plus(c))));
162
+ }
163
+ return i.precision = r, i.rounding = t, g(s, r, t, !0);
164
+ };
165
+ d.hyperbolicTangent = d.tanh = function() {
166
+ var n, r, t = this, e = t.constructor;
167
+ return t.isFinite() ? t.isZero() ? new e(t) : (n = e.precision, r = e.rounding, e.precision = n + 7, e.rounding = 1, E(
168
+ t.sinh(),
169
+ t.cosh(),
170
+ e.precision = n,
171
+ e.rounding = r
172
+ )) : new e(t.s);
173
+ };
174
+ d.inverseCosine = d.acos = function() {
175
+ var n = this, r = n.constructor, t = n.abs().cmp(1), e = r.precision, s = r.rounding;
176
+ return t !== -1 ? t === 0 ? (
177
+ // |x| is 1
178
+ n.isNeg() ? T(r, e, s) : new r(0)
179
+ ) : (
180
+ // |x| > 1 or x is NaN
181
+ new r(NaN)
182
+ ) : n.isZero() ? T(r, e + 4, s).times(0.5) : (r.precision = e + 6, r.rounding = 1, n = new r(1).minus(n).div(n.plus(1)).sqrt().atan(), r.precision = e, r.rounding = s, n.times(2));
183
+ };
184
+ d.inverseHyperbolicCosine = d.acosh = function() {
185
+ var n, r, t = this, e = t.constructor;
186
+ return t.lte(1) ? new e(t.eq(1) ? 0 : NaN) : t.isFinite() ? (n = e.precision, r = e.rounding, e.precision = n + Math.max(Math.abs(t.e), t.sd()) + 4, e.rounding = 1, m = !1, t = t.times(t).minus(1).sqrt().plus(t), m = !0, e.precision = n, e.rounding = r, t.ln()) : new e(t);
187
+ };
188
+ d.inverseHyperbolicSine = d.asinh = function() {
189
+ var n, r, t = this, e = t.constructor;
190
+ return !t.isFinite() || t.isZero() ? new e(t) : (n = e.precision, r = e.rounding, e.precision = n + 2 * Math.max(Math.abs(t.e), t.sd()) + 6, e.rounding = 1, m = !1, t = t.times(t).plus(1).sqrt().plus(t), m = !0, e.precision = n, e.rounding = r, t.ln());
191
+ };
192
+ d.inverseHyperbolicTangent = d.atanh = function() {
193
+ var n, r, t, e, s = this, i = s.constructor;
194
+ return s.isFinite() ? s.e >= 0 ? new i(s.abs().eq(1) ? s.s / 0 : s.isZero() ? s : NaN) : (n = i.precision, r = i.rounding, e = s.sd(), Math.max(e, n) < 2 * -s.e - 1 ? g(new i(s), n, r, !0) : (i.precision = t = e - s.e, s = E(s.plus(1), new i(1).minus(s), t + n, 1), i.precision = n + 4, i.rounding = 1, s = s.ln(), i.precision = n, i.rounding = r, s.times(0.5))) : new i(NaN);
195
+ };
196
+ d.inverseSine = d.asin = function() {
197
+ var n, r, t, e, s = this, i = s.constructor;
198
+ return s.isZero() ? new i(s) : (r = s.abs().cmp(1), t = i.precision, e = i.rounding, r !== -1 ? r === 0 ? (n = T(i, t + 4, e).times(0.5), n.s = s.s, n) : new i(NaN) : (i.precision = t + 6, i.rounding = 1, s = s.div(new i(1).minus(s.times(s)).sqrt().plus(1)).atan(), i.precision = t, i.rounding = e, s.times(2)));
199
+ };
200
+ d.inverseTangent = d.atan = function() {
201
+ var n, r, t, e, s, i, o, u, f, c = this, a = c.constructor, l = a.precision, h = a.rounding;
202
+ if (c.isFinite()) {
203
+ if (c.isZero())
204
+ return new a(c);
205
+ if (c.abs().eq(1) && l + 4 <= ln)
206
+ return o = T(a, l + 4, h).times(0.25), o.s = c.s, o;
207
+ } else {
208
+ if (!c.s) return new a(NaN);
209
+ if (l + 4 <= ln)
210
+ return o = T(a, l + 4, h).times(0.5), o.s = c.s, o;
211
+ }
212
+ for (a.precision = u = l + 10, a.rounding = 1, t = Math.min(28, u / w + 2 | 0), n = t; n; --n) c = c.div(c.times(c).plus(1).sqrt().plus(1));
213
+ for (m = !1, r = Math.ceil(u / w), e = 1, f = c.times(c), o = new a(c), s = c; n !== -1; )
214
+ if (s = s.times(f), i = o.minus(s.div(e += 2)), s = s.times(f), o = i.plus(s.div(e += 2)), o.d[r] !== void 0) for (n = r; o.d[n] === i.d[n] && n--; ) ;
215
+ return t && (o = o.times(2 << t - 1)), m = !0, g(o, a.precision = l, a.rounding = h, !0);
216
+ };
217
+ d.isFinite = function() {
218
+ return !!this.d;
219
+ };
220
+ d.isInteger = d.isInt = function() {
221
+ return !!this.d && A(this.e / w) > this.d.length - 2;
222
+ };
223
+ d.isNaN = function() {
224
+ return !this.s;
225
+ };
226
+ d.isNegative = d.isNeg = function() {
227
+ return this.s < 0;
228
+ };
229
+ d.isPositive = d.isPos = function() {
230
+ return this.s > 0;
231
+ };
232
+ d.isZero = function() {
233
+ return !!this.d && this.d[0] === 0;
234
+ };
235
+ d.lessThan = d.lt = function(n) {
236
+ return this.cmp(n) < 0;
237
+ };
238
+ d.lessThanOrEqualTo = d.lte = function(n) {
239
+ return this.cmp(n) < 1;
240
+ };
241
+ d.logarithm = d.log = function(n) {
242
+ var r, t, e, s, i, o, u, f, c = this, a = c.constructor, l = a.precision, h = a.rounding, p = 5;
243
+ if (n == null)
244
+ n = new a(10), r = !0;
245
+ else {
246
+ if (n = new a(n), t = n.d, n.s < 0 || !t || !t[0] || n.eq(1)) return new a(NaN);
247
+ r = n.eq(10);
248
+ }
249
+ if (t = c.d, c.s < 0 || !t || !t[0] || c.eq(1))
250
+ return new a(t && !t[0] ? -1 / 0 : c.s != 1 ? NaN : t ? 0 : 1 / 0);
251
+ if (r)
252
+ if (t.length > 1)
253
+ i = !0;
254
+ else {
255
+ for (s = t[0]; s % 10 === 0; ) s /= 10;
256
+ i = s !== 1;
257
+ }
258
+ if (m = !1, u = l + p, o = C(c, u), e = r ? nn(a, u + 10) : C(n, u), f = E(o, e, u, 1), j(f.d, s = l, h))
259
+ do
260
+ if (u += 10, o = C(c, u), e = r ? nn(a, u + 10) : C(n, u), f = E(o, e, u, 1), !i) {
261
+ +q(f.d).slice(s + 1, s + 15) + 1 == 1e14 && (f = g(f, l + 1, 0));
262
+ break;
263
+ }
264
+ while (j(f.d, s += 10, h));
265
+ return m = !0, g(f, l, h);
266
+ };
267
+ d.minus = d.sub = function(n) {
268
+ var r, t, e, s, i, o, u, f, c, a, l, h, p = this, N = p.constructor;
269
+ if (n = new N(n), !p.d || !n.d)
270
+ return !p.s || !n.s ? n = new N(NaN) : p.d ? n.s = -n.s : n = new N(n.d || p.s !== n.s ? p : NaN), n;
271
+ if (p.s != n.s)
272
+ return n.s = -n.s, p.plus(n);
273
+ if (c = p.d, h = n.d, u = N.precision, f = N.rounding, !c[0] || !h[0]) {
274
+ if (h[0]) n.s = -n.s;
275
+ else if (c[0]) n = new N(p);
276
+ else return new N(f === 3 ? -0 : 0);
277
+ return m ? g(n, u, f) : n;
278
+ }
279
+ if (t = A(n.e / w), a = A(p.e / w), c = c.slice(), i = a - t, i) {
280
+ for (l = i < 0, l ? (r = c, i = -i, o = h.length) : (r = h, t = a, o = c.length), e = Math.max(Math.ceil(u / w), o) + 2, i > e && (i = e, r.length = 1), r.reverse(), e = i; e--; ) r.push(0);
281
+ r.reverse();
282
+ } else {
283
+ for (e = c.length, o = h.length, l = e < o, l && (o = e), e = 0; e < o; e++)
284
+ if (c[e] != h[e]) {
285
+ l = c[e] < h[e];
286
+ break;
287
+ }
288
+ i = 0;
289
+ }
290
+ for (l && (r = c, c = h, h = r, n.s = -n.s), o = c.length, e = h.length - o; e > 0; --e) c[o++] = 0;
291
+ for (e = h.length; e > i; ) {
292
+ if (c[--e] < h[e]) {
293
+ for (s = e; s && c[--s] === 0; ) c[s] = S - 1;
294
+ --c[s], c[e] += S;
295
+ }
296
+ c[e] -= h[e];
297
+ }
298
+ for (; c[--o] === 0; ) c.pop();
299
+ for (; c[0] === 0; c.shift()) --t;
300
+ return c[0] ? (n.d = c, n.e = tn(c, t), m ? g(n, u, f) : n) : new N(f === 3 ? -0 : 0);
301
+ };
302
+ d.modulo = d.mod = function(n) {
303
+ var r, t = this, e = t.constructor;
304
+ return n = new e(n), !t.d || !n.s || n.d && !n.d[0] ? new e(NaN) : !n.d || t.d && !t.d[0] ? g(new e(t), e.precision, e.rounding) : (m = !1, e.modulo == 9 ? (r = E(t, n.abs(), 0, 3, 1), r.s *= n.s) : r = E(t, n, 0, e.modulo, 1), r = r.times(n), m = !0, t.minus(r));
305
+ };
306
+ d.naturalExponential = d.exp = function() {
307
+ return hn(this);
308
+ };
309
+ d.naturalLogarithm = d.ln = function() {
310
+ return C(this);
311
+ };
312
+ d.negated = d.neg = function() {
313
+ var n = new this.constructor(this);
314
+ return n.s = -n.s, g(n);
315
+ };
316
+ d.plus = d.add = function(n) {
317
+ var r, t, e, s, i, o, u, f, c, a, l = this, h = l.constructor;
318
+ if (n = new h(n), !l.d || !n.d)
319
+ return !l.s || !n.s ? n = new h(NaN) : l.d || (n = new h(n.d || l.s === n.s ? l : NaN)), n;
320
+ if (l.s != n.s)
321
+ return n.s = -n.s, l.minus(n);
322
+ if (c = l.d, a = n.d, u = h.precision, f = h.rounding, !c[0] || !a[0])
323
+ return a[0] || (n = new h(l)), m ? g(n, u, f) : n;
324
+ if (i = A(l.e / w), e = A(n.e / w), c = c.slice(), s = i - e, s) {
325
+ for (s < 0 ? (t = c, s = -s, o = a.length) : (t = a, e = i, o = c.length), i = Math.ceil(u / w), o = i > o ? i + 1 : o + 1, s > o && (s = o, t.length = 1), t.reverse(); s--; ) t.push(0);
326
+ t.reverse();
327
+ }
328
+ for (o = c.length, s = a.length, o - s < 0 && (s = o, t = a, a = c, c = t), r = 0; s; )
329
+ r = (c[--s] = c[s] + a[s] + r) / S | 0, c[s] %= S;
330
+ for (r && (c.unshift(r), ++e), o = c.length; c[--o] == 0; ) c.pop();
331
+ return n.d = c, n.e = tn(c, e), m ? g(n, u, f) : n;
332
+ };
333
+ d.precision = d.sd = function(n) {
334
+ var r, t = this;
335
+ if (n !== void 0 && n !== !!n && n !== 1 && n !== 0)
336
+ throw Error(H + n);
337
+ return t.d ? (r = xn(t.d), n && t.e + 1 > r && (r = t.e + 1)) : r = NaN, r;
338
+ };
339
+ d.round = function() {
340
+ var n = this, r = n.constructor;
341
+ return g(new r(n), n.e + 1, r.rounding);
342
+ };
343
+ d.sine = d.sin = function() {
344
+ var n, r, t = this, e = t.constructor;
345
+ return t.isFinite() ? t.isZero() ? new e(t) : (n = e.precision, r = e.rounding, e.precision = n + Math.max(t.e, t.sd()) + w, e.rounding = 1, t = _n(e, On(e, t)), e.precision = n, e.rounding = r, g(k > 2 ? t.neg() : t, n, r, !0)) : new e(NaN);
346
+ };
347
+ d.squareRoot = d.sqrt = function() {
348
+ var n, r, t, e, s, i, o = this, u = o.d, f = o.e, c = o.s, a = o.constructor;
349
+ if (c !== 1 || !u || !u[0])
350
+ return new a(!c || c < 0 && (!u || u[0]) ? NaN : u ? o : 1 / 0);
351
+ for (m = !1, c = Math.sqrt(+o), c == 0 || c == 1 / 0 ? (r = q(u), (r.length + f) % 2 == 0 && (r += "0"), c = Math.sqrt(r), f = A((f + 1) / 2) - (f < 0 || f % 2), c == 1 / 0 ? r = "5e" + f : (r = c.toExponential(), r = r.slice(0, r.indexOf("e") + 1) + f), e = new a(r)) : e = new a(c.toString()), t = (f = a.precision) + 3; ; )
352
+ if (i = e, e = i.plus(E(o, i, t + 2, 1)).times(0.5), q(i.d).slice(0, t) === (r = q(e.d)).slice(0, t))
353
+ if (r = r.slice(t - 3, t + 1), r == "9999" || !s && r == "4999") {
354
+ if (!s && (g(i, f + 1, 0), i.times(i).eq(o))) {
355
+ e = i;
356
+ break;
357
+ }
358
+ t += 4, s = 1;
359
+ } else {
360
+ (!+r || !+r.slice(1) && r.charAt(0) == "5") && (g(e, f + 1, 1), n = !e.times(e).eq(o));
361
+ break;
362
+ }
363
+ return m = !0, g(e, f, a.rounding, n);
364
+ };
365
+ d.tangent = d.tan = function() {
366
+ var n, r, t = this, e = t.constructor;
367
+ return t.isFinite() ? t.isZero() ? new e(t) : (n = e.precision, r = e.rounding, e.precision = n + 10, e.rounding = 1, t = t.sin(), t.s = 1, t = E(t, new e(1).minus(t.times(t)).sqrt(), n + 10, 0), e.precision = n, e.rounding = r, g(k == 2 || k == 4 ? t.neg() : t, n, r, !0)) : new e(NaN);
368
+ };
369
+ d.times = d.mul = function(n) {
370
+ var r, t, e, s, i, o, u, f, c, a = this, l = a.constructor, h = a.d, p = (n = new l(n)).d;
371
+ if (n.s *= a.s, !h || !h[0] || !p || !p[0])
372
+ return new l(
373
+ !n.s || h && !h[0] && !p || p && !p[0] && !h ? (
374
+ // Return NaN if either is NaN.
375
+ // Return NaN if x is ±0 and y is ±Infinity, or y is ±0 and x is ±Infinity.
376
+ NaN
377
+ ) : (
378
+ // Return ±Infinity if either is ±Infinity.
379
+ // Return ±0 if either is ±0.
380
+ !h || !p ? n.s / 0 : n.s * 0
381
+ )
382
+ );
383
+ for (t = A(a.e / w) + A(n.e / w), f = h.length, c = p.length, f < c && (i = h, h = p, p = i, o = f, f = c, c = o), i = [], o = f + c, e = o; e--; ) i.push(0);
384
+ for (e = c; --e >= 0; ) {
385
+ for (r = 0, s = f + e; s > e; )
386
+ u = i[s] + p[e] * h[s - e - 1] + r, i[s--] = u % S | 0, r = u / S | 0;
387
+ i[s] = (i[s] + r) % S | 0;
388
+ }
389
+ for (; !i[--o]; ) i.pop();
390
+ return r ? ++t : i.shift(), n.d = i, n.e = tn(i, t), m ? g(n, l.precision, l.rounding) : n;
391
+ };
392
+ d.toBinary = function(n, r) {
393
+ return dn(this, 2, n, r);
394
+ };
395
+ d.toDecimalPlaces = d.toDP = function(n, r) {
396
+ var t = this, e = t.constructor;
397
+ return t = new e(t), n === void 0 ? t : (Z(n, 0, B), r === void 0 ? r = e.rounding : Z(r, 0, 8), g(t, n + t.e + 1, r));
398
+ };
399
+ d.toExponential = function(n, r) {
400
+ var t, e = this, s = e.constructor;
401
+ return n === void 0 ? t = L(e, !0) : (Z(n, 0, B), r === void 0 ? r = s.rounding : Z(r, 0, 8), e = g(new s(e), n + 1, r), t = L(e, !0, n + 1)), e.isNeg() && !e.isZero() ? "-" + t : t;
402
+ };
403
+ d.toFixed = function(n, r) {
404
+ var t, e, s = this, i = s.constructor;
405
+ return n === void 0 ? t = L(s) : (Z(n, 0, B), r === void 0 ? r = i.rounding : Z(r, 0, 8), e = g(new i(s), n + s.e + 1, r), t = L(e, !1, n + e.e + 1)), s.isNeg() && !s.isZero() ? "-" + t : t;
406
+ };
407
+ d.toFraction = function(n) {
408
+ var r, t, e, s, i, o, u, f, c, a, l, h, p = this, N = p.d, v = p.constructor;
409
+ if (!N) return new v(p);
410
+ if (c = t = new v(1), e = f = new v(0), r = new v(e), i = r.e = xn(N) - p.e - 1, o = i % w, r.d[0] = M(10, o < 0 ? w + o : o), n == null)
411
+ n = i > 0 ? r : c;
412
+ else {
413
+ if (u = new v(n), !u.isInt() || u.lt(c)) throw Error(H + u);
414
+ n = u.gt(r) ? i > 0 ? r : c : u;
415
+ }
416
+ for (m = !1, u = new v(q(N)), a = v.precision, v.precision = i = N.length * w * 2; l = E(u, r, 0, 1, 1), s = t.plus(l.times(e)), s.cmp(n) != 1; )
417
+ t = e, e = s, s = c, c = f.plus(l.times(s)), f = s, s = r, r = u.minus(l.times(s)), u = s;
418
+ return s = E(n.minus(t), e, 0, 1, 1), f = f.plus(s.times(c)), t = t.plus(s.times(e)), f.s = c.s = p.s, h = E(c, e, i, 1).minus(p).abs().cmp(E(f, t, i, 1).minus(p).abs()) < 1 ? [c, e] : [f, t], v.precision = a, m = !0, h;
419
+ };
420
+ d.toHexadecimal = d.toHex = function(n, r) {
421
+ return dn(this, 16, n, r);
422
+ };
423
+ d.toNearest = function(n, r) {
424
+ var t = this, e = t.constructor;
425
+ if (t = new e(t), n == null) {
426
+ if (!t.d) return t;
427
+ n = new e(1), r = e.rounding;
428
+ } else {
429
+ if (n = new e(n), r === void 0 ? r = e.rounding : Z(r, 0, 8), !t.d) return n.s ? t : n;
430
+ if (!n.d)
431
+ return n.s && (n.s = t.s), n;
432
+ }
433
+ return n.d[0] ? (m = !1, t = E(t, n, 0, r, 1).times(n), m = !0, g(t)) : (n.s = t.s, t = n), t;
434
+ };
435
+ d.toNumber = function() {
436
+ return +this;
437
+ };
438
+ d.toOctal = function(n, r) {
439
+ return dn(this, 8, n, r);
440
+ };
441
+ d.toPower = d.pow = function(n) {
442
+ var r, t, e, s, i, o, u = this, f = u.constructor, c = +(n = new f(n));
443
+ if (!u.d || !n.d || !u.d[0] || !n.d[0]) return new f(M(+u, c));
444
+ if (u = new f(u), u.eq(1)) return u;
445
+ if (e = f.precision, i = f.rounding, n.eq(1)) return g(u, e, i);
446
+ if (r = A(n.e / w), r >= n.d.length - 1 && (t = c < 0 ? -c : c) <= Pn)
447
+ return s = yn(f, u, t, e), n.s < 0 ? new f(1).div(s) : g(s, e, i);
448
+ if (o = u.s, o < 0) {
449
+ if (r < n.d.length - 1) return new f(NaN);
450
+ if ((n.d[r] & 1) == 0 && (o = 1), u.e == 0 && u.d[0] == 1 && u.d.length == 1)
451
+ return u.s = o, u;
452
+ }
453
+ return t = M(+u, c), r = t == 0 || !isFinite(t) ? A(
454
+ c * (Math.log("0." + q(u.d)) / Math.LN10 + u.e + 1)
455
+ ) : new f(t + "").e, r > f.maxE + 1 || r < f.minE - 1 ? new f(r > 0 ? o / 0 : 0) : (m = !1, f.rounding = u.s = 1, t = Math.min(12, (r + "").length), s = hn(n.times(C(u, e + t)), e), s.d && (s = g(s, e + 5, 1), j(s.d, e, i) && (r = e + 10, s = g(
456
+ hn(n.times(C(u, r + t)), r),
457
+ r + 5,
458
+ 1
459
+ ), +q(s.d).slice(e + 1, e + 15) + 1 == 1e14 && (s = g(s, e + 1, 0)))), s.s = o, m = !0, f.rounding = i, g(s, e, i));
460
+ };
461
+ d.toPrecision = function(n, r) {
462
+ var t, e = this, s = e.constructor;
463
+ return n === void 0 ? t = L(e, e.e <= s.toExpNeg || e.e >= s.toExpPos) : (Z(n, 1, B), r === void 0 ? r = s.rounding : Z(r, 0, 8), e = g(new s(e), n, r), t = L(e, n <= e.e || e.e <= s.toExpNeg, n)), e.isNeg() && !e.isZero() ? "-" + t : t;
464
+ };
465
+ d.toSignificantDigits = d.toSD = function(n, r) {
466
+ var t = this, e = t.constructor;
467
+ return n === void 0 ? (n = e.precision, r = e.rounding) : (Z(n, 1, B), r === void 0 ? r = e.rounding : Z(r, 0, 8)), g(new e(t), n, r);
468
+ };
469
+ d.toString = function() {
470
+ var n = this, r = n.constructor, t = L(n, n.e <= r.toExpNeg || n.e >= r.toExpPos);
471
+ return n.isNeg() && !n.isZero() ? "-" + t : t;
472
+ };
473
+ d.truncated = d.trunc = function() {
474
+ return g(new this.constructor(this), this.e + 1, 1);
475
+ };
476
+ d.valueOf = d.toJSON = function() {
477
+ var n = this, r = n.constructor, t = L(n, n.e <= r.toExpNeg || n.e >= r.toExpPos);
478
+ return n.isNeg() ? "-" + t : t;
479
+ };
480
+ function q(n) {
481
+ var r, t, e, s = n.length - 1, i = "", o = n[0];
482
+ if (s > 0) {
483
+ for (i += o, r = 1; r < s; r++)
484
+ e = n[r] + "", t = w - e.length, t && (i += I(t)), i += e;
485
+ o = n[r], e = o + "", t = w - e.length, t && (i += I(t));
486
+ } else if (o === 0)
487
+ return "0";
488
+ for (; o % 10 === 0; ) o /= 10;
489
+ return i + o;
490
+ }
491
+ function Z(n, r, t) {
492
+ if (n !== ~~n || n < r || n > t)
493
+ throw Error(H + n);
494
+ }
495
+ function j(n, r, t, e) {
496
+ var s, i, o, u;
497
+ for (i = n[0]; i >= 10; i /= 10) --r;
498
+ return --r < 0 ? (r += w, s = 0) : (s = Math.ceil((r + 1) / w), r %= w), i = M(10, w - r), u = n[s] % i | 0, e == null ? r < 3 ? (r == 0 ? u = u / 100 | 0 : r == 1 && (u = u / 10 | 0), o = t < 4 && u == 99999 || t > 3 && u == 49999 || u == 5e4 || u == 0) : o = (t < 4 && u + 1 == i || t > 3 && u + 1 == i / 2) && (n[s + 1] / i / 100 | 0) == M(10, r - 2) - 1 || (u == i / 2 || u == 0) && (n[s + 1] / i / 100 | 0) == 0 : r < 4 ? (r == 0 ? u = u / 1e3 | 0 : r == 1 ? u = u / 100 | 0 : r == 2 && (u = u / 10 | 0), o = (e || t < 4) && u == 9999 || !e && t > 3 && u == 4999) : o = ((e || t < 4) && u + 1 == i || !e && t > 3 && u + 1 == i / 2) && (n[s + 1] / i / 1e3 | 0) == M(10, r - 3) - 1, o;
499
+ }
500
+ function K(n, r, t) {
501
+ for (var e, s = [0], i, o = 0, u = n.length; o < u; ) {
502
+ for (i = s.length; i--; ) s[i] *= r;
503
+ for (s[0] += fn.indexOf(n.charAt(o++)), e = 0; e < s.length; e++)
504
+ s[e] > t - 1 && (s[e + 1] === void 0 && (s[e + 1] = 0), s[e + 1] += s[e] / t | 0, s[e] %= t);
505
+ }
506
+ return s.reverse();
507
+ }
508
+ function Sn(n, r) {
509
+ var t, e, s;
510
+ if (r.isZero()) return r;
511
+ e = r.d.length, e < 32 ? (t = Math.ceil(e / 3), s = (1 / en(4, t)).toString()) : (t = 16, s = "2.3283064365386962890625e-10"), n.precision += t, r = V(n, 1, r.times(s), new n(1));
512
+ for (var i = t; i--; ) {
513
+ var o = r.times(r);
514
+ r = o.times(o).minus(o).times(8).plus(1);
515
+ }
516
+ return n.precision -= t, r;
517
+ }
518
+ var E = /* @__PURE__ */ function() {
519
+ function n(e, s, i) {
520
+ var o, u = 0, f = e.length;
521
+ for (e = e.slice(); f--; )
522
+ o = e[f] * s + u, e[f] = o % i | 0, u = o / i | 0;
523
+ return u && e.unshift(u), e;
524
+ }
525
+ function r(e, s, i, o) {
526
+ var u, f;
527
+ if (i != o)
528
+ f = i > o ? 1 : -1;
529
+ else
530
+ for (u = f = 0; u < i; u++)
531
+ if (e[u] != s[u]) {
532
+ f = e[u] > s[u] ? 1 : -1;
533
+ break;
534
+ }
535
+ return f;
536
+ }
537
+ function t(e, s, i, o) {
538
+ for (var u = 0; i--; )
539
+ e[i] -= u, u = e[i] < s[i] ? 1 : 0, e[i] = u * o + e[i] - s[i];
540
+ for (; !e[0] && e.length > 1; ) e.shift();
541
+ }
542
+ return function(e, s, i, o, u, f) {
543
+ var c, a, l, h, p, N, v, D, y, P, b, O, W, U, sn, J, $, on, R, z, G = e.constructor, un = e.s == s.s ? 1 : -1, F = e.d, x = s.d;
544
+ if (!F || !F[0] || !x || !x[0])
545
+ return new G(
546
+ // Return NaN if either NaN, or both Infinity or 0.
547
+ !e.s || !s.s || (F ? x && F[0] == x[0] : !x) ? NaN : (
548
+ // Return ±0 if x is 0 or y is ±Infinity, or return ±Infinity as y is 0.
549
+ F && F[0] == 0 || !x ? un * 0 : un / 0
550
+ )
551
+ );
552
+ for (f ? (p = 1, a = e.e - s.e) : (f = S, p = w, a = A(e.e / p) - A(s.e / p)), R = x.length, $ = F.length, y = new G(un), P = y.d = [], l = 0; x[l] == (F[l] || 0); l++) ;
553
+ if (x[l] > (F[l] || 0) && a--, i == null ? (U = i = G.precision, o = G.rounding) : u ? U = i + (e.e - s.e) + 1 : U = i, U < 0)
554
+ P.push(1), N = !0;
555
+ else {
556
+ if (U = U / p + 2 | 0, l = 0, R == 1) {
557
+ for (h = 0, x = x[0], U++; (l < $ || h) && U--; l++)
558
+ sn = h * f + (F[l] || 0), P[l] = sn / x | 0, h = sn % x | 0;
559
+ N = h || l < $;
560
+ } else {
561
+ for (h = f / (x[0] + 1) | 0, h > 1 && (x = n(x, h, f), F = n(F, h, f), R = x.length, $ = F.length), J = R, b = F.slice(0, R), O = b.length; O < R; ) b[O++] = 0;
562
+ z = x.slice(), z.unshift(0), on = x[0], x[1] >= f / 2 && ++on;
563
+ do
564
+ h = 0, c = r(x, b, R, O), c < 0 ? (W = b[0], R != O && (W = W * f + (b[1] || 0)), h = W / on | 0, h > 1 ? (h >= f && (h = f - 1), v = n(x, h, f), D = v.length, O = b.length, c = r(v, b, D, O), c == 1 && (h--, t(v, R < D ? z : x, D, f))) : (h == 0 && (c = h = 1), v = x.slice()), D = v.length, D < O && v.unshift(0), t(b, v, O, f), c == -1 && (O = b.length, c = r(x, b, R, O), c < 1 && (h++, t(b, R < O ? z : x, O, f))), O = b.length) : c === 0 && (h++, b = [0]), P[l++] = h, c && b[0] ? b[O++] = F[J] || 0 : (b = [F[J]], O = 1);
565
+ while ((J++ < $ || b[0] !== void 0) && U--);
566
+ N = b[0] !== void 0;
567
+ }
568
+ P[0] || P.shift();
569
+ }
570
+ if (p == 1)
571
+ y.e = a, mn = N;
572
+ else {
573
+ for (l = 1, h = P[0]; h >= 10; h /= 10) l++;
574
+ y.e = l + a * p - 1, g(y, u ? i + y.e + 1 : i, o, N);
575
+ }
576
+ return y;
577
+ };
578
+ }();
579
+ function g(n, r, t, e) {
580
+ var s, i, o, u, f, c, a, l, h, p = n.constructor;
581
+ n: if (r != null) {
582
+ if (l = n.d, !l) return n;
583
+ for (s = 1, u = l[0]; u >= 10; u /= 10) s++;
584
+ if (i = r - s, i < 0)
585
+ i += w, o = r, a = l[h = 0], f = a / M(10, s - o - 1) % 10 | 0;
586
+ else if (h = Math.ceil((i + 1) / w), u = l.length, h >= u)
587
+ if (e) {
588
+ for (; u++ <= h; ) l.push(0);
589
+ a = f = 0, s = 1, i %= w, o = i - w + 1;
590
+ } else
591
+ break n;
592
+ else {
593
+ for (a = u = l[h], s = 1; u >= 10; u /= 10) s++;
594
+ i %= w, o = i - w + s, f = o < 0 ? 0 : a / M(10, s - o - 1) % 10 | 0;
595
+ }
596
+ if (e = e || r < 0 || l[h + 1] !== void 0 || (o < 0 ? a : a % M(10, s - o - 1)), c = t < 4 ? (f || e) && (t == 0 || t == (n.s < 0 ? 3 : 2)) : f > 5 || f == 5 && (t == 4 || e || t == 6 && // Check whether the digit to the left of the rounding digit is odd.
597
+ (i > 0 ? o > 0 ? a / M(10, s - o) : 0 : l[h - 1]) % 10 & 1 || t == (n.s < 0 ? 8 : 7)), r < 1 || !l[0])
598
+ return l.length = 0, c ? (r -= n.e + 1, l[0] = M(10, (w - r % w) % w), n.e = -r || 0) : l[0] = n.e = 0, n;
599
+ if (i == 0 ? (l.length = h, u = 1, h--) : (l.length = h + 1, u = M(10, w - i), l[h] = o > 0 ? (a / M(10, s - o) % M(10, o) | 0) * u : 0), c)
600
+ for (; ; )
601
+ if (h == 0) {
602
+ for (i = 1, o = l[0]; o >= 10; o /= 10) i++;
603
+ for (o = l[0] += u, u = 1; o >= 10; o /= 10) u++;
604
+ i != u && (n.e++, l[0] == S && (l[0] = 1));
605
+ break;
606
+ } else {
607
+ if (l[h] += u, l[h] != S) break;
608
+ l[h--] = 0, u = 1;
609
+ }
610
+ for (i = l.length; l[--i] === 0; ) l.pop();
611
+ }
612
+ return m && (n.e > p.maxE ? (n.d = null, n.e = NaN) : n.e < p.minE && (n.e = 0, n.d = [0])), n;
613
+ }
614
+ function L(n, r, t) {
615
+ if (!n.isFinite()) return qn(n);
616
+ var e, s = n.e, i = q(n.d), o = i.length;
617
+ return r ? (t && (e = t - o) > 0 ? i = i.charAt(0) + "." + i.slice(1) + I(e) : o > 1 && (i = i.charAt(0) + "." + i.slice(1)), i = i + (n.e < 0 ? "e" : "e+") + n.e) : s < 0 ? (i = "0." + I(-s - 1) + i, t && (e = t - o) > 0 && (i += I(e))) : s >= o ? (i += I(s + 1 - o), t && (e = t - s - 1) > 0 && (i = i + "." + I(e))) : ((e = s + 1) < o && (i = i.slice(0, e) + "." + i.slice(e)), t && (e = t - o) > 0 && (s + 1 === o && (i += "."), i += I(e))), i;
618
+ }
619
+ function tn(n, r) {
620
+ var t = n[0];
621
+ for (r *= w; t >= 10; t /= 10) r++;
622
+ return r;
623
+ }
624
+ function nn(n, r, t) {
625
+ if (r > Rn)
626
+ throw m = !0, t && (n.precision = t), Error(vn);
627
+ return g(new n(X), r, 1, !0);
628
+ }
629
+ function T(n, r, t) {
630
+ if (r > ln) throw Error(vn);
631
+ return g(new n(Y), r, t, !0);
632
+ }
633
+ function xn(n) {
634
+ var r = n.length - 1, t = r * w + 1;
635
+ if (r = n[r], r) {
636
+ for (; r % 10 == 0; r /= 10) t--;
637
+ for (r = n[0]; r >= 10; r /= 10) t++;
638
+ }
639
+ return t;
640
+ }
641
+ function I(n) {
642
+ for (var r = ""; n--; ) r += "0";
643
+ return r;
644
+ }
645
+ function yn(n, r, t, e) {
646
+ var s, i = new n(1), o = Math.ceil(e / w + 4);
647
+ for (m = !1; ; ) {
648
+ if (t % 2 && (i = i.times(r), pn(i.d, o) && (s = !0)), t = A(t / 2), t === 0) {
649
+ t = i.d.length - 1, s && i.d[t] === 0 && ++i.d[t];
650
+ break;
651
+ }
652
+ r = r.times(r), pn(r.d, o);
653
+ }
654
+ return m = !0, i;
655
+ }
656
+ function gn(n) {
657
+ return n.d[n.d.length - 1] & 1;
658
+ }
659
+ function Mn(n, r, t) {
660
+ for (var e, s, i = new n(r[0]), o = 0; ++o < r.length; ) {
661
+ if (s = new n(r[o]), !s.s) {
662
+ i = s;
663
+ break;
664
+ }
665
+ e = i.cmp(s), (e === t || e === 0 && i.s === t) && (i = s);
666
+ }
667
+ return i;
668
+ }
669
+ function hn(n, r) {
670
+ var t, e, s, i, o, u, f, c = 0, a = 0, l = 0, h = n.constructor, p = h.rounding, N = h.precision;
671
+ if (!n.d || !n.d[0] || n.e > 17)
672
+ return new h(
673
+ n.d ? n.d[0] ? n.s < 0 ? 0 : 1 / 0 : 1 : n.s ? n.s < 0 ? 0 : n : NaN
674
+ );
675
+ for (r == null ? (m = !1, f = N) : f = r, u = new h(0.03125); n.e > -2; )
676
+ n = n.times(u), l += 5;
677
+ for (e = Math.log(M(2, l)) / Math.LN10 * 2 + 5 | 0, f += e, t = i = o = new h(1), h.precision = f; ; ) {
678
+ if (i = g(i.times(n), f, 1), t = t.times(++a), u = o.plus(E(i, t, f, 1)), q(u.d).slice(0, f) === q(o.d).slice(0, f)) {
679
+ for (s = l; s--; ) o = g(o.times(o), f, 1);
680
+ if (r == null)
681
+ if (c < 3 && j(o.d, f - e, p, c))
682
+ h.precision = f += 10, t = i = u = new h(1), a = 0, c++;
683
+ else
684
+ return g(o, h.precision = N, p, m = !0);
685
+ else
686
+ return h.precision = N, o;
687
+ }
688
+ o = u;
689
+ }
690
+ }
691
+ function C(n, r) {
692
+ var t, e, s, i, o, u, f, c, a, l, h, p = 1, N = 10, v = n, D = v.d, y = v.constructor, P = y.rounding, b = y.precision;
693
+ if (v.s < 0 || !D || !D[0] || !v.e && D[0] == 1 && D.length == 1)
694
+ return new y(D && !D[0] ? -1 / 0 : v.s != 1 ? NaN : D ? 0 : v);
695
+ if (r == null ? (m = !1, a = b) : a = r, y.precision = a += N, t = q(D), e = t.charAt(0), Math.abs(i = v.e) < 15e14) {
696
+ for (; e < 7 && e != 1 || e == 1 && t.charAt(1) > 3; )
697
+ v = v.times(n), t = q(v.d), e = t.charAt(0), p++;
698
+ i = v.e, e > 1 ? (v = new y("0." + t), i++) : v = new y(e + "." + t.slice(1));
699
+ } else
700
+ return c = nn(y, a + 2, b).times(i + ""), v = C(new y(e + "." + t.slice(1)), a - N).plus(c), y.precision = b, r == null ? g(v, b, P, m = !0) : v;
701
+ for (l = v, f = o = v = E(v.minus(1), v.plus(1), a, 1), h = g(v.times(v), a, 1), s = 3; ; ) {
702
+ if (o = g(o.times(h), a, 1), c = f.plus(E(o, new y(s), a, 1)), q(c.d).slice(0, a) === q(f.d).slice(0, a))
703
+ if (f = f.times(2), i !== 0 && (f = f.plus(nn(y, a + 2, b).times(i + ""))), f = E(f, new y(p), a, 1), r == null)
704
+ if (j(f.d, a - N, P, u))
705
+ y.precision = a += N, c = o = v = E(l.minus(1), l.plus(1), a, 1), h = g(v.times(v), a, 1), s = u = 1;
706
+ else
707
+ return g(f, y.precision = b, P, m = !0);
708
+ else
709
+ return y.precision = b, f;
710
+ f = c, s += 2;
711
+ }
712
+ }
713
+ function qn(n) {
714
+ return String(n.s * n.s / 0);
715
+ }
716
+ function Q(n, r) {
717
+ var t, e, s;
718
+ for ((t = r.indexOf(".")) > -1 && (r = r.replace(".", "")), (e = r.search(/e/i)) > 0 ? (t < 0 && (t = e), t += +r.slice(e + 1), r = r.substring(0, e)) : t < 0 && (t = r.length), e = 0; r.charCodeAt(e) === 48; e++) ;
719
+ for (s = r.length; r.charCodeAt(s - 1) === 48; --s) ;
720
+ if (r = r.slice(e, s), r) {
721
+ if (s -= e, n.e = t = t - e - 1, n.d = [], e = (t + 1) % w, t < 0 && (e += w), e < s) {
722
+ for (e && n.d.push(+r.slice(0, e)), s -= w; e < s; ) n.d.push(+r.slice(e, e += w));
723
+ r = r.slice(e), e = w - r.length;
724
+ } else
725
+ e -= s;
726
+ for (; e--; ) r += "0";
727
+ n.d.push(+r), m && (n.e > n.constructor.maxE ? (n.d = null, n.e = NaN) : n.e < n.constructor.minE && (n.e = 0, n.d = [0]));
728
+ } else
729
+ n.e = 0, n.d = [0];
730
+ return n;
731
+ }
732
+ function Tn(n, r) {
733
+ var t, e, s, i, o, u, f, c, a;
734
+ if (r.indexOf("_") > -1) {
735
+ if (r = r.replace(/(\d)_(?=\d)/g, "$1"), En.test(r)) return Q(n, r);
736
+ } else if (r === "Infinity" || r === "NaN")
737
+ return +r || (n.s = NaN), n.e = NaN, n.d = null, n;
738
+ if (Dn.test(r))
739
+ t = 16, r = r.toLowerCase();
740
+ else if (An.test(r))
741
+ t = 2;
742
+ else if (Zn.test(r))
743
+ t = 8;
744
+ else
745
+ throw Error(H + r);
746
+ for (i = r.search(/p/i), i > 0 ? (f = +r.slice(i + 1), r = r.substring(2, i)) : r = r.slice(2), i = r.indexOf("."), o = i >= 0, e = n.constructor, o && (r = r.replace(".", ""), u = r.length, i = u - i, s = yn(e, new e(t), i, i * 2)), c = K(r, t, S), a = c.length - 1, i = a; c[i] === 0; --i) c.pop();
747
+ return i < 0 ? new e(n.s * 0) : (n.e = tn(c, a), n.d = c, m = !1, o && (n = E(n, s, u * 4)), f && (n = n.times(Math.abs(f) < 54 ? M(2, f) : _.pow(2, f))), m = !0, n);
748
+ }
749
+ function _n(n, r) {
750
+ var t, e = r.d.length;
751
+ if (e < 3)
752
+ return r.isZero() ? r : V(n, 2, r, r);
753
+ t = 1.4 * Math.sqrt(e), t = t > 16 ? 16 : t | 0, r = r.times(1 / en(5, t)), r = V(n, 2, r, r);
754
+ for (var s, i = new n(5), o = new n(16), u = new n(20); t--; )
755
+ s = r.times(r), r = r.times(i.plus(s.times(o.times(s).minus(u))));
756
+ return r;
757
+ }
758
+ function V(n, r, t, e, s) {
759
+ var i, o, u, f, c = n.precision, a = Math.ceil(c / w);
760
+ for (m = !1, f = t.times(t), u = new n(e); ; ) {
761
+ if (o = E(u.times(f), new n(r++ * r++), c, 1), u = s ? e.plus(o) : e.minus(o), e = E(o.times(f), new n(r++ * r++), c, 1), o = u.plus(e), o.d[a] !== void 0) {
762
+ for (i = a; o.d[i] === u.d[i] && i--; ) ;
763
+ if (i == -1) break;
764
+ }
765
+ i = u, u = e, e = o, o = i;
766
+ }
767
+ return m = !0, o.d.length = a + 1, o;
768
+ }
769
+ function en(n, r) {
770
+ for (var t = n; --r; ) t *= n;
771
+ return t;
772
+ }
773
+ function On(n, r) {
774
+ var t, e = r.s < 0, s = T(n, n.precision, 1), i = s.times(0.5);
775
+ if (r = r.abs(), r.lte(i))
776
+ return k = e ? 4 : 1, r;
777
+ if (t = r.divToInt(s), t.isZero())
778
+ k = e ? 3 : 2;
779
+ else {
780
+ if (r = r.minus(t.times(s)), r.lte(i))
781
+ return k = gn(t) ? e ? 2 : 3 : e ? 4 : 1, r;
782
+ k = gn(t) ? e ? 1 : 4 : e ? 3 : 2;
783
+ }
784
+ return r.minus(s).abs();
785
+ }
786
+ function dn(n, r, t, e) {
787
+ var s, i, o, u, f, c, a, l, h, p = n.constructor, N = t !== void 0;
788
+ if (N ? (Z(t, 1, B), e === void 0 ? e = p.rounding : Z(e, 0, 8)) : (t = p.precision, e = p.rounding), !n.isFinite())
789
+ a = qn(n);
790
+ else {
791
+ for (a = L(n), o = a.indexOf("."), N ? (s = 2, r == 16 ? t = t * 4 - 3 : r == 8 && (t = t * 3 - 2)) : s = r, o >= 0 && (a = a.replace(".", ""), h = new p(1), h.e = a.length - o, h.d = K(L(h), 10, s), h.e = h.d.length), l = K(a, 10, s), i = f = l.length; l[--f] == 0; ) l.pop();
792
+ if (!l[0])
793
+ a = N ? "0p+0" : "0";
794
+ else {
795
+ if (o < 0 ? i-- : (n = new p(n), n.d = l, n.e = i, n = E(n, h, t, e, 0, s), l = n.d, i = n.e, c = mn), o = l[t], u = s / 2, c = c || l[t + 1] !== void 0, c = e < 4 ? (o !== void 0 || c) && (e === 0 || e === (n.s < 0 ? 3 : 2)) : o > u || o === u && (e === 4 || c || e === 6 && l[t - 1] & 1 || e === (n.s < 0 ? 8 : 7)), l.length = t, c)
796
+ for (; ++l[--t] > s - 1; )
797
+ l[t] = 0, t || (++i, l.unshift(1));
798
+ for (f = l.length; !l[f - 1]; --f) ;
799
+ for (o = 0, a = ""; o < f; o++) a += fn.charAt(l[o]);
800
+ if (N) {
801
+ if (f > 1)
802
+ if (r == 16 || r == 8) {
803
+ for (o = r == 16 ? 4 : 3, --f; f % o; f++) a += "0";
804
+ for (l = K(a, s, r), f = l.length; !l[f - 1]; --f) ;
805
+ for (o = 1, a = "1."; o < f; o++) a += fn.charAt(l[o]);
806
+ } else
807
+ a = a.charAt(0) + "." + a.slice(1);
808
+ a = a + (i < 0 ? "p" : "p+") + i;
809
+ } else if (i < 0) {
810
+ for (; ++i; ) a = "0" + a;
811
+ a = "0." + a;
812
+ } else if (++i > f) for (i -= f; i--; ) a += "0";
813
+ else i < f && (a = a.slice(0, i) + "." + a.slice(i));
814
+ }
815
+ a = (r == 16 ? "0x" : r == 2 ? "0b" : r == 8 ? "0o" : "") + a;
816
+ }
817
+ return n.s < 0 ? "-" + a : a;
818
+ }
819
+ function pn(n, r) {
820
+ if (n.length > r)
821
+ return n.length = r, !0;
822
+ }
823
+ function Ln(n) {
824
+ return new this(n).abs();
825
+ }
826
+ function Un(n) {
827
+ return new this(n).acos();
828
+ }
829
+ function kn(n) {
830
+ return new this(n).acosh();
831
+ }
832
+ function In(n, r) {
833
+ return new this(n).plus(r);
834
+ }
835
+ function Cn(n) {
836
+ return new this(n).asin();
837
+ }
838
+ function Hn(n) {
839
+ return new this(n).asinh();
840
+ }
841
+ function Bn(n) {
842
+ return new this(n).atan();
843
+ }
844
+ function Vn(n) {
845
+ return new this(n).atanh();
846
+ }
847
+ function $n(n, r) {
848
+ n = new this(n), r = new this(r);
849
+ var t, e = this.precision, s = this.rounding, i = e + 4;
850
+ return !n.s || !r.s ? t = new this(NaN) : !n.d && !r.d ? (t = T(this, i, 1).times(r.s > 0 ? 0.25 : 0.75), t.s = n.s) : !r.d || n.isZero() ? (t = r.s < 0 ? T(this, e, s) : new this(0), t.s = n.s) : !n.d || r.isZero() ? (t = T(this, i, 1).times(0.5), t.s = n.s) : r.s < 0 ? (this.precision = i, this.rounding = 1, t = this.atan(E(n, r, i, 1)), r = T(this, i, 1), this.precision = e, this.rounding = s, t = n.s < 0 ? t.minus(r) : t.plus(r)) : t = this.atan(E(n, r, i, 1)), t;
851
+ }
852
+ function jn(n) {
853
+ return new this(n).cbrt();
854
+ }
855
+ function Wn(n) {
856
+ return g(n = new this(n), n.e + 1, 2);
857
+ }
858
+ function Jn(n, r, t) {
859
+ return new this(n).clamp(r, t);
860
+ }
861
+ function zn(n) {
862
+ if (!n || typeof n != "object")
863
+ throw Error(rn + "Object expected");
864
+ var r, t, e, s = n.defaults === !0, i = [
865
+ "precision",
866
+ 1,
867
+ B,
868
+ "rounding",
869
+ 0,
870
+ 8,
871
+ "toExpNeg",
872
+ -9e15,
873
+ 0,
874
+ "toExpPos",
875
+ 0,
876
+ cn,
877
+ "maxE",
878
+ 0,
879
+ cn,
880
+ "minE",
881
+ -9e15,
882
+ 0,
883
+ "modulo",
884
+ 0,
885
+ 9
886
+ ];
887
+ for (r = 0; r < i.length; r += 3)
888
+ if (t = i[r], s && (this[t] = an[t]), (e = n[t]) !== void 0)
889
+ if (A(e) === e && e >= i[r + 1] && e <= i[r + 2]) this[t] = e;
890
+ else throw Error(H + t + ": " + e);
891
+ if (t = "crypto", s && (this[t] = an[t]), (e = n[t]) !== void 0)
892
+ if (e === !0 || e === !1 || e === 0 || e === 1)
893
+ if (e)
894
+ if (typeof crypto < "u" && crypto && (crypto.getRandomValues || crypto.randomBytes))
895
+ this[t] = !0;
896
+ else
897
+ throw Error(Nn);
898
+ else
899
+ this[t] = !1;
900
+ else
901
+ throw Error(H + t + ": " + e);
902
+ return this;
903
+ }
904
+ function Gn(n) {
905
+ return new this(n).cos();
906
+ }
907
+ function Kn(n) {
908
+ return new this(n).cosh();
909
+ }
910
+ function Fn(n) {
911
+ var r, t, e;
912
+ function s(i) {
913
+ var o, u, f, c = this;
914
+ if (!(c instanceof s)) return new s(i);
915
+ if (c.constructor = s, wn(i)) {
916
+ c.s = i.s, m ? !i.d || i.e > s.maxE ? (c.e = NaN, c.d = null) : i.e < s.minE ? (c.e = 0, c.d = [0]) : (c.e = i.e, c.d = i.d.slice()) : (c.e = i.e, c.d = i.d ? i.d.slice() : i.d);
917
+ return;
918
+ }
919
+ if (f = typeof i, f === "number") {
920
+ if (i === 0) {
921
+ c.s = 1 / i < 0 ? -1 : 1, c.e = 0, c.d = [0];
922
+ return;
923
+ }
924
+ if (i < 0 ? (i = -i, c.s = -1) : c.s = 1, i === ~~i && i < 1e7) {
925
+ for (o = 0, u = i; u >= 10; u /= 10) o++;
926
+ m ? o > s.maxE ? (c.e = NaN, c.d = null) : o < s.minE ? (c.e = 0, c.d = [0]) : (c.e = o, c.d = [i]) : (c.e = o, c.d = [i]);
927
+ return;
928
+ }
929
+ if (i * 0 !== 0) {
930
+ i || (c.s = NaN), c.e = NaN, c.d = null;
931
+ return;
932
+ }
933
+ return Q(c, i.toString());
934
+ }
935
+ if (f === "string")
936
+ return (u = i.charCodeAt(0)) === 45 ? (i = i.slice(1), c.s = -1) : (u === 43 && (i = i.slice(1)), c.s = 1), En.test(i) ? Q(c, i) : Tn(c, i);
937
+ if (f === "bigint")
938
+ return i < 0 ? (i = -i, c.s = -1) : c.s = 1, Q(c, i.toString());
939
+ throw Error(H + i);
940
+ }
941
+ if (s.prototype = d, s.ROUND_UP = 0, s.ROUND_DOWN = 1, s.ROUND_CEIL = 2, s.ROUND_FLOOR = 3, s.ROUND_HALF_UP = 4, s.ROUND_HALF_DOWN = 5, s.ROUND_HALF_EVEN = 6, s.ROUND_HALF_CEIL = 7, s.ROUND_HALF_FLOOR = 8, s.EUCLID = 9, s.config = s.set = zn, s.clone = Fn, s.isDecimal = wn, s.abs = Ln, s.acos = Un, s.acosh = kn, s.add = In, s.asin = Cn, s.asinh = Hn, s.atan = Bn, s.atanh = Vn, s.atan2 = $n, s.cbrt = jn, s.ceil = Wn, s.clamp = Jn, s.cos = Gn, s.cosh = Kn, s.div = Qn, s.exp = Xn, s.floor = Yn, s.hypot = nr, s.ln = rr, s.log = tr, s.log10 = ir, s.log2 = er, s.max = sr, s.min = or, s.mod = ur, s.mul = cr, s.pow = fr, s.random = ar, s.round = lr, s.sign = hr, s.sin = dr, s.sinh = gr, s.sqrt = pr, s.sub = wr, s.sum = mr, s.tan = vr, s.tanh = Nr, s.trunc = br, n === void 0 && (n = {}), n && n.defaults !== !0)
942
+ for (e = [
943
+ "precision",
944
+ "rounding",
945
+ "toExpNeg",
946
+ "toExpPos",
947
+ "maxE",
948
+ "minE",
949
+ "modulo",
950
+ "crypto"
951
+ ], r = 0; r < e.length; )
952
+ Object.prototype.hasOwnProperty.call(n, t = e[r++]) || (n[t] = this[t]);
953
+ return s.config(n), s;
954
+ }
955
+ function Qn(n, r) {
956
+ return new this(n).div(r);
957
+ }
958
+ function Xn(n) {
959
+ return new this(n).exp();
960
+ }
961
+ function Yn(n) {
962
+ return g(n = new this(n), n.e + 1, 3);
963
+ }
964
+ function nr() {
965
+ var n, r, t = new this(0);
966
+ for (m = !1, n = 0; n < arguments.length; )
967
+ if (r = new this(arguments[n++]), r.d)
968
+ t.d && (t = t.plus(r.times(r)));
969
+ else {
970
+ if (r.s)
971
+ return m = !0, new this(1 / 0);
972
+ t = r;
973
+ }
974
+ return m = !0, t.sqrt();
975
+ }
976
+ function wn(n) {
977
+ return n instanceof _ || n && n.toStringTag === bn || !1;
978
+ }
979
+ function rr(n) {
980
+ return new this(n).ln();
981
+ }
982
+ function tr(n, r) {
983
+ return new this(n).log(r);
984
+ }
985
+ function er(n) {
986
+ return new this(n).log(2);
987
+ }
988
+ function ir(n) {
989
+ return new this(n).log(10);
990
+ }
991
+ function sr() {
992
+ return Mn(this, arguments, -1);
993
+ }
994
+ function or() {
995
+ return Mn(this, arguments, 1);
996
+ }
997
+ function ur(n, r) {
998
+ return new this(n).mod(r);
999
+ }
1000
+ function cr(n, r) {
1001
+ return new this(n).mul(r);
1002
+ }
1003
+ function fr(n, r) {
1004
+ return new this(n).pow(r);
1005
+ }
1006
+ function ar(n) {
1007
+ var r, t, e, s, i = 0, o = new this(1), u = [];
1008
+ if (n === void 0 ? n = this.precision : Z(n, 1, B), e = Math.ceil(n / w), this.crypto)
1009
+ if (crypto.getRandomValues)
1010
+ for (r = crypto.getRandomValues(new Uint32Array(e)); i < e; )
1011
+ s = r[i], s >= 429e7 ? r[i] = crypto.getRandomValues(new Uint32Array(1))[0] : u[i++] = s % 1e7;
1012
+ else if (crypto.randomBytes) {
1013
+ for (r = crypto.randomBytes(e *= 4); i < e; )
1014
+ s = r[i] + (r[i + 1] << 8) + (r[i + 2] << 16) + ((r[i + 3] & 127) << 24), s >= 214e7 ? crypto.randomBytes(4).copy(r, i) : (u.push(s % 1e7), i += 4);
1015
+ i = e / 4;
1016
+ } else
1017
+ throw Error(Nn);
1018
+ else for (; i < e; ) u[i++] = Math.random() * 1e7 | 0;
1019
+ for (e = u[--i], n %= w, e && n && (s = M(10, w - n), u[i] = (e / s | 0) * s); u[i] === 0; i--) u.pop();
1020
+ if (i < 0)
1021
+ t = 0, u = [0];
1022
+ else {
1023
+ for (t = -1; u[0] === 0; t -= w) u.shift();
1024
+ for (e = 1, s = u[0]; s >= 10; s /= 10) e++;
1025
+ e < w && (t -= w - e);
1026
+ }
1027
+ return o.e = t, o.d = u, o;
1028
+ }
1029
+ function lr(n) {
1030
+ return g(n = new this(n), n.e + 1, this.rounding);
1031
+ }
1032
+ function hr(n) {
1033
+ return n = new this(n), n.d ? n.d[0] ? n.s : 0 * n.s : n.s || NaN;
1034
+ }
1035
+ function dr(n) {
1036
+ return new this(n).sin();
1037
+ }
1038
+ function gr(n) {
1039
+ return new this(n).sinh();
1040
+ }
1041
+ function pr(n) {
1042
+ return new this(n).sqrt();
1043
+ }
1044
+ function wr(n, r) {
1045
+ return new this(n).sub(r);
1046
+ }
1047
+ function mr() {
1048
+ var n = 0, r = arguments, t = new this(r[n]);
1049
+ for (m = !1; t.s && ++n < r.length; ) t = t.plus(r[n]);
1050
+ return m = !0, g(t, this.precision, this.rounding);
1051
+ }
1052
+ function vr(n) {
1053
+ return new this(n).tan();
1054
+ }
1055
+ function Nr(n) {
1056
+ return new this(n).tanh();
1057
+ }
1058
+ function br(n) {
1059
+ return g(n = new this(n), n.e + 1, 1);
1060
+ }
1061
+ _ = Fn(an);
1062
+ _.prototype.constructor = _;
1063
+ _.default = _.Decimal = _;
1064
+ X = new _(X);
1065
+ Y = new _(Y);
1066
+ export {
1067
+ _
1068
+ };