@rpcbase/ui 0.179.0 → 0.181.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 (447) hide show
  1. package/dist/index100.js +4 -5
  2. package/dist/index100.js.map +1 -1
  3. package/dist/index101.js +3 -3
  4. package/dist/index101.js.map +1 -1
  5. package/dist/index102.js +5 -4
  6. package/dist/index102.js.map +1 -1
  7. package/dist/index103.js +145 -4
  8. package/dist/index103.js.map +1 -1
  9. package/dist/index104.js +39 -8
  10. package/dist/index104.js.map +1 -1
  11. package/dist/index105.js +4 -5
  12. package/dist/index105.js.map +1 -1
  13. package/dist/index106.js +7 -4
  14. package/dist/index106.js.map +1 -1
  15. package/dist/index107.js +13 -4
  16. package/dist/index107.js.map +1 -1
  17. package/dist/index108.js +13 -6
  18. package/dist/index108.js.map +1 -1
  19. package/dist/index109.js +7 -145
  20. package/dist/index109.js.map +1 -1
  21. package/dist/index110.js +30 -38
  22. package/dist/index110.js.map +1 -1
  23. package/dist/index111.js +10 -4
  24. package/dist/index111.js.map +1 -1
  25. package/dist/index112.js +10 -7
  26. package/dist/index112.js.map +1 -1
  27. package/dist/index113.js +8 -13
  28. package/dist/index113.js.map +1 -1
  29. package/dist/index114.js +13 -13
  30. package/dist/index114.js.map +1 -1
  31. package/dist/index115.js +100 -6
  32. package/dist/index115.js.map +1 -1
  33. package/dist/index116.js +20 -32
  34. package/dist/index116.js.map +1 -1
  35. package/dist/index117.js +52 -9
  36. package/dist/index117.js.map +1 -1
  37. package/dist/index118.js +71 -9
  38. package/dist/index118.js.map +1 -1
  39. package/dist/index119.js +9 -8
  40. package/dist/index119.js.map +1 -1
  41. package/dist/index120.js +20 -13
  42. package/dist/index120.js.map +1 -1
  43. package/dist/index121.js +16 -101
  44. package/dist/index121.js.map +1 -1
  45. package/dist/index122.js +24 -20
  46. package/dist/index122.js.map +1 -1
  47. package/dist/index123.js +6 -53
  48. package/dist/index123.js.map +1 -1
  49. package/dist/index124.js +5 -72
  50. package/dist/index124.js.map +1 -1
  51. package/dist/index125.js +23 -9
  52. package/dist/index125.js.map +1 -1
  53. package/dist/index126.js +33 -19
  54. package/dist/index126.js.map +1 -1
  55. package/dist/index127.js +16 -17
  56. package/dist/index127.js.map +1 -1
  57. package/dist/index128.js +6 -23
  58. package/dist/index128.js.map +1 -1
  59. package/dist/index129.js +4 -6
  60. package/dist/index129.js.map +1 -1
  61. package/dist/index130.js +4 -5
  62. package/dist/index130.js.map +1 -1
  63. package/dist/index131.js +4 -23
  64. package/dist/index131.js.map +1 -1
  65. package/dist/index132.js +5 -35
  66. package/dist/index132.js.map +1 -1
  67. package/dist/index133.js +4 -16
  68. package/dist/index133.js.map +1 -1
  69. package/dist/index134.js +5 -5
  70. package/dist/index134.js.map +1 -1
  71. package/dist/index135.js +24 -5
  72. package/dist/index135.js.map +1 -1
  73. package/dist/index136.js +7 -4
  74. package/dist/index136.js.map +1 -1
  75. package/dist/index137.js +6 -4
  76. package/dist/index137.js.map +1 -1
  77. package/dist/index138.js +5 -4
  78. package/dist/index138.js.map +1 -1
  79. package/dist/index139.js +3 -3
  80. package/dist/index139.js.map +1 -1
  81. package/dist/index140.js +3 -6
  82. package/dist/index140.js.map +1 -1
  83. package/dist/index141.js +5 -24
  84. package/dist/index141.js.map +1 -1
  85. package/dist/index142.js +3 -7
  86. package/dist/index142.js.map +1 -1
  87. package/dist/index143.js +4 -6
  88. package/dist/index143.js.map +1 -1
  89. package/dist/index144.js +3 -5
  90. package/dist/index144.js.map +1 -1
  91. package/dist/index145.js +3 -3
  92. package/dist/index145.js.map +1 -1
  93. package/dist/index146.js +3 -3
  94. package/dist/index146.js.map +1 -1
  95. package/dist/index147.js +46 -4
  96. package/dist/index147.js.map +1 -1
  97. package/dist/index148.js +46 -3
  98. package/dist/index148.js.map +1 -1
  99. package/dist/index149.js +205 -4
  100. package/dist/index149.js.map +1 -1
  101. package/dist/index150.js +22 -4
  102. package/dist/index150.js.map +1 -1
  103. package/dist/index151.js +24 -3
  104. package/dist/index151.js.map +1 -1
  105. package/dist/index152.js +399 -3
  106. package/dist/index152.js.map +1 -1
  107. package/dist/index153.js +13 -13
  108. package/dist/index156.js +1 -1
  109. package/dist/index156.js.map +1 -1
  110. package/dist/index175.js +16 -24
  111. package/dist/index175.js.map +1 -1
  112. package/dist/index176.js +6 -29
  113. package/dist/index176.js.map +1 -1
  114. package/dist/index177.js +6 -5
  115. package/dist/index177.js.map +1 -1
  116. package/dist/index178.js +2 -2
  117. package/dist/index179.js +66 -8
  118. package/dist/index179.js.map +1 -1
  119. package/dist/index180.js +6 -66
  120. package/dist/index180.js.map +1 -1
  121. package/dist/index181.js +4 -19
  122. package/dist/index181.js.map +1 -1
  123. package/dist/index182.js +7 -16
  124. package/dist/index182.js.map +1 -1
  125. package/dist/index183.js +17 -5
  126. package/dist/index183.js.map +1 -1
  127. package/dist/index184.js +5 -5
  128. package/dist/index184.js.map +1 -1
  129. package/dist/index185.js +5 -6
  130. package/dist/index185.js.map +1 -1
  131. package/dist/index186.js +13 -4
  132. package/dist/index186.js.map +1 -1
  133. package/dist/index187.js +10 -7
  134. package/dist/index187.js.map +1 -1
  135. package/dist/index188.js +14 -17
  136. package/dist/index188.js.map +1 -1
  137. package/dist/index189.js +14 -5
  138. package/dist/index189.js.map +1 -1
  139. package/dist/index190.js +5 -5
  140. package/dist/index190.js.map +1 -1
  141. package/dist/index191.js +6 -13
  142. package/dist/index191.js.map +1 -1
  143. package/dist/index192.js +7 -10
  144. package/dist/index192.js.map +1 -1
  145. package/dist/index193.js +6 -14
  146. package/dist/index193.js.map +1 -1
  147. package/dist/index194.js +9 -14
  148. package/dist/index194.js.map +1 -1
  149. package/dist/index195.js +5 -5
  150. package/dist/index195.js.map +1 -1
  151. package/dist/index196.js +5 -6
  152. package/dist/index196.js.map +1 -1
  153. package/dist/index197.js +9 -7
  154. package/dist/index197.js.map +1 -1
  155. package/dist/index198.js +5 -6
  156. package/dist/index198.js.map +1 -1
  157. package/dist/index199.js +5 -9
  158. package/dist/index199.js.map +1 -1
  159. package/dist/index200.js +4 -5
  160. package/dist/index200.js.map +1 -1
  161. package/dist/index201.js +11 -5
  162. package/dist/index201.js.map +1 -1
  163. package/dist/index202.js +10 -9
  164. package/dist/index202.js.map +1 -1
  165. package/dist/index203.js +10 -5
  166. package/dist/index203.js.map +1 -1
  167. package/dist/index204.js +11 -5
  168. package/dist/index204.js.map +1 -1
  169. package/dist/index205.js +11 -4
  170. package/dist/index205.js.map +1 -1
  171. package/dist/index206.js +10 -11
  172. package/dist/index206.js.map +1 -1
  173. package/dist/index207.js +7 -10
  174. package/dist/index207.js.map +1 -1
  175. package/dist/index208.js +6 -10
  176. package/dist/index208.js.map +1 -1
  177. package/dist/index209.js +5 -11
  178. package/dist/index209.js.map +1 -1
  179. package/dist/index210.js +6 -11
  180. package/dist/index210.js.map +1 -1
  181. package/dist/index211.js +6 -9
  182. package/dist/index211.js.map +1 -1
  183. package/dist/index212.js +6 -7
  184. package/dist/index212.js.map +1 -1
  185. package/dist/index213.js +55 -6
  186. package/dist/index213.js.map +1 -1
  187. package/dist/index214.js +8 -5
  188. package/dist/index214.js.map +1 -1
  189. package/dist/index215.js +19 -6
  190. package/dist/index215.js.map +1 -1
  191. package/dist/index216.js +16 -7
  192. package/dist/index216.js.map +1 -1
  193. package/dist/index217.js +7 -6
  194. package/dist/index217.js.map +1 -1
  195. package/dist/index218.js +10 -55
  196. package/dist/index218.js.map +1 -1
  197. package/dist/index219.js +9 -15
  198. package/dist/index219.js.map +1 -1
  199. package/dist/index220.js +21 -7
  200. package/dist/index220.js.map +1 -1
  201. package/dist/index221.js +10 -10
  202. package/dist/index221.js.map +1 -1
  203. package/dist/index222.js +9 -10
  204. package/dist/index222.js.map +1 -1
  205. package/dist/index223.js +9 -21
  206. package/dist/index223.js.map +1 -1
  207. package/dist/index224.js +4 -10
  208. package/dist/index224.js.map +1 -1
  209. package/dist/index225.js +5 -9
  210. package/dist/index225.js.map +1 -1
  211. package/dist/index226.js +16 -9
  212. package/dist/index226.js.map +1 -1
  213. package/dist/index227.js +9 -4
  214. package/dist/index227.js.map +1 -1
  215. package/dist/index228.js +18 -5
  216. package/dist/index228.js.map +1 -1
  217. package/dist/index229.js +15 -16
  218. package/dist/index229.js.map +1 -1
  219. package/dist/index23.js +1 -1
  220. package/dist/index230.js +12 -9
  221. package/dist/index230.js.map +1 -1
  222. package/dist/index231.js +29 -18
  223. package/dist/index231.js.map +1 -1
  224. package/dist/index232.js +12 -15
  225. package/dist/index232.js.map +1 -1
  226. package/dist/index233.js +25 -12
  227. package/dist/index233.js.map +1 -1
  228. package/dist/index234.js +5 -29
  229. package/dist/index234.js.map +1 -1
  230. package/dist/index235.js +24 -12
  231. package/dist/index235.js.map +1 -1
  232. package/dist/index236.js +29 -26
  233. package/dist/index236.js.map +1 -1
  234. package/dist/index237.js +5 -6
  235. package/dist/index237.js.map +1 -1
  236. package/dist/index238.js +2 -2
  237. package/dist/index239.js +9 -9
  238. package/dist/index240.js +1 -1
  239. package/dist/index248.js +1 -1
  240. package/dist/index248.js.map +1 -1
  241. package/dist/index261.js.map +1 -1
  242. package/dist/index266.js +5 -5
  243. package/dist/index266.js.map +1 -1
  244. package/dist/index267.js +19 -3
  245. package/dist/index267.js.map +1 -1
  246. package/dist/index268.js +12 -23
  247. package/dist/index268.js.map +1 -1
  248. package/dist/index269.js +5 -113
  249. package/dist/index269.js.map +1 -1
  250. package/dist/index270.js +3 -16
  251. package/dist/index270.js.map +1 -1
  252. package/dist/index271.js +21 -522
  253. package/dist/index271.js.map +1 -1
  254. package/dist/index272.js +112 -127
  255. package/dist/index272.js.map +1 -1
  256. package/dist/index273.js +15 -133
  257. package/dist/index273.js.map +1 -1
  258. package/dist/index274.js +524 -4
  259. package/dist/index274.js.map +1 -1
  260. package/dist/index275.js +127 -18
  261. package/dist/index275.js.map +1 -1
  262. package/dist/index276.js +133 -12
  263. package/dist/index276.js.map +1 -1
  264. package/dist/index278.js +5 -64
  265. package/dist/index278.js.map +1 -1
  266. package/dist/index279.js +6 -69
  267. package/dist/index279.js.map +1 -1
  268. package/dist/index280.js +4 -9
  269. package/dist/index280.js.map +1 -1
  270. package/dist/index281.js +16 -14
  271. package/dist/index281.js.map +1 -1
  272. package/dist/index282.js +8 -65
  273. package/dist/index282.js.map +1 -1
  274. package/dist/index283.js +5 -5
  275. package/dist/index283.js.map +1 -1
  276. package/dist/index284.js +4 -5
  277. package/dist/index284.js.map +1 -1
  278. package/dist/index285.js +546 -4
  279. package/dist/index285.js.map +1 -1
  280. package/dist/index286.js +47 -16
  281. package/dist/index286.js.map +1 -1
  282. package/dist/index287.js +17 -8
  283. package/dist/index287.js.map +1 -1
  284. package/dist/index288.js +6 -5
  285. package/dist/index288.js.map +1 -1
  286. package/dist/index289.js +8 -4
  287. package/dist/index289.js.map +1 -1
  288. package/dist/index29.js +5 -5
  289. package/dist/index290.js +7 -545
  290. package/dist/index290.js.map +1 -1
  291. package/dist/index291.js +9 -47
  292. package/dist/index291.js.map +1 -1
  293. package/dist/index292.js +12 -17
  294. package/dist/index292.js.map +1 -1
  295. package/dist/index293.js +9 -6
  296. package/dist/index293.js.map +1 -1
  297. package/dist/index294.js +13 -8
  298. package/dist/index294.js.map +1 -1
  299. package/dist/index295.js +69 -8
  300. package/dist/index295.js.map +1 -1
  301. package/dist/index296.js +9 -9
  302. package/dist/index296.js.map +1 -1
  303. package/dist/index297.js +14 -13
  304. package/dist/index297.js.map +1 -1
  305. package/dist/index298.js +66 -10
  306. package/dist/index298.js.map +1 -1
  307. package/dist/index299.js +64 -13
  308. package/dist/index299.js.map +1 -1
  309. package/dist/index30.js +24 -24
  310. package/dist/index300.js +4 -3
  311. package/dist/index300.js.map +1 -1
  312. package/dist/index301.js +56 -23
  313. package/dist/index301.js.map +1 -1
  314. package/dist/index302.js +68 -5
  315. package/dist/index302.js.map +1 -1
  316. package/dist/index303.js +30 -55
  317. package/dist/index303.js.map +1 -1
  318. package/dist/index304.js +9 -68
  319. package/dist/index304.js.map +1 -1
  320. package/dist/index305.js +148 -26
  321. package/dist/index305.js.map +1 -1
  322. package/dist/index306.js +108 -9
  323. package/dist/index306.js.map +1 -1
  324. package/dist/index307.js +4 -153
  325. package/dist/index307.js.map +1 -1
  326. package/dist/index308.js +23 -108
  327. package/dist/index308.js.map +1 -1
  328. package/dist/index309.js +15 -12
  329. package/dist/index309.js.map +1 -1
  330. package/dist/index31.js +3 -3
  331. package/dist/index310.js +26 -25
  332. package/dist/index310.js.map +1 -1
  333. package/dist/index311.js +13 -5
  334. package/dist/index311.js.map +1 -1
  335. package/dist/index312.js +6 -22
  336. package/dist/index312.js.map +1 -1
  337. package/dist/index313.js +12 -15
  338. package/dist/index313.js.map +1 -1
  339. package/dist/index314.js +25 -26
  340. package/dist/index314.js.map +1 -1
  341. package/dist/index315.js +5 -13
  342. package/dist/index315.js.map +1 -1
  343. package/dist/index316.js +22 -6
  344. package/dist/index316.js.map +1 -1
  345. package/dist/index33.js +1 -1
  346. package/dist/index42.js +20 -20
  347. package/dist/index46.js +1 -1
  348. package/dist/index47.js +1 -1
  349. package/dist/index48.js +5 -52
  350. package/dist/index48.js.map +1 -1
  351. package/dist/index49.js +32 -203
  352. package/dist/index49.js.map +1 -1
  353. package/dist/index50.js +25 -5
  354. package/dist/index50.js.map +1 -1
  355. package/dist/index51.js +7 -33
  356. package/dist/index51.js.map +1 -1
  357. package/dist/index52.js +11 -26
  358. package/dist/index52.js.map +1 -1
  359. package/dist/index53.js +205 -8
  360. package/dist/index53.js.map +1 -1
  361. package/dist/index54.js +3 -11
  362. package/dist/index54.js.map +1 -1
  363. package/dist/index55.js +48 -2
  364. package/dist/index55.js.map +1 -1
  365. package/dist/index56.js +51 -2
  366. package/dist/index56.js.map +1 -1
  367. package/dist/index57.js +7 -3
  368. package/dist/index57.js.map +1 -1
  369. package/dist/index58.js +14 -47
  370. package/dist/index58.js.map +1 -1
  371. package/dist/index59.js +129 -46
  372. package/dist/index59.js.map +1 -1
  373. package/dist/index60.js +10 -7
  374. package/dist/index60.js.map +1 -1
  375. package/dist/index61.js +215 -13
  376. package/dist/index61.js.map +1 -1
  377. package/dist/index62.js +12 -133
  378. package/dist/index62.js.map +1 -1
  379. package/dist/index63.js +46 -10
  380. package/dist/index63.js.map +1 -1
  381. package/dist/index64.js +46 -213
  382. package/dist/index64.js.map +1 -1
  383. package/dist/index65.js +4 -13
  384. package/dist/index65.js.map +1 -1
  385. package/dist/index66.js +5 -46
  386. package/dist/index66.js.map +1 -1
  387. package/dist/index67.js +28 -50
  388. package/dist/index67.js.map +1 -1
  389. package/dist/index68.js +49 -3
  390. package/dist/index68.js.map +1 -1
  391. package/dist/index69.js +9 -6
  392. package/dist/index69.js.map +1 -1
  393. package/dist/index70.js +54 -28
  394. package/dist/index70.js.map +1 -1
  395. package/dist/index71.js +2 -50
  396. package/dist/index71.js.map +1 -1
  397. package/dist/index72.js +2 -9
  398. package/dist/index72.js.map +1 -1
  399. package/dist/index76.js +52 -47
  400. package/dist/index76.js.map +1 -1
  401. package/dist/index77.js +4 -46
  402. package/dist/index77.js.map +1 -1
  403. package/dist/index78.js +4 -205
  404. package/dist/index78.js.map +1 -1
  405. package/dist/index79.js +15 -21
  406. package/dist/index79.js.map +1 -1
  407. package/dist/index80.js +5 -24
  408. package/dist/index80.js.map +1 -1
  409. package/dist/index81.js +7 -399
  410. package/dist/index81.js.map +1 -1
  411. package/dist/index82.js +17 -52
  412. package/dist/index82.js.map +1 -1
  413. package/dist/index83.js +4 -4
  414. package/dist/index83.js.map +1 -1
  415. package/dist/index84.js +3 -3
  416. package/dist/index84.js.map +1 -1
  417. package/dist/index85.js +5 -15
  418. package/dist/index85.js.map +1 -1
  419. package/dist/index86.js +5 -5
  420. package/dist/index86.js.map +1 -1
  421. package/dist/index87.js +3 -6
  422. package/dist/index87.js.map +1 -1
  423. package/dist/index88.js +3 -15
  424. package/dist/index88.js.map +1 -1
  425. package/dist/index89.js +6 -4
  426. package/dist/index89.js.map +1 -1
  427. package/dist/index90.js +24 -4
  428. package/dist/index90.js.map +1 -1
  429. package/dist/index91.js +6 -5
  430. package/dist/index91.js.map +1 -1
  431. package/dist/index92.js +4 -5
  432. package/dist/index92.js.map +1 -1
  433. package/dist/index93.js +5 -3
  434. package/dist/index93.js.map +1 -1
  435. package/dist/index94.js +4 -3
  436. package/dist/index94.js.map +1 -1
  437. package/dist/index95.js +4 -6
  438. package/dist/index95.js.map +1 -1
  439. package/dist/index96.js +5 -24
  440. package/dist/index96.js.map +1 -1
  441. package/dist/index97.js +4 -6
  442. package/dist/index97.js.map +1 -1
  443. package/dist/index98.js +7 -3
  444. package/dist/index98.js.map +1 -1
  445. package/dist/index99.js +5 -6
  446. package/dist/index99.js.map +1 -1
  447. package/package.json +1 -1
