@rpcbase/ui 0.169.0 → 0.170.0

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 (464) hide show
  1. package/dist/components/DayPickerField/index.d.ts.map +1 -1
  2. package/dist/components/HourPickerField/index.d.ts.map +1 -1
  3. package/dist/index100.js +5 -9
  4. package/dist/index100.js.map +1 -1
  5. package/dist/index101.js +4 -42
  6. package/dist/index101.js.map +1 -1
  7. package/dist/index102.js +5 -4
  8. package/dist/index102.js.map +1 -1
  9. package/dist/index103.js +5 -52
  10. package/dist/index103.js.map +1 -1
  11. package/dist/index104.js +7 -3
  12. package/dist/index104.js.map +1 -1
  13. package/dist/index105.js +5 -4
  14. package/dist/index105.js.map +1 -1
  15. package/dist/index106.js +4 -15
  16. package/dist/index106.js.map +1 -1
  17. package/dist/index107.js +4 -5
  18. package/dist/index107.js.map +1 -1
  19. package/dist/index108.js +6 -7
  20. package/dist/index108.js.map +1 -1
  21. package/dist/index109.js +145 -16
  22. package/dist/index109.js.map +1 -1
  23. package/dist/index11.js.map +1 -1
  24. package/dist/index110.js +39 -4
  25. package/dist/index110.js.map +1 -1
  26. package/dist/index111.js +4 -4
  27. package/dist/index111.js.map +1 -1
  28. package/dist/index112.js +7 -5
  29. package/dist/index112.js.map +1 -1
  30. package/dist/index113.js +13 -5
  31. package/dist/index113.js.map +1 -1
  32. package/dist/index114.js +13 -4
  33. package/dist/index114.js.map +1 -1
  34. package/dist/index115.js +7 -4
  35. package/dist/index115.js.map +1 -1
  36. package/dist/index116.js +31 -6
  37. package/dist/index116.js.map +1 -1
  38. package/dist/index117.js +10 -24
  39. package/dist/index117.js.map +1 -1
  40. package/dist/index118.js +10 -6
  41. package/dist/index118.js.map +1 -1
  42. package/dist/index119.js +8 -4
  43. package/dist/index119.js.map +1 -1
  44. package/dist/index120.js +13 -6
  45. package/dist/index120.js.map +1 -1
  46. package/dist/index121.js +101 -5
  47. package/dist/index121.js.map +1 -1
  48. package/dist/index122.js +20 -5
  49. package/dist/index122.js.map +1 -1
  50. package/dist/index123.js +53 -5
  51. package/dist/index123.js.map +1 -1
  52. package/dist/index124.js +72 -4
  53. package/dist/index124.js.map +1 -1
  54. package/dist/index125.js +9 -8
  55. package/dist/index125.js.map +1 -1
  56. package/dist/index126.js +20 -5
  57. package/dist/index126.js.map +1 -1
  58. package/dist/index127.js +16 -4
  59. package/dist/index127.js.map +1 -1
  60. package/dist/index128.js +23 -4
  61. package/dist/index128.js.map +1 -1
  62. package/dist/index129.js +6 -6
  63. package/dist/index129.js.map +1 -1
  64. package/dist/index130.js +5 -145
  65. package/dist/index130.js.map +1 -1
  66. package/dist/index131.js +23 -39
  67. package/dist/index131.js.map +1 -1
  68. package/dist/index132.js +35 -5
  69. package/dist/index132.js.map +1 -1
  70. package/dist/index133.js +16 -8
  71. package/dist/index133.js.map +1 -1
  72. package/dist/index134.js +6 -13
  73. package/dist/index134.js.map +1 -1
  74. package/dist/index135.js +4 -13
  75. package/dist/index135.js.map +1 -1
  76. package/dist/index136.js +4 -7
  77. package/dist/index136.js.map +1 -1
  78. package/dist/index137.js +4 -31
  79. package/dist/index137.js.map +1 -1
  80. package/dist/index138.js +4 -10
  81. package/dist/index138.js.map +1 -1
  82. package/dist/index139.js +3 -10
  83. package/dist/index139.js.map +1 -1
  84. package/dist/index140.js +6 -8
  85. package/dist/index140.js.map +1 -1
  86. package/dist/index141.js +24 -14
  87. package/dist/index141.js.map +1 -1
  88. package/dist/index142.js +7 -101
  89. package/dist/index142.js.map +1 -1
  90. package/dist/index143.js +7 -20
  91. package/dist/index143.js.map +1 -1
  92. package/dist/index144.js +5 -53
  93. package/dist/index144.js.map +1 -1
  94. package/dist/index145.js +3 -72
  95. package/dist/index145.js.map +1 -1
  96. package/dist/index146.js +3 -9
  97. package/dist/index146.js.map +1 -1
  98. package/dist/index147.js +4 -20
  99. package/dist/index147.js.map +1 -1
  100. package/dist/index148.js +3 -16
  101. package/dist/index148.js.map +1 -1
  102. package/dist/index149.js +4 -23
  103. package/dist/index149.js.map +1 -1
  104. package/dist/index150.js +3 -6
  105. package/dist/index150.js.map +1 -1
  106. package/dist/index151.js +3 -5
  107. package/dist/index151.js.map +1 -1
  108. package/dist/index152.js +3 -23
  109. package/dist/index152.js.map +1 -1
  110. package/dist/index153.js +6 -35
  111. package/dist/index153.js.map +1 -1
  112. package/dist/index154.js +69 -16
  113. package/dist/index154.js.map +1 -1
  114. package/dist/index155.js +2 -7
  115. package/dist/index155.js.map +1 -1
  116. package/dist/index156.js +363 -4
  117. package/dist/index156.js.map +1 -1
  118. package/dist/index157.js +261 -4
  119. package/dist/index157.js.map +1 -1
  120. package/dist/index158.js +60 -4
  121. package/dist/index158.js.map +1 -1
  122. package/dist/index159.js +46 -4
  123. package/dist/index159.js.map +1 -1
  124. package/dist/index160.js +169 -3
  125. package/dist/index160.js.map +1 -1
  126. package/dist/index161.js +109 -6
  127. package/dist/index161.js.map +1 -1
  128. package/dist/index162.js +25 -24
  129. package/dist/index162.js.map +1 -1
  130. package/dist/index163.js +8 -8
  131. package/dist/index163.js.map +1 -1
  132. package/dist/index164.js +4 -6
  133. package/dist/index164.js.map +1 -1
  134. package/dist/index165.js +5 -5
  135. package/dist/index165.js.map +1 -1
  136. package/dist/index166.js +4 -3
  137. package/dist/index166.js.map +1 -1
  138. package/dist/index167.js +466 -3
  139. package/dist/index167.js.map +1 -1
  140. package/dist/index168.js +185 -4
  141. package/dist/index168.js.map +1 -1
  142. package/dist/index169.js +107 -3
  143. package/dist/index169.js.map +1 -1
  144. package/dist/index170.js +262 -4
  145. package/dist/index170.js.map +1 -1
  146. package/dist/index171.js +9 -3
  147. package/dist/index171.js.map +1 -1
  148. package/dist/index172.js +42 -3
  149. package/dist/index172.js.map +1 -1
  150. package/dist/index173.js +4 -3
  151. package/dist/index173.js.map +1 -1
  152. package/dist/index174.js +22 -65
  153. package/dist/index174.js.map +1 -1
  154. package/dist/index175.js +27 -179
  155. package/dist/index175.js.map +1 -1
  156. package/dist/index176.js +5 -47
  157. package/dist/index176.js.map +1 -1
  158. package/dist/index177.js +65 -22
  159. package/dist/index177.js.map +1 -1
  160. package/dist/index178.js +179 -27
  161. package/dist/index178.js.map +1 -1
  162. package/dist/index179.js +47 -5
  163. package/dist/index179.js.map +1 -1
  164. package/dist/index18.js.map +1 -1
  165. package/dist/index180.js +58 -13
  166. package/dist/index180.js.map +1 -1
  167. package/dist/index181.js +8 -154
  168. package/dist/index181.js.map +1 -1
  169. package/dist/index182.js +64 -28
  170. package/dist/index182.js.map +1 -1
  171. package/dist/index183.js +19 -9
  172. package/dist/index183.js.map +1 -1
  173. package/dist/index184.js +14 -45
  174. package/dist/index184.js.map +1 -1
  175. package/dist/index185.js +5 -11
  176. package/dist/index185.js.map +1 -1
  177. package/dist/index186.js +4 -43
  178. package/dist/index186.js.map +1 -1
  179. package/dist/index187.js +6 -95
  180. package/dist/index187.js.map +1 -1
  181. package/dist/index188.js +4 -86
  182. package/dist/index188.js.map +1 -1
  183. package/dist/index189.js +7 -105
  184. package/dist/index189.js.map +1 -1
  185. package/dist/index190.js +17 -52
  186. package/dist/index190.js.map +1 -1
  187. package/dist/index191.js +5 -11
  188. package/dist/index191.js.map +1 -1
  189. package/dist/index192.js +5 -37
  190. package/dist/index192.js.map +1 -1
  191. package/dist/index193.js +13 -8
  192. package/dist/index193.js.map +1 -1
  193. package/dist/index194.js +10 -116
  194. package/dist/index194.js.map +1 -1
  195. package/dist/index195.js +14 -17
  196. package/dist/index195.js.map +1 -1
  197. package/dist/index196.js +14 -15
  198. package/dist/index196.js.map +1 -1
  199. package/dist/index197.js +5 -3
  200. package/dist/index197.js.map +1 -1
  201. package/dist/index198.js +6 -36
  202. package/dist/index198.js.map +1 -1
  203. package/dist/index199.js +7 -20
  204. package/dist/index199.js.map +1 -1
  205. package/dist/index200.js +6 -9
  206. package/dist/index200.js.map +1 -1
  207. package/dist/index201.js +9 -8
  208. package/dist/index201.js.map +1 -1
  209. package/dist/index202.js +5 -19
  210. package/dist/index202.js.map +1 -1
  211. package/dist/index203.js +5 -28
  212. package/dist/index203.js.map +1 -1
  213. package/dist/index204.js +9 -16
  214. package/dist/index204.js.map +1 -1
  215. package/dist/index205.js +5 -58
  216. package/dist/index205.js.map +1 -1
  217. package/dist/index206.js +5 -8
  218. package/dist/index206.js.map +1 -1
  219. package/dist/index207.js +4 -66
  220. package/dist/index207.js.map +1 -1
  221. package/dist/index208.js +11 -19
  222. package/dist/index208.js.map +1 -1
  223. package/dist/index209.js +10 -16
  224. package/dist/index209.js.map +1 -1
  225. package/dist/index210.js +10 -5
  226. package/dist/index210.js.map +1 -1
  227. package/dist/index211.js +11 -5
  228. package/dist/index211.js.map +1 -1
  229. package/dist/index212.js +11 -6
  230. package/dist/index212.js.map +1 -1
  231. package/dist/index213.js +10 -4
  232. package/dist/index213.js.map +1 -1
  233. package/dist/index214.js +6 -6
  234. package/dist/index214.js.map +1 -1
  235. package/dist/index215.js +6 -17
  236. package/dist/index215.js.map +1 -1
  237. package/dist/index216.js +5 -5
  238. package/dist/index216.js.map +1 -1
  239. package/dist/index217.js +6 -5
  240. package/dist/index217.js.map +1 -1
  241. package/dist/index218.js +7 -13
  242. package/dist/index218.js.map +1 -1
  243. package/dist/index219.js +5 -9
  244. package/dist/index219.js.map +1 -1
  245. package/dist/index220.js +55 -14
  246. package/dist/index220.js.map +1 -1
  247. package/dist/index221.js +23 -14
  248. package/dist/index221.js.map +1 -1
  249. package/dist/index222.js +16 -5
  250. package/dist/index222.js.map +1 -1
  251. package/dist/index223.js +7 -6
  252. package/dist/index223.js.map +1 -1
  253. package/dist/index224.js +10 -7
  254. package/dist/index224.js.map +1 -1
  255. package/dist/index225.js +10 -6
  256. package/dist/index225.js.map +1 -1
  257. package/dist/index226.js +21 -9
  258. package/dist/index226.js.map +1 -1
  259. package/dist/index227.js +10 -5
  260. package/dist/index227.js.map +1 -1
  261. package/dist/index228.js +9 -5
  262. package/dist/index228.js.map +1 -1
  263. package/dist/index229.js +9 -9
  264. package/dist/index229.js.map +1 -1
  265. package/dist/index23.js +1 -1
  266. package/dist/index230.js +4 -5
  267. package/dist/index230.js.map +1 -1
  268. package/dist/index231.js +5 -5
  269. package/dist/index231.js.map +1 -1
  270. package/dist/index232.js +16 -4
  271. package/dist/index232.js.map +1 -1
  272. package/dist/index233.js +9 -11
  273. package/dist/index233.js.map +1 -1
  274. package/dist/index234.js +18 -10
  275. package/dist/index234.js.map +1 -1
  276. package/dist/index235.js +15 -10
  277. package/dist/index235.js.map +1 -1
  278. package/dist/index236.js +12 -11
  279. package/dist/index236.js.map +1 -1
  280. package/dist/index237.js +29 -11
  281. package/dist/index237.js.map +1 -1
  282. package/dist/index238.js +12 -10
  283. package/dist/index238.js.map +1 -1
  284. package/dist/index239.js +25 -7
  285. package/dist/index239.js.map +1 -1
  286. package/dist/index240.js +5 -6
  287. package/dist/index240.js.map +1 -1
  288. package/dist/index241.js +13 -5
  289. package/dist/index241.js.map +1 -1
  290. package/dist/index242.js +154 -6
  291. package/dist/index242.js.map +1 -1
  292. package/dist/index243.js +30 -7
  293. package/dist/index243.js.map +1 -1
  294. package/dist/index244.js +9 -6
  295. package/dist/index244.js.map +1 -1
  296. package/dist/index245.js +45 -53
  297. package/dist/index245.js.map +1 -1
  298. package/dist/index246.js +11 -23
  299. package/dist/index246.js.map +1 -1
  300. package/dist/index247.js +42 -14
  301. package/dist/index247.js.map +1 -1
  302. package/dist/index248.js +95 -7
  303. package/dist/index248.js.map +1 -1
  304. package/dist/index249.js +85 -9
  305. package/dist/index249.js.map +1 -1
  306. package/dist/index250.js +104 -9
  307. package/dist/index250.js.map +1 -1
  308. package/dist/index251.js +52 -21
  309. package/dist/index251.js.map +1 -1
  310. package/dist/index252.js +11 -10
  311. package/dist/index252.js.map +1 -1
  312. package/dist/index253.js +37 -9
  313. package/dist/index253.js.map +1 -1
  314. package/dist/index254.js +7 -8
  315. package/dist/index254.js.map +1 -1
  316. package/dist/index255.js +116 -4
  317. package/dist/index255.js.map +1 -1
  318. package/dist/index256.js +17 -5
  319. package/dist/index256.js.map +1 -1
  320. package/dist/index257.js +14 -15
  321. package/dist/index257.js.map +1 -1
  322. package/dist/index258.js +3 -9
  323. package/dist/index258.js.map +1 -1
  324. package/dist/index259.js +34 -16
  325. package/dist/index259.js.map +1 -1
  326. package/dist/index260.js +20 -15
  327. package/dist/index260.js.map +1 -1
  328. package/dist/index261.js +9 -12
  329. package/dist/index261.js.map +1 -1
  330. package/dist/index262.js +8 -29
  331. package/dist/index262.js.map +1 -1
  332. package/dist/index263.js +18 -11
  333. package/dist/index263.js.map +1 -1
  334. package/dist/index264.js +26 -23
  335. package/dist/index264.js.map +1 -1
  336. package/dist/index265.js +16 -5
  337. package/dist/index265.js.map +1 -1
  338. package/dist/index267.js +1 -1
  339. package/dist/index269.js +5 -5
  340. package/dist/index27.js +1 -1
  341. package/dist/index270.js +1 -1
  342. package/dist/index274.js +4 -20
  343. package/dist/index274.js.map +1 -1
  344. package/dist/index275.js +19 -5
  345. package/dist/index275.js.map +1 -1
  346. package/dist/index276.js +13 -19
  347. package/dist/index276.js.map +1 -1
  348. package/dist/index277.js +20 -12
  349. package/dist/index277.js.map +1 -1
  350. package/dist/index278.js +65 -69
  351. package/dist/index278.js.map +1 -1
  352. package/dist/index279.js +68 -8
  353. package/dist/index279.js.map +1 -1
  354. package/dist/index28.js +1 -1
  355. package/dist/index280.js +9 -14
  356. package/dist/index280.js.map +1 -1
  357. package/dist/index281.js +14 -66
  358. package/dist/index281.js.map +1 -1
  359. package/dist/index282.js +65 -64
  360. package/dist/index282.js.map +1 -1
  361. package/dist/index29.js +24 -24
  362. package/dist/index290.js +4 -4
  363. package/dist/index293.js +1 -1
  364. package/dist/index294.js +2 -2
  365. package/dist/index296.js +1 -1
  366. package/dist/index297.js +1 -1
  367. package/dist/index298.js +1 -1
  368. package/dist/index299.js +1 -1
  369. package/dist/index302.js +5 -68
  370. package/dist/index302.js.map +1 -1
  371. package/dist/index303.js +55 -30
  372. package/dist/index303.js.map +1 -1
  373. package/dist/index304.js +68 -9
  374. package/dist/index304.js.map +1 -1
  375. package/dist/index305.js +26 -148
  376. package/dist/index305.js.map +1 -1
  377. package/dist/index306.js +9 -108
  378. package/dist/index306.js.map +1 -1
  379. package/dist/index307.js +153 -5
  380. package/dist/index307.js.map +1 -1
  381. package/dist/index308.js +106 -54
  382. package/dist/index308.js.map +1 -1
  383. package/dist/index31.js +1 -1
  384. package/dist/index35.js +1 -1
  385. package/dist/index36.js +2 -2
  386. package/dist/index39.js +2 -2
  387. package/dist/index43.js +8 -205
  388. package/dist/index43.js.map +1 -1
  389. package/dist/index44.js +2 -8
  390. package/dist/index44.js.map +1 -1
  391. package/dist/index45.js +24 -2
  392. package/dist/index45.js.map +1 -1
  393. package/dist/index46.js +232 -22
  394. package/dist/index46.js.map +1 -1
  395. package/dist/index47.js +200 -229
  396. package/dist/index47.js.map +1 -1
  397. package/dist/index50.js +1 -1
  398. package/dist/index57.js +4 -4
  399. package/dist/index59.js +1 -1
  400. package/dist/index67.js +3 -3
  401. package/dist/index68.js +11 -5
  402. package/dist/index68.js.map +1 -1
  403. package/dist/index69.js +53 -7
  404. package/dist/index69.js.map +1 -1
  405. package/dist/index70.js +2 -6
  406. package/dist/index70.js.map +1 -1
  407. package/dist/index71.js +2 -2
  408. package/dist/index72.js +6 -2
  409. package/dist/index72.js.map +1 -1
  410. package/dist/index73.js +7 -11
  411. package/dist/index73.js.map +1 -1
  412. package/dist/index74.js +5 -53
  413. package/dist/index74.js.map +1 -1
  414. package/dist/index75.js +40 -599
  415. package/dist/index75.js.map +1 -1
  416. package/dist/index76.js +200 -41
  417. package/dist/index76.js.map +1 -1
  418. package/dist/index77.js +20 -204
  419. package/dist/index77.js.map +1 -1
  420. package/dist/index78.js +25 -22
  421. package/dist/index78.js.map +1 -1
  422. package/dist/index79.js +398 -23
  423. package/dist/index79.js.map +1 -1
  424. package/dist/index80.js +39 -392
  425. package/dist/index80.js.map +1 -1
  426. package/dist/index81.js +599 -40
  427. package/dist/index81.js.map +1 -1
  428. package/dist/index82.js +52 -6
  429. package/dist/index82.js.map +1 -1
  430. package/dist/index83.js +4 -68
  431. package/dist/index83.js.map +1 -1
  432. package/dist/index84.js +5 -2
  433. package/dist/index84.js.map +1 -1
  434. package/dist/index85.js +15 -363
  435. package/dist/index85.js.map +1 -1
  436. package/dist/index86.js +5 -261
  437. package/dist/index86.js.map +1 -1
  438. package/dist/index87.js +7 -60
  439. package/dist/index87.js.map +1 -1
  440. package/dist/index88.js +16 -46
  441. package/dist/index88.js.map +1 -1
  442. package/dist/index89.js +4 -169
  443. package/dist/index89.js.map +1 -1
  444. package/dist/index90.js +4 -109
  445. package/dist/index90.js.map +1 -1
  446. package/dist/index91.js +5 -24
  447. package/dist/index91.js.map +1 -1
  448. package/dist/index92.js +6 -8
  449. package/dist/index92.js.map +1 -1
  450. package/dist/index93.js +4 -4
  451. package/dist/index93.js.map +1 -1
  452. package/dist/index94.js +4 -5
  453. package/dist/index94.js.map +1 -1
  454. package/dist/index95.js +6 -4
  455. package/dist/index95.js.map +1 -1
  456. package/dist/index96.js +24 -466
  457. package/dist/index96.js.map +1 -1
  458. package/dist/index97.js +6 -185
  459. package/dist/index97.js.map +1 -1
  460. package/dist/index98.js +4 -107
  461. package/dist/index98.js.map +1 -1
  462. package/dist/index99.js +6 -262
  463. package/dist/index99.js.map +1 -1
  464. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index282.js","sources":["../../../node_modules/use-sidecar/dist/es2015/medium.js"],"sourcesContent":["import { __assign } from \"tslib\";\nfunction ItoI(a) {\n return a;\n}\nfunction innerCreateMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n var buffer = [];\n var assigned = false;\n var medium = {\n read: function () {\n if (assigned) {\n throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');\n }\n if (buffer.length) {\n return buffer[buffer.length - 1];\n }\n return defaults;\n },\n useMedium: function (data) {\n var item = middleware(data, assigned);\n buffer.push(item);\n return function () {\n buffer = buffer.filter(function (x) { return x !== item; });\n };\n },\n assignSyncMedium: function (cb) {\n assigned = true;\n while (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n }\n buffer = {\n push: function (x) { return cb(x); },\n filter: function () { return buffer; },\n };\n },\n assignMedium: function (cb) {\n assigned = true;\n var pendingQueue = [];\n if (buffer.length) {\n var cbs = buffer;\n buffer = [];\n cbs.forEach(cb);\n pendingQueue = buffer;\n }\n var executeQueue = function () {\n var cbs = pendingQueue;\n pendingQueue = [];\n cbs.forEach(cb);\n };\n var cycle = function () { return Promise.resolve().then(executeQueue); };\n cycle();\n buffer = {\n push: function (x) {\n pendingQueue.push(x);\n cycle();\n },\n filter: function (filter) {\n pendingQueue = pendingQueue.filter(filter);\n return buffer;\n },\n };\n },\n };\n return medium;\n}\nexport function createMedium(defaults, middleware) {\n if (middleware === void 0) { middleware = ItoI; }\n return innerCreateMedium(defaults, middleware);\n}\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function createSidecarMedium(options) {\n if (options === void 0) { options = {}; }\n var medium = innerCreateMedium(null);\n medium.options = __assign({ async: true, ssr: false }, options);\n return medium;\n}\n"],"names":["ItoI","a","innerCreateMedium","defaults","middleware","buffer","assigned","medium","data","item","x","cb","cbs","pendingQueue","executeQueue","cycle","filter","createSidecarMedium","options","__assign"],"mappings":";AACA,SAASA,EAAKC,GAAG;AACb,SAAOA;AACX;AACA,SAASC,EAAkBC,GAAUC,GAAY;AAC7C,EAAIA,MAAe,WAAUA,IAAaJ;AAC1C,MAAIK,IAAS,CAAA,GACTC,IAAW,IACXC,IAAS;AAAA,IACT,MAAM,WAAY;AACd,UAAID;AACA,cAAM,IAAI,MAAM,kGAAkG;AAEtH,aAAID,EAAO,SACAA,EAAOA,EAAO,SAAS,CAAC,IAE5BF;AAAA,IACX;AAAA,IACA,WAAW,SAAUK,GAAM;AACvB,UAAIC,IAAOL,EAAWI,GAAMF,C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UY,EAAS,EAAE,OAAO,IAAM,KAAK,GAAK,GAAID,CAAO,GACvDX;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index282.js","sources":["../../../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n if (!target) {\n break;\n }\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n var parent_1 = target.parentNode;\n // we will \"bubble\" from ShadowDom in case we are, or just to the parent in normal case\n // this is the same logic used in focus-lock\n target = (parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1);\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"names":["alwaysContainsScroll","node","elementCanBeScrolled","overflow","styles","elementCouldBeVScrolled","elementCouldBeHScrolled","locationCouldBeScrolled","axis","ownerDocument","current","isScrollable","elementCouldBeScrolled","_a","getScrollVariables","scrollHeight","clientHeight","getVScrollVariables","scrollTop","getHScrollVariables","scrollLeft","scrollWidth","clientWidth","getDirectionFactor","direction","handleScroll","endTarget","event","sourceDelta","noOverscroll","directionFactor","delta","target","targetInLock","shouldCancelScroll","isDeltaPositive","availableScroll","availableScrollTop","position","scroll_1","capacity","elementScroll","parent_1"],"mappings":"AAAA,IAAIA,IAAuB,SAAUC,GAAM;AAEvC,SAAOA,EAAK,YAAY;AAC5B,GACIC,IAAuB,SAAUD,GAAME,GAAU;AACjD,MAAI,EAAEF,aAAgB;AAClB,WAAO;AAEX,MAAIG,IAAS,OAAO,iBAAiBH,CAAI;AACzC;AAAA;AAAA,IAEAG,EAAOD,CAAQ,MAAM;AAAA,IAEjB,EAAEC,EAAO,cAAcA,EAAO,aAAa,CAACJ,EAAqBC,CAAI,KAAKG,EAAOD,CAAQ,MAAM;AAAA;AACvG,GACIE,IAA0B,SAAUJ,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAG,GAC5FK,IAA0B,SAAUL,GAAM;AAAE,SAAOC,EAAqBD,GAAM,WAAW;AAAG,GACrFM,IAA0B,SAAUC,GAAMP,GAAM;AACvD,MAAIQ,IAAgBR,EAAK,eACrBS,IAAUT;AACd,KAAG;AAEC,IAAI,OAAO,aAAe,OAAeS,aAAmB,eACxDA,IAAUA,EAAQ;AAEtB,QAAIC,IAAeC,EAAuBJ,GAAME,CAAO;AACvD,QAAIC,GAAc;AACd,UAAIE,IAAKC,EAAmBN,GAAME,CAAO,GAAGK,IAAeF,EAAG,CAAC,GAAGG,IAAeH,EAAG,CAAC;AACrF,UAAIE,IAAeC;AACf,eAAO;AAAA,IAEf;AACA,IAAAN,IAAUA,EAAQ;AAAA,EACtB,SAASA,KAAWA,MAAYD,EAAc;AAC9C,SAAO;AACX,GACIQ,IAAsB,SAAUJ,GAAI;AACpC,MAAIK,IAAYL,EAAG,WAAWE,IAAeF,EAA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AA,IAEC,CAACT,KAAgBD,MAAW,SAAS;AAAA,IAEjCC,MAAiBP,EAAU,SAASM,CAAM,KAAKN,MAAcM;AAAA;AAElE,UAAIG,KACkB,KAAK,IAAIC,CAAe,IAAI,KAGzC,CAACD,KACY,KAAK,IAAIE,CAAkB,IAAI,OACjDH,IAAqB,KAElBA;AACX;","x_google_ignoreList":[0]}
package/dist/index29.js CHANGED
@@ -1,28 +1,28 @@
1
1
  import l, { useMemo as T, useCallback as h, useRef as Re } from "react";
2
- import { DateLib as Ze } from "./index130.js";
3
- import { createGetModifiers as Ie } from "./index131.js";
4
- import { getClassNamesForModifiers as Ge } from "./index132.js";
5
- import { getComponents as He } from "./index133.js";
6
- import { getDataAttributes as _e } from "./index134.js";
7
- import { getDefaultClassNames as Ue } from "./index135.js";
8
- import { getFormatters as je } from "./index136.js";
9
- import { getLabels as Ve } from "./index137.js";
10
- import { getMonthOptions as $e } from "./index138.js";
11
- import { getStyleForModifiers as qe } from "./index139.js";
12
- import { getWeekdays as ze } from "./index140.js";
13
- import { getYearOptions as Je } from "./index141.js";
14
- import { createNoonOverrides as Qe } from "./index142.js";
15
- import { UI as n, DayFlag as Xe, SelectionState as w } from "./index143.js";
16
- import { useAnimation as et } from "./index144.js";
17
- import { useCalendar as tt } from "./index145.js";
18
- import { dayPickerContext as at } from "./index146.js";
19
- import { useFocus as ot } from "./index147.js";
20
- import { useSelection as nt } from "./index148.js";
21
- import { convertMatchersToTimeZone as K } from "./index149.js";
22
- import { rangeIncludesDate as st } from "./index150.js";
23
- import { toTimeZone as k } from "./index151.js";
24
- import { isDateRange as rt } from "./index152.js";
25
- import { enUS as it } from "./index153.js";
2
+ import { DateLib as Ze } from "./index109.js";
3
+ import { createGetModifiers as Ie } from "./index110.js";
4
+ import { getClassNamesForModifiers as Ge } from "./index111.js";
5
+ import { getComponents as He } from "./index112.js";
6
+ import { getDataAttributes as _e } from "./index113.js";
7
+ import { getDefaultClassNames as Ue } from "./index114.js";
8
+ import { getFormatters as je } from "./index115.js";
9
+ import { getLabels as Ve } from "./index116.js";
10
+ import { getMonthOptions as $e } from "./index117.js";
11
+ import { getStyleForModifiers as qe } from "./index118.js";
12
+ import { getWeekdays as ze } from "./index119.js";
13
+ import { getYearOptions as Je } from "./index120.js";
14
+ import { createNoonOverrides as Qe } from "./index121.js";
15
+ import { UI as n, DayFlag as Xe, SelectionState as w } from "./index122.js";
16
+ import { useAnimation as et } from "./index123.js";
17
+ import { useCalendar as tt } from "./index124.js";
18
+ import { dayPickerContext as at } from "./index125.js";
19
+ import { useFocus as ot } from "./index126.js";
20
+ import { useSelection as nt } from "./index127.js";
21
+ import { convertMatchersToTimeZone as K } from "./index128.js";
22
+ import { rangeIncludesDate as st } from "./index129.js";
23
+ import { toTimeZone as k } from "./index130.js";
24
+ import { isDateRange as rt } from "./index131.js";
25
+ import { enUS as it } from "./index132.js";
26
26
  function Yt(R) {
27
27
  let e = R;
28
28
  const u = e.timeZone;
package/dist/index290.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import { getDayOfYear as m } from "./index294.js";
2
- import { getISOWeek as g } from "./index226.js";
2
+ import { getISOWeek as g } from "./index201.js";
3
3
  import { getISOWeekYear as w } from "./index297.js";
4
- import { getWeek as b } from "./index229.js";
4
+ import { getWeek as b } from "./index204.js";
5
5
  import { getWeekYear as x } from "./index299.js";
6
- import { addLeadingZeros as i } from "./index307.js";
7
- import { lightFormatters as u } from "./index308.js";
6
+ import { addLeadingZeros as i } from "./index302.js";
7
+ import { lightFormatters as u } from "./index303.js";
8
8
  const s = {
9
9
  midnight: "midnight",
10
10
  noon: "noon",
package/dist/index293.js CHANGED
@@ -1,4 +1,4 @@
1
- import { isDate as r } from "./index232.js";
1
+ import { isDate as r } from "./index207.js";
2
2
  import { toDate as t } from "./index284.js";
3
3
  function f(o) {
4
4
  return !(!r(o) && typeof o != "number" || isNaN(+t(o)));
package/dist/index294.js CHANGED
@@ -1,5 +1,5 @@
1
- import { differenceInCalendarDays as f } from "./index218.js";
2
- import { startOfYear as e } from "./index244.js";
1
+ import { differenceInCalendarDays as f } from "./index193.js";
2
+ import { startOfYear as e } from "./index219.js";
3
3
  import { toDate as o } from "./index284.js";
4
4
  function c(t, a) {
5
5
  const r = o(t, a?.in);
package/dist/index296.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { constructFrom as a } from "./index283.js";
2
2
  import { getISOWeekYear as f } from "./index297.js";
3
- import { startOfISOWeek as s } from "./index241.js";
3
+ import { startOfISOWeek as s } from "./index216.js";
4
4
  function O(t, e) {
5
5
  const o = f(t, e), r = a(t, 0);
6
6
  return r.setFullYear(o, 0, 4), r.setHours(0, 0, 0, 0), s(r);
package/dist/index297.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { constructFrom as s } from "./index283.js";
2
- import { startOfISOWeek as a } from "./index241.js";
2
+ import { startOfISOWeek as a } from "./index216.js";
3
3
  import { toDate as m } from "./index284.js";
4
4
  function Y(f, n) {
5
5
  const e = m(f, n?.in), t = e.getFullYear(), r = s(e, 0);
package/dist/index298.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { getDefaultOptions as n } from "./index289.js";
2
2
  import { constructFrom as i } from "./index283.js";
3
3
  import { getWeekYear as f } from "./index299.js";
4
- import { startOfWeek as c } from "./index243.js";
4
+ import { startOfWeek as c } from "./index218.js";
5
5
  function D(r, t) {
6
6
  const a = n(), o = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? a.firstWeekContainsDate ?? a.locale?.options?.firstWeekContainsDate ?? 1, s = f(r, t), e = i(t?.in || r, 0);
7
7
  return e.setFullYear(s, 0, o), e.setHours(0, 0, 0, 0), c(e, t);
package/dist/index299.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { getDefaultOptions as k } from "./index289.js";
2
2
  import { constructFrom as i } from "./index283.js";
3
- import { startOfWeek as l } from "./index243.js";
3
+ import { startOfWeek as l } from "./index218.js";
4
4
  import { toDate as m } from "./index284.js";
5
5
  function C(r, e) {
6
6
  const s = m(r, e?.in), t = s.getFullYear(), o = k(), f = e?.firstWeekContainsDate ?? e?.locale?.options?.firstWeekContainsDate ?? o.firstWeekContainsDate ?? o.locale?.options?.firstWeekContainsDate ?? 1, a = i(e?.in || r, 0);
package/dist/index302.js CHANGED
@@ -1,71 +1,8 @@
1
- const a = {
2
- lessThanXSeconds: {
3
- one: "less than a second",
4
- other: "less than {{count}} seconds"
5
- },
6
- xSeconds: {
7
- one: "1 second",
8
- other: "{{count}} seconds"
9
- },
10
- halfAMinute: "half a minute",
11
- lessThanXMinutes: {
12
- one: "less than a minute",
13
- other: "less than {{count}} minutes"
14
- },
15
- xMinutes: {
16
- one: "1 minute",
17
- other: "{{count}} minutes"
18
- },
19
- aboutXHours: {
20
- one: "about 1 hour",
21
- other: "about {{count}} hours"
22
- },
23
- xHours: {
24
- one: "1 hour",
25
- other: "{{count}} hours"
26
- },
27
- xDays: {
28
- one: "1 day",
29
- other: "{{count}} days"
30
- },
31
- aboutXWeeks: {
32
- one: "about 1 week",
33
- other: "about {{count}} weeks"
34
- },
35
- xWeeks: {
36
- one: "1 week",
37
- other: "{{count}} weeks"
38
- },
39
- aboutXMonths: {
40
- one: "about 1 month",
41
- other: "about {{count}} months"
42
- },
43
- xMonths: {
44
- one: "1 month",
45
- other: "{{count}} months"
46
- },
47
- aboutXYears: {
48
- one: "about 1 year",
49
- other: "about {{count}} years"
50
- },
51
- xYears: {
52
- one: "1 year",
53
- other: "{{count}} years"
54
- },
55
- overXYears: {
56
- one: "over 1 year",
57
- other: "over {{count}} years"
58
- },
59
- almostXYears: {
60
- one: "almost 1 year",
61
- other: "almost {{count}} years"
62
- }
63
- }, r = (s, n, t) => {
64
- let e;
65
- const o = a[s];
66
- return typeof o == "string" ? e = o : n === 1 ? e = o.one : e = o.other.replace("{{count}}", n.toString()), t?.addSuffix ? t.comparison && t.comparison > 0 ? "in " + e : e + " ago" : e;
67
- };
1
+ function r(t, n) {
2
+ const o = t < 0 ? "-" : "", a = Math.abs(t).toString().padStart(n, "0");
3
+ return o + a;
4
+ }
68
5
  export {
69
- r as formatDistance
6
+ r as addLeadingZeros
70
7
  };
71
8
  //# sourceMappingURL=index302.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index302.js","sources":["../../../node_modules/date-fns/locale/en-US/_lib/formatDistance.js"],"sourcesContent":["const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"less than a second\",\n other: \"less than {{count}} seconds\",\n },\n\n xSeconds: {\n one: \"1 second\",\n other: \"{{count}} seconds\",\n },\n\n halfAMinute: \"half a minute\",\n\n lessThanXMinutes: {\n one: \"less than a minute\",\n other: \"less than {{count}} minutes\",\n },\n\n xMinutes: {\n one: \"1 minute\",\n other: \"{{count}} minutes\",\n },\n\n aboutXHours: {\n one: \"about 1 hour\",\n other: \"about {{count}} hours\",\n },\n\n xHours: {\n one: \"1 hour\",\n other: \"{{count}} hours\",\n },\n\n xDays: {\n one: \"1 day\",\n other: \"{{count}} days\",\n },\n\n aboutXWeeks: {\n one: \"about 1 week\",\n other: \"about {{count}} weeks\",\n },\n\n xWeeks: {\n one: \"1 week\",\n other: \"{{count}} weeks\",\n },\n\n aboutXMonths: {\n one: \"about 1 month\",\n other: \"about {{count}} months\",\n },\n\n xMonths: {\n one: \"1 month\",\n other: \"{{count}} months\",\n },\n\n aboutXYears: {\n one: \"about 1 year\",\n other: \"about {{count}} years\",\n },\n\n xYears: {\n one: \"1 year\",\n other: \"{{count}} years\",\n },\n\n overXYears: {\n one: \"over 1 year\",\n other: \"over {{count}} years\",\n },\n\n almostXYears: {\n one: \"almost 1 year\",\n other: \"almost {{count}} years\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", count.toString());\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"in \" + result;\n } else {\n return result + \" ago\";\n }\n }\n\n return result;\n};\n"],"names":["formatDistanceLocale","formatDistance","token","count","options","result","tokenValue"],"mappings":"AAAA,MAAMA,IAAuB;AAAA,EAC3B,kBAAkB;AAAA,IAChB,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,UAAU;AAAA,IACR,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,aAAa;AAAA,EAEb,kBAAkB;AAAA,IAChB,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,UAAU;AAAA,IACR,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,aAAa;AAAA,IACX,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,QAAQ;AAAA,IACN,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,OAAO;AAAA,IACL,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,aAAa;AAAA,IACX,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,QAAQ;AAAA,IACN,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,cAAc;AAAA,IACZ,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,SAAS;AAAA,IACP,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,aAAa;AAAA,IACX,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,QAAQ;AAAA,IACN,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,YAAY;AAAA,IACV,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,cAAc;AAAA,IACZ,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AACA,GAEaC,IAAiB,CAACC,GAAOC,GAAOC,MAAY;AACvD,MAAIC;AAEJ,QAAMC,IAAaN,EAAqBE,CAAK;AAS7C,SARI,OAAOI,KAAe,WACxBD,IAASC,IACAH,MAAU,IACnBE,IAASC,EAAW,MAEpBD,IAASC,EAAW,MAAM,QAAQ,aAAaH,EAAM,UAAU,GAG7DC,GAAS,YACPA,EAAQ,cAAcA,EAAQ,aAAa,IACtC,QAAQC,IAERA,IAAS,SAIbA;AACT;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index302.js","sources":["../../../node_modules/date-fns/_lib/addLeadingZeros.js"],"sourcesContent":["export function addLeadingZeros(number, targetLength) {\n const sign = number < 0 ? \"-\" : \"\";\n const output = Math.abs(number).toString().padStart(targetLength, \"0\");\n return sign + output;\n}\n"],"names":["addLeadingZeros","number","targetLength","sign","output"],"mappings":"AAAO,SAASA,EAAgBC,GAAQC,GAAc;AACpD,QAAMC,IAAOF,IAAS,IAAI,MAAM,IAC1BG,IAAS,KAAK,IAAIH,CAAM,EAAE,WAAW,SAASC,GAAc,GAAG;AACrE,SAAOC,IAAOC;AAChB;","x_google_ignoreList":[0]}
package/dist/index303.js CHANGED
@@ -1,34 +1,59 @@
1
- import { buildFormatLongFn as t } from "./index316.js";
2
- const m = {
3
- full: "EEEE, MMMM do, y",
4
- long: "MMMM do, y",
5
- medium: "MMM d, y",
6
- short: "MM/dd/yyyy"
7
- }, a = {
8
- full: "h:mm:ss a zzzz",
9
- long: "h:mm:ss a z",
10
- medium: "h:mm:ss a",
11
- short: "h:mm a"
12
- }, o = {
13
- full: "{{date}} 'at' {{time}}",
14
- long: "{{date}} 'at' {{time}}",
15
- medium: "{{date}}, {{time}}",
16
- short: "{{date}}, {{time}}"
17
- }, e = {
18
- date: t({
19
- formats: m,
20
- defaultWidth: "full"
21
- }),
22
- time: t({
23
- formats: a,
24
- defaultWidth: "full"
25
- }),
26
- dateTime: t({
27
- formats: o,
28
- defaultWidth: "full"
29
- })
1
+ import { addLeadingZeros as n } from "./index302.js";
2
+ const g = {
3
+ // Year
4
+ y(e, t) {
5
+ const r = e.getFullYear(), a = r > 0 ? r : 1 - r;
6
+ return n(t === "yy" ? a % 100 : a, t.length);
7
+ },
8
+ // Month
9
+ M(e, t) {
10
+ const r = e.getMonth();
11
+ return t === "M" ? String(r + 1) : n(r + 1, 2);
12
+ },
13
+ // Day of the month
14
+ d(e, t) {
15
+ return n(e.getDate(), t.length);
16
+ },
17
+ // AM or PM
18
+ a(e, t) {
19
+ const r = e.getHours() / 12 >= 1 ? "pm" : "am";
20
+ switch (t) {
21
+ case "a":
22
+ case "aa":
23
+ return r.toUpperCase();
24
+ case "aaa":
25
+ return r;
26
+ case "aaaaa":
27
+ return r[0];
28
+ default:
29
+ return r === "am" ? "a.m." : "p.m.";
30
+ }
31
+ },
32
+ // Hour [1-12]
33
+ h(e, t) {
34
+ return n(e.getHours() % 12 || 12, t.length);
35
+ },
36
+ // Hour [0-23]
37
+ H(e, t) {
38
+ return n(e.getHours(), t.length);
39
+ },
40
+ // Minute
41
+ m(e, t) {
42
+ return n(e.getMinutes(), t.length);
43
+ },
44
+ // Second
45
+ s(e, t) {
46
+ return n(e.getSeconds(), t.length);
47
+ },
48
+ // Fraction of second
49
+ S(e, t) {
50
+ const r = t.length, a = e.getMilliseconds(), s = Math.trunc(
51
+ a * Math.pow(10, r - 3)
52
+ );
53
+ return n(s, t.length);
54
+ }
30
55
  };
31
56
  export {
32
- e as formatLong
57
+ g as lightFormatters
33
58
  };
34
59
  //# sourceMappingURL=index303.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index303.js","sources":["../../../node_modules/date-fns/locale/en-US/_lib/formatLong.js"],"sourcesContent":["import { buildFormatLongFn } from \"../../_lib/buildFormatLongFn.js\";\n\nconst dateFormats = {\n full: \"EEEE, MMMM do, y\",\n long: \"MMMM do, y\",\n medium: \"MMM d, y\",\n short: \"MM/dd/yyyy\",\n};\n\nconst timeFormats = {\n full: \"h:mm:ss a zzzz\",\n long: \"h:mm:ss a z\",\n medium: \"h:mm:ss a\",\n short: \"h:mm a\",\n};\n\nconst dateTimeFormats = {\n full: \"{{date}} 'at' {{time}}\",\n long: \"{{date}} 'at' {{time}}\",\n medium: \"{{date}}, {{time}}\",\n short: \"{{date}}, {{time}}\",\n};\n\nexport const formatLong = {\n date: buildFormatLongFn({\n formats: dateFormats,\n defaultWidth: \"full\",\n }),\n\n time: buildFormatLongFn({\n formats: timeFormats,\n defaultWidth: \"full\",\n }),\n\n dateTime: buildFormatLongFn({\n formats: dateTimeFormats,\n defaultWidth: \"full\",\n }),\n};\n"],"names":["dateFormats","timeFormats","dateTimeFormats","formatLong","buildFormatLongFn"],"mappings":";AAEA,MAAMA,IAAc;AAAA,EAClB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AACT,GAEMC,IAAc;AAAA,EAClB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AACT,GAEMC,IAAkB;AAAA,EACtB,MAAM;AAAA,EACN,MAAM;AAAA,EACN,QAAQ;AAAA,EACR,OAAO;AACT,GAEaC,IAAa;AAAA,EACxB,MAAMC,EAAkB;AAAA,IACtB,SAASJ;AAAA,IACT,cAAc;AAAA,EAClB,CAAG;AAAA,EAED,MAAMI,EAAkB;AAAA,IACtB,SAASH;AAAA,IACT,cAAc;AAAA,EAClB,CAAG;AAAA,EAED,UAAUG,EAAkB;AAAA,IAC1B,SAASF;AAAA,IACT,cAAc;AAAA,EAClB,CAAG;AACH;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index303.js","sources":["../../../node_modules/date-fns/_lib/format/lightFormatters.js"],"sourcesContent":["import { addLeadingZeros } from \"../addLeadingZeros.js\";\n\n/*\n * | | Unit | | Unit |\n * |-----|--------------------------------|-----|--------------------------------|\n * | a | AM, PM | A* | |\n * | d | Day of month | D | |\n * | h | Hour [1-12] | H | Hour [0-23] |\n * | m | Minute | M | Month |\n * | s | Second | S | Fraction of second |\n * | y | Year (abs) | Y | |\n *\n * Letters marked by * are not implemented but reserved by Unicode standard.\n */\n\nexport const lightFormatters = {\n // Year\n y(date, token) {\n // From http://www.unicode.org/reports/tr35/tr35-31/tr35-dates.html#Date_Format_tokens\n // | Year | y | yy | yyy | yyyy | yyyyy |\n // |----------|-------|----|-------|-------|-------|\n // | AD 1 | 1 | 01 | 001 | 0001 | 00001 |\n // | AD 12 | 12 | 12 | 012 | 0012 | 00012 |\n // | AD 123 | 123 | 23 | 123 | 0123 | 00123 |\n // | AD 1234 | 1234 | 34 | 1234 | 1234 | 01234 |\n // | AD 12345 | 12345 | 45 | 12345 | 12345 | 12345 |\n\n const signedYear = date.getFullYear();\n // Returns 1 for 1 BC (which is year 0 in JavaScript)\n const year = signedYear > 0 ? signedYear : 1 - signedYear;\n return addLeadingZeros(token === \"yy\" ? year % 100 : year, token.length);\n },\n\n // Month\n M(date, token) {\n const month = date.getMonth();\n return token === \"M\" ? String(month + 1) : addLeadingZeros(month + 1, 2);\n },\n\n // Day of the month\n d(date, token) {\n return addLeadingZeros(date.getDate(), token.length);\n },\n\n // AM or PM\n a(date, token) {\n const dayPeriodEnumValue = date.getHours() / 12 >= 1 ? \"pm\" : \"am\";\n\n switch (token) {\n case \"a\":\n case \"aa\":\n return dayPeriodEnumValue.toUpperCase();\n case \"aaa\":\n return dayPeriodEnumValue;\n case \"aaaaa\":\n return dayPeriodEnumValue[0];\n case \"aaaa\":\n default:\n return dayPeriodEnumValue === \"am\" ? \"a.m.\" : \"p.m.\";\n }\n },\n\n // Hour [1-12]\n h(date, token) {\n return addLeadingZeros(date.getHours() % 12 || 12, token.length);\n },\n\n // Hour [0-23]\n H(date, token) {\n return addLeadingZeros(date.getHours(), token.length);\n },\n\n // Minute\n m(date, token) {\n return addLeadingZeros(date.getMinutes(), token.length);\n },\n\n // Second\n s(date, token) {\n return addLeadingZeros(date.getSeconds(), token.length);\n },\n\n // Fraction of second\n S(date, token) {\n const numberOfDigits = token.length;\n const milliseconds = date.getMilliseconds();\n const fractionalSeconds = Math.trunc(\n milliseconds * Math.pow(10, numberOfDigits - 3),\n );\n return addLeadingZeros(fractionalSeconds, token.length);\n },\n};\n"],"names":["lightFormatters","date","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,WAAOG,EAAgBJ,EAAK,WAAU,GAAIC,EAAM,MAAM;AAAA,EACxD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,UAAMM,IAAiBN,EAAM,QACvBO,IAAeR,EAAK,gBAAe,GACnCS,IAAoB,KAAK;AAAA,MAC7BD,IAAe,KAAK,IAAI,IAAID,IAAiB,CAAC;AAAA,IACpD;AACI,WAAOH,EAAgBK,GAAmBR,EAAM,MAAM;AAAA,EACxD;AACF;","x_google_ignoreList":[0]}
package/dist/index304.js CHANGED
@@ -1,12 +1,71 @@
1
- const t = {
2
- lastWeek: "'last' eeee 'at' p",
3
- yesterday: "'yesterday at' p",
4
- today: "'today at' p",
5
- tomorrow: "'tomorrow at' p",
6
- nextWeek: "eeee 'at' p",
7
- other: "P"
8
- }, s = (e, a, o, r) => t[e];
1
+ const a = {
2
+ lessThanXSeconds: {
3
+ one: "less than a second",
4
+ other: "less than {{count}} seconds"
5
+ },
6
+ xSeconds: {
7
+ one: "1 second",
8
+ other: "{{count}} seconds"
9
+ },
10
+ halfAMinute: "half a minute",
11
+ lessThanXMinutes: {
12
+ one: "less than a minute",
13
+ other: "less than {{count}} minutes"
14
+ },
15
+ xMinutes: {
16
+ one: "1 minute",
17
+ other: "{{count}} minutes"
18
+ },
19
+ aboutXHours: {
20
+ one: "about 1 hour",
21
+ other: "about {{count}} hours"
22
+ },
23
+ xHours: {
24
+ one: "1 hour",
25
+ other: "{{count}} hours"
26
+ },
27
+ xDays: {
28
+ one: "1 day",
29
+ other: "{{count}} days"
30
+ },
31
+ aboutXWeeks: {
32
+ one: "about 1 week",
33
+ other: "about {{count}} weeks"
34
+ },
35
+ xWeeks: {
36
+ one: "1 week",
37
+ other: "{{count}} weeks"
38
+ },
39
+ aboutXMonths: {
40
+ one: "about 1 month",
41
+ other: "about {{count}} months"
42
+ },
43
+ xMonths: {
44
+ one: "1 month",
45
+ other: "{{count}} months"
46
+ },
47
+ aboutXYears: {
48
+ one: "about 1 year",
49
+ other: "about {{count}} years"
50
+ },
51
+ xYears: {
52
+ one: "1 year",
53
+ other: "{{count}} years"
54
+ },
55
+ overXYears: {
56
+ one: "over 1 year",
57
+ other: "over {{count}} years"
58
+ },
59
+ almostXYears: {
60
+ one: "almost 1 year",
61
+ other: "almost {{count}} years"
62
+ }
63
+ }, r = (s, n, t) => {
64
+ let e;
65
+ const o = a[s];
66
+ return typeof o == "string" ? e = o : n === 1 ? e = o.one : e = o.other.replace("{{count}}", n.toString()), t?.addSuffix ? t.comparison && t.comparison > 0 ? "in " + e : e + " ago" : e;
67
+ };
9
68
  export {
10
- s as formatRelative
69
+ r as formatDistance
11
70
  };
12
71
  //# sourceMappingURL=index304.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index304.js","sources":["../../../node_modules/date-fns/locale/en-US/_lib/formatRelative.js"],"sourcesContent":["const formatRelativeLocale = {\n lastWeek: \"'last' eeee 'at' p\",\n yesterday: \"'yesterday at' p\",\n today: \"'today at' p\",\n tomorrow: \"'tomorrow at' p\",\n nextWeek: \"eeee 'at' p\",\n other: \"P\",\n};\n\nexport const formatRelative = (token, _date, _baseDate, _options) =>\n formatRelativeLocale[token];\n"],"names":["formatRelativeLocale","formatRelative","token","_date","_baseDate","_options"],"mappings":"AAAA,MAAMA,IAAuB;AAAA,EAC3B,UAAU;AAAA,EACV,WAAW;AAAA,EACX,OAAO;AAAA,EACP,UAAU;AAAA,EACV,UAAU;AAAA,EACV,OAAO;AACT,GAEaC,IAAiB,CAACC,GAAOC,GAAOC,GAAWC,MACtDL,EAAqBE,CAAK;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index304.js","sources":["../../../node_modules/date-fns/locale/en-US/_lib/formatDistance.js"],"sourcesContent":["const formatDistanceLocale = {\n lessThanXSeconds: {\n one: \"less than a second\",\n other: \"less than {{count}} seconds\",\n },\n\n xSeconds: {\n one: \"1 second\",\n other: \"{{count}} seconds\",\n },\n\n halfAMinute: \"half a minute\",\n\n lessThanXMinutes: {\n one: \"less than a minute\",\n other: \"less than {{count}} minutes\",\n },\n\n xMinutes: {\n one: \"1 minute\",\n other: \"{{count}} minutes\",\n },\n\n aboutXHours: {\n one: \"about 1 hour\",\n other: \"about {{count}} hours\",\n },\n\n xHours: {\n one: \"1 hour\",\n other: \"{{count}} hours\",\n },\n\n xDays: {\n one: \"1 day\",\n other: \"{{count}} days\",\n },\n\n aboutXWeeks: {\n one: \"about 1 week\",\n other: \"about {{count}} weeks\",\n },\n\n xWeeks: {\n one: \"1 week\",\n other: \"{{count}} weeks\",\n },\n\n aboutXMonths: {\n one: \"about 1 month\",\n other: \"about {{count}} months\",\n },\n\n xMonths: {\n one: \"1 month\",\n other: \"{{count}} months\",\n },\n\n aboutXYears: {\n one: \"about 1 year\",\n other: \"about {{count}} years\",\n },\n\n xYears: {\n one: \"1 year\",\n other: \"{{count}} years\",\n },\n\n overXYears: {\n one: \"over 1 year\",\n other: \"over {{count}} years\",\n },\n\n almostXYears: {\n one: \"almost 1 year\",\n other: \"almost {{count}} years\",\n },\n};\n\nexport const formatDistance = (token, count, options) => {\n let result;\n\n const tokenValue = formatDistanceLocale[token];\n if (typeof tokenValue === \"string\") {\n result = tokenValue;\n } else if (count === 1) {\n result = tokenValue.one;\n } else {\n result = tokenValue.other.replace(\"{{count}}\", count.toString());\n }\n\n if (options?.addSuffix) {\n if (options.comparison && options.comparison > 0) {\n return \"in \" + result;\n } else {\n return result + \" ago\";\n }\n }\n\n return result;\n};\n"],"names":["formatDistanceLocale","formatDistance","token","count","options","result","tokenValue"],"mappings":"AAAA,MAAMA,IAAuB;AAAA,EAC3B,kBAAkB;AAAA,IAChB,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,UAAU;AAAA,IACR,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,aAAa;AAAA,EAEb,kBAAkB;AAAA,IAChB,KAAK;AAAA,IACL,OAAO;AAAA,EACX;AAAA,EAEE,UAAU;AAAA,IACR,KAAK;AAAA,IACL,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