package/dist/index299.js CHANGED
@@ -1,17 +1,68 @@
1
- import { getDefaultOptions as k } from "./index289.js";
2
- import { constructFrom as i } from "./index283.js";
3
- import { startOfWeek as l } from "./index216.js";
4
- import { toDate as m } from "./index284.js";
5
- function C(r, e) {
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);
7
- a.setFullYear(t + 1, 0, f), a.setHours(0, 0, 0, 0);
8
- const c = l(a, e), n = i(e?.in || r, 0);
9
- n.setFullYear(t, 0, f), n.setHours(0, 0, 0, 0);
10
- const u = l(n, e);
11
- return +s >= +c ? t + 1 : +s >= +u ? t : t - 1;
1
+ import { __assign as d } from "./index235.js";
2
+ function l(r) {
3
+ return r;
4
+ }
5
+ function h(r, t) {
6
+ t === void 0 && (t = l);
7
+ var e = [], o = !1, c = {
8
+ read: function() {
9
+ if (o)
10
+ throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");
11
+ return e.length ? e[e.length - 1] : r;
12
+ },
13
+ useMedium: function(u) {
14
+ var n = t(u, o);
15
+ return e.push(n), function() {
16
+ e = e.filter(function(i) {
17
+ return i !== n;
18
+ });
19
+ };
20
+ },
21
+ assignSyncMedium: function(u) {
22
+ for (o = !0; e.length; ) {
23
+ var n = e;
24
+ e = [], n.forEach(u);
25
+ }
26
+ e = {
27
+ push: function(i) {
28
+ return u(i);
29
+ },
30
+ filter: function() {
31
+ return e;
32
+ }
33
+ };
34
+ },
35
+ assignMedium: function(u) {
36
+ o = !0;
37
+ var n = [];
38
+ if (e.length) {
39
+ var i = e;
40
+ e = [], i.forEach(u), n = e;
41
+ }
42
+ var s = function() {
43
+ var f = n;
44
+ n = [], f.forEach(u);
45
+ }, a = function() {
46
+ return Promise.resolve().then(s);
47
+ };
48
+ a(), e = {
49
+ push: function(f) {
50
+ n.push(f), a();
51
+ },
52
+ filter: function(f) {
53
+ return n = n.filter(f), e;
54
+ }
55
+ };
56
+ }
57
+ };
58
+ return c;
59
+ }
60
+ function v(r) {
61
+ r === void 0 && (r = {});
62
+ var t = h(null);
63
+ return t.options = d({ async: !0, ssr: !1 }, r), t;
12
64
  }
13
65
  export {
14
- C as default,
15
- C as getWeekYear
66
+ v as createSidecarMedium
16
67
  };
17
68
  //# sourceMappingURL=index299.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index299.js","sources":["../../../node_modules/date-fns/getWeekYear.js"],"sourcesContent":["import { getDefaultOptions } from \"./_lib/defaultOptions.js\";\nimport { constructFrom } from \"./constructFrom.js\";\nimport { startOfWeek } from \"./startOfWeek.js\";\nimport { toDate } from \"./toDate.js\";\n\n/**\n * The {@link getWeekYear} function options.\n */\n\n/**\n * @name getWeekYear\n * @category Week-Numbering Year Helpers\n * @summary Get the local week-numbering year of the given date.\n *\n * @description\n * Get the local week-numbering year of the given date.\n * The exact calculation depends on the values of\n * `options.weekStartsOn` (which is the index of the first day of the week)\n * and `options.firstWeekContainsDate` (which is the day of January, which is always in\n * the first week of the week-numbering year)\n *\n * Week numbering: https://en.wikipedia.org/wiki/Week#The_ISO_week_date_system\n *\n * @param date - The given date\n * @param options - An object with options.\n *\n * @returns The local week-numbering year\n *\n * @example\n * // Which week numbering year is 26 December 2004 with the default settings?\n * const result = getWeekYear(new Date(2004, 11, 26))\n * //=> 2005\n *\n * @example\n * // Which week numbering year is 26 December 2004 if week starts on Saturday?\n * const result = getWeekYear(new Date(2004, 11, 26), { weekStartsOn: 6 })\n * //=> 2004\n *\n * @example\n * // Which week numbering year is 26 December 2004 if the first week contains 4 January?\n * const result = getWeekYear(new Date(2004, 11, 26), { firstWeekContainsDate: 4 })\n * //=> 2004\n */\nexport function getWeekYear(date, options) {\n const _date = toDate(date, options?.in);\n const year = _date.getFullYear();\n\n const defaultOptions = getDefaultOptions();\n const firstWeekContainsDate =\n options?.firstWeekContainsDate ??\n options?.locale?.options?.firstWeekContainsDate ??\n defaultOptions.firstWeekContainsDate ??\n defaultOptions.locale?.options?.firstWeekContainsDate ??\n 1;\n\n const firstWeekOfNextYear = constructFrom(options?.in || date, 0);\n firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);\n firstWeekOfNextYear.setHours(0, 0, 0, 0);\n const startOfNextYear = startOfWeek(firstWeekOfNextYear, options);\n\n const firstWeekOfThisYear = constructFrom(options?.in || date, 0);\n firstWeekOfThisYear.setFullYear(year, 0, firstWeekContainsDate);\n firstWeekOfThisYear.setHours(0, 0, 0, 0);\n const startOfThisYear = startOfWeek(firstWeekOfThisYear, options);\n\n if (+_date >= +startOfNextYear) {\n return year + 1;\n } else if (+_date >= +startOfThisYear) {\n return year;\n } else {\n return year - 1;\n }\n}\n\n// Fallback for modularized imports:\nexport default getWeekYear;\n"],"names":["getWeekYear","date","options","_date","toDate","year","defaultOptions","getDefaultOptions","firstWeekContainsDate","firstWeekOfNextYear","constructFrom","startOfNextYear","startOfWeek","firstWeekOfThisYear","startOfThisYear"],"mappings":";;;;AA2CO,SAASA,EAAYC,GAAMC,GAAS;AACzC,QAAMC,IAAQC,EAAOH,GAAMC,GAAS,EAAE,GAChCG,IAAOF,EAAM,YAAW,GAExBG,IAAiBC,EAAiB,GAClCC,IACJN,GAAS,yBACTA,GAAS,QAAQ,SAAS,yBAC1BI,EAAe,yBACfA,EAAe,QAAQ,SAAS,yBAChC,GAEIG,IAAsBC,EAAcR,GAAS,MAAMD,GAAM,CAAC;AAChE,EAAAQ,EAAoB,YAAYJ,IAAO,GAAG,GAAGG,CAAqB,GAClEC,EAAoB,SAAS,GAAG,GAAG,GAAG,CAAC;AACvC,QAAME,IAAkBC,EAAYH,GAAqBP,CAAO,GAE1DW,IAAsBH,EAAcR,GAAS,MAAMD,GAAM,CAAC;AAChE,EAAAY,EAAoB,YAAYR,GAAM,GAAGG,CAAqB,GAC9DK,EAAoB,SAAS,GAAG,GAAG,GAAG,CAAC;AACvC,QAAMC,IAAkBF,EAAYC,GAAqBX,CAAO;AAEhE,SAAI,CAACC,KAAS,CAACQ,IACNN,IAAO,IACL,CAACF,KAAS,CAACW,IACbT,IAEAA,IAAO;AAElB;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index299.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,CAAQ;AACpC,aAAAD,EAAO,KAAKI,CAAI,GACT,WAAY;AACf,QAAAJ,IAASA,EAAO,OAAO,SAAUK,GAAG;AAAE,iBAAOA,MAAMD;AAAA,QAAM,CAAC;AAAA,MAC9D;AAAA,IACJ;AAAA,IACA,kBAAkB,SAAUE,GAAI;AAE5B,WADAL,IAAW,IACJD,EAAO,UAAQ;AAClB,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAA,GACTO,EAAI,QAAQD,CAAE;AAAA,MAClB;AACA,MAAAN,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AAAE,iBAAOC,EAAGD,CAAC;AAAA,QAAG;AAAA,QACnC,QAAQ,WAAY;AAAE,iBAAOL;AAAA,QAAQ;AAAA,MACrD;AAAA,IACQ;AAAA,IACA,cAAc,SAAUM,GAAI;AACxB,MAAAL,IAAW;AACX,UAAIO,IAAe,CAAA;AACnB,UAAIR,EAAO,QAAQ;AACf,YAAIO,IAAMP;AACV,QAAAA,IAAS,CAAA,GACTO,EAAI,QAAQD,CAAE,GACdE,IAAeR;AAAA,MACnB;AACA,UAAIS,IAAe,WAAY;AAC3B,YAAIF,IAAMC;AACV,QAAAA,IAAe,CAAA,GACfD,EAAI,QAAQD,CAAE;AAAA,MAClB,GACII,IAAQ,WAAY;AAAE,eAAO,QAAQ,QAAO,EAAG,KAAKD,CAAY;AAAA,MAAG;AACvE,MAAAC,EAAK,GACLV,IAAS;AAAA,QACL,MAAM,SAAUK,GAAG;AACf,UAAAG,EAAa,KAAKH,CAAC,GACnBK,EAAK;AAAA,QACT;AAAA,QACA,QAAQ,SAAUC,GAAQ;AACtB,iBAAAH,IAAeA,EAAa,OAAOG,CAAM,GAClCX;AAAA,QACX;AAAA,MAChB;AAAA,IACQ;AAAA,EACR;AACI,SAAOE;AACX;AAMO,SAASU,EAAoBC,GAAS;AACzC,EAAIA,MAAY,WAAUA,IAAU,CAAA;AACpC,MAAIX,IAASL,EAAkB,IAAI;AACnC,SAAAK,EAAO,UAAUY,EAAS,EAAE,OAAO,IAAM,KAAK,GAAK,GAAID,CAAO,GACvDX;AACX;","x_google_ignoreList":[0]}
package/dist/index30.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 "./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";
2
+ import { DateLib as Ze } from "./index103.js";
3
+ import { createGetModifiers as Ie } from "./index104.js";
4
+ import { getClassNamesForModifiers as Ge } from "./index105.js";
5
+ import { getComponents as He } from "./index106.js";
6
+ import { getDataAttributes as _e } from "./index107.js";
7
+ import { getDefaultClassNames as Ue } from "./index108.js";
8
+ import { getFormatters as je } from "./index109.js";
9
+ import { getLabels as Ve } from "./index110.js";
10
+ import { getMonthOptions as $e } from "./index111.js";
11
+ import { getStyleForModifiers as qe } from "./index112.js";
12
+ import { getWeekdays as ze } from "./index113.js";
13
+ import { getYearOptions as Je } from "./index114.js";
14
+ import { createNoonOverrides as Qe } from "./index115.js";
15
+ import { UI as n, DayFlag as Xe, SelectionState as w } from "./index116.js";
16
+ import { useAnimation as et } from "./index117.js";
17
+ import { useCalendar as tt } from "./index118.js";
18
+ import { dayPickerContext as at } from "./index119.js";
19
+ import { useFocus as ot } from "./index120.js";
20
+ import { useSelection as nt } from "./index121.js";
21
+ import { convertMatchersToTimeZone as K } from "./index122.js";
22
+ import { rangeIncludesDate as st } from "./index123.js";
23
+ import { toTimeZone as k } from "./index124.js";
24
+ import { isDateRange as rt } from "./index125.js";
25
+ import { enUS as it } from "./index126.js";
26
26
  function Yt(R) {
27
27
  let e = R;
28
28
  const u = e.timeZone;
package/dist/index300.js CHANGED
@@ -1,7 +1,8 @@
1
- function i(n, t) {
2
- return typeof n == "function" ? n(t) : n && (n.current = t), n;
1
+ function r(t, n) {
2
+ const o = t < 0 ? "-" : "", a = Math.abs(t).toString().padStart(n, "0");
3
+ return o + a;
3
4
  }
4
5
  export {
5
- i as assignRef
6
+ r as addLeadingZeros
6
7
  };
7
8
  //# sourceMappingURL=index300.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index300.js","sources":["../../../node_modules/use-callback-ref/dist/es2015/assignRef.js"],"sourcesContent":["/**\n * Assigns a value for a given ref, no matter of the ref format\n * @param {RefObject} ref - a callback function or ref object\n * @param value - a new value\n *\n * @see https://github.com/theKashey/use-callback-ref#assignref\n * @example\n * const refObject = useRef();\n * const refFn = (ref) => {....}\n *\n * assignRef(refObject, \"refValue\");\n * assignRef(refFn, \"refValue\");\n */\nexport function assignRef(ref, value) {\n if (typeof ref === 'function') {\n ref(value);\n }\n else if (ref) {\n ref.current = value;\n }\n return ref;\n}\n"],"names":["assignRef","ref","value"],"mappings":"AAaO,SAASA,EAAUC,GAAKC,GAAO;AAClC,SAAI,OAAOD,KAAQ,aACfA,EAAIC,CAAK,IAEJD,MACLA,EAAI,UAAUC,IAEXD;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index300.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/index301.js CHANGED
@@ -1,26 +1,59 @@
1
- import { useState as u } from "react";
2
- function n(c, r) {
3
- var e = u(function() {
4
- return {
5
- // value
6
- value: c,
7
- // last callback
8
- callback: r,
9
- // "memoized" public interface
10
- facade: {
11
- get current() {
12
- return e.value;
13
- },
14
- set current(a) {
15
- var t = e.value;
16
- t !== a && (e.value = a, e.callback(a, t));
17
- }
18
- }
19
- };
20
- })[0];
21
- return e.callback = r, e.facade;
22
- }
1
+ import { addLeadingZeros as n } from "./index300.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
+ }
55
+ };
23
56
  export {
24
- n as useCallbackRef
57
+ g as lightFormatters
25
58
  };
26
59
  //# sourceMappingURL=index301.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index301.js","sources":["../../../node_modules/use-callback-ref/dist/es2015/useRef.js"],"sourcesContent":["import { useState } from 'react';\n/**\n * creates a MutableRef with ref change callback\n * @param initialValue - initial ref value\n * @param {Function} callback - a callback to run when value changes\n *\n * @example\n * const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);\n * ref.current = 1;\n * // prints 0 -> 1\n *\n * @see https://reactjs.org/docs/hooks-reference.html#useref\n * @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref\n * @returns {MutableRefObject}\n */\nexport function useCallbackRef(initialValue, callback) {\n var ref = useState(function () { return ({\n // value\n value: initialValue,\n // last callback\n callback: callback,\n // \"memoized\" public interface\n facade: {\n get current() {\n return ref.value;\n },\n set current(value) {\n var last = ref.value;\n if (last !== value) {\n ref.value = value;\n ref.callback(value, last);\n }\n },\n },\n }); })[0];\n // update callback\n ref.callback = callback;\n return ref.facade;\n}\n"],"names":["useCallbackRef","initialValue","callback","ref","useState","value","last"],"mappings":";AAeO,SAASA,EAAeC,GAAcC,GAAU;AACnD,MAAIC,IAAMC,EAAS,WAAY;AAAE,WAAQ;AAAA;AAAA,MAErC,OAAOH;AAAA;AAAA,MAEP,UAAUC;AAAA;AAAA,MAEV,QAAQ;AAAA,QACJ,IAAI,UAAU;AACV,iBAAOC,EAAI;AAAA,QACf;AAAA,QACA,IAAI,QAAQE,GAAO;AACf,cAAIC,IAAOH,EAAI;AACf,UAAIG,MAASD,MACTF,EAAI,QAAQE,GACZF,EAAI,SAASE,GAAOC,CAAI;AAAA,QAEhC;AAAA,MACZ;AAAA,IACA;AAAA,EAAQ,CAAC,EAAE,CAAC;AAER,SAAAH,EAAI,WAAWD,GACRC,EAAI;AACf;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index301.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","token","signedYear","year","addLeadingZeros","month","dayPeriodEnumValue","numberOfDigits","milliseconds","fractionalSeconds"],"mappings":";AAeY,MAACA,IAAkB;AAAA;AAAA,EAE7B,EAAEC,GAAMC,GAAO;AAUb,UAAMC,IAAaF,EAAK,YAAW,GAE7BG,IAAOD,IAAa,IAAIA,IAAa,IAAIA;AAC/C,WAAOE,EAAgBH,MAAU,OAAOE,IAAO,MAAMA,GAAMF,EAAM,MAAM;AAAA,EACzE;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,UAAMI,IAAQL,EAAK,SAAQ;AAC3B,WAAOC,MAAU,MAAM,OAAOI,IAAQ,CAAC,IAAID,EAAgBC,IAAQ,GAAG,CAAC;AAAA,EACzE;AAAA;AAAA,EAGA,EAAEL,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,QAAO,GAAIC,EAAM,MAAM;AAAA,EACrD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,UAAMK,IAAqBN,EAAK,SAAQ,IAAK,MAAM,IAAI,OAAO;AAE9D,YAAQC,GAAK;AAAA,MACX,KAAK;AAAA,MACL,KAAK;AACH,eAAOK,EAAmB,YAAW;AAAA,MACvC,KAAK;AACH,eAAOA;AAAA,MACT,KAAK;AACH,eAAOA,EAAmB,CAAC;AAAA,MAE7B;AACE,eAAOA,MAAuB,OAAO,SAAS;AAAA,IACtD;AAAA,EACE;AAAA;AAAA,EAGA,EAAEN,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,SAAQ,IAAK,MAAM,IAAIC,EAAM,MAAM;AAAA,EACjE;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,SAAQ,GAAIC,EAAM,MAAM;AAAA,EACtD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,WAAU,GAAIC,EAAM,MAAM;AAAA,EACxD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,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/index302.js CHANGED
@@ -1,8 +1,71 @@
1
- function r(t, n) {
2
- const o = t < 0 ? "-" : "", a = Math.abs(t).toString().padStart(n, "0");
3
- return o + a;
4
- }
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
+ };
5
68
  export {
6
- r as addLeadingZeros
69
+ r as formatDistance
7
70
  };
8
71
  //# sourceMappingURL=index302.js.map
@@ -1 +1 @@
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]}
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]}
package/dist/index303.js CHANGED
@@ -1,59 +1,34 @@
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
- }
1
+ import { buildFormatLongFn as t } from "./index312.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
+ })
55
30
  };
56
31
  export {
57
- g as lightFormatters
32
+ e as formatLong
58
33
  };
59
34
  //# sourceMappingURL=index303.js.map
@@ -1 +1 @@
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","token","signedYear","year","addLeadingZeros","month","dayPeriodEnumValue","numberOfDigits","milliseconds","fractionalSeconds"],"mappings":";AAeY,MAACA,IAAkB;AAAA;AAAA,EAE7B,EAAEC,GAAMC,GAAO;AAUb,UAAMC,IAAaF,EAAK,YAAW,GAE7BG,IAAOD,IAAa,IAAIA,IAAa,IAAIA;AAC/C,WAAOE,EAAgBH,MAAU,OAAOE,IAAO,MAAMA,GAAMF,EAAM,MAAM;AAAA,EACzE;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,UAAMI,IAAQL,EAAK,SAAQ;AAC3B,WAAOC,MAAU,MAAM,OAAOI,IAAQ,CAAC,IAAID,EAAgBC,IAAQ,GAAG,CAAC;AAAA,EACzE;AAAA;AAAA,EAGA,EAAEL,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,QAAO,GAAIC,EAAM,MAAM;AAAA,EACrD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,UAAMK,IAAqBN,EAAK,SAAQ,IAAK,MAAM,IAAI,OAAO;AAE9D,YAAQC,GAAK;AAAA,MACX,KAAK;AAAA,MACL,KAAK;AACH,eAAOK,EAAmB,YAAW;AAAA,MACvC,KAAK;AACH,eAAOA;AAAA,MACT,KAAK;AACH,eAAOA,EAAmB,CAAC;AAAA,MAE7B;AACE,eAAOA,MAAuB,OAAO,SAAS;AAAA,IACtD;AAAA,EACE;AAAA;AAAA,EAGA,EAAEN,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,SAAQ,IAAK,MAAM,IAAIC,EAAM,MAAM;AAAA,EACjE;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,SAAQ,GAAIC,EAAM,MAAM;AAAA,EACtD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,WAAOG,EAAgBJ,EAAK,WAAU,GAAIC,EAAM,MAAM;AAAA,EACxD;AAAA;AAAA,EAGA,EAAED,GAAMC,GAAO;AACb,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]}
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]}
package/dist/index304.js CHANGED
@@ -1,71 +1,12 @@
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
+ 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];
68
9
  export {
69
- r as formatDistance
10
+ s as formatRelative
70
11
  };
71
12
  //# sourceMappingURL=index304.js.map
@@ -1 +1 @@
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,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":"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]}